@crowdin/app-project-module 0.34.2 → 0.35.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/out/handlers/integration/main.js +1 -0
- package/out/index.js +5 -0
- package/out/models/index.d.ts +29 -1
- package/out/static/js/form.js +36 -15
- package/out/util/defaults.d.ts +2 -1
- package/out/util/defaults.js +24 -2
- package/out/views/main.handlebars +39 -11
- package/package.json +21 -19
package/out/static/js/form.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
!function(){"use strict";function e(e,t){return t.forEach((function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach((function(r){if("default"!==r&&!(r in e)){var n=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,n.get?n:{enumerable:!0,get:function(){return t[r]}})}}))})),Object.freeze(e)}function t(){return t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},t.apply(this,arguments)}var r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function o(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){if(this instanceof e){var r=[null];return r.push.apply(r,arguments),new(Function.bind.apply(t,r))}return t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})})),r}var a={},i={get exports(){return a},set exports(e){a=e}},s={},l=Symbol.for("react.element"),u=Symbol.for("react.portal"),c=Symbol.for("react.fragment"),d=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),p=Symbol.for("react.provider"),
|
|
1
|
+
!function(){"use strict";function e(e,t){return t.forEach((function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach((function(r){if("default"!==r&&!(r in e)){var n=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,n.get?n:{enumerable:!0,get:function(){return t[r]}})}}))})),Object.freeze(e)}function t(){return t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},t.apply(this,arguments)}var r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function o(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){if(this instanceof e){var r=[null];return r.push.apply(r,arguments),new(Function.bind.apply(t,r))}return t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})})),r}var a={},i={get exports(){return a},set exports(e){a=e}},s={},l=Symbol.for("react.element"),u=Symbol.for("react.portal"),c=Symbol.for("react.fragment"),d=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),p=Symbol.for("react.provider"),h=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),b=Symbol.iterator;var w={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},S=Object.assign,x={};function _(e,t,r){this.props=e,this.context=t,this.refs=x,this.updater=r||w}function $(){}function k(e,t,r){this.props=e,this.context=t,this.refs=x,this.updater=r||w}_.prototype.isReactComponent={},_.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)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")},_.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},$.prototype=_.prototype;var E=k.prototype=new $;E.constructor=k,S(E,_.prototype),E.isPureReactComponent=!0;var j=Array.isArray,C=Object.prototype.hasOwnProperty,O={current:null},P={key:!0,ref:!0,__self:!0,__source:!0};function N(e,t,r){var n,o={},a=null,i=null;if(null!=t)for(n in void 0!==t.ref&&(i=t.ref),void 0!==t.key&&(a=""+t.key),t)C.call(t,n)&&!P.hasOwnProperty(n)&&(o[n]=t[n]);var s=arguments.length-2;if(1===s)o.children=r;else if(1<s){for(var u=Array(s),c=0;c<s;c++)u[c]=arguments[c+2];o.children=u}if(e&&e.defaultProps)for(n in s=e.defaultProps)void 0===o[n]&&(o[n]=s[n]);return{$$typeof:l,type:e,key:a,ref:i,props:o,_owner:O.current}}function R(e){return"object"==typeof e&&null!==e&&e.$$typeof===l}var T=/\/+/g;function A(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function I(e,t,r,n,o){var a=typeof e;"undefined"!==a&&"boolean"!==a||(e=null);var i=!1;if(null===e)i=!0;else switch(a){case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case l:case u:i=!0}}if(i)return o=o(i=e),e=""===n?"."+A(i,0):n,j(o)?(r="",null!=e&&(r=e.replace(T,"$&/")+"/"),I(o,t,r,"",(function(e){return e}))):null!=o&&(R(o)&&(o=function(e,t){return{$$typeof:l,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(o,r+(!o.key||i&&i.key===o.key?"":(""+o.key).replace(T,"$&/")+"/")+e)),t.push(o)),1;if(i=0,n=""===n?".":n+":",j(e))for(var s=0;s<e.length;s++){var c=n+A(a=e[s],s);i+=I(a,t,r,c,o)}else if(c=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=b&&e[b]||e["@@iterator"])?e:null}(e),"function"==typeof c)for(e=c.call(e),s=0;!(a=e.next()).done;)i+=I(a=a.value,t,r,c=n+A(a,s++),o);else if("object"===a)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return i}function M(e,t,r){if(null==e)return e;var n=[],o=0;return I(e,n,"","",(function(e){return t.call(r,e,o++)})),n}function F(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var z={current:null},D={transition:null},L={ReactCurrentDispatcher:z,ReactCurrentBatchConfig:D,ReactCurrentOwner:O};s.Children={map:M,forEach:function(e,t,r){M(e,(function(){t.apply(this,arguments)}),r)},count:function(e){var t=0;return M(e,(function(){t++})),t},toArray:function(e){return M(e,(function(e){return e}))||[]},only:function(e){if(!R(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},s.Component=_,s.Fragment=c,s.Profiler=f,s.PureComponent=k,s.StrictMode=d,s.Suspense=v,s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=L,s.cloneElement=function(e,t,r){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var n=S({},e.props),o=e.key,a=e.ref,i=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,i=O.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(u in t)C.call(t,u)&&!P.hasOwnProperty(u)&&(n[u]=void 0===t[u]&&void 0!==s?s[u]:t[u])}var u=arguments.length-2;if(1===u)n.children=r;else if(1<u){s=Array(u);for(var c=0;c<u;c++)s[c]=arguments[c+2];n.children=s}return{$$typeof:l,type:e.type,key:o,ref:a,props:n,_owner:i}},s.createContext=function(e){return(e={$$typeof:h,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:p,_context:e},e.Consumer=e},s.createElement=N,s.createFactory=function(e){var t=N.bind(null,e);return t.type=e,t},s.createRef=function(){return{current:null}},s.forwardRef=function(e){return{$$typeof:m,render:e}},s.isValidElement=R,s.lazy=function(e){return{$$typeof:y,_payload:{_status:-1,_result:e},_init:F}},s.memo=function(e,t){return{$$typeof:g,type:e,compare:void 0===t?null:t}},s.startTransition=function(e){var t=D.transition;D.transition={};try{e()}finally{D.transition=t}},s.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},s.useCallback=function(e,t){return z.current.useCallback(e,t)},s.useContext=function(e){return z.current.useContext(e)},s.useDebugValue=function(){},s.useDeferredValue=function(e){return z.current.useDeferredValue(e)},s.useEffect=function(e,t){return z.current.useEffect(e,t)},s.useId=function(){return z.current.useId()},s.useImperativeHandle=function(e,t,r){return z.current.useImperativeHandle(e,t,r)},s.useInsertionEffect=function(e,t){return z.current.useInsertionEffect(e,t)},s.useLayoutEffect=function(e,t){return z.current.useLayoutEffect(e,t)},s.useMemo=function(e,t){return z.current.useMemo(e,t)},s.useReducer=function(e,t,r){return z.current.useReducer(e,t,r)},s.useRef=function(e){return z.current.useRef(e)},s.useState=function(e){return z.current.useState(e)},s.useSyncExternalStore=function(e,t,r){return z.current.useSyncExternalStore(e,t,r)},s.useTransition=function(){return z.current.useTransition()},s.version="18.2.0",i.exports=s;var B=n(a),V=e({__proto__:null,default:B},[a]),U={},W={},q={get exports(){return W},set exports(e){W=e}},K={},H={},G={get exports(){return H},set exports(e){H=e}},Q={};
|
|
2
2
|
/**
|
|
3
3
|
* @license React
|
|
4
4
|
* scheduler.production.min.js
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* This source code is licensed under the MIT license found in the
|
|
9
9
|
* LICENSE file in the root directory of this source tree.
|
|
10
10
|
*/
|
|
11
|
-
!function(e){function t(e,t){var r=e.length;e.push(t);e:for(;0<r;){var n=r-1>>>1,a=e[n];if(!(0<o(a,t)))break e;e[n]=t,e[r]=a,r=n}}function r(e){return 0===e.length?null:e[0]}function n(e){if(0===e.length)return null;var t=e[0],r=e.pop();if(r!==t){e[0]=r;e:for(var n=0,a=e.length,i=a>>>1;n<i;){var s=2*(n+1)-1,l=e[s],u=s+1,c=e[u];if(0>o(l,r))u<a&&0>o(c,l)?(e[n]=c,e[u]=r,n=u):(e[n]=l,e[s]=r,n=s);else{if(!(u<a&&0>o(c,r)))break e;e[n]=c,e[u]=r,n=u}}}return t}function o(e,t){var r=e.sortIndex-t.sortIndex;return 0!==r?r:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){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,
|
|
11
|
+
!function(e){function t(e,t){var r=e.length;e.push(t);e:for(;0<r;){var n=r-1>>>1,a=e[n];if(!(0<o(a,t)))break e;e[n]=t,e[r]=a,r=n}}function r(e){return 0===e.length?null:e[0]}function n(e){if(0===e.length)return null;var t=e[0],r=e.pop();if(r!==t){e[0]=r;e:for(var n=0,a=e.length,i=a>>>1;n<i;){var s=2*(n+1)-1,l=e[s],u=s+1,c=e[u];if(0>o(l,r))u<a&&0>o(c,l)?(e[n]=c,e[u]=r,n=u):(e[n]=l,e[s]=r,n=s);else{if(!(u<a&&0>o(c,r)))break e;e[n]=c,e[u]=r,n=u}}}return t}function o(e,t){var r=e.sortIndex-t.sortIndex;return 0!==r?r:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){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,m=!1,v="function"==typeof setTimeout?setTimeout:null,g="function"==typeof clearTimeout?clearTimeout:null,y="undefined"!=typeof setImmediate?setImmediate:null;function b(e){for(var o=r(u);null!==o;){if(null===o.callback)n(u);else{if(!(o.startTime<=e))break;n(u),o.sortIndex=o.expirationTime,t(l,o)}o=r(u)}}function w(e){if(m=!1,b(e),!h)if(null!==r(l))h=!0,R(S);else{var t=r(u);null!==t&&T(w,t.startTime-e)}}function S(t,o){h=!1,m&&(m=!1,g(k),k=-1),p=!0;var a=f;try{for(b(o),d=r(l);null!==d&&(!(d.expirationTime>o)||t&&!C());){var i=d.callback;if("function"==typeof i){d.callback=null,f=d.priorityLevel;var s=i(d.expirationTime<=o);o=e.unstable_now(),"function"==typeof s?d.callback=s:d===r(l)&&n(l),b(o)}else n(l);d=r(l)}if(null!==d)var c=!0;else{var v=r(u);null!==v&&T(w,v.startTime-o),c=!1}return c}finally{d=null,f=a,p=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var x,_=!1,$=null,k=-1,E=5,j=-1;function C(){return!(e.unstable_now()-j<E)}function O(){if(null!==$){var t=e.unstable_now();j=t;var r=!0;try{r=$(!0,t)}finally{r?x():(_=!1,$=null)}}else _=!1}if("function"==typeof y)x=function(){y(O)};else if("undefined"!=typeof MessageChannel){var P=new MessageChannel,N=P.port2;P.port1.onmessage=O,x=function(){N.postMessage(null)}}else x=function(){v(O,0)};function R(e){$=e,_||(_=!0,x())}function T(t,r){k=v((function(){t(e.unstable_now())}),r)}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(e){e.callback=null},e.unstable_continueExecution=function(){h||p||(h=!0,R(S))},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):E=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return r(l)},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var r=f;f=t;try{return e()}finally{f=r}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var r=f;f=e;try{return t()}finally{f=r}},e.unstable_scheduleCallback=function(n,o,a){var i=e.unstable_now();switch("object"==typeof a&&null!==a?a="number"==typeof(a=a.delay)&&0<a?i+a:i:a=i,n){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return n={id:c++,callback:o,priorityLevel:n,startTime:a,expirationTime:s=a+s,sortIndex:-1},a>i?(n.sortIndex=a,t(u,n),null===r(l)&&n===r(u)&&(m?(g(k),k=-1):m=!0,T(w,a-i))):(n.sortIndex=s,t(l,n),h||p||(h=!0,R(S))),n},e.unstable_shouldYield=C,e.unstable_wrapCallback=function(e){var t=f;return function(){var r=f;f=t;try{return e.apply(this,arguments)}finally{f=r}}}}(Q),function(e){e.exports=Q}(G);
|
|
12
12
|
/**
|
|
13
13
|
* @license React
|
|
14
14
|
* react-dom.production.min.js
|
|
@@ -18,28 +18,49 @@
|
|
|
18
18
|
* This source code is licensed under the MIT license found in the
|
|
19
19
|
* LICENSE file in the root directory of this source tree.
|
|
20
20
|
*/
|
|
21
|
-
var X=a,Y=H;function J(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Z=new Set,ee={};function te(e,t){re(e,t),re(e+"Capture",t)}function re(e,t){for(ee[e]=t,e=0;e<t.length;e++)Z.add(t[e])}var ne=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),oe=Object.prototype.hasOwnProperty,ae=/^[: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]*$/,ie={},se={};function le(e,t,r,n,o,a,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=n,this.attributeNamespace=o,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=i}var ue={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){ue[e]=new le(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];ue[t]=new le(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){ue[e]=new le(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){ue[e]=new le(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){ue[e]=new le(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){ue[e]=new le(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){ue[e]=new le(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){ue[e]=new le(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){ue[e]=new le(e,5,!1,e.toLowerCase(),null,!1,!1)}));var ce=/[\-:]([a-z])/g;function de(e){return e[1].toUpperCase()}function fe(e,t,r,n){var o=ue.hasOwnProperty(t)?ue[t]:null;(null!==o?0!==o.type:n||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,r,n){if(null==t||function(e,t,r,n){if(null!==r&&0===r.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!n&&(null!==r?!r.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,r,n))return!0;if(n)return!1;if(null!==r)switch(r.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,r,o,n)&&(r=null),n||null===o?function(e){return!!oe.call(se,e)||!oe.call(ie,e)&&(ae.test(e)?se[e]=!0:(ie[e]=!0,!1))}(t)&&(null===r?e.removeAttribute(t):e.setAttribute(t,""+r)):o.mustUseProperty?e[o.propertyName]=null===r?3!==o.type&&"":r:(t=o.attributeName,n=o.attributeNamespace,null===r?e.removeAttribute(t):(r=3===(o=o.type)||4===o&&!0===r?"":""+r,n?e.setAttributeNS(n,t,r):e.setAttribute(t,r))))}"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(ce,de);ue[t]=new le(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(ce,de);ue[t]=new le(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(ce,de);ue[t]=new le(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){ue[e]=new le(e,1,!1,e.toLowerCase(),null,!1,!1)})),ue.xlinkHref=new le("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){ue[e]=new le(e,1,!1,e.toLowerCase(),null,!0,!0)}));var pe=X.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,me=Symbol.for("react.element"),he=Symbol.for("react.portal"),ve=Symbol.for("react.fragment"),ye=Symbol.for("react.strict_mode"),ge=Symbol.for("react.profiler"),be=Symbol.for("react.provider"),we=Symbol.for("react.context"),Se=Symbol.for("react.forward_ref"),xe=Symbol.for("react.suspense"),$e=Symbol.for("react.suspense_list"),ke=Symbol.for("react.memo"),_e=Symbol.for("react.lazy"),Ee=Symbol.for("react.offscreen"),Ce=Symbol.iterator;function Pe(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=Ce&&e[Ce]||e["@@iterator"])?e:null}var je,Oe=Object.assign;function Ne(e){if(void 0===je)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);je=t&&t[1]||""}return"\n"+je+e}var Re=!1;function Te(e,t){if(!e||Re)return"";Re=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var n=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){n=e}e.call(t.prototype)}else{try{throw Error()}catch(e){n=e}e()}}catch(t){if(t&&n&&"string"==typeof t.stack){for(var o=t.stack.split("\n"),a=n.stack.split("\n"),i=o.length-1,s=a.length-1;1<=i&&0<=s&&o[i]!==a[s];)s--;for(;1<=i&&0<=s;i--,s--)if(o[i]!==a[s]){if(1!==i||1!==s)do{if(i--,0>--s||o[i]!==a[s]){var l="\n"+o[i].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=i&&0<=s);break}}}finally{Re=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?Ne(e):""}function Ae(e){switch(e.tag){case 5:return Ne(e.type);case 16:return Ne("Lazy");case 13:return Ne("Suspense");case 19:return Ne("SuspenseList");case 0:case 2:case 15:return e=Te(e.type,!1);case 11:return e=Te(e.type.render,!1);case 1:return e=Te(e.type,!0);default:return""}}function Ie(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case ve:return"Fragment";case he:return"Portal";case ge:return"Profiler";case ye:return"StrictMode";case xe:return"Suspense";case $e:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case we:return(e.displayName||"Context")+".Consumer";case be:return(e._context.displayName||"Context")+".Provider";case Se:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case ke:return null!==(t=e.displayName||null)?t:Ie(e.type)||"Memo";case _e:t=e._payload,e=e._init;try{return Ie(e(t))}catch(e){}}return null}function Me(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=(e=t.render).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 Ie(t);case 8:return t===ye?"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("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function Fe(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function De(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function ze(e){e._valueTracker||(e._valueTracker=function(e){var t=De(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==r&&"function"==typeof r.get&&"function"==typeof r.set){var o=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){n=""+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function Le(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=De(e)?e.checked?"true":"false":e.value),(e=n)!==r&&(t.setValue(e),!0)}function Be(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Ve(e,t){var r=t.checked;return Oe({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=r?r:e._wrapperState.initialChecked})}function Ue(e,t){var r=null==t.defaultValue?"":t.defaultValue,n=null!=t.checked?t.checked:t.defaultChecked;r=Fe(null!=t.value?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function We(e,t){null!=(t=t.checked)&&fe(e,"checked",t,!1)}function qe(e,t){We(e,t);var r=Fe(t.value),n=t.type;if(null!=r)"number"===n?(0===r&&""===e.value||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if("submit"===n||"reset"===n)return void e.removeAttribute("value");t.hasOwnProperty("value")?He(e,t.type,r):t.hasOwnProperty("defaultValue")&&He(e,t.type,Fe(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Ke(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!("submit"!==n&&"reset"!==n||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}""!==(r=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==r&&(e.name=r)}function He(e,t,r){"number"===t&&Be(e.ownerDocument)===e||(null==r?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var Ge=Array.isArray;function Qe(e,t,r,n){if(e=e.options,t){t={};for(var o=0;o<r.length;o++)t["$"+r[o]]=!0;for(r=0;r<e.length;r++)o=t.hasOwnProperty("$"+e[r].value),e[r].selected!==o&&(e[r].selected=o),o&&n&&(e[r].defaultSelected=!0)}else{for(r=""+Fe(r),t=null,o=0;o<e.length;o++){if(e[o].value===r)return e[o].selected=!0,void(n&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function Xe(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(J(91));return Oe({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Ye(e,t){var r=t.value;if(null==r){if(r=t.children,t=t.defaultValue,null!=r){if(null!=t)throw Error(J(92));if(Ge(r)){if(1<r.length)throw Error(J(93));r=r[0]}t=r}null==t&&(t=""),r=t}e._wrapperState={initialValue:Fe(r)}}function Je(e,t){var r=Fe(t.value),n=Fe(t.defaultValue);null!=r&&((r=""+r)!==e.value&&(e.value=r),null==t.defaultValue&&e.defaultValue!==r&&(e.defaultValue=r)),null!=n&&(e.defaultValue=""+n)}function Ze(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function et(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function tt(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?et(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var rt,nt=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,r,n,o){MSApp.execUnsafeLocalFunction((function(){return e(t,r)}))}:e}((function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((rt=rt||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=rt.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}}));function ot(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&3===r.nodeType)return void(r.nodeValue=t)}e.textContent=t}var at={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},it=["Webkit","ms","Moz","O"];function st(e,t,r){return null==t||"boolean"==typeof t||""===t?"":r||"number"!=typeof t||0===t||at.hasOwnProperty(e)&&at[e]?(""+t).trim():t+"px"}function lt(e,t){for(var r in e=e.style,t)if(t.hasOwnProperty(r)){var n=0===r.indexOf("--"),o=st(r,t[r],n);"float"===r&&(r="cssFloat"),n?e.setProperty(r,o):e[r]=o}}Object.keys(at).forEach((function(e){it.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),at[t]=at[e]}))}));var ut=Oe({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 ct(e,t){if(t){if(ut[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(J(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(J(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(J(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(J(62))}}function dt(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;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 ft=null;function pt(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var mt=null,ht=null,vt=null;function yt(e){if(e=fa(e)){if("function"!=typeof mt)throw Error(J(280));var t=e.stateNode;t&&(t=ma(t),mt(e.stateNode,e.type,t))}}function gt(e){ht?vt?vt.push(e):vt=[e]:ht=e}function bt(){if(ht){var e=ht,t=vt;if(vt=ht=null,yt(e),t)for(e=0;e<t.length;e++)yt(t[e])}}function wt(e,t){return e(t)}function St(){}var xt=!1;function $t(e,t,r){if(xt)return e(t,r);xt=!0;try{return wt(e,t,r)}finally{xt=!1,(null!==ht||null!==vt)&&(St(),bt())}}function kt(e,t){var r=e.stateNode;if(null===r)return null;var n=ma(r);if(null===n)return null;r=n[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(n=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!n;break e;default:e=!1}if(e)return null;if(r&&"function"!=typeof r)throw Error(J(231,t,typeof r));return r}var _t=!1;if(ne)try{var Et={};Object.defineProperty(Et,"passive",{get:function(){_t=!0}}),window.addEventListener("test",Et,Et),window.removeEventListener("test",Et,Et)}catch(oU){_t=!1}function Ct(e,t,r,n,o,a,i,s,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(r,u)}catch(e){this.onError(e)}}var Pt=!1,jt=null,Ot=!1,Nt=null,Rt={onError:function(e){Pt=!0,jt=e}};function Tt(e,t,r,n,o,a,i,s,l){Pt=!1,jt=null,Ct.apply(Rt,arguments)}function At(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(4098&(t=e).flags)&&(r=t.return),e=t.return}while(e)}return 3===t.tag?r:null}function It(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function Mt(e){if(At(e)!==e)throw Error(J(188))}function Ft(e){return e=function(e){var t=e.alternate;if(!t){if(null===(t=At(e)))throw Error(J(188));return t!==e?null:e}for(var r=e,n=t;;){var o=r.return;if(null===o)break;var a=o.alternate;if(null===a){if(null!==(n=o.return)){r=n;continue}break}if(o.child===a.child){for(a=o.child;a;){if(a===r)return Mt(o),e;if(a===n)return Mt(o),t;a=a.sibling}throw Error(J(188))}if(r.return!==n.return)r=o,n=a;else{for(var i=!1,s=o.child;s;){if(s===r){i=!0,r=o,n=a;break}if(s===n){i=!0,n=o,r=a;break}s=s.sibling}if(!i){for(s=a.child;s;){if(s===r){i=!0,r=a,n=o;break}if(s===n){i=!0,n=a,r=o;break}s=s.sibling}if(!i)throw Error(J(189))}}if(r.alternate!==n)throw Error(J(190))}if(3!==r.tag)throw Error(J(188));return r.stateNode.current===r?e:t}(e),null!==e?Dt(e):null}function Dt(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=Dt(e);if(null!==t)return t;e=e.sibling}return null}var zt=Y.unstable_scheduleCallback,Lt=Y.unstable_cancelCallback,Bt=Y.unstable_shouldYield,Vt=Y.unstable_requestPaint,Ut=Y.unstable_now,Wt=Y.unstable_getCurrentPriorityLevel,qt=Y.unstable_ImmediatePriority,Kt=Y.unstable_UserBlockingPriority,Ht=Y.unstable_NormalPriority,Gt=Y.unstable_LowPriority,Qt=Y.unstable_IdlePriority,Xt=null,Yt=null;var Jt=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(Zt(e)/er|0)|0},Zt=Math.log,er=Math.LN2;var tr=64,rr=4194304;function nr(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 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function or(e,t){var r=e.pendingLanes;if(0===r)return 0;var n=0,o=e.suspendedLanes,a=e.pingedLanes,i=268435455&r;if(0!==i){var s=i&~o;0!==s?n=nr(s):0!==(a&=i)&&(n=nr(a))}else 0!==(i=r&~o)?n=nr(i):0!==a&&(n=nr(a));if(0===n)return 0;if(0!==t&&t!==n&&0==(t&o)&&((o=n&-n)>=(a=t&-t)||16===o&&0!=(4194240&a)))return t;if(0!=(4&n)&&(n|=16&r),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=n;0<t;)o=1<<(r=31-Jt(t)),n|=e[r],t&=~o;return n}function ar(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function ir(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function sr(){var e=tr;return 0==(4194240&(tr<<=1))&&(tr=64),e}function lr(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function ur(e,t,r){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-Jt(t)]=r}function cr(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var n=31-Jt(r),o=1<<n;o&t|e[n]&t&&(e[n]|=t),r&=~o}}var dr=0;function fr(e){return 1<(e&=-e)?4<e?0!=(268435455&e)?16:536870912:4:1}var pr,mr,hr,vr,yr,gr=!1,br=[],wr=null,Sr=null,xr=null,$r=new Map,kr=new Map,_r=[],Er="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Cr(e,t){switch(e){case"focusin":case"focusout":wr=null;break;case"dragenter":case"dragleave":Sr=null;break;case"mouseover":case"mouseout":xr=null;break;case"pointerover":case"pointerout":$r.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":kr.delete(t.pointerId)}}function Pr(e,t,r,n,o,a){return null===e||e.nativeEvent!==a?(e={blockedOn:t,domEventName:r,eventSystemFlags:n,nativeEvent:a,targetContainers:[o]},null!==t&&(null!==(t=fa(t))&&mr(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function jr(e){var t=da(e.target);if(null!==t){var r=At(t);if(null!==r)if(13===(t=r.tag)){if(null!==(t=It(r)))return e.blockedOn=t,void yr(e.priority,(function(){hr(r)}))}else if(3===t&&r.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===r.tag?r.stateNode.containerInfo:null)}e.blockedOn=null}function Or(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var r=Br(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==r)return null!==(t=fa(r))&&mr(t),e.blockedOn=r,!1;var n=new(r=e.nativeEvent).constructor(r.type,r);ft=n,r.target.dispatchEvent(n),ft=null,t.shift()}return!0}function Nr(e,t,r){Or(e)&&r.delete(t)}function Rr(){gr=!1,null!==wr&&Or(wr)&&(wr=null),null!==Sr&&Or(Sr)&&(Sr=null),null!==xr&&Or(xr)&&(xr=null),$r.forEach(Nr),kr.forEach(Nr)}function Tr(e,t){e.blockedOn===t&&(e.blockedOn=null,gr||(gr=!0,Y.unstable_scheduleCallback(Y.unstable_NormalPriority,Rr)))}function Ar(e){function t(t){return Tr(t,e)}if(0<br.length){Tr(br[0],e);for(var r=1;r<br.length;r++){var n=br[r];n.blockedOn===e&&(n.blockedOn=null)}}for(null!==wr&&Tr(wr,e),null!==Sr&&Tr(Sr,e),null!==xr&&Tr(xr,e),$r.forEach(t),kr.forEach(t),r=0;r<_r.length;r++)(n=_r[r]).blockedOn===e&&(n.blockedOn=null);for(;0<_r.length&&null===(r=_r[0]).blockedOn;)jr(r),null===r.blockedOn&&_r.shift()}var Ir=pe.ReactCurrentBatchConfig,Mr=!0;function Fr(e,t,r,n){var o=dr,a=Ir.transition;Ir.transition=null;try{dr=1,zr(e,t,r,n)}finally{dr=o,Ir.transition=a}}function Dr(e,t,r,n){var o=dr,a=Ir.transition;Ir.transition=null;try{dr=4,zr(e,t,r,n)}finally{dr=o,Ir.transition=a}}function zr(e,t,r,n){if(Mr){var o=Br(e,t,r,n);if(null===o)Fo(e,t,n,Lr,r),Cr(e,n);else if(function(e,t,r,n,o){switch(t){case"focusin":return wr=Pr(wr,e,t,r,n,o),!0;case"dragenter":return Sr=Pr(Sr,e,t,r,n,o),!0;case"mouseover":return xr=Pr(xr,e,t,r,n,o),!0;case"pointerover":var a=o.pointerId;return $r.set(a,Pr($r.get(a)||null,e,t,r,n,o)),!0;case"gotpointercapture":return a=o.pointerId,kr.set(a,Pr(kr.get(a)||null,e,t,r,n,o)),!0}return!1}(o,e,t,r,n))n.stopPropagation();else if(Cr(e,n),4&t&&-1<Er.indexOf(e)){for(;null!==o;){var a=fa(o);if(null!==a&&pr(a),null===(a=Br(e,t,r,n))&&Fo(e,t,n,Lr,r),a===o)break;o=a}null!==o&&n.stopPropagation()}else Fo(e,t,n,null,r)}}var Lr=null;function Br(e,t,r,n){if(Lr=null,null!==(e=da(e=pt(n))))if(null===(t=At(e)))e=null;else if(13===(r=t.tag)){if(null!==(e=It(t)))return e;e=null}else if(3===r){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Lr=e,null}function Vr(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Wt()){case qt:return 1;case Kt:return 4;case Ht:case Gt:return 16;case Qt:return 536870912;default:return 16}default:return 16}}var Ur=null,Wr=null,qr=null;function Kr(){if(qr)return qr;var e,t,r=Wr,n=r.length,o="value"in Ur?Ur.value:Ur.textContent,a=o.length;for(e=0;e<n&&r[e]===o[e];e++);var i=n-e;for(t=1;t<=i&&r[n-t]===o[a-t];t++);return qr=o.slice(e,1<t?1-t:void 0)}function Hr(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function Gr(){return!0}function Qr(){return!1}function Xr(e){function t(t,r,n,o,a){for(var i in this._reactName=t,this._targetInst=n,this.type=r,this.nativeEvent=o,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(i)&&(t=e[i],this[i]=t?t(o):o[i]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?Gr:Qr,this.isPropagationStopped=Qr,this}return Oe(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=Gr)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=Gr)},persist:function(){},isPersistent:Gr}),t}var Yr,Jr,Zr,en={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},tn=Xr(en),rn=Oe({},en,{view:0,detail:0}),nn=Xr(rn),on=Oe({},rn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:yn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Zr&&(Zr&&"mousemove"===e.type?(Yr=e.screenX-Zr.screenX,Jr=e.screenY-Zr.screenY):Jr=Yr=0,Zr=e),Yr)},movementY:function(e){return"movementY"in e?e.movementY:Jr}}),an=Xr(on),sn=Xr(Oe({},on,{dataTransfer:0})),ln=Xr(Oe({},rn,{relatedTarget:0})),un=Xr(Oe({},en,{animationName:0,elapsedTime:0,pseudoElement:0})),cn=Oe({},en,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),dn=Xr(cn),fn=Xr(Oe({},en,{data:0})),pn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},mn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},hn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function vn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=hn[e])&&!!t[e]}function yn(){return vn}var gn=Oe({},rn,{key:function(e){if(e.key){var t=pn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=Hr(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?mn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:yn,charCode:function(e){return"keypress"===e.type?Hr(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?Hr(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),bn=Xr(gn),wn=Xr(Oe({},on,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Sn=Xr(Oe({},rn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:yn})),xn=Xr(Oe({},en,{propertyName:0,elapsedTime:0,pseudoElement:0})),$n=Oe({},on,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),kn=Xr($n),_n=[9,13,27,32],En=ne&&"CompositionEvent"in window,Cn=null;ne&&"documentMode"in document&&(Cn=document.documentMode);var Pn=ne&&"TextEvent"in window&&!Cn,jn=ne&&(!En||Cn&&8<Cn&&11>=Cn),On=String.fromCharCode(32),Nn=!1;function Rn(e,t){switch(e){case"keyup":return-1!==_n.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Tn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var An=!1;var In={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Mn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!In[e.type]:"textarea"===t}function Fn(e,t,r,n){gt(n),0<(t=zo(t,"onChange")).length&&(r=new tn("onChange","change",null,r,n),e.push({event:r,listeners:t}))}var Dn=null,zn=null;function Ln(e){No(e,0)}function Bn(e){if(Le(pa(e)))return e}function Vn(e,t){if("change"===e)return t}var Un=!1;if(ne){var Wn;if(ne){var qn="oninput"in document;if(!qn){var Kn=document.createElement("div");Kn.setAttribute("oninput","return;"),qn="function"==typeof Kn.oninput}Wn=qn}else Wn=!1;Un=Wn&&(!document.documentMode||9<document.documentMode)}function Hn(){Dn&&(Dn.detachEvent("onpropertychange",Gn),zn=Dn=null)}function Gn(e){if("value"===e.propertyName&&Bn(zn)){var t=[];Fn(t,zn,e,pt(e)),$t(Ln,t)}}function Qn(e,t,r){"focusin"===e?(Hn(),zn=r,(Dn=t).attachEvent("onpropertychange",Gn)):"focusout"===e&&Hn()}function Xn(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Bn(zn)}function Yn(e,t){if("click"===e)return Bn(t)}function Jn(e,t){if("input"===e||"change"===e)return Bn(t)}var Zn="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function eo(e,t){if(Zn(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(n=0;n<r.length;n++){var o=r[n];if(!oe.call(t,o)||!Zn(e[o],t[o]))return!1}return!0}function to(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ro(e,t){var r,n=to(e);for(e=0;n;){if(3===n.nodeType){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=to(n)}}function no(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?no(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function oo(){for(var e=window,t=Be();t instanceof e.HTMLIFrameElement;){try{var r="string"==typeof t.contentWindow.location.href}catch(e){r=!1}if(!r)break;t=Be((e=t.contentWindow).document)}return t}function ao(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function io(e){var t=oo(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&no(r.ownerDocument.documentElement,r)){if(null!==n&&ao(r))if(t=n.start,void 0===(e=n.end)&&(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).getSelection){e=e.getSelection();var o=r.textContent.length,a=Math.min(n.start,o);n=void 0===n.end?a:Math.min(n.end,o),!e.extend&&a>n&&(o=n,n=a,a=o),o=ro(r,a);var i=ro(r,n);o&&i&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&((t=t.createRange()).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;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof r.focus&&r.focus(),r=0;r<t.length;r++)(e=t[r]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var so=ne&&"documentMode"in document&&11>=document.documentMode,lo=null,uo=null,co=null,fo=!1;function po(e,t,r){var n=r.window===r?r.document:9===r.nodeType?r:r.ownerDocument;fo||null==lo||lo!==Be(n)||("selectionStart"in(n=lo)&&ao(n)?n={start:n.selectionStart,end:n.selectionEnd}:n={anchorNode:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset},co&&eo(co,n)||(co=n,0<(n=zo(uo,"onSelect")).length&&(t=new tn("onSelect","select",null,t,r),e.push({event:t,listeners:n}),t.target=lo)))}function mo(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var ho={animationend:mo("Animation","AnimationEnd"),animationiteration:mo("Animation","AnimationIteration"),animationstart:mo("Animation","AnimationStart"),transitionend:mo("Transition","TransitionEnd")},vo={},yo={};function go(e){if(vo[e])return vo[e];if(!ho[e])return e;var t,r=ho[e];for(t in r)if(r.hasOwnProperty(t)&&t in yo)return vo[e]=r[t];return e}ne&&(yo=document.createElement("div").style,"AnimationEvent"in window||(delete ho.animationend.animation,delete ho.animationiteration.animation,delete ho.animationstart.animation),"TransitionEvent"in window||delete ho.transitionend.transition);var bo=go("animationend"),wo=go("animationiteration"),So=go("animationstart"),xo=go("transitionend"),$o=new Map,ko="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function _o(e,t){$o.set(e,t),te(t,[e])}for(var Eo=0;Eo<ko.length;Eo++){var Co=ko[Eo];_o(Co.toLowerCase(),"on"+(Co[0].toUpperCase()+Co.slice(1)))}_o(bo,"onAnimationEnd"),_o(wo,"onAnimationIteration"),_o(So,"onAnimationStart"),_o("dblclick","onDoubleClick"),_o("focusin","onFocus"),_o("focusout","onBlur"),_o(xo,"onTransitionEnd"),re("onMouseEnter",["mouseout","mouseover"]),re("onMouseLeave",["mouseout","mouseover"]),re("onPointerEnter",["pointerout","pointerover"]),re("onPointerLeave",["pointerout","pointerover"]),te("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),te("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),te("onBeforeInput",["compositionend","keypress","textInput","paste"]),te("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),te("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),te("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Po="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),jo=new Set("cancel close invalid load scroll toggle".split(" ").concat(Po));function Oo(e,t,r){var n=e.type||"unknown-event";e.currentTarget=r,function(e,t,r,n,o,a,i,s,l){if(Tt.apply(this,arguments),Pt){if(!Pt)throw Error(J(198));var u=jt;Pt=!1,jt=null,Ot||(Ot=!0,Nt=u)}}(n,t,void 0,e),e.currentTarget=null}function No(e,t){t=0!=(4&t);for(var r=0;r<e.length;r++){var n=e[r],o=n.event;n=n.listeners;e:{var a=void 0;if(t)for(var i=n.length-1;0<=i;i--){var s=n[i],l=s.instance,u=s.currentTarget;if(s=s.listener,l!==a&&o.isPropagationStopped())break e;Oo(o,s,u),a=l}else for(i=0;i<n.length;i++){if(l=(s=n[i]).instance,u=s.currentTarget,s=s.listener,l!==a&&o.isPropagationStopped())break e;Oo(o,s,u),a=l}}}if(Ot)throw e=Nt,Ot=!1,Nt=null,e}function Ro(e,t){var r=t[la];void 0===r&&(r=t[la]=new Set);var n=e+"__bubble";r.has(n)||(Mo(t,e,2,!1),r.add(n))}function To(e,t,r){var n=0;t&&(n|=4),Mo(r,e,n,t)}var Ao="_reactListening"+Math.random().toString(36).slice(2);function Io(e){if(!e[Ao]){e[Ao]=!0,Z.forEach((function(t){"selectionchange"!==t&&(jo.has(t)||To(t,!1,e),To(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Ao]||(t[Ao]=!0,To("selectionchange",!1,t))}}function Mo(e,t,r,n){switch(Vr(t)){case 1:var o=Fr;break;case 4:o=Dr;break;default:o=zr}r=o.bind(null,t,r,e),o=void 0,!_t||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),n?void 0!==o?e.addEventListener(t,r,{capture:!0,passive:o}):e.addEventListener(t,r,!0):void 0!==o?e.addEventListener(t,r,{passive:o}):e.addEventListener(t,r,!1)}function Fo(e,t,r,n,o){var a=n;if(0==(1&t)&&0==(2&t)&&null!==n)e:for(;;){if(null===n)return;var i=n.tag;if(3===i||4===i){var s=n.stateNode.containerInfo;if(s===o||8===s.nodeType&&s.parentNode===o)break;if(4===i)for(i=n.return;null!==i;){var l=i.tag;if((3===l||4===l)&&((l=i.stateNode.containerInfo)===o||8===l.nodeType&&l.parentNode===o))return;i=i.return}for(;null!==s;){if(null===(i=da(s)))return;if(5===(l=i.tag)||6===l){n=a=i;continue e}s=s.parentNode}}n=n.return}$t((function(){var n=a,o=pt(r),i=[];e:{var s=$o.get(e);if(void 0!==s){var l=tn,u=e;switch(e){case"keypress":if(0===Hr(r))break e;case"keydown":case"keyup":l=bn;break;case"focusin":u="focus",l=ln;break;case"focusout":u="blur",l=ln;break;case"beforeblur":case"afterblur":l=ln;break;case"click":if(2===r.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=an;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=sn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=Sn;break;case bo:case wo:case So:l=un;break;case xo:l=xn;break;case"scroll":l=nn;break;case"wheel":l=kn;break;case"copy":case"cut":case"paste":l=dn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=wn}var c=0!=(4&t),d=!c&&"scroll"===e,f=c?null!==s?s+"Capture":null:s;c=[];for(var p,m=n;null!==m;){var h=(p=m).stateNode;if(5===p.tag&&null!==h&&(p=h,null!==f&&(null!=(h=kt(m,f))&&c.push(Do(m,h,p)))),d)break;m=m.return}0<c.length&&(s=new l(s,u,null,r,o),i.push({event:s,listeners:c}))}}if(0==(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||r===ft||!(u=r.relatedTarget||r.fromElement)||!da(u)&&!u[sa])&&(l||s)&&(s=o.window===o?o:(s=o.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=n,null!==(u=(u=r.relatedTarget||r.toElement)?da(u):null)&&(u!==(d=At(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(l=null,u=n),l!==u)){if(c=an,h="onMouseLeave",f="onMouseEnter",m="mouse","pointerout"!==e&&"pointerover"!==e||(c=wn,h="onPointerLeave",f="onPointerEnter",m="pointer"),d=null==l?s:pa(l),p=null==u?s:pa(u),(s=new c(h,m+"leave",l,r,o)).target=d,s.relatedTarget=p,h=null,da(o)===n&&((c=new c(f,m+"enter",u,r,o)).target=p,c.relatedTarget=d,h=c),d=h,l&&u)e:{for(f=u,m=0,p=c=l;p;p=Lo(p))m++;for(p=0,h=f;h;h=Lo(h))p++;for(;0<m-p;)c=Lo(c),m--;for(;0<p-m;)f=Lo(f),p--;for(;m--;){if(c===f||null!==f&&c===f.alternate)break e;c=Lo(c),f=Lo(f)}c=null}else c=null;null!==l&&Bo(i,s,l,c,!1),null!==u&&null!==d&&Bo(i,d,u,c,!0)}if("select"===(l=(s=n?pa(n):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var v=Vn;else if(Mn(s))if(Un)v=Jn;else{v=Xn;var y=Qn}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(v=Yn);switch(v&&(v=v(e,n))?Fn(i,v,r,o):(y&&y(e,s,n),"focusout"===e&&(y=s._wrapperState)&&y.controlled&&"number"===s.type&&He(s,"number",s.value)),y=n?pa(n):window,e){case"focusin":(Mn(y)||"true"===y.contentEditable)&&(lo=y,uo=n,co=null);break;case"focusout":co=uo=lo=null;break;case"mousedown":fo=!0;break;case"contextmenu":case"mouseup":case"dragend":fo=!1,po(i,r,o);break;case"selectionchange":if(so)break;case"keydown":case"keyup":po(i,r,o)}var g;if(En)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else An?Rn(e,r)&&(b="onCompositionEnd"):"keydown"===e&&229===r.keyCode&&(b="onCompositionStart");b&&(jn&&"ko"!==r.locale&&(An||"onCompositionStart"!==b?"onCompositionEnd"===b&&An&&(g=Kr()):(Wr="value"in(Ur=o)?Ur.value:Ur.textContent,An=!0)),0<(y=zo(n,b)).length&&(b=new fn(b,e,null,r,o),i.push({event:b,listeners:y}),g?b.data=g:null!==(g=Tn(r))&&(b.data=g))),(g=Pn?function(e,t){switch(e){case"compositionend":return Tn(t);case"keypress":return 32!==t.which?null:(Nn=!0,On);case"textInput":return(e=t.data)===On&&Nn?null:e;default:return null}}(e,r):function(e,t){if(An)return"compositionend"===e||!En&&Rn(e,t)?(e=Kr(),qr=Wr=Ur=null,An=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return jn&&"ko"!==t.locale?null:t.data}}(e,r))&&(0<(n=zo(n,"onBeforeInput")).length&&(o=new fn("onBeforeInput","beforeinput",null,r,o),i.push({event:o,listeners:n}),o.data=g))}No(i,t)}))}function Do(e,t,r){return{instance:e,listener:t,currentTarget:r}}function zo(e,t){for(var r=t+"Capture",n=[];null!==e;){var o=e,a=o.stateNode;5===o.tag&&null!==a&&(o=a,null!=(a=kt(e,r))&&n.unshift(Do(e,a,o)),null!=(a=kt(e,t))&&n.push(Do(e,a,o))),e=e.return}return n}function Lo(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Bo(e,t,r,n,o){for(var a=t._reactName,i=[];null!==r&&r!==n;){var s=r,l=s.alternate,u=s.stateNode;if(null!==l&&l===n)break;5===s.tag&&null!==u&&(s=u,o?null!=(l=kt(r,a))&&i.unshift(Do(r,l,s)):o||null!=(l=kt(r,a))&&i.push(Do(r,l,s))),r=r.return}0!==i.length&&e.push({event:t,listeners:i})}var Vo=/\r\n?/g,Uo=/\u0000|\uFFFD/g;function Wo(e){return("string"==typeof e?e:""+e).replace(Vo,"\n").replace(Uo,"")}function qo(e,t,r){if(t=Wo(t),Wo(e)!==t&&r)throw Error(J(425))}function Ko(){}var Ho=null,Go=null;function Qo(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var Xo="function"==typeof setTimeout?setTimeout:void 0,Yo="function"==typeof clearTimeout?clearTimeout:void 0,Jo="function"==typeof Promise?Promise:void 0,Zo="function"==typeof queueMicrotask?queueMicrotask:void 0!==Jo?function(e){return Jo.resolve(null).then(e).catch(ea)}:Xo;function ea(e){setTimeout((function(){throw e}))}function ta(e,t){var r=t,n=0;do{var o=r.nextSibling;if(e.removeChild(r),o&&8===o.nodeType)if("/$"===(r=o.data)){if(0===n)return e.removeChild(o),void Ar(t);n--}else"$"!==r&&"$?"!==r&&"$!"!==r||n++;r=o}while(r);Ar(t)}function ra(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function na(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var r=e.data;if("$"===r||"$!"===r||"$?"===r){if(0===t)return e;t--}else"/$"===r&&t++}e=e.previousSibling}return null}var oa=Math.random().toString(36).slice(2),aa="__reactFiber$"+oa,ia="__reactProps$"+oa,sa="__reactContainer$"+oa,la="__reactEvents$"+oa,ua="__reactListeners$"+oa,ca="__reactHandles$"+oa;function da(e){var t=e[aa];if(t)return t;for(var r=e.parentNode;r;){if(t=r[sa]||r[aa]){if(r=t.alternate,null!==t.child||null!==r&&null!==r.child)for(e=na(e);null!==e;){if(r=e[aa])return r;e=na(e)}return t}r=(e=r).parentNode}return null}function fa(e){return!(e=e[aa]||e[sa])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function pa(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(J(33))}function ma(e){return e[ia]||null}var ha=[],va=-1;function ya(e){return{current:e}}function ga(e){0>va||(e.current=ha[va],ha[va]=null,va--)}function ba(e,t){va++,ha[va]=e.current,e.current=t}var wa={},Sa=ya(wa),xa=ya(!1),$a=wa;function ka(e,t){var r=e.type.contextTypes;if(!r)return wa;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var o,a={};for(o in r)a[o]=t[o];return n&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function _a(e){return null!=(e=e.childContextTypes)}function Ea(){ga(xa),ga(Sa)}function Ca(e,t,r){if(Sa.current!==wa)throw Error(J(168));ba(Sa,t),ba(xa,r)}function Pa(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,"function"!=typeof n.getChildContext)return r;for(var o in n=n.getChildContext())if(!(o in t))throw Error(J(108,Me(e)||"Unknown",o));return Oe({},r,n)}function ja(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||wa,$a=Sa.current,ba(Sa,e),ba(xa,xa.current),!0}function Oa(e,t,r){var n=e.stateNode;if(!n)throw Error(J(169));r?(e=Pa(e,t,$a),n.__reactInternalMemoizedMergedChildContext=e,ga(xa),ga(Sa),ba(Sa,e)):ga(xa),ba(xa,r)}var Na=null,Ra=!1,Ta=!1;function Aa(e){null===Na?Na=[e]:Na.push(e)}function Ia(){if(!Ta&&null!==Na){Ta=!0;var e=0,t=dr;try{var r=Na;for(dr=1;e<r.length;e++){var n=r[e];do{n=n(!0)}while(null!==n)}Na=null,Ra=!1}catch(t){throw null!==Na&&(Na=Na.slice(e+1)),zt(qt,Ia),t}finally{dr=t,Ta=!1}}return null}var Ma=[],Fa=0,Da=null,za=0,La=[],Ba=0,Va=null,Ua=1,Wa="";function qa(e,t){Ma[Fa++]=za,Ma[Fa++]=Da,Da=e,za=t}function Ka(e,t,r){La[Ba++]=Ua,La[Ba++]=Wa,La[Ba++]=Va,Va=e;var n=Ua;e=Wa;var o=32-Jt(n)-1;n&=~(1<<o),r+=1;var a=32-Jt(t)+o;if(30<a){var i=o-o%5;a=(n&(1<<i)-1).toString(32),n>>=i,o-=i,Ua=1<<32-Jt(t)+o|r<<o|n,Wa=a+e}else Ua=1<<a|r<<o|n,Wa=e}function Ha(e){null!==e.return&&(qa(e,1),Ka(e,1,0))}function Ga(e){for(;e===Da;)Da=Ma[--Fa],Ma[Fa]=null,za=Ma[--Fa],Ma[Fa]=null;for(;e===Va;)Va=La[--Ba],La[Ba]=null,Wa=La[--Ba],La[Ba]=null,Ua=La[--Ba],La[Ba]=null}var Qa=null,Xa=null,Ya=!1,Ja=null;function Za(e,t){var r=kc(5,null,null,0);r.elementType="DELETED",r.stateNode=t,r.return=e,null===(t=e.deletions)?(e.deletions=[r],e.flags|=16):t.push(r)}function ei(e,t){switch(e.tag){case 5:var r=e.type;return null!==(t=1!==t.nodeType||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,Qa=e,Xa=ra(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,Qa=e,Xa=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(r=null!==Va?{id:Ua,overflow:Wa}:null,e.memoizedState={dehydrated:t,treeContext:r,retryLane:1073741824},(r=kc(18,null,null,0)).stateNode=t,r.return=e,e.child=r,Qa=e,Xa=null,!0);default:return!1}}function ti(e){return 0!=(1&e.mode)&&0==(128&e.flags)}function ri(e){if(Ya){var t=Xa;if(t){var r=t;if(!ei(e,t)){if(ti(e))throw Error(J(418));t=ra(r.nextSibling);var n=Qa;t&&ei(e,t)?Za(n,r):(e.flags=-4097&e.flags|2,Ya=!1,Qa=e)}}else{if(ti(e))throw Error(J(418));e.flags=-4097&e.flags|2,Ya=!1,Qa=e}}}function ni(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Qa=e}function oi(e){if(e!==Qa)return!1;if(!Ya)return ni(e),Ya=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!Qo(e.type,e.memoizedProps)),t&&(t=Xa)){if(ti(e))throw ai(),Error(J(418));for(;t;)Za(e,t),t=ra(t.nextSibling)}if(ni(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(J(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var r=e.data;if("/$"===r){if(0===t){Xa=ra(e.nextSibling);break e}t--}else"$"!==r&&"$!"!==r&&"$?"!==r||t++}e=e.nextSibling}Xa=null}}else Xa=Qa?ra(e.stateNode.nextSibling):null;return!0}function ai(){for(var e=Xa;e;)e=ra(e.nextSibling)}function ii(){Xa=Qa=null,Ya=!1}function si(e){null===Ja?Ja=[e]:Ja.push(e)}var li=pe.ReactCurrentBatchConfig;function ui(e,t){if(e&&e.defaultProps){for(var r in t=Oe({},t),e=e.defaultProps)void 0===t[r]&&(t[r]=e[r]);return t}return t}var ci=ya(null),di=null,fi=null,pi=null;function mi(){pi=fi=di=null}function hi(e){var t=ci.current;ga(ci),e._currentValue=t}function vi(e,t,r){for(;null!==e;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==n&&(n.childLanes|=t)):null!==n&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}function yi(e,t){di=e,pi=fi=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(fl=!0),e.firstContext=null)}function gi(e){var t=e._currentValue;if(pi!==e)if(e={context:e,memoizedValue:t,next:null},null===fi){if(null===di)throw Error(J(308));fi=e,di.dependencies={lanes:0,firstContext:e}}else fi=fi.next=e;return t}var bi=null;function wi(e){null===bi?bi=[e]:bi.push(e)}function Si(e,t,r,n){var o=t.interleaved;return null===o?(r.next=r,wi(t)):(r.next=o.next,o.next=r),t.interleaved=r,xi(e,n)}function xi(e,t){e.lanes|=t;var r=e.alternate;for(null!==r&&(r.lanes|=t),r=e,e=e.return;null!==e;)e.childLanes|=t,null!==(r=e.alternate)&&(r.childLanes|=t),r=e,e=e.return;return 3===r.tag?r.stateNode:null}var $i=!1;function ki(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function _i(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Ei(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Ci(e,t,r){var n=e.updateQueue;if(null===n)return null;if(n=n.shared,0!=(2&Su)){var o=n.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),n.pending=t,xi(e,r)}return null===(o=n.interleaved)?(t.next=t,wi(n)):(t.next=o.next,o.next=t),n.interleaved=t,xi(e,r)}function Pi(e,t,r){if(null!==(t=t.updateQueue)&&(t=t.shared,0!=(4194240&r))){var n=t.lanes;r|=n&=e.pendingLanes,t.lanes=r,cr(e,r)}}function ji(e,t){var r=e.updateQueue,n=e.alternate;if(null!==n&&r===(n=n.updateQueue)){var o=null,a=null;if(null!==(r=r.firstBaseUpdate)){do{var i={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};null===a?o=a=i:a=a.next=i,r=r.next}while(null!==r);null===a?o=a=t:a=a.next=t}else o=a=t;return r={baseState:n.baseState,firstBaseUpdate:o,lastBaseUpdate:a,shared:n.shared,effects:n.effects},void(e.updateQueue=r)}null===(e=r.lastBaseUpdate)?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function Oi(e,t,r,n){var o=e.updateQueue;$i=!1;var a=o.firstBaseUpdate,i=o.lastBaseUpdate,s=o.shared.pending;if(null!==s){o.shared.pending=null;var l=s,u=l.next;l.next=null,null===i?a=u:i.next=u,i=l;var c=e.alternate;null!==c&&((s=(c=c.updateQueue).lastBaseUpdate)!==i&&(null===s?c.firstBaseUpdate=u:s.next=u,c.lastBaseUpdate=l))}if(null!==a){var d=o.baseState;for(i=0,c=u=l=null,s=a;;){var f=s.lane,p=s.eventTime;if((n&f)===f){null!==c&&(c=c.next={eventTime:p,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var m=e,h=s;switch(f=t,p=r,h.tag){case 1:if("function"==typeof(m=h.payload)){d=m.call(p,d,f);break e}d=m;break e;case 3:m.flags=-65537&m.flags|128;case 0:if(null==(f="function"==typeof(m=h.payload)?m.call(p,d,f):m))break e;d=Oe({},d,f);break e;case 2:$i=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(f=o.effects)?o.effects=[s]:f.push(s))}else p={eventTime:p,lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===c?(u=c=p,l=d):c=c.next=p,i|=f;if(null===(s=s.next)){if(null===(s=o.shared.pending))break;s=(f=s).next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}if(null===c&&(l=d),o.baseState=l,o.firstBaseUpdate=u,o.lastBaseUpdate=c,null!==(t=o.shared.interleaved)){o=t;do{i|=o.lane,o=o.next}while(o!==t)}else null===a&&(o.shared.lanes=0);ju|=i,e.lanes=i,e.memoizedState=d}}function Ni(e,t,r){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var n=e[t],o=n.callback;if(null!==o){if(n.callback=null,n=r,"function"!=typeof o)throw Error(J(191,o));o.call(n)}}}var Ri=(new X.Component).refs;function Ti(e,t,r,n){r=null==(r=r(n,t=e.memoizedState))?t:Oe({},t,r),e.memoizedState=r,0===e.lanes&&(e.updateQueue.baseState=r)}var Ai={isMounted:function(e){return!!(e=e._reactInternals)&&At(e)===e},enqueueSetState:function(e,t,r){e=e._reactInternals;var n=Hu(),o=Gu(e),a=Ei(n,o);a.payload=t,null!=r&&(a.callback=r),null!==(t=Ci(e,a,o))&&(Qu(t,e,o,n),Pi(t,e,o))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var n=Hu(),o=Gu(e),a=Ei(n,o);a.tag=1,a.payload=t,null!=r&&(a.callback=r),null!==(t=Ci(e,a,o))&&(Qu(t,e,o,n),Pi(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=Hu(),n=Gu(e),o=Ei(r,n);o.tag=2,null!=t&&(o.callback=t),null!==(t=Ci(e,o,n))&&(Qu(t,e,n,r),Pi(t,e,n))}};function Ii(e,t,r,n,o,a,i){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(n,a,i):!t.prototype||!t.prototype.isPureReactComponent||(!eo(r,n)||!eo(o,a))}function Mi(e,t,r){var n=!1,o=wa,a=t.contextType;return"object"==typeof a&&null!==a?a=gi(a):(o=_a(t)?$a:Sa.current,a=(n=null!=(n=t.contextTypes))?ka(e,o):wa),t=new t(r,a),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=Ai,e.stateNode=t,t._reactInternals=e,n&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=a),t}function Fi(e,t,r,n){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(r,n),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(r,n),t.state!==e&&Ai.enqueueReplaceState(t,t.state,null)}function Di(e,t,r,n){var o=e.stateNode;o.props=r,o.state=e.memoizedState,o.refs=Ri,ki(e);var a=t.contextType;"object"==typeof a&&null!==a?o.context=gi(a):(a=_a(t)?$a:Sa.current,o.context=ka(e,a)),o.state=e.memoizedState,"function"==typeof(a=t.getDerivedStateFromProps)&&(Ti(e,t,a,r),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&Ai.enqueueReplaceState(o,o.state,null),Oi(e,r,o,n),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4194308)}function zi(e,t,r){if(null!==(e=r.ref)&&"function"!=typeof e&&"object"!=typeof e){if(r._owner){if(r=r._owner){if(1!==r.tag)throw Error(J(309));var n=r.stateNode}if(!n)throw Error(J(147,e));var o=n,a=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===a?t.ref:(t=function(e){var t=o.refs;t===Ri&&(t=o.refs={}),null===e?delete t[a]:t[a]=e},t._stringRef=a,t)}if("string"!=typeof e)throw Error(J(284));if(!r._owner)throw Error(J(290,e))}return e}function Li(e,t){throw e=Object.prototype.toString.call(t),Error(J(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Bi(e){return(0,e._init)(e._payload)}function Vi(e){function t(t,r){if(e){var n=t.deletions;null===n?(t.deletions=[r],t.flags|=16):n.push(r)}}function r(r,n){if(!e)return null;for(;null!==n;)t(r,n),n=n.sibling;return null}function n(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=Ec(e,t)).index=0,e.sibling=null,e}function a(t,r,n){return t.index=n,e?null!==(n=t.alternate)?(n=n.index)<r?(t.flags|=2,r):n:(t.flags|=2,r):(t.flags|=1048576,r)}function i(t){return e&&null===t.alternate&&(t.flags|=2),t}function s(e,t,r,n){return null===t||6!==t.tag?((t=Oc(r,e.mode,n)).return=e,t):((t=o(t,r)).return=e,t)}function l(e,t,r,n){var a=r.type;return a===ve?c(e,t,r.props.children,n,r.key):null!==t&&(t.elementType===a||"object"==typeof a&&null!==a&&a.$$typeof===_e&&Bi(a)===t.type)?((n=o(t,r.props)).ref=zi(e,t,r),n.return=e,n):((n=Cc(r.type,r.key,r.props,null,e.mode,n)).ref=zi(e,t,r),n.return=e,n)}function u(e,t,r,n){return null===t||4!==t.tag||t.stateNode.containerInfo!==r.containerInfo||t.stateNode.implementation!==r.implementation?((t=Nc(r,e.mode,n)).return=e,t):((t=o(t,r.children||[])).return=e,t)}function c(e,t,r,n,a){return null===t||7!==t.tag?((t=Pc(r,e.mode,n,a)).return=e,t):((t=o(t,r)).return=e,t)}function d(e,t,r){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=Oc(""+t,e.mode,r)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case me:return(r=Cc(t.type,t.key,t.props,null,e.mode,r)).ref=zi(e,null,t),r.return=e,r;case he:return(t=Nc(t,e.mode,r)).return=e,t;case _e:return d(e,(0,t._init)(t._payload),r)}if(Ge(t)||Pe(t))return(t=Pc(t,e.mode,r,null)).return=e,t;Li(e,t)}return null}function f(e,t,r,n){var o=null!==t?t.key:null;if("string"==typeof r&&""!==r||"number"==typeof r)return null!==o?null:s(e,t,""+r,n);if("object"==typeof r&&null!==r){switch(r.$$typeof){case me:return r.key===o?l(e,t,r,n):null;case he:return r.key===o?u(e,t,r,n):null;case _e:return f(e,t,(o=r._init)(r._payload),n)}if(Ge(r)||Pe(r))return null!==o?null:c(e,t,r,n,null);Li(e,r)}return null}function p(e,t,r,n,o){if("string"==typeof n&&""!==n||"number"==typeof n)return s(t,e=e.get(r)||null,""+n,o);if("object"==typeof n&&null!==n){switch(n.$$typeof){case me:return l(t,e=e.get(null===n.key?r:n.key)||null,n,o);case he:return u(t,e=e.get(null===n.key?r:n.key)||null,n,o);case _e:return p(e,t,r,(0,n._init)(n._payload),o)}if(Ge(n)||Pe(n))return c(t,e=e.get(r)||null,n,o,null);Li(t,n)}return null}function m(o,i,s,l){for(var u=null,c=null,m=i,h=i=0,v=null;null!==m&&h<s.length;h++){m.index>h?(v=m,m=null):v=m.sibling;var y=f(o,m,s[h],l);if(null===y){null===m&&(m=v);break}e&&m&&null===y.alternate&&t(o,m),i=a(y,i,h),null===c?u=y:c.sibling=y,c=y,m=v}if(h===s.length)return r(o,m),Ya&&qa(o,h),u;if(null===m){for(;h<s.length;h++)null!==(m=d(o,s[h],l))&&(i=a(m,i,h),null===c?u=m:c.sibling=m,c=m);return Ya&&qa(o,h),u}for(m=n(o,m);h<s.length;h++)null!==(v=p(m,o,h,s[h],l))&&(e&&null!==v.alternate&&m.delete(null===v.key?h:v.key),i=a(v,i,h),null===c?u=v:c.sibling=v,c=v);return e&&m.forEach((function(e){return t(o,e)})),Ya&&qa(o,h),u}function h(o,i,s,l){var u=Pe(s);if("function"!=typeof u)throw Error(J(150));if(null==(s=u.call(s)))throw Error(J(151));for(var c=u=null,m=i,h=i=0,v=null,y=s.next();null!==m&&!y.done;h++,y=s.next()){m.index>h?(v=m,m=null):v=m.sibling;var g=f(o,m,y.value,l);if(null===g){null===m&&(m=v);break}e&&m&&null===g.alternate&&t(o,m),i=a(g,i,h),null===c?u=g:c.sibling=g,c=g,m=v}if(y.done)return r(o,m),Ya&&qa(o,h),u;if(null===m){for(;!y.done;h++,y=s.next())null!==(y=d(o,y.value,l))&&(i=a(y,i,h),null===c?u=y:c.sibling=y,c=y);return Ya&&qa(o,h),u}for(m=n(o,m);!y.done;h++,y=s.next())null!==(y=p(m,o,h,y.value,l))&&(e&&null!==y.alternate&&m.delete(null===y.key?h:y.key),i=a(y,i,h),null===c?u=y:c.sibling=y,c=y);return e&&m.forEach((function(e){return t(o,e)})),Ya&&qa(o,h),u}return function e(n,a,s,l){if("object"==typeof s&&null!==s&&s.type===ve&&null===s.key&&(s=s.props.children),"object"==typeof s&&null!==s){switch(s.$$typeof){case me:e:{for(var u=s.key,c=a;null!==c;){if(c.key===u){if((u=s.type)===ve){if(7===c.tag){r(n,c.sibling),(a=o(c,s.props.children)).return=n,n=a;break e}}else if(c.elementType===u||"object"==typeof u&&null!==u&&u.$$typeof===_e&&Bi(u)===c.type){r(n,c.sibling),(a=o(c,s.props)).ref=zi(n,c,s),a.return=n,n=a;break e}r(n,c);break}t(n,c),c=c.sibling}s.type===ve?((a=Pc(s.props.children,n.mode,l,s.key)).return=n,n=a):((l=Cc(s.type,s.key,s.props,null,n.mode,l)).ref=zi(n,a,s),l.return=n,n=l)}return i(n);case he:e:{for(c=s.key;null!==a;){if(a.key===c){if(4===a.tag&&a.stateNode.containerInfo===s.containerInfo&&a.stateNode.implementation===s.implementation){r(n,a.sibling),(a=o(a,s.children||[])).return=n,n=a;break e}r(n,a);break}t(n,a),a=a.sibling}(a=Nc(s,n.mode,l)).return=n,n=a}return i(n);case _e:return e(n,a,(c=s._init)(s._payload),l)}if(Ge(s))return m(n,a,s,l);if(Pe(s))return h(n,a,s,l);Li(n,s)}return"string"==typeof s&&""!==s||"number"==typeof s?(s=""+s,null!==a&&6===a.tag?(r(n,a.sibling),(a=o(a,s)).return=n,n=a):(r(n,a),(a=Oc(s,n.mode,l)).return=n,n=a),i(n)):r(n,a)}}var Ui=Vi(!0),Wi=Vi(!1),qi={},Ki=ya(qi),Hi=ya(qi),Gi=ya(qi);function Qi(e){if(e===qi)throw Error(J(174));return e}function Xi(e,t){switch(ba(Gi,t),ba(Hi,e),ba(Ki,qi),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:tt(null,"");break;default:t=tt(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}ga(Ki),ba(Ki,t)}function Yi(){ga(Ki),ga(Hi),ga(Gi)}function Ji(e){Qi(Gi.current);var t=Qi(Ki.current),r=tt(t,e.type);t!==r&&(ba(Hi,e),ba(Ki,r))}function Zi(e){Hi.current===e&&(ga(Ki),ga(Hi))}var es=ya(0);function ts(e){for(var t=e;null!==t;){if(13===t.tag){var r=t.memoizedState;if(null!==r&&(null===(r=r.dehydrated)||"$?"===r.data||"$!"===r.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var rs=[];function ns(){for(var e=0;e<rs.length;e++)rs[e]._workInProgressVersionPrimary=null;rs.length=0}var os=pe.ReactCurrentDispatcher,as=pe.ReactCurrentBatchConfig,is=0,ss=null,ls=null,us=null,cs=!1,ds=!1,fs=0,ps=0;function ms(){throw Error(J(321))}function hs(e,t){if(null===t)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!Zn(e[r],t[r]))return!1;return!0}function vs(e,t,r,n,o,a){if(is=a,ss=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,os.current=null===e||null===e.memoizedState?Zs:el,e=r(n,o),ds){a=0;do{if(ds=!1,fs=0,25<=a)throw Error(J(301));a+=1,us=ls=null,t.updateQueue=null,os.current=tl,e=r(n,o)}while(ds)}if(os.current=Js,t=null!==ls&&null!==ls.next,is=0,us=ls=ss=null,cs=!1,t)throw Error(J(300));return e}function ys(){var e=0!==fs;return fs=0,e}function gs(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===us?ss.memoizedState=us=e:us=us.next=e,us}function bs(){if(null===ls){var e=ss.alternate;e=null!==e?e.memoizedState:null}else e=ls.next;var t=null===us?ss.memoizedState:us.next;if(null!==t)us=t,ls=e;else{if(null===e)throw Error(J(310));e={memoizedState:(ls=e).memoizedState,baseState:ls.baseState,baseQueue:ls.baseQueue,queue:ls.queue,next:null},null===us?ss.memoizedState=us=e:us=us.next=e}return us}function ws(e,t){return"function"==typeof t?t(e):t}function Ss(e){var t=bs(),r=t.queue;if(null===r)throw Error(J(311));r.lastRenderedReducer=e;var n=ls,o=n.baseQueue,a=r.pending;if(null!==a){if(null!==o){var i=o.next;o.next=a.next,a.next=i}n.baseQueue=o=a,r.pending=null}if(null!==o){a=o.next,n=n.baseState;var s=i=null,l=null,u=a;do{var c=u.lane;if((is&c)===c)null!==l&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),n=u.hasEagerState?u.eagerState:e(n,u.action);else{var d={lane:c,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};null===l?(s=l=d,i=n):l=l.next=d,ss.lanes|=c,ju|=c}u=u.next}while(null!==u&&u!==a);null===l?i=n:l.next=s,Zn(n,t.memoizedState)||(fl=!0),t.memoizedState=n,t.baseState=i,t.baseQueue=l,r.lastRenderedState=n}if(null!==(e=r.interleaved)){o=e;do{a=o.lane,ss.lanes|=a,ju|=a,o=o.next}while(o!==e)}else null===o&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function xs(e){var t=bs(),r=t.queue;if(null===r)throw Error(J(311));r.lastRenderedReducer=e;var n=r.dispatch,o=r.pending,a=t.memoizedState;if(null!==o){r.pending=null;var i=o=o.next;do{a=e(a,i.action),i=i.next}while(i!==o);Zn(a,t.memoizedState)||(fl=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),r.lastRenderedState=a}return[a,n]}function $s(){}function ks(e,t){var r=ss,n=bs(),o=t(),a=!Zn(n.memoizedState,o);if(a&&(n.memoizedState=o,fl=!0),n=n.queue,Ms(Cs.bind(null,r,n,e),[e]),n.getSnapshot!==t||a||null!==us&&1&us.memoizedState.tag){if(r.flags|=2048,Ns(9,Es.bind(null,r,n,o,t),void 0,null),null===xu)throw Error(J(349));0!=(30&is)||_s(r,t,o)}return o}function _s(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},null===(t=ss.updateQueue)?(t={lastEffect:null,stores:null},ss.updateQueue=t,t.stores=[e]):null===(r=t.stores)?t.stores=[e]:r.push(e)}function Es(e,t,r,n){t.value=r,t.getSnapshot=n,Ps(t)&&js(e)}function Cs(e,t,r){return r((function(){Ps(t)&&js(e)}))}function Ps(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!Zn(e,r)}catch(e){return!0}}function js(e){var t=xi(e,1);null!==t&&Qu(t,e,1,-1)}function Os(e){var t=gs();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ws,lastRenderedState:e},t.queue=e,e=e.dispatch=Gs.bind(null,ss,e),[t.memoizedState,e]}function Ns(e,t,r,n){return e={tag:e,create:t,destroy:r,deps:n,next:null},null===(t=ss.updateQueue)?(t={lastEffect:null,stores:null},ss.updateQueue=t,t.lastEffect=e.next=e):null===(r=t.lastEffect)?t.lastEffect=e.next=e:(n=r.next,r.next=e,e.next=n,t.lastEffect=e),e}function Rs(){return bs().memoizedState}function Ts(e,t,r,n){var o=gs();ss.flags|=e,o.memoizedState=Ns(1|t,r,void 0,void 0===n?null:n)}function As(e,t,r,n){var o=bs();n=void 0===n?null:n;var a=void 0;if(null!==ls){var i=ls.memoizedState;if(a=i.destroy,null!==n&&hs(n,i.deps))return void(o.memoizedState=Ns(t,r,a,n))}ss.flags|=e,o.memoizedState=Ns(1|t,r,a,n)}function Is(e,t){return Ts(8390656,8,e,t)}function Ms(e,t){return As(2048,8,e,t)}function Fs(e,t){return As(4,2,e,t)}function Ds(e,t){return As(4,4,e,t)}function zs(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Ls(e,t,r){return r=null!=r?r.concat([e]):null,As(4,4,zs.bind(null,t,e),r)}function Bs(){}function Vs(e,t){var r=bs();t=void 0===t?null:t;var n=r.memoizedState;return null!==n&&null!==t&&hs(t,n[1])?n[0]:(r.memoizedState=[e,t],e)}function Us(e,t){var r=bs();t=void 0===t?null:t;var n=r.memoizedState;return null!==n&&null!==t&&hs(t,n[1])?n[0]:(e=e(),r.memoizedState=[e,t],e)}function Ws(e,t,r){return 0==(21&is)?(e.baseState&&(e.baseState=!1,fl=!0),e.memoizedState=r):(Zn(r,t)||(r=sr(),ss.lanes|=r,ju|=r,e.baseState=!0),t)}function qs(e,t){var r=dr;dr=0!==r&&4>r?r:4,e(!0);var n=as.transition;as.transition={};try{e(!1),t()}finally{dr=r,as.transition=n}}function Ks(){return bs().memoizedState}function Hs(e,t,r){var n=Gu(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},Qs(e))Xs(t,r);else if(null!==(r=Si(e,t,r,n))){Qu(r,e,n,Hu()),Ys(r,t,n)}}function Gs(e,t,r){var n=Gu(e),o={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(Qs(e))Xs(t,o);else{var a=e.alternate;if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=t.lastRenderedReducer))try{var i=t.lastRenderedState,s=a(i,r);if(o.hasEagerState=!0,o.eagerState=s,Zn(s,i)){var l=t.interleaved;return null===l?(o.next=o,wi(t)):(o.next=l.next,l.next=o),void(t.interleaved=o)}}catch(e){}null!==(r=Si(e,t,o,n))&&(Qu(r,e,n,o=Hu()),Ys(r,t,n))}}function Qs(e){var t=e.alternate;return e===ss||null!==t&&t===ss}function Xs(e,t){ds=cs=!0;var r=e.pending;null===r?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function Ys(e,t,r){if(0!=(4194240&r)){var n=t.lanes;r|=n&=e.pendingLanes,t.lanes=r,cr(e,r)}}var Js={readContext:gi,useCallback:ms,useContext:ms,useEffect:ms,useImperativeHandle:ms,useInsertionEffect:ms,useLayoutEffect:ms,useMemo:ms,useReducer:ms,useRef:ms,useState:ms,useDebugValue:ms,useDeferredValue:ms,useTransition:ms,useMutableSource:ms,useSyncExternalStore:ms,useId:ms,unstable_isNewReconciler:!1},Zs={readContext:gi,useCallback:function(e,t){return gs().memoizedState=[e,void 0===t?null:t],e},useContext:gi,useEffect:Is,useImperativeHandle:function(e,t,r){return r=null!=r?r.concat([e]):null,Ts(4194308,4,zs.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Ts(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ts(4,2,e,t)},useMemo:function(e,t){var r=gs();return t=void 0===t?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=gs();return t=void 0!==r?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=Hs.bind(null,ss,e),[n.memoizedState,e]},useRef:function(e){return e={current:e},gs().memoizedState=e},useState:Os,useDebugValue:Bs,useDeferredValue:function(e){return gs().memoizedState=e},useTransition:function(){var e=Os(!1),t=e[0];return e=qs.bind(null,e[1]),gs().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=ss,o=gs();if(Ya){if(void 0===r)throw Error(J(407));r=r()}else{if(r=t(),null===xu)throw Error(J(349));0!=(30&is)||_s(n,t,r)}o.memoizedState=r;var a={value:r,getSnapshot:t};return o.queue=a,Is(Cs.bind(null,n,a,e),[e]),n.flags|=2048,Ns(9,Es.bind(null,n,a,r,t),void 0,null),r},useId:function(){var e=gs(),t=xu.identifierPrefix;if(Ya){var r=Wa;t=":"+t+"R"+(r=(Ua&~(1<<32-Jt(Ua)-1)).toString(32)+r),0<(r=fs++)&&(t+="H"+r.toString(32)),t+=":"}else t=":"+t+"r"+(r=ps++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},el={readContext:gi,useCallback:Vs,useContext:gi,useEffect:Ms,useImperativeHandle:Ls,useInsertionEffect:Fs,useLayoutEffect:Ds,useMemo:Us,useReducer:Ss,useRef:Rs,useState:function(){return Ss(ws)},useDebugValue:Bs,useDeferredValue:function(e){return Ws(bs(),ls.memoizedState,e)},useTransition:function(){return[Ss(ws)[0],bs().memoizedState]},useMutableSource:$s,useSyncExternalStore:ks,useId:Ks,unstable_isNewReconciler:!1},tl={readContext:gi,useCallback:Vs,useContext:gi,useEffect:Ms,useImperativeHandle:Ls,useInsertionEffect:Fs,useLayoutEffect:Ds,useMemo:Us,useReducer:xs,useRef:Rs,useState:function(){return xs(ws)},useDebugValue:Bs,useDeferredValue:function(e){var t=bs();return null===ls?t.memoizedState=e:Ws(t,ls.memoizedState,e)},useTransition:function(){return[xs(ws)[0],bs().memoizedState]},useMutableSource:$s,useSyncExternalStore:ks,useId:Ks,unstable_isNewReconciler:!1};function rl(e,t){try{var r="",n=t;do{r+=Ae(n),n=n.return}while(n);var o=r}catch(e){o="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:o,digest:null}}function nl(e,t,r){return{value:e,source:null,stack:null!=r?r:null,digest:null!=t?t:null}}function ol(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var al="function"==typeof WeakMap?WeakMap:Map;function il(e,t,r){(r=Ei(-1,r)).tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){Fu||(Fu=!0,Du=n),ol(0,t)},r}function sl(e,t,r){(r=Ei(-1,r)).tag=3;var n=e.type.getDerivedStateFromError;if("function"==typeof n){var o=t.value;r.payload=function(){return n(o)},r.callback=function(){ol(0,t)}}var a=e.stateNode;return null!==a&&"function"==typeof a.componentDidCatch&&(r.callback=function(){ol(0,t),"function"!=typeof n&&(null===zu?zu=new Set([this]):zu.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),r}function ll(e,t,r){var n=e.pingCache;if(null===n){n=e.pingCache=new al;var o=new Set;n.set(t,o)}else void 0===(o=n.get(t))&&(o=new Set,n.set(t,o));o.has(r)||(o.add(r),e=gc.bind(null,e,t,r),t.then(e,e))}function ul(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function cl(e,t,r,n,o){return 0==(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,1===r.tag&&(null===r.alternate?r.tag=17:((t=Ei(-1,1)).tag=2,Ci(r,t,1))),r.lanes|=1),e):(e.flags|=65536,e.lanes=o,e)}var dl=pe.ReactCurrentOwner,fl=!1;function pl(e,t,r,n){t.child=null===e?Wi(t,null,r,n):Ui(t,e.child,r,n)}function ml(e,t,r,n,o){r=r.render;var a=t.ref;return yi(t,o),n=vs(e,t,r,n,a,o),r=ys(),null===e||fl?(Ya&&r&&Ha(t),t.flags|=1,pl(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Fl(e,t,o))}function hl(e,t,r,n,o){if(null===e){var a=r.type;return"function"!=typeof a||_c(a)||void 0!==a.defaultProps||null!==r.compare||void 0!==r.defaultProps?((e=Cc(r.type,null,n,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,vl(e,t,a,n,o))}if(a=e.child,0==(e.lanes&o)){var i=a.memoizedProps;if((r=null!==(r=r.compare)?r:eo)(i,n)&&e.ref===t.ref)return Fl(e,t,o)}return t.flags|=1,(e=Ec(a,n)).ref=t.ref,e.return=t,t.child=e}function vl(e,t,r,n,o){if(null!==e){var a=e.memoizedProps;if(eo(a,n)&&e.ref===t.ref){if(fl=!1,t.pendingProps=n=a,0==(e.lanes&o))return t.lanes=e.lanes,Fl(e,t,o);0!=(131072&e.flags)&&(fl=!0)}}return bl(e,t,r,n,o)}function yl(e,t,r){var n=t.pendingProps,o=n.children,a=null!==e?e.memoizedState:null;if("hidden"===n.mode)if(0==(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ba(Eu,_u),_u|=r;else{if(0==(1073741824&r))return e=null!==a?a.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ba(Eu,_u),_u|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=null!==a?a.baseLanes:r,ba(Eu,_u),_u|=n}else null!==a?(n=a.baseLanes|r,t.memoizedState=null):n=r,ba(Eu,_u),_u|=n;return pl(e,t,o,r),t.child}function gl(e,t){var r=t.ref;(null===e&&null!==r||null!==e&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function bl(e,t,r,n,o){var a=_a(r)?$a:Sa.current;return a=ka(t,a),yi(t,o),r=vs(e,t,r,n,a,o),n=ys(),null===e||fl?(Ya&&n&&Ha(t),t.flags|=1,pl(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Fl(e,t,o))}function wl(e,t,r,n,o){if(_a(r)){var a=!0;ja(t)}else a=!1;if(yi(t,o),null===t.stateNode)Ml(e,t),Mi(t,r,n),Di(t,r,n,o),n=!0;else if(null===e){var i=t.stateNode,s=t.memoizedProps;i.props=s;var l=i.context,u=r.contextType;"object"==typeof u&&null!==u?u=gi(u):u=ka(t,u=_a(r)?$a:Sa.current);var c=r.getDerivedStateFromProps,d="function"==typeof c||"function"==typeof i.getSnapshotBeforeUpdate;d||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(s!==n||l!==u)&&Fi(t,i,n,u),$i=!1;var f=t.memoizedState;i.state=f,Oi(t,n,i,o),l=t.memoizedState,s!==n||f!==l||xa.current||$i?("function"==typeof c&&(Ti(t,r,c,n),l=t.memoizedState),(s=$i||Ii(t,r,s,n,f,l,u))?(d||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||("function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount()),"function"==typeof i.componentDidMount&&(t.flags|=4194308)):("function"==typeof i.componentDidMount&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=l),i.props=n,i.state=l,i.context=u,n=s):("function"==typeof i.componentDidMount&&(t.flags|=4194308),n=!1)}else{i=t.stateNode,_i(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:ui(t.type,s),i.props=u,d=t.pendingProps,f=i.context,"object"==typeof(l=r.contextType)&&null!==l?l=gi(l):l=ka(t,l=_a(r)?$a:Sa.current);var p=r.getDerivedStateFromProps;(c="function"==typeof p||"function"==typeof i.getSnapshotBeforeUpdate)||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(s!==d||f!==l)&&Fi(t,i,n,l),$i=!1,f=t.memoizedState,i.state=f,Oi(t,n,i,o);var m=t.memoizedState;s!==d||f!==m||xa.current||$i?("function"==typeof p&&(Ti(t,r,p,n),m=t.memoizedState),(u=$i||Ii(t,r,u,n,f,m,l)||!1)?(c||"function"!=typeof i.UNSAFE_componentWillUpdate&&"function"!=typeof i.componentWillUpdate||("function"==typeof i.componentWillUpdate&&i.componentWillUpdate(n,m,l),"function"==typeof i.UNSAFE_componentWillUpdate&&i.UNSAFE_componentWillUpdate(n,m,l)),"function"==typeof i.componentDidUpdate&&(t.flags|=4),"function"==typeof i.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof i.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=m),i.props=n,i.state=m,i.context=l,n=u):("function"!=typeof i.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),n=!1)}return Sl(e,t,r,n,a,o)}function Sl(e,t,r,n,o,a){gl(e,t);var i=0!=(128&t.flags);if(!n&&!i)return o&&Oa(t,r,!1),Fl(e,t,a);n=t.stateNode,dl.current=t;var s=i&&"function"!=typeof r.getDerivedStateFromError?null:n.render();return t.flags|=1,null!==e&&i?(t.child=Ui(t,e.child,null,a),t.child=Ui(t,null,s,a)):pl(e,t,s,a),t.memoizedState=n.state,o&&Oa(t,r,!0),t.child}function xl(e){var t=e.stateNode;t.pendingContext?Ca(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Ca(0,t.context,!1),Xi(e,t.containerInfo)}function $l(e,t,r,n,o){return ii(),si(o),t.flags|=256,pl(e,t,r,n),t.child}var kl,_l,El,Cl,Pl={dehydrated:null,treeContext:null,retryLane:0};function jl(e){return{baseLanes:e,cachePool:null,transitions:null}}function Ol(e,t,r){var n,o=t.pendingProps,a=es.current,i=!1,s=0!=(128&t.flags);if((n=s)||(n=(null===e||null!==e.memoizedState)&&0!=(2&a)),n?(i=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),ba(es,1&a),null===e)return ri(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0==(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(s=o.children,e=o.fallback,i?(o=t.mode,i=t.child,s={mode:"hidden",children:s},0==(1&o)&&null!==i?(i.childLanes=0,i.pendingProps=s):i=jc(s,o,0,null),e=Pc(e,o,r,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=jl(r),t.memoizedState=Pl,e):Nl(t,s));if(null!==(a=e.memoizedState)&&null!==(n=a.dehydrated))return function(e,t,r,n,o,a,i){if(r)return 256&t.flags?(t.flags&=-257,Rl(e,t,i,n=nl(Error(J(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=n.fallback,o=t.mode,n=jc({mode:"visible",children:n.children},o,0,null),(a=Pc(a,o,i,null)).flags|=2,n.return=t,a.return=t,n.sibling=a,t.child=n,0!=(1&t.mode)&&Ui(t,e.child,null,i),t.child.memoizedState=jl(i),t.memoizedState=Pl,a);if(0==(1&t.mode))return Rl(e,t,i,null);if("$!"===o.data){if(n=o.nextSibling&&o.nextSibling.dataset)var s=n.dgst;return n=s,Rl(e,t,i,n=nl(a=Error(J(419)),n,void 0))}if(s=0!=(i&e.childLanes),fl||s){if(null!==(n=xu)){switch(i&-i){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}0!==(o=0!=(o&(n.suspendedLanes|i))?0:o)&&o!==a.retryLane&&(a.retryLane=o,xi(e,o),Qu(n,e,o,-1))}return lc(),Rl(e,t,i,n=nl(Error(J(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=wc.bind(null,e),o._reactRetry=t,null):(e=a.treeContext,Xa=ra(o.nextSibling),Qa=t,Ya=!0,Ja=null,null!==e&&(La[Ba++]=Ua,La[Ba++]=Wa,La[Ba++]=Va,Ua=e.id,Wa=e.overflow,Va=t),t=Nl(t,n.children),t.flags|=4096,t)}(e,t,s,o,n,a,r);if(i){i=o.fallback,s=t.mode,n=(a=e.child).sibling;var l={mode:"hidden",children:o.children};return 0==(1&s)&&t.child!==a?((o=t.child).childLanes=0,o.pendingProps=l,t.deletions=null):(o=Ec(a,l)).subtreeFlags=14680064&a.subtreeFlags,null!==n?i=Ec(n,i):(i=Pc(i,s,r,null)).flags|=2,i.return=t,o.return=t,o.sibling=i,t.child=o,o=i,i=t.child,s=null===(s=e.child.memoizedState)?jl(r):{baseLanes:s.baseLanes|r,cachePool:null,transitions:s.transitions},i.memoizedState=s,i.childLanes=e.childLanes&~r,t.memoizedState=Pl,o}return e=(i=e.child).sibling,o=Ec(i,{mode:"visible",children:o.children}),0==(1&t.mode)&&(o.lanes=r),o.return=t,o.sibling=null,null!==e&&(null===(r=t.deletions)?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=o,t.memoizedState=null,o}function Nl(e,t){return(t=jc({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Rl(e,t,r,n){return null!==n&&si(n),Ui(t,e.child,null,r),(e=Nl(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Tl(e,t,r){e.lanes|=t;var n=e.alternate;null!==n&&(n.lanes|=t),vi(e.return,t,r)}function Al(e,t,r,n,o){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:o}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=n,a.tail=r,a.tailMode=o)}function Il(e,t,r){var n=t.pendingProps,o=n.revealOrder,a=n.tail;if(pl(e,t,n.children,r),0!=(2&(n=es.current)))n=1&n|2,t.flags|=128;else{if(null!==e&&0!=(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Tl(e,r,t);else if(19===e.tag)Tl(e,r,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}n&=1}if(ba(es,n),0==(1&t.mode))t.memoizedState=null;else switch(o){case"forwards":for(r=t.child,o=null;null!==r;)null!==(e=r.alternate)&&null===ts(e)&&(o=r),r=r.sibling;null===(r=o)?(o=t.child,t.child=null):(o=r.sibling,r.sibling=null),Al(t,!1,o,r,a);break;case"backwards":for(r=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===ts(e)){t.child=o;break}e=o.sibling,o.sibling=r,r=o,o=e}Al(t,!0,r,null,a);break;case"together":Al(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Ml(e,t){0==(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Fl(e,t,r){if(null!==e&&(t.dependencies=e.dependencies),ju|=t.lanes,0==(r&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(J(153));if(null!==t.child){for(r=Ec(e=t.child,e.pendingProps),t.child=r,r.return=t;null!==e.sibling;)e=e.sibling,(r=r.sibling=Ec(e,e.pendingProps)).return=t;r.sibling=null}return t.child}function Dl(e,t){if(!Ya)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;null!==t;)null!==t.alternate&&(r=t),t=t.sibling;null===r?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var n=null;null!==r;)null!==r.alternate&&(n=r),r=r.sibling;null===n?t||null===e.tail?e.tail=null:e.tail.sibling=null:n.sibling=null}}function zl(e){var t=null!==e.alternate&&e.alternate.child===e.child,r=0,n=0;if(t)for(var o=e.child;null!==o;)r|=o.lanes|o.childLanes,n|=14680064&o.subtreeFlags,n|=14680064&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)r|=o.lanes|o.childLanes,n|=o.subtreeFlags,n|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=n,e.childLanes=r,t}function Ll(e,t,r){var n=t.pendingProps;switch(Ga(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return zl(t),null;case 1:case 17:return _a(t.type)&&Ea(),zl(t),null;case 3:return n=t.stateNode,Yi(),ga(xa),ga(Sa),ns(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==e&&null!==e.child||(oi(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0==(256&t.flags)||(t.flags|=1024,null!==Ja&&(Zu(Ja),Ja=null))),_l(e,t),zl(t),null;case 5:Zi(t);var o=Qi(Gi.current);if(r=t.type,null!==e&&null!=t.stateNode)El(e,t,r,n,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!n){if(null===t.stateNode)throw Error(J(166));return zl(t),null}if(e=Qi(Ki.current),oi(t)){n=t.stateNode,r=t.type;var a=t.memoizedProps;switch(n[aa]=t,n[ia]=a,e=0!=(1&t.mode),r){case"dialog":Ro("cancel",n),Ro("close",n);break;case"iframe":case"object":case"embed":Ro("load",n);break;case"video":case"audio":for(o=0;o<Po.length;o++)Ro(Po[o],n);break;case"source":Ro("error",n);break;case"img":case"image":case"link":Ro("error",n),Ro("load",n);break;case"details":Ro("toggle",n);break;case"input":Ue(n,a),Ro("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!a.multiple},Ro("invalid",n);break;case"textarea":Ye(n,a),Ro("invalid",n)}for(var i in ct(r,a),o=null,a)if(a.hasOwnProperty(i)){var s=a[i];"children"===i?"string"==typeof s?n.textContent!==s&&(!0!==a.suppressHydrationWarning&&qo(n.textContent,s,e),o=["children",s]):"number"==typeof s&&n.textContent!==""+s&&(!0!==a.suppressHydrationWarning&&qo(n.textContent,s,e),o=["children",""+s]):ee.hasOwnProperty(i)&&null!=s&&"onScroll"===i&&Ro("scroll",n)}switch(r){case"input":ze(n),Ke(n,a,!0);break;case"textarea":ze(n),Ze(n);break;case"select":case"option":break;default:"function"==typeof a.onClick&&(n.onclick=Ko)}n=o,t.updateQueue=n,null!==n&&(t.flags|=4)}else{i=9===o.nodeType?o:o.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=et(r)),"http://www.w3.org/1999/xhtml"===e?"script"===r?((e=i.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof n.is?e=i.createElement(r,{is:n.is}):(e=i.createElement(r),"select"===r&&(i=e,n.multiple?i.multiple=!0:n.size&&(i.size=n.size))):e=i.createElementNS(e,r),e[aa]=t,e[ia]=n,kl(e,t,!1,!1),t.stateNode=e;e:{switch(i=dt(r,n),r){case"dialog":Ro("cancel",e),Ro("close",e),o=n;break;case"iframe":case"object":case"embed":Ro("load",e),o=n;break;case"video":case"audio":for(o=0;o<Po.length;o++)Ro(Po[o],e);o=n;break;case"source":Ro("error",e),o=n;break;case"img":case"image":case"link":Ro("error",e),Ro("load",e),o=n;break;case"details":Ro("toggle",e),o=n;break;case"input":Ue(e,n),o=Ve(e,n),Ro("invalid",e);break;case"option":default:o=n;break;case"select":e._wrapperState={wasMultiple:!!n.multiple},o=Oe({},n,{value:void 0}),Ro("invalid",e);break;case"textarea":Ye(e,n),o=Xe(e,n),Ro("invalid",e)}for(a in ct(r,o),s=o)if(s.hasOwnProperty(a)){var l=s[a];"style"===a?lt(e,l):"dangerouslySetInnerHTML"===a?null!=(l=l?l.__html:void 0)&&nt(e,l):"children"===a?"string"==typeof l?("textarea"!==r||""!==l)&&ot(e,l):"number"==typeof l&&ot(e,""+l):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(ee.hasOwnProperty(a)?null!=l&&"onScroll"===a&&Ro("scroll",e):null!=l&&fe(e,a,l,i))}switch(r){case"input":ze(e),Ke(e,n,!1);break;case"textarea":ze(e),Ze(e);break;case"option":null!=n.value&&e.setAttribute("value",""+Fe(n.value));break;case"select":e.multiple=!!n.multiple,null!=(a=n.value)?Qe(e,!!n.multiple,a,!1):null!=n.defaultValue&&Qe(e,!!n.multiple,n.defaultValue,!0);break;default:"function"==typeof o.onClick&&(e.onclick=Ko)}switch(r){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}}n&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return zl(t),null;case 6:if(e&&null!=t.stateNode)Cl(e,t,e.memoizedProps,n);else{if("string"!=typeof n&&null===t.stateNode)throw Error(J(166));if(r=Qi(Gi.current),Qi(Ki.current),oi(t)){if(n=t.stateNode,r=t.memoizedProps,n[aa]=t,(a=n.nodeValue!==r)&&null!==(e=Qa))switch(e.tag){case 3:qo(n.nodeValue,r,0!=(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&qo(n.nodeValue,r,0!=(1&e.mode))}a&&(t.flags|=4)}else(n=(9===r.nodeType?r:r.ownerDocument).createTextNode(n))[aa]=t,t.stateNode=n}return zl(t),null;case 13:if(ga(es),n=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(Ya&&null!==Xa&&0!=(1&t.mode)&&0==(128&t.flags))ai(),ii(),t.flags|=98560,a=!1;else if(a=oi(t),null!==n&&null!==n.dehydrated){if(null===e){if(!a)throw Error(J(318));if(!(a=null!==(a=t.memoizedState)?a.dehydrated:null))throw Error(J(317));a[aa]=t}else ii(),0==(128&t.flags)&&(t.memoizedState=null),t.flags|=4;zl(t),a=!1}else null!==Ja&&(Zu(Ja),Ja=null),a=!0;if(!a)return 65536&t.flags?t:null}return 0!=(128&t.flags)?(t.lanes=r,t):((n=null!==n)!==(null!==e&&null!==e.memoizedState)&&n&&(t.child.flags|=8192,0!=(1&t.mode)&&(null===e||0!=(1&es.current)?0===Cu&&(Cu=3):lc())),null!==t.updateQueue&&(t.flags|=4),zl(t),null);case 4:return Yi(),_l(e,t),null===e&&Io(t.stateNode.containerInfo),zl(t),null;case 10:return hi(t.type._context),zl(t),null;case 19:if(ga(es),null===(a=t.memoizedState))return zl(t),null;if(n=0!=(128&t.flags),null===(i=a.rendering))if(n)Dl(a,!1);else{if(0!==Cu||null!==e&&0!=(128&e.flags))for(e=t.child;null!==e;){if(null!==(i=ts(e))){for(t.flags|=128,Dl(a,!1),null!==(n=i.updateQueue)&&(t.updateQueue=n,t.flags|=4),t.subtreeFlags=0,n=r,r=t.child;null!==r;)e=n,(a=r).flags&=14680066,null===(i=a.alternate)?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=i.childLanes,a.lanes=i.lanes,a.child=i.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=i.memoizedProps,a.memoizedState=i.memoizedState,a.updateQueue=i.updateQueue,a.type=i.type,e=i.dependencies,a.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return ba(es,1&es.current|2),t.child}e=e.sibling}null!==a.tail&&Ut()>Iu&&(t.flags|=128,n=!0,Dl(a,!1),t.lanes=4194304)}else{if(!n)if(null!==(e=ts(i))){if(t.flags|=128,n=!0,null!==(r=e.updateQueue)&&(t.updateQueue=r,t.flags|=4),Dl(a,!0),null===a.tail&&"hidden"===a.tailMode&&!i.alternate&&!Ya)return zl(t),null}else 2*Ut()-a.renderingStartTime>Iu&&1073741824!==r&&(t.flags|=128,n=!0,Dl(a,!1),t.lanes=4194304);a.isBackwards?(i.sibling=t.child,t.child=i):(null!==(r=a.last)?r.sibling=i:t.child=i,a.last=i)}return null!==a.tail?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Ut(),t.sibling=null,r=es.current,ba(es,n?1&r|2:1&r),t):(zl(t),null);case 22:case 23:return oc(),n=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==n&&(t.flags|=8192),n&&0!=(1&t.mode)?0!=(1073741824&_u)&&(zl(t),6&t.subtreeFlags&&(t.flags|=8192)):zl(t),null;case 24:case 25:return null}throw Error(J(156,t.tag))}function Bl(e,t){switch(Ga(t),t.tag){case 1:return _a(t.type)&&Ea(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Yi(),ga(xa),ga(Sa),ns(),0!=(65536&(e=t.flags))&&0==(128&e)?(t.flags=-65537&e|128,t):null;case 5:return Zi(t),null;case 13:if(ga(es),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(J(340));ii()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return ga(es),null;case 4:return Yi(),null;case 10:return hi(t.type._context),null;case 22:case 23:return oc(),null;default:return null}}kl=function(e,t){for(var r=t.child;null!==r;){if(5===r.tag||6===r.tag)e.appendChild(r.stateNode);else if(4!==r.tag&&null!==r.child){r.child.return=r,r=r.child;continue}if(r===t)break;for(;null===r.sibling;){if(null===r.return||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}},_l=function(){},El=function(e,t,r,n){var o=e.memoizedProps;if(o!==n){e=t.stateNode,Qi(Ki.current);var a,i=null;switch(r){case"input":o=Ve(e,o),n=Ve(e,n),i=[];break;case"select":o=Oe({},o,{value:void 0}),n=Oe({},n,{value:void 0}),i=[];break;case"textarea":o=Xe(e,o),n=Xe(e,n),i=[];break;default:"function"!=typeof o.onClick&&"function"==typeof n.onClick&&(e.onclick=Ko)}for(u in ct(r,n),r=null,o)if(!n.hasOwnProperty(u)&&o.hasOwnProperty(u)&&null!=o[u])if("style"===u){var s=o[u];for(a in s)s.hasOwnProperty(a)&&(r||(r={}),r[a]="")}else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(ee.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in n){var l=n[u];if(s=null!=o?o[u]:void 0,n.hasOwnProperty(u)&&l!==s&&(null!=l||null!=s))if("style"===u)if(s){for(a in s)!s.hasOwnProperty(a)||l&&l.hasOwnProperty(a)||(r||(r={}),r[a]="");for(a in l)l.hasOwnProperty(a)&&s[a]!==l[a]&&(r||(r={}),r[a]=l[a])}else r||(i||(i=[]),i.push(u,r)),r=l;else"dangerouslySetInnerHTML"===u?(l=l?l.__html:void 0,s=s?s.__html:void 0,null!=l&&s!==l&&(i=i||[]).push(u,l)):"children"===u?"string"!=typeof l&&"number"!=typeof l||(i=i||[]).push(u,""+l):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(ee.hasOwnProperty(u)?(null!=l&&"onScroll"===u&&Ro("scroll",e),i||s===l||(i=[])):(i=i||[]).push(u,l))}r&&(i=i||[]).push("style",r);var u=i;(t.updateQueue=u)&&(t.flags|=4)}},Cl=function(e,t,r,n){r!==n&&(t.flags|=4)};var Vl=!1,Ul=!1,Wl="function"==typeof WeakSet?WeakSet:Set,ql=null;function Kl(e,t){var r=e.ref;if(null!==r)if("function"==typeof r)try{r(null)}catch(r){yc(e,t,r)}else r.current=null}function Hl(e,t,r){try{r()}catch(r){yc(e,t,r)}}var Gl=!1;function Ql(e,t,r){var n=t.updateQueue;if(null!==(n=null!==n?n.lastEffect:null)){var o=n=n.next;do{if((o.tag&e)===e){var a=o.destroy;o.destroy=void 0,void 0!==a&&Hl(t,r,a)}o=o.next}while(o!==n)}}function Xl(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect: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 Yl(e){var t=e.ref;if(null!==t){var r=e.stateNode;e.tag,e=r,"function"==typeof t?t(e):t.current=e}}function Jl(e){var t=e.alternate;null!==t&&(e.alternate=null,Jl(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[aa],delete t[ia],delete t[la],delete t[ua],delete t[ca])),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 Zl(e){return 5===e.tag||3===e.tag||4===e.tag}function eu(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||Zl(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function tu(e,t,r){var n=e.tag;if(5===n||6===n)e=e.stateNode,t?8===r.nodeType?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(8===r.nodeType?(t=r.parentNode).insertBefore(e,r):(t=r).appendChild(e),null!=(r=r._reactRootContainer)||null!==t.onclick||(t.onclick=Ko));else if(4!==n&&null!==(e=e.child))for(tu(e,t,r),e=e.sibling;null!==e;)tu(e,t,r),e=e.sibling}function ru(e,t,r){var n=e.tag;if(5===n||6===n)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(4!==n&&null!==(e=e.child))for(ru(e,t,r),e=e.sibling;null!==e;)ru(e,t,r),e=e.sibling}var nu=null,ou=!1;function au(e,t,r){for(r=r.child;null!==r;)iu(e,t,r),r=r.sibling}function iu(e,t,r){if(Yt&&"function"==typeof Yt.onCommitFiberUnmount)try{Yt.onCommitFiberUnmount(Xt,r)}catch(e){}switch(r.tag){case 5:Ul||Kl(r,t);case 6:var n=nu,o=ou;nu=null,au(e,t,r),ou=o,null!==(nu=n)&&(ou?(e=nu,r=r.stateNode,8===e.nodeType?e.parentNode.removeChild(r):e.removeChild(r)):nu.removeChild(r.stateNode));break;case 18:null!==nu&&(ou?(e=nu,r=r.stateNode,8===e.nodeType?ta(e.parentNode,r):1===e.nodeType&&ta(e,r),Ar(e)):ta(nu,r.stateNode));break;case 4:n=nu,o=ou,nu=r.stateNode.containerInfo,ou=!0,au(e,t,r),nu=n,ou=o;break;case 0:case 11:case 14:case 15:if(!Ul&&(null!==(n=r.updateQueue)&&null!==(n=n.lastEffect))){o=n=n.next;do{var a=o,i=a.destroy;a=a.tag,void 0!==i&&(0!=(2&a)||0!=(4&a))&&Hl(r,t,i),o=o.next}while(o!==n)}au(e,t,r);break;case 1:if(!Ul&&(Kl(r,t),"function"==typeof(n=r.stateNode).componentWillUnmount))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(e){yc(r,t,e)}au(e,t,r);break;case 21:au(e,t,r);break;case 22:1&r.mode?(Ul=(n=Ul)||null!==r.memoizedState,au(e,t,r),Ul=n):au(e,t,r);break;default:au(e,t,r)}}function su(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var r=e.stateNode;null===r&&(r=e.stateNode=new Wl),t.forEach((function(t){var n=Sc.bind(null,e,t);r.has(t)||(r.add(t),t.then(n,n))}))}}function lu(e,t){var r=t.deletions;if(null!==r)for(var n=0;n<r.length;n++){var o=r[n];try{var a=e,i=t,s=i;e:for(;null!==s;){switch(s.tag){case 5:nu=s.stateNode,ou=!1;break e;case 3:case 4:nu=s.stateNode.containerInfo,ou=!0;break e}s=s.return}if(null===nu)throw Error(J(160));iu(a,i,o),nu=null,ou=!1;var l=o.alternate;null!==l&&(l.return=null),o.return=null}catch(e){yc(o,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)uu(t,e),t=t.sibling}function uu(e,t){var r=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(lu(t,e),cu(e),4&n){try{Ql(3,e,e.return),Xl(3,e)}catch(t){yc(e,e.return,t)}try{Ql(5,e,e.return)}catch(t){yc(e,e.return,t)}}break;case 1:lu(t,e),cu(e),512&n&&null!==r&&Kl(r,r.return);break;case 5:if(lu(t,e),cu(e),512&n&&null!==r&&Kl(r,r.return),32&e.flags){var o=e.stateNode;try{ot(o,"")}catch(t){yc(e,e.return,t)}}if(4&n&&null!=(o=e.stateNode)){var a=e.memoizedProps,i=null!==r?r.memoizedProps:a,s=e.type,l=e.updateQueue;if(e.updateQueue=null,null!==l)try{"input"===s&&"radio"===a.type&&null!=a.name&&We(o,a),dt(s,i);var u=dt(s,a);for(i=0;i<l.length;i+=2){var c=l[i],d=l[i+1];"style"===c?lt(o,d):"dangerouslySetInnerHTML"===c?nt(o,d):"children"===c?ot(o,d):fe(o,c,d,u)}switch(s){case"input":qe(o,a);break;case"textarea":Je(o,a);break;case"select":var f=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!a.multiple;var p=a.value;null!=p?Qe(o,!!a.multiple,p,!1):f!==!!a.multiple&&(null!=a.defaultValue?Qe(o,!!a.multiple,a.defaultValue,!0):Qe(o,!!a.multiple,a.multiple?[]:"",!1))}o[ia]=a}catch(t){yc(e,e.return,t)}}break;case 6:if(lu(t,e),cu(e),4&n){if(null===e.stateNode)throw Error(J(162));o=e.stateNode,a=e.memoizedProps;try{o.nodeValue=a}catch(t){yc(e,e.return,t)}}break;case 3:if(lu(t,e),cu(e),4&n&&null!==r&&r.memoizedState.isDehydrated)try{Ar(t.containerInfo)}catch(t){yc(e,e.return,t)}break;case 4:default:lu(t,e),cu(e);break;case 13:lu(t,e),cu(e),8192&(o=e.child).flags&&(a=null!==o.memoizedState,o.stateNode.isHidden=a,!a||null!==o.alternate&&null!==o.alternate.memoizedState||(Au=Ut())),4&n&&su(e);break;case 22:if(c=null!==r&&null!==r.memoizedState,1&e.mode?(Ul=(u=Ul)||c,lu(t,e),Ul=u):lu(t,e),cu(e),8192&n){if(u=null!==e.memoizedState,(e.stateNode.isHidden=u)&&!c&&0!=(1&e.mode))for(ql=e,c=e.child;null!==c;){for(d=ql=c;null!==ql;){switch(p=(f=ql).child,f.tag){case 0:case 11:case 14:case 15:Ql(4,f,f.return);break;case 1:Kl(f,f.return);var m=f.stateNode;if("function"==typeof m.componentWillUnmount){n=f,r=f.return;try{t=n,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(e){yc(n,r,e)}}break;case 5:Kl(f,f.return);break;case 22:if(null!==f.memoizedState){mu(d);continue}}null!==p?(p.return=f,ql=p):mu(d)}c=c.sibling}e:for(c=null,d=e;;){if(5===d.tag){if(null===c){c=d;try{o=d.stateNode,u?"function"==typeof(a=o.style).setProperty?a.setProperty("display","none","important"):a.display="none":(s=d.stateNode,i=null!=(l=d.memoizedProps.style)&&l.hasOwnProperty("display")?l.display:null,s.style.display=st("display",i))}catch(t){yc(e,e.return,t)}}}else if(6===d.tag){if(null===c)try{d.stateNode.nodeValue=u?"":d.memoizedProps}catch(t){yc(e,e.return,t)}}else if((22!==d.tag&&23!==d.tag||null===d.memoizedState||d===e)&&null!==d.child){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;null===d.sibling;){if(null===d.return||d.return===e)break e;c===d&&(c=null),d=d.return}c===d&&(c=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:lu(t,e),cu(e),4&n&&su(e);case 21:}}function cu(e){var t=e.flags;if(2&t){try{e:{for(var r=e.return;null!==r;){if(Zl(r)){var n=r;break e}r=r.return}throw Error(J(160))}switch(n.tag){case 5:var o=n.stateNode;32&n.flags&&(ot(o,""),n.flags&=-33),ru(e,eu(e),o);break;case 3:case 4:var a=n.stateNode.containerInfo;tu(e,eu(e),a);break;default:throw Error(J(161))}}catch(t){yc(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function du(e,t,r){ql=e,fu(e)}function fu(e,t,r){for(var n=0!=(1&e.mode);null!==ql;){var o=ql,a=o.child;if(22===o.tag&&n){var i=null!==o.memoizedState||Vl;if(!i){var s=o.alternate,l=null!==s&&null!==s.memoizedState||Ul;s=Vl;var u=Ul;if(Vl=i,(Ul=l)&&!u)for(ql=o;null!==ql;)l=(i=ql).child,22===i.tag&&null!==i.memoizedState?hu(o):null!==l?(l.return=i,ql=l):hu(o);for(;null!==a;)ql=a,fu(a),a=a.sibling;ql=o,Vl=s,Ul=u}pu(e)}else 0!=(8772&o.subtreeFlags)&&null!==a?(a.return=o,ql=a):pu(e)}}function pu(e){for(;null!==ql;){var t=ql;if(0!=(8772&t.flags)){var r=t.alternate;try{if(0!=(8772&t.flags))switch(t.tag){case 0:case 11:case 15:Ul||Xl(5,t);break;case 1:var n=t.stateNode;if(4&t.flags&&!Ul)if(null===r)n.componentDidMount();else{var o=t.elementType===t.type?r.memoizedProps:ui(t.type,r.memoizedProps);n.componentDidUpdate(o,r.memoizedState,n.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;null!==a&&Ni(t,a,n);break;case 3:var i=t.updateQueue;if(null!==i){if(r=null,null!==t.child)switch(t.child.tag){case 5:case 1:r=t.child.stateNode}Ni(t,i,r)}break;case 5:var s=t.stateNode;if(null===r&&4&t.flags){r=s;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&r.focus();break;case"img":l.src&&(r.src=l.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var u=t.alternate;if(null!==u){var c=u.memoizedState;if(null!==c){var d=c.dehydrated;null!==d&&Ar(d)}}}break;default:throw Error(J(163))}Ul||512&t.flags&&Yl(t)}catch(e){yc(t,t.return,e)}}if(t===e){ql=null;break}if(null!==(r=t.sibling)){r.return=t.return,ql=r;break}ql=t.return}}function mu(e){for(;null!==ql;){var t=ql;if(t===e){ql=null;break}var r=t.sibling;if(null!==r){r.return=t.return,ql=r;break}ql=t.return}}function hu(e){for(;null!==ql;){var t=ql;try{switch(t.tag){case 0:case 11:case 15:var r=t.return;try{Xl(4,t)}catch(e){yc(t,r,e)}break;case 1:var n=t.stateNode;if("function"==typeof n.componentDidMount){var o=t.return;try{n.componentDidMount()}catch(e){yc(t,o,e)}}var a=t.return;try{Yl(t)}catch(e){yc(t,a,e)}break;case 5:var i=t.return;try{Yl(t)}catch(e){yc(t,i,e)}}}catch(e){yc(t,t.return,e)}if(t===e){ql=null;break}var s=t.sibling;if(null!==s){s.return=t.return,ql=s;break}ql=t.return}}var vu,yu=Math.ceil,gu=pe.ReactCurrentDispatcher,bu=pe.ReactCurrentOwner,wu=pe.ReactCurrentBatchConfig,Su=0,xu=null,$u=null,ku=0,_u=0,Eu=ya(0),Cu=0,Pu=null,ju=0,Ou=0,Nu=0,Ru=null,Tu=null,Au=0,Iu=1/0,Mu=null,Fu=!1,Du=null,zu=null,Lu=!1,Bu=null,Vu=0,Uu=0,Wu=null,qu=-1,Ku=0;function Hu(){return 0!=(6&Su)?Ut():-1!==qu?qu:qu=Ut()}function Gu(e){return 0==(1&e.mode)?1:0!=(2&Su)&&0!==ku?ku&-ku:null!==li.transition?(0===Ku&&(Ku=sr()),Ku):0!==(e=dr)?e:e=void 0===(e=window.event)?16:Vr(e.type)}function Qu(e,t,r,n){if(50<Uu)throw Uu=0,Wu=null,Error(J(185));ur(e,r,n),0!=(2&Su)&&e===xu||(e===xu&&(0==(2&Su)&&(Ou|=r),4===Cu&&ec(e,ku)),Xu(e,n),1===r&&0===Su&&0==(1&t.mode)&&(Iu=Ut()+500,Ra&&Ia()))}function Xu(e,t){var r=e.callbackNode;!function(e,t){for(var r=e.suspendedLanes,n=e.pingedLanes,o=e.expirationTimes,a=e.pendingLanes;0<a;){var i=31-Jt(a),s=1<<i,l=o[i];-1===l?0!=(s&r)&&0==(s&n)||(o[i]=ar(s,t)):l<=t&&(e.expiredLanes|=s),a&=~s}}(e,t);var n=or(e,e===xu?ku:0);if(0===n)null!==r&&Lt(r),e.callbackNode=null,e.callbackPriority=0;else if(t=n&-n,e.callbackPriority!==t){if(null!=r&&Lt(r),1===t)0===e.tag?function(e){Ra=!0,Aa(e)}(tc.bind(null,e)):Aa(tc.bind(null,e)),Zo((function(){0==(6&Su)&&Ia()})),r=null;else{switch(fr(n)){case 1:r=qt;break;case 4:r=Kt;break;case 16:default:r=Ht;break;case 536870912:r=Qt}r=xc(r,Yu.bind(null,e))}e.callbackPriority=t,e.callbackNode=r}}function Yu(e,t){if(qu=-1,Ku=0,0!=(6&Su))throw Error(J(327));var r=e.callbackNode;if(hc()&&e.callbackNode!==r)return null;var n=or(e,e===xu?ku:0);if(0===n)return null;if(0!=(30&n)||0!=(n&e.expiredLanes)||t)t=uc(e,n);else{t=n;var o=Su;Su|=2;var a=sc();for(xu===e&&ku===t||(Mu=null,Iu=Ut()+500,ac(e,t));;)try{dc();break}catch(t){ic(e,t)}mi(),gu.current=a,Su=o,null!==$u?t=0:(xu=null,ku=0,t=Cu)}if(0!==t){if(2===t&&(0!==(o=ir(e))&&(n=o,t=Ju(e,o))),1===t)throw r=Pu,ac(e,0),ec(e,n),Xu(e,Ut()),r;if(6===t)ec(e,n);else{if(o=e.current.alternate,0==(30&n)&&!function(e){for(var t=e;;){if(16384&t.flags){var r=t.updateQueue;if(null!==r&&null!==(r=r.stores))for(var n=0;n<r.length;n++){var o=r[n],a=o.getSnapshot;o=o.value;try{if(!Zn(a(),o))return!1}catch(e){return!1}}}if(r=t.child,16384&t.subtreeFlags&&null!==r)r.return=t,t=r;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(o)&&(2===(t=uc(e,n))&&(0!==(a=ir(e))&&(n=a,t=Ju(e,a))),1===t))throw r=Pu,ac(e,0),ec(e,n),Xu(e,Ut()),r;switch(e.finishedWork=o,e.finishedLanes=n,t){case 0:case 1:throw Error(J(345));case 2:case 5:mc(e,Tu,Mu);break;case 3:if(ec(e,n),(130023424&n)===n&&10<(t=Au+500-Ut())){if(0!==or(e,0))break;if(((o=e.suspendedLanes)&n)!==n){Hu(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=Xo(mc.bind(null,e,Tu,Mu),t);break}mc(e,Tu,Mu);break;case 4:if(ec(e,n),(4194240&n)===n)break;for(t=e.eventTimes,o=-1;0<n;){var i=31-Jt(n);a=1<<i,(i=t[i])>o&&(o=i),n&=~a}if(n=o,10<(n=(120>(n=Ut()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*yu(n/1960))-n)){e.timeoutHandle=Xo(mc.bind(null,e,Tu,Mu),n);break}mc(e,Tu,Mu);break;default:throw Error(J(329))}}}return Xu(e,Ut()),e.callbackNode===r?Yu.bind(null,e):null}function Ju(e,t){var r=Ru;return e.current.memoizedState.isDehydrated&&(ac(e,t).flags|=256),2!==(e=uc(e,t))&&(t=Tu,Tu=r,null!==t&&Zu(t)),e}function Zu(e){null===Tu?Tu=e:Tu.push.apply(Tu,e)}function ec(e,t){for(t&=~Nu,t&=~Ou,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-Jt(t),n=1<<r;e[r]=-1,t&=~n}}function tc(e){if(0!=(6&Su))throw Error(J(327));hc();var t=or(e,0);if(0==(1&t))return Xu(e,Ut()),null;var r=uc(e,t);if(0!==e.tag&&2===r){var n=ir(e);0!==n&&(t=n,r=Ju(e,n))}if(1===r)throw r=Pu,ac(e,0),ec(e,t),Xu(e,Ut()),r;if(6===r)throw Error(J(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,mc(e,Tu,Mu),Xu(e,Ut()),null}function rc(e,t){var r=Su;Su|=1;try{return e(t)}finally{0===(Su=r)&&(Iu=Ut()+500,Ra&&Ia())}}function nc(e){null!==Bu&&0===Bu.tag&&0==(6&Su)&&hc();var t=Su;Su|=1;var r=wu.transition,n=dr;try{if(wu.transition=null,dr=1,e)return e()}finally{dr=n,wu.transition=r,0==(6&(Su=t))&&Ia()}}function oc(){_u=Eu.current,ga(Eu)}function ac(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(-1!==r&&(e.timeoutHandle=-1,Yo(r)),null!==$u)for(r=$u.return;null!==r;){var n=r;switch(Ga(n),n.tag){case 1:null!=(n=n.type.childContextTypes)&&Ea();break;case 3:Yi(),ga(xa),ga(Sa),ns();break;case 5:Zi(n);break;case 4:Yi();break;case 13:case 19:ga(es);break;case 10:hi(n.type._context);break;case 22:case 23:oc()}r=r.return}if(xu=e,$u=e=Ec(e.current,null),ku=_u=t,Cu=0,Pu=null,Nu=Ou=ju=0,Tu=Ru=null,null!==bi){for(t=0;t<bi.length;t++)if(null!==(n=(r=bi[t]).interleaved)){r.interleaved=null;var o=n.next,a=r.pending;if(null!==a){var i=a.next;a.next=o,n.next=i}r.pending=n}bi=null}return e}function ic(e,t){for(;;){var r=$u;try{if(mi(),os.current=Js,cs){for(var n=ss.memoizedState;null!==n;){var o=n.queue;null!==o&&(o.pending=null),n=n.next}cs=!1}if(is=0,us=ls=ss=null,ds=!1,fs=0,bu.current=null,null===r||null===r.return){Cu=1,Pu=t,$u=null;break}e:{var a=e,i=r.return,s=r,l=t;if(t=ku,s.flags|=32768,null!==l&&"object"==typeof l&&"function"==typeof l.then){var u=l,c=s,d=c.tag;if(0==(1&c.mode)&&(0===d||11===d||15===d)){var f=c.alternate;f?(c.updateQueue=f.updateQueue,c.memoizedState=f.memoizedState,c.lanes=f.lanes):(c.updateQueue=null,c.memoizedState=null)}var p=ul(i);if(null!==p){p.flags&=-257,cl(p,i,s,0,t),1&p.mode&&ll(a,u,t),l=u;var m=(t=p).updateQueue;if(null===m){var h=new Set;h.add(l),t.updateQueue=h}else m.add(l);break e}if(0==(1&t)){ll(a,u,t),lc();break e}l=Error(J(426))}else if(Ya&&1&s.mode){var v=ul(i);if(null!==v){0==(65536&v.flags)&&(v.flags|=256),cl(v,i,s,0,t),si(rl(l,s));break e}}a=l=rl(l,s),4!==Cu&&(Cu=2),null===Ru?Ru=[a]:Ru.push(a),a=i;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t,ji(a,il(0,l,t));break e;case 1:s=l;var y=a.type,g=a.stateNode;if(0==(128&a.flags)&&("function"==typeof y.getDerivedStateFromError||null!==g&&"function"==typeof g.componentDidCatch&&(null===zu||!zu.has(g)))){a.flags|=65536,t&=-t,a.lanes|=t,ji(a,sl(a,s,t));break e}}a=a.return}while(null!==a)}pc(r)}catch(e){t=e,$u===r&&null!==r&&($u=r=r.return);continue}break}}function sc(){var e=gu.current;return gu.current=Js,null===e?Js:e}function lc(){0!==Cu&&3!==Cu&&2!==Cu||(Cu=4),null===xu||0==(268435455&ju)&&0==(268435455&Ou)||ec(xu,ku)}function uc(e,t){var r=Su;Su|=2;var n=sc();for(xu===e&&ku===t||(Mu=null,ac(e,t));;)try{cc();break}catch(t){ic(e,t)}if(mi(),Su=r,gu.current=n,null!==$u)throw Error(J(261));return xu=null,ku=0,Cu}function cc(){for(;null!==$u;)fc($u)}function dc(){for(;null!==$u&&!Bt();)fc($u)}function fc(e){var t=vu(e.alternate,e,_u);e.memoizedProps=e.pendingProps,null===t?pc(e):$u=t,bu.current=null}function pc(e){var t=e;do{var r=t.alternate;if(e=t.return,0==(32768&t.flags)){if(null!==(r=Ll(r,t,_u)))return void($u=r)}else{if(null!==(r=Bl(r,t)))return r.flags&=32767,void($u=r);if(null===e)return Cu=6,void($u=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void($u=t);$u=t=e}while(null!==t);0===Cu&&(Cu=5)}function mc(e,t,r){var n=dr,o=wu.transition;try{wu.transition=null,dr=1,function(e,t,r,n){do{hc()}while(null!==Bu);if(0!=(6&Su))throw Error(J(327));r=e.finishedWork;var o=e.finishedLanes;if(null===r)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(J(177));e.callbackNode=null,e.callbackPriority=0;var a=r.lanes|r.childLanes;if(function(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0<r;){var o=31-Jt(r),a=1<<o;t[o]=0,n[o]=-1,e[o]=-1,r&=~a}}(e,a),e===xu&&($u=xu=null,ku=0),0==(2064&r.subtreeFlags)&&0==(2064&r.flags)||Lu||(Lu=!0,xc(Ht,(function(){return hc(),null}))),a=0!=(15990&r.flags),0!=(15990&r.subtreeFlags)||a){a=wu.transition,wu.transition=null;var i=dr;dr=1;var s=Su;Su|=4,bu.current=null,function(e,t){if(Ho=Mr,ao(e=oo())){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{var n=(r=(r=e.ownerDocument)&&r.defaultView||window).getSelection&&r.getSelection();if(n&&0!==n.rangeCount){r=n.anchorNode;var o=n.anchorOffset,a=n.focusNode;n=n.focusOffset;try{r.nodeType,a.nodeType}catch(e){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||0!==o&&3!==d.nodeType||(s=i+o),d!==a||0!==n&&3!==d.nodeType||(l=i+n),3===d.nodeType&&(i+=d.nodeValue.length),null!==(p=d.firstChild);)f=d,d=p;for(;;){if(d===e)break t;if(f===r&&++u===o&&(s=i),f===a&&++c===n&&(l=i),null!==(p=d.nextSibling))break;f=(d=f).parentNode}d=p}r=-1===s||-1===l?null:{start:s,end:l}}else r=null}r=r||{start:0,end:0}}else r=null;for(Go={focusedElem:e,selectionRange:r},Mr=!1,ql=t;null!==ql;)if(e=(t=ql).child,0!=(1028&t.subtreeFlags)&&null!==e)e.return=t,ql=e;else for(;null!==ql;){t=ql;try{var m=t.alternate;if(0!=(1024&t.flags))switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==m){var h=m.memoizedProps,v=m.memoizedState,y=t.stateNode,g=y.getSnapshotBeforeUpdate(t.elementType===t.type?h:ui(t.type,h),v);y.__reactInternalSnapshotBeforeUpdate=g}break;case 3:var b=t.stateNode.containerInfo;1===b.nodeType?b.textContent="":9===b.nodeType&&b.documentElement&&b.removeChild(b.documentElement);break;default:throw Error(J(163))}}catch(e){yc(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,ql=e;break}ql=t.return}m=Gl,Gl=!1}(e,r),uu(r,e),io(Go),Mr=!!Ho,Go=Ho=null,e.current=r,du(r),Vt(),Su=s,dr=i,wu.transition=a}else e.current=r;if(Lu&&(Lu=!1,Bu=e,Vu=o),a=e.pendingLanes,0===a&&(zu=null),function(e){if(Yt&&"function"==typeof Yt.onCommitFiberRoot)try{Yt.onCommitFiberRoot(Xt,e,void 0,128==(128&e.current.flags))}catch(e){}}(r.stateNode),Xu(e,Ut()),null!==t)for(n=e.onRecoverableError,r=0;r<t.length;r++)o=t[r],n(o.value,{componentStack:o.stack,digest:o.digest});if(Fu)throw Fu=!1,e=Du,Du=null,e;0!=(1&Vu)&&0!==e.tag&&hc(),a=e.pendingLanes,0!=(1&a)?e===Wu?Uu++:(Uu=0,Wu=e):Uu=0,Ia()}(e,t,r,n)}finally{wu.transition=o,dr=n}return null}function hc(){if(null!==Bu){var e=fr(Vu),t=wu.transition,r=dr;try{if(wu.transition=null,dr=16>e?16:e,null===Bu)var n=!1;else{if(e=Bu,Bu=null,Vu=0,0!=(6&Su))throw Error(J(331));var o=Su;for(Su|=4,ql=e.current;null!==ql;){var a=ql,i=a.child;if(0!=(16&ql.flags)){var s=a.deletions;if(null!==s){for(var l=0;l<s.length;l++){var u=s[l];for(ql=u;null!==ql;){var c=ql;switch(c.tag){case 0:case 11:case 15:Ql(8,c,a)}var d=c.child;if(null!==d)d.return=c,ql=d;else for(;null!==ql;){var f=(c=ql).sibling,p=c.return;if(Jl(c),c===u){ql=null;break}if(null!==f){f.return=p,ql=f;break}ql=p}}}var m=a.alternate;if(null!==m){var h=m.child;if(null!==h){m.child=null;do{var v=h.sibling;h.sibling=null,h=v}while(null!==h)}}ql=a}}if(0!=(2064&a.subtreeFlags)&&null!==i)i.return=a,ql=i;else e:for(;null!==ql;){if(0!=(2048&(a=ql).flags))switch(a.tag){case 0:case 11:case 15:Ql(9,a,a.return)}var y=a.sibling;if(null!==y){y.return=a.return,ql=y;break e}ql=a.return}}var g=e.current;for(ql=g;null!==ql;){var b=(i=ql).child;if(0!=(2064&i.subtreeFlags)&&null!==b)b.return=i,ql=b;else e:for(i=g;null!==ql;){if(0!=(2048&(s=ql).flags))try{switch(s.tag){case 0:case 11:case 15:Xl(9,s)}}catch(e){yc(s,s.return,e)}if(s===i){ql=null;break e}var w=s.sibling;if(null!==w){w.return=s.return,ql=w;break e}ql=s.return}}if(Su=o,Ia(),Yt&&"function"==typeof Yt.onPostCommitFiberRoot)try{Yt.onPostCommitFiberRoot(Xt,e)}catch(e){}n=!0}return n}finally{dr=r,wu.transition=t}}return!1}function vc(e,t,r){e=Ci(e,t=il(0,t=rl(r,t),1),1),t=Hu(),null!==e&&(ur(e,1,t),Xu(e,t))}function yc(e,t,r){if(3===e.tag)vc(e,e,r);else for(;null!==t;){if(3===t.tag){vc(t,e,r);break}if(1===t.tag){var n=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof n.componentDidCatch&&(null===zu||!zu.has(n))){t=Ci(t,e=sl(t,e=rl(r,e),1),1),e=Hu(),null!==t&&(ur(t,1,e),Xu(t,e));break}}t=t.return}}function gc(e,t,r){var n=e.pingCache;null!==n&&n.delete(t),t=Hu(),e.pingedLanes|=e.suspendedLanes&r,xu===e&&(ku&r)===r&&(4===Cu||3===Cu&&(130023424&ku)===ku&&500>Ut()-Au?ac(e,0):Nu|=r),Xu(e,t)}function bc(e,t){0===t&&(0==(1&e.mode)?t=1:(t=rr,0==(130023424&(rr<<=1))&&(rr=4194304)));var r=Hu();null!==(e=xi(e,t))&&(ur(e,t,r),Xu(e,r))}function wc(e){var t=e.memoizedState,r=0;null!==t&&(r=t.retryLane),bc(e,r)}function Sc(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,o=e.memoizedState;null!==o&&(r=o.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(J(314))}null!==n&&n.delete(t),bc(e,r)}function xc(e,t){return zt(e,t)}function $c(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 kc(e,t,r,n){return new $c(e,t,r,n)}function _c(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Ec(e,t){var r=e.alternate;return null===r?((r=kc(e.tag,t,e.key,e.mode)).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=14680064&e.flags,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=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function Cc(e,t,r,n,o,a){var i=2;if(n=e,"function"==typeof e)_c(e)&&(i=1);else if("string"==typeof e)i=5;else e:switch(e){case ve:return Pc(r.children,o,a,t);case ye:i=8,o|=8;break;case ge:return(e=kc(12,r,t,2|o)).elementType=ge,e.lanes=a,e;case xe:return(e=kc(13,r,t,o)).elementType=xe,e.lanes=a,e;case $e:return(e=kc(19,r,t,o)).elementType=$e,e.lanes=a,e;case Ee:return jc(r,o,a,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case be:i=10;break e;case we:i=9;break e;case Se:i=11;break e;case ke:i=14;break e;case _e:i=16,n=null;break e}throw Error(J(130,null==e?e:typeof e,""))}return(t=kc(i,r,t,o)).elementType=e,t.type=n,t.lanes=a,t}function Pc(e,t,r,n){return(e=kc(7,e,n,t)).lanes=r,e}function jc(e,t,r,n){return(e=kc(22,e,n,t)).elementType=Ee,e.lanes=r,e.stateNode={isHidden:!1},e}function Oc(e,t,r){return(e=kc(6,e,null,t)).lanes=r,e}function Nc(e,t,r){return(t=kc(4,null!==e.children?e.children:[],e.key,t)).lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Rc(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=lr(0),this.expirationTimes=lr(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=lr(0),this.identifierPrefix=n,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Tc(e,t,r,n,o,a,i,s,l){return e=new Rc(e,t,r,s,l),1===t?(t=1,!0===a&&(t|=8)):t=0,a=kc(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},ki(a),e}function Ac(e){if(!e)return wa;e:{if(At(e=e._reactInternals)!==e||1!==e.tag)throw Error(J(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(_a(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(J(171))}if(1===e.tag){var r=e.type;if(_a(r))return Pa(e,r,t)}return t}function Ic(e,t,r,n,o,a,i,s,l){return(e=Tc(r,n,!0,e,0,a,0,s,l)).context=Ac(null),r=e.current,(a=Ei(n=Hu(),o=Gu(r))).callback=null!=t?t:null,Ci(r,a,o),e.current.lanes=o,ur(e,o,n),Xu(e,n),e}function Mc(e,t,r,n){var o=t.current,a=Hu(),i=Gu(o);return r=Ac(r),null===t.context?t.context=r:t.pendingContext=r,(t=Ei(a,i)).payload={element:e},null!==(n=void 0===n?null:n)&&(t.callback=n),null!==(e=Ci(o,t,i))&&(Qu(e,o,i,a),Pi(e,o,i)),i}function Fc(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Dc(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var r=e.retryLane;e.retryLane=0!==r&&r<t?r:t}}function zc(e,t){Dc(e,t),(e=e.alternate)&&Dc(e,t)}vu=function(e,t,r){if(null!==e)if(e.memoizedProps!==t.pendingProps||xa.current)fl=!0;else{if(0==(e.lanes&r)&&0==(128&t.flags))return fl=!1,function(e,t,r){switch(t.tag){case 3:xl(t),ii();break;case 5:Ji(t);break;case 1:_a(t.type)&&ja(t);break;case 4:Xi(t,t.stateNode.containerInfo);break;case 10:var n=t.type._context,o=t.memoizedProps.value;ba(ci,n._currentValue),n._currentValue=o;break;case 13:if(null!==(n=t.memoizedState))return null!==n.dehydrated?(ba(es,1&es.current),t.flags|=128,null):0!=(r&t.child.childLanes)?Ol(e,t,r):(ba(es,1&es.current),null!==(e=Fl(e,t,r))?e.sibling:null);ba(es,1&es.current);break;case 19:if(n=0!=(r&t.childLanes),0!=(128&e.flags)){if(n)return Il(e,t,r);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),ba(es,es.current),n)break;return null;case 22:case 23:return t.lanes=0,yl(e,t,r)}return Fl(e,t,r)}(e,t,r);fl=0!=(131072&e.flags)}else fl=!1,Ya&&0!=(1048576&t.flags)&&Ka(t,za,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;Ml(e,t),e=t.pendingProps;var o=ka(t,Sa.current);yi(t,r),o=vs(null,t,n,e,o,r);var a=ys();return t.flags|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,_a(n)?(a=!0,ja(t)):a=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,ki(t),o.updater=Ai,t.stateNode=o,o._reactInternals=t,Di(t,n,e,r),t=Sl(null,t,n,!0,a,r)):(t.tag=0,Ya&&a&&Ha(t),pl(null,t,o,r),t=t.child),t;case 16:n=t.elementType;e:{switch(Ml(e,t),e=t.pendingProps,n=(o=n._init)(n._payload),t.type=n,o=t.tag=function(e){if("function"==typeof e)return _c(e)?1:0;if(null!=e){if((e=e.$$typeof)===Se)return 11;if(e===ke)return 14}return 2}(n),e=ui(n,e),o){case 0:t=bl(null,t,n,e,r);break e;case 1:t=wl(null,t,n,e,r);break e;case 11:t=ml(null,t,n,e,r);break e;case 14:t=hl(null,t,n,ui(n.type,e),r);break e}throw Error(J(306,n,""))}return t;case 0:return n=t.type,o=t.pendingProps,bl(e,t,n,o=t.elementType===n?o:ui(n,o),r);case 1:return n=t.type,o=t.pendingProps,wl(e,t,n,o=t.elementType===n?o:ui(n,o),r);case 3:e:{if(xl(t),null===e)throw Error(J(387));n=t.pendingProps,o=(a=t.memoizedState).element,_i(e,t),Oi(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,256&t.flags){t=$l(e,t,n,r,o=rl(Error(J(423)),t));break e}if(n!==o){t=$l(e,t,n,r,o=rl(Error(J(424)),t));break e}for(Xa=ra(t.stateNode.containerInfo.firstChild),Qa=t,Ya=!0,Ja=null,r=Wi(t,null,n,r),t.child=r;r;)r.flags=-3&r.flags|4096,r=r.sibling}else{if(ii(),n===o){t=Fl(e,t,r);break e}pl(e,t,n,r)}t=t.child}return t;case 5:return Ji(t),null===e&&ri(t),n=t.type,o=t.pendingProps,a=null!==e?e.memoizedProps:null,i=o.children,Qo(n,o)?i=null:null!==a&&Qo(n,a)&&(t.flags|=32),gl(e,t),pl(e,t,i,r),t.child;case 6:return null===e&&ri(t),null;case 13:return Ol(e,t,r);case 4:return Xi(t,t.stateNode.containerInfo),n=t.pendingProps,null===e?t.child=Ui(t,null,n,r):pl(e,t,n,r),t.child;case 11:return n=t.type,o=t.pendingProps,ml(e,t,n,o=t.elementType===n?o:ui(n,o),r);case 7:return pl(e,t,t.pendingProps,r),t.child;case 8:case 12:return pl(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,ba(ci,n._currentValue),n._currentValue=i,null!==a)if(Zn(a.value,i)){if(a.children===o.children&&!xa.current){t=Fl(e,t,r);break e}}else for(null!==(a=t.child)&&(a.return=t);null!==a;){var s=a.dependencies;if(null!==s){i=a.child;for(var l=s.firstContext;null!==l;){if(l.context===n){if(1===a.tag){(l=Ei(-1,r&-r)).tag=2;var u=a.updateQueue;if(null!==u){var c=(u=u.shared).pending;null===c?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}a.lanes|=r,null!==(l=a.alternate)&&(l.lanes|=r),vi(a.return,r,t),s.lanes|=r;break}l=l.next}}else if(10===a.tag)i=a.type===t.type?null:a.child;else if(18===a.tag){if(null===(i=a.return))throw Error(J(341));i.lanes|=r,null!==(s=i.alternate)&&(s.lanes|=r),vi(i,r,t),i=a.sibling}else i=a.child;if(null!==i)i.return=a;else for(i=a;null!==i;){if(i===t){i=null;break}if(null!==(a=i.sibling)){a.return=i.return,i=a;break}i=i.return}a=i}pl(e,t,o.children,r),t=t.child}return t;case 9:return o=t.type,n=t.pendingProps.children,yi(t,r),n=n(o=gi(o)),t.flags|=1,pl(e,t,n,r),t.child;case 14:return o=ui(n=t.type,t.pendingProps),hl(e,t,n,o=ui(n.type,o),r);case 15:return vl(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:ui(n,o),Ml(e,t),t.tag=1,_a(n)?(e=!0,ja(t)):e=!1,yi(t,r),Mi(t,n,o),Di(t,n,o,r),Sl(null,t,n,!0,e,r);case 19:return Il(e,t,r);case 22:return yl(e,t,r)}throw Error(J(156,t.tag))};var Lc="function"==typeof reportError?reportError:function(e){console.error(e)};function Bc(e){this._internalRoot=e}function Vc(e){this._internalRoot=e}function Uc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Wc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function qc(){}function Kc(e,t,r,n,o){var a=r._reactRootContainer;if(a){var i=a;if("function"==typeof o){var s=o;o=function(){var e=Fc(i);s.call(e)}}Mc(t,i,e,o)}else i=function(e,t,r,n,o){if(o){if("function"==typeof n){var a=n;n=function(){var e=Fc(i);a.call(e)}}var i=Ic(t,n,e,0,null,!1,0,"",qc);return e._reactRootContainer=i,e[sa]=i.current,Io(8===e.nodeType?e.parentNode:e),nc(),i}for(;o=e.lastChild;)e.removeChild(o);if("function"==typeof n){var s=n;n=function(){var e=Fc(l);s.call(e)}}var l=Tc(e,0,!1,null,0,!1,0,"",qc);return e._reactRootContainer=l,e[sa]=l.current,Io(8===e.nodeType?e.parentNode:e),nc((function(){Mc(t,l,r,n)})),l}(r,t,e,o,n);return Fc(i)}Vc.prototype.render=Bc.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(J(409));Mc(e,t,null,null)},Vc.prototype.unmount=Bc.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;nc((function(){Mc(null,e,null,null)})),t[sa]=null}},Vc.prototype.unstable_scheduleHydration=function(e){if(e){var t=vr();e={blockedOn:null,target:e,priority:t};for(var r=0;r<_r.length&&0!==t&&t<_r[r].priority;r++);_r.splice(r,0,e),0===r&&jr(e)}},pr=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var r=nr(t.pendingLanes);0!==r&&(cr(t,1|r),Xu(t,Ut()),0==(6&Su)&&(Iu=Ut()+500,Ia()))}break;case 13:nc((function(){var t=xi(e,1);if(null!==t){var r=Hu();Qu(t,e,1,r)}})),zc(e,1)}},mr=function(e){if(13===e.tag){var t=xi(e,134217728);if(null!==t)Qu(t,e,134217728,Hu());zc(e,134217728)}},hr=function(e){if(13===e.tag){var t=Gu(e),r=xi(e,t);if(null!==r)Qu(r,e,t,Hu());zc(e,t)}},vr=function(){return dr},yr=function(e,t){var r=dr;try{return dr=e,t()}finally{dr=r}},mt=function(e,t,r){switch(t){case"input":if(qe(e,r),t=r.name,"radio"===r.type&&null!=t){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var n=r[t];if(n!==e&&n.form===e.form){var o=ma(n);if(!o)throw Error(J(90));Le(n),qe(n,o)}}}break;case"textarea":Je(e,r);break;case"select":null!=(t=r.value)&&Qe(e,!!r.multiple,t,!1)}},wt=rc,St=nc;var Hc={usingClientEntryPoint:!1,Events:[fa,pa,ma,gt,bt,rc]},Gc={findFiberByHostInstance:da,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},Qc={bundleType:Gc.bundleType,version:Gc.version,rendererPackageName:Gc.rendererPackageName,rendererConfig:Gc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:pe.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Ft(e))?null:e.stateNode},findFiberByHostInstance:Gc.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var Xc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Xc.isDisabled&&Xc.supportsFiber)try{Xt=Xc.inject(Qc),Yt=Xc}catch(oU){}}K.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Hc,K.createPortal=function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Uc(t))throw Error(J(200));return function(e,t,r){var n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:he,key:null==n?null:""+n,children:e,containerInfo:t,implementation:r}}(e,t,null,r)},K.createRoot=function(e,t){if(!Uc(e))throw Error(J(299));var r=!1,n="",o=Lc;return null!=t&&(!0===t.unstable_strictMode&&(r=!0),void 0!==t.identifierPrefix&&(n=t.identifierPrefix),void 0!==t.onRecoverableError&&(o=t.onRecoverableError)),t=Tc(e,1,!1,null,0,r,0,n,o),e[sa]=t.current,Io(8===e.nodeType?e.parentNode:e),new Bc(t)},K.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(J(188));throw e=Object.keys(e).join(","),Error(J(268,e))}return e=null===(e=Ft(t))?null:e.stateNode},K.flushSync=function(e){return nc(e)},K.hydrate=function(e,t,r){if(!Wc(t))throw Error(J(200));return Kc(null,e,t,!0,r)},K.hydrateRoot=function(e,t,r){if(!Uc(e))throw Error(J(405));var n=null!=r&&r.hydratedSources||null,o=!1,a="",i=Lc;if(null!=r&&(!0===r.unstable_strictMode&&(o=!0),void 0!==r.identifierPrefix&&(a=r.identifierPrefix),void 0!==r.onRecoverableError&&(i=r.onRecoverableError)),t=Ic(t,null,e,1,null!=r?r:null,o,0,a,i),e[sa]=t.current,Io(e),n)for(e=0;e<n.length;e++)o=(o=(r=n[e])._getVersion)(r._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[r,o]:t.mutableSourceEagerHydrationData.push(r,o);return new Vc(t)},K.render=function(e,t,r){if(!Wc(t))throw Error(J(200));return Kc(null,e,t,!1,r)},K.unmountComponentAtNode=function(e){if(!Wc(e))throw Error(J(40));return!!e._reactRootContainer&&(nc((function(){Kc(null,null,e,!1,(function(){e._reactRootContainer=null,e[sa]=null}))})),!0)},K.unstable_batchedUpdates=rc,K.unstable_renderSubtreeIntoContainer=function(e,t,r,n){if(!Wc(r))throw Error(J(200));if(null==e||void 0===e._reactInternals)throw Error(J(38));return Kc(e,t,r,!1,n)},K.version="18.2.0-next-9e3b772b8-20220608",function(e){!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=K}(q);var Yc=n(W),Jc=W;U.createRoot=Jc.createRoot,U.hydrateRoot=Jc.hydrateRoot;var Zc="object"==typeof global&&global&&global.Object===Object&&global,ed="object"==typeof self&&self&&self.Object===Object&&self,td=Zc||ed||Function("return this")(),rd=td.Symbol,nd=Object.prototype,od=nd.hasOwnProperty,ad=nd.toString,id=rd?rd.toStringTag:void 0;var sd=Object.prototype.toString;var ld="[object Null]",ud="[object Undefined]",cd=rd?rd.toStringTag:void 0;function dd(e){return null==e?void 0===e?ud:ld:cd&&cd in Object(e)?function(e){var t=od.call(e,id),r=e[id];try{e[id]=void 0;var n=!0}catch(e){}var o=ad.call(e);return n&&(t?e[id]=r:delete e[id]),o}(e):function(e){return sd.call(e)}(e)}function fd(e,t){return function(r){return e(t(r))}}var pd=fd(Object.getPrototypeOf,Object);function md(e){return null!=e&&"object"==typeof e}var hd="[object Object]",vd=Function.prototype,yd=Object.prototype,gd=vd.toString,bd=yd.hasOwnProperty,wd=gd.call(Object);function Sd(e){if(!md(e)||dd(e)!=hd)return!1;var t=pd(e);if(null===t)return!0;var r=bd.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&gd.call(r)==wd}function xd(e,t){return e===t||e!=e&&t!=t}function $d(e,t){for(var r=e.length;r--;)if(xd(e[r][0],t))return r;return-1}var kd=Array.prototype.splice;function _d(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Ed(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}_d.prototype.clear=function(){this.__data__=[],this.size=0},_d.prototype.delete=function(e){var t=this.__data__,r=$d(t,e);return!(r<0)&&(r==t.length-1?t.pop():kd.call(t,r,1),--this.size,!0)},_d.prototype.get=function(e){var t=this.__data__,r=$d(t,e);return r<0?void 0:t[r][1]},_d.prototype.has=function(e){return $d(this.__data__,e)>-1},_d.prototype.set=function(e,t){var r=this.__data__,n=$d(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this};var Cd="[object AsyncFunction]",Pd="[object Function]",jd="[object GeneratorFunction]",Od="[object Proxy]";function Nd(e){if(!Ed(e))return!1;var t=dd(e);return t==Pd||t==jd||t==Cd||t==Od}var Rd,Td=td["__core-js_shared__"],Ad=(Rd=/[^.]+$/.exec(Td&&Td.keys&&Td.keys.IE_PROTO||""))?"Symbol(src)_1."+Rd:"";var Id=Function.prototype.toString;function Md(e){if(null!=e){try{return Id.call(e)}catch(e){}try{return e+""}catch(e){}}return""}var Fd=/^\[object .+?Constructor\]$/,Dd=Function.prototype,zd=Object.prototype,Ld=Dd.toString,Bd=zd.hasOwnProperty,Vd=RegExp("^"+Ld.call(Bd).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Ud(e){return!(!Ed(e)||(t=e,Ad&&Ad in t))&&(Nd(e)?Vd:Fd).test(Md(e));var t}function Wd(e,t){var r=function(e,t){return null==e?void 0:e[t]}(e,t);return Ud(r)?r:void 0}var qd=Wd(td,"Map"),Kd=Wd(Object,"create");var Hd=Object.prototype.hasOwnProperty;var Gd=Object.prototype.hasOwnProperty;function Qd(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Xd(e,t){var r=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?r["string"==typeof t?"string":"hash"]:r.map}function Yd(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Qd.prototype.clear=function(){this.__data__=Kd?Kd(null):{},this.size=0},Qd.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Qd.prototype.get=function(e){var t=this.__data__;if(Kd){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return Hd.call(t,e)?t[e]:void 0},Qd.prototype.has=function(e){var t=this.__data__;return Kd?void 0!==t[e]:Gd.call(t,e)},Qd.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Kd&&void 0===t?"__lodash_hash_undefined__":t,this},Yd.prototype.clear=function(){this.size=0,this.__data__={hash:new Qd,map:new(qd||_d),string:new Qd}},Yd.prototype.delete=function(e){var t=Xd(this,e).delete(e);return this.size-=t?1:0,t},Yd.prototype.get=function(e){return Xd(this,e).get(e)},Yd.prototype.has=function(e){return Xd(this,e).has(e)},Yd.prototype.set=function(e,t){var r=Xd(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this};function Jd(e){var t=this.__data__=new _d(e);this.size=t.size}Jd.prototype.clear=function(){this.__data__=new _d,this.size=0},Jd.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},Jd.prototype.get=function(e){return this.__data__.get(e)},Jd.prototype.has=function(e){return this.__data__.has(e)},Jd.prototype.set=function(e,t){var r=this.__data__;if(r instanceof _d){var n=r.__data__;if(!qd||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Yd(n)}return r.set(e,t),this.size=r.size,this};function Zd(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new Yd;++t<r;)this.add(e[t])}function ef(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}function tf(e,t){return e.has(t)}Zd.prototype.add=Zd.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},Zd.prototype.has=function(e){return this.__data__.has(e)};var rf=1,nf=2;function of(e,t,r,n,o,a){var i=r&rf,s=e.length,l=t.length;if(s!=l&&!(i&&l>s))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&nf?new Zd:void 0;for(a.set(e,t),a.set(t,e);++d<s;){var m=e[d],h=t[d];if(n)var v=i?n(h,m,d,t,e,a):n(m,h,d,e,t,a);if(void 0!==v){if(v)continue;f=!1;break}if(p){if(!ef(t,(function(e,t){if(!tf(p,t)&&(m===e||o(m,e,r,n,a)))return p.push(t)}))){f=!1;break}}else if(m!==h&&!o(m,h,r,n,a)){f=!1;break}}return a.delete(e),a.delete(t),f}var af=td.Uint8Array;function sf(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r}function lf(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r}var uf=1,cf=2,df="[object Boolean]",ff="[object Date]",pf="[object Error]",mf="[object Map]",hf="[object Number]",vf="[object RegExp]",yf="[object Set]",gf="[object String]",bf="[object Symbol]",wf="[object ArrayBuffer]",Sf="[object DataView]",xf=rd?rd.prototype:void 0,$f=xf?xf.valueOf:void 0;function kf(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e}var _f=Array.isArray;function Ef(e,t,r){var n=t(e);return _f(e)?n:kf(n,r(e))}function Cf(){return[]}var Pf=Object.prototype.propertyIsEnumerable,jf=Object.getOwnPropertySymbols,Of=jf?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var r=-1,n=null==e?0:e.length,o=0,a=[];++r<n;){var i=e[r];t(i,r,e)&&(a[o++]=i)}return a}(jf(e),(function(t){return Pf.call(e,t)})))}:Cf,Nf=Of;function Rf(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}function Tf(e){return md(e)&&"[object Arguments]"==dd(e)}var Af=Object.prototype,If=Af.hasOwnProperty,Mf=Af.propertyIsEnumerable,Ff=Tf(function(){return arguments}())?Tf:function(e){return md(e)&&If.call(e,"callee")&&!Mf.call(e,"callee")},Df=Ff;var zf="object"==typeof exports&&exports&&!exports.nodeType&&exports,Lf=zf&&"object"==typeof module&&module&&!module.nodeType&&module,Bf=Lf&&Lf.exports===zf?td.Buffer:void 0,Vf=(Bf?Bf.isBuffer:void 0)||function(){return!1},Uf=9007199254740991,Wf=/^(?:0|[1-9]\d*)$/;function qf(e,t){var r=typeof e;return!!(t=null==t?Uf:t)&&("number"==r||"symbol"!=r&&Wf.test(e))&&e>-1&&e%1==0&&e<t}var Kf=9007199254740991;function Hf(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=Kf}var Gf={};function Qf(e){return function(t){return e(t)}}Gf["[object Float32Array]"]=Gf["[object Float64Array]"]=Gf["[object Int8Array]"]=Gf["[object Int16Array]"]=Gf["[object Int32Array]"]=Gf["[object Uint8Array]"]=Gf["[object Uint8ClampedArray]"]=Gf["[object Uint16Array]"]=Gf["[object Uint32Array]"]=!0,Gf["[object Arguments]"]=Gf["[object Array]"]=Gf["[object ArrayBuffer]"]=Gf["[object Boolean]"]=Gf["[object DataView]"]=Gf["[object Date]"]=Gf["[object Error]"]=Gf["[object Function]"]=Gf["[object Map]"]=Gf["[object Number]"]=Gf["[object Object]"]=Gf["[object RegExp]"]=Gf["[object Set]"]=Gf["[object String]"]=Gf["[object WeakMap]"]=!1;var Xf="object"==typeof exports&&exports&&!exports.nodeType&&exports,Yf=Xf&&"object"==typeof module&&module&&!module.nodeType&&module,Jf=Yf&&Yf.exports===Xf&&Zc.process,Zf=function(){try{var e=Yf&&Yf.require&&Yf.require("util").types;return e||Jf&&Jf.binding&&Jf.binding("util")}catch(e){}}(),ep=Zf,tp=ep&&ep.isTypedArray,rp=tp?Qf(tp):function(e){return md(e)&&Hf(e.length)&&!!Gf[dd(e)]},np=Object.prototype.hasOwnProperty;function op(e,t){var r=_f(e),n=!r&&Df(e),o=!r&&!n&&Vf(e),a=!r&&!n&&!o&&rp(e),i=r||n||o||a,s=i?Rf(e.length,String):[],l=s.length;for(var u in e)!t&&!np.call(e,u)||i&&("length"==u||o&&("offset"==u||"parent"==u)||a&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||qf(u,l))||s.push(u);return s}var ap=Object.prototype;function ip(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||ap)}var sp=fd(Object.keys,Object),lp=Object.prototype.hasOwnProperty;function up(e){if(!ip(e))return sp(e);var t=[];for(var r in Object(e))lp.call(e,r)&&"constructor"!=r&&t.push(r);return t}function cp(e){return null!=e&&Hf(e.length)&&!Nd(e)}function dp(e){return cp(e)?op(e):up(e)}function fp(e){return Ef(e,dp,Nf)}var pp=1,mp=Object.prototype.hasOwnProperty;var hp=Wd(td,"DataView"),vp=Wd(td,"Promise"),yp=Wd(td,"Set"),gp=Wd(td,"WeakMap"),bp="[object Map]",wp="[object Promise]",Sp="[object Set]",xp="[object WeakMap]",$p="[object DataView]",kp=Md(hp),_p=Md(qd),Ep=Md(vp),Cp=Md(yp),Pp=Md(gp),jp=dd;(hp&&jp(new hp(new ArrayBuffer(1)))!=$p||qd&&jp(new qd)!=bp||vp&&jp(vp.resolve())!=wp||yp&&jp(new yp)!=Sp||gp&&jp(new gp)!=xp)&&(jp=function(e){var t=dd(e),r="[object Object]"==t?e.constructor:void 0,n=r?Md(r):"";if(n)switch(n){case kp:return $p;case _p:return bp;case Ep:return wp;case Cp:return Sp;case Pp:return xp}return t});var Op=jp,Np=1,Rp="[object Arguments]",Tp="[object Array]",Ap="[object Object]",Ip=Object.prototype.hasOwnProperty;function Mp(e,t,r,n,o,a){var i=_f(e),s=_f(t),l=i?Tp:Op(e),u=s?Tp:Op(t),c=(l=l==Rp?Ap:l)==Ap,d=(u=u==Rp?Ap:u)==Ap,f=l==u;if(f&&Vf(e)){if(!Vf(t))return!1;i=!0,c=!1}if(f&&!c)return a||(a=new Jd),i||rp(e)?of(e,t,r,n,o,a):function(e,t,r,n,o,a,i){switch(r){case Sf:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case wf:return!(e.byteLength!=t.byteLength||!a(new af(e),new af(t)));case df:case ff:case hf:return xd(+e,+t);case pf:return e.name==t.name&&e.message==t.message;case vf:case gf:return e==t+"";case mf:var s=sf;case yf:var l=n&uf;if(s||(s=lf),e.size!=t.size&&!l)return!1;var u=i.get(e);if(u)return u==t;n|=cf,i.set(e,t);var c=of(s(e),s(t),n,o,a,i);return i.delete(e),c;case bf:if($f)return $f.call(e)==$f.call(t)}return!1}(e,t,l,r,n,o,a);if(!(r&Np)){var p=c&&Ip.call(e,"__wrapped__"),m=d&&Ip.call(t,"__wrapped__");if(p||m){var h=p?e.value():e,v=m?t.value():t;return a||(a=new Jd),o(h,v,r,n,a)}}return!!f&&(a||(a=new Jd),function(e,t,r,n,o,a){var i=r&pp,s=fp(e),l=s.length;if(l!=fp(t).length&&!i)return!1;for(var u=l;u--;){var c=s[u];if(!(i?c in t:mp.call(t,c)))return!1}var d=a.get(e),f=a.get(t);if(d&&f)return d==t&&f==e;var p=!0;a.set(e,t),a.set(t,e);for(var m=i;++u<l;){var h=e[c=s[u]],v=t[c];if(n)var y=i?n(v,h,c,t,e,a):n(h,v,c,e,t,a);if(!(void 0===y?h===v||o(h,v,r,n,a):y)){p=!1;break}m||(m="constructor"==c)}if(p&&!m){var g=e.constructor,b=t.constructor;g==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof g&&g instanceof g&&"function"==typeof b&&b instanceof b||(p=!1)}return a.delete(e),a.delete(t),p}(e,t,r,n,o,a))}function Fp(e,t,r,n,o){return e===t||(null==e||null==t||!md(e)&&!md(t)?e!=e&&t!=t:Mp(e,t,r,n,Fp,o))}var Dp="[object Symbol]";function zp(e){return"symbol"==typeof e||md(e)&&dd(e)==Dp}var Lp=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Bp=/^\w*$/;function Vp(e,t){if(_f(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!zp(e))||(Bp.test(e)||!Lp.test(e)||null!=t&&e in Object(t))}var Up="Expected a function";function Wp(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError(Up);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(Wp.Cache||Yd),r}Wp.Cache=Yd;var qp,Kp,Hp,Gp=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Qp=/\\(\\)?/g,Xp=(qp=function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Gp,(function(e,r,n,o){t.push(n?o.replace(Qp,"$1"):r||e)})),t},Kp=Wp(qp,(function(e){return 500===Hp.size&&Hp.clear(),e})),Hp=Kp.cache,Kp),Yp=Xp;function Jp(e,t){for(var r=-1,n=null==e?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o}var Zp=1/0,em=rd?rd.prototype:void 0,tm=em?em.toString:void 0;function rm(e){if("string"==typeof e)return e;if(_f(e))return Jp(e,rm)+"";if(zp(e))return tm?tm.call(e):"";var t=e+"";return"0"==t&&1/e==-Zp?"-0":t}function nm(e){return null==e?"":rm(e)}function om(e,t){return _f(e)?e:Vp(e,t)?[e]:Yp(nm(e))}var am=1/0;function im(e){if("string"==typeof e||zp(e))return e;var t=e+"";return"0"==t&&1/e==-am?"-0":t}function sm(e,t){for(var r=0,n=(t=om(t,e)).length;null!=e&&r<n;)e=e[im(t[r++])];return r&&r==n?e:void 0}function lm(e,t,r){var n=null==e?void 0:sm(e,t);return void 0===n?r:n}var um="[object Map]",cm="[object Set]",dm=Object.prototype.hasOwnProperty;function fm(e){if(null==e)return!0;if(cp(e)&&(_f(e)||"string"==typeof e||"function"==typeof e.splice||Vf(e)||rp(e)||Df(e)))return!e.length;var t=Op(e);if(t==um||t==cm)return!e.size;if(ip(e))return!up(e).length;for(var r in e)if(dm.call(e,r))return!1;return!0}var pm={},mm=/~/,hm=/~[01]/g;function vm(e){switch(e){case"~1":return"/";case"~0":return"~"}throw new Error("Invalid tilde escape: "+e)}function ym(e){return mm.test(e)?e.replace(hm,vm):e}function gm(e){if("string"==typeof e){if(""===(e=e.split("/"))[0])return e;throw new Error("Invalid JSON pointer.")}if(Array.isArray(e)){for(const t of e)if("string"!=typeof t&&"number"!=typeof t)throw new Error("Invalid JSON pointer. Must be of type string or number.");return e}throw new Error("Invalid JSON pointer.")}function bm(e,t){if("object"!=typeof e)throw new Error("Invalid input object.");var r=(t=gm(t)).length;if(1===r)return e;for(var n=1;n<r;){if(e=e[ym(t[n++])],r===n)return e;if("object"!=typeof e||null===e)return}}function wm(e,t,r){if("object"!=typeof e)throw new Error("Invalid input object.");if(0===(t=gm(t)).length)throw new Error("Invalid JSON pointer for set.");return function(e,t,r){for(var n,o,a=1,i=t.length;a<i;){if("constructor"===t[a]||"prototype"===t[a]||"__proto__"===t[a])return e;if(n=ym(t[a++]),o=i>a,void 0===e[n]&&(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 void 0===r?delete e[n]:e[n]=r,s}(e,t,r)}pm.get=bm,pm.set=wm,pm.compile=function(e){var t=gm(e);return{get:function(e){return bm(e,t)},set:function(e,r){return wm(e,t,r)}}};var Sm=function(){try{var e=Wd(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),xm=Sm;function $m(e,t,r){"__proto__"==t&&xm?xm(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var km=Object.prototype.hasOwnProperty;function _m(e,t,r){var n=e[t];km.call(e,t)&&xd(n,r)&&(void 0!==r||t in e)||$m(e,t,r)}function Em(e,t,r,n){var o=!r;r||(r={});for(var a=-1,i=t.length;++a<i;){var s=t[a],l=n?n(r[s],e[s],s,r,e):void 0;void 0===l&&(l=e[s]),o?$m(r,s,l):_m(r,s,l)}return r}var Cm=Object.prototype.hasOwnProperty;function Pm(e){if(!Ed(e))return function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}(e);var t=ip(e),r=[];for(var n in e)("constructor"!=n||!t&&Cm.call(e,n))&&r.push(n);return r}function jm(e){return cp(e)?op(e,!0):Pm(e)}var Om="object"==typeof exports&&exports&&!exports.nodeType&&exports,Nm=Om&&"object"==typeof module&&module&&!module.nodeType&&module,Rm=Nm&&Nm.exports===Om?td.Buffer:void 0,Tm=Rm?Rm.allocUnsafe:void 0;function Am(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}var Im=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)kf(t,Nf(e)),e=pd(e);return t}:Cf,Mm=Im;function Fm(e){return Ef(e,jm,Mm)}var Dm=Object.prototype.hasOwnProperty;function zm(e){var t=new e.constructor(e.byteLength);return new af(t).set(new af(e)),t}var Lm=/\w*$/;var Bm=rd?rd.prototype:void 0,Vm=Bm?Bm.valueOf:void 0;var Um="[object Boolean]",Wm="[object Date]",qm="[object Map]",Km="[object Number]",Hm="[object RegExp]",Gm="[object Set]",Qm="[object String]",Xm="[object Symbol]",Ym="[object ArrayBuffer]",Jm="[object DataView]",Zm="[object Float32Array]",eh="[object Float64Array]",th="[object Int8Array]",rh="[object Int16Array]",nh="[object Int32Array]",oh="[object Uint8Array]",ah="[object Uint8ClampedArray]",ih="[object Uint16Array]",sh="[object Uint32Array]";function lh(e,t,r){var n,o=e.constructor;switch(t){case Ym:return zm(e);case Um:case Wm:return new o(+e);case Jm:return function(e,t){var r=t?zm(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}(e,r);case Zm:case eh:case th:case rh:case nh:case oh:case ah:case ih:case sh:return function(e,t){var r=t?zm(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}(e,r);case qm:return new o;case Km:case Qm:return new o(e);case Hm:return function(e){var t=new e.constructor(e.source,Lm.exec(e));return t.lastIndex=e.lastIndex,t}(e);case Gm:return new o;case Xm:return n=e,Vm?Object(Vm.call(n)):{}}}var uh=Object.create,ch=function(){function e(){}return function(t){if(!Ed(t))return{};if(uh)return uh(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}(),dh=ch;var fh=ep&&ep.isMap,ph=fh?Qf(fh):function(e){return md(e)&&"[object Map]"==Op(e)};var mh=ep&&ep.isSet,hh=mh?Qf(mh):function(e){return md(e)&&"[object Set]"==Op(e)},vh=1,yh=2,gh=4,bh="[object Arguments]",wh="[object Function]",Sh="[object GeneratorFunction]",xh="[object Object]",$h={};function kh(e,t,r,n,o,a){var i,s=t&vh,l=t&yh,u=t&gh;if(r&&(i=o?r(e,n,o,a):r(e)),void 0!==i)return i;if(!Ed(e))return e;var c=_f(e);if(c){if(i=function(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&&Dm.call(e,"index")&&(r.index=e.index,r.input=e.input),r}(e),!s)return Am(e,i)}else{var d=Op(e),f=d==wh||d==Sh;if(Vf(e))return function(e,t){if(t)return e.slice();var r=e.length,n=Tm?Tm(r):new e.constructor(r);return e.copy(n),n}(e,s);if(d==xh||d==bh||f&&!o){if(i=l||f?{}:function(e){return"function"!=typeof e.constructor||ip(e)?{}:dh(pd(e))}(e),!s)return l?function(e,t){return Em(e,Mm(e),t)}(e,function(e,t){return e&&Em(t,jm(t),e)}(i,e)):function(e,t){return Em(e,Nf(e),t)}(e,function(e,t){return e&&Em(t,dp(t),e)}(i,e))}else{if(!$h[d])return o?e:{};i=lh(e,d,s)}}a||(a=new Jd);var p=a.get(e);if(p)return p;a.set(e,i),hh(e)?e.forEach((function(n){i.add(kh(n,t,r,n,e,a))})):ph(e)&&e.forEach((function(n,o){i.set(o,kh(n,t,r,o,e,a))}));var m=c?void 0:(u?l?Fm:fp:l?jm:dp)(e);return function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););}(m||e,(function(n,o){m&&(n=e[o=n]),_m(i,o,kh(n,t,r,o,e,a))})),i}function _h(e,t){return t.length<2?e:sm(e,function(e,t,r){var n=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(r=r>o?o:r)<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var a=Array(o);++n<o;)a[n]=e[n+t];return a}(t,0,-1))}function Eh(e,t){return null==(e=_h(e,t=om(t,e)))||delete e[im(function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}(t))]}function Ch(e){return Sd(e)?void 0:e}$h[bh]=$h["[object Array]"]=$h["[object ArrayBuffer]"]=$h["[object DataView]"]=$h["[object Boolean]"]=$h["[object Date]"]=$h["[object Float32Array]"]=$h["[object Float64Array]"]=$h["[object Int8Array]"]=$h["[object Int16Array]"]=$h["[object Int32Array]"]=$h["[object Map]"]=$h["[object Number]"]=$h[xh]=$h["[object RegExp]"]=$h["[object Set]"]=$h["[object String]"]=$h["[object Symbol]"]=$h["[object Uint8Array]"]=$h["[object Uint8ClampedArray]"]=$h["[object Uint16Array]"]=$h["[object Uint32Array]"]=!0,$h["[object Error]"]=$h[wh]=$h["[object WeakMap]"]=!1;var Ph=rd?rd.isConcatSpreadable:void 0;function jh(e){return _f(e)||Df(e)||!!(Ph&&e&&e[Ph])}function Oh(e,t,r,n,o){var a=-1,i=e.length;for(r||(r=jh),o||(o=[]);++a<i;){var s=e[a];t>0&&r(s)?t>1?Oh(s,t-1,r,n,o):kf(o,s):n||(o[o.length]=s)}return o}function Nh(e){return(null==e?0:e.length)?Oh(e,1):[]}var Rh=Math.max;function Th(e,t,r){return t=Rh(void 0===t?e.length-1:t,0),function(){for(var n=arguments,o=-1,a=Rh(n.length-t,0),i=Array(a);++o<a;)i[o]=n[t+o];o=-1;for(var s=Array(t+1);++o<t;)s[o]=n[o];return s[t]=r(i),function(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)}(e,this,s)}}function Ah(e){return e}var Ih=xm?function(e,t){return xm(e,"toString",{configurable:!0,enumerable:!1,value:(r=t,function(){return r}),writable:!0});var r}:Ah,Mh=Ih,Fh=Date.now;var Dh=function(e){var t=0,r=0;return function(){var n=Fh(),o=16-(n-r);if(r=n,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(Mh),zh=Dh;function Lh(e){return zh(Th(e,void 0,Nh),e+"")}var Bh=Lh((function(e,t){var r={};if(null==e)return r;var n=!1;t=Jp(t,(function(t){return t=om(t,e),n||(n=t.length>1),t})),Em(e,Fm(e),r),n&&(r=kh(r,7,Ch));for(var o=t.length;o--;)Eh(r,t[o]);return r})),Vh=Bh,Uh=Object.prototype.hasOwnProperty;function Wh(e,t){return null!=e&&Uh.call(e,t)}function qh(e,t,r){for(var n=-1,o=(t=om(t,e)).length,a=!1;++n<o;){var i=im(t[n]);if(!(a=null!=e&&r(e,i)))break;e=e[i]}return a||++n!=o?a:!!(o=null==e?0:e.length)&&Hf(o)&&qf(i,o)&&(_f(e)||Df(e))}function Kh(e,t){return null!=e&&qh(e,t,Wh)}var Hh="[object String]";function Gh(e){return"string"==typeof e||!_f(e)&&md(e)&&dd(e)==Hh}function Qh(e,t,r,n){var o=-1,a=null==e?0:e.length;for(n&&a&&(r=e[++o]);++o<a;)r=t(r,e[o],o,e);return r}var Xh,Yh=function(e,t,r){for(var n=-1,o=Object(e),a=r(e),i=a.length;i--;){var s=a[Xh?i:++n];if(!1===t(o[s],s,o))break}return e},Jh=Yh;var Zh=function(e,t){return function(r,n){if(null==r)return r;if(!cp(r))return e(r,n);for(var o=r.length,a=t?o:-1,i=Object(r);(t?a--:++a<o)&&!1!==n(i[a],a,i););return r}}((function(e,t){return e&&Jh(e,t,dp)})),ev=Zh,tv=1,rv=2;function nv(e){return e==e&&!Ed(e)}function ov(e,t){return function(r){return null!=r&&(r[e]===t&&(void 0!==t||e in Object(r)))}}function av(e){var t=function(e){for(var t=dp(e),r=t.length;r--;){var n=t[r],o=e[n];t[r]=[n,o,nv(o)]}return t}(e);return 1==t.length&&t[0][2]?ov(t[0][0],t[0][1]):function(r){return r===e||function(e,t,r,n){var o=r.length,a=o,i=!n;if(null==e)return!a;for(e=Object(e);o--;){var s=r[o];if(i&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++o<a;){var l=(s=r[o])[0],u=e[l],c=s[1];if(i&&s[2]){if(void 0===u&&!(l in e))return!1}else{var d=new Jd;if(n)var f=n(u,c,l,e,t,d);if(!(void 0===f?Fp(c,u,tv|rv,n,d):f))return!1}}return!0}(r,e,t)}}function iv(e,t){return null!=e&&t in Object(e)}function sv(e,t){return null!=e&&qh(e,t,iv)}var lv=1,uv=2;function cv(e){return Vp(e)?(t=im(e),function(e){return null==e?void 0:e[t]}):function(e){return function(t){return sm(t,e)}}(e);var t}function dv(e){return"function"==typeof e?e:null==e?Ah:"object"==typeof e?_f(e)?(t=e[0],r=e[1],Vp(t)&&nv(r)?ov(im(t),r):function(e){var n=lm(e,t);return void 0===n&&n===r?sv(e,t):Fp(r,n,lv|uv)}):av(e):cv(e);var t,r}function fv(e,t,r,n,o){return o(e,(function(e,o,a){r=n?(n=!1,e):t(r,e,o,a)})),r}var pv=/\s/;var mv=/^\s+/;function hv(e){return e?e.slice(0,function(e){for(var t=e.length;t--&&pv.test(e.charAt(t)););return t}(e)+1).replace(mv,""):e}var vv=NaN,yv=/^[-+]0x[0-9a-f]+$/i,gv=/^0b[01]+$/i,bv=/^0o[0-7]+$/i,wv=parseInt;var Sv=1/0,xv=17976931348623157e292;function $v(e){return e?(e=function(e){if("number"==typeof e)return e;if(zp(e))return vv;if(Ed(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Ed(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=hv(e);var r=gv.test(e);return r||bv.test(e)?wv(e.slice(2),r?2:8):yv.test(e)?vv:+e}(e))===Sv||e===-Sv?(e<0?-1:1)*xv:e==e?e:0:0===e?e:0}var kv=9007199254740991,_v=4294967295,Ev=Math.min;function Cv(e,t){if(e=function(e){var t=$v(e),r=t%1;return t==t?r?t-r:t:0}(e),e<1||e>kv)return[];var r,n=_v,o=Ev(e,_v);e-=_v;for(var a=Rf(o,t="function"==typeof(r=t)?r:Ah);++n<e;)t(n);return a}function Pv(e,t,r,n){if(!Ed(e))return e;for(var o=-1,a=(t=om(t,e)).length,i=a-1,s=e;null!=s&&++o<a;){var l=im(t[o]),u=r;if("__proto__"===l||"constructor"===l||"prototype"===l)return e;if(o!=i){var c=s[l];void 0===(u=n?n(c,l,s):void 0)&&(u=Ed(c)?c:qf(t[o+1])?[]:{})}_m(s,l,u),s=s[l]}return e}function jv(e,t,r){return null==e?e:Pv(e,t,r)}var Ov=function(){this.__data__=[],this.size=0};var Nv=function(e,t){return e===t||e!=e&&t!=t},Rv=Nv;var Tv=function(e,t){for(var r=e.length;r--;)if(Rv(e[r][0],t))return r;return-1},Av=Tv,Iv=Array.prototype.splice;var Mv=function(e){var t=this.__data__,r=Av(t,e);return!(r<0)&&(r==t.length-1?t.pop():Iv.call(t,r,1),--this.size,!0)},Fv=Tv;var Dv=function(e){var t=this.__data__,r=Fv(t,e);return r<0?void 0:t[r][1]},zv=Tv;var Lv=Tv;var Bv=function(e,t){var r=this.__data__,n=Lv(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this},Vv=Ov,Uv=Mv,Wv=Dv,qv=function(e){return zv(this.__data__,e)>-1},Kv=Bv;function Hv(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Hv.prototype.clear=Vv,Hv.prototype.delete=Uv,Hv.prototype.get=Wv,Hv.prototype.has=qv,Hv.prototype.set=Kv;var Gv=Hv,Qv=Gv;var Xv=function(){this.__data__=new Qv,this.size=0};var Yv=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r};var Jv=function(e){return this.__data__.get(e)};var Zv=function(e){return this.__data__.has(e)},ey="object"==typeof r&&r&&r.Object===Object&&r,ty=ey,ry="object"==typeof self&&self&&self.Object===Object&&self,ny=ty||ry||Function("return this")(),oy=ny.Symbol,ay=oy,iy=Object.prototype,sy=iy.hasOwnProperty,ly=iy.toString,uy=ay?ay.toStringTag:void 0;var cy=function(e){var t=sy.call(e,uy),r=e[uy];try{e[uy]=void 0;var n=!0}catch(e){}var o=ly.call(e);return n&&(t?e[uy]=r:delete e[uy]),o},dy=Object.prototype.toString;var fy=cy,py=function(e){return dy.call(e)},my=oy?oy.toStringTag:void 0;var hy=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":my&&my in Object(e)?fy(e):py(e)};var vy=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},yy=hy,gy=vy;var by=function(e){if(!gy(e))return!1;var t=yy(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},wy=ny["__core-js_shared__"],Sy=function(){var e=/[^.]+$/.exec(wy&&wy.keys&&wy.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();var xy=function(e){return!!Sy&&Sy in e},$y=Function.prototype.toString;var ky=function(e){if(null!=e){try{return $y.call(e)}catch(e){}try{return e+""}catch(e){}}return""},_y=by,Ey=xy,Cy=vy,Py=ky,jy=/^\[object .+?Constructor\]$/,Oy=Function.prototype,Ny=Object.prototype,Ry=Oy.toString,Ty=Ny.hasOwnProperty,Ay=RegExp("^"+Ry.call(Ty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var Iy=function(e){return!(!Cy(e)||Ey(e))&&(_y(e)?Ay:jy).test(Py(e))},My=function(e,t){return null==e?void 0:e[t]};var Fy=function(e,t){var r=My(e,t);return Iy(r)?r:void 0},Dy=Fy(ny,"Map"),zy=Fy(Object,"create"),Ly=zy;var By=function(){this.__data__=Ly?Ly(null):{},this.size=0};var Vy=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Uy=zy,Wy=Object.prototype.hasOwnProperty;var qy=function(e){var t=this.__data__;if(Uy){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return Wy.call(t,e)?t[e]:void 0},Ky=zy,Hy=Object.prototype.hasOwnProperty;var Gy=zy;var Qy=By,Xy=Vy,Yy=qy,Jy=function(e){var t=this.__data__;return Ky?void 0!==t[e]:Hy.call(t,e)},Zy=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Gy&&void 0===t?"__lodash_hash_undefined__":t,this};function eg(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}eg.prototype.clear=Qy,eg.prototype.delete=Xy,eg.prototype.get=Yy,eg.prototype.has=Jy,eg.prototype.set=Zy;var tg=eg,rg=Gv,ng=Dy;var og=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e},ag=og;var ig=function(e,t){var r=e.__data__;return ag(t)?r["string"==typeof t?"string":"hash"]:r.map},sg=ig;var lg=function(e){var t=sg(this,e).delete(e);return this.size-=t?1:0,t},ug=ig;var cg=ig;var dg=ig;var fg=function(){this.size=0,this.__data__={hash:new tg,map:new(ng||rg),string:new tg}},pg=lg,mg=function(e){return ug(this,e).get(e)},hg=function(e){return cg(this,e).has(e)},vg=function(e,t){var r=dg(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this};function yg(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}yg.prototype.clear=fg,yg.prototype.delete=pg,yg.prototype.get=mg,yg.prototype.has=hg,yg.prototype.set=vg;var gg=yg,bg=Gv,wg=Dy,Sg=gg;var xg=Gv,$g=Xv,kg=Yv,_g=Jv,Eg=Zv,Cg=function(e,t){var r=this.__data__;if(r instanceof bg){var n=r.__data__;if(!wg||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Sg(n)}return r.set(e,t),this.size=r.size,this};function Pg(e){var t=this.__data__=new xg(e);this.size=t.size}Pg.prototype.clear=$g,Pg.prototype.delete=kg,Pg.prototype.get=_g,Pg.prototype.has=Eg,Pg.prototype.set=Cg;var jg=Pg;var Og=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););return e},Ng=Fy,Rg=function(){try{var e=Ng(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),Tg=Rg,Ag=Tg;var Ig=function(e,t,r){"__proto__"==t&&Ag?Ag(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r},Mg=Ig,Fg=Nv,Dg=Object.prototype.hasOwnProperty;var zg=function(e,t,r){var n=e[t];Dg.call(e,t)&&Fg(n,r)&&(void 0!==r||t in e)||Mg(e,t,r)},Lg=zg,Bg=Ig;var Vg=function(e,t,r,n){var o=!r;r||(r={});for(var a=-1,i=t.length;++a<i;){var s=t[a],l=n?n(r[s],e[s],s,r,e):void 0;void 0===l&&(l=e[s]),o?Bg(r,s,l):Lg(r,s,l)}return r};var Ug=function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n};var Wg=function(e){return null!=e&&"object"==typeof e},qg=hy,Kg=Wg;var Hg=function(e){return Kg(e)&&"[object Arguments]"==qg(e)},Gg=Wg,Qg=Object.prototype,Xg=Qg.hasOwnProperty,Yg=Qg.propertyIsEnumerable,Jg=Hg(function(){return arguments}())?Hg:function(e){return Gg(e)&&Xg.call(e,"callee")&&!Yg.call(e,"callee")},Zg=Jg,eb=Array.isArray,tb={},rb={get exports(){return tb},set exports(e){tb=e}};var nb=function(){return!1};!function(e,t){var r=ny,n=nb,o=t&&!t.nodeType&&t,a=o&&e&&!e.nodeType&&e,i=a&&a.exports===o?r.Buffer:void 0,s=(i?i.isBuffer:void 0)||n;e.exports=s}(rb,tb);var ob=/^(?:0|[1-9]\d*)$/;var ab=function(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&ob.test(e))&&e>-1&&e%1==0&&e<t};var ib=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},sb=hy,lb=ib,ub=Wg,cb={};cb["[object Float32Array]"]=cb["[object Float64Array]"]=cb["[object Int8Array]"]=cb["[object Int16Array]"]=cb["[object Int32Array]"]=cb["[object Uint8Array]"]=cb["[object Uint8ClampedArray]"]=cb["[object Uint16Array]"]=cb["[object Uint32Array]"]=!0,cb["[object Arguments]"]=cb["[object Array]"]=cb["[object ArrayBuffer]"]=cb["[object Boolean]"]=cb["[object DataView]"]=cb["[object Date]"]=cb["[object Error]"]=cb["[object Function]"]=cb["[object Map]"]=cb["[object Number]"]=cb["[object Object]"]=cb["[object RegExp]"]=cb["[object Set]"]=cb["[object String]"]=cb["[object WeakMap]"]=!1;var db=function(e){return ub(e)&&lb(e.length)&&!!cb[sb(e)]};var fb=function(e){return function(t){return e(t)}},pb={},mb={get exports(){return pb},set exports(e){pb=e}};!function(e,t){var r=ey,n=t&&!t.nodeType&&t,o=n&&e&&!e.nodeType&&e,a=o&&o.exports===n&&r.process,i=function(){try{var e=o&&o.require&&o.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=i}(mb,pb);var hb=db,vb=fb,yb=pb&&pb.isTypedArray,gb=yb?vb(yb):hb,bb=Ug,wb=Zg,Sb=eb,xb=tb,$b=ab,kb=gb,_b=Object.prototype.hasOwnProperty;var Eb=function(e,t){var r=Sb(e),n=!r&&wb(e),o=!r&&!n&&xb(e),a=!r&&!n&&!o&&kb(e),i=r||n||o||a,s=i?bb(e.length,String):[],l=s.length;for(var u in e)!t&&!_b.call(e,u)||i&&("length"==u||o&&("offset"==u||"parent"==u)||a&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||$b(u,l))||s.push(u);return s},Cb=Object.prototype;var Pb=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Cb)};var jb=function(e,t){return function(r){return e(t(r))}},Ob=jb(Object.keys,Object),Nb=Pb,Rb=Ob,Tb=Object.prototype.hasOwnProperty;var Ab=function(e){if(!Nb(e))return Rb(e);var t=[];for(var r in Object(e))Tb.call(e,r)&&"constructor"!=r&&t.push(r);return t},Ib=by,Mb=ib;var Fb=function(e){return null!=e&&Mb(e.length)&&!Ib(e)},Db=Eb,zb=Ab,Lb=Fb;var Bb=function(e){return Lb(e)?Db(e):zb(e)},Vb=Vg,Ub=Bb;var Wb=function(e,t){return e&&Vb(t,Ub(t),e)};var qb=function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t},Kb=vy,Hb=Pb,Gb=qb,Qb=Object.prototype.hasOwnProperty;var Xb=function(e){if(!Kb(e))return Gb(e);var t=Hb(e),r=[];for(var n in e)("constructor"!=n||!t&&Qb.call(e,n))&&r.push(n);return r},Yb=Eb,Jb=Xb,Zb=Fb;var ew=function(e){return Zb(e)?Yb(e,!0):Jb(e)},tw=Vg,rw=ew;var nw=function(e,t){return e&&tw(t,rw(t),e)},ow={},aw={get exports(){return ow},set exports(e){ow=e}};!function(e,t){var r=ny,n=t&&!t.nodeType&&t,o=n&&e&&!e.nodeType&&e,a=o&&o.exports===n?r.Buffer:void 0,i=a?a.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var r=e.length,n=i?i(r):new e.constructor(r);return e.copy(n),n}}(aw,ow);var iw=function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t};var sw=function(e,t){for(var r=-1,n=null==e?0:e.length,o=0,a=[];++r<n;){var i=e[r];t(i,r,e)&&(a[o++]=i)}return a};var lw=function(){return[]},uw=sw,cw=lw,dw=Object.prototype.propertyIsEnumerable,fw=Object.getOwnPropertySymbols,pw=fw?function(e){return null==e?[]:(e=Object(e),uw(fw(e),(function(t){return dw.call(e,t)})))}:cw,mw=Vg,hw=pw;var vw=function(e,t){return mw(e,hw(e),t)};var yw=function(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e},gw=jb(Object.getPrototypeOf,Object),bw=yw,ww=gw,Sw=pw,xw=lw,$w=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)bw(t,Sw(e)),e=ww(e);return t}:xw,kw=Vg,_w=$w;var Ew=function(e,t){return kw(e,_w(e),t)},Cw=yw,Pw=eb;var jw=function(e,t,r){var n=t(e);return Pw(e)?n:Cw(n,r(e))},Ow=jw,Nw=pw,Rw=Bb;var Tw=function(e){return Ow(e,Rw,Nw)},Aw=jw,Iw=$w,Mw=ew;var Fw=function(e){return Aw(e,Mw,Iw)},Dw=Fy(ny,"DataView"),zw=Fy(ny,"Promise"),Lw=Fy(ny,"Set"),Bw=Dw,Vw=Dy,Uw=zw,Ww=Lw,qw=Fy(ny,"WeakMap"),Kw=hy,Hw=ky,Gw="[object Map]",Qw="[object Promise]",Xw="[object Set]",Yw="[object WeakMap]",Jw="[object DataView]",Zw=Hw(Bw),eS=Hw(Vw),tS=Hw(Uw),rS=Hw(Ww),nS=Hw(qw),oS=Kw;(Bw&&oS(new Bw(new ArrayBuffer(1)))!=Jw||Vw&&oS(new Vw)!=Gw||Uw&&oS(Uw.resolve())!=Qw||Ww&&oS(new Ww)!=Xw||qw&&oS(new qw)!=Yw)&&(oS=function(e){var t=Kw(e),r="[object Object]"==t?e.constructor:void 0,n=r?Hw(r):"";if(n)switch(n){case Zw:return Jw;case eS:return Gw;case tS:return Qw;case rS:return Xw;case nS:return Yw}return t});var aS=oS,iS=Object.prototype.hasOwnProperty;var sS=function(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&&iS.call(e,"index")&&(r.index=e.index,r.input=e.input),r},lS=ny.Uint8Array,uS=lS;var cS=function(e){var t=new e.constructor(e.byteLength);return new uS(t).set(new uS(e)),t},dS=cS;var fS=function(e,t){var r=t?dS(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)},pS=/\w*$/;var mS=function(e){var t=new e.constructor(e.source,pS.exec(e));return t.lastIndex=e.lastIndex,t},hS=oy?oy.prototype:void 0,vS=hS?hS.valueOf:void 0;var yS=cS;var gS=function(e,t){var r=t?yS(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)},bS=cS,wS=fS,SS=mS,xS=function(e){return vS?Object(vS.call(e)):{}},$S=gS;var kS=function(e,t,r){var n=e.constructor;switch(t){case"[object ArrayBuffer]":return bS(e);case"[object Boolean]":case"[object Date]":return new n(+e);case"[object DataView]":return wS(e,r);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return $S(e,r);case"[object Map]":case"[object Set]":return new n;case"[object Number]":case"[object String]":return new n(e);case"[object RegExp]":return SS(e);case"[object Symbol]":return xS(e)}},_S=vy,ES=Object.create,CS=function(){function e(){}return function(t){if(!_S(t))return{};if(ES)return ES(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}(),PS=CS,jS=gw,OS=Pb;var NS=function(e){return"function"!=typeof e.constructor||OS(e)?{}:PS(jS(e))},RS=aS,TS=Wg;var AS=function(e){return TS(e)&&"[object Map]"==RS(e)},IS=fb,MS=pb&&pb.isMap,FS=MS?IS(MS):AS,DS=aS,zS=Wg;var LS=function(e){return zS(e)&&"[object Set]"==DS(e)},BS=fb,VS=pb&&pb.isSet,US=VS?BS(VS):LS,WS=jg,qS=Og,KS=zg,HS=Wb,GS=nw,QS=ow,XS=iw,YS=vw,JS=Ew,ZS=Tw,ex=Fw,tx=aS,rx=sS,nx=kS,ox=NS,ax=eb,ix=tb,sx=FS,lx=vy,ux=US,cx=Bb,dx=ew,fx="[object Arguments]",px="[object Function]",mx="[object Object]",hx={};hx[fx]=hx["[object Array]"]=hx["[object ArrayBuffer]"]=hx["[object DataView]"]=hx["[object Boolean]"]=hx["[object Date]"]=hx["[object Float32Array]"]=hx["[object Float64Array]"]=hx["[object Int8Array]"]=hx["[object Int16Array]"]=hx["[object Int32Array]"]=hx["[object Map]"]=hx["[object Number]"]=hx[mx]=hx["[object RegExp]"]=hx["[object Set]"]=hx["[object String]"]=hx["[object Symbol]"]=hx["[object Uint8Array]"]=hx["[object Uint8ClampedArray]"]=hx["[object Uint16Array]"]=hx["[object Uint32Array]"]=!0,hx["[object Error]"]=hx[px]=hx["[object WeakMap]"]=!1;var vx=function e(t,r,n,o,a,i){var s,l=1&r,u=2&r,c=4&r;if(n&&(s=a?n(t,o,a,i):n(t)),void 0!==s)return s;if(!lx(t))return t;var d=ax(t);if(d){if(s=rx(t),!l)return XS(t,s)}else{var f=tx(t),p=f==px||"[object GeneratorFunction]"==f;if(ix(t))return QS(t,l);if(f==mx||f==fx||p&&!a){if(s=u||p?{}:ox(t),!l)return u?JS(t,GS(s,t)):YS(t,HS(s,t))}else{if(!hx[f])return a?t:{};s=nx(t,f,l)}}i||(i=new WS);var m=i.get(t);if(m)return m;i.set(t,s),ux(t)?t.forEach((function(o){s.add(e(o,r,n,o,t,i))})):sx(t)&&t.forEach((function(o,a){s.set(a,e(o,r,n,a,t,i))}));var h=d?void 0:(c?u?ex:ZS:u?dx:cx)(t);return qS(h||t,(function(o,a){h&&(o=t[a=o]),KS(s,a,e(o,r,n,a,t,i))})),s},yx=vx;var gx=function(e){return yx(e,5)};var bx=gg,wx=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},Sx=function(e){return this.__data__.has(e)};function xx(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new bx;++t<r;)this.add(e[t])}xx.prototype.add=xx.prototype.push=wx,xx.prototype.has=Sx;var $x=xx;var kx=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1};var _x=function(e,t){return e.has(t)},Ex=$x,Cx=kx,Px=_x;var jx=function(e,t,r,n,o,a){var i=1&r,s=e.length,l=t.length;if(s!=l&&!(i&&l>s))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=2&r?new Ex:void 0;for(a.set(e,t),a.set(t,e);++d<s;){var m=e[d],h=t[d];if(n)var v=i?n(h,m,d,t,e,a):n(m,h,d,e,t,a);if(void 0!==v){if(v)continue;f=!1;break}if(p){if(!Cx(t,(function(e,t){if(!Px(p,t)&&(m===e||o(m,e,r,n,a)))return p.push(t)}))){f=!1;break}}else if(m!==h&&!o(m,h,r,n,a)){f=!1;break}}return a.delete(e),a.delete(t),f};var Ox=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r};var Nx=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r},Rx=lS,Tx=Nv,Ax=jx,Ix=Ox,Mx=Nx,Fx=oy?oy.prototype:void 0,Dx=Fx?Fx.valueOf:void 0;var zx=function(e,t,r,n,o,a,i){switch(r){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!a(new Rx(e),new Rx(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return Tx(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var s=Ix;case"[object Set]":var l=1&n;if(s||(s=Mx),e.size!=t.size&&!l)return!1;var u=i.get(e);if(u)return u==t;n|=2,i.set(e,t);var c=Ax(s(e),s(t),n,o,a,i);return i.delete(e),c;case"[object Symbol]":if(Dx)return Dx.call(e)==Dx.call(t)}return!1},Lx=Tw,Bx=Object.prototype.hasOwnProperty;var Vx=function(e,t,r,n,o,a){var i=1&r,s=Lx(e),l=s.length;if(l!=Lx(t).length&&!i)return!1;for(var u=l;u--;){var c=s[u];if(!(i?c in t:Bx.call(t,c)))return!1}var d=a.get(e),f=a.get(t);if(d&&f)return d==t&&f==e;var p=!0;a.set(e,t),a.set(t,e);for(var m=i;++u<l;){var h=e[c=s[u]],v=t[c];if(n)var y=i?n(v,h,c,t,e,a):n(h,v,c,e,t,a);if(!(void 0===y?h===v||o(h,v,r,n,a):y)){p=!1;break}m||(m="constructor"==c)}if(p&&!m){var g=e.constructor,b=t.constructor;g==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof g&&g instanceof g&&"function"==typeof b&&b instanceof b||(p=!1)}return a.delete(e),a.delete(t),p},Ux=jg,Wx=jx,qx=zx,Kx=Vx,Hx=aS,Gx=eb,Qx=tb,Xx=gb,Yx="[object Arguments]",Jx="[object Array]",Zx="[object Object]",e$=Object.prototype.hasOwnProperty;var t$=function(e,t,r,n,o,a){var i=Gx(e),s=Gx(t),l=i?Jx:Hx(e),u=s?Jx:Hx(t),c=(l=l==Yx?Zx:l)==Zx,d=(u=u==Yx?Zx:u)==Zx,f=l==u;if(f&&Qx(e)){if(!Qx(t))return!1;i=!0,c=!1}if(f&&!c)return a||(a=new Ux),i||Xx(e)?Wx(e,t,r,n,o,a):qx(e,t,l,r,n,o,a);if(!(1&r)){var p=c&&e$.call(e,"__wrapped__"),m=d&&e$.call(t,"__wrapped__");if(p||m){var h=p?e.value():e,v=m?t.value():t;return a||(a=new Ux),o(h,v,r,n,a)}}return!!f&&(a||(a=new Ux),Kx(e,t,r,n,o,a))},r$=Wg;var n$=function e(t,r,n,o,a){return t===r||(null==t||null==r||!r$(t)&&!r$(r)?t!=t&&r!=r:t$(t,r,n,o,e,a))},o$=n$;var a$=function(e,t){return o$(e,t)},i$=Zg,s$=eb,l$=oy?oy.isConcatSpreadable:void 0;var u$=yw,c$=function(e){return s$(e)||i$(e)||!!(l$&&e&&e[l$])};var d$=function e(t,r,n,o,a){var i=-1,s=t.length;for(n||(n=c$),a||(a=[]);++i<s;){var l=t[i];r>0&&n(l)?r>1?e(l,r-1,n,o,a):u$(a,l):o||(a[a.length]=l)}return a};var f$=function(e,t){for(var r=-1,n=null==e?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o},p$=hy,m$=Wg;var h$=function(e){return"symbol"==typeof e||m$(e)&&"[object Symbol]"==p$(e)},v$=eb,y$=h$,g$=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,b$=/^\w*$/;var w$=function(e,t){if(v$(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!y$(e))||(b$.test(e)||!g$.test(e)||null!=t&&e in Object(t))},S$=gg;function x$(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");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(x$.Cache||S$),r}x$.Cache=S$;var $$=x$;var k$=function(e){var t=$$(e,(function(e){return 500===r.size&&r.clear(),e})),r=t.cache;return t},_$=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,E$=/\\(\\)?/g,C$=k$((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(_$,(function(e,r,n,o){t.push(n?o.replace(E$,"$1"):r||e)})),t})),P$=C$,j$=f$,O$=eb,N$=h$,R$=oy?oy.prototype:void 0,T$=R$?R$.toString:void 0;var A$=function e(t){if("string"==typeof t)return t;if(O$(t))return j$(t,e)+"";if(N$(t))return T$?T$.call(t):"";var r=t+"";return"0"==r&&1/t==-Infinity?"-0":r},I$=A$;var M$=eb,F$=w$,D$=P$,z$=function(e){return null==e?"":I$(e)};var L$=function(e,t){return M$(e)?e:F$(e,t)?[e]:D$(z$(e))},B$=h$;var V$=function(e){if("string"==typeof e||B$(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t},U$=L$,W$=V$;var q$=function(e,t){for(var r=0,n=(t=U$(t,e)).length;null!=e&&r<n;)e=e[W$(t[r++])];return r&&r==n?e:void 0},K$=jg,H$=n$;var G$=function(e,t,r,n){var o=r.length,a=o,i=!n;if(null==e)return!a;for(e=Object(e);o--;){var s=r[o];if(i&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++o<a;){var l=(s=r[o])[0],u=e[l],c=s[1];if(i&&s[2]){if(void 0===u&&!(l in e))return!1}else{var d=new K$;if(n)var f=n(u,c,l,e,t,d);if(!(void 0===f?H$(c,u,3,n,d):f))return!1}}return!0},Q$=vy;var X$=function(e){return e==e&&!Q$(e)},Y$=X$,J$=Bb;var Z$=function(e){for(var t=J$(e),r=t.length;r--;){var n=t[r],o=e[n];t[r]=[n,o,Y$(o)]}return t};var ek=function(e,t){return function(r){return null!=r&&(r[e]===t&&(void 0!==t||e in Object(r)))}},tk=G$,rk=Z$,nk=ek;var ok=q$;var ak=function(e,t,r){var n=null==e?void 0:ok(e,t);return void 0===n?r:n};var ik=L$,sk=Zg,lk=eb,uk=ab,ck=ib,dk=V$;var fk=function(e,t,r){for(var n=-1,o=(t=ik(t,e)).length,a=!1;++n<o;){var i=dk(t[n]);if(!(a=null!=e&&r(e,i)))break;e=e[i]}return a||++n!=o?a:!!(o=null==e?0:e.length)&&ck(o)&&uk(i,o)&&(lk(e)||sk(e))},pk=function(e,t){return null!=e&&t in Object(e)},mk=fk;var hk=n$,vk=ak,yk=function(e,t){return null!=e&&mk(e,t,pk)},gk=w$,bk=X$,wk=ek,Sk=V$;var xk=function(e){return e};var $k=q$;var kk=function(e){return function(t){return null==t?void 0:t[e]}},_k=function(e){return function(t){return $k(t,e)}},Ek=w$,Ck=V$;var Pk=function(e){var t=rk(e);return 1==t.length&&t[0][2]?nk(t[0][0],t[0][1]):function(r){return r===e||tk(r,e,t)}},jk=function(e,t){return gk(e)&&bk(t)?wk(Sk(e),t):function(r){var n=vk(r,e);return void 0===n&&n===t?yk(r,e):hk(t,n,3)}},Ok=xk,Nk=eb,Rk=function(e){return Ek(e)?kk(Ck(e)):_k(e)};var Tk=function(e){return"function"==typeof e?e:null==e?Ok:"object"==typeof e?Nk(e)?jk(e[0],e[1]):Pk(e):Rk(e)};var Ak=function(e){return function(t,r,n){for(var o=-1,a=Object(t),i=n(t),s=i.length;s--;){var l=i[e?s:++o];if(!1===r(a[l],l,a))break}return t}},Ik=Ak(),Mk=Ik,Fk=Bb;var Dk=Fb;var zk=function(e,t){return function(r,n){if(null==r)return r;if(!Dk(r))return e(r,n);for(var o=r.length,a=t?o:-1,i=Object(r);(t?a--:++a<o)&&!1!==n(i[a],a,i););return r}},Lk=zk((function(e,t){return e&&Mk(e,t,Fk)})),Bk=Lk,Vk=Fb;var Uk=function(e,t){var r=-1,n=Vk(e)?Array(e.length):[];return Bk(e,(function(e,o,a){n[++r]=t(e,o,a)})),n};var Wk=function(e,t){var r=e.length;for(e.sort(t);r--;)e[r]=e[r].value;return e},qk=h$;var Kk=function(e,t){if(e!==t){var r=void 0!==e,n=null===e,o=e==e,a=qk(e),i=void 0!==t,s=null===t,l=t==t,u=qk(t);if(!s&&!u&&!a&&e>t||a&&i&&l&&!s&&!u||n&&i&&l||!r&&l||!o)return 1;if(!n&&!a&&!u&&e<t||u&&r&&o&&!n&&!a||s&&r&&o||!i&&o||!l)return-1}return 0};var Hk=function(e,t,r){for(var n=-1,o=e.criteria,a=t.criteria,i=o.length,s=r.length;++n<i;){var l=Kk(o[n],a[n]);if(l)return n>=s?l:l*("desc"==r[n]?-1:1)}return e.index-t.index},Gk=f$,Qk=q$,Xk=Tk,Yk=Uk,Jk=Wk,Zk=fb,e_=Hk,t_=xk,r_=eb;var n_=function(e,t,r){t=t.length?Gk(t,(function(e){return r_(e)?function(t){return Qk(t,1===e.length?e[0]:e)}:e})):[t_];var n=-1;t=Gk(t,Zk(Xk));var o=Yk(e,(function(e,r,o){return{criteria:Gk(t,(function(t){return t(e)})),index:++n,value:e}}));return Jk(o,(function(e,t){return e_(e,t,r)}))};var o_=function(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)},a_=o_,i_=Math.max;var s_=function(e,t,r){return t=i_(void 0===t?e.length-1:t,0),function(){for(var n=arguments,o=-1,a=i_(n.length-t,0),i=Array(a);++o<a;)i[o]=n[t+o];o=-1;for(var s=Array(t+1);++o<t;)s[o]=n[o];return s[t]=r(i),a_(e,this,s)}};var l_=function(e){return function(){return e}},u_=Tg,c_=u_?function(e,t){return u_(e,"toString",{configurable:!0,enumerable:!1,value:l_(t),writable:!0})}:xk,d_=c_,f_=Date.now;var p_=function(e){var t=0,r=0;return function(){var n=f_(),o=16-(n-r);if(r=n,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}},m_=p_(d_),h_=xk,v_=s_,y_=m_;var g_=function(e,t){return y_(v_(e,t,h_),e+"")},b_=Nv,w_=Fb,S_=ab,x_=vy;var $_=function(e,t,r){if(!x_(r))return!1;var n=typeof t;return!!("number"==n?w_(r)&&S_(t,r.length):"string"==n&&t in r)&&b_(r[t],e)},k_=d$,__=n_,E_=$_,C_=g_((function(e,t){if(null==e)return[];var r=t.length;return r>1&&E_(e,t[0],t[1])?t=[]:r>2&&E_(t[0],t[1],t[2])&&(t=[t[0]]),__(e,k_(t,1),[])})),P_=C_;var j_=function(e,t,r,n){for(var o=e.length,a=r+(n?1:-1);n?a--:++a<o;)if(t(e[a],a,e))return a;return-1};var O_=function(e,t,r){for(var n=r-1,o=e.length;++n<o;)if(e[n]===t)return n;return-1},N_=j_,R_=function(e){return e!=e},T_=O_;var A_=function(e,t,r){return t==t?T_(e,t,r):N_(e,R_,r)},I_=A_;var M_=function(e,t){return!!(null==e?0:e.length)&&I_(e,t,0)>-1};var F_=function(e,t,r){for(var n=-1,o=null==e?0:e.length;++n<o;)if(r(t,e[n]))return!0;return!1};var D_=Lw,z_=function(){},L_=D_&&1/Nx(new D_([,-0]))[1]==1/0?function(e){return new D_(e)}:z_,B_=$x,V_=M_,U_=F_,W_=_x,q_=L_,K_=Nx;var H_=function(e,t,r){var n=-1,o=V_,a=e.length,i=!0,s=[],l=s;if(r)i=!1,o=U_;else if(a>=200){var u=t?null:q_(e);if(u)return K_(u);i=!1,o=W_,l=new B_}else l=t?[]:s;e:for(;++n<a;){var c=e[n],d=t?t(c):c;if(c=r||0!==c?c:0,i&&d==d){for(var f=l.length;f--;)if(l[f]===d)continue e;t&&l.push(d),s.push(c)}else o(l,d,r)||(l!==s&&l.push(d),s.push(c))}return s},G_=H_;var Q_=function(e){return e&&e.length?G_(e):[]},X_=H_;var Y_=function(e,t){return t="function"==typeof t?t:void 0,e&&e.length?X_(e,void 0,t):[]},J_=g_,Z_=Nv,eE=$_,tE=ew,rE=Object.prototype,nE=rE.hasOwnProperty,oE=J_((function(e,t){e=Object(e);var r=-1,n=t.length,o=n>2?t[2]:void 0;for(o&&eE(t[0],t[1],o)&&(n=1);++r<n;)for(var a=t[r],i=tE(a),s=-1,l=i.length;++s<l;){var u=i[s],c=e[u];(void 0===c||Z_(c,rE[u])&&!nE.call(e,u))&&(e[u]=a[u])}return e})),aE=oE,iE=$x,sE=M_,lE=F_,uE=f$,cE=fb,dE=_x,fE=Math.min;var pE=function(e,t,r){for(var n=r?lE:sE,o=e[0].length,a=e.length,i=a,s=Array(a),l=1/0,u=[];i--;){var c=e[i];i&&t&&(c=uE(c,cE(t))),l=fE(c.length,l),s[i]=!r&&(t||o>=120&&c.length>=120)?new iE(i&&c):void 0}c=e[0];var d=-1,f=s[0];e:for(;++d<o&&u.length<l;){var p=c[d],m=t?t(p):p;if(p=r||0!==p?p:0,!(f?dE(f,m):n(u,m,r))){for(i=a;--i;){var h=s[i];if(!(h?dE(h,m):n(e[i],m,r)))continue e}f&&f.push(m),u.push(p)}}return u},mE=Fb,hE=Wg;var vE=function(e){return hE(e)&&mE(e)},yE=vE;var gE=function(e){return yE(e)?e:[]};var bE=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0},wE=f$,SE=pE,xE=gE,$E=bE,kE=g_((function(e){var t=$E(e),r=wE(e,xE);return(t="function"==typeof t?t:void 0)&&r.pop(),r.length&&r[0]===e[0]?SE(r,void 0,t):[]})),_E=hy,EE=gw,CE=Wg,PE=Function.prototype,jE=Object.prototype,OE=PE.toString,NE=jE.hasOwnProperty,RE=OE.call(Object);var TE=function(e){if(!CE(e)||"[object Object]"!=_E(e))return!1;var t=EE(e);if(null===t)return!0;var r=NE.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&OE.call(r)==RE},AE=hy,IE=Wg;var ME=a$,FE=P_,DE=Q_,zE=Y_,LE=aE,BE=kE,VE=TE,UE=function(e){return!0===e||!1===e||IE(e)&&"[object Boolean]"==AE(e)},WE=e=>Array.isArray(e)?e:[e],qE=e=>void 0===e,KE=e=>VE(e)||Array.isArray(e)?Object.keys(e):[],HE=(e,t)=>e.hasOwnProperty(t),GE=e=>FE(DE(e)),QE=e=>qE(e)||Array.isArray(e)&&0===e.length,XE=(e,t,r,n)=>t&&HE(t,r)&&e&&HE(e,r)&&n(e[r],t[r]),YE=(e,t)=>qE(e)&&0===t||qE(t)&&0===e||ME(e,t),JE=e=>qE(e)||ME(e,{})||!0===e,ZE=e=>qE(e)||ME(e,{}),eC=e=>qE(e)||VE(e)||!0===e||!1===e;function tC(e,t){return!(!QE(e)||!QE(t))||ME(GE(e),GE(t))}function rC(e,t,r,n){var o=DE(KE(e).concat(KE(t)));return!(!ZE(e)||!ZE(t))||(!ZE(e)||!KE(t).length)&&((!ZE(t)||!KE(e).length)&&o.every((function(r){var o=e[r],a=t[r];return Array.isArray(o)&&Array.isArray(a)?ME(GE(e),GE(t)):!(Array.isArray(o)&&!Array.isArray(a))&&(!(Array.isArray(a)&&!Array.isArray(o))&&XE(e,t,r,n))})))}function nC(e,t,r,n){var o=zE(e,n),a=zE(t,n);return BE(o,a,n).length===Math.max(o.length,a.length)}var oC={title:ME,uniqueItems:(e,t)=>qE(e)&&!1===t||qE(t)&&!1===e||ME(e,t),minLength:YE,minItems:YE,minProperties:YE,required:tC,enum:tC,type:function(e,t){return e=WE(e),t=WE(t),ME(GE(e),GE(t))},items:function(e,t,r,n){return VE(e)&&VE(t)?n(e,t):Array.isArray(e)&&Array.isArray(t)?rC(e,t,0,n):ME(e,t)},anyOf:nC,allOf:nC,oneOf:nC,properties:rC,patternProperties:rC,dependencies:rC},aC=["properties","patternProperties","dependencies","uniqueItems","minLength","minItems","minProperties","required"],iC=["additionalProperties","additionalItems","contains","propertyNames","not"];var sC=function e(t,r,n){if(n=LE(n,{ignore:[]}),JE(t)&&JE(r))return!0;if(!eC(t)||!eC(r))throw new Error("Either of the values are not a JSON schema.");if(t===r)return!0;if(UE(t)&&UE(r))return t===r;if(void 0===t&&!1===r||void 0===r&&!1===t)return!1;if(qE(t)&&!qE(r)||!qE(t)&&qE(r))return!1;var o=DE(Object.keys(t).concat(Object.keys(r)));if(n.ignore.length&&(o=o.filter((e=>-1===n.ignore.indexOf(e)))),!o.length)return!0;function a(t,r){return e(t,r,n)}return o.every((function(o){var i=t[o],s=r[o];if(-1!==iC.indexOf(o))return e(i,s,n);var l=oC[o];if(l||(l=ME),ME(i,s))return!0;if(-1===aC.indexOf(o)&&(!HE(t,o)&&HE(r,o)||HE(t,o)&&!HE(r,o)))return i===s;var u=l(i,s,o,a);if(!UE(u))throw new Error("Comparer must return true or false");return u}))};var lC=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};var uC=function(e){return("number"==typeof e||"[object Number]"===Object.prototype.toString.call(e))&&e.valueOf()==e.valueOf()};var cC=lC,dC=function(e){return uC(e)&&e%1==0};var fC=function(e){var t;if(!cC(e))return!1;if(!(t=e.length))return!1;for(var r=0;r<t;r++)if(!dC(e[r]))return!1;return!0};var pC=function(e){return"function"==typeof e},mC=lC,hC=fC,vC=pC,yC=Math.pow(2,31)-1;function gC(e,t){var r,n=1;if(0===e)return t;if(0===t)return e;for(;e%2==0&&t%2==0;)e/=2,t/=2,n*=2;for(;e%2==0;)e/=2;for(;t;){for(;t%2==0;)t/=2;e>t&&(r=t,t=e,e=r),t-=e}return n*e}function bC(e,t){var r,n=0;if(0===e)return t;if(0===t)return e;for(;0==(1&e)&&0==(1&t);)e>>>=1,t>>>=1,n++;for(;0==(1&e);)e>>>=1;for(;t;){for(;0==(1&t);)t>>>=1;e>t&&(r=t,t=e,e=r),t-=e}return e<<n}var wC=function(){var e,t,r,n,o,a,i,s=arguments.length;for(e=new Array(s),i=0;i<s;i++)e[i]=arguments[i];if(hC(e)){if(2===s)return(o=e[0])<0&&(o=-o),(a=e[1])<0&&(a=-a),o<=yC&&a<=yC?bC(o,a):gC(o,a);r=e}else{if(!mC(e[0]))throw new TypeError("gcd()::invalid input argument. Must provide an array of integers. Value: `"+e[0]+"`.");if(s>1){if(r=e[0],t=e[1],!vC(t))throw new TypeError("gcd()::invalid input argument. Accessor must be a function. Value: `"+t+"`.")}else r=e[0]}if((n=r.length)<2)return null;if(t){for(o=new Array(n),i=0;i<n;i++)o[i]=t(r[i],i);r=o}if(s<3&&!hC(r))throw new TypeError("gcd()::invalid input argument. Accessed array values must be integers. Value: `"+r+"`.");for(i=0;i<n;i++)(o=r[i])<0&&(r[i]=-o);for(o=r[0],i=1;i<n;i++)o=(a=r[i])<=yC&&o<=yC?bC(o,a):gC(o,a);return o},SC=wC,xC=lC,$C=fC,kC=pC;var _C=function(){var e,t,r,n,o,a,i,s=arguments.length;for(e=new Array(s),i=0;i<s;i++)e[i]=arguments[i];if($C(e)){if(2===s)return(o=e[0])<0&&(o=-o),(a=e[1])<0&&(a=-a),0===o||0===a?0:o/SC(o,a)*a;r=e}else{if(!xC(e[0]))throw new TypeError("lcm()::invalid input argument. Must provide an array of integers. Value: `"+e[0]+"`.");if(s>1){if(r=e[0],t=e[1],!kC(t))throw new TypeError("lcm()::invalid input argument. Accessor must be a function. Value: `"+t+"`.")}else r=e[0]}if((n=r.length)<2)return null;if(t){for(o=new Array(n),i=0;i<n;i++)o[i]=t(r[i],i);r=o}if(s<3&&!$C(r))throw new TypeError("lcm()::invalid input argument. Accessed array values must be integers. Value: `"+r+"`.");for(i=0;i<n;i++)(o=r[i])<0&&(r[i]=-o);for(o=r[0],i=1;i<n;i++){if(a=r[i],0===o||0===a)return 0;o=o/SC(o,a)*a}return o},EC=Ig,CC=Nv;var PC=function(e,t,r){(void 0!==r&&!CC(e[t],r)||void 0===r&&!(t in e))&&EC(e,t,r)};var jC=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]},OC=Vg,NC=ew;var RC=PC,TC=ow,AC=gS,IC=iw,MC=NS,FC=Zg,DC=eb,zC=vE,LC=tb,BC=by,VC=vy,UC=TE,WC=gb,qC=jC,KC=function(e){return OC(e,NC(e))};var HC=jg,GC=PC,QC=Ik,XC=function(e,t,r,n,o,a,i){var s=qC(e,r),l=qC(t,r),u=i.get(l);if(u)RC(e,r,u);else{var c=a?a(s,l,r+"",e,t,i):void 0,d=void 0===c;if(d){var f=DC(l),p=!f&&LC(l),m=!f&&!p&&WC(l);c=l,f||p||m?DC(s)?c=s:zC(s)?c=IC(s):p?(d=!1,c=TC(l,!0)):m?(d=!1,c=AC(l,!0)):c=[]:UC(l)||FC(l)?(c=s,FC(s)?c=KC(s):VC(s)&&!BC(s)||(c=MC(l))):d=!1}d&&(i.set(l,c),o(c,l,n,a,i),i.delete(l)),RC(e,r,c)}},YC=vy,JC=ew,ZC=jC;var eP=function e(t,r,n,o,a){t!==r&&QC(r,(function(i,s){if(a||(a=new HC),YC(i))XC(t,r,s,n,e,o,a);else{var l=o?o(ZC(t,s),i,s+"",t,r,a):void 0;void 0===l&&(l=i),GC(t,s,l)}}),JC)},tP=eP,rP=vy;var nP=function e(t,r,n,o,a,i){return rP(t)&&rP(r)&&(i.set(r,t),tP(t,r,void 0,e,i),i.delete(r)),t},oP=g_,aP=$_;var iP=function(e){return oP((function(t,r){var n=-1,o=r.length,a=o>1?r[o-1]:void 0,i=o>2?r[2]:void 0;for(a=e.length>3&&"function"==typeof a?(o--,a):void 0,i&&aP(r[0],r[1],i)&&(a=o<3?void 0:a,o=1),t=Object(t);++n<o;){var s=r[n];s&&e(t,s,n,a)}return t}))},sP=eP,lP=iP((function(e,t,r,n){sP(e,t,r,n)})),uP=o_,cP=nP,dP=lP,fP=g_((function(e){return e.push(void 0,cP),uP(dP,void 0,e)})),pP=d$;var mP=function(e){return(null==e?0:e.length)?pP(e,1):[]},hP=d$;var vP=function(e){return(null==e?0:e.length)?hP(e,Infinity):[]},yP=f$,gP=pE,bP=gE,wP=g_((function(e){var t=yP(e,bP);return t.length&&t[0]===e[0]?gP(t):[]}));var SP=function(e,t,r,n){for(var o=r-1,a=e.length;++o<a;)if(n(e[o],t))return o;return-1},xP=f$,$P=A_,kP=SP,_P=fb,EP=iw,CP=Array.prototype.splice;var PP=function(e,t,r,n){var o=n?kP:$P,a=-1,i=t.length,s=e;for(e===t&&(t=EP(t)),r&&(s=xP(e,_P(r)));++a<i;)for(var l=0,u=t[a],c=r?r(u):u;(l=o(s,c,l,n))>-1;)s!==e&&CP.call(s,l,1),CP.call(e,l,1);return e},jP=PP;var OP=function(e,t){return e&&e.length&&t&&t.length?jP(e,t):e},NP=xk;var RP=Og,TP=Lk,IP=function(e){return"function"==typeof e?e:NP},MP=eb;var FP=function(e,t){return(MP(e)?RP:TP)(e,IP(t))},DP=$x,zP=M_,LP=F_,BP=f$,VP=fb,UP=_x;var WP=function(e,t,r,n){var o=-1,a=zP,i=!0,s=e.length,l=[],u=t.length;if(!s)return l;r&&(t=BP(t,VP(r))),n?(a=LP,i=!1):t.length>=200&&(a=UP,i=!1,t=new DP(t));e:for(;++o<s;){var c=e[o],d=null==r?c:r(c);if(c=n||0!==c?c:0,i&&d==d){for(var f=u;f--;)if(t[f]===d)continue e;l.push(c)}else a(t,d,n)||l.push(c)}return l},qP=WP,KP=vE,HP=g_((function(e,t){return KP(e)?qP(e,t):[]}));const GP=mP,QP=vP,XP=TE,YP=Q_,JP=HP;const ZP=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),ej=e=>XP(e)||Array.isArray(e)?Object.keys(e):[],tj=e=>!ej(e).length&&!1!==e&&!0!==e;var rj={allUniqueKeys:e=>YP(QP(e.map(ej))),deleteUndefinedProps:function(e){for(const t in e)ZP(e,t)&&tj(e[t])&&delete e[t];return e},getValues:(e,t)=>e.map((e=>e&&e[t])),has:ZP,isEmptySchema:tj,isSchema:e=>XP(e)||!0===e||!1===e,keys:ej,notUndefined:e=>void 0!==e,uniqWith:Y_,withoutArr:(e,...t)=>JP.apply(null,[e].concat(GP(t)))};const nj=sC,oj=FP,{allUniqueKeys:aj,deleteUndefinedProps:ij,getValues:sj,keys:lj,notUndefined:uj,uniqWith:cj,withoutArr:dj}=rj;function fj(e,t){return aj(e).reduce((function(r,n){const o=sj(e,n),a=cj(o.filter(uj),nj);return r[n]=t(a,n),r}),{})}var pj={keywords:["properties","patternProperties","additionalProperties"],resolver(e,t,r,n){n.ignoreAdditionalProperties||(e.forEach((function(t){const n=e.filter((e=>e!==t)),o=lj(t.properties),a=lj(t.patternProperties).map((e=>new RegExp(e)));n.forEach((function(e){const n=lj(e.properties),i=n.filter((e=>a.some((t=>t.test(e)))));dj(n,o,i).forEach((function(n){e.properties[n]=r.properties([e.properties[n],t.additionalProperties],n)}))}))})),e.forEach((function(t){const r=e.filter((e=>e!==t)),n=lj(t.patternProperties);!1===t.additionalProperties&&r.forEach((function(e){const t=lj(e.patternProperties);dj(t,n).forEach((t=>delete e.patternProperties[t]))}))})));const o={additionalProperties:r.additionalProperties(e.map((e=>e.additionalProperties))),patternProperties:fj(e.map((e=>e.patternProperties)),r.patternProperties),properties:fj(e.map((e=>e.properties)),r.properties)};var a;return!1===o.additionalProperties&&oj(a=o.properties,(function(e,t){!1===e&&delete a[t]})),ij(o)}};const mj=sC,hj=FP,{allUniqueKeys:vj,deleteUndefinedProps:yj,has:gj,isSchema:bj,notUndefined:wj,uniqWith:Sj}=rj;function xj(e,t,r){return vj(r).reduce((function(r,n){const o=function(e,t){return e.map((function(e){if(e){if(!Array.isArray(e.items))return e.items;{const r=e.items[t];if(bj(r))return r;if(gj(e,"additionalItems"))return e.additionalItems}}}))}(e,n),a=Sj(o.filter(wj),mj);return r[n]=t(a,n),r}),[])}var $j={keywords:["items","additionalItems"],resolver(e,t,r){const n=e.map((e=>e.items)),o=n.filter(wj),a={};let i;var s;return o.every(bj)?a.items=r.items(n):a.items=xj(e,r.items,n),o.every(Array.isArray)?i=e.map((e=>e.additionalItems)):o.some(Array.isArray)&&(i=e.map((function(e){if(e)return Array.isArray(e.items)?e.additionalItems:e.items}))),i&&(a.additionalItems=r.additionalItems(i)),!1===a.additionalItems&&Array.isArray(a.items)&&(s=a.items,hj(s,(function(e,t){!1===e&&s.splice(t,1)}))),yj(a)}};const kj=gx,_j=sC,Ej=_C,Cj=fP,Pj=mP,jj=vP,Oj=wP,Nj=kE,Rj=a$,Tj=TE,Aj=OP,Ij=P_,Mj=Q_,Fj=Y_,Dj=pj,zj=$j,Lj=(e,t)=>-1!==e.indexOf(t),Bj=e=>Tj(e)||!0===e||!1===e,Vj=e=>!1===e,Uj=e=>!0===e,Wj=(e,t,r)=>r(e),qj=e=>Ij(Mj(jj(e))),Kj=e=>void 0!==e,Hj=e=>Mj(jj(e.map(Zj))),Gj=e=>e[0],Qj=e=>Math.max.apply(Math,e),Xj=e=>Math.min.apply(Math,e);function Yj(e){let{allOf:t=[],...r}=e;return r=Tj(e)?r:e,[r,...t.map(Yj)]}function Jj(e,t){return e.map((e=>e&&e[t]))}function Zj(e){return Tj(e)||Array.isArray(e)?Object.keys(e):[]}function eO(e,t){if(t=t||[],!e.length)return t;const r=e.slice(0).shift(),n=e.slice(1);return t.length?eO(n,Pj(t.map((e=>r.map((t=>[t].concat(e))))))):eO(n,r.map((e=>e)))}function tO(e,t){let r;try{r=e.map((function(e){return JSON.stringify(e,null,2)})).join("\n")}catch(t){r=e.join(", ")}throw new Error('Could not resolve values for path:"'+t.join(".")+'". They are probably incompatible. Values: \n'+r)}function rO(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((t=>e.reduce(((e,r)=>(void 0!==t[r]&&(e[r]=t[r]),e)),{}))),l=Fj(s,_j),u=i.keywords.reduce(((e,t)=>({...e,[t]:(e,r=[])=>n(e,null,a.concat(t,r))})),{}),c=i.resolver(l,a.concat(t),u,o);return Tj(c)||tO(l,a.concat(t)),c}}function nO(e){return{required:e}}const oO=["properties","patternProperties","definitions","dependencies"],aO=["anyOf","oneOf"],iO=["additionalProperties","additionalItems","contains","propertyNames","not","items"],sO={type(e){if(e.some(Array.isArray)){const t=e.map((function(e){return Array.isArray(e)?e:[e]})),r=Oj.apply(null,t);if(1===r.length)return r[0];if(r.length>1)return Mj(r)}},dependencies:(e,t,r)=>Hj(e).reduce((function(t,n){const o=Jj(e,n);let a=Fj(o.filter(Kj),Rj);const i=a.filter(Array.isArray);if(i.length){if(i.length===a.length)t[n]=qj(a);else{const e=a.filter(Bj),o=i.map(nO);t[n]=r(e.concat(o),n)}return t}return a=Fj(a,_j),t[n]=r(a,n),t}),{}),oneOf(e,t,r){const n=function(e,t){return e.map((function(e,r){try{return t(e,r)}catch(e){return}})).filter(Kj)}(eO(kj(e)),r),o=Fj(n,_j);if(o.length)return o},not:e=>({anyOf:e}),pattern:e=>e.map((e=>"(?="+e+")")).join(""),multipleOf(e){let t=e.slice(0),r=1;for(;t.some((e=>!Number.isInteger(e)));)t=t.map((e=>10*e)),r*=10;return Ej(t)/r},enum(e){const t=Nj.apply(null,e.concat(Rj));if(t.length)return Ij(t)}};sO.$id=Gj,sO.$ref=Gj,sO.$schema=Gj,sO.additionalItems=Wj,sO.additionalProperties=Wj,sO.anyOf=sO.oneOf,sO.contains=Wj,sO.default=Gj,sO.definitions=sO.dependencies,sO.description=Gj,sO.examples=e=>Fj(Pj(e),Rj),sO.exclusiveMaximum=Xj,sO.exclusiveMinimum=Qj,sO.items=zj,sO.maximum=Xj,sO.maxItems=Xj,sO.maxLength=Xj,sO.maxProperties=Xj,sO.minimum=Qj,sO.minItems=Qj,sO.minLength=Qj,sO.minProperties=Qj,sO.properties=Dj,sO.propertyNames=Wj,sO.required=e=>qj(e),sO.title=Gj,sO.uniqueItems=e=>e.some(Uj);const lO={properties:Dj,items:zj};function uO(e,t,r){t=Cj(t,{ignoreAdditionalProperties:!1,resolvers:sO,complexResolvers:lO,deep:!0});const n=Object.entries(t.complexResolvers);const o=function e(r,o,a){r=kj(r.filter(Kj)),a=a||[];const i=Tj(o)?o:{};if(!r.length)return;if(r.some(Vj))return!1;if(r.every(Uj))return!0;r=r.filter(Tj);const s=Hj(r);if(t.deep&&Lj(s,"allOf"))return uO({allOf:r},t);const l=n.map((([e,t])=>s.filter((e=>t.keywords.includes(e)))));return l.forEach((e=>Aj(s,e))),s.forEach((function(n){const o=Jj(r,n),s=Fj(o.filter(Kj),function(e){return function(t,r){return _j({[e]:t},{[e]:r})}}(n));if(1===s.length&&Lj(aO,n))i[n]=s[0].map((t=>e([t],t)));else if(1!==s.length||Lj(oO,n)||Lj(iO,n)){const r=t.resolvers[n]||t.resolvers.defaultResolver;if(!r)throw new Error("No resolver found for key "+n+". You can provide a resolver for this keyword in the options, or provide a default resolver.");const o=(t,r=[])=>e(t,null,a.concat(n,r));i[n]=r(s,a.concat(n),o,t),void 0===i[n]?tO(s,a.concat(n)):void 0===i[n]&&delete i[n]}else i[n]=s[0]})),n.reduce(((n,[o,i],s)=>({...n,...rO(l[s],o,r,e,t,a)})),i)}(jj(Yj(e)));return o}uO.options={resolvers:sO};var cO=uO;function dO(e){return e!=e}function fO(e,t){return!!(null==e?0:e.length)&&function(e,t,r){return t==t?function(e,t,r){for(var n=r-1,o=e.length;++n<o;)if(e[n]===t)return n;return-1}(e,t,r):function(e,t,r,n){for(var o=e.length,a=r+(n?1:-1);n?a--:++a<o;)if(t(e[a],a,e))return a;return-1}(e,dO,r)}(e,t,0)>-1}function pO(e,t,r){for(var n=-1,o=null==e?0:e.length;++n<o;)if(r(t,e[n]))return!0;return!1}var mO=yp&&1/lf(new yp([,-0]))[1]==1/0?function(e){return new yp(e)}:function(){},hO=mO;function vO(e){return md(e)&&cp(e)}var yO=function(e,t){return zh(Th(e,t,Ah),e+"")}((function(e){return function(e,t,r){var n=-1,o=fO,a=e.length,i=!0,s=[],l=s;if(r)i=!1,o=pO;else if(a>=200){var u=t?null:hO(e);if(u)return lf(u);i=!1,o=tf,l=new Zd}else l=t?[]:s;e:for(;++n<a;){var c=e[n],d=t?t(c):c;if(c=r||0!==c?c:0,i&&d==d){for(var f=l.length;f--;)if(l[f]===d)continue e;t&&l.push(d),s.push(c)}else o(l,d,r)||(l!==s&&l.push(d),s.push(c))}return s}(Oh(e,1,vO,!0))})),gO=yO;function bO(e,t){return Fp(e,t)}function wO(e){return kh(e,5)}var SO={},xO={get exports(){return SO},set exports(e){SO=e}},$O={},kO=a,_O=Symbol.for("react.element"),EO=Symbol.for("react.fragment"),CO=Object.prototype.hasOwnProperty,PO=kO.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,jO={key:!0,ref:!0,__self:!0,__source:!0};function OO(e,t,r){var n,o={},a=null,i=null;for(n in void 0!==r&&(a=""+r),void 0!==t.key&&(a=""+t.key),void 0!==t.ref&&(i=t.ref),t)CO.call(t,n)&&!jO.hasOwnProperty(n)&&(o[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===o[n]&&(o[n]=t[n]);return{$$typeof:_O,type:e,key:a,ref:i,props:o,_owner:PO.current}}$O.Fragment=EO,$O.jsx=OO,$O.jsxs=OO,function(e){e.exports=$O}(xO);var NO,RO={},TO={get exports(){return RO},set exports(e){RO=e}},AO={},IO=Symbol.for("react.element"),MO=Symbol.for("react.portal"),FO=Symbol.for("react.fragment"),DO=Symbol.for("react.strict_mode"),zO=Symbol.for("react.profiler"),LO=Symbol.for("react.provider"),BO=Symbol.for("react.context"),VO=Symbol.for("react.server_context"),UO=Symbol.for("react.forward_ref"),WO=Symbol.for("react.suspense"),qO=Symbol.for("react.suspense_list"),KO=Symbol.for("react.memo"),HO=Symbol.for("react.lazy"),GO=Symbol.for("react.offscreen");function QO(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case IO:switch(e=e.type){case FO:case zO:case DO:case WO:case qO:return e;default:switch(e=e&&e.$$typeof){case VO:case BO:case UO:case HO:case KO:case LO:return e;default:return t}}case MO:return t}}}NO=Symbol.for("react.module.reference"),AO.ContextConsumer=BO,AO.ContextProvider=LO,AO.Element=IO,AO.ForwardRef=UO,AO.Fragment=FO,AO.Lazy=HO,AO.Memo=KO,AO.Portal=MO,AO.Profiler=zO,AO.StrictMode=DO,AO.Suspense=WO,AO.SuspenseList=qO,AO.isAsyncMode=function(){return!1},AO.isConcurrentMode=function(){return!1},AO.isContextConsumer=function(e){return QO(e)===BO},AO.isContextProvider=function(e){return QO(e)===LO},AO.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===IO},AO.isForwardRef=function(e){return QO(e)===UO},AO.isFragment=function(e){return QO(e)===FO},AO.isLazy=function(e){return QO(e)===HO},AO.isMemo=function(e){return QO(e)===KO},AO.isPortal=function(e){return QO(e)===MO},AO.isProfiler=function(e){return QO(e)===zO},AO.isStrictMode=function(e){return QO(e)===DO},AO.isSuspense=function(e){return QO(e)===WO},AO.isSuspenseList=function(e){return QO(e)===qO},AO.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===FO||e===zO||e===DO||e===WO||e===qO||e===GO||"object"==typeof e&&null!==e&&(e.$$typeof===HO||e.$$typeof===KO||e.$$typeof===LO||e.$$typeof===BO||e.$$typeof===UO||e.$$typeof===NO||void 0!==e.getModuleId)},AO.typeOf=QO,function(e){e.exports=AO}(TO);var XO=n(RO);function YO(e){return _f(e)?Jp(e,im):zp(e)?[e]:Am(Yp(nm(e)))}function JO(e){return!("undefined"!=typeof File&&e instanceof File)&&(!("undefined"!=typeof Date&&e instanceof Date)&&("object"==typeof e&&null!==e&&!Array.isArray(e)))}function ZO(e){if(""!==e){if(null===e)return null;if(/\.$/.test(e))return e;if(/\.0$/.test(e))return e;if(/\.\d*0$/.test(e))return e;var t=Number(e);return"number"==typeof t&&!Number.isNaN(t)?t:e}}function eN(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,(o=n.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),n)}var o,a}function tN(){return tN=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},tN.apply(this,arguments)}function rN(e){if(null==e)throw new TypeError("Cannot destructure "+e)}function nN(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}var oN="__additional_property",aN="additionalProperties",iN="allOf",sN="anyOf",lN="const",uN="default",cN="dependencies",dN="enum",fN="__errors",pN="$id",mN="if",hN="items",vN="$name",yN="oneOf",gN="properties",bN="required",wN="submitButtonOptions",SN="$ref",xN="__rjsf_additionalProperties",$N="__rjsf_rootSchema",kN="ui:widget",_N="ui:options";function EN(e,t){return void 0===e&&(e={}),void 0===t&&(t={}),Object.keys(e).filter((function(e){return 0===e.indexOf("ui:")})).reduce((function(t,r){var n,o=e[r];return r===kN&&JO(o)?(console.error("Setting options via ui:widget object is no longer supported, use ui:options instead"),t):r===_N&&JO(o)?tN({},t,o):tN({},t,((n={})[r.substring(3)]=o,n))}),tN({},t))}function CN(e,t,r){if(void 0===t&&(t={}),!e.additionalProperties)return!1;var n=EN(t).expandable,o=void 0===n||n;return!1===o?o:void 0===e.maxProperties||!r||Object.keys(r).length<e.maxProperties}function PN(e){var t,r=((t={})[fN]=[],t.addError=function(e){this[fN].push(e)},t);if(Array.isArray(e))return e.reduce((function(e,t,r){var n;return tN({},e,((n={})[r]=PN(t),n))}),r);if(Sd(e)){var n=e;return Object.keys(n).reduce((function(e,t){var r;return tN({},e,((r={})[t]=PN(n[t]),r))}),r)}return r}function jN(e,t){return function(e,t,r){var n=(r="function"==typeof r?r:void 0)?r(e,t):void 0;return void 0===n?Fp(e,t,void 0,r):!!n}(e,t,(function(e,t){if("function"==typeof e&&"function"==typeof t)return!0}))}function ON(e,t){var r=t[e];return[Vh(t,[e]),r]}function NN(e,t){void 0===t&&(t={});var r=e||"";if(!r.startsWith("#"))throw new Error("Could not find a definition for "+e+".");r=decodeURIComponent(r.substring(1));var n=pm.get(t,r);if(void 0===n)throw new Error("Could not find a definition for "+e+".");if(n[SN]){var o=ON(SN,n),a=o[0],i=NN(o[1],t);return Object.keys(a).length>0?tN({},a,i):i}return n}function RN(e,t,r,n,o){if(void 0===t)return 0;for(var a=0;a<r.length;a++){var i=r[a];if(o&&Kh(i,[gN,o])){var s=lm(t,o),l=lm(i,[gN,o],{});if(e.isValid(l,s,n))return a}else if(i[gN]){var u={anyOf:Object.keys(i[gN]).map((function(e){return{required:[e]}}))},c=void 0;if(i.anyOf){var d=tN({},(rN(i),i));d.allOf?d.allOf=d.allOf.slice():d.allOf=[],d.allOf.push(u),c=d}else c=Object.assign({},i,u);if(delete c.required,e.isValid(c,t,n))return a}else if(e.isValid(i,t,n))return a}return 0}function TN(e,t,r,n,o){return RN(e,t,r,n,o)}function AN(e){var t,r=lm(e,"discriminator.propertyName",void 0);return Gh(r)?t=r:void 0!==r&&console.warn('Expecting discriminator to be a string, got "'+typeof r+'" instead'),t}function IN(e){return Array.isArray(e)?"array":"string"==typeof e?"string":null==e?"null":"boolean"==typeof e?"boolean":isNaN(e)?"object"==typeof e?"object":"string":"number"}function MN(e){var t=e.type;return!t&&e.const?IN(e.const):!t&&e.enum?"string":t||!e.properties&&!e.additionalProperties?(Array.isArray(t)&&2===t.length&&t.includes("null")&&(t=t.find((function(e){return"null"!==e}))),t):"object"}function FN(e,t){var r=Object.assign({},e);return Object.keys(t).reduce((function(r,n){var o=e?e[n]:{},a=t[n];return e&&n in e&&JO(a)?r[n]=FN(o,a):e&&t&&("object"===MN(e)||"object"===MN(t))&&n===bN&&Array.isArray(o)&&Array.isArray(a)?r[n]=gO(o,a):r[n]=a,r}),r)}var DN=["if","then","else"],zN=["$ref"],LN=["allOf"],BN=["dependencies"],VN=["oneOf"];function UN(e,t,r,n){return void 0===r&&(r={}),KN(e,t,r,n)[0]}function WN(e){var t=e.reduce((function(e,t){return t.length>1?t.flatMap((function(t){return Cv(e.length,(function(r){return[].concat(e[r]).concat(t)}))})):(e.forEach((function(e){return e.push(t[0])})),e)}),[[]]);return t}function qN(e,t,r,n,o){var a=t.$ref,i=nN(t,zN);return KN(e,tN({},NN(a,r),i),r,o,n)}function KN(e,t,r,n,o){if(void 0===o&&(o=!1),!JO(t))return[{}];var a=function(e,t,r,n,o){return SN in t?qN(e,t,r,n,o):cN in t?HN(e,t,r,n,o).flatMap((function(t){return KN(e,t,r,o,n)})):iN in t&&Array.isArray(t.allOf)?WN(t.allOf.map((function(t){return KN(e,t,r,o,n)}))).map((function(e){return tN({},t,{allOf:e})})):[t]}(e,t,r,o,n);return a.flatMap((function(a){var i=a;if(mN in i)return function(e,t,r,n,o){var a=t.if,i=t.then,s=t.else,l=nN(t,DN),u=e.isValid(a,o,r),c=[l],d=[];if(n)i&&"boolean"!=typeof i&&(d=d.concat(KN(e,i,r,o,n))),s&&"boolean"!=typeof s&&(d=d.concat(KN(e,s,r,o,n)));else{var f=u?i:s;f&&"boolean"!=typeof f&&(d=d.concat(KN(e,f,r,o,n)))}return d.length&&(c=d.map((function(e){return FN(l,e)}))),c.flatMap((function(t){return KN(e,t,r,o,n)}))}(e,i,r,o,n);if(iN in t)try{i=cO(a,{deep:!1})}catch(e){return console.warn("could not merge subschemas in allOf:\n",e),nN(i,LN)}return aN in i&&!1!==i.additionalProperties?function(e,t,r,n){var o=tN({},t,{properties:tN({},t.properties)}),a=n&&JO(n)?n:{};return Object.keys(a).forEach((function(t){if(!(t in o.properties)){var n={};n="boolean"!=typeof o.additionalProperties?SN in o.additionalProperties?UN(e,{$ref:lm(o.additionalProperties,[SN])},r,a):"type"in o.additionalProperties?tN({},o.additionalProperties):sN in o.additionalProperties||yN in o.additionalProperties?tN({type:"object"},o.additionalProperties):{type:IN(lm(a,[t]))}:{type:IN(lm(a,[t]))},o.properties[t]=n,jv(o.properties,[t,oN],!0)}})),o}(e,i,r,n):i}))}function HN(e,t,r,n,o){var a=t.dependencies,i=nN(t,BN),s=function(e,t,r,n,o){var a;if(Array.isArray(t.oneOf)?a=t.oneOf:Array.isArray(t.anyOf)&&(a=t.anyOf),a){var i=void 0===o&&n?{}:o,s=AN(t);a=a.map((function(t){return SN in t?qN(e,t,r,!1,i)[0]:t}));var l=TN(e,i,a,r,s);if(n)return a;t=a[l]}return[t]}(e,i,r,n,o);return s.flatMap((function(t){return GN(e,a,t,r,n,o)}))}function GN(e,t,r,n,o,a){var i=[r],s=function(){if(!o&&void 0===lm(a,[l]))return"continue";if(r.properties&&!(l in r.properties))return"continue";var s=ON(l,t),u=s[0],c=s[1];return Array.isArray(c)?i[0]=function(e,t){if(!t)return e;var r=Array.isArray(e.required)?Array.from(new Set([].concat(e.required,t))):t;return tN({},e,{required:r})}(r,c):JO(c)&&(i=function(e,t,r,n,o,a,i){var s=KN(e,o,r,i,a);return s.flatMap((function(o){var s=o.oneOf,l=nN(o,VN);if(t=FN(t,l),void 0===s)return t;var u=s.map((function(t){return"boolean"!=typeof t&&SN in t?qN(e,t,r,a,i):[t]}));return WN(u).flatMap((function(o){return function(e,t,r,n,o,a,i){var s=o.filter((function(t){if("boolean"==typeof t||!t||!t.properties)return!1;var o=t.properties[n];if(o){var s,l={type:"object",properties:(s={},s[n]=o,s)};return e.isValid(l,i,r)||a}return!1}));if(!a&&1!==s.length)return console.warn("ignoring oneOf in dependencies because there isn't exactly one subschema that is valid"),[t];return s.flatMap((function(o){var s=tN({},o,{properties:ON(n,o.properties)[0]});return KN(e,s,r,i,a).map((function(e){return FN(t,e)}))}))}(e,t,r,n,o,a,i)}))}))}(e,r,n,l,c,o,a)),{v:i.flatMap((function(t){return GN(e,u,t,n,o,a)}))}};for(var l in t){var u=s();if("continue"!==u&&"object"==typeof u)return u.v}return i}var QN,XN={type:"object",$id:"_$junk_option_schema_id$_",properties:{__not_really_there__:{type:"number"}}};function YN(e,t,r,n){void 0===n&&(n={});var o=0;return r&&(Ed(r.properties)?o+=function(e,t,r){var n=_f(e)?Qh:fv,o=arguments.length<3;return n(e,dv(t),r,o,ev)}(r.properties,(function(r,o,a){var i=lm(n,a);if("boolean"==typeof o)return r;if(Kh(o,SN)){var s=UN(e,o,t,i);return r+YN(e,t,s,i||{})}if(Kh(o,yN)&&i)return r+JN(e,t,i,lm(o,yN));if("object"===o.type)return r+YN(e,t,o,i||{});if(o.type===IN(i)){var l=r+1;return o.default?l+=i===o.default?1:-1:o.const&&(l+=i===o.const?1:-1),l}return r}),0):Gh(r.type)&&r.type===IN(n)&&(o+=1)),o}function JN(e,t,r,n,o,a){void 0===o&&(o=-1);var i=n.reduce((function(n,o,i){return 1===TN(e,r,[XN,o],t,a)&&n.push(i),n}),[]);if(1===i.length)return i[0];i.length||Cv(n.length,(function(e){return i.push(e)}));var s=i.reduce((function(o,a){var i=o.bestScore,s=n[a];Kh(s,SN)&&(s=UN(e,s,t,r));var l=YN(e,t,s,r);return l>i?{bestIndex:a,bestScore:l}:o}),{bestIndex:o,bestScore:0});return s.bestIndex}function ZN(e){return Array.isArray(e.items)&&e.items.length>0&&e.items.every((function(e){return JO(e)}))}function eR(e,t){if(Array.isArray(t)){var r=Array.isArray(e)?e:[];return t.map((function(e,t){return r[t]?eR(r[t],e):e}))}if(JO(t)){var n=Object.assign({},e);return Object.keys(t).reduce((function(r,n){return r[n]=eR(e?lm(e,n):{},lm(t,n)),r}),n)}return t}function tR(e,t,r){return void 0===r&&(r=!1),Object.keys(t).reduce((function(n,o){var a=e?e[o]:{},i=t[o];if(e&&o in e&&JO(i))n[o]=tR(a,i,r);else if(r&&Array.isArray(a)&&Array.isArray(i)){var s=i;"preventDuplicates"===r&&(s=i.reduce((function(e,t){return a.includes(t)||e.push(t),e}),[])),n[o]=a.concat(s)}else n[o]=i;return n}),Object.assign({},e))}function rR(e,t,r){void 0===r&&(r={});var n=UN(e,t,r,void 0),o=n.oneOf||n.anyOf;return!!Array.isArray(n.enum)||!!Array.isArray(o)&&o.every((function(e){return"boolean"!=typeof e&&function(e){return Array.isArray(e.enum)&&1===e.enum.length||lN in e}(e)}))}function nR(e,t,r){return!(!t.uniqueItems||!t.items||"boolean"==typeof t.items)&&rR(e,t.items,r)}function oR(e,t,r){if(void 0===t&&(t=QN.Ignore),void 0===r&&(r=-1),r>=0){if(Array.isArray(e.items)&&r<e.items.length){var n=e.items[r];if("boolean"!=typeof n)return n}}else if(e.items&&!Array.isArray(e.items)&&"boolean"!=typeof e.items)return e.items;return t!==QN.Ignore&&JO(e.additionalItems)?e.additionalItems:{}}function aR(e,t,r,n,o,a,i){void 0===a&&(a=[]),void 0===i&&(i={});var s=i.emptyObjectFields,l=void 0===s?"populateAllDefaults":s;n?e[t]=r:"skipDefaults"!==l&&(JO(r)?fm(r)&&!a.includes(t)||!o&&"populateRequiredDefaults"===l||(e[t]=r):void 0===r||"populateAllDefaults"!==l&&!a.includes(t)||(e[t]=r))}function iR(e,t,r){var n=void 0===r?{}:r,o=n.parentDefaults,a=n.rawFormData,i=n.rootSchema,s=void 0===i?{}:i,l=n.includeUndefinedValues,u=void 0!==l&&l,c=n._recurseList,d=void 0===c?[]:c,f=n.experimental_defaultFormStateBehavior,p=void 0===f?void 0:f,m=n.required,h=void 0!==m&&m,v=JO(a)?a:{},y=JO(t)?t:{},g=o,b=null,w=d;if(JO(g)&&JO(y.default))g=tR(g,y.default);else if(uN in y)g=y.default;else if(SN in y){var S=y[SN];d.includes(S)||(w=d.concat(S),b=NN(S,s))}else if(cN in y){b=HN(e,y,s,!1,v)[0]}else if(ZN(y))g=y.items.map((function(t,r){return iR(e,t,{rootSchema:s,includeUndefinedValues:u,_recurseList:d,experimental_defaultFormStateBehavior:p,parentDefaults:Array.isArray(o)?o[r]:void 0,rawFormData:v})}));else if(yN in y){if(0===y.oneOf.length)return;var x=AN(y);b=y.oneOf[JN(e,s,fm(v)?void 0:v,y.oneOf,0,x)]}else if(sN in y){if(0===y.anyOf.length)return;var $=AN(y);b=y.anyOf[JN(e,s,fm(v)?void 0:v,y.anyOf,0,$)]}if(b)return iR(e,b,{rootSchema:s,includeUndefinedValues:u,_recurseList:w,experimental_defaultFormStateBehavior:p,parentDefaults:g,rawFormData:v});switch(void 0===g&&(g=y.default),MN(y)){case"object":var k=Object.keys(y.properties||{}).reduce((function(t,r){var n;return aR(t,r,iR(e,lm(y,[gN,r]),{rootSchema:s,_recurseList:d,experimental_defaultFormStateBehavior:p,includeUndefinedValues:!0===u,parentDefaults:lm(g,[r]),rawFormData:lm(v,[r]),required:null===(n=y.required)||void 0===n?void 0:n.includes(r)}),u,h,y.required,p),t}),{});if(y.additionalProperties){var _,E=JO(y.additionalProperties)?y.additionalProperties:{},C=new Set;JO(g)&&Object.keys(g).filter((function(e){return!y.properties||!y.properties[e]})).forEach((function(e){return C.add(e)})),JO(v)&&(_=[],Object.keys(v).filter((function(e){return!y.properties||!y.properties[e]})).forEach((function(e){C.add(e),_.push(e)}))),C.forEach((function(t){var r,n=iR(e,E,{rootSchema:s,_recurseList:d,experimental_defaultFormStateBehavior:p,includeUndefinedValues:!0===u,parentDefaults:lm(g,[t]),rawFormData:lm(v,[t]),required:null===(r=y.required)||void 0===r?void 0:r.includes(t)});aR(k,t,n,u,h,_)}))}return k;case"array":if(Array.isArray(g)&&(g=g.map((function(t,r){var n=oR(y,QN.Fallback,r);return iR(e,n,{rootSchema:s,_recurseList:d,experimental_defaultFormStateBehavior:p,parentDefaults:t})}))),Array.isArray(a)){var P=oR(y);g=a.map((function(t,r){return iR(e,P,{rootSchema:s,_recurseList:d,experimental_defaultFormStateBehavior:p,rawFormData:t,parentDefaults:lm(g,[r])})}))}if("requiredOnly"===(null==p?void 0:p.arrayMinItems)&&!h)return g||void 0;var j=Array.isArray(g)?g.length:0;if(!y.minItems||nR(e,y,s)||y.minItems<=j)return g||[];var O=g||[],N=oR(y,QN.Invert),R=N.default,T=new Array(y.minItems-j).fill(iR(e,N,{parentDefaults:R,rootSchema:s,_recurseList:d,experimental_defaultFormStateBehavior:p}));return O.concat(T)}return g}function sR(e,t,r,n,o,a){if(void 0===o&&(o=!1),!JO(t))throw new Error("Invalid schema: "+t);var i=iR(e,UN(e,t,n,r),{rootSchema:n,includeUndefinedValues:o,experimental_defaultFormStateBehavior:a,rawFormData:r});return null==r||"number"==typeof r&&isNaN(r)?i:JO(r)||Array.isArray(r)?eR(i,r):r}function lR(e){return void 0===e&&(e={}),"widget"in EN(e)&&"hidden"!==EN(e).widget}function uR(e,t,r,n){if(void 0===r&&(r={}),"files"===r[kN])return!0;if(t.items){var o=UN(e,t.items,n);return"string"===o.type&&"data-url"===o.format}return!1}!function(e){e[e.Ignore=0]="Ignore",e[e.Invert=1]="Invert",e[e.Fallback=2]="Fallback"}(QN||(QN={}));var cR=Symbol("no Value");function dR(e,t,r,n,o){var a;if(void 0===o&&(o={}),Kh(r,gN)){var i={};if(Kh(n,gN)){var s=lm(n,gN,{});Object.keys(s).forEach((function(e){Kh(o,e)&&(i[e]=void 0)}))}var l=Object.keys(lm(r,gN,{})),u={};l.forEach((function(a){var s=lm(o,a),l=lm(n,[gN,a],{}),c=lm(r,[gN,a],{});Kh(l,SN)&&(l=UN(e,l,t,s)),Kh(c,SN)&&(c=UN(e,c,t,s));var d=lm(l,"type"),f=lm(c,"type");if(!d||d===f)if(Kh(i,a)&&delete i[a],"object"===f||"array"===f&&Array.isArray(s)){var p=dR(e,t,c,l,s);void 0===p&&"array"!==f||(u[a]=p)}else{var m=lm(c,"default",cR),h=lm(l,"default",cR);m!==cR&&m!==s&&(h===s?i[a]=m:!0===lm(c,"readOnly")&&(i[a]=void 0));var v=lm(c,"const",cR),y=lm(l,"const",cR);v!==cR&&v!==s&&(i[a]=y===s?v:void 0)}})),a=tN({},o,i,u)}else if("array"===lm(n,"type")&&"array"===lm(r,"type")&&Array.isArray(o)){var c=lm(n,"items"),d=lm(r,"items");if("object"!=typeof c||"object"!=typeof d||Array.isArray(c)||Array.isArray(d))"boolean"==typeof c&&"boolean"==typeof d&&c===d&&(a=o);else{Kh(c,SN)&&(c=UN(e,c,t,o)),Kh(d,SN)&&(d=UN(e,d,t,o));var f=lm(c,"type"),p=lm(d,"type");if(!f||f===p){var m=lm(r,"maxItems",-1);a="object"===p?o.reduce((function(r,n){var o=dR(e,t,d,c,n);return void 0!==o&&(m<0||r.length<m)&&r.push(o),r}),[]):m>0&&o.length>m?o.slice(0,m):o}}}return a}function fR(e,t,r,n,o,a,i,s){if(void 0===s&&(s=[]),SN in t||cN in t||iN in t){var l=UN(e,t,a,i);if(-1===s.findIndex((function(e){return bO(e,l)})))return fR(e,l,r,n,o,a,i,s.concat(l))}if(hN in t&&!lm(t,[hN,SN]))return fR(e,lm(t,hN),r,n,o,a,i,s);var u={$id:o||r};if("object"===MN(t)&&gN in t)for(var c in t.properties){var d=lm(t,[gN,c]),f=u[pN]+n+c;u[c]=fR(e,JO(d)?d:{},r,n,f,a,lm(i,[c]),s)}return u}function pR(e,t,r,n,o,a,i){return void 0===a&&(a="root"),void 0===i&&(i="_"),fR(e,t,a,i,r,n,o)}function mR(e,t,r,n,o,a){var i;if(void 0===a&&(a=[]),SN in t||cN in t||iN in t){var s=UN(e,t,n,o);if(-1===a.findIndex((function(e){return bO(e,s)})))return mR(e,s,r,n,o,a.concat(s))}var l=((i={})[vN]=r.replace(/^\./,""),i);if(yN in t||sN in t){var u=yN in t?t.oneOf:t.anyOf,c=AN(t),d=u[JN(e,n,o,u,0,c)];l=tN({},l,mR(e,d,r,n,o,a))}if(aN in t&&!1!==t[aN]&&jv(l,xN,!0),hN in t&&Array.isArray(o))o.forEach((function(o,i){l[i]=mR(e,t.items,r+"."+i,n,o,a)}));else if(gN in t)for(var f in t.properties){var p=lm(t,[gN,f]);l[f]=mR(e,p,r+"."+f,n,lm(o,[f]),a)}return l}function hR(e,t,r,n,o){return void 0===r&&(r=""),mR(e,t,r,n,o)}var vR=function(){function e(e,t,r){this.rootSchema=void 0,this.validator=void 0,this.experimental_defaultFormStateBehavior=void 0,this.rootSchema=t,this.validator=e,this.experimental_defaultFormStateBehavior=r}var t=e.prototype;return t.getValidator=function(){return this.validator},t.doesSchemaUtilsDiffer=function(e,t,r){return void 0===r&&(r={}),!(!e||!t)&&(this.validator!==e||!jN(this.rootSchema,t)||!jN(this.experimental_defaultFormStateBehavior,r))},t.getDefaultFormState=function(e,t,r){return void 0===r&&(r=!1),sR(this.validator,e,t,this.rootSchema,r,this.experimental_defaultFormStateBehavior)},t.getDisplayLabel=function(e,t,r){return function(e,t,r,n,o){void 0===r&&(r={});var a=EN(r,o).label,i=!(void 0!==a&&!a),s=MN(t);return"array"===s&&(i=nR(e,t,n)||uR(e,t,r,n)||lR(r)),"object"===s&&(i=!1),"boolean"!==s||r[kN]||(i=!1),r["ui:field"]&&(i=!1),i}(this.validator,e,t,this.rootSchema,r)},t.getClosestMatchingOption=function(e,t,r,n){return JN(this.validator,this.rootSchema,e,t,r,n)},t.getFirstMatchingOption=function(e,t,r){return TN(this.validator,e,t,this.rootSchema,r)},t.getMatchingOption=function(e,t,r){return RN(this.validator,e,t,this.rootSchema,r)},t.isFilesArray=function(e,t){return uR(this.validator,e,t,this.rootSchema)},t.isMultiSelect=function(e){return nR(this.validator,e,this.rootSchema)},t.isSelect=function(e){return rR(this.validator,e,this.rootSchema)},t.mergeValidationData=function(e,t){return function(e,t,r){if(!r)return t;var n=t.errors,o=t.errorSchema,a=e.toErrorList(r),i=r;return fm(o)||(i=tR(o,r,!0),a=[].concat(n).concat(a)),{errorSchema:i,errors:a}}(this.validator,e,t)},t.retrieveSchema=function(e,t){return UN(this.validator,e,this.rootSchema,t)},t.sanitizeDataForNewSchema=function(e,t,r){return dR(this.validator,this.rootSchema,e,t,r)},t.toIdSchema=function(e,t,r,n,o){return void 0===n&&(n="root"),void 0===o&&(o="_"),pR(this.validator,e,t,this.rootSchema,r,n,o)},t.toPathSchema=function(e,t,r){return hR(this.validator,e,t,this.rootSchema,r)},e}();function yR(e,t){return function(e,t){var r=e;if(Array.isArray(t)){var n=r.split(/(%\d)/);t.forEach((function(e,t){var r=n.findIndex((function(e){return e==="%"+(t+1)}));r>=0&&(n[r]=e)})),r=n.join("")}return r}(e,t)}function gR(e,t,r){if(void 0===t&&(t=[]),Array.isArray(e))return e.map((function(e){return gR(e,t)})).filter((function(e){return e}));var n=""===e||null===e?-1:Number(e),o=t[n];return o?o.value:r}function bR(e,t,r){void 0===r&&(r=[]);var n=gR(e,r);return Array.isArray(t)?t.filter((function(e){return!bO(e,n)})):bO(n,t)?void 0:t}function wR(e,t){return Array.isArray(t)?t.some((function(t){return bO(t,e)})):bO(t,e)}function SR(e,t,r){void 0===t&&(t=[]),void 0===r&&(r=!1);var n=t.map((function(t,r){return wR(t.value,e)?String(r):void 0})).filter((function(e){return void 0!==e}));return r?n:n[0]}function xR(e,t,r){void 0===r&&(r=[]);var n=gR(e,r);if(n){var o=r.findIndex((function(e){return n===e.value})),a=r.map((function(e){return e.value}));return t.slice(0,o).concat(n,t.slice(o)).sort((function(e,t){return Number(a.indexOf(e)>a.indexOf(t))}))}return t}var $R=function(){function e(e){this.errorSchema={},this.resetAllErrors(e)}var t,r,n,o=e.prototype;return o.getOrCreateErrorBlock=function(e){var t=Array.isArray(e)&&e.length>0||"string"==typeof e?lm(this.errorSchema,e):this.errorSchema;return!t&&e&&(t={},jv(this.errorSchema,e,t)),t},o.resetAllErrors=function(e){return this.errorSchema=e?wO(e):{},this},o.addErrors=function(e,t){var r,n=this.getOrCreateErrorBlock(t),o=lm(n,fN);(Array.isArray(o)||(o=[],n[fN]=o),Array.isArray(e))?(r=o).push.apply(r,e):o.push(e);return this},o.setErrors=function(e,t){var r=this.getOrCreateErrorBlock(t),n=Array.isArray(e)?[].concat(e):[e];return jv(r,fN,n),this},o.clearErrors=function(e){return jv(this.getOrCreateErrorBlock(e),fN,[]),this},t=e,(r=[{key:"ErrorSchema",get:function(){return this.errorSchema}}])&&eN(t.prototype,r),n&&eN(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function kR(e){var t={};return e.multipleOf&&(t.step=e.multipleOf),(e.minimum||0===e.minimum)&&(t.min=e.minimum),(e.maximum||0===e.maximum)&&(t.max=e.maximum),t}function _R(e,t,r,n){void 0===r&&(r={}),void 0===n&&(n=!0);var o=tN({type:t||"text"},kR(e));return r.inputType?o.type=r.inputType:t||("number"===e.type?(o.type="number",n&&void 0===o.step&&(o.step="any")):"integer"===e.type&&(o.type="number",void 0===o.step&&(o.step=1))),r.autocomplete&&(o.autoComplete=r.autocomplete),o}var ER={props:{disabled:!1},submitText:"Submit",norender:!1};function CR(e){void 0===e&&(e={});var t=EN(e);if(t&&t[wN]){var r=t[wN];return tN({},ER,r)}return ER}function PR(e,t,r){void 0===r&&(r={});var n=t.templates;return"ButtonTemplates"===e?n[e]:r[e]||n[e]}var jR,OR=["options"],NR={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 RR(e,t,r){void 0===r&&(r={});var n=MN(e);if("function"==typeof t||t&&XO.isForwardRef(a.createElement(t))||XO.isMemo(t))return function(e){var t=lm(e,"MergedWidget");if(!t){var r=e.defaultProps&&e.defaultProps.options||{};jv(e,"MergedWidget",t=function(t){var n=t.options,o=nN(t,OR);return SO.jsx(e,tN({options:tN({},r,n)},o))})}return t}(t);if("string"!=typeof t)throw new Error("Unsupported widget definition: "+typeof t);if(t in r)return RR(e,r[t],r);if("string"==typeof n){if(!(n in NR))throw new Error("No widget for type '"+n+"'");if(t in NR[n])return RR(e,r[NR[n][t]],r)}throw new Error("No widget '"+t+"' for type '"+n+"'")}function TR(e,t){return(Gh(e)?e:e[pN])+"__"+t}function AR(e){return TR(e,"description")}function IR(e){return TR(e,"error")}function MR(e){return TR(e,"examples")}function FR(e){return TR(e,"help")}function DR(e){return TR(e,"title")}function zR(e,t){void 0===t&&(t=!1);var r=t?" "+MR(e):"";return IR(e)+" "+AR(e)+" "+FR(e)+r}function LR(e,t){return e+"-"+t}function BR(e,t,r){return t?r:e}function VR(e){var t=e;if(t.enumNames,e.enum)return e.enum.map((function(e,r){return{label:t.enumNames&&t.enumNames[r]||String(e),value:e}}));var r=e.oneOf||e.anyOf;return r&&r.map((function(e){var t=e,r=function(e){if(dN in e&&Array.isArray(e.enum)&&1===e.enum.length)return e.enum[0];if(lN in e)return e.const;throw new Error("schema cannot be inferred as a constant")}(t);return{schema:t,label:t.title||String(r),value:r}}))}function UR(e,t){for(var r=String(e);r.length<t;)r="0"+r;return r}function WR(e,t){if(void 0===t&&(t=!0),!e)return{year:-1,month:-1,day:-1,hour:t?-1:0,minute:t?-1:0,second:t?-1:0};var 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 qR(e){if(e.const)return!0;if(e.enum&&1===e.enum.length&&!0===e.enum[0])return!0;if(e.anyOf&&1===e.anyOf.length)return qR(e.anyOf[0]);if(e.oneOf&&1===e.oneOf.length)return qR(e.oneOf[0]);if(e.allOf){return e.allOf.some((function(e){return qR(e)}))}return!1}function KR(e,t){void 0===t&&(t=!0);var r=e.year,n=e.month,o=e.day,a=e.hour,i=void 0===a?0:a,s=e.minute,l=void 0===s?0:s,u=e.second,c=void 0===u?0:u,d=Date.UTC(r,n-1,o,i,l,c),f=new Date(d).toJSON();return t?f:f.slice(0,10)}function HR(e,t){if(void 0===t&&(t=[]),!e)return[];var r=[];return fN in e&&(r=r.concat(e[fN].map((function(e){var r="."+t.join(".");return{property:r,message:e,stack:r+" "+e}})))),Object.keys(e).reduce((function(r,n){if(n!==fN){var o=e[n];Sd(o)&&(r=r.concat(HR(o,[].concat(t,[n]))))}return r}),r)}function GR(e){return Object.keys(e).reduce((function(t,r){if("addError"===r)return t;var n,o,a=e[r];return Sd(a)?tN({},t,((o={})[r]=GR(a),o)):tN({},t,((n={})[r]=a,n))}),{})}function QR(e){if(!e)return"";var t=new Date(e);return UR(t.getFullYear(),4)+"-"+UR(t.getMonth()+1,2)+"-"+UR(t.getDate(),2)+"T"+UR(t.getHours(),2)+":"+UR(t.getMinutes(),2)+":"+UR(t.getSeconds(),2)+"."+UR(t.getMilliseconds(),3)}function XR(e,t){if(!t)return e;var r=e.errors,n=e.errorSchema,o=HR(t),a=t;return fm(n)||(a=tR(n,t,!0),o=[].concat(r).concat(o)),{errorSchema:a,errors:o}}function YR(e){return e.constructor===Object?function(e){for(var t in e){var r=e,n=r[t];t===SN&&"string"==typeof n&&n.startsWith("#")?r[t]=$N+n:r[t]=YR(n)}return e}(tN({},e)):Array.isArray(e)?function(e){for(var t=0;t<e.length;t++)e[t]=YR(e[t]);return e}([].concat(e)):e}!function(e){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: <em>%2</em>.',e.UnsupportedField="Unsupported field schema.",e.UnsupportedFieldWithId="Unsupported field schema for field <code>%1</code>.",e.UnsupportedFieldWithReason="Unsupported field schema: <em>%1</em>.",e.UnsupportedFieldWithIdAndReason="Unsupported field schema for field <code>%1</code>: <em>%2</em>.",e.FilesInfo="<strong>%1</strong> (%2, %3 bytes)"}(jR||(jR={}));var JR,ZR={},eT={get exports(){return ZR},set exports(e){ZR=e}},tT={},rT={},nT={},oT={},aT={},iT={};function sT(){return JR||(JR=1,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(t){if(super(),!e.IDENTIFIER.test(t))throw new Error("CodeGen: name must be a valid identifier");this.str=t}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}e.Name=r;class n extends t{constructor(e){super(),this._items="string"==typeof e?[e]:e}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const e=this._items[0];return""===e||'""'===e}get str(){var e;return null!==(e=this._str)&&void 0!==e?e:this._str=this._items.reduce(((e,t)=>`${e}${t}`),"")}get names(){var e;return null!==(e=this._names)&&void 0!==e?e:this._names=this._items.reduce(((e,t)=>(t instanceof r&&(e[t.str]=(e[t.str]||0)+1),e)),{})}}function o(e,...t){const r=[e[0]];let o=0;for(;o<t.length;)s(r,t[o]),r.push(e[++o]);return new n(r)}e._Code=n,e.nil=new n(""),e._=o;const a=new n("+");function i(e,...t){const r=[u(e[0])];let o=0;for(;o<t.length;)r.push(a),s(r,t[o]),r.push(a,u(e[++o]));return function(e){let t=1;for(;t<e.length-1;){if(e[t]===a){const r=l(e[t-1],e[t+1]);if(void 0!==r){e.splice(t-1,3,r);continue}e[t++]="+"}t++}}(r),new n(r)}function s(e,t){t instanceof n?e.push(...t._items):t instanceof r?e.push(t):e.push(function(e){return"number"==typeof e||"boolean"==typeof e||null===e?e:u(Array.isArray(e)?e.join(","):e)}(t))}function l(e,t){if('""'===t)return e;if('""'===e)return t;if("string"==typeof e){if(t instanceof r||'"'!==e[e.length-1])return;return"string"!=typeof t?`${e.slice(0,-1)}${t}"`:'"'===t[0]?e.slice(0,-1)+t.slice(1):void 0}return"string"!=typeof t||'"'!==t[0]||e instanceof r?void 0:`"${e}${t.slice(1)}`}function u(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}e.str=i,e.addCodeArg=s,e.strConcat=function(e,t){return t.emptyStr()?e:e.emptyStr()?t:i`${e}${t}`},e.stringify=function(e){return new n(u(e))},e.safeStringify=u,e.getProperty=function(t){return"string"==typeof t&&e.IDENTIFIER.test(t)?new n(`.${t}`):o`[${t}]`},e.getEsmExportName=function(t){if("string"==typeof t&&e.IDENTIFIER.test(t))return new n(`${t}`);throw new Error(`CodeGen: invalid export name: ${t}, use explicit $id name mapping`)},e.regexpCode=function(e){return new n(e.toString())}}(iT)),iT}var lT,uT,cT={};function dT(){return lT||(lT=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ValueScope=e.ValueScopeName=e.Scope=e.varKinds=e.UsedValueState=void 0;const t=sT();class r extends Error{constructor(e){super(`CodeGen: "code" for ${e} not defined`),this.value=e.value}}var n;!function(e){e[e.Started=0]="Started",e[e.Completed=1]="Completed"}(n=e.UsedValueState||(e.UsedValueState={})),e.varKinds={const:new t.Name("const"),let:new t.Name("let"),var:new t.Name("var")};class o{constructor({prefixes:e,parent:t}={}){this._names={},this._prefixes=e,this._parent=t}toName(e){return e instanceof t.Name?e:this.name(e)}name(e){return new t.Name(this._newName(e))}_newName(e){return`${e}${(this._names[e]||this._nameGroup(e)).index++}`}_nameGroup(e){var t,r;if((null===(r=null===(t=this._parent)||void 0===t?void 0:t._prefixes)||void 0===r?void 0:r.has(e))||this._prefixes&&!this._prefixes.has(e))throw new Error(`CodeGen: prefix "${e}" is not allowed in this scope`);return this._names[e]={prefix:e,index:0}}}e.Scope=o;class a extends t.Name{constructor(e,t){super(t),this.prefix=e}setValue(e,{property:r,itemIndex:n}){this.value=e,this.scopePath=t._`.${new t.Name(r)}[${n}]`}}e.ValueScopeName=a;const i=t._`\n`;e.ValueScope=class extends o{constructor(e){super(e),this._values={},this._scope=e.scope,this.opts={...e,_n:e.lines?i:t.nil}}get(){return this._scope}name(e){return new a(e,this._newName(e))}value(e,t){var r;if(void 0===t.ref)throw new Error("CodeGen: ref must be passed in value");const n=this.toName(e),{prefix:o}=n,a=null!==(r=t.key)&&void 0!==r?r:t.ref;let i=this._values[o];if(i){const e=i.get(a);if(e)return e}else i=this._values[o]=new Map;i.set(a,n);const s=this._scope[o]||(this._scope[o]=[]),l=s.length;return s[l]=t.ref,n.setValue(t,{property:o,itemIndex:l}),n}getValue(e,t){const r=this._values[e];if(r)return r.get(t)}scopeRefs(e,r=this._values){return this._reduceValues(r,(r=>{if(void 0===r.scopePath)throw new Error(`CodeGen: name "${r}" has no value`);return t._`${e}${r.scopePath}`}))}scopeCode(e=this._values,t,r){return this._reduceValues(e,(e=>{if(void 0===e.value)throw new Error(`CodeGen: name "${e}" has no value`);return e.value.code}),t,r)}_reduceValues(o,a,i={},s){let l=t.nil;for(const u in o){const c=o[u];if(!c)continue;const d=i[u]=i[u]||new Map;c.forEach((o=>{if(d.has(o))return;d.set(o,n.Started);let i=a(o);if(i){const r=this.opts.es5?e.varKinds.var:e.varKinds.const;l=t._`${l}${r} ${o} = ${i};${this.opts._n}`}else{if(!(i=null==s?void 0:s(o)))throw new r(o);l=t._`${l}${i}${this.opts._n}`}d.set(o,n.Completed)}))}return l}}}(cT)),cT}function fT(){return uT||(uT=1,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=sT(),r=dT();var n=sT();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=dT();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(e,t){return this}}class i extends a{constructor(e,t,r){super(),this.varKind=e,this.name=t,this.rhs=r}render({es5:e,_n:t}){const n=e?r.varKinds.var:this.varKind,o=void 0===this.rhs?"":` = ${this.rhs}`;return`${n} ${this.name}${o};`+t}optimizeNames(e,t){if(e[this.name.str])return this.rhs&&(this.rhs=j(this.rhs,e,t)),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}}class s extends a{constructor(e,t,r){super(),this.lhs=e,this.rhs=t,this.sideEffects=r}render({_n:e}){return`${this.lhs} = ${this.rhs};`+e}optimizeNames(e,r){if(!(this.lhs instanceof t.Name)||e[this.lhs.str]||this.sideEffects)return this.rhs=j(this.rhs,e,r),this}get names(){return P(this.lhs instanceof t.Name?{}:{...this.lhs.names},this.rhs)}}class l extends s{constructor(e,t,r,n){super(e,r,n),this.op=t}render({_n:e}){return`${this.lhs} ${this.op}= ${this.rhs};`+e}}class u extends a{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`${this.label}:`+e}}class c extends a{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`break${this.label?` ${this.label}`:""};`+e}}class d extends a{constructor(e){super(),this.error=e}render({_n:e}){return`throw ${this.error};`+e}get names(){return this.error.names}}class f extends a{constructor(e){super(),this.code=e}render({_n:e}){return`${this.code};`+e}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(e,t){return this.code=j(this.code,e,t),this}get names(){return this.code instanceof t._CodeOrName?this.code.names:{}}}class p extends a{constructor(e=[]){super(),this.nodes=e}render(e){return this.nodes.reduce(((t,r)=>t+r.render(e)),"")}optimizeNodes(){const{nodes:e}=this;let t=e.length;for(;t--;){const r=e[t].optimizeNodes();Array.isArray(r)?e.splice(t,1,...r):r?e[t]=r:e.splice(t,1)}return e.length>0?this:void 0}optimizeNames(e,t){const{nodes:r}=this;let n=r.length;for(;n--;){const o=r[n];o.optimizeNames(e,t)||(O(e,o.names),r.splice(n,1))}return r.length>0?this:void 0}get names(){return this.nodes.reduce(((e,t)=>C(e,t.names)),{})}}class m extends p{render(e){return"{"+e._n+super.render(e)+"}"+e._n}}class h extends p{}class v extends m{}v.kind="else";class y extends m{constructor(e,t){super(t),this.condition=e}render(e){let t=`if(${this.condition})`+super.render(e);return this.else&&(t+="else "+this.else.render(e)),t}optimizeNodes(){super.optimizeNodes();const e=this.condition;if(!0===e)return this.nodes;let t=this.else;if(t){const e=t.optimizeNodes();t=this.else=Array.isArray(e)?new v(e):e}return t?!1===e?t instanceof y?t:t.nodes:this.nodes.length?this:new y(N(e),t instanceof y?[t]:t.nodes):!1!==e&&this.nodes.length?this:void 0}optimizeNames(e,t){var r;if(this.else=null===(r=this.else)||void 0===r?void 0:r.optimizeNames(e,t),super.optimizeNames(e,t)||this.else)return this.condition=j(this.condition,e,t),this}get names(){const e=super.names;return P(e,this.condition),this.else&&C(e,this.else.names),e}}y.kind="if";class g extends m{}g.kind="for";class b extends g{constructor(e){super(),this.iteration=e}render(e){return`for(${this.iteration})`+super.render(e)}optimizeNames(e,t){if(super.optimizeNames(e,t))return this.iteration=j(this.iteration,e,t),this}get names(){return C(super.names,this.iteration.names)}}class w extends g{constructor(e,t,r,n){super(),this.varKind=e,this.name=t,this.from=r,this.to=n}render(e){const t=e.es5?r.varKinds.var:this.varKind,{name:n,from:o,to:a}=this;return`for(${t} ${n}=${o}; ${n}<${a}; ${n}++)`+super.render(e)}get names(){const e=P(super.names,this.from);return P(e,this.to)}}class S extends g{constructor(e,t,r,n){super(),this.loop=e,this.varKind=t,this.name=r,this.iterable=n}render(e){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(e)}optimizeNames(e,t){if(super.optimizeNames(e,t))return this.iterable=j(this.iterable,e,t),this}get names(){return C(super.names,this.iterable.names)}}class x extends m{constructor(e,t,r){super(),this.name=e,this.args=t,this.async=r}render(e){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(e)}}x.kind="func";class $ extends p{render(e){return"return "+super.render(e)}}$.kind="return";class k extends m{render(e){let t="try"+super.render(e);return this.catch&&(t+=this.catch.render(e)),this.finally&&(t+=this.finally.render(e)),t}optimizeNodes(){var e,t;return super.optimizeNodes(),null===(e=this.catch)||void 0===e||e.optimizeNodes(),null===(t=this.finally)||void 0===t||t.optimizeNodes(),this}optimizeNames(e,t){var r,n;return super.optimizeNames(e,t),null===(r=this.catch)||void 0===r||r.optimizeNames(e,t),null===(n=this.finally)||void 0===n||n.optimizeNames(e,t),this}get names(){const e=super.names;return this.catch&&C(e,this.catch.names),this.finally&&C(e,this.finally.names),e}}class _ extends m{constructor(e){super(),this.error=e}render(e){return`catch(${this.error})`+super.render(e)}}_.kind="catch";class E extends m{render(e){return"finally"+super.render(e)}}E.kind="finally";function C(e,t){for(const r in t)e[r]=(e[r]||0)+(t[r]||0);return e}function P(e,r){return r instanceof t._CodeOrName?C(e,r.names):e}function j(e,r,n){return e instanceof t.Name?o(e):function(e){return e instanceof t._Code&&e._items.some((e=>e instanceof t.Name&&1===r[e.str]&&void 0!==n[e.str]))}(e)?new t._Code(e._items.reduce(((e,r)=>(r instanceof t.Name&&(r=o(r)),r instanceof t._Code?e.push(...r._items):e.push(r),e)),[])):e;function o(e){const t=n[e.str];return void 0===t||1!==r[e.str]?e:(delete r[e.str],t)}}function O(e,t){for(const r in t)e[r]=(e[r]||0)-(t[r]||0)}function N(e){return"boolean"==typeof e||"number"==typeof e||null===e?!e:t._`!${I(e)}`}e.CodeGen=class{constructor(e,t={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...t,_n:t.lines?"\n":""},this._extScope=e,this._scope=new r.Scope({parent:e}),this._nodes=[new h]}toString(){return this._root.render(this.opts)}name(e){return this._scope.name(e)}scopeName(e){return this._extScope.name(e)}scopeValue(e,t){const r=this._extScope.value(e,t);return(this._values[r.prefix]||(this._values[r.prefix]=new Set)).add(r),r}getScopeValue(e,t){return this._extScope.getValue(e,t)}scopeRefs(e){return this._extScope.scopeRefs(e,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(e,t,r,n){const o=this._scope.toName(t);return void 0!==r&&n&&(this._constants[o.str]=r),this._leafNode(new i(e,o,r)),o}const(e,t,n){return this._def(r.varKinds.const,e,t,n)}let(e,t,n){return this._def(r.varKinds.let,e,t,n)}var(e,t,n){return this._def(r.varKinds.var,e,t,n)}assign(e,t,r){return this._leafNode(new s(e,t,r))}add(t,r){return this._leafNode(new l(t,e.operators.ADD,r))}code(e){return"function"==typeof e?e():e!==t.nil&&this._leafNode(new f(e)),this}object(...e){const r=["{"];for(const[n,o]of e)r.length>1&&r.push(","),r.push(n),(n!==o||this.opts.es5)&&(r.push(":"),(0,t.addCodeArg)(r,o));return r.push("}"),new t._Code(r)}if(e,t,r){if(this._blockNode(new y(e)),t&&r)this.code(t).else().code(r).endIf();else if(t)this.code(t).endIf();else if(r)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(e){return this._elseNode(new y(e))}else(){return this._elseNode(new v)}endIf(){return this._endBlockNode(y,v)}_for(e,t){return this._blockNode(e),t&&this.code(t).endFor(),this}for(e,t){return this._for(new b(e),t)}forRange(e,t,n,o,a=(this.opts.es5?r.varKinds.var:r.varKinds.let)){const i=this._scope.toName(e);return this._for(new w(a,i,t,n),(()=>o(i)))}forOf(e,n,o,a=r.varKinds.const){const i=this._scope.toName(e);if(this.opts.es5){const e=n instanceof t.Name?n:this.var("_arr",n);return this.forRange("_i",0,t._`${e}.length`,(r=>{this.var(i,t._`${e}[${r}]`),o(i)}))}return this._for(new S("of",a,i,n),(()=>o(i)))}forIn(e,n,o,a=(this.opts.es5?r.varKinds.var:r.varKinds.const)){if(this.opts.ownProperties)return this.forOf(e,t._`Object.keys(${n})`,o);const i=this._scope.toName(e);return this._for(new S("in",a,i,n),(()=>o(i)))}endFor(){return this._endBlockNode(g)}label(e){return this._leafNode(new u(e))}break(e){return this._leafNode(new c(e))}return(e){const t=new $;if(this._blockNode(t),this.code(e),1!==t.nodes.length)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode($)}try(e,t,r){if(!t&&!r)throw new Error('CodeGen: "try" without "catch" and "finally"');const n=new k;if(this._blockNode(n),this.code(e),t){const e=this.name("e");this._currNode=n.catch=new _(e),t(e)}return r&&(this._currNode=n.finally=new E,this.code(r)),this._endBlockNode(_,E)}throw(e){return this._leafNode(new d(e))}block(e,t){return this._blockStarts.push(this._nodes.length),e&&this.code(e).endBlock(t),this}endBlock(e){const t=this._blockStarts.pop();if(void 0===t)throw new Error("CodeGen: not in self-balancing block");const r=this._nodes.length-t;if(r<0||void 0!==e&&r!==e)throw new Error(`CodeGen: wrong number of nodes: ${r} vs ${e} expected`);return this._nodes.length=t,this}func(e,r=t.nil,n,o){return this._blockNode(new x(e,r,n)),o&&this.code(o).endFunc(),this}endFunc(){return this._endBlockNode(x)}optimize(e=1){for(;e-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(e){return this._currNode.nodes.push(e),this}_blockNode(e){this._currNode.nodes.push(e),this._nodes.push(e)}_endBlockNode(e,t){const r=this._currNode;if(r instanceof e||t&&r instanceof t)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${t?`${e.kind}/${t.kind}`:e.kind}"`)}_elseNode(e){const t=this._currNode;if(!(t instanceof y))throw new Error('CodeGen: "else" without "if"');return this._currNode=t.else=e,this}get _root(){return this._nodes[0]}get _currNode(){const e=this._nodes;return e[e.length-1]}set _currNode(e){const t=this._nodes;t[t.length-1]=e}},e.not=N;const R=A(e.operators.AND);e.and=function(...e){return e.reduce(R)};const T=A(e.operators.OR);function A(e){return(r,n)=>r===t.nil?n:n===t.nil?r:t._`${I(r)} ${e} ${I(n)}`}function I(e){return e instanceof t.Name?e:t._`(${e})`}e.or=function(...e){return e.reduce(T)}}(aT)),aT}var pT={};!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=fT(),r=sT();function n(e,t=e.schema){const{opts:r,self:n}=e;if(!r.strictSchema)return;if("boolean"==typeof t)return;const o=n.RULES.keywords;for(const r in t)o[r]||f(e,`unknown keyword: "${r}"`)}function o(e,t){if("boolean"==typeof e)return!e;for(const r in e)if(t[r])return!0;return!1}function a(e){return"number"==typeof e?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}function i(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function s({mergeNames:e,mergeToName:r,mergeValues:n,resultToName:o}){return(a,i,s,l)=>{const u=void 0===s?i:s instanceof t.Name?(i instanceof t.Name?e(a,i,s):r(a,i,s),s):i instanceof t.Name?(r(a,s,i),i):n(i,s);return l!==t.Name||u instanceof t.Name?u:o(a,u)}}function l(e,r){if(!0===r)return e.var("props",!0);const n=e.var("props",t._`{}`);return void 0!==r&&u(e,n,r),n}function u(e,r,n){Object.keys(n).forEach((n=>e.assign(t._`${r}${(0,t.getProperty)(n)}`,!0)))}e.toHash=function(e){const t={};for(const r of e)t[r]=!0;return t},e.alwaysValidSchema=function(e,t){return"boolean"==typeof t?t:0===Object.keys(t).length||(n(e,t),!o(t,e.self.RULES.all))},e.checkUnknownRules=n,e.schemaHasRules=o,e.schemaHasRulesButRef=function(e,t){if("boolean"==typeof e)return!e;for(const r in e)if("$ref"!==r&&t.all[r])return!0;return!1},e.schemaRefOrVal=function({topSchemaRef:e,schemaPath:r},n,o,a){if(!a){if("number"==typeof n||"boolean"==typeof n)return n;if("string"==typeof n)return t._`${n}`}return t._`${e}${r}${(0,t.getProperty)(o)}`},e.unescapeFragment=function(e){return i(decodeURIComponent(e))},e.escapeFragment=function(e){return encodeURIComponent(a(e))},e.escapeJsonPointer=a,e.unescapeJsonPointer=i,e.eachItem=function(e,t){if(Array.isArray(e))for(const r of e)t(r);else t(e)},e.mergeEvaluated={props:s({mergeNames:(e,r,n)=>e.if(t._`${n} !== true && ${r} !== undefined`,(()=>{e.if(t._`${r} === true`,(()=>e.assign(n,!0)),(()=>e.assign(n,t._`${n} || {}`).code(t._`Object.assign(${n}, ${r})`)))})),mergeToName:(e,r,n)=>e.if(t._`${n} !== true`,(()=>{!0===r?e.assign(n,!0):(e.assign(n,t._`${n} || {}`),u(e,n,r))})),mergeValues:(e,t)=>!0===e||{...e,...t},resultToName:l}),items:s({mergeNames:(e,r,n)=>e.if(t._`${n} !== true && ${r} !== undefined`,(()=>e.assign(n,t._`${r} === true ? true : ${n} > ${r} ? ${n} : ${r}`))),mergeToName:(e,r,n)=>e.if(t._`${n} !== true`,(()=>e.assign(n,!0===r||t._`${n} > ${r} ? ${n} : ${r}`))),mergeValues:(e,t)=>!0===e||Math.max(e,t),resultToName:(e,t)=>e.var("items",t)})},e.evaluatedPropsToName=l,e.setEvaluated=u;const c={};var d;function f(e,t,r=e.opts.strictSchema){if(r){if(t=`strict mode: ${t}`,!0===r)throw new Error(t);e.self.logger.warn(t)}}e.useFunc=function(e,t){return e.scopeValue("func",{ref:t,code:c[t.code]||(c[t.code]=new r._Code(t.code))})},function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"}(d=e.Type||(e.Type={})),e.getErrorPath=function(e,r,n){if(e instanceof t.Name){const o=r===d.Num;return n?o?t._`"[" + ${e} + "]"`:t._`"['" + ${e} + "']"`:o?t._`"/" + ${e}`:t._`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return n?(0,t.getProperty)(e).toString():"/"+a(e)},e.checkStrictMode=f}(pT);var mT,hT,vT,yT={};function gT(){if(mT)return yT;mT=1,Object.defineProperty(yT,"__esModule",{value:!0});const e=fT(),t={data:new e.Name("data"),valCxt:new e.Name("valCxt"),instancePath:new e.Name("instancePath"),parentData:new e.Name("parentData"),parentDataProperty:new e.Name("parentDataProperty"),rootData:new e.Name("rootData"),dynamicAnchors:new e.Name("dynamicAnchors"),vErrors:new e.Name("vErrors"),errors:new e.Name("errors"),this:new e.Name("this"),self:new e.Name("self"),scope:new e.Name("scope"),json:new e.Name("json"),jsonPos:new e.Name("jsonPos"),jsonLen:new e.Name("jsonLen"),jsonPart:new e.Name("jsonPart")};return yT.default=t,yT}function bT(){return hT||(hT=1,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=fT(),r=pT,n=gT();function o(e,r){const o=e.const("err",r);e.if(t._`${n.default.vErrors} === null`,(()=>e.assign(n.default.vErrors,t._`[${o}]`)),t._`${n.default.vErrors}.push(${o})`),e.code(t._`${n.default.errors}++`)}function a(e,r){const{gen:n,validateName:o,schemaEnv:a}=e;a.$async?n.throw(t._`new ${e.ValidationError}(${r})`):(n.assign(t._`${o}.errors`,r),n.return(!1))}e.keywordError={message:({keyword:e})=>t.str`must pass "${e}" keyword validation`},e.keyword$DataError={message:({keyword:e,schemaType:r})=>r?t.str`"${e}" keyword must be ${r} ($data)`:t.str`"${e}" keyword is invalid ($data)`},e.reportError=function(r,n=e.keywordError,i,l){const{it:u}=r,{gen:c,compositeRule:d,allErrors:f}=u,p=s(r,n,i);(null!=l?l:d||f)?o(c,p):a(u,t._`[${p}]`)},e.reportExtraError=function(t,r=e.keywordError,i){const{it:l}=t,{gen:u,compositeRule:c,allErrors:d}=l;o(u,s(t,r,i)),c||d||a(l,n.default.vErrors)},e.resetErrorsCount=function(e,r){e.assign(n.default.errors,r),e.if(t._`${n.default.vErrors} !== null`,(()=>e.if(r,(()=>e.assign(t._`${n.default.vErrors}.length`,r)),(()=>e.assign(n.default.vErrors,null)))))},e.extendErrors=function({gen:e,keyword:r,schemaValue:o,data:a,errsCount:i,it:s}){if(void 0===i)throw new Error("ajv implementation error");const l=e.name("err");e.forRange("i",i,n.default.errors,(i=>{e.const(l,t._`${n.default.vErrors}[${i}]`),e.if(t._`${l}.instancePath === undefined`,(()=>e.assign(t._`${l}.instancePath`,(0,t.strConcat)(n.default.instancePath,s.errorPath)))),e.assign(t._`${l}.schemaPath`,t.str`${s.errSchemaPath}/${r}`),s.opts.verbose&&(e.assign(t._`${l}.schema`,o),e.assign(t._`${l}.data`,a))}))};const i={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 s(e,r,o){const{createErrors:a}=e.it;return!1===a?t._`{}`:function(e,r,o={}){const{gen:a,it:s}=e,c=[l(s,o),u(e,o)];return function(e,{params:r,message:o},a){const{keyword:s,data:l,schemaValue:u,it:c}=e,{opts:d,propertyName:f,topSchemaRef:p,schemaPath:m}=c;a.push([i.keyword,s],[i.params,"function"==typeof r?r(e):r||t._`{}`]),d.messages&&a.push([i.message,"function"==typeof o?o(e):o]);d.verbose&&a.push([i.schema,u],[i.parentSchema,t._`${p}${m}`],[n.default.data,l]);f&&a.push([i.propertyName,f])}(e,r,c),a.object(...c)}(e,r,o)}function l({errorPath:e},{instancePath:o}){const a=o?t.str`${e}${(0,r.getErrorPath)(o,r.Type.Str)}`:e;return[n.default.instancePath,(0,t.strConcat)(n.default.instancePath,a)]}function u({keyword:e,it:{errSchemaPath:n}},{schemaPath:o,parentSchema:a}){let s=a?n:t.str`${n}/${e}`;return o&&(s=t.str`${s}${(0,r.getErrorPath)(o,r.Type.Str)}`),[i.schemaPath,s]}}(oT)),oT}var wT={},ST={};Object.defineProperty(ST,"__esModule",{value:!0}),ST.getRules=ST.isJSONType=void 0;const xT=new Set(["string","number","integer","boolean","null","object","array"]);ST.isJSONType=function(e){return"string"==typeof e&&xT.has(e)},ST.getRules=function(){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:{}}};var $T,kT={};function _T(){if($T)return kT;function e(e,r){return r.rules.some((r=>t(e,r)))}function t(e,t){var r;return void 0!==e[t.keyword]||(null===(r=t.definition.implements)||void 0===r?void 0:r.some((t=>void 0!==e[t])))}return $T=1,Object.defineProperty(kT,"__esModule",{value:!0}),kT.shouldUseRule=kT.shouldUseGroup=kT.schemaHasRulesForType=void 0,kT.schemaHasRulesForType=function({schema:t,self:r},n){const o=r.RULES.types[n];return o&&!0!==o&&e(t,o)},kT.shouldUseGroup=e,kT.shouldUseRule=t,kT}!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=ST,r=_T(),n=bT(),o=fT(),a=pT;var i;function s(e){const r=Array.isArray(e)?e:e?[e]:[];if(r.every(t.isJSONType))return r;throw new Error("type must be JSONType or JSONType[]: "+r.join(","))}!function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"}(i=e.DataType||(e.DataType={})),e.getSchemaTypes=function(e){const t=s(e.type);if(t.includes("null")){if(!1===e.nullable)throw new Error("type: null contradicts nullable: false")}else{if(!t.length&&void 0!==e.nullable)throw new Error('"nullable" cannot be used without "type"');!0===e.nullable&&t.push("null")}return t},e.getJSONTypes=s,e.coerceAndCheckDataType=function(e,t){const{gen:n,data:a,opts:s}=e,u=function(e,t){return t?e.filter((e=>l.has(e)||"array"===t&&"array"===e)):[]}(t,s.coerceTypes),d=t.length>0&&!(0===u.length&&1===t.length&&(0,r.schemaHasRulesForType)(e,t[0]));if(d){const r=c(t,a,s.strictNumbers,i.Wrong);n.if(r,(()=>{u.length?function(e,t,r){const{gen:n,data:a,opts:i}=e,s=n.let("dataType",o._`typeof ${a}`),u=n.let("coerced",o._`undefined`);"array"===i.coerceTypes&&n.if(o._`${s} == 'object' && Array.isArray(${a}) && ${a}.length == 1`,(()=>n.assign(a,o._`${a}[0]`).assign(s,o._`typeof ${a}`).if(c(t,a,i.strictNumbers),(()=>n.assign(u,a)))));n.if(o._`${u} !== undefined`);for(const e of r)(l.has(e)||"array"===e&&"array"===i.coerceTypes)&&d(e);function d(e){switch(e){case"string":return void n.elseIf(o._`${s} == "number" || ${s} == "boolean"`).assign(u,o._`"" + ${a}`).elseIf(o._`${a} === null`).assign(u,o._`""`);case"number":return void n.elseIf(o._`${s} == "boolean" || ${a} === null
|
|
21
|
+
var J=a,Y=H;function X(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Z=new Set,ee={};function te(e,t){re(e,t),re(e+"Capture",t)}function re(e,t){for(ee[e]=t,e=0;e<t.length;e++)Z.add(t[e])}var ne=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),oe=Object.prototype.hasOwnProperty,ae=/^[: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]*$/,ie={},se={};function le(e,t,r,n,o,a,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=n,this.attributeNamespace=o,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=i}var ue={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){ue[e]=new le(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];ue[t]=new le(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){ue[e]=new le(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){ue[e]=new le(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){ue[e]=new le(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){ue[e]=new le(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){ue[e]=new le(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){ue[e]=new le(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){ue[e]=new le(e,5,!1,e.toLowerCase(),null,!1,!1)}));var ce=/[\-:]([a-z])/g;function de(e){return e[1].toUpperCase()}function fe(e,t,r,n){var o=ue.hasOwnProperty(t)?ue[t]:null;(null!==o?0!==o.type:n||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,r,n){if(null==t||function(e,t,r,n){if(null!==r&&0===r.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!n&&(null!==r?!r.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,r,n))return!0;if(n)return!1;if(null!==r)switch(r.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,r,o,n)&&(r=null),n||null===o?function(e){return!!oe.call(se,e)||!oe.call(ie,e)&&(ae.test(e)?se[e]=!0:(ie[e]=!0,!1))}(t)&&(null===r?e.removeAttribute(t):e.setAttribute(t,""+r)):o.mustUseProperty?e[o.propertyName]=null===r?3!==o.type&&"":r:(t=o.attributeName,n=o.attributeNamespace,null===r?e.removeAttribute(t):(r=3===(o=o.type)||4===o&&!0===r?"":""+r,n?e.setAttributeNS(n,t,r):e.setAttribute(t,r))))}"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(ce,de);ue[t]=new le(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(ce,de);ue[t]=new le(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(ce,de);ue[t]=new le(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){ue[e]=new le(e,1,!1,e.toLowerCase(),null,!1,!1)})),ue.xlinkHref=new le("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){ue[e]=new le(e,1,!1,e.toLowerCase(),null,!0,!0)}));var pe=J.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,he=Symbol.for("react.element"),me=Symbol.for("react.portal"),ve=Symbol.for("react.fragment"),ge=Symbol.for("react.strict_mode"),ye=Symbol.for("react.profiler"),be=Symbol.for("react.provider"),we=Symbol.for("react.context"),Se=Symbol.for("react.forward_ref"),xe=Symbol.for("react.suspense"),_e=Symbol.for("react.suspense_list"),$e=Symbol.for("react.memo"),ke=Symbol.for("react.lazy"),Ee=Symbol.for("react.offscreen"),je=Symbol.iterator;function Ce(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=je&&e[je]||e["@@iterator"])?e:null}var Oe,Pe=Object.assign;function Ne(e){if(void 0===Oe)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);Oe=t&&t[1]||""}return"\n"+Oe+e}var Re=!1;function Te(e,t){if(!e||Re)return"";Re=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var n=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){n=e}e.call(t.prototype)}else{try{throw Error()}catch(e){n=e}e()}}catch(t){if(t&&n&&"string"==typeof t.stack){for(var o=t.stack.split("\n"),a=n.stack.split("\n"),i=o.length-1,s=a.length-1;1<=i&&0<=s&&o[i]!==a[s];)s--;for(;1<=i&&0<=s;i--,s--)if(o[i]!==a[s]){if(1!==i||1!==s)do{if(i--,0>--s||o[i]!==a[s]){var l="\n"+o[i].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=i&&0<=s);break}}}finally{Re=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?Ne(e):""}function Ae(e){switch(e.tag){case 5:return Ne(e.type);case 16:return Ne("Lazy");case 13:return Ne("Suspense");case 19:return Ne("SuspenseList");case 0:case 2:case 15:return e=Te(e.type,!1);case 11:return e=Te(e.type.render,!1);case 1:return e=Te(e.type,!0);default:return""}}function Ie(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case ve:return"Fragment";case me:return"Portal";case ye:return"Profiler";case ge:return"StrictMode";case xe:return"Suspense";case _e:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case we:return(e.displayName||"Context")+".Consumer";case be:return(e._context.displayName||"Context")+".Provider";case Se:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case $e:return null!==(t=e.displayName||null)?t:Ie(e.type)||"Memo";case ke:t=e._payload,e=e._init;try{return Ie(e(t))}catch(e){}}return null}function Me(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=(e=t.render).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 Ie(t);case 8:return t===ge?"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("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function Fe(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function ze(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function De(e){e._valueTracker||(e._valueTracker=function(e){var t=ze(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==r&&"function"==typeof r.get&&"function"==typeof r.set){var o=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){n=""+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function Le(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=ze(e)?e.checked?"true":"false":e.value),(e=n)!==r&&(t.setValue(e),!0)}function Be(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Ve(e,t){var r=t.checked;return Pe({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=r?r:e._wrapperState.initialChecked})}function Ue(e,t){var r=null==t.defaultValue?"":t.defaultValue,n=null!=t.checked?t.checked:t.defaultChecked;r=Fe(null!=t.value?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function We(e,t){null!=(t=t.checked)&&fe(e,"checked",t,!1)}function qe(e,t){We(e,t);var r=Fe(t.value),n=t.type;if(null!=r)"number"===n?(0===r&&""===e.value||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if("submit"===n||"reset"===n)return void e.removeAttribute("value");t.hasOwnProperty("value")?He(e,t.type,r):t.hasOwnProperty("defaultValue")&&He(e,t.type,Fe(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Ke(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!("submit"!==n&&"reset"!==n||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}""!==(r=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==r&&(e.name=r)}function He(e,t,r){"number"===t&&Be(e.ownerDocument)===e||(null==r?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var Ge=Array.isArray;function Qe(e,t,r,n){if(e=e.options,t){t={};for(var o=0;o<r.length;o++)t["$"+r[o]]=!0;for(r=0;r<e.length;r++)o=t.hasOwnProperty("$"+e[r].value),e[r].selected!==o&&(e[r].selected=o),o&&n&&(e[r].defaultSelected=!0)}else{for(r=""+Fe(r),t=null,o=0;o<e.length;o++){if(e[o].value===r)return e[o].selected=!0,void(n&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function Je(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(X(91));return Pe({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Ye(e,t){var r=t.value;if(null==r){if(r=t.children,t=t.defaultValue,null!=r){if(null!=t)throw Error(X(92));if(Ge(r)){if(1<r.length)throw Error(X(93));r=r[0]}t=r}null==t&&(t=""),r=t}e._wrapperState={initialValue:Fe(r)}}function Xe(e,t){var r=Fe(t.value),n=Fe(t.defaultValue);null!=r&&((r=""+r)!==e.value&&(e.value=r),null==t.defaultValue&&e.defaultValue!==r&&(e.defaultValue=r)),null!=n&&(e.defaultValue=""+n)}function Ze(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function et(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function tt(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?et(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var rt,nt=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,r,n,o){MSApp.execUnsafeLocalFunction((function(){return e(t,r)}))}:e}((function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((rt=rt||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=rt.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}}));function ot(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&3===r.nodeType)return void(r.nodeValue=t)}e.textContent=t}var at={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},it=["Webkit","ms","Moz","O"];function st(e,t,r){return null==t||"boolean"==typeof t||""===t?"":r||"number"!=typeof t||0===t||at.hasOwnProperty(e)&&at[e]?(""+t).trim():t+"px"}function lt(e,t){for(var r in e=e.style,t)if(t.hasOwnProperty(r)){var n=0===r.indexOf("--"),o=st(r,t[r],n);"float"===r&&(r="cssFloat"),n?e.setProperty(r,o):e[r]=o}}Object.keys(at).forEach((function(e){it.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),at[t]=at[e]}))}));var ut=Pe({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 ct(e,t){if(t){if(ut[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(X(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(X(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(X(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(X(62))}}function dt(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;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 ft=null;function pt(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var ht=null,mt=null,vt=null;function gt(e){if(e=fa(e)){if("function"!=typeof ht)throw Error(X(280));var t=e.stateNode;t&&(t=ha(t),ht(e.stateNode,e.type,t))}}function yt(e){mt?vt?vt.push(e):vt=[e]:mt=e}function bt(){if(mt){var e=mt,t=vt;if(vt=mt=null,gt(e),t)for(e=0;e<t.length;e++)gt(t[e])}}function wt(e,t){return e(t)}function St(){}var xt=!1;function _t(e,t,r){if(xt)return e(t,r);xt=!0;try{return wt(e,t,r)}finally{xt=!1,(null!==mt||null!==vt)&&(St(),bt())}}function $t(e,t){var r=e.stateNode;if(null===r)return null;var n=ha(r);if(null===n)return null;r=n[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(n=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!n;break e;default:e=!1}if(e)return null;if(r&&"function"!=typeof r)throw Error(X(231,t,typeof r));return r}var kt=!1;if(ne)try{var Et={};Object.defineProperty(Et,"passive",{get:function(){kt=!0}}),window.addEventListener("test",Et,Et),window.removeEventListener("test",Et,Et)}catch(bD){kt=!1}function jt(e,t,r,n,o,a,i,s,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(r,u)}catch(e){this.onError(e)}}var Ct=!1,Ot=null,Pt=!1,Nt=null,Rt={onError:function(e){Ct=!0,Ot=e}};function Tt(e,t,r,n,o,a,i,s,l){Ct=!1,Ot=null,jt.apply(Rt,arguments)}function At(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(4098&(t=e).flags)&&(r=t.return),e=t.return}while(e)}return 3===t.tag?r:null}function It(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function Mt(e){if(At(e)!==e)throw Error(X(188))}function Ft(e){return e=function(e){var t=e.alternate;if(!t){if(null===(t=At(e)))throw Error(X(188));return t!==e?null:e}for(var r=e,n=t;;){var o=r.return;if(null===o)break;var a=o.alternate;if(null===a){if(null!==(n=o.return)){r=n;continue}break}if(o.child===a.child){for(a=o.child;a;){if(a===r)return Mt(o),e;if(a===n)return Mt(o),t;a=a.sibling}throw Error(X(188))}if(r.return!==n.return)r=o,n=a;else{for(var i=!1,s=o.child;s;){if(s===r){i=!0,r=o,n=a;break}if(s===n){i=!0,n=o,r=a;break}s=s.sibling}if(!i){for(s=a.child;s;){if(s===r){i=!0,r=a,n=o;break}if(s===n){i=!0,n=a,r=o;break}s=s.sibling}if(!i)throw Error(X(189))}}if(r.alternate!==n)throw Error(X(190))}if(3!==r.tag)throw Error(X(188));return r.stateNode.current===r?e:t}(e),null!==e?zt(e):null}function zt(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=zt(e);if(null!==t)return t;e=e.sibling}return null}var Dt=Y.unstable_scheduleCallback,Lt=Y.unstable_cancelCallback,Bt=Y.unstable_shouldYield,Vt=Y.unstable_requestPaint,Ut=Y.unstable_now,Wt=Y.unstable_getCurrentPriorityLevel,qt=Y.unstable_ImmediatePriority,Kt=Y.unstable_UserBlockingPriority,Ht=Y.unstable_NormalPriority,Gt=Y.unstable_LowPriority,Qt=Y.unstable_IdlePriority,Jt=null,Yt=null;var Xt=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(Zt(e)/er|0)|0},Zt=Math.log,er=Math.LN2;var tr=64,rr=4194304;function nr(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 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function or(e,t){var r=e.pendingLanes;if(0===r)return 0;var n=0,o=e.suspendedLanes,a=e.pingedLanes,i=268435455&r;if(0!==i){var s=i&~o;0!==s?n=nr(s):0!==(a&=i)&&(n=nr(a))}else 0!==(i=r&~o)?n=nr(i):0!==a&&(n=nr(a));if(0===n)return 0;if(0!==t&&t!==n&&0==(t&o)&&((o=n&-n)>=(a=t&-t)||16===o&&0!=(4194240&a)))return t;if(0!=(4&n)&&(n|=16&r),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=n;0<t;)o=1<<(r=31-Xt(t)),n|=e[r],t&=~o;return n}function ar(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function ir(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function sr(){var e=tr;return 0==(4194240&(tr<<=1))&&(tr=64),e}function lr(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function ur(e,t,r){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-Xt(t)]=r}function cr(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var n=31-Xt(r),o=1<<n;o&t|e[n]&t&&(e[n]|=t),r&=~o}}var dr=0;function fr(e){return 1<(e&=-e)?4<e?0!=(268435455&e)?16:536870912:4:1}var pr,hr,mr,vr,gr,yr=!1,br=[],wr=null,Sr=null,xr=null,_r=new Map,$r=new Map,kr=[],Er="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function jr(e,t){switch(e){case"focusin":case"focusout":wr=null;break;case"dragenter":case"dragleave":Sr=null;break;case"mouseover":case"mouseout":xr=null;break;case"pointerover":case"pointerout":_r.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":$r.delete(t.pointerId)}}function Cr(e,t,r,n,o,a){return null===e||e.nativeEvent!==a?(e={blockedOn:t,domEventName:r,eventSystemFlags:n,nativeEvent:a,targetContainers:[o]},null!==t&&(null!==(t=fa(t))&&hr(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function Or(e){var t=da(e.target);if(null!==t){var r=At(t);if(null!==r)if(13===(t=r.tag)){if(null!==(t=It(r)))return e.blockedOn=t,void gr(e.priority,(function(){mr(r)}))}else if(3===t&&r.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===r.tag?r.stateNode.containerInfo:null)}e.blockedOn=null}function Pr(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var r=Br(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==r)return null!==(t=fa(r))&&hr(t),e.blockedOn=r,!1;var n=new(r=e.nativeEvent).constructor(r.type,r);ft=n,r.target.dispatchEvent(n),ft=null,t.shift()}return!0}function Nr(e,t,r){Pr(e)&&r.delete(t)}function Rr(){yr=!1,null!==wr&&Pr(wr)&&(wr=null),null!==Sr&&Pr(Sr)&&(Sr=null),null!==xr&&Pr(xr)&&(xr=null),_r.forEach(Nr),$r.forEach(Nr)}function Tr(e,t){e.blockedOn===t&&(e.blockedOn=null,yr||(yr=!0,Y.unstable_scheduleCallback(Y.unstable_NormalPriority,Rr)))}function Ar(e){function t(t){return Tr(t,e)}if(0<br.length){Tr(br[0],e);for(var r=1;r<br.length;r++){var n=br[r];n.blockedOn===e&&(n.blockedOn=null)}}for(null!==wr&&Tr(wr,e),null!==Sr&&Tr(Sr,e),null!==xr&&Tr(xr,e),_r.forEach(t),$r.forEach(t),r=0;r<kr.length;r++)(n=kr[r]).blockedOn===e&&(n.blockedOn=null);for(;0<kr.length&&null===(r=kr[0]).blockedOn;)Or(r),null===r.blockedOn&&kr.shift()}var Ir=pe.ReactCurrentBatchConfig,Mr=!0;function Fr(e,t,r,n){var o=dr,a=Ir.transition;Ir.transition=null;try{dr=1,Dr(e,t,r,n)}finally{dr=o,Ir.transition=a}}function zr(e,t,r,n){var o=dr,a=Ir.transition;Ir.transition=null;try{dr=4,Dr(e,t,r,n)}finally{dr=o,Ir.transition=a}}function Dr(e,t,r,n){if(Mr){var o=Br(e,t,r,n);if(null===o)Fo(e,t,n,Lr,r),jr(e,n);else if(function(e,t,r,n,o){switch(t){case"focusin":return wr=Cr(wr,e,t,r,n,o),!0;case"dragenter":return Sr=Cr(Sr,e,t,r,n,o),!0;case"mouseover":return xr=Cr(xr,e,t,r,n,o),!0;case"pointerover":var a=o.pointerId;return _r.set(a,Cr(_r.get(a)||null,e,t,r,n,o)),!0;case"gotpointercapture":return a=o.pointerId,$r.set(a,Cr($r.get(a)||null,e,t,r,n,o)),!0}return!1}(o,e,t,r,n))n.stopPropagation();else if(jr(e,n),4&t&&-1<Er.indexOf(e)){for(;null!==o;){var a=fa(o);if(null!==a&&pr(a),null===(a=Br(e,t,r,n))&&Fo(e,t,n,Lr,r),a===o)break;o=a}null!==o&&n.stopPropagation()}else Fo(e,t,n,null,r)}}var Lr=null;function Br(e,t,r,n){if(Lr=null,null!==(e=da(e=pt(n))))if(null===(t=At(e)))e=null;else if(13===(r=t.tag)){if(null!==(e=It(t)))return e;e=null}else if(3===r){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Lr=e,null}function Vr(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Wt()){case qt:return 1;case Kt:return 4;case Ht:case Gt:return 16;case Qt:return 536870912;default:return 16}default:return 16}}var Ur=null,Wr=null,qr=null;function Kr(){if(qr)return qr;var e,t,r=Wr,n=r.length,o="value"in Ur?Ur.value:Ur.textContent,a=o.length;for(e=0;e<n&&r[e]===o[e];e++);var i=n-e;for(t=1;t<=i&&r[n-t]===o[a-t];t++);return qr=o.slice(e,1<t?1-t:void 0)}function Hr(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function Gr(){return!0}function Qr(){return!1}function Jr(e){function t(t,r,n,o,a){for(var i in this._reactName=t,this._targetInst=n,this.type=r,this.nativeEvent=o,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(i)&&(t=e[i],this[i]=t?t(o):o[i]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?Gr:Qr,this.isPropagationStopped=Qr,this}return Pe(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=Gr)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=Gr)},persist:function(){},isPersistent:Gr}),t}var Yr,Xr,Zr,en={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},tn=Jr(en),rn=Pe({},en,{view:0,detail:0}),nn=Jr(rn),on=Pe({},rn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:gn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Zr&&(Zr&&"mousemove"===e.type?(Yr=e.screenX-Zr.screenX,Xr=e.screenY-Zr.screenY):Xr=Yr=0,Zr=e),Yr)},movementY:function(e){return"movementY"in e?e.movementY:Xr}}),an=Jr(on),sn=Jr(Pe({},on,{dataTransfer:0})),ln=Jr(Pe({},rn,{relatedTarget:0})),un=Jr(Pe({},en,{animationName:0,elapsedTime:0,pseudoElement:0})),cn=Pe({},en,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),dn=Jr(cn),fn=Jr(Pe({},en,{data:0})),pn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},hn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},mn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function vn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=mn[e])&&!!t[e]}function gn(){return vn}var yn=Pe({},rn,{key:function(e){if(e.key){var t=pn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=Hr(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?hn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:gn,charCode:function(e){return"keypress"===e.type?Hr(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?Hr(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),bn=Jr(yn),wn=Jr(Pe({},on,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Sn=Jr(Pe({},rn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:gn})),xn=Jr(Pe({},en,{propertyName:0,elapsedTime:0,pseudoElement:0})),_n=Pe({},on,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),$n=Jr(_n),kn=[9,13,27,32],En=ne&&"CompositionEvent"in window,jn=null;ne&&"documentMode"in document&&(jn=document.documentMode);var Cn=ne&&"TextEvent"in window&&!jn,On=ne&&(!En||jn&&8<jn&&11>=jn),Pn=String.fromCharCode(32),Nn=!1;function Rn(e,t){switch(e){case"keyup":return-1!==kn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Tn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var An=!1;var In={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Mn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!In[e.type]:"textarea"===t}function Fn(e,t,r,n){yt(n),0<(t=Do(t,"onChange")).length&&(r=new tn("onChange","change",null,r,n),e.push({event:r,listeners:t}))}var zn=null,Dn=null;function Ln(e){No(e,0)}function Bn(e){if(Le(pa(e)))return e}function Vn(e,t){if("change"===e)return t}var Un=!1;if(ne){var Wn;if(ne){var qn="oninput"in document;if(!qn){var Kn=document.createElement("div");Kn.setAttribute("oninput","return;"),qn="function"==typeof Kn.oninput}Wn=qn}else Wn=!1;Un=Wn&&(!document.documentMode||9<document.documentMode)}function Hn(){zn&&(zn.detachEvent("onpropertychange",Gn),Dn=zn=null)}function Gn(e){if("value"===e.propertyName&&Bn(Dn)){var t=[];Fn(t,Dn,e,pt(e)),_t(Ln,t)}}function Qn(e,t,r){"focusin"===e?(Hn(),Dn=r,(zn=t).attachEvent("onpropertychange",Gn)):"focusout"===e&&Hn()}function Jn(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Bn(Dn)}function Yn(e,t){if("click"===e)return Bn(t)}function Xn(e,t){if("input"===e||"change"===e)return Bn(t)}var Zn="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function eo(e,t){if(Zn(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(n=0;n<r.length;n++){var o=r[n];if(!oe.call(t,o)||!Zn(e[o],t[o]))return!1}return!0}function to(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ro(e,t){var r,n=to(e);for(e=0;n;){if(3===n.nodeType){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=to(n)}}function no(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?no(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function oo(){for(var e=window,t=Be();t instanceof e.HTMLIFrameElement;){try{var r="string"==typeof t.contentWindow.location.href}catch(e){r=!1}if(!r)break;t=Be((e=t.contentWindow).document)}return t}function ao(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function io(e){var t=oo(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&no(r.ownerDocument.documentElement,r)){if(null!==n&&ao(r))if(t=n.start,void 0===(e=n.end)&&(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).getSelection){e=e.getSelection();var o=r.textContent.length,a=Math.min(n.start,o);n=void 0===n.end?a:Math.min(n.end,o),!e.extend&&a>n&&(o=n,n=a,a=o),o=ro(r,a);var i=ro(r,n);o&&i&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&((t=t.createRange()).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;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof r.focus&&r.focus(),r=0;r<t.length;r++)(e=t[r]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var so=ne&&"documentMode"in document&&11>=document.documentMode,lo=null,uo=null,co=null,fo=!1;function po(e,t,r){var n=r.window===r?r.document:9===r.nodeType?r:r.ownerDocument;fo||null==lo||lo!==Be(n)||("selectionStart"in(n=lo)&&ao(n)?n={start:n.selectionStart,end:n.selectionEnd}:n={anchorNode:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset},co&&eo(co,n)||(co=n,0<(n=Do(uo,"onSelect")).length&&(t=new tn("onSelect","select",null,t,r),e.push({event:t,listeners:n}),t.target=lo)))}function ho(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var mo={animationend:ho("Animation","AnimationEnd"),animationiteration:ho("Animation","AnimationIteration"),animationstart:ho("Animation","AnimationStart"),transitionend:ho("Transition","TransitionEnd")},vo={},go={};function yo(e){if(vo[e])return vo[e];if(!mo[e])return e;var t,r=mo[e];for(t in r)if(r.hasOwnProperty(t)&&t in go)return vo[e]=r[t];return e}ne&&(go=document.createElement("div").style,"AnimationEvent"in window||(delete mo.animationend.animation,delete mo.animationiteration.animation,delete mo.animationstart.animation),"TransitionEvent"in window||delete mo.transitionend.transition);var bo=yo("animationend"),wo=yo("animationiteration"),So=yo("animationstart"),xo=yo("transitionend"),_o=new Map,$o="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function ko(e,t){_o.set(e,t),te(t,[e])}for(var Eo=0;Eo<$o.length;Eo++){var jo=$o[Eo];ko(jo.toLowerCase(),"on"+(jo[0].toUpperCase()+jo.slice(1)))}ko(bo,"onAnimationEnd"),ko(wo,"onAnimationIteration"),ko(So,"onAnimationStart"),ko("dblclick","onDoubleClick"),ko("focusin","onFocus"),ko("focusout","onBlur"),ko(xo,"onTransitionEnd"),re("onMouseEnter",["mouseout","mouseover"]),re("onMouseLeave",["mouseout","mouseover"]),re("onPointerEnter",["pointerout","pointerover"]),re("onPointerLeave",["pointerout","pointerover"]),te("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),te("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),te("onBeforeInput",["compositionend","keypress","textInput","paste"]),te("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),te("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),te("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Co="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Oo=new Set("cancel close invalid load scroll toggle".split(" ").concat(Co));function Po(e,t,r){var n=e.type||"unknown-event";e.currentTarget=r,function(e,t,r,n,o,a,i,s,l){if(Tt.apply(this,arguments),Ct){if(!Ct)throw Error(X(198));var u=Ot;Ct=!1,Ot=null,Pt||(Pt=!0,Nt=u)}}(n,t,void 0,e),e.currentTarget=null}function No(e,t){t=0!=(4&t);for(var r=0;r<e.length;r++){var n=e[r],o=n.event;n=n.listeners;e:{var a=void 0;if(t)for(var i=n.length-1;0<=i;i--){var s=n[i],l=s.instance,u=s.currentTarget;if(s=s.listener,l!==a&&o.isPropagationStopped())break e;Po(o,s,u),a=l}else for(i=0;i<n.length;i++){if(l=(s=n[i]).instance,u=s.currentTarget,s=s.listener,l!==a&&o.isPropagationStopped())break e;Po(o,s,u),a=l}}}if(Pt)throw e=Nt,Pt=!1,Nt=null,e}function Ro(e,t){var r=t[la];void 0===r&&(r=t[la]=new Set);var n=e+"__bubble";r.has(n)||(Mo(t,e,2,!1),r.add(n))}function To(e,t,r){var n=0;t&&(n|=4),Mo(r,e,n,t)}var Ao="_reactListening"+Math.random().toString(36).slice(2);function Io(e){if(!e[Ao]){e[Ao]=!0,Z.forEach((function(t){"selectionchange"!==t&&(Oo.has(t)||To(t,!1,e),To(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Ao]||(t[Ao]=!0,To("selectionchange",!1,t))}}function Mo(e,t,r,n){switch(Vr(t)){case 1:var o=Fr;break;case 4:o=zr;break;default:o=Dr}r=o.bind(null,t,r,e),o=void 0,!kt||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),n?void 0!==o?e.addEventListener(t,r,{capture:!0,passive:o}):e.addEventListener(t,r,!0):void 0!==o?e.addEventListener(t,r,{passive:o}):e.addEventListener(t,r,!1)}function Fo(e,t,r,n,o){var a=n;if(0==(1&t)&&0==(2&t)&&null!==n)e:for(;;){if(null===n)return;var i=n.tag;if(3===i||4===i){var s=n.stateNode.containerInfo;if(s===o||8===s.nodeType&&s.parentNode===o)break;if(4===i)for(i=n.return;null!==i;){var l=i.tag;if((3===l||4===l)&&((l=i.stateNode.containerInfo)===o||8===l.nodeType&&l.parentNode===o))return;i=i.return}for(;null!==s;){if(null===(i=da(s)))return;if(5===(l=i.tag)||6===l){n=a=i;continue e}s=s.parentNode}}n=n.return}_t((function(){var n=a,o=pt(r),i=[];e:{var s=_o.get(e);if(void 0!==s){var l=tn,u=e;switch(e){case"keypress":if(0===Hr(r))break e;case"keydown":case"keyup":l=bn;break;case"focusin":u="focus",l=ln;break;case"focusout":u="blur",l=ln;break;case"beforeblur":case"afterblur":l=ln;break;case"click":if(2===r.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=an;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=sn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=Sn;break;case bo:case wo:case So:l=un;break;case xo:l=xn;break;case"scroll":l=nn;break;case"wheel":l=$n;break;case"copy":case"cut":case"paste":l=dn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=wn}var c=0!=(4&t),d=!c&&"scroll"===e,f=c?null!==s?s+"Capture":null:s;c=[];for(var p,h=n;null!==h;){var m=(p=h).stateNode;if(5===p.tag&&null!==m&&(p=m,null!==f&&(null!=(m=$t(h,f))&&c.push(zo(h,m,p)))),d)break;h=h.return}0<c.length&&(s=new l(s,u,null,r,o),i.push({event:s,listeners:c}))}}if(0==(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||r===ft||!(u=r.relatedTarget||r.fromElement)||!da(u)&&!u[sa])&&(l||s)&&(s=o.window===o?o:(s=o.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=n,null!==(u=(u=r.relatedTarget||r.toElement)?da(u):null)&&(u!==(d=At(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(l=null,u=n),l!==u)){if(c=an,m="onMouseLeave",f="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(c=wn,m="onPointerLeave",f="onPointerEnter",h="pointer"),d=null==l?s:pa(l),p=null==u?s:pa(u),(s=new c(m,h+"leave",l,r,o)).target=d,s.relatedTarget=p,m=null,da(o)===n&&((c=new c(f,h+"enter",u,r,o)).target=p,c.relatedTarget=d,m=c),d=m,l&&u)e:{for(f=u,h=0,p=c=l;p;p=Lo(p))h++;for(p=0,m=f;m;m=Lo(m))p++;for(;0<h-p;)c=Lo(c),h--;for(;0<p-h;)f=Lo(f),p--;for(;h--;){if(c===f||null!==f&&c===f.alternate)break e;c=Lo(c),f=Lo(f)}c=null}else c=null;null!==l&&Bo(i,s,l,c,!1),null!==u&&null!==d&&Bo(i,d,u,c,!0)}if("select"===(l=(s=n?pa(n):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var v=Vn;else if(Mn(s))if(Un)v=Xn;else{v=Jn;var g=Qn}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(v=Yn);switch(v&&(v=v(e,n))?Fn(i,v,r,o):(g&&g(e,s,n),"focusout"===e&&(g=s._wrapperState)&&g.controlled&&"number"===s.type&&He(s,"number",s.value)),g=n?pa(n):window,e){case"focusin":(Mn(g)||"true"===g.contentEditable)&&(lo=g,uo=n,co=null);break;case"focusout":co=uo=lo=null;break;case"mousedown":fo=!0;break;case"contextmenu":case"mouseup":case"dragend":fo=!1,po(i,r,o);break;case"selectionchange":if(so)break;case"keydown":case"keyup":po(i,r,o)}var y;if(En)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else An?Rn(e,r)&&(b="onCompositionEnd"):"keydown"===e&&229===r.keyCode&&(b="onCompositionStart");b&&(On&&"ko"!==r.locale&&(An||"onCompositionStart"!==b?"onCompositionEnd"===b&&An&&(y=Kr()):(Wr="value"in(Ur=o)?Ur.value:Ur.textContent,An=!0)),0<(g=Do(n,b)).length&&(b=new fn(b,e,null,r,o),i.push({event:b,listeners:g}),y?b.data=y:null!==(y=Tn(r))&&(b.data=y))),(y=Cn?function(e,t){switch(e){case"compositionend":return Tn(t);case"keypress":return 32!==t.which?null:(Nn=!0,Pn);case"textInput":return(e=t.data)===Pn&&Nn?null:e;default:return null}}(e,r):function(e,t){if(An)return"compositionend"===e||!En&&Rn(e,t)?(e=Kr(),qr=Wr=Ur=null,An=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return On&&"ko"!==t.locale?null:t.data}}(e,r))&&(0<(n=Do(n,"onBeforeInput")).length&&(o=new fn("onBeforeInput","beforeinput",null,r,o),i.push({event:o,listeners:n}),o.data=y))}No(i,t)}))}function zo(e,t,r){return{instance:e,listener:t,currentTarget:r}}function Do(e,t){for(var r=t+"Capture",n=[];null!==e;){var o=e,a=o.stateNode;5===o.tag&&null!==a&&(o=a,null!=(a=$t(e,r))&&n.unshift(zo(e,a,o)),null!=(a=$t(e,t))&&n.push(zo(e,a,o))),e=e.return}return n}function Lo(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Bo(e,t,r,n,o){for(var a=t._reactName,i=[];null!==r&&r!==n;){var s=r,l=s.alternate,u=s.stateNode;if(null!==l&&l===n)break;5===s.tag&&null!==u&&(s=u,o?null!=(l=$t(r,a))&&i.unshift(zo(r,l,s)):o||null!=(l=$t(r,a))&&i.push(zo(r,l,s))),r=r.return}0!==i.length&&e.push({event:t,listeners:i})}var Vo=/\r\n?/g,Uo=/\u0000|\uFFFD/g;function Wo(e){return("string"==typeof e?e:""+e).replace(Vo,"\n").replace(Uo,"")}function qo(e,t,r){if(t=Wo(t),Wo(e)!==t&&r)throw Error(X(425))}function Ko(){}var Ho=null,Go=null;function Qo(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var Jo="function"==typeof setTimeout?setTimeout:void 0,Yo="function"==typeof clearTimeout?clearTimeout:void 0,Xo="function"==typeof Promise?Promise:void 0,Zo="function"==typeof queueMicrotask?queueMicrotask:void 0!==Xo?function(e){return Xo.resolve(null).then(e).catch(ea)}:Jo;function ea(e){setTimeout((function(){throw e}))}function ta(e,t){var r=t,n=0;do{var o=r.nextSibling;if(e.removeChild(r),o&&8===o.nodeType)if("/$"===(r=o.data)){if(0===n)return e.removeChild(o),void Ar(t);n--}else"$"!==r&&"$?"!==r&&"$!"!==r||n++;r=o}while(r);Ar(t)}function ra(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function na(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var r=e.data;if("$"===r||"$!"===r||"$?"===r){if(0===t)return e;t--}else"/$"===r&&t++}e=e.previousSibling}return null}var oa=Math.random().toString(36).slice(2),aa="__reactFiber$"+oa,ia="__reactProps$"+oa,sa="__reactContainer$"+oa,la="__reactEvents$"+oa,ua="__reactListeners$"+oa,ca="__reactHandles$"+oa;function da(e){var t=e[aa];if(t)return t;for(var r=e.parentNode;r;){if(t=r[sa]||r[aa]){if(r=t.alternate,null!==t.child||null!==r&&null!==r.child)for(e=na(e);null!==e;){if(r=e[aa])return r;e=na(e)}return t}r=(e=r).parentNode}return null}function fa(e){return!(e=e[aa]||e[sa])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function pa(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(X(33))}function ha(e){return e[ia]||null}var ma=[],va=-1;function ga(e){return{current:e}}function ya(e){0>va||(e.current=ma[va],ma[va]=null,va--)}function ba(e,t){va++,ma[va]=e.current,e.current=t}var wa={},Sa=ga(wa),xa=ga(!1),_a=wa;function $a(e,t){var r=e.type.contextTypes;if(!r)return wa;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var o,a={};for(o in r)a[o]=t[o];return n&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function ka(e){return null!=(e=e.childContextTypes)}function Ea(){ya(xa),ya(Sa)}function ja(e,t,r){if(Sa.current!==wa)throw Error(X(168));ba(Sa,t),ba(xa,r)}function Ca(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,"function"!=typeof n.getChildContext)return r;for(var o in n=n.getChildContext())if(!(o in t))throw Error(X(108,Me(e)||"Unknown",o));return Pe({},r,n)}function Oa(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||wa,_a=Sa.current,ba(Sa,e),ba(xa,xa.current),!0}function Pa(e,t,r){var n=e.stateNode;if(!n)throw Error(X(169));r?(e=Ca(e,t,_a),n.__reactInternalMemoizedMergedChildContext=e,ya(xa),ya(Sa),ba(Sa,e)):ya(xa),ba(xa,r)}var Na=null,Ra=!1,Ta=!1;function Aa(e){null===Na?Na=[e]:Na.push(e)}function Ia(){if(!Ta&&null!==Na){Ta=!0;var e=0,t=dr;try{var r=Na;for(dr=1;e<r.length;e++){var n=r[e];do{n=n(!0)}while(null!==n)}Na=null,Ra=!1}catch(t){throw null!==Na&&(Na=Na.slice(e+1)),Dt(qt,Ia),t}finally{dr=t,Ta=!1}}return null}var Ma=[],Fa=0,za=null,Da=0,La=[],Ba=0,Va=null,Ua=1,Wa="";function qa(e,t){Ma[Fa++]=Da,Ma[Fa++]=za,za=e,Da=t}function Ka(e,t,r){La[Ba++]=Ua,La[Ba++]=Wa,La[Ba++]=Va,Va=e;var n=Ua;e=Wa;var o=32-Xt(n)-1;n&=~(1<<o),r+=1;var a=32-Xt(t)+o;if(30<a){var i=o-o%5;a=(n&(1<<i)-1).toString(32),n>>=i,o-=i,Ua=1<<32-Xt(t)+o|r<<o|n,Wa=a+e}else Ua=1<<a|r<<o|n,Wa=e}function Ha(e){null!==e.return&&(qa(e,1),Ka(e,1,0))}function Ga(e){for(;e===za;)za=Ma[--Fa],Ma[Fa]=null,Da=Ma[--Fa],Ma[Fa]=null;for(;e===Va;)Va=La[--Ba],La[Ba]=null,Wa=La[--Ba],La[Ba]=null,Ua=La[--Ba],La[Ba]=null}var Qa=null,Ja=null,Ya=!1,Xa=null;function Za(e,t){var r=$c(5,null,null,0);r.elementType="DELETED",r.stateNode=t,r.return=e,null===(t=e.deletions)?(e.deletions=[r],e.flags|=16):t.push(r)}function ei(e,t){switch(e.tag){case 5:var r=e.type;return null!==(t=1!==t.nodeType||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,Qa=e,Ja=ra(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,Qa=e,Ja=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(r=null!==Va?{id:Ua,overflow:Wa}:null,e.memoizedState={dehydrated:t,treeContext:r,retryLane:1073741824},(r=$c(18,null,null,0)).stateNode=t,r.return=e,e.child=r,Qa=e,Ja=null,!0);default:return!1}}function ti(e){return 0!=(1&e.mode)&&0==(128&e.flags)}function ri(e){if(Ya){var t=Ja;if(t){var r=t;if(!ei(e,t)){if(ti(e))throw Error(X(418));t=ra(r.nextSibling);var n=Qa;t&&ei(e,t)?Za(n,r):(e.flags=-4097&e.flags|2,Ya=!1,Qa=e)}}else{if(ti(e))throw Error(X(418));e.flags=-4097&e.flags|2,Ya=!1,Qa=e}}}function ni(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Qa=e}function oi(e){if(e!==Qa)return!1;if(!Ya)return ni(e),Ya=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!Qo(e.type,e.memoizedProps)),t&&(t=Ja)){if(ti(e))throw ai(),Error(X(418));for(;t;)Za(e,t),t=ra(t.nextSibling)}if(ni(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(X(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var r=e.data;if("/$"===r){if(0===t){Ja=ra(e.nextSibling);break e}t--}else"$"!==r&&"$!"!==r&&"$?"!==r||t++}e=e.nextSibling}Ja=null}}else Ja=Qa?ra(e.stateNode.nextSibling):null;return!0}function ai(){for(var e=Ja;e;)e=ra(e.nextSibling)}function ii(){Ja=Qa=null,Ya=!1}function si(e){null===Xa?Xa=[e]:Xa.push(e)}var li=pe.ReactCurrentBatchConfig;function ui(e,t){if(e&&e.defaultProps){for(var r in t=Pe({},t),e=e.defaultProps)void 0===t[r]&&(t[r]=e[r]);return t}return t}var ci=ga(null),di=null,fi=null,pi=null;function hi(){pi=fi=di=null}function mi(e){var t=ci.current;ya(ci),e._currentValue=t}function vi(e,t,r){for(;null!==e;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==n&&(n.childLanes|=t)):null!==n&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}function gi(e,t){di=e,pi=fi=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(fl=!0),e.firstContext=null)}function yi(e){var t=e._currentValue;if(pi!==e)if(e={context:e,memoizedValue:t,next:null},null===fi){if(null===di)throw Error(X(308));fi=e,di.dependencies={lanes:0,firstContext:e}}else fi=fi.next=e;return t}var bi=null;function wi(e){null===bi?bi=[e]:bi.push(e)}function Si(e,t,r,n){var o=t.interleaved;return null===o?(r.next=r,wi(t)):(r.next=o.next,o.next=r),t.interleaved=r,xi(e,n)}function xi(e,t){e.lanes|=t;var r=e.alternate;for(null!==r&&(r.lanes|=t),r=e,e=e.return;null!==e;)e.childLanes|=t,null!==(r=e.alternate)&&(r.childLanes|=t),r=e,e=e.return;return 3===r.tag?r.stateNode:null}var _i=!1;function $i(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function ki(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Ei(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function ji(e,t,r){var n=e.updateQueue;if(null===n)return null;if(n=n.shared,0!=(2&Su)){var o=n.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),n.pending=t,xi(e,r)}return null===(o=n.interleaved)?(t.next=t,wi(n)):(t.next=o.next,o.next=t),n.interleaved=t,xi(e,r)}function Ci(e,t,r){if(null!==(t=t.updateQueue)&&(t=t.shared,0!=(4194240&r))){var n=t.lanes;r|=n&=e.pendingLanes,t.lanes=r,cr(e,r)}}function Oi(e,t){var r=e.updateQueue,n=e.alternate;if(null!==n&&r===(n=n.updateQueue)){var o=null,a=null;if(null!==(r=r.firstBaseUpdate)){do{var i={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};null===a?o=a=i:a=a.next=i,r=r.next}while(null!==r);null===a?o=a=t:a=a.next=t}else o=a=t;return r={baseState:n.baseState,firstBaseUpdate:o,lastBaseUpdate:a,shared:n.shared,effects:n.effects},void(e.updateQueue=r)}null===(e=r.lastBaseUpdate)?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function Pi(e,t,r,n){var o=e.updateQueue;_i=!1;var a=o.firstBaseUpdate,i=o.lastBaseUpdate,s=o.shared.pending;if(null!==s){o.shared.pending=null;var l=s,u=l.next;l.next=null,null===i?a=u:i.next=u,i=l;var c=e.alternate;null!==c&&((s=(c=c.updateQueue).lastBaseUpdate)!==i&&(null===s?c.firstBaseUpdate=u:s.next=u,c.lastBaseUpdate=l))}if(null!==a){var d=o.baseState;for(i=0,c=u=l=null,s=a;;){var f=s.lane,p=s.eventTime;if((n&f)===f){null!==c&&(c=c.next={eventTime:p,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var h=e,m=s;switch(f=t,p=r,m.tag){case 1:if("function"==typeof(h=m.payload)){d=h.call(p,d,f);break e}d=h;break e;case 3:h.flags=-65537&h.flags|128;case 0:if(null==(f="function"==typeof(h=m.payload)?h.call(p,d,f):h))break e;d=Pe({},d,f);break e;case 2:_i=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(f=o.effects)?o.effects=[s]:f.push(s))}else p={eventTime:p,lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===c?(u=c=p,l=d):c=c.next=p,i|=f;if(null===(s=s.next)){if(null===(s=o.shared.pending))break;s=(f=s).next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}if(null===c&&(l=d),o.baseState=l,o.firstBaseUpdate=u,o.lastBaseUpdate=c,null!==(t=o.shared.interleaved)){o=t;do{i|=o.lane,o=o.next}while(o!==t)}else null===a&&(o.shared.lanes=0);Ou|=i,e.lanes=i,e.memoizedState=d}}function Ni(e,t,r){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var n=e[t],o=n.callback;if(null!==o){if(n.callback=null,n=r,"function"!=typeof o)throw Error(X(191,o));o.call(n)}}}var Ri=(new J.Component).refs;function Ti(e,t,r,n){r=null==(r=r(n,t=e.memoizedState))?t:Pe({},t,r),e.memoizedState=r,0===e.lanes&&(e.updateQueue.baseState=r)}var Ai={isMounted:function(e){return!!(e=e._reactInternals)&&At(e)===e},enqueueSetState:function(e,t,r){e=e._reactInternals;var n=Hu(),o=Gu(e),a=Ei(n,o);a.payload=t,null!=r&&(a.callback=r),null!==(t=ji(e,a,o))&&(Qu(t,e,o,n),Ci(t,e,o))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var n=Hu(),o=Gu(e),a=Ei(n,o);a.tag=1,a.payload=t,null!=r&&(a.callback=r),null!==(t=ji(e,a,o))&&(Qu(t,e,o,n),Ci(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=Hu(),n=Gu(e),o=Ei(r,n);o.tag=2,null!=t&&(o.callback=t),null!==(t=ji(e,o,n))&&(Qu(t,e,n,r),Ci(t,e,n))}};function Ii(e,t,r,n,o,a,i){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(n,a,i):!t.prototype||!t.prototype.isPureReactComponent||(!eo(r,n)||!eo(o,a))}function Mi(e,t,r){var n=!1,o=wa,a=t.contextType;return"object"==typeof a&&null!==a?a=yi(a):(o=ka(t)?_a:Sa.current,a=(n=null!=(n=t.contextTypes))?$a(e,o):wa),t=new t(r,a),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=Ai,e.stateNode=t,t._reactInternals=e,n&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=a),t}function Fi(e,t,r,n){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(r,n),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(r,n),t.state!==e&&Ai.enqueueReplaceState(t,t.state,null)}function zi(e,t,r,n){var o=e.stateNode;o.props=r,o.state=e.memoizedState,o.refs=Ri,$i(e);var a=t.contextType;"object"==typeof a&&null!==a?o.context=yi(a):(a=ka(t)?_a:Sa.current,o.context=$a(e,a)),o.state=e.memoizedState,"function"==typeof(a=t.getDerivedStateFromProps)&&(Ti(e,t,a,r),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&Ai.enqueueReplaceState(o,o.state,null),Pi(e,r,o,n),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4194308)}function Di(e,t,r){if(null!==(e=r.ref)&&"function"!=typeof e&&"object"!=typeof e){if(r._owner){if(r=r._owner){if(1!==r.tag)throw Error(X(309));var n=r.stateNode}if(!n)throw Error(X(147,e));var o=n,a=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===a?t.ref:(t=function(e){var t=o.refs;t===Ri&&(t=o.refs={}),null===e?delete t[a]:t[a]=e},t._stringRef=a,t)}if("string"!=typeof e)throw Error(X(284));if(!r._owner)throw Error(X(290,e))}return e}function Li(e,t){throw e=Object.prototype.toString.call(t),Error(X(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Bi(e){return(0,e._init)(e._payload)}function Vi(e){function t(t,r){if(e){var n=t.deletions;null===n?(t.deletions=[r],t.flags|=16):n.push(r)}}function r(r,n){if(!e)return null;for(;null!==n;)t(r,n),n=n.sibling;return null}function n(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=Ec(e,t)).index=0,e.sibling=null,e}function a(t,r,n){return t.index=n,e?null!==(n=t.alternate)?(n=n.index)<r?(t.flags|=2,r):n:(t.flags|=2,r):(t.flags|=1048576,r)}function i(t){return e&&null===t.alternate&&(t.flags|=2),t}function s(e,t,r,n){return null===t||6!==t.tag?((t=Pc(r,e.mode,n)).return=e,t):((t=o(t,r)).return=e,t)}function l(e,t,r,n){var a=r.type;return a===ve?c(e,t,r.props.children,n,r.key):null!==t&&(t.elementType===a||"object"==typeof a&&null!==a&&a.$$typeof===ke&&Bi(a)===t.type)?((n=o(t,r.props)).ref=Di(e,t,r),n.return=e,n):((n=jc(r.type,r.key,r.props,null,e.mode,n)).ref=Di(e,t,r),n.return=e,n)}function u(e,t,r,n){return null===t||4!==t.tag||t.stateNode.containerInfo!==r.containerInfo||t.stateNode.implementation!==r.implementation?((t=Nc(r,e.mode,n)).return=e,t):((t=o(t,r.children||[])).return=e,t)}function c(e,t,r,n,a){return null===t||7!==t.tag?((t=Cc(r,e.mode,n,a)).return=e,t):((t=o(t,r)).return=e,t)}function d(e,t,r){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=Pc(""+t,e.mode,r)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case he:return(r=jc(t.type,t.key,t.props,null,e.mode,r)).ref=Di(e,null,t),r.return=e,r;case me:return(t=Nc(t,e.mode,r)).return=e,t;case ke:return d(e,(0,t._init)(t._payload),r)}if(Ge(t)||Ce(t))return(t=Cc(t,e.mode,r,null)).return=e,t;Li(e,t)}return null}function f(e,t,r,n){var o=null!==t?t.key:null;if("string"==typeof r&&""!==r||"number"==typeof r)return null!==o?null:s(e,t,""+r,n);if("object"==typeof r&&null!==r){switch(r.$$typeof){case he:return r.key===o?l(e,t,r,n):null;case me:return r.key===o?u(e,t,r,n):null;case ke:return f(e,t,(o=r._init)(r._payload),n)}if(Ge(r)||Ce(r))return null!==o?null:c(e,t,r,n,null);Li(e,r)}return null}function p(e,t,r,n,o){if("string"==typeof n&&""!==n||"number"==typeof n)return s(t,e=e.get(r)||null,""+n,o);if("object"==typeof n&&null!==n){switch(n.$$typeof){case he:return l(t,e=e.get(null===n.key?r:n.key)||null,n,o);case me:return u(t,e=e.get(null===n.key?r:n.key)||null,n,o);case ke:return p(e,t,r,(0,n._init)(n._payload),o)}if(Ge(n)||Ce(n))return c(t,e=e.get(r)||null,n,o,null);Li(t,n)}return null}function h(o,i,s,l){for(var u=null,c=null,h=i,m=i=0,v=null;null!==h&&m<s.length;m++){h.index>m?(v=h,h=null):v=h.sibling;var g=f(o,h,s[m],l);if(null===g){null===h&&(h=v);break}e&&h&&null===g.alternate&&t(o,h),i=a(g,i,m),null===c?u=g:c.sibling=g,c=g,h=v}if(m===s.length)return r(o,h),Ya&&qa(o,m),u;if(null===h){for(;m<s.length;m++)null!==(h=d(o,s[m],l))&&(i=a(h,i,m),null===c?u=h:c.sibling=h,c=h);return Ya&&qa(o,m),u}for(h=n(o,h);m<s.length;m++)null!==(v=p(h,o,m,s[m],l))&&(e&&null!==v.alternate&&h.delete(null===v.key?m:v.key),i=a(v,i,m),null===c?u=v:c.sibling=v,c=v);return e&&h.forEach((function(e){return t(o,e)})),Ya&&qa(o,m),u}function m(o,i,s,l){var u=Ce(s);if("function"!=typeof u)throw Error(X(150));if(null==(s=u.call(s)))throw Error(X(151));for(var c=u=null,h=i,m=i=0,v=null,g=s.next();null!==h&&!g.done;m++,g=s.next()){h.index>m?(v=h,h=null):v=h.sibling;var y=f(o,h,g.value,l);if(null===y){null===h&&(h=v);break}e&&h&&null===y.alternate&&t(o,h),i=a(y,i,m),null===c?u=y:c.sibling=y,c=y,h=v}if(g.done)return r(o,h),Ya&&qa(o,m),u;if(null===h){for(;!g.done;m++,g=s.next())null!==(g=d(o,g.value,l))&&(i=a(g,i,m),null===c?u=g:c.sibling=g,c=g);return Ya&&qa(o,m),u}for(h=n(o,h);!g.done;m++,g=s.next())null!==(g=p(h,o,m,g.value,l))&&(e&&null!==g.alternate&&h.delete(null===g.key?m:g.key),i=a(g,i,m),null===c?u=g:c.sibling=g,c=g);return e&&h.forEach((function(e){return t(o,e)})),Ya&&qa(o,m),u}return function e(n,a,s,l){if("object"==typeof s&&null!==s&&s.type===ve&&null===s.key&&(s=s.props.children),"object"==typeof s&&null!==s){switch(s.$$typeof){case he:e:{for(var u=s.key,c=a;null!==c;){if(c.key===u){if((u=s.type)===ve){if(7===c.tag){r(n,c.sibling),(a=o(c,s.props.children)).return=n,n=a;break e}}else if(c.elementType===u||"object"==typeof u&&null!==u&&u.$$typeof===ke&&Bi(u)===c.type){r(n,c.sibling),(a=o(c,s.props)).ref=Di(n,c,s),a.return=n,n=a;break e}r(n,c);break}t(n,c),c=c.sibling}s.type===ve?((a=Cc(s.props.children,n.mode,l,s.key)).return=n,n=a):((l=jc(s.type,s.key,s.props,null,n.mode,l)).ref=Di(n,a,s),l.return=n,n=l)}return i(n);case me:e:{for(c=s.key;null!==a;){if(a.key===c){if(4===a.tag&&a.stateNode.containerInfo===s.containerInfo&&a.stateNode.implementation===s.implementation){r(n,a.sibling),(a=o(a,s.children||[])).return=n,n=a;break e}r(n,a);break}t(n,a),a=a.sibling}(a=Nc(s,n.mode,l)).return=n,n=a}return i(n);case ke:return e(n,a,(c=s._init)(s._payload),l)}if(Ge(s))return h(n,a,s,l);if(Ce(s))return m(n,a,s,l);Li(n,s)}return"string"==typeof s&&""!==s||"number"==typeof s?(s=""+s,null!==a&&6===a.tag?(r(n,a.sibling),(a=o(a,s)).return=n,n=a):(r(n,a),(a=Pc(s,n.mode,l)).return=n,n=a),i(n)):r(n,a)}}var Ui=Vi(!0),Wi=Vi(!1),qi={},Ki=ga(qi),Hi=ga(qi),Gi=ga(qi);function Qi(e){if(e===qi)throw Error(X(174));return e}function Ji(e,t){switch(ba(Gi,t),ba(Hi,e),ba(Ki,qi),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:tt(null,"");break;default:t=tt(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}ya(Ki),ba(Ki,t)}function Yi(){ya(Ki),ya(Hi),ya(Gi)}function Xi(e){Qi(Gi.current);var t=Qi(Ki.current),r=tt(t,e.type);t!==r&&(ba(Hi,e),ba(Ki,r))}function Zi(e){Hi.current===e&&(ya(Ki),ya(Hi))}var es=ga(0);function ts(e){for(var t=e;null!==t;){if(13===t.tag){var r=t.memoizedState;if(null!==r&&(null===(r=r.dehydrated)||"$?"===r.data||"$!"===r.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var rs=[];function ns(){for(var e=0;e<rs.length;e++)rs[e]._workInProgressVersionPrimary=null;rs.length=0}var os=pe.ReactCurrentDispatcher,as=pe.ReactCurrentBatchConfig,is=0,ss=null,ls=null,us=null,cs=!1,ds=!1,fs=0,ps=0;function hs(){throw Error(X(321))}function ms(e,t){if(null===t)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!Zn(e[r],t[r]))return!1;return!0}function vs(e,t,r,n,o,a){if(is=a,ss=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,os.current=null===e||null===e.memoizedState?Zs:el,e=r(n,o),ds){a=0;do{if(ds=!1,fs=0,25<=a)throw Error(X(301));a+=1,us=ls=null,t.updateQueue=null,os.current=tl,e=r(n,o)}while(ds)}if(os.current=Xs,t=null!==ls&&null!==ls.next,is=0,us=ls=ss=null,cs=!1,t)throw Error(X(300));return e}function gs(){var e=0!==fs;return fs=0,e}function ys(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===us?ss.memoizedState=us=e:us=us.next=e,us}function bs(){if(null===ls){var e=ss.alternate;e=null!==e?e.memoizedState:null}else e=ls.next;var t=null===us?ss.memoizedState:us.next;if(null!==t)us=t,ls=e;else{if(null===e)throw Error(X(310));e={memoizedState:(ls=e).memoizedState,baseState:ls.baseState,baseQueue:ls.baseQueue,queue:ls.queue,next:null},null===us?ss.memoizedState=us=e:us=us.next=e}return us}function ws(e,t){return"function"==typeof t?t(e):t}function Ss(e){var t=bs(),r=t.queue;if(null===r)throw Error(X(311));r.lastRenderedReducer=e;var n=ls,o=n.baseQueue,a=r.pending;if(null!==a){if(null!==o){var i=o.next;o.next=a.next,a.next=i}n.baseQueue=o=a,r.pending=null}if(null!==o){a=o.next,n=n.baseState;var s=i=null,l=null,u=a;do{var c=u.lane;if((is&c)===c)null!==l&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),n=u.hasEagerState?u.eagerState:e(n,u.action);else{var d={lane:c,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};null===l?(s=l=d,i=n):l=l.next=d,ss.lanes|=c,Ou|=c}u=u.next}while(null!==u&&u!==a);null===l?i=n:l.next=s,Zn(n,t.memoizedState)||(fl=!0),t.memoizedState=n,t.baseState=i,t.baseQueue=l,r.lastRenderedState=n}if(null!==(e=r.interleaved)){o=e;do{a=o.lane,ss.lanes|=a,Ou|=a,o=o.next}while(o!==e)}else null===o&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function xs(e){var t=bs(),r=t.queue;if(null===r)throw Error(X(311));r.lastRenderedReducer=e;var n=r.dispatch,o=r.pending,a=t.memoizedState;if(null!==o){r.pending=null;var i=o=o.next;do{a=e(a,i.action),i=i.next}while(i!==o);Zn(a,t.memoizedState)||(fl=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),r.lastRenderedState=a}return[a,n]}function _s(){}function $s(e,t){var r=ss,n=bs(),o=t(),a=!Zn(n.memoizedState,o);if(a&&(n.memoizedState=o,fl=!0),n=n.queue,Ms(js.bind(null,r,n,e),[e]),n.getSnapshot!==t||a||null!==us&&1&us.memoizedState.tag){if(r.flags|=2048,Ns(9,Es.bind(null,r,n,o,t),void 0,null),null===xu)throw Error(X(349));0!=(30&is)||ks(r,t,o)}return o}function ks(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},null===(t=ss.updateQueue)?(t={lastEffect:null,stores:null},ss.updateQueue=t,t.stores=[e]):null===(r=t.stores)?t.stores=[e]:r.push(e)}function Es(e,t,r,n){t.value=r,t.getSnapshot=n,Cs(t)&&Os(e)}function js(e,t,r){return r((function(){Cs(t)&&Os(e)}))}function Cs(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!Zn(e,r)}catch(e){return!0}}function Os(e){var t=xi(e,1);null!==t&&Qu(t,e,1,-1)}function Ps(e){var t=ys();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ws,lastRenderedState:e},t.queue=e,e=e.dispatch=Gs.bind(null,ss,e),[t.memoizedState,e]}function Ns(e,t,r,n){return e={tag:e,create:t,destroy:r,deps:n,next:null},null===(t=ss.updateQueue)?(t={lastEffect:null,stores:null},ss.updateQueue=t,t.lastEffect=e.next=e):null===(r=t.lastEffect)?t.lastEffect=e.next=e:(n=r.next,r.next=e,e.next=n,t.lastEffect=e),e}function Rs(){return bs().memoizedState}function Ts(e,t,r,n){var o=ys();ss.flags|=e,o.memoizedState=Ns(1|t,r,void 0,void 0===n?null:n)}function As(e,t,r,n){var o=bs();n=void 0===n?null:n;var a=void 0;if(null!==ls){var i=ls.memoizedState;if(a=i.destroy,null!==n&&ms(n,i.deps))return void(o.memoizedState=Ns(t,r,a,n))}ss.flags|=e,o.memoizedState=Ns(1|t,r,a,n)}function Is(e,t){return Ts(8390656,8,e,t)}function Ms(e,t){return As(2048,8,e,t)}function Fs(e,t){return As(4,2,e,t)}function zs(e,t){return As(4,4,e,t)}function Ds(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Ls(e,t,r){return r=null!=r?r.concat([e]):null,As(4,4,Ds.bind(null,t,e),r)}function Bs(){}function Vs(e,t){var r=bs();t=void 0===t?null:t;var n=r.memoizedState;return null!==n&&null!==t&&ms(t,n[1])?n[0]:(r.memoizedState=[e,t],e)}function Us(e,t){var r=bs();t=void 0===t?null:t;var n=r.memoizedState;return null!==n&&null!==t&&ms(t,n[1])?n[0]:(e=e(),r.memoizedState=[e,t],e)}function Ws(e,t,r){return 0==(21&is)?(e.baseState&&(e.baseState=!1,fl=!0),e.memoizedState=r):(Zn(r,t)||(r=sr(),ss.lanes|=r,Ou|=r,e.baseState=!0),t)}function qs(e,t){var r=dr;dr=0!==r&&4>r?r:4,e(!0);var n=as.transition;as.transition={};try{e(!1),t()}finally{dr=r,as.transition=n}}function Ks(){return bs().memoizedState}function Hs(e,t,r){var n=Gu(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},Qs(e))Js(t,r);else if(null!==(r=Si(e,t,r,n))){Qu(r,e,n,Hu()),Ys(r,t,n)}}function Gs(e,t,r){var n=Gu(e),o={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(Qs(e))Js(t,o);else{var a=e.alternate;if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=t.lastRenderedReducer))try{var i=t.lastRenderedState,s=a(i,r);if(o.hasEagerState=!0,o.eagerState=s,Zn(s,i)){var l=t.interleaved;return null===l?(o.next=o,wi(t)):(o.next=l.next,l.next=o),void(t.interleaved=o)}}catch(e){}null!==(r=Si(e,t,o,n))&&(Qu(r,e,n,o=Hu()),Ys(r,t,n))}}function Qs(e){var t=e.alternate;return e===ss||null!==t&&t===ss}function Js(e,t){ds=cs=!0;var r=e.pending;null===r?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function Ys(e,t,r){if(0!=(4194240&r)){var n=t.lanes;r|=n&=e.pendingLanes,t.lanes=r,cr(e,r)}}var Xs={readContext:yi,useCallback:hs,useContext:hs,useEffect:hs,useImperativeHandle:hs,useInsertionEffect:hs,useLayoutEffect:hs,useMemo:hs,useReducer:hs,useRef:hs,useState:hs,useDebugValue:hs,useDeferredValue:hs,useTransition:hs,useMutableSource:hs,useSyncExternalStore:hs,useId:hs,unstable_isNewReconciler:!1},Zs={readContext:yi,useCallback:function(e,t){return ys().memoizedState=[e,void 0===t?null:t],e},useContext:yi,useEffect:Is,useImperativeHandle:function(e,t,r){return r=null!=r?r.concat([e]):null,Ts(4194308,4,Ds.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Ts(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ts(4,2,e,t)},useMemo:function(e,t){var r=ys();return t=void 0===t?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=ys();return t=void 0!==r?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=Hs.bind(null,ss,e),[n.memoizedState,e]},useRef:function(e){return e={current:e},ys().memoizedState=e},useState:Ps,useDebugValue:Bs,useDeferredValue:function(e){return ys().memoizedState=e},useTransition:function(){var e=Ps(!1),t=e[0];return e=qs.bind(null,e[1]),ys().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=ss,o=ys();if(Ya){if(void 0===r)throw Error(X(407));r=r()}else{if(r=t(),null===xu)throw Error(X(349));0!=(30&is)||ks(n,t,r)}o.memoizedState=r;var a={value:r,getSnapshot:t};return o.queue=a,Is(js.bind(null,n,a,e),[e]),n.flags|=2048,Ns(9,Es.bind(null,n,a,r,t),void 0,null),r},useId:function(){var e=ys(),t=xu.identifierPrefix;if(Ya){var r=Wa;t=":"+t+"R"+(r=(Ua&~(1<<32-Xt(Ua)-1)).toString(32)+r),0<(r=fs++)&&(t+="H"+r.toString(32)),t+=":"}else t=":"+t+"r"+(r=ps++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},el={readContext:yi,useCallback:Vs,useContext:yi,useEffect:Ms,useImperativeHandle:Ls,useInsertionEffect:Fs,useLayoutEffect:zs,useMemo:Us,useReducer:Ss,useRef:Rs,useState:function(){return Ss(ws)},useDebugValue:Bs,useDeferredValue:function(e){return Ws(bs(),ls.memoizedState,e)},useTransition:function(){return[Ss(ws)[0],bs().memoizedState]},useMutableSource:_s,useSyncExternalStore:$s,useId:Ks,unstable_isNewReconciler:!1},tl={readContext:yi,useCallback:Vs,useContext:yi,useEffect:Ms,useImperativeHandle:Ls,useInsertionEffect:Fs,useLayoutEffect:zs,useMemo:Us,useReducer:xs,useRef:Rs,useState:function(){return xs(ws)},useDebugValue:Bs,useDeferredValue:function(e){var t=bs();return null===ls?t.memoizedState=e:Ws(t,ls.memoizedState,e)},useTransition:function(){return[xs(ws)[0],bs().memoizedState]},useMutableSource:_s,useSyncExternalStore:$s,useId:Ks,unstable_isNewReconciler:!1};function rl(e,t){try{var r="",n=t;do{r+=Ae(n),n=n.return}while(n);var o=r}catch(e){o="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:o,digest:null}}function nl(e,t,r){return{value:e,source:null,stack:null!=r?r:null,digest:null!=t?t:null}}function ol(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var al="function"==typeof WeakMap?WeakMap:Map;function il(e,t,r){(r=Ei(-1,r)).tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){Fu||(Fu=!0,zu=n),ol(0,t)},r}function sl(e,t,r){(r=Ei(-1,r)).tag=3;var n=e.type.getDerivedStateFromError;if("function"==typeof n){var o=t.value;r.payload=function(){return n(o)},r.callback=function(){ol(0,t)}}var a=e.stateNode;return null!==a&&"function"==typeof a.componentDidCatch&&(r.callback=function(){ol(0,t),"function"!=typeof n&&(null===Du?Du=new Set([this]):Du.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),r}function ll(e,t,r){var n=e.pingCache;if(null===n){n=e.pingCache=new al;var o=new Set;n.set(t,o)}else void 0===(o=n.get(t))&&(o=new Set,n.set(t,o));o.has(r)||(o.add(r),e=yc.bind(null,e,t,r),t.then(e,e))}function ul(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function cl(e,t,r,n,o){return 0==(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,1===r.tag&&(null===r.alternate?r.tag=17:((t=Ei(-1,1)).tag=2,ji(r,t,1))),r.lanes|=1),e):(e.flags|=65536,e.lanes=o,e)}var dl=pe.ReactCurrentOwner,fl=!1;function pl(e,t,r,n){t.child=null===e?Wi(t,null,r,n):Ui(t,e.child,r,n)}function hl(e,t,r,n,o){r=r.render;var a=t.ref;return gi(t,o),n=vs(e,t,r,n,a,o),r=gs(),null===e||fl?(Ya&&r&&Ha(t),t.flags|=1,pl(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Fl(e,t,o))}function ml(e,t,r,n,o){if(null===e){var a=r.type;return"function"!=typeof a||kc(a)||void 0!==a.defaultProps||null!==r.compare||void 0!==r.defaultProps?((e=jc(r.type,null,n,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,vl(e,t,a,n,o))}if(a=e.child,0==(e.lanes&o)){var i=a.memoizedProps;if((r=null!==(r=r.compare)?r:eo)(i,n)&&e.ref===t.ref)return Fl(e,t,o)}return t.flags|=1,(e=Ec(a,n)).ref=t.ref,e.return=t,t.child=e}function vl(e,t,r,n,o){if(null!==e){var a=e.memoizedProps;if(eo(a,n)&&e.ref===t.ref){if(fl=!1,t.pendingProps=n=a,0==(e.lanes&o))return t.lanes=e.lanes,Fl(e,t,o);0!=(131072&e.flags)&&(fl=!0)}}return bl(e,t,r,n,o)}function gl(e,t,r){var n=t.pendingProps,o=n.children,a=null!==e?e.memoizedState:null;if("hidden"===n.mode)if(0==(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ba(Eu,ku),ku|=r;else{if(0==(1073741824&r))return e=null!==a?a.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ba(Eu,ku),ku|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=null!==a?a.baseLanes:r,ba(Eu,ku),ku|=n}else null!==a?(n=a.baseLanes|r,t.memoizedState=null):n=r,ba(Eu,ku),ku|=n;return pl(e,t,o,r),t.child}function yl(e,t){var r=t.ref;(null===e&&null!==r||null!==e&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function bl(e,t,r,n,o){var a=ka(r)?_a:Sa.current;return a=$a(t,a),gi(t,o),r=vs(e,t,r,n,a,o),n=gs(),null===e||fl?(Ya&&n&&Ha(t),t.flags|=1,pl(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Fl(e,t,o))}function wl(e,t,r,n,o){if(ka(r)){var a=!0;Oa(t)}else a=!1;if(gi(t,o),null===t.stateNode)Ml(e,t),Mi(t,r,n),zi(t,r,n,o),n=!0;else if(null===e){var i=t.stateNode,s=t.memoizedProps;i.props=s;var l=i.context,u=r.contextType;"object"==typeof u&&null!==u?u=yi(u):u=$a(t,u=ka(r)?_a:Sa.current);var c=r.getDerivedStateFromProps,d="function"==typeof c||"function"==typeof i.getSnapshotBeforeUpdate;d||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(s!==n||l!==u)&&Fi(t,i,n,u),_i=!1;var f=t.memoizedState;i.state=f,Pi(t,n,i,o),l=t.memoizedState,s!==n||f!==l||xa.current||_i?("function"==typeof c&&(Ti(t,r,c,n),l=t.memoizedState),(s=_i||Ii(t,r,s,n,f,l,u))?(d||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||("function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount()),"function"==typeof i.componentDidMount&&(t.flags|=4194308)):("function"==typeof i.componentDidMount&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=l),i.props=n,i.state=l,i.context=u,n=s):("function"==typeof i.componentDidMount&&(t.flags|=4194308),n=!1)}else{i=t.stateNode,ki(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:ui(t.type,s),i.props=u,d=t.pendingProps,f=i.context,"object"==typeof(l=r.contextType)&&null!==l?l=yi(l):l=$a(t,l=ka(r)?_a:Sa.current);var p=r.getDerivedStateFromProps;(c="function"==typeof p||"function"==typeof i.getSnapshotBeforeUpdate)||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(s!==d||f!==l)&&Fi(t,i,n,l),_i=!1,f=t.memoizedState,i.state=f,Pi(t,n,i,o);var h=t.memoizedState;s!==d||f!==h||xa.current||_i?("function"==typeof p&&(Ti(t,r,p,n),h=t.memoizedState),(u=_i||Ii(t,r,u,n,f,h,l)||!1)?(c||"function"!=typeof i.UNSAFE_componentWillUpdate&&"function"!=typeof i.componentWillUpdate||("function"==typeof i.componentWillUpdate&&i.componentWillUpdate(n,h,l),"function"==typeof i.UNSAFE_componentWillUpdate&&i.UNSAFE_componentWillUpdate(n,h,l)),"function"==typeof i.componentDidUpdate&&(t.flags|=4),"function"==typeof i.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof i.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=h),i.props=n,i.state=h,i.context=l,n=u):("function"!=typeof i.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),n=!1)}return Sl(e,t,r,n,a,o)}function Sl(e,t,r,n,o,a){yl(e,t);var i=0!=(128&t.flags);if(!n&&!i)return o&&Pa(t,r,!1),Fl(e,t,a);n=t.stateNode,dl.current=t;var s=i&&"function"!=typeof r.getDerivedStateFromError?null:n.render();return t.flags|=1,null!==e&&i?(t.child=Ui(t,e.child,null,a),t.child=Ui(t,null,s,a)):pl(e,t,s,a),t.memoizedState=n.state,o&&Pa(t,r,!0),t.child}function xl(e){var t=e.stateNode;t.pendingContext?ja(0,t.pendingContext,t.pendingContext!==t.context):t.context&&ja(0,t.context,!1),Ji(e,t.containerInfo)}function _l(e,t,r,n,o){return ii(),si(o),t.flags|=256,pl(e,t,r,n),t.child}var $l,kl,El,jl,Cl={dehydrated:null,treeContext:null,retryLane:0};function Ol(e){return{baseLanes:e,cachePool:null,transitions:null}}function Pl(e,t,r){var n,o=t.pendingProps,a=es.current,i=!1,s=0!=(128&t.flags);if((n=s)||(n=(null===e||null!==e.memoizedState)&&0!=(2&a)),n?(i=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),ba(es,1&a),null===e)return ri(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0==(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(s=o.children,e=o.fallback,i?(o=t.mode,i=t.child,s={mode:"hidden",children:s},0==(1&o)&&null!==i?(i.childLanes=0,i.pendingProps=s):i=Oc(s,o,0,null),e=Cc(e,o,r,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=Ol(r),t.memoizedState=Cl,e):Nl(t,s));if(null!==(a=e.memoizedState)&&null!==(n=a.dehydrated))return function(e,t,r,n,o,a,i){if(r)return 256&t.flags?(t.flags&=-257,Rl(e,t,i,n=nl(Error(X(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=n.fallback,o=t.mode,n=Oc({mode:"visible",children:n.children},o,0,null),(a=Cc(a,o,i,null)).flags|=2,n.return=t,a.return=t,n.sibling=a,t.child=n,0!=(1&t.mode)&&Ui(t,e.child,null,i),t.child.memoizedState=Ol(i),t.memoizedState=Cl,a);if(0==(1&t.mode))return Rl(e,t,i,null);if("$!"===o.data){if(n=o.nextSibling&&o.nextSibling.dataset)var s=n.dgst;return n=s,Rl(e,t,i,n=nl(a=Error(X(419)),n,void 0))}if(s=0!=(i&e.childLanes),fl||s){if(null!==(n=xu)){switch(i&-i){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}0!==(o=0!=(o&(n.suspendedLanes|i))?0:o)&&o!==a.retryLane&&(a.retryLane=o,xi(e,o),Qu(n,e,o,-1))}return lc(),Rl(e,t,i,n=nl(Error(X(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=wc.bind(null,e),o._reactRetry=t,null):(e=a.treeContext,Ja=ra(o.nextSibling),Qa=t,Ya=!0,Xa=null,null!==e&&(La[Ba++]=Ua,La[Ba++]=Wa,La[Ba++]=Va,Ua=e.id,Wa=e.overflow,Va=t),t=Nl(t,n.children),t.flags|=4096,t)}(e,t,s,o,n,a,r);if(i){i=o.fallback,s=t.mode,n=(a=e.child).sibling;var l={mode:"hidden",children:o.children};return 0==(1&s)&&t.child!==a?((o=t.child).childLanes=0,o.pendingProps=l,t.deletions=null):(o=Ec(a,l)).subtreeFlags=14680064&a.subtreeFlags,null!==n?i=Ec(n,i):(i=Cc(i,s,r,null)).flags|=2,i.return=t,o.return=t,o.sibling=i,t.child=o,o=i,i=t.child,s=null===(s=e.child.memoizedState)?Ol(r):{baseLanes:s.baseLanes|r,cachePool:null,transitions:s.transitions},i.memoizedState=s,i.childLanes=e.childLanes&~r,t.memoizedState=Cl,o}return e=(i=e.child).sibling,o=Ec(i,{mode:"visible",children:o.children}),0==(1&t.mode)&&(o.lanes=r),o.return=t,o.sibling=null,null!==e&&(null===(r=t.deletions)?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=o,t.memoizedState=null,o}function Nl(e,t){return(t=Oc({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Rl(e,t,r,n){return null!==n&&si(n),Ui(t,e.child,null,r),(e=Nl(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Tl(e,t,r){e.lanes|=t;var n=e.alternate;null!==n&&(n.lanes|=t),vi(e.return,t,r)}function Al(e,t,r,n,o){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:o}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=n,a.tail=r,a.tailMode=o)}function Il(e,t,r){var n=t.pendingProps,o=n.revealOrder,a=n.tail;if(pl(e,t,n.children,r),0!=(2&(n=es.current)))n=1&n|2,t.flags|=128;else{if(null!==e&&0!=(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Tl(e,r,t);else if(19===e.tag)Tl(e,r,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}n&=1}if(ba(es,n),0==(1&t.mode))t.memoizedState=null;else switch(o){case"forwards":for(r=t.child,o=null;null!==r;)null!==(e=r.alternate)&&null===ts(e)&&(o=r),r=r.sibling;null===(r=o)?(o=t.child,t.child=null):(o=r.sibling,r.sibling=null),Al(t,!1,o,r,a);break;case"backwards":for(r=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===ts(e)){t.child=o;break}e=o.sibling,o.sibling=r,r=o,o=e}Al(t,!0,r,null,a);break;case"together":Al(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Ml(e,t){0==(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Fl(e,t,r){if(null!==e&&(t.dependencies=e.dependencies),Ou|=t.lanes,0==(r&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(X(153));if(null!==t.child){for(r=Ec(e=t.child,e.pendingProps),t.child=r,r.return=t;null!==e.sibling;)e=e.sibling,(r=r.sibling=Ec(e,e.pendingProps)).return=t;r.sibling=null}return t.child}function zl(e,t){if(!Ya)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;null!==t;)null!==t.alternate&&(r=t),t=t.sibling;null===r?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var n=null;null!==r;)null!==r.alternate&&(n=r),r=r.sibling;null===n?t||null===e.tail?e.tail=null:e.tail.sibling=null:n.sibling=null}}function Dl(e){var t=null!==e.alternate&&e.alternate.child===e.child,r=0,n=0;if(t)for(var o=e.child;null!==o;)r|=o.lanes|o.childLanes,n|=14680064&o.subtreeFlags,n|=14680064&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)r|=o.lanes|o.childLanes,n|=o.subtreeFlags,n|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=n,e.childLanes=r,t}function Ll(e,t,r){var n=t.pendingProps;switch(Ga(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Dl(t),null;case 1:case 17:return ka(t.type)&&Ea(),Dl(t),null;case 3:return n=t.stateNode,Yi(),ya(xa),ya(Sa),ns(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==e&&null!==e.child||(oi(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0==(256&t.flags)||(t.flags|=1024,null!==Xa&&(Zu(Xa),Xa=null))),kl(e,t),Dl(t),null;case 5:Zi(t);var o=Qi(Gi.current);if(r=t.type,null!==e&&null!=t.stateNode)El(e,t,r,n,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!n){if(null===t.stateNode)throw Error(X(166));return Dl(t),null}if(e=Qi(Ki.current),oi(t)){n=t.stateNode,r=t.type;var a=t.memoizedProps;switch(n[aa]=t,n[ia]=a,e=0!=(1&t.mode),r){case"dialog":Ro("cancel",n),Ro("close",n);break;case"iframe":case"object":case"embed":Ro("load",n);break;case"video":case"audio":for(o=0;o<Co.length;o++)Ro(Co[o],n);break;case"source":Ro("error",n);break;case"img":case"image":case"link":Ro("error",n),Ro("load",n);break;case"details":Ro("toggle",n);break;case"input":Ue(n,a),Ro("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!a.multiple},Ro("invalid",n);break;case"textarea":Ye(n,a),Ro("invalid",n)}for(var i in ct(r,a),o=null,a)if(a.hasOwnProperty(i)){var s=a[i];"children"===i?"string"==typeof s?n.textContent!==s&&(!0!==a.suppressHydrationWarning&&qo(n.textContent,s,e),o=["children",s]):"number"==typeof s&&n.textContent!==""+s&&(!0!==a.suppressHydrationWarning&&qo(n.textContent,s,e),o=["children",""+s]):ee.hasOwnProperty(i)&&null!=s&&"onScroll"===i&&Ro("scroll",n)}switch(r){case"input":De(n),Ke(n,a,!0);break;case"textarea":De(n),Ze(n);break;case"select":case"option":break;default:"function"==typeof a.onClick&&(n.onclick=Ko)}n=o,t.updateQueue=n,null!==n&&(t.flags|=4)}else{i=9===o.nodeType?o:o.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=et(r)),"http://www.w3.org/1999/xhtml"===e?"script"===r?((e=i.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof n.is?e=i.createElement(r,{is:n.is}):(e=i.createElement(r),"select"===r&&(i=e,n.multiple?i.multiple=!0:n.size&&(i.size=n.size))):e=i.createElementNS(e,r),e[aa]=t,e[ia]=n,$l(e,t,!1,!1),t.stateNode=e;e:{switch(i=dt(r,n),r){case"dialog":Ro("cancel",e),Ro("close",e),o=n;break;case"iframe":case"object":case"embed":Ro("load",e),o=n;break;case"video":case"audio":for(o=0;o<Co.length;o++)Ro(Co[o],e);o=n;break;case"source":Ro("error",e),o=n;break;case"img":case"image":case"link":Ro("error",e),Ro("load",e),o=n;break;case"details":Ro("toggle",e),o=n;break;case"input":Ue(e,n),o=Ve(e,n),Ro("invalid",e);break;case"option":default:o=n;break;case"select":e._wrapperState={wasMultiple:!!n.multiple},o=Pe({},n,{value:void 0}),Ro("invalid",e);break;case"textarea":Ye(e,n),o=Je(e,n),Ro("invalid",e)}for(a in ct(r,o),s=o)if(s.hasOwnProperty(a)){var l=s[a];"style"===a?lt(e,l):"dangerouslySetInnerHTML"===a?null!=(l=l?l.__html:void 0)&&nt(e,l):"children"===a?"string"==typeof l?("textarea"!==r||""!==l)&&ot(e,l):"number"==typeof l&&ot(e,""+l):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(ee.hasOwnProperty(a)?null!=l&&"onScroll"===a&&Ro("scroll",e):null!=l&&fe(e,a,l,i))}switch(r){case"input":De(e),Ke(e,n,!1);break;case"textarea":De(e),Ze(e);break;case"option":null!=n.value&&e.setAttribute("value",""+Fe(n.value));break;case"select":e.multiple=!!n.multiple,null!=(a=n.value)?Qe(e,!!n.multiple,a,!1):null!=n.defaultValue&&Qe(e,!!n.multiple,n.defaultValue,!0);break;default:"function"==typeof o.onClick&&(e.onclick=Ko)}switch(r){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}}n&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Dl(t),null;case 6:if(e&&null!=t.stateNode)jl(e,t,e.memoizedProps,n);else{if("string"!=typeof n&&null===t.stateNode)throw Error(X(166));if(r=Qi(Gi.current),Qi(Ki.current),oi(t)){if(n=t.stateNode,r=t.memoizedProps,n[aa]=t,(a=n.nodeValue!==r)&&null!==(e=Qa))switch(e.tag){case 3:qo(n.nodeValue,r,0!=(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&qo(n.nodeValue,r,0!=(1&e.mode))}a&&(t.flags|=4)}else(n=(9===r.nodeType?r:r.ownerDocument).createTextNode(n))[aa]=t,t.stateNode=n}return Dl(t),null;case 13:if(ya(es),n=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(Ya&&null!==Ja&&0!=(1&t.mode)&&0==(128&t.flags))ai(),ii(),t.flags|=98560,a=!1;else if(a=oi(t),null!==n&&null!==n.dehydrated){if(null===e){if(!a)throw Error(X(318));if(!(a=null!==(a=t.memoizedState)?a.dehydrated:null))throw Error(X(317));a[aa]=t}else ii(),0==(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Dl(t),a=!1}else null!==Xa&&(Zu(Xa),Xa=null),a=!0;if(!a)return 65536&t.flags?t:null}return 0!=(128&t.flags)?(t.lanes=r,t):((n=null!==n)!==(null!==e&&null!==e.memoizedState)&&n&&(t.child.flags|=8192,0!=(1&t.mode)&&(null===e||0!=(1&es.current)?0===ju&&(ju=3):lc())),null!==t.updateQueue&&(t.flags|=4),Dl(t),null);case 4:return Yi(),kl(e,t),null===e&&Io(t.stateNode.containerInfo),Dl(t),null;case 10:return mi(t.type._context),Dl(t),null;case 19:if(ya(es),null===(a=t.memoizedState))return Dl(t),null;if(n=0!=(128&t.flags),null===(i=a.rendering))if(n)zl(a,!1);else{if(0!==ju||null!==e&&0!=(128&e.flags))for(e=t.child;null!==e;){if(null!==(i=ts(e))){for(t.flags|=128,zl(a,!1),null!==(n=i.updateQueue)&&(t.updateQueue=n,t.flags|=4),t.subtreeFlags=0,n=r,r=t.child;null!==r;)e=n,(a=r).flags&=14680066,null===(i=a.alternate)?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=i.childLanes,a.lanes=i.lanes,a.child=i.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=i.memoizedProps,a.memoizedState=i.memoizedState,a.updateQueue=i.updateQueue,a.type=i.type,e=i.dependencies,a.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return ba(es,1&es.current|2),t.child}e=e.sibling}null!==a.tail&&Ut()>Iu&&(t.flags|=128,n=!0,zl(a,!1),t.lanes=4194304)}else{if(!n)if(null!==(e=ts(i))){if(t.flags|=128,n=!0,null!==(r=e.updateQueue)&&(t.updateQueue=r,t.flags|=4),zl(a,!0),null===a.tail&&"hidden"===a.tailMode&&!i.alternate&&!Ya)return Dl(t),null}else 2*Ut()-a.renderingStartTime>Iu&&1073741824!==r&&(t.flags|=128,n=!0,zl(a,!1),t.lanes=4194304);a.isBackwards?(i.sibling=t.child,t.child=i):(null!==(r=a.last)?r.sibling=i:t.child=i,a.last=i)}return null!==a.tail?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Ut(),t.sibling=null,r=es.current,ba(es,n?1&r|2:1&r),t):(Dl(t),null);case 22:case 23:return oc(),n=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==n&&(t.flags|=8192),n&&0!=(1&t.mode)?0!=(1073741824&ku)&&(Dl(t),6&t.subtreeFlags&&(t.flags|=8192)):Dl(t),null;case 24:case 25:return null}throw Error(X(156,t.tag))}function Bl(e,t){switch(Ga(t),t.tag){case 1:return ka(t.type)&&Ea(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Yi(),ya(xa),ya(Sa),ns(),0!=(65536&(e=t.flags))&&0==(128&e)?(t.flags=-65537&e|128,t):null;case 5:return Zi(t),null;case 13:if(ya(es),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(X(340));ii()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return ya(es),null;case 4:return Yi(),null;case 10:return mi(t.type._context),null;case 22:case 23:return oc(),null;default:return null}}$l=function(e,t){for(var r=t.child;null!==r;){if(5===r.tag||6===r.tag)e.appendChild(r.stateNode);else if(4!==r.tag&&null!==r.child){r.child.return=r,r=r.child;continue}if(r===t)break;for(;null===r.sibling;){if(null===r.return||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}},kl=function(){},El=function(e,t,r,n){var o=e.memoizedProps;if(o!==n){e=t.stateNode,Qi(Ki.current);var a,i=null;switch(r){case"input":o=Ve(e,o),n=Ve(e,n),i=[];break;case"select":o=Pe({},o,{value:void 0}),n=Pe({},n,{value:void 0}),i=[];break;case"textarea":o=Je(e,o),n=Je(e,n),i=[];break;default:"function"!=typeof o.onClick&&"function"==typeof n.onClick&&(e.onclick=Ko)}for(u in ct(r,n),r=null,o)if(!n.hasOwnProperty(u)&&o.hasOwnProperty(u)&&null!=o[u])if("style"===u){var s=o[u];for(a in s)s.hasOwnProperty(a)&&(r||(r={}),r[a]="")}else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(ee.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in n){var l=n[u];if(s=null!=o?o[u]:void 0,n.hasOwnProperty(u)&&l!==s&&(null!=l||null!=s))if("style"===u)if(s){for(a in s)!s.hasOwnProperty(a)||l&&l.hasOwnProperty(a)||(r||(r={}),r[a]="");for(a in l)l.hasOwnProperty(a)&&s[a]!==l[a]&&(r||(r={}),r[a]=l[a])}else r||(i||(i=[]),i.push(u,r)),r=l;else"dangerouslySetInnerHTML"===u?(l=l?l.__html:void 0,s=s?s.__html:void 0,null!=l&&s!==l&&(i=i||[]).push(u,l)):"children"===u?"string"!=typeof l&&"number"!=typeof l||(i=i||[]).push(u,""+l):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(ee.hasOwnProperty(u)?(null!=l&&"onScroll"===u&&Ro("scroll",e),i||s===l||(i=[])):(i=i||[]).push(u,l))}r&&(i=i||[]).push("style",r);var u=i;(t.updateQueue=u)&&(t.flags|=4)}},jl=function(e,t,r,n){r!==n&&(t.flags|=4)};var Vl=!1,Ul=!1,Wl="function"==typeof WeakSet?WeakSet:Set,ql=null;function Kl(e,t){var r=e.ref;if(null!==r)if("function"==typeof r)try{r(null)}catch(r){gc(e,t,r)}else r.current=null}function Hl(e,t,r){try{r()}catch(r){gc(e,t,r)}}var Gl=!1;function Ql(e,t,r){var n=t.updateQueue;if(null!==(n=null!==n?n.lastEffect:null)){var o=n=n.next;do{if((o.tag&e)===e){var a=o.destroy;o.destroy=void 0,void 0!==a&&Hl(t,r,a)}o=o.next}while(o!==n)}}function Jl(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect: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 Yl(e){var t=e.ref;if(null!==t){var r=e.stateNode;e.tag,e=r,"function"==typeof t?t(e):t.current=e}}function Xl(e){var t=e.alternate;null!==t&&(e.alternate=null,Xl(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[aa],delete t[ia],delete t[la],delete t[ua],delete t[ca])),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 Zl(e){return 5===e.tag||3===e.tag||4===e.tag}function eu(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||Zl(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function tu(e,t,r){var n=e.tag;if(5===n||6===n)e=e.stateNode,t?8===r.nodeType?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(8===r.nodeType?(t=r.parentNode).insertBefore(e,r):(t=r).appendChild(e),null!=(r=r._reactRootContainer)||null!==t.onclick||(t.onclick=Ko));else if(4!==n&&null!==(e=e.child))for(tu(e,t,r),e=e.sibling;null!==e;)tu(e,t,r),e=e.sibling}function ru(e,t,r){var n=e.tag;if(5===n||6===n)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(4!==n&&null!==(e=e.child))for(ru(e,t,r),e=e.sibling;null!==e;)ru(e,t,r),e=e.sibling}var nu=null,ou=!1;function au(e,t,r){for(r=r.child;null!==r;)iu(e,t,r),r=r.sibling}function iu(e,t,r){if(Yt&&"function"==typeof Yt.onCommitFiberUnmount)try{Yt.onCommitFiberUnmount(Jt,r)}catch(e){}switch(r.tag){case 5:Ul||Kl(r,t);case 6:var n=nu,o=ou;nu=null,au(e,t,r),ou=o,null!==(nu=n)&&(ou?(e=nu,r=r.stateNode,8===e.nodeType?e.parentNode.removeChild(r):e.removeChild(r)):nu.removeChild(r.stateNode));break;case 18:null!==nu&&(ou?(e=nu,r=r.stateNode,8===e.nodeType?ta(e.parentNode,r):1===e.nodeType&&ta(e,r),Ar(e)):ta(nu,r.stateNode));break;case 4:n=nu,o=ou,nu=r.stateNode.containerInfo,ou=!0,au(e,t,r),nu=n,ou=o;break;case 0:case 11:case 14:case 15:if(!Ul&&(null!==(n=r.updateQueue)&&null!==(n=n.lastEffect))){o=n=n.next;do{var a=o,i=a.destroy;a=a.tag,void 0!==i&&(0!=(2&a)||0!=(4&a))&&Hl(r,t,i),o=o.next}while(o!==n)}au(e,t,r);break;case 1:if(!Ul&&(Kl(r,t),"function"==typeof(n=r.stateNode).componentWillUnmount))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(e){gc(r,t,e)}au(e,t,r);break;case 21:au(e,t,r);break;case 22:1&r.mode?(Ul=(n=Ul)||null!==r.memoizedState,au(e,t,r),Ul=n):au(e,t,r);break;default:au(e,t,r)}}function su(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var r=e.stateNode;null===r&&(r=e.stateNode=new Wl),t.forEach((function(t){var n=Sc.bind(null,e,t);r.has(t)||(r.add(t),t.then(n,n))}))}}function lu(e,t){var r=t.deletions;if(null!==r)for(var n=0;n<r.length;n++){var o=r[n];try{var a=e,i=t,s=i;e:for(;null!==s;){switch(s.tag){case 5:nu=s.stateNode,ou=!1;break e;case 3:case 4:nu=s.stateNode.containerInfo,ou=!0;break e}s=s.return}if(null===nu)throw Error(X(160));iu(a,i,o),nu=null,ou=!1;var l=o.alternate;null!==l&&(l.return=null),o.return=null}catch(e){gc(o,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)uu(t,e),t=t.sibling}function uu(e,t){var r=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(lu(t,e),cu(e),4&n){try{Ql(3,e,e.return),Jl(3,e)}catch(t){gc(e,e.return,t)}try{Ql(5,e,e.return)}catch(t){gc(e,e.return,t)}}break;case 1:lu(t,e),cu(e),512&n&&null!==r&&Kl(r,r.return);break;case 5:if(lu(t,e),cu(e),512&n&&null!==r&&Kl(r,r.return),32&e.flags){var o=e.stateNode;try{ot(o,"")}catch(t){gc(e,e.return,t)}}if(4&n&&null!=(o=e.stateNode)){var a=e.memoizedProps,i=null!==r?r.memoizedProps:a,s=e.type,l=e.updateQueue;if(e.updateQueue=null,null!==l)try{"input"===s&&"radio"===a.type&&null!=a.name&&We(o,a),dt(s,i);var u=dt(s,a);for(i=0;i<l.length;i+=2){var c=l[i],d=l[i+1];"style"===c?lt(o,d):"dangerouslySetInnerHTML"===c?nt(o,d):"children"===c?ot(o,d):fe(o,c,d,u)}switch(s){case"input":qe(o,a);break;case"textarea":Xe(o,a);break;case"select":var f=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!a.multiple;var p=a.value;null!=p?Qe(o,!!a.multiple,p,!1):f!==!!a.multiple&&(null!=a.defaultValue?Qe(o,!!a.multiple,a.defaultValue,!0):Qe(o,!!a.multiple,a.multiple?[]:"",!1))}o[ia]=a}catch(t){gc(e,e.return,t)}}break;case 6:if(lu(t,e),cu(e),4&n){if(null===e.stateNode)throw Error(X(162));o=e.stateNode,a=e.memoizedProps;try{o.nodeValue=a}catch(t){gc(e,e.return,t)}}break;case 3:if(lu(t,e),cu(e),4&n&&null!==r&&r.memoizedState.isDehydrated)try{Ar(t.containerInfo)}catch(t){gc(e,e.return,t)}break;case 4:default:lu(t,e),cu(e);break;case 13:lu(t,e),cu(e),8192&(o=e.child).flags&&(a=null!==o.memoizedState,o.stateNode.isHidden=a,!a||null!==o.alternate&&null!==o.alternate.memoizedState||(Au=Ut())),4&n&&su(e);break;case 22:if(c=null!==r&&null!==r.memoizedState,1&e.mode?(Ul=(u=Ul)||c,lu(t,e),Ul=u):lu(t,e),cu(e),8192&n){if(u=null!==e.memoizedState,(e.stateNode.isHidden=u)&&!c&&0!=(1&e.mode))for(ql=e,c=e.child;null!==c;){for(d=ql=c;null!==ql;){switch(p=(f=ql).child,f.tag){case 0:case 11:case 14:case 15:Ql(4,f,f.return);break;case 1:Kl(f,f.return);var h=f.stateNode;if("function"==typeof h.componentWillUnmount){n=f,r=f.return;try{t=n,h.props=t.memoizedProps,h.state=t.memoizedState,h.componentWillUnmount()}catch(e){gc(n,r,e)}}break;case 5:Kl(f,f.return);break;case 22:if(null!==f.memoizedState){hu(d);continue}}null!==p?(p.return=f,ql=p):hu(d)}c=c.sibling}e:for(c=null,d=e;;){if(5===d.tag){if(null===c){c=d;try{o=d.stateNode,u?"function"==typeof(a=o.style).setProperty?a.setProperty("display","none","important"):a.display="none":(s=d.stateNode,i=null!=(l=d.memoizedProps.style)&&l.hasOwnProperty("display")?l.display:null,s.style.display=st("display",i))}catch(t){gc(e,e.return,t)}}}else if(6===d.tag){if(null===c)try{d.stateNode.nodeValue=u?"":d.memoizedProps}catch(t){gc(e,e.return,t)}}else if((22!==d.tag&&23!==d.tag||null===d.memoizedState||d===e)&&null!==d.child){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;null===d.sibling;){if(null===d.return||d.return===e)break e;c===d&&(c=null),d=d.return}c===d&&(c=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:lu(t,e),cu(e),4&n&&su(e);case 21:}}function cu(e){var t=e.flags;if(2&t){try{e:{for(var r=e.return;null!==r;){if(Zl(r)){var n=r;break e}r=r.return}throw Error(X(160))}switch(n.tag){case 5:var o=n.stateNode;32&n.flags&&(ot(o,""),n.flags&=-33),ru(e,eu(e),o);break;case 3:case 4:var a=n.stateNode.containerInfo;tu(e,eu(e),a);break;default:throw Error(X(161))}}catch(t){gc(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function du(e,t,r){ql=e,fu(e)}function fu(e,t,r){for(var n=0!=(1&e.mode);null!==ql;){var o=ql,a=o.child;if(22===o.tag&&n){var i=null!==o.memoizedState||Vl;if(!i){var s=o.alternate,l=null!==s&&null!==s.memoizedState||Ul;s=Vl;var u=Ul;if(Vl=i,(Ul=l)&&!u)for(ql=o;null!==ql;)l=(i=ql).child,22===i.tag&&null!==i.memoizedState?mu(o):null!==l?(l.return=i,ql=l):mu(o);for(;null!==a;)ql=a,fu(a),a=a.sibling;ql=o,Vl=s,Ul=u}pu(e)}else 0!=(8772&o.subtreeFlags)&&null!==a?(a.return=o,ql=a):pu(e)}}function pu(e){for(;null!==ql;){var t=ql;if(0!=(8772&t.flags)){var r=t.alternate;try{if(0!=(8772&t.flags))switch(t.tag){case 0:case 11:case 15:Ul||Jl(5,t);break;case 1:var n=t.stateNode;if(4&t.flags&&!Ul)if(null===r)n.componentDidMount();else{var o=t.elementType===t.type?r.memoizedProps:ui(t.type,r.memoizedProps);n.componentDidUpdate(o,r.memoizedState,n.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;null!==a&&Ni(t,a,n);break;case 3:var i=t.updateQueue;if(null!==i){if(r=null,null!==t.child)switch(t.child.tag){case 5:case 1:r=t.child.stateNode}Ni(t,i,r)}break;case 5:var s=t.stateNode;if(null===r&&4&t.flags){r=s;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&r.focus();break;case"img":l.src&&(r.src=l.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var u=t.alternate;if(null!==u){var c=u.memoizedState;if(null!==c){var d=c.dehydrated;null!==d&&Ar(d)}}}break;default:throw Error(X(163))}Ul||512&t.flags&&Yl(t)}catch(e){gc(t,t.return,e)}}if(t===e){ql=null;break}if(null!==(r=t.sibling)){r.return=t.return,ql=r;break}ql=t.return}}function hu(e){for(;null!==ql;){var t=ql;if(t===e){ql=null;break}var r=t.sibling;if(null!==r){r.return=t.return,ql=r;break}ql=t.return}}function mu(e){for(;null!==ql;){var t=ql;try{switch(t.tag){case 0:case 11:case 15:var r=t.return;try{Jl(4,t)}catch(e){gc(t,r,e)}break;case 1:var n=t.stateNode;if("function"==typeof n.componentDidMount){var o=t.return;try{n.componentDidMount()}catch(e){gc(t,o,e)}}var a=t.return;try{Yl(t)}catch(e){gc(t,a,e)}break;case 5:var i=t.return;try{Yl(t)}catch(e){gc(t,i,e)}}}catch(e){gc(t,t.return,e)}if(t===e){ql=null;break}var s=t.sibling;if(null!==s){s.return=t.return,ql=s;break}ql=t.return}}var vu,gu=Math.ceil,yu=pe.ReactCurrentDispatcher,bu=pe.ReactCurrentOwner,wu=pe.ReactCurrentBatchConfig,Su=0,xu=null,_u=null,$u=0,ku=0,Eu=ga(0),ju=0,Cu=null,Ou=0,Pu=0,Nu=0,Ru=null,Tu=null,Au=0,Iu=1/0,Mu=null,Fu=!1,zu=null,Du=null,Lu=!1,Bu=null,Vu=0,Uu=0,Wu=null,qu=-1,Ku=0;function Hu(){return 0!=(6&Su)?Ut():-1!==qu?qu:qu=Ut()}function Gu(e){return 0==(1&e.mode)?1:0!=(2&Su)&&0!==$u?$u&-$u:null!==li.transition?(0===Ku&&(Ku=sr()),Ku):0!==(e=dr)?e:e=void 0===(e=window.event)?16:Vr(e.type)}function Qu(e,t,r,n){if(50<Uu)throw Uu=0,Wu=null,Error(X(185));ur(e,r,n),0!=(2&Su)&&e===xu||(e===xu&&(0==(2&Su)&&(Pu|=r),4===ju&&ec(e,$u)),Ju(e,n),1===r&&0===Su&&0==(1&t.mode)&&(Iu=Ut()+500,Ra&&Ia()))}function Ju(e,t){var r=e.callbackNode;!function(e,t){for(var r=e.suspendedLanes,n=e.pingedLanes,o=e.expirationTimes,a=e.pendingLanes;0<a;){var i=31-Xt(a),s=1<<i,l=o[i];-1===l?0!=(s&r)&&0==(s&n)||(o[i]=ar(s,t)):l<=t&&(e.expiredLanes|=s),a&=~s}}(e,t);var n=or(e,e===xu?$u:0);if(0===n)null!==r&&Lt(r),e.callbackNode=null,e.callbackPriority=0;else if(t=n&-n,e.callbackPriority!==t){if(null!=r&&Lt(r),1===t)0===e.tag?function(e){Ra=!0,Aa(e)}(tc.bind(null,e)):Aa(tc.bind(null,e)),Zo((function(){0==(6&Su)&&Ia()})),r=null;else{switch(fr(n)){case 1:r=qt;break;case 4:r=Kt;break;case 16:default:r=Ht;break;case 536870912:r=Qt}r=xc(r,Yu.bind(null,e))}e.callbackPriority=t,e.callbackNode=r}}function Yu(e,t){if(qu=-1,Ku=0,0!=(6&Su))throw Error(X(327));var r=e.callbackNode;if(mc()&&e.callbackNode!==r)return null;var n=or(e,e===xu?$u:0);if(0===n)return null;if(0!=(30&n)||0!=(n&e.expiredLanes)||t)t=uc(e,n);else{t=n;var o=Su;Su|=2;var a=sc();for(xu===e&&$u===t||(Mu=null,Iu=Ut()+500,ac(e,t));;)try{dc();break}catch(t){ic(e,t)}hi(),yu.current=a,Su=o,null!==_u?t=0:(xu=null,$u=0,t=ju)}if(0!==t){if(2===t&&(0!==(o=ir(e))&&(n=o,t=Xu(e,o))),1===t)throw r=Cu,ac(e,0),ec(e,n),Ju(e,Ut()),r;if(6===t)ec(e,n);else{if(o=e.current.alternate,0==(30&n)&&!function(e){for(var t=e;;){if(16384&t.flags){var r=t.updateQueue;if(null!==r&&null!==(r=r.stores))for(var n=0;n<r.length;n++){var o=r[n],a=o.getSnapshot;o=o.value;try{if(!Zn(a(),o))return!1}catch(e){return!1}}}if(r=t.child,16384&t.subtreeFlags&&null!==r)r.return=t,t=r;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(o)&&(2===(t=uc(e,n))&&(0!==(a=ir(e))&&(n=a,t=Xu(e,a))),1===t))throw r=Cu,ac(e,0),ec(e,n),Ju(e,Ut()),r;switch(e.finishedWork=o,e.finishedLanes=n,t){case 0:case 1:throw Error(X(345));case 2:case 5:hc(e,Tu,Mu);break;case 3:if(ec(e,n),(130023424&n)===n&&10<(t=Au+500-Ut())){if(0!==or(e,0))break;if(((o=e.suspendedLanes)&n)!==n){Hu(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=Jo(hc.bind(null,e,Tu,Mu),t);break}hc(e,Tu,Mu);break;case 4:if(ec(e,n),(4194240&n)===n)break;for(t=e.eventTimes,o=-1;0<n;){var i=31-Xt(n);a=1<<i,(i=t[i])>o&&(o=i),n&=~a}if(n=o,10<(n=(120>(n=Ut()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*gu(n/1960))-n)){e.timeoutHandle=Jo(hc.bind(null,e,Tu,Mu),n);break}hc(e,Tu,Mu);break;default:throw Error(X(329))}}}return Ju(e,Ut()),e.callbackNode===r?Yu.bind(null,e):null}function Xu(e,t){var r=Ru;return e.current.memoizedState.isDehydrated&&(ac(e,t).flags|=256),2!==(e=uc(e,t))&&(t=Tu,Tu=r,null!==t&&Zu(t)),e}function Zu(e){null===Tu?Tu=e:Tu.push.apply(Tu,e)}function ec(e,t){for(t&=~Nu,t&=~Pu,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-Xt(t),n=1<<r;e[r]=-1,t&=~n}}function tc(e){if(0!=(6&Su))throw Error(X(327));mc();var t=or(e,0);if(0==(1&t))return Ju(e,Ut()),null;var r=uc(e,t);if(0!==e.tag&&2===r){var n=ir(e);0!==n&&(t=n,r=Xu(e,n))}if(1===r)throw r=Cu,ac(e,0),ec(e,t),Ju(e,Ut()),r;if(6===r)throw Error(X(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,hc(e,Tu,Mu),Ju(e,Ut()),null}function rc(e,t){var r=Su;Su|=1;try{return e(t)}finally{0===(Su=r)&&(Iu=Ut()+500,Ra&&Ia())}}function nc(e){null!==Bu&&0===Bu.tag&&0==(6&Su)&&mc();var t=Su;Su|=1;var r=wu.transition,n=dr;try{if(wu.transition=null,dr=1,e)return e()}finally{dr=n,wu.transition=r,0==(6&(Su=t))&&Ia()}}function oc(){ku=Eu.current,ya(Eu)}function ac(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(-1!==r&&(e.timeoutHandle=-1,Yo(r)),null!==_u)for(r=_u.return;null!==r;){var n=r;switch(Ga(n),n.tag){case 1:null!=(n=n.type.childContextTypes)&&Ea();break;case 3:Yi(),ya(xa),ya(Sa),ns();break;case 5:Zi(n);break;case 4:Yi();break;case 13:case 19:ya(es);break;case 10:mi(n.type._context);break;case 22:case 23:oc()}r=r.return}if(xu=e,_u=e=Ec(e.current,null),$u=ku=t,ju=0,Cu=null,Nu=Pu=Ou=0,Tu=Ru=null,null!==bi){for(t=0;t<bi.length;t++)if(null!==(n=(r=bi[t]).interleaved)){r.interleaved=null;var o=n.next,a=r.pending;if(null!==a){var i=a.next;a.next=o,n.next=i}r.pending=n}bi=null}return e}function ic(e,t){for(;;){var r=_u;try{if(hi(),os.current=Xs,cs){for(var n=ss.memoizedState;null!==n;){var o=n.queue;null!==o&&(o.pending=null),n=n.next}cs=!1}if(is=0,us=ls=ss=null,ds=!1,fs=0,bu.current=null,null===r||null===r.return){ju=1,Cu=t,_u=null;break}e:{var a=e,i=r.return,s=r,l=t;if(t=$u,s.flags|=32768,null!==l&&"object"==typeof l&&"function"==typeof l.then){var u=l,c=s,d=c.tag;if(0==(1&c.mode)&&(0===d||11===d||15===d)){var f=c.alternate;f?(c.updateQueue=f.updateQueue,c.memoizedState=f.memoizedState,c.lanes=f.lanes):(c.updateQueue=null,c.memoizedState=null)}var p=ul(i);if(null!==p){p.flags&=-257,cl(p,i,s,0,t),1&p.mode&&ll(a,u,t),l=u;var h=(t=p).updateQueue;if(null===h){var m=new Set;m.add(l),t.updateQueue=m}else h.add(l);break e}if(0==(1&t)){ll(a,u,t),lc();break e}l=Error(X(426))}else if(Ya&&1&s.mode){var v=ul(i);if(null!==v){0==(65536&v.flags)&&(v.flags|=256),cl(v,i,s,0,t),si(rl(l,s));break e}}a=l=rl(l,s),4!==ju&&(ju=2),null===Ru?Ru=[a]:Ru.push(a),a=i;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t,Oi(a,il(0,l,t));break e;case 1:s=l;var g=a.type,y=a.stateNode;if(0==(128&a.flags)&&("function"==typeof g.getDerivedStateFromError||null!==y&&"function"==typeof y.componentDidCatch&&(null===Du||!Du.has(y)))){a.flags|=65536,t&=-t,a.lanes|=t,Oi(a,sl(a,s,t));break e}}a=a.return}while(null!==a)}pc(r)}catch(e){t=e,_u===r&&null!==r&&(_u=r=r.return);continue}break}}function sc(){var e=yu.current;return yu.current=Xs,null===e?Xs:e}function lc(){0!==ju&&3!==ju&&2!==ju||(ju=4),null===xu||0==(268435455&Ou)&&0==(268435455&Pu)||ec(xu,$u)}function uc(e,t){var r=Su;Su|=2;var n=sc();for(xu===e&&$u===t||(Mu=null,ac(e,t));;)try{cc();break}catch(t){ic(e,t)}if(hi(),Su=r,yu.current=n,null!==_u)throw Error(X(261));return xu=null,$u=0,ju}function cc(){for(;null!==_u;)fc(_u)}function dc(){for(;null!==_u&&!Bt();)fc(_u)}function fc(e){var t=vu(e.alternate,e,ku);e.memoizedProps=e.pendingProps,null===t?pc(e):_u=t,bu.current=null}function pc(e){var t=e;do{var r=t.alternate;if(e=t.return,0==(32768&t.flags)){if(null!==(r=Ll(r,t,ku)))return void(_u=r)}else{if(null!==(r=Bl(r,t)))return r.flags&=32767,void(_u=r);if(null===e)return ju=6,void(_u=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(_u=t);_u=t=e}while(null!==t);0===ju&&(ju=5)}function hc(e,t,r){var n=dr,o=wu.transition;try{wu.transition=null,dr=1,function(e,t,r,n){do{mc()}while(null!==Bu);if(0!=(6&Su))throw Error(X(327));r=e.finishedWork;var o=e.finishedLanes;if(null===r)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(X(177));e.callbackNode=null,e.callbackPriority=0;var a=r.lanes|r.childLanes;if(function(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0<r;){var o=31-Xt(r),a=1<<o;t[o]=0,n[o]=-1,e[o]=-1,r&=~a}}(e,a),e===xu&&(_u=xu=null,$u=0),0==(2064&r.subtreeFlags)&&0==(2064&r.flags)||Lu||(Lu=!0,xc(Ht,(function(){return mc(),null}))),a=0!=(15990&r.flags),0!=(15990&r.subtreeFlags)||a){a=wu.transition,wu.transition=null;var i=dr;dr=1;var s=Su;Su|=4,bu.current=null,function(e,t){if(Ho=Mr,ao(e=oo())){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{var n=(r=(r=e.ownerDocument)&&r.defaultView||window).getSelection&&r.getSelection();if(n&&0!==n.rangeCount){r=n.anchorNode;var o=n.anchorOffset,a=n.focusNode;n=n.focusOffset;try{r.nodeType,a.nodeType}catch(e){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||0!==o&&3!==d.nodeType||(s=i+o),d!==a||0!==n&&3!==d.nodeType||(l=i+n),3===d.nodeType&&(i+=d.nodeValue.length),null!==(p=d.firstChild);)f=d,d=p;for(;;){if(d===e)break t;if(f===r&&++u===o&&(s=i),f===a&&++c===n&&(l=i),null!==(p=d.nextSibling))break;f=(d=f).parentNode}d=p}r=-1===s||-1===l?null:{start:s,end:l}}else r=null}r=r||{start:0,end:0}}else r=null;for(Go={focusedElem:e,selectionRange:r},Mr=!1,ql=t;null!==ql;)if(e=(t=ql).child,0!=(1028&t.subtreeFlags)&&null!==e)e.return=t,ql=e;else for(;null!==ql;){t=ql;try{var h=t.alternate;if(0!=(1024&t.flags))switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==h){var m=h.memoizedProps,v=h.memoizedState,g=t.stateNode,y=g.getSnapshotBeforeUpdate(t.elementType===t.type?m:ui(t.type,m),v);g.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var b=t.stateNode.containerInfo;1===b.nodeType?b.textContent="":9===b.nodeType&&b.documentElement&&b.removeChild(b.documentElement);break;default:throw Error(X(163))}}catch(e){gc(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,ql=e;break}ql=t.return}h=Gl,Gl=!1}(e,r),uu(r,e),io(Go),Mr=!!Ho,Go=Ho=null,e.current=r,du(r),Vt(),Su=s,dr=i,wu.transition=a}else e.current=r;if(Lu&&(Lu=!1,Bu=e,Vu=o),a=e.pendingLanes,0===a&&(Du=null),function(e){if(Yt&&"function"==typeof Yt.onCommitFiberRoot)try{Yt.onCommitFiberRoot(Jt,e,void 0,128==(128&e.current.flags))}catch(e){}}(r.stateNode),Ju(e,Ut()),null!==t)for(n=e.onRecoverableError,r=0;r<t.length;r++)o=t[r],n(o.value,{componentStack:o.stack,digest:o.digest});if(Fu)throw Fu=!1,e=zu,zu=null,e;0!=(1&Vu)&&0!==e.tag&&mc(),a=e.pendingLanes,0!=(1&a)?e===Wu?Uu++:(Uu=0,Wu=e):Uu=0,Ia()}(e,t,r,n)}finally{wu.transition=o,dr=n}return null}function mc(){if(null!==Bu){var e=fr(Vu),t=wu.transition,r=dr;try{if(wu.transition=null,dr=16>e?16:e,null===Bu)var n=!1;else{if(e=Bu,Bu=null,Vu=0,0!=(6&Su))throw Error(X(331));var o=Su;for(Su|=4,ql=e.current;null!==ql;){var a=ql,i=a.child;if(0!=(16&ql.flags)){var s=a.deletions;if(null!==s){for(var l=0;l<s.length;l++){var u=s[l];for(ql=u;null!==ql;){var c=ql;switch(c.tag){case 0:case 11:case 15:Ql(8,c,a)}var d=c.child;if(null!==d)d.return=c,ql=d;else for(;null!==ql;){var f=(c=ql).sibling,p=c.return;if(Xl(c),c===u){ql=null;break}if(null!==f){f.return=p,ql=f;break}ql=p}}}var h=a.alternate;if(null!==h){var m=h.child;if(null!==m){h.child=null;do{var v=m.sibling;m.sibling=null,m=v}while(null!==m)}}ql=a}}if(0!=(2064&a.subtreeFlags)&&null!==i)i.return=a,ql=i;else e:for(;null!==ql;){if(0!=(2048&(a=ql).flags))switch(a.tag){case 0:case 11:case 15:Ql(9,a,a.return)}var g=a.sibling;if(null!==g){g.return=a.return,ql=g;break e}ql=a.return}}var y=e.current;for(ql=y;null!==ql;){var b=(i=ql).child;if(0!=(2064&i.subtreeFlags)&&null!==b)b.return=i,ql=b;else e:for(i=y;null!==ql;){if(0!=(2048&(s=ql).flags))try{switch(s.tag){case 0:case 11:case 15:Jl(9,s)}}catch(e){gc(s,s.return,e)}if(s===i){ql=null;break e}var w=s.sibling;if(null!==w){w.return=s.return,ql=w;break e}ql=s.return}}if(Su=o,Ia(),Yt&&"function"==typeof Yt.onPostCommitFiberRoot)try{Yt.onPostCommitFiberRoot(Jt,e)}catch(e){}n=!0}return n}finally{dr=r,wu.transition=t}}return!1}function vc(e,t,r){e=ji(e,t=il(0,t=rl(r,t),1),1),t=Hu(),null!==e&&(ur(e,1,t),Ju(e,t))}function gc(e,t,r){if(3===e.tag)vc(e,e,r);else for(;null!==t;){if(3===t.tag){vc(t,e,r);break}if(1===t.tag){var n=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof n.componentDidCatch&&(null===Du||!Du.has(n))){t=ji(t,e=sl(t,e=rl(r,e),1),1),e=Hu(),null!==t&&(ur(t,1,e),Ju(t,e));break}}t=t.return}}function yc(e,t,r){var n=e.pingCache;null!==n&&n.delete(t),t=Hu(),e.pingedLanes|=e.suspendedLanes&r,xu===e&&($u&r)===r&&(4===ju||3===ju&&(130023424&$u)===$u&&500>Ut()-Au?ac(e,0):Nu|=r),Ju(e,t)}function bc(e,t){0===t&&(0==(1&e.mode)?t=1:(t=rr,0==(130023424&(rr<<=1))&&(rr=4194304)));var r=Hu();null!==(e=xi(e,t))&&(ur(e,t,r),Ju(e,r))}function wc(e){var t=e.memoizedState,r=0;null!==t&&(r=t.retryLane),bc(e,r)}function Sc(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,o=e.memoizedState;null!==o&&(r=o.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(X(314))}null!==n&&n.delete(t),bc(e,r)}function xc(e,t){return Dt(e,t)}function _c(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 $c(e,t,r,n){return new _c(e,t,r,n)}function kc(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Ec(e,t){var r=e.alternate;return null===r?((r=$c(e.tag,t,e.key,e.mode)).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=14680064&e.flags,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=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function jc(e,t,r,n,o,a){var i=2;if(n=e,"function"==typeof e)kc(e)&&(i=1);else if("string"==typeof e)i=5;else e:switch(e){case ve:return Cc(r.children,o,a,t);case ge:i=8,o|=8;break;case ye:return(e=$c(12,r,t,2|o)).elementType=ye,e.lanes=a,e;case xe:return(e=$c(13,r,t,o)).elementType=xe,e.lanes=a,e;case _e:return(e=$c(19,r,t,o)).elementType=_e,e.lanes=a,e;case Ee:return Oc(r,o,a,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case be:i=10;break e;case we:i=9;break e;case Se:i=11;break e;case $e:i=14;break e;case ke:i=16,n=null;break e}throw Error(X(130,null==e?e:typeof e,""))}return(t=$c(i,r,t,o)).elementType=e,t.type=n,t.lanes=a,t}function Cc(e,t,r,n){return(e=$c(7,e,n,t)).lanes=r,e}function Oc(e,t,r,n){return(e=$c(22,e,n,t)).elementType=Ee,e.lanes=r,e.stateNode={isHidden:!1},e}function Pc(e,t,r){return(e=$c(6,e,null,t)).lanes=r,e}function Nc(e,t,r){return(t=$c(4,null!==e.children?e.children:[],e.key,t)).lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Rc(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=lr(0),this.expirationTimes=lr(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=lr(0),this.identifierPrefix=n,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Tc(e,t,r,n,o,a,i,s,l){return e=new Rc(e,t,r,s,l),1===t?(t=1,!0===a&&(t|=8)):t=0,a=$c(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},$i(a),e}function Ac(e){if(!e)return wa;e:{if(At(e=e._reactInternals)!==e||1!==e.tag)throw Error(X(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(ka(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(X(171))}if(1===e.tag){var r=e.type;if(ka(r))return Ca(e,r,t)}return t}function Ic(e,t,r,n,o,a,i,s,l){return(e=Tc(r,n,!0,e,0,a,0,s,l)).context=Ac(null),r=e.current,(a=Ei(n=Hu(),o=Gu(r))).callback=null!=t?t:null,ji(r,a,o),e.current.lanes=o,ur(e,o,n),Ju(e,n),e}function Mc(e,t,r,n){var o=t.current,a=Hu(),i=Gu(o);return r=Ac(r),null===t.context?t.context=r:t.pendingContext=r,(t=Ei(a,i)).payload={element:e},null!==(n=void 0===n?null:n)&&(t.callback=n),null!==(e=ji(o,t,i))&&(Qu(e,o,i,a),Ci(e,o,i)),i}function Fc(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function zc(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var r=e.retryLane;e.retryLane=0!==r&&r<t?r:t}}function Dc(e,t){zc(e,t),(e=e.alternate)&&zc(e,t)}vu=function(e,t,r){if(null!==e)if(e.memoizedProps!==t.pendingProps||xa.current)fl=!0;else{if(0==(e.lanes&r)&&0==(128&t.flags))return fl=!1,function(e,t,r){switch(t.tag){case 3:xl(t),ii();break;case 5:Xi(t);break;case 1:ka(t.type)&&Oa(t);break;case 4:Ji(t,t.stateNode.containerInfo);break;case 10:var n=t.type._context,o=t.memoizedProps.value;ba(ci,n._currentValue),n._currentValue=o;break;case 13:if(null!==(n=t.memoizedState))return null!==n.dehydrated?(ba(es,1&es.current),t.flags|=128,null):0!=(r&t.child.childLanes)?Pl(e,t,r):(ba(es,1&es.current),null!==(e=Fl(e,t,r))?e.sibling:null);ba(es,1&es.current);break;case 19:if(n=0!=(r&t.childLanes),0!=(128&e.flags)){if(n)return Il(e,t,r);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),ba(es,es.current),n)break;return null;case 22:case 23:return t.lanes=0,gl(e,t,r)}return Fl(e,t,r)}(e,t,r);fl=0!=(131072&e.flags)}else fl=!1,Ya&&0!=(1048576&t.flags)&&Ka(t,Da,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;Ml(e,t),e=t.pendingProps;var o=$a(t,Sa.current);gi(t,r),o=vs(null,t,n,e,o,r);var a=gs();return t.flags|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,ka(n)?(a=!0,Oa(t)):a=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,$i(t),o.updater=Ai,t.stateNode=o,o._reactInternals=t,zi(t,n,e,r),t=Sl(null,t,n,!0,a,r)):(t.tag=0,Ya&&a&&Ha(t),pl(null,t,o,r),t=t.child),t;case 16:n=t.elementType;e:{switch(Ml(e,t),e=t.pendingProps,n=(o=n._init)(n._payload),t.type=n,o=t.tag=function(e){if("function"==typeof e)return kc(e)?1:0;if(null!=e){if((e=e.$$typeof)===Se)return 11;if(e===$e)return 14}return 2}(n),e=ui(n,e),o){case 0:t=bl(null,t,n,e,r);break e;case 1:t=wl(null,t,n,e,r);break e;case 11:t=hl(null,t,n,e,r);break e;case 14:t=ml(null,t,n,ui(n.type,e),r);break e}throw Error(X(306,n,""))}return t;case 0:return n=t.type,o=t.pendingProps,bl(e,t,n,o=t.elementType===n?o:ui(n,o),r);case 1:return n=t.type,o=t.pendingProps,wl(e,t,n,o=t.elementType===n?o:ui(n,o),r);case 3:e:{if(xl(t),null===e)throw Error(X(387));n=t.pendingProps,o=(a=t.memoizedState).element,ki(e,t),Pi(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,256&t.flags){t=_l(e,t,n,r,o=rl(Error(X(423)),t));break e}if(n!==o){t=_l(e,t,n,r,o=rl(Error(X(424)),t));break e}for(Ja=ra(t.stateNode.containerInfo.firstChild),Qa=t,Ya=!0,Xa=null,r=Wi(t,null,n,r),t.child=r;r;)r.flags=-3&r.flags|4096,r=r.sibling}else{if(ii(),n===o){t=Fl(e,t,r);break e}pl(e,t,n,r)}t=t.child}return t;case 5:return Xi(t),null===e&&ri(t),n=t.type,o=t.pendingProps,a=null!==e?e.memoizedProps:null,i=o.children,Qo(n,o)?i=null:null!==a&&Qo(n,a)&&(t.flags|=32),yl(e,t),pl(e,t,i,r),t.child;case 6:return null===e&&ri(t),null;case 13:return Pl(e,t,r);case 4:return Ji(t,t.stateNode.containerInfo),n=t.pendingProps,null===e?t.child=Ui(t,null,n,r):pl(e,t,n,r),t.child;case 11:return n=t.type,o=t.pendingProps,hl(e,t,n,o=t.elementType===n?o:ui(n,o),r);case 7:return pl(e,t,t.pendingProps,r),t.child;case 8:case 12:return pl(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,ba(ci,n._currentValue),n._currentValue=i,null!==a)if(Zn(a.value,i)){if(a.children===o.children&&!xa.current){t=Fl(e,t,r);break e}}else for(null!==(a=t.child)&&(a.return=t);null!==a;){var s=a.dependencies;if(null!==s){i=a.child;for(var l=s.firstContext;null!==l;){if(l.context===n){if(1===a.tag){(l=Ei(-1,r&-r)).tag=2;var u=a.updateQueue;if(null!==u){var c=(u=u.shared).pending;null===c?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}a.lanes|=r,null!==(l=a.alternate)&&(l.lanes|=r),vi(a.return,r,t),s.lanes|=r;break}l=l.next}}else if(10===a.tag)i=a.type===t.type?null:a.child;else if(18===a.tag){if(null===(i=a.return))throw Error(X(341));i.lanes|=r,null!==(s=i.alternate)&&(s.lanes|=r),vi(i,r,t),i=a.sibling}else i=a.child;if(null!==i)i.return=a;else for(i=a;null!==i;){if(i===t){i=null;break}if(null!==(a=i.sibling)){a.return=i.return,i=a;break}i=i.return}a=i}pl(e,t,o.children,r),t=t.child}return t;case 9:return o=t.type,n=t.pendingProps.children,gi(t,r),n=n(o=yi(o)),t.flags|=1,pl(e,t,n,r),t.child;case 14:return o=ui(n=t.type,t.pendingProps),ml(e,t,n,o=ui(n.type,o),r);case 15:return vl(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:ui(n,o),Ml(e,t),t.tag=1,ka(n)?(e=!0,Oa(t)):e=!1,gi(t,r),Mi(t,n,o),zi(t,n,o,r),Sl(null,t,n,!0,e,r);case 19:return Il(e,t,r);case 22:return gl(e,t,r)}throw Error(X(156,t.tag))};var Lc="function"==typeof reportError?reportError:function(e){console.error(e)};function Bc(e){this._internalRoot=e}function Vc(e){this._internalRoot=e}function Uc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Wc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function qc(){}function Kc(e,t,r,n,o){var a=r._reactRootContainer;if(a){var i=a;if("function"==typeof o){var s=o;o=function(){var e=Fc(i);s.call(e)}}Mc(t,i,e,o)}else i=function(e,t,r,n,o){if(o){if("function"==typeof n){var a=n;n=function(){var e=Fc(i);a.call(e)}}var i=Ic(t,n,e,0,null,!1,0,"",qc);return e._reactRootContainer=i,e[sa]=i.current,Io(8===e.nodeType?e.parentNode:e),nc(),i}for(;o=e.lastChild;)e.removeChild(o);if("function"==typeof n){var s=n;n=function(){var e=Fc(l);s.call(e)}}var l=Tc(e,0,!1,null,0,!1,0,"",qc);return e._reactRootContainer=l,e[sa]=l.current,Io(8===e.nodeType?e.parentNode:e),nc((function(){Mc(t,l,r,n)})),l}(r,t,e,o,n);return Fc(i)}Vc.prototype.render=Bc.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(X(409));Mc(e,t,null,null)},Vc.prototype.unmount=Bc.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;nc((function(){Mc(null,e,null,null)})),t[sa]=null}},Vc.prototype.unstable_scheduleHydration=function(e){if(e){var t=vr();e={blockedOn:null,target:e,priority:t};for(var r=0;r<kr.length&&0!==t&&t<kr[r].priority;r++);kr.splice(r,0,e),0===r&&Or(e)}},pr=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var r=nr(t.pendingLanes);0!==r&&(cr(t,1|r),Ju(t,Ut()),0==(6&Su)&&(Iu=Ut()+500,Ia()))}break;case 13:nc((function(){var t=xi(e,1);if(null!==t){var r=Hu();Qu(t,e,1,r)}})),Dc(e,1)}},hr=function(e){if(13===e.tag){var t=xi(e,134217728);if(null!==t)Qu(t,e,134217728,Hu());Dc(e,134217728)}},mr=function(e){if(13===e.tag){var t=Gu(e),r=xi(e,t);if(null!==r)Qu(r,e,t,Hu());Dc(e,t)}},vr=function(){return dr},gr=function(e,t){var r=dr;try{return dr=e,t()}finally{dr=r}},ht=function(e,t,r){switch(t){case"input":if(qe(e,r),t=r.name,"radio"===r.type&&null!=t){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var n=r[t];if(n!==e&&n.form===e.form){var o=ha(n);if(!o)throw Error(X(90));Le(n),qe(n,o)}}}break;case"textarea":Xe(e,r);break;case"select":null!=(t=r.value)&&Qe(e,!!r.multiple,t,!1)}},wt=rc,St=nc;var Hc={usingClientEntryPoint:!1,Events:[fa,pa,ha,yt,bt,rc]},Gc={findFiberByHostInstance:da,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},Qc={bundleType:Gc.bundleType,version:Gc.version,rendererPackageName:Gc.rendererPackageName,rendererConfig:Gc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:pe.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Ft(e))?null:e.stateNode},findFiberByHostInstance:Gc.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var Jc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Jc.isDisabled&&Jc.supportsFiber)try{Jt=Jc.inject(Qc),Yt=Jc}catch(bD){}}K.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Hc,K.createPortal=function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Uc(t))throw Error(X(200));return function(e,t,r){var n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:me,key:null==n?null:""+n,children:e,containerInfo:t,implementation:r}}(e,t,null,r)},K.createRoot=function(e,t){if(!Uc(e))throw Error(X(299));var r=!1,n="",o=Lc;return null!=t&&(!0===t.unstable_strictMode&&(r=!0),void 0!==t.identifierPrefix&&(n=t.identifierPrefix),void 0!==t.onRecoverableError&&(o=t.onRecoverableError)),t=Tc(e,1,!1,null,0,r,0,n,o),e[sa]=t.current,Io(8===e.nodeType?e.parentNode:e),new Bc(t)},K.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(X(188));throw e=Object.keys(e).join(","),Error(X(268,e))}return e=null===(e=Ft(t))?null:e.stateNode},K.flushSync=function(e){return nc(e)},K.hydrate=function(e,t,r){if(!Wc(t))throw Error(X(200));return Kc(null,e,t,!0,r)},K.hydrateRoot=function(e,t,r){if(!Uc(e))throw Error(X(405));var n=null!=r&&r.hydratedSources||null,o=!1,a="",i=Lc;if(null!=r&&(!0===r.unstable_strictMode&&(o=!0),void 0!==r.identifierPrefix&&(a=r.identifierPrefix),void 0!==r.onRecoverableError&&(i=r.onRecoverableError)),t=Ic(t,null,e,1,null!=r?r:null,o,0,a,i),e[sa]=t.current,Io(e),n)for(e=0;e<n.length;e++)o=(o=(r=n[e])._getVersion)(r._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[r,o]:t.mutableSourceEagerHydrationData.push(r,o);return new Vc(t)},K.render=function(e,t,r){if(!Wc(t))throw Error(X(200));return Kc(null,e,t,!1,r)},K.unmountComponentAtNode=function(e){if(!Wc(e))throw Error(X(40));return!!e._reactRootContainer&&(nc((function(){Kc(null,null,e,!1,(function(){e._reactRootContainer=null,e[sa]=null}))})),!0)},K.unstable_batchedUpdates=rc,K.unstable_renderSubtreeIntoContainer=function(e,t,r,n){if(!Wc(r))throw Error(X(200));if(null==e||void 0===e._reactInternals)throw Error(X(38));return Kc(e,t,r,!1,n)},K.version="18.2.0-next-9e3b772b8-20220608",function(e){!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=K}(q);var Yc=n(W),Xc=W;function Zc(e){return!("undefined"!=typeof File&&e instanceof File)&&(!("undefined"!=typeof Date&&e instanceof Date)&&("object"==typeof e&&null!==e&&!Array.isArray(e)))}function ed(e){if(""===e)return;if(null===e)return null;if(/\.$/.test(e))return e;if(/\.0$/.test(e))return e;if(/\.\d*0$/.test(e))return e;const t=Number(e);return"number"==typeof t&&!Number.isNaN(t)?t:e}U.createRoot=Xc.createRoot,U.hydrateRoot=Xc.hydrateRoot;const td="__additional_property",rd="additionalProperties",nd="allOf",od="anyOf",ad="const",id="default",sd="dependencies",ld="enum",ud="__errors",cd="$id",dd="if",fd="items",pd="$name",hd="oneOf",md="properties",vd="required",gd="submitButtonOptions",yd="$ref",bd="__rjsf_additionalProperties",wd="__rjsf_rootSchema",Sd="ui:widget",xd="ui:options";function _d(e={},t={}){return Object.keys(e).filter((e=>0===e.indexOf("ui:"))).reduce(((t,r)=>{const n=e[r];return r===Sd&&Zc(n)?(console.error("Setting options via ui:widget object is no longer supported, use ui:options instead"),t):r===xd&&Zc(n)?Object.assign(Object.assign({},t),n):Object.assign(Object.assign({},t),{[r.substring(3)]:n})}),Object.assign({},t))}function $d(e,t={},r){if(!e.additionalProperties)return!1;const{expandable:n=!0}=_d(t);return!1===n?n:void 0===e.maxProperties||!r||Object.keys(r).length<e.maxProperties}var kd="object"==typeof r&&r&&r.Object===Object&&r,Ed=kd,jd="object"==typeof self&&self&&self.Object===Object&&self,Cd=Ed||jd||Function("return this")(),Od=Cd.Symbol,Pd=Od,Nd=Object.prototype,Rd=Nd.hasOwnProperty,Td=Nd.toString,Ad=Pd?Pd.toStringTag:void 0;var Id=function(e){var t=Rd.call(e,Ad),r=e[Ad];try{e[Ad]=void 0;var n=!0}catch(e){}var o=Td.call(e);return n&&(t?e[Ad]=r:delete e[Ad]),o},Md=Object.prototype.toString;var Fd=Id,zd=function(e){return Md.call(e)},Dd=Od?Od.toStringTag:void 0;var Ld=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Dd&&Dd in Object(e)?Fd(e):zd(e)};var Bd=function(e,t){return function(r){return e(t(r))}},Vd=Bd(Object.getPrototypeOf,Object);var Ud=function(e){return null!=e&&"object"==typeof e},Wd=Ld,qd=Vd,Kd=Ud,Hd=Function.prototype,Gd=Object.prototype,Qd=Hd.toString,Jd=Gd.hasOwnProperty,Yd=Qd.call(Object);var Xd=function(e){if(!Kd(e)||"[object Object]"!=Wd(e))return!1;var t=qd(e);if(null===t)return!0;var r=Jd.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&Qd.call(r)==Yd};function Zd(e){const t={[ud]:[],addError(e){this[ud].push(e)}};if(Array.isArray(e))return e.reduce(((e,t,r)=>Object.assign(Object.assign({},e),{[r]:Zd(t)})),t);if(Xd(e)){const r=e;return Object.keys(r).reduce(((e,t)=>Object.assign(Object.assign({},e),{[t]:Zd(r[t])})),t)}return t}var ef=function(){this.__data__=[],this.size=0};var tf=function(e,t){return e===t||e!=e&&t!=t},rf=tf;var nf=function(e,t){for(var r=e.length;r--;)if(rf(e[r][0],t))return r;return-1},of=nf,af=Array.prototype.splice;var sf=nf;var lf=nf;var uf=nf;var cf=ef,df=function(e){var t=this.__data__,r=of(t,e);return!(r<0)&&(r==t.length-1?t.pop():af.call(t,r,1),--this.size,!0)},ff=function(e){var t=this.__data__,r=sf(t,e);return r<0?void 0:t[r][1]},pf=function(e){return lf(this.__data__,e)>-1},hf=function(e,t){var r=this.__data__,n=uf(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this};function mf(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}mf.prototype.clear=cf,mf.prototype.delete=df,mf.prototype.get=ff,mf.prototype.has=pf,mf.prototype.set=hf;var vf=mf,gf=vf;var yf=function(){this.__data__=new gf,this.size=0};var bf=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r};var wf=function(e){return this.__data__.get(e)};var Sf=function(e){return this.__data__.has(e)};var xf=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},_f=Ld,$f=xf;var kf,Ef=function(e){if(!$f(e))return!1;var t=_f(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},jf=Cd["__core-js_shared__"],Cf=(kf=/[^.]+$/.exec(jf&&jf.keys&&jf.keys.IE_PROTO||""))?"Symbol(src)_1."+kf:"";var Of=function(e){return!!Cf&&Cf in e},Pf=Function.prototype.toString;var Nf=function(e){if(null!=e){try{return Pf.call(e)}catch(e){}try{return e+""}catch(e){}}return""},Rf=Ef,Tf=Of,Af=xf,If=Nf,Mf=/^\[object .+?Constructor\]$/,Ff=Function.prototype,zf=Object.prototype,Df=Ff.toString,Lf=zf.hasOwnProperty,Bf=RegExp("^"+Df.call(Lf).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var Vf=function(e){return!(!Af(e)||Tf(e))&&(Rf(e)?Bf:Mf).test(If(e))},Uf=function(e,t){return null==e?void 0:e[t]};var Wf=function(e,t){var r=Uf(e,t);return Vf(r)?r:void 0},qf=Wf(Cd,"Map"),Kf=Wf(Object,"create"),Hf=Kf;var Gf=function(){this.__data__=Hf?Hf(null):{},this.size=0};var Qf=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Jf=Kf,Yf=Object.prototype.hasOwnProperty;var Xf=function(e){var t=this.__data__;if(Jf){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return Yf.call(t,e)?t[e]:void 0},Zf=Kf,ep=Object.prototype.hasOwnProperty;var tp=Kf;var rp=Gf,np=Qf,op=Xf,ap=function(e){var t=this.__data__;return Zf?void 0!==t[e]:ep.call(t,e)},ip=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=tp&&void 0===t?"__lodash_hash_undefined__":t,this};function sp(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}sp.prototype.clear=rp,sp.prototype.delete=np,sp.prototype.get=op,sp.prototype.has=ap,sp.prototype.set=ip;var lp=sp,up=vf,cp=qf;var dp=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e},fp=dp;var pp=function(e,t){var r=e.__data__;return fp(t)?r["string"==typeof t?"string":"hash"]:r.map},hp=pp;var mp=pp;var vp=pp;var gp=pp;var yp=function(){this.size=0,this.__data__={hash:new lp,map:new(cp||up),string:new lp}},bp=function(e){var t=hp(this,e).delete(e);return this.size-=t?1:0,t},wp=function(e){return mp(this,e).get(e)},Sp=function(e){return vp(this,e).has(e)},xp=function(e,t){var r=gp(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this};function _p(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}_p.prototype.clear=yp,_p.prototype.delete=bp,_p.prototype.get=wp,_p.prototype.has=Sp,_p.prototype.set=xp;var $p=_p,kp=vf,Ep=qf,jp=$p;var Cp=vf,Op=yf,Pp=bf,Np=wf,Rp=Sf,Tp=function(e,t){var r=this.__data__;if(r instanceof kp){var n=r.__data__;if(!Ep||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new jp(n)}return r.set(e,t),this.size=r.size,this};function Ap(e){var t=this.__data__=new Cp(e);this.size=t.size}Ap.prototype.clear=Op,Ap.prototype.delete=Pp,Ap.prototype.get=Np,Ap.prototype.has=Rp,Ap.prototype.set=Tp;var Ip=Ap;var Mp=$p,Fp=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},zp=function(e){return this.__data__.has(e)};function Dp(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new Mp;++t<r;)this.add(e[t])}Dp.prototype.add=Dp.prototype.push=Fp,Dp.prototype.has=zp;var Lp=Dp;var Bp=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1};var Vp=function(e,t){return e.has(t)},Up=Lp,Wp=Bp,qp=Vp;var Kp=function(e,t,r,n,o,a){var i=1&r,s=e.length,l=t.length;if(s!=l&&!(i&&l>s))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=2&r?new Up:void 0;for(a.set(e,t),a.set(t,e);++d<s;){var h=e[d],m=t[d];if(n)var v=i?n(m,h,d,t,e,a):n(h,m,d,e,t,a);if(void 0!==v){if(v)continue;f=!1;break}if(p){if(!Wp(t,(function(e,t){if(!qp(p,t)&&(h===e||o(h,e,r,n,a)))return p.push(t)}))){f=!1;break}}else if(h!==m&&!o(h,m,r,n,a)){f=!1;break}}return a.delete(e),a.delete(t),f},Hp=Cd.Uint8Array;var Gp=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r},Qp=Hp,Jp=tf,Yp=Kp,Xp=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r},Zp=Gp,eh=Od?Od.prototype:void 0,th=eh?eh.valueOf:void 0;var rh=function(e,t,r,n,o,a,i){switch(r){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!a(new Qp(e),new Qp(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return Jp(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var s=Xp;case"[object Set]":var l=1&n;if(s||(s=Zp),e.size!=t.size&&!l)return!1;var u=i.get(e);if(u)return u==t;n|=2,i.set(e,t);var c=Yp(s(e),s(t),n,o,a,i);return i.delete(e),c;case"[object Symbol]":if(th)return th.call(e)==th.call(t)}return!1};var nh=function(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e},oh=Array.isArray,ah=nh,ih=oh;var sh=function(e,t,r){var n=t(e);return ih(e)?n:ah(n,r(e))};var lh=function(e,t){for(var r=-1,n=null==e?0:e.length,o=0,a=[];++r<n;){var i=e[r];t(i,r,e)&&(a[o++]=i)}return a};var uh=function(){return[]},ch=lh,dh=uh,fh=Object.prototype.propertyIsEnumerable,ph=Object.getOwnPropertySymbols,hh=ph?function(e){return null==e?[]:(e=Object(e),ch(ph(e),(function(t){return fh.call(e,t)})))}:dh;var mh=function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n},vh=Ld,gh=Ud;var yh=function(e){return gh(e)&&"[object Arguments]"==vh(e)},bh=Ud,wh=Object.prototype,Sh=wh.hasOwnProperty,xh=wh.propertyIsEnumerable,_h=yh(function(){return arguments}())?yh:function(e){return bh(e)&&Sh.call(e,"callee")&&!xh.call(e,"callee")},$h=_h,kh={},Eh={get exports(){return kh},set exports(e){kh=e}};var jh=function(){return!1};!function(e,t){var r=Cd,n=jh,o=t&&!t.nodeType&&t,a=o&&e&&!e.nodeType&&e,i=a&&a.exports===o?r.Buffer:void 0,s=(i?i.isBuffer:void 0)||n;e.exports=s}(Eh,kh);var Ch=/^(?:0|[1-9]\d*)$/;var Oh=function(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&Ch.test(e))&&e>-1&&e%1==0&&e<t};var Ph=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},Nh=Ld,Rh=Ph,Th=Ud,Ah={};Ah["[object Float32Array]"]=Ah["[object Float64Array]"]=Ah["[object Int8Array]"]=Ah["[object Int16Array]"]=Ah["[object Int32Array]"]=Ah["[object Uint8Array]"]=Ah["[object Uint8ClampedArray]"]=Ah["[object Uint16Array]"]=Ah["[object Uint32Array]"]=!0,Ah["[object Arguments]"]=Ah["[object Array]"]=Ah["[object ArrayBuffer]"]=Ah["[object Boolean]"]=Ah["[object DataView]"]=Ah["[object Date]"]=Ah["[object Error]"]=Ah["[object Function]"]=Ah["[object Map]"]=Ah["[object Number]"]=Ah["[object Object]"]=Ah["[object RegExp]"]=Ah["[object Set]"]=Ah["[object String]"]=Ah["[object WeakMap]"]=!1;var Ih=function(e){return Th(e)&&Rh(e.length)&&!!Ah[Nh(e)]};var Mh=function(e){return function(t){return e(t)}},Fh={},zh={get exports(){return Fh},set exports(e){Fh=e}};!function(e,t){var r=kd,n=t&&!t.nodeType&&t,o=n&&e&&!e.nodeType&&e,a=o&&o.exports===n&&r.process,i=function(){try{var e=o&&o.require&&o.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=i}(zh,Fh);var Dh=Ih,Lh=Mh,Bh=Fh&&Fh.isTypedArray,Vh=Bh?Lh(Bh):Dh,Uh=mh,Wh=$h,qh=oh,Kh=kh,Hh=Oh,Gh=Vh,Qh=Object.prototype.hasOwnProperty;var Jh=function(e,t){var r=qh(e),n=!r&&Wh(e),o=!r&&!n&&Kh(e),a=!r&&!n&&!o&&Gh(e),i=r||n||o||a,s=i?Uh(e.length,String):[],l=s.length;for(var u in e)!t&&!Qh.call(e,u)||i&&("length"==u||o&&("offset"==u||"parent"==u)||a&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||Hh(u,l))||s.push(u);return s},Yh=Object.prototype;var Xh=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Yh)},Zh=Bd(Object.keys,Object),em=Xh,tm=Zh,rm=Object.prototype.hasOwnProperty;var nm=function(e){if(!em(e))return tm(e);var t=[];for(var r in Object(e))rm.call(e,r)&&"constructor"!=r&&t.push(r);return t},om=Ef,am=Ph;var im=function(e){return null!=e&&am(e.length)&&!om(e)},sm=Jh,lm=nm,um=im;var cm=function(e){return um(e)?sm(e):lm(e)},dm=sh,fm=hh,pm=cm;var hm=function(e){return dm(e,pm,fm)},mm=hm,vm=Object.prototype.hasOwnProperty;var gm=function(e,t,r,n,o,a){var i=1&r,s=mm(e),l=s.length;if(l!=mm(t).length&&!i)return!1;for(var u=l;u--;){var c=s[u];if(!(i?c in t:vm.call(t,c)))return!1}var d=a.get(e),f=a.get(t);if(d&&f)return d==t&&f==e;var p=!0;a.set(e,t),a.set(t,e);for(var h=i;++u<l;){var m=e[c=s[u]],v=t[c];if(n)var g=i?n(v,m,c,t,e,a):n(m,v,c,e,t,a);if(!(void 0===g?m===v||o(m,v,r,n,a):g)){p=!1;break}h||(h="constructor"==c)}if(p&&!h){var y=e.constructor,b=t.constructor;y==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof y&&y instanceof y&&"function"==typeof b&&b instanceof b||(p=!1)}return a.delete(e),a.delete(t),p},ym=Wf(Cd,"DataView"),bm=Wf(Cd,"Promise"),wm=Wf(Cd,"Set"),Sm=ym,xm=qf,_m=bm,$m=wm,km=Wf(Cd,"WeakMap"),Em=Ld,jm=Nf,Cm="[object Map]",Om="[object Promise]",Pm="[object Set]",Nm="[object WeakMap]",Rm="[object DataView]",Tm=jm(Sm),Am=jm(xm),Im=jm(_m),Mm=jm($m),Fm=jm(km),zm=Em;(Sm&&zm(new Sm(new ArrayBuffer(1)))!=Rm||xm&&zm(new xm)!=Cm||_m&&zm(_m.resolve())!=Om||$m&&zm(new $m)!=Pm||km&&zm(new km)!=Nm)&&(zm=function(e){var t=Em(e),r="[object Object]"==t?e.constructor:void 0,n=r?jm(r):"";if(n)switch(n){case Tm:return Rm;case Am:return Cm;case Im:return Om;case Mm:return Pm;case Fm:return Nm}return t});var Dm=zm,Lm=Ip,Bm=Kp,Vm=rh,Um=gm,Wm=Dm,qm=oh,Km=kh,Hm=Vh,Gm="[object Arguments]",Qm="[object Array]",Jm="[object Object]",Ym=Object.prototype.hasOwnProperty;var Xm=function(e,t,r,n,o,a){var i=qm(e),s=qm(t),l=i?Qm:Wm(e),u=s?Qm:Wm(t),c=(l=l==Gm?Jm:l)==Jm,d=(u=u==Gm?Jm:u)==Jm,f=l==u;if(f&&Km(e)){if(!Km(t))return!1;i=!0,c=!1}if(f&&!c)return a||(a=new Lm),i||Hm(e)?Bm(e,t,r,n,o,a):Vm(e,t,l,r,n,o,a);if(!(1&r)){var p=c&&Ym.call(e,"__wrapped__"),h=d&&Ym.call(t,"__wrapped__");if(p||h){var m=p?e.value():e,v=h?t.value():t;return a||(a=new Lm),o(m,v,r,n,a)}}return!!f&&(a||(a=new Lm),Um(e,t,r,n,o,a))},Zm=Ud;var ev=function e(t,r,n,o,a){return t===r||(null==t||null==r||!Zm(t)&&!Zm(r)?t!=t&&r!=r:Xm(t,r,n,o,e,a))},tv=ev;var rv=function(e,t,r){var n=(r="function"==typeof r?r:void 0)?r(e,t):void 0;return void 0===n?tv(e,t,void 0,r):!!n};function nv(e,t){return rv(e,t,((e,t)=>{if("function"==typeof e&&"function"==typeof t)return!0}))}
|
|
22
|
+
/*! *****************************************************************************
|
|
23
|
+
Copyright (c) Microsoft Corporation.
|
|
24
|
+
|
|
25
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
26
|
+
purpose with or without fee is hereby granted.
|
|
27
|
+
|
|
28
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
29
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
30
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
31
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
32
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
33
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
34
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
35
|
+
***************************************************************************** */function ov(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}var av=Ld,iv=Ud;var sv=function(e){return"symbol"==typeof e||iv(e)&&"[object Symbol]"==av(e)},lv=oh,uv=sv,cv=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,dv=/^\w*$/;var fv=function(e,t){if(lv(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!uv(e))||(dv.test(e)||!cv.test(e)||null!=t&&e in Object(t))},pv=$p;function hv(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");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(hv.Cache||pv),r}hv.Cache=pv;var mv=hv;var vv=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,gv=/\\(\\)?/g,yv=function(e){var t=mv(e,(function(e){return 500===r.size&&r.clear(),e})),r=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(vv,(function(e,r,n,o){t.push(n?o.replace(gv,"$1"):r||e)})),t})),bv=yv;var wv=function(e,t){for(var r=-1,n=null==e?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o},Sv=wv,xv=oh,_v=sv,$v=Od?Od.prototype:void 0,kv=$v?$v.toString:void 0;var Ev=function e(t){if("string"==typeof t)return t;if(xv(t))return Sv(t,e)+"";if(_v(t))return kv?kv.call(t):"";var r=t+"";return"0"==r&&1/t==-Infinity?"-0":r},jv=Ev;var Cv=function(e){return null==e?"":jv(e)},Ov=oh,Pv=fv,Nv=bv,Rv=Cv;var Tv=function(e,t){return Ov(e)?e:Pv(e,t)?[e]:Nv(Rv(e))},Av=sv;var Iv=function(e){if("string"==typeof e||Av(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t},Mv=Tv,Fv=Iv;var zv=function(e,t){for(var r=0,n=(t=Mv(t,e)).length;null!=e&&r<n;)e=e[Fv(t[r++])];return r&&r==n?e:void 0},Dv=zv;var Lv=function(e,t,r){var n=null==e?void 0:Dv(e,t);return void 0===n?r:n},Bv=nm,Vv=Dm,Uv=$h,Wv=oh,qv=im,Kv=kh,Hv=Xh,Gv=Vh,Qv=Object.prototype.hasOwnProperty;var Jv=function(e){if(null==e)return!0;if(qv(e)&&(Wv(e)||"string"==typeof e||"function"==typeof e.splice||Kv(e)||Gv(e)||Uv(e)))return!e.length;var t=Vv(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(Hv(e))return!Bv(e).length;for(var r in e)if(Qv.call(e,r))return!1;return!0},Yv={},Xv=/~/,Zv=/~[01]/g;function eg(e){switch(e){case"~1":return"/";case"~0":return"~"}throw new Error("Invalid tilde escape: "+e)}function tg(e){return Xv.test(e)?e.replace(Zv,eg):e}function rg(e){if("string"==typeof e){if(""===(e=e.split("/"))[0])return e;throw new Error("Invalid JSON pointer.")}if(Array.isArray(e)){for(const t of e)if("string"!=typeof t&&"number"!=typeof t)throw new Error("Invalid JSON pointer. Must be of type string or number.");return e}throw new Error("Invalid JSON pointer.")}function ng(e,t){if("object"!=typeof e)throw new Error("Invalid input object.");var r=(t=rg(t)).length;if(1===r)return e;for(var n=1;n<r;){if(e=e[tg(t[n++])],r===n)return e;if("object"!=typeof e||null===e)return}}function og(e,t,r){if("object"!=typeof e)throw new Error("Invalid input object.");if(0===(t=rg(t)).length)throw new Error("Invalid JSON pointer for set.");return function(e,t,r){for(var n,o,a=1,i=t.length;a<i;){if("constructor"===t[a]||"prototype"===t[a]||"__proto__"===t[a])return e;if(n=tg(t[a++]),o=i>a,void 0===e[n]&&(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 void 0===r?delete e[n]:e[n]=r,s}(e,t,r)}Yv.get=ng,Yv.set=og,Yv.compile=function(e){var t=rg(e);return{get:function(e){return ng(e,t)},set:function(e,r){return og(e,t,r)}}};var ag=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););return e},ig=Wf,sg=function(){try{var e=ig(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),lg=sg;var ug=function(e,t,r){"__proto__"==t&&lg?lg(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r},cg=ug,dg=tf,fg=Object.prototype.hasOwnProperty;var pg=function(e,t,r){var n=e[t];fg.call(e,t)&&dg(n,r)&&(void 0!==r||t in e)||cg(e,t,r)},hg=pg,mg=ug;var vg=function(e,t,r,n){var o=!r;r||(r={});for(var a=-1,i=t.length;++a<i;){var s=t[a],l=n?n(r[s],e[s],s,r,e):void 0;void 0===l&&(l=e[s]),o?mg(r,s,l):hg(r,s,l)}return r},gg=vg,yg=cm;var bg=function(e,t){return e&&gg(t,yg(t),e)};var wg=xf,Sg=Xh,xg=function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t},_g=Object.prototype.hasOwnProperty;var $g=Jh,kg=function(e){if(!wg(e))return xg(e);var t=Sg(e),r=[];for(var n in e)("constructor"!=n||!t&&_g.call(e,n))&&r.push(n);return r},Eg=im;var jg=function(e){return Eg(e)?$g(e,!0):kg(e)},Cg=vg,Og=jg;var Pg=function(e,t){return e&&Cg(t,Og(t),e)},Ng={},Rg={get exports(){return Ng},set exports(e){Ng=e}};!function(e,t){var r=Cd,n=t&&!t.nodeType&&t,o=n&&e&&!e.nodeType&&e,a=o&&o.exports===n?r.Buffer:void 0,i=a?a.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var r=e.length,n=i?i(r):new e.constructor(r);return e.copy(n),n}}(Rg,Ng);var Tg=function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t},Ag=vg,Ig=hh;var Mg=function(e,t){return Ag(e,Ig(e),t)},Fg=nh,zg=Vd,Dg=hh,Lg=uh,Bg=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)Fg(t,Dg(e)),e=zg(e);return t}:Lg,Vg=vg,Ug=Bg;var Wg=function(e,t){return Vg(e,Ug(e),t)},qg=sh,Kg=Bg,Hg=jg;var Gg=function(e){return qg(e,Hg,Kg)},Qg=Object.prototype.hasOwnProperty;var Jg=function(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&&Qg.call(e,"index")&&(r.index=e.index,r.input=e.input),r},Yg=Hp;var Xg=function(e){var t=new e.constructor(e.byteLength);return new Yg(t).set(new Yg(e)),t},Zg=Xg;var ey=function(e,t){var r=t?Zg(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)},ty=/\w*$/;var ry=function(e){var t=new e.constructor(e.source,ty.exec(e));return t.lastIndex=e.lastIndex,t},ny=Od?Od.prototype:void 0,oy=ny?ny.valueOf:void 0;var ay=Xg;var iy=function(e,t){var r=t?ay(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)},sy=Xg,ly=ey,uy=ry,cy=function(e){return oy?Object(oy.call(e)):{}},dy=iy;var fy=function(e,t,r){var n=e.constructor;switch(t){case"[object ArrayBuffer]":return sy(e);case"[object Boolean]":case"[object Date]":return new n(+e);case"[object DataView]":return ly(e,r);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return dy(e,r);case"[object Map]":case"[object Set]":return new n;case"[object Number]":case"[object String]":return new n(e);case"[object RegExp]":return uy(e);case"[object Symbol]":return cy(e)}},py=xf,hy=Object.create,my=function(){function e(){}return function(t){if(!py(t))return{};if(hy)return hy(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}(),vy=my,gy=Vd,yy=Xh;var by=function(e){return"function"!=typeof e.constructor||yy(e)?{}:vy(gy(e))},wy=Dm,Sy=Ud;var xy=function(e){return Sy(e)&&"[object Map]"==wy(e)},_y=Mh,$y=Fh&&Fh.isMap,ky=$y?_y($y):xy,Ey=Dm,jy=Ud;var Cy=function(e){return jy(e)&&"[object Set]"==Ey(e)},Oy=Mh,Py=Fh&&Fh.isSet,Ny=Py?Oy(Py):Cy,Ry=Ip,Ty=ag,Ay=pg,Iy=bg,My=Pg,Fy=Ng,zy=Tg,Dy=Mg,Ly=Wg,By=hm,Vy=Gg,Uy=Dm,Wy=Jg,qy=fy,Ky=by,Hy=oh,Gy=kh,Qy=ky,Jy=xf,Yy=Ny,Xy=cm,Zy=jg,eb="[object Arguments]",tb="[object Function]",rb="[object Object]",nb={};nb[eb]=nb["[object Array]"]=nb["[object ArrayBuffer]"]=nb["[object DataView]"]=nb["[object Boolean]"]=nb["[object Date]"]=nb["[object Float32Array]"]=nb["[object Float64Array]"]=nb["[object Int8Array]"]=nb["[object Int16Array]"]=nb["[object Int32Array]"]=nb["[object Map]"]=nb["[object Number]"]=nb[rb]=nb["[object RegExp]"]=nb["[object Set]"]=nb["[object String]"]=nb["[object Symbol]"]=nb["[object Uint8Array]"]=nb["[object Uint8ClampedArray]"]=nb["[object Uint16Array]"]=nb["[object Uint32Array]"]=!0,nb["[object Error]"]=nb[tb]=nb["[object WeakMap]"]=!1;var ob=function e(t,r,n,o,a,i){var s,l=1&r,u=2&r,c=4&r;if(n&&(s=a?n(t,o,a,i):n(t)),void 0!==s)return s;if(!Jy(t))return t;var d=Hy(t);if(d){if(s=Wy(t),!l)return zy(t,s)}else{var f=Uy(t),p=f==tb||"[object GeneratorFunction]"==f;if(Gy(t))return Fy(t,l);if(f==rb||f==eb||p&&!a){if(s=u||p?{}:Ky(t),!l)return u?Ly(t,My(s,t)):Dy(t,Iy(s,t))}else{if(!nb[f])return a?t:{};s=qy(t,f,l)}}i||(i=new Ry);var h=i.get(t);if(h)return h;i.set(t,s),Yy(t)?t.forEach((function(o){s.add(e(o,r,n,o,t,i))})):Qy(t)&&t.forEach((function(o,a){s.set(a,e(o,r,n,a,t,i))}));var m=d?void 0:(c?u?Vy:By:u?Zy:Xy)(t);return Ty(m||t,(function(o,a){m&&(o=t[a=o]),Ay(s,a,e(o,r,n,a,t,i))})),s};var ab=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0};var ib=function(e,t,r){var n=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(r=r>o?o:r)<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var a=Array(o);++n<o;)a[n]=e[n+t];return a},sb=zv,lb=ib;var ub=Tv,cb=ab,db=function(e,t){return t.length<2?e:sb(e,lb(t,0,-1))},fb=Iv;var pb=function(e,t){return t=ub(t,e),null==(e=db(e,t))||delete e[fb(cb(t))]},hb=Xd;var mb=function(e){return hb(e)?void 0:e},vb=$h,gb=oh,yb=Od?Od.isConcatSpreadable:void 0;var bb=nh,wb=function(e){return gb(e)||vb(e)||!!(yb&&e&&e[yb])};var Sb=function e(t,r,n,o,a){var i=-1,s=t.length;for(n||(n=wb),a||(a=[]);++i<s;){var l=t[i];r>0&&n(l)?r>1?e(l,r-1,n,o,a):bb(a,l):o||(a[a.length]=l)}return a},xb=Sb;var _b=function(e){return(null==e?0:e.length)?xb(e,1):[]};var $b=function(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)},kb=$b,Eb=Math.max;var jb=function(e,t,r){return t=Eb(void 0===t?e.length-1:t,0),function(){for(var n=arguments,o=-1,a=Eb(n.length-t,0),i=Array(a);++o<a;)i[o]=n[t+o];o=-1;for(var s=Array(t+1);++o<t;)s[o]=n[o];return s[t]=r(i),kb(e,this,s)}};var Cb=function(e){return e},Ob=function(e){return function(){return e}},Pb=sg,Nb=Pb?function(e,t){return Pb(e,"toString",{configurable:!0,enumerable:!1,value:Ob(t),writable:!0})}:Cb,Rb=Date.now;var Tb=function(e){var t=0,r=0;return function(){var n=Rb(),o=16-(n-r);if(r=n,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}},Ab=Tb(Nb),Ib=_b,Mb=jb,Fb=Ab;var zb=function(e){return Fb(Mb(e,void 0,Ib),e+"")},Db=wv,Lb=ob,Bb=pb,Vb=Tv,Ub=vg,Wb=mb,qb=Gg,Kb=zb((function(e,t){var r={};if(null==e)return r;var n=!1;t=Db(t,(function(t){return t=Vb(t,e),n||(n=t.length>1),t})),Ub(e,qb(e),r),n&&(r=Lb(r,7,Wb));for(var o=t.length;o--;)Bb(r,t[o]);return r})),Hb=Kb;function Gb(e,t){const r=t[e];return[Hb(t,[e]),r]}function Qb(e,t={}){let r=e||"";if(!r.startsWith("#"))throw new Error(`Could not find a definition for ${e}.`);r=decodeURIComponent(r.substring(1));const n=Yv.get(t,r);if(void 0===n)throw new Error(`Could not find a definition for ${e}.`);if(n[yd]){const[e,r]=Gb(yd,n),o=Qb(r,t);return Object.keys(e).length>0?Object.assign(Object.assign({},e),o):o}return n}var Jb=Object.prototype.hasOwnProperty;var Yb=Tv,Xb=$h,Zb=oh,ew=Oh,tw=Ph,rw=Iv;var nw=function(e,t,r){for(var n=-1,o=(t=Yb(t,e)).length,a=!1;++n<o;){var i=rw(t[n]);if(!(a=null!=e&&r(e,i)))break;e=e[i]}return a||++n!=o?a:!!(o=null==e?0:e.length)&&tw(o)&&ew(i,o)&&(Zb(e)||Xb(e))},ow=function(e,t){return null!=e&&Jb.call(e,t)},aw=nw;var iw=function(e,t){return null!=e&&aw(e,t,ow)},sw=Ld,lw=oh,uw=Ud;var cw=function(e){return"string"==typeof e||!lw(e)&&uw(e)&&"[object String]"==sw(e)};var dw=function(e,t,r,n){var o=-1,a=null==e?0:e.length;for(n&&a&&(r=e[++o]);++o<a;)r=t(r,e[o],o,e);return r};var fw=function(e){return function(t,r,n){for(var o=-1,a=Object(t),i=n(t),s=i.length;s--;){var l=i[e?s:++o];if(!1===r(a[l],l,a))break}return t}},pw=fw(),hw=pw,mw=cm;var vw=function(e,t){return e&&hw(e,t,mw)},gw=im;var yw=function(e,t){return function(r,n){if(null==r)return r;if(!gw(r))return e(r,n);for(var o=r.length,a=t?o:-1,i=Object(r);(t?a--:++a<o)&&!1!==n(i[a],a,i););return r}},bw=yw(vw),ww=Ip,Sw=ev;var xw=function(e,t,r,n){var o=r.length,a=o,i=!n;if(null==e)return!a;for(e=Object(e);o--;){var s=r[o];if(i&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++o<a;){var l=(s=r[o])[0],u=e[l],c=s[1];if(i&&s[2]){if(void 0===u&&!(l in e))return!1}else{var d=new ww;if(n)var f=n(u,c,l,e,t,d);if(!(void 0===f?Sw(c,u,3,n,d):f))return!1}}return!0},_w=xf;var $w=function(e){return e==e&&!_w(e)},kw=$w,Ew=cm;var jw=function(e){for(var t=Ew(e),r=t.length;r--;){var n=t[r],o=e[n];t[r]=[n,o,kw(o)]}return t};var Cw=function(e,t){return function(r){return null!=r&&(r[e]===t&&(void 0!==t||e in Object(r)))}},Ow=xw,Pw=jw,Nw=Cw;var Rw=function(e,t){return null!=e&&t in Object(e)},Tw=nw;var Aw=function(e,t){return null!=e&&Tw(e,t,Rw)},Iw=ev,Mw=Lv,Fw=Aw,zw=fv,Dw=$w,Lw=Cw,Bw=Iv;var Vw=zv;var Uw=function(e){return function(t){return null==t?void 0:t[e]}},Ww=function(e){return function(t){return Vw(t,e)}},qw=fv,Kw=Iv;var Hw=function(e){var t=Pw(e);return 1==t.length&&t[0][2]?Nw(t[0][0],t[0][1]):function(r){return r===e||Ow(r,e,t)}},Gw=function(e,t){return zw(e)&&Dw(t)?Lw(Bw(e),t):function(r){var n=Mw(r,e);return void 0===n&&n===t?Fw(r,e):Iw(t,n,3)}},Qw=Cb,Jw=oh,Yw=function(e){return qw(e)?Uw(Kw(e)):Ww(e)};var Xw=function(e){return"function"==typeof e?e:null==e?Qw:"object"==typeof e?Jw(e)?Gw(e[0],e[1]):Hw(e):Yw(e)};var Zw=dw,eS=bw,tS=Xw,rS=function(e,t,r,n,o){return o(e,(function(e,o,a){r=n?(n=!1,e):t(r,e,o,a)})),r},nS=oh;var oS=function(e,t,r){var n=nS(e)?Zw:rS,o=arguments.length<3;return n(e,tS(t),r,o,eS)},aS=Cb;var iS=function(e){return"function"==typeof e?e:aS},sS=/\s/;var lS=function(e){for(var t=e.length;t--&&sS.test(e.charAt(t)););return t},uS=/^\s+/;var cS=function(e){return e?e.slice(0,lS(e)+1).replace(uS,""):e},dS=xf,fS=sv,pS=/^[-+]0x[0-9a-f]+$/i,hS=/^0b[01]+$/i,mS=/^0o[0-7]+$/i,vS=parseInt;var gS=function(e){if("number"==typeof e)return e;if(fS(e))return NaN;if(dS(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=dS(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=cS(e);var r=hS.test(e);return r||mS.test(e)?vS(e.slice(2),r?2:8):pS.test(e)?NaN:+e},yS=1/0;var bS=function(e){return e?(e=gS(e))===yS||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0};var wS=mh,SS=iS,xS=function(e){var t=bS(e),r=t%1;return t==t?r?t-r:t:0},_S=4294967295,$S=Math.min;var kS=function(e,t){if((e=xS(e))<1||e>9007199254740991)return[];var r=_S,n=$S(e,_S);t=SS(t),e-=_S;for(var o=wS(n,t);++r<e;)t(r);return o};function ES(e,t,r,n,o){if(void 0===t)return 0;for(let a=0;a<r.length;a++){const i=r[a];if(o&&iw(i,[md,o])){const r=Lv(t,o),s=Lv(i,[md,o],{});if(e.isValid(s,r,n))return a}else if(i[md]){const r={anyOf:Object.keys(i[md]).map((e=>({required:[e]})))};let o;if(i.anyOf){const e=ov(i,[]);e.allOf?e.allOf=e.allOf.slice():e.allOf=[],e.allOf.push(r),o=e}else o=Object.assign({},i,r);if(delete o.required,e.isValid(o,t,n))return a}else if(e.isValid(i,t,n))return a}return 0}function jS(e,t,r,n,o){return ES(e,t,r,n,o)}var CS=pg,OS=Tv,PS=Oh,NS=xf,RS=Iv;var TS=function(e,t,r,n){if(!NS(e))return e;for(var o=-1,a=(t=OS(t,e)).length,i=a-1,s=e;null!=s&&++o<a;){var l=RS(t[o]),u=r;if("__proto__"===l||"constructor"===l||"prototype"===l)return e;if(o!=i){var c=s[l];void 0===(u=n?n(c,l,s):void 0)&&(u=NS(c)?c:PS(t[o+1])?[]:{})}CS(s,l,u),s=s[l]}return e},AS=TS;var IS=function(e,t,r){return null==e?e:AS(e,t,r)},MS=ag,FS=my,zS=vw,DS=Xw,LS=Vd,BS=oh,VS=kh,US=Ef,WS=xf,qS=Vh;var KS=function(e,t,r){var n=BS(e),o=n||VS(e)||qS(e);if(t=DS(t),null==r){var a=e&&e.constructor;r=o?n?new a:[]:WS(e)&&US(a)?FS(LS(e)):{}}return(o?MS:zS)(e,(function(e,n,o){return t(r,e,n,o)})),r},HS=ob;var GS=function(e){return HS(e,5)},QS=ev;var JS=function(e,t){return QS(e,t)},YS=bw,XS=im;var ZS=function(e,t){var r=e.length;for(e.sort(t);r--;)e[r]=e[r].value;return e},ex=sv;var tx=function(e,t){if(e!==t){var r=void 0!==e,n=null===e,o=e==e,a=ex(e),i=void 0!==t,s=null===t,l=t==t,u=ex(t);if(!s&&!u&&!a&&e>t||a&&i&&l&&!s&&!u||n&&i&&l||!r&&l||!o)return 1;if(!n&&!a&&!u&&e<t||u&&r&&o&&!n&&!a||s&&r&&o||!i&&o||!l)return-1}return 0};var rx=function(e,t,r){for(var n=-1,o=e.criteria,a=t.criteria,i=o.length,s=r.length;++n<i;){var l=tx(o[n],a[n]);if(l)return n>=s?l:l*("desc"==r[n]?-1:1)}return e.index-t.index},nx=wv,ox=zv,ax=Xw,ix=function(e,t){var r=-1,n=XS(e)?Array(e.length):[];return YS(e,(function(e,o,a){n[++r]=t(e,o,a)})),n},sx=ZS,lx=Mh,ux=rx,cx=Cb,dx=oh;var fx=Cb,px=jb,hx=Ab;var mx=function(e,t){return hx(px(e,t,fx),e+"")},vx=tf,gx=im,yx=Oh,bx=xf;var wx=function(e,t,r){if(!bx(r))return!1;var n=typeof t;return!!("number"==n?gx(r)&&yx(t,r.length):"string"==n&&t in r)&&vx(r[t],e)},Sx=Sb,xx=function(e,t,r){t=t.length?nx(t,(function(e){return dx(e)?function(t){return ox(t,1===e.length?e[0]:e)}:e})):[cx];var n=-1;t=nx(t,lx(ax));var o=ix(e,(function(e,r,o){return{criteria:nx(t,(function(t){return t(e)})),index:++n,value:e}}));return sx(o,(function(e,t){return ux(e,t,r)}))},_x=wx,$x=mx((function(e,t){if(null==e)return[];var r=t.length;return r>1&&_x(e,t[0],t[1])?t=[]:r>2&&_x(t[0],t[1],t[2])&&(t=[t[0]]),xx(e,Sx(t,1),[])})),kx=$x;var Ex=function(e,t,r,n){for(var o=e.length,a=r+(n?1:-1);n?a--:++a<o;)if(t(e[a],a,e))return a;return-1};var jx=function(e,t,r){for(var n=r-1,o=e.length;++n<o;)if(e[n]===t)return n;return-1},Cx=Ex,Ox=function(e){return e!=e},Px=jx;var Nx=function(e,t,r){return t==t?Px(e,t,r):Cx(e,Ox,r)},Rx=Nx;var Tx=function(e,t){return!!(null==e?0:e.length)&&Rx(e,t,0)>-1};var Ax=function(e,t,r){for(var n=-1,o=null==e?0:e.length;++n<o;)if(r(t,e[n]))return!0;return!1};var Ix=wm,Mx=function(){},Fx=Ix&&1/Gp(new Ix([,-0]))[1]==1/0?function(e){return new Ix(e)}:Mx,zx=Lp,Dx=Tx,Lx=Ax,Bx=Vp,Vx=Fx,Ux=Gp;var Wx=function(e,t,r){var n=-1,o=Dx,a=e.length,i=!0,s=[],l=s;if(r)i=!1,o=Lx;else if(a>=200){var u=t?null:Vx(e);if(u)return Ux(u);i=!1,o=Bx,l=new zx}else l=t?[]:s;e:for(;++n<a;){var c=e[n],d=t?t(c):c;if(c=r||0!==c?c:0,i&&d==d){for(var f=l.length;f--;)if(l[f]===d)continue e;t&&l.push(d),s.push(c)}else o(l,d,r)||(l!==s&&l.push(d),s.push(c))}return s},qx=Wx;var Kx=function(e){return e&&e.length?qx(e):[]},Hx=Wx;var Gx=function(e,t){return t="function"==typeof t?t:void 0,e&&e.length?Hx(e,void 0,t):[]},Qx=mx,Jx=tf,Yx=wx,Xx=jg,Zx=Object.prototype,e_=Zx.hasOwnProperty,t_=Qx((function(e,t){e=Object(e);var r=-1,n=t.length,o=n>2?t[2]:void 0;for(o&&Yx(t[0],t[1],o)&&(n=1);++r<n;)for(var a=t[r],i=Xx(a),s=-1,l=i.length;++s<l;){var u=i[s],c=e[u];(void 0===c||Jx(c,Zx[u])&&!e_.call(e,u))&&(e[u]=a[u])}return e})),r_=t_,n_=Lp,o_=Tx,a_=Ax,i_=wv,s_=Mh,l_=Vp,u_=Math.min;var c_=function(e,t,r){for(var n=r?a_:o_,o=e[0].length,a=e.length,i=a,s=Array(a),l=1/0,u=[];i--;){var c=e[i];i&&t&&(c=i_(c,s_(t))),l=u_(c.length,l),s[i]=!r&&(t||o>=120&&c.length>=120)?new n_(i&&c):void 0}c=e[0];var d=-1,f=s[0];e:for(;++d<o&&u.length<l;){var p=c[d],h=t?t(p):p;if(p=r||0!==p?p:0,!(f?l_(f,h):n(u,h,r))){for(i=a;--i;){var m=s[i];if(!(m?l_(m,h):n(e[i],h,r)))continue e}f&&f.push(h),u.push(p)}}return u},d_=im,f_=Ud;var p_=function(e){return f_(e)&&d_(e)},h_=p_;var m_=function(e){return h_(e)?e:[]},v_=wv,g_=c_,y_=m_,b_=ab,w_=mx((function(e){var t=b_(e),r=v_(e,y_);return(t="function"==typeof t?t:void 0)&&r.pop(),r.length&&r[0]===e[0]?g_(r,void 0,t):[]})),S_=Ld,x_=Ud;var __=JS,$_=kx,k_=Kx,E_=Gx,j_=r_,C_=w_,O_=Xd,P_=function(e){return!0===e||!1===e||x_(e)&&"[object Boolean]"==S_(e)},N_=e=>Array.isArray(e)?e:[e],R_=e=>void 0===e,T_=e=>O_(e)||Array.isArray(e)?Object.keys(e):[],A_=(e,t)=>e.hasOwnProperty(t),I_=e=>$_(k_(e)),M_=e=>R_(e)||Array.isArray(e)&&0===e.length,F_=(e,t,r,n)=>t&&A_(t,r)&&e&&A_(e,r)&&n(e[r],t[r]),z_=(e,t)=>R_(e)&&0===t||R_(t)&&0===e||__(e,t),D_=e=>R_(e)||__(e,{})||!0===e,L_=e=>R_(e)||__(e,{}),B_=e=>R_(e)||O_(e)||!0===e||!1===e;function V_(e,t){return!(!M_(e)||!M_(t))||__(I_(e),I_(t))}function U_(e,t,r,n){var o=k_(T_(e).concat(T_(t)));return!(!L_(e)||!L_(t))||(!L_(e)||!T_(t).length)&&((!L_(t)||!T_(e).length)&&o.every((function(r){var o=e[r],a=t[r];return Array.isArray(o)&&Array.isArray(a)?__(I_(e),I_(t)):!(Array.isArray(o)&&!Array.isArray(a))&&(!(Array.isArray(a)&&!Array.isArray(o))&&F_(e,t,r,n))})))}function W_(e,t,r,n){var o=E_(e,n),a=E_(t,n);return C_(o,a,n).length===Math.max(o.length,a.length)}var q_={title:__,uniqueItems:(e,t)=>R_(e)&&!1===t||R_(t)&&!1===e||__(e,t),minLength:z_,minItems:z_,minProperties:z_,required:V_,enum:V_,type:function(e,t){return e=N_(e),t=N_(t),__(I_(e),I_(t))},items:function(e,t,r,n){return O_(e)&&O_(t)?n(e,t):Array.isArray(e)&&Array.isArray(t)?U_(e,t,0,n):__(e,t)},anyOf:W_,allOf:W_,oneOf:W_,properties:U_,patternProperties:U_,dependencies:U_},K_=["properties","patternProperties","dependencies","uniqueItems","minLength","minItems","minProperties","required"],H_=["additionalProperties","additionalItems","contains","propertyNames","not"];var G_=function e(t,r,n){if(n=j_(n,{ignore:[]}),D_(t)&&D_(r))return!0;if(!B_(t)||!B_(r))throw new Error("Either of the values are not a JSON schema.");if(t===r)return!0;if(P_(t)&&P_(r))return t===r;if(void 0===t&&!1===r||void 0===r&&!1===t)return!1;if(R_(t)&&!R_(r)||!R_(t)&&R_(r))return!1;var o=k_(Object.keys(t).concat(Object.keys(r)));if(n.ignore.length&&(o=o.filter((e=>-1===n.ignore.indexOf(e)))),!o.length)return!0;function a(t,r){return e(t,r,n)}return o.every((function(o){var i=t[o],s=r[o];if(-1!==H_.indexOf(o))return e(i,s,n);var l=q_[o];if(l||(l=__),__(i,s))return!0;if(-1===K_.indexOf(o)&&(!A_(t,o)&&A_(r,o)||A_(t,o)&&!A_(r,o)))return i===s;var u=l(i,s,o,a);if(!P_(u))throw new Error("Comparer must return true or false");return u}))};var Q_=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};var J_=function(e){return("number"==typeof e||"[object Number]"===Object.prototype.toString.call(e))&&e.valueOf()==e.valueOf()};var Y_=Q_,X_=function(e){return J_(e)&&e%1==0};var Z_=function(e){var t;if(!Y_(e))return!1;if(!(t=e.length))return!1;for(var r=0;r<t;r++)if(!X_(e[r]))return!1;return!0};var e$=function(e){return"function"==typeof e},t$=Q_,r$=Z_,n$=e$,o$=Math.pow(2,31)-1;function a$(e,t){var r,n=1;if(0===e)return t;if(0===t)return e;for(;e%2==0&&t%2==0;)e/=2,t/=2,n*=2;for(;e%2==0;)e/=2;for(;t;){for(;t%2==0;)t/=2;e>t&&(r=t,t=e,e=r),t-=e}return n*e}function i$(e,t){var r,n=0;if(0===e)return t;if(0===t)return e;for(;0==(1&e)&&0==(1&t);)e>>>=1,t>>>=1,n++;for(;0==(1&e);)e>>>=1;for(;t;){for(;0==(1&t);)t>>>=1;e>t&&(r=t,t=e,e=r),t-=e}return e<<n}var s$=function(){var e,t,r,n,o,a,i,s=arguments.length;for(e=new Array(s),i=0;i<s;i++)e[i]=arguments[i];if(r$(e)){if(2===s)return(o=e[0])<0&&(o=-o),(a=e[1])<0&&(a=-a),o<=o$&&a<=o$?i$(o,a):a$(o,a);r=e}else{if(!t$(e[0]))throw new TypeError("gcd()::invalid input argument. Must provide an array of integers. Value: `"+e[0]+"`.");if(s>1){if(r=e[0],t=e[1],!n$(t))throw new TypeError("gcd()::invalid input argument. Accessor must be a function. Value: `"+t+"`.")}else r=e[0]}if((n=r.length)<2)return null;if(t){for(o=new Array(n),i=0;i<n;i++)o[i]=t(r[i],i);r=o}if(s<3&&!r$(r))throw new TypeError("gcd()::invalid input argument. Accessed array values must be integers. Value: `"+r+"`.");for(i=0;i<n;i++)(o=r[i])<0&&(r[i]=-o);for(o=r[0],i=1;i<n;i++)o=(a=r[i])<=o$&&o<=o$?i$(o,a):a$(o,a);return o},l$=s$,u$=Q_,c$=Z_,d$=e$;var f$=function(){var e,t,r,n,o,a,i,s=arguments.length;for(e=new Array(s),i=0;i<s;i++)e[i]=arguments[i];if(c$(e)){if(2===s)return(o=e[0])<0&&(o=-o),(a=e[1])<0&&(a=-a),0===o||0===a?0:o/l$(o,a)*a;r=e}else{if(!u$(e[0]))throw new TypeError("lcm()::invalid input argument. Must provide an array of integers. Value: `"+e[0]+"`.");if(s>1){if(r=e[0],t=e[1],!d$(t))throw new TypeError("lcm()::invalid input argument. Accessor must be a function. Value: `"+t+"`.")}else r=e[0]}if((n=r.length)<2)return null;if(t){for(o=new Array(n),i=0;i<n;i++)o[i]=t(r[i],i);r=o}if(s<3&&!c$(r))throw new TypeError("lcm()::invalid input argument. Accessed array values must be integers. Value: `"+r+"`.");for(i=0;i<n;i++)(o=r[i])<0&&(r[i]=-o);for(o=r[0],i=1;i<n;i++){if(a=r[i],0===o||0===a)return 0;o=o/l$(o,a)*a}return o},p$=ug,h$=tf;var m$=function(e,t,r){(void 0!==r&&!h$(e[t],r)||void 0===r&&!(t in e))&&p$(e,t,r)};var v$=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]},g$=vg,y$=jg;var b$=m$,w$=Ng,S$=iy,x$=Tg,_$=by,$$=$h,k$=oh,E$=p_,j$=kh,C$=Ef,O$=xf,P$=Xd,N$=Vh,R$=v$,T$=function(e){return g$(e,y$(e))};var A$=Ip,I$=m$,M$=pw,F$=function(e,t,r,n,o,a,i){var s=R$(e,r),l=R$(t,r),u=i.get(l);if(u)b$(e,r,u);else{var c=a?a(s,l,r+"",e,t,i):void 0,d=void 0===c;if(d){var f=k$(l),p=!f&&j$(l),h=!f&&!p&&N$(l);c=l,f||p||h?k$(s)?c=s:E$(s)?c=x$(s):p?(d=!1,c=w$(l,!0)):h?(d=!1,c=S$(l,!0)):c=[]:P$(l)||$$(l)?(c=s,$$(s)?c=T$(s):O$(s)&&!C$(s)||(c=_$(l))):d=!1}d&&(i.set(l,c),o(c,l,n,a,i),i.delete(l)),b$(e,r,c)}},z$=xf,D$=jg,L$=v$;var B$=function e(t,r,n,o,a){t!==r&&M$(r,(function(i,s){if(a||(a=new A$),z$(i))F$(t,r,s,n,e,o,a);else{var l=o?o(L$(t,s),i,s+"",t,r,a):void 0;void 0===l&&(l=i),I$(t,s,l)}}),D$)},V$=B$,U$=xf;var W$=function e(t,r,n,o,a,i){return U$(t)&&U$(r)&&(i.set(r,t),V$(t,r,void 0,e,i),i.delete(r)),t},q$=mx,K$=wx;var H$=function(e){return q$((function(t,r){var n=-1,o=r.length,a=o>1?r[o-1]:void 0,i=o>2?r[2]:void 0;for(a=e.length>3&&"function"==typeof a?(o--,a):void 0,i&&K$(r[0],r[1],i)&&(a=o<3?void 0:a,o=1),t=Object(t);++n<o;){var s=r[n];s&&e(t,s,n,a)}return t}))},G$=B$,Q$=H$((function(e,t,r,n){G$(e,t,r,n)})),J$=$b,Y$=W$,X$=Q$,Z$=mx((function(e){return e.push(void 0,Y$),J$(X$,void 0,e)})),ek=Sb;var tk=function(e){return(null==e?0:e.length)?ek(e,Infinity):[]},rk=wv,nk=c_,ok=m_,ak=mx((function(e){var t=rk(e,ok);return t.length&&t[0]===e[0]?nk(t):[]}));var ik=function(e,t,r,n){for(var o=r-1,a=e.length;++o<a;)if(n(e[o],t))return o;return-1},sk=wv,lk=Nx,uk=ik,ck=Mh,dk=Tg,fk=Array.prototype.splice;var pk=function(e,t,r,n){var o=n?uk:lk,a=-1,i=t.length,s=e;for(e===t&&(t=dk(t)),r&&(s=sk(e,ck(r)));++a<i;)for(var l=0,u=t[a],c=r?r(u):u;(l=o(s,c,l,n))>-1;)s!==e&&fk.call(s,l,1),fk.call(e,l,1);return e},hk=pk;var mk=function(e,t){return e&&e.length&&t&&t.length?hk(e,t):e},vk=ag,gk=bw,yk=iS,bk=oh;var wk=function(e,t){return(bk(e)?vk:gk)(e,yk(t))},Sk=Lp,xk=Tx,_k=Ax,$k=wv,kk=Mh,Ek=Vp;var jk=function(e,t,r,n){var o=-1,a=xk,i=!0,s=e.length,l=[],u=t.length;if(!s)return l;r&&(t=$k(t,kk(r))),n?(a=_k,i=!1):t.length>=200&&(a=Ek,i=!1,t=new Sk(t));e:for(;++o<s;){var c=e[o],d=null==r?c:r(c);if(c=n||0!==c?c:0,i&&d==d){for(var f=u;f--;)if(t[f]===d)continue e;l.push(c)}else a(t,d,n)||l.push(c)}return l},Ck=jk,Ok=p_,Pk=mx((function(e,t){return Ok(e)?Ck(e,t):[]}));const Nk=_b,Rk=tk,Tk=Xd,Ak=Kx,Ik=Pk;const Mk=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),Fk=e=>Tk(e)||Array.isArray(e)?Object.keys(e):[],zk=e=>!Fk(e).length&&!1!==e&&!0!==e;var Dk={allUniqueKeys:e=>Ak(Rk(e.map(Fk))),deleteUndefinedProps:function(e){for(const t in e)Mk(e,t)&&zk(e[t])&&delete e[t];return e},getValues:(e,t)=>e.map((e=>e&&e[t])),has:Mk,isEmptySchema:zk,isSchema:e=>Tk(e)||!0===e||!1===e,keys:Fk,notUndefined:e=>void 0!==e,uniqWith:Gx,withoutArr:(e,...t)=>Ik.apply(null,[e].concat(Nk(t)))};const Lk=G_,Bk=wk,{allUniqueKeys:Vk,deleteUndefinedProps:Uk,getValues:Wk,keys:qk,notUndefined:Kk,uniqWith:Hk,withoutArr:Gk}=Dk;function Qk(e,t){return Vk(e).reduce((function(r,n){const o=Wk(e,n),a=Hk(o.filter(Kk),Lk);return r[n]=t(a,n),r}),{})}var Jk={keywords:["properties","patternProperties","additionalProperties"],resolver(e,t,r,n){n.ignoreAdditionalProperties||(e.forEach((function(t){const n=e.filter((e=>e!==t)),o=qk(t.properties),a=qk(t.patternProperties).map((e=>new RegExp(e)));n.forEach((function(e){const n=qk(e.properties),i=n.filter((e=>a.some((t=>t.test(e)))));Gk(n,o,i).forEach((function(n){e.properties[n]=r.properties([e.properties[n],t.additionalProperties],n)}))}))})),e.forEach((function(t){const r=e.filter((e=>e!==t)),n=qk(t.patternProperties);!1===t.additionalProperties&&r.forEach((function(e){const t=qk(e.patternProperties);Gk(t,n).forEach((t=>delete e.patternProperties[t]))}))})));const o={additionalProperties:r.additionalProperties(e.map((e=>e.additionalProperties))),patternProperties:Qk(e.map((e=>e.patternProperties)),r.patternProperties),properties:Qk(e.map((e=>e.properties)),r.properties)};var a;return!1===o.additionalProperties&&Bk(a=o.properties,(function(e,t){!1===e&&delete a[t]})),Uk(o)}};const Yk=G_,Xk=wk,{allUniqueKeys:Zk,deleteUndefinedProps:eE,has:tE,isSchema:rE,notUndefined:nE,uniqWith:oE}=Dk;function aE(e,t,r){return Zk(r).reduce((function(r,n){const o=function(e,t){return e.map((function(e){if(e){if(!Array.isArray(e.items))return e.items;{const r=e.items[t];if(rE(r))return r;if(tE(e,"additionalItems"))return e.additionalItems}}}))}(e,n),a=oE(o.filter(nE),Yk);return r[n]=t(a,n),r}),[])}var iE={keywords:["items","additionalItems"],resolver(e,t,r){const n=e.map((e=>e.items)),o=n.filter(nE),a={};let i;var s;return o.every(rE)?a.items=r.items(n):a.items=aE(e,r.items,n),o.every(Array.isArray)?i=e.map((e=>e.additionalItems)):o.some(Array.isArray)&&(i=e.map((function(e){if(e)return Array.isArray(e.items)?e.additionalItems:e.items}))),i&&(a.additionalItems=r.additionalItems(i)),!1===a.additionalItems&&Array.isArray(a.items)&&(s=a.items,Xk(s,(function(e,t){!1===e&&s.splice(t,1)}))),eE(a)}};const sE=GS,lE=G_,uE=f$,cE=Z$,dE=_b,fE=tk,pE=ak,hE=w_,mE=JS,vE=Xd,gE=mk,yE=kx,bE=Kx,wE=Gx,SE=Jk,xE=iE,_E=(e,t)=>-1!==e.indexOf(t),$E=e=>vE(e)||!0===e||!1===e,kE=e=>!1===e,EE=e=>!0===e,jE=(e,t,r)=>r(e),CE=e=>yE(bE(fE(e))),OE=e=>void 0!==e,PE=e=>bE(fE(e.map(ME))),NE=e=>e[0],RE=e=>Math.max.apply(Math,e),TE=e=>Math.min.apply(Math,e);function AE(e){let{allOf:t=[],...r}=e;return r=vE(e)?r:e,[r,...t.map(AE)]}function IE(e,t){return e.map((e=>e&&e[t]))}function ME(e){return vE(e)||Array.isArray(e)?Object.keys(e):[]}function FE(e,t){if(t=t||[],!e.length)return t;const r=e.slice(0).shift(),n=e.slice(1);return t.length?FE(n,dE(t.map((e=>r.map((t=>[t].concat(e))))))):FE(n,r.map((e=>e)))}function zE(e,t){let r;try{r=e.map((function(e){return JSON.stringify(e,null,2)})).join("\n")}catch(t){r=e.join(", ")}throw new Error('Could not resolve values for path:"'+t.join(".")+'". They are probably incompatible. Values: \n'+r)}function DE(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((t=>e.reduce(((e,r)=>(void 0!==t[r]&&(e[r]=t[r]),e)),{}))),l=wE(s,lE),u=i.keywords.reduce(((e,t)=>({...e,[t]:(e,r=[])=>n(e,null,a.concat(t,r))})),{}),c=i.resolver(l,a.concat(t),u,o);return vE(c)||zE(l,a.concat(t)),c}}function LE(e){return{required:e}}const BE=["properties","patternProperties","definitions","dependencies"],VE=["anyOf","oneOf"],UE=["additionalProperties","additionalItems","contains","propertyNames","not","items"],WE={type(e){if(e.some(Array.isArray)){const t=e.map((function(e){return Array.isArray(e)?e:[e]})),r=pE.apply(null,t);if(1===r.length)return r[0];if(r.length>1)return bE(r)}},dependencies:(e,t,r)=>PE(e).reduce((function(t,n){const o=IE(e,n);let a=wE(o.filter(OE),mE);const i=a.filter(Array.isArray);if(i.length){if(i.length===a.length)t[n]=CE(a);else{const e=a.filter($E),o=i.map(LE);t[n]=r(e.concat(o),n)}return t}return a=wE(a,lE),t[n]=r(a,n),t}),{}),oneOf(e,t,r){const n=function(e,t){return e.map((function(e,r){try{return t(e,r)}catch(e){return}})).filter(OE)}(FE(sE(e)),r),o=wE(n,lE);if(o.length)return o},not:e=>({anyOf:e}),pattern:e=>e.map((e=>"(?="+e+")")).join(""),multipleOf(e){let t=e.slice(0),r=1;for(;t.some((e=>!Number.isInteger(e)));)t=t.map((e=>10*e)),r*=10;return uE(t)/r},enum(e){const t=hE.apply(null,e.concat(mE));if(t.length)return yE(t)}};WE.$id=NE,WE.$ref=NE,WE.$schema=NE,WE.additionalItems=jE,WE.additionalProperties=jE,WE.anyOf=WE.oneOf,WE.contains=jE,WE.default=NE,WE.definitions=WE.dependencies,WE.description=NE,WE.examples=e=>wE(dE(e),mE),WE.exclusiveMaximum=TE,WE.exclusiveMinimum=RE,WE.items=xE,WE.maximum=TE,WE.maxItems=TE,WE.maxLength=TE,WE.maxProperties=TE,WE.minimum=RE,WE.minItems=RE,WE.minLength=RE,WE.minProperties=RE,WE.properties=SE,WE.propertyNames=jE,WE.required=e=>CE(e),WE.title=NE,WE.uniqueItems=e=>e.some(EE);const qE={properties:SE,items:xE};function KE(e,t,r){t=cE(t,{ignoreAdditionalProperties:!1,resolvers:WE,complexResolvers:qE,deep:!0});const n=Object.entries(t.complexResolvers);const o=function e(r,o,a){r=sE(r.filter(OE)),a=a||[];const i=vE(o)?o:{};if(!r.length)return;if(r.some(kE))return!1;if(r.every(EE))return!0;r=r.filter(vE);const s=PE(r);if(t.deep&&_E(s,"allOf"))return KE({allOf:r},t);const l=n.map((([e,t])=>s.filter((e=>t.keywords.includes(e)))));return l.forEach((e=>gE(s,e))),s.forEach((function(n){const o=IE(r,n),s=wE(o.filter(OE),function(e){return function(t,r){return lE({[e]:t},{[e]:r})}}(n));if(1===s.length&&_E(VE,n))i[n]=s[0].map((t=>e([t],t)));else if(1!==s.length||_E(BE,n)||_E(UE,n)){const r=t.resolvers[n]||t.resolvers.defaultResolver;if(!r)throw new Error("No resolver found for key "+n+". You can provide a resolver for this keyword in the options, or provide a default resolver.");const o=(t,r=[])=>e(t,null,a.concat(n,r));i[n]=r(s,a.concat(n),o,t),void 0===i[n]?zE(s,a.concat(n)):void 0===i[n]&&delete i[n]}else i[n]=s[0]})),n.reduce(((n,[o,i],s)=>({...n,...DE(l[s],o,r,e,t,a)})),i)}(fE(AE(e)));return o}KE.options={resolvers:WE};var HE=KE;function GE(e){let t;const r=Lv(e,"discriminator.propertyName",void 0);return cw(r)?t=r:void 0!==r&&console.warn(`Expecting discriminator to be a string, got "${typeof r}" instead`),t}function QE(e){return Array.isArray(e)?"array":"string"==typeof e?"string":null==e?"null":"boolean"==typeof e?"boolean":isNaN(e)?"object"==typeof e?"object":"string":"number"}var JE=Sb,YE=Wx,XE=p_,ZE=mx((function(e){return YE(JE(e,1,XE,!0))}));function ej(e){let{type:t}=e;return!t&&e.const?QE(e.const):!t&&e.enum?"string":t||!e.properties&&!e.additionalProperties?(Array.isArray(t)&&2===t.length&&t.includes("null")&&(t=t.find((e=>"null"!==e))),t):"object"}function tj(e,t){const r=Object.assign({},e);return Object.keys(t).reduce(((r,n)=>{const o=e?e[n]:{},a=t[n];return e&&n in e&&Zc(a)?r[n]=tj(o,a):e&&t&&("object"===ej(e)||"object"===ej(t))&&n===vd&&Array.isArray(o)&&Array.isArray(a)?r[n]=ZE(o,a):r[n]=a,r}),r)}function rj(e,t,r={},n){return ij(e,t,r,n)[0]}function nj(e){const t=e.reduce(((e,t)=>t.length>1?t.flatMap((t=>kS(e.length,(r=>[...e[r]].concat(t))))):(e.forEach((e=>e.push(t[0]))),e)),[[]]);return t}function oj(e,t,r,n,o){const{$ref:a}=t,i=ov(t,["$ref"]),s=Qb(a,r);return ij(e,Object.assign(Object.assign({},s),i),r,o,n)}function aj(e,t){let r=e;if(yd in r){const{$ref:e}=r,n=ov(r,["$ref"]),o=Qb(e,t);r=Object.assign(Object.assign({},o),n)}if(md in r){const e=KS(r[md],((e,r,n)=>{e[n]=aj(r,t)}),{});r=Object.assign(Object.assign({},r),{[md]:e})}return fd in r&&!Array.isArray(r.items)&&"boolean"!=typeof r.items&&(r=Object.assign(Object.assign({},r),{items:aj(r.items,t)})),r}function ij(e,t,r,n,o=!1){if(!Zc(t))return[{}];const a=function(e,t,r,n,o){if(yd in t)return oj(e,t,r,n,o);if(sd in t)return sj(e,t,r,n,o).flatMap((t=>ij(e,t,r,o,n)));if(nd in t&&Array.isArray(t.allOf))return nj(t.allOf.map((t=>ij(e,t,r,o,n)))).map((e=>Object.assign(Object.assign({},t),{allOf:e})));return[t]}(e,t,r,o,n);return a.flatMap((t=>{let a=t;if(dd in a)return function(e,t,r,n,o){const{if:a,then:i,else:s}=t,l=ov(t,["if","then","else"]),u=e.isValid(a,o||{},r);let c=[l],d=[];if(n)i&&"boolean"!=typeof i&&(d=d.concat(ij(e,i,r,o,n))),s&&"boolean"!=typeof s&&(d=d.concat(ij(e,s,r,o,n)));else{const t=u?i:s;t&&"boolean"!=typeof t&&(d=d.concat(ij(e,t,r,o,n)))}return d.length&&(c=d.map((e=>tj(l,e)))),c.flatMap((t=>ij(e,t,r,o,n)))}(e,a,r,o,n);if(nd in a){if(o){const{allOf:e}=a;return[...e,ov(a,["allOf"])]}try{a=HE(a,{deep:!1})}catch(e){console.warn("could not merge subschemas in allOf:\n",e);return ov(a,["allOf"])}}return rd in a&&!1!==a.additionalProperties?function(e,t,r,n){const o=Object.assign(Object.assign({},t),{properties:Object.assign({},t.properties)}),a=n&&Zc(n)?n:{};return Object.keys(a).forEach((t=>{if(t in o.properties)return;let n={};n="boolean"!=typeof o.additionalProperties?yd in o.additionalProperties?rj(e,{$ref:Lv(o.additionalProperties,[yd])},r,a):"type"in o.additionalProperties?Object.assign({},o.additionalProperties):od in o.additionalProperties||hd in o.additionalProperties?Object.assign({type:"object"},o.additionalProperties):{type:QE(Lv(a,[t]))}:{type:QE(Lv(a,[t]))},o.properties[t]=n,IS(o.properties,[t,td],!0)})),o}(e,a,r,n):a}))}function sj(e,t,r,n,o){const{dependencies:a}=t,i=ov(t,["dependencies"]),s=function(e,t,r,n,o){let a;const{oneOf:i,anyOf:s}=t,l=ov(t,["oneOf","anyOf"]);if(Array.isArray(i)?a=i:Array.isArray(s)&&(a=s),a){const i=void 0===o&&n?{}:o,s=GE(t);a=a.map((e=>aj(e,r)));const u=jS(e,i,a,r,s);if(n)return a.map((e=>tj(l,e)));t=tj(l,a[u])}return[t]}(e,i,r,n,o);return s.flatMap((t=>lj(e,a,t,r,n,o)))}function lj(e,t,r,n,o,a){let i=[r];for(const s in t){if(!o&&void 0===Lv(a,[s]))continue;if(r.properties&&!(s in r.properties))continue;const[l,u]=Gb(s,t);return Array.isArray(u)?i[0]=uj(r,u):Zc(u)&&(i=cj(e,r,n,s,u,o,a)),i.flatMap((t=>lj(e,l,t,n,o,a)))}return i}function uj(e,t){if(!t)return e;const r=Array.isArray(e.required)?Array.from(new Set([...e.required,...t])):t;return Object.assign(Object.assign({},e),{required:r})}function cj(e,t,r,n,o,a,i){return ij(e,o,r,i,a).flatMap((o=>{const{oneOf:s}=o,l=ov(o,["oneOf"]);if(t=tj(t,l),void 0===s)return t;const u=s.map((t=>"boolean"!=typeof t&&yd in t?oj(e,t,r,a,i):[t]));return nj(u).flatMap((o=>function(e,t,r,n,o,a,i){const s=o.filter((t=>{if("boolean"==typeof t||!t||!t.properties)return!1;const{[n]:o}=t.properties;if(o){const t={type:"object",properties:{[n]:o}};return e.isValid(t,i,r)||a}return!1}));if(!a&&1!==s.length)return console.warn("ignoring oneOf in dependencies because there isn't exactly one subschema that is valid"),[t];return s.flatMap((o=>{const s=o,[l]=Gb(n,s.properties),u=Object.assign(Object.assign({},s),{properties:l});return ij(e,u,r,i,a).map((e=>tj(t,e)))}))}(e,t,r,n,o,a,i)))}))}const dj={type:"object",$id:"_$junk_option_schema_id$_",properties:{__not_really_there__:{type:"number"}}};function fj(e,t,r,n={}){let o=0;return r&&(xf(r.properties)?o+=oS(r.properties,((r,o,a)=>{const i=Lv(n,a);if("boolean"==typeof o)return r;if(iw(o,yd)){const n=rj(e,o,t,i);return r+fj(e,t,n,i||{})}if((iw(o,hd)||iw(o,od))&&i){const n=iw(o,hd)?hd:od,a=GE(o);return r+pj(e,t,i,Lv(o,n),-1,a)}if("object"===o.type)return r+fj(e,t,o,i||{});if(o.type===QE(i)){let e=r+1;return o.default?e+=i===o.default?1:-1:o.const&&(e+=i===o.const?1:-1),e}return r}),0):cw(r.type)&&r.type===QE(n)&&(o+=1)),o}function pj(e,t,r,n,o=-1,a){const i=n.map((e=>aj(e,t))),s=i.reduce(((n,o,i)=>(1===jS(e,r,[dj,o],t,a)&&n.push(i),n)),[]);if(1===s.length)return s[0];s.length||kS(i.length,(e=>s.push(e)));const l=new Set,{bestIndex:u}=s.reduce(((n,o)=>{const{bestScore:a}=n,s=i[o],u=fj(e,t,s,r);return l.add(u),u>a?{bestIndex:o,bestScore:u}:n}),{bestIndex:o,bestScore:0});return 1===l.size&&o>=0?o:u}function hj(e){return Array.isArray(e.items)&&e.items.length>0&&e.items.every((e=>Zc(e)))}function mj(e,t,r=!1){if(Array.isArray(t)){const n=Array.isArray(e)?e:[],o=t.map(((e,t)=>n[t]?mj(n[t],e,r):e));return r&&o.length<n.length&&o.push(...n.slice(o.length)),o}if(Zc(t)){const n=Object.assign({},e);return Object.keys(t).reduce(((n,o)=>(n[o]=mj(e?Lv(e,o):{},Lv(t,o),r),n)),n)}return t}function vj(e,t,r=!1){return Object.keys(t).reduce(((n,o)=>{const a=e?e[o]:{},i=t[o];if(e&&o in e&&Zc(i))n[o]=vj(a,i,r);else if(r&&Array.isArray(a)&&Array.isArray(i)){let e=i;"preventDuplicates"===r&&(e=i.reduce(((e,t)=>(a.includes(t)||e.push(t),e)),[])),n[o]=a.concat(e)}else n[o]=i;return n}),Object.assign({},e))}function gj(e,t,r={}){const n=rj(e,t,r,void 0),o=n.oneOf||n.anyOf;return!!Array.isArray(n.enum)||!!Array.isArray(o)&&o.every((e=>"boolean"!=typeof e&&function(e){return Array.isArray(e.enum)&&1===e.enum.length||ad in e}(e)))}function yj(e,t,r){return!(!t.uniqueItems||!t.items||"boolean"==typeof t.items)&&gj(e,t.items,r)}var bj;function wj(e,t=bj.Ignore,r=-1){if(r>=0){if(Array.isArray(e.items)&&r<e.items.length){const t=e.items[r];if("boolean"!=typeof t)return t}}else if(e.items&&!Array.isArray(e.items)&&"boolean"!=typeof e.items)return e.items;return t!==bj.Ignore&&Zc(e.additionalItems)?e.additionalItems:{}}function Sj(e,t,r,n,o,a=[],i={}){const{emptyObjectFields:s="populateAllDefaults"}=i;if(n)e[t]=r;else if("skipDefaults"!==s)if(Zc(r)){const n=void 0===o?a.includes(t):o;Jv(r)&&!a.includes(t)||!n&&"populateRequiredDefaults"===s||(e[t]=r)}else void 0===r||"populateAllDefaults"!==s&&!a.includes(t)||(e[t]=r)}function xj(e,t,{parentDefaults:r,rawFormData:n,rootSchema:o={},includeUndefinedValues:a=!1,_recurseList:i=[],experimental_defaultFormStateBehavior:s,required:l}={}){var u,c;const d=Zc(n)?n:{},f=Zc(t)?t:{};let p=r,h=null,m=i;if(Zc(p)&&Zc(f.default))p=vj(p,f.default);else if(id in f)p=f.default;else if(yd in f){const e=f[yd];i.includes(e)||(m=i.concat(e),h=Qb(e,o))}else if(sd in f){h=sj(e,f,o,!1,d)[0]}else if(hj(f))p=f.items.map(((t,n)=>xj(e,t,{rootSchema:o,includeUndefinedValues:a,_recurseList:i,experimental_defaultFormStateBehavior:s,parentDefaults:Array.isArray(r)?r[n]:void 0,rawFormData:d,required:l})));else if(hd in f){const{oneOf:t}=f,r=ov(f,["oneOf"]);if(0===t.length)return;const n=GE(f);h=t[pj(e,o,Jv(d)?void 0:d,t,0,n)],h=tj(r,h)}else if(od in f){const{anyOf:t}=f,r=ov(f,["anyOf"]);if(0===t.length)return;const n=GE(f);h=t[pj(e,o,Jv(d)?void 0:d,t,0,n)],h=tj(r,h)}if(h)return xj(e,h,{rootSchema:o,includeUndefinedValues:a,_recurseList:m,experimental_defaultFormStateBehavior:s,parentDefaults:p,rawFormData:d,required:l});switch(void 0===p&&(p=f.default),ej(f)){case"object":{const t=Object.keys(f.properties||{}).reduce(((t,r)=>{var n;return Sj(t,r,xj(e,Lv(f,[md,r]),{rootSchema:o,_recurseList:i,experimental_defaultFormStateBehavior:s,includeUndefinedValues:!0===a,parentDefaults:Lv(p,[r]),rawFormData:Lv(d,[r]),required:null===(n=f.required)||void 0===n?void 0:n.includes(r)}),a,l,f.required,s),t}),{});if(f.additionalProperties){const r=Zc(f.additionalProperties)?f.additionalProperties:{},n=new Set;let u;Zc(p)&&Object.keys(p).filter((e=>!f.properties||!f.properties[e])).forEach((e=>n.add(e))),Zc(d)&&(u=[],Object.keys(d).filter((e=>!f.properties||!f.properties[e])).forEach((e=>{n.add(e),u.push(e)}))),n.forEach((n=>{var c;const h=xj(e,r,{rootSchema:o,_recurseList:i,experimental_defaultFormStateBehavior:s,includeUndefinedValues:!0===a,parentDefaults:Lv(p,[n]),rawFormData:Lv(d,[n]),required:null===(c=f.required)||void 0===c?void 0:c.includes(n)});Sj(t,n,h,a,l,u)}))}return t}case"array":{const t="never"===(null===(u=null==s?void 0:s.arrayMinItems)||void 0===u?void 0:u.populate),r="requiredOnly"===(null===(c=null==s?void 0:s.arrayMinItems)||void 0===c?void 0:c.populate);if(Array.isArray(p)&&(p=p.map(((t,r)=>{const n=wj(f,bj.Fallback,r);return xj(e,n,{rootSchema:o,_recurseList:i,experimental_defaultFormStateBehavior:s,parentDefaults:t,required:l})}))),Array.isArray(n)){const r=wj(f);p=t?n:n.map(((t,n)=>xj(e,r,{rootSchema:o,_recurseList:i,experimental_defaultFormStateBehavior:s,rawFormData:t,parentDefaults:Lv(p,[n]),required:l})))}if(t)return null!=p?p:[];if(r&&!l)return p||void 0;const a=Array.isArray(p)?p.length:0;if(!f.minItems||yj(e,f,o)||f.minItems<=a)return p||[];const d=p||[],h=wj(f,bj.Invert),m=h.default,v=new Array(f.minItems-a).fill(xj(e,h,{parentDefaults:m,rootSchema:o,_recurseList:i,experimental_defaultFormStateBehavior:s,required:l}));return d.concat(v)}}return p}function _j(e,t,r,n,o=!1,a){if(!Zc(t))throw new Error("Invalid schema: "+t);const i=xj(e,rj(e,t,n,r),{rootSchema:n,includeUndefinedValues:o,experimental_defaultFormStateBehavior:a,rawFormData:r});if(null==r||"number"==typeof r&&isNaN(r))return i;const{mergeExtraDefaults:s}=(null==a?void 0:a.arrayMinItems)||{};return Zc(r)||Array.isArray(r)?mj(i,r,s):r}function $j(e={}){return"widget"in _d(e)&&"hidden"!==_d(e).widget}function kj(e,t,r={},n){if("files"===r[Sd])return!0;if(t.items){const r=rj(e,t.items,n);return"string"===r.type&&"data-url"===r.format}return!1}!function(e){e[e.Ignore=0]="Ignore",e[e.Invert=1]="Invert",e[e.Fallback=2]="Fallback"}(bj||(bj={}));const Ej=Symbol("no Value");function jj(e,t,r,n,o={}){let a;if(iw(r,md)){const i={};if(iw(n,md)){const e=Lv(n,md,{});Object.keys(e).forEach((e=>{iw(o,e)&&(i[e]=void 0)}))}const s=Object.keys(Lv(r,md,{})),l={};s.forEach((a=>{const s=Lv(o,a);let u=Lv(n,[md,a],{}),c=Lv(r,[md,a],{});iw(u,yd)&&(u=rj(e,u,t,s)),iw(c,yd)&&(c=rj(e,c,t,s));const d=Lv(u,"type"),f=Lv(c,"type");if(!d||d===f)if(iw(i,a)&&delete i[a],"object"===f||"array"===f&&Array.isArray(s)){const r=jj(e,t,c,u,s);void 0===r&&"array"!==f||(l[a]=r)}else{const e=Lv(c,"default",Ej),t=Lv(u,"default",Ej);e!==Ej&&e!==s&&(t===s?i[a]=e:!0===Lv(c,"readOnly")&&(i[a]=void 0));const r=Lv(c,"const",Ej),n=Lv(u,"const",Ej);r!==Ej&&r!==s&&(i[a]=n===s?r:void 0)}})),a=Object.assign(Object.assign(Object.assign({},o),i),l)}else if("array"===Lv(n,"type")&&"array"===Lv(r,"type")&&Array.isArray(o)){let i=Lv(n,"items"),s=Lv(r,"items");if("object"!=typeof i||"object"!=typeof s||Array.isArray(i)||Array.isArray(s))"boolean"==typeof i&&"boolean"==typeof s&&i===s&&(a=o);else{iw(i,yd)&&(i=rj(e,i,t,o)),iw(s,yd)&&(s=rj(e,s,t,o));const n=Lv(i,"type"),l=Lv(s,"type");if(!n||n===l){const n=Lv(r,"maxItems",-1);a="object"===l?o.reduce(((r,o)=>{const a=jj(e,t,s,i,o);return void 0!==a&&(n<0||r.length<n)&&r.push(a),r}),[]):n>0&&o.length>n?o.slice(0,n):o}}}return a}function Cj(e,t,r,n,o,a,i,s=[]){if(yd in t||sd in t||nd in t){const l=rj(e,t,a,i);if(-1===s.findIndex((e=>JS(e,l))))return Cj(e,l,r,n,o,a,i,s.concat(l))}if(fd in t&&!Lv(t,[fd,yd]))return Cj(e,Lv(t,fd),r,n,o,a,i,s);const l={$id:o||r};if("object"===ej(t)&&md in t)for(const o in t.properties){const u=Lv(t,[md,o]),c=l[cd]+n+o;l[o]=Cj(e,Zc(u)?u:{},r,n,c,a,Lv(i,[o]),s)}return l}function Oj(e,t,r,n,o,a="root",i="_"){return Cj(e,t,a,i,r,n,o)}function Pj(e,t,r,n,o,a=[]){if(yd in t||sd in t||nd in t){const i=rj(e,t,n,o);if(-1===a.findIndex((e=>JS(e,i))))return Pj(e,i,r,n,o,a.concat(i))}let i={[pd]:r.replace(/^\./,"")};if(hd in t||od in t){const s=hd in t?t.oneOf:t.anyOf,l=GE(t),u=s[pj(e,n,o,s,0,l)];i=Object.assign(Object.assign({},i),Pj(e,u,r,n,o,a))}if(rd in t&&!1!==t[rd]&&IS(i,bd,!0),fd in t&&Array.isArray(o))o.forEach(((o,s)=>{i[s]=Pj(e,t.items,`${r}.${s}`,n,o,a)}));else if(md in t)for(const s in t.properties){const l=Lv(t,[md,s]);i[s]=Pj(e,l,`${r}.${s}`,n,Lv(o,[s]),a)}return i}function Nj(e,t,r="",n,o){return Pj(e,t,r,n,o)}class Rj{constructor(e,t,r){this.rootSchema=t,this.validator=e,this.experimental_defaultFormStateBehavior=r}getValidator(){return this.validator}doesSchemaUtilsDiffer(e,t,r={}){return!(!e||!t)&&(this.validator!==e||!nv(this.rootSchema,t)||!nv(this.experimental_defaultFormStateBehavior,r))}getDefaultFormState(e,t,r=!1){return _j(this.validator,e,t,this.rootSchema,r,this.experimental_defaultFormStateBehavior)}getDisplayLabel(e,t,r){return function(e,t,r={},n,o){const a=_d(r,o),{label:i=!0}=a;let s=!!i;const l=ej(t);return"array"===l&&(s=yj(e,t,n)||kj(e,t,r,n)||$j(r)),"object"===l&&(s=!1),"boolean"!==l||r[Sd]||(s=!1),r["ui:field"]&&(s=!1),s}(this.validator,e,t,this.rootSchema,r)}getClosestMatchingOption(e,t,r,n){return pj(this.validator,this.rootSchema,e,t,r,n)}getFirstMatchingOption(e,t,r){return jS(this.validator,e,t,this.rootSchema,r)}getMatchingOption(e,t,r){return ES(this.validator,e,t,this.rootSchema,r)}isFilesArray(e,t){return kj(this.validator,e,t,this.rootSchema)}isMultiSelect(e){return yj(this.validator,e,this.rootSchema)}isSelect(e){return gj(this.validator,e,this.rootSchema)}mergeValidationData(e,t){return function(e,t,r){if(!r)return t;const{errors:n,errorSchema:o}=t;let a=e.toErrorList(r),i=r;return Jv(o)||(i=vj(o,r,!0),a=[...n].concat(a)),{errorSchema:i,errors:a}}(this.validator,e,t)}retrieveSchema(e,t){return rj(this.validator,e,this.rootSchema,t)}sanitizeDataForNewSchema(e,t,r){return jj(this.validator,this.rootSchema,e,t,r)}toIdSchema(e,t,r,n="root",o="_"){return Oj(this.validator,e,t,this.rootSchema,r,n,o)}toPathSchema(e,t,r){return Nj(this.validator,e,t,this.rootSchema,r)}}function Tj(e,t){return function(e,t){let r=e;if(Array.isArray(t)){const e=r.split(/(%\d)/);t.forEach(((t,r)=>{const n=e.findIndex((e=>e===`%${r+1}`));n>=0&&(e[n]=t)})),r=e.join("")}return r}(e,t)}function Aj(e,t=[],r){if(Array.isArray(e))return e.map((e=>Aj(e,t))).filter((e=>e));const n=""===e||null===e?-1:Number(e),o=t[n];return o?o.value:r}function Ij(e,t,r=[]){const n=Aj(e,r);return Array.isArray(t)?t.filter((e=>!JS(e,n))):JS(n,t)?void 0:t}function Mj(e,t){return Array.isArray(t)?t.some((t=>JS(t,e))):JS(t,e)}function Fj(e,t=[],r=!1){const n=t.map(((t,r)=>Mj(t.value,e)?String(r):void 0)).filter((e=>void 0!==e));return r?n:n[0]}var zj={},Dj={get exports(){return zj},set exports(e){zj=e}};function Lj(e,t,r=[]){const n=Aj(e,r);if(!zj.isNil(n)){const e=r.findIndex((e=>n===e.value)),o=r.map((({value:e})=>e));return t.slice(0,e).concat(n,t.slice(e)).sort(((e,t)=>Number(o.indexOf(e)>o.indexOf(t))))}return t}
|
|
36
|
+
/**
|
|
37
|
+
* @license
|
|
38
|
+
* Lodash <https://lodash.com/>
|
|
39
|
+
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
40
|
+
* Released under MIT license <https://lodash.com/license>
|
|
41
|
+
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
42
|
+
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
43
|
+
*/
|
|
44
|
+
!function(e,t){(function(){var n,o="Expected a function",a="__lodash_hash_undefined__",i="__lodash_placeholder__",s=16,l=32,u=64,c=128,d=256,f=1/0,p=9007199254740991,h=NaN,m=4294967295,v=[["ary",c],["bind",1],["bindKey",2],["curry",8],["curryRight",s],["flip",512],["partial",l],["partialRight",u],["rearg",d]],g="[object Arguments]",y="[object Array]",b="[object Boolean]",w="[object Date]",S="[object Error]",x="[object Function]",_="[object GeneratorFunction]",$="[object Map]",k="[object Number]",E="[object Object]",j="[object Promise]",C="[object RegExp]",O="[object Set]",P="[object String]",N="[object Symbol]",R="[object WeakMap]",T="[object ArrayBuffer]",A="[object DataView]",I="[object Float32Array]",M="[object Float64Array]",F="[object Int8Array]",z="[object Int16Array]",D="[object Int32Array]",L="[object Uint8Array]",B="[object Uint8ClampedArray]",V="[object Uint16Array]",U="[object Uint32Array]",W=/\b__p \+= '';/g,q=/\b(__p \+=) '' \+/g,K=/(__e\(.*?\)|\b__t\)) \+\n'';/g,H=/&(?:amp|lt|gt|quot|#39);/g,G=/[&<>"']/g,Q=RegExp(H.source),J=RegExp(G.source),Y=/<%-([\s\S]+?)%>/g,X=/<%([\s\S]+?)%>/g,Z=/<%=([\s\S]+?)%>/g,ee=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,te=/^\w*$/,re=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ne=/[\\^$.*+?()[\]{}|]/g,oe=RegExp(ne.source),ae=/^\s+/,ie=/\s/,se=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,le=/\{\n\/\* \[wrapped with (.+)\] \*/,ue=/,? & /,ce=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,de=/[()=,{}\[\]\/\s]/,fe=/\\(\\)?/g,pe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,he=/\w*$/,me=/^[-+]0x[0-9a-f]+$/i,ve=/^0b[01]+$/i,ge=/^\[object .+?Constructor\]$/,ye=/^0o[0-7]+$/i,be=/^(?:0|[1-9]\d*)$/,we=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Se=/($^)/,xe=/['\n\r\u2028\u2029\\]/g,_e="\\ud800-\\udfff",$e="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",ke="\\u2700-\\u27bf",Ee="a-z\\xdf-\\xf6\\xf8-\\xff",je="A-Z\\xc0-\\xd6\\xd8-\\xde",Ce="\\ufe0e\\ufe0f",Oe="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\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",Pe="['’]",Ne="["+_e+"]",Re="["+Oe+"]",Te="["+$e+"]",Ae="\\d+",Ie="["+ke+"]",Me="["+Ee+"]",Fe="[^"+_e+Oe+Ae+ke+Ee+je+"]",ze="\\ud83c[\\udffb-\\udfff]",De="[^"+_e+"]",Le="(?:\\ud83c[\\udde6-\\uddff]){2}",Be="[\\ud800-\\udbff][\\udc00-\\udfff]",Ve="["+je+"]",Ue="\\u200d",We="(?:"+Me+"|"+Fe+")",qe="(?:"+Ve+"|"+Fe+")",Ke="(?:['’](?:d|ll|m|re|s|t|ve))?",He="(?:['’](?:D|LL|M|RE|S|T|VE))?",Ge="(?:"+Te+"|"+ze+")"+"?",Qe="["+Ce+"]?",Je=Qe+Ge+("(?:"+Ue+"(?:"+[De,Le,Be].join("|")+")"+Qe+Ge+")*"),Ye="(?:"+[Ie,Le,Be].join("|")+")"+Je,Xe="(?:"+[De+Te+"?",Te,Le,Be,Ne].join("|")+")",Ze=RegExp(Pe,"g"),et=RegExp(Te,"g"),tt=RegExp(ze+"(?="+ze+")|"+Xe+Je,"g"),rt=RegExp([Ve+"?"+Me+"+"+Ke+"(?="+[Re,Ve,"$"].join("|")+")",qe+"+"+He+"(?="+[Re,Ve+We,"$"].join("|")+")",Ve+"?"+We+"+"+Ke,Ve+"+"+He,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ae,Ye].join("|"),"g"),nt=RegExp("["+Ue+_e+$e+Ce+"]"),ot=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,at=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],it=-1,st={};st[I]=st[M]=st[F]=st[z]=st[D]=st[L]=st[B]=st[V]=st[U]=!0,st[g]=st[y]=st[T]=st[b]=st[A]=st[w]=st[S]=st[x]=st[$]=st[k]=st[E]=st[C]=st[O]=st[P]=st[R]=!1;var lt={};lt[g]=lt[y]=lt[T]=lt[A]=lt[b]=lt[w]=lt[I]=lt[M]=lt[F]=lt[z]=lt[D]=lt[$]=lt[k]=lt[E]=lt[C]=lt[O]=lt[P]=lt[N]=lt[L]=lt[B]=lt[V]=lt[U]=!0,lt[S]=lt[x]=lt[R]=!1;var ut={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ct=parseFloat,dt=parseInt,ft="object"==typeof r&&r&&r.Object===Object&&r,pt="object"==typeof self&&self&&self.Object===Object&&self,ht=ft||pt||Function("return this")(),mt=t&&!t.nodeType&&t,vt=mt&&e&&!e.nodeType&&e,gt=vt&&vt.exports===mt,yt=gt&&ft.process,bt=function(){try{var e=vt&&vt.require&&vt.require("util").types;return e||yt&&yt.binding&&yt.binding("util")}catch(e){}}(),wt=bt&&bt.isArrayBuffer,St=bt&&bt.isDate,xt=bt&&bt.isMap,_t=bt&&bt.isRegExp,$t=bt&&bt.isSet,kt=bt&&bt.isTypedArray;function Et(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)}function jt(e,t,r,n){for(var o=-1,a=null==e?0:e.length;++o<a;){var i=e[o];t(n,i,r(i),e)}return n}function Ct(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););return e}function Ot(e,t){for(var r=null==e?0:e.length;r--&&!1!==t(e[r],r,e););return e}function Pt(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(!t(e[r],r,e))return!1;return!0}function Nt(e,t){for(var r=-1,n=null==e?0:e.length,o=0,a=[];++r<n;){var i=e[r];t(i,r,e)&&(a[o++]=i)}return a}function Rt(e,t){return!!(null==e?0:e.length)&&Vt(e,t,0)>-1}function Tt(e,t,r){for(var n=-1,o=null==e?0:e.length;++n<o;)if(r(t,e[n]))return!0;return!1}function At(e,t){for(var r=-1,n=null==e?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o}function It(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e}function Mt(e,t,r,n){var o=-1,a=null==e?0:e.length;for(n&&a&&(r=e[++o]);++o<a;)r=t(r,e[o],o,e);return r}function Ft(e,t,r,n){var o=null==e?0:e.length;for(n&&o&&(r=e[--o]);o--;)r=t(r,e[o],o,e);return r}function zt(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}var Dt=Kt("length");function Lt(e,t,r){var n;return r(e,(function(e,r,o){if(t(e,r,o))return n=r,!1})),n}function Bt(e,t,r,n){for(var o=e.length,a=r+(n?1:-1);n?a--:++a<o;)if(t(e[a],a,e))return a;return-1}function Vt(e,t,r){return t==t?function(e,t,r){var n=r-1,o=e.length;for(;++n<o;)if(e[n]===t)return n;return-1}(e,t,r):Bt(e,Wt,r)}function Ut(e,t,r,n){for(var o=r-1,a=e.length;++o<a;)if(n(e[o],t))return o;return-1}function Wt(e){return e!=e}function qt(e,t){var r=null==e?0:e.length;return r?Qt(e,t)/r:h}function Kt(e){return function(t){return null==t?n:t[e]}}function Ht(e){return function(t){return null==e?n:e[t]}}function Gt(e,t,r,n,o){return o(e,(function(e,o,a){r=n?(n=!1,e):t(r,e,o,a)})),r}function Qt(e,t){for(var r,o=-1,a=e.length;++o<a;){var i=t(e[o]);i!==n&&(r=r===n?i:r+i)}return r}function Jt(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}function Yt(e){return e?e.slice(0,hr(e)+1).replace(ae,""):e}function Xt(e){return function(t){return e(t)}}function Zt(e,t){return At(t,(function(t){return e[t]}))}function er(e,t){return e.has(t)}function tr(e,t){for(var r=-1,n=e.length;++r<n&&Vt(t,e[r],0)>-1;);return r}function rr(e,t){for(var r=e.length;r--&&Vt(t,e[r],0)>-1;);return r}var nr=Ht({"À":"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"}),or=Ht({"&":"&","<":"<",">":">",'"':""","'":"'"});function ar(e){return"\\"+ut[e]}function ir(e){return nt.test(e)}function sr(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r}function lr(e,t){return function(r){return e(t(r))}}function ur(e,t){for(var r=-1,n=e.length,o=0,a=[];++r<n;){var s=e[r];s!==t&&s!==i||(e[r]=i,a[o++]=r)}return a}function cr(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r}function dr(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=[e,e]})),r}function fr(e){return ir(e)?function(e){var t=tt.lastIndex=0;for(;tt.test(e);)++t;return t}(e):Dt(e)}function pr(e){return ir(e)?function(e){return e.match(tt)||[]}(e):function(e){return e.split("")}(e)}function hr(e){for(var t=e.length;t--&&ie.test(e.charAt(t)););return t}var mr=Ht({"&":"&","<":"<",">":">",""":'"',"'":"'"});var vr=function e(t){var r=(t=null==t?ht:vr.defaults(ht.Object(),t,vr.pick(ht,at))).Array,ie=t.Date,_e=t.Error,$e=t.Function,ke=t.Math,Ee=t.Object,je=t.RegExp,Ce=t.String,Oe=t.TypeError,Pe=r.prototype,Ne=$e.prototype,Re=Ee.prototype,Te=t["__core-js_shared__"],Ae=Ne.toString,Ie=Re.hasOwnProperty,Me=0,Fe=function(){var e=/[^.]+$/.exec(Te&&Te.keys&&Te.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),ze=Re.toString,De=Ae.call(Ee),Le=ht._,Be=je("^"+Ae.call(Ie).replace(ne,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ve=gt?t.Buffer:n,Ue=t.Symbol,We=t.Uint8Array,qe=Ve?Ve.allocUnsafe:n,Ke=lr(Ee.getPrototypeOf,Ee),He=Ee.create,Ge=Re.propertyIsEnumerable,Qe=Pe.splice,Je=Ue?Ue.isConcatSpreadable:n,Ye=Ue?Ue.iterator:n,Xe=Ue?Ue.toStringTag:n,tt=function(){try{var e=fa(Ee,"defineProperty");return e({},"",{}),e}catch(e){}}(),nt=t.clearTimeout!==ht.clearTimeout&&t.clearTimeout,ut=ie&&ie.now!==ht.Date.now&&ie.now,ft=t.setTimeout!==ht.setTimeout&&t.setTimeout,pt=ke.ceil,mt=ke.floor,vt=Ee.getOwnPropertySymbols,yt=Ve?Ve.isBuffer:n,bt=t.isFinite,Dt=Pe.join,Ht=lr(Ee.keys,Ee),gr=ke.max,yr=ke.min,br=ie.now,wr=t.parseInt,Sr=ke.random,xr=Pe.reverse,_r=fa(t,"DataView"),$r=fa(t,"Map"),kr=fa(t,"Promise"),Er=fa(t,"Set"),jr=fa(t,"WeakMap"),Cr=fa(Ee,"create"),Or=jr&&new jr,Pr={},Nr=za(_r),Rr=za($r),Tr=za(kr),Ar=za(Er),Ir=za(jr),Mr=Ue?Ue.prototype:n,Fr=Mr?Mr.valueOf:n,zr=Mr?Mr.toString:n;function Dr(e){if(ts(e)&&!Wi(e)&&!(e instanceof Ur)){if(e instanceof Vr)return e;if(Ie.call(e,"__wrapped__"))return Da(e)}return new Vr(e)}var Lr=function(){function e(){}return function(t){if(!es(t))return{};if(He)return He(t);e.prototype=t;var r=new e;return e.prototype=n,r}}();function Br(){}function Vr(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=n}function Ur(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=m,this.__views__=[]}function Wr(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function qr(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Kr(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Hr(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new Kr;++t<r;)this.add(e[t])}function Gr(e){var t=this.__data__=new qr(e);this.size=t.size}function Qr(e,t){var r=Wi(e),n=!r&&Ui(e),o=!r&&!n&&Gi(e),a=!r&&!n&&!o&&us(e),i=r||n||o||a,s=i?Jt(e.length,Ce):[],l=s.length;for(var u in e)!t&&!Ie.call(e,u)||i&&("length"==u||o&&("offset"==u||"parent"==u)||a&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||ba(u,l))||s.push(u);return s}function Jr(e){var t=e.length;return t?e[Gn(0,t-1)]:n}function Yr(e,t){return Ia(Po(e),sn(t,0,e.length))}function Xr(e){return Ia(Po(e))}function Zr(e,t,r){(r!==n&&!Li(e[t],r)||r===n&&!(t in e))&&on(e,t,r)}function en(e,t,r){var o=e[t];Ie.call(e,t)&&Li(o,r)&&(r!==n||t in e)||on(e,t,r)}function tn(e,t){for(var r=e.length;r--;)if(Li(e[r][0],t))return r;return-1}function rn(e,t,r,n){return fn(e,(function(e,o,a){t(n,e,r(e),a)})),n}function nn(e,t){return e&&No(t,Ns(t),e)}function on(e,t,r){"__proto__"==t&&tt?tt(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function an(e,t){for(var o=-1,a=t.length,i=r(a),s=null==e;++o<a;)i[o]=s?n:Es(e,t[o]);return i}function sn(e,t,r){return e==e&&(r!==n&&(e=e<=r?e:r),t!==n&&(e=e>=t?e:t)),e}function ln(e,t,r,o,a,i){var s,l=1&t,u=2&t,c=4&t;if(r&&(s=a?r(e,o,a,i):r(e)),s!==n)return s;if(!es(e))return e;var d=Wi(e);if(d){if(s=function(e){var t=e.length,r=new e.constructor(t);t&&"string"==typeof e[0]&&Ie.call(e,"index")&&(r.index=e.index,r.input=e.input);return r}(e),!l)return Po(e,s)}else{var f=ma(e),p=f==x||f==_;if(Gi(e))return $o(e,l);if(f==E||f==g||p&&!a){if(s=u||p?{}:ga(e),!l)return u?function(e,t){return No(e,ha(e),t)}(e,function(e,t){return e&&No(t,Rs(t),e)}(s,e)):function(e,t){return No(e,pa(e),t)}(e,nn(s,e))}else{if(!lt[f])return a?e:{};s=function(e,t,r){var n=e.constructor;switch(t){case T:return ko(e);case b:case w:return new n(+e);case A:return function(e,t){var r=t?ko(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}(e,r);case I:case M:case F:case z:case D:case L:case B:case V:case U:return Eo(e,r);case $:return new n;case k:case P:return new n(e);case C:return function(e){var t=new e.constructor(e.source,he.exec(e));return t.lastIndex=e.lastIndex,t}(e);case O:return new n;case N:return o=e,Fr?Ee(Fr.call(o)):{}}var o}(e,f,l)}}i||(i=new Gr);var h=i.get(e);if(h)return h;i.set(e,s),is(e)?e.forEach((function(n){s.add(ln(n,t,r,n,e,i))})):rs(e)&&e.forEach((function(n,o){s.set(o,ln(n,t,r,o,e,i))}));var m=d?n:(c?u?aa:oa:u?Rs:Ns)(e);return Ct(m||e,(function(n,o){m&&(n=e[o=n]),en(s,o,ln(n,t,r,o,e,i))})),s}function un(e,t,r){var o=r.length;if(null==e)return!o;for(e=Ee(e);o--;){var a=r[o],i=t[a],s=e[a];if(s===n&&!(a in e)||!i(s))return!1}return!0}function cn(e,t,r){if("function"!=typeof e)throw new Oe(o);return Na((function(){e.apply(n,r)}),t)}function dn(e,t,r,n){var o=-1,a=Rt,i=!0,s=e.length,l=[],u=t.length;if(!s)return l;r&&(t=At(t,Xt(r))),n?(a=Tt,i=!1):t.length>=200&&(a=er,i=!1,t=new Hr(t));e:for(;++o<s;){var c=e[o],d=null==r?c:r(c);if(c=n||0!==c?c:0,i&&d==d){for(var f=u;f--;)if(t[f]===d)continue e;l.push(c)}else a(t,d,n)||l.push(c)}return l}Dr.templateSettings={escape:Y,evaluate:X,interpolate:Z,variable:"",imports:{_:Dr}},Dr.prototype=Br.prototype,Dr.prototype.constructor=Dr,Vr.prototype=Lr(Br.prototype),Vr.prototype.constructor=Vr,Ur.prototype=Lr(Br.prototype),Ur.prototype.constructor=Ur,Wr.prototype.clear=function(){this.__data__=Cr?Cr(null):{},this.size=0},Wr.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Wr.prototype.get=function(e){var t=this.__data__;if(Cr){var r=t[e];return r===a?n:r}return Ie.call(t,e)?t[e]:n},Wr.prototype.has=function(e){var t=this.__data__;return Cr?t[e]!==n:Ie.call(t,e)},Wr.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Cr&&t===n?a:t,this},qr.prototype.clear=function(){this.__data__=[],this.size=0},qr.prototype.delete=function(e){var t=this.__data__,r=tn(t,e);return!(r<0)&&(r==t.length-1?t.pop():Qe.call(t,r,1),--this.size,!0)},qr.prototype.get=function(e){var t=this.__data__,r=tn(t,e);return r<0?n:t[r][1]},qr.prototype.has=function(e){return tn(this.__data__,e)>-1},qr.prototype.set=function(e,t){var r=this.__data__,n=tn(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this},Kr.prototype.clear=function(){this.size=0,this.__data__={hash:new Wr,map:new($r||qr),string:new Wr}},Kr.prototype.delete=function(e){var t=ca(this,e).delete(e);return this.size-=t?1:0,t},Kr.prototype.get=function(e){return ca(this,e).get(e)},Kr.prototype.has=function(e){return ca(this,e).has(e)},Kr.prototype.set=function(e,t){var r=ca(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this},Hr.prototype.add=Hr.prototype.push=function(e){return this.__data__.set(e,a),this},Hr.prototype.has=function(e){return this.__data__.has(e)},Gr.prototype.clear=function(){this.__data__=new qr,this.size=0},Gr.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},Gr.prototype.get=function(e){return this.__data__.get(e)},Gr.prototype.has=function(e){return this.__data__.has(e)},Gr.prototype.set=function(e,t){var r=this.__data__;if(r instanceof qr){var n=r.__data__;if(!$r||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Kr(n)}return r.set(e,t),this.size=r.size,this};var fn=Ao(wn),pn=Ao(Sn,!0);function hn(e,t){var r=!0;return fn(e,(function(e,n,o){return r=!!t(e,n,o)})),r}function mn(e,t,r){for(var o=-1,a=e.length;++o<a;){var i=e[o],s=t(i);if(null!=s&&(l===n?s==s&&!ls(s):r(s,l)))var l=s,u=i}return u}function vn(e,t){var r=[];return fn(e,(function(e,n,o){t(e,n,o)&&r.push(e)})),r}function gn(e,t,r,n,o){var a=-1,i=e.length;for(r||(r=ya),o||(o=[]);++a<i;){var s=e[a];t>0&&r(s)?t>1?gn(s,t-1,r,n,o):It(o,s):n||(o[o.length]=s)}return o}var yn=Io(),bn=Io(!0);function wn(e,t){return e&&yn(e,t,Ns)}function Sn(e,t){return e&&bn(e,t,Ns)}function xn(e,t){return Nt(t,(function(t){return Yi(e[t])}))}function _n(e,t){for(var r=0,o=(t=wo(t,e)).length;null!=e&&r<o;)e=e[Fa(t[r++])];return r&&r==o?e:n}function $n(e,t,r){var n=t(e);return Wi(e)?n:It(n,r(e))}function kn(e){return null==e?e===n?"[object Undefined]":"[object Null]":Xe&&Xe in Ee(e)?function(e){var t=Ie.call(e,Xe),r=e[Xe];try{e[Xe]=n;var o=!0}catch(e){}var a=ze.call(e);o&&(t?e[Xe]=r:delete e[Xe]);return a}(e):function(e){return ze.call(e)}(e)}function En(e,t){return e>t}function jn(e,t){return null!=e&&Ie.call(e,t)}function Cn(e,t){return null!=e&&t in Ee(e)}function On(e,t,o){for(var a=o?Tt:Rt,i=e[0].length,s=e.length,l=s,u=r(s),c=1/0,d=[];l--;){var f=e[l];l&&t&&(f=At(f,Xt(t))),c=yr(f.length,c),u[l]=!o&&(t||i>=120&&f.length>=120)?new Hr(l&&f):n}f=e[0];var p=-1,h=u[0];e:for(;++p<i&&d.length<c;){var m=f[p],v=t?t(m):m;if(m=o||0!==m?m:0,!(h?er(h,v):a(d,v,o))){for(l=s;--l;){var g=u[l];if(!(g?er(g,v):a(e[l],v,o)))continue e}h&&h.push(v),d.push(m)}}return d}function Pn(e,t,r){var o=null==(e=Ca(e,t=wo(t,e)))?e:e[Fa(Ja(t))];return null==o?n:Et(o,e,r)}function Nn(e){return ts(e)&&kn(e)==g}function Rn(e,t,r,o,a){return e===t||(null==e||null==t||!ts(e)&&!ts(t)?e!=e&&t!=t:function(e,t,r,o,a,i){var s=Wi(e),l=Wi(t),u=s?y:ma(e),c=l?y:ma(t),d=(u=u==g?E:u)==E,f=(c=c==g?E:c)==E,p=u==c;if(p&&Gi(e)){if(!Gi(t))return!1;s=!0,d=!1}if(p&&!d)return i||(i=new Gr),s||us(e)?ra(e,t,r,o,a,i):function(e,t,r,n,o,a,i){switch(r){case A:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case T:return!(e.byteLength!=t.byteLength||!a(new We(e),new We(t)));case b:case w:case k:return Li(+e,+t);case S:return e.name==t.name&&e.message==t.message;case C:case P:return e==t+"";case $:var s=sr;case O:var l=1&n;if(s||(s=cr),e.size!=t.size&&!l)return!1;var u=i.get(e);if(u)return u==t;n|=2,i.set(e,t);var c=ra(s(e),s(t),n,o,a,i);return i.delete(e),c;case N:if(Fr)return Fr.call(e)==Fr.call(t)}return!1}(e,t,u,r,o,a,i);if(!(1&r)){var h=d&&Ie.call(e,"__wrapped__"),m=f&&Ie.call(t,"__wrapped__");if(h||m){var v=h?e.value():e,x=m?t.value():t;return i||(i=new Gr),a(v,x,r,o,i)}}if(!p)return!1;return i||(i=new Gr),function(e,t,r,o,a,i){var s=1&r,l=oa(e),u=l.length,c=oa(t),d=c.length;if(u!=d&&!s)return!1;var f=u;for(;f--;){var p=l[f];if(!(s?p in t:Ie.call(t,p)))return!1}var h=i.get(e),m=i.get(t);if(h&&m)return h==t&&m==e;var v=!0;i.set(e,t),i.set(t,e);var g=s;for(;++f<u;){var y=e[p=l[f]],b=t[p];if(o)var w=s?o(b,y,p,t,e,i):o(y,b,p,e,t,i);if(!(w===n?y===b||a(y,b,r,o,i):w)){v=!1;break}g||(g="constructor"==p)}if(v&&!g){var S=e.constructor,x=t.constructor;S==x||!("constructor"in e)||!("constructor"in t)||"function"==typeof S&&S instanceof S&&"function"==typeof x&&x instanceof x||(v=!1)}return i.delete(e),i.delete(t),v}(e,t,r,o,a,i)}(e,t,r,o,Rn,a))}function Tn(e,t,r,o){var a=r.length,i=a,s=!o;if(null==e)return!i;for(e=Ee(e);a--;){var l=r[a];if(s&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++a<i;){var u=(l=r[a])[0],c=e[u],d=l[1];if(s&&l[2]){if(c===n&&!(u in e))return!1}else{var f=new Gr;if(o)var p=o(c,d,u,e,t,f);if(!(p===n?Rn(d,c,3,o,f):p))return!1}}return!0}function An(e){return!(!es(e)||(t=e,Fe&&Fe in t))&&(Yi(e)?Be:ge).test(za(e));var t}function In(e){return"function"==typeof e?e:null==e?nl:"object"==typeof e?Wi(e)?Bn(e[0],e[1]):Ln(e):fl(e)}function Mn(e){if(!$a(e))return Ht(e);var t=[];for(var r in Ee(e))Ie.call(e,r)&&"constructor"!=r&&t.push(r);return t}function Fn(e){if(!es(e))return function(e){var t=[];if(null!=e)for(var r in Ee(e))t.push(r);return t}(e);var t=$a(e),r=[];for(var n in e)("constructor"!=n||!t&&Ie.call(e,n))&&r.push(n);return r}function zn(e,t){return e<t}function Dn(e,t){var n=-1,o=Ki(e)?r(e.length):[];return fn(e,(function(e,r,a){o[++n]=t(e,r,a)})),o}function Ln(e){var t=da(e);return 1==t.length&&t[0][2]?Ea(t[0][0],t[0][1]):function(r){return r===e||Tn(r,e,t)}}function Bn(e,t){return Sa(e)&&ka(t)?Ea(Fa(e),t):function(r){var o=Es(r,e);return o===n&&o===t?js(r,e):Rn(t,o,3)}}function Vn(e,t,r,o,a){e!==t&&yn(t,(function(i,s){if(a||(a=new Gr),es(i))!function(e,t,r,o,a,i,s){var l=Oa(e,r),u=Oa(t,r),c=s.get(u);if(c)return void Zr(e,r,c);var d=i?i(l,u,r+"",e,t,s):n,f=d===n;if(f){var p=Wi(u),h=!p&&Gi(u),m=!p&&!h&&us(u);d=u,p||h||m?Wi(l)?d=l:Hi(l)?d=Po(l):h?(f=!1,d=$o(u,!0)):m?(f=!1,d=Eo(u,!0)):d=[]:os(u)||Ui(u)?(d=l,Ui(l)?d=gs(l):es(l)&&!Yi(l)||(d=ga(u))):f=!1}f&&(s.set(u,d),a(d,u,o,i,s),s.delete(u));Zr(e,r,d)}(e,t,s,r,Vn,o,a);else{var l=o?o(Oa(e,s),i,s+"",e,t,a):n;l===n&&(l=i),Zr(e,s,l)}}),Rs)}function Un(e,t){var r=e.length;if(r)return ba(t+=t<0?r:0,r)?e[t]:n}function Wn(e,t,r){t=t.length?At(t,(function(e){return Wi(e)?function(t){return _n(t,1===e.length?e[0]:e)}:e})):[nl];var n=-1;t=At(t,Xt(ua()));var o=Dn(e,(function(e,r,o){var a=At(t,(function(t){return t(e)}));return{criteria:a,index:++n,value:e}}));return function(e,t){var r=e.length;for(e.sort(t);r--;)e[r]=e[r].value;return e}(o,(function(e,t){return function(e,t,r){var n=-1,o=e.criteria,a=t.criteria,i=o.length,s=r.length;for(;++n<i;){var l=jo(o[n],a[n]);if(l)return n>=s?l:l*("desc"==r[n]?-1:1)}return e.index-t.index}(e,t,r)}))}function qn(e,t,r){for(var n=-1,o=t.length,a={};++n<o;){var i=t[n],s=_n(e,i);r(s,i)&&Zn(a,wo(i,e),s)}return a}function Kn(e,t,r,n){var o=n?Ut:Vt,a=-1,i=t.length,s=e;for(e===t&&(t=Po(t)),r&&(s=At(e,Xt(r)));++a<i;)for(var l=0,u=t[a],c=r?r(u):u;(l=o(s,c,l,n))>-1;)s!==e&&Qe.call(s,l,1),Qe.call(e,l,1);return e}function Hn(e,t){for(var r=e?t.length:0,n=r-1;r--;){var o=t[r];if(r==n||o!==a){var a=o;ba(o)?Qe.call(e,o,1):fo(e,o)}}return e}function Gn(e,t){return e+mt(Sr()*(t-e+1))}function Qn(e,t){var r="";if(!e||t<1||t>p)return r;do{t%2&&(r+=e),(t=mt(t/2))&&(e+=e)}while(t);return r}function Jn(e,t){return Ra(ja(e,t,nl),e+"")}function Yn(e){return Jr(Ls(e))}function Xn(e,t){var r=Ls(e);return Ia(r,sn(t,0,r.length))}function Zn(e,t,r,o){if(!es(e))return e;for(var a=-1,i=(t=wo(t,e)).length,s=i-1,l=e;null!=l&&++a<i;){var u=Fa(t[a]),c=r;if("__proto__"===u||"constructor"===u||"prototype"===u)return e;if(a!=s){var d=l[u];(c=o?o(d,u,l):n)===n&&(c=es(d)?d:ba(t[a+1])?[]:{})}en(l,u,c),l=l[u]}return e}var eo=Or?function(e,t){return Or.set(e,t),e}:nl,to=tt?function(e,t){return tt(e,"toString",{configurable:!0,enumerable:!1,value:el(t),writable:!0})}:nl;function ro(e){return Ia(Ls(e))}function no(e,t,n){var o=-1,a=e.length;t<0&&(t=-t>a?0:a+t),(n=n>a?a:n)<0&&(n+=a),a=t>n?0:n-t>>>0,t>>>=0;for(var i=r(a);++o<a;)i[o]=e[o+t];return i}function oo(e,t){var r;return fn(e,(function(e,n,o){return!(r=t(e,n,o))})),!!r}function ao(e,t,r){var n=0,o=null==e?n:e.length;if("number"==typeof t&&t==t&&o<=2147483647){for(;n<o;){var a=n+o>>>1,i=e[a];null!==i&&!ls(i)&&(r?i<=t:i<t)?n=a+1:o=a}return o}return io(e,t,nl,r)}function io(e,t,r,o){var a=0,i=null==e?0:e.length;if(0===i)return 0;for(var s=(t=r(t))!=t,l=null===t,u=ls(t),c=t===n;a<i;){var d=mt((a+i)/2),f=r(e[d]),p=f!==n,h=null===f,m=f==f,v=ls(f);if(s)var g=o||m;else g=c?m&&(o||p):l?m&&p&&(o||!h):u?m&&p&&!h&&(o||!v):!h&&!v&&(o?f<=t:f<t);g?a=d+1:i=d}return yr(i,4294967294)}function so(e,t){for(var r=-1,n=e.length,o=0,a=[];++r<n;){var i=e[r],s=t?t(i):i;if(!r||!Li(s,l)){var l=s;a[o++]=0===i?0:i}}return a}function lo(e){return"number"==typeof e?e:ls(e)?h:+e}function uo(e){if("string"==typeof e)return e;if(Wi(e))return At(e,uo)+"";if(ls(e))return zr?zr.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function co(e,t,r){var n=-1,o=Rt,a=e.length,i=!0,s=[],l=s;if(r)i=!1,o=Tt;else if(a>=200){var u=t?null:Jo(e);if(u)return cr(u);i=!1,o=er,l=new Hr}else l=t?[]:s;e:for(;++n<a;){var c=e[n],d=t?t(c):c;if(c=r||0!==c?c:0,i&&d==d){for(var f=l.length;f--;)if(l[f]===d)continue e;t&&l.push(d),s.push(c)}else o(l,d,r)||(l!==s&&l.push(d),s.push(c))}return s}function fo(e,t){return null==(e=Ca(e,t=wo(t,e)))||delete e[Fa(Ja(t))]}function po(e,t,r,n){return Zn(e,t,r(_n(e,t)),n)}function ho(e,t,r,n){for(var o=e.length,a=n?o:-1;(n?a--:++a<o)&&t(e[a],a,e););return r?no(e,n?0:a,n?a+1:o):no(e,n?a+1:0,n?o:a)}function mo(e,t){var r=e;return r instanceof Ur&&(r=r.value()),Mt(t,(function(e,t){return t.func.apply(t.thisArg,It([e],t.args))}),r)}function vo(e,t,n){var o=e.length;if(o<2)return o?co(e[0]):[];for(var a=-1,i=r(o);++a<o;)for(var s=e[a],l=-1;++l<o;)l!=a&&(i[a]=dn(i[a]||s,e[l],t,n));return co(gn(i,1),t,n)}function go(e,t,r){for(var o=-1,a=e.length,i=t.length,s={};++o<a;){var l=o<i?t[o]:n;r(s,e[o],l)}return s}function yo(e){return Hi(e)?e:[]}function bo(e){return"function"==typeof e?e:nl}function wo(e,t){return Wi(e)?e:Sa(e,t)?[e]:Ma(ys(e))}var So=Jn;function xo(e,t,r){var o=e.length;return r=r===n?o:r,!t&&r>=o?e:no(e,t,r)}var _o=nt||function(e){return ht.clearTimeout(e)};function $o(e,t){if(t)return e.slice();var r=e.length,n=qe?qe(r):new e.constructor(r);return e.copy(n),n}function ko(e){var t=new e.constructor(e.byteLength);return new We(t).set(new We(e)),t}function Eo(e,t){var r=t?ko(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function jo(e,t){if(e!==t){var r=e!==n,o=null===e,a=e==e,i=ls(e),s=t!==n,l=null===t,u=t==t,c=ls(t);if(!l&&!c&&!i&&e>t||i&&s&&u&&!l&&!c||o&&s&&u||!r&&u||!a)return 1;if(!o&&!i&&!c&&e<t||c&&r&&a&&!o&&!i||l&&r&&a||!s&&a||!u)return-1}return 0}function Co(e,t,n,o){for(var a=-1,i=e.length,s=n.length,l=-1,u=t.length,c=gr(i-s,0),d=r(u+c),f=!o;++l<u;)d[l]=t[l];for(;++a<s;)(f||a<i)&&(d[n[a]]=e[a]);for(;c--;)d[l++]=e[a++];return d}function Oo(e,t,n,o){for(var a=-1,i=e.length,s=-1,l=n.length,u=-1,c=t.length,d=gr(i-l,0),f=r(d+c),p=!o;++a<d;)f[a]=e[a];for(var h=a;++u<c;)f[h+u]=t[u];for(;++s<l;)(p||a<i)&&(f[h+n[s]]=e[a++]);return f}function Po(e,t){var n=-1,o=e.length;for(t||(t=r(o));++n<o;)t[n]=e[n];return t}function No(e,t,r,o){var a=!r;r||(r={});for(var i=-1,s=t.length;++i<s;){var l=t[i],u=o?o(r[l],e[l],l,r,e):n;u===n&&(u=e[l]),a?on(r,l,u):en(r,l,u)}return r}function Ro(e,t){return function(r,n){var o=Wi(r)?jt:rn,a=t?t():{};return o(r,e,ua(n,2),a)}}function To(e){return Jn((function(t,r){var o=-1,a=r.length,i=a>1?r[a-1]:n,s=a>2?r[2]:n;for(i=e.length>3&&"function"==typeof i?(a--,i):n,s&&wa(r[0],r[1],s)&&(i=a<3?n:i,a=1),t=Ee(t);++o<a;){var l=r[o];l&&e(t,l,o,i)}return t}))}function Ao(e,t){return function(r,n){if(null==r)return r;if(!Ki(r))return e(r,n);for(var o=r.length,a=t?o:-1,i=Ee(r);(t?a--:++a<o)&&!1!==n(i[a],a,i););return r}}function Io(e){return function(t,r,n){for(var o=-1,a=Ee(t),i=n(t),s=i.length;s--;){var l=i[e?s:++o];if(!1===r(a[l],l,a))break}return t}}function Mo(e){return function(t){var r=ir(t=ys(t))?pr(t):n,o=r?r[0]:t.charAt(0),a=r?xo(r,1).join(""):t.slice(1);return o[e]()+a}}function Fo(e){return function(t){return Mt(Ys(Us(t).replace(Ze,"")),e,"")}}function zo(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var r=Lr(e.prototype),n=e.apply(r,t);return es(n)?n:r}}function Do(e){return function(t,r,o){var a=Ee(t);if(!Ki(t)){var i=ua(r,3);t=Ns(t),r=function(e){return i(a[e],e,a)}}var s=e(t,r,o);return s>-1?a[i?t[s]:s]:n}}function Lo(e){return na((function(t){var r=t.length,a=r,i=Vr.prototype.thru;for(e&&t.reverse();a--;){var s=t[a];if("function"!=typeof s)throw new Oe(o);if(i&&!l&&"wrapper"==sa(s))var l=new Vr([],!0)}for(a=l?a:r;++a<r;){var u=sa(s=t[a]),c="wrapper"==u?ia(s):n;l=c&&xa(c[0])&&424==c[1]&&!c[4].length&&1==c[9]?l[sa(c[0])].apply(l,c[3]):1==s.length&&xa(s)?l[u]():l.thru(s)}return function(){var e=arguments,n=e[0];if(l&&1==e.length&&Wi(n))return l.plant(n).value();for(var o=0,a=r?t[o].apply(this,e):n;++o<r;)a=t[o].call(this,a);return a}}))}function Bo(e,t,o,a,i,s,l,u,d,f){var p=t&c,h=1&t,m=2&t,v=24&t,g=512&t,y=m?n:zo(e);return function c(){for(var b=arguments.length,w=r(b),S=b;S--;)w[S]=arguments[S];if(v)var x=la(c),_=function(e,t){for(var r=e.length,n=0;r--;)e[r]===t&&++n;return n}(w,x);if(a&&(w=Co(w,a,i,v)),s&&(w=Oo(w,s,l,v)),b-=_,v&&b<f){var $=ur(w,x);return Go(e,t,Bo,c.placeholder,o,w,$,u,d,f-b)}var k=h?o:this,E=m?k[e]:e;return b=w.length,u?w=function(e,t){var r=e.length,o=yr(t.length,r),a=Po(e);for(;o--;){var i=t[o];e[o]=ba(i,r)?a[i]:n}return e}(w,u):g&&b>1&&w.reverse(),p&&d<b&&(w.length=d),this&&this!==ht&&this instanceof c&&(E=y||zo(E)),E.apply(k,w)}}function Vo(e,t){return function(r,n){return function(e,t,r,n){return wn(e,(function(e,o,a){t(n,r(e),o,a)})),n}(r,e,t(n),{})}}function Uo(e,t){return function(r,o){var a;if(r===n&&o===n)return t;if(r!==n&&(a=r),o!==n){if(a===n)return o;"string"==typeof r||"string"==typeof o?(r=uo(r),o=uo(o)):(r=lo(r),o=lo(o)),a=e(r,o)}return a}}function Wo(e){return na((function(t){return t=At(t,Xt(ua())),Jn((function(r){var n=this;return e(t,(function(e){return Et(e,n,r)}))}))}))}function qo(e,t){var r=(t=t===n?" ":uo(t)).length;if(r<2)return r?Qn(t,e):t;var o=Qn(t,pt(e/fr(t)));return ir(t)?xo(pr(o),0,e).join(""):o.slice(0,e)}function Ko(e){return function(t,o,a){return a&&"number"!=typeof a&&wa(t,o,a)&&(o=a=n),t=ps(t),o===n?(o=t,t=0):o=ps(o),function(e,t,n,o){for(var a=-1,i=gr(pt((t-e)/(n||1)),0),s=r(i);i--;)s[o?i:++a]=e,e+=n;return s}(t,o,a=a===n?t<o?1:-1:ps(a),e)}}function Ho(e){return function(t,r){return"string"==typeof t&&"string"==typeof r||(t=vs(t),r=vs(r)),e(t,r)}}function Go(e,t,r,o,a,i,s,c,d,f){var p=8&t;t|=p?l:u,4&(t&=~(p?u:l))||(t&=-4);var h=[e,t,a,p?i:n,p?s:n,p?n:i,p?n:s,c,d,f],m=r.apply(n,h);return xa(e)&&Pa(m,h),m.placeholder=o,Ta(m,e,t)}function Qo(e){var t=ke[e];return function(e,r){if(e=vs(e),(r=null==r?0:yr(hs(r),292))&&bt(e)){var n=(ys(e)+"e").split("e");return+((n=(ys(t(n[0]+"e"+(+n[1]+r)))+"e").split("e"))[0]+"e"+(+n[1]-r))}return t(e)}}var Jo=Er&&1/cr(new Er([,-0]))[1]==f?function(e){return new Er(e)}:ll;function Yo(e){return function(t){var r=ma(t);return r==$?sr(t):r==O?dr(t):function(e,t){return At(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Xo(e,t,a,f,p,h,m,v){var g=2&t;if(!g&&"function"!=typeof e)throw new Oe(o);var y=f?f.length:0;if(y||(t&=-97,f=p=n),m=m===n?m:gr(hs(m),0),v=v===n?v:hs(v),y-=p?p.length:0,t&u){var b=f,w=p;f=p=n}var S=g?n:ia(e),x=[e,t,a,f,p,b,w,h,m,v];if(S&&function(e,t){var r=e[1],n=t[1],o=r|n,a=o<131,s=n==c&&8==r||n==c&&r==d&&e[7].length<=t[8]||384==n&&t[7].length<=t[8]&&8==r;if(!a&&!s)return e;1&n&&(e[2]=t[2],o|=1&r?0:4);var l=t[3];if(l){var u=e[3];e[3]=u?Co(u,l,t[4]):l,e[4]=u?ur(e[3],i):t[4]}(l=t[5])&&(u=e[5],e[5]=u?Oo(u,l,t[6]):l,e[6]=u?ur(e[5],i):t[6]);(l=t[7])&&(e[7]=l);n&c&&(e[8]=null==e[8]?t[8]:yr(e[8],t[8]));null==e[9]&&(e[9]=t[9]);e[0]=t[0],e[1]=o}(x,S),e=x[0],t=x[1],a=x[2],f=x[3],p=x[4],!(v=x[9]=x[9]===n?g?0:e.length:gr(x[9]-y,0))&&24&t&&(t&=-25),t&&1!=t)_=8==t||t==s?function(e,t,o){var a=zo(e);return function i(){for(var s=arguments.length,l=r(s),u=s,c=la(i);u--;)l[u]=arguments[u];var d=s<3&&l[0]!==c&&l[s-1]!==c?[]:ur(l,c);return(s-=d.length)<o?Go(e,t,Bo,i.placeholder,n,l,d,n,n,o-s):Et(this&&this!==ht&&this instanceof i?a:e,this,l)}}(e,t,v):t!=l&&33!=t||p.length?Bo.apply(n,x):function(e,t,n,o){var a=1&t,i=zo(e);return function t(){for(var s=-1,l=arguments.length,u=-1,c=o.length,d=r(c+l),f=this&&this!==ht&&this instanceof t?i:e;++u<c;)d[u]=o[u];for(;l--;)d[u++]=arguments[++s];return Et(f,a?n:this,d)}}(e,t,a,f);else var _=function(e,t,r){var n=1&t,o=zo(e);return function t(){return(this&&this!==ht&&this instanceof t?o:e).apply(n?r:this,arguments)}}(e,t,a);return Ta((S?eo:Pa)(_,x),e,t)}function Zo(e,t,r,o){return e===n||Li(e,Re[r])&&!Ie.call(o,r)?t:e}function ea(e,t,r,o,a,i){return es(e)&&es(t)&&(i.set(t,e),Vn(e,t,n,ea,i),i.delete(t)),e}function ta(e){return os(e)?n:e}function ra(e,t,r,o,a,i){var s=1&r,l=e.length,u=t.length;if(l!=u&&!(s&&u>l))return!1;var c=i.get(e),d=i.get(t);if(c&&d)return c==t&&d==e;var f=-1,p=!0,h=2&r?new Hr:n;for(i.set(e,t),i.set(t,e);++f<l;){var m=e[f],v=t[f];if(o)var g=s?o(v,m,f,t,e,i):o(m,v,f,e,t,i);if(g!==n){if(g)continue;p=!1;break}if(h){if(!zt(t,(function(e,t){if(!er(h,t)&&(m===e||a(m,e,r,o,i)))return h.push(t)}))){p=!1;break}}else if(m!==v&&!a(m,v,r,o,i)){p=!1;break}}return i.delete(e),i.delete(t),p}function na(e){return Ra(ja(e,n,qa),e+"")}function oa(e){return $n(e,Ns,pa)}function aa(e){return $n(e,Rs,ha)}var ia=Or?function(e){return Or.get(e)}:ll;function sa(e){for(var t=e.name+"",r=Pr[t],n=Ie.call(Pr,t)?r.length:0;n--;){var o=r[n],a=o.func;if(null==a||a==e)return o.name}return t}function la(e){return(Ie.call(Dr,"placeholder")?Dr:e).placeholder}function ua(){var e=Dr.iteratee||ol;return e=e===ol?In:e,arguments.length?e(arguments[0],arguments[1]):e}function ca(e,t){var r=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?r["string"==typeof t?"string":"hash"]:r.map}function da(e){for(var t=Ns(e),r=t.length;r--;){var n=t[r],o=e[n];t[r]=[n,o,ka(o)]}return t}function fa(e,t){var r=function(e,t){return null==e?n:e[t]}(e,t);return An(r)?r:n}var pa=vt?function(e){return null==e?[]:(e=Ee(e),Nt(vt(e),(function(t){return Ge.call(e,t)})))}:ml,ha=vt?function(e){for(var t=[];e;)It(t,pa(e)),e=Ke(e);return t}:ml,ma=kn;function va(e,t,r){for(var n=-1,o=(t=wo(t,e)).length,a=!1;++n<o;){var i=Fa(t[n]);if(!(a=null!=e&&r(e,i)))break;e=e[i]}return a||++n!=o?a:!!(o=null==e?0:e.length)&&Zi(o)&&ba(i,o)&&(Wi(e)||Ui(e))}function ga(e){return"function"!=typeof e.constructor||$a(e)?{}:Lr(Ke(e))}function ya(e){return Wi(e)||Ui(e)||!!(Je&&e&&e[Je])}function ba(e,t){var r=typeof e;return!!(t=null==t?p:t)&&("number"==r||"symbol"!=r&&be.test(e))&&e>-1&&e%1==0&&e<t}function wa(e,t,r){if(!es(r))return!1;var n=typeof t;return!!("number"==n?Ki(r)&&ba(t,r.length):"string"==n&&t in r)&&Li(r[t],e)}function Sa(e,t){if(Wi(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!ls(e))||(te.test(e)||!ee.test(e)||null!=t&&e in Ee(t))}function xa(e){var t=sa(e),r=Dr[t];if("function"!=typeof r||!(t in Ur.prototype))return!1;if(e===r)return!0;var n=ia(r);return!!n&&e===n[0]}(_r&&ma(new _r(new ArrayBuffer(1)))!=A||$r&&ma(new $r)!=$||kr&&ma(kr.resolve())!=j||Er&&ma(new Er)!=O||jr&&ma(new jr)!=R)&&(ma=function(e){var t=kn(e),r=t==E?e.constructor:n,o=r?za(r):"";if(o)switch(o){case Nr:return A;case Rr:return $;case Tr:return j;case Ar:return O;case Ir:return R}return t});var _a=Te?Yi:vl;function $a(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Re)}function ka(e){return e==e&&!es(e)}function Ea(e,t){return function(r){return null!=r&&(r[e]===t&&(t!==n||e in Ee(r)))}}function ja(e,t,o){return t=gr(t===n?e.length-1:t,0),function(){for(var n=arguments,a=-1,i=gr(n.length-t,0),s=r(i);++a<i;)s[a]=n[t+a];a=-1;for(var l=r(t+1);++a<t;)l[a]=n[a];return l[t]=o(s),Et(e,this,l)}}function Ca(e,t){return t.length<2?e:_n(e,no(t,0,-1))}function Oa(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var Pa=Aa(eo),Na=ft||function(e,t){return ht.setTimeout(e,t)},Ra=Aa(to);function Ta(e,t,r){var n=t+"";return Ra(e,function(e,t){var r=t.length;if(!r)return e;var n=r-1;return t[n]=(r>1?"& ":"")+t[n],t=t.join(r>2?", ":" "),e.replace(se,"{\n/* [wrapped with "+t+"] */\n")}(n,function(e,t){return Ct(v,(function(r){var n="_."+r[0];t&r[1]&&!Rt(e,n)&&e.push(n)})),e.sort()}(function(e){var t=e.match(le);return t?t[1].split(ue):[]}(n),r)))}function Aa(e){var t=0,r=0;return function(){var o=br(),a=16-(o-r);if(r=o,a>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(n,arguments)}}function Ia(e,t){var r=-1,o=e.length,a=o-1;for(t=t===n?o:t;++r<t;){var i=Gn(r,a),s=e[i];e[i]=e[r],e[r]=s}return e.length=t,e}var Ma=function(e){var t=Ai(e,(function(e){return 500===r.size&&r.clear(),e})),r=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(re,(function(e,r,n,o){t.push(n?o.replace(fe,"$1"):r||e)})),t}));function Fa(e){if("string"==typeof e||ls(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function za(e){if(null!=e){try{return Ae.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Da(e){if(e instanceof Ur)return e.clone();var t=new Vr(e.__wrapped__,e.__chain__);return t.__actions__=Po(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var La=Jn((function(e,t){return Hi(e)?dn(e,gn(t,1,Hi,!0)):[]})),Ba=Jn((function(e,t){var r=Ja(t);return Hi(r)&&(r=n),Hi(e)?dn(e,gn(t,1,Hi,!0),ua(r,2)):[]})),Va=Jn((function(e,t){var r=Ja(t);return Hi(r)&&(r=n),Hi(e)?dn(e,gn(t,1,Hi,!0),n,r):[]}));function Ua(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var o=null==r?0:hs(r);return o<0&&(o=gr(n+o,0)),Bt(e,ua(t,3),o)}function Wa(e,t,r){var o=null==e?0:e.length;if(!o)return-1;var a=o-1;return r!==n&&(a=hs(r),a=r<0?gr(o+a,0):yr(a,o-1)),Bt(e,ua(t,3),a,!0)}function qa(e){return(null==e?0:e.length)?gn(e,1):[]}function Ka(e){return e&&e.length?e[0]:n}var Ha=Jn((function(e){var t=At(e,yo);return t.length&&t[0]===e[0]?On(t):[]})),Ga=Jn((function(e){var t=Ja(e),r=At(e,yo);return t===Ja(r)?t=n:r.pop(),r.length&&r[0]===e[0]?On(r,ua(t,2)):[]})),Qa=Jn((function(e){var t=Ja(e),r=At(e,yo);return(t="function"==typeof t?t:n)&&r.pop(),r.length&&r[0]===e[0]?On(r,n,t):[]}));function Ja(e){var t=null==e?0:e.length;return t?e[t-1]:n}var Ya=Jn(Xa);function Xa(e,t){return e&&e.length&&t&&t.length?Kn(e,t):e}var Za=na((function(e,t){var r=null==e?0:e.length,n=an(e,t);return Hn(e,At(t,(function(e){return ba(e,r)?+e:e})).sort(jo)),n}));function ei(e){return null==e?e:xr.call(e)}var ti=Jn((function(e){return co(gn(e,1,Hi,!0))})),ri=Jn((function(e){var t=Ja(e);return Hi(t)&&(t=n),co(gn(e,1,Hi,!0),ua(t,2))})),ni=Jn((function(e){var t=Ja(e);return t="function"==typeof t?t:n,co(gn(e,1,Hi,!0),n,t)}));function oi(e){if(!e||!e.length)return[];var t=0;return e=Nt(e,(function(e){if(Hi(e))return t=gr(e.length,t),!0})),Jt(t,(function(t){return At(e,Kt(t))}))}function ai(e,t){if(!e||!e.length)return[];var r=oi(e);return null==t?r:At(r,(function(e){return Et(t,n,e)}))}var ii=Jn((function(e,t){return Hi(e)?dn(e,t):[]})),si=Jn((function(e){return vo(Nt(e,Hi))})),li=Jn((function(e){var t=Ja(e);return Hi(t)&&(t=n),vo(Nt(e,Hi),ua(t,2))})),ui=Jn((function(e){var t=Ja(e);return t="function"==typeof t?t:n,vo(Nt(e,Hi),n,t)})),ci=Jn(oi);var di=Jn((function(e){var t=e.length,r=t>1?e[t-1]:n;return r="function"==typeof r?(e.pop(),r):n,ai(e,r)}));function fi(e){var t=Dr(e);return t.__chain__=!0,t}function pi(e,t){return t(e)}var hi=na((function(e){var t=e.length,r=t?e[0]:0,o=this.__wrapped__,a=function(t){return an(t,e)};return!(t>1||this.__actions__.length)&&o instanceof Ur&&ba(r)?((o=o.slice(r,+r+(t?1:0))).__actions__.push({func:pi,args:[a],thisArg:n}),new Vr(o,this.__chain__).thru((function(e){return t&&!e.length&&e.push(n),e}))):this.thru(a)}));var mi=Ro((function(e,t,r){Ie.call(e,r)?++e[r]:on(e,r,1)}));var vi=Do(Ua),gi=Do(Wa);function yi(e,t){return(Wi(e)?Ct:fn)(e,ua(t,3))}function bi(e,t){return(Wi(e)?Ot:pn)(e,ua(t,3))}var wi=Ro((function(e,t,r){Ie.call(e,r)?e[r].push(t):on(e,r,[t])}));var Si=Jn((function(e,t,n){var o=-1,a="function"==typeof t,i=Ki(e)?r(e.length):[];return fn(e,(function(e){i[++o]=a?Et(t,e,n):Pn(e,t,n)})),i})),xi=Ro((function(e,t,r){on(e,r,t)}));function _i(e,t){return(Wi(e)?At:Dn)(e,ua(t,3))}var $i=Ro((function(e,t,r){e[r?0:1].push(t)}),(function(){return[[],[]]}));var ki=Jn((function(e,t){if(null==e)return[];var r=t.length;return r>1&&wa(e,t[0],t[1])?t=[]:r>2&&wa(t[0],t[1],t[2])&&(t=[t[0]]),Wn(e,gn(t,1),[])})),Ei=ut||function(){return ht.Date.now()};function ji(e,t,r){return t=r?n:t,t=e&&null==t?e.length:t,Xo(e,c,n,n,n,n,t)}function Ci(e,t){var r;if("function"!=typeof t)throw new Oe(o);return e=hs(e),function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=n),r}}var Oi=Jn((function(e,t,r){var n=1;if(r.length){var o=ur(r,la(Oi));n|=l}return Xo(e,n,t,r,o)})),Pi=Jn((function(e,t,r){var n=3;if(r.length){var o=ur(r,la(Pi));n|=l}return Xo(t,n,e,r,o)}));function Ni(e,t,r){var a,i,s,l,u,c,d=0,f=!1,p=!1,h=!0;if("function"!=typeof e)throw new Oe(o);function m(t){var r=a,o=i;return a=i=n,d=t,l=e.apply(o,r)}function v(e){var r=e-c;return c===n||r>=t||r<0||p&&e-d>=s}function g(){var e=Ei();if(v(e))return y(e);u=Na(g,function(e){var r=t-(e-c);return p?yr(r,s-(e-d)):r}(e))}function y(e){return u=n,h&&a?m(e):(a=i=n,l)}function b(){var e=Ei(),r=v(e);if(a=arguments,i=this,c=e,r){if(u===n)return function(e){return d=e,u=Na(g,t),f?m(e):l}(c);if(p)return _o(u),u=Na(g,t),m(c)}return u===n&&(u=Na(g,t)),l}return t=vs(t)||0,es(r)&&(f=!!r.leading,s=(p="maxWait"in r)?gr(vs(r.maxWait)||0,t):s,h="trailing"in r?!!r.trailing:h),b.cancel=function(){u!==n&&_o(u),d=0,a=c=i=u=n},b.flush=function(){return u===n?l:y(Ei())},b}var Ri=Jn((function(e,t){return cn(e,1,t)})),Ti=Jn((function(e,t,r){return cn(e,vs(t)||0,r)}));function Ai(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Oe(o);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(Ai.Cache||Kr),r}function Ii(e){if("function"!=typeof e)throw new Oe(o);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Ai.Cache=Kr;var Mi=So((function(e,t){var r=(t=1==t.length&&Wi(t[0])?At(t[0],Xt(ua())):At(gn(t,1),Xt(ua()))).length;return Jn((function(n){for(var o=-1,a=yr(n.length,r);++o<a;)n[o]=t[o].call(this,n[o]);return Et(e,this,n)}))})),Fi=Jn((function(e,t){var r=ur(t,la(Fi));return Xo(e,l,n,t,r)})),zi=Jn((function(e,t){var r=ur(t,la(zi));return Xo(e,u,n,t,r)})),Di=na((function(e,t){return Xo(e,d,n,n,n,t)}));function Li(e,t){return e===t||e!=e&&t!=t}var Bi=Ho(En),Vi=Ho((function(e,t){return e>=t})),Ui=Nn(function(){return arguments}())?Nn:function(e){return ts(e)&&Ie.call(e,"callee")&&!Ge.call(e,"callee")},Wi=r.isArray,qi=wt?Xt(wt):function(e){return ts(e)&&kn(e)==T};function Ki(e){return null!=e&&Zi(e.length)&&!Yi(e)}function Hi(e){return ts(e)&&Ki(e)}var Gi=yt||vl,Qi=St?Xt(St):function(e){return ts(e)&&kn(e)==w};function Ji(e){if(!ts(e))return!1;var t=kn(e);return t==S||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!os(e)}function Yi(e){if(!es(e))return!1;var t=kn(e);return t==x||t==_||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Xi(e){return"number"==typeof e&&e==hs(e)}function Zi(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=p}function es(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function ts(e){return null!=e&&"object"==typeof e}var rs=xt?Xt(xt):function(e){return ts(e)&&ma(e)==$};function ns(e){return"number"==typeof e||ts(e)&&kn(e)==k}function os(e){if(!ts(e)||kn(e)!=E)return!1;var t=Ke(e);if(null===t)return!0;var r=Ie.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&Ae.call(r)==De}var as=_t?Xt(_t):function(e){return ts(e)&&kn(e)==C};var is=$t?Xt($t):function(e){return ts(e)&&ma(e)==O};function ss(e){return"string"==typeof e||!Wi(e)&&ts(e)&&kn(e)==P}function ls(e){return"symbol"==typeof e||ts(e)&&kn(e)==N}var us=kt?Xt(kt):function(e){return ts(e)&&Zi(e.length)&&!!st[kn(e)]};var cs=Ho(zn),ds=Ho((function(e,t){return e<=t}));function fs(e){if(!e)return[];if(Ki(e))return ss(e)?pr(e):Po(e);if(Ye&&e[Ye])return function(e){for(var t,r=[];!(t=e.next()).done;)r.push(t.value);return r}(e[Ye]());var t=ma(e);return(t==$?sr:t==O?cr:Ls)(e)}function ps(e){return e?(e=vs(e))===f||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function hs(e){var t=ps(e),r=t%1;return t==t?r?t-r:t:0}function ms(e){return e?sn(hs(e),0,m):0}function vs(e){if("number"==typeof e)return e;if(ls(e))return h;if(es(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=es(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Yt(e);var r=ve.test(e);return r||ye.test(e)?dt(e.slice(2),r?2:8):me.test(e)?h:+e}function gs(e){return No(e,Rs(e))}function ys(e){return null==e?"":uo(e)}var bs=To((function(e,t){if($a(t)||Ki(t))No(t,Ns(t),e);else for(var r in t)Ie.call(t,r)&&en(e,r,t[r])})),ws=To((function(e,t){No(t,Rs(t),e)})),Ss=To((function(e,t,r,n){No(t,Rs(t),e,n)})),xs=To((function(e,t,r,n){No(t,Ns(t),e,n)})),_s=na(an);var $s=Jn((function(e,t){e=Ee(e);var r=-1,o=t.length,a=o>2?t[2]:n;for(a&&wa(t[0],t[1],a)&&(o=1);++r<o;)for(var i=t[r],s=Rs(i),l=-1,u=s.length;++l<u;){var c=s[l],d=e[c];(d===n||Li(d,Re[c])&&!Ie.call(e,c))&&(e[c]=i[c])}return e})),ks=Jn((function(e){return e.push(n,ea),Et(As,n,e)}));function Es(e,t,r){var o=null==e?n:_n(e,t);return o===n?r:o}function js(e,t){return null!=e&&va(e,t,Cn)}var Cs=Vo((function(e,t,r){null!=t&&"function"!=typeof t.toString&&(t=ze.call(t)),e[t]=r}),el(nl)),Os=Vo((function(e,t,r){null!=t&&"function"!=typeof t.toString&&(t=ze.call(t)),Ie.call(e,t)?e[t].push(r):e[t]=[r]}),ua),Ps=Jn(Pn);function Ns(e){return Ki(e)?Qr(e):Mn(e)}function Rs(e){return Ki(e)?Qr(e,!0):Fn(e)}var Ts=To((function(e,t,r){Vn(e,t,r)})),As=To((function(e,t,r,n){Vn(e,t,r,n)})),Is=na((function(e,t){var r={};if(null==e)return r;var n=!1;t=At(t,(function(t){return t=wo(t,e),n||(n=t.length>1),t})),No(e,aa(e),r),n&&(r=ln(r,7,ta));for(var o=t.length;o--;)fo(r,t[o]);return r}));var Ms=na((function(e,t){return null==e?{}:function(e,t){return qn(e,t,(function(t,r){return js(e,r)}))}(e,t)}));function Fs(e,t){if(null==e)return{};var r=At(aa(e),(function(e){return[e]}));return t=ua(t),qn(e,r,(function(e,r){return t(e,r[0])}))}var zs=Yo(Ns),Ds=Yo(Rs);function Ls(e){return null==e?[]:Zt(e,Ns(e))}var Bs=Fo((function(e,t,r){return t=t.toLowerCase(),e+(r?Vs(t):t)}));function Vs(e){return Js(ys(e).toLowerCase())}function Us(e){return(e=ys(e))&&e.replace(we,nr).replace(et,"")}var Ws=Fo((function(e,t,r){return e+(r?"-":"")+t.toLowerCase()})),qs=Fo((function(e,t,r){return e+(r?" ":"")+t.toLowerCase()})),Ks=Mo("toLowerCase");var Hs=Fo((function(e,t,r){return e+(r?"_":"")+t.toLowerCase()}));var Gs=Fo((function(e,t,r){return e+(r?" ":"")+Js(t)}));var Qs=Fo((function(e,t,r){return e+(r?" ":"")+t.toUpperCase()})),Js=Mo("toUpperCase");function Ys(e,t,r){return e=ys(e),(t=r?n:t)===n?function(e){return ot.test(e)}(e)?function(e){return e.match(rt)||[]}(e):function(e){return e.match(ce)||[]}(e):e.match(t)||[]}var Xs=Jn((function(e,t){try{return Et(e,n,t)}catch(e){return Ji(e)?e:new _e(e)}})),Zs=na((function(e,t){return Ct(t,(function(t){t=Fa(t),on(e,t,Oi(e[t],e))})),e}));function el(e){return function(){return e}}var tl=Lo(),rl=Lo(!0);function nl(e){return e}function ol(e){return In("function"==typeof e?e:ln(e,1))}var al=Jn((function(e,t){return function(r){return Pn(r,e,t)}})),il=Jn((function(e,t){return function(r){return Pn(e,r,t)}}));function sl(e,t,r){var n=Ns(t),o=xn(t,n);null!=r||es(t)&&(o.length||!n.length)||(r=t,t=e,e=this,o=xn(t,Ns(t)));var a=!(es(r)&&"chain"in r&&!r.chain),i=Yi(e);return Ct(o,(function(r){var n=t[r];e[r]=n,i&&(e.prototype[r]=function(){var t=this.__chain__;if(a||t){var r=e(this.__wrapped__);return(r.__actions__=Po(this.__actions__)).push({func:n,args:arguments,thisArg:e}),r.__chain__=t,r}return n.apply(e,It([this.value()],arguments))})})),e}function ll(){}var ul=Wo(At),cl=Wo(Pt),dl=Wo(zt);function fl(e){return Sa(e)?Kt(Fa(e)):function(e){return function(t){return _n(t,e)}}(e)}var pl=Ko(),hl=Ko(!0);function ml(){return[]}function vl(){return!1}var gl=Uo((function(e,t){return e+t}),0),yl=Qo("ceil"),bl=Uo((function(e,t){return e/t}),1),wl=Qo("floor");var Sl,xl=Uo((function(e,t){return e*t}),1),_l=Qo("round"),$l=Uo((function(e,t){return e-t}),0);return Dr.after=function(e,t){if("function"!=typeof t)throw new Oe(o);return e=hs(e),function(){if(--e<1)return t.apply(this,arguments)}},Dr.ary=ji,Dr.assign=bs,Dr.assignIn=ws,Dr.assignInWith=Ss,Dr.assignWith=xs,Dr.at=_s,Dr.before=Ci,Dr.bind=Oi,Dr.bindAll=Zs,Dr.bindKey=Pi,Dr.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Wi(e)?e:[e]},Dr.chain=fi,Dr.chunk=function(e,t,o){t=(o?wa(e,t,o):t===n)?1:gr(hs(t),0);var a=null==e?0:e.length;if(!a||t<1)return[];for(var i=0,s=0,l=r(pt(a/t));i<a;)l[s++]=no(e,i,i+=t);return l},Dr.compact=function(e){for(var t=-1,r=null==e?0:e.length,n=0,o=[];++t<r;){var a=e[t];a&&(o[n++]=a)}return o},Dr.concat=function(){var e=arguments.length;if(!e)return[];for(var t=r(e-1),n=arguments[0],o=e;o--;)t[o-1]=arguments[o];return It(Wi(n)?Po(n):[n],gn(t,1))},Dr.cond=function(e){var t=null==e?0:e.length,r=ua();return e=t?At(e,(function(e){if("function"!=typeof e[1])throw new Oe(o);return[r(e[0]),e[1]]})):[],Jn((function(r){for(var n=-1;++n<t;){var o=e[n];if(Et(o[0],this,r))return Et(o[1],this,r)}}))},Dr.conforms=function(e){return function(e){var t=Ns(e);return function(r){return un(r,e,t)}}(ln(e,1))},Dr.constant=el,Dr.countBy=mi,Dr.create=function(e,t){var r=Lr(e);return null==t?r:nn(r,t)},Dr.curry=function e(t,r,o){var a=Xo(t,8,n,n,n,n,n,r=o?n:r);return a.placeholder=e.placeholder,a},Dr.curryRight=function e(t,r,o){var a=Xo(t,s,n,n,n,n,n,r=o?n:r);return a.placeholder=e.placeholder,a},Dr.debounce=Ni,Dr.defaults=$s,Dr.defaultsDeep=ks,Dr.defer=Ri,Dr.delay=Ti,Dr.difference=La,Dr.differenceBy=Ba,Dr.differenceWith=Va,Dr.drop=function(e,t,r){var o=null==e?0:e.length;return o?no(e,(t=r||t===n?1:hs(t))<0?0:t,o):[]},Dr.dropRight=function(e,t,r){var o=null==e?0:e.length;return o?no(e,0,(t=o-(t=r||t===n?1:hs(t)))<0?0:t):[]},Dr.dropRightWhile=function(e,t){return e&&e.length?ho(e,ua(t,3),!0,!0):[]},Dr.dropWhile=function(e,t){return e&&e.length?ho(e,ua(t,3),!0):[]},Dr.fill=function(e,t,r,o){var a=null==e?0:e.length;return a?(r&&"number"!=typeof r&&wa(e,t,r)&&(r=0,o=a),function(e,t,r,o){var a=e.length;for((r=hs(r))<0&&(r=-r>a?0:a+r),(o=o===n||o>a?a:hs(o))<0&&(o+=a),o=r>o?0:ms(o);r<o;)e[r++]=t;return e}(e,t,r,o)):[]},Dr.filter=function(e,t){return(Wi(e)?Nt:vn)(e,ua(t,3))},Dr.flatMap=function(e,t){return gn(_i(e,t),1)},Dr.flatMapDeep=function(e,t){return gn(_i(e,t),f)},Dr.flatMapDepth=function(e,t,r){return r=r===n?1:hs(r),gn(_i(e,t),r)},Dr.flatten=qa,Dr.flattenDeep=function(e){return(null==e?0:e.length)?gn(e,f):[]},Dr.flattenDepth=function(e,t){return(null==e?0:e.length)?gn(e,t=t===n?1:hs(t)):[]},Dr.flip=function(e){return Xo(e,512)},Dr.flow=tl,Dr.flowRight=rl,Dr.fromPairs=function(e){for(var t=-1,r=null==e?0:e.length,n={};++t<r;){var o=e[t];n[o[0]]=o[1]}return n},Dr.functions=function(e){return null==e?[]:xn(e,Ns(e))},Dr.functionsIn=function(e){return null==e?[]:xn(e,Rs(e))},Dr.groupBy=wi,Dr.initial=function(e){return(null==e?0:e.length)?no(e,0,-1):[]},Dr.intersection=Ha,Dr.intersectionBy=Ga,Dr.intersectionWith=Qa,Dr.invert=Cs,Dr.invertBy=Os,Dr.invokeMap=Si,Dr.iteratee=ol,Dr.keyBy=xi,Dr.keys=Ns,Dr.keysIn=Rs,Dr.map=_i,Dr.mapKeys=function(e,t){var r={};return t=ua(t,3),wn(e,(function(e,n,o){on(r,t(e,n,o),e)})),r},Dr.mapValues=function(e,t){var r={};return t=ua(t,3),wn(e,(function(e,n,o){on(r,n,t(e,n,o))})),r},Dr.matches=function(e){return Ln(ln(e,1))},Dr.matchesProperty=function(e,t){return Bn(e,ln(t,1))},Dr.memoize=Ai,Dr.merge=Ts,Dr.mergeWith=As,Dr.method=al,Dr.methodOf=il,Dr.mixin=sl,Dr.negate=Ii,Dr.nthArg=function(e){return e=hs(e),Jn((function(t){return Un(t,e)}))},Dr.omit=Is,Dr.omitBy=function(e,t){return Fs(e,Ii(ua(t)))},Dr.once=function(e){return Ci(2,e)},Dr.orderBy=function(e,t,r,o){return null==e?[]:(Wi(t)||(t=null==t?[]:[t]),Wi(r=o?n:r)||(r=null==r?[]:[r]),Wn(e,t,r))},Dr.over=ul,Dr.overArgs=Mi,Dr.overEvery=cl,Dr.overSome=dl,Dr.partial=Fi,Dr.partialRight=zi,Dr.partition=$i,Dr.pick=Ms,Dr.pickBy=Fs,Dr.property=fl,Dr.propertyOf=function(e){return function(t){return null==e?n:_n(e,t)}},Dr.pull=Ya,Dr.pullAll=Xa,Dr.pullAllBy=function(e,t,r){return e&&e.length&&t&&t.length?Kn(e,t,ua(r,2)):e},Dr.pullAllWith=function(e,t,r){return e&&e.length&&t&&t.length?Kn(e,t,n,r):e},Dr.pullAt=Za,Dr.range=pl,Dr.rangeRight=hl,Dr.rearg=Di,Dr.reject=function(e,t){return(Wi(e)?Nt:vn)(e,Ii(ua(t,3)))},Dr.remove=function(e,t){var r=[];if(!e||!e.length)return r;var n=-1,o=[],a=e.length;for(t=ua(t,3);++n<a;){var i=e[n];t(i,n,e)&&(r.push(i),o.push(n))}return Hn(e,o),r},Dr.rest=function(e,t){if("function"!=typeof e)throw new Oe(o);return Jn(e,t=t===n?t:hs(t))},Dr.reverse=ei,Dr.sampleSize=function(e,t,r){return t=(r?wa(e,t,r):t===n)?1:hs(t),(Wi(e)?Yr:Xn)(e,t)},Dr.set=function(e,t,r){return null==e?e:Zn(e,t,r)},Dr.setWith=function(e,t,r,o){return o="function"==typeof o?o:n,null==e?e:Zn(e,t,r,o)},Dr.shuffle=function(e){return(Wi(e)?Xr:ro)(e)},Dr.slice=function(e,t,r){var o=null==e?0:e.length;return o?(r&&"number"!=typeof r&&wa(e,t,r)?(t=0,r=o):(t=null==t?0:hs(t),r=r===n?o:hs(r)),no(e,t,r)):[]},Dr.sortBy=ki,Dr.sortedUniq=function(e){return e&&e.length?so(e):[]},Dr.sortedUniqBy=function(e,t){return e&&e.length?so(e,ua(t,2)):[]},Dr.split=function(e,t,r){return r&&"number"!=typeof r&&wa(e,t,r)&&(t=r=n),(r=r===n?m:r>>>0)?(e=ys(e))&&("string"==typeof t||null!=t&&!as(t))&&!(t=uo(t))&&ir(e)?xo(pr(e),0,r):e.split(t,r):[]},Dr.spread=function(e,t){if("function"!=typeof e)throw new Oe(o);return t=null==t?0:gr(hs(t),0),Jn((function(r){var n=r[t],o=xo(r,0,t);return n&&It(o,n),Et(e,this,o)}))},Dr.tail=function(e){var t=null==e?0:e.length;return t?no(e,1,t):[]},Dr.take=function(e,t,r){return e&&e.length?no(e,0,(t=r||t===n?1:hs(t))<0?0:t):[]},Dr.takeRight=function(e,t,r){var o=null==e?0:e.length;return o?no(e,(t=o-(t=r||t===n?1:hs(t)))<0?0:t,o):[]},Dr.takeRightWhile=function(e,t){return e&&e.length?ho(e,ua(t,3),!1,!0):[]},Dr.takeWhile=function(e,t){return e&&e.length?ho(e,ua(t,3)):[]},Dr.tap=function(e,t){return t(e),e},Dr.throttle=function(e,t,r){var n=!0,a=!0;if("function"!=typeof e)throw new Oe(o);return es(r)&&(n="leading"in r?!!r.leading:n,a="trailing"in r?!!r.trailing:a),Ni(e,t,{leading:n,maxWait:t,trailing:a})},Dr.thru=pi,Dr.toArray=fs,Dr.toPairs=zs,Dr.toPairsIn=Ds,Dr.toPath=function(e){return Wi(e)?At(e,Fa):ls(e)?[e]:Po(Ma(ys(e)))},Dr.toPlainObject=gs,Dr.transform=function(e,t,r){var n=Wi(e),o=n||Gi(e)||us(e);if(t=ua(t,4),null==r){var a=e&&e.constructor;r=o?n?new a:[]:es(e)&&Yi(a)?Lr(Ke(e)):{}}return(o?Ct:wn)(e,(function(e,n,o){return t(r,e,n,o)})),r},Dr.unary=function(e){return ji(e,1)},Dr.union=ti,Dr.unionBy=ri,Dr.unionWith=ni,Dr.uniq=function(e){return e&&e.length?co(e):[]},Dr.uniqBy=function(e,t){return e&&e.length?co(e,ua(t,2)):[]},Dr.uniqWith=function(e,t){return t="function"==typeof t?t:n,e&&e.length?co(e,n,t):[]},Dr.unset=function(e,t){return null==e||fo(e,t)},Dr.unzip=oi,Dr.unzipWith=ai,Dr.update=function(e,t,r){return null==e?e:po(e,t,bo(r))},Dr.updateWith=function(e,t,r,o){return o="function"==typeof o?o:n,null==e?e:po(e,t,bo(r),o)},Dr.values=Ls,Dr.valuesIn=function(e){return null==e?[]:Zt(e,Rs(e))},Dr.without=ii,Dr.words=Ys,Dr.wrap=function(e,t){return Fi(bo(t),e)},Dr.xor=si,Dr.xorBy=li,Dr.xorWith=ui,Dr.zip=ci,Dr.zipObject=function(e,t){return go(e||[],t||[],en)},Dr.zipObjectDeep=function(e,t){return go(e||[],t||[],Zn)},Dr.zipWith=di,Dr.entries=zs,Dr.entriesIn=Ds,Dr.extend=ws,Dr.extendWith=Ss,sl(Dr,Dr),Dr.add=gl,Dr.attempt=Xs,Dr.camelCase=Bs,Dr.capitalize=Vs,Dr.ceil=yl,Dr.clamp=function(e,t,r){return r===n&&(r=t,t=n),r!==n&&(r=(r=vs(r))==r?r:0),t!==n&&(t=(t=vs(t))==t?t:0),sn(vs(e),t,r)},Dr.clone=function(e){return ln(e,4)},Dr.cloneDeep=function(e){return ln(e,5)},Dr.cloneDeepWith=function(e,t){return ln(e,5,t="function"==typeof t?t:n)},Dr.cloneWith=function(e,t){return ln(e,4,t="function"==typeof t?t:n)},Dr.conformsTo=function(e,t){return null==t||un(e,t,Ns(t))},Dr.deburr=Us,Dr.defaultTo=function(e,t){return null==e||e!=e?t:e},Dr.divide=bl,Dr.endsWith=function(e,t,r){e=ys(e),t=uo(t);var o=e.length,a=r=r===n?o:sn(hs(r),0,o);return(r-=t.length)>=0&&e.slice(r,a)==t},Dr.eq=Li,Dr.escape=function(e){return(e=ys(e))&&J.test(e)?e.replace(G,or):e},Dr.escapeRegExp=function(e){return(e=ys(e))&&oe.test(e)?e.replace(ne,"\\$&"):e},Dr.every=function(e,t,r){var o=Wi(e)?Pt:hn;return r&&wa(e,t,r)&&(t=n),o(e,ua(t,3))},Dr.find=vi,Dr.findIndex=Ua,Dr.findKey=function(e,t){return Lt(e,ua(t,3),wn)},Dr.findLast=gi,Dr.findLastIndex=Wa,Dr.findLastKey=function(e,t){return Lt(e,ua(t,3),Sn)},Dr.floor=wl,Dr.forEach=yi,Dr.forEachRight=bi,Dr.forIn=function(e,t){return null==e?e:yn(e,ua(t,3),Rs)},Dr.forInRight=function(e,t){return null==e?e:bn(e,ua(t,3),Rs)},Dr.forOwn=function(e,t){return e&&wn(e,ua(t,3))},Dr.forOwnRight=function(e,t){return e&&Sn(e,ua(t,3))},Dr.get=Es,Dr.gt=Bi,Dr.gte=Vi,Dr.has=function(e,t){return null!=e&&va(e,t,jn)},Dr.hasIn=js,Dr.head=Ka,Dr.identity=nl,Dr.includes=function(e,t,r,n){e=Ki(e)?e:Ls(e),r=r&&!n?hs(r):0;var o=e.length;return r<0&&(r=gr(o+r,0)),ss(e)?r<=o&&e.indexOf(t,r)>-1:!!o&&Vt(e,t,r)>-1},Dr.indexOf=function(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var o=null==r?0:hs(r);return o<0&&(o=gr(n+o,0)),Vt(e,t,o)},Dr.inRange=function(e,t,r){return t=ps(t),r===n?(r=t,t=0):r=ps(r),function(e,t,r){return e>=yr(t,r)&&e<gr(t,r)}(e=vs(e),t,r)},Dr.invoke=Ps,Dr.isArguments=Ui,Dr.isArray=Wi,Dr.isArrayBuffer=qi,Dr.isArrayLike=Ki,Dr.isArrayLikeObject=Hi,Dr.isBoolean=function(e){return!0===e||!1===e||ts(e)&&kn(e)==b},Dr.isBuffer=Gi,Dr.isDate=Qi,Dr.isElement=function(e){return ts(e)&&1===e.nodeType&&!os(e)},Dr.isEmpty=function(e){if(null==e)return!0;if(Ki(e)&&(Wi(e)||"string"==typeof e||"function"==typeof e.splice||Gi(e)||us(e)||Ui(e)))return!e.length;var t=ma(e);if(t==$||t==O)return!e.size;if($a(e))return!Mn(e).length;for(var r in e)if(Ie.call(e,r))return!1;return!0},Dr.isEqual=function(e,t){return Rn(e,t)},Dr.isEqualWith=function(e,t,r){var o=(r="function"==typeof r?r:n)?r(e,t):n;return o===n?Rn(e,t,n,r):!!o},Dr.isError=Ji,Dr.isFinite=function(e){return"number"==typeof e&&bt(e)},Dr.isFunction=Yi,Dr.isInteger=Xi,Dr.isLength=Zi,Dr.isMap=rs,Dr.isMatch=function(e,t){return e===t||Tn(e,t,da(t))},Dr.isMatchWith=function(e,t,r){return r="function"==typeof r?r:n,Tn(e,t,da(t),r)},Dr.isNaN=function(e){return ns(e)&&e!=+e},Dr.isNative=function(e){if(_a(e))throw new _e("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return An(e)},Dr.isNil=function(e){return null==e},Dr.isNull=function(e){return null===e},Dr.isNumber=ns,Dr.isObject=es,Dr.isObjectLike=ts,Dr.isPlainObject=os,Dr.isRegExp=as,Dr.isSafeInteger=function(e){return Xi(e)&&e>=-9007199254740991&&e<=p},Dr.isSet=is,Dr.isString=ss,Dr.isSymbol=ls,Dr.isTypedArray=us,Dr.isUndefined=function(e){return e===n},Dr.isWeakMap=function(e){return ts(e)&&ma(e)==R},Dr.isWeakSet=function(e){return ts(e)&&"[object WeakSet]"==kn(e)},Dr.join=function(e,t){return null==e?"":Dt.call(e,t)},Dr.kebabCase=Ws,Dr.last=Ja,Dr.lastIndexOf=function(e,t,r){var o=null==e?0:e.length;if(!o)return-1;var a=o;return r!==n&&(a=(a=hs(r))<0?gr(o+a,0):yr(a,o-1)),t==t?function(e,t,r){for(var n=r+1;n--;)if(e[n]===t)return n;return n}(e,t,a):Bt(e,Wt,a,!0)},Dr.lowerCase=qs,Dr.lowerFirst=Ks,Dr.lt=cs,Dr.lte=ds,Dr.max=function(e){return e&&e.length?mn(e,nl,En):n},Dr.maxBy=function(e,t){return e&&e.length?mn(e,ua(t,2),En):n},Dr.mean=function(e){return qt(e,nl)},Dr.meanBy=function(e,t){return qt(e,ua(t,2))},Dr.min=function(e){return e&&e.length?mn(e,nl,zn):n},Dr.minBy=function(e,t){return e&&e.length?mn(e,ua(t,2),zn):n},Dr.stubArray=ml,Dr.stubFalse=vl,Dr.stubObject=function(){return{}},Dr.stubString=function(){return""},Dr.stubTrue=function(){return!0},Dr.multiply=xl,Dr.nth=function(e,t){return e&&e.length?Un(e,hs(t)):n},Dr.noConflict=function(){return ht._===this&&(ht._=Le),this},Dr.noop=ll,Dr.now=Ei,Dr.pad=function(e,t,r){e=ys(e);var n=(t=hs(t))?fr(e):0;if(!t||n>=t)return e;var o=(t-n)/2;return qo(mt(o),r)+e+qo(pt(o),r)},Dr.padEnd=function(e,t,r){e=ys(e);var n=(t=hs(t))?fr(e):0;return t&&n<t?e+qo(t-n,r):e},Dr.padStart=function(e,t,r){e=ys(e);var n=(t=hs(t))?fr(e):0;return t&&n<t?qo(t-n,r)+e:e},Dr.parseInt=function(e,t,r){return r||null==t?t=0:t&&(t=+t),wr(ys(e).replace(ae,""),t||0)},Dr.random=function(e,t,r){if(r&&"boolean"!=typeof r&&wa(e,t,r)&&(t=r=n),r===n&&("boolean"==typeof t?(r=t,t=n):"boolean"==typeof e&&(r=e,e=n)),e===n&&t===n?(e=0,t=1):(e=ps(e),t===n?(t=e,e=0):t=ps(t)),e>t){var o=e;e=t,t=o}if(r||e%1||t%1){var a=Sr();return yr(e+a*(t-e+ct("1e-"+((a+"").length-1))),t)}return Gn(e,t)},Dr.reduce=function(e,t,r){var n=Wi(e)?Mt:Gt,o=arguments.length<3;return n(e,ua(t,4),r,o,fn)},Dr.reduceRight=function(e,t,r){var n=Wi(e)?Ft:Gt,o=arguments.length<3;return n(e,ua(t,4),r,o,pn)},Dr.repeat=function(e,t,r){return t=(r?wa(e,t,r):t===n)?1:hs(t),Qn(ys(e),t)},Dr.replace=function(){var e=arguments,t=ys(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Dr.result=function(e,t,r){var o=-1,a=(t=wo(t,e)).length;for(a||(a=1,e=n);++o<a;){var i=null==e?n:e[Fa(t[o])];i===n&&(o=a,i=r),e=Yi(i)?i.call(e):i}return e},Dr.round=_l,Dr.runInContext=e,Dr.sample=function(e){return(Wi(e)?Jr:Yn)(e)},Dr.size=function(e){if(null==e)return 0;if(Ki(e))return ss(e)?fr(e):e.length;var t=ma(e);return t==$||t==O?e.size:Mn(e).length},Dr.snakeCase=Hs,Dr.some=function(e,t,r){var o=Wi(e)?zt:oo;return r&&wa(e,t,r)&&(t=n),o(e,ua(t,3))},Dr.sortedIndex=function(e,t){return ao(e,t)},Dr.sortedIndexBy=function(e,t,r){return io(e,t,ua(r,2))},Dr.sortedIndexOf=function(e,t){var r=null==e?0:e.length;if(r){var n=ao(e,t);if(n<r&&Li(e[n],t))return n}return-1},Dr.sortedLastIndex=function(e,t){return ao(e,t,!0)},Dr.sortedLastIndexBy=function(e,t,r){return io(e,t,ua(r,2),!0)},Dr.sortedLastIndexOf=function(e,t){if(null==e?0:e.length){var r=ao(e,t,!0)-1;if(Li(e[r],t))return r}return-1},Dr.startCase=Gs,Dr.startsWith=function(e,t,r){return e=ys(e),r=null==r?0:sn(hs(r),0,e.length),t=uo(t),e.slice(r,r+t.length)==t},Dr.subtract=$l,Dr.sum=function(e){return e&&e.length?Qt(e,nl):0},Dr.sumBy=function(e,t){return e&&e.length?Qt(e,ua(t,2)):0},Dr.template=function(e,t,r){var o=Dr.templateSettings;r&&wa(e,t,r)&&(t=n),e=ys(e),t=Ss({},t,o,Zo);var a,i,s=Ss({},t.imports,o.imports,Zo),l=Ns(s),u=Zt(s,l),c=0,d=t.interpolate||Se,f="__p += '",p=je((t.escape||Se).source+"|"+d.source+"|"+(d===Z?pe:Se).source+"|"+(t.evaluate||Se).source+"|$","g"),h="//# sourceURL="+(Ie.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++it+"]")+"\n";e.replace(p,(function(t,r,n,o,s,l){return n||(n=o),f+=e.slice(c,l).replace(xe,ar),r&&(a=!0,f+="' +\n__e("+r+") +\n'"),s&&(i=!0,f+="';\n"+s+";\n__p += '"),n&&(f+="' +\n((__t = ("+n+")) == null ? '' : __t) +\n'"),c=l+t.length,t})),f+="';\n";var m=Ie.call(t,"variable")&&t.variable;if(m){if(de.test(m))throw new _e("Invalid `variable` option passed into `_.template`")}else f="with (obj) {\n"+f+"\n}\n";f=(i?f.replace(W,""):f).replace(q,"$1").replace(K,"$1;"),f="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(a?", __e = _.escape":"")+(i?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+f+"return __p\n}";var v=Xs((function(){return $e(l,h+"return "+f).apply(n,u)}));if(v.source=f,Ji(v))throw v;return v},Dr.times=function(e,t){if((e=hs(e))<1||e>p)return[];var r=m,n=yr(e,m);t=ua(t),e-=m;for(var o=Jt(n,t);++r<e;)t(r);return o},Dr.toFinite=ps,Dr.toInteger=hs,Dr.toLength=ms,Dr.toLower=function(e){return ys(e).toLowerCase()},Dr.toNumber=vs,Dr.toSafeInteger=function(e){return e?sn(hs(e),-9007199254740991,p):0===e?e:0},Dr.toString=ys,Dr.toUpper=function(e){return ys(e).toUpperCase()},Dr.trim=function(e,t,r){if((e=ys(e))&&(r||t===n))return Yt(e);if(!e||!(t=uo(t)))return e;var o=pr(e),a=pr(t);return xo(o,tr(o,a),rr(o,a)+1).join("")},Dr.trimEnd=function(e,t,r){if((e=ys(e))&&(r||t===n))return e.slice(0,hr(e)+1);if(!e||!(t=uo(t)))return e;var o=pr(e);return xo(o,0,rr(o,pr(t))+1).join("")},Dr.trimStart=function(e,t,r){if((e=ys(e))&&(r||t===n))return e.replace(ae,"");if(!e||!(t=uo(t)))return e;var o=pr(e);return xo(o,tr(o,pr(t))).join("")},Dr.truncate=function(e,t){var r=30,o="...";if(es(t)){var a="separator"in t?t.separator:a;r="length"in t?hs(t.length):r,o="omission"in t?uo(t.omission):o}var i=(e=ys(e)).length;if(ir(e)){var s=pr(e);i=s.length}if(r>=i)return e;var l=r-fr(o);if(l<1)return o;var u=s?xo(s,0,l).join(""):e.slice(0,l);if(a===n)return u+o;if(s&&(l+=u.length-l),as(a)){if(e.slice(l).search(a)){var c,d=u;for(a.global||(a=je(a.source,ys(he.exec(a))+"g")),a.lastIndex=0;c=a.exec(d);)var f=c.index;u=u.slice(0,f===n?l:f)}}else if(e.indexOf(uo(a),l)!=l){var p=u.lastIndexOf(a);p>-1&&(u=u.slice(0,p))}return u+o},Dr.unescape=function(e){return(e=ys(e))&&Q.test(e)?e.replace(H,mr):e},Dr.uniqueId=function(e){var t=++Me;return ys(e)+t},Dr.upperCase=Qs,Dr.upperFirst=Js,Dr.each=yi,Dr.eachRight=bi,Dr.first=Ka,sl(Dr,(Sl={},wn(Dr,(function(e,t){Ie.call(Dr.prototype,t)||(Sl[t]=e)})),Sl),{chain:!1}),Dr.VERSION="4.17.21",Ct(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Dr[e].placeholder=Dr})),Ct(["drop","take"],(function(e,t){Ur.prototype[e]=function(r){r=r===n?1:gr(hs(r),0);var o=this.__filtered__&&!t?new Ur(this):this.clone();return o.__filtered__?o.__takeCount__=yr(r,o.__takeCount__):o.__views__.push({size:yr(r,m),type:e+(o.__dir__<0?"Right":"")}),o},Ur.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),Ct(["filter","map","takeWhile"],(function(e,t){var r=t+1,n=1==r||3==r;Ur.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:ua(e,3),type:r}),t.__filtered__=t.__filtered__||n,t}})),Ct(["head","last"],(function(e,t){var r="take"+(t?"Right":"");Ur.prototype[e]=function(){return this[r](1).value()[0]}})),Ct(["initial","tail"],(function(e,t){var r="drop"+(t?"":"Right");Ur.prototype[e]=function(){return this.__filtered__?new Ur(this):this[r](1)}})),Ur.prototype.compact=function(){return this.filter(nl)},Ur.prototype.find=function(e){return this.filter(e).head()},Ur.prototype.findLast=function(e){return this.reverse().find(e)},Ur.prototype.invokeMap=Jn((function(e,t){return"function"==typeof e?new Ur(this):this.map((function(r){return Pn(r,e,t)}))})),Ur.prototype.reject=function(e){return this.filter(Ii(ua(e)))},Ur.prototype.slice=function(e,t){e=hs(e);var r=this;return r.__filtered__&&(e>0||t<0)?new Ur(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==n&&(r=(t=hs(t))<0?r.dropRight(-t):r.take(t-e)),r)},Ur.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Ur.prototype.toArray=function(){return this.take(m)},wn(Ur.prototype,(function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),o=/^(?:head|last)$/.test(t),a=Dr[o?"take"+("last"==t?"Right":""):t],i=o||/^find/.test(t);a&&(Dr.prototype[t]=function(){var t=this.__wrapped__,s=o?[1]:arguments,l=t instanceof Ur,u=s[0],c=l||Wi(t),d=function(e){var t=a.apply(Dr,It([e],s));return o&&f?t[0]:t};c&&r&&"function"==typeof u&&1!=u.length&&(l=c=!1);var f=this.__chain__,p=!!this.__actions__.length,h=i&&!f,m=l&&!p;if(!i&&c){t=m?t:new Ur(this);var v=e.apply(t,s);return v.__actions__.push({func:pi,args:[d],thisArg:n}),new Vr(v,f)}return h&&m?e.apply(this,s):(v=this.thru(d),h?o?v.value()[0]:v.value():v)})})),Ct(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Pe[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",n=/^(?:pop|shift)$/.test(e);Dr.prototype[e]=function(){var e=arguments;if(n&&!this.__chain__){var o=this.value();return t.apply(Wi(o)?o:[],e)}return this[r]((function(r){return t.apply(Wi(r)?r:[],e)}))}})),wn(Ur.prototype,(function(e,t){var r=Dr[t];if(r){var n=r.name+"";Ie.call(Pr,n)||(Pr[n]=[]),Pr[n].push({name:t,func:r})}})),Pr[Bo(n,2).name]=[{name:"wrapper",func:n}],Ur.prototype.clone=function(){var e=new Ur(this.__wrapped__);return e.__actions__=Po(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Po(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Po(this.__views__),e},Ur.prototype.reverse=function(){if(this.__filtered__){var e=new Ur(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Ur.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,r=Wi(e),n=t<0,o=r?e.length:0,a=function(e,t,r){var n=-1,o=r.length;for(;++n<o;){var a=r[n],i=a.size;switch(a.type){case"drop":e+=i;break;case"dropRight":t-=i;break;case"take":t=yr(t,e+i);break;case"takeRight":e=gr(e,t-i)}}return{start:e,end:t}}(0,o,this.__views__),i=a.start,s=a.end,l=s-i,u=n?s:i-1,c=this.__iteratees__,d=c.length,f=0,p=yr(l,this.__takeCount__);if(!r||!n&&o==l&&p==l)return mo(e,this.__actions__);var h=[];e:for(;l--&&f<p;){for(var m=-1,v=e[u+=t];++m<d;){var g=c[m],y=g.iteratee,b=g.type,w=y(v);if(2==b)v=w;else if(!w){if(1==b)continue e;break e}}h[f++]=v}return h},Dr.prototype.at=hi,Dr.prototype.chain=function(){return fi(this)},Dr.prototype.commit=function(){return new Vr(this.value(),this.__chain__)},Dr.prototype.next=function(){this.__values__===n&&(this.__values__=fs(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?n:this.__values__[this.__index__++]}},Dr.prototype.plant=function(e){for(var t,r=this;r instanceof Br;){var o=Da(r);o.__index__=0,o.__values__=n,t?a.__wrapped__=o:t=o;var a=o;r=r.__wrapped__}return a.__wrapped__=e,t},Dr.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Ur){var t=e;return this.__actions__.length&&(t=new Ur(this)),(t=t.reverse()).__actions__.push({func:pi,args:[ei],thisArg:n}),new Vr(t,this.__chain__)}return this.thru(ei)},Dr.prototype.toJSON=Dr.prototype.valueOf=Dr.prototype.value=function(){return mo(this.__wrapped__,this.__actions__)},Dr.prototype.first=Dr.prototype.head,Ye&&(Dr.prototype[Ye]=function(){return this}),Dr}();vt?((vt.exports=vr)._=vr,mt._=vr):ht._=vr}).call(r)}(Dj,zj);class Bj{constructor(e){this.errorSchema={},this.resetAllErrors(e)}get ErrorSchema(){return this.errorSchema}getOrCreateErrorBlock(e){let t=Array.isArray(e)&&e.length>0||"string"==typeof e?Lv(this.errorSchema,e):this.errorSchema;return!t&&e&&(t={},IS(this.errorSchema,e,t)),t}resetAllErrors(e){return this.errorSchema=e?GS(e):{},this}addErrors(e,t){const r=this.getOrCreateErrorBlock(t);let n=Lv(r,ud);return Array.isArray(n)||(n=[],r[ud]=n),Array.isArray(e)?n.push(...e):n.push(e),this}setErrors(e,t){const r=this.getOrCreateErrorBlock(t),n=Array.isArray(e)?[...e]:[e];return IS(r,ud,n),this}clearErrors(e){const t=this.getOrCreateErrorBlock(e);return IS(t,ud,[]),this}}function Vj(e){const t={};return e.multipleOf&&(t.step=e.multipleOf),(e.minimum||0===e.minimum)&&(t.min=e.minimum),(e.maximum||0===e.maximum)&&(t.max=e.maximum),t}function Uj(e,t,r={},n=!0){const o=Object.assign({type:t||"text"},Vj(e));return r.inputType?o.type=r.inputType:t||("number"===e.type?(o.type="number",n&&void 0===o.step&&(o.step="any")):"integer"===e.type&&(o.type="number",void 0===o.step&&(o.step=1))),r.autocomplete&&(o.autoComplete=r.autocomplete),o}const Wj={props:{disabled:!1},submitText:"Submit",norender:!1};function qj(e={}){const t=_d(e);if(t&&t[gd]){const e=t[gd];return Object.assign(Object.assign({},Wj),e)}return Wj}function Kj(e,t,r={}){const{templates:n}=t;return"ButtonTemplates"===e?n[e]:r[e]||n[e]}var Hj={},Gj={get exports(){return Hj},set exports(e){Hj=e}},Qj={},Jj=a,Yj=Symbol.for("react.element"),Xj=Symbol.for("react.fragment"),Zj=Object.prototype.hasOwnProperty,eC=Jj.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,tC={key:!0,ref:!0,__self:!0,__source:!0};function rC(e,t,r){var n,o={},a=null,i=null;for(n in void 0!==r&&(a=""+r),void 0!==t.key&&(a=""+t.key),void 0!==t.ref&&(i=t.ref),t)Zj.call(t,n)&&!tC.hasOwnProperty(n)&&(o[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===o[n]&&(o[n]=t[n]);return{$$typeof:Yj,type:e,key:a,ref:i,props:o,_owner:eC.current}}Qj.Fragment=Xj,Qj.jsx=rC,Qj.jsxs=rC,function(e){e.exports=Qj}(Gj);var nC,oC={},aC={get exports(){return oC},set exports(e){oC=e}},iC={},sC=Symbol.for("react.element"),lC=Symbol.for("react.portal"),uC=Symbol.for("react.fragment"),cC=Symbol.for("react.strict_mode"),dC=Symbol.for("react.profiler"),fC=Symbol.for("react.provider"),pC=Symbol.for("react.context"),hC=Symbol.for("react.server_context"),mC=Symbol.for("react.forward_ref"),vC=Symbol.for("react.suspense"),gC=Symbol.for("react.suspense_list"),yC=Symbol.for("react.memo"),bC=Symbol.for("react.lazy"),wC=Symbol.for("react.offscreen");function SC(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case sC:switch(e=e.type){case uC:case dC:case cC:case vC:case gC:return e;default:switch(e=e&&e.$$typeof){case hC:case pC:case mC:case bC:case yC:case fC:return e;default:return t}}case lC:return t}}}nC=Symbol.for("react.module.reference"),iC.ContextConsumer=pC,iC.ContextProvider=fC,iC.Element=sC,iC.ForwardRef=mC,iC.Fragment=uC,iC.Lazy=bC,iC.Memo=yC,iC.Portal=lC,iC.Profiler=dC,iC.StrictMode=cC,iC.Suspense=vC,iC.SuspenseList=gC,iC.isAsyncMode=function(){return!1},iC.isConcurrentMode=function(){return!1},iC.isContextConsumer=function(e){return SC(e)===pC},iC.isContextProvider=function(e){return SC(e)===fC},iC.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===sC},iC.isForwardRef=function(e){return SC(e)===mC},iC.isFragment=function(e){return SC(e)===uC},iC.isLazy=function(e){return SC(e)===bC},iC.isMemo=function(e){return SC(e)===yC},iC.isPortal=function(e){return SC(e)===lC},iC.isProfiler=function(e){return SC(e)===dC},iC.isStrictMode=function(e){return SC(e)===cC},iC.isSuspense=function(e){return SC(e)===vC},iC.isSuspenseList=function(e){return SC(e)===gC},iC.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===uC||e===dC||e===cC||e===vC||e===gC||e===wC||"object"==typeof e&&null!==e&&(e.$$typeof===bC||e.$$typeof===yC||e.$$typeof===fC||e.$$typeof===pC||e.$$typeof===mC||e.$$typeof===nC||void 0!==e.getModuleId)},iC.typeOf=SC,function(e){e.exports=iC}(aC);var xC=n(oC);const _C={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 $C(e,t,r={}){const n=ej(e);if("function"==typeof t||t&&xC.isForwardRef(a.createElement(t))||xC.isMemo(t))return function(e){let t=Lv(e,"MergedWidget");if(!t){const r=e.defaultProps&&e.defaultProps.options||{};t=t=>{var{options:n}=t,o=ov(t,["options"]);return Hj.jsx(e,Object.assign({options:Object.assign(Object.assign({},r),n)},o))},IS(e,"MergedWidget",t)}return t}(t);if("string"!=typeof t)throw new Error("Unsupported widget definition: "+typeof t);if(t in r){return $C(e,r[t],r)}if("string"==typeof n){if(!(n in _C))throw new Error(`No widget for type '${n}'`);if(t in _C[n]){return $C(e,r[_C[n][t]],r)}}throw new Error(`No widget '${t}' for type '${n}'`)}function kC(e,t){return`${cw(e)?e:e[cd]}__${t}`}function EC(e){return kC(e,"description")}function jC(e){return kC(e,"error")}function CC(e){return kC(e,"examples")}function OC(e){return kC(e,"help")}function PC(e){return kC(e,"title")}function NC(e,t=!1){const r=t?` ${CC(e)}`:"";return`${jC(e)} ${EC(e)} ${OC(e)}${r}`}function RC(e,t){return`${e}-${t}`}function TC(e,t,r){return t?r:e}function AC(e){const t=e;if(t.enumNames,e.enum)return e.enum.map(((e,r)=>({label:t.enumNames&&t.enumNames[r]||String(e),value:e})));const r=e.oneOf||e.anyOf;return r&&r.map((e=>{const t=e,r=function(e){if(ld in e&&Array.isArray(e.enum)&&1===e.enum.length)return e.enum[0];if(ad in e)return e.const;throw new Error("schema cannot be inferred as a constant")}(t);return{schema:t,label:t.title||String(r),value:r}}))}function IC(e,t){let r=String(e);for(;r.length<t;)r="0"+r;return r}function MC(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 FC(e){if(e.const)return!0;if(e.enum&&1===e.enum.length&&!0===e.enum[0])return!0;if(e.anyOf&&1===e.anyOf.length)return FC(e.anyOf[0]);if(e.oneOf&&1===e.oneOf.length)return FC(e.oneOf[0]);if(e.allOf){const t=e=>FC(e);return e.allOf.some(t)}return!1}function zC(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 DC(e,t=[]){if(!e)return[];let r=[];return ud in e&&(r=r.concat(e[ud].map((e=>{const r=`.${t.join(".")}`;return{property:r,message:e,stack:`${r} ${e}`}})))),Object.keys(e).reduce(((r,n)=>{if(n!==ud){const o=e[n];Xd(o)&&(r=r.concat(DC(o,[...t,n])))}return r}),r)}var LC=wv,BC=Tg,VC=oh,UC=sv,WC=bv,qC=Iv,KC=Cv;var HC,GC=function(e){return VC(e)?LC(e,qC):UC(e)?[e]:BC(WC(KC(e)))};function QC(e){return Object.keys(e).reduce(((t,r)=>{if("addError"===r)return t;{const n=e[r];return Xd(n)?Object.assign(Object.assign({},t),{[r]:QC(n)}):Object.assign(Object.assign({},t),{[r]:n})}}),{})}function JC(e){if(!e)return"";const t=new Date(e);return`${IC(t.getFullYear(),4)}-${IC(t.getMonth()+1,2)}-${IC(t.getDate(),2)}T${IC(t.getHours(),2)}:${IC(t.getMinutes(),2)}:${IC(t.getSeconds(),2)}.${IC(t.getMilliseconds(),3)}`}function YC(e,t){if(!t)return e;const{errors:r,errorSchema:n}=e;let o=DC(t),a=t;return Jv(n)||(a=vj(n,t,!0),o=[...r].concat(o)),{errorSchema:a,errors:o}}function XC(e){return Array.isArray(e)?function(e){for(let t=0;t<e.length;t++)e[t]=XC(e[t]);return e}([...e]):xf(e)?function(e){for(const t in e){const r=e,n=r[t];t===yd&&"string"==typeof n&&n.startsWith("#")?r[t]=wd+n:r[t]=XC(n)}return e}(Object.assign({},e)):e}!function(e){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: <em>%2</em>.',e.UnsupportedField="Unsupported field schema.",e.UnsupportedFieldWithId="Unsupported field schema for field <code>%1</code>.",e.UnsupportedFieldWithReason="Unsupported field schema: <em>%1</em>.",e.UnsupportedFieldWithIdAndReason="Unsupported field schema for field <code>%1</code>: <em>%2</em>.",e.FilesInfo="<strong>%1</strong> (%2, %3 bytes)"}(HC||(HC={}));var ZC,eO={},tO={get exports(){return eO},set exports(e){eO=e}},rO={},nO={},oO={},aO={},iO={},sO={};function lO(){return ZC||(ZC=1,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(t){if(super(),!e.IDENTIFIER.test(t))throw new Error("CodeGen: name must be a valid identifier");this.str=t}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}e.Name=r;class n extends t{constructor(e){super(),this._items="string"==typeof e?[e]:e}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const e=this._items[0];return""===e||'""'===e}get str(){var e;return null!==(e=this._str)&&void 0!==e?e:this._str=this._items.reduce(((e,t)=>`${e}${t}`),"")}get names(){var e;return null!==(e=this._names)&&void 0!==e?e:this._names=this._items.reduce(((e,t)=>(t instanceof r&&(e[t.str]=(e[t.str]||0)+1),e)),{})}}function o(e,...t){const r=[e[0]];let o=0;for(;o<t.length;)s(r,t[o]),r.push(e[++o]);return new n(r)}e._Code=n,e.nil=new n(""),e._=o;const a=new n("+");function i(e,...t){const r=[u(e[0])];let o=0;for(;o<t.length;)r.push(a),s(r,t[o]),r.push(a,u(e[++o]));return function(e){let t=1;for(;t<e.length-1;){if(e[t]===a){const r=l(e[t-1],e[t+1]);if(void 0!==r){e.splice(t-1,3,r);continue}e[t++]="+"}t++}}(r),new n(r)}function s(e,t){t instanceof n?e.push(...t._items):t instanceof r?e.push(t):e.push(function(e){return"number"==typeof e||"boolean"==typeof e||null===e?e:u(Array.isArray(e)?e.join(","):e)}(t))}function l(e,t){if('""'===t)return e;if('""'===e)return t;if("string"==typeof e){if(t instanceof r||'"'!==e[e.length-1])return;return"string"!=typeof t?`${e.slice(0,-1)}${t}"`:'"'===t[0]?e.slice(0,-1)+t.slice(1):void 0}return"string"!=typeof t||'"'!==t[0]||e instanceof r?void 0:`"${e}${t.slice(1)}`}function u(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}e.str=i,e.addCodeArg=s,e.strConcat=function(e,t){return t.emptyStr()?e:e.emptyStr()?t:i`${e}${t}`},e.stringify=function(e){return new n(u(e))},e.safeStringify=u,e.getProperty=function(t){return"string"==typeof t&&e.IDENTIFIER.test(t)?new n(`.${t}`):o`[${t}]`},e.getEsmExportName=function(t){if("string"==typeof t&&e.IDENTIFIER.test(t))return new n(`${t}`);throw new Error(`CodeGen: invalid export name: ${t}, use explicit $id name mapping`)},e.regexpCode=function(e){return new n(e.toString())}}(sO)),sO}var uO,cO,dO={};function fO(){return uO||(uO=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ValueScope=e.ValueScopeName=e.Scope=e.varKinds=e.UsedValueState=void 0;const t=lO();class r extends Error{constructor(e){super(`CodeGen: "code" for ${e} not defined`),this.value=e.value}}var n;!function(e){e[e.Started=0]="Started",e[e.Completed=1]="Completed"}(n=e.UsedValueState||(e.UsedValueState={})),e.varKinds={const:new t.Name("const"),let:new t.Name("let"),var:new t.Name("var")};class o{constructor({prefixes:e,parent:t}={}){this._names={},this._prefixes=e,this._parent=t}toName(e){return e instanceof t.Name?e:this.name(e)}name(e){return new t.Name(this._newName(e))}_newName(e){return`${e}${(this._names[e]||this._nameGroup(e)).index++}`}_nameGroup(e){var t,r;if((null===(r=null===(t=this._parent)||void 0===t?void 0:t._prefixes)||void 0===r?void 0:r.has(e))||this._prefixes&&!this._prefixes.has(e))throw new Error(`CodeGen: prefix "${e}" is not allowed in this scope`);return this._names[e]={prefix:e,index:0}}}e.Scope=o;class a extends t.Name{constructor(e,t){super(t),this.prefix=e}setValue(e,{property:r,itemIndex:n}){this.value=e,this.scopePath=t._`.${new t.Name(r)}[${n}]`}}e.ValueScopeName=a;const i=t._`\n`;e.ValueScope=class extends o{constructor(e){super(e),this._values={},this._scope=e.scope,this.opts={...e,_n:e.lines?i:t.nil}}get(){return this._scope}name(e){return new a(e,this._newName(e))}value(e,t){var r;if(void 0===t.ref)throw new Error("CodeGen: ref must be passed in value");const n=this.toName(e),{prefix:o}=n,a=null!==(r=t.key)&&void 0!==r?r:t.ref;let i=this._values[o];if(i){const e=i.get(a);if(e)return e}else i=this._values[o]=new Map;i.set(a,n);const s=this._scope[o]||(this._scope[o]=[]),l=s.length;return s[l]=t.ref,n.setValue(t,{property:o,itemIndex:l}),n}getValue(e,t){const r=this._values[e];if(r)return r.get(t)}scopeRefs(e,r=this._values){return this._reduceValues(r,(r=>{if(void 0===r.scopePath)throw new Error(`CodeGen: name "${r}" has no value`);return t._`${e}${r.scopePath}`}))}scopeCode(e=this._values,t,r){return this._reduceValues(e,(e=>{if(void 0===e.value)throw new Error(`CodeGen: name "${e}" has no value`);return e.value.code}),t,r)}_reduceValues(o,a,i={},s){let l=t.nil;for(const u in o){const c=o[u];if(!c)continue;const d=i[u]=i[u]||new Map;c.forEach((o=>{if(d.has(o))return;d.set(o,n.Started);let i=a(o);if(i){const r=this.opts.es5?e.varKinds.var:e.varKinds.const;l=t._`${l}${r} ${o} = ${i};${this.opts._n}`}else{if(!(i=null==s?void 0:s(o)))throw new r(o);l=t._`${l}${i}${this.opts._n}`}d.set(o,n.Completed)}))}return l}}}(dO)),dO}function pO(){return cO||(cO=1,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=lO(),r=fO();var n=lO();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=fO();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(e,t){return this}}class i extends a{constructor(e,t,r){super(),this.varKind=e,this.name=t,this.rhs=r}render({es5:e,_n:t}){const n=e?r.varKinds.var:this.varKind,o=void 0===this.rhs?"":` = ${this.rhs}`;return`${n} ${this.name}${o};`+t}optimizeNames(e,t){if(e[this.name.str])return this.rhs&&(this.rhs=O(this.rhs,e,t)),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}}class s extends a{constructor(e,t,r){super(),this.lhs=e,this.rhs=t,this.sideEffects=r}render({_n:e}){return`${this.lhs} = ${this.rhs};`+e}optimizeNames(e,r){if(!(this.lhs instanceof t.Name)||e[this.lhs.str]||this.sideEffects)return this.rhs=O(this.rhs,e,r),this}get names(){return C(this.lhs instanceof t.Name?{}:{...this.lhs.names},this.rhs)}}class l extends s{constructor(e,t,r,n){super(e,r,n),this.op=t}render({_n:e}){return`${this.lhs} ${this.op}= ${this.rhs};`+e}}class u extends a{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`${this.label}:`+e}}class c extends a{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`break${this.label?` ${this.label}`:""};`+e}}class d extends a{constructor(e){super(),this.error=e}render({_n:e}){return`throw ${this.error};`+e}get names(){return this.error.names}}class f extends a{constructor(e){super(),this.code=e}render({_n:e}){return`${this.code};`+e}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(e,t){return this.code=O(this.code,e,t),this}get names(){return this.code instanceof t._CodeOrName?this.code.names:{}}}class p extends a{constructor(e=[]){super(),this.nodes=e}render(e){return this.nodes.reduce(((t,r)=>t+r.render(e)),"")}optimizeNodes(){const{nodes:e}=this;let t=e.length;for(;t--;){const r=e[t].optimizeNodes();Array.isArray(r)?e.splice(t,1,...r):r?e[t]=r:e.splice(t,1)}return e.length>0?this:void 0}optimizeNames(e,t){const{nodes:r}=this;let n=r.length;for(;n--;){const o=r[n];o.optimizeNames(e,t)||(P(e,o.names),r.splice(n,1))}return r.length>0?this:void 0}get names(){return this.nodes.reduce(((e,t)=>j(e,t.names)),{})}}class h extends p{render(e){return"{"+e._n+super.render(e)+"}"+e._n}}class m extends p{}class v extends h{}v.kind="else";class g extends h{constructor(e,t){super(t),this.condition=e}render(e){let t=`if(${this.condition})`+super.render(e);return this.else&&(t+="else "+this.else.render(e)),t}optimizeNodes(){super.optimizeNodes();const e=this.condition;if(!0===e)return this.nodes;let t=this.else;if(t){const e=t.optimizeNodes();t=this.else=Array.isArray(e)?new v(e):e}return t?!1===e?t instanceof g?t:t.nodes:this.nodes.length?this:new g(N(e),t instanceof g?[t]:t.nodes):!1!==e&&this.nodes.length?this:void 0}optimizeNames(e,t){var r;if(this.else=null===(r=this.else)||void 0===r?void 0:r.optimizeNames(e,t),super.optimizeNames(e,t)||this.else)return this.condition=O(this.condition,e,t),this}get names(){const e=super.names;return C(e,this.condition),this.else&&j(e,this.else.names),e}}g.kind="if";class y extends h{}y.kind="for";class b extends y{constructor(e){super(),this.iteration=e}render(e){return`for(${this.iteration})`+super.render(e)}optimizeNames(e,t){if(super.optimizeNames(e,t))return this.iteration=O(this.iteration,e,t),this}get names(){return j(super.names,this.iteration.names)}}class w extends y{constructor(e,t,r,n){super(),this.varKind=e,this.name=t,this.from=r,this.to=n}render(e){const t=e.es5?r.varKinds.var:this.varKind,{name:n,from:o,to:a}=this;return`for(${t} ${n}=${o}; ${n}<${a}; ${n}++)`+super.render(e)}get names(){const e=C(super.names,this.from);return C(e,this.to)}}class S extends y{constructor(e,t,r,n){super(),this.loop=e,this.varKind=t,this.name=r,this.iterable=n}render(e){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(e)}optimizeNames(e,t){if(super.optimizeNames(e,t))return this.iterable=O(this.iterable,e,t),this}get names(){return j(super.names,this.iterable.names)}}class x extends h{constructor(e,t,r){super(),this.name=e,this.args=t,this.async=r}render(e){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(e)}}x.kind="func";class _ extends p{render(e){return"return "+super.render(e)}}_.kind="return";class $ extends h{render(e){let t="try"+super.render(e);return this.catch&&(t+=this.catch.render(e)),this.finally&&(t+=this.finally.render(e)),t}optimizeNodes(){var e,t;return super.optimizeNodes(),null===(e=this.catch)||void 0===e||e.optimizeNodes(),null===(t=this.finally)||void 0===t||t.optimizeNodes(),this}optimizeNames(e,t){var r,n;return super.optimizeNames(e,t),null===(r=this.catch)||void 0===r||r.optimizeNames(e,t),null===(n=this.finally)||void 0===n||n.optimizeNames(e,t),this}get names(){const e=super.names;return this.catch&&j(e,this.catch.names),this.finally&&j(e,this.finally.names),e}}class k extends h{constructor(e){super(),this.error=e}render(e){return`catch(${this.error})`+super.render(e)}}k.kind="catch";class E extends h{render(e){return"finally"+super.render(e)}}E.kind="finally";function j(e,t){for(const r in t)e[r]=(e[r]||0)+(t[r]||0);return e}function C(e,r){return r instanceof t._CodeOrName?j(e,r.names):e}function O(e,r,n){return e instanceof t.Name?o(e):function(e){return e instanceof t._Code&&e._items.some((e=>e instanceof t.Name&&1===r[e.str]&&void 0!==n[e.str]))}(e)?new t._Code(e._items.reduce(((e,r)=>(r instanceof t.Name&&(r=o(r)),r instanceof t._Code?e.push(...r._items):e.push(r),e)),[])):e;function o(e){const t=n[e.str];return void 0===t||1!==r[e.str]?e:(delete r[e.str],t)}}function P(e,t){for(const r in t)e[r]=(e[r]||0)-(t[r]||0)}function N(e){return"boolean"==typeof e||"number"==typeof e||null===e?!e:t._`!${I(e)}`}e.CodeGen=class{constructor(e,t={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...t,_n:t.lines?"\n":""},this._extScope=e,this._scope=new r.Scope({parent:e}),this._nodes=[new m]}toString(){return this._root.render(this.opts)}name(e){return this._scope.name(e)}scopeName(e){return this._extScope.name(e)}scopeValue(e,t){const r=this._extScope.value(e,t);return(this._values[r.prefix]||(this._values[r.prefix]=new Set)).add(r),r}getScopeValue(e,t){return this._extScope.getValue(e,t)}scopeRefs(e){return this._extScope.scopeRefs(e,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(e,t,r,n){const o=this._scope.toName(t);return void 0!==r&&n&&(this._constants[o.str]=r),this._leafNode(new i(e,o,r)),o}const(e,t,n){return this._def(r.varKinds.const,e,t,n)}let(e,t,n){return this._def(r.varKinds.let,e,t,n)}var(e,t,n){return this._def(r.varKinds.var,e,t,n)}assign(e,t,r){return this._leafNode(new s(e,t,r))}add(t,r){return this._leafNode(new l(t,e.operators.ADD,r))}code(e){return"function"==typeof e?e():e!==t.nil&&this._leafNode(new f(e)),this}object(...e){const r=["{"];for(const[n,o]of e)r.length>1&&r.push(","),r.push(n),(n!==o||this.opts.es5)&&(r.push(":"),(0,t.addCodeArg)(r,o));return r.push("}"),new t._Code(r)}if(e,t,r){if(this._blockNode(new g(e)),t&&r)this.code(t).else().code(r).endIf();else if(t)this.code(t).endIf();else if(r)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(e){return this._elseNode(new g(e))}else(){return this._elseNode(new v)}endIf(){return this._endBlockNode(g,v)}_for(e,t){return this._blockNode(e),t&&this.code(t).endFor(),this}for(e,t){return this._for(new b(e),t)}forRange(e,t,n,o,a=(this.opts.es5?r.varKinds.var:r.varKinds.let)){const i=this._scope.toName(e);return this._for(new w(a,i,t,n),(()=>o(i)))}forOf(e,n,o,a=r.varKinds.const){const i=this._scope.toName(e);if(this.opts.es5){const e=n instanceof t.Name?n:this.var("_arr",n);return this.forRange("_i",0,t._`${e}.length`,(r=>{this.var(i,t._`${e}[${r}]`),o(i)}))}return this._for(new S("of",a,i,n),(()=>o(i)))}forIn(e,n,o,a=(this.opts.es5?r.varKinds.var:r.varKinds.const)){if(this.opts.ownProperties)return this.forOf(e,t._`Object.keys(${n})`,o);const i=this._scope.toName(e);return this._for(new S("in",a,i,n),(()=>o(i)))}endFor(){return this._endBlockNode(y)}label(e){return this._leafNode(new u(e))}break(e){return this._leafNode(new c(e))}return(e){const t=new _;if(this._blockNode(t),this.code(e),1!==t.nodes.length)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(_)}try(e,t,r){if(!t&&!r)throw new Error('CodeGen: "try" without "catch" and "finally"');const n=new $;if(this._blockNode(n),this.code(e),t){const e=this.name("e");this._currNode=n.catch=new k(e),t(e)}return r&&(this._currNode=n.finally=new E,this.code(r)),this._endBlockNode(k,E)}throw(e){return this._leafNode(new d(e))}block(e,t){return this._blockStarts.push(this._nodes.length),e&&this.code(e).endBlock(t),this}endBlock(e){const t=this._blockStarts.pop();if(void 0===t)throw new Error("CodeGen: not in self-balancing block");const r=this._nodes.length-t;if(r<0||void 0!==e&&r!==e)throw new Error(`CodeGen: wrong number of nodes: ${r} vs ${e} expected`);return this._nodes.length=t,this}func(e,r=t.nil,n,o){return this._blockNode(new x(e,r,n)),o&&this.code(o).endFunc(),this}endFunc(){return this._endBlockNode(x)}optimize(e=1){for(;e-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(e){return this._currNode.nodes.push(e),this}_blockNode(e){this._currNode.nodes.push(e),this._nodes.push(e)}_endBlockNode(e,t){const r=this._currNode;if(r instanceof e||t&&r instanceof t)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${t?`${e.kind}/${t.kind}`:e.kind}"`)}_elseNode(e){const t=this._currNode;if(!(t instanceof g))throw new Error('CodeGen: "else" without "if"');return this._currNode=t.else=e,this}get _root(){return this._nodes[0]}get _currNode(){const e=this._nodes;return e[e.length-1]}set _currNode(e){const t=this._nodes;t[t.length-1]=e}},e.not=N;const R=A(e.operators.AND);e.and=function(...e){return e.reduce(R)};const T=A(e.operators.OR);function A(e){return(r,n)=>r===t.nil?n:n===t.nil?r:t._`${I(r)} ${e} ${I(n)}`}function I(e){return e instanceof t.Name?e:t._`(${e})`}e.or=function(...e){return e.reduce(T)}}(iO)),iO}var hO={};!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=pO(),r=lO();function n(e,t=e.schema){const{opts:r,self:n}=e;if(!r.strictSchema)return;if("boolean"==typeof t)return;const o=n.RULES.keywords;for(const r in t)o[r]||f(e,`unknown keyword: "${r}"`)}function o(e,t){if("boolean"==typeof e)return!e;for(const r in e)if(t[r])return!0;return!1}function a(e){return"number"==typeof e?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}function i(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function s({mergeNames:e,mergeToName:r,mergeValues:n,resultToName:o}){return(a,i,s,l)=>{const u=void 0===s?i:s instanceof t.Name?(i instanceof t.Name?e(a,i,s):r(a,i,s),s):i instanceof t.Name?(r(a,s,i),i):n(i,s);return l!==t.Name||u instanceof t.Name?u:o(a,u)}}function l(e,r){if(!0===r)return e.var("props",!0);const n=e.var("props",t._`{}`);return void 0!==r&&u(e,n,r),n}function u(e,r,n){Object.keys(n).forEach((n=>e.assign(t._`${r}${(0,t.getProperty)(n)}`,!0)))}e.toHash=function(e){const t={};for(const r of e)t[r]=!0;return t},e.alwaysValidSchema=function(e,t){return"boolean"==typeof t?t:0===Object.keys(t).length||(n(e,t),!o(t,e.self.RULES.all))},e.checkUnknownRules=n,e.schemaHasRules=o,e.schemaHasRulesButRef=function(e,t){if("boolean"==typeof e)return!e;for(const r in e)if("$ref"!==r&&t.all[r])return!0;return!1},e.schemaRefOrVal=function({topSchemaRef:e,schemaPath:r},n,o,a){if(!a){if("number"==typeof n||"boolean"==typeof n)return n;if("string"==typeof n)return t._`${n}`}return t._`${e}${r}${(0,t.getProperty)(o)}`},e.unescapeFragment=function(e){return i(decodeURIComponent(e))},e.escapeFragment=function(e){return encodeURIComponent(a(e))},e.escapeJsonPointer=a,e.unescapeJsonPointer=i,e.eachItem=function(e,t){if(Array.isArray(e))for(const r of e)t(r);else t(e)},e.mergeEvaluated={props:s({mergeNames:(e,r,n)=>e.if(t._`${n} !== true && ${r} !== undefined`,(()=>{e.if(t._`${r} === true`,(()=>e.assign(n,!0)),(()=>e.assign(n,t._`${n} || {}`).code(t._`Object.assign(${n}, ${r})`)))})),mergeToName:(e,r,n)=>e.if(t._`${n} !== true`,(()=>{!0===r?e.assign(n,!0):(e.assign(n,t._`${n} || {}`),u(e,n,r))})),mergeValues:(e,t)=>!0===e||{...e,...t},resultToName:l}),items:s({mergeNames:(e,r,n)=>e.if(t._`${n} !== true && ${r} !== undefined`,(()=>e.assign(n,t._`${r} === true ? true : ${n} > ${r} ? ${n} : ${r}`))),mergeToName:(e,r,n)=>e.if(t._`${n} !== true`,(()=>e.assign(n,!0===r||t._`${n} > ${r} ? ${n} : ${r}`))),mergeValues:(e,t)=>!0===e||Math.max(e,t),resultToName:(e,t)=>e.var("items",t)})},e.evaluatedPropsToName=l,e.setEvaluated=u;const c={};var d;function f(e,t,r=e.opts.strictSchema){if(r){if(t=`strict mode: ${t}`,!0===r)throw new Error(t);e.self.logger.warn(t)}}e.useFunc=function(e,t){return e.scopeValue("func",{ref:t,code:c[t.code]||(c[t.code]=new r._Code(t.code))})},function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"}(d=e.Type||(e.Type={})),e.getErrorPath=function(e,r,n){if(e instanceof t.Name){const o=r===d.Num;return n?o?t._`"[" + ${e} + "]"`:t._`"['" + ${e} + "']"`:o?t._`"/" + ${e}`:t._`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return n?(0,t.getProperty)(e).toString():"/"+a(e)},e.checkStrictMode=f}(hO);var mO,vO,gO,yO={};function bO(){if(mO)return yO;mO=1,Object.defineProperty(yO,"__esModule",{value:!0});const e=pO(),t={data:new e.Name("data"),valCxt:new e.Name("valCxt"),instancePath:new e.Name("instancePath"),parentData:new e.Name("parentData"),parentDataProperty:new e.Name("parentDataProperty"),rootData:new e.Name("rootData"),dynamicAnchors:new e.Name("dynamicAnchors"),vErrors:new e.Name("vErrors"),errors:new e.Name("errors"),this:new e.Name("this"),self:new e.Name("self"),scope:new e.Name("scope"),json:new e.Name("json"),jsonPos:new e.Name("jsonPos"),jsonLen:new e.Name("jsonLen"),jsonPart:new e.Name("jsonPart")};return yO.default=t,yO}function wO(){return vO||(vO=1,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=pO(),r=hO,n=bO();function o(e,r){const o=e.const("err",r);e.if(t._`${n.default.vErrors} === null`,(()=>e.assign(n.default.vErrors,t._`[${o}]`)),t._`${n.default.vErrors}.push(${o})`),e.code(t._`${n.default.errors}++`)}function a(e,r){const{gen:n,validateName:o,schemaEnv:a}=e;a.$async?n.throw(t._`new ${e.ValidationError}(${r})`):(n.assign(t._`${o}.errors`,r),n.return(!1))}e.keywordError={message:({keyword:e})=>t.str`must pass "${e}" keyword validation`},e.keyword$DataError={message:({keyword:e,schemaType:r})=>r?t.str`"${e}" keyword must be ${r} ($data)`:t.str`"${e}" keyword is invalid ($data)`},e.reportError=function(r,n=e.keywordError,i,l){const{it:u}=r,{gen:c,compositeRule:d,allErrors:f}=u,p=s(r,n,i);(null!=l?l:d||f)?o(c,p):a(u,t._`[${p}]`)},e.reportExtraError=function(t,r=e.keywordError,i){const{it:l}=t,{gen:u,compositeRule:c,allErrors:d}=l;o(u,s(t,r,i)),c||d||a(l,n.default.vErrors)},e.resetErrorsCount=function(e,r){e.assign(n.default.errors,r),e.if(t._`${n.default.vErrors} !== null`,(()=>e.if(r,(()=>e.assign(t._`${n.default.vErrors}.length`,r)),(()=>e.assign(n.default.vErrors,null)))))},e.extendErrors=function({gen:e,keyword:r,schemaValue:o,data:a,errsCount:i,it:s}){if(void 0===i)throw new Error("ajv implementation error");const l=e.name("err");e.forRange("i",i,n.default.errors,(i=>{e.const(l,t._`${n.default.vErrors}[${i}]`),e.if(t._`${l}.instancePath === undefined`,(()=>e.assign(t._`${l}.instancePath`,(0,t.strConcat)(n.default.instancePath,s.errorPath)))),e.assign(t._`${l}.schemaPath`,t.str`${s.errSchemaPath}/${r}`),s.opts.verbose&&(e.assign(t._`${l}.schema`,o),e.assign(t._`${l}.data`,a))}))};const i={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 s(e,r,o){const{createErrors:a}=e.it;return!1===a?t._`{}`:function(e,r,o={}){const{gen:a,it:s}=e,c=[l(s,o),u(e,o)];return function(e,{params:r,message:o},a){const{keyword:s,data:l,schemaValue:u,it:c}=e,{opts:d,propertyName:f,topSchemaRef:p,schemaPath:h}=c;a.push([i.keyword,s],[i.params,"function"==typeof r?r(e):r||t._`{}`]),d.messages&&a.push([i.message,"function"==typeof o?o(e):o]);d.verbose&&a.push([i.schema,u],[i.parentSchema,t._`${p}${h}`],[n.default.data,l]);f&&a.push([i.propertyName,f])}(e,r,c),a.object(...c)}(e,r,o)}function l({errorPath:e},{instancePath:o}){const a=o?t.str`${e}${(0,r.getErrorPath)(o,r.Type.Str)}`:e;return[n.default.instancePath,(0,t.strConcat)(n.default.instancePath,a)]}function u({keyword:e,it:{errSchemaPath:n}},{schemaPath:o,parentSchema:a}){let s=a?n:t.str`${n}/${e}`;return o&&(s=t.str`${s}${(0,r.getErrorPath)(o,r.Type.Str)}`),[i.schemaPath,s]}}(aO)),aO}var SO={},xO={};Object.defineProperty(xO,"__esModule",{value:!0}),xO.getRules=xO.isJSONType=void 0;const _O=new Set(["string","number","integer","boolean","null","object","array"]);xO.isJSONType=function(e){return"string"==typeof e&&_O.has(e)},xO.getRules=function(){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:{}}};var $O,kO={};function EO(){if($O)return kO;function e(e,r){return r.rules.some((r=>t(e,r)))}function t(e,t){var r;return void 0!==e[t.keyword]||(null===(r=t.definition.implements)||void 0===r?void 0:r.some((t=>void 0!==e[t])))}return $O=1,Object.defineProperty(kO,"__esModule",{value:!0}),kO.shouldUseRule=kO.shouldUseGroup=kO.schemaHasRulesForType=void 0,kO.schemaHasRulesForType=function({schema:t,self:r},n){const o=r.RULES.types[n];return o&&!0!==o&&e(t,o)},kO.shouldUseGroup=e,kO.shouldUseRule=t,kO}!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=xO,r=EO(),n=wO(),o=pO(),a=hO;var i;function s(e){const r=Array.isArray(e)?e:e?[e]:[];if(r.every(t.isJSONType))return r;throw new Error("type must be JSONType or JSONType[]: "+r.join(","))}!function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"}(i=e.DataType||(e.DataType={})),e.getSchemaTypes=function(e){const t=s(e.type);if(t.includes("null")){if(!1===e.nullable)throw new Error("type: null contradicts nullable: false")}else{if(!t.length&&void 0!==e.nullable)throw new Error('"nullable" cannot be used without "type"');!0===e.nullable&&t.push("null")}return t},e.getJSONTypes=s,e.coerceAndCheckDataType=function(e,t){const{gen:n,data:a,opts:s}=e,u=function(e,t){return t?e.filter((e=>l.has(e)||"array"===t&&"array"===e)):[]}(t,s.coerceTypes),d=t.length>0&&!(0===u.length&&1===t.length&&(0,r.schemaHasRulesForType)(e,t[0]));if(d){const r=c(t,a,s.strictNumbers,i.Wrong);n.if(r,(()=>{u.length?function(e,t,r){const{gen:n,data:a,opts:i}=e,s=n.let("dataType",o._`typeof ${a}`),u=n.let("coerced",o._`undefined`);"array"===i.coerceTypes&&n.if(o._`${s} == 'object' && Array.isArray(${a}) && ${a}.length == 1`,(()=>n.assign(a,o._`${a}[0]`).assign(s,o._`typeof ${a}`).if(c(t,a,i.strictNumbers),(()=>n.assign(u,a)))));n.if(o._`${u} !== undefined`);for(const e of r)(l.has(e)||"array"===e&&"array"===i.coerceTypes)&&d(e);function d(e){switch(e){case"string":return void n.elseIf(o._`${s} == "number" || ${s} == "boolean"`).assign(u,o._`"" + ${a}`).elseIf(o._`${a} === null`).assign(u,o._`""`);case"number":return void n.elseIf(o._`${s} == "boolean" || ${a} === null
|
|
22
45
|
|| (${s} == "string" && ${a} && ${a} == +${a})`).assign(u,o._`+${a}`);case"integer":return void n.elseIf(o._`${s} === "boolean" || ${a} === null
|
|
23
46
|
|| (${s} === "string" && ${a} && ${a} == +${a} && !(${a} % 1))`).assign(u,o._`+${a}`);case"boolean":return void n.elseIf(o._`${a} === "false" || ${a} === 0 || ${a} === null`).assign(u,!1).elseIf(o._`${a} === "true" || ${a} === 1`).assign(u,!0);case"null":return n.elseIf(o._`${a} === "" || ${a} === 0 || ${a} === false`),void n.assign(u,null);case"array":n.elseIf(o._`${s} === "string" || ${s} === "number"
|
|
24
|
-
|| ${s} === "boolean" || ${a} === null`).assign(u,o._`[${a}]`)}}n.else(),f(e),n.endIf(),n.if(o._`${u} !== undefined`,(()=>{n.assign(a,u),function({gen:e,parentData:t,parentDataProperty:r},n){e.if(o._`${t} !== undefined`,(()=>e.assign(o._`${t}[${r}]`,n)))}(e,u)}))}(e,t,u):f(e)}))}return d};const l=new Set(["string","number","integer","boolean","null"]);function u(e,t,r,n=i.Correct){const a=n===i.Correct?o.operators.EQ:o.operators.NEQ;let s;switch(e){case"null":return o._`${t} ${a} null`;case"array":s=o._`Array.isArray(${t})`;break;case"object":s=o._`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":s=l(o._`!(${t} % 1) && !isNaN(${t})`);break;case"number":s=l();break;default:return o._`typeof ${t} ${a} ${e}`}return n===i.Correct?s:(0,o.not)(s);function l(e=o.nil){return(0,o.and)(o._`typeof ${t} == "number"`,e,r?o._`isFinite(${t})`:o.nil)}}function c(e,t,r,n){if(1===e.length)return u(e[0],t,r,n);let i;const s=(0,a.toHash)(e);if(s.array&&s.object){const e=o._`typeof ${t} != "object"`;i=s.null?e:o._`!${t} || ${e}`,delete s.null,delete s.array,delete s.object}else i=o.nil;s.number&&delete s.integer;for(const e in s)i=(0,o.and)(i,u(e,t,r,n));return i}e.checkDataType=u,e.checkDataTypes=c;const d={message:({schema:e})=>`must be ${e}`,params:({schema:e,schemaValue:t})=>"string"==typeof e?o._`{type: ${e}}`:o._`{type: ${t}}`};function f(e){const t=function(e){const{gen:t,data:r,schema:n}=e,o=(0,a.schemaRefOrVal)(e,n,"type");return{gen:t,keyword:"type",data:r,schema:n.type,schemaCode:o,schemaValue:o,parentSchema:n,params:{},it:e}}(e);(0,n.reportError)(t,d)}e.reportTypeError=f}(wT);var ET,CT={};var PT,jT,OT={},NT={};function RT(){if(PT)return NT;PT=1,Object.defineProperty(NT,"__esModule",{value:!0}),NT.validateUnion=NT.validateArray=NT.usePattern=NT.callValidateCode=NT.schemaProperties=NT.allSchemaProperties=NT.noPropertyInData=NT.propertyInData=NT.isOwnProperty=NT.hasPropFunc=NT.reportMissingProp=NT.checkMissingProp=NT.checkReportMissingProp=void 0;const e=fT(),t=pT,r=gT(),n=pT;function o(t){return t.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:e._`Object.prototype.hasOwnProperty`})}function a(t,r,n){return e._`${o(t)}.call(${r}, ${n})`}function i(t,r,n,o){const i=e._`${r}${(0,e.getProperty)(n)} === undefined`;return o?(0,e.or)(i,(0,e.not)(a(t,r,n))):i}function s(e){return e?Object.keys(e).filter((e=>"__proto__"!==e)):[]}NT.checkReportMissingProp=function(t,r){const{gen:n,data:o,it:a}=t;n.if(i(n,o,r,a.opts.ownProperties),(()=>{t.setParams({missingProperty:e._`${r}`},!0),t.error()}))},NT.checkMissingProp=function({gen:t,data:r,it:{opts:n}},o,a){return(0,e.or)(...o.map((o=>(0,e.and)(i(t,r,o,n.ownProperties),e._`${a} = ${o}`))))},NT.reportMissingProp=function(e,t){e.setParams({missingProperty:t},!0),e.error()},NT.hasPropFunc=o,NT.isOwnProperty=a,NT.propertyInData=function(t,r,n,o){const i=e._`${r}${(0,e.getProperty)(n)} !== undefined`;return o?e._`${i} && ${a(t,r,n)}`:i},NT.noPropertyInData=i,NT.allSchemaProperties=s,NT.schemaProperties=function(e,r){return s(r).filter((n=>!(0,t.alwaysValidSchema)(e,r[n])))},NT.callValidateCode=function({schemaCode:t,data:n,it:{gen:o,topSchemaRef:a,schemaPath:i,errorPath:s},it:l},u,c,d){const f=d?e._`${t}, ${n}, ${a}${i}`:n,p=[[r.default.instancePath,(0,e.strConcat)(r.default.instancePath,s)],[r.default.parentData,l.parentData],[r.default.parentDataProperty,l.parentDataProperty],[r.default.rootData,r.default.rootData]];l.opts.dynamicRef&&p.push([r.default.dynamicAnchors,r.default.dynamicAnchors]);const m=e._`${f}, ${o.object(...p)}`;return c!==e.nil?e._`${u}.call(${c}, ${m})`:e._`${u}(${m})`};const l=e._`new RegExp`;return NT.usePattern=function({gen:t,it:{opts:r}},o){const a=r.unicodeRegExp?"u":"",{regExp:i}=r.code,s=i(o,a);return t.scopeValue("pattern",{key:s.toString(),ref:s,code:e._`${"new RegExp"===i.code?l:(0,n.useFunc)(t,i)}(${o}, ${a})`})},NT.validateArray=function(r){const{gen:n,data:o,keyword:a,it:i}=r,s=n.name("valid");if(i.allErrors){const e=n.let("valid",!0);return l((()=>n.assign(e,!1))),e}return n.var(s,!0),l((()=>n.break())),s;function l(i){const l=n.const("len",e._`${o}.length`);n.forRange("i",0,l,(o=>{r.subschema({keyword:a,dataProp:o,dataPropType:t.Type.Num},s),n.if((0,e.not)(s),i)}))}},NT.validateUnion=function(r){const{gen:n,schema:o,keyword:a,it:i}=r;if(!Array.isArray(o))throw new Error("ajv implementation error");if(o.some((e=>(0,t.alwaysValidSchema)(i,e)))&&!i.opts.unevaluated)return;const s=n.let("valid",!1),l=n.name("_valid");n.block((()=>o.forEach(((t,o)=>{const i=r.subschema({keyword:a,schemaProp:o,compositeRule:!0},l);n.assign(s,e._`${s} || ${l}`);r.mergeValidEvaluated(i,l)||n.if((0,e.not)(s))})))),r.result(s,(()=>r.reset()),(()=>r.error(!0)))},NT}function TT(){if(jT)return OT;jT=1,Object.defineProperty(OT,"__esModule",{value:!0}),OT.validateKeywordUsage=OT.validSchemaType=OT.funcKeywordCode=OT.macroKeywordCode=void 0;const e=fT(),t=gT(),r=RT(),n=bT();function o(t){const{gen:r,data:n,it:o}=t;r.if(o.parentData,(()=>r.assign(n,e._`${o.parentData}[${o.parentDataProperty}]`)))}function a(t,r,n){if(void 0===n)throw new Error(`keyword "${r}" failed to compile`);return t.scopeValue("keyword","function"==typeof n?{ref:n}:{ref:n,code:(0,e.stringify)(n)})}return OT.macroKeywordCode=function(t,r){const{gen:n,keyword:o,schema:i,parentSchema:s,it:l}=t,u=r.macro.call(l.self,i,s,l),c=a(n,o,u);!1!==l.opts.validateSchema&&l.self.validateSchema(u,!0);const d=n.name("valid");t.subschema({schema:u,schemaPath:e.nil,errSchemaPath:`${l.errSchemaPath}/${o}`,topSchemaRef:c,compositeRule:!0},d),t.pass(d,(()=>t.error(!0)))},OT.funcKeywordCode=function(i,s){var l;const{gen:u,keyword:c,schema:d,parentSchema:f,$data:p,it:m}=i;!function({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}(m,s);const h=!p&&s.compile?s.compile.call(m.self,d,f,m):s.validate,v=a(u,c,h),y=u.let("valid");function g(n=(s.async?e._`await `:e.nil)){const o=m.opts.passContext?t.default.this:t.default.self,a=!("compile"in s&&!p||!1===s.schema);u.assign(y,e._`${n}${(0,r.callValidateCode)(i,v,o,a)}`,s.modifying)}function b(t){var r;u.if((0,e.not)(null!==(r=s.valid)&&void 0!==r?r:y),t)}i.block$data(y,(function(){if(!1===s.errors)g(),s.modifying&&o(i),b((()=>i.error()));else{const r=s.async?function(){const t=u.let("ruleErrs",null);return u.try((()=>g(e._`await `)),(r=>u.assign(y,!1).if(e._`${r} instanceof ${m.ValidationError}`,(()=>u.assign(t,e._`${r}.errors`)),(()=>u.throw(r))))),t}():function(){const t=e._`${v}.errors`;return u.assign(t,null),g(e.nil),t}();s.modifying&&o(i),b((()=>function(r,o){const{gen:a}=r;a.if(e._`Array.isArray(${o})`,(()=>{a.assign(t.default.vErrors,e._`${t.default.vErrors} === null ? ${o} : ${t.default.vErrors}.concat(${o})`).assign(t.default.errors,e._`${t.default.vErrors}.length`),(0,n.extendErrors)(r)}),(()=>r.error()))}(i,r)))}})),i.ok(null!==(l=s.valid)&&void 0!==l?l:y)},OT.validSchemaType=function(e,t,r=!1){return!t.length||t.some((t=>"array"===t?Array.isArray(e):"object"===t?e&&"object"==typeof e&&!Array.isArray(e):typeof e==t||r&&void 0===e))},OT.validateKeywordUsage=function({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(null==i?void 0:i.some((t=>!Object.prototype.hasOwnProperty.call(e,t))))throw new Error(`parent schema must have dependencies of ${a}: ${i.join(",")}`);if(o.validateSchema){if(!o.validateSchema(e[a])){const e=`keyword "${a}" value is invalid at path "${n}": `+r.errorsText(o.validateSchema.errors);if("log"!==t.validateSchema)throw new Error(e);r.logger.error(e)}}},OT}var AT,IT={};var MT={},FT=function e(t,r){if(t===r)return!0;if(t&&r&&"object"==typeof t&&"object"==typeof r){if(t.constructor!==r.constructor)return!1;var n,o,a;if(Array.isArray(t)){if((n=t.length)!=r.length)return!1;for(o=n;0!=o--;)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((n=(a=Object.keys(t)).length)!==Object.keys(r).length)return!1;for(o=n;0!=o--;)if(!Object.prototype.hasOwnProperty.call(r,a[o]))return!1;for(o=n;0!=o--;){var i=a[o];if(!e(t[i],r[i]))return!1}return!0}return t!=t&&r!=r},DT={},zT={get exports(){return DT},set exports(e){DT=e}},LT=zT.exports=function(e,t,r){"function"==typeof t&&(r=t,t={}),BT(t,"function"==typeof(r=t.cb||r)?r:r.pre||function(){},r.post||function(){},e,"",e)};function BT(e,t,r,n,o,a,i,s,l,u){if(n&&"object"==typeof n&&!Array.isArray(n)){for(var c in t(n,o,a,i,s,l,u),n){var d=n[c];if(Array.isArray(d)){if(c in LT.arrayKeywords)for(var f=0;f<d.length;f++)BT(e,t,r,d[f],o+"/"+c+"/"+f,a,o,c,n,f)}else if(c in LT.propsKeywords){if(d&&"object"==typeof d)for(var p in d)BT(e,t,r,d[p],o+"/"+c+"/"+p.replace(/~/g,"~0").replace(/\//g,"~1"),a,o,c,n,p)}else(c in LT.keywords||e.allKeys&&!(c in LT.skipKeywords))&&BT(e,t,r,d,o+"/"+c,a,o,c,n)}r(n,o,a,i,s,l,u)}}LT.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0},LT.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},LT.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},LT.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},Object.defineProperty(MT,"__esModule",{value:!0}),MT.getSchemaRefs=MT.resolveUrl=MT.normalizeId=MT._getFullPath=MT.getFullPath=MT.inlineRef=void 0;const VT=pT,UT=FT,WT=DT,qT=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);MT.inlineRef=function(e,t=!0){return"boolean"==typeof e||(!0===t?!HT(e):!!t&>(e)<=t)};const KT=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function HT(e){for(const t in e){if(KT.has(t))return!0;const r=e[t];if(Array.isArray(r)&&r.some(HT))return!0;if("object"==typeof r&&HT(r))return!0}return!1}function GT(e){let t=0;for(const r in e){if("$ref"===r)return 1/0;if(t++,!qT.has(r)&&("object"==typeof e[r]&&(0,VT.eachItem)(e[r],(e=>t+=GT(e))),t===1/0))return 1/0}return t}function QT(e,t="",r){!1!==r&&(t=JT(t));const n=e.parse(t);return XT(e,n)}function XT(e,t){return e.serialize(t).split("#")[0]+"#"}MT.getFullPath=QT,MT._getFullPath=XT;const YT=/#\/?$/;function JT(e){return e?e.replace(YT,""):""}MT.normalizeId=JT,MT.resolveUrl=function(e,t,r){return r=JT(r),e.resolve(t,r)};const ZT=/^[a-z_][-a-z0-9._]*$/i;var eA;function tA(){if(eA)return rT;eA=1,Object.defineProperty(rT,"__esModule",{value:!0}),rT.getData=rT.KeywordCxt=rT.validateFunctionCode=void 0;const e=function(){if(vT)return nT;vT=1,Object.defineProperty(nT,"__esModule",{value:!0}),nT.boolOrEmptySchema=nT.topBoolOrEmptySchema=void 0;const e=bT(),t=fT(),r=gT(),n={message:"boolean schema is false"};function o(t,r){const{gen:o,data:a}=t,i={gen:o,keyword:"false schema",data:a,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:t};(0,e.reportError)(i,n,void 0,r)}return nT.topBoolOrEmptySchema=function(e){const{gen:n,schema:a,validateName:i}=e;!1===a?o(e,!1):"object"==typeof a&&!0===a.$async?n.return(r.default.data):(n.assign(t._`${i}.errors`,null),n.return(!0))},nT.boolOrEmptySchema=function(e,t){const{gen:r,schema:n}=e;!1===n?(r.var(t,!1),o(e)):r.var(t,!0)},nT}(),t=wT,r=_T(),n=wT,o=function(){if(ET)return CT;ET=1,Object.defineProperty(CT,"__esModule",{value:!0}),CT.assignDefaults=void 0;const e=fT(),t=pT;function r(r,n,o){const{gen:a,compositeRule:i,data:s,opts:l}=r;if(void 0===o)return;const u=e._`${s}${(0,e.getProperty)(n)}`;if(i)return void(0,t.checkStrictMode)(r,`default is ignored for: ${u}`);let c=e._`${u} === undefined`;"empty"===l.useDefaults&&(c=e._`${c} || ${u} === null || ${u} === ""`),a.if(c,e._`${u} = ${(0,e.stringify)(o)}`)}return CT.assignDefaults=function(e,t){const{properties:n,items:o}=e.schema;if("object"===t&&n)for(const t in n)r(e,t,n[t].default);else"array"===t&&Array.isArray(o)&&o.forEach(((t,n)=>r(e,n,t.default)))},CT}(),a=TT(),i=function(){if(AT)return IT;AT=1,Object.defineProperty(IT,"__esModule",{value:!0}),IT.extendSubschemaMode=IT.extendSubschemaData=IT.getSubschema=void 0;const e=fT(),t=pT;return IT.getSubschema=function(r,{keyword:n,schemaProp:o,schema:a,schemaPath:i,errSchemaPath:s,topSchemaRef:l}){if(void 0!==n&&void 0!==a)throw new Error('both "keyword" and "schema" passed, only one allowed');if(void 0!==n){const a=r.schema[n];return void 0===o?{schema:a,schemaPath:e._`${r.schemaPath}${(0,e.getProperty)(n)}`,errSchemaPath:`${r.errSchemaPath}/${n}`}:{schema:a[o],schemaPath:e._`${r.schemaPath}${(0,e.getProperty)(n)}${(0,e.getProperty)(o)}`,errSchemaPath:`${r.errSchemaPath}/${n}/${(0,t.escapeFragment)(o)}`}}if(void 0!==a){if(void 0===i||void 0===s||void 0===l)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:a,schemaPath:i,topSchemaRef:l,errSchemaPath:s}}throw new Error('either "keyword" or "schema" must be passed')},IT.extendSubschemaData=function(r,n,{dataProp:o,dataPropType:a,data:i,dataTypes:s,propertyName:l}){if(void 0!==i&&void 0!==o)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:u}=n;if(void 0!==o){const{errorPath:i,dataPathArr:s,opts:l}=n;c(u.let("data",e._`${n.data}${(0,e.getProperty)(o)}`,!0)),r.errorPath=e.str`${i}${(0,t.getErrorPath)(o,a,l.jsPropertySyntax)}`,r.parentDataProperty=e._`${o}`,r.dataPathArr=[...s,r.parentDataProperty]}function c(e){r.data=e,r.dataLevel=n.dataLevel+1,r.dataTypes=[],n.definedProperties=new Set,r.parentData=n.data,r.dataNames=[...n.dataNames,e]}void 0!==i&&(c(i instanceof e.Name?i:u.let("data",i,!0)),void 0!==l&&(r.propertyName=l)),s&&(r.dataTypes=s)},IT.extendSubschemaMode=function(e,{jtdDiscriminator:t,jtdMetadata:r,compositeRule:n,createErrors:o,allErrors:a}){void 0!==n&&(e.compositeRule=n),void 0!==o&&(e.createErrors=o),void 0!==a&&(e.allErrors=a),e.jtdDiscriminator=t,e.jtdMetadata=r},IT}(),s=fT(),l=gT(),u=MT,c=pT,d=bT();function f({gen:e,validateName:t,schema:r,schemaEnv:n,opts:o},a){o.code.es5?e.func(t,s._`${l.default.data}, ${l.default.valCxt}`,n.$async,(()=>{e.code(s._`"use strict"; ${p(r,o)}`),function(e,t){e.if(l.default.valCxt,(()=>{e.var(l.default.instancePath,s._`${l.default.valCxt}.${l.default.instancePath}`),e.var(l.default.parentData,s._`${l.default.valCxt}.${l.default.parentData}`),e.var(l.default.parentDataProperty,s._`${l.default.valCxt}.${l.default.parentDataProperty}`),e.var(l.default.rootData,s._`${l.default.valCxt}.${l.default.rootData}`),t.dynamicRef&&e.var(l.default.dynamicAnchors,s._`${l.default.valCxt}.${l.default.dynamicAnchors}`)}),(()=>{e.var(l.default.instancePath,s._`""`),e.var(l.default.parentData,s._`undefined`),e.var(l.default.parentDataProperty,s._`undefined`),e.var(l.default.rootData,l.default.data),t.dynamicRef&&e.var(l.default.dynamicAnchors,s._`{}`)}))}(e,o),e.code(a)})):e.func(t,s._`${l.default.data}, ${function(e){return s._`{${l.default.instancePath}="", ${l.default.parentData}, ${l.default.parentDataProperty}, ${l.default.rootData}=${l.default.data}${e.dynamicRef?s._`, ${l.default.dynamicAnchors}={}`:s.nil}}={}`}(o)}`,n.$async,(()=>e.code(p(r,o)).code(a)))}function p(e,t){const r="object"==typeof e&&e[t.schemaId];return r&&(t.code.source||t.code.process)?s._`/*# sourceURL=${r} */`:s.nil}function m(t,r){v(t)&&(y(t),h(t))?function(e,t){const{schema:r,gen:n,opts:o}=e;o.$comment&&r.$comment&&b(e);(function(e){const t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,u.resolveUrl)(e.opts.uriResolver,e.baseId,t))})(e),function(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}(e);const a=n.const("_errs",l.default.errors);g(e,a),n.var(t,s._`${a} === ${l.default.errors}`)}(t,r):(0,e.boolOrEmptySchema)(t,r)}function h({schema:e,self:t}){if("boolean"==typeof e)return!e;for(const r in e)if(t.RULES.all[r])return!0;return!1}function v(e){return"boolean"!=typeof e.schema}function y(e){(0,c.checkUnknownRules)(e),function(e){const{schema:t,errSchemaPath:r,opts:n,self:o}=e;t.$ref&&n.ignoreKeywordsWithRef&&(0,c.schemaHasRulesButRef)(t,o.RULES)&&o.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}(e)}function g(e,r){if(e.opts.jtd)return w(e,[],!1,r);const n=(0,t.getSchemaTypes)(e.schema);w(e,n,!(0,t.coerceAndCheckDataType)(e,n),r)}function b({gen:e,schemaEnv:t,schema:r,errSchemaPath:n,opts:o}){const a=r.$comment;if(!0===o.$comment)e.code(s._`${l.default.self}.logger.log(${a})`);else if("function"==typeof o.$comment){const r=s.str`${n}/$comment`,o=e.scopeValue("root",{ref:t.root});e.code(s._`${l.default.self}.opts.$comment(${a}, ${r}, ${o}.schema)`)}}function w(e,t,o,a){const{gen:i,schema:u,data:d,allErrors:f,opts:p,self:m}=e,{RULES:h}=m;function v(c){(0,r.shouldUseGroup)(u,c)&&(c.type?(i.if((0,n.checkDataType)(c.type,d,p.strictNumbers)),S(e,c),1===t.length&&t[0]===c.type&&o&&(i.else(),(0,n.reportTypeError)(e)),i.endIf()):S(e,c),f||i.if(s._`${l.default.errors} === ${a||0}`))}!u.$ref||!p.ignoreKeywordsWithRef&&(0,c.schemaHasRulesButRef)(u,h)?(p.jtd||function(e,t){if(e.schemaEnv.meta||!e.opts.strictTypes)return;(function(e,t){if(!t.length)return;if(!e.dataTypes.length)return void(e.dataTypes=t);t.forEach((t=>{$(e.dataTypes,t)||k(e,`type "${t}" not allowed by context "${e.dataTypes.join(",")}"`)})),function(e,t){const r=[];for(const n of e.dataTypes)$(t,n)?r.push(n):t.includes("integer")&&"number"===n&&r.push("integer");e.dataTypes=r}(e,t)})(e,t),e.opts.allowUnionTypes||function(e,t){t.length>1&&(2!==t.length||!t.includes("null"))&&k(e,"use allowUnionTypes to allow union type keyword")}(e,t);!function(e,t){const n=e.self.RULES.all;for(const o in n){const a=n[o];if("object"==typeof a&&(0,r.shouldUseRule)(e.schema,a)){const{type:r}=a.definition;r.length&&!r.some((e=>x(t,e)))&&k(e,`missing type "${r.join(",")}" for keyword "${o}"`)}}}(e,e.dataTypes)}(e,t),i.block((()=>{for(const e of h.rules)v(e);v(h.post)}))):i.block((()=>E(e,"$ref",h.all.$ref.definition)))}function S(e,t){const{gen:n,schema:a,opts:{useDefaults:i}}=e;i&&(0,o.assignDefaults)(e,t.type),n.block((()=>{for(const n of t.rules)(0,r.shouldUseRule)(a,n)&&E(e,n.keyword,n.definition,t.type)}))}function x(e,t){return e.includes(t)||"number"===t&&e.includes("integer")}function $(e,t){return e.includes(t)||"integer"===t&&e.includes("number")}function k(e,t){t+=` at "${e.schemaEnv.baseId+e.errSchemaPath}" (strictTypes)`,(0,c.checkStrictMode)(e,t,e.opts.strictTypes)}rT.validateFunctionCode=function(t){v(t)&&(y(t),h(t))?function(e){const{schema:t,opts:r,gen:n}=e;f(e,(()=>{r.$comment&&t.$comment&&b(e),function(e){const{schema:t,opts:r}=e;void 0!==t.default&&r.useDefaults&&r.strictSchema&&(0,c.checkStrictMode)(e,"default is ignored in the schema root")}(e),n.let(l.default.vErrors,null),n.let(l.default.errors,0),r.unevaluated&&function(e){const{gen:t,validateName:r}=e;e.evaluated=t.const("evaluated",s._`${r}.evaluated`),t.if(s._`${e.evaluated}.dynamicProps`,(()=>t.assign(s._`${e.evaluated}.props`,s._`undefined`))),t.if(s._`${e.evaluated}.dynamicItems`,(()=>t.assign(s._`${e.evaluated}.items`,s._`undefined`)))}(e),g(e),function(e){const{gen:t,schemaEnv:r,validateName:n,ValidationError:o,opts:a}=e;r.$async?t.if(s._`${l.default.errors} === 0`,(()=>t.return(l.default.data)),(()=>t.throw(s._`new ${o}(${l.default.vErrors})`))):(t.assign(s._`${n}.errors`,l.default.vErrors),a.unevaluated&&function({gen:e,evaluated:t,props:r,items:n}){r instanceof s.Name&&e.assign(s._`${t}.props`,r);n instanceof s.Name&&e.assign(s._`${t}.items`,n)}(e),t.return(s._`${l.default.errors} === 0`))}(e)}))}(t):f(t,(()=>(0,e.topBoolOrEmptySchema)(t)))};class _{constructor(e,t,r){if((0,a.validateKeywordUsage)(e,t,r),this.gen=e.gen,this.allErrors=e.allErrors,this.keyword=r,this.data=e.data,this.schema=e.schema[r],this.$data=t.$data&&e.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,c.schemaRefOrVal)(e,this.schema,r,this.$data),this.schemaType=t.schemaType,this.parentSchema=e.schema,this.params={},this.it=e,this.def=t,this.$data)this.schemaCode=e.gen.const("vSchema",j(this.$data,e));else if(this.schemaCode=this.schemaValue,!(0,a.validSchemaType)(this.schema,t.schemaType,t.allowUndefined))throw new Error(`${r} value must be ${JSON.stringify(t.schemaType)}`);("code"in t?t.trackErrors:!1!==t.errors)&&(this.errsCount=e.gen.const("_errs",l.default.errors))}result(e,t,r){this.failResult((0,s.not)(e),t,r)}failResult(e,t,r){this.gen.if(e),r?r():this.error(),t?(this.gen.else(),t(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(e,t){this.failResult((0,s.not)(e),void 0,t)}fail(e){if(void 0===e)return this.error(),void(this.allErrors||this.gen.if(!1));this.gen.if(e),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(e){if(!this.$data)return this.fail(e);const{schemaCode:t}=this;this.fail(s._`${t} !== undefined && (${(0,s.or)(this.invalid$data(),e)})`)}error(e,t,r){if(t)return this.setParams(t),this._error(e,r),void this.setParams({});this._error(e,r)}_error(e,t){(e?d.reportExtraError:d.reportError)(this,this.def.error,t)}$dataError(){(0,d.reportError)(this,this.def.$dataError||d.keyword$DataError)}reset(){if(void 0===this.errsCount)throw new Error('add "trackErrors" to keyword definition');(0,d.resetErrorsCount)(this.gen,this.errsCount)}ok(e){this.allErrors||this.gen.if(e)}setParams(e,t){t?Object.assign(this.params,e):this.params=e}block$data(e,t,r=s.nil){this.gen.block((()=>{this.check$data(e,r),t()}))}check$data(e=s.nil,t=s.nil){if(!this.$data)return;const{gen:r,schemaCode:n,schemaType:o,def:a}=this;r.if((0,s.or)(s._`${n} === undefined`,t)),e!==s.nil&&r.assign(e,!0),(o.length||a.validateSchema)&&(r.elseIf(this.invalid$data()),this.$dataError(),e!==s.nil&&r.assign(e,!1)),r.else()}invalid$data(){const{gen:e,schemaCode:t,schemaType:r,def:o,it:a}=this;return(0,s.or)(function(){if(r.length){if(!(t instanceof s.Name))throw new Error("ajv implementation error");const e=Array.isArray(r)?r:[r];return s._`${(0,n.checkDataTypes)(e,t,a.opts.strictNumbers,n.DataType.Wrong)}`}return s.nil}(),function(){if(o.validateSchema){const r=e.scopeValue("validate$data",{ref:o.validateSchema});return s._`!${r}(${t})`}return s.nil}())}subschema(e,t){const r=(0,i.getSubschema)(this.it,e);(0,i.extendSubschemaData)(r,this.it,e),(0,i.extendSubschemaMode)(r,e);const n={...this.it,...r,items:void 0,props:void 0};return m(n,t),n}mergeEvaluated(e,t){const{it:r,gen:n}=this;r.opts.unevaluated&&(!0!==r.props&&void 0!==e.props&&(r.props=c.mergeEvaluated.props(n,e.props,r.props,t)),!0!==r.items&&void 0!==e.items&&(r.items=c.mergeEvaluated.items(n,e.items,r.items,t)))}mergeValidEvaluated(e,t){const{it:r,gen:n}=this;if(r.opts.unevaluated&&(!0!==r.props||!0!==r.items))return n.if(t,(()=>this.mergeEvaluated(e,s.Name))),!0}}function E(e,t,r,n){const o=new _(e,r,t);"code"in r?r.code(o,n):o.$data&&r.validate?(0,a.funcKeywordCode)(o,r):"macro"in r?(0,a.macroKeywordCode)(o,r):(r.compile||r.validate)&&(0,a.funcKeywordCode)(o,r)}rT.KeywordCxt=_;const C=/^\/(?:[^~]|~0|~1)*$/,P=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function j(e,{dataLevel:t,dataNames:r,dataPathArr:n}){let o,a;if(""===e)return l.default.rootData;if("/"===e[0]){if(!C.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);o=e,a=l.default.rootData}else{const i=P.exec(e);if(!i)throw new Error(`Invalid JSON-pointer: ${e}`);const s=+i[1];if(o=i[2],"#"===o){if(s>=t)throw new Error(d("property/index",s));return n[t-s]}if(s>t)throw new Error(d("data",s));if(a=r[t-s],!o)return a}let i=a;const u=o.split("/");for(const e of u)e&&(a=s._`${a}${(0,s.getProperty)((0,c.unescapeJsonPointer)(e))}`,i=s._`${i} && ${a}`);return i;function d(e,r){return`Cannot access ${e} ${r} levels up, current level is ${t}`}}return rT.getData=j,rT}MT.getSchemaRefs=function(e,t){if("boolean"==typeof e)return{};const{schemaId:r,uriResolver:n}=this.opts,o=JT(e[r]||t),a={"":o},i=QT(n,o,!1),s={},l=new Set;return WT(e,{allKeys:!0},((e,t,n,o)=>{if(void 0===o)return;const d=i+t;let f=a[o];function p(t){const r=this.opts.uriResolver.resolve;if(t=JT(f?r(f,t):t),l.has(t))throw c(t);l.add(t);let n=this.refs[t];return"string"==typeof n&&(n=this.refs[n]),"object"==typeof n?u(e,n.schema,t):t!==JT(d)&&("#"===t[0]?(u(e,s[t],t),s[t]=e):this.refs[t]=d),t}function m(e){if("string"==typeof e){if(!ZT.test(e))throw new Error(`invalid anchor "${e}"`);p.call(this,`#${e}`)}}"string"==typeof e[r]&&(f=p.call(this,e[r])),m.call(this,e.$anchor),m.call(this,e.$dynamicAnchor),a[t]=f})),s;function u(e,t,r){if(void 0!==t&&!UT(e,t))throw c(r)}function c(e){return new Error(`reference "${e}" resolves to more than one schema`)}};var rA,nA={};function oA(){if(rA)return nA;rA=1,Object.defineProperty(nA,"__esModule",{value:!0});class e extends Error{constructor(e){super("validation failed"),this.errors=e,this.ajv=this.validation=!0}}return nA.default=e,nA}var aA,iA={};function sA(){if(aA)return iA;aA=1,Object.defineProperty(iA,"__esModule",{value:!0});const e=MT;class t extends Error{constructor(t,r,n,o){super(o||`can't resolve reference ${n} from id ${r}`),this.missingRef=(0,e.resolveUrl)(t,r,n),this.missingSchema=(0,e.normalizeId)((0,e.getFullPath)(t,this.missingRef))}}return iA.default=t,iA}var lA={};Object.defineProperty(lA,"__esModule",{value:!0}),lA.resolveSchema=lA.getCompilingSchema=lA.resolveRef=lA.compileSchema=lA.SchemaEnv=void 0;const uA=fT(),cA=oA(),dA=gT(),fA=MT,pA=pT,mA=tA();let hA=class{constructor(e){var t;let r;this.refs={},this.dynamicAnchors={},"object"==typeof e.schema&&(r=e.schema),this.schema=e.schema,this.schemaId=e.schemaId,this.root=e.root||this,this.baseId=null!==(t=e.baseId)&&void 0!==t?t:(0,fA.normalizeId)(null==r?void 0:r[e.schemaId||"$id"]),this.schemaPath=e.schemaPath,this.localRefs=e.localRefs,this.meta=e.meta,this.$async=null==r?void 0:r.$async,this.refs={}}};function vA(e){const t=gA.call(this,e);if(t)return t;const r=(0,fA.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:n,lines:o}=this.opts.code,{ownProperties:a}=this.opts,i=new uA.CodeGen(this.scope,{es5:n,lines:o,ownProperties:a});let s;e.$async&&(s=i.scopeValue("Error",{ref:cA.default,code:uA._`require("ajv/dist/runtime/validation_error").default`}));const l=i.scopeName("validate");e.validateName=l;const u={gen:i,allErrors:this.opts.allErrors,data:dA.default.data,parentData:dA.default.parentData,parentDataProperty:dA.default.parentDataProperty,dataNames:[dA.default.data],dataPathArr:[uA.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:i.scopeValue("schema",!0===this.opts.code.source?{ref:e.schema,code:(0,uA.stringify)(e.schema)}:{ref:e.schema}),validateName:l,ValidationError:s,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:uA.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:uA._`""`,opts:this.opts,self:this};let c;try{this._compilations.add(e),(0,mA.validateFunctionCode)(u),i.optimize(this.opts.code.optimize);const t=i.toString();c=`${i.scopeRefs(dA.default.scope)}return ${t}`,this.opts.code.process&&(c=this.opts.code.process(c,e));const r=new Function(`${dA.default.self}`,`${dA.default.scope}`,c)(this,this.scope.get());if(this.scope.value(l,{ref:r}),r.errors=null,r.schema=e.schema,r.schemaEnv=e,e.$async&&(r.$async=!0),!0===this.opts.code.source&&(r.source={validateName:l,validateCode:t,scopeValues:i._values}),this.opts.unevaluated){const{props:e,items:t}=u;r.evaluated={props:e instanceof uA.Name?void 0:e,items:t instanceof uA.Name?void 0:t,dynamicProps:e instanceof uA.Name,dynamicItems:t instanceof uA.Name},r.source&&(r.source.evaluated=(0,uA.stringify)(r.evaluated))}return e.validate=r,e}catch(t){throw delete e.validate,delete e.validateName,c&&this.logger.error("Error compiling schema, function code:",c),t}finally{this._compilations.delete(e)}}function yA(e){return(0,fA.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:vA.call(this,e)}function gA(e){for(const n of this._compilations)if(r=e,(t=n).schema===r.schema&&t.root===r.root&&t.baseId===r.baseId)return n;var t,r}function bA(e,t){let r;for(;"string"==typeof(r=this.refs[t]);)t=r;return r||this.schemas[t]||wA.call(this,e,t)}function wA(e,t){const r=this.opts.uriResolver.parse(t),n=(0,fA._getFullPath)(this.opts.uriResolver,r);let o=(0,fA.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&n===o)return xA.call(this,r,e);const a=(0,fA.normalizeId)(n),i=this.refs[a]||this.schemas[a];if("string"==typeof i){const t=wA.call(this,e,i);if("object"!=typeof(null==t?void 0:t.schema))return;return xA.call(this,r,t)}if("object"==typeof(null==i?void 0:i.schema)){if(i.validate||vA.call(this,i),a===(0,fA.normalizeId)(t)){const{schema:t}=i,{schemaId:r}=this.opts,n=t[r];return n&&(o=(0,fA.resolveUrl)(this.opts.uriResolver,o,n)),new hA({schema:t,schemaId:r,root:e,baseId:o})}return xA.call(this,r,i)}}lA.SchemaEnv=hA,lA.compileSchema=vA,lA.resolveRef=function(e,t,r){var n;r=(0,fA.resolveUrl)(this.opts.uriResolver,t,r);const o=e.refs[r];if(o)return o;let a=bA.call(this,e,r);if(void 0===a){const o=null===(n=e.localRefs)||void 0===n?void 0:n[r],{schemaId:i}=this.opts;o&&(a=new hA({schema:o,schemaId:i,root:e,baseId:t}))}return void 0!==a?e.refs[r]=yA.call(this,a):void 0},lA.getCompilingSchema=gA,lA.resolveSchema=wA;const SA=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function xA(e,{baseId:t,schema:r,root:n}){var o;if("/"!==(null===(o=e.fragment)||void 0===o?void 0:o[0]))return;for(const n of e.fragment.slice(1).split("/")){if("boolean"==typeof r)return;const e=r[(0,pA.unescapeFragment)(n)];if(void 0===e)return;const o="object"==typeof(r=e)&&r[this.opts.schemaId];!SA.has(n)&&o&&(t=(0,fA.resolveUrl)(this.opts.uriResolver,t,o))}let a;if("boolean"!=typeof r&&r.$ref&&!(0,pA.schemaHasRulesButRef)(r,this.RULES)){const e=(0,fA.resolveUrl)(this.opts.uriResolver,t,r.$ref);a=wA.call(this,n,e)}const{schemaId:i}=this.opts;return a=a||new hA({schema:r,schemaId:i,root:n,baseId:t}),a.schema!==a.root.schema?a:void 0}var $A={$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON AnySchema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1},kA={},_A={};
|
|
25
|
-
/** @license URI.js v4.4.1 (c) 2011 Gary Court. License: http://github.com/garycourt/uri-js */
|
|
26
|
-
!function(e,t){!function(e){function t(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];if(t.length>1){t[0]=t[0].slice(0,-1);for(var n=t.length-1,o=1;o<n;++o)t[o]=t[o].slice(1,-1);return t[n]=t[n].slice(1),t.join("")}return t[0]}function r(e){return"(?:"+e+")"}function n(e){return void 0===e?"undefined":null===e?"null":Object.prototype.toString.call(e).split(" ").pop().split("]").shift().toLowerCase()}function o(e){return e.toUpperCase()}function a(e){return null!=e?e instanceof Array?e:"number"!=typeof e.length||e.split||e.setInterval||e.call?[e]:Array.prototype.slice.call(e):[]}function i(e,t){var r=e;if(t)for(var n in t)r[n]=t[n];return r}function s(e){var n="[A-Za-z]",o="[0-9]",a=t(o,"[A-Fa-f]"),i=r(r("%[EFef]"+a+"%"+a+a+"%"+a+a)+"|"+r("%[89A-Fa-f]"+a+"%"+a+a)+"|"+r("%"+a+a)),s="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",l=t("[\\:\\/\\?\\#\\[\\]\\@]",s),u=e?"[\\uE000-\\uF8FF]":"[]",c=t(n,o,"[\\-\\.\\_\\~]",e?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]");r(n+t(n,o,"[\\+\\-\\.]")+"*"),r(r(i+"|"+t(c,s,"[\\:]"))+"*");var d=r(r("25[0-5]")+"|"+r("2[0-4]"+o)+"|"+r("1"+o+o)+"|"+r("0?[1-9]"+o)+"|0?0?"+o),f=r(d+"\\."+d+"\\."+d+"\\."+d),p=r(a+"{1,4}"),m=r(r(p+"\\:"+p)+"|"+f),h=r(r(p+"\\:")+"{6}"+m),v=r("\\:\\:"+r(p+"\\:")+"{5}"+m),y=r(r(p)+"?\\:\\:"+r(p+"\\:")+"{4}"+m),g=r(r(r(p+"\\:")+"{0,1}"+p)+"?\\:\\:"+r(p+"\\:")+"{3}"+m),b=r(r(r(p+"\\:")+"{0,2}"+p)+"?\\:\\:"+r(p+"\\:")+"{2}"+m),w=r(r(r(p+"\\:")+"{0,3}"+p)+"?\\:\\:"+p+"\\:"+m),S=r(r(r(p+"\\:")+"{0,4}"+p)+"?\\:\\:"+m),x=r(r(r(p+"\\:")+"{0,5}"+p)+"?\\:\\:"+p),$=r(r(r(p+"\\:")+"{0,6}"+p)+"?\\:\\:"),k=r([h,v,y,g,b,w,S,x,$].join("|")),_=r(r(c+"|"+i)+"+");r("[vV]"+a+"+\\."+t(c,s,"[\\:]")+"+"),r(r(i+"|"+t(c,s))+"*");var E=r(i+"|"+t(c,s,"[\\:\\@]"));return r(r(i+"|"+t(c,s,"[\\@]"))+"+"),r(r(E+"|"+t("[\\/\\?]",u))+"*"),{NOT_SCHEME:new RegExp(t("[^]",n,o,"[\\+\\-\\.]"),"g"),NOT_USERINFO:new RegExp(t("[^\\%\\:]",c,s),"g"),NOT_HOST:new RegExp(t("[^\\%\\[\\]\\:]",c,s),"g"),NOT_PATH:new RegExp(t("[^\\%\\/\\:\\@]",c,s),"g"),NOT_PATH_NOSCHEME:new RegExp(t("[^\\%\\/\\@]",c,s),"g"),NOT_QUERY:new RegExp(t("[^\\%]",c,s,"[\\:\\@\\/\\?]",u),"g"),NOT_FRAGMENT:new RegExp(t("[^\\%]",c,s,"[\\:\\@\\/\\?]"),"g"),ESCAPE:new RegExp(t("[^]",c,s),"g"),UNRESERVED:new RegExp(c,"g"),OTHER_CHARS:new RegExp(t("[^\\%]",c,l),"g"),PCT_ENCODED:new RegExp(i,"g"),IPV4ADDRESS:new RegExp("^("+f+")$"),IPV6ADDRESS:new RegExp("^\\[?("+k+")"+r(r("\\%25|\\%(?!"+a+"{2})")+"("+_+")")+"?\\]?$")}}var l=s(!1),u=s(!0),c=function(){function e(e,t){var r=[],n=!0,o=!1,a=void 0;try{for(var i,s=e[Symbol.iterator]();!(n=(i=s.next()).done)&&(r.push(i.value),!t||r.length!==t);n=!0);}catch(e){o=!0,a=e}finally{try{!n&&s.return&&s.return()}finally{if(o)throw a}}return r}return function(t,r){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),d=function(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}return Array.from(e)},f=2147483647,p=36,m=1,h=26,v=38,y=700,g=72,b=128,w="-",S=/^xn--/,x=/[^\0-\x7E]/,$=/[\x2E\u3002\uFF0E\uFF61]/g,k={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},_=p-m,E=Math.floor,C=String.fromCharCode;function P(e){throw new RangeError(k[e])}function j(e,t){for(var r=[],n=e.length;n--;)r[n]=t(e[n]);return r}function O(e,t){var r=e.split("@"),n="";return r.length>1&&(n=r[0]+"@",e=r[1]),n+j((e=e.replace($,".")).split("."),t).join(".")}function N(e){for(var t=[],r=0,n=e.length;r<n;){var o=e.charCodeAt(r++);if(o>=55296&&o<=56319&&r<n){var a=e.charCodeAt(r++);56320==(64512&a)?t.push(((1023&o)<<10)+(1023&a)+65536):(t.push(o),r--)}else t.push(o)}return t}var R=function(e){return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:p},T=function(e,t){return e+22+75*(e<26)-((0!=t)<<5)},A=function(e,t,r){var n=0;for(e=r?E(e/y):e>>1,e+=E(e/t);e>_*h>>1;n+=p)e=E(e/_);return E(n+(_+1)*e/(e+v))},I=function(e){var t=[],r=e.length,n=0,o=b,a=g,i=e.lastIndexOf(w);i<0&&(i=0);for(var s=0;s<i;++s)e.charCodeAt(s)>=128&&P("not-basic"),t.push(e.charCodeAt(s));for(var l=i>0?i+1:0;l<r;){for(var u=n,c=1,d=p;;d+=p){l>=r&&P("invalid-input");var v=R(e.charCodeAt(l++));(v>=p||v>E((f-n)/c))&&P("overflow"),n+=v*c;var y=d<=a?m:d>=a+h?h:d-a;if(v<y)break;var S=p-y;c>E(f/S)&&P("overflow"),c*=S}var x=t.length+1;a=A(n-u,x,0==u),E(n/x)>f-o&&P("overflow"),o+=E(n/x),n%=x,t.splice(n++,0,o)}return String.fromCodePoint.apply(String,t)},M=function(e){var t=[],r=(e=N(e)).length,n=b,o=0,a=g,i=!0,s=!1,l=void 0;try{for(var u,c=e[Symbol.iterator]();!(i=(u=c.next()).done);i=!0){var d=u.value;d<128&&t.push(C(d))}}catch(e){s=!0,l=e}finally{try{!i&&c.return&&c.return()}finally{if(s)throw l}}var v=t.length,y=v;for(v&&t.push(w);y<r;){var S=f,x=!0,$=!1,k=void 0;try{for(var _,j=e[Symbol.iterator]();!(x=(_=j.next()).done);x=!0){var O=_.value;O>=n&&O<S&&(S=O)}}catch(e){$=!0,k=e}finally{try{!x&&j.return&&j.return()}finally{if($)throw k}}var R=y+1;S-n>E((f-o)/R)&&P("overflow"),o+=(S-n)*R,n=S;var I=!0,M=!1,F=void 0;try{for(var D,z=e[Symbol.iterator]();!(I=(D=z.next()).done);I=!0){var L=D.value;if(L<n&&++o>f&&P("overflow"),L==n){for(var B=o,V=p;;V+=p){var U=V<=a?m:V>=a+h?h:V-a;if(B<U)break;var W=B-U,q=p-U;t.push(C(T(U+W%q,0))),B=E(W/q)}t.push(C(T(B,0))),a=A(o,R,y==v),o=0,++y}}}catch(e){M=!0,F=e}finally{try{!I&&z.return&&z.return()}finally{if(M)throw F}}++o,++n}return t.join("")},F=function(e){return O(e,(function(e){return S.test(e)?I(e.slice(4).toLowerCase()):e}))},D=function(e){return O(e,(function(e){return x.test(e)?"xn--"+M(e):e}))},z={version:"2.1.0",ucs2:{decode:N,encode:function(e){return String.fromCodePoint.apply(String,d(e))}},decode:I,encode:M,toASCII:D,toUnicode:F},L={};function B(e){var t=e.charCodeAt(0);return t<16?"%0"+t.toString(16).toUpperCase():t<128?"%"+t.toString(16).toUpperCase():t<2048?"%"+(t>>6|192).toString(16).toUpperCase()+"%"+(63&t|128).toString(16).toUpperCase():"%"+(t>>12|224).toString(16).toUpperCase()+"%"+(t>>6&63|128).toString(16).toUpperCase()+"%"+(63&t|128).toString(16).toUpperCase()}function V(e){for(var t="",r=0,n=e.length;r<n;){var o=parseInt(e.substr(r+1,2),16);if(o<128)t+=String.fromCharCode(o),r+=3;else if(o>=194&&o<224){if(n-r>=6){var a=parseInt(e.substr(r+4,2),16);t+=String.fromCharCode((31&o)<<6|63&a)}else t+=e.substr(r,6);r+=6}else if(o>=224){if(n-r>=9){var i=parseInt(e.substr(r+4,2),16),s=parseInt(e.substr(r+7,2),16);t+=String.fromCharCode((15&o)<<12|(63&i)<<6|63&s)}else t+=e.substr(r,9);r+=9}else t+=e.substr(r,3),r+=3}return t}function U(e,t){function r(e){var r=V(e);return r.match(t.UNRESERVED)?r:e}return e.scheme&&(e.scheme=String(e.scheme).replace(t.PCT_ENCODED,r).toLowerCase().replace(t.NOT_SCHEME,"")),void 0!==e.userinfo&&(e.userinfo=String(e.userinfo).replace(t.PCT_ENCODED,r).replace(t.NOT_USERINFO,B).replace(t.PCT_ENCODED,o)),void 0!==e.host&&(e.host=String(e.host).replace(t.PCT_ENCODED,r).toLowerCase().replace(t.NOT_HOST,B).replace(t.PCT_ENCODED,o)),void 0!==e.path&&(e.path=String(e.path).replace(t.PCT_ENCODED,r).replace(e.scheme?t.NOT_PATH:t.NOT_PATH_NOSCHEME,B).replace(t.PCT_ENCODED,o)),void 0!==e.query&&(e.query=String(e.query).replace(t.PCT_ENCODED,r).replace(t.NOT_QUERY,B).replace(t.PCT_ENCODED,o)),void 0!==e.fragment&&(e.fragment=String(e.fragment).replace(t.PCT_ENCODED,r).replace(t.NOT_FRAGMENT,B).replace(t.PCT_ENCODED,o)),e}function W(e){return e.replace(/^0*(.*)/,"$1")||"0"}function q(e,t){var r=e.match(t.IPV4ADDRESS)||[],n=c(r,2)[1];return n?n.split(".").map(W).join("."):e}function K(e,t){var r=e.match(t.IPV6ADDRESS)||[],n=c(r,3),o=n[1],a=n[2];if(o){for(var i=o.toLowerCase().split("::").reverse(),s=c(i,2),l=s[0],u=s[1],d=u?u.split(":").map(W):[],f=l.split(":").map(W),p=t.IPV4ADDRESS.test(f[f.length-1]),m=p?7:8,h=f.length-m,v=Array(m),y=0;y<m;++y)v[y]=d[y]||f[h+y]||"";p&&(v[m-1]=q(v[m-1],t));var g=v.reduce((function(e,t,r){if(!t||"0"===t){var n=e[e.length-1];n&&n.index+n.length===r?n.length++:e.push({index:r,length:1})}return e}),[]),b=g.sort((function(e,t){return t.length-e.length}))[0],w=void 0;if(b&&b.length>1){var S=v.slice(0,b.index),x=v.slice(b.index+b.length);w=S.join(":")+"::"+x.join(":")}else w=v.join(":");return a&&(w+="%"+a),w}return e}var H=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,G=void 0==="".match(/(){0}/)[1];function Q(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={},n=!1!==t.iri?u:l;"suffix"===t.reference&&(e=(t.scheme?t.scheme+":":"")+"//"+e);var o=e.match(H);if(o){G?(r.scheme=o[1],r.userinfo=o[3],r.host=o[4],r.port=parseInt(o[5],10),r.path=o[6]||"",r.query=o[7],r.fragment=o[8],isNaN(r.port)&&(r.port=o[5])):(r.scheme=o[1]||void 0,r.userinfo=-1!==e.indexOf("@")?o[3]:void 0,r.host=-1!==e.indexOf("//")?o[4]:void 0,r.port=parseInt(o[5],10),r.path=o[6]||"",r.query=-1!==e.indexOf("?")?o[7]:void 0,r.fragment=-1!==e.indexOf("#")?o[8]:void 0,isNaN(r.port)&&(r.port=e.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?o[4]:void 0)),r.host&&(r.host=K(q(r.host,n),n)),void 0!==r.scheme||void 0!==r.userinfo||void 0!==r.host||void 0!==r.port||r.path||void 0!==r.query?void 0===r.scheme?r.reference="relative":void 0===r.fragment?r.reference="absolute":r.reference="uri":r.reference="same-document",t.reference&&"suffix"!==t.reference&&t.reference!==r.reference&&(r.error=r.error||"URI is not a "+t.reference+" reference.");var a=L[(t.scheme||r.scheme||"").toLowerCase()];if(t.unicodeSupport||a&&a.unicodeSupport)U(r,n);else{if(r.host&&(t.domainHost||a&&a.domainHost))try{r.host=z.toASCII(r.host.replace(n.PCT_ENCODED,V).toLowerCase())}catch(e){r.error=r.error||"Host's domain name can not be converted to ASCII via punycode: "+e}U(r,l)}a&&a.parse&&a.parse(r,t)}else r.error=r.error||"URI can not be parsed.";return r}function X(e,t){var r=!1!==t.iri?u:l,n=[];return void 0!==e.userinfo&&(n.push(e.userinfo),n.push("@")),void 0!==e.host&&n.push(K(q(String(e.host),r),r).replace(r.IPV6ADDRESS,(function(e,t,r){return"["+t+(r?"%25"+r:"")+"]"}))),"number"!=typeof e.port&&"string"!=typeof e.port||(n.push(":"),n.push(String(e.port))),n.length?n.join(""):void 0}var Y=/^\.\.?\//,J=/^\/\.(\/|$)/,Z=/^\/\.\.(\/|$)/,ee=/^\/?(?:.|\n)*?(?=\/|$)/;function te(e){for(var t=[];e.length;)if(e.match(Y))e=e.replace(Y,"");else if(e.match(J))e=e.replace(J,"/");else if(e.match(Z))e=e.replace(Z,"/"),t.pop();else if("."===e||".."===e)e="";else{var r=e.match(ee);if(!r)throw new Error("Unexpected dot segment condition");var n=r[0];e=e.slice(n.length),t.push(n)}return t.join("")}function re(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.iri?u:l,n=[],o=L[(t.scheme||e.scheme||"").toLowerCase()];if(o&&o.serialize&&o.serialize(e,t),e.host)if(r.IPV6ADDRESS.test(e.host));else if(t.domainHost||o&&o.domainHost)try{e.host=t.iri?z.toUnicode(e.host):z.toASCII(e.host.replace(r.PCT_ENCODED,V).toLowerCase())}catch(r){e.error=e.error||"Host's domain name can not be converted to "+(t.iri?"Unicode":"ASCII")+" via punycode: "+r}U(e,r),"suffix"!==t.reference&&e.scheme&&(n.push(e.scheme),n.push(":"));var a=X(e,t);if(void 0!==a&&("suffix"!==t.reference&&n.push("//"),n.push(a),e.path&&"/"!==e.path.charAt(0)&&n.push("/")),void 0!==e.path){var i=e.path;t.absolutePath||o&&o.absolutePath||(i=te(i)),void 0===a&&(i=i.replace(/^\/\//,"/%2F")),n.push(i)}return void 0!==e.query&&(n.push("?"),n.push(e.query)),void 0!==e.fragment&&(n.push("#"),n.push(e.fragment)),n.join("")}function ne(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n={};return arguments[3]||(e=Q(re(e,r),r),t=Q(re(t,r),r)),!(r=r||{}).tolerant&&t.scheme?(n.scheme=t.scheme,n.userinfo=t.userinfo,n.host=t.host,n.port=t.port,n.path=te(t.path||""),n.query=t.query):(void 0!==t.userinfo||void 0!==t.host||void 0!==t.port?(n.userinfo=t.userinfo,n.host=t.host,n.port=t.port,n.path=te(t.path||""),n.query=t.query):(t.path?("/"===t.path.charAt(0)?n.path=te(t.path):(void 0===e.userinfo&&void 0===e.host&&void 0===e.port||e.path?e.path?n.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+t.path:n.path=t.path:n.path="/"+t.path,n.path=te(n.path)),n.query=t.query):(n.path=e.path,void 0!==t.query?n.query=t.query:n.query=e.query),n.userinfo=e.userinfo,n.host=e.host,n.port=e.port),n.scheme=e.scheme),n.fragment=t.fragment,n}function oe(e,t,r){var n=i({scheme:"null"},r);return re(ne(Q(e,n),Q(t,n),n,!0),n)}function ae(e,t){return"string"==typeof e?e=re(Q(e,t),t):"object"===n(e)&&(e=Q(re(e,t),t)),e}function ie(e,t,r){return"string"==typeof e?e=re(Q(e,r),r):"object"===n(e)&&(e=re(e,r)),"string"==typeof t?t=re(Q(t,r),r):"object"===n(t)&&(t=re(t,r)),e===t}function se(e,t){return e&&e.toString().replace(t&&t.iri?u.ESCAPE:l.ESCAPE,B)}function le(e,t){return e&&e.toString().replace(t&&t.iri?u.PCT_ENCODED:l.PCT_ENCODED,V)}var ue={scheme:"http",domainHost:!0,parse:function(e,t){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e},serialize:function(e,t){var r="https"===String(e.scheme).toLowerCase();return e.port!==(r?443:80)&&""!==e.port||(e.port=void 0),e.path||(e.path="/"),e}},ce={scheme:"https",domainHost:ue.domainHost,parse:ue.parse,serialize:ue.serialize};function de(e){return"boolean"==typeof e.secure?e.secure:"wss"===String(e.scheme).toLowerCase()}var fe={scheme:"ws",domainHost:!0,parse:function(e,t){var r=e;return r.secure=de(r),r.resourceName=(r.path||"/")+(r.query?"?"+r.query:""),r.path=void 0,r.query=void 0,r},serialize:function(e,t){if(e.port!==(de(e)?443:80)&&""!==e.port||(e.port=void 0),"boolean"==typeof e.secure&&(e.scheme=e.secure?"wss":"ws",e.secure=void 0),e.resourceName){var r=e.resourceName.split("?"),n=c(r,2),o=n[0],a=n[1];e.path=o&&"/"!==o?o:void 0,e.query=a,e.resourceName=void 0}return e.fragment=void 0,e}},pe={scheme:"wss",domainHost:fe.domainHost,parse:fe.parse,serialize:fe.serialize},me={},he="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",ve="[0-9A-Fa-f]",ye=r(r("%[EFef]"+ve+"%"+ve+ve+"%"+ve+ve)+"|"+r("%[89A-Fa-f]"+ve+"%"+ve+ve)+"|"+r("%"+ve+ve)),ge="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",be=t("[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",'[\\"\\\\]'),we="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",Se=new RegExp(he,"g"),xe=new RegExp(ye,"g"),$e=new RegExp(t("[^]",ge,"[\\.]",'[\\"]',be),"g"),ke=new RegExp(t("[^]",he,we),"g"),_e=ke;function Ee(e){var t=V(e);return t.match(Se)?t:e}var Ce={scheme:"mailto",parse:function(e,t){var r=e,n=r.to=r.path?r.path.split(","):[];if(r.path=void 0,r.query){for(var o=!1,a={},i=r.query.split("&"),s=0,l=i.length;s<l;++s){var u=i[s].split("=");switch(u[0]){case"to":for(var c=u[1].split(","),d=0,f=c.length;d<f;++d)n.push(c[d]);break;case"subject":r.subject=le(u[1],t);break;case"body":r.body=le(u[1],t);break;default:o=!0,a[le(u[0],t)]=le(u[1],t)}}o&&(r.headers=a)}r.query=void 0;for(var p=0,m=n.length;p<m;++p){var h=n[p].split("@");if(h[0]=le(h[0]),t.unicodeSupport)h[1]=le(h[1],t).toLowerCase();else try{h[1]=z.toASCII(le(h[1],t).toLowerCase())}catch(e){r.error=r.error||"Email address's domain name can not be converted to ASCII via punycode: "+e}n[p]=h.join("@")}return r},serialize:function(e,t){var r=e,n=a(e.to);if(n){for(var i=0,s=n.length;i<s;++i){var l=String(n[i]),u=l.lastIndexOf("@"),c=l.slice(0,u).replace(xe,Ee).replace(xe,o).replace($e,B),d=l.slice(u+1);try{d=t.iri?z.toUnicode(d):z.toASCII(le(d,t).toLowerCase())}catch(e){r.error=r.error||"Email address's domain name can not be converted to "+(t.iri?"Unicode":"ASCII")+" via punycode: "+e}n[i]=c+"@"+d}r.path=n.join(",")}var f=e.headers=e.headers||{};e.subject&&(f.subject=e.subject),e.body&&(f.body=e.body);var p=[];for(var m in f)f[m]!==me[m]&&p.push(m.replace(xe,Ee).replace(xe,o).replace(ke,B)+"="+f[m].replace(xe,Ee).replace(xe,o).replace(_e,B));return p.length&&(r.query=p.join("&")),r}},Pe=/^([^\:]+)\:(.*)/,je={scheme:"urn",parse:function(e,t){var r=e.path&&e.path.match(Pe),n=e;if(r){var o=t.scheme||n.scheme||"urn",a=r[1].toLowerCase(),i=r[2],s=o+":"+(t.nid||a),l=L[s];n.nid=a,n.nss=i,n.path=void 0,l&&(n=l.parse(n,t))}else n.error=n.error||"URN can not be parsed.";return n},serialize:function(e,t){var r=t.scheme||e.scheme||"urn",n=e.nid,o=r+":"+(t.nid||n),a=L[o];a&&(e=a.serialize(e,t));var i=e,s=e.nss;return i.path=(n||t.nid)+":"+s,i}},Oe=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/,Ne={scheme:"urn:uuid",parse:function(e,t){var r=e;return r.uuid=r.nss,r.nss=void 0,t.tolerant||r.uuid&&r.uuid.match(Oe)||(r.error=r.error||"UUID is not valid."),r},serialize:function(e,t){var r=e;return r.nss=(e.uuid||"").toLowerCase(),r}};L[ue.scheme]=ue,L[ce.scheme]=ce,L[fe.scheme]=fe,L[pe.scheme]=pe,L[Ce.scheme]=Ce,L[je.scheme]=je,L[Ne.scheme]=Ne,e.SCHEMES=L,e.pctEncChar=B,e.pctDecChars=V,e.parse=Q,e.removeDotSegments=te,e.serialize=re,e.resolveComponents=ne,e.resolve=oe,e.normalize=ae,e.equal=ie,e.escapeComponent=se,e.unescapeComponent=le,Object.defineProperty(e,"__esModule",{value:!0})}(t)}(0,_A),Object.defineProperty(kA,"__esModule",{value:!0});const EA=_A;EA.code='require("ajv/dist/runtime/uri").default',kA.default=EA,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=tA();Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return t.KeywordCxt}});var r=fT();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=oA(),o=sA(),a=ST,i=lA,s=fT(),l=MT,u=wT,c=pT,d=$A,f=kA,p=(e,t)=>new RegExp(e,t);p.code="new RegExp";const m=["removeAdditional","useDefaults","coerceTypes"],h=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),v={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."},y={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'};function g(e){var t,r,n,o,a,i,s,l,u,c,d,m,h,v,y,g,b,w,S,x,$,k,_,E,C;const P=e.strict,j=null===(t=e.code)||void 0===t?void 0:t.optimize,O=!0===j||void 0===j?1:j||0,N=null!==(n=null===(r=e.code)||void 0===r?void 0:r.regExp)&&void 0!==n?n:p,R=null!==(o=e.uriResolver)&&void 0!==o?o:f.default;return{strictSchema:null===(i=null!==(a=e.strictSchema)&&void 0!==a?a:P)||void 0===i||i,strictNumbers:null===(l=null!==(s=e.strictNumbers)&&void 0!==s?s:P)||void 0===l||l,strictTypes:null!==(c=null!==(u=e.strictTypes)&&void 0!==u?u:P)&&void 0!==c?c:"log",strictTuples:null!==(m=null!==(d=e.strictTuples)&&void 0!==d?d:P)&&void 0!==m?m:"log",strictRequired:null!==(v=null!==(h=e.strictRequired)&&void 0!==h?h:P)&&void 0!==v&&v,code:e.code?{...e.code,optimize:O,regExp:N}:{optimize:O,regExp:N},loopRequired:null!==(y=e.loopRequired)&&void 0!==y?y:200,loopEnum:null!==(g=e.loopEnum)&&void 0!==g?g:200,meta:null===(b=e.meta)||void 0===b||b,messages:null===(w=e.messages)||void 0===w||w,inlineRefs:null===(S=e.inlineRefs)||void 0===S||S,schemaId:null!==(x=e.schemaId)&&void 0!==x?x:"$id",addUsedSchema:null===($=e.addUsedSchema)||void 0===$||$,validateSchema:null===(k=e.validateSchema)||void 0===k||k,validateFormats:null===(_=e.validateFormats)||void 0===_||_,unicodeRegExp:null===(E=e.unicodeRegExp)||void 0===E||E,int32range:null===(C=e.int32range)||void 0===C||C,uriResolver:R}}class b{constructor(e={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,e=this.opts={...e,...g(e)};const{es5:t,lines:r}=this.opts.code;this.scope=new s.ValueScope({scope:{},prefixes:h,es5:t,lines:r}),this.logger=function(e){if(!1===e)return E;if(void 0===e)return console;if(e.log&&e.warn&&e.error)return e;throw new Error("logger must implement log, warn and error methods")}(e.logger);const n=e.validateFormats;e.validateFormats=!1,this.RULES=(0,a.getRules)(),w.call(this,v,e,"NOT SUPPORTED"),w.call(this,y,e,"DEPRECATED","warn"),this._metaOpts=_.call(this),e.formats&&$.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),e.keywords&&k.call(this,e.keywords),"object"==typeof e.meta&&this.addMetaSchema(e.meta),x.call(this),e.validateFormats=n}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:e,meta:t,schemaId:r}=this.opts;let n=d;"id"===r&&(n={...d},n.id=n.$id,delete n.$id),t&&e&&this.addMetaSchema(n,n[r],!1)}defaultMeta(){const{meta:e,schemaId:t}=this.opts;return this.opts.defaultMeta="object"==typeof e?e[t]||e:void 0}validate(e,t){let r;if("string"==typeof e){if(r=this.getSchema(e),!r)throw new Error(`no schema with key or ref "${e}"`)}else r=this.compile(e);const n=r(t);return"$async"in r||(this.errors=r.errors),n}compile(e,t){const r=this._addSchema(e,t);return r.validate||this._compileSchemaEnv(r)}compileAsync(e,t){if("function"!=typeof this.opts.loadSchema)throw new Error("options.loadSchema should be a function");const{loadSchema:r}=this.opts;return n.call(this,e,t);async function n(e,t){await a.call(this,e.$schema);const r=this._addSchema(e,t);return r.validate||i.call(this,r)}async function a(e){e&&!this.getSchema(e)&&await n.call(this,{$ref:e},!0)}async function i(e){try{return this._compileSchemaEnv(e)}catch(t){if(!(t instanceof o.default))throw t;return s.call(this,t),await l.call(this,t.missingSchema),i.call(this,e)}}function s({missingSchema:e,missingRef:t}){if(this.refs[e])throw new Error(`AnySchema ${e} is loaded but ${t} cannot be resolved`)}async function l(e){const r=await u.call(this,e);this.refs[e]||await a.call(this,r.$schema),this.refs[e]||this.addSchema(r,e,t)}async function u(e){const t=this._loading[e];if(t)return t;try{return await(this._loading[e]=r(e))}finally{delete this._loading[e]}}}addSchema(e,t,r,n=this.opts.validateSchema){if(Array.isArray(e)){for(const t of e)this.addSchema(t,void 0,r,n);return this}let o;if("object"==typeof e){const{schemaId:t}=this.opts;if(o=e[t],void 0!==o&&"string"!=typeof o)throw new Error(`schema ${t} must be string`)}return t=(0,l.normalizeId)(t||o),this._checkUnique(t),this.schemas[t]=this._addSchema(e,r,t,n,!0),this}addMetaSchema(e,t,r=this.opts.validateSchema){return this.addSchema(e,t,!0,r),this}validateSchema(e,t){if("boolean"==typeof e)return!0;let r;if(r=e.$schema,void 0!==r&&"string"!=typeof r)throw new Error("$schema must be a string");if(r=r||this.opts.defaultMeta||this.defaultMeta(),!r)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const n=this.validate(r,e);if(!n&&t){const e="schema is invalid: "+this.errorsText();if("log"!==this.opts.validateSchema)throw new Error(e);this.logger.error(e)}return n}getSchema(e){let t;for(;"string"==typeof(t=S.call(this,e));)e=t;if(void 0===t){const{schemaId:r}=this.opts,n=new i.SchemaEnv({schema:{},schemaId:r});if(t=i.resolveSchema.call(this,n,e),!t)return;this.refs[e]=t}return t.validate||this._compileSchemaEnv(t)}removeSchema(e){if(e instanceof RegExp)return this._removeAllSchemas(this.schemas,e),this._removeAllSchemas(this.refs,e),this;switch(typeof e){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const t=S.call(this,e);return"object"==typeof t&&this._cache.delete(t.schema),delete this.schemas[e],delete this.refs[e],this}case"object":{const t=e;this._cache.delete(t);let r=e[this.opts.schemaId];return r&&(r=(0,l.normalizeId)(r),delete this.schemas[r],delete this.refs[r]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(e){for(const t of e)this.addKeyword(t);return this}addKeyword(e,t){let r;if("string"==typeof e)r=e,"object"==typeof t&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),t.keyword=r);else{if("object"!=typeof e||void 0!==t)throw new Error("invalid addKeywords parameters");if(r=(t=e).keyword,Array.isArray(r)&&!r.length)throw new Error("addKeywords: keyword must be string or non-empty array")}if(P.call(this,r,t),!t)return(0,c.eachItem)(r,(e=>j.call(this,e))),this;N.call(this,t);const n={...t,type:(0,u.getJSONTypes)(t.type),schemaType:(0,u.getJSONTypes)(t.schemaType)};return(0,c.eachItem)(r,0===n.type.length?e=>j.call(this,e,n):e=>n.type.forEach((t=>j.call(this,e,n,t)))),this}getKeyword(e){const t=this.RULES.all[e];return"object"==typeof t?t.definition:!!t}removeKeyword(e){const{RULES:t}=this;delete t.keywords[e],delete t.all[e];for(const r of t.rules){const t=r.rules.findIndex((t=>t.keyword===e));t>=0&&r.rules.splice(t,1)}return this}addFormat(e,t){return"string"==typeof t&&(t=new RegExp(t)),this.formats[e]=t,this}errorsText(e=this.errors,{separator:t=", ",dataVar:r="data"}={}){return e&&0!==e.length?e.map((e=>`${r}${e.instancePath} ${e.message}`)).reduce(((e,r)=>e+t+r)):"No errors"}$dataMetaSchema(e,t){const r=this.RULES.all;e=JSON.parse(JSON.stringify(e));for(const n of t){const t=n.split("/").slice(1);let o=e;for(const e of t)o=o[e];for(const e in r){const t=r[e];if("object"!=typeof t)continue;const{$data:n}=t.definition,a=o[e];n&&a&&(o[e]=T(a))}}return e}_removeAllSchemas(e,t){for(const r in e){const n=e[r];t&&!t.test(r)||("string"==typeof n?delete e[r]:n&&!n.meta&&(this._cache.delete(n.schema),delete e[r]))}}_addSchema(e,t,r,n=this.opts.validateSchema,o=this.opts.addUsedSchema){let a;const{schemaId:s}=this.opts;if("object"==typeof e)a=e[s];else{if(this.opts.jtd)throw new Error("schema must be object");if("boolean"!=typeof e)throw new Error("schema must be object or boolean")}let u=this._cache.get(e);if(void 0!==u)return u;r=(0,l.normalizeId)(a||r);const c=l.getSchemaRefs.call(this,e,r);return u=new i.SchemaEnv({schema:e,schemaId:s,meta:t,baseId:r,localRefs:c}),this._cache.set(u.schema,u),o&&!r.startsWith("#")&&(r&&this._checkUnique(r),this.refs[r]=u),n&&this.validateSchema(e,!0),u}_checkUnique(e){if(this.schemas[e]||this.refs[e])throw new Error(`schema with key or id "${e}" already exists`)}_compileSchemaEnv(e){if(e.meta?this._compileMetaSchema(e):i.compileSchema.call(this,e),!e.validate)throw new Error("ajv implementation error");return e.validate}_compileMetaSchema(e){const t=this.opts;this.opts=this._metaOpts;try{i.compileSchema.call(this,e)}finally{this.opts=t}}}function w(e,t,r,n="error"){for(const o in e){const a=o;a in t&&this.logger[n](`${r}: option ${o}. ${e[a]}`)}}function S(e){return e=(0,l.normalizeId)(e),this.schemas[e]||this.refs[e]}function x(){const e=this.opts.schemas;if(e)if(Array.isArray(e))this.addSchema(e);else for(const t in e)this.addSchema(e[t],t)}function $(){for(const e in this.opts.formats){const t=this.opts.formats[e];t&&this.addFormat(e,t)}}function k(e){if(Array.isArray(e))this.addVocabulary(e);else{this.logger.warn("keywords option as map is deprecated, pass array");for(const t in e){const r=e[t];r.keyword||(r.keyword=t),this.addKeyword(r)}}}function _(){const e={...this.opts};for(const t of m)delete e[t];return e}e.default=b,b.ValidationError=n.default,b.MissingRefError=o.default;const E={log(){},warn(){},error(){}};const C=/^[a-z_$][a-z0-9_$:-]*$/i;function P(e,t){const{RULES:r}=this;if((0,c.eachItem)(e,(e=>{if(r.keywords[e])throw new Error(`Keyword ${e} is already defined`);if(!C.test(e))throw new Error(`Keyword ${e} has invalid name`)})),t&&t.$data&&!("code"in t)&&!("validate"in t))throw new Error('$data keyword must have "code" or "validate" function')}function j(e,t,r){var n;const o=null==t?void 0:t.post;if(r&&o)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:a}=this;let i=o?a.post:a.rules.find((({type:e})=>e===r));if(i||(i={type:r,rules:[]},a.rules.push(i)),a.keywords[e]=!0,!t)return;const s={keyword:e,definition:{...t,type:(0,u.getJSONTypes)(t.type),schemaType:(0,u.getJSONTypes)(t.schemaType)}};t.before?O.call(this,i,s,t.before):i.rules.push(s),a.all[e]=s,null===(n=t.implements)||void 0===n||n.forEach((e=>this.addKeyword(e)))}function O(e,t,r){const n=e.rules.findIndex((e=>e.keyword===r));n>=0?e.rules.splice(n,0,t):(e.rules.push(t),this.logger.warn(`rule ${r} is not defined`))}function N(e){let{metaSchema:t}=e;void 0!==t&&(e.$data&&this.opts.$data&&(t=T(t)),e.validateSchema=this.compile(t,!0))}const R={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function T(e){return{anyOf:[e,R]}}}(tT);var CA={},PA={},jA={};Object.defineProperty(jA,"__esModule",{value:!0});const OA={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};jA.default=OA;var NA={};Object.defineProperty(NA,"__esModule",{value:!0}),NA.callRef=NA.getValidate=void 0;const RA=sA(),TA=RT(),AA=fT(),IA=gT(),MA=lA,FA=pT,DA={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 function(){if(a===u)return LA(e,i,a,a.$async);const r=t.scopeValue("root",{ref:u});return LA(e,AA._`${r}.validate`,u,u.$async)}();const c=MA.resolveRef.call(l,u,o,r);if(void 0===c)throw new RA.default(n.opts.uriResolver,o,r);return c instanceof MA.SchemaEnv?function(t){const r=zA(e,t);LA(e,r,t,t.$async)}(c):function(n){const o=t.scopeValue("schema",!0===s.code.source?{ref:n,code:(0,AA.stringify)(n)}:{ref:n}),a=t.name("valid"),i=e.subschema({schema:n,dataTypes:[],schemaPath:AA.nil,topSchemaRef:o,errSchemaPath:r},a);e.mergeEvaluated(i),e.ok(a)}(c)}};function zA(e,t){const{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):AA._`${r.scopeValue("wrapper",{ref:t})}.validate`}function LA(e,t,r,n){const{gen:o,it:a}=e,{allErrors:i,schemaEnv:s,opts:l}=a,u=l.passContext?IA.default.this:AA.nil;function c(e){const t=AA._`${e}.errors`;o.assign(IA.default.vErrors,AA._`${IA.default.vErrors} === null ? ${t} : ${IA.default.vErrors}.concat(${t})`),o.assign(IA.default.errors,AA._`${IA.default.vErrors}.length`)}function d(e){var t;if(!a.opts.unevaluated)return;const n=null===(t=null==r?void 0:r.validate)||void 0===t?void 0:t.evaluated;if(!0!==a.props)if(n&&!n.dynamicProps)void 0!==n.props&&(a.props=FA.mergeEvaluated.props(o,n.props,a.props));else{const t=o.var("props",AA._`${e}.evaluated.props`);a.props=FA.mergeEvaluated.props(o,t,a.props,AA.Name)}if(!0!==a.items)if(n&&!n.dynamicItems)void 0!==n.items&&(a.items=FA.mergeEvaluated.items(o,n.items,a.items));else{const t=o.var("items",AA._`${e}.evaluated.items`);a.items=FA.mergeEvaluated.items(o,t,a.items,AA.Name)}}n?function(){if(!s.$async)throw new Error("async schema referenced by sync schema");const r=o.let("valid");o.try((()=>{o.code(AA._`await ${(0,TA.callValidateCode)(e,t,u)}`),d(t),i||o.assign(r,!0)}),(e=>{o.if(AA._`!(${e} instanceof ${a.ValidationError})`,(()=>o.throw(e))),c(e),i||o.assign(r,!1)})),e.ok(r)}():e.result((0,TA.callValidateCode)(e,t,u),(()=>d(t)),(()=>c(t)))}NA.getValidate=zA,NA.callRef=LA,NA.default=DA,Object.defineProperty(PA,"__esModule",{value:!0});const BA=NA,VA=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",jA.default,BA.default];PA.default=VA;var UA={},WA={};Object.defineProperty(WA,"__esModule",{value:!0});const qA=fT(),KA=qA.operators,HA={maximum:{okStr:"<=",ok:KA.LTE,fail:KA.GT},minimum:{okStr:">=",ok:KA.GTE,fail:KA.LT},exclusiveMaximum:{okStr:"<",ok:KA.LT,fail:KA.GTE},exclusiveMinimum:{okStr:">",ok:KA.GT,fail:KA.LTE}},GA={message:({keyword:e,schemaCode:t})=>qA.str`must be ${HA[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>qA._`{comparison: ${HA[e].okStr}, limit: ${t}}`},QA={keyword:Object.keys(HA),type:"number",schemaType:"number",$data:!0,error:GA,code(e){const{keyword:t,data:r,schemaCode:n}=e;e.fail$data(qA._`${r} ${HA[t].fail} ${n} || isNaN(${r})`)}};WA.default=QA;var XA={};Object.defineProperty(XA,"__esModule",{value:!0});const YA=fT(),JA={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:({schemaCode:e})=>YA.str`must be multiple of ${e}`,params:({schemaCode:e})=>YA._`{multipleOf: ${e}}`},code(e){const{gen:t,data:r,schemaCode:n,it:o}=e,a=o.opts.multipleOfPrecision,i=t.let("res"),s=a?YA._`Math.abs(Math.round(${i}) - ${i}) > 1e-${a}`:YA._`${i} !== parseInt(${i})`;e.fail$data(YA._`(${n} === 0 || (${i} = ${r}/${n}, ${s}))`)}};XA.default=JA;var ZA={},eI={};function tI(e){const t=e.length;let r,n=0,o=0;for(;o<t;)n++,r=e.charCodeAt(o++),r>=55296&&r<=56319&&o<t&&(r=e.charCodeAt(o),56320==(64512&r)&&o++);return n}Object.defineProperty(eI,"__esModule",{value:!0}),eI.default=tI,tI.code='require("ajv/dist/runtime/ucs2length").default',Object.defineProperty(ZA,"__esModule",{value:!0});const rI=fT(),nI=pT,oI=eI,aI={message({keyword:e,schemaCode:t}){const r="maxLength"===e?"more":"fewer";return rI.str`must NOT have ${r} than ${t} characters`},params:({schemaCode:e})=>rI._`{limit: ${e}}`},iI={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:aI,code(e){const{keyword:t,data:r,schemaCode:n,it:o}=e,a="maxLength"===t?rI.operators.GT:rI.operators.LT,i=!1===o.opts.unicode?rI._`${r}.length`:rI._`${(0,nI.useFunc)(e.gen,oI.default)}(${r})`;e.fail$data(rI._`${i} ${a} ${n}`)}};ZA.default=iI;var sI={};Object.defineProperty(sI,"__esModule",{value:!0});const lI=RT(),uI=fT(),cI={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:{message:({schemaCode:e})=>uI.str`must match pattern "${e}"`,params:({schemaCode:e})=>uI._`{pattern: ${e}}`},code(e){const{data:t,$data:r,schema:n,schemaCode:o,it:a}=e,i=a.opts.unicodeRegExp?"u":"",s=r?uI._`(new RegExp(${o}, ${i}))`:(0,lI.usePattern)(e,n);e.fail$data(uI._`!${s}.test(${t})`)}};sI.default=cI;var dI={};Object.defineProperty(dI,"__esModule",{value:!0});const fI=fT(),pI={message({keyword:e,schemaCode:t}){const r="maxProperties"===e?"more":"fewer";return fI.str`must NOT have ${r} than ${t} properties`},params:({schemaCode:e})=>fI._`{limit: ${e}}`},mI={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:pI,code(e){const{keyword:t,data:r,schemaCode:n}=e,o="maxProperties"===t?fI.operators.GT:fI.operators.LT;e.fail$data(fI._`Object.keys(${r}).length ${o} ${n}`)}};dI.default=mI;var hI={};Object.defineProperty(hI,"__esModule",{value:!0});const vI=RT(),yI=fT(),gI=pT,bI={keyword:"required",type:"object",schemaType:"array",$data:!0,error:{message:({params:{missingProperty:e}})=>yI.str`must have required property '${e}'`,params:({params:{missingProperty:e}})=>yI._`{missingProperty: ${e}}`},code(e){const{gen:t,schema:r,schemaCode:n,data:o,$data:a,it:i}=e,{opts:s}=i;if(!a&&0===r.length)return;const l=r.length>=s.loopRequired;if(i.allErrors?function(){if(l||a)e.block$data(yI.nil,u);else for(const t of r)(0,vI.checkReportMissingProp)(e,t)}():function(){const i=t.let("missing");if(l||a){const r=t.let("valid",!0);e.block$data(r,(()=>function(r,a){e.setParams({missingProperty:r}),t.forOf(r,n,(()=>{t.assign(a,(0,vI.propertyInData)(t,o,r,s.ownProperties)),t.if((0,yI.not)(a),(()=>{e.error(),t.break()}))}),yI.nil)}(i,r))),e.ok(r)}else t.if((0,vI.checkMissingProp)(e,r,i)),(0,vI.reportMissingProp)(e,i),t.else()}(),s.strictRequired){const t=e.parentSchema.properties,{definedProperties:n}=e.it;for(const e of r)if(void 0===(null==t?void 0:t[e])&&!n.has(e)){const t=`required property "${e}" is not defined at "${i.schemaEnv.baseId+i.errSchemaPath}" (strictRequired)`;(0,gI.checkStrictMode)(i,t,i.opts.strictRequired)}}function u(){t.forOf("prop",n,(r=>{e.setParams({missingProperty:r}),t.if((0,vI.noPropertyInData)(t,o,r,s.ownProperties),(()=>e.error()))}))}}};hI.default=bI;var wI={};Object.defineProperty(wI,"__esModule",{value:!0});const SI=fT(),xI={message({keyword:e,schemaCode:t}){const r="maxItems"===e?"more":"fewer";return SI.str`must NOT have ${r} than ${t} items`},params:({schemaCode:e})=>SI._`{limit: ${e}}`},$I={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:xI,code(e){const{keyword:t,data:r,schemaCode:n}=e,o="maxItems"===t?SI.operators.GT:SI.operators.LT;e.fail$data(SI._`${r}.length ${o} ${n}`)}};wI.default=$I;var kI={},_I={};Object.defineProperty(_I,"__esModule",{value:!0});const EI=FT;EI.code='require("ajv/dist/runtime/equal").default',_I.default=EI,Object.defineProperty(kI,"__esModule",{value:!0});const CI=wT,PI=fT(),jI=pT,OI=_I,NI={message:({params:{i:e,j:t}})=>PI.str`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>PI._`{i: ${e}, j: ${t}}`},RI={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:NI,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,CI.getSchemaTypes)(a.items):[];function c(n,o){const a=t.name("item"),i=(0,CI.checkDataTypes)(u,a,s.opts.strictNumbers,CI.DataType.Wrong),c=t.const("indices",PI._`{}`);t.for(PI._`;${n}--;`,(()=>{t.let(a,PI._`${r}[${n}]`),t.if(i,PI._`continue`),u.length>1&&t.if(PI._`typeof ${a} == "string"`,PI._`${a} += "_"`),t.if(PI._`typeof ${c}[${a}] == "number"`,(()=>{t.assign(o,PI._`${c}[${a}]`),e.error(),t.assign(l,!1).break()})).code(PI._`${c}[${a}] = ${n}`)}))}function d(n,o){const a=(0,jI.useFunc)(t,OI.default),i=t.name("outer");t.label(i).for(PI._`;${n}--;`,(()=>t.for(PI._`${o} = ${n}; ${o}--;`,(()=>t.if(PI._`${a}(${r}[${n}], ${r}[${o}])`,(()=>{e.error(),t.assign(l,!1).break(i)}))))))}e.block$data(l,(function(){const n=t.let("i",PI._`${r}.length`),o=t.let("j");e.setParams({i:n,j:o}),t.assign(l,!0),t.if(PI._`${n} > 1`,(()=>(u.length>0&&!u.some((e=>"object"===e||"array"===e))?c:d)(n,o)))}),PI._`${i} === false`),e.ok(l)}};kI.default=RI;var TI={};Object.defineProperty(TI,"__esModule",{value:!0});const AI=fT(),II=pT,MI=_I,FI={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:({schemaCode:e})=>AI._`{allowedValue: ${e}}`},code(e){const{gen:t,data:r,$data:n,schemaCode:o,schema:a}=e;n||a&&"object"==typeof a?e.fail$data(AI._`!${(0,II.useFunc)(t,MI.default)}(${r}, ${o})`):e.fail(AI._`${a} !== ${r}`)}};TI.default=FI;var DI={};Object.defineProperty(DI,"__esModule",{value:!0});const zI=fT(),LI=pT,BI=_I,VI={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:({schemaCode:e})=>zI._`{allowedValues: ${e}}`},code(e){const{gen:t,data:r,$data:n,schema:o,schemaCode:a,it:i}=e;if(!n&&0===o.length)throw new Error("enum must have non-empty array");const s=o.length>=i.opts.loopEnum;let l;const u=()=>null!=l?l:l=(0,LI.useFunc)(t,BI.default);let c;if(s||n)c=t.let("valid"),e.block$data(c,(function(){t.assign(c,!1),t.forOf("v",a,(e=>t.if(zI._`${u()}(${r}, ${e})`,(()=>t.assign(c,!0).break()))))}));else{if(!Array.isArray(o))throw new Error("ajv implementation error");const e=t.const("vSchema",a);c=(0,zI.or)(...o.map(((t,n)=>function(e,t){const n=o[t];return"object"==typeof n&&null!==n?zI._`${u()}(${r}, ${e}[${t}])`:zI._`${r} === ${n}`}(e,n))))}e.pass(c)}};DI.default=VI,Object.defineProperty(UA,"__esModule",{value:!0});const UI=XA,WI=ZA,qI=sI,KI=dI,HI=hI,GI=wI,QI=kI,XI=TI,YI=DI,JI=[WA.default,UI.default,WI.default,qI.default,KI.default,HI.default,GI.default,QI.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},XI.default,YI.default];UA.default=JI;var ZI={},eM={};Object.defineProperty(eM,"__esModule",{value:!0}),eM.validateAdditionalItems=void 0;const tM=fT(),rM=pT,nM={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:({params:{len:e}})=>tM.str`must NOT have more than ${e} items`,params:({params:{len:e}})=>tM._`{limit: ${e}}`},code(e){const{parentSchema:t,it:r}=e,{items:n}=t;Array.isArray(n)?oM(e,n):(0,rM.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas')}};function oM(e,t){const{gen:r,schema:n,data:o,keyword:a,it:i}=e;i.items=!0;const s=r.const("len",tM._`${o}.length`);if(!1===n)e.setParams({len:t.length}),e.pass(tM._`${s} <= ${t.length}`);else if("object"==typeof n&&!(0,rM.alwaysValidSchema)(i,n)){const n=r.var("valid",tM._`${s} <= ${t.length}`);r.if((0,tM.not)(n),(()=>function(n){r.forRange("i",t.length,s,(t=>{e.subschema({keyword:a,dataProp:t,dataPropType:rM.Type.Num},n),i.allErrors||r.if((0,tM.not)(n),(()=>r.break()))}))}(n))),e.ok(n)}}eM.validateAdditionalItems=oM,eM.default=nM;var aM={},iM={};Object.defineProperty(iM,"__esModule",{value:!0}),iM.validateTuple=void 0;const sM=fT(),lM=pT,uM=RT(),cM={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){const{schema:t,it:r}=e;if(Array.isArray(t))return dM(e,"additionalItems",t);r.items=!0,(0,lM.alwaysValidSchema)(r,t)||e.ok((0,uM.validateArray)(e))}};function dM(e,t,r=e.schema){const{gen:n,parentSchema:o,data:a,keyword:i,it:s}=e;!function(e){const{opts:n,errSchemaPath:o}=s,a=r.length,l=a===e.minItems&&(a===e.maxItems||!1===e[t]);if(n.strictTuples&&!l){const e=`"${i}" is ${a}-tuple, but minItems or maxItems/${t} are not specified or different at path "${o}"`;(0,lM.checkStrictMode)(s,e,n.strictTuples)}}(o),s.opts.unevaluated&&r.length&&!0!==s.items&&(s.items=lM.mergeEvaluated.items(n,r.length,s.items));const l=n.name("valid"),u=n.const("len",sM._`${a}.length`);r.forEach(((t,r)=>{(0,lM.alwaysValidSchema)(s,t)||(n.if(sM._`${u} > ${r}`,(()=>e.subschema({keyword:i,schemaProp:r,dataProp:r},l))),e.ok(l))}))}iM.validateTuple=dM,iM.default=cM,Object.defineProperty(aM,"__esModule",{value:!0});const fM=iM,pM={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,fM.validateTuple)(e,"items")};aM.default=pM;var mM={};Object.defineProperty(mM,"__esModule",{value:!0});const hM=fT(),vM=pT,yM=RT(),gM=eM,bM={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:({params:{len:e}})=>hM.str`must NOT have more than ${e} items`,params:({params:{len:e}})=>hM._`{limit: ${e}}`},code(e){const{schema:t,parentSchema:r,it:n}=e,{prefixItems:o}=r;n.items=!0,(0,vM.alwaysValidSchema)(n,t)||(o?(0,gM.validateAdditionalItems)(e,o):e.ok((0,yM.validateArray)(e)))}};mM.default=bM;var wM={};Object.defineProperty(wM,"__esModule",{value:!0});const SM=fT(),xM=pT,$M={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:{message:({params:{min:e,max:t}})=>void 0===t?SM.str`must contain at least ${e} valid item(s)`:SM.str`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>void 0===t?SM._`{minContains: ${e}}`:SM._`{minContains: ${e}, maxContains: ${t}}`},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=void 0===l?1:l,s=u):i=1;const c=t.const("len",SM._`${o}.length`);if(e.setParams({min:i,max:s}),void 0===s&&0===i)return void(0,xM.checkStrictMode)(a,'"minContains" == 0 without "maxContains": "contains" keyword ignored');if(void 0!==s&&i>s)return(0,xM.checkStrictMode)(a,'"minContains" > "maxContains" is always invalid'),void e.fail();if((0,xM.alwaysValidSchema)(a,r)){let t=SM._`${c} >= ${i}`;return void 0!==s&&(t=SM._`${t} && ${c} <= ${s}`),void e.pass(t)}a.items=!0;const d=t.name("valid");function f(){const e=t.name("_valid"),r=t.let("count",0);p(e,(()=>t.if(e,(()=>function(e){t.code(SM._`${e}++`),void 0===s?t.if(SM._`${e} >= ${i}`,(()=>t.assign(d,!0).break())):(t.if(SM._`${e} > ${s}`,(()=>t.assign(d,!1).break())),1===i?t.assign(d,!0):t.if(SM._`${e} >= ${i}`,(()=>t.assign(d,!0))))}(r)))))}function p(r,n){t.forRange("i",0,c,(t=>{e.subschema({keyword:"contains",dataProp:t,dataPropType:xM.Type.Num,compositeRule:!0},r),n()}))}void 0===s&&1===i?p(d,(()=>t.if(d,(()=>t.break())))):0===i?(t.let(d,!0),void 0!==s&&t.if(SM._`${o}.length > 0`,f)):(t.let(d,!1),f()),e.result(d,(()=>e.reset()))}};wM.default=$M;var kM={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0;const t=fT(),r=pT,n=RT();e.error={message:({params:{property:e,depsCount:r,deps:n}})=>{const o=1===r?"property":"properties";return t.str`must have ${o} ${n} when property ${e} is present`},params:({params:{property:e,depsCount:r,deps:n,missingProperty:o}})=>t._`{property: ${e},
|
|
47
|
+
|| ${s} === "boolean" || ${a} === null`).assign(u,o._`[${a}]`)}}n.else(),f(e),n.endIf(),n.if(o._`${u} !== undefined`,(()=>{n.assign(a,u),function({gen:e,parentData:t,parentDataProperty:r},n){e.if(o._`${t} !== undefined`,(()=>e.assign(o._`${t}[${r}]`,n)))}(e,u)}))}(e,t,u):f(e)}))}return d};const l=new Set(["string","number","integer","boolean","null"]);function u(e,t,r,n=i.Correct){const a=n===i.Correct?o.operators.EQ:o.operators.NEQ;let s;switch(e){case"null":return o._`${t} ${a} null`;case"array":s=o._`Array.isArray(${t})`;break;case"object":s=o._`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":s=l(o._`!(${t} % 1) && !isNaN(${t})`);break;case"number":s=l();break;default:return o._`typeof ${t} ${a} ${e}`}return n===i.Correct?s:(0,o.not)(s);function l(e=o.nil){return(0,o.and)(o._`typeof ${t} == "number"`,e,r?o._`isFinite(${t})`:o.nil)}}function c(e,t,r,n){if(1===e.length)return u(e[0],t,r,n);let i;const s=(0,a.toHash)(e);if(s.array&&s.object){const e=o._`typeof ${t} != "object"`;i=s.null?e:o._`!${t} || ${e}`,delete s.null,delete s.array,delete s.object}else i=o.nil;s.number&&delete s.integer;for(const e in s)i=(0,o.and)(i,u(e,t,r,n));return i}e.checkDataType=u,e.checkDataTypes=c;const d={message:({schema:e})=>`must be ${e}`,params:({schema:e,schemaValue:t})=>"string"==typeof e?o._`{type: ${e}}`:o._`{type: ${t}}`};function f(e){const t=function(e){const{gen:t,data:r,schema:n}=e,o=(0,a.schemaRefOrVal)(e,n,"type");return{gen:t,keyword:"type",data:r,schema:n.type,schemaCode:o,schemaValue:o,parentSchema:n,params:{},it:e}}(e);(0,n.reportError)(t,d)}e.reportTypeError=f}(SO);var jO,CO={};var OO,PO,NO={},RO={};function TO(){if(OO)return RO;OO=1,Object.defineProperty(RO,"__esModule",{value:!0}),RO.validateUnion=RO.validateArray=RO.usePattern=RO.callValidateCode=RO.schemaProperties=RO.allSchemaProperties=RO.noPropertyInData=RO.propertyInData=RO.isOwnProperty=RO.hasPropFunc=RO.reportMissingProp=RO.checkMissingProp=RO.checkReportMissingProp=void 0;const e=pO(),t=hO,r=bO(),n=hO;function o(t){return t.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:e._`Object.prototype.hasOwnProperty`})}function a(t,r,n){return e._`${o(t)}.call(${r}, ${n})`}function i(t,r,n,o){const i=e._`${r}${(0,e.getProperty)(n)} === undefined`;return o?(0,e.or)(i,(0,e.not)(a(t,r,n))):i}function s(e){return e?Object.keys(e).filter((e=>"__proto__"!==e)):[]}RO.checkReportMissingProp=function(t,r){const{gen:n,data:o,it:a}=t;n.if(i(n,o,r,a.opts.ownProperties),(()=>{t.setParams({missingProperty:e._`${r}`},!0),t.error()}))},RO.checkMissingProp=function({gen:t,data:r,it:{opts:n}},o,a){return(0,e.or)(...o.map((o=>(0,e.and)(i(t,r,o,n.ownProperties),e._`${a} = ${o}`))))},RO.reportMissingProp=function(e,t){e.setParams({missingProperty:t},!0),e.error()},RO.hasPropFunc=o,RO.isOwnProperty=a,RO.propertyInData=function(t,r,n,o){const i=e._`${r}${(0,e.getProperty)(n)} !== undefined`;return o?e._`${i} && ${a(t,r,n)}`:i},RO.noPropertyInData=i,RO.allSchemaProperties=s,RO.schemaProperties=function(e,r){return s(r).filter((n=>!(0,t.alwaysValidSchema)(e,r[n])))},RO.callValidateCode=function({schemaCode:t,data:n,it:{gen:o,topSchemaRef:a,schemaPath:i,errorPath:s},it:l},u,c,d){const f=d?e._`${t}, ${n}, ${a}${i}`:n,p=[[r.default.instancePath,(0,e.strConcat)(r.default.instancePath,s)],[r.default.parentData,l.parentData],[r.default.parentDataProperty,l.parentDataProperty],[r.default.rootData,r.default.rootData]];l.opts.dynamicRef&&p.push([r.default.dynamicAnchors,r.default.dynamicAnchors]);const h=e._`${f}, ${o.object(...p)}`;return c!==e.nil?e._`${u}.call(${c}, ${h})`:e._`${u}(${h})`};const l=e._`new RegExp`;return RO.usePattern=function({gen:t,it:{opts:r}},o){const a=r.unicodeRegExp?"u":"",{regExp:i}=r.code,s=i(o,a);return t.scopeValue("pattern",{key:s.toString(),ref:s,code:e._`${"new RegExp"===i.code?l:(0,n.useFunc)(t,i)}(${o}, ${a})`})},RO.validateArray=function(r){const{gen:n,data:o,keyword:a,it:i}=r,s=n.name("valid");if(i.allErrors){const e=n.let("valid",!0);return l((()=>n.assign(e,!1))),e}return n.var(s,!0),l((()=>n.break())),s;function l(i){const l=n.const("len",e._`${o}.length`);n.forRange("i",0,l,(o=>{r.subschema({keyword:a,dataProp:o,dataPropType:t.Type.Num},s),n.if((0,e.not)(s),i)}))}},RO.validateUnion=function(r){const{gen:n,schema:o,keyword:a,it:i}=r;if(!Array.isArray(o))throw new Error("ajv implementation error");if(o.some((e=>(0,t.alwaysValidSchema)(i,e)))&&!i.opts.unevaluated)return;const s=n.let("valid",!1),l=n.name("_valid");n.block((()=>o.forEach(((t,o)=>{const i=r.subschema({keyword:a,schemaProp:o,compositeRule:!0},l);n.assign(s,e._`${s} || ${l}`);r.mergeValidEvaluated(i,l)||n.if((0,e.not)(s))})))),r.result(s,(()=>r.reset()),(()=>r.error(!0)))},RO}function AO(){if(PO)return NO;PO=1,Object.defineProperty(NO,"__esModule",{value:!0}),NO.validateKeywordUsage=NO.validSchemaType=NO.funcKeywordCode=NO.macroKeywordCode=void 0;const e=pO(),t=bO(),r=TO(),n=wO();function o(t){const{gen:r,data:n,it:o}=t;r.if(o.parentData,(()=>r.assign(n,e._`${o.parentData}[${o.parentDataProperty}]`)))}function a(t,r,n){if(void 0===n)throw new Error(`keyword "${r}" failed to compile`);return t.scopeValue("keyword","function"==typeof n?{ref:n}:{ref:n,code:(0,e.stringify)(n)})}return NO.macroKeywordCode=function(t,r){const{gen:n,keyword:o,schema:i,parentSchema:s,it:l}=t,u=r.macro.call(l.self,i,s,l),c=a(n,o,u);!1!==l.opts.validateSchema&&l.self.validateSchema(u,!0);const d=n.name("valid");t.subschema({schema:u,schemaPath:e.nil,errSchemaPath:`${l.errSchemaPath}/${o}`,topSchemaRef:c,compositeRule:!0},d),t.pass(d,(()=>t.error(!0)))},NO.funcKeywordCode=function(i,s){var l;const{gen:u,keyword:c,schema:d,parentSchema:f,$data:p,it:h}=i;!function({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}(h,s);const m=!p&&s.compile?s.compile.call(h.self,d,f,h):s.validate,v=a(u,c,m),g=u.let("valid");function y(n=(s.async?e._`await `:e.nil)){const o=h.opts.passContext?t.default.this:t.default.self,a=!("compile"in s&&!p||!1===s.schema);u.assign(g,e._`${n}${(0,r.callValidateCode)(i,v,o,a)}`,s.modifying)}function b(t){var r;u.if((0,e.not)(null!==(r=s.valid)&&void 0!==r?r:g),t)}i.block$data(g,(function(){if(!1===s.errors)y(),s.modifying&&o(i),b((()=>i.error()));else{const r=s.async?function(){const t=u.let("ruleErrs",null);return u.try((()=>y(e._`await `)),(r=>u.assign(g,!1).if(e._`${r} instanceof ${h.ValidationError}`,(()=>u.assign(t,e._`${r}.errors`)),(()=>u.throw(r))))),t}():function(){const t=e._`${v}.errors`;return u.assign(t,null),y(e.nil),t}();s.modifying&&o(i),b((()=>function(r,o){const{gen:a}=r;a.if(e._`Array.isArray(${o})`,(()=>{a.assign(t.default.vErrors,e._`${t.default.vErrors} === null ? ${o} : ${t.default.vErrors}.concat(${o})`).assign(t.default.errors,e._`${t.default.vErrors}.length`),(0,n.extendErrors)(r)}),(()=>r.error()))}(i,r)))}})),i.ok(null!==(l=s.valid)&&void 0!==l?l:g)},NO.validSchemaType=function(e,t,r=!1){return!t.length||t.some((t=>"array"===t?Array.isArray(e):"object"===t?e&&"object"==typeof e&&!Array.isArray(e):typeof e==t||r&&void 0===e))},NO.validateKeywordUsage=function({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(null==i?void 0:i.some((t=>!Object.prototype.hasOwnProperty.call(e,t))))throw new Error(`parent schema must have dependencies of ${a}: ${i.join(",")}`);if(o.validateSchema){if(!o.validateSchema(e[a])){const e=`keyword "${a}" value is invalid at path "${n}": `+r.errorsText(o.validateSchema.errors);if("log"!==t.validateSchema)throw new Error(e);r.logger.error(e)}}},NO}var IO,MO={};var FO={},zO=function e(t,r){if(t===r)return!0;if(t&&r&&"object"==typeof t&&"object"==typeof r){if(t.constructor!==r.constructor)return!1;var n,o,a;if(Array.isArray(t)){if((n=t.length)!=r.length)return!1;for(o=n;0!=o--;)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((n=(a=Object.keys(t)).length)!==Object.keys(r).length)return!1;for(o=n;0!=o--;)if(!Object.prototype.hasOwnProperty.call(r,a[o]))return!1;for(o=n;0!=o--;){var i=a[o];if(!e(t[i],r[i]))return!1}return!0}return t!=t&&r!=r},DO={},LO={get exports(){return DO},set exports(e){DO=e}},BO=LO.exports=function(e,t,r){"function"==typeof t&&(r=t,t={}),VO(t,"function"==typeof(r=t.cb||r)?r:r.pre||function(){},r.post||function(){},e,"",e)};function VO(e,t,r,n,o,a,i,s,l,u){if(n&&"object"==typeof n&&!Array.isArray(n)){for(var c in t(n,o,a,i,s,l,u),n){var d=n[c];if(Array.isArray(d)){if(c in BO.arrayKeywords)for(var f=0;f<d.length;f++)VO(e,t,r,d[f],o+"/"+c+"/"+f,a,o,c,n,f)}else if(c in BO.propsKeywords){if(d&&"object"==typeof d)for(var p in d)VO(e,t,r,d[p],o+"/"+c+"/"+p.replace(/~/g,"~0").replace(/\//g,"~1"),a,o,c,n,p)}else(c in BO.keywords||e.allKeys&&!(c in BO.skipKeywords))&&VO(e,t,r,d,o+"/"+c,a,o,c,n)}r(n,o,a,i,s,l,u)}}BO.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0},BO.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},BO.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},BO.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},Object.defineProperty(FO,"__esModule",{value:!0}),FO.getSchemaRefs=FO.resolveUrl=FO.normalizeId=FO._getFullPath=FO.getFullPath=FO.inlineRef=void 0;const UO=hO,WO=zO,qO=DO,KO=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);FO.inlineRef=function(e,t=!0){return"boolean"==typeof e||(!0===t?!GO(e):!!t&&QO(e)<=t)};const HO=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function GO(e){for(const t in e){if(HO.has(t))return!0;const r=e[t];if(Array.isArray(r)&&r.some(GO))return!0;if("object"==typeof r&&GO(r))return!0}return!1}function QO(e){let t=0;for(const r in e){if("$ref"===r)return 1/0;if(t++,!KO.has(r)&&("object"==typeof e[r]&&(0,UO.eachItem)(e[r],(e=>t+=QO(e))),t===1/0))return 1/0}return t}function JO(e,t="",r){!1!==r&&(t=ZO(t));const n=e.parse(t);return YO(e,n)}function YO(e,t){return e.serialize(t).split("#")[0]+"#"}FO.getFullPath=JO,FO._getFullPath=YO;const XO=/#\/?$/;function ZO(e){return e?e.replace(XO,""):""}FO.normalizeId=ZO,FO.resolveUrl=function(e,t,r){return r=ZO(r),e.resolve(t,r)};const eP=/^[a-z_][-a-z0-9._]*$/i;var tP;function rP(){if(tP)return nO;tP=1,Object.defineProperty(nO,"__esModule",{value:!0}),nO.getData=nO.KeywordCxt=nO.validateFunctionCode=void 0;const e=function(){if(gO)return oO;gO=1,Object.defineProperty(oO,"__esModule",{value:!0}),oO.boolOrEmptySchema=oO.topBoolOrEmptySchema=void 0;const e=wO(),t=pO(),r=bO(),n={message:"boolean schema is false"};function o(t,r){const{gen:o,data:a}=t,i={gen:o,keyword:"false schema",data:a,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:t};(0,e.reportError)(i,n,void 0,r)}return oO.topBoolOrEmptySchema=function(e){const{gen:n,schema:a,validateName:i}=e;!1===a?o(e,!1):"object"==typeof a&&!0===a.$async?n.return(r.default.data):(n.assign(t._`${i}.errors`,null),n.return(!0))},oO.boolOrEmptySchema=function(e,t){const{gen:r,schema:n}=e;!1===n?(r.var(t,!1),o(e)):r.var(t,!0)},oO}(),t=SO,r=EO(),n=SO,o=function(){if(jO)return CO;jO=1,Object.defineProperty(CO,"__esModule",{value:!0}),CO.assignDefaults=void 0;const e=pO(),t=hO;function r(r,n,o){const{gen:a,compositeRule:i,data:s,opts:l}=r;if(void 0===o)return;const u=e._`${s}${(0,e.getProperty)(n)}`;if(i)return void(0,t.checkStrictMode)(r,`default is ignored for: ${u}`);let c=e._`${u} === undefined`;"empty"===l.useDefaults&&(c=e._`${c} || ${u} === null || ${u} === ""`),a.if(c,e._`${u} = ${(0,e.stringify)(o)}`)}return CO.assignDefaults=function(e,t){const{properties:n,items:o}=e.schema;if("object"===t&&n)for(const t in n)r(e,t,n[t].default);else"array"===t&&Array.isArray(o)&&o.forEach(((t,n)=>r(e,n,t.default)))},CO}(),a=AO(),i=function(){if(IO)return MO;IO=1,Object.defineProperty(MO,"__esModule",{value:!0}),MO.extendSubschemaMode=MO.extendSubschemaData=MO.getSubschema=void 0;const e=pO(),t=hO;return MO.getSubschema=function(r,{keyword:n,schemaProp:o,schema:a,schemaPath:i,errSchemaPath:s,topSchemaRef:l}){if(void 0!==n&&void 0!==a)throw new Error('both "keyword" and "schema" passed, only one allowed');if(void 0!==n){const a=r.schema[n];return void 0===o?{schema:a,schemaPath:e._`${r.schemaPath}${(0,e.getProperty)(n)}`,errSchemaPath:`${r.errSchemaPath}/${n}`}:{schema:a[o],schemaPath:e._`${r.schemaPath}${(0,e.getProperty)(n)}${(0,e.getProperty)(o)}`,errSchemaPath:`${r.errSchemaPath}/${n}/${(0,t.escapeFragment)(o)}`}}if(void 0!==a){if(void 0===i||void 0===s||void 0===l)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:a,schemaPath:i,topSchemaRef:l,errSchemaPath:s}}throw new Error('either "keyword" or "schema" must be passed')},MO.extendSubschemaData=function(r,n,{dataProp:o,dataPropType:a,data:i,dataTypes:s,propertyName:l}){if(void 0!==i&&void 0!==o)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:u}=n;if(void 0!==o){const{errorPath:i,dataPathArr:s,opts:l}=n;c(u.let("data",e._`${n.data}${(0,e.getProperty)(o)}`,!0)),r.errorPath=e.str`${i}${(0,t.getErrorPath)(o,a,l.jsPropertySyntax)}`,r.parentDataProperty=e._`${o}`,r.dataPathArr=[...s,r.parentDataProperty]}function c(e){r.data=e,r.dataLevel=n.dataLevel+1,r.dataTypes=[],n.definedProperties=new Set,r.parentData=n.data,r.dataNames=[...n.dataNames,e]}void 0!==i&&(c(i instanceof e.Name?i:u.let("data",i,!0)),void 0!==l&&(r.propertyName=l)),s&&(r.dataTypes=s)},MO.extendSubschemaMode=function(e,{jtdDiscriminator:t,jtdMetadata:r,compositeRule:n,createErrors:o,allErrors:a}){void 0!==n&&(e.compositeRule=n),void 0!==o&&(e.createErrors=o),void 0!==a&&(e.allErrors=a),e.jtdDiscriminator=t,e.jtdMetadata=r},MO}(),s=pO(),l=bO(),u=FO,c=hO,d=wO();function f({gen:e,validateName:t,schema:r,schemaEnv:n,opts:o},a){o.code.es5?e.func(t,s._`${l.default.data}, ${l.default.valCxt}`,n.$async,(()=>{e.code(s._`"use strict"; ${p(r,o)}`),function(e,t){e.if(l.default.valCxt,(()=>{e.var(l.default.instancePath,s._`${l.default.valCxt}.${l.default.instancePath}`),e.var(l.default.parentData,s._`${l.default.valCxt}.${l.default.parentData}`),e.var(l.default.parentDataProperty,s._`${l.default.valCxt}.${l.default.parentDataProperty}`),e.var(l.default.rootData,s._`${l.default.valCxt}.${l.default.rootData}`),t.dynamicRef&&e.var(l.default.dynamicAnchors,s._`${l.default.valCxt}.${l.default.dynamicAnchors}`)}),(()=>{e.var(l.default.instancePath,s._`""`),e.var(l.default.parentData,s._`undefined`),e.var(l.default.parentDataProperty,s._`undefined`),e.var(l.default.rootData,l.default.data),t.dynamicRef&&e.var(l.default.dynamicAnchors,s._`{}`)}))}(e,o),e.code(a)})):e.func(t,s._`${l.default.data}, ${function(e){return s._`{${l.default.instancePath}="", ${l.default.parentData}, ${l.default.parentDataProperty}, ${l.default.rootData}=${l.default.data}${e.dynamicRef?s._`, ${l.default.dynamicAnchors}={}`:s.nil}}={}`}(o)}`,n.$async,(()=>e.code(p(r,o)).code(a)))}function p(e,t){const r="object"==typeof e&&e[t.schemaId];return r&&(t.code.source||t.code.process)?s._`/*# sourceURL=${r} */`:s.nil}function h(t,r){v(t)&&(g(t),m(t))?function(e,t){const{schema:r,gen:n,opts:o}=e;o.$comment&&r.$comment&&b(e);(function(e){const t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,u.resolveUrl)(e.opts.uriResolver,e.baseId,t))})(e),function(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}(e);const a=n.const("_errs",l.default.errors);y(e,a),n.var(t,s._`${a} === ${l.default.errors}`)}(t,r):(0,e.boolOrEmptySchema)(t,r)}function m({schema:e,self:t}){if("boolean"==typeof e)return!e;for(const r in e)if(t.RULES.all[r])return!0;return!1}function v(e){return"boolean"!=typeof e.schema}function g(e){(0,c.checkUnknownRules)(e),function(e){const{schema:t,errSchemaPath:r,opts:n,self:o}=e;t.$ref&&n.ignoreKeywordsWithRef&&(0,c.schemaHasRulesButRef)(t,o.RULES)&&o.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}(e)}function y(e,r){if(e.opts.jtd)return w(e,[],!1,r);const n=(0,t.getSchemaTypes)(e.schema);w(e,n,!(0,t.coerceAndCheckDataType)(e,n),r)}function b({gen:e,schemaEnv:t,schema:r,errSchemaPath:n,opts:o}){const a=r.$comment;if(!0===o.$comment)e.code(s._`${l.default.self}.logger.log(${a})`);else if("function"==typeof o.$comment){const r=s.str`${n}/$comment`,o=e.scopeValue("root",{ref:t.root});e.code(s._`${l.default.self}.opts.$comment(${a}, ${r}, ${o}.schema)`)}}function w(e,t,o,a){const{gen:i,schema:u,data:d,allErrors:f,opts:p,self:h}=e,{RULES:m}=h;function v(c){(0,r.shouldUseGroup)(u,c)&&(c.type?(i.if((0,n.checkDataType)(c.type,d,p.strictNumbers)),S(e,c),1===t.length&&t[0]===c.type&&o&&(i.else(),(0,n.reportTypeError)(e)),i.endIf()):S(e,c),f||i.if(s._`${l.default.errors} === ${a||0}`))}!u.$ref||!p.ignoreKeywordsWithRef&&(0,c.schemaHasRulesButRef)(u,m)?(p.jtd||function(e,t){if(e.schemaEnv.meta||!e.opts.strictTypes)return;(function(e,t){if(!t.length)return;if(!e.dataTypes.length)return void(e.dataTypes=t);t.forEach((t=>{_(e.dataTypes,t)||$(e,`type "${t}" not allowed by context "${e.dataTypes.join(",")}"`)})),function(e,t){const r=[];for(const n of e.dataTypes)_(t,n)?r.push(n):t.includes("integer")&&"number"===n&&r.push("integer");e.dataTypes=r}(e,t)})(e,t),e.opts.allowUnionTypes||function(e,t){t.length>1&&(2!==t.length||!t.includes("null"))&&$(e,"use allowUnionTypes to allow union type keyword")}(e,t);!function(e,t){const n=e.self.RULES.all;for(const o in n){const a=n[o];if("object"==typeof a&&(0,r.shouldUseRule)(e.schema,a)){const{type:r}=a.definition;r.length&&!r.some((e=>x(t,e)))&&$(e,`missing type "${r.join(",")}" for keyword "${o}"`)}}}(e,e.dataTypes)}(e,t),i.block((()=>{for(const e of m.rules)v(e);v(m.post)}))):i.block((()=>E(e,"$ref",m.all.$ref.definition)))}function S(e,t){const{gen:n,schema:a,opts:{useDefaults:i}}=e;i&&(0,o.assignDefaults)(e,t.type),n.block((()=>{for(const n of t.rules)(0,r.shouldUseRule)(a,n)&&E(e,n.keyword,n.definition,t.type)}))}function x(e,t){return e.includes(t)||"number"===t&&e.includes("integer")}function _(e,t){return e.includes(t)||"integer"===t&&e.includes("number")}function $(e,t){t+=` at "${e.schemaEnv.baseId+e.errSchemaPath}" (strictTypes)`,(0,c.checkStrictMode)(e,t,e.opts.strictTypes)}nO.validateFunctionCode=function(t){v(t)&&(g(t),m(t))?function(e){const{schema:t,opts:r,gen:n}=e;f(e,(()=>{r.$comment&&t.$comment&&b(e),function(e){const{schema:t,opts:r}=e;void 0!==t.default&&r.useDefaults&&r.strictSchema&&(0,c.checkStrictMode)(e,"default is ignored in the schema root")}(e),n.let(l.default.vErrors,null),n.let(l.default.errors,0),r.unevaluated&&function(e){const{gen:t,validateName:r}=e;e.evaluated=t.const("evaluated",s._`${r}.evaluated`),t.if(s._`${e.evaluated}.dynamicProps`,(()=>t.assign(s._`${e.evaluated}.props`,s._`undefined`))),t.if(s._`${e.evaluated}.dynamicItems`,(()=>t.assign(s._`${e.evaluated}.items`,s._`undefined`)))}(e),y(e),function(e){const{gen:t,schemaEnv:r,validateName:n,ValidationError:o,opts:a}=e;r.$async?t.if(s._`${l.default.errors} === 0`,(()=>t.return(l.default.data)),(()=>t.throw(s._`new ${o}(${l.default.vErrors})`))):(t.assign(s._`${n}.errors`,l.default.vErrors),a.unevaluated&&function({gen:e,evaluated:t,props:r,items:n}){r instanceof s.Name&&e.assign(s._`${t}.props`,r);n instanceof s.Name&&e.assign(s._`${t}.items`,n)}(e),t.return(s._`${l.default.errors} === 0`))}(e)}))}(t):f(t,(()=>(0,e.topBoolOrEmptySchema)(t)))};class k{constructor(e,t,r){if((0,a.validateKeywordUsage)(e,t,r),this.gen=e.gen,this.allErrors=e.allErrors,this.keyword=r,this.data=e.data,this.schema=e.schema[r],this.$data=t.$data&&e.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,c.schemaRefOrVal)(e,this.schema,r,this.$data),this.schemaType=t.schemaType,this.parentSchema=e.schema,this.params={},this.it=e,this.def=t,this.$data)this.schemaCode=e.gen.const("vSchema",O(this.$data,e));else if(this.schemaCode=this.schemaValue,!(0,a.validSchemaType)(this.schema,t.schemaType,t.allowUndefined))throw new Error(`${r} value must be ${JSON.stringify(t.schemaType)}`);("code"in t?t.trackErrors:!1!==t.errors)&&(this.errsCount=e.gen.const("_errs",l.default.errors))}result(e,t,r){this.failResult((0,s.not)(e),t,r)}failResult(e,t,r){this.gen.if(e),r?r():this.error(),t?(this.gen.else(),t(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(e,t){this.failResult((0,s.not)(e),void 0,t)}fail(e){if(void 0===e)return this.error(),void(this.allErrors||this.gen.if(!1));this.gen.if(e),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(e){if(!this.$data)return this.fail(e);const{schemaCode:t}=this;this.fail(s._`${t} !== undefined && (${(0,s.or)(this.invalid$data(),e)})`)}error(e,t,r){if(t)return this.setParams(t),this._error(e,r),void this.setParams({});this._error(e,r)}_error(e,t){(e?d.reportExtraError:d.reportError)(this,this.def.error,t)}$dataError(){(0,d.reportError)(this,this.def.$dataError||d.keyword$DataError)}reset(){if(void 0===this.errsCount)throw new Error('add "trackErrors" to keyword definition');(0,d.resetErrorsCount)(this.gen,this.errsCount)}ok(e){this.allErrors||this.gen.if(e)}setParams(e,t){t?Object.assign(this.params,e):this.params=e}block$data(e,t,r=s.nil){this.gen.block((()=>{this.check$data(e,r),t()}))}check$data(e=s.nil,t=s.nil){if(!this.$data)return;const{gen:r,schemaCode:n,schemaType:o,def:a}=this;r.if((0,s.or)(s._`${n} === undefined`,t)),e!==s.nil&&r.assign(e,!0),(o.length||a.validateSchema)&&(r.elseIf(this.invalid$data()),this.$dataError(),e!==s.nil&&r.assign(e,!1)),r.else()}invalid$data(){const{gen:e,schemaCode:t,schemaType:r,def:o,it:a}=this;return(0,s.or)(function(){if(r.length){if(!(t instanceof s.Name))throw new Error("ajv implementation error");const e=Array.isArray(r)?r:[r];return s._`${(0,n.checkDataTypes)(e,t,a.opts.strictNumbers,n.DataType.Wrong)}`}return s.nil}(),function(){if(o.validateSchema){const r=e.scopeValue("validate$data",{ref:o.validateSchema});return s._`!${r}(${t})`}return s.nil}())}subschema(e,t){const r=(0,i.getSubschema)(this.it,e);(0,i.extendSubschemaData)(r,this.it,e),(0,i.extendSubschemaMode)(r,e);const n={...this.it,...r,items:void 0,props:void 0};return h(n,t),n}mergeEvaluated(e,t){const{it:r,gen:n}=this;r.opts.unevaluated&&(!0!==r.props&&void 0!==e.props&&(r.props=c.mergeEvaluated.props(n,e.props,r.props,t)),!0!==r.items&&void 0!==e.items&&(r.items=c.mergeEvaluated.items(n,e.items,r.items,t)))}mergeValidEvaluated(e,t){const{it:r,gen:n}=this;if(r.opts.unevaluated&&(!0!==r.props||!0!==r.items))return n.if(t,(()=>this.mergeEvaluated(e,s.Name))),!0}}function E(e,t,r,n){const o=new k(e,r,t);"code"in r?r.code(o,n):o.$data&&r.validate?(0,a.funcKeywordCode)(o,r):"macro"in r?(0,a.macroKeywordCode)(o,r):(r.compile||r.validate)&&(0,a.funcKeywordCode)(o,r)}nO.KeywordCxt=k;const j=/^\/(?:[^~]|~0|~1)*$/,C=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function O(e,{dataLevel:t,dataNames:r,dataPathArr:n}){let o,a;if(""===e)return l.default.rootData;if("/"===e[0]){if(!j.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);o=e,a=l.default.rootData}else{const i=C.exec(e);if(!i)throw new Error(`Invalid JSON-pointer: ${e}`);const s=+i[1];if(o=i[2],"#"===o){if(s>=t)throw new Error(d("property/index",s));return n[t-s]}if(s>t)throw new Error(d("data",s));if(a=r[t-s],!o)return a}let i=a;const u=o.split("/");for(const e of u)e&&(a=s._`${a}${(0,s.getProperty)((0,c.unescapeJsonPointer)(e))}`,i=s._`${i} && ${a}`);return i;function d(e,r){return`Cannot access ${e} ${r} levels up, current level is ${t}`}}return nO.getData=O,nO}FO.getSchemaRefs=function(e,t){if("boolean"==typeof e)return{};const{schemaId:r,uriResolver:n}=this.opts,o=ZO(e[r]||t),a={"":o},i=JO(n,o,!1),s={},l=new Set;return qO(e,{allKeys:!0},((e,t,n,o)=>{if(void 0===o)return;const d=i+t;let f=a[o];function p(t){const r=this.opts.uriResolver.resolve;if(t=ZO(f?r(f,t):t),l.has(t))throw c(t);l.add(t);let n=this.refs[t];return"string"==typeof n&&(n=this.refs[n]),"object"==typeof n?u(e,n.schema,t):t!==ZO(d)&&("#"===t[0]?(u(e,s[t],t),s[t]=e):this.refs[t]=d),t}function h(e){if("string"==typeof e){if(!eP.test(e))throw new Error(`invalid anchor "${e}"`);p.call(this,`#${e}`)}}"string"==typeof e[r]&&(f=p.call(this,e[r])),h.call(this,e.$anchor),h.call(this,e.$dynamicAnchor),a[t]=f})),s;function u(e,t,r){if(void 0!==t&&!WO(e,t))throw c(r)}function c(e){return new Error(`reference "${e}" resolves to more than one schema`)}};var nP,oP={};function aP(){if(nP)return oP;nP=1,Object.defineProperty(oP,"__esModule",{value:!0});class e extends Error{constructor(e){super("validation failed"),this.errors=e,this.ajv=this.validation=!0}}return oP.default=e,oP}var iP,sP={};function lP(){if(iP)return sP;iP=1,Object.defineProperty(sP,"__esModule",{value:!0});const e=FO;class t extends Error{constructor(t,r,n,o){super(o||`can't resolve reference ${n} from id ${r}`),this.missingRef=(0,e.resolveUrl)(t,r,n),this.missingSchema=(0,e.normalizeId)((0,e.getFullPath)(t,this.missingRef))}}return sP.default=t,sP}var uP={};Object.defineProperty(uP,"__esModule",{value:!0}),uP.resolveSchema=uP.getCompilingSchema=uP.resolveRef=uP.compileSchema=uP.SchemaEnv=void 0;const cP=pO(),dP=aP(),fP=bO(),pP=FO,hP=hO,mP=rP();let vP=class{constructor(e){var t;let r;this.refs={},this.dynamicAnchors={},"object"==typeof e.schema&&(r=e.schema),this.schema=e.schema,this.schemaId=e.schemaId,this.root=e.root||this,this.baseId=null!==(t=e.baseId)&&void 0!==t?t:(0,pP.normalizeId)(null==r?void 0:r[e.schemaId||"$id"]),this.schemaPath=e.schemaPath,this.localRefs=e.localRefs,this.meta=e.meta,this.$async=null==r?void 0:r.$async,this.refs={}}};function gP(e){const t=bP.call(this,e);if(t)return t;const r=(0,pP.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:n,lines:o}=this.opts.code,{ownProperties:a}=this.opts,i=new cP.CodeGen(this.scope,{es5:n,lines:o,ownProperties:a});let s;e.$async&&(s=i.scopeValue("Error",{ref:dP.default,code:cP._`require("ajv/dist/runtime/validation_error").default`}));const l=i.scopeName("validate");e.validateName=l;const u={gen:i,allErrors:this.opts.allErrors,data:fP.default.data,parentData:fP.default.parentData,parentDataProperty:fP.default.parentDataProperty,dataNames:[fP.default.data],dataPathArr:[cP.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:i.scopeValue("schema",!0===this.opts.code.source?{ref:e.schema,code:(0,cP.stringify)(e.schema)}:{ref:e.schema}),validateName:l,ValidationError:s,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:cP.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:cP._`""`,opts:this.opts,self:this};let c;try{this._compilations.add(e),(0,mP.validateFunctionCode)(u),i.optimize(this.opts.code.optimize);const t=i.toString();c=`${i.scopeRefs(fP.default.scope)}return ${t}`,this.opts.code.process&&(c=this.opts.code.process(c,e));const r=new Function(`${fP.default.self}`,`${fP.default.scope}`,c)(this,this.scope.get());if(this.scope.value(l,{ref:r}),r.errors=null,r.schema=e.schema,r.schemaEnv=e,e.$async&&(r.$async=!0),!0===this.opts.code.source&&(r.source={validateName:l,validateCode:t,scopeValues:i._values}),this.opts.unevaluated){const{props:e,items:t}=u;r.evaluated={props:e instanceof cP.Name?void 0:e,items:t instanceof cP.Name?void 0:t,dynamicProps:e instanceof cP.Name,dynamicItems:t instanceof cP.Name},r.source&&(r.source.evaluated=(0,cP.stringify)(r.evaluated))}return e.validate=r,e}catch(t){throw delete e.validate,delete e.validateName,c&&this.logger.error("Error compiling schema, function code:",c),t}finally{this._compilations.delete(e)}}function yP(e){return(0,pP.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:gP.call(this,e)}function bP(e){for(const n of this._compilations)if(r=e,(t=n).schema===r.schema&&t.root===r.root&&t.baseId===r.baseId)return n;var t,r}function wP(e,t){let r;for(;"string"==typeof(r=this.refs[t]);)t=r;return r||this.schemas[t]||SP.call(this,e,t)}function SP(e,t){const r=this.opts.uriResolver.parse(t),n=(0,pP._getFullPath)(this.opts.uriResolver,r);let o=(0,pP.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&n===o)return _P.call(this,r,e);const a=(0,pP.normalizeId)(n),i=this.refs[a]||this.schemas[a];if("string"==typeof i){const t=SP.call(this,e,i);if("object"!=typeof(null==t?void 0:t.schema))return;return _P.call(this,r,t)}if("object"==typeof(null==i?void 0:i.schema)){if(i.validate||gP.call(this,i),a===(0,pP.normalizeId)(t)){const{schema:t}=i,{schemaId:r}=this.opts,n=t[r];return n&&(o=(0,pP.resolveUrl)(this.opts.uriResolver,o,n)),new vP({schema:t,schemaId:r,root:e,baseId:o})}return _P.call(this,r,i)}}uP.SchemaEnv=vP,uP.compileSchema=gP,uP.resolveRef=function(e,t,r){var n;r=(0,pP.resolveUrl)(this.opts.uriResolver,t,r);const o=e.refs[r];if(o)return o;let a=wP.call(this,e,r);if(void 0===a){const o=null===(n=e.localRefs)||void 0===n?void 0:n[r],{schemaId:i}=this.opts;o&&(a=new vP({schema:o,schemaId:i,root:e,baseId:t}))}return void 0!==a?e.refs[r]=yP.call(this,a):void 0},uP.getCompilingSchema=bP,uP.resolveSchema=SP;const xP=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function _P(e,{baseId:t,schema:r,root:n}){var o;if("/"!==(null===(o=e.fragment)||void 0===o?void 0:o[0]))return;for(const n of e.fragment.slice(1).split("/")){if("boolean"==typeof r)return;const e=r[(0,hP.unescapeFragment)(n)];if(void 0===e)return;const o="object"==typeof(r=e)&&r[this.opts.schemaId];!xP.has(n)&&o&&(t=(0,pP.resolveUrl)(this.opts.uriResolver,t,o))}let a;if("boolean"!=typeof r&&r.$ref&&!(0,hP.schemaHasRulesButRef)(r,this.RULES)){const e=(0,pP.resolveUrl)(this.opts.uriResolver,t,r.$ref);a=SP.call(this,n,e)}const{schemaId:i}=this.opts;return a=a||new vP({schema:r,schemaId:i,root:n,baseId:t}),a.schema!==a.root.schema?a:void 0}var $P={$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON AnySchema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1},kP={},EP={};(function(e){function t(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];if(t.length>1){t[0]=t[0].slice(0,-1);for(var n=t.length-1,o=1;o<n;++o)t[o]=t[o].slice(1,-1);return t[n]=t[n].slice(1),t.join("")}return t[0]}function r(e){return"(?:"+e+")"}function n(e){return void 0===e?"undefined":null===e?"null":Object.prototype.toString.call(e).split(" ").pop().split("]").shift().toLowerCase()}function o(e){return e.toUpperCase()}function a(e){return null!=e?e instanceof Array?e:"number"!=typeof e.length||e.split||e.setInterval||e.call?[e]:Array.prototype.slice.call(e):[]}function i(e,t){var r=e;if(t)for(var n in t)r[n]=t[n];return r}function s(e){var n="[A-Za-z]",o="[0-9]",a=t(o,"[A-Fa-f]"),i=r(r("%[EFef]"+a+"%"+a+a+"%"+a+a)+"|"+r("%[89A-Fa-f]"+a+"%"+a+a)+"|"+r("%"+a+a)),s="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",l=t("[\\:\\/\\?\\#\\[\\]\\@]",s),u=e?"[\\uE000-\\uF8FF]":"[]",c=t(n,o,"[\\-\\.\\_\\~]",e?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]");r(n+t(n,o,"[\\+\\-\\.]")+"*"),r(r(i+"|"+t(c,s,"[\\:]"))+"*");var d=r(r("25[0-5]")+"|"+r("2[0-4]"+o)+"|"+r("1"+o+o)+"|"+r("0?[1-9]"+o)+"|0?0?"+o),f=r(d+"\\."+d+"\\."+d+"\\."+d),p=r(a+"{1,4}"),h=r(r(p+"\\:"+p)+"|"+f),m=r(r(p+"\\:")+"{6}"+h),v=r("\\:\\:"+r(p+"\\:")+"{5}"+h),g=r(r(p)+"?\\:\\:"+r(p+"\\:")+"{4}"+h),y=r(r(r(p+"\\:")+"{0,1}"+p)+"?\\:\\:"+r(p+"\\:")+"{3}"+h),b=r(r(r(p+"\\:")+"{0,2}"+p)+"?\\:\\:"+r(p+"\\:")+"{2}"+h),w=r(r(r(p+"\\:")+"{0,3}"+p)+"?\\:\\:"+p+"\\:"+h),S=r(r(r(p+"\\:")+"{0,4}"+p)+"?\\:\\:"+h),x=r(r(r(p+"\\:")+"{0,5}"+p)+"?\\:\\:"+p),_=r(r(r(p+"\\:")+"{0,6}"+p)+"?\\:\\:"),$=r([m,v,g,y,b,w,S,x,_].join("|")),k=r(r(c+"|"+i)+"+");r("[vV]"+a+"+\\."+t(c,s,"[\\:]")+"+"),r(r(i+"|"+t(c,s))+"*");var E=r(i+"|"+t(c,s,"[\\:\\@]"));return r(r(i+"|"+t(c,s,"[\\@]"))+"+"),r(r(E+"|"+t("[\\/\\?]",u))+"*"),{NOT_SCHEME:new RegExp(t("[^]",n,o,"[\\+\\-\\.]"),"g"),NOT_USERINFO:new RegExp(t("[^\\%\\:]",c,s),"g"),NOT_HOST:new RegExp(t("[^\\%\\[\\]\\:]",c,s),"g"),NOT_PATH:new RegExp(t("[^\\%\\/\\:\\@]",c,s),"g"),NOT_PATH_NOSCHEME:new RegExp(t("[^\\%\\/\\@]",c,s),"g"),NOT_QUERY:new RegExp(t("[^\\%]",c,s,"[\\:\\@\\/\\?]",u),"g"),NOT_FRAGMENT:new RegExp(t("[^\\%]",c,s,"[\\:\\@\\/\\?]"),"g"),ESCAPE:new RegExp(t("[^]",c,s),"g"),UNRESERVED:new RegExp(c,"g"),OTHER_CHARS:new RegExp(t("[^\\%]",c,l),"g"),PCT_ENCODED:new RegExp(i,"g"),IPV4ADDRESS:new RegExp("^("+f+")$"),IPV6ADDRESS:new RegExp("^\\[?("+$+")"+r(r("\\%25|\\%(?!"+a+"{2})")+"("+k+")")+"?\\]?$")}}var l=s(!1),u=s(!0),c=function(){function e(e,t){var r=[],n=!0,o=!1,a=void 0;try{for(var i,s=e[Symbol.iterator]();!(n=(i=s.next()).done)&&(r.push(i.value),!t||r.length!==t);n=!0);}catch(e){o=!0,a=e}finally{try{!n&&s.return&&s.return()}finally{if(o)throw a}}return r}return function(t,r){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),d=function(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}return Array.from(e)},f=2147483647,p=36,h=1,m=26,v=38,g=700,y=72,b=128,w="-",S=/^xn--/,x=/[^\0-\x7E]/,_=/[\x2E\u3002\uFF0E\uFF61]/g,$={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},k=p-h,E=Math.floor,j=String.fromCharCode;function C(e){throw new RangeError($[e])}function O(e,t){for(var r=[],n=e.length;n--;)r[n]=t(e[n]);return r}function P(e,t){var r=e.split("@"),n="";return r.length>1&&(n=r[0]+"@",e=r[1]),n+O((e=e.replace(_,".")).split("."),t).join(".")}function N(e){for(var t=[],r=0,n=e.length;r<n;){var o=e.charCodeAt(r++);if(o>=55296&&o<=56319&&r<n){var a=e.charCodeAt(r++);56320==(64512&a)?t.push(((1023&o)<<10)+(1023&a)+65536):(t.push(o),r--)}else t.push(o)}return t}var R=function(e){return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:p},T=function(e,t){return e+22+75*(e<26)-((0!=t)<<5)},A=function(e,t,r){var n=0;for(e=r?E(e/g):e>>1,e+=E(e/t);e>k*m>>1;n+=p)e=E(e/k);return E(n+(k+1)*e/(e+v))},I=function(e){var t=[],r=e.length,n=0,o=b,a=y,i=e.lastIndexOf(w);i<0&&(i=0);for(var s=0;s<i;++s)e.charCodeAt(s)>=128&&C("not-basic"),t.push(e.charCodeAt(s));for(var l=i>0?i+1:0;l<r;){for(var u=n,c=1,d=p;;d+=p){l>=r&&C("invalid-input");var v=R(e.charCodeAt(l++));(v>=p||v>E((f-n)/c))&&C("overflow"),n+=v*c;var g=d<=a?h:d>=a+m?m:d-a;if(v<g)break;var S=p-g;c>E(f/S)&&C("overflow"),c*=S}var x=t.length+1;a=A(n-u,x,0==u),E(n/x)>f-o&&C("overflow"),o+=E(n/x),n%=x,t.splice(n++,0,o)}return String.fromCodePoint.apply(String,t)},M=function(e){var t=[],r=(e=N(e)).length,n=b,o=0,a=y,i=!0,s=!1,l=void 0;try{for(var u,c=e[Symbol.iterator]();!(i=(u=c.next()).done);i=!0){var d=u.value;d<128&&t.push(j(d))}}catch(e){s=!0,l=e}finally{try{!i&&c.return&&c.return()}finally{if(s)throw l}}var v=t.length,g=v;for(v&&t.push(w);g<r;){var S=f,x=!0,_=!1,$=void 0;try{for(var k,O=e[Symbol.iterator]();!(x=(k=O.next()).done);x=!0){var P=k.value;P>=n&&P<S&&(S=P)}}catch(e){_=!0,$=e}finally{try{!x&&O.return&&O.return()}finally{if(_)throw $}}var R=g+1;S-n>E((f-o)/R)&&C("overflow"),o+=(S-n)*R,n=S;var I=!0,M=!1,F=void 0;try{for(var z,D=e[Symbol.iterator]();!(I=(z=D.next()).done);I=!0){var L=z.value;if(L<n&&++o>f&&C("overflow"),L==n){for(var B=o,V=p;;V+=p){var U=V<=a?h:V>=a+m?m:V-a;if(B<U)break;var W=B-U,q=p-U;t.push(j(T(U+W%q,0))),B=E(W/q)}t.push(j(T(B,0))),a=A(o,R,g==v),o=0,++g}}}catch(e){M=!0,F=e}finally{try{!I&&D.return&&D.return()}finally{if(M)throw F}}++o,++n}return t.join("")},F=function(e){return P(e,(function(e){return S.test(e)?I(e.slice(4).toLowerCase()):e}))},z=function(e){return P(e,(function(e){return x.test(e)?"xn--"+M(e):e}))},D={version:"2.1.0",ucs2:{decode:N,encode:function(e){return String.fromCodePoint.apply(String,d(e))}},decode:I,encode:M,toASCII:z,toUnicode:F},L={};function B(e){var t=e.charCodeAt(0);return t<16?"%0"+t.toString(16).toUpperCase():t<128?"%"+t.toString(16).toUpperCase():t<2048?"%"+(t>>6|192).toString(16).toUpperCase()+"%"+(63&t|128).toString(16).toUpperCase():"%"+(t>>12|224).toString(16).toUpperCase()+"%"+(t>>6&63|128).toString(16).toUpperCase()+"%"+(63&t|128).toString(16).toUpperCase()}function V(e){for(var t="",r=0,n=e.length;r<n;){var o=parseInt(e.substr(r+1,2),16);if(o<128)t+=String.fromCharCode(o),r+=3;else if(o>=194&&o<224){if(n-r>=6){var a=parseInt(e.substr(r+4,2),16);t+=String.fromCharCode((31&o)<<6|63&a)}else t+=e.substr(r,6);r+=6}else if(o>=224){if(n-r>=9){var i=parseInt(e.substr(r+4,2),16),s=parseInt(e.substr(r+7,2),16);t+=String.fromCharCode((15&o)<<12|(63&i)<<6|63&s)}else t+=e.substr(r,9);r+=9}else t+=e.substr(r,3),r+=3}return t}function U(e,t){function r(e){var r=V(e);return r.match(t.UNRESERVED)?r:e}return e.scheme&&(e.scheme=String(e.scheme).replace(t.PCT_ENCODED,r).toLowerCase().replace(t.NOT_SCHEME,"")),void 0!==e.userinfo&&(e.userinfo=String(e.userinfo).replace(t.PCT_ENCODED,r).replace(t.NOT_USERINFO,B).replace(t.PCT_ENCODED,o)),void 0!==e.host&&(e.host=String(e.host).replace(t.PCT_ENCODED,r).toLowerCase().replace(t.NOT_HOST,B).replace(t.PCT_ENCODED,o)),void 0!==e.path&&(e.path=String(e.path).replace(t.PCT_ENCODED,r).replace(e.scheme?t.NOT_PATH:t.NOT_PATH_NOSCHEME,B).replace(t.PCT_ENCODED,o)),void 0!==e.query&&(e.query=String(e.query).replace(t.PCT_ENCODED,r).replace(t.NOT_QUERY,B).replace(t.PCT_ENCODED,o)),void 0!==e.fragment&&(e.fragment=String(e.fragment).replace(t.PCT_ENCODED,r).replace(t.NOT_FRAGMENT,B).replace(t.PCT_ENCODED,o)),e}function W(e){return e.replace(/^0*(.*)/,"$1")||"0"}function q(e,t){var r=e.match(t.IPV4ADDRESS)||[],n=c(r,2)[1];return n?n.split(".").map(W).join("."):e}function K(e,t){var r=e.match(t.IPV6ADDRESS)||[],n=c(r,3),o=n[1],a=n[2];if(o){for(var i=o.toLowerCase().split("::").reverse(),s=c(i,2),l=s[0],u=s[1],d=u?u.split(":").map(W):[],f=l.split(":").map(W),p=t.IPV4ADDRESS.test(f[f.length-1]),h=p?7:8,m=f.length-h,v=Array(h),g=0;g<h;++g)v[g]=d[g]||f[m+g]||"";p&&(v[h-1]=q(v[h-1],t));var y=v.reduce((function(e,t,r){if(!t||"0"===t){var n=e[e.length-1];n&&n.index+n.length===r?n.length++:e.push({index:r,length:1})}return e}),[]).sort((function(e,t){return t.length-e.length}))[0],b=void 0;if(y&&y.length>1){var w=v.slice(0,y.index),S=v.slice(y.index+y.length);b=w.join(":")+"::"+S.join(":")}else b=v.join(":");return a&&(b+="%"+a),b}return e}var H=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,G=void 0==="".match(/(){0}/)[1];function Q(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={},n=!1!==t.iri?u:l;"suffix"===t.reference&&(e=(t.scheme?t.scheme+":":"")+"//"+e);var o=e.match(H);if(o){G?(r.scheme=o[1],r.userinfo=o[3],r.host=o[4],r.port=parseInt(o[5],10),r.path=o[6]||"",r.query=o[7],r.fragment=o[8],isNaN(r.port)&&(r.port=o[5])):(r.scheme=o[1]||void 0,r.userinfo=-1!==e.indexOf("@")?o[3]:void 0,r.host=-1!==e.indexOf("//")?o[4]:void 0,r.port=parseInt(o[5],10),r.path=o[6]||"",r.query=-1!==e.indexOf("?")?o[7]:void 0,r.fragment=-1!==e.indexOf("#")?o[8]:void 0,isNaN(r.port)&&(r.port=e.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?o[4]:void 0)),r.host&&(r.host=K(q(r.host,n),n)),void 0!==r.scheme||void 0!==r.userinfo||void 0!==r.host||void 0!==r.port||r.path||void 0!==r.query?void 0===r.scheme?r.reference="relative":void 0===r.fragment?r.reference="absolute":r.reference="uri":r.reference="same-document",t.reference&&"suffix"!==t.reference&&t.reference!==r.reference&&(r.error=r.error||"URI is not a "+t.reference+" reference.");var a=L[(t.scheme||r.scheme||"").toLowerCase()];if(t.unicodeSupport||a&&a.unicodeSupport)U(r,n);else{if(r.host&&(t.domainHost||a&&a.domainHost))try{r.host=D.toASCII(r.host.replace(n.PCT_ENCODED,V).toLowerCase())}catch(e){r.error=r.error||"Host's domain name can not be converted to ASCII via punycode: "+e}U(r,l)}a&&a.parse&&a.parse(r,t)}else r.error=r.error||"URI can not be parsed.";return r}function J(e,t){var r=!1!==t.iri?u:l,n=[];return void 0!==e.userinfo&&(n.push(e.userinfo),n.push("@")),void 0!==e.host&&n.push(K(q(String(e.host),r),r).replace(r.IPV6ADDRESS,(function(e,t,r){return"["+t+(r?"%25"+r:"")+"]"}))),"number"!=typeof e.port&&"string"!=typeof e.port||(n.push(":"),n.push(String(e.port))),n.length?n.join(""):void 0}var Y=/^\.\.?\//,X=/^\/\.(\/|$)/,Z=/^\/\.\.(\/|$)/,ee=/^\/?(?:.|\n)*?(?=\/|$)/;function te(e){for(var t=[];e.length;)if(e.match(Y))e=e.replace(Y,"");else if(e.match(X))e=e.replace(X,"/");else if(e.match(Z))e=e.replace(Z,"/"),t.pop();else if("."===e||".."===e)e="";else{var r=e.match(ee);if(!r)throw new Error("Unexpected dot segment condition");var n=r[0];e=e.slice(n.length),t.push(n)}return t.join("")}function re(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.iri?u:l,n=[],o=L[(t.scheme||e.scheme||"").toLowerCase()];if(o&&o.serialize&&o.serialize(e,t),e.host)if(r.IPV6ADDRESS.test(e.host));else if(t.domainHost||o&&o.domainHost)try{e.host=t.iri?D.toUnicode(e.host):D.toASCII(e.host.replace(r.PCT_ENCODED,V).toLowerCase())}catch(r){e.error=e.error||"Host's domain name can not be converted to "+(t.iri?"Unicode":"ASCII")+" via punycode: "+r}U(e,r),"suffix"!==t.reference&&e.scheme&&(n.push(e.scheme),n.push(":"));var a=J(e,t);if(void 0!==a&&("suffix"!==t.reference&&n.push("//"),n.push(a),e.path&&"/"!==e.path.charAt(0)&&n.push("/")),void 0!==e.path){var i=e.path;t.absolutePath||o&&o.absolutePath||(i=te(i)),void 0===a&&(i=i.replace(/^\/\//,"/%2F")),n.push(i)}return void 0!==e.query&&(n.push("?"),n.push(e.query)),void 0!==e.fragment&&(n.push("#"),n.push(e.fragment)),n.join("")}function ne(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n={};return arguments[3]||(e=Q(re(e,r),r),t=Q(re(t,r),r)),!(r=r||{}).tolerant&&t.scheme?(n.scheme=t.scheme,n.userinfo=t.userinfo,n.host=t.host,n.port=t.port,n.path=te(t.path||""),n.query=t.query):(void 0!==t.userinfo||void 0!==t.host||void 0!==t.port?(n.userinfo=t.userinfo,n.host=t.host,n.port=t.port,n.path=te(t.path||""),n.query=t.query):(t.path?("/"===t.path.charAt(0)?n.path=te(t.path):(void 0===e.userinfo&&void 0===e.host&&void 0===e.port||e.path?e.path?n.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+t.path:n.path=t.path:n.path="/"+t.path,n.path=te(n.path)),n.query=t.query):(n.path=e.path,void 0!==t.query?n.query=t.query:n.query=e.query),n.userinfo=e.userinfo,n.host=e.host,n.port=e.port),n.scheme=e.scheme),n.fragment=t.fragment,n}function oe(e,t,r){var n=i({scheme:"null"},r);return re(ne(Q(e,n),Q(t,n),n,!0),n)}function ae(e,t){return"string"==typeof e?e=re(Q(e,t),t):"object"===n(e)&&(e=Q(re(e,t),t)),e}function ie(e,t,r){return"string"==typeof e?e=re(Q(e,r),r):"object"===n(e)&&(e=re(e,r)),"string"==typeof t?t=re(Q(t,r),r):"object"===n(t)&&(t=re(t,r)),e===t}function se(e,t){return e&&e.toString().replace(t&&t.iri?u.ESCAPE:l.ESCAPE,B)}function le(e,t){return e&&e.toString().replace(t&&t.iri?u.PCT_ENCODED:l.PCT_ENCODED,V)}var ue={scheme:"http",domainHost:!0,parse:function(e,t){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e},serialize:function(e,t){var r="https"===String(e.scheme).toLowerCase();return e.port!==(r?443:80)&&""!==e.port||(e.port=void 0),e.path||(e.path="/"),e}},ce={scheme:"https",domainHost:ue.domainHost,parse:ue.parse,serialize:ue.serialize};function de(e){return"boolean"==typeof e.secure?e.secure:"wss"===String(e.scheme).toLowerCase()}var fe={scheme:"ws",domainHost:!0,parse:function(e,t){var r=e;return r.secure=de(r),r.resourceName=(r.path||"/")+(r.query?"?"+r.query:""),r.path=void 0,r.query=void 0,r},serialize:function(e,t){if(e.port!==(de(e)?443:80)&&""!==e.port||(e.port=void 0),"boolean"==typeof e.secure&&(e.scheme=e.secure?"wss":"ws",e.secure=void 0),e.resourceName){var r=e.resourceName.split("?"),n=c(r,2),o=n[0],a=n[1];e.path=o&&"/"!==o?o:void 0,e.query=a,e.resourceName=void 0}return e.fragment=void 0,e}},pe={scheme:"wss",domainHost:fe.domainHost,parse:fe.parse,serialize:fe.serialize},he={},me="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",ve="[0-9A-Fa-f]",ge=r(r("%[EFef]"+ve+"%"+ve+ve+"%"+ve+ve)+"|"+r("%[89A-Fa-f]"+ve+"%"+ve+ve)+"|"+r("%"+ve+ve)),ye="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",be=t("[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",'[\\"\\\\]'),we="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",Se=new RegExp(me,"g"),xe=new RegExp(ge,"g"),_e=new RegExp(t("[^]",ye,"[\\.]",'[\\"]',be),"g"),$e=new RegExp(t("[^]",me,we),"g"),ke=$e;function Ee(e){var t=V(e);return t.match(Se)?t:e}var je={scheme:"mailto",parse:function(e,t){var r=e,n=r.to=r.path?r.path.split(","):[];if(r.path=void 0,r.query){for(var o=!1,a={},i=r.query.split("&"),s=0,l=i.length;s<l;++s){var u=i[s].split("=");switch(u[0]){case"to":for(var c=u[1].split(","),d=0,f=c.length;d<f;++d)n.push(c[d]);break;case"subject":r.subject=le(u[1],t);break;case"body":r.body=le(u[1],t);break;default:o=!0,a[le(u[0],t)]=le(u[1],t)}}o&&(r.headers=a)}r.query=void 0;for(var p=0,h=n.length;p<h;++p){var m=n[p].split("@");if(m[0]=le(m[0]),t.unicodeSupport)m[1]=le(m[1],t).toLowerCase();else try{m[1]=D.toASCII(le(m[1],t).toLowerCase())}catch(e){r.error=r.error||"Email address's domain name can not be converted to ASCII via punycode: "+e}n[p]=m.join("@")}return r},serialize:function(e,t){var r=e,n=a(e.to);if(n){for(var i=0,s=n.length;i<s;++i){var l=String(n[i]),u=l.lastIndexOf("@"),c=l.slice(0,u).replace(xe,Ee).replace(xe,o).replace(_e,B),d=l.slice(u+1);try{d=t.iri?D.toUnicode(d):D.toASCII(le(d,t).toLowerCase())}catch(e){r.error=r.error||"Email address's domain name can not be converted to "+(t.iri?"Unicode":"ASCII")+" via punycode: "+e}n[i]=c+"@"+d}r.path=n.join(",")}var f=e.headers=e.headers||{};e.subject&&(f.subject=e.subject),e.body&&(f.body=e.body);var p=[];for(var h in f)f[h]!==he[h]&&p.push(h.replace(xe,Ee).replace(xe,o).replace($e,B)+"="+f[h].replace(xe,Ee).replace(xe,o).replace(ke,B));return p.length&&(r.query=p.join("&")),r}},Ce=/^([^\:]+)\:(.*)/,Oe={scheme:"urn",parse:function(e,t){var r=e.path&&e.path.match(Ce),n=e;if(r){var o=t.scheme||n.scheme||"urn",a=r[1].toLowerCase(),i=r[2],s=o+":"+(t.nid||a),l=L[s];n.nid=a,n.nss=i,n.path=void 0,l&&(n=l.parse(n,t))}else n.error=n.error||"URN can not be parsed.";return n},serialize:function(e,t){var r=t.scheme||e.scheme||"urn",n=e.nid,o=r+":"+(t.nid||n),a=L[o];a&&(e=a.serialize(e,t));var i=e,s=e.nss;return i.path=(n||t.nid)+":"+s,i}},Pe=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/,Ne={scheme:"urn:uuid",parse:function(e,t){var r=e;return r.uuid=r.nss,r.nss=void 0,t.tolerant||r.uuid&&r.uuid.match(Pe)||(r.error=r.error||"UUID is not valid."),r},serialize:function(e,t){var r=e;return r.nss=(e.uuid||"").toLowerCase(),r}};L[ue.scheme]=ue,L[ce.scheme]=ce,L[fe.scheme]=fe,L[pe.scheme]=pe,L[je.scheme]=je,L[Oe.scheme]=Oe,L[Ne.scheme]=Ne,e.SCHEMES=L,e.pctEncChar=B,e.pctDecChars=V,e.parse=Q,e.removeDotSegments=te,e.serialize=re,e.resolveComponents=ne,e.resolve=oe,e.normalize=ae,e.equal=ie,e.escapeComponent=se,e.unescapeComponent=le,Object.defineProperty(e,"__esModule",{value:!0})})(EP),Object.defineProperty(kP,"__esModule",{value:!0});const jP=EP;jP.code='require("ajv/dist/runtime/uri").default',kP.default=jP,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=rP();Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return t.KeywordCxt}});var r=pO();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=aP(),o=lP(),a=xO,i=uP,s=pO(),l=FO,u=SO,c=hO,d=$P,f=kP,p=(e,t)=>new RegExp(e,t);p.code="new RegExp";const h=["removeAdditional","useDefaults","coerceTypes"],m=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),v={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.'};function y(e){var t,r,n,o,a,i,s,l,u,c,d,h,m,v,g,y,b,w,S,x,_,$,k,E,j;const C=e.strict,O=null===(t=e.code)||void 0===t?void 0:t.optimize,P=!0===O||void 0===O?1:O||0,N=null!==(n=null===(r=e.code)||void 0===r?void 0:r.regExp)&&void 0!==n?n:p,R=null!==(o=e.uriResolver)&&void 0!==o?o:f.default;return{strictSchema:null===(i=null!==(a=e.strictSchema)&&void 0!==a?a:C)||void 0===i||i,strictNumbers:null===(l=null!==(s=e.strictNumbers)&&void 0!==s?s:C)||void 0===l||l,strictTypes:null!==(c=null!==(u=e.strictTypes)&&void 0!==u?u:C)&&void 0!==c?c:"log",strictTuples:null!==(h=null!==(d=e.strictTuples)&&void 0!==d?d:C)&&void 0!==h?h:"log",strictRequired:null!==(v=null!==(m=e.strictRequired)&&void 0!==m?m:C)&&void 0!==v&&v,code:e.code?{...e.code,optimize:P,regExp:N}:{optimize:P,regExp:N},loopRequired:null!==(g=e.loopRequired)&&void 0!==g?g:200,loopEnum:null!==(y=e.loopEnum)&&void 0!==y?y:200,meta:null===(b=e.meta)||void 0===b||b,messages:null===(w=e.messages)||void 0===w||w,inlineRefs:null===(S=e.inlineRefs)||void 0===S||S,schemaId:null!==(x=e.schemaId)&&void 0!==x?x:"$id",addUsedSchema:null===(_=e.addUsedSchema)||void 0===_||_,validateSchema:null===($=e.validateSchema)||void 0===$||$,validateFormats:null===(k=e.validateFormats)||void 0===k||k,unicodeRegExp:null===(E=e.unicodeRegExp)||void 0===E||E,int32range:null===(j=e.int32range)||void 0===j||j,uriResolver:R}}class b{constructor(e={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,e=this.opts={...e,...y(e)};const{es5:t,lines:r}=this.opts.code;this.scope=new s.ValueScope({scope:{},prefixes:m,es5:t,lines:r}),this.logger=function(e){if(!1===e)return E;if(void 0===e)return console;if(e.log&&e.warn&&e.error)return e;throw new Error("logger must implement log, warn and error methods")}(e.logger);const n=e.validateFormats;e.validateFormats=!1,this.RULES=(0,a.getRules)(),w.call(this,v,e,"NOT SUPPORTED"),w.call(this,g,e,"DEPRECATED","warn"),this._metaOpts=k.call(this),e.formats&&_.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),e.keywords&&$.call(this,e.keywords),"object"==typeof e.meta&&this.addMetaSchema(e.meta),x.call(this),e.validateFormats=n}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:e,meta:t,schemaId:r}=this.opts;let n=d;"id"===r&&(n={...d},n.id=n.$id,delete n.$id),t&&e&&this.addMetaSchema(n,n[r],!1)}defaultMeta(){const{meta:e,schemaId:t}=this.opts;return this.opts.defaultMeta="object"==typeof e?e[t]||e:void 0}validate(e,t){let r;if("string"==typeof e){if(r=this.getSchema(e),!r)throw new Error(`no schema with key or ref "${e}"`)}else r=this.compile(e);const n=r(t);return"$async"in r||(this.errors=r.errors),n}compile(e,t){const r=this._addSchema(e,t);return r.validate||this._compileSchemaEnv(r)}compileAsync(e,t){if("function"!=typeof this.opts.loadSchema)throw new Error("options.loadSchema should be a function");const{loadSchema:r}=this.opts;return n.call(this,e,t);async function n(e,t){await a.call(this,e.$schema);const r=this._addSchema(e,t);return r.validate||i.call(this,r)}async function a(e){e&&!this.getSchema(e)&&await n.call(this,{$ref:e},!0)}async function i(e){try{return this._compileSchemaEnv(e)}catch(t){if(!(t instanceof o.default))throw t;return s.call(this,t),await l.call(this,t.missingSchema),i.call(this,e)}}function s({missingSchema:e,missingRef:t}){if(this.refs[e])throw new Error(`AnySchema ${e} is loaded but ${t} cannot be resolved`)}async function l(e){const r=await u.call(this,e);this.refs[e]||await a.call(this,r.$schema),this.refs[e]||this.addSchema(r,e,t)}async function u(e){const t=this._loading[e];if(t)return t;try{return await(this._loading[e]=r(e))}finally{delete this._loading[e]}}}addSchema(e,t,r,n=this.opts.validateSchema){if(Array.isArray(e)){for(const t of e)this.addSchema(t,void 0,r,n);return this}let o;if("object"==typeof e){const{schemaId:t}=this.opts;if(o=e[t],void 0!==o&&"string"!=typeof o)throw new Error(`schema ${t} must be string`)}return t=(0,l.normalizeId)(t||o),this._checkUnique(t),this.schemas[t]=this._addSchema(e,r,t,n,!0),this}addMetaSchema(e,t,r=this.opts.validateSchema){return this.addSchema(e,t,!0,r),this}validateSchema(e,t){if("boolean"==typeof e)return!0;let r;if(r=e.$schema,void 0!==r&&"string"!=typeof r)throw new Error("$schema must be a string");if(r=r||this.opts.defaultMeta||this.defaultMeta(),!r)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const n=this.validate(r,e);if(!n&&t){const e="schema is invalid: "+this.errorsText();if("log"!==this.opts.validateSchema)throw new Error(e);this.logger.error(e)}return n}getSchema(e){let t;for(;"string"==typeof(t=S.call(this,e));)e=t;if(void 0===t){const{schemaId:r}=this.opts,n=new i.SchemaEnv({schema:{},schemaId:r});if(t=i.resolveSchema.call(this,n,e),!t)return;this.refs[e]=t}return t.validate||this._compileSchemaEnv(t)}removeSchema(e){if(e instanceof RegExp)return this._removeAllSchemas(this.schemas,e),this._removeAllSchemas(this.refs,e),this;switch(typeof e){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const t=S.call(this,e);return"object"==typeof t&&this._cache.delete(t.schema),delete this.schemas[e],delete this.refs[e],this}case"object":{const t=e;this._cache.delete(t);let r=e[this.opts.schemaId];return r&&(r=(0,l.normalizeId)(r),delete this.schemas[r],delete this.refs[r]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(e){for(const t of e)this.addKeyword(t);return this}addKeyword(e,t){let r;if("string"==typeof e)r=e,"object"==typeof t&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),t.keyword=r);else{if("object"!=typeof e||void 0!==t)throw new Error("invalid addKeywords parameters");if(r=(t=e).keyword,Array.isArray(r)&&!r.length)throw new Error("addKeywords: keyword must be string or non-empty array")}if(C.call(this,r,t),!t)return(0,c.eachItem)(r,(e=>O.call(this,e))),this;N.call(this,t);const n={...t,type:(0,u.getJSONTypes)(t.type),schemaType:(0,u.getJSONTypes)(t.schemaType)};return(0,c.eachItem)(r,0===n.type.length?e=>O.call(this,e,n):e=>n.type.forEach((t=>O.call(this,e,n,t)))),this}getKeyword(e){const t=this.RULES.all[e];return"object"==typeof t?t.definition:!!t}removeKeyword(e){const{RULES:t}=this;delete t.keywords[e],delete t.all[e];for(const r of t.rules){const t=r.rules.findIndex((t=>t.keyword===e));t>=0&&r.rules.splice(t,1)}return this}addFormat(e,t){return"string"==typeof t&&(t=new RegExp(t)),this.formats[e]=t,this}errorsText(e=this.errors,{separator:t=", ",dataVar:r="data"}={}){return e&&0!==e.length?e.map((e=>`${r}${e.instancePath} ${e.message}`)).reduce(((e,r)=>e+t+r)):"No errors"}$dataMetaSchema(e,t){const r=this.RULES.all;e=JSON.parse(JSON.stringify(e));for(const n of t){const t=n.split("/").slice(1);let o=e;for(const e of t)o=o[e];for(const e in r){const t=r[e];if("object"!=typeof t)continue;const{$data:n}=t.definition,a=o[e];n&&a&&(o[e]=T(a))}}return e}_removeAllSchemas(e,t){for(const r in e){const n=e[r];t&&!t.test(r)||("string"==typeof n?delete e[r]:n&&!n.meta&&(this._cache.delete(n.schema),delete e[r]))}}_addSchema(e,t,r,n=this.opts.validateSchema,o=this.opts.addUsedSchema){let a;const{schemaId:s}=this.opts;if("object"==typeof e)a=e[s];else{if(this.opts.jtd)throw new Error("schema must be object");if("boolean"!=typeof e)throw new Error("schema must be object or boolean")}let u=this._cache.get(e);if(void 0!==u)return u;r=(0,l.normalizeId)(a||r);const c=l.getSchemaRefs.call(this,e,r);return u=new i.SchemaEnv({schema:e,schemaId:s,meta:t,baseId:r,localRefs:c}),this._cache.set(u.schema,u),o&&!r.startsWith("#")&&(r&&this._checkUnique(r),this.refs[r]=u),n&&this.validateSchema(e,!0),u}_checkUnique(e){if(this.schemas[e]||this.refs[e])throw new Error(`schema with key or id "${e}" already exists`)}_compileSchemaEnv(e){if(e.meta?this._compileMetaSchema(e):i.compileSchema.call(this,e),!e.validate)throw new Error("ajv implementation error");return e.validate}_compileMetaSchema(e){const t=this.opts;this.opts=this._metaOpts;try{i.compileSchema.call(this,e)}finally{this.opts=t}}}function w(e,t,r,n="error"){for(const o in e){const a=o;a in t&&this.logger[n](`${r}: option ${o}. ${e[a]}`)}}function S(e){return e=(0,l.normalizeId)(e),this.schemas[e]||this.refs[e]}function x(){const e=this.opts.schemas;if(e)if(Array.isArray(e))this.addSchema(e);else for(const t in e)this.addSchema(e[t],t)}function _(){for(const e in this.opts.formats){const t=this.opts.formats[e];t&&this.addFormat(e,t)}}function $(e){if(Array.isArray(e))this.addVocabulary(e);else{this.logger.warn("keywords option as map is deprecated, pass array");for(const t in e){const r=e[t];r.keyword||(r.keyword=t),this.addKeyword(r)}}}function k(){const e={...this.opts};for(const t of h)delete e[t];return e}e.default=b,b.ValidationError=n.default,b.MissingRefError=o.default;const E={log(){},warn(){},error(){}};const j=/^[a-z_$][a-z0-9_$:-]*$/i;function C(e,t){const{RULES:r}=this;if((0,c.eachItem)(e,(e=>{if(r.keywords[e])throw new Error(`Keyword ${e} is already defined`);if(!j.test(e))throw new Error(`Keyword ${e} has invalid name`)})),t&&t.$data&&!("code"in t)&&!("validate"in t))throw new Error('$data keyword must have "code" or "validate" function')}function O(e,t,r){var n;const o=null==t?void 0:t.post;if(r&&o)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:a}=this;let i=o?a.post:a.rules.find((({type:e})=>e===r));if(i||(i={type:r,rules:[]},a.rules.push(i)),a.keywords[e]=!0,!t)return;const s={keyword:e,definition:{...t,type:(0,u.getJSONTypes)(t.type),schemaType:(0,u.getJSONTypes)(t.schemaType)}};t.before?P.call(this,i,s,t.before):i.rules.push(s),a.all[e]=s,null===(n=t.implements)||void 0===n||n.forEach((e=>this.addKeyword(e)))}function P(e,t,r){const n=e.rules.findIndex((e=>e.keyword===r));n>=0?e.rules.splice(n,0,t):(e.rules.push(t),this.logger.warn(`rule ${r} is not defined`))}function N(e){let{metaSchema:t}=e;void 0!==t&&(e.$data&&this.opts.$data&&(t=T(t)),e.validateSchema=this.compile(t,!0))}const R={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function T(e){return{anyOf:[e,R]}}}(rO);var CP={},OP={},PP={};Object.defineProperty(PP,"__esModule",{value:!0});const NP={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};PP.default=NP;var RP={};Object.defineProperty(RP,"__esModule",{value:!0}),RP.callRef=RP.getValidate=void 0;const TP=lP(),IP=TO(),MP=pO(),FP=bO(),zP=uP,DP=hO,LP={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 function(){if(a===u)return VP(e,i,a,a.$async);const r=t.scopeValue("root",{ref:u});return VP(e,MP._`${r}.validate`,u,u.$async)}();const c=zP.resolveRef.call(l,u,o,r);if(void 0===c)throw new TP.default(n.opts.uriResolver,o,r);return c instanceof zP.SchemaEnv?function(t){const r=BP(e,t);VP(e,r,t,t.$async)}(c):function(n){const o=t.scopeValue("schema",!0===s.code.source?{ref:n,code:(0,MP.stringify)(n)}:{ref:n}),a=t.name("valid"),i=e.subschema({schema:n,dataTypes:[],schemaPath:MP.nil,topSchemaRef:o,errSchemaPath:r},a);e.mergeEvaluated(i),e.ok(a)}(c)}};function BP(e,t){const{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):MP._`${r.scopeValue("wrapper",{ref:t})}.validate`}function VP(e,t,r,n){const{gen:o,it:a}=e,{allErrors:i,schemaEnv:s,opts:l}=a,u=l.passContext?FP.default.this:MP.nil;function c(e){const t=MP._`${e}.errors`;o.assign(FP.default.vErrors,MP._`${FP.default.vErrors} === null ? ${t} : ${FP.default.vErrors}.concat(${t})`),o.assign(FP.default.errors,MP._`${FP.default.vErrors}.length`)}function d(e){var t;if(!a.opts.unevaluated)return;const n=null===(t=null==r?void 0:r.validate)||void 0===t?void 0:t.evaluated;if(!0!==a.props)if(n&&!n.dynamicProps)void 0!==n.props&&(a.props=DP.mergeEvaluated.props(o,n.props,a.props));else{const t=o.var("props",MP._`${e}.evaluated.props`);a.props=DP.mergeEvaluated.props(o,t,a.props,MP.Name)}if(!0!==a.items)if(n&&!n.dynamicItems)void 0!==n.items&&(a.items=DP.mergeEvaluated.items(o,n.items,a.items));else{const t=o.var("items",MP._`${e}.evaluated.items`);a.items=DP.mergeEvaluated.items(o,t,a.items,MP.Name)}}n?function(){if(!s.$async)throw new Error("async schema referenced by sync schema");const r=o.let("valid");o.try((()=>{o.code(MP._`await ${(0,IP.callValidateCode)(e,t,u)}`),d(t),i||o.assign(r,!0)}),(e=>{o.if(MP._`!(${e} instanceof ${a.ValidationError})`,(()=>o.throw(e))),c(e),i||o.assign(r,!1)})),e.ok(r)}():e.result((0,IP.callValidateCode)(e,t,u),(()=>d(t)),(()=>c(t)))}RP.getValidate=BP,RP.callRef=VP,RP.default=LP,Object.defineProperty(OP,"__esModule",{value:!0});const UP=RP,WP=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",PP.default,UP.default];OP.default=WP;var qP={},KP={};Object.defineProperty(KP,"__esModule",{value:!0});const HP=pO(),GP=HP.operators,QP={maximum:{okStr:"<=",ok:GP.LTE,fail:GP.GT},minimum:{okStr:">=",ok:GP.GTE,fail:GP.LT},exclusiveMaximum:{okStr:"<",ok:GP.LT,fail:GP.GTE},exclusiveMinimum:{okStr:">",ok:GP.GT,fail:GP.LTE}},JP={message:({keyword:e,schemaCode:t})=>HP.str`must be ${QP[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>HP._`{comparison: ${QP[e].okStr}, limit: ${t}}`},YP={keyword:Object.keys(QP),type:"number",schemaType:"number",$data:!0,error:JP,code(e){const{keyword:t,data:r,schemaCode:n}=e;e.fail$data(HP._`${r} ${QP[t].fail} ${n} || isNaN(${r})`)}};KP.default=YP;var XP={};Object.defineProperty(XP,"__esModule",{value:!0});const ZP=pO(),eN={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:({schemaCode:e})=>ZP.str`must be multiple of ${e}`,params:({schemaCode:e})=>ZP._`{multipleOf: ${e}}`},code(e){const{gen:t,data:r,schemaCode:n,it:o}=e,a=o.opts.multipleOfPrecision,i=t.let("res"),s=a?ZP._`Math.abs(Math.round(${i}) - ${i}) > 1e-${a}`:ZP._`${i} !== parseInt(${i})`;e.fail$data(ZP._`(${n} === 0 || (${i} = ${r}/${n}, ${s}))`)}};XP.default=eN;var tN={},rN={};function nN(e){const t=e.length;let r,n=0,o=0;for(;o<t;)n++,r=e.charCodeAt(o++),r>=55296&&r<=56319&&o<t&&(r=e.charCodeAt(o),56320==(64512&r)&&o++);return n}Object.defineProperty(rN,"__esModule",{value:!0}),rN.default=nN,nN.code='require("ajv/dist/runtime/ucs2length").default',Object.defineProperty(tN,"__esModule",{value:!0});const oN=pO(),aN=hO,iN=rN,sN={message({keyword:e,schemaCode:t}){const r="maxLength"===e?"more":"fewer";return oN.str`must NOT have ${r} than ${t} characters`},params:({schemaCode:e})=>oN._`{limit: ${e}}`},lN={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:sN,code(e){const{keyword:t,data:r,schemaCode:n,it:o}=e,a="maxLength"===t?oN.operators.GT:oN.operators.LT,i=!1===o.opts.unicode?oN._`${r}.length`:oN._`${(0,aN.useFunc)(e.gen,iN.default)}(${r})`;e.fail$data(oN._`${i} ${a} ${n}`)}};tN.default=lN;var uN={};Object.defineProperty(uN,"__esModule",{value:!0});const cN=TO(),dN=pO(),fN={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:{message:({schemaCode:e})=>dN.str`must match pattern "${e}"`,params:({schemaCode:e})=>dN._`{pattern: ${e}}`},code(e){const{data:t,$data:r,schema:n,schemaCode:o,it:a}=e,i=a.opts.unicodeRegExp?"u":"",s=r?dN._`(new RegExp(${o}, ${i}))`:(0,cN.usePattern)(e,n);e.fail$data(dN._`!${s}.test(${t})`)}};uN.default=fN;var pN={};Object.defineProperty(pN,"__esModule",{value:!0});const hN=pO(),mN={message({keyword:e,schemaCode:t}){const r="maxProperties"===e?"more":"fewer";return hN.str`must NOT have ${r} than ${t} properties`},params:({schemaCode:e})=>hN._`{limit: ${e}}`},vN={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:mN,code(e){const{keyword:t,data:r,schemaCode:n}=e,o="maxProperties"===t?hN.operators.GT:hN.operators.LT;e.fail$data(hN._`Object.keys(${r}).length ${o} ${n}`)}};pN.default=vN;var gN={};Object.defineProperty(gN,"__esModule",{value:!0});const yN=TO(),bN=pO(),wN=hO,SN={keyword:"required",type:"object",schemaType:"array",$data:!0,error:{message:({params:{missingProperty:e}})=>bN.str`must have required property '${e}'`,params:({params:{missingProperty:e}})=>bN._`{missingProperty: ${e}}`},code(e){const{gen:t,schema:r,schemaCode:n,data:o,$data:a,it:i}=e,{opts:s}=i;if(!a&&0===r.length)return;const l=r.length>=s.loopRequired;if(i.allErrors?function(){if(l||a)e.block$data(bN.nil,u);else for(const t of r)(0,yN.checkReportMissingProp)(e,t)}():function(){const i=t.let("missing");if(l||a){const r=t.let("valid",!0);e.block$data(r,(()=>function(r,a){e.setParams({missingProperty:r}),t.forOf(r,n,(()=>{t.assign(a,(0,yN.propertyInData)(t,o,r,s.ownProperties)),t.if((0,bN.not)(a),(()=>{e.error(),t.break()}))}),bN.nil)}(i,r))),e.ok(r)}else t.if((0,yN.checkMissingProp)(e,r,i)),(0,yN.reportMissingProp)(e,i),t.else()}(),s.strictRequired){const t=e.parentSchema.properties,{definedProperties:n}=e.it;for(const e of r)if(void 0===(null==t?void 0:t[e])&&!n.has(e)){const t=`required property "${e}" is not defined at "${i.schemaEnv.baseId+i.errSchemaPath}" (strictRequired)`;(0,wN.checkStrictMode)(i,t,i.opts.strictRequired)}}function u(){t.forOf("prop",n,(r=>{e.setParams({missingProperty:r}),t.if((0,yN.noPropertyInData)(t,o,r,s.ownProperties),(()=>e.error()))}))}}};gN.default=SN;var xN={};Object.defineProperty(xN,"__esModule",{value:!0});const _N=pO(),$N={message({keyword:e,schemaCode:t}){const r="maxItems"===e?"more":"fewer";return _N.str`must NOT have ${r} than ${t} items`},params:({schemaCode:e})=>_N._`{limit: ${e}}`},kN={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:$N,code(e){const{keyword:t,data:r,schemaCode:n}=e,o="maxItems"===t?_N.operators.GT:_N.operators.LT;e.fail$data(_N._`${r}.length ${o} ${n}`)}};xN.default=kN;var EN={},jN={};Object.defineProperty(jN,"__esModule",{value:!0});const CN=zO;CN.code='require("ajv/dist/runtime/equal").default',jN.default=CN,Object.defineProperty(EN,"__esModule",{value:!0});const ON=SO,PN=pO(),NN=hO,RN=jN,TN={message:({params:{i:e,j:t}})=>PN.str`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>PN._`{i: ${e}, j: ${t}}`},AN={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:TN,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,ON.getSchemaTypes)(a.items):[];function c(n,o){const a=t.name("item"),i=(0,ON.checkDataTypes)(u,a,s.opts.strictNumbers,ON.DataType.Wrong),c=t.const("indices",PN._`{}`);t.for(PN._`;${n}--;`,(()=>{t.let(a,PN._`${r}[${n}]`),t.if(i,PN._`continue`),u.length>1&&t.if(PN._`typeof ${a} == "string"`,PN._`${a} += "_"`),t.if(PN._`typeof ${c}[${a}] == "number"`,(()=>{t.assign(o,PN._`${c}[${a}]`),e.error(),t.assign(l,!1).break()})).code(PN._`${c}[${a}] = ${n}`)}))}function d(n,o){const a=(0,NN.useFunc)(t,RN.default),i=t.name("outer");t.label(i).for(PN._`;${n}--;`,(()=>t.for(PN._`${o} = ${n}; ${o}--;`,(()=>t.if(PN._`${a}(${r}[${n}], ${r}[${o}])`,(()=>{e.error(),t.assign(l,!1).break(i)}))))))}e.block$data(l,(function(){const n=t.let("i",PN._`${r}.length`),o=t.let("j");e.setParams({i:n,j:o}),t.assign(l,!0),t.if(PN._`${n} > 1`,(()=>(u.length>0&&!u.some((e=>"object"===e||"array"===e))?c:d)(n,o)))}),PN._`${i} === false`),e.ok(l)}};EN.default=AN;var IN={};Object.defineProperty(IN,"__esModule",{value:!0});const MN=pO(),FN=hO,zN=jN,DN={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:({schemaCode:e})=>MN._`{allowedValue: ${e}}`},code(e){const{gen:t,data:r,$data:n,schemaCode:o,schema:a}=e;n||a&&"object"==typeof a?e.fail$data(MN._`!${(0,FN.useFunc)(t,zN.default)}(${r}, ${o})`):e.fail(MN._`${a} !== ${r}`)}};IN.default=DN;var LN={};Object.defineProperty(LN,"__esModule",{value:!0});const BN=pO(),VN=hO,UN=jN,WN={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:({schemaCode:e})=>BN._`{allowedValues: ${e}}`},code(e){const{gen:t,data:r,$data:n,schema:o,schemaCode:a,it:i}=e;if(!n&&0===o.length)throw new Error("enum must have non-empty array");const s=o.length>=i.opts.loopEnum;let l;const u=()=>null!=l?l:l=(0,VN.useFunc)(t,UN.default);let c;if(s||n)c=t.let("valid"),e.block$data(c,(function(){t.assign(c,!1),t.forOf("v",a,(e=>t.if(BN._`${u()}(${r}, ${e})`,(()=>t.assign(c,!0).break()))))}));else{if(!Array.isArray(o))throw new Error("ajv implementation error");const e=t.const("vSchema",a);c=(0,BN.or)(...o.map(((t,n)=>function(e,t){const n=o[t];return"object"==typeof n&&null!==n?BN._`${u()}(${r}, ${e}[${t}])`:BN._`${r} === ${n}`}(e,n))))}e.pass(c)}};LN.default=WN,Object.defineProperty(qP,"__esModule",{value:!0});const qN=XP,KN=tN,HN=uN,GN=pN,QN=gN,JN=xN,YN=EN,XN=IN,ZN=LN,eR=[KP.default,qN.default,KN.default,HN.default,GN.default,QN.default,JN.default,YN.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},XN.default,ZN.default];qP.default=eR;var tR={},rR={};Object.defineProperty(rR,"__esModule",{value:!0}),rR.validateAdditionalItems=void 0;const nR=pO(),oR=hO,aR={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:({params:{len:e}})=>nR.str`must NOT have more than ${e} items`,params:({params:{len:e}})=>nR._`{limit: ${e}}`},code(e){const{parentSchema:t,it:r}=e,{items:n}=t;Array.isArray(n)?iR(e,n):(0,oR.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas')}};function iR(e,t){const{gen:r,schema:n,data:o,keyword:a,it:i}=e;i.items=!0;const s=r.const("len",nR._`${o}.length`);if(!1===n)e.setParams({len:t.length}),e.pass(nR._`${s} <= ${t.length}`);else if("object"==typeof n&&!(0,oR.alwaysValidSchema)(i,n)){const n=r.var("valid",nR._`${s} <= ${t.length}`);r.if((0,nR.not)(n),(()=>function(n){r.forRange("i",t.length,s,(t=>{e.subschema({keyword:a,dataProp:t,dataPropType:oR.Type.Num},n),i.allErrors||r.if((0,nR.not)(n),(()=>r.break()))}))}(n))),e.ok(n)}}rR.validateAdditionalItems=iR,rR.default=aR;var sR={},lR={};Object.defineProperty(lR,"__esModule",{value:!0}),lR.validateTuple=void 0;const uR=pO(),cR=hO,dR=TO(),fR={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){const{schema:t,it:r}=e;if(Array.isArray(t))return pR(e,"additionalItems",t);r.items=!0,(0,cR.alwaysValidSchema)(r,t)||e.ok((0,dR.validateArray)(e))}};function pR(e,t,r=e.schema){const{gen:n,parentSchema:o,data:a,keyword:i,it:s}=e;!function(e){const{opts:n,errSchemaPath:o}=s,a=r.length,l=a===e.minItems&&(a===e.maxItems||!1===e[t]);if(n.strictTuples&&!l){const e=`"${i}" is ${a}-tuple, but minItems or maxItems/${t} are not specified or different at path "${o}"`;(0,cR.checkStrictMode)(s,e,n.strictTuples)}}(o),s.opts.unevaluated&&r.length&&!0!==s.items&&(s.items=cR.mergeEvaluated.items(n,r.length,s.items));const l=n.name("valid"),u=n.const("len",uR._`${a}.length`);r.forEach(((t,r)=>{(0,cR.alwaysValidSchema)(s,t)||(n.if(uR._`${u} > ${r}`,(()=>e.subschema({keyword:i,schemaProp:r,dataProp:r},l))),e.ok(l))}))}lR.validateTuple=pR,lR.default=fR,Object.defineProperty(sR,"__esModule",{value:!0});const hR=lR,mR={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,hR.validateTuple)(e,"items")};sR.default=mR;var vR={};Object.defineProperty(vR,"__esModule",{value:!0});const gR=pO(),yR=hO,bR=TO(),wR=rR,SR={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:({params:{len:e}})=>gR.str`must NOT have more than ${e} items`,params:({params:{len:e}})=>gR._`{limit: ${e}}`},code(e){const{schema:t,parentSchema:r,it:n}=e,{prefixItems:o}=r;n.items=!0,(0,yR.alwaysValidSchema)(n,t)||(o?(0,wR.validateAdditionalItems)(e,o):e.ok((0,bR.validateArray)(e)))}};vR.default=SR;var xR={};Object.defineProperty(xR,"__esModule",{value:!0});const _R=pO(),$R=hO,kR={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:{message:({params:{min:e,max:t}})=>void 0===t?_R.str`must contain at least ${e} valid item(s)`:_R.str`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>void 0===t?_R._`{minContains: ${e}}`:_R._`{minContains: ${e}, maxContains: ${t}}`},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=void 0===l?1:l,s=u):i=1;const c=t.const("len",_R._`${o}.length`);if(e.setParams({min:i,max:s}),void 0===s&&0===i)return void(0,$R.checkStrictMode)(a,'"minContains" == 0 without "maxContains": "contains" keyword ignored');if(void 0!==s&&i>s)return(0,$R.checkStrictMode)(a,'"minContains" > "maxContains" is always invalid'),void e.fail();if((0,$R.alwaysValidSchema)(a,r)){let t=_R._`${c} >= ${i}`;return void 0!==s&&(t=_R._`${t} && ${c} <= ${s}`),void e.pass(t)}a.items=!0;const d=t.name("valid");function f(){const e=t.name("_valid"),r=t.let("count",0);p(e,(()=>t.if(e,(()=>function(e){t.code(_R._`${e}++`),void 0===s?t.if(_R._`${e} >= ${i}`,(()=>t.assign(d,!0).break())):(t.if(_R._`${e} > ${s}`,(()=>t.assign(d,!1).break())),1===i?t.assign(d,!0):t.if(_R._`${e} >= ${i}`,(()=>t.assign(d,!0))))}(r)))))}function p(r,n){t.forRange("i",0,c,(t=>{e.subschema({keyword:"contains",dataProp:t,dataPropType:$R.Type.Num,compositeRule:!0},r),n()}))}void 0===s&&1===i?p(d,(()=>t.if(d,(()=>t.break())))):0===i?(t.let(d,!0),void 0!==s&&t.if(_R._`${o}.length > 0`,f)):(t.let(d,!1),f()),e.result(d,(()=>e.reset()))}};xR.default=kR;var ER={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0;const t=pO(),r=hO,n=TO();e.error={message:({params:{property:e,depsCount:r,deps:n}})=>{const o=1===r?"property":"properties";return t.str`must have ${o} ${n} when property ${e} is present`},params:({params:{property:e,depsCount:r,deps:n,missingProperty:o}})=>t._`{property: ${e},
|
|
27
48
|
missingProperty: ${o},
|
|
28
49
|
depsCount: ${r},
|
|
29
|
-
deps: ${n}}`};const o={keyword:"dependencies",type:"object",schemaType:"object",error:e.error,code(e){const[t,r]=function({schema:e}){const t={},r={};for(const n in e){if("__proto__"===n)continue;(Array.isArray(e[n])?t:r)[n]=e[n]}return[t,r]}(e);a(e,t),i(e,r)}};function a(e,r=e.schema){const{gen:o,data:a,it:i}=e;if(0===Object.keys(r).length)return;const s=o.let("missing");for(const l in r){const u=r[l];if(0===u.length)continue;const c=(0,n.propertyInData)(o,a,l,i.opts.ownProperties);e.setParams({property:l,depsCount:u.length,deps:u.join(", ")}),i.allErrors?o.if(c,(()=>{for(const t of u)(0,n.checkReportMissingProp)(e,t)})):(o.if(t._`${c} && (${(0,n.checkMissingProp)(e,u,s)})`),(0,n.reportMissingProp)(e,s),o.else())}}function i(e,t=e.schema){const{gen:o,data:a,keyword:i,it:s}=e,l=o.name("valid");for(const u in t)(0,r.alwaysValidSchema)(s,t[u])||(o.if((0,n.propertyInData)(o,a,u,s.opts.ownProperties),(()=>{const t=e.subschema({keyword:i,schemaProp:u},l);e.mergeValidEvaluated(t,l)}),(()=>o.var(l,!0))),e.ok(l))}e.validatePropertyDeps=a,e.validateSchemaDeps=i,e.default=o}(kM);var _M={};Object.defineProperty(_M,"__esModule",{value:!0});const EM=fT(),CM=pT,PM={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:e})=>EM._`{propertyName: ${e.propertyName}}`},code(e){const{gen:t,schema:r,data:n,it:o}=e;if((0,CM.alwaysValidSchema)(o,r))return;const a=t.name("valid");t.forIn("key",n,(r=>{e.setParams({propertyName:r}),e.subschema({keyword:"propertyNames",data:r,dataTypes:["string"],propertyName:r,compositeRule:!0},a),t.if((0,EM.not)(a),(()=>{e.error(!0),o.allErrors||t.break()}))})),e.ok(a)}};_M.default=PM;var jM={};Object.defineProperty(jM,"__esModule",{value:!0});const OM=RT(),NM=fT(),RM=gT(),TM=pT,AM={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:e})=>NM._`{additionalProperty: ${e.additionalProperty}}`},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,"all"!==l.removeAdditional&&(0,TM.alwaysValidSchema)(i,r))return;const u=(0,OM.allSchemaProperties)(n.properties),c=(0,OM.allSchemaProperties)(n.patternProperties);function d(e){t.code(NM._`delete ${o}[${e}]`)}function f(n){if("all"===l.removeAdditional||l.removeAdditional&&!1===r)d(n);else{if(!1===r)return e.setParams({additionalProperty:n}),e.error(),void(s||t.break());if("object"==typeof r&&!(0,TM.alwaysValidSchema)(i,r)){const r=t.name("valid");"failing"===l.removeAdditional?(p(n,r,!1),t.if((0,NM.not)(r),(()=>{e.reset(),d(n)}))):(p(n,r),s||t.if((0,NM.not)(r),(()=>t.break())))}}}function p(t,r,n){const o={keyword:"additionalProperties",dataProp:t,dataPropType:TM.Type.Str};!1===n&&Object.assign(o,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(o,r)}t.forIn("key",o,(r=>{u.length||c.length?t.if(function(r){let o;if(u.length>8){const e=(0,TM.schemaRefOrVal)(i,n.properties,"properties");o=(0,OM.isOwnProperty)(t,e,r)}else o=u.length?(0,NM.or)(...u.map((e=>NM._`${r} === ${e}`))):NM.nil;return c.length&&(o=(0,NM.or)(o,...c.map((t=>NM._`${(0,OM.usePattern)(e,t)}.test(${r})`)))),(0,NM.not)(o)}(r),(()=>f(r))):f(r)})),e.ok(NM._`${a} === ${RM.default.errors}`)}};jM.default=AM;var IM={};Object.defineProperty(IM,"__esModule",{value:!0});const MM=tA(),FM=RT(),DM=pT,zM=jM,LM={keyword:"properties",type:"object",schemaType:"object",code(e){const{gen:t,schema:r,parentSchema:n,data:o,it:a}=e;"all"===a.opts.removeAdditional&&void 0===n.additionalProperties&&zM.default.code(new MM.KeywordCxt(a,zM.default,"additionalProperties"));const i=(0,FM.allSchemaProperties)(r);for(const e of i)a.definedProperties.add(e);a.opts.unevaluated&&i.length&&!0!==a.props&&(a.props=DM.mergeEvaluated.props(t,(0,DM.toHash)(i),a.props));const s=i.filter((e=>!(0,DM.alwaysValidSchema)(a,r[e])));if(0===s.length)return;const l=t.name("valid");for(const r of s)u(r)?c(r):(t.if((0,FM.propertyInData)(t,o,r,a.opts.ownProperties)),c(r),a.allErrors||t.else().var(l,!0),t.endIf()),e.it.definedProperties.add(r),e.ok(l);function u(e){return a.opts.useDefaults&&!a.compositeRule&&void 0!==r[e].default}function c(t){e.subschema({keyword:"properties",schemaProp:t,dataProp:t},l)}}};IM.default=LM;var BM={};Object.defineProperty(BM,"__esModule",{value:!0});const VM=RT(),UM=fT(),WM=pT,qM=pT,KM={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,VM.allSchemaProperties)(r),l=s.filter((e=>(0,WM.alwaysValidSchema)(a,r[e])));if(0===s.length||l.length===s.length&&(!a.opts.unevaluated||!0===a.props))return;const u=i.strictSchema&&!i.allowMatchingProperties&&o.properties,c=t.name("valid");!0===a.props||a.props instanceof UM.Name||(a.props=(0,qM.evaluatedPropsToName)(t,a.props));const{props:d}=a;function f(e){for(const t in u)new RegExp(e).test(t)&&(0,WM.checkStrictMode)(a,`property ${t} matches pattern ${e} (use allowMatchingProperties)`)}function p(r){t.forIn("key",n,(n=>{t.if(UM._`${(0,VM.usePattern)(e,r)}.test(${n})`,(()=>{const o=l.includes(r);o||e.subschema({keyword:"patternProperties",schemaProp:r,dataProp:n,dataPropType:qM.Type.Str},c),a.opts.unevaluated&&!0!==d?t.assign(UM._`${d}[${n}]`,!0):o||a.allErrors||t.if((0,UM.not)(c),(()=>t.break()))}))}))}!function(){for(const e of s)u&&f(e),a.allErrors?p(e):(t.var(c,!0),p(e),t.if(c))}()}};BM.default=KM;var HM={};Object.defineProperty(HM,"__esModule",{value:!0});const GM=pT,QM={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){const{gen:t,schema:r,it:n}=e;if((0,GM.alwaysValidSchema)(n,r))return void e.fail();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"}};HM.default=QM;var XM={};Object.defineProperty(XM,"__esModule",{value:!0});const YM={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:RT().validateUnion,error:{message:"must match a schema in anyOf"}};XM.default=YM;var JM={};Object.defineProperty(JM,"__esModule",{value:!0});const ZM=fT(),eF=pT,tF={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:e})=>ZM._`{passingSchemas: ${e.passing}}`},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((function(){a.forEach(((r,n)=>{let a;(0,eF.alwaysValidSchema)(o,r)?t.var(l,!0):a=e.subschema({keyword:"oneOf",schemaProp:n,compositeRule:!0},l),n>0&&t.if(ZM._`${l} && ${i}`).assign(i,!1).assign(s,ZM._`[${s}, ${n}]`).else(),t.if(l,(()=>{t.assign(i,!0),t.assign(s,n),a&&e.mergeEvaluated(a,ZM.Name)}))}))})),e.result(i,(()=>e.reset()),(()=>e.error(!0)))}};JM.default=tF;var rF={};Object.defineProperty(rF,"__esModule",{value:!0});const nF=pT,oF={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(((t,r)=>{if((0,nF.alwaysValidSchema)(n,t))return;const a=e.subschema({keyword:"allOf",schemaProp:r},o);e.ok(o),e.mergeEvaluated(a)}))}};rF.default=oF;var aF={};Object.defineProperty(aF,"__esModule",{value:!0});const iF=fT(),sF=pT,lF={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:e})=>iF.str`must match "${e.ifClause}" schema`,params:({params:e})=>iF._`{failingKeyword: ${e.ifClause}}`},code(e){const{gen:t,parentSchema:r,it:n}=e;void 0===r.then&&void 0===r.else&&(0,sF.checkStrictMode)(n,'"if" without "then" and "else" is ignored');const o=uF(n,"then"),a=uF(n,"else");if(!o&&!a)return;const i=t.let("valid",!0),s=t.name("_valid");if(function(){const t=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},s);e.mergeEvaluated(t)}(),e.reset(),o&&a){const r=t.let("ifClause");e.setParams({ifClause:r}),t.if(s,l("then",r),l("else",r))}else o?t.if(s,l("then")):t.if((0,iF.not)(s),l("else"));function l(r,n){return()=>{const o=e.subschema({keyword:r},s);t.assign(i,s),e.mergeValidEvaluated(o,i),n?t.assign(n,iF._`${r}`):e.setParams({ifClause:r})}}e.pass(i,(()=>e.error(!0)))}};function uF(e,t){const r=e.schema[t];return void 0!==r&&!(0,sF.alwaysValidSchema)(e,r)}aF.default=lF;var cF={};Object.defineProperty(cF,"__esModule",{value:!0});const dF=pT,fF={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){void 0===t.if&&(0,dF.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};cF.default=fF,Object.defineProperty(ZI,"__esModule",{value:!0});const pF=eM,mF=aM,hF=iM,vF=mM,yF=wM,gF=kM,bF=_M,wF=jM,SF=IM,xF=BM,$F=HM,kF=XM,_F=JM,EF=rF,CF=aF,PF=cF;ZI.default=function(e=!1){const t=[$F.default,kF.default,_F.default,EF.default,CF.default,PF.default,bF.default,wF.default,gF.default,SF.default,xF.default];return e?t.push(mF.default,vF.default):t.push(pF.default,hF.default),t.push(yF.default),t};var jF={},OF={};Object.defineProperty(OF,"__esModule",{value:!0});const NF=fT(),RF={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:e})=>NF.str`must match format "${e}"`,params:({schemaCode:e})=>NF._`{format: ${e}}`},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;l.validateFormats&&(o?function(){const o=r.scopeValue("formats",{ref:d.formats,code:l.code.formats}),a=r.const("fDef",NF._`${o}[${i}]`),s=r.let("fType"),u=r.let("format");r.if(NF._`typeof ${a} == "object" && !(${a} instanceof RegExp)`,(()=>r.assign(s,NF._`${a}.type || "string"`).assign(u,NF._`${a}.validate`)),(()=>r.assign(s,NF._`"string"`).assign(u,a))),e.fail$data((0,NF.or)(!1===l.strictSchema?NF.nil:NF._`${i} && !${u}`,function(){const e=c.$async?NF._`(${a}.async ? await ${u}(${n}) : ${u}(${n}))`:NF._`${u}(${n})`,r=NF._`(typeof ${u} == "function" ? ${e} : ${u}.test(${n}))`;return NF._`${u} && ${u} !== true && ${s} === ${t} && !${r}`}()))}():function(){const o=d.formats[a];if(!o)return void function(){if(!1===l.strictSchema)return void d.logger.warn(e());throw new Error(e());function e(){return`unknown format "${a}" ignored in schema at path "${u}"`}}();if(!0===o)return;const[i,s,f]=function(e){const t=e instanceof RegExp?(0,NF.regexpCode)(e):l.code.formats?NF._`${l.code.formats}${(0,NF.getProperty)(a)}`:void 0,n=r.scopeValue("formats",{key:a,ref:e,code:t});if("object"==typeof e&&!(e instanceof RegExp))return[e.type||"string",e.validate,NF._`${n}.validate`];return["string",e,n]}(o);i===t&&e.pass(function(){if("object"==typeof o&&!(o instanceof RegExp)&&o.async){if(!c.$async)throw new Error("async format in sync schema");return NF._`await ${f}(${n})`}return"function"==typeof s?NF._`${f}(${n})`:NF._`${f}.test(${n})`}())}())}};OF.default=RF,Object.defineProperty(jF,"__esModule",{value:!0});const TF=[OF.default];jF.default=TF;var AF={};Object.defineProperty(AF,"__esModule",{value:!0}),AF.contentVocabulary=AF.metadataVocabulary=void 0,AF.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],AF.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"],Object.defineProperty(CA,"__esModule",{value:!0});const IF=UA,MF=ZI,FF=jF,DF=AF,zF=[PA.default,IF.default,(0,MF.default)(),FF.default,DF.metadataVocabulary,DF.contentVocabulary];CA.default=zF;var LF={},BF={};!function(e){var t;Object.defineProperty(e,"__esModule",{value:!0}),e.DiscrError=void 0,(t=e.DiscrError||(e.DiscrError={})).Tag="tag",t.Mapping="mapping"}(BF),Object.defineProperty(LF,"__esModule",{value:!0});const VF=fT(),UF=BF,WF=lA,qF=pT,KF={keyword:"discriminator",type:"object",schemaType:"object",error:{message:({params:{discrError:e,tagName:t}})=>e===UF.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:t,tagName:r}})=>VF._`{error: ${e}, tag: ${r}, tagValue: ${t}}`},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("string"!=typeof s)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",VF._`${r}${(0,VF.getProperty)(s)}`);function c(r){const n=t.name("valid"),o=e.subschema({keyword:"oneOf",schemaProp:r},n);return e.mergeEvaluated(o,VF.Name),n}t.if(VF._`typeof ${u} == "string"`,(()=>function(){const r=function(){var e;const t={},r=l(o);let n=!0;for(let t=0;t<i.length;t++){let o=i[t];(null==o?void 0:o.$ref)&&!(0,qF.schemaHasRulesButRef)(o,a.self.RULES)&&(o=WF.resolveRef.call(a.self,a.schemaEnv.root,a.baseId,null==o?void 0:o.$ref),o instanceof WF.SchemaEnv&&(o=o.schema));const c=null===(e=null==o?void 0:o.properties)||void 0===e?void 0:e[s];if("object"!=typeof c)throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${s}"`);n=n&&(r||l(o)),u(c,t)}if(!n)throw new Error(`discriminator: "${s}" must be required`);return t;function l({required:e}){return Array.isArray(e)&&e.includes(s)}function u(e,t){if(e.const)c(e.const,t);else{if(!e.enum)throw new Error(`discriminator: "properties/${s}" must have "const" or "enum"`);for(const r of e.enum)c(r,t)}}function c(e,r){if("string"!=typeof e||e in t)throw new Error(`discriminator: "${s}" values must be unique strings`);t[e]=r}}();t.if(!1);for(const e in r)t.elseIf(VF._`${u} === ${e}`),t.assign(l,c(r[e]));t.else(),e.error(!1,{discrError:UF.DiscrError.Mapping,tag:u,tagName:s}),t.endIf()}()),(()=>e.error(!1,{discrError:UF.DiscrError.Tag,tag:u,tagName:s}))),e.ok(l)}};LF.default=KF;var HF={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://json-schema.org/draft-07/schema#",title:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0};!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=tT,n=CA,o=LF,a=HF,i=["/properties"],s="http://json-schema.org/draft-07/schema";class l extends r.default{_addVocabularies(){super._addVocabularies(),n.default.forEach((e=>this.addVocabulary(e))),this.opts.discriminator&&this.addKeyword(o.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const e=this.opts.$data?this.$dataMetaSchema(a,i):a;this.addMetaSchema(e,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=tA();Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return u.KeywordCxt}});var c=fT();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=oA();Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return d.default}});var f=sA();Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return f.default}})}(eT,ZR);var GF=n(ZR),QF={},XF={get exports(){return QF},set exports(e){QF=e}},YF={};!function(e){function t(e,t){return{validate:e,compare:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.formatNames=e.fastFormats=e.fullFormats=void 0,e.fullFormats={date:t(o,a),time:t(s,l),"date-time":t((function(e){const t=e.split(u);return 2===t.length&&o(t[0])&&s(t[1],!0)}),c),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:function(e){return d.test(e)&&f.test(e)},"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:function(e){if(y.test(e))return!1;try{return new RegExp(e),!0}catch(e){return!1}},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:function(e){return p.lastIndex=0,p.test(e)},int32:{type:"number",validate:function(e){return Number.isInteger(e)&&e<=h&&e>=m}},int64:{type:"number",validate:function(e){return Number.isInteger(e)}},float:{type:"number",validate:v},double:{type:"number",validate:v},password:!0,binary:!0},e.fastFormats={...e.fullFormats,date:t(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,a),time:t(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,l),"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,c),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);const r=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,n=[0,31,28,31,30,31,30,31,31,30,31,30,31];function o(e){const t=r.exec(e);if(!t)return!1;const o=+t[1],a=+t[2],i=+t[3];return a>=1&&a<=12&&i>=1&&i<=(2===a&&function(e){return e%4==0&&(e%100!=0||e%400==0)}(o)?29:n[a])}function a(e,t){if(e&&t)return e>t?1:e<t?-1:0}const i=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i;function s(e,t){const r=i.exec(e);if(!r)return!1;const n=+r[1],o=+r[2],a=+r[3],s=r[5];return(n<=23&&o<=59&&a<=59||23===n&&59===o&&60===a)&&(!t||""!==s)}function l(e,t){if(!e||!t)return;const r=i.exec(e),n=i.exec(t);return r&&n?(e=r[1]+r[2]+r[3]+(r[4]||""))>(t=n[1]+n[2]+n[3]+(n[4]||""))?1:e<t?-1:0:void 0}const u=/t|\s/i;function c(e,t){if(!e||!t)return;const[r,n]=e.split(u),[o,i]=t.split(u),s=a(r,o);return void 0!==s?s||l(n,i):void 0}const d=/\/|:/,f=/^(?:[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;const p=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;const m=-(2**31),h=2**31-1;function v(){return!0}const y=/[^\\]\\Z/}(YF);var JF={},ZF={},eD={get exports(){return ZF},set exports(e){ZF=e}},tD={},rD={},nD={},oD={},aD={},iD={};!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(t){if(super(),!e.IDENTIFIER.test(t))throw new Error("CodeGen: name must be a valid identifier");this.str=t}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}e.Name=r;class n extends t{constructor(e){super(),this._items="string"==typeof e?[e]:e}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const e=this._items[0];return""===e||'""'===e}get str(){var e;return null!==(e=this._str)&&void 0!==e?e:this._str=this._items.reduce(((e,t)=>`${e}${t}`),"")}get names(){var e;return null!==(e=this._names)&&void 0!==e?e:this._names=this._items.reduce(((e,t)=>(t instanceof r&&(e[t.str]=(e[t.str]||0)+1),e)),{})}}function o(e,...t){const r=[e[0]];let o=0;for(;o<t.length;)s(r,t[o]),r.push(e[++o]);return new n(r)}e._Code=n,e.nil=new n(""),e._=o;const a=new n("+");function i(e,...t){const r=[u(e[0])];let o=0;for(;o<t.length;)r.push(a),s(r,t[o]),r.push(a,u(e[++o]));return function(e){let t=1;for(;t<e.length-1;){if(e[t]===a){const r=l(e[t-1],e[t+1]);if(void 0!==r){e.splice(t-1,3,r);continue}e[t++]="+"}t++}}(r),new n(r)}function s(e,t){t instanceof n?e.push(...t._items):t instanceof r?e.push(t):e.push(function(e){return"number"==typeof e||"boolean"==typeof e||null===e?e:u(Array.isArray(e)?e.join(","):e)}(t))}function l(e,t){if('""'===t)return e;if('""'===e)return t;if("string"==typeof e){if(t instanceof r||'"'!==e[e.length-1])return;return"string"!=typeof t?`${e.slice(0,-1)}${t}"`:'"'===t[0]?e.slice(0,-1)+t.slice(1):void 0}return"string"!=typeof t||'"'!==t[0]||e instanceof r?void 0:`"${e}${t.slice(1)}`}function u(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}e.str=i,e.addCodeArg=s,e.strConcat=function(e,t){return t.emptyStr()?e:e.emptyStr()?t:i`${e}${t}`},e.stringify=function(e){return new n(u(e))},e.safeStringify=u,e.getProperty=function(t){return"string"==typeof t&&e.IDENTIFIER.test(t)?new n(`.${t}`):o`[${t}]`},e.getEsmExportName=function(t){if("string"==typeof t&&e.IDENTIFIER.test(t))return new n(`${t}`);throw new Error(`CodeGen: invalid export name: ${t}, use explicit $id name mapping`)},e.regexpCode=function(e){return new n(e.toString())}}(iD);var sD={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ValueScope=e.ValueScopeName=e.Scope=e.varKinds=e.UsedValueState=void 0;const t=iD;class r extends Error{constructor(e){super(`CodeGen: "code" for ${e} not defined`),this.value=e.value}}var n;!function(e){e[e.Started=0]="Started",e[e.Completed=1]="Completed"}(n=e.UsedValueState||(e.UsedValueState={})),e.varKinds={const:new t.Name("const"),let:new t.Name("let"),var:new t.Name("var")};class o{constructor({prefixes:e,parent:t}={}){this._names={},this._prefixes=e,this._parent=t}toName(e){return e instanceof t.Name?e:this.name(e)}name(e){return new t.Name(this._newName(e))}_newName(e){return`${e}${(this._names[e]||this._nameGroup(e)).index++}`}_nameGroup(e){var t,r;if((null===(r=null===(t=this._parent)||void 0===t?void 0:t._prefixes)||void 0===r?void 0:r.has(e))||this._prefixes&&!this._prefixes.has(e))throw new Error(`CodeGen: prefix "${e}" is not allowed in this scope`);return this._names[e]={prefix:e,index:0}}}e.Scope=o;class a extends t.Name{constructor(e,t){super(t),this.prefix=e}setValue(e,{property:r,itemIndex:n}){this.value=e,this.scopePath=t._`.${new t.Name(r)}[${n}]`}}e.ValueScopeName=a;const i=t._`\n`;e.ValueScope=class extends o{constructor(e){super(e),this._values={},this._scope=e.scope,this.opts={...e,_n:e.lines?i:t.nil}}get(){return this._scope}name(e){return new a(e,this._newName(e))}value(e,t){var r;if(void 0===t.ref)throw new Error("CodeGen: ref must be passed in value");const n=this.toName(e),{prefix:o}=n,a=null!==(r=t.key)&&void 0!==r?r:t.ref;let i=this._values[o];if(i){const e=i.get(a);if(e)return e}else i=this._values[o]=new Map;i.set(a,n);const s=this._scope[o]||(this._scope[o]=[]),l=s.length;return s[l]=t.ref,n.setValue(t,{property:o,itemIndex:l}),n}getValue(e,t){const r=this._values[e];if(r)return r.get(t)}scopeRefs(e,r=this._values){return this._reduceValues(r,(r=>{if(void 0===r.scopePath)throw new Error(`CodeGen: name "${r}" has no value`);return t._`${e}${r.scopePath}`}))}scopeCode(e=this._values,t,r){return this._reduceValues(e,(e=>{if(void 0===e.value)throw new Error(`CodeGen: name "${e}" has no value`);return e.value.code}),t,r)}_reduceValues(o,a,i={},s){let l=t.nil;for(const u in o){const c=o[u];if(!c)continue;const d=i[u]=i[u]||new Map;c.forEach((o=>{if(d.has(o))return;d.set(o,n.Started);let i=a(o);if(i){const r=this.opts.es5?e.varKinds.var:e.varKinds.const;l=t._`${l}${r} ${o} = ${i};${this.opts._n}`}else{if(!(i=null==s?void 0:s(o)))throw new r(o);l=t._`${l}${i}${this.opts._n}`}d.set(o,n.Completed)}))}return l}}}(sD),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=iD,r=sD;var n=iD;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=sD;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(e,t){return this}}class i extends a{constructor(e,t,r){super(),this.varKind=e,this.name=t,this.rhs=r}render({es5:e,_n:t}){const n=e?r.varKinds.var:this.varKind,o=void 0===this.rhs?"":` = ${this.rhs}`;return`${n} ${this.name}${o};`+t}optimizeNames(e,t){if(e[this.name.str])return this.rhs&&(this.rhs=j(this.rhs,e,t)),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}}class s extends a{constructor(e,t,r){super(),this.lhs=e,this.rhs=t,this.sideEffects=r}render({_n:e}){return`${this.lhs} = ${this.rhs};`+e}optimizeNames(e,r){if(!(this.lhs instanceof t.Name)||e[this.lhs.str]||this.sideEffects)return this.rhs=j(this.rhs,e,r),this}get names(){return P(this.lhs instanceof t.Name?{}:{...this.lhs.names},this.rhs)}}class l extends s{constructor(e,t,r,n){super(e,r,n),this.op=t}render({_n:e}){return`${this.lhs} ${this.op}= ${this.rhs};`+e}}class u extends a{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`${this.label}:`+e}}class c extends a{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`break${this.label?` ${this.label}`:""};`+e}}class d extends a{constructor(e){super(),this.error=e}render({_n:e}){return`throw ${this.error};`+e}get names(){return this.error.names}}class f extends a{constructor(e){super(),this.code=e}render({_n:e}){return`${this.code};`+e}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(e,t){return this.code=j(this.code,e,t),this}get names(){return this.code instanceof t._CodeOrName?this.code.names:{}}}class p extends a{constructor(e=[]){super(),this.nodes=e}render(e){return this.nodes.reduce(((t,r)=>t+r.render(e)),"")}optimizeNodes(){const{nodes:e}=this;let t=e.length;for(;t--;){const r=e[t].optimizeNodes();Array.isArray(r)?e.splice(t,1,...r):r?e[t]=r:e.splice(t,1)}return e.length>0?this:void 0}optimizeNames(e,t){const{nodes:r}=this;let n=r.length;for(;n--;){const o=r[n];o.optimizeNames(e,t)||(O(e,o.names),r.splice(n,1))}return r.length>0?this:void 0}get names(){return this.nodes.reduce(((e,t)=>C(e,t.names)),{})}}class m extends p{render(e){return"{"+e._n+super.render(e)+"}"+e._n}}class h extends p{}class v extends m{}v.kind="else";class y extends m{constructor(e,t){super(t),this.condition=e}render(e){let t=`if(${this.condition})`+super.render(e);return this.else&&(t+="else "+this.else.render(e)),t}optimizeNodes(){super.optimizeNodes();const e=this.condition;if(!0===e)return this.nodes;let t=this.else;if(t){const e=t.optimizeNodes();t=this.else=Array.isArray(e)?new v(e):e}return t?!1===e?t instanceof y?t:t.nodes:this.nodes.length?this:new y(N(e),t instanceof y?[t]:t.nodes):!1!==e&&this.nodes.length?this:void 0}optimizeNames(e,t){var r;if(this.else=null===(r=this.else)||void 0===r?void 0:r.optimizeNames(e,t),super.optimizeNames(e,t)||this.else)return this.condition=j(this.condition,e,t),this}get names(){const e=super.names;return P(e,this.condition),this.else&&C(e,this.else.names),e}}y.kind="if";class g extends m{}g.kind="for";class b extends g{constructor(e){super(),this.iteration=e}render(e){return`for(${this.iteration})`+super.render(e)}optimizeNames(e,t){if(super.optimizeNames(e,t))return this.iteration=j(this.iteration,e,t),this}get names(){return C(super.names,this.iteration.names)}}class w extends g{constructor(e,t,r,n){super(),this.varKind=e,this.name=t,this.from=r,this.to=n}render(e){const t=e.es5?r.varKinds.var:this.varKind,{name:n,from:o,to:a}=this;return`for(${t} ${n}=${o}; ${n}<${a}; ${n}++)`+super.render(e)}get names(){const e=P(super.names,this.from);return P(e,this.to)}}class S extends g{constructor(e,t,r,n){super(),this.loop=e,this.varKind=t,this.name=r,this.iterable=n}render(e){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(e)}optimizeNames(e,t){if(super.optimizeNames(e,t))return this.iterable=j(this.iterable,e,t),this}get names(){return C(super.names,this.iterable.names)}}class x extends m{constructor(e,t,r){super(),this.name=e,this.args=t,this.async=r}render(e){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(e)}}x.kind="func";class $ extends p{render(e){return"return "+super.render(e)}}$.kind="return";class k extends m{render(e){let t="try"+super.render(e);return this.catch&&(t+=this.catch.render(e)),this.finally&&(t+=this.finally.render(e)),t}optimizeNodes(){var e,t;return super.optimizeNodes(),null===(e=this.catch)||void 0===e||e.optimizeNodes(),null===(t=this.finally)||void 0===t||t.optimizeNodes(),this}optimizeNames(e,t){var r,n;return super.optimizeNames(e,t),null===(r=this.catch)||void 0===r||r.optimizeNames(e,t),null===(n=this.finally)||void 0===n||n.optimizeNames(e,t),this}get names(){const e=super.names;return this.catch&&C(e,this.catch.names),this.finally&&C(e,this.finally.names),e}}class _ extends m{constructor(e){super(),this.error=e}render(e){return`catch(${this.error})`+super.render(e)}}_.kind="catch";class E extends m{render(e){return"finally"+super.render(e)}}E.kind="finally";function C(e,t){for(const r in t)e[r]=(e[r]||0)+(t[r]||0);return e}function P(e,r){return r instanceof t._CodeOrName?C(e,r.names):e}function j(e,r,n){return e instanceof t.Name?o(e):function(e){return e instanceof t._Code&&e._items.some((e=>e instanceof t.Name&&1===r[e.str]&&void 0!==n[e.str]))}(e)?new t._Code(e._items.reduce(((e,r)=>(r instanceof t.Name&&(r=o(r)),r instanceof t._Code?e.push(...r._items):e.push(r),e)),[])):e;function o(e){const t=n[e.str];return void 0===t||1!==r[e.str]?e:(delete r[e.str],t)}}function O(e,t){for(const r in t)e[r]=(e[r]||0)-(t[r]||0)}function N(e){return"boolean"==typeof e||"number"==typeof e||null===e?!e:t._`!${I(e)}`}e.CodeGen=class{constructor(e,t={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...t,_n:t.lines?"\n":""},this._extScope=e,this._scope=new r.Scope({parent:e}),this._nodes=[new h]}toString(){return this._root.render(this.opts)}name(e){return this._scope.name(e)}scopeName(e){return this._extScope.name(e)}scopeValue(e,t){const r=this._extScope.value(e,t);return(this._values[r.prefix]||(this._values[r.prefix]=new Set)).add(r),r}getScopeValue(e,t){return this._extScope.getValue(e,t)}scopeRefs(e){return this._extScope.scopeRefs(e,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(e,t,r,n){const o=this._scope.toName(t);return void 0!==r&&n&&(this._constants[o.str]=r),this._leafNode(new i(e,o,r)),o}const(e,t,n){return this._def(r.varKinds.const,e,t,n)}let(e,t,n){return this._def(r.varKinds.let,e,t,n)}var(e,t,n){return this._def(r.varKinds.var,e,t,n)}assign(e,t,r){return this._leafNode(new s(e,t,r))}add(t,r){return this._leafNode(new l(t,e.operators.ADD,r))}code(e){return"function"==typeof e?e():e!==t.nil&&this._leafNode(new f(e)),this}object(...e){const r=["{"];for(const[n,o]of e)r.length>1&&r.push(","),r.push(n),(n!==o||this.opts.es5)&&(r.push(":"),(0,t.addCodeArg)(r,o));return r.push("}"),new t._Code(r)}if(e,t,r){if(this._blockNode(new y(e)),t&&r)this.code(t).else().code(r).endIf();else if(t)this.code(t).endIf();else if(r)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(e){return this._elseNode(new y(e))}else(){return this._elseNode(new v)}endIf(){return this._endBlockNode(y,v)}_for(e,t){return this._blockNode(e),t&&this.code(t).endFor(),this}for(e,t){return this._for(new b(e),t)}forRange(e,t,n,o,a=(this.opts.es5?r.varKinds.var:r.varKinds.let)){const i=this._scope.toName(e);return this._for(new w(a,i,t,n),(()=>o(i)))}forOf(e,n,o,a=r.varKinds.const){const i=this._scope.toName(e);if(this.opts.es5){const e=n instanceof t.Name?n:this.var("_arr",n);return this.forRange("_i",0,t._`${e}.length`,(r=>{this.var(i,t._`${e}[${r}]`),o(i)}))}return this._for(new S("of",a,i,n),(()=>o(i)))}forIn(e,n,o,a=(this.opts.es5?r.varKinds.var:r.varKinds.const)){if(this.opts.ownProperties)return this.forOf(e,t._`Object.keys(${n})`,o);const i=this._scope.toName(e);return this._for(new S("in",a,i,n),(()=>o(i)))}endFor(){return this._endBlockNode(g)}label(e){return this._leafNode(new u(e))}break(e){return this._leafNode(new c(e))}return(e){const t=new $;if(this._blockNode(t),this.code(e),1!==t.nodes.length)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode($)}try(e,t,r){if(!t&&!r)throw new Error('CodeGen: "try" without "catch" and "finally"');const n=new k;if(this._blockNode(n),this.code(e),t){const e=this.name("e");this._currNode=n.catch=new _(e),t(e)}return r&&(this._currNode=n.finally=new E,this.code(r)),this._endBlockNode(_,E)}throw(e){return this._leafNode(new d(e))}block(e,t){return this._blockStarts.push(this._nodes.length),e&&this.code(e).endBlock(t),this}endBlock(e){const t=this._blockStarts.pop();if(void 0===t)throw new Error("CodeGen: not in self-balancing block");const r=this._nodes.length-t;if(r<0||void 0!==e&&r!==e)throw new Error(`CodeGen: wrong number of nodes: ${r} vs ${e} expected`);return this._nodes.length=t,this}func(e,r=t.nil,n,o){return this._blockNode(new x(e,r,n)),o&&this.code(o).endFunc(),this}endFunc(){return this._endBlockNode(x)}optimize(e=1){for(;e-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(e){return this._currNode.nodes.push(e),this}_blockNode(e){this._currNode.nodes.push(e),this._nodes.push(e)}_endBlockNode(e,t){const r=this._currNode;if(r instanceof e||t&&r instanceof t)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${t?`${e.kind}/${t.kind}`:e.kind}"`)}_elseNode(e){const t=this._currNode;if(!(t instanceof y))throw new Error('CodeGen: "else" without "if"');return this._currNode=t.else=e,this}get _root(){return this._nodes[0]}get _currNode(){const e=this._nodes;return e[e.length-1]}set _currNode(e){const t=this._nodes;t[t.length-1]=e}},e.not=N;const R=A(e.operators.AND);e.and=function(...e){return e.reduce(R)};const T=A(e.operators.OR);function A(e){return(r,n)=>r===t.nil?n:n===t.nil?r:t._`${I(r)} ${e} ${I(n)}`}function I(e){return e instanceof t.Name?e:t._`(${e})`}e.or=function(...e){return e.reduce(T)}}(aD);var lD={};!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=aD,r=iD;function n(e,t=e.schema){const{opts:r,self:n}=e;if(!r.strictSchema)return;if("boolean"==typeof t)return;const o=n.RULES.keywords;for(const r in t)o[r]||f(e,`unknown keyword: "${r}"`)}function o(e,t){if("boolean"==typeof e)return!e;for(const r in e)if(t[r])return!0;return!1}function a(e){return"number"==typeof e?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}function i(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function s({mergeNames:e,mergeToName:r,mergeValues:n,resultToName:o}){return(a,i,s,l)=>{const u=void 0===s?i:s instanceof t.Name?(i instanceof t.Name?e(a,i,s):r(a,i,s),s):i instanceof t.Name?(r(a,s,i),i):n(i,s);return l!==t.Name||u instanceof t.Name?u:o(a,u)}}function l(e,r){if(!0===r)return e.var("props",!0);const n=e.var("props",t._`{}`);return void 0!==r&&u(e,n,r),n}function u(e,r,n){Object.keys(n).forEach((n=>e.assign(t._`${r}${(0,t.getProperty)(n)}`,!0)))}e.toHash=function(e){const t={};for(const r of e)t[r]=!0;return t},e.alwaysValidSchema=function(e,t){return"boolean"==typeof t?t:0===Object.keys(t).length||(n(e,t),!o(t,e.self.RULES.all))},e.checkUnknownRules=n,e.schemaHasRules=o,e.schemaHasRulesButRef=function(e,t){if("boolean"==typeof e)return!e;for(const r in e)if("$ref"!==r&&t.all[r])return!0;return!1},e.schemaRefOrVal=function({topSchemaRef:e,schemaPath:r},n,o,a){if(!a){if("number"==typeof n||"boolean"==typeof n)return n;if("string"==typeof n)return t._`${n}`}return t._`${e}${r}${(0,t.getProperty)(o)}`},e.unescapeFragment=function(e){return i(decodeURIComponent(e))},e.escapeFragment=function(e){return encodeURIComponent(a(e))},e.escapeJsonPointer=a,e.unescapeJsonPointer=i,e.eachItem=function(e,t){if(Array.isArray(e))for(const r of e)t(r);else t(e)},e.mergeEvaluated={props:s({mergeNames:(e,r,n)=>e.if(t._`${n} !== true && ${r} !== undefined`,(()=>{e.if(t._`${r} === true`,(()=>e.assign(n,!0)),(()=>e.assign(n,t._`${n} || {}`).code(t._`Object.assign(${n}, ${r})`)))})),mergeToName:(e,r,n)=>e.if(t._`${n} !== true`,(()=>{!0===r?e.assign(n,!0):(e.assign(n,t._`${n} || {}`),u(e,n,r))})),mergeValues:(e,t)=>!0===e||{...e,...t},resultToName:l}),items:s({mergeNames:(e,r,n)=>e.if(t._`${n} !== true && ${r} !== undefined`,(()=>e.assign(n,t._`${r} === true ? true : ${n} > ${r} ? ${n} : ${r}`))),mergeToName:(e,r,n)=>e.if(t._`${n} !== true`,(()=>e.assign(n,!0===r||t._`${n} > ${r} ? ${n} : ${r}`))),mergeValues:(e,t)=>!0===e||Math.max(e,t),resultToName:(e,t)=>e.var("items",t)})},e.evaluatedPropsToName=l,e.setEvaluated=u;const c={};var d;function f(e,t,r=e.opts.strictSchema){if(r){if(t=`strict mode: ${t}`,!0===r)throw new Error(t);e.self.logger.warn(t)}}e.useFunc=function(e,t){return e.scopeValue("func",{ref:t,code:c[t.code]||(c[t.code]=new r._Code(t.code))})},function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"}(d=e.Type||(e.Type={})),e.getErrorPath=function(e,r,n){if(e instanceof t.Name){const o=r===d.Num;return n?o?t._`"[" + ${e} + "]"`:t._`"['" + ${e} + "']"`:o?t._`"/" + ${e}`:t._`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return n?(0,t.getProperty)(e).toString():"/"+a(e)},e.checkStrictMode=f}(lD);var uD={};Object.defineProperty(uD,"__esModule",{value:!0});const cD=aD,dD={data:new cD.Name("data"),valCxt:new cD.Name("valCxt"),instancePath:new cD.Name("instancePath"),parentData:new cD.Name("parentData"),parentDataProperty:new cD.Name("parentDataProperty"),rootData:new cD.Name("rootData"),dynamicAnchors:new cD.Name("dynamicAnchors"),vErrors:new cD.Name("vErrors"),errors:new cD.Name("errors"),this:new cD.Name("this"),self:new cD.Name("self"),scope:new cD.Name("scope"),json:new cD.Name("json"),jsonPos:new cD.Name("jsonPos"),jsonLen:new cD.Name("jsonLen"),jsonPart:new cD.Name("jsonPart")};var fD;uD.default=dD,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=aD,r=lD,n=uD;function o(e,r){const o=e.const("err",r);e.if(t._`${n.default.vErrors} === null`,(()=>e.assign(n.default.vErrors,t._`[${o}]`)),t._`${n.default.vErrors}.push(${o})`),e.code(t._`${n.default.errors}++`)}function a(e,r){const{gen:n,validateName:o,schemaEnv:a}=e;a.$async?n.throw(t._`new ${e.ValidationError}(${r})`):(n.assign(t._`${o}.errors`,r),n.return(!1))}e.keywordError={message:({keyword:e})=>t.str`must pass "${e}" keyword validation`},e.keyword$DataError={message:({keyword:e,schemaType:r})=>r?t.str`"${e}" keyword must be ${r} ($data)`:t.str`"${e}" keyword is invalid ($data)`},e.reportError=function(r,n=e.keywordError,i,l){const{it:u}=r,{gen:c,compositeRule:d,allErrors:f}=u,p=s(r,n,i);(null!=l?l:d||f)?o(c,p):a(u,t._`[${p}]`)},e.reportExtraError=function(t,r=e.keywordError,i){const{it:l}=t,{gen:u,compositeRule:c,allErrors:d}=l;o(u,s(t,r,i)),c||d||a(l,n.default.vErrors)},e.resetErrorsCount=function(e,r){e.assign(n.default.errors,r),e.if(t._`${n.default.vErrors} !== null`,(()=>e.if(r,(()=>e.assign(t._`${n.default.vErrors}.length`,r)),(()=>e.assign(n.default.vErrors,null)))))},e.extendErrors=function({gen:e,keyword:r,schemaValue:o,data:a,errsCount:i,it:s}){if(void 0===i)throw new Error("ajv implementation error");const l=e.name("err");e.forRange("i",i,n.default.errors,(i=>{e.const(l,t._`${n.default.vErrors}[${i}]`),e.if(t._`${l}.instancePath === undefined`,(()=>e.assign(t._`${l}.instancePath`,(0,t.strConcat)(n.default.instancePath,s.errorPath)))),e.assign(t._`${l}.schemaPath`,t.str`${s.errSchemaPath}/${r}`),s.opts.verbose&&(e.assign(t._`${l}.schema`,o),e.assign(t._`${l}.data`,a))}))};const i={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 s(e,r,o){const{createErrors:a}=e.it;return!1===a?t._`{}`:function(e,r,o={}){const{gen:a,it:s}=e,c=[l(s,o),u(e,o)];return function(e,{params:r,message:o},a){const{keyword:s,data:l,schemaValue:u,it:c}=e,{opts:d,propertyName:f,topSchemaRef:p,schemaPath:m}=c;a.push([i.keyword,s],[i.params,"function"==typeof r?r(e):r||t._`{}`]),d.messages&&a.push([i.message,"function"==typeof o?o(e):o]);d.verbose&&a.push([i.schema,u],[i.parentSchema,t._`${p}${m}`],[n.default.data,l]);f&&a.push([i.propertyName,f])}(e,r,c),a.object(...c)}(e,r,o)}function l({errorPath:e},{instancePath:o}){const a=o?t.str`${e}${(0,r.getErrorPath)(o,r.Type.Str)}`:e;return[n.default.instancePath,(0,t.strConcat)(n.default.instancePath,a)]}function u({keyword:e,it:{errSchemaPath:n}},{schemaPath:o,parentSchema:a}){let s=a?n:t.str`${n}/${e}`;return o&&(s=t.str`${s}${(0,r.getErrorPath)(o,r.Type.Str)}`),[i.schemaPath,s]}}(oD);var pD={},mD={};Object.defineProperty(mD,"__esModule",{value:!0}),mD.getRules=mD.isJSONType=void 0;const hD=new Set(["string","number","integer","boolean","null","object","array"]);mD.isJSONType=function(e){return"string"==typeof e&&hD.has(e)},mD.getRules=function(){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:{}}};var vD={};function yD(e,t){return t.rules.some((t=>gD(e,t)))}function gD(e,t){var r;return void 0!==e[t.keyword]||(null===(r=t.definition.implements)||void 0===r?void 0:r.some((t=>void 0!==e[t])))}Object.defineProperty(vD,"__esModule",{value:!0}),vD.shouldUseRule=vD.shouldUseGroup=vD.schemaHasRulesForType=void 0,vD.schemaHasRulesForType=function({schema:e,self:t},r){const n=t.RULES.types[r];return n&&!0!==n&&yD(e,n)},vD.shouldUseGroup=yD,vD.shouldUseRule=gD,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=mD,r=vD,n=oD,o=aD,a=lD;var i;function s(e){const r=Array.isArray(e)?e:e?[e]:[];if(r.every(t.isJSONType))return r;throw new Error("type must be JSONType or JSONType[]: "+r.join(","))}!function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"}(i=e.DataType||(e.DataType={})),e.getSchemaTypes=function(e){const t=s(e.type);if(t.includes("null")){if(!1===e.nullable)throw new Error("type: null contradicts nullable: false")}else{if(!t.length&&void 0!==e.nullable)throw new Error('"nullable" cannot be used without "type"');!0===e.nullable&&t.push("null")}return t},e.getJSONTypes=s,e.coerceAndCheckDataType=function(e,t){const{gen:n,data:a,opts:s}=e,u=function(e,t){return t?e.filter((e=>l.has(e)||"array"===t&&"array"===e)):[]}(t,s.coerceTypes),d=t.length>0&&!(0===u.length&&1===t.length&&(0,r.schemaHasRulesForType)(e,t[0]));if(d){const r=c(t,a,s.strictNumbers,i.Wrong);n.if(r,(()=>{u.length?function(e,t,r){const{gen:n,data:a,opts:i}=e,s=n.let("dataType",o._`typeof ${a}`),u=n.let("coerced",o._`undefined`);"array"===i.coerceTypes&&n.if(o._`${s} == 'object' && Array.isArray(${a}) && ${a}.length == 1`,(()=>n.assign(a,o._`${a}[0]`).assign(s,o._`typeof ${a}`).if(c(t,a,i.strictNumbers),(()=>n.assign(u,a)))));n.if(o._`${u} !== undefined`);for(const e of r)(l.has(e)||"array"===e&&"array"===i.coerceTypes)&&d(e);function d(e){switch(e){case"string":return void n.elseIf(o._`${s} == "number" || ${s} == "boolean"`).assign(u,o._`"" + ${a}`).elseIf(o._`${a} === null`).assign(u,o._`""`);case"number":return void n.elseIf(o._`${s} == "boolean" || ${a} === null
|
|
50
|
+
deps: ${n}}`};const o={keyword:"dependencies",type:"object",schemaType:"object",error:e.error,code(e){const[t,r]=function({schema:e}){const t={},r={};for(const n in e){if("__proto__"===n)continue;(Array.isArray(e[n])?t:r)[n]=e[n]}return[t,r]}(e);a(e,t),i(e,r)}};function a(e,r=e.schema){const{gen:o,data:a,it:i}=e;if(0===Object.keys(r).length)return;const s=o.let("missing");for(const l in r){const u=r[l];if(0===u.length)continue;const c=(0,n.propertyInData)(o,a,l,i.opts.ownProperties);e.setParams({property:l,depsCount:u.length,deps:u.join(", ")}),i.allErrors?o.if(c,(()=>{for(const t of u)(0,n.checkReportMissingProp)(e,t)})):(o.if(t._`${c} && (${(0,n.checkMissingProp)(e,u,s)})`),(0,n.reportMissingProp)(e,s),o.else())}}function i(e,t=e.schema){const{gen:o,data:a,keyword:i,it:s}=e,l=o.name("valid");for(const u in t)(0,r.alwaysValidSchema)(s,t[u])||(o.if((0,n.propertyInData)(o,a,u,s.opts.ownProperties),(()=>{const t=e.subschema({keyword:i,schemaProp:u},l);e.mergeValidEvaluated(t,l)}),(()=>o.var(l,!0))),e.ok(l))}e.validatePropertyDeps=a,e.validateSchemaDeps=i,e.default=o}(ER);var jR={};Object.defineProperty(jR,"__esModule",{value:!0});const CR=pO(),OR=hO,PR={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:e})=>CR._`{propertyName: ${e.propertyName}}`},code(e){const{gen:t,schema:r,data:n,it:o}=e;if((0,OR.alwaysValidSchema)(o,r))return;const a=t.name("valid");t.forIn("key",n,(r=>{e.setParams({propertyName:r}),e.subschema({keyword:"propertyNames",data:r,dataTypes:["string"],propertyName:r,compositeRule:!0},a),t.if((0,CR.not)(a),(()=>{e.error(!0),o.allErrors||t.break()}))})),e.ok(a)}};jR.default=PR;var NR={};Object.defineProperty(NR,"__esModule",{value:!0});const RR=TO(),TR=pO(),AR=bO(),IR=hO,MR={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:e})=>TR._`{additionalProperty: ${e.additionalProperty}}`},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,"all"!==l.removeAdditional&&(0,IR.alwaysValidSchema)(i,r))return;const u=(0,RR.allSchemaProperties)(n.properties),c=(0,RR.allSchemaProperties)(n.patternProperties);function d(e){t.code(TR._`delete ${o}[${e}]`)}function f(n){if("all"===l.removeAdditional||l.removeAdditional&&!1===r)d(n);else{if(!1===r)return e.setParams({additionalProperty:n}),e.error(),void(s||t.break());if("object"==typeof r&&!(0,IR.alwaysValidSchema)(i,r)){const r=t.name("valid");"failing"===l.removeAdditional?(p(n,r,!1),t.if((0,TR.not)(r),(()=>{e.reset(),d(n)}))):(p(n,r),s||t.if((0,TR.not)(r),(()=>t.break())))}}}function p(t,r,n){const o={keyword:"additionalProperties",dataProp:t,dataPropType:IR.Type.Str};!1===n&&Object.assign(o,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(o,r)}t.forIn("key",o,(r=>{u.length||c.length?t.if(function(r){let o;if(u.length>8){const e=(0,IR.schemaRefOrVal)(i,n.properties,"properties");o=(0,RR.isOwnProperty)(t,e,r)}else o=u.length?(0,TR.or)(...u.map((e=>TR._`${r} === ${e}`))):TR.nil;return c.length&&(o=(0,TR.or)(o,...c.map((t=>TR._`${(0,RR.usePattern)(e,t)}.test(${r})`)))),(0,TR.not)(o)}(r),(()=>f(r))):f(r)})),e.ok(TR._`${a} === ${AR.default.errors}`)}};NR.default=MR;var FR={};Object.defineProperty(FR,"__esModule",{value:!0});const zR=rP(),DR=TO(),LR=hO,BR=NR,VR={keyword:"properties",type:"object",schemaType:"object",code(e){const{gen:t,schema:r,parentSchema:n,data:o,it:a}=e;"all"===a.opts.removeAdditional&&void 0===n.additionalProperties&&BR.default.code(new zR.KeywordCxt(a,BR.default,"additionalProperties"));const i=(0,DR.allSchemaProperties)(r);for(const e of i)a.definedProperties.add(e);a.opts.unevaluated&&i.length&&!0!==a.props&&(a.props=LR.mergeEvaluated.props(t,(0,LR.toHash)(i),a.props));const s=i.filter((e=>!(0,LR.alwaysValidSchema)(a,r[e])));if(0===s.length)return;const l=t.name("valid");for(const r of s)u(r)?c(r):(t.if((0,DR.propertyInData)(t,o,r,a.opts.ownProperties)),c(r),a.allErrors||t.else().var(l,!0),t.endIf()),e.it.definedProperties.add(r),e.ok(l);function u(e){return a.opts.useDefaults&&!a.compositeRule&&void 0!==r[e].default}function c(t){e.subschema({keyword:"properties",schemaProp:t,dataProp:t},l)}}};FR.default=VR;var UR={};Object.defineProperty(UR,"__esModule",{value:!0});const WR=TO(),qR=pO(),KR=hO,HR=hO,GR={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,WR.allSchemaProperties)(r),l=s.filter((e=>(0,KR.alwaysValidSchema)(a,r[e])));if(0===s.length||l.length===s.length&&(!a.opts.unevaluated||!0===a.props))return;const u=i.strictSchema&&!i.allowMatchingProperties&&o.properties,c=t.name("valid");!0===a.props||a.props instanceof qR.Name||(a.props=(0,HR.evaluatedPropsToName)(t,a.props));const{props:d}=a;function f(e){for(const t in u)new RegExp(e).test(t)&&(0,KR.checkStrictMode)(a,`property ${t} matches pattern ${e} (use allowMatchingProperties)`)}function p(r){t.forIn("key",n,(n=>{t.if(qR._`${(0,WR.usePattern)(e,r)}.test(${n})`,(()=>{const o=l.includes(r);o||e.subschema({keyword:"patternProperties",schemaProp:r,dataProp:n,dataPropType:HR.Type.Str},c),a.opts.unevaluated&&!0!==d?t.assign(qR._`${d}[${n}]`,!0):o||a.allErrors||t.if((0,qR.not)(c),(()=>t.break()))}))}))}!function(){for(const e of s)u&&f(e),a.allErrors?p(e):(t.var(c,!0),p(e),t.if(c))}()}};UR.default=GR;var QR={};Object.defineProperty(QR,"__esModule",{value:!0});const JR=hO,YR={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){const{gen:t,schema:r,it:n}=e;if((0,JR.alwaysValidSchema)(n,r))return void e.fail();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"}};QR.default=YR;var XR={};Object.defineProperty(XR,"__esModule",{value:!0});const ZR={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:TO().validateUnion,error:{message:"must match a schema in anyOf"}};XR.default=ZR;var eT={};Object.defineProperty(eT,"__esModule",{value:!0});const tT=pO(),rT=hO,nT={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:e})=>tT._`{passingSchemas: ${e.passing}}`},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((function(){a.forEach(((r,n)=>{let a;(0,rT.alwaysValidSchema)(o,r)?t.var(l,!0):a=e.subschema({keyword:"oneOf",schemaProp:n,compositeRule:!0},l),n>0&&t.if(tT._`${l} && ${i}`).assign(i,!1).assign(s,tT._`[${s}, ${n}]`).else(),t.if(l,(()=>{t.assign(i,!0),t.assign(s,n),a&&e.mergeEvaluated(a,tT.Name)}))}))})),e.result(i,(()=>e.reset()),(()=>e.error(!0)))}};eT.default=nT;var oT={};Object.defineProperty(oT,"__esModule",{value:!0});const aT=hO,iT={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(((t,r)=>{if((0,aT.alwaysValidSchema)(n,t))return;const a=e.subschema({keyword:"allOf",schemaProp:r},o);e.ok(o),e.mergeEvaluated(a)}))}};oT.default=iT;var sT={};Object.defineProperty(sT,"__esModule",{value:!0});const lT=pO(),uT=hO,cT={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:e})=>lT.str`must match "${e.ifClause}" schema`,params:({params:e})=>lT._`{failingKeyword: ${e.ifClause}}`},code(e){const{gen:t,parentSchema:r,it:n}=e;void 0===r.then&&void 0===r.else&&(0,uT.checkStrictMode)(n,'"if" without "then" and "else" is ignored');const o=dT(n,"then"),a=dT(n,"else");if(!o&&!a)return;const i=t.let("valid",!0),s=t.name("_valid");if(function(){const t=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},s);e.mergeEvaluated(t)}(),e.reset(),o&&a){const r=t.let("ifClause");e.setParams({ifClause:r}),t.if(s,l("then",r),l("else",r))}else o?t.if(s,l("then")):t.if((0,lT.not)(s),l("else"));function l(r,n){return()=>{const o=e.subschema({keyword:r},s);t.assign(i,s),e.mergeValidEvaluated(o,i),n?t.assign(n,lT._`${r}`):e.setParams({ifClause:r})}}e.pass(i,(()=>e.error(!0)))}};function dT(e,t){const r=e.schema[t];return void 0!==r&&!(0,uT.alwaysValidSchema)(e,r)}sT.default=cT;var fT={};Object.defineProperty(fT,"__esModule",{value:!0});const pT=hO,hT={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){void 0===t.if&&(0,pT.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};fT.default=hT,Object.defineProperty(tR,"__esModule",{value:!0});const mT=rR,vT=sR,gT=lR,yT=vR,bT=xR,wT=ER,ST=jR,xT=NR,_T=FR,$T=UR,kT=QR,ET=XR,jT=eT,CT=oT,OT=sT,PT=fT;tR.default=function(e=!1){const t=[kT.default,ET.default,jT.default,CT.default,OT.default,PT.default,ST.default,xT.default,wT.default,_T.default,$T.default];return e?t.push(vT.default,yT.default):t.push(mT.default,gT.default),t.push(bT.default),t};var NT={},RT={};Object.defineProperty(RT,"__esModule",{value:!0});const TT=pO(),AT={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:e})=>TT.str`must match format "${e}"`,params:({schemaCode:e})=>TT._`{format: ${e}}`},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;l.validateFormats&&(o?function(){const o=r.scopeValue("formats",{ref:d.formats,code:l.code.formats}),a=r.const("fDef",TT._`${o}[${i}]`),s=r.let("fType"),u=r.let("format");r.if(TT._`typeof ${a} == "object" && !(${a} instanceof RegExp)`,(()=>r.assign(s,TT._`${a}.type || "string"`).assign(u,TT._`${a}.validate`)),(()=>r.assign(s,TT._`"string"`).assign(u,a))),e.fail$data((0,TT.or)(!1===l.strictSchema?TT.nil:TT._`${i} && !${u}`,function(){const e=c.$async?TT._`(${a}.async ? await ${u}(${n}) : ${u}(${n}))`:TT._`${u}(${n})`,r=TT._`(typeof ${u} == "function" ? ${e} : ${u}.test(${n}))`;return TT._`${u} && ${u} !== true && ${s} === ${t} && !${r}`}()))}():function(){const o=d.formats[a];if(!o)return void function(){if(!1===l.strictSchema)return void d.logger.warn(e());throw new Error(e());function e(){return`unknown format "${a}" ignored in schema at path "${u}"`}}();if(!0===o)return;const[i,s,f]=function(e){const t=e instanceof RegExp?(0,TT.regexpCode)(e):l.code.formats?TT._`${l.code.formats}${(0,TT.getProperty)(a)}`:void 0,n=r.scopeValue("formats",{key:a,ref:e,code:t});if("object"==typeof e&&!(e instanceof RegExp))return[e.type||"string",e.validate,TT._`${n}.validate`];return["string",e,n]}(o);i===t&&e.pass(function(){if("object"==typeof o&&!(o instanceof RegExp)&&o.async){if(!c.$async)throw new Error("async format in sync schema");return TT._`await ${f}(${n})`}return"function"==typeof s?TT._`${f}(${n})`:TT._`${f}.test(${n})`}())}())}};RT.default=AT,Object.defineProperty(NT,"__esModule",{value:!0});const IT=[RT.default];NT.default=IT;var MT={};Object.defineProperty(MT,"__esModule",{value:!0}),MT.contentVocabulary=MT.metadataVocabulary=void 0,MT.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],MT.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"],Object.defineProperty(CP,"__esModule",{value:!0});const FT=qP,zT=tR,DT=NT,LT=MT,BT=[OP.default,FT.default,(0,zT.default)(),DT.default,LT.metadataVocabulary,LT.contentVocabulary];CP.default=BT;var VT={},UT={};!function(e){var t;Object.defineProperty(e,"__esModule",{value:!0}),e.DiscrError=void 0,(t=e.DiscrError||(e.DiscrError={})).Tag="tag",t.Mapping="mapping"}(UT),Object.defineProperty(VT,"__esModule",{value:!0});const WT=pO(),qT=UT,KT=uP,HT=hO,GT={keyword:"discriminator",type:"object",schemaType:"object",error:{message:({params:{discrError:e,tagName:t}})=>e===qT.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:t,tagName:r}})=>WT._`{error: ${e}, tag: ${r}, tagValue: ${t}}`},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("string"!=typeof s)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",WT._`${r}${(0,WT.getProperty)(s)}`);function c(r){const n=t.name("valid"),o=e.subschema({keyword:"oneOf",schemaProp:r},n);return e.mergeEvaluated(o,WT.Name),n}t.if(WT._`typeof ${u} == "string"`,(()=>function(){const r=function(){var e;const t={},r=l(o);let n=!0;for(let t=0;t<i.length;t++){let o=i[t];(null==o?void 0:o.$ref)&&!(0,HT.schemaHasRulesButRef)(o,a.self.RULES)&&(o=KT.resolveRef.call(a.self,a.schemaEnv.root,a.baseId,null==o?void 0:o.$ref),o instanceof KT.SchemaEnv&&(o=o.schema));const c=null===(e=null==o?void 0:o.properties)||void 0===e?void 0:e[s];if("object"!=typeof c)throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${s}"`);n=n&&(r||l(o)),u(c,t)}if(!n)throw new Error(`discriminator: "${s}" must be required`);return t;function l({required:e}){return Array.isArray(e)&&e.includes(s)}function u(e,t){if(e.const)c(e.const,t);else{if(!e.enum)throw new Error(`discriminator: "properties/${s}" must have "const" or "enum"`);for(const r of e.enum)c(r,t)}}function c(e,r){if("string"!=typeof e||e in t)throw new Error(`discriminator: "${s}" values must be unique strings`);t[e]=r}}();t.if(!1);for(const e in r)t.elseIf(WT._`${u} === ${e}`),t.assign(l,c(r[e]));t.else(),e.error(!1,{discrError:qT.DiscrError.Mapping,tag:u,tagName:s}),t.endIf()}()),(()=>e.error(!1,{discrError:qT.DiscrError.Tag,tag:u,tagName:s}))),e.ok(l)}};VT.default=GT;var QT={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://json-schema.org/draft-07/schema#",title:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0};!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=rO,n=CP,o=VT,a=QT,i=["/properties"],s="http://json-schema.org/draft-07/schema";class l extends r.default{_addVocabularies(){super._addVocabularies(),n.default.forEach((e=>this.addVocabulary(e))),this.opts.discriminator&&this.addKeyword(o.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const e=this.opts.$data?this.$dataMetaSchema(a,i):a;this.addMetaSchema(e,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=rP();Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return u.KeywordCxt}});var c=pO();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=aP();Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return d.default}});var f=lP();Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return f.default}})}(tO,eO);var JT=n(eO),YT={},XT={get exports(){return YT},set exports(e){YT=e}},ZT={};!function(e){function t(e,t){return{validate:e,compare:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.formatNames=e.fastFormats=e.fullFormats=void 0,e.fullFormats={date:t(o,a),time:t(s,l),"date-time":t((function(e){const t=e.split(u);return 2===t.length&&o(t[0])&&s(t[1],!0)}),c),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:function(e){return d.test(e)&&f.test(e)},"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:function(e){if(g.test(e))return!1;try{return new RegExp(e),!0}catch(e){return!1}},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:function(e){return p.lastIndex=0,p.test(e)},int32:{type:"number",validate:function(e){return Number.isInteger(e)&&e<=m&&e>=h}},int64:{type:"number",validate:function(e){return Number.isInteger(e)}},float:{type:"number",validate:v},double:{type:"number",validate:v},password:!0,binary:!0},e.fastFormats={...e.fullFormats,date:t(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,a),time:t(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,l),"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,c),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);const r=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,n=[0,31,28,31,30,31,30,31,31,30,31,30,31];function o(e){const t=r.exec(e);if(!t)return!1;const o=+t[1],a=+t[2],i=+t[3];return a>=1&&a<=12&&i>=1&&i<=(2===a&&function(e){return e%4==0&&(e%100!=0||e%400==0)}(o)?29:n[a])}function a(e,t){if(e&&t)return e>t?1:e<t?-1:0}const i=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i;function s(e,t){const r=i.exec(e);if(!r)return!1;const n=+r[1],o=+r[2],a=+r[3],s=r[5];return(n<=23&&o<=59&&a<=59||23===n&&59===o&&60===a)&&(!t||""!==s)}function l(e,t){if(!e||!t)return;const r=i.exec(e),n=i.exec(t);return r&&n?(e=r[1]+r[2]+r[3]+(r[4]||""))>(t=n[1]+n[2]+n[3]+(n[4]||""))?1:e<t?-1:0:void 0}const u=/t|\s/i;function c(e,t){if(!e||!t)return;const[r,n]=e.split(u),[o,i]=t.split(u),s=a(r,o);return void 0!==s?s||l(n,i):void 0}const d=/\/|:/,f=/^(?:[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;const p=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;const h=-(2**31),m=2**31-1;function v(){return!0}const g=/[^\\]\\Z/}(ZT);var eA={},tA={},rA={get exports(){return tA},set exports(e){tA=e}},nA={},oA={},aA={},iA={},sA={},lA={};!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(t){if(super(),!e.IDENTIFIER.test(t))throw new Error("CodeGen: name must be a valid identifier");this.str=t}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}e.Name=r;class n extends t{constructor(e){super(),this._items="string"==typeof e?[e]:e}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const e=this._items[0];return""===e||'""'===e}get str(){var e;return null!==(e=this._str)&&void 0!==e?e:this._str=this._items.reduce(((e,t)=>`${e}${t}`),"")}get names(){var e;return null!==(e=this._names)&&void 0!==e?e:this._names=this._items.reduce(((e,t)=>(t instanceof r&&(e[t.str]=(e[t.str]||0)+1),e)),{})}}function o(e,...t){const r=[e[0]];let o=0;for(;o<t.length;)s(r,t[o]),r.push(e[++o]);return new n(r)}e._Code=n,e.nil=new n(""),e._=o;const a=new n("+");function i(e,...t){const r=[u(e[0])];let o=0;for(;o<t.length;)r.push(a),s(r,t[o]),r.push(a,u(e[++o]));return function(e){let t=1;for(;t<e.length-1;){if(e[t]===a){const r=l(e[t-1],e[t+1]);if(void 0!==r){e.splice(t-1,3,r);continue}e[t++]="+"}t++}}(r),new n(r)}function s(e,t){t instanceof n?e.push(...t._items):t instanceof r?e.push(t):e.push(function(e){return"number"==typeof e||"boolean"==typeof e||null===e?e:u(Array.isArray(e)?e.join(","):e)}(t))}function l(e,t){if('""'===t)return e;if('""'===e)return t;if("string"==typeof e){if(t instanceof r||'"'!==e[e.length-1])return;return"string"!=typeof t?`${e.slice(0,-1)}${t}"`:'"'===t[0]?e.slice(0,-1)+t.slice(1):void 0}return"string"!=typeof t||'"'!==t[0]||e instanceof r?void 0:`"${e}${t.slice(1)}`}function u(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}e.str=i,e.addCodeArg=s,e.strConcat=function(e,t){return t.emptyStr()?e:e.emptyStr()?t:i`${e}${t}`},e.stringify=function(e){return new n(u(e))},e.safeStringify=u,e.getProperty=function(t){return"string"==typeof t&&e.IDENTIFIER.test(t)?new n(`.${t}`):o`[${t}]`},e.getEsmExportName=function(t){if("string"==typeof t&&e.IDENTIFIER.test(t))return new n(`${t}`);throw new Error(`CodeGen: invalid export name: ${t}, use explicit $id name mapping`)},e.regexpCode=function(e){return new n(e.toString())}}(lA);var uA={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ValueScope=e.ValueScopeName=e.Scope=e.varKinds=e.UsedValueState=void 0;const t=lA;class r extends Error{constructor(e){super(`CodeGen: "code" for ${e} not defined`),this.value=e.value}}var n;!function(e){e[e.Started=0]="Started",e[e.Completed=1]="Completed"}(n=e.UsedValueState||(e.UsedValueState={})),e.varKinds={const:new t.Name("const"),let:new t.Name("let"),var:new t.Name("var")};class o{constructor({prefixes:e,parent:t}={}){this._names={},this._prefixes=e,this._parent=t}toName(e){return e instanceof t.Name?e:this.name(e)}name(e){return new t.Name(this._newName(e))}_newName(e){return`${e}${(this._names[e]||this._nameGroup(e)).index++}`}_nameGroup(e){var t,r;if((null===(r=null===(t=this._parent)||void 0===t?void 0:t._prefixes)||void 0===r?void 0:r.has(e))||this._prefixes&&!this._prefixes.has(e))throw new Error(`CodeGen: prefix "${e}" is not allowed in this scope`);return this._names[e]={prefix:e,index:0}}}e.Scope=o;class a extends t.Name{constructor(e,t){super(t),this.prefix=e}setValue(e,{property:r,itemIndex:n}){this.value=e,this.scopePath=t._`.${new t.Name(r)}[${n}]`}}e.ValueScopeName=a;const i=t._`\n`;e.ValueScope=class extends o{constructor(e){super(e),this._values={},this._scope=e.scope,this.opts={...e,_n:e.lines?i:t.nil}}get(){return this._scope}name(e){return new a(e,this._newName(e))}value(e,t){var r;if(void 0===t.ref)throw new Error("CodeGen: ref must be passed in value");const n=this.toName(e),{prefix:o}=n,a=null!==(r=t.key)&&void 0!==r?r:t.ref;let i=this._values[o];if(i){const e=i.get(a);if(e)return e}else i=this._values[o]=new Map;i.set(a,n);const s=this._scope[o]||(this._scope[o]=[]),l=s.length;return s[l]=t.ref,n.setValue(t,{property:o,itemIndex:l}),n}getValue(e,t){const r=this._values[e];if(r)return r.get(t)}scopeRefs(e,r=this._values){return this._reduceValues(r,(r=>{if(void 0===r.scopePath)throw new Error(`CodeGen: name "${r}" has no value`);return t._`${e}${r.scopePath}`}))}scopeCode(e=this._values,t,r){return this._reduceValues(e,(e=>{if(void 0===e.value)throw new Error(`CodeGen: name "${e}" has no value`);return e.value.code}),t,r)}_reduceValues(o,a,i={},s){let l=t.nil;for(const u in o){const c=o[u];if(!c)continue;const d=i[u]=i[u]||new Map;c.forEach((o=>{if(d.has(o))return;d.set(o,n.Started);let i=a(o);if(i){const r=this.opts.es5?e.varKinds.var:e.varKinds.const;l=t._`${l}${r} ${o} = ${i};${this.opts._n}`}else{if(!(i=null==s?void 0:s(o)))throw new r(o);l=t._`${l}${i}${this.opts._n}`}d.set(o,n.Completed)}))}return l}}}(uA),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=lA,r=uA;var n=lA;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=uA;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(e,t){return this}}class i extends a{constructor(e,t,r){super(),this.varKind=e,this.name=t,this.rhs=r}render({es5:e,_n:t}){const n=e?r.varKinds.var:this.varKind,o=void 0===this.rhs?"":` = ${this.rhs}`;return`${n} ${this.name}${o};`+t}optimizeNames(e,t){if(e[this.name.str])return this.rhs&&(this.rhs=O(this.rhs,e,t)),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}}class s extends a{constructor(e,t,r){super(),this.lhs=e,this.rhs=t,this.sideEffects=r}render({_n:e}){return`${this.lhs} = ${this.rhs};`+e}optimizeNames(e,r){if(!(this.lhs instanceof t.Name)||e[this.lhs.str]||this.sideEffects)return this.rhs=O(this.rhs,e,r),this}get names(){return C(this.lhs instanceof t.Name?{}:{...this.lhs.names},this.rhs)}}class l extends s{constructor(e,t,r,n){super(e,r,n),this.op=t}render({_n:e}){return`${this.lhs} ${this.op}= ${this.rhs};`+e}}class u extends a{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`${this.label}:`+e}}class c extends a{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`break${this.label?` ${this.label}`:""};`+e}}class d extends a{constructor(e){super(),this.error=e}render({_n:e}){return`throw ${this.error};`+e}get names(){return this.error.names}}class f extends a{constructor(e){super(),this.code=e}render({_n:e}){return`${this.code};`+e}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(e,t){return this.code=O(this.code,e,t),this}get names(){return this.code instanceof t._CodeOrName?this.code.names:{}}}class p extends a{constructor(e=[]){super(),this.nodes=e}render(e){return this.nodes.reduce(((t,r)=>t+r.render(e)),"")}optimizeNodes(){const{nodes:e}=this;let t=e.length;for(;t--;){const r=e[t].optimizeNodes();Array.isArray(r)?e.splice(t,1,...r):r?e[t]=r:e.splice(t,1)}return e.length>0?this:void 0}optimizeNames(e,t){const{nodes:r}=this;let n=r.length;for(;n--;){const o=r[n];o.optimizeNames(e,t)||(P(e,o.names),r.splice(n,1))}return r.length>0?this:void 0}get names(){return this.nodes.reduce(((e,t)=>j(e,t.names)),{})}}class h extends p{render(e){return"{"+e._n+super.render(e)+"}"+e._n}}class m extends p{}class v extends h{}v.kind="else";class g extends h{constructor(e,t){super(t),this.condition=e}render(e){let t=`if(${this.condition})`+super.render(e);return this.else&&(t+="else "+this.else.render(e)),t}optimizeNodes(){super.optimizeNodes();const e=this.condition;if(!0===e)return this.nodes;let t=this.else;if(t){const e=t.optimizeNodes();t=this.else=Array.isArray(e)?new v(e):e}return t?!1===e?t instanceof g?t:t.nodes:this.nodes.length?this:new g(N(e),t instanceof g?[t]:t.nodes):!1!==e&&this.nodes.length?this:void 0}optimizeNames(e,t){var r;if(this.else=null===(r=this.else)||void 0===r?void 0:r.optimizeNames(e,t),super.optimizeNames(e,t)||this.else)return this.condition=O(this.condition,e,t),this}get names(){const e=super.names;return C(e,this.condition),this.else&&j(e,this.else.names),e}}g.kind="if";class y extends h{}y.kind="for";class b extends y{constructor(e){super(),this.iteration=e}render(e){return`for(${this.iteration})`+super.render(e)}optimizeNames(e,t){if(super.optimizeNames(e,t))return this.iteration=O(this.iteration,e,t),this}get names(){return j(super.names,this.iteration.names)}}class w extends y{constructor(e,t,r,n){super(),this.varKind=e,this.name=t,this.from=r,this.to=n}render(e){const t=e.es5?r.varKinds.var:this.varKind,{name:n,from:o,to:a}=this;return`for(${t} ${n}=${o}; ${n}<${a}; ${n}++)`+super.render(e)}get names(){const e=C(super.names,this.from);return C(e,this.to)}}class S extends y{constructor(e,t,r,n){super(),this.loop=e,this.varKind=t,this.name=r,this.iterable=n}render(e){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(e)}optimizeNames(e,t){if(super.optimizeNames(e,t))return this.iterable=O(this.iterable,e,t),this}get names(){return j(super.names,this.iterable.names)}}class x extends h{constructor(e,t,r){super(),this.name=e,this.args=t,this.async=r}render(e){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(e)}}x.kind="func";class _ extends p{render(e){return"return "+super.render(e)}}_.kind="return";class $ extends h{render(e){let t="try"+super.render(e);return this.catch&&(t+=this.catch.render(e)),this.finally&&(t+=this.finally.render(e)),t}optimizeNodes(){var e,t;return super.optimizeNodes(),null===(e=this.catch)||void 0===e||e.optimizeNodes(),null===(t=this.finally)||void 0===t||t.optimizeNodes(),this}optimizeNames(e,t){var r,n;return super.optimizeNames(e,t),null===(r=this.catch)||void 0===r||r.optimizeNames(e,t),null===(n=this.finally)||void 0===n||n.optimizeNames(e,t),this}get names(){const e=super.names;return this.catch&&j(e,this.catch.names),this.finally&&j(e,this.finally.names),e}}class k extends h{constructor(e){super(),this.error=e}render(e){return`catch(${this.error})`+super.render(e)}}k.kind="catch";class E extends h{render(e){return"finally"+super.render(e)}}E.kind="finally";function j(e,t){for(const r in t)e[r]=(e[r]||0)+(t[r]||0);return e}function C(e,r){return r instanceof t._CodeOrName?j(e,r.names):e}function O(e,r,n){return e instanceof t.Name?o(e):function(e){return e instanceof t._Code&&e._items.some((e=>e instanceof t.Name&&1===r[e.str]&&void 0!==n[e.str]))}(e)?new t._Code(e._items.reduce(((e,r)=>(r instanceof t.Name&&(r=o(r)),r instanceof t._Code?e.push(...r._items):e.push(r),e)),[])):e;function o(e){const t=n[e.str];return void 0===t||1!==r[e.str]?e:(delete r[e.str],t)}}function P(e,t){for(const r in t)e[r]=(e[r]||0)-(t[r]||0)}function N(e){return"boolean"==typeof e||"number"==typeof e||null===e?!e:t._`!${I(e)}`}e.CodeGen=class{constructor(e,t={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...t,_n:t.lines?"\n":""},this._extScope=e,this._scope=new r.Scope({parent:e}),this._nodes=[new m]}toString(){return this._root.render(this.opts)}name(e){return this._scope.name(e)}scopeName(e){return this._extScope.name(e)}scopeValue(e,t){const r=this._extScope.value(e,t);return(this._values[r.prefix]||(this._values[r.prefix]=new Set)).add(r),r}getScopeValue(e,t){return this._extScope.getValue(e,t)}scopeRefs(e){return this._extScope.scopeRefs(e,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(e,t,r,n){const o=this._scope.toName(t);return void 0!==r&&n&&(this._constants[o.str]=r),this._leafNode(new i(e,o,r)),o}const(e,t,n){return this._def(r.varKinds.const,e,t,n)}let(e,t,n){return this._def(r.varKinds.let,e,t,n)}var(e,t,n){return this._def(r.varKinds.var,e,t,n)}assign(e,t,r){return this._leafNode(new s(e,t,r))}add(t,r){return this._leafNode(new l(t,e.operators.ADD,r))}code(e){return"function"==typeof e?e():e!==t.nil&&this._leafNode(new f(e)),this}object(...e){const r=["{"];for(const[n,o]of e)r.length>1&&r.push(","),r.push(n),(n!==o||this.opts.es5)&&(r.push(":"),(0,t.addCodeArg)(r,o));return r.push("}"),new t._Code(r)}if(e,t,r){if(this._blockNode(new g(e)),t&&r)this.code(t).else().code(r).endIf();else if(t)this.code(t).endIf();else if(r)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(e){return this._elseNode(new g(e))}else(){return this._elseNode(new v)}endIf(){return this._endBlockNode(g,v)}_for(e,t){return this._blockNode(e),t&&this.code(t).endFor(),this}for(e,t){return this._for(new b(e),t)}forRange(e,t,n,o,a=(this.opts.es5?r.varKinds.var:r.varKinds.let)){const i=this._scope.toName(e);return this._for(new w(a,i,t,n),(()=>o(i)))}forOf(e,n,o,a=r.varKinds.const){const i=this._scope.toName(e);if(this.opts.es5){const e=n instanceof t.Name?n:this.var("_arr",n);return this.forRange("_i",0,t._`${e}.length`,(r=>{this.var(i,t._`${e}[${r}]`),o(i)}))}return this._for(new S("of",a,i,n),(()=>o(i)))}forIn(e,n,o,a=(this.opts.es5?r.varKinds.var:r.varKinds.const)){if(this.opts.ownProperties)return this.forOf(e,t._`Object.keys(${n})`,o);const i=this._scope.toName(e);return this._for(new S("in",a,i,n),(()=>o(i)))}endFor(){return this._endBlockNode(y)}label(e){return this._leafNode(new u(e))}break(e){return this._leafNode(new c(e))}return(e){const t=new _;if(this._blockNode(t),this.code(e),1!==t.nodes.length)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(_)}try(e,t,r){if(!t&&!r)throw new Error('CodeGen: "try" without "catch" and "finally"');const n=new $;if(this._blockNode(n),this.code(e),t){const e=this.name("e");this._currNode=n.catch=new k(e),t(e)}return r&&(this._currNode=n.finally=new E,this.code(r)),this._endBlockNode(k,E)}throw(e){return this._leafNode(new d(e))}block(e,t){return this._blockStarts.push(this._nodes.length),e&&this.code(e).endBlock(t),this}endBlock(e){const t=this._blockStarts.pop();if(void 0===t)throw new Error("CodeGen: not in self-balancing block");const r=this._nodes.length-t;if(r<0||void 0!==e&&r!==e)throw new Error(`CodeGen: wrong number of nodes: ${r} vs ${e} expected`);return this._nodes.length=t,this}func(e,r=t.nil,n,o){return this._blockNode(new x(e,r,n)),o&&this.code(o).endFunc(),this}endFunc(){return this._endBlockNode(x)}optimize(e=1){for(;e-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(e){return this._currNode.nodes.push(e),this}_blockNode(e){this._currNode.nodes.push(e),this._nodes.push(e)}_endBlockNode(e,t){const r=this._currNode;if(r instanceof e||t&&r instanceof t)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${t?`${e.kind}/${t.kind}`:e.kind}"`)}_elseNode(e){const t=this._currNode;if(!(t instanceof g))throw new Error('CodeGen: "else" without "if"');return this._currNode=t.else=e,this}get _root(){return this._nodes[0]}get _currNode(){const e=this._nodes;return e[e.length-1]}set _currNode(e){const t=this._nodes;t[t.length-1]=e}},e.not=N;const R=A(e.operators.AND);e.and=function(...e){return e.reduce(R)};const T=A(e.operators.OR);function A(e){return(r,n)=>r===t.nil?n:n===t.nil?r:t._`${I(r)} ${e} ${I(n)}`}function I(e){return e instanceof t.Name?e:t._`(${e})`}e.or=function(...e){return e.reduce(T)}}(sA);var cA={};!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=sA,r=lA;function n(e,t=e.schema){const{opts:r,self:n}=e;if(!r.strictSchema)return;if("boolean"==typeof t)return;const o=n.RULES.keywords;for(const r in t)o[r]||f(e,`unknown keyword: "${r}"`)}function o(e,t){if("boolean"==typeof e)return!e;for(const r in e)if(t[r])return!0;return!1}function a(e){return"number"==typeof e?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}function i(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function s({mergeNames:e,mergeToName:r,mergeValues:n,resultToName:o}){return(a,i,s,l)=>{const u=void 0===s?i:s instanceof t.Name?(i instanceof t.Name?e(a,i,s):r(a,i,s),s):i instanceof t.Name?(r(a,s,i),i):n(i,s);return l!==t.Name||u instanceof t.Name?u:o(a,u)}}function l(e,r){if(!0===r)return e.var("props",!0);const n=e.var("props",t._`{}`);return void 0!==r&&u(e,n,r),n}function u(e,r,n){Object.keys(n).forEach((n=>e.assign(t._`${r}${(0,t.getProperty)(n)}`,!0)))}e.toHash=function(e){const t={};for(const r of e)t[r]=!0;return t},e.alwaysValidSchema=function(e,t){return"boolean"==typeof t?t:0===Object.keys(t).length||(n(e,t),!o(t,e.self.RULES.all))},e.checkUnknownRules=n,e.schemaHasRules=o,e.schemaHasRulesButRef=function(e,t){if("boolean"==typeof e)return!e;for(const r in e)if("$ref"!==r&&t.all[r])return!0;return!1},e.schemaRefOrVal=function({topSchemaRef:e,schemaPath:r},n,o,a){if(!a){if("number"==typeof n||"boolean"==typeof n)return n;if("string"==typeof n)return t._`${n}`}return t._`${e}${r}${(0,t.getProperty)(o)}`},e.unescapeFragment=function(e){return i(decodeURIComponent(e))},e.escapeFragment=function(e){return encodeURIComponent(a(e))},e.escapeJsonPointer=a,e.unescapeJsonPointer=i,e.eachItem=function(e,t){if(Array.isArray(e))for(const r of e)t(r);else t(e)},e.mergeEvaluated={props:s({mergeNames:(e,r,n)=>e.if(t._`${n} !== true && ${r} !== undefined`,(()=>{e.if(t._`${r} === true`,(()=>e.assign(n,!0)),(()=>e.assign(n,t._`${n} || {}`).code(t._`Object.assign(${n}, ${r})`)))})),mergeToName:(e,r,n)=>e.if(t._`${n} !== true`,(()=>{!0===r?e.assign(n,!0):(e.assign(n,t._`${n} || {}`),u(e,n,r))})),mergeValues:(e,t)=>!0===e||{...e,...t},resultToName:l}),items:s({mergeNames:(e,r,n)=>e.if(t._`${n} !== true && ${r} !== undefined`,(()=>e.assign(n,t._`${r} === true ? true : ${n} > ${r} ? ${n} : ${r}`))),mergeToName:(e,r,n)=>e.if(t._`${n} !== true`,(()=>e.assign(n,!0===r||t._`${n} > ${r} ? ${n} : ${r}`))),mergeValues:(e,t)=>!0===e||Math.max(e,t),resultToName:(e,t)=>e.var("items",t)})},e.evaluatedPropsToName=l,e.setEvaluated=u;const c={};var d;function f(e,t,r=e.opts.strictSchema){if(r){if(t=`strict mode: ${t}`,!0===r)throw new Error(t);e.self.logger.warn(t)}}e.useFunc=function(e,t){return e.scopeValue("func",{ref:t,code:c[t.code]||(c[t.code]=new r._Code(t.code))})},function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"}(d=e.Type||(e.Type={})),e.getErrorPath=function(e,r,n){if(e instanceof t.Name){const o=r===d.Num;return n?o?t._`"[" + ${e} + "]"`:t._`"['" + ${e} + "']"`:o?t._`"/" + ${e}`:t._`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return n?(0,t.getProperty)(e).toString():"/"+a(e)},e.checkStrictMode=f}(cA);var dA,fA,pA,hA={};function mA(){if(dA)return hA;dA=1,Object.defineProperty(hA,"__esModule",{value:!0});const e=sA,t={data:new e.Name("data"),valCxt:new e.Name("valCxt"),instancePath:new e.Name("instancePath"),parentData:new e.Name("parentData"),parentDataProperty:new e.Name("parentDataProperty"),rootData:new e.Name("rootData"),dynamicAnchors:new e.Name("dynamicAnchors"),vErrors:new e.Name("vErrors"),errors:new e.Name("errors"),this:new e.Name("this"),self:new e.Name("self"),scope:new e.Name("scope"),json:new e.Name("json"),jsonPos:new e.Name("jsonPos"),jsonLen:new e.Name("jsonLen"),jsonPart:new e.Name("jsonPart")};return hA.default=t,hA}function vA(){return fA||(fA=1,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=sA,r=cA,n=mA();function o(e,r){const o=e.const("err",r);e.if(t._`${n.default.vErrors} === null`,(()=>e.assign(n.default.vErrors,t._`[${o}]`)),t._`${n.default.vErrors}.push(${o})`),e.code(t._`${n.default.errors}++`)}function a(e,r){const{gen:n,validateName:o,schemaEnv:a}=e;a.$async?n.throw(t._`new ${e.ValidationError}(${r})`):(n.assign(t._`${o}.errors`,r),n.return(!1))}e.keywordError={message:({keyword:e})=>t.str`must pass "${e}" keyword validation`},e.keyword$DataError={message:({keyword:e,schemaType:r})=>r?t.str`"${e}" keyword must be ${r} ($data)`:t.str`"${e}" keyword is invalid ($data)`},e.reportError=function(r,n=e.keywordError,i,l){const{it:u}=r,{gen:c,compositeRule:d,allErrors:f}=u,p=s(r,n,i);(null!=l?l:d||f)?o(c,p):a(u,t._`[${p}]`)},e.reportExtraError=function(t,r=e.keywordError,i){const{it:l}=t,{gen:u,compositeRule:c,allErrors:d}=l;o(u,s(t,r,i)),c||d||a(l,n.default.vErrors)},e.resetErrorsCount=function(e,r){e.assign(n.default.errors,r),e.if(t._`${n.default.vErrors} !== null`,(()=>e.if(r,(()=>e.assign(t._`${n.default.vErrors}.length`,r)),(()=>e.assign(n.default.vErrors,null)))))},e.extendErrors=function({gen:e,keyword:r,schemaValue:o,data:a,errsCount:i,it:s}){if(void 0===i)throw new Error("ajv implementation error");const l=e.name("err");e.forRange("i",i,n.default.errors,(i=>{e.const(l,t._`${n.default.vErrors}[${i}]`),e.if(t._`${l}.instancePath === undefined`,(()=>e.assign(t._`${l}.instancePath`,(0,t.strConcat)(n.default.instancePath,s.errorPath)))),e.assign(t._`${l}.schemaPath`,t.str`${s.errSchemaPath}/${r}`),s.opts.verbose&&(e.assign(t._`${l}.schema`,o),e.assign(t._`${l}.data`,a))}))};const i={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 s(e,r,o){const{createErrors:a}=e.it;return!1===a?t._`{}`:function(e,r,o={}){const{gen:a,it:s}=e,c=[l(s,o),u(e,o)];return function(e,{params:r,message:o},a){const{keyword:s,data:l,schemaValue:u,it:c}=e,{opts:d,propertyName:f,topSchemaRef:p,schemaPath:h}=c;a.push([i.keyword,s],[i.params,"function"==typeof r?r(e):r||t._`{}`]),d.messages&&a.push([i.message,"function"==typeof o?o(e):o]);d.verbose&&a.push([i.schema,u],[i.parentSchema,t._`${p}${h}`],[n.default.data,l]);f&&a.push([i.propertyName,f])}(e,r,c),a.object(...c)}(e,r,o)}function l({errorPath:e},{instancePath:o}){const a=o?t.str`${e}${(0,r.getErrorPath)(o,r.Type.Str)}`:e;return[n.default.instancePath,(0,t.strConcat)(n.default.instancePath,a)]}function u({keyword:e,it:{errSchemaPath:n}},{schemaPath:o,parentSchema:a}){let s=a?n:t.str`${n}/${e}`;return o&&(s=t.str`${s}${(0,r.getErrorPath)(o,r.Type.Str)}`),[i.schemaPath,s]}}(iA)),iA}var gA={},yA={};Object.defineProperty(yA,"__esModule",{value:!0}),yA.getRules=yA.isJSONType=void 0;const bA=new Set(["string","number","integer","boolean","null","object","array"]);yA.isJSONType=function(e){return"string"==typeof e&&bA.has(e)},yA.getRules=function(){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:{}}};var wA,SA={};function xA(){if(wA)return SA;function e(e,r){return r.rules.some((r=>t(e,r)))}function t(e,t){var r;return void 0!==e[t.keyword]||(null===(r=t.definition.implements)||void 0===r?void 0:r.some((t=>void 0!==e[t])))}return wA=1,Object.defineProperty(SA,"__esModule",{value:!0}),SA.shouldUseRule=SA.shouldUseGroup=SA.schemaHasRulesForType=void 0,SA.schemaHasRulesForType=function({schema:t,self:r},n){const o=r.RULES.types[n];return o&&!0!==o&&e(t,o)},SA.shouldUseGroup=e,SA.shouldUseRule=t,SA}!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=yA,r=xA(),n=vA(),o=sA,a=cA;var i;function s(e){const r=Array.isArray(e)?e:e?[e]:[];if(r.every(t.isJSONType))return r;throw new Error("type must be JSONType or JSONType[]: "+r.join(","))}!function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"}(i=e.DataType||(e.DataType={})),e.getSchemaTypes=function(e){const t=s(e.type);if(t.includes("null")){if(!1===e.nullable)throw new Error("type: null contradicts nullable: false")}else{if(!t.length&&void 0!==e.nullable)throw new Error('"nullable" cannot be used without "type"');!0===e.nullable&&t.push("null")}return t},e.getJSONTypes=s,e.coerceAndCheckDataType=function(e,t){const{gen:n,data:a,opts:s}=e,u=function(e,t){return t?e.filter((e=>l.has(e)||"array"===t&&"array"===e)):[]}(t,s.coerceTypes),d=t.length>0&&!(0===u.length&&1===t.length&&(0,r.schemaHasRulesForType)(e,t[0]));if(d){const r=c(t,a,s.strictNumbers,i.Wrong);n.if(r,(()=>{u.length?function(e,t,r){const{gen:n,data:a,opts:i}=e,s=n.let("dataType",o._`typeof ${a}`),u=n.let("coerced",o._`undefined`);"array"===i.coerceTypes&&n.if(o._`${s} == 'object' && Array.isArray(${a}) && ${a}.length == 1`,(()=>n.assign(a,o._`${a}[0]`).assign(s,o._`typeof ${a}`).if(c(t,a,i.strictNumbers),(()=>n.assign(u,a)))));n.if(o._`${u} !== undefined`);for(const e of r)(l.has(e)||"array"===e&&"array"===i.coerceTypes)&&d(e);function d(e){switch(e){case"string":return void n.elseIf(o._`${s} == "number" || ${s} == "boolean"`).assign(u,o._`"" + ${a}`).elseIf(o._`${a} === null`).assign(u,o._`""`);case"number":return void n.elseIf(o._`${s} == "boolean" || ${a} === null
|
|
30
51
|
|| (${s} == "string" && ${a} && ${a} == +${a})`).assign(u,o._`+${a}`);case"integer":return void n.elseIf(o._`${s} === "boolean" || ${a} === null
|
|
31
52
|
|| (${s} === "string" && ${a} && ${a} == +${a} && !(${a} % 1))`).assign(u,o._`+${a}`);case"boolean":return void n.elseIf(o._`${a} === "false" || ${a} === 0 || ${a} === null`).assign(u,!1).elseIf(o._`${a} === "true" || ${a} === 1`).assign(u,!0);case"null":return n.elseIf(o._`${a} === "" || ${a} === 0 || ${a} === false`),void n.assign(u,null);case"array":n.elseIf(o._`${s} === "string" || ${s} === "number"
|
|
32
|
-
|| ${s} === "boolean" || ${a} === null`).assign(u,o._`[${a}]`)}}n.else(),f(e),n.endIf(),n.if(o._`${u} !== undefined`,(()=>{n.assign(a,u),function({gen:e,parentData:t,parentDataProperty:r},n){e.if(o._`${t} !== undefined`,(()=>e.assign(o._`${t}[${r}]`,n)))}(e,u)}))}(e,t,u):f(e)}))}return d};const l=new Set(["string","number","integer","boolean","null"]);function u(e,t,r,n=i.Correct){const a=n===i.Correct?o.operators.EQ:o.operators.NEQ;let s;switch(e){case"null":return o._`${t} ${a} null`;case"array":s=o._`Array.isArray(${t})`;break;case"object":s=o._`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":s=l(o._`!(${t} % 1) && !isNaN(${t})`);break;case"number":s=l();break;default:return o._`typeof ${t} ${a} ${e}`}return n===i.Correct?s:(0,o.not)(s);function l(e=o.nil){return(0,o.and)(o._`typeof ${t} == "number"`,e,r?o._`isFinite(${t})`:o.nil)}}function c(e,t,r,n){if(1===e.length)return u(e[0],t,r,n);let i;const s=(0,a.toHash)(e);if(s.array&&s.object){const e=o._`typeof ${t} != "object"`;i=s.null?e:o._`!${t} || ${e}`,delete s.null,delete s.array,delete s.object}else i=o.nil;s.number&&delete s.integer;for(const e in s)i=(0,o.and)(i,u(e,t,r,n));return i}e.checkDataType=u,e.checkDataTypes=c;const d={message:({schema:e})=>`must be ${e}`,params:({schema:e,schemaValue:t})=>"string"==typeof e?o._`{type: ${e}}`:o._`{type: ${t}}`};function f(e){const t=function(e){const{gen:t,data:r,schema:n}=e,o=(0,a.schemaRefOrVal)(e,n,"type");return{gen:t,keyword:"type",data:r,schema:n.type,schemaCode:o,schemaValue:o,parentSchema:n,params:{},it:e}}(e);(0,n.reportError)(t,d)}e.reportTypeError=f}(pD);var bD,wD={};var SD,xD,$D={},kD={};function _D(){if(SD)return kD;SD=1,Object.defineProperty(kD,"__esModule",{value:!0}),kD.validateUnion=kD.validateArray=kD.usePattern=kD.callValidateCode=kD.schemaProperties=kD.allSchemaProperties=kD.noPropertyInData=kD.propertyInData=kD.isOwnProperty=kD.hasPropFunc=kD.reportMissingProp=kD.checkMissingProp=kD.checkReportMissingProp=void 0;const e=aD,t=lD,r=uD,n=lD;function o(t){return t.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:e._`Object.prototype.hasOwnProperty`})}function a(t,r,n){return e._`${o(t)}.call(${r}, ${n})`}function i(t,r,n,o){const i=e._`${r}${(0,e.getProperty)(n)} === undefined`;return o?(0,e.or)(i,(0,e.not)(a(t,r,n))):i}function s(e){return e?Object.keys(e).filter((e=>"__proto__"!==e)):[]}kD.checkReportMissingProp=function(t,r){const{gen:n,data:o,it:a}=t;n.if(i(n,o,r,a.opts.ownProperties),(()=>{t.setParams({missingProperty:e._`${r}`},!0),t.error()}))},kD.checkMissingProp=function({gen:t,data:r,it:{opts:n}},o,a){return(0,e.or)(...o.map((o=>(0,e.and)(i(t,r,o,n.ownProperties),e._`${a} = ${o}`))))},kD.reportMissingProp=function(e,t){e.setParams({missingProperty:t},!0),e.error()},kD.hasPropFunc=o,kD.isOwnProperty=a,kD.propertyInData=function(t,r,n,o){const i=e._`${r}${(0,e.getProperty)(n)} !== undefined`;return o?e._`${i} && ${a(t,r,n)}`:i},kD.noPropertyInData=i,kD.allSchemaProperties=s,kD.schemaProperties=function(e,r){return s(r).filter((n=>!(0,t.alwaysValidSchema)(e,r[n])))},kD.callValidateCode=function({schemaCode:t,data:n,it:{gen:o,topSchemaRef:a,schemaPath:i,errorPath:s},it:l},u,c,d){const f=d?e._`${t}, ${n}, ${a}${i}`:n,p=[[r.default.instancePath,(0,e.strConcat)(r.default.instancePath,s)],[r.default.parentData,l.parentData],[r.default.parentDataProperty,l.parentDataProperty],[r.default.rootData,r.default.rootData]];l.opts.dynamicRef&&p.push([r.default.dynamicAnchors,r.default.dynamicAnchors]);const m=e._`${f}, ${o.object(...p)}`;return c!==e.nil?e._`${u}.call(${c}, ${m})`:e._`${u}(${m})`};const l=e._`new RegExp`;return kD.usePattern=function({gen:t,it:{opts:r}},o){const a=r.unicodeRegExp?"u":"",{regExp:i}=r.code,s=i(o,a);return t.scopeValue("pattern",{key:s.toString(),ref:s,code:e._`${"new RegExp"===i.code?l:(0,n.useFunc)(t,i)}(${o}, ${a})`})},kD.validateArray=function(r){const{gen:n,data:o,keyword:a,it:i}=r,s=n.name("valid");if(i.allErrors){const e=n.let("valid",!0);return l((()=>n.assign(e,!1))),e}return n.var(s,!0),l((()=>n.break())),s;function l(i){const l=n.const("len",e._`${o}.length`);n.forRange("i",0,l,(o=>{r.subschema({keyword:a,dataProp:o,dataPropType:t.Type.Num},s),n.if((0,e.not)(s),i)}))}},kD.validateUnion=function(r){const{gen:n,schema:o,keyword:a,it:i}=r;if(!Array.isArray(o))throw new Error("ajv implementation error");if(o.some((e=>(0,t.alwaysValidSchema)(i,e)))&&!i.opts.unevaluated)return;const s=n.let("valid",!1),l=n.name("_valid");n.block((()=>o.forEach(((t,o)=>{const i=r.subschema({keyword:a,schemaProp:o,compositeRule:!0},l);n.assign(s,e._`${s} || ${l}`);r.mergeValidEvaluated(i,l)||n.if((0,e.not)(s))})))),r.result(s,(()=>r.reset()),(()=>r.error(!0)))},kD}function ED(){if(xD)return $D;xD=1,Object.defineProperty($D,"__esModule",{value:!0}),$D.validateKeywordUsage=$D.validSchemaType=$D.funcKeywordCode=$D.macroKeywordCode=void 0;const e=aD,t=uD,r=_D(),n=oD;function o(t){const{gen:r,data:n,it:o}=t;r.if(o.parentData,(()=>r.assign(n,e._`${o.parentData}[${o.parentDataProperty}]`)))}function a(t,r,n){if(void 0===n)throw new Error(`keyword "${r}" failed to compile`);return t.scopeValue("keyword","function"==typeof n?{ref:n}:{ref:n,code:(0,e.stringify)(n)})}return $D.macroKeywordCode=function(t,r){const{gen:n,keyword:o,schema:i,parentSchema:s,it:l}=t,u=r.macro.call(l.self,i,s,l),c=a(n,o,u);!1!==l.opts.validateSchema&&l.self.validateSchema(u,!0);const d=n.name("valid");t.subschema({schema:u,schemaPath:e.nil,errSchemaPath:`${l.errSchemaPath}/${o}`,topSchemaRef:c,compositeRule:!0},d),t.pass(d,(()=>t.error(!0)))},$D.funcKeywordCode=function(i,s){var l;const{gen:u,keyword:c,schema:d,parentSchema:f,$data:p,it:m}=i;!function({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}(m,s);const h=!p&&s.compile?s.compile.call(m.self,d,f,m):s.validate,v=a(u,c,h),y=u.let("valid");function g(n=(s.async?e._`await `:e.nil)){const o=m.opts.passContext?t.default.this:t.default.self,a=!("compile"in s&&!p||!1===s.schema);u.assign(y,e._`${n}${(0,r.callValidateCode)(i,v,o,a)}`,s.modifying)}function b(t){var r;u.if((0,e.not)(null!==(r=s.valid)&&void 0!==r?r:y),t)}i.block$data(y,(function(){if(!1===s.errors)g(),s.modifying&&o(i),b((()=>i.error()));else{const r=s.async?function(){const t=u.let("ruleErrs",null);return u.try((()=>g(e._`await `)),(r=>u.assign(y,!1).if(e._`${r} instanceof ${m.ValidationError}`,(()=>u.assign(t,e._`${r}.errors`)),(()=>u.throw(r))))),t}():function(){const t=e._`${v}.errors`;return u.assign(t,null),g(e.nil),t}();s.modifying&&o(i),b((()=>function(r,o){const{gen:a}=r;a.if(e._`Array.isArray(${o})`,(()=>{a.assign(t.default.vErrors,e._`${t.default.vErrors} === null ? ${o} : ${t.default.vErrors}.concat(${o})`).assign(t.default.errors,e._`${t.default.vErrors}.length`),(0,n.extendErrors)(r)}),(()=>r.error()))}(i,r)))}})),i.ok(null!==(l=s.valid)&&void 0!==l?l:y)},$D.validSchemaType=function(e,t,r=!1){return!t.length||t.some((t=>"array"===t?Array.isArray(e):"object"===t?e&&"object"==typeof e&&!Array.isArray(e):typeof e==t||r&&void 0===e))},$D.validateKeywordUsage=function({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(null==i?void 0:i.some((t=>!Object.prototype.hasOwnProperty.call(e,t))))throw new Error(`parent schema must have dependencies of ${a}: ${i.join(",")}`);if(o.validateSchema){if(!o.validateSchema(e[a])){const e=`keyword "${a}" value is invalid at path "${n}": `+r.errorsText(o.validateSchema.errors);if("log"!==t.validateSchema)throw new Error(e);r.logger.error(e)}}},$D}var CD,PD={};var jD={},OD={},ND={get exports(){return OD},set exports(e){OD=e}},RD=ND.exports=function(e,t,r){"function"==typeof t&&(r=t,t={}),TD(t,"function"==typeof(r=t.cb||r)?r:r.pre||function(){},r.post||function(){},e,"",e)};function TD(e,t,r,n,o,a,i,s,l,u){if(n&&"object"==typeof n&&!Array.isArray(n)){for(var c in t(n,o,a,i,s,l,u),n){var d=n[c];if(Array.isArray(d)){if(c in RD.arrayKeywords)for(var f=0;f<d.length;f++)TD(e,t,r,d[f],o+"/"+c+"/"+f,a,o,c,n,f)}else if(c in RD.propsKeywords){if(d&&"object"==typeof d)for(var p in d)TD(e,t,r,d[p],o+"/"+c+"/"+p.replace(/~/g,"~0").replace(/\//g,"~1"),a,o,c,n,p)}else(c in RD.keywords||e.allKeys&&!(c in RD.skipKeywords))&&TD(e,t,r,d,o+"/"+c,a,o,c,n)}r(n,o,a,i,s,l,u)}}RD.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0},RD.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},RD.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},RD.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},Object.defineProperty(jD,"__esModule",{value:!0}),jD.getSchemaRefs=jD.resolveUrl=jD.normalizeId=jD._getFullPath=jD.getFullPath=jD.inlineRef=void 0;const AD=lD,ID=FT,MD=OD,FD=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);jD.inlineRef=function(e,t=!0){return"boolean"==typeof e||(!0===t?!zD(e):!!t&&LD(e)<=t)};const DD=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function zD(e){for(const t in e){if(DD.has(t))return!0;const r=e[t];if(Array.isArray(r)&&r.some(zD))return!0;if("object"==typeof r&&zD(r))return!0}return!1}function LD(e){let t=0;for(const r in e){if("$ref"===r)return 1/0;if(t++,!FD.has(r)&&("object"==typeof e[r]&&(0,AD.eachItem)(e[r],(e=>t+=LD(e))),t===1/0))return 1/0}return t}function BD(e,t="",r){!1!==r&&(t=WD(t));const n=e.parse(t);return VD(e,n)}function VD(e,t){return e.serialize(t).split("#")[0]+"#"}jD.getFullPath=BD,jD._getFullPath=VD;const UD=/#\/?$/;function WD(e){return e?e.replace(UD,""):""}jD.normalizeId=WD,jD.resolveUrl=function(e,t,r){return r=WD(r),e.resolve(t,r)};const qD=/^[a-z_][-a-z0-9._]*$/i;var KD;function HD(){if(KD)return rD;KD=1,Object.defineProperty(rD,"__esModule",{value:!0}),rD.getData=rD.KeywordCxt=rD.validateFunctionCode=void 0;const e=function(){if(fD)return nD;fD=1,Object.defineProperty(nD,"__esModule",{value:!0}),nD.boolOrEmptySchema=nD.topBoolOrEmptySchema=void 0;const e=oD,t=aD,r=uD,n={message:"boolean schema is false"};function o(t,r){const{gen:o,data:a}=t,i={gen:o,keyword:"false schema",data:a,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:t};(0,e.reportError)(i,n,void 0,r)}return nD.topBoolOrEmptySchema=function(e){const{gen:n,schema:a,validateName:i}=e;!1===a?o(e,!1):"object"==typeof a&&!0===a.$async?n.return(r.default.data):(n.assign(t._`${i}.errors`,null),n.return(!0))},nD.boolOrEmptySchema=function(e,t){const{gen:r,schema:n}=e;!1===n?(r.var(t,!1),o(e)):r.var(t,!0)},nD}(),t=pD,r=vD,n=pD,o=function(){if(bD)return wD;bD=1,Object.defineProperty(wD,"__esModule",{value:!0}),wD.assignDefaults=void 0;const e=aD,t=lD;function r(r,n,o){const{gen:a,compositeRule:i,data:s,opts:l}=r;if(void 0===o)return;const u=e._`${s}${(0,e.getProperty)(n)}`;if(i)return void(0,t.checkStrictMode)(r,`default is ignored for: ${u}`);let c=e._`${u} === undefined`;"empty"===l.useDefaults&&(c=e._`${c} || ${u} === null || ${u} === ""`),a.if(c,e._`${u} = ${(0,e.stringify)(o)}`)}return wD.assignDefaults=function(e,t){const{properties:n,items:o}=e.schema;if("object"===t&&n)for(const t in n)r(e,t,n[t].default);else"array"===t&&Array.isArray(o)&&o.forEach(((t,n)=>r(e,n,t.default)))},wD}(),a=ED(),i=function(){if(CD)return PD;CD=1,Object.defineProperty(PD,"__esModule",{value:!0}),PD.extendSubschemaMode=PD.extendSubschemaData=PD.getSubschema=void 0;const e=aD,t=lD;return PD.getSubschema=function(r,{keyword:n,schemaProp:o,schema:a,schemaPath:i,errSchemaPath:s,topSchemaRef:l}){if(void 0!==n&&void 0!==a)throw new Error('both "keyword" and "schema" passed, only one allowed');if(void 0!==n){const a=r.schema[n];return void 0===o?{schema:a,schemaPath:e._`${r.schemaPath}${(0,e.getProperty)(n)}`,errSchemaPath:`${r.errSchemaPath}/${n}`}:{schema:a[o],schemaPath:e._`${r.schemaPath}${(0,e.getProperty)(n)}${(0,e.getProperty)(o)}`,errSchemaPath:`${r.errSchemaPath}/${n}/${(0,t.escapeFragment)(o)}`}}if(void 0!==a){if(void 0===i||void 0===s||void 0===l)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:a,schemaPath:i,topSchemaRef:l,errSchemaPath:s}}throw new Error('either "keyword" or "schema" must be passed')},PD.extendSubschemaData=function(r,n,{dataProp:o,dataPropType:a,data:i,dataTypes:s,propertyName:l}){if(void 0!==i&&void 0!==o)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:u}=n;if(void 0!==o){const{errorPath:i,dataPathArr:s,opts:l}=n;c(u.let("data",e._`${n.data}${(0,e.getProperty)(o)}`,!0)),r.errorPath=e.str`${i}${(0,t.getErrorPath)(o,a,l.jsPropertySyntax)}`,r.parentDataProperty=e._`${o}`,r.dataPathArr=[...s,r.parentDataProperty]}function c(e){r.data=e,r.dataLevel=n.dataLevel+1,r.dataTypes=[],n.definedProperties=new Set,r.parentData=n.data,r.dataNames=[...n.dataNames,e]}void 0!==i&&(c(i instanceof e.Name?i:u.let("data",i,!0)),void 0!==l&&(r.propertyName=l)),s&&(r.dataTypes=s)},PD.extendSubschemaMode=function(e,{jtdDiscriminator:t,jtdMetadata:r,compositeRule:n,createErrors:o,allErrors:a}){void 0!==n&&(e.compositeRule=n),void 0!==o&&(e.createErrors=o),void 0!==a&&(e.allErrors=a),e.jtdDiscriminator=t,e.jtdMetadata=r},PD}(),s=aD,l=uD,u=jD,c=lD,d=oD;function f({gen:e,validateName:t,schema:r,schemaEnv:n,opts:o},a){o.code.es5?e.func(t,s._`${l.default.data}, ${l.default.valCxt}`,n.$async,(()=>{e.code(s._`"use strict"; ${p(r,o)}`),function(e,t){e.if(l.default.valCxt,(()=>{e.var(l.default.instancePath,s._`${l.default.valCxt}.${l.default.instancePath}`),e.var(l.default.parentData,s._`${l.default.valCxt}.${l.default.parentData}`),e.var(l.default.parentDataProperty,s._`${l.default.valCxt}.${l.default.parentDataProperty}`),e.var(l.default.rootData,s._`${l.default.valCxt}.${l.default.rootData}`),t.dynamicRef&&e.var(l.default.dynamicAnchors,s._`${l.default.valCxt}.${l.default.dynamicAnchors}`)}),(()=>{e.var(l.default.instancePath,s._`""`),e.var(l.default.parentData,s._`undefined`),e.var(l.default.parentDataProperty,s._`undefined`),e.var(l.default.rootData,l.default.data),t.dynamicRef&&e.var(l.default.dynamicAnchors,s._`{}`)}))}(e,o),e.code(a)})):e.func(t,s._`${l.default.data}, ${function(e){return s._`{${l.default.instancePath}="", ${l.default.parentData}, ${l.default.parentDataProperty}, ${l.default.rootData}=${l.default.data}${e.dynamicRef?s._`, ${l.default.dynamicAnchors}={}`:s.nil}}={}`}(o)}`,n.$async,(()=>e.code(p(r,o)).code(a)))}function p(e,t){const r="object"==typeof e&&e[t.schemaId];return r&&(t.code.source||t.code.process)?s._`/*# sourceURL=${r} */`:s.nil}function m(t,r){v(t)&&(y(t),h(t))?function(e,t){const{schema:r,gen:n,opts:o}=e;o.$comment&&r.$comment&&b(e);(function(e){const t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,u.resolveUrl)(e.opts.uriResolver,e.baseId,t))})(e),function(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}(e);const a=n.const("_errs",l.default.errors);g(e,a),n.var(t,s._`${a} === ${l.default.errors}`)}(t,r):(0,e.boolOrEmptySchema)(t,r)}function h({schema:e,self:t}){if("boolean"==typeof e)return!e;for(const r in e)if(t.RULES.all[r])return!0;return!1}function v(e){return"boolean"!=typeof e.schema}function y(e){(0,c.checkUnknownRules)(e),function(e){const{schema:t,errSchemaPath:r,opts:n,self:o}=e;t.$ref&&n.ignoreKeywordsWithRef&&(0,c.schemaHasRulesButRef)(t,o.RULES)&&o.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}(e)}function g(e,r){if(e.opts.jtd)return w(e,[],!1,r);const n=(0,t.getSchemaTypes)(e.schema);w(e,n,!(0,t.coerceAndCheckDataType)(e,n),r)}function b({gen:e,schemaEnv:t,schema:r,errSchemaPath:n,opts:o}){const a=r.$comment;if(!0===o.$comment)e.code(s._`${l.default.self}.logger.log(${a})`);else if("function"==typeof o.$comment){const r=s.str`${n}/$comment`,o=e.scopeValue("root",{ref:t.root});e.code(s._`${l.default.self}.opts.$comment(${a}, ${r}, ${o}.schema)`)}}function w(e,t,o,a){const{gen:i,schema:u,data:d,allErrors:f,opts:p,self:m}=e,{RULES:h}=m;function v(c){(0,r.shouldUseGroup)(u,c)&&(c.type?(i.if((0,n.checkDataType)(c.type,d,p.strictNumbers)),S(e,c),1===t.length&&t[0]===c.type&&o&&(i.else(),(0,n.reportTypeError)(e)),i.endIf()):S(e,c),f||i.if(s._`${l.default.errors} === ${a||0}`))}!u.$ref||!p.ignoreKeywordsWithRef&&(0,c.schemaHasRulesButRef)(u,h)?(p.jtd||function(e,t){if(e.schemaEnv.meta||!e.opts.strictTypes)return;(function(e,t){if(!t.length)return;if(!e.dataTypes.length)return void(e.dataTypes=t);t.forEach((t=>{$(e.dataTypes,t)||k(e,`type "${t}" not allowed by context "${e.dataTypes.join(",")}"`)})),function(e,t){const r=[];for(const n of e.dataTypes)$(t,n)?r.push(n):t.includes("integer")&&"number"===n&&r.push("integer");e.dataTypes=r}(e,t)})(e,t),e.opts.allowUnionTypes||function(e,t){t.length>1&&(2!==t.length||!t.includes("null"))&&k(e,"use allowUnionTypes to allow union type keyword")}(e,t);!function(e,t){const n=e.self.RULES.all;for(const o in n){const a=n[o];if("object"==typeof a&&(0,r.shouldUseRule)(e.schema,a)){const{type:r}=a.definition;r.length&&!r.some((e=>x(t,e)))&&k(e,`missing type "${r.join(",")}" for keyword "${o}"`)}}}(e,e.dataTypes)}(e,t),i.block((()=>{for(const e of h.rules)v(e);v(h.post)}))):i.block((()=>E(e,"$ref",h.all.$ref.definition)))}function S(e,t){const{gen:n,schema:a,opts:{useDefaults:i}}=e;i&&(0,o.assignDefaults)(e,t.type),n.block((()=>{for(const n of t.rules)(0,r.shouldUseRule)(a,n)&&E(e,n.keyword,n.definition,t.type)}))}function x(e,t){return e.includes(t)||"number"===t&&e.includes("integer")}function $(e,t){return e.includes(t)||"integer"===t&&e.includes("number")}function k(e,t){t+=` at "${e.schemaEnv.baseId+e.errSchemaPath}" (strictTypes)`,(0,c.checkStrictMode)(e,t,e.opts.strictTypes)}rD.validateFunctionCode=function(t){v(t)&&(y(t),h(t))?function(e){const{schema:t,opts:r,gen:n}=e;f(e,(()=>{r.$comment&&t.$comment&&b(e),function(e){const{schema:t,opts:r}=e;void 0!==t.default&&r.useDefaults&&r.strictSchema&&(0,c.checkStrictMode)(e,"default is ignored in the schema root")}(e),n.let(l.default.vErrors,null),n.let(l.default.errors,0),r.unevaluated&&function(e){const{gen:t,validateName:r}=e;e.evaluated=t.const("evaluated",s._`${r}.evaluated`),t.if(s._`${e.evaluated}.dynamicProps`,(()=>t.assign(s._`${e.evaluated}.props`,s._`undefined`))),t.if(s._`${e.evaluated}.dynamicItems`,(()=>t.assign(s._`${e.evaluated}.items`,s._`undefined`)))}(e),g(e),function(e){const{gen:t,schemaEnv:r,validateName:n,ValidationError:o,opts:a}=e;r.$async?t.if(s._`${l.default.errors} === 0`,(()=>t.return(l.default.data)),(()=>t.throw(s._`new ${o}(${l.default.vErrors})`))):(t.assign(s._`${n}.errors`,l.default.vErrors),a.unevaluated&&function({gen:e,evaluated:t,props:r,items:n}){r instanceof s.Name&&e.assign(s._`${t}.props`,r);n instanceof s.Name&&e.assign(s._`${t}.items`,n)}(e),t.return(s._`${l.default.errors} === 0`))}(e)}))}(t):f(t,(()=>(0,e.topBoolOrEmptySchema)(t)))};class _{constructor(e,t,r){if((0,a.validateKeywordUsage)(e,t,r),this.gen=e.gen,this.allErrors=e.allErrors,this.keyword=r,this.data=e.data,this.schema=e.schema[r],this.$data=t.$data&&e.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,c.schemaRefOrVal)(e,this.schema,r,this.$data),this.schemaType=t.schemaType,this.parentSchema=e.schema,this.params={},this.it=e,this.def=t,this.$data)this.schemaCode=e.gen.const("vSchema",j(this.$data,e));else if(this.schemaCode=this.schemaValue,!(0,a.validSchemaType)(this.schema,t.schemaType,t.allowUndefined))throw new Error(`${r} value must be ${JSON.stringify(t.schemaType)}`);("code"in t?t.trackErrors:!1!==t.errors)&&(this.errsCount=e.gen.const("_errs",l.default.errors))}result(e,t,r){this.failResult((0,s.not)(e),t,r)}failResult(e,t,r){this.gen.if(e),r?r():this.error(),t?(this.gen.else(),t(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(e,t){this.failResult((0,s.not)(e),void 0,t)}fail(e){if(void 0===e)return this.error(),void(this.allErrors||this.gen.if(!1));this.gen.if(e),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(e){if(!this.$data)return this.fail(e);const{schemaCode:t}=this;this.fail(s._`${t} !== undefined && (${(0,s.or)(this.invalid$data(),e)})`)}error(e,t,r){if(t)return this.setParams(t),this._error(e,r),void this.setParams({});this._error(e,r)}_error(e,t){(e?d.reportExtraError:d.reportError)(this,this.def.error,t)}$dataError(){(0,d.reportError)(this,this.def.$dataError||d.keyword$DataError)}reset(){if(void 0===this.errsCount)throw new Error('add "trackErrors" to keyword definition');(0,d.resetErrorsCount)(this.gen,this.errsCount)}ok(e){this.allErrors||this.gen.if(e)}setParams(e,t){t?Object.assign(this.params,e):this.params=e}block$data(e,t,r=s.nil){this.gen.block((()=>{this.check$data(e,r),t()}))}check$data(e=s.nil,t=s.nil){if(!this.$data)return;const{gen:r,schemaCode:n,schemaType:o,def:a}=this;r.if((0,s.or)(s._`${n} === undefined`,t)),e!==s.nil&&r.assign(e,!0),(o.length||a.validateSchema)&&(r.elseIf(this.invalid$data()),this.$dataError(),e!==s.nil&&r.assign(e,!1)),r.else()}invalid$data(){const{gen:e,schemaCode:t,schemaType:r,def:o,it:a}=this;return(0,s.or)(function(){if(r.length){if(!(t instanceof s.Name))throw new Error("ajv implementation error");const e=Array.isArray(r)?r:[r];return s._`${(0,n.checkDataTypes)(e,t,a.opts.strictNumbers,n.DataType.Wrong)}`}return s.nil}(),function(){if(o.validateSchema){const r=e.scopeValue("validate$data",{ref:o.validateSchema});return s._`!${r}(${t})`}return s.nil}())}subschema(e,t){const r=(0,i.getSubschema)(this.it,e);(0,i.extendSubschemaData)(r,this.it,e),(0,i.extendSubschemaMode)(r,e);const n={...this.it,...r,items:void 0,props:void 0};return m(n,t),n}mergeEvaluated(e,t){const{it:r,gen:n}=this;r.opts.unevaluated&&(!0!==r.props&&void 0!==e.props&&(r.props=c.mergeEvaluated.props(n,e.props,r.props,t)),!0!==r.items&&void 0!==e.items&&(r.items=c.mergeEvaluated.items(n,e.items,r.items,t)))}mergeValidEvaluated(e,t){const{it:r,gen:n}=this;if(r.opts.unevaluated&&(!0!==r.props||!0!==r.items))return n.if(t,(()=>this.mergeEvaluated(e,s.Name))),!0}}function E(e,t,r,n){const o=new _(e,r,t);"code"in r?r.code(o,n):o.$data&&r.validate?(0,a.funcKeywordCode)(o,r):"macro"in r?(0,a.macroKeywordCode)(o,r):(r.compile||r.validate)&&(0,a.funcKeywordCode)(o,r)}rD.KeywordCxt=_;const C=/^\/(?:[^~]|~0|~1)*$/,P=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function j(e,{dataLevel:t,dataNames:r,dataPathArr:n}){let o,a;if(""===e)return l.default.rootData;if("/"===e[0]){if(!C.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);o=e,a=l.default.rootData}else{const i=P.exec(e);if(!i)throw new Error(`Invalid JSON-pointer: ${e}`);const s=+i[1];if(o=i[2],"#"===o){if(s>=t)throw new Error(d("property/index",s));return n[t-s]}if(s>t)throw new Error(d("data",s));if(a=r[t-s],!o)return a}let i=a;const u=o.split("/");for(const e of u)e&&(a=s._`${a}${(0,s.getProperty)((0,c.unescapeJsonPointer)(e))}`,i=s._`${i} && ${a}`);return i;function d(e,r){return`Cannot access ${e} ${r} levels up, current level is ${t}`}}return rD.getData=j,rD}jD.getSchemaRefs=function(e,t){if("boolean"==typeof e)return{};const{schemaId:r,uriResolver:n}=this.opts,o=WD(e[r]||t),a={"":o},i=BD(n,o,!1),s={},l=new Set;return MD(e,{allKeys:!0},((e,t,n,o)=>{if(void 0===o)return;const d=i+t;let f=a[o];function p(t){const r=this.opts.uriResolver.resolve;if(t=WD(f?r(f,t):t),l.has(t))throw c(t);l.add(t);let n=this.refs[t];return"string"==typeof n&&(n=this.refs[n]),"object"==typeof n?u(e,n.schema,t):t!==WD(d)&&("#"===t[0]?(u(e,s[t],t),s[t]=e):this.refs[t]=d),t}function m(e){if("string"==typeof e){if(!qD.test(e))throw new Error(`invalid anchor "${e}"`);p.call(this,`#${e}`)}}"string"==typeof e[r]&&(f=p.call(this,e[r])),m.call(this,e.$anchor),m.call(this,e.$dynamicAnchor),a[t]=f})),s;function u(e,t,r){if(void 0!==t&&!ID(e,t))throw c(r)}function c(e){return new Error(`reference "${e}" resolves to more than one schema`)}};var GD,QD={};function XD(){if(GD)return QD;GD=1,Object.defineProperty(QD,"__esModule",{value:!0});class e extends Error{constructor(e){super("validation failed"),this.errors=e,this.ajv=this.validation=!0}}return QD.default=e,QD}var YD,JD={};function ZD(){if(YD)return JD;YD=1,Object.defineProperty(JD,"__esModule",{value:!0});const e=jD;class t extends Error{constructor(t,r,n,o){super(o||`can't resolve reference ${n} from id ${r}`),this.missingRef=(0,e.resolveUrl)(t,r,n),this.missingSchema=(0,e.normalizeId)((0,e.getFullPath)(t,this.missingRef))}}return JD.default=t,JD}var ez={};Object.defineProperty(ez,"__esModule",{value:!0}),ez.resolveSchema=ez.getCompilingSchema=ez.resolveRef=ez.compileSchema=ez.SchemaEnv=void 0;const tz=aD,rz=XD(),nz=uD,oz=jD,az=lD,iz=HD();class sz{constructor(e){var t;let r;this.refs={},this.dynamicAnchors={},"object"==typeof e.schema&&(r=e.schema),this.schema=e.schema,this.schemaId=e.schemaId,this.root=e.root||this,this.baseId=null!==(t=e.baseId)&&void 0!==t?t:(0,oz.normalizeId)(null==r?void 0:r[e.schemaId||"$id"]),this.schemaPath=e.schemaPath,this.localRefs=e.localRefs,this.meta=e.meta,this.$async=null==r?void 0:r.$async,this.refs={}}}function lz(e){const t=cz.call(this,e);if(t)return t;const r=(0,oz.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:n,lines:o}=this.opts.code,{ownProperties:a}=this.opts,i=new tz.CodeGen(this.scope,{es5:n,lines:o,ownProperties:a});let s;e.$async&&(s=i.scopeValue("Error",{ref:rz.default,code:tz._`require("ajv/dist/runtime/validation_error").default`}));const l=i.scopeName("validate");e.validateName=l;const u={gen:i,allErrors:this.opts.allErrors,data:nz.default.data,parentData:nz.default.parentData,parentDataProperty:nz.default.parentDataProperty,dataNames:[nz.default.data],dataPathArr:[tz.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:i.scopeValue("schema",!0===this.opts.code.source?{ref:e.schema,code:(0,tz.stringify)(e.schema)}:{ref:e.schema}),validateName:l,ValidationError:s,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:tz.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:tz._`""`,opts:this.opts,self:this};let c;try{this._compilations.add(e),(0,iz.validateFunctionCode)(u),i.optimize(this.opts.code.optimize);const t=i.toString();c=`${i.scopeRefs(nz.default.scope)}return ${t}`,this.opts.code.process&&(c=this.opts.code.process(c,e));const r=new Function(`${nz.default.self}`,`${nz.default.scope}`,c)(this,this.scope.get());if(this.scope.value(l,{ref:r}),r.errors=null,r.schema=e.schema,r.schemaEnv=e,e.$async&&(r.$async=!0),!0===this.opts.code.source&&(r.source={validateName:l,validateCode:t,scopeValues:i._values}),this.opts.unevaluated){const{props:e,items:t}=u;r.evaluated={props:e instanceof tz.Name?void 0:e,items:t instanceof tz.Name?void 0:t,dynamicProps:e instanceof tz.Name,dynamicItems:t instanceof tz.Name},r.source&&(r.source.evaluated=(0,tz.stringify)(r.evaluated))}return e.validate=r,e}catch(t){throw delete e.validate,delete e.validateName,c&&this.logger.error("Error compiling schema, function code:",c),t}finally{this._compilations.delete(e)}}function uz(e){return(0,oz.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:lz.call(this,e)}function cz(e){for(const n of this._compilations)if(r=e,(t=n).schema===r.schema&&t.root===r.root&&t.baseId===r.baseId)return n;var t,r}function dz(e,t){let r;for(;"string"==typeof(r=this.refs[t]);)t=r;return r||this.schemas[t]||fz.call(this,e,t)}function fz(e,t){const r=this.opts.uriResolver.parse(t),n=(0,oz._getFullPath)(this.opts.uriResolver,r);let o=(0,oz.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&n===o)return mz.call(this,r,e);const a=(0,oz.normalizeId)(n),i=this.refs[a]||this.schemas[a];if("string"==typeof i){const t=fz.call(this,e,i);if("object"!=typeof(null==t?void 0:t.schema))return;return mz.call(this,r,t)}if("object"==typeof(null==i?void 0:i.schema)){if(i.validate||lz.call(this,i),a===(0,oz.normalizeId)(t)){const{schema:t}=i,{schemaId:r}=this.opts,n=t[r];return n&&(o=(0,oz.resolveUrl)(this.opts.uriResolver,o,n)),new sz({schema:t,schemaId:r,root:e,baseId:o})}return mz.call(this,r,i)}}ez.SchemaEnv=sz,ez.compileSchema=lz,ez.resolveRef=function(e,t,r){var n;r=(0,oz.resolveUrl)(this.opts.uriResolver,t,r);const o=e.refs[r];if(o)return o;let a=dz.call(this,e,r);if(void 0===a){const o=null===(n=e.localRefs)||void 0===n?void 0:n[r],{schemaId:i}=this.opts;o&&(a=new sz({schema:o,schemaId:i,root:e,baseId:t}))}return void 0!==a?e.refs[r]=uz.call(this,a):void 0},ez.getCompilingSchema=cz,ez.resolveSchema=fz;const pz=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function mz(e,{baseId:t,schema:r,root:n}){var o;if("/"!==(null===(o=e.fragment)||void 0===o?void 0:o[0]))return;for(const n of e.fragment.slice(1).split("/")){if("boolean"==typeof r)return;const e=r[(0,az.unescapeFragment)(n)];if(void 0===e)return;const o="object"==typeof(r=e)&&r[this.opts.schemaId];!pz.has(n)&&o&&(t=(0,oz.resolveUrl)(this.opts.uriResolver,t,o))}let a;if("boolean"!=typeof r&&r.$ref&&!(0,az.schemaHasRulesButRef)(r,this.RULES)){const e=(0,oz.resolveUrl)(this.opts.uriResolver,t,r.$ref);a=fz.call(this,n,e)}const{schemaId:i}=this.opts;return a=a||new sz({schema:r,schemaId:i,root:n,baseId:t}),a.schema!==a.root.schema?a:void 0}var hz={$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON AnySchema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1},vz={};Object.defineProperty(vz,"__esModule",{value:!0});const yz=_A;yz.code='require("ajv/dist/runtime/uri").default',vz.default=yz,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=HD();Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return t.KeywordCxt}});var r=aD;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=XD(),o=ZD(),a=mD,i=ez,s=aD,l=jD,u=pD,c=lD,d=hz,f=vz,p=(e,t)=>new RegExp(e,t);p.code="new RegExp";const m=["removeAdditional","useDefaults","coerceTypes"],h=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),v={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."},y={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'};function g(e){var t,r,n,o,a,i,s,l,u,c,d,m,h,v,y,g,b,w,S,x,$,k,_,E,C;const P=e.strict,j=null===(t=e.code)||void 0===t?void 0:t.optimize,O=!0===j||void 0===j?1:j||0,N=null!==(n=null===(r=e.code)||void 0===r?void 0:r.regExp)&&void 0!==n?n:p,R=null!==(o=e.uriResolver)&&void 0!==o?o:f.default;return{strictSchema:null===(i=null!==(a=e.strictSchema)&&void 0!==a?a:P)||void 0===i||i,strictNumbers:null===(l=null!==(s=e.strictNumbers)&&void 0!==s?s:P)||void 0===l||l,strictTypes:null!==(c=null!==(u=e.strictTypes)&&void 0!==u?u:P)&&void 0!==c?c:"log",strictTuples:null!==(m=null!==(d=e.strictTuples)&&void 0!==d?d:P)&&void 0!==m?m:"log",strictRequired:null!==(v=null!==(h=e.strictRequired)&&void 0!==h?h:P)&&void 0!==v&&v,code:e.code?{...e.code,optimize:O,regExp:N}:{optimize:O,regExp:N},loopRequired:null!==(y=e.loopRequired)&&void 0!==y?y:200,loopEnum:null!==(g=e.loopEnum)&&void 0!==g?g:200,meta:null===(b=e.meta)||void 0===b||b,messages:null===(w=e.messages)||void 0===w||w,inlineRefs:null===(S=e.inlineRefs)||void 0===S||S,schemaId:null!==(x=e.schemaId)&&void 0!==x?x:"$id",addUsedSchema:null===($=e.addUsedSchema)||void 0===$||$,validateSchema:null===(k=e.validateSchema)||void 0===k||k,validateFormats:null===(_=e.validateFormats)||void 0===_||_,unicodeRegExp:null===(E=e.unicodeRegExp)||void 0===E||E,int32range:null===(C=e.int32range)||void 0===C||C,uriResolver:R}}class b{constructor(e={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,e=this.opts={...e,...g(e)};const{es5:t,lines:r}=this.opts.code;this.scope=new s.ValueScope({scope:{},prefixes:h,es5:t,lines:r}),this.logger=function(e){if(!1===e)return E;if(void 0===e)return console;if(e.log&&e.warn&&e.error)return e;throw new Error("logger must implement log, warn and error methods")}(e.logger);const n=e.validateFormats;e.validateFormats=!1,this.RULES=(0,a.getRules)(),w.call(this,v,e,"NOT SUPPORTED"),w.call(this,y,e,"DEPRECATED","warn"),this._metaOpts=_.call(this),e.formats&&$.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),e.keywords&&k.call(this,e.keywords),"object"==typeof e.meta&&this.addMetaSchema(e.meta),x.call(this),e.validateFormats=n}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:e,meta:t,schemaId:r}=this.opts;let n=d;"id"===r&&(n={...d},n.id=n.$id,delete n.$id),t&&e&&this.addMetaSchema(n,n[r],!1)}defaultMeta(){const{meta:e,schemaId:t}=this.opts;return this.opts.defaultMeta="object"==typeof e?e[t]||e:void 0}validate(e,t){let r;if("string"==typeof e){if(r=this.getSchema(e),!r)throw new Error(`no schema with key or ref "${e}"`)}else r=this.compile(e);const n=r(t);return"$async"in r||(this.errors=r.errors),n}compile(e,t){const r=this._addSchema(e,t);return r.validate||this._compileSchemaEnv(r)}compileAsync(e,t){if("function"!=typeof this.opts.loadSchema)throw new Error("options.loadSchema should be a function");const{loadSchema:r}=this.opts;return n.call(this,e,t);async function n(e,t){await a.call(this,e.$schema);const r=this._addSchema(e,t);return r.validate||i.call(this,r)}async function a(e){e&&!this.getSchema(e)&&await n.call(this,{$ref:e},!0)}async function i(e){try{return this._compileSchemaEnv(e)}catch(t){if(!(t instanceof o.default))throw t;return s.call(this,t),await l.call(this,t.missingSchema),i.call(this,e)}}function s({missingSchema:e,missingRef:t}){if(this.refs[e])throw new Error(`AnySchema ${e} is loaded but ${t} cannot be resolved`)}async function l(e){const r=await u.call(this,e);this.refs[e]||await a.call(this,r.$schema),this.refs[e]||this.addSchema(r,e,t)}async function u(e){const t=this._loading[e];if(t)return t;try{return await(this._loading[e]=r(e))}finally{delete this._loading[e]}}}addSchema(e,t,r,n=this.opts.validateSchema){if(Array.isArray(e)){for(const t of e)this.addSchema(t,void 0,r,n);return this}let o;if("object"==typeof e){const{schemaId:t}=this.opts;if(o=e[t],void 0!==o&&"string"!=typeof o)throw new Error(`schema ${t} must be string`)}return t=(0,l.normalizeId)(t||o),this._checkUnique(t),this.schemas[t]=this._addSchema(e,r,t,n,!0),this}addMetaSchema(e,t,r=this.opts.validateSchema){return this.addSchema(e,t,!0,r),this}validateSchema(e,t){if("boolean"==typeof e)return!0;let r;if(r=e.$schema,void 0!==r&&"string"!=typeof r)throw new Error("$schema must be a string");if(r=r||this.opts.defaultMeta||this.defaultMeta(),!r)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const n=this.validate(r,e);if(!n&&t){const e="schema is invalid: "+this.errorsText();if("log"!==this.opts.validateSchema)throw new Error(e);this.logger.error(e)}return n}getSchema(e){let t;for(;"string"==typeof(t=S.call(this,e));)e=t;if(void 0===t){const{schemaId:r}=this.opts,n=new i.SchemaEnv({schema:{},schemaId:r});if(t=i.resolveSchema.call(this,n,e),!t)return;this.refs[e]=t}return t.validate||this._compileSchemaEnv(t)}removeSchema(e){if(e instanceof RegExp)return this._removeAllSchemas(this.schemas,e),this._removeAllSchemas(this.refs,e),this;switch(typeof e){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const t=S.call(this,e);return"object"==typeof t&&this._cache.delete(t.schema),delete this.schemas[e],delete this.refs[e],this}case"object":{const t=e;this._cache.delete(t);let r=e[this.opts.schemaId];return r&&(r=(0,l.normalizeId)(r),delete this.schemas[r],delete this.refs[r]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(e){for(const t of e)this.addKeyword(t);return this}addKeyword(e,t){let r;if("string"==typeof e)r=e,"object"==typeof t&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),t.keyword=r);else{if("object"!=typeof e||void 0!==t)throw new Error("invalid addKeywords parameters");if(r=(t=e).keyword,Array.isArray(r)&&!r.length)throw new Error("addKeywords: keyword must be string or non-empty array")}if(P.call(this,r,t),!t)return(0,c.eachItem)(r,(e=>j.call(this,e))),this;N.call(this,t);const n={...t,type:(0,u.getJSONTypes)(t.type),schemaType:(0,u.getJSONTypes)(t.schemaType)};return(0,c.eachItem)(r,0===n.type.length?e=>j.call(this,e,n):e=>n.type.forEach((t=>j.call(this,e,n,t)))),this}getKeyword(e){const t=this.RULES.all[e];return"object"==typeof t?t.definition:!!t}removeKeyword(e){const{RULES:t}=this;delete t.keywords[e],delete t.all[e];for(const r of t.rules){const t=r.rules.findIndex((t=>t.keyword===e));t>=0&&r.rules.splice(t,1)}return this}addFormat(e,t){return"string"==typeof t&&(t=new RegExp(t)),this.formats[e]=t,this}errorsText(e=this.errors,{separator:t=", ",dataVar:r="data"}={}){return e&&0!==e.length?e.map((e=>`${r}${e.instancePath} ${e.message}`)).reduce(((e,r)=>e+t+r)):"No errors"}$dataMetaSchema(e,t){const r=this.RULES.all;e=JSON.parse(JSON.stringify(e));for(const n of t){const t=n.split("/").slice(1);let o=e;for(const e of t)o=o[e];for(const e in r){const t=r[e];if("object"!=typeof t)continue;const{$data:n}=t.definition,a=o[e];n&&a&&(o[e]=T(a))}}return e}_removeAllSchemas(e,t){for(const r in e){const n=e[r];t&&!t.test(r)||("string"==typeof n?delete e[r]:n&&!n.meta&&(this._cache.delete(n.schema),delete e[r]))}}_addSchema(e,t,r,n=this.opts.validateSchema,o=this.opts.addUsedSchema){let a;const{schemaId:s}=this.opts;if("object"==typeof e)a=e[s];else{if(this.opts.jtd)throw new Error("schema must be object");if("boolean"!=typeof e)throw new Error("schema must be object or boolean")}let u=this._cache.get(e);if(void 0!==u)return u;r=(0,l.normalizeId)(a||r);const c=l.getSchemaRefs.call(this,e,r);return u=new i.SchemaEnv({schema:e,schemaId:s,meta:t,baseId:r,localRefs:c}),this._cache.set(u.schema,u),o&&!r.startsWith("#")&&(r&&this._checkUnique(r),this.refs[r]=u),n&&this.validateSchema(e,!0),u}_checkUnique(e){if(this.schemas[e]||this.refs[e])throw new Error(`schema with key or id "${e}" already exists`)}_compileSchemaEnv(e){if(e.meta?this._compileMetaSchema(e):i.compileSchema.call(this,e),!e.validate)throw new Error("ajv implementation error");return e.validate}_compileMetaSchema(e){const t=this.opts;this.opts=this._metaOpts;try{i.compileSchema.call(this,e)}finally{this.opts=t}}}function w(e,t,r,n="error"){for(const o in e){const a=o;a in t&&this.logger[n](`${r}: option ${o}. ${e[a]}`)}}function S(e){return e=(0,l.normalizeId)(e),this.schemas[e]||this.refs[e]}function x(){const e=this.opts.schemas;if(e)if(Array.isArray(e))this.addSchema(e);else for(const t in e)this.addSchema(e[t],t)}function $(){for(const e in this.opts.formats){const t=this.opts.formats[e];t&&this.addFormat(e,t)}}function k(e){if(Array.isArray(e))this.addVocabulary(e);else{this.logger.warn("keywords option as map is deprecated, pass array");for(const t in e){const r=e[t];r.keyword||(r.keyword=t),this.addKeyword(r)}}}function _(){const e={...this.opts};for(const t of m)delete e[t];return e}e.default=b,b.ValidationError=n.default,b.MissingRefError=o.default;const E={log(){},warn(){},error(){}};const C=/^[a-z_$][a-z0-9_$:-]*$/i;function P(e,t){const{RULES:r}=this;if((0,c.eachItem)(e,(e=>{if(r.keywords[e])throw new Error(`Keyword ${e} is already defined`);if(!C.test(e))throw new Error(`Keyword ${e} has invalid name`)})),t&&t.$data&&!("code"in t)&&!("validate"in t))throw new Error('$data keyword must have "code" or "validate" function')}function j(e,t,r){var n;const o=null==t?void 0:t.post;if(r&&o)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:a}=this;let i=o?a.post:a.rules.find((({type:e})=>e===r));if(i||(i={type:r,rules:[]},a.rules.push(i)),a.keywords[e]=!0,!t)return;const s={keyword:e,definition:{...t,type:(0,u.getJSONTypes)(t.type),schemaType:(0,u.getJSONTypes)(t.schemaType)}};t.before?O.call(this,i,s,t.before):i.rules.push(s),a.all[e]=s,null===(n=t.implements)||void 0===n||n.forEach((e=>this.addKeyword(e)))}function O(e,t,r){const n=e.rules.findIndex((e=>e.keyword===r));n>=0?e.rules.splice(n,0,t):(e.rules.push(t),this.logger.warn(`rule ${r} is not defined`))}function N(e){let{metaSchema:t}=e;void 0!==t&&(e.$data&&this.opts.$data&&(t=T(t)),e.validateSchema=this.compile(t,!0))}const R={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function T(e){return{anyOf:[e,R]}}}(tD);var gz={},bz={},wz={};Object.defineProperty(wz,"__esModule",{value:!0});const Sz={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};wz.default=Sz;var xz={};Object.defineProperty(xz,"__esModule",{value:!0}),xz.callRef=xz.getValidate=void 0;const $z=ZD(),kz=_D(),_z=aD,Ez=uD,Cz=ez,Pz=lD,jz={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 function(){if(a===u)return Nz(e,i,a,a.$async);const r=t.scopeValue("root",{ref:u});return Nz(e,_z._`${r}.validate`,u,u.$async)}();const c=Cz.resolveRef.call(l,u,o,r);if(void 0===c)throw new $z.default(n.opts.uriResolver,o,r);return c instanceof Cz.SchemaEnv?function(t){const r=Oz(e,t);Nz(e,r,t,t.$async)}(c):function(n){const o=t.scopeValue("schema",!0===s.code.source?{ref:n,code:(0,_z.stringify)(n)}:{ref:n}),a=t.name("valid"),i=e.subschema({schema:n,dataTypes:[],schemaPath:_z.nil,topSchemaRef:o,errSchemaPath:r},a);e.mergeEvaluated(i),e.ok(a)}(c)}};function Oz(e,t){const{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):_z._`${r.scopeValue("wrapper",{ref:t})}.validate`}function Nz(e,t,r,n){const{gen:o,it:a}=e,{allErrors:i,schemaEnv:s,opts:l}=a,u=l.passContext?Ez.default.this:_z.nil;function c(e){const t=_z._`${e}.errors`;o.assign(Ez.default.vErrors,_z._`${Ez.default.vErrors} === null ? ${t} : ${Ez.default.vErrors}.concat(${t})`),o.assign(Ez.default.errors,_z._`${Ez.default.vErrors}.length`)}function d(e){var t;if(!a.opts.unevaluated)return;const n=null===(t=null==r?void 0:r.validate)||void 0===t?void 0:t.evaluated;if(!0!==a.props)if(n&&!n.dynamicProps)void 0!==n.props&&(a.props=Pz.mergeEvaluated.props(o,n.props,a.props));else{const t=o.var("props",_z._`${e}.evaluated.props`);a.props=Pz.mergeEvaluated.props(o,t,a.props,_z.Name)}if(!0!==a.items)if(n&&!n.dynamicItems)void 0!==n.items&&(a.items=Pz.mergeEvaluated.items(o,n.items,a.items));else{const t=o.var("items",_z._`${e}.evaluated.items`);a.items=Pz.mergeEvaluated.items(o,t,a.items,_z.Name)}}n?function(){if(!s.$async)throw new Error("async schema referenced by sync schema");const r=o.let("valid");o.try((()=>{o.code(_z._`await ${(0,kz.callValidateCode)(e,t,u)}`),d(t),i||o.assign(r,!0)}),(e=>{o.if(_z._`!(${e} instanceof ${a.ValidationError})`,(()=>o.throw(e))),c(e),i||o.assign(r,!1)})),e.ok(r)}():e.result((0,kz.callValidateCode)(e,t,u),(()=>d(t)),(()=>c(t)))}xz.getValidate=Oz,xz.callRef=Nz,xz.default=jz,Object.defineProperty(bz,"__esModule",{value:!0});const Rz=xz,Tz=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",wz.default,Rz.default];bz.default=Tz;var Az={},Iz={};Object.defineProperty(Iz,"__esModule",{value:!0});const Mz=aD,Fz=Mz.operators,Dz={maximum:{okStr:"<=",ok:Fz.LTE,fail:Fz.GT},minimum:{okStr:">=",ok:Fz.GTE,fail:Fz.LT},exclusiveMaximum:{okStr:"<",ok:Fz.LT,fail:Fz.GTE},exclusiveMinimum:{okStr:">",ok:Fz.GT,fail:Fz.LTE}},zz={message:({keyword:e,schemaCode:t})=>Mz.str`must be ${Dz[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>Mz._`{comparison: ${Dz[e].okStr}, limit: ${t}}`},Lz={keyword:Object.keys(Dz),type:"number",schemaType:"number",$data:!0,error:zz,code(e){const{keyword:t,data:r,schemaCode:n}=e;e.fail$data(Mz._`${r} ${Dz[t].fail} ${n} || isNaN(${r})`)}};Iz.default=Lz;var Bz={};Object.defineProperty(Bz,"__esModule",{value:!0});const Vz=aD,Uz={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:({schemaCode:e})=>Vz.str`must be multiple of ${e}`,params:({schemaCode:e})=>Vz._`{multipleOf: ${e}}`},code(e){const{gen:t,data:r,schemaCode:n,it:o}=e,a=o.opts.multipleOfPrecision,i=t.let("res"),s=a?Vz._`Math.abs(Math.round(${i}) - ${i}) > 1e-${a}`:Vz._`${i} !== parseInt(${i})`;e.fail$data(Vz._`(${n} === 0 || (${i} = ${r}/${n}, ${s}))`)}};Bz.default=Uz;var Wz={},qz={};function Kz(e){const t=e.length;let r,n=0,o=0;for(;o<t;)n++,r=e.charCodeAt(o++),r>=55296&&r<=56319&&o<t&&(r=e.charCodeAt(o),56320==(64512&r)&&o++);return n}Object.defineProperty(qz,"__esModule",{value:!0}),qz.default=Kz,Kz.code='require("ajv/dist/runtime/ucs2length").default',Object.defineProperty(Wz,"__esModule",{value:!0});const Hz=aD,Gz=lD,Qz=qz,Xz={message({keyword:e,schemaCode:t}){const r="maxLength"===e?"more":"fewer";return Hz.str`must NOT have ${r} than ${t} characters`},params:({schemaCode:e})=>Hz._`{limit: ${e}}`},Yz={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:Xz,code(e){const{keyword:t,data:r,schemaCode:n,it:o}=e,a="maxLength"===t?Hz.operators.GT:Hz.operators.LT,i=!1===o.opts.unicode?Hz._`${r}.length`:Hz._`${(0,Gz.useFunc)(e.gen,Qz.default)}(${r})`;e.fail$data(Hz._`${i} ${a} ${n}`)}};Wz.default=Yz;var Jz={};Object.defineProperty(Jz,"__esModule",{value:!0});const Zz=_D(),eL=aD,tL={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:{message:({schemaCode:e})=>eL.str`must match pattern "${e}"`,params:({schemaCode:e})=>eL._`{pattern: ${e}}`},code(e){const{data:t,$data:r,schema:n,schemaCode:o,it:a}=e,i=a.opts.unicodeRegExp?"u":"",s=r?eL._`(new RegExp(${o}, ${i}))`:(0,Zz.usePattern)(e,n);e.fail$data(eL._`!${s}.test(${t})`)}};Jz.default=tL;var rL={};Object.defineProperty(rL,"__esModule",{value:!0});const nL=aD,oL={message({keyword:e,schemaCode:t}){const r="maxProperties"===e?"more":"fewer";return nL.str`must NOT have ${r} than ${t} properties`},params:({schemaCode:e})=>nL._`{limit: ${e}}`},aL={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:oL,code(e){const{keyword:t,data:r,schemaCode:n}=e,o="maxProperties"===t?nL.operators.GT:nL.operators.LT;e.fail$data(nL._`Object.keys(${r}).length ${o} ${n}`)}};rL.default=aL;var iL={};Object.defineProperty(iL,"__esModule",{value:!0});const sL=_D(),lL=aD,uL=lD,cL={keyword:"required",type:"object",schemaType:"array",$data:!0,error:{message:({params:{missingProperty:e}})=>lL.str`must have required property '${e}'`,params:({params:{missingProperty:e}})=>lL._`{missingProperty: ${e}}`},code(e){const{gen:t,schema:r,schemaCode:n,data:o,$data:a,it:i}=e,{opts:s}=i;if(!a&&0===r.length)return;const l=r.length>=s.loopRequired;if(i.allErrors?function(){if(l||a)e.block$data(lL.nil,u);else for(const t of r)(0,sL.checkReportMissingProp)(e,t)}():function(){const i=t.let("missing");if(l||a){const r=t.let("valid",!0);e.block$data(r,(()=>function(r,a){e.setParams({missingProperty:r}),t.forOf(r,n,(()=>{t.assign(a,(0,sL.propertyInData)(t,o,r,s.ownProperties)),t.if((0,lL.not)(a),(()=>{e.error(),t.break()}))}),lL.nil)}(i,r))),e.ok(r)}else t.if((0,sL.checkMissingProp)(e,r,i)),(0,sL.reportMissingProp)(e,i),t.else()}(),s.strictRequired){const t=e.parentSchema.properties,{definedProperties:n}=e.it;for(const e of r)if(void 0===(null==t?void 0:t[e])&&!n.has(e)){const t=`required property "${e}" is not defined at "${i.schemaEnv.baseId+i.errSchemaPath}" (strictRequired)`;(0,uL.checkStrictMode)(i,t,i.opts.strictRequired)}}function u(){t.forOf("prop",n,(r=>{e.setParams({missingProperty:r}),t.if((0,sL.noPropertyInData)(t,o,r,s.ownProperties),(()=>e.error()))}))}}};iL.default=cL;var dL={};Object.defineProperty(dL,"__esModule",{value:!0});const fL=aD,pL={message({keyword:e,schemaCode:t}){const r="maxItems"===e?"more":"fewer";return fL.str`must NOT have ${r} than ${t} items`},params:({schemaCode:e})=>fL._`{limit: ${e}}`},mL={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:pL,code(e){const{keyword:t,data:r,schemaCode:n}=e,o="maxItems"===t?fL.operators.GT:fL.operators.LT;e.fail$data(fL._`${r}.length ${o} ${n}`)}};dL.default=mL;var hL={},vL={};Object.defineProperty(vL,"__esModule",{value:!0});const yL=FT;yL.code='require("ajv/dist/runtime/equal").default',vL.default=yL,Object.defineProperty(hL,"__esModule",{value:!0});const gL=pD,bL=aD,wL=lD,SL=vL,xL={message:({params:{i:e,j:t}})=>bL.str`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>bL._`{i: ${e}, j: ${t}}`},$L={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:xL,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,gL.getSchemaTypes)(a.items):[];function c(n,o){const a=t.name("item"),i=(0,gL.checkDataTypes)(u,a,s.opts.strictNumbers,gL.DataType.Wrong),c=t.const("indices",bL._`{}`);t.for(bL._`;${n}--;`,(()=>{t.let(a,bL._`${r}[${n}]`),t.if(i,bL._`continue`),u.length>1&&t.if(bL._`typeof ${a} == "string"`,bL._`${a} += "_"`),t.if(bL._`typeof ${c}[${a}] == "number"`,(()=>{t.assign(o,bL._`${c}[${a}]`),e.error(),t.assign(l,!1).break()})).code(bL._`${c}[${a}] = ${n}`)}))}function d(n,o){const a=(0,wL.useFunc)(t,SL.default),i=t.name("outer");t.label(i).for(bL._`;${n}--;`,(()=>t.for(bL._`${o} = ${n}; ${o}--;`,(()=>t.if(bL._`${a}(${r}[${n}], ${r}[${o}])`,(()=>{e.error(),t.assign(l,!1).break(i)}))))))}e.block$data(l,(function(){const n=t.let("i",bL._`${r}.length`),o=t.let("j");e.setParams({i:n,j:o}),t.assign(l,!0),t.if(bL._`${n} > 1`,(()=>(u.length>0&&!u.some((e=>"object"===e||"array"===e))?c:d)(n,o)))}),bL._`${i} === false`),e.ok(l)}};hL.default=$L;var kL={};Object.defineProperty(kL,"__esModule",{value:!0});const _L=aD,EL=lD,CL=vL,PL={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:({schemaCode:e})=>_L._`{allowedValue: ${e}}`},code(e){const{gen:t,data:r,$data:n,schemaCode:o,schema:a}=e;n||a&&"object"==typeof a?e.fail$data(_L._`!${(0,EL.useFunc)(t,CL.default)}(${r}, ${o})`):e.fail(_L._`${a} !== ${r}`)}};kL.default=PL;var jL={};Object.defineProperty(jL,"__esModule",{value:!0});const OL=aD,NL=lD,RL=vL,TL={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:({schemaCode:e})=>OL._`{allowedValues: ${e}}`},code(e){const{gen:t,data:r,$data:n,schema:o,schemaCode:a,it:i}=e;if(!n&&0===o.length)throw new Error("enum must have non-empty array");const s=o.length>=i.opts.loopEnum;let l;const u=()=>null!=l?l:l=(0,NL.useFunc)(t,RL.default);let c;if(s||n)c=t.let("valid"),e.block$data(c,(function(){t.assign(c,!1),t.forOf("v",a,(e=>t.if(OL._`${u()}(${r}, ${e})`,(()=>t.assign(c,!0).break()))))}));else{if(!Array.isArray(o))throw new Error("ajv implementation error");const e=t.const("vSchema",a);c=(0,OL.or)(...o.map(((t,n)=>function(e,t){const n=o[t];return"object"==typeof n&&null!==n?OL._`${u()}(${r}, ${e}[${t}])`:OL._`${r} === ${n}`}(e,n))))}e.pass(c)}};jL.default=TL,Object.defineProperty(Az,"__esModule",{value:!0});const AL=Bz,IL=Wz,ML=Jz,FL=rL,DL=iL,zL=dL,LL=hL,BL=kL,VL=jL,UL=[Iz.default,AL.default,IL.default,ML.default,FL.default,DL.default,zL.default,LL.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},BL.default,VL.default];Az.default=UL;var WL={},qL={};Object.defineProperty(qL,"__esModule",{value:!0}),qL.validateAdditionalItems=void 0;const KL=aD,HL=lD,GL={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:({params:{len:e}})=>KL.str`must NOT have more than ${e} items`,params:({params:{len:e}})=>KL._`{limit: ${e}}`},code(e){const{parentSchema:t,it:r}=e,{items:n}=t;Array.isArray(n)?QL(e,n):(0,HL.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas')}};function QL(e,t){const{gen:r,schema:n,data:o,keyword:a,it:i}=e;i.items=!0;const s=r.const("len",KL._`${o}.length`);if(!1===n)e.setParams({len:t.length}),e.pass(KL._`${s} <= ${t.length}`);else if("object"==typeof n&&!(0,HL.alwaysValidSchema)(i,n)){const n=r.var("valid",KL._`${s} <= ${t.length}`);r.if((0,KL.not)(n),(()=>function(n){r.forRange("i",t.length,s,(t=>{e.subschema({keyword:a,dataProp:t,dataPropType:HL.Type.Num},n),i.allErrors||r.if((0,KL.not)(n),(()=>r.break()))}))}(n))),e.ok(n)}}qL.validateAdditionalItems=QL,qL.default=GL;var XL={},YL={};Object.defineProperty(YL,"__esModule",{value:!0}),YL.validateTuple=void 0;const JL=aD,ZL=lD,eB=_D(),tB={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){const{schema:t,it:r}=e;if(Array.isArray(t))return rB(e,"additionalItems",t);r.items=!0,(0,ZL.alwaysValidSchema)(r,t)||e.ok((0,eB.validateArray)(e))}};function rB(e,t,r=e.schema){const{gen:n,parentSchema:o,data:a,keyword:i,it:s}=e;!function(e){const{opts:n,errSchemaPath:o}=s,a=r.length,l=a===e.minItems&&(a===e.maxItems||!1===e[t]);if(n.strictTuples&&!l){const e=`"${i}" is ${a}-tuple, but minItems or maxItems/${t} are not specified or different at path "${o}"`;(0,ZL.checkStrictMode)(s,e,n.strictTuples)}}(o),s.opts.unevaluated&&r.length&&!0!==s.items&&(s.items=ZL.mergeEvaluated.items(n,r.length,s.items));const l=n.name("valid"),u=n.const("len",JL._`${a}.length`);r.forEach(((t,r)=>{(0,ZL.alwaysValidSchema)(s,t)||(n.if(JL._`${u} > ${r}`,(()=>e.subschema({keyword:i,schemaProp:r,dataProp:r},l))),e.ok(l))}))}YL.validateTuple=rB,YL.default=tB,Object.defineProperty(XL,"__esModule",{value:!0});const nB=YL,oB={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,nB.validateTuple)(e,"items")};XL.default=oB;var aB={};Object.defineProperty(aB,"__esModule",{value:!0});const iB=aD,sB=lD,lB=_D(),uB=qL,cB={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:({params:{len:e}})=>iB.str`must NOT have more than ${e} items`,params:({params:{len:e}})=>iB._`{limit: ${e}}`},code(e){const{schema:t,parentSchema:r,it:n}=e,{prefixItems:o}=r;n.items=!0,(0,sB.alwaysValidSchema)(n,t)||(o?(0,uB.validateAdditionalItems)(e,o):e.ok((0,lB.validateArray)(e)))}};aB.default=cB;var dB={};Object.defineProperty(dB,"__esModule",{value:!0});const fB=aD,pB=lD,mB={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:{message:({params:{min:e,max:t}})=>void 0===t?fB.str`must contain at least ${e} valid item(s)`:fB.str`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>void 0===t?fB._`{minContains: ${e}}`:fB._`{minContains: ${e}, maxContains: ${t}}`},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=void 0===l?1:l,s=u):i=1;const c=t.const("len",fB._`${o}.length`);if(e.setParams({min:i,max:s}),void 0===s&&0===i)return void(0,pB.checkStrictMode)(a,'"minContains" == 0 without "maxContains": "contains" keyword ignored');if(void 0!==s&&i>s)return(0,pB.checkStrictMode)(a,'"minContains" > "maxContains" is always invalid'),void e.fail();if((0,pB.alwaysValidSchema)(a,r)){let t=fB._`${c} >= ${i}`;return void 0!==s&&(t=fB._`${t} && ${c} <= ${s}`),void e.pass(t)}a.items=!0;const d=t.name("valid");function f(){const e=t.name("_valid"),r=t.let("count",0);p(e,(()=>t.if(e,(()=>function(e){t.code(fB._`${e}++`),void 0===s?t.if(fB._`${e} >= ${i}`,(()=>t.assign(d,!0).break())):(t.if(fB._`${e} > ${s}`,(()=>t.assign(d,!1).break())),1===i?t.assign(d,!0):t.if(fB._`${e} >= ${i}`,(()=>t.assign(d,!0))))}(r)))))}function p(r,n){t.forRange("i",0,c,(t=>{e.subschema({keyword:"contains",dataProp:t,dataPropType:pB.Type.Num,compositeRule:!0},r),n()}))}void 0===s&&1===i?p(d,(()=>t.if(d,(()=>t.break())))):0===i?(t.let(d,!0),void 0!==s&&t.if(fB._`${o}.length > 0`,f)):(t.let(d,!1),f()),e.result(d,(()=>e.reset()))}};dB.default=mB;var hB={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0;const t=aD,r=lD,n=_D();e.error={message:({params:{property:e,depsCount:r,deps:n}})=>{const o=1===r?"property":"properties";return t.str`must have ${o} ${n} when property ${e} is present`},params:({params:{property:e,depsCount:r,deps:n,missingProperty:o}})=>t._`{property: ${e},
|
|
53
|
+
|| ${s} === "boolean" || ${a} === null`).assign(u,o._`[${a}]`)}}n.else(),f(e),n.endIf(),n.if(o._`${u} !== undefined`,(()=>{n.assign(a,u),function({gen:e,parentData:t,parentDataProperty:r},n){e.if(o._`${t} !== undefined`,(()=>e.assign(o._`${t}[${r}]`,n)))}(e,u)}))}(e,t,u):f(e)}))}return d};const l=new Set(["string","number","integer","boolean","null"]);function u(e,t,r,n=i.Correct){const a=n===i.Correct?o.operators.EQ:o.operators.NEQ;let s;switch(e){case"null":return o._`${t} ${a} null`;case"array":s=o._`Array.isArray(${t})`;break;case"object":s=o._`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":s=l(o._`!(${t} % 1) && !isNaN(${t})`);break;case"number":s=l();break;default:return o._`typeof ${t} ${a} ${e}`}return n===i.Correct?s:(0,o.not)(s);function l(e=o.nil){return(0,o.and)(o._`typeof ${t} == "number"`,e,r?o._`isFinite(${t})`:o.nil)}}function c(e,t,r,n){if(1===e.length)return u(e[0],t,r,n);let i;const s=(0,a.toHash)(e);if(s.array&&s.object){const e=o._`typeof ${t} != "object"`;i=s.null?e:o._`!${t} || ${e}`,delete s.null,delete s.array,delete s.object}else i=o.nil;s.number&&delete s.integer;for(const e in s)i=(0,o.and)(i,u(e,t,r,n));return i}e.checkDataType=u,e.checkDataTypes=c;const d={message:({schema:e})=>`must be ${e}`,params:({schema:e,schemaValue:t})=>"string"==typeof e?o._`{type: ${e}}`:o._`{type: ${t}}`};function f(e){const t=function(e){const{gen:t,data:r,schema:n}=e,o=(0,a.schemaRefOrVal)(e,n,"type");return{gen:t,keyword:"type",data:r,schema:n.type,schemaCode:o,schemaValue:o,parentSchema:n,params:{},it:e}}(e);(0,n.reportError)(t,d)}e.reportTypeError=f}(gA);var _A,$A={};var kA,EA,jA={},CA={};function OA(){if(kA)return CA;kA=1,Object.defineProperty(CA,"__esModule",{value:!0}),CA.validateUnion=CA.validateArray=CA.usePattern=CA.callValidateCode=CA.schemaProperties=CA.allSchemaProperties=CA.noPropertyInData=CA.propertyInData=CA.isOwnProperty=CA.hasPropFunc=CA.reportMissingProp=CA.checkMissingProp=CA.checkReportMissingProp=void 0;const e=sA,t=cA,r=mA(),n=cA;function o(t){return t.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:e._`Object.prototype.hasOwnProperty`})}function a(t,r,n){return e._`${o(t)}.call(${r}, ${n})`}function i(t,r,n,o){const i=e._`${r}${(0,e.getProperty)(n)} === undefined`;return o?(0,e.or)(i,(0,e.not)(a(t,r,n))):i}function s(e){return e?Object.keys(e).filter((e=>"__proto__"!==e)):[]}CA.checkReportMissingProp=function(t,r){const{gen:n,data:o,it:a}=t;n.if(i(n,o,r,a.opts.ownProperties),(()=>{t.setParams({missingProperty:e._`${r}`},!0),t.error()}))},CA.checkMissingProp=function({gen:t,data:r,it:{opts:n}},o,a){return(0,e.or)(...o.map((o=>(0,e.and)(i(t,r,o,n.ownProperties),e._`${a} = ${o}`))))},CA.reportMissingProp=function(e,t){e.setParams({missingProperty:t},!0),e.error()},CA.hasPropFunc=o,CA.isOwnProperty=a,CA.propertyInData=function(t,r,n,o){const i=e._`${r}${(0,e.getProperty)(n)} !== undefined`;return o?e._`${i} && ${a(t,r,n)}`:i},CA.noPropertyInData=i,CA.allSchemaProperties=s,CA.schemaProperties=function(e,r){return s(r).filter((n=>!(0,t.alwaysValidSchema)(e,r[n])))},CA.callValidateCode=function({schemaCode:t,data:n,it:{gen:o,topSchemaRef:a,schemaPath:i,errorPath:s},it:l},u,c,d){const f=d?e._`${t}, ${n}, ${a}${i}`:n,p=[[r.default.instancePath,(0,e.strConcat)(r.default.instancePath,s)],[r.default.parentData,l.parentData],[r.default.parentDataProperty,l.parentDataProperty],[r.default.rootData,r.default.rootData]];l.opts.dynamicRef&&p.push([r.default.dynamicAnchors,r.default.dynamicAnchors]);const h=e._`${f}, ${o.object(...p)}`;return c!==e.nil?e._`${u}.call(${c}, ${h})`:e._`${u}(${h})`};const l=e._`new RegExp`;return CA.usePattern=function({gen:t,it:{opts:r}},o){const a=r.unicodeRegExp?"u":"",{regExp:i}=r.code,s=i(o,a);return t.scopeValue("pattern",{key:s.toString(),ref:s,code:e._`${"new RegExp"===i.code?l:(0,n.useFunc)(t,i)}(${o}, ${a})`})},CA.validateArray=function(r){const{gen:n,data:o,keyword:a,it:i}=r,s=n.name("valid");if(i.allErrors){const e=n.let("valid",!0);return l((()=>n.assign(e,!1))),e}return n.var(s,!0),l((()=>n.break())),s;function l(i){const l=n.const("len",e._`${o}.length`);n.forRange("i",0,l,(o=>{r.subschema({keyword:a,dataProp:o,dataPropType:t.Type.Num},s),n.if((0,e.not)(s),i)}))}},CA.validateUnion=function(r){const{gen:n,schema:o,keyword:a,it:i}=r;if(!Array.isArray(o))throw new Error("ajv implementation error");if(o.some((e=>(0,t.alwaysValidSchema)(i,e)))&&!i.opts.unevaluated)return;const s=n.let("valid",!1),l=n.name("_valid");n.block((()=>o.forEach(((t,o)=>{const i=r.subschema({keyword:a,schemaProp:o,compositeRule:!0},l);n.assign(s,e._`${s} || ${l}`);r.mergeValidEvaluated(i,l)||n.if((0,e.not)(s))})))),r.result(s,(()=>r.reset()),(()=>r.error(!0)))},CA}function PA(){if(EA)return jA;EA=1,Object.defineProperty(jA,"__esModule",{value:!0}),jA.validateKeywordUsage=jA.validSchemaType=jA.funcKeywordCode=jA.macroKeywordCode=void 0;const e=sA,t=mA(),r=OA(),n=vA();function o(t){const{gen:r,data:n,it:o}=t;r.if(o.parentData,(()=>r.assign(n,e._`${o.parentData}[${o.parentDataProperty}]`)))}function a(t,r,n){if(void 0===n)throw new Error(`keyword "${r}" failed to compile`);return t.scopeValue("keyword","function"==typeof n?{ref:n}:{ref:n,code:(0,e.stringify)(n)})}return jA.macroKeywordCode=function(t,r){const{gen:n,keyword:o,schema:i,parentSchema:s,it:l}=t,u=r.macro.call(l.self,i,s,l),c=a(n,o,u);!1!==l.opts.validateSchema&&l.self.validateSchema(u,!0);const d=n.name("valid");t.subschema({schema:u,schemaPath:e.nil,errSchemaPath:`${l.errSchemaPath}/${o}`,topSchemaRef:c,compositeRule:!0},d),t.pass(d,(()=>t.error(!0)))},jA.funcKeywordCode=function(i,s){var l;const{gen:u,keyword:c,schema:d,parentSchema:f,$data:p,it:h}=i;!function({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}(h,s);const m=!p&&s.compile?s.compile.call(h.self,d,f,h):s.validate,v=a(u,c,m),g=u.let("valid");function y(n=(s.async?e._`await `:e.nil)){const o=h.opts.passContext?t.default.this:t.default.self,a=!("compile"in s&&!p||!1===s.schema);u.assign(g,e._`${n}${(0,r.callValidateCode)(i,v,o,a)}`,s.modifying)}function b(t){var r;u.if((0,e.not)(null!==(r=s.valid)&&void 0!==r?r:g),t)}i.block$data(g,(function(){if(!1===s.errors)y(),s.modifying&&o(i),b((()=>i.error()));else{const r=s.async?function(){const t=u.let("ruleErrs",null);return u.try((()=>y(e._`await `)),(r=>u.assign(g,!1).if(e._`${r} instanceof ${h.ValidationError}`,(()=>u.assign(t,e._`${r}.errors`)),(()=>u.throw(r))))),t}():function(){const t=e._`${v}.errors`;return u.assign(t,null),y(e.nil),t}();s.modifying&&o(i),b((()=>function(r,o){const{gen:a}=r;a.if(e._`Array.isArray(${o})`,(()=>{a.assign(t.default.vErrors,e._`${t.default.vErrors} === null ? ${o} : ${t.default.vErrors}.concat(${o})`).assign(t.default.errors,e._`${t.default.vErrors}.length`),(0,n.extendErrors)(r)}),(()=>r.error()))}(i,r)))}})),i.ok(null!==(l=s.valid)&&void 0!==l?l:g)},jA.validSchemaType=function(e,t,r=!1){return!t.length||t.some((t=>"array"===t?Array.isArray(e):"object"===t?e&&"object"==typeof e&&!Array.isArray(e):typeof e==t||r&&void 0===e))},jA.validateKeywordUsage=function({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(null==i?void 0:i.some((t=>!Object.prototype.hasOwnProperty.call(e,t))))throw new Error(`parent schema must have dependencies of ${a}: ${i.join(",")}`);if(o.validateSchema){if(!o.validateSchema(e[a])){const e=`keyword "${a}" value is invalid at path "${n}": `+r.errorsText(o.validateSchema.errors);if("log"!==t.validateSchema)throw new Error(e);r.logger.error(e)}}},jA}var NA,RA={};var TA={},AA={},IA={get exports(){return AA},set exports(e){AA=e}},MA=IA.exports=function(e,t,r){"function"==typeof t&&(r=t,t={}),FA(t,"function"==typeof(r=t.cb||r)?r:r.pre||function(){},r.post||function(){},e,"",e)};function FA(e,t,r,n,o,a,i,s,l,u){if(n&&"object"==typeof n&&!Array.isArray(n)){for(var c in t(n,o,a,i,s,l,u),n){var d=n[c];if(Array.isArray(d)){if(c in MA.arrayKeywords)for(var f=0;f<d.length;f++)FA(e,t,r,d[f],o+"/"+c+"/"+f,a,o,c,n,f)}else if(c in MA.propsKeywords){if(d&&"object"==typeof d)for(var p in d)FA(e,t,r,d[p],o+"/"+c+"/"+p.replace(/~/g,"~0").replace(/\//g,"~1"),a,o,c,n,p)}else(c in MA.keywords||e.allKeys&&!(c in MA.skipKeywords))&&FA(e,t,r,d,o+"/"+c,a,o,c,n)}r(n,o,a,i,s,l,u)}}MA.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0},MA.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},MA.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},MA.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},Object.defineProperty(TA,"__esModule",{value:!0}),TA.getSchemaRefs=TA.resolveUrl=TA.normalizeId=TA._getFullPath=TA.getFullPath=TA.inlineRef=void 0;const zA=cA,DA=zO,LA=AA,BA=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);TA.inlineRef=function(e,t=!0){return"boolean"==typeof e||(!0===t?!UA(e):!!t&&WA(e)<=t)};const VA=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function UA(e){for(const t in e){if(VA.has(t))return!0;const r=e[t];if(Array.isArray(r)&&r.some(UA))return!0;if("object"==typeof r&&UA(r))return!0}return!1}function WA(e){let t=0;for(const r in e){if("$ref"===r)return 1/0;if(t++,!BA.has(r)&&("object"==typeof e[r]&&(0,zA.eachItem)(e[r],(e=>t+=WA(e))),t===1/0))return 1/0}return t}function qA(e,t="",r){!1!==r&&(t=GA(t));const n=e.parse(t);return KA(e,n)}function KA(e,t){return e.serialize(t).split("#")[0]+"#"}TA.getFullPath=qA,TA._getFullPath=KA;const HA=/#\/?$/;function GA(e){return e?e.replace(HA,""):""}TA.normalizeId=GA,TA.resolveUrl=function(e,t,r){return r=GA(r),e.resolve(t,r)};const QA=/^[a-z_][-a-z0-9._]*$/i;var JA;function YA(){if(JA)return oA;JA=1,Object.defineProperty(oA,"__esModule",{value:!0}),oA.getData=oA.KeywordCxt=oA.validateFunctionCode=void 0;const e=function(){if(pA)return aA;pA=1,Object.defineProperty(aA,"__esModule",{value:!0}),aA.boolOrEmptySchema=aA.topBoolOrEmptySchema=void 0;const e=vA(),t=sA,r=mA(),n={message:"boolean schema is false"};function o(t,r){const{gen:o,data:a}=t,i={gen:o,keyword:"false schema",data:a,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:t};(0,e.reportError)(i,n,void 0,r)}return aA.topBoolOrEmptySchema=function(e){const{gen:n,schema:a,validateName:i}=e;!1===a?o(e,!1):"object"==typeof a&&!0===a.$async?n.return(r.default.data):(n.assign(t._`${i}.errors`,null),n.return(!0))},aA.boolOrEmptySchema=function(e,t){const{gen:r,schema:n}=e;!1===n?(r.var(t,!1),o(e)):r.var(t,!0)},aA}(),t=gA,r=xA(),n=gA,o=function(){if(_A)return $A;_A=1,Object.defineProperty($A,"__esModule",{value:!0}),$A.assignDefaults=void 0;const e=sA,t=cA;function r(r,n,o){const{gen:a,compositeRule:i,data:s,opts:l}=r;if(void 0===o)return;const u=e._`${s}${(0,e.getProperty)(n)}`;if(i)return void(0,t.checkStrictMode)(r,`default is ignored for: ${u}`);let c=e._`${u} === undefined`;"empty"===l.useDefaults&&(c=e._`${c} || ${u} === null || ${u} === ""`),a.if(c,e._`${u} = ${(0,e.stringify)(o)}`)}return $A.assignDefaults=function(e,t){const{properties:n,items:o}=e.schema;if("object"===t&&n)for(const t in n)r(e,t,n[t].default);else"array"===t&&Array.isArray(o)&&o.forEach(((t,n)=>r(e,n,t.default)))},$A}(),a=PA(),i=function(){if(NA)return RA;NA=1,Object.defineProperty(RA,"__esModule",{value:!0}),RA.extendSubschemaMode=RA.extendSubschemaData=RA.getSubschema=void 0;const e=sA,t=cA;return RA.getSubschema=function(r,{keyword:n,schemaProp:o,schema:a,schemaPath:i,errSchemaPath:s,topSchemaRef:l}){if(void 0!==n&&void 0!==a)throw new Error('both "keyword" and "schema" passed, only one allowed');if(void 0!==n){const a=r.schema[n];return void 0===o?{schema:a,schemaPath:e._`${r.schemaPath}${(0,e.getProperty)(n)}`,errSchemaPath:`${r.errSchemaPath}/${n}`}:{schema:a[o],schemaPath:e._`${r.schemaPath}${(0,e.getProperty)(n)}${(0,e.getProperty)(o)}`,errSchemaPath:`${r.errSchemaPath}/${n}/${(0,t.escapeFragment)(o)}`}}if(void 0!==a){if(void 0===i||void 0===s||void 0===l)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:a,schemaPath:i,topSchemaRef:l,errSchemaPath:s}}throw new Error('either "keyword" or "schema" must be passed')},RA.extendSubschemaData=function(r,n,{dataProp:o,dataPropType:a,data:i,dataTypes:s,propertyName:l}){if(void 0!==i&&void 0!==o)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:u}=n;if(void 0!==o){const{errorPath:i,dataPathArr:s,opts:l}=n;c(u.let("data",e._`${n.data}${(0,e.getProperty)(o)}`,!0)),r.errorPath=e.str`${i}${(0,t.getErrorPath)(o,a,l.jsPropertySyntax)}`,r.parentDataProperty=e._`${o}`,r.dataPathArr=[...s,r.parentDataProperty]}function c(e){r.data=e,r.dataLevel=n.dataLevel+1,r.dataTypes=[],n.definedProperties=new Set,r.parentData=n.data,r.dataNames=[...n.dataNames,e]}void 0!==i&&(c(i instanceof e.Name?i:u.let("data",i,!0)),void 0!==l&&(r.propertyName=l)),s&&(r.dataTypes=s)},RA.extendSubschemaMode=function(e,{jtdDiscriminator:t,jtdMetadata:r,compositeRule:n,createErrors:o,allErrors:a}){void 0!==n&&(e.compositeRule=n),void 0!==o&&(e.createErrors=o),void 0!==a&&(e.allErrors=a),e.jtdDiscriminator=t,e.jtdMetadata=r},RA}(),s=sA,l=mA(),u=TA,c=cA,d=vA();function f({gen:e,validateName:t,schema:r,schemaEnv:n,opts:o},a){o.code.es5?e.func(t,s._`${l.default.data}, ${l.default.valCxt}`,n.$async,(()=>{e.code(s._`"use strict"; ${p(r,o)}`),function(e,t){e.if(l.default.valCxt,(()=>{e.var(l.default.instancePath,s._`${l.default.valCxt}.${l.default.instancePath}`),e.var(l.default.parentData,s._`${l.default.valCxt}.${l.default.parentData}`),e.var(l.default.parentDataProperty,s._`${l.default.valCxt}.${l.default.parentDataProperty}`),e.var(l.default.rootData,s._`${l.default.valCxt}.${l.default.rootData}`),t.dynamicRef&&e.var(l.default.dynamicAnchors,s._`${l.default.valCxt}.${l.default.dynamicAnchors}`)}),(()=>{e.var(l.default.instancePath,s._`""`),e.var(l.default.parentData,s._`undefined`),e.var(l.default.parentDataProperty,s._`undefined`),e.var(l.default.rootData,l.default.data),t.dynamicRef&&e.var(l.default.dynamicAnchors,s._`{}`)}))}(e,o),e.code(a)})):e.func(t,s._`${l.default.data}, ${function(e){return s._`{${l.default.instancePath}="", ${l.default.parentData}, ${l.default.parentDataProperty}, ${l.default.rootData}=${l.default.data}${e.dynamicRef?s._`, ${l.default.dynamicAnchors}={}`:s.nil}}={}`}(o)}`,n.$async,(()=>e.code(p(r,o)).code(a)))}function p(e,t){const r="object"==typeof e&&e[t.schemaId];return r&&(t.code.source||t.code.process)?s._`/*# sourceURL=${r} */`:s.nil}function h(t,r){v(t)&&(g(t),m(t))?function(e,t){const{schema:r,gen:n,opts:o}=e;o.$comment&&r.$comment&&b(e);(function(e){const t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,u.resolveUrl)(e.opts.uriResolver,e.baseId,t))})(e),function(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}(e);const a=n.const("_errs",l.default.errors);y(e,a),n.var(t,s._`${a} === ${l.default.errors}`)}(t,r):(0,e.boolOrEmptySchema)(t,r)}function m({schema:e,self:t}){if("boolean"==typeof e)return!e;for(const r in e)if(t.RULES.all[r])return!0;return!1}function v(e){return"boolean"!=typeof e.schema}function g(e){(0,c.checkUnknownRules)(e),function(e){const{schema:t,errSchemaPath:r,opts:n,self:o}=e;t.$ref&&n.ignoreKeywordsWithRef&&(0,c.schemaHasRulesButRef)(t,o.RULES)&&o.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}(e)}function y(e,r){if(e.opts.jtd)return w(e,[],!1,r);const n=(0,t.getSchemaTypes)(e.schema);w(e,n,!(0,t.coerceAndCheckDataType)(e,n),r)}function b({gen:e,schemaEnv:t,schema:r,errSchemaPath:n,opts:o}){const a=r.$comment;if(!0===o.$comment)e.code(s._`${l.default.self}.logger.log(${a})`);else if("function"==typeof o.$comment){const r=s.str`${n}/$comment`,o=e.scopeValue("root",{ref:t.root});e.code(s._`${l.default.self}.opts.$comment(${a}, ${r}, ${o}.schema)`)}}function w(e,t,o,a){const{gen:i,schema:u,data:d,allErrors:f,opts:p,self:h}=e,{RULES:m}=h;function v(c){(0,r.shouldUseGroup)(u,c)&&(c.type?(i.if((0,n.checkDataType)(c.type,d,p.strictNumbers)),S(e,c),1===t.length&&t[0]===c.type&&o&&(i.else(),(0,n.reportTypeError)(e)),i.endIf()):S(e,c),f||i.if(s._`${l.default.errors} === ${a||0}`))}!u.$ref||!p.ignoreKeywordsWithRef&&(0,c.schemaHasRulesButRef)(u,m)?(p.jtd||function(e,t){if(e.schemaEnv.meta||!e.opts.strictTypes)return;(function(e,t){if(!t.length)return;if(!e.dataTypes.length)return void(e.dataTypes=t);t.forEach((t=>{_(e.dataTypes,t)||$(e,`type "${t}" not allowed by context "${e.dataTypes.join(",")}"`)})),function(e,t){const r=[];for(const n of e.dataTypes)_(t,n)?r.push(n):t.includes("integer")&&"number"===n&&r.push("integer");e.dataTypes=r}(e,t)})(e,t),e.opts.allowUnionTypes||function(e,t){t.length>1&&(2!==t.length||!t.includes("null"))&&$(e,"use allowUnionTypes to allow union type keyword")}(e,t);!function(e,t){const n=e.self.RULES.all;for(const o in n){const a=n[o];if("object"==typeof a&&(0,r.shouldUseRule)(e.schema,a)){const{type:r}=a.definition;r.length&&!r.some((e=>x(t,e)))&&$(e,`missing type "${r.join(",")}" for keyword "${o}"`)}}}(e,e.dataTypes)}(e,t),i.block((()=>{for(const e of m.rules)v(e);v(m.post)}))):i.block((()=>E(e,"$ref",m.all.$ref.definition)))}function S(e,t){const{gen:n,schema:a,opts:{useDefaults:i}}=e;i&&(0,o.assignDefaults)(e,t.type),n.block((()=>{for(const n of t.rules)(0,r.shouldUseRule)(a,n)&&E(e,n.keyword,n.definition,t.type)}))}function x(e,t){return e.includes(t)||"number"===t&&e.includes("integer")}function _(e,t){return e.includes(t)||"integer"===t&&e.includes("number")}function $(e,t){t+=` at "${e.schemaEnv.baseId+e.errSchemaPath}" (strictTypes)`,(0,c.checkStrictMode)(e,t,e.opts.strictTypes)}oA.validateFunctionCode=function(t){v(t)&&(g(t),m(t))?function(e){const{schema:t,opts:r,gen:n}=e;f(e,(()=>{r.$comment&&t.$comment&&b(e),function(e){const{schema:t,opts:r}=e;void 0!==t.default&&r.useDefaults&&r.strictSchema&&(0,c.checkStrictMode)(e,"default is ignored in the schema root")}(e),n.let(l.default.vErrors,null),n.let(l.default.errors,0),r.unevaluated&&function(e){const{gen:t,validateName:r}=e;e.evaluated=t.const("evaluated",s._`${r}.evaluated`),t.if(s._`${e.evaluated}.dynamicProps`,(()=>t.assign(s._`${e.evaluated}.props`,s._`undefined`))),t.if(s._`${e.evaluated}.dynamicItems`,(()=>t.assign(s._`${e.evaluated}.items`,s._`undefined`)))}(e),y(e),function(e){const{gen:t,schemaEnv:r,validateName:n,ValidationError:o,opts:a}=e;r.$async?t.if(s._`${l.default.errors} === 0`,(()=>t.return(l.default.data)),(()=>t.throw(s._`new ${o}(${l.default.vErrors})`))):(t.assign(s._`${n}.errors`,l.default.vErrors),a.unevaluated&&function({gen:e,evaluated:t,props:r,items:n}){r instanceof s.Name&&e.assign(s._`${t}.props`,r);n instanceof s.Name&&e.assign(s._`${t}.items`,n)}(e),t.return(s._`${l.default.errors} === 0`))}(e)}))}(t):f(t,(()=>(0,e.topBoolOrEmptySchema)(t)))};class k{constructor(e,t,r){if((0,a.validateKeywordUsage)(e,t,r),this.gen=e.gen,this.allErrors=e.allErrors,this.keyword=r,this.data=e.data,this.schema=e.schema[r],this.$data=t.$data&&e.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,c.schemaRefOrVal)(e,this.schema,r,this.$data),this.schemaType=t.schemaType,this.parentSchema=e.schema,this.params={},this.it=e,this.def=t,this.$data)this.schemaCode=e.gen.const("vSchema",O(this.$data,e));else if(this.schemaCode=this.schemaValue,!(0,a.validSchemaType)(this.schema,t.schemaType,t.allowUndefined))throw new Error(`${r} value must be ${JSON.stringify(t.schemaType)}`);("code"in t?t.trackErrors:!1!==t.errors)&&(this.errsCount=e.gen.const("_errs",l.default.errors))}result(e,t,r){this.failResult((0,s.not)(e),t,r)}failResult(e,t,r){this.gen.if(e),r?r():this.error(),t?(this.gen.else(),t(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(e,t){this.failResult((0,s.not)(e),void 0,t)}fail(e){if(void 0===e)return this.error(),void(this.allErrors||this.gen.if(!1));this.gen.if(e),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(e){if(!this.$data)return this.fail(e);const{schemaCode:t}=this;this.fail(s._`${t} !== undefined && (${(0,s.or)(this.invalid$data(),e)})`)}error(e,t,r){if(t)return this.setParams(t),this._error(e,r),void this.setParams({});this._error(e,r)}_error(e,t){(e?d.reportExtraError:d.reportError)(this,this.def.error,t)}$dataError(){(0,d.reportError)(this,this.def.$dataError||d.keyword$DataError)}reset(){if(void 0===this.errsCount)throw new Error('add "trackErrors" to keyword definition');(0,d.resetErrorsCount)(this.gen,this.errsCount)}ok(e){this.allErrors||this.gen.if(e)}setParams(e,t){t?Object.assign(this.params,e):this.params=e}block$data(e,t,r=s.nil){this.gen.block((()=>{this.check$data(e,r),t()}))}check$data(e=s.nil,t=s.nil){if(!this.$data)return;const{gen:r,schemaCode:n,schemaType:o,def:a}=this;r.if((0,s.or)(s._`${n} === undefined`,t)),e!==s.nil&&r.assign(e,!0),(o.length||a.validateSchema)&&(r.elseIf(this.invalid$data()),this.$dataError(),e!==s.nil&&r.assign(e,!1)),r.else()}invalid$data(){const{gen:e,schemaCode:t,schemaType:r,def:o,it:a}=this;return(0,s.or)(function(){if(r.length){if(!(t instanceof s.Name))throw new Error("ajv implementation error");const e=Array.isArray(r)?r:[r];return s._`${(0,n.checkDataTypes)(e,t,a.opts.strictNumbers,n.DataType.Wrong)}`}return s.nil}(),function(){if(o.validateSchema){const r=e.scopeValue("validate$data",{ref:o.validateSchema});return s._`!${r}(${t})`}return s.nil}())}subschema(e,t){const r=(0,i.getSubschema)(this.it,e);(0,i.extendSubschemaData)(r,this.it,e),(0,i.extendSubschemaMode)(r,e);const n={...this.it,...r,items:void 0,props:void 0};return h(n,t),n}mergeEvaluated(e,t){const{it:r,gen:n}=this;r.opts.unevaluated&&(!0!==r.props&&void 0!==e.props&&(r.props=c.mergeEvaluated.props(n,e.props,r.props,t)),!0!==r.items&&void 0!==e.items&&(r.items=c.mergeEvaluated.items(n,e.items,r.items,t)))}mergeValidEvaluated(e,t){const{it:r,gen:n}=this;if(r.opts.unevaluated&&(!0!==r.props||!0!==r.items))return n.if(t,(()=>this.mergeEvaluated(e,s.Name))),!0}}function E(e,t,r,n){const o=new k(e,r,t);"code"in r?r.code(o,n):o.$data&&r.validate?(0,a.funcKeywordCode)(o,r):"macro"in r?(0,a.macroKeywordCode)(o,r):(r.compile||r.validate)&&(0,a.funcKeywordCode)(o,r)}oA.KeywordCxt=k;const j=/^\/(?:[^~]|~0|~1)*$/,C=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function O(e,{dataLevel:t,dataNames:r,dataPathArr:n}){let o,a;if(""===e)return l.default.rootData;if("/"===e[0]){if(!j.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);o=e,a=l.default.rootData}else{const i=C.exec(e);if(!i)throw new Error(`Invalid JSON-pointer: ${e}`);const s=+i[1];if(o=i[2],"#"===o){if(s>=t)throw new Error(d("property/index",s));return n[t-s]}if(s>t)throw new Error(d("data",s));if(a=r[t-s],!o)return a}let i=a;const u=o.split("/");for(const e of u)e&&(a=s._`${a}${(0,s.getProperty)((0,c.unescapeJsonPointer)(e))}`,i=s._`${i} && ${a}`);return i;function d(e,r){return`Cannot access ${e} ${r} levels up, current level is ${t}`}}return oA.getData=O,oA}TA.getSchemaRefs=function(e,t){if("boolean"==typeof e)return{};const{schemaId:r,uriResolver:n}=this.opts,o=GA(e[r]||t),a={"":o},i=qA(n,o,!1),s={},l=new Set;return LA(e,{allKeys:!0},((e,t,n,o)=>{if(void 0===o)return;const d=i+t;let f=a[o];function p(t){const r=this.opts.uriResolver.resolve;if(t=GA(f?r(f,t):t),l.has(t))throw c(t);l.add(t);let n=this.refs[t];return"string"==typeof n&&(n=this.refs[n]),"object"==typeof n?u(e,n.schema,t):t!==GA(d)&&("#"===t[0]?(u(e,s[t],t),s[t]=e):this.refs[t]=d),t}function h(e){if("string"==typeof e){if(!QA.test(e))throw new Error(`invalid anchor "${e}"`);p.call(this,`#${e}`)}}"string"==typeof e[r]&&(f=p.call(this,e[r])),h.call(this,e.$anchor),h.call(this,e.$dynamicAnchor),a[t]=f})),s;function u(e,t,r){if(void 0!==t&&!DA(e,t))throw c(r)}function c(e){return new Error(`reference "${e}" resolves to more than one schema`)}};var XA,ZA={};function eI(){if(XA)return ZA;XA=1,Object.defineProperty(ZA,"__esModule",{value:!0});class e extends Error{constructor(e){super("validation failed"),this.errors=e,this.ajv=this.validation=!0}}return ZA.default=e,ZA}var tI,rI={};function nI(){if(tI)return rI;tI=1,Object.defineProperty(rI,"__esModule",{value:!0});const e=TA;class t extends Error{constructor(t,r,n,o){super(o||`can't resolve reference ${n} from id ${r}`),this.missingRef=(0,e.resolveUrl)(t,r,n),this.missingSchema=(0,e.normalizeId)((0,e.getFullPath)(t,this.missingRef))}}return rI.default=t,rI}var oI={};Object.defineProperty(oI,"__esModule",{value:!0}),oI.resolveSchema=oI.getCompilingSchema=oI.resolveRef=oI.compileSchema=oI.SchemaEnv=void 0;const aI=sA,iI=eI(),sI=mA(),lI=TA,uI=cA,cI=YA();class dI{constructor(e){var t;let r;this.refs={},this.dynamicAnchors={},"object"==typeof e.schema&&(r=e.schema),this.schema=e.schema,this.schemaId=e.schemaId,this.root=e.root||this,this.baseId=null!==(t=e.baseId)&&void 0!==t?t:(0,lI.normalizeId)(null==r?void 0:r[e.schemaId||"$id"]),this.schemaPath=e.schemaPath,this.localRefs=e.localRefs,this.meta=e.meta,this.$async=null==r?void 0:r.$async,this.refs={}}}function fI(e){const t=hI.call(this,e);if(t)return t;const r=(0,lI.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:n,lines:o}=this.opts.code,{ownProperties:a}=this.opts,i=new aI.CodeGen(this.scope,{es5:n,lines:o,ownProperties:a});let s;e.$async&&(s=i.scopeValue("Error",{ref:iI.default,code:aI._`require("ajv/dist/runtime/validation_error").default`}));const l=i.scopeName("validate");e.validateName=l;const u={gen:i,allErrors:this.opts.allErrors,data:sI.default.data,parentData:sI.default.parentData,parentDataProperty:sI.default.parentDataProperty,dataNames:[sI.default.data],dataPathArr:[aI.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:i.scopeValue("schema",!0===this.opts.code.source?{ref:e.schema,code:(0,aI.stringify)(e.schema)}:{ref:e.schema}),validateName:l,ValidationError:s,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:aI.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:aI._`""`,opts:this.opts,self:this};let c;try{this._compilations.add(e),(0,cI.validateFunctionCode)(u),i.optimize(this.opts.code.optimize);const t=i.toString();c=`${i.scopeRefs(sI.default.scope)}return ${t}`,this.opts.code.process&&(c=this.opts.code.process(c,e));const r=new Function(`${sI.default.self}`,`${sI.default.scope}`,c)(this,this.scope.get());if(this.scope.value(l,{ref:r}),r.errors=null,r.schema=e.schema,r.schemaEnv=e,e.$async&&(r.$async=!0),!0===this.opts.code.source&&(r.source={validateName:l,validateCode:t,scopeValues:i._values}),this.opts.unevaluated){const{props:e,items:t}=u;r.evaluated={props:e instanceof aI.Name?void 0:e,items:t instanceof aI.Name?void 0:t,dynamicProps:e instanceof aI.Name,dynamicItems:t instanceof aI.Name},r.source&&(r.source.evaluated=(0,aI.stringify)(r.evaluated))}return e.validate=r,e}catch(t){throw delete e.validate,delete e.validateName,c&&this.logger.error("Error compiling schema, function code:",c),t}finally{this._compilations.delete(e)}}function pI(e){return(0,lI.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:fI.call(this,e)}function hI(e){for(const n of this._compilations)if(r=e,(t=n).schema===r.schema&&t.root===r.root&&t.baseId===r.baseId)return n;var t,r}function mI(e,t){let r;for(;"string"==typeof(r=this.refs[t]);)t=r;return r||this.schemas[t]||vI.call(this,e,t)}function vI(e,t){const r=this.opts.uriResolver.parse(t),n=(0,lI._getFullPath)(this.opts.uriResolver,r);let o=(0,lI.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&n===o)return yI.call(this,r,e);const a=(0,lI.normalizeId)(n),i=this.refs[a]||this.schemas[a];if("string"==typeof i){const t=vI.call(this,e,i);if("object"!=typeof(null==t?void 0:t.schema))return;return yI.call(this,r,t)}if("object"==typeof(null==i?void 0:i.schema)){if(i.validate||fI.call(this,i),a===(0,lI.normalizeId)(t)){const{schema:t}=i,{schemaId:r}=this.opts,n=t[r];return n&&(o=(0,lI.resolveUrl)(this.opts.uriResolver,o,n)),new dI({schema:t,schemaId:r,root:e,baseId:o})}return yI.call(this,r,i)}}oI.SchemaEnv=dI,oI.compileSchema=fI,oI.resolveRef=function(e,t,r){var n;r=(0,lI.resolveUrl)(this.opts.uriResolver,t,r);const o=e.refs[r];if(o)return o;let a=mI.call(this,e,r);if(void 0===a){const o=null===(n=e.localRefs)||void 0===n?void 0:n[r],{schemaId:i}=this.opts;o&&(a=new dI({schema:o,schemaId:i,root:e,baseId:t}))}return void 0!==a?e.refs[r]=pI.call(this,a):void 0},oI.getCompilingSchema=hI,oI.resolveSchema=vI;const gI=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function yI(e,{baseId:t,schema:r,root:n}){var o;if("/"!==(null===(o=e.fragment)||void 0===o?void 0:o[0]))return;for(const n of e.fragment.slice(1).split("/")){if("boolean"==typeof r)return;const e=r[(0,uI.unescapeFragment)(n)];if(void 0===e)return;const o="object"==typeof(r=e)&&r[this.opts.schemaId];!gI.has(n)&&o&&(t=(0,lI.resolveUrl)(this.opts.uriResolver,t,o))}let a;if("boolean"!=typeof r&&r.$ref&&!(0,uI.schemaHasRulesButRef)(r,this.RULES)){const e=(0,lI.resolveUrl)(this.opts.uriResolver,t,r.$ref);a=vI.call(this,n,e)}const{schemaId:i}=this.opts;return a=a||new dI({schema:r,schemaId:i,root:n,baseId:t}),a.schema!==a.root.schema?a:void 0}var bI={$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON AnySchema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1},wI={};Object.defineProperty(wI,"__esModule",{value:!0});const SI=EP;SI.code='require("ajv/dist/runtime/uri").default',wI.default=SI,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=YA();Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return t.KeywordCxt}});var r=sA;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=eI(),o=nI(),a=yA,i=oI,s=sA,l=TA,u=gA,c=cA,d=bI,f=wI,p=(e,t)=>new RegExp(e,t);p.code="new RegExp";const h=["removeAdditional","useDefaults","coerceTypes"],m=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),v={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.'};function y(e){var t,r,n,o,a,i,s,l,u,c,d,h,m,v,g,y,b,w,S,x,_,$,k,E,j;const C=e.strict,O=null===(t=e.code)||void 0===t?void 0:t.optimize,P=!0===O||void 0===O?1:O||0,N=null!==(n=null===(r=e.code)||void 0===r?void 0:r.regExp)&&void 0!==n?n:p,R=null!==(o=e.uriResolver)&&void 0!==o?o:f.default;return{strictSchema:null===(i=null!==(a=e.strictSchema)&&void 0!==a?a:C)||void 0===i||i,strictNumbers:null===(l=null!==(s=e.strictNumbers)&&void 0!==s?s:C)||void 0===l||l,strictTypes:null!==(c=null!==(u=e.strictTypes)&&void 0!==u?u:C)&&void 0!==c?c:"log",strictTuples:null!==(h=null!==(d=e.strictTuples)&&void 0!==d?d:C)&&void 0!==h?h:"log",strictRequired:null!==(v=null!==(m=e.strictRequired)&&void 0!==m?m:C)&&void 0!==v&&v,code:e.code?{...e.code,optimize:P,regExp:N}:{optimize:P,regExp:N},loopRequired:null!==(g=e.loopRequired)&&void 0!==g?g:200,loopEnum:null!==(y=e.loopEnum)&&void 0!==y?y:200,meta:null===(b=e.meta)||void 0===b||b,messages:null===(w=e.messages)||void 0===w||w,inlineRefs:null===(S=e.inlineRefs)||void 0===S||S,schemaId:null!==(x=e.schemaId)&&void 0!==x?x:"$id",addUsedSchema:null===(_=e.addUsedSchema)||void 0===_||_,validateSchema:null===($=e.validateSchema)||void 0===$||$,validateFormats:null===(k=e.validateFormats)||void 0===k||k,unicodeRegExp:null===(E=e.unicodeRegExp)||void 0===E||E,int32range:null===(j=e.int32range)||void 0===j||j,uriResolver:R}}class b{constructor(e={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,e=this.opts={...e,...y(e)};const{es5:t,lines:r}=this.opts.code;this.scope=new s.ValueScope({scope:{},prefixes:m,es5:t,lines:r}),this.logger=function(e){if(!1===e)return E;if(void 0===e)return console;if(e.log&&e.warn&&e.error)return e;throw new Error("logger must implement log, warn and error methods")}(e.logger);const n=e.validateFormats;e.validateFormats=!1,this.RULES=(0,a.getRules)(),w.call(this,v,e,"NOT SUPPORTED"),w.call(this,g,e,"DEPRECATED","warn"),this._metaOpts=k.call(this),e.formats&&_.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),e.keywords&&$.call(this,e.keywords),"object"==typeof e.meta&&this.addMetaSchema(e.meta),x.call(this),e.validateFormats=n}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:e,meta:t,schemaId:r}=this.opts;let n=d;"id"===r&&(n={...d},n.id=n.$id,delete n.$id),t&&e&&this.addMetaSchema(n,n[r],!1)}defaultMeta(){const{meta:e,schemaId:t}=this.opts;return this.opts.defaultMeta="object"==typeof e?e[t]||e:void 0}validate(e,t){let r;if("string"==typeof e){if(r=this.getSchema(e),!r)throw new Error(`no schema with key or ref "${e}"`)}else r=this.compile(e);const n=r(t);return"$async"in r||(this.errors=r.errors),n}compile(e,t){const r=this._addSchema(e,t);return r.validate||this._compileSchemaEnv(r)}compileAsync(e,t){if("function"!=typeof this.opts.loadSchema)throw new Error("options.loadSchema should be a function");const{loadSchema:r}=this.opts;return n.call(this,e,t);async function n(e,t){await a.call(this,e.$schema);const r=this._addSchema(e,t);return r.validate||i.call(this,r)}async function a(e){e&&!this.getSchema(e)&&await n.call(this,{$ref:e},!0)}async function i(e){try{return this._compileSchemaEnv(e)}catch(t){if(!(t instanceof o.default))throw t;return s.call(this,t),await l.call(this,t.missingSchema),i.call(this,e)}}function s({missingSchema:e,missingRef:t}){if(this.refs[e])throw new Error(`AnySchema ${e} is loaded but ${t} cannot be resolved`)}async function l(e){const r=await u.call(this,e);this.refs[e]||await a.call(this,r.$schema),this.refs[e]||this.addSchema(r,e,t)}async function u(e){const t=this._loading[e];if(t)return t;try{return await(this._loading[e]=r(e))}finally{delete this._loading[e]}}}addSchema(e,t,r,n=this.opts.validateSchema){if(Array.isArray(e)){for(const t of e)this.addSchema(t,void 0,r,n);return this}let o;if("object"==typeof e){const{schemaId:t}=this.opts;if(o=e[t],void 0!==o&&"string"!=typeof o)throw new Error(`schema ${t} must be string`)}return t=(0,l.normalizeId)(t||o),this._checkUnique(t),this.schemas[t]=this._addSchema(e,r,t,n,!0),this}addMetaSchema(e,t,r=this.opts.validateSchema){return this.addSchema(e,t,!0,r),this}validateSchema(e,t){if("boolean"==typeof e)return!0;let r;if(r=e.$schema,void 0!==r&&"string"!=typeof r)throw new Error("$schema must be a string");if(r=r||this.opts.defaultMeta||this.defaultMeta(),!r)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const n=this.validate(r,e);if(!n&&t){const e="schema is invalid: "+this.errorsText();if("log"!==this.opts.validateSchema)throw new Error(e);this.logger.error(e)}return n}getSchema(e){let t;for(;"string"==typeof(t=S.call(this,e));)e=t;if(void 0===t){const{schemaId:r}=this.opts,n=new i.SchemaEnv({schema:{},schemaId:r});if(t=i.resolveSchema.call(this,n,e),!t)return;this.refs[e]=t}return t.validate||this._compileSchemaEnv(t)}removeSchema(e){if(e instanceof RegExp)return this._removeAllSchemas(this.schemas,e),this._removeAllSchemas(this.refs,e),this;switch(typeof e){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const t=S.call(this,e);return"object"==typeof t&&this._cache.delete(t.schema),delete this.schemas[e],delete this.refs[e],this}case"object":{const t=e;this._cache.delete(t);let r=e[this.opts.schemaId];return r&&(r=(0,l.normalizeId)(r),delete this.schemas[r],delete this.refs[r]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(e){for(const t of e)this.addKeyword(t);return this}addKeyword(e,t){let r;if("string"==typeof e)r=e,"object"==typeof t&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),t.keyword=r);else{if("object"!=typeof e||void 0!==t)throw new Error("invalid addKeywords parameters");if(r=(t=e).keyword,Array.isArray(r)&&!r.length)throw new Error("addKeywords: keyword must be string or non-empty array")}if(C.call(this,r,t),!t)return(0,c.eachItem)(r,(e=>O.call(this,e))),this;N.call(this,t);const n={...t,type:(0,u.getJSONTypes)(t.type),schemaType:(0,u.getJSONTypes)(t.schemaType)};return(0,c.eachItem)(r,0===n.type.length?e=>O.call(this,e,n):e=>n.type.forEach((t=>O.call(this,e,n,t)))),this}getKeyword(e){const t=this.RULES.all[e];return"object"==typeof t?t.definition:!!t}removeKeyword(e){const{RULES:t}=this;delete t.keywords[e],delete t.all[e];for(const r of t.rules){const t=r.rules.findIndex((t=>t.keyword===e));t>=0&&r.rules.splice(t,1)}return this}addFormat(e,t){return"string"==typeof t&&(t=new RegExp(t)),this.formats[e]=t,this}errorsText(e=this.errors,{separator:t=", ",dataVar:r="data"}={}){return e&&0!==e.length?e.map((e=>`${r}${e.instancePath} ${e.message}`)).reduce(((e,r)=>e+t+r)):"No errors"}$dataMetaSchema(e,t){const r=this.RULES.all;e=JSON.parse(JSON.stringify(e));for(const n of t){const t=n.split("/").slice(1);let o=e;for(const e of t)o=o[e];for(const e in r){const t=r[e];if("object"!=typeof t)continue;const{$data:n}=t.definition,a=o[e];n&&a&&(o[e]=T(a))}}return e}_removeAllSchemas(e,t){for(const r in e){const n=e[r];t&&!t.test(r)||("string"==typeof n?delete e[r]:n&&!n.meta&&(this._cache.delete(n.schema),delete e[r]))}}_addSchema(e,t,r,n=this.opts.validateSchema,o=this.opts.addUsedSchema){let a;const{schemaId:s}=this.opts;if("object"==typeof e)a=e[s];else{if(this.opts.jtd)throw new Error("schema must be object");if("boolean"!=typeof e)throw new Error("schema must be object or boolean")}let u=this._cache.get(e);if(void 0!==u)return u;r=(0,l.normalizeId)(a||r);const c=l.getSchemaRefs.call(this,e,r);return u=new i.SchemaEnv({schema:e,schemaId:s,meta:t,baseId:r,localRefs:c}),this._cache.set(u.schema,u),o&&!r.startsWith("#")&&(r&&this._checkUnique(r),this.refs[r]=u),n&&this.validateSchema(e,!0),u}_checkUnique(e){if(this.schemas[e]||this.refs[e])throw new Error(`schema with key or id "${e}" already exists`)}_compileSchemaEnv(e){if(e.meta?this._compileMetaSchema(e):i.compileSchema.call(this,e),!e.validate)throw new Error("ajv implementation error");return e.validate}_compileMetaSchema(e){const t=this.opts;this.opts=this._metaOpts;try{i.compileSchema.call(this,e)}finally{this.opts=t}}}function w(e,t,r,n="error"){for(const o in e){const a=o;a in t&&this.logger[n](`${r}: option ${o}. ${e[a]}`)}}function S(e){return e=(0,l.normalizeId)(e),this.schemas[e]||this.refs[e]}function x(){const e=this.opts.schemas;if(e)if(Array.isArray(e))this.addSchema(e);else for(const t in e)this.addSchema(e[t],t)}function _(){for(const e in this.opts.formats){const t=this.opts.formats[e];t&&this.addFormat(e,t)}}function $(e){if(Array.isArray(e))this.addVocabulary(e);else{this.logger.warn("keywords option as map is deprecated, pass array");for(const t in e){const r=e[t];r.keyword||(r.keyword=t),this.addKeyword(r)}}}function k(){const e={...this.opts};for(const t of h)delete e[t];return e}e.default=b,b.ValidationError=n.default,b.MissingRefError=o.default;const E={log(){},warn(){},error(){}};const j=/^[a-z_$][a-z0-9_$:-]*$/i;function C(e,t){const{RULES:r}=this;if((0,c.eachItem)(e,(e=>{if(r.keywords[e])throw new Error(`Keyword ${e} is already defined`);if(!j.test(e))throw new Error(`Keyword ${e} has invalid name`)})),t&&t.$data&&!("code"in t)&&!("validate"in t))throw new Error('$data keyword must have "code" or "validate" function')}function O(e,t,r){var n;const o=null==t?void 0:t.post;if(r&&o)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:a}=this;let i=o?a.post:a.rules.find((({type:e})=>e===r));if(i||(i={type:r,rules:[]},a.rules.push(i)),a.keywords[e]=!0,!t)return;const s={keyword:e,definition:{...t,type:(0,u.getJSONTypes)(t.type),schemaType:(0,u.getJSONTypes)(t.schemaType)}};t.before?P.call(this,i,s,t.before):i.rules.push(s),a.all[e]=s,null===(n=t.implements)||void 0===n||n.forEach((e=>this.addKeyword(e)))}function P(e,t,r){const n=e.rules.findIndex((e=>e.keyword===r));n>=0?e.rules.splice(n,0,t):(e.rules.push(t),this.logger.warn(`rule ${r} is not defined`))}function N(e){let{metaSchema:t}=e;void 0!==t&&(e.$data&&this.opts.$data&&(t=T(t)),e.validateSchema=this.compile(t,!0))}const R={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function T(e){return{anyOf:[e,R]}}}(nA);var xI={},_I={},$I={};Object.defineProperty($I,"__esModule",{value:!0});const kI={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};$I.default=kI;var EI={};Object.defineProperty(EI,"__esModule",{value:!0}),EI.callRef=EI.getValidate=void 0;const jI=nI(),CI=OA(),OI=sA,PI=mA(),NI=oI,RI=cA,TI={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 function(){if(a===u)return II(e,i,a,a.$async);const r=t.scopeValue("root",{ref:u});return II(e,OI._`${r}.validate`,u,u.$async)}();const c=NI.resolveRef.call(l,u,o,r);if(void 0===c)throw new jI.default(n.opts.uriResolver,o,r);return c instanceof NI.SchemaEnv?function(t){const r=AI(e,t);II(e,r,t,t.$async)}(c):function(n){const o=t.scopeValue("schema",!0===s.code.source?{ref:n,code:(0,OI.stringify)(n)}:{ref:n}),a=t.name("valid"),i=e.subschema({schema:n,dataTypes:[],schemaPath:OI.nil,topSchemaRef:o,errSchemaPath:r},a);e.mergeEvaluated(i),e.ok(a)}(c)}};function AI(e,t){const{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):OI._`${r.scopeValue("wrapper",{ref:t})}.validate`}function II(e,t,r,n){const{gen:o,it:a}=e,{allErrors:i,schemaEnv:s,opts:l}=a,u=l.passContext?PI.default.this:OI.nil;function c(e){const t=OI._`${e}.errors`;o.assign(PI.default.vErrors,OI._`${PI.default.vErrors} === null ? ${t} : ${PI.default.vErrors}.concat(${t})`),o.assign(PI.default.errors,OI._`${PI.default.vErrors}.length`)}function d(e){var t;if(!a.opts.unevaluated)return;const n=null===(t=null==r?void 0:r.validate)||void 0===t?void 0:t.evaluated;if(!0!==a.props)if(n&&!n.dynamicProps)void 0!==n.props&&(a.props=RI.mergeEvaluated.props(o,n.props,a.props));else{const t=o.var("props",OI._`${e}.evaluated.props`);a.props=RI.mergeEvaluated.props(o,t,a.props,OI.Name)}if(!0!==a.items)if(n&&!n.dynamicItems)void 0!==n.items&&(a.items=RI.mergeEvaluated.items(o,n.items,a.items));else{const t=o.var("items",OI._`${e}.evaluated.items`);a.items=RI.mergeEvaluated.items(o,t,a.items,OI.Name)}}n?function(){if(!s.$async)throw new Error("async schema referenced by sync schema");const r=o.let("valid");o.try((()=>{o.code(OI._`await ${(0,CI.callValidateCode)(e,t,u)}`),d(t),i||o.assign(r,!0)}),(e=>{o.if(OI._`!(${e} instanceof ${a.ValidationError})`,(()=>o.throw(e))),c(e),i||o.assign(r,!1)})),e.ok(r)}():e.result((0,CI.callValidateCode)(e,t,u),(()=>d(t)),(()=>c(t)))}EI.getValidate=AI,EI.callRef=II,EI.default=TI,Object.defineProperty(_I,"__esModule",{value:!0});const MI=EI,FI=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",$I.default,MI.default];_I.default=FI;var zI={},DI={};Object.defineProperty(DI,"__esModule",{value:!0});const LI=sA,BI=LI.operators,VI={maximum:{okStr:"<=",ok:BI.LTE,fail:BI.GT},minimum:{okStr:">=",ok:BI.GTE,fail:BI.LT},exclusiveMaximum:{okStr:"<",ok:BI.LT,fail:BI.GTE},exclusiveMinimum:{okStr:">",ok:BI.GT,fail:BI.LTE}},UI={message:({keyword:e,schemaCode:t})=>LI.str`must be ${VI[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>LI._`{comparison: ${VI[e].okStr}, limit: ${t}}`},WI={keyword:Object.keys(VI),type:"number",schemaType:"number",$data:!0,error:UI,code(e){const{keyword:t,data:r,schemaCode:n}=e;e.fail$data(LI._`${r} ${VI[t].fail} ${n} || isNaN(${r})`)}};DI.default=WI;var qI={};Object.defineProperty(qI,"__esModule",{value:!0});const KI=sA,HI={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:({schemaCode:e})=>KI.str`must be multiple of ${e}`,params:({schemaCode:e})=>KI._`{multipleOf: ${e}}`},code(e){const{gen:t,data:r,schemaCode:n,it:o}=e,a=o.opts.multipleOfPrecision,i=t.let("res"),s=a?KI._`Math.abs(Math.round(${i}) - ${i}) > 1e-${a}`:KI._`${i} !== parseInt(${i})`;e.fail$data(KI._`(${n} === 0 || (${i} = ${r}/${n}, ${s}))`)}};qI.default=HI;var GI={},QI={};function JI(e){const t=e.length;let r,n=0,o=0;for(;o<t;)n++,r=e.charCodeAt(o++),r>=55296&&r<=56319&&o<t&&(r=e.charCodeAt(o),56320==(64512&r)&&o++);return n}Object.defineProperty(QI,"__esModule",{value:!0}),QI.default=JI,JI.code='require("ajv/dist/runtime/ucs2length").default',Object.defineProperty(GI,"__esModule",{value:!0});const YI=sA,XI=cA,ZI=QI,eM={message({keyword:e,schemaCode:t}){const r="maxLength"===e?"more":"fewer";return YI.str`must NOT have ${r} than ${t} characters`},params:({schemaCode:e})=>YI._`{limit: ${e}}`},tM={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:eM,code(e){const{keyword:t,data:r,schemaCode:n,it:o}=e,a="maxLength"===t?YI.operators.GT:YI.operators.LT,i=!1===o.opts.unicode?YI._`${r}.length`:YI._`${(0,XI.useFunc)(e.gen,ZI.default)}(${r})`;e.fail$data(YI._`${i} ${a} ${n}`)}};GI.default=tM;var rM={};Object.defineProperty(rM,"__esModule",{value:!0});const nM=OA(),oM=sA,aM={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:{message:({schemaCode:e})=>oM.str`must match pattern "${e}"`,params:({schemaCode:e})=>oM._`{pattern: ${e}}`},code(e){const{data:t,$data:r,schema:n,schemaCode:o,it:a}=e,i=a.opts.unicodeRegExp?"u":"",s=r?oM._`(new RegExp(${o}, ${i}))`:(0,nM.usePattern)(e,n);e.fail$data(oM._`!${s}.test(${t})`)}};rM.default=aM;var iM={};Object.defineProperty(iM,"__esModule",{value:!0});const sM=sA,lM={message({keyword:e,schemaCode:t}){const r="maxProperties"===e?"more":"fewer";return sM.str`must NOT have ${r} than ${t} properties`},params:({schemaCode:e})=>sM._`{limit: ${e}}`},uM={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:lM,code(e){const{keyword:t,data:r,schemaCode:n}=e,o="maxProperties"===t?sM.operators.GT:sM.operators.LT;e.fail$data(sM._`Object.keys(${r}).length ${o} ${n}`)}};iM.default=uM;var cM={};Object.defineProperty(cM,"__esModule",{value:!0});const dM=OA(),fM=sA,pM=cA,hM={keyword:"required",type:"object",schemaType:"array",$data:!0,error:{message:({params:{missingProperty:e}})=>fM.str`must have required property '${e}'`,params:({params:{missingProperty:e}})=>fM._`{missingProperty: ${e}}`},code(e){const{gen:t,schema:r,schemaCode:n,data:o,$data:a,it:i}=e,{opts:s}=i;if(!a&&0===r.length)return;const l=r.length>=s.loopRequired;if(i.allErrors?function(){if(l||a)e.block$data(fM.nil,u);else for(const t of r)(0,dM.checkReportMissingProp)(e,t)}():function(){const i=t.let("missing");if(l||a){const r=t.let("valid",!0);e.block$data(r,(()=>function(r,a){e.setParams({missingProperty:r}),t.forOf(r,n,(()=>{t.assign(a,(0,dM.propertyInData)(t,o,r,s.ownProperties)),t.if((0,fM.not)(a),(()=>{e.error(),t.break()}))}),fM.nil)}(i,r))),e.ok(r)}else t.if((0,dM.checkMissingProp)(e,r,i)),(0,dM.reportMissingProp)(e,i),t.else()}(),s.strictRequired){const t=e.parentSchema.properties,{definedProperties:n}=e.it;for(const e of r)if(void 0===(null==t?void 0:t[e])&&!n.has(e)){const t=`required property "${e}" is not defined at "${i.schemaEnv.baseId+i.errSchemaPath}" (strictRequired)`;(0,pM.checkStrictMode)(i,t,i.opts.strictRequired)}}function u(){t.forOf("prop",n,(r=>{e.setParams({missingProperty:r}),t.if((0,dM.noPropertyInData)(t,o,r,s.ownProperties),(()=>e.error()))}))}}};cM.default=hM;var mM={};Object.defineProperty(mM,"__esModule",{value:!0});const vM=sA,gM={message({keyword:e,schemaCode:t}){const r="maxItems"===e?"more":"fewer";return vM.str`must NOT have ${r} than ${t} items`},params:({schemaCode:e})=>vM._`{limit: ${e}}`},yM={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:gM,code(e){const{keyword:t,data:r,schemaCode:n}=e,o="maxItems"===t?vM.operators.GT:vM.operators.LT;e.fail$data(vM._`${r}.length ${o} ${n}`)}};mM.default=yM;var bM={},wM={};Object.defineProperty(wM,"__esModule",{value:!0});const SM=zO;SM.code='require("ajv/dist/runtime/equal").default',wM.default=SM,Object.defineProperty(bM,"__esModule",{value:!0});const xM=gA,_M=sA,$M=cA,kM=wM,EM={message:({params:{i:e,j:t}})=>_M.str`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>_M._`{i: ${e}, j: ${t}}`},jM={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:EM,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,xM.getSchemaTypes)(a.items):[];function c(n,o){const a=t.name("item"),i=(0,xM.checkDataTypes)(u,a,s.opts.strictNumbers,xM.DataType.Wrong),c=t.const("indices",_M._`{}`);t.for(_M._`;${n}--;`,(()=>{t.let(a,_M._`${r}[${n}]`),t.if(i,_M._`continue`),u.length>1&&t.if(_M._`typeof ${a} == "string"`,_M._`${a} += "_"`),t.if(_M._`typeof ${c}[${a}] == "number"`,(()=>{t.assign(o,_M._`${c}[${a}]`),e.error(),t.assign(l,!1).break()})).code(_M._`${c}[${a}] = ${n}`)}))}function d(n,o){const a=(0,$M.useFunc)(t,kM.default),i=t.name("outer");t.label(i).for(_M._`;${n}--;`,(()=>t.for(_M._`${o} = ${n}; ${o}--;`,(()=>t.if(_M._`${a}(${r}[${n}], ${r}[${o}])`,(()=>{e.error(),t.assign(l,!1).break(i)}))))))}e.block$data(l,(function(){const n=t.let("i",_M._`${r}.length`),o=t.let("j");e.setParams({i:n,j:o}),t.assign(l,!0),t.if(_M._`${n} > 1`,(()=>(u.length>0&&!u.some((e=>"object"===e||"array"===e))?c:d)(n,o)))}),_M._`${i} === false`),e.ok(l)}};bM.default=jM;var CM={};Object.defineProperty(CM,"__esModule",{value:!0});const OM=sA,PM=cA,NM=wM,RM={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:({schemaCode:e})=>OM._`{allowedValue: ${e}}`},code(e){const{gen:t,data:r,$data:n,schemaCode:o,schema:a}=e;n||a&&"object"==typeof a?e.fail$data(OM._`!${(0,PM.useFunc)(t,NM.default)}(${r}, ${o})`):e.fail(OM._`${a} !== ${r}`)}};CM.default=RM;var TM={};Object.defineProperty(TM,"__esModule",{value:!0});const AM=sA,IM=cA,MM=wM,FM={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:({schemaCode:e})=>AM._`{allowedValues: ${e}}`},code(e){const{gen:t,data:r,$data:n,schema:o,schemaCode:a,it:i}=e;if(!n&&0===o.length)throw new Error("enum must have non-empty array");const s=o.length>=i.opts.loopEnum;let l;const u=()=>null!=l?l:l=(0,IM.useFunc)(t,MM.default);let c;if(s||n)c=t.let("valid"),e.block$data(c,(function(){t.assign(c,!1),t.forOf("v",a,(e=>t.if(AM._`${u()}(${r}, ${e})`,(()=>t.assign(c,!0).break()))))}));else{if(!Array.isArray(o))throw new Error("ajv implementation error");const e=t.const("vSchema",a);c=(0,AM.or)(...o.map(((t,n)=>function(e,t){const n=o[t];return"object"==typeof n&&null!==n?AM._`${u()}(${r}, ${e}[${t}])`:AM._`${r} === ${n}`}(e,n))))}e.pass(c)}};TM.default=FM,Object.defineProperty(zI,"__esModule",{value:!0});const zM=qI,DM=GI,LM=rM,BM=iM,VM=cM,UM=mM,WM=bM,qM=CM,KM=TM,HM=[DI.default,zM.default,DM.default,LM.default,BM.default,VM.default,UM.default,WM.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},qM.default,KM.default];zI.default=HM;var GM={},QM={};Object.defineProperty(QM,"__esModule",{value:!0}),QM.validateAdditionalItems=void 0;const JM=sA,YM=cA,XM={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:({params:{len:e}})=>JM.str`must NOT have more than ${e} items`,params:({params:{len:e}})=>JM._`{limit: ${e}}`},code(e){const{parentSchema:t,it:r}=e,{items:n}=t;Array.isArray(n)?ZM(e,n):(0,YM.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas')}};function ZM(e,t){const{gen:r,schema:n,data:o,keyword:a,it:i}=e;i.items=!0;const s=r.const("len",JM._`${o}.length`);if(!1===n)e.setParams({len:t.length}),e.pass(JM._`${s} <= ${t.length}`);else if("object"==typeof n&&!(0,YM.alwaysValidSchema)(i,n)){const n=r.var("valid",JM._`${s} <= ${t.length}`);r.if((0,JM.not)(n),(()=>function(n){r.forRange("i",t.length,s,(t=>{e.subschema({keyword:a,dataProp:t,dataPropType:YM.Type.Num},n),i.allErrors||r.if((0,JM.not)(n),(()=>r.break()))}))}(n))),e.ok(n)}}QM.validateAdditionalItems=ZM,QM.default=XM;var eF={},tF={};Object.defineProperty(tF,"__esModule",{value:!0}),tF.validateTuple=void 0;const rF=sA,nF=cA,oF=OA(),aF={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){const{schema:t,it:r}=e;if(Array.isArray(t))return iF(e,"additionalItems",t);r.items=!0,(0,nF.alwaysValidSchema)(r,t)||e.ok((0,oF.validateArray)(e))}};function iF(e,t,r=e.schema){const{gen:n,parentSchema:o,data:a,keyword:i,it:s}=e;!function(e){const{opts:n,errSchemaPath:o}=s,a=r.length,l=a===e.minItems&&(a===e.maxItems||!1===e[t]);if(n.strictTuples&&!l){const e=`"${i}" is ${a}-tuple, but minItems or maxItems/${t} are not specified or different at path "${o}"`;(0,nF.checkStrictMode)(s,e,n.strictTuples)}}(o),s.opts.unevaluated&&r.length&&!0!==s.items&&(s.items=nF.mergeEvaluated.items(n,r.length,s.items));const l=n.name("valid"),u=n.const("len",rF._`${a}.length`);r.forEach(((t,r)=>{(0,nF.alwaysValidSchema)(s,t)||(n.if(rF._`${u} > ${r}`,(()=>e.subschema({keyword:i,schemaProp:r,dataProp:r},l))),e.ok(l))}))}tF.validateTuple=iF,tF.default=aF,Object.defineProperty(eF,"__esModule",{value:!0});const sF=tF,lF={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,sF.validateTuple)(e,"items")};eF.default=lF;var uF={};Object.defineProperty(uF,"__esModule",{value:!0});const cF=sA,dF=cA,fF=OA(),pF=QM,hF={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:({params:{len:e}})=>cF.str`must NOT have more than ${e} items`,params:({params:{len:e}})=>cF._`{limit: ${e}}`},code(e){const{schema:t,parentSchema:r,it:n}=e,{prefixItems:o}=r;n.items=!0,(0,dF.alwaysValidSchema)(n,t)||(o?(0,pF.validateAdditionalItems)(e,o):e.ok((0,fF.validateArray)(e)))}};uF.default=hF;var mF={};Object.defineProperty(mF,"__esModule",{value:!0});const vF=sA,gF=cA,yF={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:{message:({params:{min:e,max:t}})=>void 0===t?vF.str`must contain at least ${e} valid item(s)`:vF.str`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>void 0===t?vF._`{minContains: ${e}}`:vF._`{minContains: ${e}, maxContains: ${t}}`},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=void 0===l?1:l,s=u):i=1;const c=t.const("len",vF._`${o}.length`);if(e.setParams({min:i,max:s}),void 0===s&&0===i)return void(0,gF.checkStrictMode)(a,'"minContains" == 0 without "maxContains": "contains" keyword ignored');if(void 0!==s&&i>s)return(0,gF.checkStrictMode)(a,'"minContains" > "maxContains" is always invalid'),void e.fail();if((0,gF.alwaysValidSchema)(a,r)){let t=vF._`${c} >= ${i}`;return void 0!==s&&(t=vF._`${t} && ${c} <= ${s}`),void e.pass(t)}a.items=!0;const d=t.name("valid");function f(){const e=t.name("_valid"),r=t.let("count",0);p(e,(()=>t.if(e,(()=>function(e){t.code(vF._`${e}++`),void 0===s?t.if(vF._`${e} >= ${i}`,(()=>t.assign(d,!0).break())):(t.if(vF._`${e} > ${s}`,(()=>t.assign(d,!1).break())),1===i?t.assign(d,!0):t.if(vF._`${e} >= ${i}`,(()=>t.assign(d,!0))))}(r)))))}function p(r,n){t.forRange("i",0,c,(t=>{e.subschema({keyword:"contains",dataProp:t,dataPropType:gF.Type.Num,compositeRule:!0},r),n()}))}void 0===s&&1===i?p(d,(()=>t.if(d,(()=>t.break())))):0===i?(t.let(d,!0),void 0!==s&&t.if(vF._`${o}.length > 0`,f)):(t.let(d,!1),f()),e.result(d,(()=>e.reset()))}};mF.default=yF;var bF={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0;const t=sA,r=cA,n=OA();e.error={message:({params:{property:e,depsCount:r,deps:n}})=>{const o=1===r?"property":"properties";return t.str`must have ${o} ${n} when property ${e} is present`},params:({params:{property:e,depsCount:r,deps:n,missingProperty:o}})=>t._`{property: ${e},
|
|
33
54
|
missingProperty: ${o},
|
|
34
55
|
depsCount: ${r},
|
|
35
|
-
deps: ${n}}`};const o={keyword:"dependencies",type:"object",schemaType:"object",error:e.error,code(e){const[t,r]=function({schema:e}){const t={},r={};for(const n in e){if("__proto__"===n)continue;(Array.isArray(e[n])?t:r)[n]=e[n]}return[t,r]}(e);a(e,t),i(e,r)}};function a(e,r=e.schema){const{gen:o,data:a,it:i}=e;if(0===Object.keys(r).length)return;const s=o.let("missing");for(const l in r){const u=r[l];if(0===u.length)continue;const c=(0,n.propertyInData)(o,a,l,i.opts.ownProperties);e.setParams({property:l,depsCount:u.length,deps:u.join(", ")}),i.allErrors?o.if(c,(()=>{for(const t of u)(0,n.checkReportMissingProp)(e,t)})):(o.if(t._`${c} && (${(0,n.checkMissingProp)(e,u,s)})`),(0,n.reportMissingProp)(e,s),o.else())}}function i(e,t=e.schema){const{gen:o,data:a,keyword:i,it:s}=e,l=o.name("valid");for(const u in t)(0,r.alwaysValidSchema)(s,t[u])||(o.if((0,n.propertyInData)(o,a,u,s.opts.ownProperties),(()=>{const t=e.subschema({keyword:i,schemaProp:u},l);e.mergeValidEvaluated(t,l)}),(()=>o.var(l,!0))),e.ok(l))}e.validatePropertyDeps=a,e.validateSchemaDeps=i,e.default=o}(hB);var vB={};Object.defineProperty(vB,"__esModule",{value:!0});const yB=aD,gB=lD,bB={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:e})=>yB._`{propertyName: ${e.propertyName}}`},code(e){const{gen:t,schema:r,data:n,it:o}=e;if((0,gB.alwaysValidSchema)(o,r))return;const a=t.name("valid");t.forIn("key",n,(r=>{e.setParams({propertyName:r}),e.subschema({keyword:"propertyNames",data:r,dataTypes:["string"],propertyName:r,compositeRule:!0},a),t.if((0,yB.not)(a),(()=>{e.error(!0),o.allErrors||t.break()}))})),e.ok(a)}};vB.default=bB;var wB={};Object.defineProperty(wB,"__esModule",{value:!0});const SB=_D(),xB=aD,$B=uD,kB=lD,_B={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:e})=>xB._`{additionalProperty: ${e.additionalProperty}}`},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,"all"!==l.removeAdditional&&(0,kB.alwaysValidSchema)(i,r))return;const u=(0,SB.allSchemaProperties)(n.properties),c=(0,SB.allSchemaProperties)(n.patternProperties);function d(e){t.code(xB._`delete ${o}[${e}]`)}function f(n){if("all"===l.removeAdditional||l.removeAdditional&&!1===r)d(n);else{if(!1===r)return e.setParams({additionalProperty:n}),e.error(),void(s||t.break());if("object"==typeof r&&!(0,kB.alwaysValidSchema)(i,r)){const r=t.name("valid");"failing"===l.removeAdditional?(p(n,r,!1),t.if((0,xB.not)(r),(()=>{e.reset(),d(n)}))):(p(n,r),s||t.if((0,xB.not)(r),(()=>t.break())))}}}function p(t,r,n){const o={keyword:"additionalProperties",dataProp:t,dataPropType:kB.Type.Str};!1===n&&Object.assign(o,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(o,r)}t.forIn("key",o,(r=>{u.length||c.length?t.if(function(r){let o;if(u.length>8){const e=(0,kB.schemaRefOrVal)(i,n.properties,"properties");o=(0,SB.isOwnProperty)(t,e,r)}else o=u.length?(0,xB.or)(...u.map((e=>xB._`${r} === ${e}`))):xB.nil;return c.length&&(o=(0,xB.or)(o,...c.map((t=>xB._`${(0,SB.usePattern)(e,t)}.test(${r})`)))),(0,xB.not)(o)}(r),(()=>f(r))):f(r)})),e.ok(xB._`${a} === ${$B.default.errors}`)}};wB.default=_B;var EB={};Object.defineProperty(EB,"__esModule",{value:!0});const CB=HD(),PB=_D(),jB=lD,OB=wB,NB={keyword:"properties",type:"object",schemaType:"object",code(e){const{gen:t,schema:r,parentSchema:n,data:o,it:a}=e;"all"===a.opts.removeAdditional&&void 0===n.additionalProperties&&OB.default.code(new CB.KeywordCxt(a,OB.default,"additionalProperties"));const i=(0,PB.allSchemaProperties)(r);for(const e of i)a.definedProperties.add(e);a.opts.unevaluated&&i.length&&!0!==a.props&&(a.props=jB.mergeEvaluated.props(t,(0,jB.toHash)(i),a.props));const s=i.filter((e=>!(0,jB.alwaysValidSchema)(a,r[e])));if(0===s.length)return;const l=t.name("valid");for(const r of s)u(r)?c(r):(t.if((0,PB.propertyInData)(t,o,r,a.opts.ownProperties)),c(r),a.allErrors||t.else().var(l,!0),t.endIf()),e.it.definedProperties.add(r),e.ok(l);function u(e){return a.opts.useDefaults&&!a.compositeRule&&void 0!==r[e].default}function c(t){e.subschema({keyword:"properties",schemaProp:t,dataProp:t},l)}}};EB.default=NB;var RB={};Object.defineProperty(RB,"__esModule",{value:!0});const TB=_D(),AB=aD,IB=lD,MB=lD,FB={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,TB.allSchemaProperties)(r),l=s.filter((e=>(0,IB.alwaysValidSchema)(a,r[e])));if(0===s.length||l.length===s.length&&(!a.opts.unevaluated||!0===a.props))return;const u=i.strictSchema&&!i.allowMatchingProperties&&o.properties,c=t.name("valid");!0===a.props||a.props instanceof AB.Name||(a.props=(0,MB.evaluatedPropsToName)(t,a.props));const{props:d}=a;function f(e){for(const t in u)new RegExp(e).test(t)&&(0,IB.checkStrictMode)(a,`property ${t} matches pattern ${e} (use allowMatchingProperties)`)}function p(r){t.forIn("key",n,(n=>{t.if(AB._`${(0,TB.usePattern)(e,r)}.test(${n})`,(()=>{const o=l.includes(r);o||e.subschema({keyword:"patternProperties",schemaProp:r,dataProp:n,dataPropType:MB.Type.Str},c),a.opts.unevaluated&&!0!==d?t.assign(AB._`${d}[${n}]`,!0):o||a.allErrors||t.if((0,AB.not)(c),(()=>t.break()))}))}))}!function(){for(const e of s)u&&f(e),a.allErrors?p(e):(t.var(c,!0),p(e),t.if(c))}()}};RB.default=FB;var DB={};Object.defineProperty(DB,"__esModule",{value:!0});const zB=lD,LB={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){const{gen:t,schema:r,it:n}=e;if((0,zB.alwaysValidSchema)(n,r))return void e.fail();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"}};DB.default=LB;var BB={};Object.defineProperty(BB,"__esModule",{value:!0});const VB={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:_D().validateUnion,error:{message:"must match a schema in anyOf"}};BB.default=VB;var UB={};Object.defineProperty(UB,"__esModule",{value:!0});const WB=aD,qB=lD,KB={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:e})=>WB._`{passingSchemas: ${e.passing}}`},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((function(){a.forEach(((r,n)=>{let a;(0,qB.alwaysValidSchema)(o,r)?t.var(l,!0):a=e.subschema({keyword:"oneOf",schemaProp:n,compositeRule:!0},l),n>0&&t.if(WB._`${l} && ${i}`).assign(i,!1).assign(s,WB._`[${s}, ${n}]`).else(),t.if(l,(()=>{t.assign(i,!0),t.assign(s,n),a&&e.mergeEvaluated(a,WB.Name)}))}))})),e.result(i,(()=>e.reset()),(()=>e.error(!0)))}};UB.default=KB;var HB={};Object.defineProperty(HB,"__esModule",{value:!0});const GB=lD,QB={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(((t,r)=>{if((0,GB.alwaysValidSchema)(n,t))return;const a=e.subschema({keyword:"allOf",schemaProp:r},o);e.ok(o),e.mergeEvaluated(a)}))}};HB.default=QB;var XB={};Object.defineProperty(XB,"__esModule",{value:!0});const YB=aD,JB=lD,ZB={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:e})=>YB.str`must match "${e.ifClause}" schema`,params:({params:e})=>YB._`{failingKeyword: ${e.ifClause}}`},code(e){const{gen:t,parentSchema:r,it:n}=e;void 0===r.then&&void 0===r.else&&(0,JB.checkStrictMode)(n,'"if" without "then" and "else" is ignored');const o=eV(n,"then"),a=eV(n,"else");if(!o&&!a)return;const i=t.let("valid",!0),s=t.name("_valid");if(function(){const t=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},s);e.mergeEvaluated(t)}(),e.reset(),o&&a){const r=t.let("ifClause");e.setParams({ifClause:r}),t.if(s,l("then",r),l("else",r))}else o?t.if(s,l("then")):t.if((0,YB.not)(s),l("else"));function l(r,n){return()=>{const o=e.subschema({keyword:r},s);t.assign(i,s),e.mergeValidEvaluated(o,i),n?t.assign(n,YB._`${r}`):e.setParams({ifClause:r})}}e.pass(i,(()=>e.error(!0)))}};function eV(e,t){const r=e.schema[t];return void 0!==r&&!(0,JB.alwaysValidSchema)(e,r)}XB.default=ZB;var tV={};Object.defineProperty(tV,"__esModule",{value:!0});const rV=lD,nV={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){void 0===t.if&&(0,rV.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};tV.default=nV,Object.defineProperty(WL,"__esModule",{value:!0});const oV=qL,aV=XL,iV=YL,sV=aB,lV=dB,uV=hB,cV=vB,dV=wB,fV=EB,pV=RB,mV=DB,hV=BB,vV=UB,yV=HB,gV=XB,bV=tV;WL.default=function(e=!1){const t=[mV.default,hV.default,vV.default,yV.default,gV.default,bV.default,cV.default,dV.default,uV.default,fV.default,pV.default];return e?t.push(aV.default,sV.default):t.push(oV.default,iV.default),t.push(lV.default),t};var wV={},SV={};Object.defineProperty(SV,"__esModule",{value:!0});const xV=aD,$V={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:e})=>xV.str`must match format "${e}"`,params:({schemaCode:e})=>xV._`{format: ${e}}`},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;l.validateFormats&&(o?function(){const o=r.scopeValue("formats",{ref:d.formats,code:l.code.formats}),a=r.const("fDef",xV._`${o}[${i}]`),s=r.let("fType"),u=r.let("format");r.if(xV._`typeof ${a} == "object" && !(${a} instanceof RegExp)`,(()=>r.assign(s,xV._`${a}.type || "string"`).assign(u,xV._`${a}.validate`)),(()=>r.assign(s,xV._`"string"`).assign(u,a))),e.fail$data((0,xV.or)(!1===l.strictSchema?xV.nil:xV._`${i} && !${u}`,function(){const e=c.$async?xV._`(${a}.async ? await ${u}(${n}) : ${u}(${n}))`:xV._`${u}(${n})`,r=xV._`(typeof ${u} == "function" ? ${e} : ${u}.test(${n}))`;return xV._`${u} && ${u} !== true && ${s} === ${t} && !${r}`}()))}():function(){const o=d.formats[a];if(!o)return void function(){if(!1===l.strictSchema)return void d.logger.warn(e());throw new Error(e());function e(){return`unknown format "${a}" ignored in schema at path "${u}"`}}();if(!0===o)return;const[i,s,f]=function(e){const t=e instanceof RegExp?(0,xV.regexpCode)(e):l.code.formats?xV._`${l.code.formats}${(0,xV.getProperty)(a)}`:void 0,n=r.scopeValue("formats",{key:a,ref:e,code:t});if("object"==typeof e&&!(e instanceof RegExp))return[e.type||"string",e.validate,xV._`${n}.validate`];return["string",e,n]}(o);i===t&&e.pass(function(){if("object"==typeof o&&!(o instanceof RegExp)&&o.async){if(!c.$async)throw new Error("async format in sync schema");return xV._`await ${f}(${n})`}return"function"==typeof s?xV._`${f}(${n})`:xV._`${f}.test(${n})`}())}())}};SV.default=$V,Object.defineProperty(wV,"__esModule",{value:!0});const kV=[SV.default];wV.default=kV;var _V={};Object.defineProperty(_V,"__esModule",{value:!0}),_V.contentVocabulary=_V.metadataVocabulary=void 0,_V.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],_V.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"],Object.defineProperty(gz,"__esModule",{value:!0});const EV=Az,CV=WL,PV=wV,jV=_V,OV=[bz.default,EV.default,(0,CV.default)(),PV.default,jV.metadataVocabulary,jV.contentVocabulary];gz.default=OV;var NV={},RV={};!function(e){var t;Object.defineProperty(e,"__esModule",{value:!0}),e.DiscrError=void 0,(t=e.DiscrError||(e.DiscrError={})).Tag="tag",t.Mapping="mapping"}(RV),Object.defineProperty(NV,"__esModule",{value:!0});const TV=aD,AV=RV,IV=ez,MV=lD,FV={keyword:"discriminator",type:"object",schemaType:"object",error:{message:({params:{discrError:e,tagName:t}})=>e===AV.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:t,tagName:r}})=>TV._`{error: ${e}, tag: ${r}, tagValue: ${t}}`},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("string"!=typeof s)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",TV._`${r}${(0,TV.getProperty)(s)}`);function c(r){const n=t.name("valid"),o=e.subschema({keyword:"oneOf",schemaProp:r},n);return e.mergeEvaluated(o,TV.Name),n}t.if(TV._`typeof ${u} == "string"`,(()=>function(){const r=function(){var e;const t={},r=l(o);let n=!0;for(let t=0;t<i.length;t++){let o=i[t];(null==o?void 0:o.$ref)&&!(0,MV.schemaHasRulesButRef)(o,a.self.RULES)&&(o=IV.resolveRef.call(a.self,a.schemaEnv.root,a.baseId,null==o?void 0:o.$ref),o instanceof IV.SchemaEnv&&(o=o.schema));const c=null===(e=null==o?void 0:o.properties)||void 0===e?void 0:e[s];if("object"!=typeof c)throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${s}"`);n=n&&(r||l(o)),u(c,t)}if(!n)throw new Error(`discriminator: "${s}" must be required`);return t;function l({required:e}){return Array.isArray(e)&&e.includes(s)}function u(e,t){if(e.const)c(e.const,t);else{if(!e.enum)throw new Error(`discriminator: "properties/${s}" must have "const" or "enum"`);for(const r of e.enum)c(r,t)}}function c(e,r){if("string"!=typeof e||e in t)throw new Error(`discriminator: "${s}" values must be unique strings`);t[e]=r}}();t.if(!1);for(const e in r)t.elseIf(TV._`${u} === ${e}`),t.assign(l,c(r[e]));t.else(),e.error(!1,{discrError:AV.DiscrError.Mapping,tag:u,tagName:s}),t.endIf()}()),(()=>e.error(!1,{discrError:AV.DiscrError.Tag,tag:u,tagName:s}))),e.ok(l)}};NV.default=FV;var DV={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://json-schema.org/draft-07/schema#",title:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0};!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=tD,n=gz,o=NV,a=DV,i=["/properties"],s="http://json-schema.org/draft-07/schema";class l extends r.default{_addVocabularies(){super._addVocabularies(),n.default.forEach((e=>this.addVocabulary(e))),this.opts.discriminator&&this.addKeyword(o.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const e=this.opts.$data?this.$dataMetaSchema(a,i):a;this.addMetaSchema(e,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=HD();Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return u.KeywordCxt}});var c=aD;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=XD();Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return d.default}});var f=ZD();Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return f.default}})}(eD,ZF),function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatLimitDefinition=void 0;const t=ZF,r=aD,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:e,schemaCode:t})=>r.str`should be ${o[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>r._`{comparison: ${o[e].okStr}, limit: ${t}}`};e.formatLimitDefinition={keyword:Object.keys(o),type:"string",schemaType:"string",$data:!0,error:a,code(e){const{gen:n,data:a,schemaCode:i,keyword:s,it:l}=e,{opts:u,self:c}=l;if(!u.validateFormats)return;const d=new t.KeywordCxt(l,c.RULES.all.format.definition,"format");function f(e){return r._`${e}.compare(${a}, ${i}) ${o[s].fail} 0`}d.$data?function(){const t=n.scopeValue("formats",{ref:c.formats,code:u.code.formats}),o=n.const("fmt",r._`${t}[${d.schemaCode}]`);e.fail$data(r.or(r._`typeof ${o} != "object"`,r._`${o} instanceof RegExp`,r._`typeof ${o}.compare != "function"`,f(o)))}():function(){const t=d.schema,o=c.formats[t];if(!o||!0===o)return;if("object"!=typeof o||o instanceof RegExp||"function"!=typeof o.compare)throw new Error(`"${s}": format "${t}" does not define "compare" function`);const a=n.scopeValue("formats",{key:t,ref:o,code:u.code.formats?r._`${u.code.formats}${r.getProperty(t)}`:void 0});e.fail$data(f(a))}()},dependencies:["format"]};e.default=t=>(t.addKeyword(e.formatLimitDefinition),t)}(JF),function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const r=YF,n=JF,o=aD,a=new o.Name("fullFormats"),i=new o.Name("fastFormats"),s=(e,t={keywords:!0})=>{if(Array.isArray(t))return l(e,t,r.fullFormats,a),e;const[o,s]="fast"===t.mode?[r.fastFormats,i]:[r.fullFormats,a];return l(e,t.formats||r.formatNames,o,s),t.keywords&&n.default(e),e};function l(e,t,r,n){var a,i;null!==(a=(i=e.opts.code).formats)&&void 0!==a||(i.formats=o._`require("ajv-formats/dist/formats").${n}`);for(const n of t)e.addFormat(n,r[n])}s.get=(e,t="full")=>{const n=("fast"===t?r.fastFormats:r.fullFormats)[e];if(!n)throw new Error(`Unknown format "${e}"`);return n},e.exports=t=s,Object.defineProperty(t,"__esModule",{value:!0}),t.default=s}(XF,QF);var zV=n(QF);function LV(){return LV=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},LV.apply(this,arguments)}var BV={allErrors:!0,multipleOfPrecision:8,strict:!1,verbose:!0},VV=/^(#?([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*\)))$/,UV=/^data:([a-z]+\/[a-z0-9-+.]+)?;(?:name=(.*);)?base64,(.*)$/;var WV=["instancePath","keyword","params","schemaPath","parentSchema"];function qV(e,t){return void 0===e&&(e=[]),e.map((function(e){var r=e.instancePath,n=e.keyword,o=e.params,a=e.schemaPath,i=e.parentSchema,s=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,WV),l=s.message,u=void 0===l?"":l,c=r.replace(/\//g,"."),d=(c+" "+u).trim();if("missingProperty"in o){c=c?c+"."+o.missingProperty:o.missingProperty;var f=o.missingProperty,p=EN(lm(t,""+c.replace(/^\./,""))).title;if(p)u=u.replace(f,p);else{var m=lm(i,[gN,f,"title"]);m&&(u=u.replace(f,m))}d=u}else{var h=EN(lm(t,""+c.replace(/^\./,""))).title;if(h)d=("'"+h+"' "+u).trim();else{var v=null==i?void 0:i.title;v&&(d=("'"+v+"' "+u).trim())}}return{name:n,property:c,message:u,params:o,stack:d,schemaPath:a}}))}function KV(e,t,r,n,o,a,i){var s=t.validationError,l=qV(t.errors,i);s&&(l=[].concat(l,[{stack:s.message}])),"function"==typeof a&&(l=a(l,i));var u=function(e){var t=new $R;return e.length&&e.forEach((function(e){var r=e.property,n=e.message,o="."===r?[]:YO(r);o.length>0&&""===o[0]&&o.splice(0,1),n&&t.addErrors(n,o)})),t.ErrorSchema}(l);if(s&&(u=LV({},u,{$schema:{__errors:[s.message]}})),"function"!=typeof o)return{errors:l,errorSchema:u};var c=sR(e,n,r,n,!0);return XR({errors:l,errorSchema:u},GR(o(c,PN(c),i)))}var HV=function(){function e(e,t){this.ajv=void 0,this.localizer=void 0;var r=e.additionalMetaSchemas,n=e.customFormats,o=e.ajvOptionsOverrides,a=e.ajvFormatOptions,i=e.AjvClass;this.ajv=function(e,t,r,n,o){void 0===r&&(r={}),void 0===o&&(o=GF);var a=new o(LV({},BV,r));return n?zV(a,n):!1!==n&&zV(a),a.addFormat("data-url",UV),a.addFormat("color",VV),a.addKeyword(oN),a.addKeyword(xN),Array.isArray(e)&&a.addMetaSchema(e),Ed(t)&&Object.keys(t).forEach((function(e){a.addFormat(e,t[e])})),a}(r,n,o,a,i),this.localizer=t}var t=e.prototype;return t.toErrorList=function(e,t){return void 0===t&&(t=[]),HR(e,t)},t.rawValidation=function(e,t){var r,n,o=void 0;e[pN]&&(r=this.ajv.getSchema(e[pN]));try{void 0===r&&(r=this.ajv.compile(e)),r(t)}catch(e){o=e}return r&&("function"==typeof this.localizer&&this.localizer(r.errors),n=r.errors||void 0,r.errors=null),{errors:n,validationError:o}},t.validateFormData=function(e,t,r,n,o){return KV(this,this.rawValidation(t,e),e,t,r,n,o)},t.isValid=function(e,t,r){var n,o=null!=(n=r[pN])?n:$N;try{void 0===this.ajv.getSchema(o)&&this.ajv.addSchema(r,o);var a,i=YR(e);return i[pN]&&(a=this.ajv.getSchema(i[pN])),void 0===a&&(a=this.ajv.compile(i)),a(t)}catch(e){return console.warn("Error encountered compiling schema:",e),!1}finally{this.ajv.removeSchema(o)}},e}();function GV(e,t){return void 0===e&&(e={}),new HV(e,t)}var QV=GV();function XV(e,t){return function(e,t,r){for(var n=-1,o=t.length,a={};++n<o;){var i=t[n],s=sm(e,i);r(s,i)&&Pv(a,om(i,e),s)}return a}(e,t,(function(t,r){return sv(e,r)}))}var YV=Lh((function(e,t){return null==e?{}:XV(e,t)}));let JV=(e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce(((e,t)=>e+=(t&=63)<36?t.toString(36):t<62?(t-26).toString(36).toUpperCase():t>62?"-":"_"),"");function ZV(){return ZV=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ZV.apply(this,arguments)}const eU=["children","options"],tU=["allowFullScreen","allowTransparency","autoComplete","autoFocus","autoPlay","cellPadding","cellSpacing","charSet","className","classId","colSpan","contentEditable","contextMenu","crossOrigin","encType","formAction","formEncType","formMethod","formNoValidate","formTarget","frameBorder","hrefLang","inputMode","keyParams","keyType","marginHeight","marginWidth","maxLength","mediaGroup","minLength","noValidate","radioGroup","readOnly","rowSpan","spellCheck","srcDoc","srcLang","srcSet","tabIndex","useMap"].reduce(((e,t)=>(e[t.toLowerCase()]=t,e)),{for:"htmlFor"}),rU={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},nU=["style","script"],oU=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,aU=/mailto:/i,iU=/\n{2,}$/,sU=/^( *>[^\n]+(\n[^\n]+)*\n*)+\n{2,}/,lU=/^ *> ?/gm,uU=/^ {2,}\n/,cU=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,dU=/^\s*(`{3,}|~{3,}) *(\S+)?([^\n]*?)?\n([\s\S]+?)\s*\1 *(?:\n *)*\n?/,fU=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,pU=/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,mU=/^(?:\n *)*\n/,hU=/\r\n?/g,vU=/^\[\^([^\]]+)](:.*)\n/,yU=/^\[\^([^\]]+)]/,gU=/\f/g,bU=/^\s*?\[(x|\s)\]/,wU=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,SU=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,xU=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?([^>]*)\/{0}>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1)[\s\S])*?)<\/\1>\n*/i,$U=/&([a-zA-Z]+);/g,kU=/^<!--[\s\S]*?(?:-->)/,_U=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,EU=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,CU=/^\{.*\}$/,PU=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,jU=/^<([^ >]+@[^ >]+)>/,OU=/^<([^ >]+:\/[^ >]+)>/,NU=/-([a-z])?/gi,RU=/^(.*\|?.*)\n *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*)\n?/,TU=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,AU=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,IU=/^\[([^\]]*)\] ?\[([^\]]*)\]/,MU=/(\[|\])/g,FU=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,DU=/\t/g,zU=/^ *\| */,LU=/(^ *\||\| *$)/g,BU=/ *$/,VU=/^ *:-+: *$/,UU=/^ *:-+ *$/,WU=/^ *-+: *$/,qU=/^([*_])\1((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1\1(?!\1)/,KU=/^([*_])((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1(?!\1|\w)/,HU=/^==((?:\[.*?\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)==/,GU=/^~~((?:\[.*?\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)~~/,QU=/^\\([^0-9A-Za-z\s])/,XU=/^[\s\S]+?(?=[^0-9A-Z\s\u00c0-\uffff&;.()'"]|\d+\.|\n\n| {2,}\n|\w+:\S|$)/i,YU=/^\n+/,JU=/^([ \t]*)/,ZU=/\\([^\\])/g,eW=/ *\n+$/,tW=/(?:^|\n)( *)$/,rW="(?:\\d+\\.)",nW="(?:[*+-])";function oW(e){return"( *)("+(1===e?rW:nW)+") +"}const aW=oW(1),iW=oW(2);function sW(e){return new RegExp("^"+(1===e?aW:iW))}const lW=sW(1),uW=sW(2);function cW(e){return new RegExp("^"+(1===e?aW:iW)+"[^\\n]*(?:\\n(?!\\1"+(1===e?rW:nW)+" )[^\\n]*)*(\\n|$)","gm")}const dW=cW(1),fW=cW(2);function pW(e){const t=1===e?rW:nW;return new RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")}const mW=pW(1),hW=pW(2);function vW(e,t){const r=1===t,n=r?mW:hW,o=r?dW:fW,a=r?lW:uW;return{t(e,t,r){const o=tW.exec(r);return o&&(t.o||!t._&&!t.u)?n.exec(e=o[1]+e):null},i:BW.HIGH,l(e,t,n){const i=r?+e[2]:void 0,s=e[0].replace(iU,"\n").match(o);let l=!1;return{p:s.map((function(e,r){const o=a.exec(e)[0].length,i=new RegExp("^ {1,"+o+"}","gm"),u=e.replace(i,"").replace(a,""),c=r===s.length-1,d=-1!==u.indexOf("\n\n")||c&&l;l=d;const f=n._,p=n.o;let m;n.o=!0,d?(n._=!1,m=u.replace(eW,"\n\n")):(n._=!0,m=u.replace(eW,""));const h=t(m,n);return n._=f,n.o=p,h})),m:r,g:i}},h:(t,r,n)=>e(t.m?"ol":"ul",{key:n.k,start:t.g},t.p.map((function(t,o){return e("li",{key:o},r(t,n))})))}}const yW=/^\[([^\]]*)]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,gW=/^!\[([^\]]*)]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,bW=[sU,dU,fU,wU,SU,kU,RU,dW,mW,fW,hW],wW=[...bW,/^[^\n]+(?: \n|\n{2,})/,xU,EU];function SW(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 xW(e){return WU.test(e)?"right":VU.test(e)?"center":UU.test(e)?"left":null}function $W(e,t,r){const n=r.v;r.v=!0;const o=t(e.trim(),r);r.v=n;let a=[[]];return o.forEach((function(e,t){"tableSeparator"===e.type?0!==t&&t!==o.length-1&&a.push([]):("text"!==e.type||null!=o[t+1]&&"tableSeparator"!==o[t+1].type||(e.$=e.$.replace(BU,"")),a[a.length-1].push(e))})),a}function kW(e,t,r){r._=!0;const n=$W(e[1],t,r),o=e[2].replace(LU,"").split("|").map(xW),a=function(e,t,r){return e.trim().split("\n").map((function(e){return $W(e,t,r)}))}(e[3],t,r);return r._=!1,{S:o,A:a,L:n,type:"table"}}function _W(e,t){return null==e.S[t]?{}:{textAlign:e.S[t]}}function EW(e){return function(t,r){return r._?e.exec(t):null}}function CW(e){return function(t,r){return r._||r.u?e.exec(t):null}}function PW(e){return function(t,r){return r._||r.u?null:e.exec(t)}}function jW(e){return function(t){return e.exec(t)}}function OW(e,t,r){if(t._||t.u)return null;if(r&&!r.endsWith("\n"))return null;let n="";e.split("\n").every((e=>!bW.some((t=>t.test(e)))&&(n+=e+"\n",e.trim())));const o=n.trimEnd();return""==o?null:[n,o]}function NW(e){try{if(decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"").match(/^\s*(javascript|vbscript|data(?!:image)):/i))return null}catch(e){return null}return e}function RW(e){return e.replace(ZU,"$1")}function TW(e,t,r){const n=r._||!1,o=r.u||!1;r._=!0,r.u=!0;const a=e(t,r);return r._=n,r.u=o,a}function AW(e,t,r){const n=r._||!1,o=r.u||!1;r._=!1,r.u=!0;const a=e(t,r);return r._=n,r.u=o,a}function IW(e,t,r){return r._=!1,e(t+"\n\n",r)}const MW=(e,t,r)=>({$:TW(t,e[1],r)});function FW(){return{}}function DW(){return null}function zW(...e){return e.filter(Boolean).join(" ")}function LW(e,t,r){let n=e;const o=t.split(".");for(;o.length&&(n=n[o[0]],void 0!==n);)o.shift();return n||r}var BW;function VW(e,t={}){t.overrides=t.overrides||{},t.slugify=t.slugify||SW,t.namedCodesToUnicode=t.namedCodesToUnicode?ZV({},rU,t.namedCodesToUnicode):rU;const r=t.createElement||a.createElement;function n(e,n,...o){const a=LW(t.overrides,`${e}.props`,{});return r(function(e,t){const r=LW(t,e);return r?"function"==typeof r||"object"==typeof r&&"render"in r?r:LW(t,`${e}.component`,e):e}(e,t.overrides),ZV({},n,a,{className:zW(null==n?void 0:n.className,a.className)||void 0}),...o)}function o(e){let r=!1;t.forceInline?r=!0:t.forceBlock||(r=!1===FU.test(e));const o=d(c(r?e:`${e.trimEnd().replace(YU,"")}\n\n`,{_:r}));for(;"string"==typeof o[o.length-1]&&!o[o.length-1].trim();)o.pop();if(null===t.wrapper)return o;const i=t.wrapper||(r?"span":"div");let s;if(o.length>1||t.forceWrapper)s=o;else{if(1===o.length)return s=o[0],"string"==typeof s?n("span",{key:"outer"},s):s;s=null}return a.createElement(i,{key:"outer"},s)}function i(e){const t=e.match(oU);return t?t.reduce((function(e,t,r){const n=t.indexOf("=");if(-1!==n){const i=function(e){return-1!==e.indexOf("-")&&null===e.match(_U)&&(e=e.replace(NU,(function(e,t){return t.toUpperCase()}))),e}(t.slice(0,n)).trim(),s=function(e){const t=e[0];return('"'===t||"'"===t)&&e.length>=2&&e[e.length-1]===t?e.slice(1,-1):e}(t.slice(n+1).trim()),l=tU[i]||i,u=e[l]=function(e,t){return"style"===e?t.split(/;\s?/).reduce((function(e,t){const r=t.slice(0,t.indexOf(":"));return e[r.replace(/(-[a-z])/g,(e=>e[1].toUpperCase()))]=t.slice(r.length+1).trim(),e}),{}):"href"===e?NW(t):(t.match(CU)&&(t=t.slice(1,t.length-1)),"true"===t||"false"!==t&&t)}(i,s);"string"==typeof u&&(xU.test(u)||EU.test(u))&&(e[l]=a.cloneElement(o(u.trim()),{key:r}))}else"style"!==t&&(e[tU[t]||t]=!0);return e}),{}):null}const s=[],l={},u={blockQuote:{t:PW(sU),i:BW.HIGH,l:(e,t,r)=>({$:t(e[0].replace(lU,""),r)}),h:(e,t,r)=>n("blockquote",{key:r.k},t(e.$,r))},breakLine:{t:jW(uU),i:BW.HIGH,l:FW,h:(e,t,r)=>n("br",{key:r.k})},breakThematic:{t:PW(cU),i:BW.HIGH,l:FW,h:(e,t,r)=>n("hr",{key:r.k})},codeBlock:{t:PW(fU),i:BW.MAX,l:e=>({$:e[0].replace(/^ {4}/gm,"").replace(/\n+$/,""),M:void 0}),h:(e,t,r)=>n("pre",{key:r.k},n("code",ZV({},e.I,{className:e.M?`lang-${e.M}`:""}),e.$))},codeFenced:{t:PW(dU),i:BW.MAX,l:e=>({I:i(e[3]||""),$:e[4],M:e[2]||void 0,type:"codeBlock"})},codeInline:{t:CW(pU),i:BW.LOW,l:e=>({$:e[2]}),h:(e,t,r)=>n("code",{key:r.k},e.$)},footnote:{t:PW(vU),i:BW.MAX,l:e=>(s.push({O:e[2],B:e[1]}),{}),h:DW},footnoteReference:{t:EW(yU),i:BW.HIGH,l:e=>({$:e[1],R:`#${t.slugify(e[1])}`}),h:(e,t,r)=>n("a",{key:r.k,href:NW(e.R)},n("sup",{key:r.k},e.$))},gfmTask:{t:EW(bU),i:BW.HIGH,l:e=>({T:"x"===e[1].toLowerCase()}),h:(e,t,r)=>n("input",{checked:e.T,key:r.k,readOnly:!0,type:"checkbox"})},heading:{t:PW(wU),i:BW.HIGH,l:(e,r,n)=>({$:TW(r,e[2],n),j:t.slugify(e[2]),C:e[1].length}),h:(e,t,r)=>n(`h${e.C}`,{id:e.j,key:r.k},t(e.$,r))},headingSetext:{t:PW(SU),i:BW.MAX,l:(e,t,r)=>({$:TW(t,e[1],r),C:"="===e[2]?1:2,type:"heading"})},htmlComment:{t:jW(kU),i:BW.HIGH,l:()=>({}),h:DW},image:{t:CW(gW),i:BW.HIGH,l:e=>({D:e[1],R:RW(e[2]),N:e[3]}),h:(e,t,r)=>n("img",{key:r.k,alt:e.D||void 0,title:e.N||void 0,src:NW(e.R)})},link:{t:EW(yW),i:BW.LOW,l:(e,t,r)=>({$:AW(t,e[1],r),R:RW(e[2]),N:e[3]}),h:(e,t,r)=>n("a",{key:r.k,href:NW(e.R),title:e.N},t(e.$,r))},linkAngleBraceStyleDetector:{t:EW(OU),i:BW.MAX,l:e=>({$:[{$:e[1],type:"text"}],R:e[1],type:"link"})},linkBareUrlDetector:{t:(e,t)=>t.Z?null:EW(PU)(e,t),i:BW.MAX,l:e=>({$:[{$:e[1],type:"text"}],R:e[1],N:void 0,type:"link"})},linkMailtoDetector:{t:EW(jU),i:BW.MAX,l(e){let t=e[1],r=e[1];return aU.test(r)||(r="mailto:"+r),{$:[{$:t.replace("mailto:",""),type:"text"}],R:r,type:"link"}}},orderedList:vW(n,1),unorderedList:vW(n,2),newlineCoalescer:{t:PW(mU),i:BW.LOW,l:FW,h:()=>"\n"},paragraph:{t:OW,i:BW.LOW,l:MW,h:(e,t,r)=>n("p",{key:r.k},t(e.$,r))},ref:{t:EW(TU),i:BW.MAX,l:e=>(l[e[1]]={R:e[2],N:e[4]},{}),h:DW},refImage:{t:CW(AU),i:BW.MAX,l:e=>({D:e[1]||void 0,F:e[2]}),h:(e,t,r)=>n("img",{key:r.k,alt:e.D,src:NW(l[e.F].R),title:l[e.F].N})},refLink:{t:EW(IU),i:BW.MAX,l:(e,t,r)=>({$:t(e[1],r),P:t(e[0].replace(MU,"\\$1"),r),F:e[2]}),h:(e,t,r)=>l[e.F]?n("a",{key:r.k,href:NW(l[e.F].R),title:l[e.F].N},t(e.$,r)):n("span",{key:r.k},t(e.P,r))},table:{t:PW(RU),i:BW.HIGH,l:kW,h:(e,t,r)=>n("table",{key:r.k},n("thead",null,n("tr",null,e.L.map((function(o,a){return n("th",{key:a,style:_W(e,a)},t(o,r))})))),n("tbody",null,e.A.map((function(o,a){return n("tr",{key:a},o.map((function(o,a){return n("td",{key:a,style:_W(e,a)},t(o,r))})))}))))},tableSeparator:{t:function(e,t){return t.v?zU.exec(e):null},i:BW.HIGH,l:function(){return{type:"tableSeparator"}},h:()=>" | "},text:{t:jW(XU),i:BW.MIN,l:e=>({$:e[0].replace($U,((e,r)=>t.namedCodesToUnicode[r]?t.namedCodesToUnicode[r]:e))}),h:e=>e.$},textBolded:{t:CW(qU),i:BW.MED,l:(e,t,r)=>({$:t(e[2],r)}),h:(e,t,r)=>n("strong",{key:r.k},t(e.$,r))},textEmphasized:{t:CW(KU),i:BW.LOW,l:(e,t,r)=>({$:t(e[2],r)}),h:(e,t,r)=>n("em",{key:r.k},t(e.$,r))},textEscaped:{t:CW(QU),i:BW.HIGH,l:e=>({$:e[1],type:"text"})},textMarked:{t:CW(HU),i:BW.LOW,l:MW,h:(e,t,r)=>n("mark",{key:r.k},t(e.$,r))},textStrikethroughed:{t:CW(GU),i:BW.LOW,l:MW,h:(e,t,r)=>n("del",{key:r.k},t(e.$,r))}};!0!==t.disableParsingRawHTML&&(u.htmlBlock={t:jW(xU),i:BW.HIGH,l(e,t,r){const[,n]=e[3].match(JU),o=new RegExp(`^${n}`,"gm"),a=e[3].replace(o,""),s=(l=a,wW.some((e=>e.test(l)))?IW:TW);var l;const u=e[1].toLowerCase(),c=-1!==nU.indexOf(u);r.Z=r.Z||"a"===u;const d=c?e[3]:s(t,a,r);return r.Z=!1,{I:i(e[2]),$:d,G:c,H:c?u:e[1]}},h:(e,t,r)=>n(e.H,ZV({key:r.k},e.I),e.G?e.$:t(e.$,r))},u.htmlSelfClosing={t:jW(EU),i:BW.HIGH,l:e=>({I:i(e[2]||""),H:e[1]}),h:(e,t,r)=>n(e.H,ZV({},e.I,{key:r.k}))});const c=function(e){let t=Object.keys(e);function r(n,o){let a=[],i="";for(;n;){let s=0;for(;s<t.length;){const l=t[s],u=e[l],c=u.t(n,o,i);if(c){const e=c[0];n=n.substring(e.length);const t=u.l(c,r,o);null==t.type&&(t.type=l),a.push(t),i=e;break}s++}}return a}return t.sort((function(t,r){let n=e[t].i,o=e[r].i;return n!==o?n-o:t<r?-1:1})),function(e,t){return r(function(e){return e.replace(hU,"\n").replace(gU,"").replace(DU," ")}(e),t)}}(u),d=(f=function(e){return function(t,r,n){return e[t.type].h(t,r,n)}}(u),function e(t,r={}){if(Array.isArray(t)){const n=r.k,o=[];let a=!1;for(let n=0;n<t.length;n++){r.k=n;const i=e(t[n],r),s="string"==typeof i;s&&a?o[o.length-1]+=i:null!==i&&o.push(i),a=s}return r.k=n,o}return f(t,e,r)});var f;const p=o(e);return s.length?n("div",null,p,n("footer",{key:"footer"},s.map((function(e){return n("div",{id:t.slugify(e.B),key:e.B},e.B,d(c(e.O,{_:!0})))})))):p}!function(e){e[e.MAX=0]="MAX",e[e.HIGH=1]="HIGH",e[e.MED=2]="MED",e[e.LOW=3]="LOW",e[e.MIN=4]="MIN"}(BW||(BW={}));var UW=e=>{let{children:t,options:r}=e,n=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)t.indexOf(r=a[n])>=0||(o[r]=e[r]);return o}(e,eU);return a.cloneElement(VW(t,r),n)};function WW(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,(o=n.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),n)}var o,a}function qW(){return qW=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},qW.apply(this,arguments)}function KW(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,HW(e,t)}function HW(e,t){return HW=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},HW(e,t)}function GW(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}var QW=["widget","title"],XW=["widget","title"],YW=["widget","title"];function JW(){return JV()}function ZW(e){return Array.isArray(e)?e.map((function(e){return{key:JW(),item:e}})):[]}function eq(e){return Array.isArray(e)?e.map((function(e){return e.item})):[]}var tq=function(e){function t(t){var r;(r=e.call(this,t)||this)._getNewFormDataRow=function(){var e=r.props,t=e.schema,n=e.registry.schemaUtils,o=t.items;return ZN(t)&&function(e){return!0===e.additionalItems&&console.warn("additionalItems=true is currently not supported"),JO(e.additionalItems)}(t)&&(o=t.additionalItems),n.getDefaultFormState(o)},r.onAddClick=function(e){r._handleAddClick(e)},r.onAddIndexClick=function(e){return function(t){r._handleAddClick(t,e)}},r.onCopyIndexClick=function(e){return function(t){t&&t.preventDefault();var n=r.props.onChange,o=r.state.keyedFormData,a={key:JW(),item:wO(o[e].item)},i=[].concat(o);void 0!==e?i.splice(e+1,0,a):i.push(a),r.setState({keyedFormData:i,updatedKeyedFormData:!0},(function(){return n(eq(i))}))}},r.onDropIndexClick=function(e){return function(t){t&&t.preventDefault();var n,o=r.props,a=o.onChange,i=o.errorSchema,s=r.state.keyedFormData;if(i)for(var l in n={},i){var u=parseInt(l);u<e?jv(n,[u],i[l]):u>e&&jv(n,[u-1],i[l])}var c=s.filter((function(t,r){return r!==e}));r.setState({keyedFormData:c,updatedKeyedFormData:!0},(function(){return a(eq(c),n)}))}},r.onReorderClick=function(e,t){return function(n){n&&(n.preventDefault(),n.currentTarget.blur());var o,a=r.props,i=a.onChange,s=a.errorSchema;if(s)for(var l in o={},s){var u=parseInt(l);u==e?jv(o,[t],s[e]):u==t?jv(o,[e],s[t]):jv(o,[l],s[u])}var c=r.state.keyedFormData;var d,f=((d=c.slice()).splice(e,1),d.splice(t,0,c[e]),d);r.setState({keyedFormData:f},(function(){return i(eq(f),o)}))}},r.onChangeForIndex=function(e){return function(t,n,o){var a,i=r.props,s=i.formData,l=i.onChange,u=i.errorSchema,c=(Array.isArray(s)?s:[]).map((function(r,n){return e===n?void 0===t?null:t:r}));l(c,u&&u&&qW({},u,((a={})[e]=n,a)),o)}},r.onSelectChange=function(e){var t=r.props,n=t.onChange,o=t.idSchema;n(e,void 0,o&&o.$id)};var n=t.formData,o=ZW(void 0===n?[]:n);return r.state={keyedFormData:o,updatedKeyedFormData:!1},r}KW(t,e),t.getDerivedStateFromProps=function(e,t){if(t.updatedKeyedFormData)return{updatedKeyedFormData:!1};var r=Array.isArray(e.formData)?e.formData:[],n=t.keyedFormData||[],o=r.length===n.length?n.map((function(e,t){return{key:e.key,item:r[t]}})):ZW(r);return{keyedFormData:o}};var r,n,o,a=t.prototype;return a.isItemRequired=function(e){return Array.isArray(e.type)?!e.type.includes("null"):"null"!==e.type},a.canAddItem=function(e){var t=this.props,r=t.schema,n=EN(t.uiSchema,t.registry.globalUiOptions).addable;return!1!==n&&(n=void 0===r.maxItems||e.length<r.maxItems),n},a._handleAddClick=function(e,t){e&&e.preventDefault();var r=this.props.onChange,n=this.state.keyedFormData,o={key:JW(),item:this._getNewFormDataRow()},a=[].concat(n);void 0!==t?a.splice(t,0,o):a.push(o),this.setState({keyedFormData:a,updatedKeyedFormData:!0},(function(){return r(eq(a))}))},a.render=function(){var e=this.props,t=e.schema,r=e.uiSchema,n=e.idSchema,o=e.registry,a=o.schemaUtils,i=o.translateString;if(!(hN in t)){var s=PR("UnsupportedFieldTemplate",o,EN(r));return SO.jsx(s,{schema:t,idSchema:n,reason:i(jR.MissingItems),registry:o})}return a.isMultiSelect(t)?this.renderMultiSelect():lR(r)?this.renderCustomWidget():ZN(t)?this.renderFixedArray():a.isFilesArray(t,r)?this.renderFiles():this.renderNormalArray()},a.renderNormalArray=function(){var e=this,t=this.props,r=t.schema,n=t.uiSchema,o=void 0===n?{}:n,a=t.errorSchema,i=t.idSchema,s=t.name,l=t.disabled,u=void 0!==l&&l,c=t.readonly,d=void 0!==c&&c,f=t.autofocus,p=void 0!==f&&f,m=t.required,h=void 0!==m&&m,v=t.registry,y=t.onBlur,g=t.onFocus,b=t.idPrefix,w=t.idSeparator,S=void 0===w?"_":w,x=t.rawErrors,$=this.state.keyedFormData,k=void 0===r.title?s:r.title,_=v.schemaUtils,E=v.formContext,C=EN(o),P=Ed(r.items)?r.items:{},j=_.retrieveSchema(P),O=eq(this.state.keyedFormData),N=this.canAddItem(O),R={canAdd:N,items:$.map((function(t,r){var n=t.key,l=t.item,u=_.retrieveSchema(P,l),c=a?a[r]:void 0,d=i.$id+S+r,f=_.toIdSchema(u,d,l,b,S);return e.renderArrayFieldItem({key:n,index:r,name:s&&s+"-"+r,canAdd:N,canMoveUp:r>0,canMoveDown:r<O.length-1,itemSchema:u,itemIdSchema:f,itemErrorSchema:c,itemData:l,itemUiSchema:o.items,autofocus:p&&0===r,onBlur:y,onFocus:g,rawErrors:x,totalItems:$.length})})),className:"field field-array field-array-of-"+j.type,disabled:u,idSchema:i,uiSchema:o,onAddClick:this.onAddClick,readonly:d,required:h,schema:r,title:k,formContext:E,formData:O,rawErrors:x,registry:v},T=PR("ArrayFieldTemplate",v,C);return SO.jsx(T,qW({},R))},a.renderCustomWidget=function(){var e,t=this.props,r=t.schema,n=t.idSchema,o=t.uiSchema,a=t.disabled,i=void 0!==a&&a,s=t.readonly,l=void 0!==s&&s,u=t.autofocus,c=void 0!==u&&u,d=t.required,f=void 0!==d&&d,p=t.hideError,m=t.placeholder,h=t.onBlur,v=t.onFocus,y=t.formData,g=void 0===y?[]:y,b=t.registry,w=t.rawErrors,S=t.name,x=b.widgets,$=b.formContext,k=b.globalUiOptions,_=b.schemaUtils,E=EN(o,k),C=E.widget,P=E.title,j=GW(E,QW),O=RR(r,C,x),N=null!=(e=null!=P?P:r.title)?e:S,R=_.getDisplayLabel(r,o,k);return SO.jsx(O,{id:n.$id,name:S,multiple:!0,onChange:this.onSelectChange,onBlur:h,onFocus:v,options:j,schema:r,uiSchema:o,registry:b,value:g,disabled:i,readonly:l,hideError:p,required:f,label:N,hideLabel:!R,placeholder:m,formContext:$,autofocus:c,rawErrors:w})},a.renderMultiSelect=function(){var e,t=this.props,r=t.schema,n=t.idSchema,o=t.uiSchema,a=t.formData,i=void 0===a?[]:a,s=t.disabled,l=void 0!==s&&s,u=t.readonly,c=void 0!==u&&u,d=t.autofocus,f=void 0!==d&&d,p=t.required,m=void 0!==p&&p,h=t.placeholder,v=t.onBlur,y=t.onFocus,g=t.registry,b=t.rawErrors,w=t.name,S=g.widgets,x=g.schemaUtils,$=g.formContext,k=g.globalUiOptions,_=VR(x.retrieveSchema(r.items,i)),E=EN(o,k),C=E.widget,P=void 0===C?"select":C,j=E.title,O=GW(E,XW),N=RR(r,P,S),R=null!=(e=null!=j?j:r.title)?e:w,T=x.getDisplayLabel(r,o,k);return SO.jsx(N,{id:n.$id,name:w,multiple:!0,onChange:this.onSelectChange,onBlur:v,onFocus:y,options:qW({},O,{enumOptions:_}),schema:r,uiSchema:o,registry:g,value:i,disabled:l,readonly:c,required:m,label:R,hideLabel:!T,placeholder:h,formContext:$,autofocus:f,rawErrors:b})},a.renderFiles=function(){var e,t=this.props,r=t.schema,n=t.uiSchema,o=t.idSchema,a=t.name,i=t.disabled,s=void 0!==i&&i,l=t.readonly,u=void 0!==l&&l,c=t.autofocus,d=void 0!==c&&c,f=t.required,p=void 0!==f&&f,m=t.onBlur,h=t.onFocus,v=t.registry,y=t.formData,g=void 0===y?[]:y,b=t.rawErrors,w=v.widgets,S=v.formContext,x=v.globalUiOptions,$=v.schemaUtils,k=EN(n,x),_=k.widget,E=void 0===_?"files":_,C=k.title,P=GW(k,YW),j=RR(r,E,w),O=null!=(e=null!=C?C:r.title)?e:a,N=$.getDisplayLabel(r,n,x);return SO.jsx(j,{options:P,id:o.$id,name:a,multiple:!0,onChange:this.onSelectChange,onBlur:m,onFocus:h,schema:r,uiSchema:n,value:g,disabled:s,readonly:u,required:p,registry:v,formContext:S,autofocus:d,rawErrors:b,label:O,hideLabel:!N})},a.renderFixedArray=function(){var e=this,t=this.props,r=t.schema,n=t.uiSchema,o=void 0===n?{}:n,a=t.formData,i=void 0===a?[]:a,s=t.errorSchema,l=t.idPrefix,u=t.idSeparator,c=void 0===u?"_":u,d=t.idSchema,f=t.name,p=t.disabled,m=void 0!==p&&p,h=t.readonly,v=void 0!==h&&h,y=t.autofocus,g=void 0!==y&&y,b=t.required,w=void 0!==b&&b,S=t.registry,x=t.onBlur,$=t.onFocus,k=t.rawErrors,_=this.state.keyedFormData,E=this.props.formData,C=void 0===E?[]:E,P=r.title||f,j=EN(o),O=S.schemaUtils,N=S.formContext,R=(Ed(r.items)?r.items:[]).map((function(e,t){return O.retrieveSchema(e,i[t])})),T=Ed(r.additionalItems)?O.retrieveSchema(r.additionalItems,i):null;(!C||C.length<R.length)&&(C=(C=C||[]).concat(new Array(R.length-C.length)));var A=this.canAddItem(C)&&!!T,I={canAdd:A,className:"field field-array field-array-fixed-items",disabled:m,idSchema:d,formData:i,items:_.map((function(t,n){var a=t.key,i=t.item,u=n>=R.length,p=u&&Ed(r.additionalItems)?O.retrieveSchema(r.additionalItems,i):R[n],m=d.$id+c+n,h=O.toIdSchema(p,m,i,l,c),v=u?o.additionalItems||{}:Array.isArray(o.items)?o.items[n]:o.items||{},y=s?s[n]:void 0;return e.renderArrayFieldItem({key:a,index:n,name:f&&f+"-"+n,canAdd:A,canRemove:u,canMoveUp:n>=R.length+1,canMoveDown:u&&n<C.length-1,itemSchema:p,itemData:i,itemUiSchema:v,itemIdSchema:h,itemErrorSchema:y,autofocus:g&&0===n,onBlur:x,onFocus:$,rawErrors:k,totalItems:_.length})})),onAddClick:this.onAddClick,readonly:v,required:w,registry:S,schema:r,uiSchema:o,title:P,formContext:N,rawErrors:k},M=PR("ArrayFieldTemplate",S,j);return SO.jsx(M,qW({},I))},a.renderArrayFieldItem=function(e){var t=e.key,r=e.index,n=e.name,o=e.canAdd,a=e.canRemove,i=void 0===a||a,s=e.canMoveUp,l=e.canMoveDown,u=e.itemSchema,c=e.itemData,d=e.itemUiSchema,f=e.itemIdSchema,p=e.itemErrorSchema,m=e.autofocus,h=e.onBlur,v=e.onFocus,y=e.rawErrors,g=e.totalItems,b=this.props,w=b.disabled,S=b.hideError,x=b.idPrefix,$=b.idSeparator,k=b.readonly,_=b.uiSchema,E=b.registry,C=b.formContext,P=E.fields,j=P.ArraySchemaField,O=P.SchemaField,N=j||O,R=EN(_,E.globalUiOptions),T=R.orderable,A=void 0===T||T,I=R.removable,M=void 0===I||I,F=R.copyable,D={moveUp:A&&s,moveDown:A&&l,copy:void 0!==F&&F&&o,remove:M&&i,toolbar:!1};return D.toolbar=Object.keys(D).some((function(e){return D[e]})),{children:SO.jsx(N,{name:n,index:r,schema:u,uiSchema:d,formData:c,formContext:C,errorSchema:p,idPrefix:x,idSeparator:$,idSchema:f,required:this.isItemRequired(u),onChange:this.onChangeForIndex(r),onBlur:h,onFocus:v,registry:E,disabled:w,readonly:k,hideError:S,autofocus:m,rawErrors:y}),className:"array-item",disabled:w,canAdd:o,hasCopy:D.copy,hasToolbar:D.toolbar,hasMoveUp:D.moveUp,hasMoveDown:D.moveDown,hasRemove:D.remove,index:r,totalItems:g,key:t,onAddIndexClick:this.onAddIndexClick,onCopyIndexClick:this.onCopyIndexClick,onDropIndexClick:this.onDropIndexClick,onReorderClick:this.onReorderClick,readonly:k,registry:E,schema:u,uiSchema:d}},r=t,(n=[{key:"itemTitle",get:function(){var e=this.props,t=e.schema,r=e.registry.translateString;return lm(t,[hN,"title"],lm(t,[hN,"description"],r(jR.ArrayItemTitle)))}}])&&WW(r.prototype,n),o&&WW(r,o),Object.defineProperty(r,"prototype",{writable:!1}),t}(a.Component),rq=["widget","title","label"];function nq(e){var t,r,n=e.schema,o=e.name,a=e.uiSchema,i=e.idSchema,s=e.formData,l=e.registry,u=e.required,c=e.disabled,d=e.readonly,f=e.autofocus,p=e.onChange,m=e.onFocus,h=e.onBlur,v=e.rawErrors,y=n.title,g=l.widgets,b=l.formContext,w=l.translateString,S=EN(a,l.globalUiOptions),x=S.widget,$=void 0===x?"checkbox":x,k=S.title,_=S.label,E=void 0===_||_,C=GW(S,rq),P=RR(n,$,g),j=w(jR.YesLabel),O=w(jR.NoLabel),N=null!=(t=null!=k?k:y)?t:o;if(Array.isArray(n.oneOf))r=VR({oneOf:n.oneOf.map((function(e){if(Ed(e))return qW({},e,{title:e.title||(!0===e.const?j:O)})})).filter((function(e){return e}))});else{var R,T=n,A=null!=(R=n.enum)?R:[!0,!1];r=!T.enumNames&&2===A.length&&A.every((function(e){return"boolean"==typeof e}))?[{value:A[0],label:A[0]?j:O},{value:A[1],label:A[1]?j:O}]:VR({enum:A,enumNames:T.enumNames})}return SO.jsx(P,{options:qW({},C,{enumOptions:r}),schema:n,uiSchema:a,id:i.$id,name:o,onChange:p,onFocus:m,onBlur:h,label:N,hideLabel:!E,value:s,required:u,disabled:c,readonly:d,registry:l,formContext:b,autofocus:f,rawErrors:v})}var oq=["widget","placeholder","autofocus","autocomplete","title"],aq=function(e){function t(t){var r;(r=e.call(this,t)||this).onOptionChange=function(e){var t=r.state,n=t.selectedOption,o=t.retrievedOptions,a=r.props,i=a.formData,s=a.onChange,l=a.registry.schemaUtils,u=void 0!==e?parseInt(e,10):-1;if(u!==n){var c=u>=0?o[u]:void 0,d=n>=0?o[n]:void 0,f=l.sanitizeDataForNewSchema(c,d,i);f&&c&&(f=l.getDefaultFormState(c,f,"excludeObjectChildren")),s(f,void 0,r.getFieldId()),r.setState({selectedOption:u})}};var n=r.props,o=n.formData,a=n.options,i=n.registry.schemaUtils,s=a.map((function(e){return i.retrieveSchema(e,o)}));return r.state={retrievedOptions:s,selectedOption:r.getMatchingOption(0,o,s)},r}KW(t,e);var r=t.prototype;return r.componentDidUpdate=function(e,t){var r=this.props,n=r.formData,o=r.options,a=r.idSchema,i=this.state.selectedOption,s=this.state;if(!jN(e.options,o)){var l=this.props.registry.schemaUtils;s={selectedOption:i,retrievedOptions:o.map((function(e){return l.retrieveSchema(e,n)}))}}if(!jN(n,e.formData)&&a.$id===e.idSchema.$id){var u=s.retrievedOptions,c=this.getMatchingOption(i,n,u);t&&c!==i&&(s={selectedOption:c,retrievedOptions:u})}s!==this.state&&this.setState(s)},r.getMatchingOption=function(e,t,r){var n=this.props,o=n.schema,a=n.registry.schemaUtils,i=AN(o),s=a.getClosestMatchingOption(t,r,e,i);return s>0?s:e||0},r.getFieldId=function(){var e=this.props,t=e.idSchema,r=e.schema;return t.$id+(r.oneOf?"__oneof_select":"__anyof_select")},r.render=function(){var e,t=this.props,r=t.name,n=t.baseType,o=t.disabled,a=void 0!==o&&o,i=t.errorSchema,s=void 0===i?{}:i,l=t.formContext,u=t.onBlur,c=t.onFocus,d=t.registry,f=t.schema,p=t.uiSchema,m=d.widgets,h=d.fields,v=d.translateString,y=d.globalUiOptions,g=d.schemaUtils,b=h.SchemaField,w=this.state,S=w.selectedOption,x=w.retrievedOptions,$=EN(p,y),k=$.widget,_=void 0===k?"select":k,E=$.placeholder,C=$.autofocus,P=$.autocomplete,j=$.title,O=void 0===j?f.title:j,N=GW($,oq),R=RR({type:"number"},_,m),T=lm(s,fN,[]),A=Vh(s,[fN]),I=g.getDisplayLabel(f,p,y),M=S>=0&&x[S]||null;M&&(e=M.type?M:Object.assign({},M,{type:n}));var F=O?jR.TitleOptionPrefix:jR.OptionPrefix,D=O?[O]:[],z=x.map((function(e,t){return{label:e.title||v(F,D.concat(String(t+1))),value:t}}));return SO.jsxs("div",{className:"panel panel-default panel-body",children:[SO.jsx("div",{className:"form-group",children:SO.jsx(R,{id:this.getFieldId(),name:r+(f.oneOf?"__oneof_select":"__anyof_select"),schema:{type:"number",default:0},onChange:this.onOptionChange,onBlur:u,onFocus:c,disabled:a||fm(z),multiple:!1,rawErrors:T,errorSchema:A,value:S>=0?S:void 0,options:qW({enumOptions:z},N),registry:d,formContext:l,placeholder:E,autocomplete:P,autofocus:C,label:null!=O?O:r,hideLabel:!I})}),null!==M&&SO.jsx(b,qW({},this.props,{schema:e}))]})},t}(a.Component),iq=/\.([0-9]*0)*$/,sq=/[0.]0*$/;function lq(e){var t=e.registry,r=e.onChange,n=e.formData,o=e.value,i=a.useState(o),s=i[0],l=i[1],u=t.fields.StringField,c=n,d=a.useCallback((function(e){l(e),"."===(""+e).charAt(0)&&(e="0"+e);var t="string"==typeof e&&e.match(iq)?ZO(e.replace(sq,"")):ZO(e);r(t)}),[r]);if("string"==typeof s&&"number"==typeof c){var f=new RegExp((""+c).replace(".","\\.")+"\\.?0*$");s.match(f)&&(c=s)}return SO.jsx(u,qW({},e,{formData:c,onChange:d}))}var uq=function(e){function t(){for(var t,r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return(t=e.call.apply(e,[this].concat(n))||this).state={wasPropertyKeyModified:!1,additionalProperties:{}},t.onPropertyChange=function(e,r){return void 0===r&&(r=!1),function(n,o,a){var i,s,l=t.props,u=l.formData,c=l.onChange,d=l.errorSchema;void 0===n&&r&&(n=""),c(qW({},u,((i={})[e]=n,i)),d&&d&&qW({},d,((s={})[e]=o,s)),a)}},t.onDropPropertyClick=function(e){return function(r){r.preventDefault();var n,o,a=t.props,i=a.onChange,s=qW({},a.formData);o=e,null==(n=s)||Eh(n,o),i(s)}},t.getAvailableKey=function(e,r){for(var n=t.props,o=EN(n.uiSchema,n.registry.globalUiOptions).duplicateKeySuffixSeparator,a=void 0===o?"-":o,i=0,s=e;Kh(r,s);)s=""+e+a+ ++i;return s},t.onKeyChange=function(e){return function(r,n){var o,a;if(e!==r){var i=t.props,s=i.formData,l=i.onChange,u=i.errorSchema;r=t.getAvailableKey(r,s);var c=qW({},s),d=((o={})[e]=r,o),f=Object.keys(c).map((function(e){var t;return(t={})[d[e]||e]=c[e],t})),p=Object.assign.apply(Object,[{}].concat(f));t.setState({wasPropertyKeyModified:!0}),l(p,u&&u&&qW({},u,((a={})[r]=n,a)))}}},t.handleAddClick=function(e){return function(){if(e.additionalProperties){var r=t.props,n=r.formData,o=r.onChange,a=r.registry,i=qW({},n),s=void 0;if(Ed(e.additionalProperties)){s=e.additionalProperties.type;var l=e.additionalProperties;if(SN in l)s=(l=a.schemaUtils.retrieveSchema({$ref:l[SN]},n)).type;s||!(sN in l)&&!(yN in l)||(s="object")}jv(i,t.getAvailableKey("newKey",i),t.getDefaultValue(s)),o(i)}}},t}KW(t,e);var r=t.prototype;return r.isRequired=function(e){var t=this.props.schema;return Array.isArray(t.required)&&-1!==t.required.indexOf(e)},r.getDefaultValue=function(e){var t=this.props.registry.translateString;switch(e){case"array":return[];case"boolean":return!1;case"null":return null;case"number":return 0;case"object":return{};default:return t(jR.NewStringDefault)}},r.render=function(){var e,t,r,n,o=this,a=this.props,i=a.schema,s=a.uiSchema,l=void 0===s?{}:s,u=a.formData,c=a.errorSchema,d=a.idSchema,f=a.name,p=a.required,m=void 0!==p&&p,h=a.disabled,v=void 0!==h&&h,y=a.readonly,g=void 0!==y&&y,b=a.hideError,w=a.idPrefix,S=a.idSeparator,x=a.onBlur,$=a.onFocus,k=a.registry,_=k.fields,E=k.formContext,C=k.schemaUtils,P=k.translateString,j=k.globalUiOptions,O=_.SchemaField,N=C.retrieveSchema(i,u),R=EN(l,j),T=N.properties,A=void 0===T?{}:T,I=null!=(e=null!=(t=R.title)?t:N.title)?e:f,M=null!=(r=R.description)?r:N.description;try{n=function(e,t){if(!Array.isArray(t))return e;var r,n=function(e){return e.reduce((function(e,t){return e[t]=!0,e}),{})},o=n(e),a=t.filter((function(e){return"*"===e||o[e]})),i=n(a),s=e.filter((function(e){return!i[e]})),l=a.indexOf("*");if(-1===l){if(s.length)throw new Error("uiSchema order list does not contain "+((r=s).length>1?"properties '"+r.join("', '")+"'":"property '"+r[0]+"'"));return a}if(l!==a.lastIndexOf("*"))throw new Error("uiSchema order list contains more than one wildcard item");var u=[].concat(a);return u.splice.apply(u,[l,1].concat(s)),u}(Object.keys(A),R.order)}catch(e){return SO.jsxs("div",{children:[SO.jsx("p",{className:"config-error",style:{color:"red"},children:SO.jsx(UW,{children:P(jR.InvalidObjectField,[f||"root",e.message])})}),SO.jsx("pre",{children:JSON.stringify(N)})]})}var F=PR("ObjectFieldTemplate",k,R),D={title:!1===R.label?"":I,description:!1===R.label?void 0:M,properties:n.map((function(e){var t=Kh(N,[gN,e,oN]),r=t?l.additionalProperties:l[e],n="hidden"===EN(r).widget,a=lm(d,[e],{});return{content:SO.jsx(O,{name:e,required:o.isRequired(e),schema:lm(N,[gN,e],{}),uiSchema:r,errorSchema:lm(c,e),idSchema:a,idPrefix:w,idSeparator:S,formData:lm(u,e),formContext:E,wasPropertyKeyModified:o.state.wasPropertyKeyModified,onKeyChange:o.onKeyChange(e),onChange:o.onPropertyChange(e,t),onBlur:x,onFocus:$,registry:k,disabled:v,readonly:g,hideError:b,onDropPropertyClick:o.onDropPropertyClick},e),name:e,readonly:g,disabled:v,required:m,hidden:n}})),readonly:g,disabled:v,required:m,idSchema:d,uiSchema:l,errorSchema:c,schema:N,formData:u,formContext:E,registry:k};return SO.jsx(F,qW({},D,{onAddClick:this.handleAddClick}))},t}(a.Component),cq=["__errors"],dq={array:"ArrayField",boolean:"BooleanField",integer:"NumberField",number:"NumberField",object:"ObjectField",string:"StringField",null:"NullField"};function fq(e){var t=e.schema,r=e.idSchema,n=e.uiSchema,o=e.formData,i=e.errorSchema,s=e.idPrefix,l=e.idSeparator,u=e.name,c=e.onChange,d=e.onKeyChange,f=e.onDropPropertyClick,p=e.required,m=e.registry,h=e.wasPropertyKeyModified,v=void 0!==h&&h,y=m.formContext,g=m.schemaUtils,b=m.globalUiOptions,w=EN(n,b),S=PR("FieldTemplate",m,w),x=PR("DescriptionFieldTemplate",m,w),$=PR("FieldHelpTemplate",m,w),k=PR("FieldErrorTemplate",m,w),_=g.retrieveSchema(t,o),E=r[pN],C=tR(g.toIdSchema(_,E,o,s,l),r),P=a.useCallback((function(e,t,r){return c(e,t,r||E)}),[E,c]),j=function(e,t,r,n){var o=t.field,a=n.fields,i=n.translateString;if("function"==typeof o)return o;if("string"==typeof o&&o in a)return a[o];var s=MN(e),l=Array.isArray(s)?s[0]:s||"",u=dq[l];return u||!e.anyOf&&!e.oneOf?u in a?a[u]:function(){var o=PR("UnsupportedFieldTemplate",n,t);return SO.jsx(o,{schema:e,idSchema:r,reason:i(jR.UnknownFieldType,[String(e.type)]),registry:n})}:function(){return null}}(_,w,C,m),O=Boolean(e.disabled||w.disabled),N=Boolean(e.readonly||w.readonly||e.schema.readOnly||_.readOnly),R=w.hideError,T=void 0===R?e.hideError:Boolean(R),A=Boolean(e.autofocus||w.autofocus);if(0===Object.keys(_).length)return null;var I=g.getDisplayLabel(_,n,b),M=i||{},F=M.__errors,D=GW(M,cq),z=Vh(n,["ui:classNames","classNames","ui:style"]);_N in z&&(z[_N]=Vh(z[_N],["classNames","style"]));var L,B=SO.jsx(j,qW({},e,{onChange:P,idSchema:C,schema:_,uiSchema:z,disabled:O,readonly:N,hideError:T,autofocus:A,errorSchema:D,formContext:y,rawErrors:F})),V=C[pN];L=v||oN in _?u:w.title||e.schema.title||_.title||u;var U=w.description||e.schema.description||_.description||"",W=w.help,q="hidden"===w.widget,K=["form-group","field","field-"+MN(_)];!T&&F&&F.length>0&&K.push("field-error has-error has-danger"),null!=n&&n.classNames&&K.push(n.classNames),w.classNames&&K.push(w.classNames);var H=SO.jsx($,{help:W,idSchema:C,schema:_,uiSchema:n,hasErrors:!T&&F&&F.length>0,registry:m}),G=T?void 0:SO.jsx(k,{errors:F,errorSchema:i,idSchema:C,schema:_,uiSchema:n,registry:m}),Q={description:SO.jsx(x,{id:AR(V),description:U,schema:_,uiSchema:n,registry:m}),rawDescription:U,help:H,rawHelp:"string"==typeof W?W:void 0,errors:G,rawErrors:T?void 0:F,id:V,label:L,hidden:q,onChange:c,onKeyChange:d,onDropPropertyClick:f,required:p,disabled:O,readonly:N,hideError:T,displayLabel:I,classNames:K.join(" ").trim(),style:w.style,formContext:y,formData:o,schema:_,uiSchema:n,registry:m},X=m.fields.AnyOfField,Y=m.fields.OneOfField,J=(null==n?void 0:n["ui:field"])&&!0===(null==n?void 0:n["ui:fieldReplacesAnyOrOneOf"]);return SO.jsx(S,qW({},Q,{children:SO.jsxs(SO.Fragment,{children:[B,_.anyOf&&!J&&!g.isSelect(_)&&SO.jsx(X,{name:u,disabled:O,readonly:N,hideError:T,errorSchema:i,formData:o,formContext:y,idPrefix:s,idSchema:C,idSeparator:l,onBlur:e.onBlur,onChange:e.onChange,onFocus:e.onFocus,options:_.anyOf.map((function(e){return g.retrieveSchema(Ed(e)?e:{},o)})),baseType:_.type,registry:m,schema:_,uiSchema:n}),_.oneOf&&!J&&!g.isSelect(_)&&SO.jsx(Y,{name:u,disabled:O,readonly:N,hideError:T,errorSchema:i,formData:o,formContext:y,idPrefix:s,idSchema:C,idSeparator:l,onBlur:e.onBlur,onChange:e.onChange,onFocus:e.onFocus,options:_.oneOf.map((function(e){return g.retrieveSchema(Ed(e)?e:{},o)})),baseType:_.type,registry:m,schema:_,uiSchema:n})]})}))}var pq=function(e){function t(){return e.apply(this,arguments)||this}KW(t,e);var r=t.prototype;return r.shouldComponentUpdate=function(e){return!jN(this.props,e)},r.render=function(){return SO.jsx(fq,qW({},this.props))},t}(a.Component),mq=["widget","placeholder","title"];function hq(e){var t,r=e.schema,n=e.name,o=e.uiSchema,a=e.idSchema,i=e.formData,s=e.required,l=e.disabled,u=void 0!==l&&l,c=e.readonly,d=void 0!==c&&c,f=e.autofocus,p=void 0!==f&&f,m=e.onChange,h=e.onBlur,v=e.onFocus,y=e.registry,g=e.rawErrors,b=r.title,w=r.format,S=y.widgets,x=y.formContext,$=y.schemaUtils,k=y.globalUiOptions,_=$.isSelect(r)?VR(r):void 0,E=_?"select":"text";w&&function(e,t,r){void 0===r&&(r={});try{return RR(e,t,r),!0}catch(e){var n=e;if(n.message&&(n.message.startsWith("No widget")||n.message.startsWith("Unsupported widget")))return!1;throw e}}(r,w,S)&&(E=w);var C=EN(o),P=C.widget,j=void 0===P?E:P,O=C.placeholder,N=void 0===O?"":O,R=C.title,T=GW(C,mq),A=$.getDisplayLabel(r,o,k),I=null!=(t=null!=R?R:b)?t:n,M=RR(r,j,S);return SO.jsx(M,{options:qW({},T,{enumOptions:_}),schema:r,uiSchema:o,id:a.$id,name:n,label:I,hideLabel:!A,value:i,onChange:m,onBlur:h,onFocus:v,required:s,disabled:u,readonly:d,formContext:x,autofocus:p,registry:y,placeholder:N,rawErrors:g})}function vq(e){var t=e.formData,r=e.onChange;return a.useEffect((function(){void 0===t&&r(null)}),[t,r]),null}function yq(e){var t=e.idSchema,r=e.description,n=e.registry,o=e.schema,a=e.uiSchema,i=EN(a,n.globalUiOptions),s=i.label;if(!r||!(void 0===s||s))return null;var l=PR("DescriptionFieldTemplate",n,i);return SO.jsx(l,{id:AR(t),description:r,schema:o,uiSchema:a,registry:n})}function gq(e){var t=e.children,r=e.className,n=e.disabled,o=e.hasToolbar,a=e.hasMoveDown,i=e.hasMoveUp,s=e.hasRemove,l=e.hasCopy,u=e.index,c=e.onCopyIndexClick,d=e.onDropIndexClick,f=e.onReorderClick,p=e.readonly,m=e.registry,h=e.uiSchema,v=m.templates.ButtonTemplates,y=v.CopyButton,g=v.MoveDownButton,b=v.MoveUpButton,w=v.RemoveButton,S={flex:1,paddingLeft:6,paddingRight:6,fontWeight:"bold"};return SO.jsxs("div",{className:r,children:[SO.jsx("div",{className:o?"col-xs-9":"col-xs-12",children:t}),o&&SO.jsx("div",{className:"col-xs-3 array-item-toolbox",children:SO.jsxs("div",{className:"btn-group",style:{display:"flex",justifyContent:"space-around"},children:[(i||a)&&SO.jsx(b,{style:S,disabled:n||p||!i,onClick:f(u,u-1),uiSchema:h,registry:m}),(i||a)&&SO.jsx(g,{style:S,disabled:n||p||!a,onClick:f(u,u+1),uiSchema:h,registry:m}),l&&SO.jsx(y,{style:S,disabled:n||p,onClick:c(u),uiSchema:h,registry:m}),s&&SO.jsx(w,{style:S,disabled:n||p,onClick:d(u),uiSchema:h,registry:m})]})})]})}var bq=["key"];function wq(e){var t=e.canAdd,r=e.className,n=e.disabled,o=e.idSchema,a=e.uiSchema,i=e.items,s=e.onAddClick,l=e.readonly,u=e.registry,c=e.required,d=e.schema,f=e.title,p=EN(a),m=PR("ArrayFieldDescriptionTemplate",u,p),h=PR("ArrayFieldItemTemplate",u,p),v=PR("ArrayFieldTitleTemplate",u,p),y=u.templates.ButtonTemplates.AddButton;return SO.jsxs("fieldset",{className:r,id:o.$id,children:[SO.jsx(v,{idSchema:o,title:p.title||f,required:c,schema:d,uiSchema:a,registry:u}),SO.jsx(m,{idSchema:o,description:p.description||d.description,schema:d,uiSchema:a,registry:u}),SO.jsx("div",{className:"row array-item-list",children:i&&i.map((function(e){var t=e.key,r=GW(e,bq);return SO.jsx(h,qW({},r),t)}))}),t&&SO.jsx(y,{className:"array-item-add",onClick:s,disabled:n||l,uiSchema:a,registry:u})]})}function Sq(e){var t=e.idSchema,r=e.title,n=e.schema,o=e.uiSchema,a=e.required,i=e.registry,s=EN(o,i.globalUiOptions),l=s.label;if(!r||!(void 0===l||l))return null;var u=PR("TitleFieldTemplate",i,s);return SO.jsx(u,{id:DR(t),title:r,required:a,schema:n,uiSchema:o,registry:i})}var xq=["id","name","value","readonly","disabled","autofocus","onBlur","onFocus","onChange","onChangeOverride","options","schema","uiSchema","formContext","registry","rawErrors","type","hideLabel","hideError"];function $q(e){var t=e.id,r=e.value,n=e.readonly,o=e.disabled,i=e.autofocus,s=e.onBlur,l=e.onFocus,u=e.onChange,c=e.onChangeOverride,d=e.options,f=e.schema,p=e.type,m=GW(e,xq);if(!t)throw console.log("No id for",e),new Error("no id for props "+JSON.stringify(e));var h,v=qW({},m,_R(f,p,d));h="number"===v.type||"integer"===v.type?r||0===r?r:"":null==r?"":r;var y=a.useCallback((function(e){var t=e.target.value;return u(""===t?d.emptyValue:t)}),[u,d]),g=a.useCallback((function(e){var r=e.target.value;return s(t,r)}),[s,t]),b=a.useCallback((function(e){var r=e.target.value;return l(t,r)}),[l,t]);return SO.jsxs(SO.Fragment,{children:[SO.jsx("input",qW({id:t,name:t,className:"form-control",readOnly:n,disabled:o,autoFocus:i,value:h},v,{list:f.examples?MR(t):void 0,onChange:c||y,onBlur:g,onFocus:b,"aria-describedby":zR(t,!!f.examples)})),Array.isArray(f.examples)&&SO.jsx("datalist",{id:MR(t),children:f.examples.concat(f.default&&!f.examples.includes(f.default)?[f.default]:[]).map((function(e){return SO.jsx("option",{value:e},e)}))},"datalist_"+t)]})}function kq(e){var t=CR(e.uiSchema),r=t.submitText,n=t.norender,o=t.props,a=void 0===o?{}:o;return n?null:SO.jsx("div",{children:SO.jsx("button",qW({type:"submit"},a,{className:"btn btn-info "+(a.className||""),children:r}))})}var _q=["iconType","icon","className","uiSchema","registry"];function Eq(e){var t=e.iconType,r=void 0===t?"default":t,n=e.icon,o=e.className,a=GW(e,_q);return SO.jsx("button",qW({type:"button",className:"btn btn-"+r+" "+o},a,{children:SO.jsx("i",{className:"glyphicon glyphicon-"+n})}))}function Cq(e){var t=e.registry.translateString;return SO.jsx(Eq,qW({title:t(jR.CopyButton),className:"array-item-copy"},e,{icon:"copy"}))}function Pq(e){var t=e.registry.translateString;return SO.jsx(Eq,qW({title:t(jR.MoveDownButton),className:"array-item-move-down"},e,{icon:"arrow-down"}))}function jq(e){var t=e.registry.translateString;return SO.jsx(Eq,qW({title:t(jR.MoveUpButton),className:"array-item-move-up"},e,{icon:"arrow-up"}))}function Oq(e){var t=e.registry.translateString;return SO.jsx(Eq,qW({title:t(jR.RemoveButton),className:"array-item-remove"},e,{iconType:"danger",icon:"remove"}))}function Nq(e){var t=e.className,r=e.onClick,n=e.disabled,o=e.registry,a=o.translateString;return SO.jsx("div",{className:"row",children:SO.jsx("p",{className:"col-xs-3 col-xs-offset-9 text-right "+t,children:SO.jsx(Eq,{iconType:"info",icon:"plus",className:"btn-add col-xs-12",title:a(jR.AddButton),onClick:r,disabled:n,registry:o})})})}function Rq(e){var t=e.id,r=e.description;return r?"string"==typeof r?SO.jsx("p",{id:t,className:"field-description",children:r}):SO.jsx("div",{id:t,className:"field-description",children:r}):null}function Tq(e){var t=e.errors,r=e.registry.translateString;return SO.jsxs("div",{className:"panel panel-danger errors",children:[SO.jsx("div",{className:"panel-heading",children:SO.jsx("h3",{className:"panel-title",children:r(jR.ErrorsLabel)})}),SO.jsx("ul",{className:"list-group",children:t.map((function(e,t){return SO.jsx("li",{className:"list-group-item text-danger",children:e.stack},t)}))})]})}var Aq="*";function Iq(e){var t=e.label,r=e.required,n=e.id;return t?SO.jsxs("label",{className:"control-label",htmlFor:n,children:[t,r&&SO.jsx("span",{className:"required",children:Aq})]}):null}function Mq(e){var t=e.id,r=e.label,n=e.children,o=e.errors,a=e.help,i=e.description,s=e.hidden,l=e.required,u=e.displayLabel,c=PR("WrapIfAdditionalTemplate",e.registry,EN(e.uiSchema));return s?SO.jsx("div",{className:"hidden",children:n}):SO.jsxs(c,qW({},e,{children:[u&&SO.jsx(Iq,{label:r,required:l,id:t}),u&&i?i:null,n,o,a]}))}function Fq(e){var t=e.errors,r=void 0===t?[]:t,n=e.idSchema;if(0===r.length)return null;var o=IR(n);return SO.jsx("div",{children:SO.jsx("ul",{id:o,className:"error-detail bs-callout bs-callout-info",children:r.filter((function(e){return!!e})).map((function(e,t){return SO.jsx("li",{className:"text-danger",children:e},t)}))})})}function Dq(e){var t=e.idSchema,r=e.help;if(!r)return null;var n=FR(t);return"string"==typeof r?SO.jsx("p",{id:n,className:"help-block",children:r}):SO.jsx("div",{id:n,className:"help-block",children:r})}function zq(e){var t=e.description,r=e.disabled,n=e.formData,o=e.idSchema,a=e.onAddClick,i=e.properties,s=e.readonly,l=e.registry,u=e.required,c=e.schema,d=e.title,f=e.uiSchema,p=EN(f),m=PR("TitleFieldTemplate",l,p),h=PR("DescriptionFieldTemplate",l,p),v=l.templates.ButtonTemplates.AddButton;return SO.jsxs("fieldset",{id:o.$id,children:[d&&SO.jsx(m,{id:DR(o),title:d,required:u,schema:c,uiSchema:f,registry:l}),t&&SO.jsx(h,{id:AR(o),description:t,schema:c,uiSchema:f,registry:l}),i.map((function(e){return e.content})),CN(c,f,n)&&SO.jsx(v,{className:"object-property-expand",onClick:a(c),disabled:r||s,uiSchema:f,registry:l})]})}var Lq="*";function Bq(e){var t=e.id,r=e.title,n=e.required;return SO.jsxs("legend",{id:t,children:[r,n&&SO.jsx("span",{className:"required",children:Lq})]})}function Vq(e){var t=e.schema,r=e.idSchema,n=e.reason,o=e.registry.translateString,a=jR.UnsupportedField,i=[];return r&&r.$id&&(a=jR.UnsupportedFieldWithId,i.push(r.$id)),n&&(a=a===jR.UnsupportedField?jR.UnsupportedFieldWithReason:jR.UnsupportedFieldWithIdAndReason,i.push(n)),SO.jsxs("div",{className:"unsupported-field",children:[SO.jsx("p",{children:SO.jsx(UW,{children:o(a,i)})}),t&&SO.jsx("pre",{children:JSON.stringify(t,null,2)})]})}function Uq(e){var t=e.id,r=e.classNames,n=e.style,o=e.disabled,a=e.label,i=e.onKeyChange,s=e.onDropPropertyClick,l=e.readonly,u=e.required,c=e.schema,d=e.children,f=e.uiSchema,p=e.registry,m=p.templates,h=p.translateString,v=m.ButtonTemplates.RemoveButton,y=h(jR.KeyLabel,[a]);return oN in c?SO.jsx("div",{className:r,style:n,children:SO.jsxs("div",{className:"row",children:[SO.jsx("div",{className:"col-xs-5 form-additional",children:SO.jsxs("div",{className:"form-group",children:[SO.jsx(Iq,{label:y,required:u,id:t+"-key"}),SO.jsx("input",{className:"form-control",type:"text",id:t+"-key",onBlur:function(e){return i(e.target.value)},defaultValue:a})]})}),SO.jsx("div",{className:"form-additional form-group col-xs-5",children:d}),SO.jsx("div",{className:"col-xs-2",children:SO.jsx(v,{className:"array-item-remove btn-block",style:{border:"0"},disabled:o||l,onClick:s(a),uiSchema:f,registry:p})})]})}):SO.jsx("div",{className:r,style:n,children:d})}function Wq(e,t){for(var r=[],n=e;n<=t;n++)r.push({value:n,label:UR(n,2)});return r}function qq(e,t,r){void 0===r&&(r=[1900,(new Date).getFullYear()+2]);var n=e.year,o=e.month,a=e.day,i=e.hour,s=e.minute,l=e.second,u=[{type:"year",range:r,value:n},{type:"month",range:[1,12],value:o},{type:"day",range:[1,31],value:a}];return t&&u.push({type:"hour",range:[0,23],value:i},{type:"minute",range:[0,59],value:s},{type:"second",range:[0,59],value:l}),u}function Kq(e){var t=e.type,r=e.range,n=e.value,o=e.select,a=e.rootId,i=e.name,s=e.disabled,l=e.readonly,u=e.autofocus,c=e.registry,d=e.onBlur,f=e.onFocus,p=a+"_"+t,m=c.widgets.SelectWidget;return SO.jsx(m,{schema:{type:"integer"},id:p,name:i,className:"form-control",options:{enumOptions:Wq(r[0],r[1])},placeholder:t,value:n,disabled:s,readonly:l,autofocus:u,onChange:function(e){return o(t,e)},onBlur:d,onFocus:f,registry:c,label:"","aria-describedby":zR(a)})}function Hq(e){var t=e.time,r=void 0!==t&&t,n=e.disabled,o=void 0!==n&&n,i=e.readonly,s=void 0!==i&&i,l=e.autofocus,u=void 0!==l&&l,c=e.options,d=e.id,f=e.name,p=e.registry,m=e.onBlur,h=e.onFocus,v=e.onChange,y=e.value,g=p.translateString,b=a.useState(y),w=b[0],S=b[1],x=a.useReducer((function(e,t){return qW({},e,t)}),WR(y,r)),$=x[0],k=x[1];a.useEffect((function(){var e=KR($,r);!function(e){return Object.values(e).every((function(e){return-1!==e}))}($)||e===y?w!==y&&(S(y),k(WR(y,r))):v(e)}),[r,y,v,$,w]);var _=a.useCallback((function(e,t){var r;k(((r={})[e]=t,r))}),[]),E=a.useCallback((function(e){if(e.preventDefault(),!o&&!s){var t=WR((new Date).toJSON(),r);v(KR(t,r))}}),[o,s,r]),C=a.useCallback((function(e){e.preventDefault(),o||s||v(void 0)}),[o,s,v]);return SO.jsxs("ul",{className:"list-inline",children:[qq($,r,c.yearsRange).map((function(e,t){return SO.jsx("li",{className:"list-inline-item",children:SO.jsx(Kq,qW({rootId:d,name:f,select:_},e,{disabled:o,readonly:s,registry:p,onBlur:m,onFocus:h,autofocus:u&&0===t}))},t)})),("undefined"===c.hideNowButton||!c.hideNowButton)&&SO.jsx("li",{className:"list-inline-item",children:SO.jsx("a",{href:"#",className:"btn btn-info btn-now",onClick:E,children:g(jR.NowLabel)})}),("undefined"===c.hideClearButton||!c.hideClearButton)&&SO.jsx("li",{className:"list-inline-item",children:SO.jsx("a",{href:"#",className:"btn btn-warning btn-clear",onClick:C,children:g(jR.ClearLabel)})})]})}var Gq=["time"];function Qq(e){var t=e.time,r=void 0===t||t,n=GW(e,Gq),o=n.registry.widgets.AltDateWidget;return SO.jsx(o,qW({time:r},n))}function Xq(e){var t,r=e.schema,n=e.uiSchema,o=e.options,i=e.id,s=e.value,l=e.disabled,u=e.readonly,c=e.label,d=e.hideLabel,f=e.autofocus,p=void 0!==f&&f,m=e.onBlur,h=e.onFocus,v=e.onChange,y=e.registry,g=PR("DescriptionFieldTemplate",y,o),b=qR(r),w=a.useCallback((function(e){return v(e.target.checked)}),[v]),S=a.useCallback((function(e){return m(i,e.target.checked)}),[m,i]),x=a.useCallback((function(e){return h(i,e.target.checked)}),[h,i]),$=null!=(t=o.description)?t:r.description;return SO.jsxs("div",{className:"checkbox "+(l||u?"disabled":""),children:[!d&&!!$&&SO.jsx(g,{id:AR(i),description:$,schema:r,uiSchema:n,registry:y}),SO.jsxs("label",{children:[SO.jsx("input",{type:"checkbox",id:i,name:i,checked:void 0!==s&&s,required:b,disabled:l||u,autoFocus:p,onChange:w,onBlur:S,onFocus:x,"aria-describedby":zR(i)}),BR(SO.jsx("span",{children:c}),d)]})]})}function Yq(e){var t=e.id,r=e.disabled,n=e.options,o=n.inline,i=void 0!==o&&o,s=n.enumOptions,l=n.enumDisabled,u=n.emptyValue,c=e.value,d=e.autofocus,f=void 0!==d&&d,p=e.readonly,m=e.onChange,h=e.onBlur,v=e.onFocus,y=Array.isArray(c)?c:[c],g=a.useCallback((function(e){var r=e.target.value;return h(t,gR(r,s,u))}),[h,t]),b=a.useCallback((function(e){var r=e.target.value;return v(t,gR(r,s,u))}),[v,t]);return SO.jsx("div",{className:"checkboxes",id:t,children:Array.isArray(s)&&s.map((function(e,n){var o=wR(e.value,y),a=Array.isArray(l)&&-1!==l.indexOf(e.value),u=r||a||p?"disabled":"",c=SO.jsxs("span",{children:[SO.jsx("input",{type:"checkbox",id:LR(t,n),name:t,checked:o,value:String(n),disabled:r||a||p,autoFocus:f&&0===n,onChange:function(e){e.target.checked?m(xR(n,y,s)):m(bR(n,y,s))},onBlur:g,onFocus:b,"aria-describedby":zR(t)}),SO.jsx("span",{children:e.label})]});return i?SO.jsx("label",{className:"checkbox-inline "+u,children:c},n):SO.jsx("div",{className:"checkbox "+u,children:SO.jsx("label",{children:c})},n)}))})}function Jq(e){var t=e.disabled,r=e.readonly,n=e.options,o=PR("BaseInputTemplate",e.registry,n);return SO.jsx(o,qW({type:"color"},e,{disabled:t||r}))}function Zq(e){var t=e.onChange,r=e.options,n=PR("BaseInputTemplate",e.registry,r),o=a.useCallback((function(e){return t(e||void 0)}),[t]);return SO.jsx(n,qW({type:"date"},e,{onChange:o}))}function eK(e){var t=e.onChange,r=e.value,n=e.options,o=PR("BaseInputTemplate",e.registry,n);return SO.jsx(o,qW({type:"datetime-local"},e,{value:QR(r),onChange:function(e){return t((r=e)?new Date(r).toJSON():void 0);var r}}))}function tK(e){var t=e.options,r=PR("BaseInputTemplate",e.registry,t);return SO.jsx(r,qW({type:"email"},e))}function rK(e,t){return null===e?null:e.replace(";base64",";name="+encodeURIComponent(t)+";base64")}function nK(e){var t=e.name,r=e.size,n=e.type;return new Promise((function(o,a){var i=new window.FileReader;i.onerror=a,i.onload=function(e){var a;"string"==typeof(null===(a=e.target)||void 0===a?void 0:a.result)?o({dataURL:rK(e.target.result,t),name:t,size:r,type:n}):o({dataURL:null,name:t,size:r,type:n})},i.readAsDataURL(e)}))}function oK(e){var t=e.fileInfo,r=e.registry.translateString,n=t.dataURL,o=t.type,a=t.name;return n?-1!==o.indexOf("image")?SO.jsx("img",{src:n,style:{maxWidth:"100%"},className:"file-preview"}):SO.jsxs(SO.Fragment,{children:[" ",SO.jsx("a",{download:"preview-"+a,href:n,className:"file-download",children:r(jR.PreviewLabel)})]}):null}function aK(e){var t=e.filesInfo,r=e.registry,n=e.preview;if(0===t.length)return null;var o=r.translateString;return SO.jsx("ul",{className:"file-info",children:t.map((function(e,t){var a=e.name,i=e.size,s=e.type;return SO.jsxs("li",{children:[SO.jsx(UW,{children:o(jR.FilesInfo,[a,s,String(i)])}),n&&SO.jsx(oK,{fileInfo:e,registry:r})]},t)}))})}function iK(e){return e.filter((function(e){return e})).map((function(e){var t=function(e){var t,r=e.split(","),n=r[0].split(";"),o=n[0].replace("data:",""),a=n.filter((function(e){return"name"===e.split("=")[0]}));t=1!==a.length?"unknown":decodeURI(a[0].split("=")[1]);try{for(var i=atob(r[1]),s=[],l=0;l<i.length;l++)s.push(i.charCodeAt(l));return{blob:new window.Blob([new Uint8Array(s)],{type:o}),name:t}}catch(t){return{blob:{size:0,type:t.message},name:e}}}(e),r=t.blob;return{dataURL:e,name:t.name,size:r.size,type:r.type}}))}function sK(e){var t=e.disabled,r=e.readonly,n=e.required,o=e.multiple,i=e.onChange,s=e.value,l=e.options,u=e.registry,c=PR("BaseInputTemplate",u,l),d=a.useState(Array.isArray(s)?iK(s):iK([s])),f=d[0],p=d[1],m=a.useCallback((function(e){var t;e.target.files&&(t=e.target.files,Promise.all(Array.from(t).map(nK))).then((function(e){var t=e.map((function(e){return e.dataURL}));o?(p(f.concat(e[0])),i(s.concat(t[0]))):(p(e),i(t[0]))}))}),[o,s,f,i]);return SO.jsxs("div",{children:[SO.jsx(c,qW({},e,{disabled:t||r,type:"file",required:!s&&n,onChangeOverride:m,value:"",accept:l.accept?String(l.accept):void 0})),SO.jsx(aK,{filesInfo:f,registry:u,preview:l.filePreview})]})}function lK(e){var t=e.id,r=e.value;return SO.jsx("input",{type:"hidden",id:t,name:t,value:void 0===r?"":r})}function uK(e){var t=e.options,r=PR("BaseInputTemplate",e.registry,t);return SO.jsx(r,qW({type:"password"},e))}function cK(e){var t=e.options,r=e.value,n=e.required,o=e.disabled,i=e.readonly,s=e.autofocus,l=void 0!==s&&s,u=e.onBlur,c=e.onFocus,d=e.onChange,f=e.id,p=t.enumOptions,m=t.enumDisabled,h=t.inline,v=t.emptyValue,y=a.useCallback((function(e){var t=e.target.value;return u(f,gR(t,p,v))}),[u,f]),g=a.useCallback((function(e){var t=e.target.value;return c(f,gR(t,p,v))}),[c,f]);return SO.jsx("div",{className:"field-radio-group",id:f,children:Array.isArray(p)&&p.map((function(e,t){var a=wR(e.value,r),s=Array.isArray(m)&&-1!==m.indexOf(e.value),u=o||s||i?"disabled":"",c=SO.jsxs("span",{children:[SO.jsx("input",{type:"radio",id:LR(f,t),checked:a,name:f,required:n,value:String(t),disabled:o||s||i,autoFocus:l&&0===t,onChange:function(){return d(e.value)},onBlur:y,onFocus:g,"aria-describedby":zR(f)}),SO.jsx("span",{children:e.label})]});return h?SO.jsx("label",{className:"radio-inline "+u,children:c},t):SO.jsx("div",{className:"radio "+u,children:SO.jsx("label",{children:c})},t)}))})}function dK(e){var t=e.value,r=e.registry.templates.BaseInputTemplate;return SO.jsxs("div",{className:"field-range-wrapper",children:[SO.jsx(r,qW({type:"range"},e)),SO.jsx("span",{className:"range-view",children:t})]})}function fK(e,t){return t?Array.from(e.target.options).slice().filter((function(e){return e.selected})).map((function(e){return e.value})):e.target.value}function pK(e){var t=e.schema,r=e.id,n=e.options,o=e.value,i=e.required,s=e.disabled,l=e.readonly,u=e.multiple,c=void 0!==u&&u,d=e.autofocus,f=void 0!==d&&d,p=e.onChange,m=e.onBlur,h=e.onFocus,v=e.placeholder,y=n.enumOptions,g=n.enumDisabled,b=n.emptyValue,w=c?[]:"",S=a.useCallback((function(e){var t=fK(e,c);return h(r,gR(t,y,b))}),[h,r,t,c,n]),x=a.useCallback((function(e){var t=fK(e,c);return m(r,gR(t,y,b))}),[m,r,t,c,n]),$=a.useCallback((function(e){var t=fK(e,c);return p(gR(t,y,b))}),[p,t,c,n]),k=SR(o,y,c);return SO.jsxs("select",{id:r,name:r,multiple:c,className:"form-control",value:void 0===k?w:k,required:i,disabled:s||l,autoFocus:f,onBlur:x,onFocus:S,onChange:$,"aria-describedby":zR(r),children:[!c&&void 0===t.default&&SO.jsx("option",{value:"",children:v}),Array.isArray(y)&&y.map((function(e,t){var r=e.value,n=e.label,o=g&&-1!==g.indexOf(r);return SO.jsx("option",{value:String(t),disabled:o,children:n},t)}))]})}function mK(e){var t=e.id,r=e.options,n=void 0===r?{}:r,o=e.placeholder,i=e.value,s=e.required,l=e.disabled,u=e.readonly,c=e.autofocus,d=void 0!==c&&c,f=e.onChange,p=e.onBlur,m=e.onFocus,h=a.useCallback((function(e){var t=e.target.value;return f(""===t?n.emptyValue:t)}),[f,n.emptyValue]),v=a.useCallback((function(e){var r=e.target.value;return p(t,r)}),[p,t]),y=a.useCallback((function(e){var r=e.target.value;return m(t,r)}),[t,m]);return SO.jsx("textarea",{id:t,name:t,className:"form-control",value:i||"",placeholder:o,required:s,disabled:l,readOnly:u,autoFocus:d,rows:n.rows,onBlur:v,onFocus:y,onChange:h,"aria-describedby":zR(t)})}function hK(e){var t=e.options,r=PR("BaseInputTemplate",e.registry,t);return SO.jsx(r,qW({},e))}function vK(e){var t=e.onChange,r=e.options,n=PR("BaseInputTemplate",e.registry,r),o=a.useCallback((function(e){return t(e?e+":00":void 0)}),[t]);return SO.jsx(n,qW({type:"time"},e,{onChange:o}))}function yK(e){var t=e.options,r=PR("BaseInputTemplate",e.registry,t);return SO.jsx(r,qW({type:"url"},e))}function gK(e){var t=e.options,r=PR("BaseInputTemplate",e.registry,t);return SO.jsx(r,qW({type:"number"},e))}function bK(){return{fields:{AnyOfField:aq,ArrayField:tq,BooleanField:nq,NumberField:lq,ObjectField:uq,OneOfField:aq,SchemaField:pq,StringField:hq,NullField:vq},templates:{ArrayFieldDescriptionTemplate:yq,ArrayFieldItemTemplate:gq,ArrayFieldTemplate:wq,ArrayFieldTitleTemplate:Sq,ButtonTemplates:{SubmitButton:kq,AddButton:Nq,CopyButton:Cq,MoveDownButton:Pq,MoveUpButton:jq,RemoveButton:Oq},BaseInputTemplate:$q,DescriptionFieldTemplate:Rq,ErrorListTemplate:Tq,FieldTemplate:Mq,FieldErrorTemplate:Fq,FieldHelpTemplate:Dq,ObjectFieldTemplate:zq,TitleFieldTemplate:Bq,UnsupportedFieldTemplate:Vq,WrapIfAdditionalTemplate:Uq},widgets:{AltDateWidget:Hq,AltDateTimeWidget:Qq,CheckboxWidget:Xq,CheckboxesWidget:Yq,ColorWidget:Jq,DateWidget:Zq,DateTimeWidget:eK,EmailWidget:tK,FileWidget:sK,HiddenWidget:lK,PasswordWidget:uK,RadioWidget:cK,RangeWidget:dK,SelectWidget:pK,TextWidget:hK,TextareaWidget:mK,TimeWidget:vK,UpDownWidget:gK,URLWidget:yK},rootSchema:{},formContext:{},translateString:yR}}mK.defaultProps={autofocus:!1,options:{}};var wK=function(e){function t(t){var r;if((r=e.call(this,t)||this).formElement=void 0,r.getUsedFormData=function(e,t){if(0===t.length&&"object"!=typeof e)return e;var r=YV(e,t);return Array.isArray(e)?Object.keys(r).map((function(e){return r[e]})):r},r.getFieldNames=function(e,t){return function e(r,n,o){return void 0===n&&(n=[]),void 0===o&&(o=[[]]),Object.keys(r).forEach((function(a){if("object"==typeof r[a]){var i=o.map((function(e){return[].concat(e,[a])}));r[a][xN]&&""!==r[a][vN]?n.push(r[a][vN]):e(r[a],n,i)}else a===vN&&""!==r[a]&&o.forEach((function(e){var r=lm(t,e);("object"!=typeof r||fm(r))&&n.push(e)}))})),n}(e)},r.onChange=function(e,t,n){var o=r.props,a=o.extraErrors,i=o.omitExtraData,s=o.liveOmit,l=o.noValidate,u=o.liveValidate,c=o.onChange,d=r.state,f=d.schemaUtils,p=d.schema;(JO(e)||Array.isArray(e))&&(e=r.getStateFromProps(r.props,e).formData);var m=!l&&u,h={formData:e,schema:p},v=e;if(!0===i&&!0===s){var y=f.retrieveSchema(p,e),g=f.toPathSchema(y,"",e),b=r.getFieldNames(g,e);v=r.getUsedFormData(e,b),h={formData:v}}if(m){var w=r.validate(v),S=w.errors,x=w.errorSchema,$=S,k=x;if(a){var _=XR(w,a);x=_.errorSchema,S=_.errors}h={formData:v,errors:S,errorSchema:x,schemaValidationErrors:$,schemaValidationErrorSchema:k}}else if(!l&&t){var E=a?tR(t,a,"preventDuplicates"):t;h={formData:v,errorSchema:E,errors:HR(E)}}r.setState(h,(function(){return c&&c(qW({},r.state,h),n)}))},r.reset=function(){var e=r.props.onChange,t={formData:r.getStateFromProps(r.props,void 0).formData,errorSchema:{},errors:[],schemaValidationErrors:[],schemaValidationErrorSchema:{}};r.setState(t,(function(){return e&&e(qW({},r.state,t))}))},r.onBlur=function(e,t){var n=r.props.onBlur;n&&n(e,t)},r.onFocus=function(e,t){var n=r.props.onFocus;n&&n(e,t)},r.onSubmit=function(e){if(e.preventDefault(),e.target===e.currentTarget){e.persist();var t=r.props,n=t.omitExtraData,o=t.extraErrors,a=t.noValidate,i=t.onSubmit,s=r.state.formData,l=r.state,u=l.schema,c=l.schemaUtils;if(!0===n){var d=c.retrieveSchema(u,s),f=c.toPathSchema(d,"",s),p=r.getFieldNames(f,s);s=r.getUsedFormData(s,p)}if(a||r.validateForm()){var m=o||{},h=o?HR(o):[];r.setState({formData:s,errors:h,errorSchema:m,schemaValidationErrors:[],schemaValidationErrorSchema:{}},(function(){i&&i(qW({},r.state,{formData:s,status:"submitted"}),e)}))}}},!t.validator)throw new Error("A validator is required for Form functionality to work");return r.state=r.getStateFromProps(t,t.formData),r.props.onChange&&!jN(r.state.formData,r.props.formData)&&r.props.onChange(r.state),r.formElement=a.createRef(),r}KW(t,e);var r=t.prototype;return r.UNSAFE_componentWillReceiveProps=function(e){var t=this.getStateFromProps(e,e.formData);jN(t.formData,e.formData)||jN(t.formData,this.state.formData)||!e.onChange||e.onChange(t),this.setState(t)},r.getStateFromProps=function(e,t){var r=this.state||{},n="schema"in e?e.schema:this.props.schema,o=("uiSchema"in e?e.uiSchema:this.props.uiSchema)||{},a=void 0!==t,i="liveValidate"in e?e.liveValidate:this.props.liveValidate,s=a&&!e.noValidate&&i,l=n,u="experimental_defaultFormStateBehavior"in e?e.experimental_defaultFormStateBehavior:this.props.experimental_defaultFormStateBehavior,c=r.schemaUtils;c&&!c.doesSchemaUtilsDiffer(e.validator,l,u)||(c=function(e,t,r){return void 0===r&&(r={}),new vR(e,t,r)}(e.validator,l,u));var d,f,p=c.getDefaultFormState(n,t),m=c.retrieveSchema(n,p),h=r.schemaValidationErrors,v=r.schemaValidationErrorSchema;if(s){var y=this.validate(p,n,c);h=d=y.errors,v=f=y.errorSchema}else{var g=e.noValidate?{errors:[],errorSchema:{}}:e.liveValidate?{errors:r.errors||[],errorSchema:r.errorSchema||{}}:{errors:r.schemaValidationErrors||[],errorSchema:r.schemaValidationErrorSchema||{}};d=g.errors,f=g.errorSchema}if(e.extraErrors){var b=XR({errorSchema:f,errors:d},e.extraErrors);f=b.errorSchema,d=b.errors}var w=c.toIdSchema(m,o["ui:rootFieldId"],p,e.idPrefix,e.idSeparator);return{schemaUtils:c,schema:n,uiSchema:o,idSchema:w,formData:p,edit:a,errors:d,errorSchema:f,schemaValidationErrors:h,schemaValidationErrorSchema:v}},r.shouldComponentUpdate=function(e,t){return function(e,t,r){var n=e.props,o=e.state;return!jN(n,t)||!jN(o,r)}(this,e,t)},r.validate=function(e,t,r){void 0===t&&(t=this.props.schema);var n=r||this.state.schemaUtils,o=this.props,a=o.customValidate,i=o.transformErrors,s=o.uiSchema,l=n.retrieveSchema(t,e);return n.getValidator().validateFormData(e,l,a,i,s)},r.renderErrors=function(e){var t=this.state,r=t.errors,n=t.errorSchema,o=t.schema,a=t.uiSchema,i=this.props.formContext,s=PR("ErrorListTemplate",e,EN(a));return r&&r.length?SO.jsx(s,{errors:r,errorSchema:n||{},schema:o,uiSchema:a,formContext:i,registry:e}):null},r.getRegistry=function(){var e,t=this.props,r=t.translateString,n=t.uiSchema,o=void 0===n?{}:n,a=this.state.schemaUtils,i=bK(),s=i.fields,l=i.templates,u=i.widgets,c=i.formContext,d=i.translateString;return{fields:qW({},s,this.props.fields),templates:qW({},l,this.props.templates,{ButtonTemplates:qW({},l.ButtonTemplates,null===(e=this.props.templates)||void 0===e?void 0:e.ButtonTemplates)}),widgets:qW({},u,this.props.widgets),rootSchema:this.props.schema,formContext:this.props.formContext||c,schemaUtils:a,translateString:r||d,globalUiOptions:o["ui:globalOptions"]}},r.submit=function(){this.formElement.current&&(this.formElement.current.dispatchEvent(new CustomEvent("submit",{cancelable:!0})),this.formElement.current.requestSubmit())},r.focusOnError=function(e){var t=this.props,r=t.idPrefix,n=void 0===r?"root":r,o=t.idSeparator,a=void 0===o?"_":o,i=YO(e.property);""===i[0]?i[0]=n:i.unshift(n);var s=i.join(a),l=this.formElement.current.elements[s];l||(l=this.formElement.current.querySelector("input[id^="+s)),l&&l.length&&(l=l[0]),l&&l.focus()},r.validateForm=function(){var e=this.props,t=e.extraErrors,r=e.focusOnFirstError,n=e.onError,o=this.state.formData,a=this.validate(o),i=a.errors,s=a.errorSchema,l=i,u=s;if(i.length>0){if(t){var c=XR(a,t);s=c.errorSchema,i=c.errors}return r&&("function"==typeof r?r(a.errors[0]):this.focusOnError(a.errors[0])),this.setState({errors:i,errorSchema:s,schemaValidationErrors:l,schemaValidationErrorSchema:u},(function(){n?n(i):console.error("Form validation failed",i)})),!1}return!0},r.render=function(){var e,t,r=this.props,n=r.children,o=r.id,a=r.idPrefix,i=r.idSeparator,s=r.className,l=void 0===s?"":s,u=r.tagName,c=r.name,d=r.method,f=r.target,p=r.action,m=r.autoComplete,h=r.enctype,v=r.acceptcharset,y=r.noHtml5Validate,g=void 0!==y&&y,b=r.disabled,w=void 0!==b&&b,S=r.readonly,x=void 0!==S&&S,$=r.formContext,k=r.showErrorList,_=void 0===k?"top":k,E=r._internalFormWrapper,C=this.state,P=C.schema,j=C.uiSchema,O=C.formData,N=C.errorSchema,R=C.idSchema,T=this.getRegistry(),A=T.fields.SchemaField,I=T.templates.ButtonTemplates.SubmitButton,M=E?u:void 0,F=E||u||"form",D=EN(j)[wN],z=void 0===D?{}:D;w&&(z=qW({},z,{props:qW({},z.props,{disabled:!0})}));var L=((t={})[_N]=((e={})[wN]=z,e),t);return SO.jsxs(F,{className:l||"rjsf",id:o,name:c,method:d,target:f,action:p,autoComplete:m,encType:h,acceptCharset:v,noValidate:g,onSubmit:this.onSubmit,as:M,ref:this.formElement,children:["top"===_&&this.renderErrors(T),SO.jsx(A,{name:"",schema:P,uiSchema:j,errorSchema:N,idSchema:R,idPrefix:a,idSeparator:i,formContext:$,formData:O,onChange:this.onChange,onBlur:this.onBlur,onFocus:this.onFocus,registry:T,disabled:w,readonly:x}),n||SO.jsx(I,{uiSchema:L,registry:T}),"bottom"===_&&this.renderErrors(T)]})},t}(a.Component),SK=["fields","widgets","templates"];var xK={},$K={},kK={get exports(){return $K},set exports(e){$K=e}};!function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports}(kK);var _K={};function EK(){return EK=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},EK.apply(this,arguments)}function CK(e){return null!==e&&"object"==typeof e&&e.constructor===Object}function PK(e){if(!CK(e))return e;const t={};return Object.keys(e).forEach((r=>{t[r]=PK(e[r])})),t}function jK(e,t,r={clone:!0}){const n=r.clone?EK({},e):e;return CK(e)&&CK(t)&&Object.keys(t).forEach((o=>{"__proto__"!==o&&(CK(t[o])&&o in e&&CK(e[o])?n[o]=jK(e[o],t[o],r):r.clone?n[o]=CK(t[o])?PK(t[o]):t[o]:n[o]=t[o])})),n}function OK(e){let t="https://mui.com/production-error/?code="+e;for(let e=1;e<arguments.length;e+=1)t+="&args[]="+encodeURIComponent(arguments[e]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}function NK(e){if("string"!=typeof e)throw new Error(OK(7));return e.charAt(0).toUpperCase()+e.slice(1)}function RK(...e){return e.reduce(((e,t)=>null==t?e:function(...r){e.apply(this,r),t.apply(this,r)}),(()=>{}))}function TK(e,t=166){let r;function n(...n){clearTimeout(r),r=setTimeout((()=>{e.apply(this,n)}),t)}return n.clear=()=>{clearTimeout(r)},n}function AK(e,t){return a.isValidElement(e)&&-1!==t.indexOf(e.type.muiName)}function IK(e){return e&&e.ownerDocument||document}function MK(e){return IK(e).defaultView||window}function FK(e,t){"function"==typeof e?e(t):e&&(e.current=t)}var DK="undefined"!=typeof window?a.useLayoutEffect:a.useEffect;let zK=0;const LK=V["useId".toString()];function BK(e){if(void 0!==LK){const t=LK();return null!=e?e:t}return function(e){const[t,r]=a.useState(e),n=e||t;return a.useEffect((()=>{null==t&&(zK+=1,r(`mui-${zK}`))}),[t]),n}(e)}function VK({controlled:e,default:t,name:r,state:n="value"}){const{current:o}=a.useRef(void 0!==e),[i,s]=a.useState(t);return[o?e:i,a.useCallback((e=>{o||s(e)}),[])]}function UK(e){const t=a.useRef(e);return DK((()=>{t.current=e})),a.useCallback(((...e)=>(0,t.current)(...e)),[])}function WK(...e){return a.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{FK(e,t)}))}),e)}let qK,KK=!0,HK=!1;const GK={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function QK(e){e.metaKey||e.altKey||e.ctrlKey||(KK=!0)}function XK(){KK=!1}function YK(){"hidden"===this.visibilityState&&HK&&(KK=!0)}function JK(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return KK||function(e){const{type:t,tagName:r}=e;return!("INPUT"!==r||!GK[t]||e.readOnly)||"TEXTAREA"===r&&!e.readOnly||!!e.isContentEditable}(t)}function ZK(){const e=a.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",QK,!0),t.addEventListener("mousedown",XK,!0),t.addEventListener("pointerdown",XK,!0),t.addEventListener("touchstart",XK,!0),t.addEventListener("visibilitychange",YK,!0))}),[]),t=a.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!JK(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(HK=!0,window.clearTimeout(qK),qK=window.setTimeout((()=>{HK=!1}),100),t.current=!1,!0)},ref:e}}function eH(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}var tH={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:-1,overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function rH(e,t){const r=EK({},t);return Object.keys(e).forEach((n=>{if(n.toString().match(/^(components|slots)$/))r[n]=EK({},e[n],r[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const o=e[n]||{},a=t[n];r[n]={},a&&Object.keys(a)?o&&Object.keys(o)?(r[n]=EK({},a),Object.keys(o).forEach((e=>{r[n][e]=rH(o[e],a[e])}))):r[n]=a:r[n]=o}else void 0===r[n]&&(r[n]=e[n])})),r}function nH(e,t,r=void 0){const n={};return Object.keys(e).forEach((o=>{n[o]=e[o].reduce(((e,n)=>{if(n){const o=t(n);""!==o&&e.push(o),r&&r[n]&&e.push(r[n])}return e}),[]).join(" ")})),n}const oH=e=>e;var aH=(()=>{let e=oH;return{configure(t){e=t},generate:t=>e(t),reset(){e=oH}}})();const iH={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 sH(e,t,r="Mui"){const n=iH[t];return n?`${r}-${n}`:`${aH.generate(e)}-${t}`}function lH(e,t,r="Mui"){const n={};return t.forEach((t=>{n[t]=sH(e,t,r)})),n}function uH(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}function cH(e){var t,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(r=cH(e[t]))&&(n&&(n+=" "),n+=r);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function dH(){for(var e,t,r=0,n="";r<arguments.length;)(e=arguments[r++])&&(t=cH(e))&&(n&&(n+=" "),n+=t);return n}function fH(e){var t=Object.create(null);return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}var pH=/^((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)-.*))$/,mH=fH((function(e){return pH.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}));var hH=function(){function e(e){var t=this;this._insertTag=function(e){var r;r=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,r),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var r=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{r.insertRule(e,r.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}(),vH="-ms-",yH="-moz-",gH="-webkit-",bH="comm",wH="rule",SH="decl",xH="@keyframes",$H=Math.abs,kH=String.fromCharCode,_H=Object.assign;function EH(e){return e.trim()}function CH(e,t,r){return e.replace(t,r)}function PH(e,t){return e.indexOf(t)}function jH(e,t){return 0|e.charCodeAt(t)}function OH(e,t,r){return e.slice(t,r)}function NH(e){return e.length}function RH(e){return e.length}function TH(e,t){return t.push(e),e}var AH=1,IH=1,MH=0,FH=0,DH=0,zH="";function LH(e,t,r,n,o,a,i){return{value:e,root:t,parent:r,type:n,props:o,children:a,line:AH,column:IH,length:i,return:""}}function BH(e,t){return _H(LH("",null,null,"",null,null,0),e,{length:-e.length},t)}function VH(){return DH=FH>0?jH(zH,--FH):0,IH--,10===DH&&(IH=1,AH--),DH}function UH(){return DH=FH<MH?jH(zH,FH++):0,IH++,10===DH&&(IH=1,AH++),DH}function WH(){return jH(zH,FH)}function qH(){return FH}function KH(e,t){return OH(zH,e,t)}function HH(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function GH(e){return AH=IH=1,MH=NH(zH=e),FH=0,[]}function QH(e){return zH="",e}function XH(e){return EH(KH(FH-1,ZH(91===e?e+2:40===e?e+1:e)))}function YH(e){for(;(DH=WH())&&DH<33;)UH();return HH(e)>2||HH(DH)>3?"":" "}function JH(e,t){for(;--t&&UH()&&!(DH<48||DH>102||DH>57&&DH<65||DH>70&&DH<97););return KH(e,qH()+(t<6&&32==WH()&&32==UH()))}function ZH(e){for(;UH();)switch(DH){case e:return FH;case 34:case 39:34!==e&&39!==e&&ZH(DH);break;case 40:41===e&&ZH(e);break;case 92:UH()}return FH}function eG(e,t){for(;UH()&&e+DH!==57&&(e+DH!==84||47!==WH()););return"/*"+KH(t,FH-1)+"*"+kH(47===e?e:UH())}function tG(e){for(;!HH(WH());)UH();return KH(e,FH)}function rG(e){return QH(nG("",null,null,null,[""],e=GH(e),0,[0],e))}function nG(e,t,r,n,o,a,i,s,l){for(var u=0,c=0,d=i,f=0,p=0,m=0,h=1,v=1,y=1,g=0,b="",w=o,S=a,x=n,$=b;v;)switch(m=g,g=UH()){case 40:if(108!=m&&58==jH($,d-1)){-1!=PH($+=CH(XH(g),"&","&\f"),"&\f")&&(y=-1);break}case 34:case 39:case 91:$+=XH(g);break;case 9:case 10:case 13:case 32:$+=YH(m);break;case 92:$+=JH(qH()-1,7);continue;case 47:switch(WH()){case 42:case 47:TH(aG(eG(UH(),qH()),t,r),l);break;default:$+="/"}break;case 123*h:s[u++]=NH($)*y;case 125*h:case 59:case 0:switch(g){case 0:case 125:v=0;case 59+c:-1==y&&($=CH($,/\f/g,"")),p>0&&NH($)-d&&TH(p>32?iG($+";",n,r,d-1):iG(CH($," ","")+";",n,r,d-2),l);break;case 59:$+=";";default:if(TH(x=oG($,t,r,u,c,o,s,b,w=[],S=[],d),a),123===g)if(0===c)nG($,t,x,x,w,a,d,s,S);else switch(99===f&&110===jH($,3)?100:f){case 100:case 108:case 109:case 115:nG(e,x,x,n&&TH(oG(e,x,x,0,0,o,s,b,o,w=[],d),S),o,S,d,s,n?w:S);break;default:nG($,x,x,x,[""],S,0,s,S)}}u=c=p=0,h=y=1,b=$="",d=i;break;case 58:d=1+NH($),p=m;default:if(h<1)if(123==g)--h;else if(125==g&&0==h++&&125==VH())continue;switch($+=kH(g),g*h){case 38:y=c>0?1:($+="\f",-1);break;case 44:s[u++]=(NH($)-1)*y,y=1;break;case 64:45===WH()&&($+=XH(UH())),f=WH(),c=d=NH(b=$+=tG(qH())),g++;break;case 45:45===m&&2==NH($)&&(h=0)}}return a}function oG(e,t,r,n,o,a,i,s,l,u,c){for(var d=o-1,f=0===o?a:[""],p=RH(f),m=0,h=0,v=0;m<n;++m)for(var y=0,g=OH(e,d+1,d=$H(h=i[m])),b=e;y<p;++y)(b=EH(h>0?f[y]+" "+g:CH(g,/&\f/g,f[y])))&&(l[v++]=b);return LH(e,t,r,0===o?wH:s,l,u,c)}function aG(e,t,r){return LH(e,t,r,bH,kH(DH),OH(e,2,-2),0)}function iG(e,t,r,n){return LH(e,t,r,SH,OH(e,0,n),OH(e,n+1,-1),n)}function sG(e,t){for(var r="",n=RH(e),o=0;o<n;o++)r+=t(e[o],o,e,t)||"";return r}function lG(e,t,r,n){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case SH:return e.return=e.return||e.value;case bH:return"";case xH:return e.return=e.value+"{"+sG(e.children,n)+"}";case wH:e.value=e.props.join(",")}return NH(r=sG(e.children,n))?e.return=e.value+"{"+r+"}":""}var uG=function(e,t,r){for(var n=0,o=0;n=o,o=WH(),38===n&&12===o&&(t[r]=1),!HH(o);)UH();return KH(e,FH)},cG=function(e,t){return QH(function(e,t){var r=-1,n=44;do{switch(HH(n)){case 0:38===n&&12===WH()&&(t[r]=1),e[r]+=uG(FH-1,t,r);break;case 2:e[r]+=XH(n);break;case 4:if(44===n){e[++r]=58===WH()?"&\f":"",t[r]=e[r].length;break}default:e[r]+=kH(n)}}while(n=UH());return e}(GH(e),t))},dG=new WeakMap,fG=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,r=e.parent,n=e.column===r.column&&e.line===r.line;"rule"!==r.type;)if(!(r=r.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||dG.get(r))&&!n){dG.set(e,!0);for(var o=[],a=cG(t,o),i=r.props,s=0,l=0;s<a.length;s++)for(var u=0;u<i.length;u++,l++)e.props[l]=o[s]?a[s].replace(/&\f/g,i[u]):i[u]+" "+a[s]}}},pG=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function mG(e,t){switch(function(e,t){return 45^jH(e,0)?(((t<<2^jH(e,0))<<2^jH(e,1))<<2^jH(e,2))<<2^jH(e,3):0}(e,t)){case 5103:return gH+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return gH+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return gH+e+yH+e+vH+e+e;case 6828:case 4268:return gH+e+vH+e+e;case 6165:return gH+e+vH+"flex-"+e+e;case 5187:return gH+e+CH(e,/(\w+).+(:[^]+)/,gH+"box-$1$2"+vH+"flex-$1$2")+e;case 5443:return gH+e+vH+"flex-item-"+CH(e,/flex-|-self/,"")+e;case 4675:return gH+e+vH+"flex-line-pack"+CH(e,/align-content|flex-|-self/,"")+e;case 5548:return gH+e+vH+CH(e,"shrink","negative")+e;case 5292:return gH+e+vH+CH(e,"basis","preferred-size")+e;case 6060:return gH+"box-"+CH(e,"-grow","")+gH+e+vH+CH(e,"grow","positive")+e;case 4554:return gH+CH(e,/([^-])(transform)/g,"$1"+gH+"$2")+e;case 6187:return CH(CH(CH(e,/(zoom-|grab)/,gH+"$1"),/(image-set)/,gH+"$1"),e,"")+e;case 5495:case 3959:return CH(e,/(image-set\([^]*)/,gH+"$1$`$1");case 4968:return CH(CH(e,/(.+:)(flex-)?(.*)/,gH+"box-pack:$3"+vH+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+gH+e+e;case 4095:case 3583:case 4068:case 2532:return CH(e,/(.+)-inline(.+)/,gH+"$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(NH(e)-1-t>6)switch(jH(e,t+1)){case 109:if(45!==jH(e,t+4))break;case 102:return CH(e,/(.+:)(.+)-([^]+)/,"$1"+gH+"$2-$3$1"+yH+(108==jH(e,t+3)?"$3":"$2-$3"))+e;case 115:return~PH(e,"stretch")?mG(CH(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==jH(e,t+1))break;case 6444:switch(jH(e,NH(e)-3-(~PH(e,"!important")&&10))){case 107:return CH(e,":",":"+gH)+e;case 101:return CH(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+gH+(45===jH(e,14)?"inline-":"")+"box$3$1"+gH+"$2$3$1"+vH+"$2box$3")+e}break;case 5936:switch(jH(e,t+11)){case 114:return gH+e+vH+CH(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return gH+e+vH+CH(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return gH+e+vH+CH(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return gH+e+vH+e+e}return e}var hG=[function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case SH:e.return=mG(e.value,e.length);break;case xH:return sG([BH(e,{value:CH(e.value,"@","@"+gH)})],n);case wH:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return sG([BH(e,{props:[CH(t,/:(read-\w+)/,":-moz-$1")]})],n);case"::placeholder":return sG([BH(e,{props:[CH(t,/:(plac\w+)/,":"+gH+"input-$1")]}),BH(e,{props:[CH(t,/:(plac\w+)/,":-moz-$1")]}),BH(e,{props:[CH(t,/:(plac\w+)/,vH+"input-$1")]})],n)}return""}))}}],vG=function(e){var t=e.key;if("css"===t){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var n,o,a=e.stylisPlugins||hG,i={},s=[];n=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),r=1;r<t.length;r++)i[t[r]]=!0;s.push(e)}));var l,u,c=[lG,(u=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&u(e)})],d=function(e){var t=RH(e);return function(r,n,o,a){for(var i="",s=0;s<t;s++)i+=e[s](r,n,o,a)||"";return i}}([fG,pG].concat(a,c));o=function(e,t,r,n){l=r,function(e){sG(rG(e),d)}(e?e+"{"+t.styles+"}":t.styles),n&&(f.inserted[t.name]=!0)};var f={key:t,sheet:new hH({key:t,container:n,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:o};return f.sheet.hydrate(s),f},yG={},gG={get exports(){return yG},set exports(e){yG=e}},bG={},wG="function"==typeof Symbol&&Symbol.for,SG=wG?Symbol.for("react.element"):60103,xG=wG?Symbol.for("react.portal"):60106,$G=wG?Symbol.for("react.fragment"):60107,kG=wG?Symbol.for("react.strict_mode"):60108,_G=wG?Symbol.for("react.profiler"):60114,EG=wG?Symbol.for("react.provider"):60109,CG=wG?Symbol.for("react.context"):60110,PG=wG?Symbol.for("react.async_mode"):60111,jG=wG?Symbol.for("react.concurrent_mode"):60111,OG=wG?Symbol.for("react.forward_ref"):60112,NG=wG?Symbol.for("react.suspense"):60113,RG=wG?Symbol.for("react.suspense_list"):60120,TG=wG?Symbol.for("react.memo"):60115,AG=wG?Symbol.for("react.lazy"):60116,IG=wG?Symbol.for("react.block"):60121,MG=wG?Symbol.for("react.fundamental"):60117,FG=wG?Symbol.for("react.responder"):60118,DG=wG?Symbol.for("react.scope"):60119;function zG(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case SG:switch(e=e.type){case PG:case jG:case $G:case _G:case kG:case NG:return e;default:switch(e=e&&e.$$typeof){case CG:case OG:case AG:case TG:case EG:return e;default:return t}}case xG:return t}}}function LG(e){return zG(e)===jG}bG.AsyncMode=PG,bG.ConcurrentMode=jG,bG.ContextConsumer=CG,bG.ContextProvider=EG,bG.Element=SG,bG.ForwardRef=OG,bG.Fragment=$G,bG.Lazy=AG,bG.Memo=TG,bG.Portal=xG,bG.Profiler=_G,bG.StrictMode=kG,bG.Suspense=NG,bG.isAsyncMode=function(e){return LG(e)||zG(e)===PG},bG.isConcurrentMode=LG,bG.isContextConsumer=function(e){return zG(e)===CG},bG.isContextProvider=function(e){return zG(e)===EG},bG.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===SG},bG.isForwardRef=function(e){return zG(e)===OG},bG.isFragment=function(e){return zG(e)===$G},bG.isLazy=function(e){return zG(e)===AG},bG.isMemo=function(e){return zG(e)===TG},bG.isPortal=function(e){return zG(e)===xG},bG.isProfiler=function(e){return zG(e)===_G},bG.isStrictMode=function(e){return zG(e)===kG},bG.isSuspense=function(e){return zG(e)===NG},bG.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===$G||e===jG||e===_G||e===kG||e===NG||e===RG||"object"==typeof e&&null!==e&&(e.$$typeof===AG||e.$$typeof===TG||e.$$typeof===EG||e.$$typeof===CG||e.$$typeof===OG||e.$$typeof===MG||e.$$typeof===FG||e.$$typeof===DG||e.$$typeof===IG)},bG.typeOf=zG,function(e){e.exports=bG}(gG);var BG=yG,VG={};VG[BG.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},VG[BG.Memo]={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0};var UG=function(e,t,r){var n=e.key+"-"+t.name;!1===r&&void 0===e.registered[n]&&(e.registered[n]=t.styles)},WG=function(e,t,r){UG(e,t,r);var n=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+n:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}};var qG={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},KG=/[A-Z]|^ms/g,HG=/_EMO_([^_]+?)_([^]*?)_EMO_/g,GG=function(e){return 45===e.charCodeAt(1)},QG=function(e){return null!=e&&"boolean"!=typeof e},XG=fH((function(e){return GG(e)?e:e.replace(KG,"-$&").toLowerCase()})),YG=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(HG,(function(e,t,r){return ZG={name:t,styles:r,next:ZG},t}))}return 1===qG[e]||GG(e)||"number"!=typeof t||0===t?t:t+"px"};function JG(e,t,r){if(null==r)return"";if(void 0!==r.__emotion_styles)return r;switch(typeof r){case"boolean":return"";case"object":if(1===r.anim)return ZG={name:r.name,styles:r.styles,next:ZG},r.name;if(void 0!==r.styles){var n=r.next;if(void 0!==n)for(;void 0!==n;)ZG={name:n.name,styles:n.styles,next:ZG},n=n.next;return r.styles+";"}return function(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o++)n+=JG(e,t,r[o])+";";else for(var a in r){var i=r[a];if("object"!=typeof i)null!=t&&void 0!==t[i]?n+=a+"{"+t[i]+"}":QG(i)&&(n+=XG(a)+":"+YG(a,i)+";");else if(!Array.isArray(i)||"string"!=typeof i[0]||null!=t&&void 0!==t[i[0]]){var s=JG(e,t,i);switch(a){case"animation":case"animationName":n+=XG(a)+":"+s+";";break;default:n+=a+"{"+s+"}"}}else for(var l=0;l<i.length;l++)QG(i[l])&&(n+=XG(a)+":"+YG(a,i[l])+";")}return n}(e,t,r);case"function":if(void 0!==e){var o=ZG,a=r(e);return ZG=o,JG(e,t,a)}}if(null==t)return r;var i=t[r];return void 0!==i?i:r}var ZG,eQ=/label:\s*([^\s;\n{]+)\s*(;|$)/g,tQ=function(e,t,r){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var n=!0,o="";ZG=void 0;var a=e[0];null==a||void 0===a.raw?(n=!1,o+=JG(r,t,a)):o+=a[0];for(var i=1;i<e.length;i++)o+=JG(r,t,e[i]),n&&(o+=a[i]);eQ.lastIndex=0;for(var s,l="";null!==(s=eQ.exec(o));)l+="-"+s[1];var u=function(e){for(var t,r=0,n=0,o=e.length;o>=4;++n,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))+(59797*(t>>>16)<<16),r=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&r)+(59797*(r>>>16)<<16);switch(o){case 3:r^=(255&e.charCodeAt(n+2))<<16;case 2:r^=(255&e.charCodeAt(n+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(n)))+(59797*(r>>>16)<<16)}return(((r=1540483477*(65535&(r^=r>>>13))+(59797*(r>>>16)<<16))^r>>>15)>>>0).toString(36)}(o)+l;return{name:u,styles:o,next:ZG}},rQ=!!V.useInsertionEffect&&V.useInsertionEffect,nQ=rQ||function(e){return e()},oQ=rQ||a.useLayoutEffect,aQ=a.createContext("undefined"!=typeof HTMLElement?vG({key:"css"}):null);aQ.Provider;var iQ=function(e){return a.forwardRef((function(t,r){var n=a.useContext(aQ);return e(t,n,r)}))},sQ=a.createContext({}),lQ=iQ((function(e,t){var r=e.styles,n=tQ([r],void 0,a.useContext(sQ)),o=a.useRef();return oQ((function(){var e=t.key+"-global",r=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),a=!1,i=document.querySelector('style[data-emotion="'+e+" "+n.name+'"]');return t.sheet.tags.length&&(r.before=t.sheet.tags[0]),null!==i&&(a=!0,i.setAttribute("data-emotion",e),r.hydrate([i])),o.current=[r,a],function(){r.flush()}}),[t]),oQ((function(){var e=o.current,r=e[0];if(e[1])e[1]=!1;else{if(void 0!==n.next&&WG(t,n.next,!0),r.tags.length){var a=r.tags[r.tags.length-1].nextElementSibling;r.before=a,r.flush()}t.insert("",n,r,!1)}}),[t,n.name]),null}));function uQ(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return tQ(t)}var cQ=function(){var e=uQ.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}},dQ=mH,fQ=function(e){return"theme"!==e},pQ=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?dQ:fQ},mQ=function(e,t,r){var n;if(t){var o=t.shouldForwardProp;n=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!=typeof n&&r&&(n=e.__emotion_forwardProp),n},hQ=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return UG(t,r,n),nQ((function(){return WG(t,r,n)})),null},vQ=function e(t,r){var n,o,i=t.__emotion_real===t,s=i&&t.__emotion_base||t;void 0!==r&&(n=r.label,o=r.target);var l=mQ(t,r,i),u=l||pQ(s),c=!u("as");return function(){var d=arguments,f=i&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==n&&f.push("label:"+n+";"),null==d[0]||void 0===d[0].raw)f.push.apply(f,d);else{f.push(d[0][0]);for(var p=d.length,m=1;m<p;m++)f.push(d[m],d[0][m])}var h=iQ((function(e,t,r){var n,i,d,p,m=c&&e.as||s,h="",v=[],y=e;if(null==e.theme){for(var g in y={},e)y[g]=e[g];y.theme=a.useContext(sQ)}"string"==typeof e.className?(n=t.registered,i=v,d=e.className,p="",d.split(" ").forEach((function(e){void 0!==n[e]?i.push(n[e]+";"):p+=e+" "})),h=p):null!=e.className&&(h=e.className+" ");var b=tQ(f.concat(v),t.registered,y);h+=t.key+"-"+b.name,void 0!==o&&(h+=" "+o);var w=c&&void 0===l?pQ(m):u,S={};for(var x in e)c&&"as"===x||w(x)&&(S[x]=e[x]);return S.className=h,S.ref=r,a.createElement(a.Fragment,null,a.createElement(hQ,{cache:t,serialized:b,isStringTag:"string"==typeof m}),a.createElement(m,S))}));return h.displayName=void 0!==n?n:"Styled("+("string"==typeof s?s:s.displayName||s.name||"Component")+")",h.defaultProps=t.defaultProps,h.__emotion_real=h,h.__emotion_base=s,h.__emotion_styles=f,h.__emotion_forwardProp=l,Object.defineProperty(h,"toString",{value:function(){return"."+o}}),h.withComponent=function(t,n){return e(t,EK({},r,n,{shouldForwardProp:mQ(h,n,!0)})).apply(void 0,f)},h}}.bind();function yQ(e){const{styles:t,defaultTheme:r={}}=e,n="function"==typeof t?e=>{return t(null==(n=e)||0===Object.keys(n).length?r:e);var n}:t;return SO.jsx(lQ,{styles:n})}
|
|
56
|
+
deps: ${n}}`};const o={keyword:"dependencies",type:"object",schemaType:"object",error:e.error,code(e){const[t,r]=function({schema:e}){const t={},r={};for(const n in e){if("__proto__"===n)continue;(Array.isArray(e[n])?t:r)[n]=e[n]}return[t,r]}(e);a(e,t),i(e,r)}};function a(e,r=e.schema){const{gen:o,data:a,it:i}=e;if(0===Object.keys(r).length)return;const s=o.let("missing");for(const l in r){const u=r[l];if(0===u.length)continue;const c=(0,n.propertyInData)(o,a,l,i.opts.ownProperties);e.setParams({property:l,depsCount:u.length,deps:u.join(", ")}),i.allErrors?o.if(c,(()=>{for(const t of u)(0,n.checkReportMissingProp)(e,t)})):(o.if(t._`${c} && (${(0,n.checkMissingProp)(e,u,s)})`),(0,n.reportMissingProp)(e,s),o.else())}}function i(e,t=e.schema){const{gen:o,data:a,keyword:i,it:s}=e,l=o.name("valid");for(const u in t)(0,r.alwaysValidSchema)(s,t[u])||(o.if((0,n.propertyInData)(o,a,u,s.opts.ownProperties),(()=>{const t=e.subschema({keyword:i,schemaProp:u},l);e.mergeValidEvaluated(t,l)}),(()=>o.var(l,!0))),e.ok(l))}e.validatePropertyDeps=a,e.validateSchemaDeps=i,e.default=o}(bF);var wF={};Object.defineProperty(wF,"__esModule",{value:!0});const SF=sA,xF=cA,_F={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:e})=>SF._`{propertyName: ${e.propertyName}}`},code(e){const{gen:t,schema:r,data:n,it:o}=e;if((0,xF.alwaysValidSchema)(o,r))return;const a=t.name("valid");t.forIn("key",n,(r=>{e.setParams({propertyName:r}),e.subschema({keyword:"propertyNames",data:r,dataTypes:["string"],propertyName:r,compositeRule:!0},a),t.if((0,SF.not)(a),(()=>{e.error(!0),o.allErrors||t.break()}))})),e.ok(a)}};wF.default=_F;var $F={};Object.defineProperty($F,"__esModule",{value:!0});const kF=OA(),EF=sA,jF=mA(),CF=cA,OF={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:e})=>EF._`{additionalProperty: ${e.additionalProperty}}`},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,"all"!==l.removeAdditional&&(0,CF.alwaysValidSchema)(i,r))return;const u=(0,kF.allSchemaProperties)(n.properties),c=(0,kF.allSchemaProperties)(n.patternProperties);function d(e){t.code(EF._`delete ${o}[${e}]`)}function f(n){if("all"===l.removeAdditional||l.removeAdditional&&!1===r)d(n);else{if(!1===r)return e.setParams({additionalProperty:n}),e.error(),void(s||t.break());if("object"==typeof r&&!(0,CF.alwaysValidSchema)(i,r)){const r=t.name("valid");"failing"===l.removeAdditional?(p(n,r,!1),t.if((0,EF.not)(r),(()=>{e.reset(),d(n)}))):(p(n,r),s||t.if((0,EF.not)(r),(()=>t.break())))}}}function p(t,r,n){const o={keyword:"additionalProperties",dataProp:t,dataPropType:CF.Type.Str};!1===n&&Object.assign(o,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(o,r)}t.forIn("key",o,(r=>{u.length||c.length?t.if(function(r){let o;if(u.length>8){const e=(0,CF.schemaRefOrVal)(i,n.properties,"properties");o=(0,kF.isOwnProperty)(t,e,r)}else o=u.length?(0,EF.or)(...u.map((e=>EF._`${r} === ${e}`))):EF.nil;return c.length&&(o=(0,EF.or)(o,...c.map((t=>EF._`${(0,kF.usePattern)(e,t)}.test(${r})`)))),(0,EF.not)(o)}(r),(()=>f(r))):f(r)})),e.ok(EF._`${a} === ${jF.default.errors}`)}};$F.default=OF;var PF={};Object.defineProperty(PF,"__esModule",{value:!0});const NF=YA(),RF=OA(),TF=cA,AF=$F,IF={keyword:"properties",type:"object",schemaType:"object",code(e){const{gen:t,schema:r,parentSchema:n,data:o,it:a}=e;"all"===a.opts.removeAdditional&&void 0===n.additionalProperties&&AF.default.code(new NF.KeywordCxt(a,AF.default,"additionalProperties"));const i=(0,RF.allSchemaProperties)(r);for(const e of i)a.definedProperties.add(e);a.opts.unevaluated&&i.length&&!0!==a.props&&(a.props=TF.mergeEvaluated.props(t,(0,TF.toHash)(i),a.props));const s=i.filter((e=>!(0,TF.alwaysValidSchema)(a,r[e])));if(0===s.length)return;const l=t.name("valid");for(const r of s)u(r)?c(r):(t.if((0,RF.propertyInData)(t,o,r,a.opts.ownProperties)),c(r),a.allErrors||t.else().var(l,!0),t.endIf()),e.it.definedProperties.add(r),e.ok(l);function u(e){return a.opts.useDefaults&&!a.compositeRule&&void 0!==r[e].default}function c(t){e.subschema({keyword:"properties",schemaProp:t,dataProp:t},l)}}};PF.default=IF;var MF={};Object.defineProperty(MF,"__esModule",{value:!0});const FF=OA(),zF=sA,DF=cA,LF=cA,BF={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,FF.allSchemaProperties)(r),l=s.filter((e=>(0,DF.alwaysValidSchema)(a,r[e])));if(0===s.length||l.length===s.length&&(!a.opts.unevaluated||!0===a.props))return;const u=i.strictSchema&&!i.allowMatchingProperties&&o.properties,c=t.name("valid");!0===a.props||a.props instanceof zF.Name||(a.props=(0,LF.evaluatedPropsToName)(t,a.props));const{props:d}=a;function f(e){for(const t in u)new RegExp(e).test(t)&&(0,DF.checkStrictMode)(a,`property ${t} matches pattern ${e} (use allowMatchingProperties)`)}function p(r){t.forIn("key",n,(n=>{t.if(zF._`${(0,FF.usePattern)(e,r)}.test(${n})`,(()=>{const o=l.includes(r);o||e.subschema({keyword:"patternProperties",schemaProp:r,dataProp:n,dataPropType:LF.Type.Str},c),a.opts.unevaluated&&!0!==d?t.assign(zF._`${d}[${n}]`,!0):o||a.allErrors||t.if((0,zF.not)(c),(()=>t.break()))}))}))}!function(){for(const e of s)u&&f(e),a.allErrors?p(e):(t.var(c,!0),p(e),t.if(c))}()}};MF.default=BF;var VF={};Object.defineProperty(VF,"__esModule",{value:!0});const UF=cA,WF={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){const{gen:t,schema:r,it:n}=e;if((0,UF.alwaysValidSchema)(n,r))return void e.fail();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"}};VF.default=WF;var qF={};Object.defineProperty(qF,"__esModule",{value:!0});const KF={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:OA().validateUnion,error:{message:"must match a schema in anyOf"}};qF.default=KF;var HF={};Object.defineProperty(HF,"__esModule",{value:!0});const GF=sA,QF=cA,JF={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:e})=>GF._`{passingSchemas: ${e.passing}}`},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((function(){a.forEach(((r,n)=>{let a;(0,QF.alwaysValidSchema)(o,r)?t.var(l,!0):a=e.subschema({keyword:"oneOf",schemaProp:n,compositeRule:!0},l),n>0&&t.if(GF._`${l} && ${i}`).assign(i,!1).assign(s,GF._`[${s}, ${n}]`).else(),t.if(l,(()=>{t.assign(i,!0),t.assign(s,n),a&&e.mergeEvaluated(a,GF.Name)}))}))})),e.result(i,(()=>e.reset()),(()=>e.error(!0)))}};HF.default=JF;var YF={};Object.defineProperty(YF,"__esModule",{value:!0});const XF=cA,ZF={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(((t,r)=>{if((0,XF.alwaysValidSchema)(n,t))return;const a=e.subschema({keyword:"allOf",schemaProp:r},o);e.ok(o),e.mergeEvaluated(a)}))}};YF.default=ZF;var ez={};Object.defineProperty(ez,"__esModule",{value:!0});const tz=sA,rz=cA,nz={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:e})=>tz.str`must match "${e.ifClause}" schema`,params:({params:e})=>tz._`{failingKeyword: ${e.ifClause}}`},code(e){const{gen:t,parentSchema:r,it:n}=e;void 0===r.then&&void 0===r.else&&(0,rz.checkStrictMode)(n,'"if" without "then" and "else" is ignored');const o=oz(n,"then"),a=oz(n,"else");if(!o&&!a)return;const i=t.let("valid",!0),s=t.name("_valid");if(function(){const t=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},s);e.mergeEvaluated(t)}(),e.reset(),o&&a){const r=t.let("ifClause");e.setParams({ifClause:r}),t.if(s,l("then",r),l("else",r))}else o?t.if(s,l("then")):t.if((0,tz.not)(s),l("else"));function l(r,n){return()=>{const o=e.subschema({keyword:r},s);t.assign(i,s),e.mergeValidEvaluated(o,i),n?t.assign(n,tz._`${r}`):e.setParams({ifClause:r})}}e.pass(i,(()=>e.error(!0)))}};function oz(e,t){const r=e.schema[t];return void 0!==r&&!(0,rz.alwaysValidSchema)(e,r)}ez.default=nz;var az={};Object.defineProperty(az,"__esModule",{value:!0});const iz=cA,sz={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){void 0===t.if&&(0,iz.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};az.default=sz,Object.defineProperty(GM,"__esModule",{value:!0});const lz=QM,uz=eF,cz=tF,dz=uF,fz=mF,pz=bF,hz=wF,mz=$F,vz=PF,gz=MF,yz=VF,bz=qF,wz=HF,Sz=YF,xz=ez,_z=az;GM.default=function(e=!1){const t=[yz.default,bz.default,wz.default,Sz.default,xz.default,_z.default,hz.default,mz.default,pz.default,vz.default,gz.default];return e?t.push(uz.default,dz.default):t.push(lz.default,cz.default),t.push(fz.default),t};var $z={},kz={};Object.defineProperty(kz,"__esModule",{value:!0});const Ez=sA,jz={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:e})=>Ez.str`must match format "${e}"`,params:({schemaCode:e})=>Ez._`{format: ${e}}`},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;l.validateFormats&&(o?function(){const o=r.scopeValue("formats",{ref:d.formats,code:l.code.formats}),a=r.const("fDef",Ez._`${o}[${i}]`),s=r.let("fType"),u=r.let("format");r.if(Ez._`typeof ${a} == "object" && !(${a} instanceof RegExp)`,(()=>r.assign(s,Ez._`${a}.type || "string"`).assign(u,Ez._`${a}.validate`)),(()=>r.assign(s,Ez._`"string"`).assign(u,a))),e.fail$data((0,Ez.or)(!1===l.strictSchema?Ez.nil:Ez._`${i} && !${u}`,function(){const e=c.$async?Ez._`(${a}.async ? await ${u}(${n}) : ${u}(${n}))`:Ez._`${u}(${n})`,r=Ez._`(typeof ${u} == "function" ? ${e} : ${u}.test(${n}))`;return Ez._`${u} && ${u} !== true && ${s} === ${t} && !${r}`}()))}():function(){const o=d.formats[a];if(!o)return void function(){if(!1===l.strictSchema)return void d.logger.warn(e());throw new Error(e());function e(){return`unknown format "${a}" ignored in schema at path "${u}"`}}();if(!0===o)return;const[i,s,f]=function(e){const t=e instanceof RegExp?(0,Ez.regexpCode)(e):l.code.formats?Ez._`${l.code.formats}${(0,Ez.getProperty)(a)}`:void 0,n=r.scopeValue("formats",{key:a,ref:e,code:t});if("object"==typeof e&&!(e instanceof RegExp))return[e.type||"string",e.validate,Ez._`${n}.validate`];return["string",e,n]}(o);i===t&&e.pass(function(){if("object"==typeof o&&!(o instanceof RegExp)&&o.async){if(!c.$async)throw new Error("async format in sync schema");return Ez._`await ${f}(${n})`}return"function"==typeof s?Ez._`${f}(${n})`:Ez._`${f}.test(${n})`}())}())}};kz.default=jz,Object.defineProperty($z,"__esModule",{value:!0});const Cz=[kz.default];$z.default=Cz;var Oz={};Object.defineProperty(Oz,"__esModule",{value:!0}),Oz.contentVocabulary=Oz.metadataVocabulary=void 0,Oz.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],Oz.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"],Object.defineProperty(xI,"__esModule",{value:!0});const Pz=zI,Nz=GM,Rz=$z,Tz=Oz,Az=[_I.default,Pz.default,(0,Nz.default)(),Rz.default,Tz.metadataVocabulary,Tz.contentVocabulary];xI.default=Az;var Iz={},Mz={};!function(e){var t;Object.defineProperty(e,"__esModule",{value:!0}),e.DiscrError=void 0,(t=e.DiscrError||(e.DiscrError={})).Tag="tag",t.Mapping="mapping"}(Mz),Object.defineProperty(Iz,"__esModule",{value:!0});const Fz=sA,zz=Mz,Dz=oI,Lz=cA,Bz={keyword:"discriminator",type:"object",schemaType:"object",error:{message:({params:{discrError:e,tagName:t}})=>e===zz.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:t,tagName:r}})=>Fz._`{error: ${e}, tag: ${r}, tagValue: ${t}}`},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("string"!=typeof s)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",Fz._`${r}${(0,Fz.getProperty)(s)}`);function c(r){const n=t.name("valid"),o=e.subschema({keyword:"oneOf",schemaProp:r},n);return e.mergeEvaluated(o,Fz.Name),n}t.if(Fz._`typeof ${u} == "string"`,(()=>function(){const r=function(){var e;const t={},r=l(o);let n=!0;for(let t=0;t<i.length;t++){let o=i[t];(null==o?void 0:o.$ref)&&!(0,Lz.schemaHasRulesButRef)(o,a.self.RULES)&&(o=Dz.resolveRef.call(a.self,a.schemaEnv.root,a.baseId,null==o?void 0:o.$ref),o instanceof Dz.SchemaEnv&&(o=o.schema));const c=null===(e=null==o?void 0:o.properties)||void 0===e?void 0:e[s];if("object"!=typeof c)throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${s}"`);n=n&&(r||l(o)),u(c,t)}if(!n)throw new Error(`discriminator: "${s}" must be required`);return t;function l({required:e}){return Array.isArray(e)&&e.includes(s)}function u(e,t){if(e.const)c(e.const,t);else{if(!e.enum)throw new Error(`discriminator: "properties/${s}" must have "const" or "enum"`);for(const r of e.enum)c(r,t)}}function c(e,r){if("string"!=typeof e||e in t)throw new Error(`discriminator: "${s}" values must be unique strings`);t[e]=r}}();t.if(!1);for(const e in r)t.elseIf(Fz._`${u} === ${e}`),t.assign(l,c(r[e]));t.else(),e.error(!1,{discrError:zz.DiscrError.Mapping,tag:u,tagName:s}),t.endIf()}()),(()=>e.error(!1,{discrError:zz.DiscrError.Tag,tag:u,tagName:s}))),e.ok(l)}};Iz.default=Bz;var Vz={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://json-schema.org/draft-07/schema#",title:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0};!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=nA,n=xI,o=Iz,a=Vz,i=["/properties"],s="http://json-schema.org/draft-07/schema";class l extends r.default{_addVocabularies(){super._addVocabularies(),n.default.forEach((e=>this.addVocabulary(e))),this.opts.discriminator&&this.addKeyword(o.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const e=this.opts.$data?this.$dataMetaSchema(a,i):a;this.addMetaSchema(e,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=YA();Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return u.KeywordCxt}});var c=sA;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=eI();Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return d.default}});var f=nI();Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return f.default}})}(rA,tA),function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatLimitDefinition=void 0;const t=tA,r=sA,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:e,schemaCode:t})=>r.str`should be ${o[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>r._`{comparison: ${o[e].okStr}, limit: ${t}}`};e.formatLimitDefinition={keyword:Object.keys(o),type:"string",schemaType:"string",$data:!0,error:a,code(e){const{gen:n,data:a,schemaCode:i,keyword:s,it:l}=e,{opts:u,self:c}=l;if(!u.validateFormats)return;const d=new t.KeywordCxt(l,c.RULES.all.format.definition,"format");function f(e){return r._`${e}.compare(${a}, ${i}) ${o[s].fail} 0`}d.$data?function(){const t=n.scopeValue("formats",{ref:c.formats,code:u.code.formats}),o=n.const("fmt",r._`${t}[${d.schemaCode}]`);e.fail$data(r.or(r._`typeof ${o} != "object"`,r._`${o} instanceof RegExp`,r._`typeof ${o}.compare != "function"`,f(o)))}():function(){const t=d.schema,o=c.formats[t];if(!o||!0===o)return;if("object"!=typeof o||o instanceof RegExp||"function"!=typeof o.compare)throw new Error(`"${s}": format "${t}" does not define "compare" function`);const a=n.scopeValue("formats",{key:t,ref:o,code:u.code.formats?r._`${u.code.formats}${r.getProperty(t)}`:void 0});e.fail$data(f(a))}()},dependencies:["format"]};e.default=t=>(t.addKeyword(e.formatLimitDefinition),t)}(eA),function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const r=ZT,n=eA,o=sA,a=new o.Name("fullFormats"),i=new o.Name("fastFormats"),s=(e,t={keywords:!0})=>{if(Array.isArray(t))return l(e,t,r.fullFormats,a),e;const[o,s]="fast"===t.mode?[r.fastFormats,i]:[r.fullFormats,a];return l(e,t.formats||r.formatNames,o,s),t.keywords&&n.default(e),e};function l(e,t,r,n){var a,i;null!==(a=(i=e.opts.code).formats)&&void 0!==a||(i.formats=o._`require("ajv-formats/dist/formats").${n}`);for(const n of t)e.addFormat(n,r[n])}s.get=(e,t="full")=>{const n=("fast"===t?r.fastFormats:r.fullFormats)[e];if(!n)throw new Error(`Unknown format "${e}"`);return n},e.exports=t=s,Object.defineProperty(t,"__esModule",{value:!0}),t.default=s}(XT,YT);var Uz=n(YT);const Wz={allErrors:!0,multipleOfPrecision:8,strict:!1,verbose:!0},qz=/^(#?([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*\)))$/,Kz=/^data:([a-z]+\/[a-z0-9-+.]+)?;(?:name=(.*);)?base64,(.*)$/;function Hz(e,t,r,n,o,a,i){const{validationError:s}=t;let l=function(e=[],t){return e.map((e=>{const{instancePath:r,keyword:n,params:o,schemaPath:a,parentSchema:i}=e,s=ov(e,["instancePath","keyword","params","schemaPath","parentSchema"]);let{message:l=""}=s,u=r.replace(/\//g,"."),c=`${u} ${l}`.trim();if("missingProperty"in o){u=u?`${u}.${o.missingProperty}`:o.missingProperty;const e=o.missingProperty,r=_d(Lv(t,`${u.replace(/^\./,"")}`)).title;if(r)l=l.replace(e,r);else{const t=Lv(i,[md,e,"title"]);t&&(l=l.replace(e,t))}c=l}else{const e=_d(Lv(t,`${u.replace(/^\./,"")}`)).title;if(e)c=`'${e}' ${l}`.trim();else{const e=null==i?void 0:i.title;e&&(c=`'${e}' ${l}`.trim())}}return{name:n,property:u,message:l,params:o,stack:c,schemaPath:a}}))}(t.errors,i);s&&(l=[...l,{stack:s.message}]),"function"==typeof a&&(l=a(l,i));let u=function(e){const t=new Bj;return e.length&&e.forEach((e=>{const{property:r,message:n}=e,o="."===r?[]:GC(r);o.length>0&&""===o[0]&&o.splice(0,1),n&&t.addErrors(n,o)})),t.ErrorSchema}(l);if(s&&(u=Object.assign(Object.assign({},u),{$schema:{__errors:[s.message]}})),"function"!=typeof o)return{errors:l,errorSchema:u};const c=_j(e,n,r,n,!0);return YC({errors:l,errorSchema:u},QC(o(c,Zd(c),i)))}class Gz{constructor(e,t){const{additionalMetaSchemas:r,customFormats:n,ajvOptionsOverrides:o,ajvFormatOptions:a,AjvClass:i}=e;this.ajv=function(e,t,r={},n,o=JT){const a=new o(Object.assign(Object.assign({},Wz),r));return n?Uz(a,n):!1!==n&&Uz(a),a.addFormat("data-url",Kz),a.addFormat("color",qz),a.addKeyword(td),a.addKeyword(bd),Array.isArray(e)&&a.addMetaSchema(e),xf(t)&&Object.keys(t).forEach((e=>{a.addFormat(e,t[e])})),a}(r,n,o,a,i),this.localizer=t}toErrorList(e,t=[]){return DC(e,t)}rawValidation(e,t){let r,n,o;e[cd]&&(n=this.ajv.getSchema(e[cd]));try{void 0===n&&(n=this.ajv.compile(e)),n(t)}catch(e){r=e}return n&&("function"==typeof this.localizer&&this.localizer(n.errors),o=n.errors||void 0,n.errors=null),{errors:o,validationError:r}}validateFormData(e,t,r,n,o){return Hz(this,this.rawValidation(t,e),e,t,r,n,o)}isValid(e,t,r){var n,o;const a=null!==(n=r[cd])&&void 0!==n?n:wd;try{void 0===this.ajv.getSchema(a)&&this.ajv.addSchema(r,a);const n=XC(e),i=null!==(o=n[cd])&&void 0!==o?o:function(e){const t=new Set;return JSON.stringify(e,((e,r)=>(t.add(e),r))),function(e){let t=0;for(let r=0;r<e.length;r+=1)t=(t<<5)-t+e.charCodeAt(r),t&=t;return t.toString(16)}(JSON.stringify(e,Array.from(t).sort()))}(n);let s;s=this.ajv.getSchema(i),void 0===s&&(s=this.ajv.addSchema(n,i).getSchema(i)||this.ajv.compile(n));return s(t)}catch(e){return console.warn("Error encountered compiling schema:",e),!1}finally{this.ajv.removeSchema(a)}}}var Qz=function(e={},t){return new Gz(e,t)}(),Jz=zv,Yz=TS,Xz=Tv;var Zz=function(e,t,r){for(var n=-1,o=t.length,a={};++n<o;){var i=t[n],s=Jz(e,i);r(s,i)&&Yz(a,Xz(i,e),s)}return a},eD=Zz,tD=Aw;var rD=function(e,t){return eD(e,t,(function(t,r){return tD(e,r)}))},nD=zb((function(e,t){return null==e?{}:rD(e,t)}));let oD=(e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce(((e,t)=>e+=(t&=63)<36?t.toString(36):t<62?(t-26).toString(36).toUpperCase():t>62?"-":"_"),"");function aD(){return oD()}function iD(e){return Array.isArray(e)?e.map((e=>({key:aD(),item:e}))):[]}function sD(e){return Array.isArray(e)?e.map((e=>e.item)):[]}class lD extends a.Component{constructor(e){super(e),this._getNewFormDataRow=()=>{const{schema:e,registry:t}=this.props,{schemaUtils:r}=t;let n=e.items;return hj(e)&&function(e){return!0===e.additionalItems&&console.warn("additionalItems=true is currently not supported"),Zc(e.additionalItems)}(e)&&(n=e.additionalItems),r.getDefaultFormState(n)},this.onAddClick=e=>{this._handleAddClick(e)},this.onAddIndexClick=e=>t=>{this._handleAddClick(t,e)},this.onCopyIndexClick=e=>t=>{t&&t.preventDefault();const{onChange:r}=this.props,{keyedFormData:n}=this.state,o={key:aD(),item:GS(n[e].item)},a=[...n];void 0!==e?a.splice(e+1,0,o):a.push(o),this.setState({keyedFormData:a,updatedKeyedFormData:!0},(()=>r(sD(a))))},this.onDropIndexClick=e=>t=>{t&&t.preventDefault();const{onChange:r,errorSchema:n}=this.props,{keyedFormData:o}=this.state;let a;if(n){a={};for(const t in n){const r=parseInt(t);r<e?IS(a,[r],n[t]):r>e&&IS(a,[r-1],n[t])}}const i=o.filter(((t,r)=>r!==e));this.setState({keyedFormData:i,updatedKeyedFormData:!0},(()=>r(sD(i),a)))},this.onReorderClick=(e,t)=>r=>{r&&(r.preventDefault(),r.currentTarget.blur());const{onChange:n,errorSchema:o}=this.props;let a;if(o){a={};for(const r in o){const n=parseInt(r);n==e?IS(a,[t],o[e]):n==t?IS(a,[e],o[t]):IS(a,[r],o[n])}}const{keyedFormData:i}=this.state;const s=function(){const r=i.slice();return r.splice(e,1),r.splice(t,0,i[e]),r}();this.setState({keyedFormData:s},(()=>n(sD(s),a)))},this.onChangeForIndex=e=>(t,r,n)=>{const{formData:o,onChange:a,errorSchema:i}=this.props,s=(Array.isArray(o)?o:[]).map(((r,n)=>e===n?void 0===t?null:t:r));a(s,i&&i&&Object.assign(Object.assign({},i),{[e]:r}),n)},this.onSelectChange=e=>{const{onChange:t,idSchema:r}=this.props;t(e,void 0,r&&r.$id)};const{formData:t=[]}=e,r=iD(t);this.state={keyedFormData:r,updatedKeyedFormData:!1}}static getDerivedStateFromProps(e,t){if(t.updatedKeyedFormData)return{updatedKeyedFormData:!1};const r=Array.isArray(e.formData)?e.formData:[],n=t.keyedFormData||[];return{keyedFormData:r.length===n.length?n.map(((e,t)=>({key:e.key,item:r[t]}))):iD(r)}}get itemTitle(){const{schema:e,registry:t}=this.props,{translateString:r}=t;return Lv(e,[fd,"title"],Lv(e,[fd,"description"],r(HC.ArrayItemTitle)))}isItemRequired(e){return Array.isArray(e.type)?!e.type.includes("null"):"null"!==e.type}canAddItem(e){const{schema:t,uiSchema:r,registry:n}=this.props;let{addable:o}=_d(r,n.globalUiOptions);return!1!==o&&(o=void 0===t.maxItems||e.length<t.maxItems),o}_handleAddClick(e,t){e&&e.preventDefault();const{onChange:r}=this.props,{keyedFormData:n}=this.state,o={key:aD(),item:this._getNewFormDataRow()},a=[...n];void 0!==t?a.splice(t,0,o):a.push(o),this.setState({keyedFormData:a,updatedKeyedFormData:!0},(()=>r(sD(a))))}render(){const{schema:e,uiSchema:t,idSchema:r,registry:n}=this.props,{schemaUtils:o,translateString:a}=n;if(!(fd in e)){const o=Kj("UnsupportedFieldTemplate",n,_d(t));return Hj.jsx(o,{schema:e,idSchema:r,reason:a(HC.MissingItems),registry:n})}return o.isMultiSelect(e)?this.renderMultiSelect():$j(t)?this.renderCustomWidget():hj(e)?this.renderFixedArray():o.isFilesArray(e,t)?this.renderFiles():this.renderNormalArray()}renderNormalArray(){const{schema:e,uiSchema:t={},errorSchema:r,idSchema:n,name:o,disabled:a=!1,readonly:i=!1,autofocus:s=!1,required:l=!1,registry:u,onBlur:c,onFocus:d,idPrefix:f,idSeparator:p="_",rawErrors:h}=this.props,{keyedFormData:m}=this.state,v=void 0===e.title?o:e.title,{schemaUtils:g,formContext:y}=u,b=_d(t),w=xf(e.items)?e.items:{},S=g.retrieveSchema(w),x=sD(this.state.keyedFormData),_=this.canAddItem(x),$={canAdd:_,items:m.map(((e,a)=>{const{key:i,item:l}=e,u=l,v=g.retrieveSchema(w,u),y=r?r[a]:void 0,b=n.$id+p+a,S=g.toIdSchema(v,b,u,f,p);return this.renderArrayFieldItem({key:i,index:a,name:o&&`${o}-${a}`,canAdd:_,canMoveUp:a>0,canMoveDown:a<x.length-1,itemSchema:v,itemIdSchema:S,itemErrorSchema:y,itemData:u,itemUiSchema:t.items,autofocus:s&&0===a,onBlur:c,onFocus:d,rawErrors:h,totalItems:m.length})})),className:`field field-array field-array-of-${S.type}`,disabled:a,idSchema:n,uiSchema:t,onAddClick:this.onAddClick,readonly:i,required:l,schema:e,title:v,formContext:y,formData:x,rawErrors:h,registry:u},k=Kj("ArrayFieldTemplate",u,b);return Hj.jsx(k,Object.assign({},$))}renderCustomWidget(){var e;const{schema:t,idSchema:r,uiSchema:n,disabled:o=!1,readonly:a=!1,autofocus:i=!1,required:s=!1,hideError:l,placeholder:u,onBlur:c,onFocus:d,formData:f=[],registry:p,rawErrors:h,name:m}=this.props,{widgets:v,formContext:g,globalUiOptions:y,schemaUtils:b}=p,w=_d(n,y),{widget:S,title:x}=w,_=ov(w,["widget","title"]),$=$C(t,S,v),k=null!==(e=null!=x?x:t.title)&&void 0!==e?e:m,E=b.getDisplayLabel(t,n,y);return Hj.jsx($,{id:r.$id,name:m,multiple:!0,onChange:this.onSelectChange,onBlur:c,onFocus:d,options:_,schema:t,uiSchema:n,registry:p,value:f,disabled:o,readonly:a,hideError:l,required:s,label:k,hideLabel:!E,placeholder:u,formContext:g,autofocus:i,rawErrors:h})}renderMultiSelect(){var e;const{schema:t,idSchema:r,uiSchema:n,formData:o=[],disabled:a=!1,readonly:i=!1,autofocus:s=!1,required:l=!1,placeholder:u,onBlur:c,onFocus:d,registry:f,rawErrors:p,name:h}=this.props,{widgets:m,schemaUtils:v,formContext:g,globalUiOptions:y}=f,b=AC(v.retrieveSchema(t.items,o)),w=_d(n,y),{widget:S="select",title:x}=w,_=ov(w,["widget","title"]),$=$C(t,S,m),k=null!==(e=null!=x?x:t.title)&&void 0!==e?e:h,E=v.getDisplayLabel(t,n,y);return Hj.jsx($,{id:r.$id,name:h,multiple:!0,onChange:this.onSelectChange,onBlur:c,onFocus:d,options:Object.assign(Object.assign({},_),{enumOptions:b}),schema:t,uiSchema:n,registry:f,value:o,disabled:a,readonly:i,required:l,label:k,hideLabel:!E,placeholder:u,formContext:g,autofocus:s,rawErrors:p})}renderFiles(){var e;const{schema:t,uiSchema:r,idSchema:n,name:o,disabled:a=!1,readonly:i=!1,autofocus:s=!1,required:l=!1,onBlur:u,onFocus:c,registry:d,formData:f=[],rawErrors:p}=this.props,{widgets:h,formContext:m,globalUiOptions:v,schemaUtils:g}=d,y=_d(r,v),{widget:b="files",title:w}=y,S=ov(y,["widget","title"]),x=$C(t,b,h),_=null!==(e=null!=w?w:t.title)&&void 0!==e?e:o,$=g.getDisplayLabel(t,r,v);return Hj.jsx(x,{options:S,id:n.$id,name:o,multiple:!0,onChange:this.onSelectChange,onBlur:u,onFocus:c,schema:t,uiSchema:r,value:f,disabled:a,readonly:i,required:l,registry:d,formContext:m,autofocus:s,rawErrors:p,label:_,hideLabel:!$})}renderFixedArray(){const{schema:e,uiSchema:t={},formData:r=[],errorSchema:n,idPrefix:o,idSeparator:a="_",idSchema:i,name:s,disabled:l=!1,readonly:u=!1,autofocus:c=!1,required:d=!1,registry:f,onBlur:p,onFocus:h,rawErrors:m}=this.props,{keyedFormData:v}=this.state;let{formData:g=[]}=this.props;const y=e.title||s,b=_d(t),{schemaUtils:w,formContext:S}=f,x=(xf(e.items)?e.items:[]).map(((e,t)=>w.retrieveSchema(e,r[t]))),_=xf(e.additionalItems)?w.retrieveSchema(e.additionalItems,r):null;(!g||g.length<x.length)&&(g=g||[],g=g.concat(new Array(x.length-g.length)));const $=this.canAddItem(g)&&!!_,k={canAdd:$,className:"field field-array field-array-fixed-items",disabled:l,idSchema:i,formData:r,items:v.map(((r,l)=>{const{key:u,item:d}=r,f=d,y=l>=x.length,b=y&&xf(e.additionalItems)?w.retrieveSchema(e.additionalItems,f):x[l],S=i.$id+a+l,_=w.toIdSchema(b,S,f,o,a),k=y?t.additionalItems||{}:Array.isArray(t.items)?t.items[l]:t.items||{},E=n?n[l]:void 0;return this.renderArrayFieldItem({key:u,index:l,name:s&&`${s}-${l}`,canAdd:$,canRemove:y,canMoveUp:l>=x.length+1,canMoveDown:y&&l<g.length-1,itemSchema:b,itemData:f,itemUiSchema:k,itemIdSchema:_,itemErrorSchema:E,autofocus:c&&0===l,onBlur:p,onFocus:h,rawErrors:m,totalItems:v.length})})),onAddClick:this.onAddClick,readonly:u,required:d,registry:f,schema:e,uiSchema:t,title:y,formContext:S,rawErrors:m},E=Kj("ArrayFieldTemplate",f,b);return Hj.jsx(E,Object.assign({},k))}renderArrayFieldItem(e){const{key:t,index:r,name:n,canAdd:o,canRemove:a=!0,canMoveUp:i,canMoveDown:s,itemSchema:l,itemData:u,itemUiSchema:c,itemIdSchema:d,itemErrorSchema:f,autofocus:p,onBlur:h,onFocus:m,rawErrors:v,totalItems:g}=e,{disabled:y,hideError:b,idPrefix:w,idSeparator:S,readonly:x,uiSchema:_,registry:$,formContext:k}=this.props,{fields:{ArraySchemaField:E,SchemaField:j},globalUiOptions:C}=$,O=E||j,{orderable:P=!0,removable:N=!0,copyable:R=!1}=_d(_,C),T={moveUp:P&&i,moveDown:P&&s,copy:R&&o,remove:N&&a,toolbar:!1};return T.toolbar=Object.keys(T).some((e=>T[e])),{children:Hj.jsx(O,{name:n,index:r,schema:l,uiSchema:c,formData:u,formContext:k,errorSchema:f,idPrefix:w,idSeparator:S,idSchema:d,required:this.isItemRequired(l),onChange:this.onChangeForIndex(r),onBlur:h,onFocus:m,registry:$,disabled:y,readonly:x,hideError:b,autofocus:p,rawErrors:v}),className:"array-item",disabled:y,canAdd:o,hasCopy:T.copy,hasToolbar:T.toolbar,hasMoveUp:T.moveUp,hasMoveDown:T.moveDown,hasRemove:T.remove,index:r,totalItems:g,key:t,onAddIndexClick:this.onAddIndexClick,onCopyIndexClick:this.onCopyIndexClick,onDropIndexClick:this.onDropIndexClick,onReorderClick:this.onReorderClick,readonly:x,registry:$,schema:l,uiSchema:c}}}function uD(e){var t,r;const{schema:n,name:o,uiSchema:a,idSchema:i,formData:s,registry:l,required:u,disabled:c,readonly:d,autofocus:f,onChange:p,onFocus:h,onBlur:m,rawErrors:v}=e,{title:g}=n,{widgets:y,formContext:b,translateString:w,globalUiOptions:S}=l,x=_d(a,S),{widget:_="checkbox",title:$,label:k=!0}=x,E=ov(x,["widget","title","label"]),j=$C(n,_,y),C=w(HC.YesLabel),O=w(HC.NoLabel);let P;const N=null!==(t=null!=$?$:g)&&void 0!==t?t:o;if(Array.isArray(n.oneOf))P=AC({oneOf:n.oneOf.map((e=>{if(xf(e))return Object.assign(Object.assign({},e),{title:e.title||(!0===e.const?C:O)})})).filter((e=>e))});else{const e=n,t=null!==(r=n.enum)&&void 0!==r?r:[!0,!1];P=!e.enumNames&&2===t.length&&t.every((e=>"boolean"==typeof e))?[{value:t[0],label:t[0]?C:O},{value:t[1],label:t[1]?C:O}]:AC({enum:t,enumNames:e.enumNames})}return Hj.jsx(j,{options:Object.assign(Object.assign({},E),{enumOptions:P}),schema:n,uiSchema:a,id:i.$id,name:o,onChange:p,onFocus:h,onBlur:m,label:N,hideLabel:!k,value:s,required:u,disabled:c,readonly:d,registry:l,formContext:b,autofocus:f,rawErrors:v})}class cD extends a.Component{constructor(e){super(e),this.onOptionChange=e=>{const{selectedOption:t,retrievedOptions:r}=this.state,{formData:n,onChange:o,registry:a}=this.props,{schemaUtils:i}=a,s=void 0!==e?parseInt(e,10):-1;if(s===t)return;const l=s>=0?r[s]:void 0,u=t>=0?r[t]:void 0;let c=i.sanitizeDataForNewSchema(l,u,n);c&&l&&(c=i.getDefaultFormState(l,c,"excludeObjectChildren")),o(c,void 0,this.getFieldId()),this.setState({selectedOption:s})};const{formData:t,options:r,registry:{schemaUtils:n}}=this.props,o=r.map((e=>n.retrieveSchema(e,t)));this.state={retrievedOptions:o,selectedOption:this.getMatchingOption(0,t,o)}}componentDidUpdate(e,t){const{formData:r,options:n,idSchema:o}=this.props,{selectedOption:a}=this.state;let i=this.state;if(!nv(e.options,n)){const{registry:{schemaUtils:e}}=this.props;i={selectedOption:a,retrievedOptions:n.map((t=>e.retrieveSchema(t,r)))}}if(!nv(r,e.formData)&&o.$id===e.idSchema.$id){const{retrievedOptions:e}=i,n=this.getMatchingOption(a,r,e);t&&n!==a&&(i={selectedOption:n,retrievedOptions:e})}i!==this.state&&this.setState(i)}getMatchingOption(e,t,r){const{schema:n,registry:{schemaUtils:o}}=this.props,a=GE(n);return o.getClosestMatchingOption(t,r,e,a)}getFieldId(){const{idSchema:e,schema:t}=this.props;return`${e.$id}${t.oneOf?"__oneof_select":"__anyof_select"}`}render(){const{name:e,disabled:t=!1,errorSchema:r={},formContext:n,onBlur:o,onFocus:a,registry:i,schema:s,uiSchema:l}=this.props,{widgets:u,fields:c,translateString:d,globalUiOptions:f,schemaUtils:p}=i,{SchemaField:h}=c,{selectedOption:m,retrievedOptions:v}=this.state,g=_d(l,f),{widget:y="select",placeholder:b,autofocus:w,autocomplete:S,title:x=s.title}=g,_=ov(g,["widget","placeholder","autofocus","autocomplete","title"]),$=$C({type:"number"},y,u),k=Lv(r,ud,[]),E=Hb(r,[ud]),j=p.getDisplayLabel(s,l,f),C=m>=0&&v[m]||null;let O;if(C){const{required:e}=s;O=e?tj({required:e},C):C}const P=x?HC.TitleOptionPrefix:HC.OptionPrefix,N=x?[x]:[],R=v.map(((e,t)=>({label:e.title||d(P,N.concat(String(t+1))),value:t})));return Hj.jsxs("div",Object.assign({className:"panel panel-default panel-body"},{children:[Hj.jsx("div",Object.assign({className:"form-group"},{children:Hj.jsx($,{id:this.getFieldId(),name:`${e}${s.oneOf?"__oneof_select":"__anyof_select"}`,schema:{type:"number",default:0},onChange:this.onOptionChange,onBlur:o,onFocus:a,disabled:t||Jv(R),multiple:!1,rawErrors:k,errorSchema:E,value:m>=0?m:void 0,options:Object.assign({enumOptions:R},_),registry:i,formContext:n,placeholder:b,autocomplete:S,autofocus:w,label:null!=x?x:e,hideLabel:!j})})),null!==C&&Hj.jsx(h,Object.assign({},this.props,{schema:O}))]}))}}const dD=/\.([0-9]*0)*$/,fD=/[0.]0*$/;function pD(e){const{registry:t,onChange:r,formData:n,value:o}=e,[i,s]=a.useState(o),{StringField:l}=t.fields;let u=n;const c=a.useCallback((e=>{s(e),"."===`${e}`.charAt(0)&&(e=`0${e}`);const t="string"==typeof e&&e.match(dD)?ed(e.replace(fD,"")):ed(e);r(t)}),[r]);if("string"==typeof i&&"number"==typeof u){const e=new RegExp(`${u}`.replace(".","\\.")+"\\.?0*$");i.match(e)&&(u=i)}return Hj.jsx(l,Object.assign({},e,{formData:u,onChange:c}))}function hD(){return hD=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},hD.apply(this,arguments)}const mD=["children","options"],vD=["allowFullScreen","allowTransparency","autoComplete","autoFocus","autoPlay","cellPadding","cellSpacing","charSet","className","classId","colSpan","contentEditable","contextMenu","crossOrigin","encType","formAction","formEncType","formMethod","formNoValidate","formTarget","frameBorder","hrefLang","inputMode","keyParams","keyType","marginHeight","marginWidth","maxLength","mediaGroup","minLength","noValidate","radioGroup","readOnly","rowSpan","spellCheck","srcDoc","srcLang","srcSet","tabIndex","useMap"].reduce(((e,t)=>(e[t.toLowerCase()]=t,e)),{for:"htmlFor"}),gD={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},yD=["style","script"],bD=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,wD=/mailto:/i,SD=/\n{2,}$/,xD=/^( *>[^\n]+(\n[^\n]+)*\n*)+\n{2,}/,_D=/^ *> ?/gm,$D=/^ {2,}\n/,kD=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,ED=/^\s*(`{3,}|~{3,}) *(\S+)?([^\n]*?)?\n([\s\S]+?)\s*\1 *(?:\n *)*\n?/,jD=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,CD=/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,OD=/^(?:\n *)*\n/,PD=/\r\n?/g,ND=/^\[\^([^\]]+)](:.*)\n/,RD=/^\[\^([^\]]+)]/,TD=/\f/g,AD=/^\s*?\[(x|\s)\]/,ID=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,MD=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,FD=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,zD=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?([^>]*)\/{0}>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1)[\s\S])*?)<\/\1>\n*/i,DD=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,LD=/^<!--[\s\S]*?(?:-->)/,BD=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,VD=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,UD=/^\{.*\}$/,WD=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,qD=/^<([^ >]+@[^ >]+)>/,KD=/^<([^ >]+:\/[^ >]+)>/,HD=/-([a-z])?/gi,GD=/^(.*\|?.*)\n *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*)\n?/,QD=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,JD=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,YD=/^\[([^\]]*)\] ?\[([^\]]*)\]/,XD=/(\[|\])/g,ZD=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,eL=/\t/g,tL=/^ *\| */,rL=/(^ *\||\| *$)/g,nL=/ *$/,oL=/^ *:-+: *$/,aL=/^ *:-+ *$/,iL=/^ *-+: *$/,sL=/^([*_])\1((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1\1(?!\1)/,lL=/^([*_])((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1(?!\1|\w)/,uL=/^==((?:\[.*?\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)==/,cL=/^~~((?:\[.*?\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)~~/,dL=/^\\([^0-9A-Za-z\s])/,fL=/^[\s\S]+?(?=[^0-9A-Z\s\u00c0-\uffff&#;.()'"]|\d+\.|\n\n| {2,}\n|\w+:\S|$)/i,pL=/^\n+/,hL=/^([ \t]*)/,mL=/\\([^\\])/g,vL=/ *\n+$/,gL=/(?:^|\n)( *)$/,yL="(?:\\d+\\.)",bL="(?:[*+-])";function wL(e){return"( *)("+(1===e?yL:bL)+") +"}const SL=wL(1),xL=wL(2);function _L(e){return new RegExp("^"+(1===e?SL:xL))}const $L=_L(1),kL=_L(2);function EL(e){return new RegExp("^"+(1===e?SL:xL)+"[^\\n]*(?:\\n(?!\\1"+(1===e?yL:bL)+" )[^\\n]*)*(\\n|$)","gm")}const jL=EL(1),CL=EL(2);function OL(e){const t=1===e?yL:bL;return new RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")}const PL=OL(1),NL=OL(2);function RL(e,t){const r=1===t,n=r?PL:NL,o=r?jL:CL,a=r?$L:kL;return{t(e,t,r){const o=gL.exec(r);return o&&(t.o||!t._&&!t.u)?n.exec(e=o[1]+e):null},i:nB.HIGH,l(e,t,n){const i=r?+e[2]:void 0,s=e[0].replace(SD,"\n").match(o);let l=!1;return{p:s.map((function(e,r){const o=a.exec(e)[0].length,i=new RegExp("^ {1,"+o+"}","gm"),u=e.replace(i,"").replace(a,""),c=r===s.length-1,d=-1!==u.indexOf("\n\n")||c&&l;l=d;const f=n._,p=n.o;let h;n.o=!0,d?(n._=!1,h=u.replace(vL,"\n\n")):(n._=!0,h=u.replace(vL,""));const m=t(h,n);return n._=f,n.o=p,m})),m:r,g:i}},h:(t,r,n)=>e(t.m?"ol":"ul",{key:n.k,start:t.g},t.p.map((function(t,o){return e("li",{key:o},r(t,n))})))}}const TL=/^\[([^\]]*)]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,AL=/^!\[([^\]]*)]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,IL=[xD,ED,jD,ID,FD,MD,LD,GD,jL,PL,CL,NL],ML=[...IL,/^[^\n]+(?: \n|\n{2,})/,zD,VD];function FL(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 zL(e){return iL.test(e)?"right":oL.test(e)?"center":aL.test(e)?"left":null}function DL(e,t,r){const n=r.$;r.$=!0;const o=t(e.trim(),r);r.$=n;let a=[[]];return o.forEach((function(e,t){"tableSeparator"===e.type?0!==t&&t!==o.length-1&&a.push([]):("text"!==e.type||null!=o[t+1]&&"tableSeparator"!==o[t+1].type||(e.v=e.v.replace(nL,"")),a[a.length-1].push(e))})),a}function LL(e,t,r){r._=!0;const n=DL(e[1],t,r),o=e[2].replace(rL,"").split("|").map(zL),a=function(e,t,r){return e.trim().split("\n").map((function(e){return DL(e,t,r)}))}(e[3],t,r);return r._=!1,{S:o,A:a,L:n,type:"table"}}function BL(e,t){return null==e.S[t]?{}:{textAlign:e.S[t]}}function VL(e){return function(t,r){return r._?e.exec(t):null}}function UL(e){return function(t,r){return r._||r.u?e.exec(t):null}}function WL(e){return function(t,r){return r._||r.u?null:e.exec(t)}}function qL(e){return function(t){return e.exec(t)}}function KL(e,t,r){if(t._||t.u)return null;if(r&&!r.endsWith("\n"))return null;let n="";e.split("\n").every((e=>!IL.some((t=>t.test(e)))&&(n+=e+"\n",e.trim())));const o=n.trimEnd();return""==o?null:[n,o]}function HL(e){try{if(decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"").match(/^\s*(javascript|vbscript|data(?!:image)):/i))return}catch(e){return null}return e}function GL(e){return e.replace(mL,"$1")}function QL(e,t,r){const n=r._||!1,o=r.u||!1;r._=!0,r.u=!0;const a=e(t,r);return r._=n,r.u=o,a}function JL(e,t,r){const n=r._||!1,o=r.u||!1;r._=!1,r.u=!0;const a=e(t,r);return r._=n,r.u=o,a}function YL(e,t,r){return r._=!1,e(t,r)}const XL=(e,t,r)=>({v:QL(t,e[1],r)});function ZL(){return{}}function eB(){return null}function tB(...e){return e.filter(Boolean).join(" ")}function rB(e,t,r){let n=e;const o=t.split(".");for(;o.length&&(n=n[o[0]],void 0!==n);)o.shift();return n||r}var nB;function oB(e,t={}){t.overrides=t.overrides||{},t.slugify=t.slugify||FL,t.namedCodesToUnicode=t.namedCodesToUnicode?hD({},gD,t.namedCodesToUnicode):gD;const r=t.createElement||a.createElement;function n(e,n,...o){const a=rB(t.overrides,`${e}.props`,{});return r(function(e,t){const r=rB(t,e);return r?"function"==typeof r||"object"==typeof r&&"render"in r?r:rB(t,`${e}.component`,e):e}(e,t.overrides),hD({},n,a,{className:tB(null==n?void 0:n.className,a.className)||void 0}),...o)}function o(e){let r=!1;t.forceInline?r=!0:t.forceBlock||(r=!1===ZD.test(e));const o=d(c(r?e:`${e.trimEnd().replace(pL,"")}\n\n`,{_:r}));for(;"string"==typeof o[o.length-1]&&!o[o.length-1].trim();)o.pop();if(null===t.wrapper)return o;const i=t.wrapper||(r?"span":"div");let s;if(o.length>1||t.forceWrapper)s=o;else{if(1===o.length)return s=o[0],"string"==typeof s?n("span",{key:"outer"},s):s;s=null}return a.createElement(i,{key:"outer"},s)}function i(e){const t=e.match(bD);return t?t.reduce((function(e,t,r){const n=t.indexOf("=");if(-1!==n){const i=function(e){return-1!==e.indexOf("-")&&null===e.match(BD)&&(e=e.replace(HD,(function(e,t){return t.toUpperCase()}))),e}(t.slice(0,n)).trim(),s=function(e){const t=e[0];return('"'===t||"'"===t)&&e.length>=2&&e[e.length-1]===t?e.slice(1,-1):e}(t.slice(n+1).trim()),l=vD[i]||i,u=e[l]=function(e,t){return"style"===e?t.split(/;\s?/).reduce((function(e,t){const r=t.slice(0,t.indexOf(":"));return e[r.replace(/(-[a-z])/g,(e=>e[1].toUpperCase()))]=t.slice(r.length+1).trim(),e}),{}):"href"===e?HL(t):(t.match(UD)&&(t=t.slice(1,t.length-1)),"true"===t||"false"!==t&&t)}(i,s);"string"==typeof u&&(zD.test(u)||VD.test(u))&&(e[l]=a.cloneElement(o(u.trim()),{key:r}))}else"style"!==t&&(e[vD[t]||t]=!0);return e}),{}):null}const s=[],l={},u={blockQuote:{t:WL(xD),i:nB.HIGH,l:(e,t,r)=>({v:t(e[0].replace(_D,""),r)}),h:(e,t,r)=>n("blockquote",{key:r.k},t(e.v,r))},breakLine:{t:qL($D),i:nB.HIGH,l:ZL,h:(e,t,r)=>n("br",{key:r.k})},breakThematic:{t:WL(kD),i:nB.HIGH,l:ZL,h:(e,t,r)=>n("hr",{key:r.k})},codeBlock:{t:WL(jD),i:nB.MAX,l:e=>({v:e[0].replace(/^ {4}/gm,"").replace(/\n+$/,""),M:void 0}),h:(e,t,r)=>n("pre",{key:r.k},n("code",hD({},e.O,{className:e.M?`lang-${e.M}`:""}),e.v))},codeFenced:{t:WL(ED),i:nB.MAX,l:e=>({O:i(e[3]||""),v:e[4],M:e[2]||void 0,type:"codeBlock"})},codeInline:{t:UL(CD),i:nB.LOW,l:e=>({v:e[2]}),h:(e,t,r)=>n("code",{key:r.k},e.v)},footnote:{t:WL(ND),i:nB.MAX,l:e=>(s.push({I:e[2],j:e[1]}),{}),h:eB},footnoteReference:{t:VL(RD),i:nB.HIGH,l:e=>({v:e[1],B:`#${t.slugify(e[1])}`}),h:(e,t,r)=>n("a",{key:r.k,href:HL(e.B)},n("sup",{key:r.k},e.v))},gfmTask:{t:VL(AD),i:nB.HIGH,l:e=>({R:"x"===e[1].toLowerCase()}),h:(e,t,r)=>n("input",{checked:e.R,key:r.k,readOnly:!0,type:"checkbox"})},heading:{t:WL(t.enforceAtxHeadings?MD:ID),i:nB.HIGH,l:(e,r,n)=>({v:QL(r,e[2],n),T:t.slugify(e[2]),C:e[1].length}),h:(e,t,r)=>n(`h${e.C}`,{id:e.T,key:r.k},t(e.v,r))},headingSetext:{t:WL(FD),i:nB.MAX,l:(e,t,r)=>({v:QL(t,e[1],r),C:"="===e[2]?1:2,type:"heading"})},htmlComment:{t:qL(LD),i:nB.HIGH,l:()=>({}),h:eB},image:{t:UL(AL),i:nB.HIGH,l:e=>({D:e[1],B:GL(e[2]),F:e[3]}),h:(e,t,r)=>n("img",{key:r.k,alt:e.D||void 0,title:e.F||void 0,src:HL(e.B)})},link:{t:VL(TL),i:nB.LOW,l:(e,t,r)=>({v:JL(t,e[1],r),B:GL(e[2]),F:e[3]}),h:(e,t,r)=>n("a",{key:r.k,href:HL(e.B),title:e.F},t(e.v,r))},linkAngleBraceStyleDetector:{t:VL(KD),i:nB.MAX,l:e=>({v:[{v:e[1],type:"text"}],B:e[1],type:"link"})},linkBareUrlDetector:{t:(e,t)=>t.N?null:VL(WD)(e,t),i:nB.MAX,l:e=>({v:[{v:e[1],type:"text"}],B:e[1],F:void 0,type:"link"})},linkMailtoDetector:{t:VL(qD),i:nB.MAX,l(e){let t=e[1],r=e[1];return wD.test(r)||(r="mailto:"+r),{v:[{v:t.replace("mailto:",""),type:"text"}],B:r,type:"link"}}},orderedList:RL(n,1),unorderedList:RL(n,2),newlineCoalescer:{t:WL(OD),i:nB.LOW,l:ZL,h:()=>"\n"},paragraph:{t:KL,i:nB.LOW,l:XL,h:(e,t,r)=>n("p",{key:r.k},t(e.v,r))},ref:{t:VL(QD),i:nB.MAX,l:e=>(l[e[1]]={B:e[2],F:e[4]},{}),h:eB},refImage:{t:UL(JD),i:nB.MAX,l:e=>({D:e[1]||void 0,P:e[2]}),h:(e,t,r)=>n("img",{key:r.k,alt:e.D,src:HL(l[e.P].B),title:l[e.P].F})},refLink:{t:VL(YD),i:nB.MAX,l:(e,t,r)=>({v:t(e[1],r),Z:t(e[0].replace(XD,"\\$1"),r),P:e[2]}),h:(e,t,r)=>l[e.P]?n("a",{key:r.k,href:HL(l[e.P].B),title:l[e.P].F},t(e.v,r)):n("span",{key:r.k},t(e.Z,r))},table:{t:WL(GD),i:nB.HIGH,l:LL,h:(e,t,r)=>n("table",{key:r.k},n("thead",null,n("tr",null,e.L.map((function(o,a){return n("th",{key:a,style:BL(e,a)},t(o,r))})))),n("tbody",null,e.A.map((function(o,a){return n("tr",{key:a},o.map((function(o,a){return n("td",{key:a,style:BL(e,a)},t(o,r))})))}))))},tableSeparator:{t:function(e,t){return t.$?(t._=!0,tL.exec(e)):null},i:nB.HIGH,l:function(){return{type:"tableSeparator"}},h:()=>" | "},text:{t:qL(fL),i:nB.MIN,l:e=>({v:e[0].replace(DD,((e,r)=>t.namedCodesToUnicode[r]?t.namedCodesToUnicode[r]:e))}),h:e=>e.v},textBolded:{t:UL(sL),i:nB.MED,l:(e,t,r)=>({v:t(e[2],r)}),h:(e,t,r)=>n("strong",{key:r.k},t(e.v,r))},textEmphasized:{t:UL(lL),i:nB.LOW,l:(e,t,r)=>({v:t(e[2],r)}),h:(e,t,r)=>n("em",{key:r.k},t(e.v,r))},textEscaped:{t:UL(dL),i:nB.HIGH,l:e=>({v:e[1],type:"text"})},textMarked:{t:UL(uL),i:nB.LOW,l:XL,h:(e,t,r)=>n("mark",{key:r.k},t(e.v,r))},textStrikethroughed:{t:UL(cL),i:nB.LOW,l:XL,h:(e,t,r)=>n("del",{key:r.k},t(e.v,r))}};!0!==t.disableParsingRawHTML&&(u.htmlBlock={t:qL(zD),i:nB.HIGH,l(e,t,r){const[,n]=e[3].match(hL),o=new RegExp(`^${n}`,"gm"),a=e[3].replace(o,""),s=(l=a,ML.some((e=>e.test(l)))?YL:QL);var l;const u=e[1].toLowerCase(),c=-1!==yD.indexOf(u);r.N=r.N||"a"===u;const d=c?e[3]:s(t,a,r);return r.N=!1,{O:i(e[2]),v:d,G:c,H:c?u:e[1]}},h:(e,t,r)=>n(e.H,hD({key:r.k},e.O),e.G?e.v:t(e.v,r))},u.htmlSelfClosing={t:qL(VD),i:nB.HIGH,l:e=>({O:i(e[2]||""),H:e[1]}),h:(e,t,r)=>n(e.H,hD({},e.O,{key:r.k}))});const c=function(e){let t=Object.keys(e);function r(n,o){let a=[],i="";for(;n;){let s=0;for(;s<t.length;){const l=t[s],u=e[l],c=u.t(n,o,i);if(c){const e=c[0];n=n.substring(e.length);const t=u.l(c,r,o);null==t.type&&(t.type=l),a.push(t),i=e;break}s++}}return a}return t.sort((function(t,r){let n=e[t].i,o=e[r].i;return n!==o?n-o:t<r?-1:1})),function(e,t){return r(function(e){return e.replace(PD,"\n").replace(TD,"").replace(eL," ")}(e),t)}}(u),d=(f=function(e){return function(t,r,n){return e[t.type].h(t,r,n)}}(u),function e(t,r={}){if(Array.isArray(t)){const n=r.k,o=[];let a=!1;for(let n=0;n<t.length;n++){r.k=n;const i=e(t[n],r),s="string"==typeof i;s&&a?o[o.length-1]+=i:null!==i&&o.push(i),a=s}return r.k=n,o}return f(t,e,r)});var f;const p=o(e);return s.length?n("div",null,p,n("footer",{key:"footer"},s.map((function(e){return n("div",{id:t.slugify(e.j),key:e.j},e.j,d(c(e.I,{_:!0})))})))):p}!function(e){e[e.MAX=0]="MAX",e[e.HIGH=1]="HIGH",e[e.MED=2]="MED",e[e.LOW=3]="LOW",e[e.MIN=4]="MIN"}(nB||(nB={}));var aB=e=>{let{children:t,options:r}=e,n=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)t.indexOf(r=a[n])>=0||(o[r]=e[r]);return o}(e,mD);return a.cloneElement(oB(t,r),n)},iB=pb;var sB=function(e,t){return null==e||iB(e,t)};class lB extends a.Component{constructor(){super(...arguments),this.state={wasPropertyKeyModified:!1,additionalProperties:{}},this.onPropertyChange=(e,t=!1)=>(r,n,o)=>{const{formData:a,onChange:i,errorSchema:s}=this.props;void 0===r&&t&&(r="");i(Object.assign(Object.assign({},a),{[e]:r}),s&&s&&Object.assign(Object.assign({},s),{[e]:n}),o)},this.onDropPropertyClick=e=>t=>{t.preventDefault();const{onChange:r,formData:n}=this.props,o=Object.assign({},n);sB(o,e),r(o)},this.getAvailableKey=(e,t)=>{const{uiSchema:r,registry:n}=this.props,{duplicateKeySuffixSeparator:o="-"}=_d(r,n.globalUiOptions);let a=0,i=e;for(;iw(t,i);)i=`${e}${o}${++a}`;return i},this.onKeyChange=e=>(t,r)=>{if(e===t)return;const{formData:n,onChange:o,errorSchema:a}=this.props;t=this.getAvailableKey(t,n);const i=Object.assign({},n),s={[e]:t},l=Object.keys(i).map((e=>({[s[e]||e]:i[e]}))),u=Object.assign({},...l);this.setState({wasPropertyKeyModified:!0}),o(u,a&&a&&Object.assign(Object.assign({},a),{[t]:r}))},this.handleAddClick=e=>()=>{if(!e.additionalProperties)return;const{formData:t,onChange:r,registry:n}=this.props,o=Object.assign({},t);let a;if(xf(e.additionalProperties)){a=e.additionalProperties.type;let r=e.additionalProperties;if(yd in r){const{schemaUtils:e}=n;r=e.retrieveSchema({$ref:r[yd]},t),a=r.type}a||!(od in r)&&!(hd in r)||(a="object")}const i=this.getAvailableKey("newKey",o);IS(o,i,this.getDefaultValue(a)),r(o)}}isRequired(e){const{schema:t}=this.props;return Array.isArray(t.required)&&-1!==t.required.indexOf(e)}getDefaultValue(e){const{registry:{translateString:t}}=this.props;switch(e){case"array":return[];case"boolean":return!1;case"null":return null;case"number":return 0;case"object":return{};default:return t(HC.NewStringDefault)}}render(){var e,t,r;const{schema:n,uiSchema:o={},formData:a,errorSchema:i,idSchema:s,name:l,required:u=!1,disabled:c=!1,readonly:d=!1,hideError:f,idPrefix:p,idSeparator:h,onBlur:m,onFocus:v,registry:g}=this.props,{fields:y,formContext:b,schemaUtils:w,translateString:S,globalUiOptions:x}=g,{SchemaField:_}=y,$=w.retrieveSchema(n,a),k=_d(o,x),{properties:E={}}=$,j=null!==(t=null!==(e=k.title)&&void 0!==e?e:$.title)&&void 0!==t?t:l,C=null!==(r=k.description)&&void 0!==r?r:$.description;let O;try{O=function(e,t){if(!Array.isArray(t))return e;const r=e=>e.reduce(((e,t)=>(e[t]=!0,e)),{}),n=r(e),o=t.filter((e=>"*"===e||n[e])),a=r(o),i=e.filter((e=>!a[e])),s=o.indexOf("*");if(-1===s){if(i.length)throw new Error("uiSchema order list does not contain "+((l=i).length>1?`properties '${l.join("', '")}'`:`property '${l[0]}'`));return o}var l;if(s!==o.lastIndexOf("*"))throw new Error("uiSchema order list contains more than one wildcard item");const u=[...o];return u.splice(s,1,...i),u}(Object.keys(E),k.order)}catch(e){return Hj.jsxs("div",{children:[Hj.jsx("p",Object.assign({className:"config-error",style:{color:"red"}},{children:Hj.jsx(aB,{children:S(HC.InvalidObjectField,[l||"root",e.message])})})),Hj.jsx("pre",{children:JSON.stringify($)})]})}const P=Kj("ObjectFieldTemplate",g,k),N={title:!1===k.label?"":j,description:!1===k.label?void 0:C,properties:O.map((e=>{const t=iw($,[md,e,td]),r=t?o.additionalProperties:o[e],n="hidden"===_d(r).widget,l=Lv(s,[e],{});return{content:Hj.jsx(_,{name:e,required:this.isRequired(e),schema:Lv($,[md,e],{}),uiSchema:r,errorSchema:Lv(i,e),idSchema:l,idPrefix:p,idSeparator:h,formData:Lv(a,e),formContext:b,wasPropertyKeyModified:this.state.wasPropertyKeyModified,onKeyChange:this.onKeyChange(e),onChange:this.onPropertyChange(e,t),onBlur:m,onFocus:v,registry:g,disabled:c,readonly:d,hideError:f,onDropPropertyClick:this.onDropPropertyClick},e),name:e,readonly:d,disabled:c,required:u,hidden:n}})),readonly:d,disabled:c,required:u,idSchema:s,uiSchema:o,errorSchema:i,schema:$,formData:a,formContext:b,registry:g};return Hj.jsx(P,Object.assign({},N,{onAddClick:this.handleAddClick}))}}const uB={array:"ArrayField",boolean:"BooleanField",integer:"NumberField",number:"NumberField",object:"ObjectField",string:"StringField",null:"NullField"};function cB(e){const{schema:t,idSchema:r,uiSchema:n,formData:o,errorSchema:i,idPrefix:s,idSeparator:l,name:u,onChange:c,onKeyChange:d,onDropPropertyClick:f,required:p,registry:h,wasPropertyKeyModified:m=!1}=e,{formContext:v,schemaUtils:g,globalUiOptions:y}=h,b=_d(n,y),w=Kj("FieldTemplate",h,b),S=Kj("DescriptionFieldTemplate",h,b),x=Kj("FieldHelpTemplate",h,b),_=Kj("FieldErrorTemplate",h,b),$=g.retrieveSchema(t,o),k=r[cd],E=vj(g.toIdSchema($,k,o,s,l),r),j=a.useCallback(((e,t,r)=>c(e,t,r||k)),[k,c]),C=function(e,t,r,n){const o=t.field,{fields:a,translateString:i}=n;if("function"==typeof o)return o;if("string"==typeof o&&o in a)return a[o];const s=ej(e),l=Array.isArray(s)?s[0]:s||"",u=e.$id;let c=uB[l];return u&&u in a&&(c=u),c||!e.anyOf&&!e.oneOf?c in a?a[c]:()=>{const o=Kj("UnsupportedFieldTemplate",n,t);return Hj.jsx(o,{schema:e,idSchema:r,reason:i(HC.UnknownFieldType,[String(e.type)]),registry:n})}:()=>null}($,b,E,h),O=Boolean(e.disabled||b.disabled),P=Boolean(e.readonly||b.readonly||e.schema.readOnly||$.readOnly),N=b.hideError,R=void 0===N?e.hideError:Boolean(N),T=Boolean(e.autofocus||b.autofocus);if(0===Object.keys($).length)return null;const A=g.getDisplayLabel($,n,y),I=i||{},{__errors:M}=I,F=ov(I,["__errors"]),z=Hb(n,["ui:classNames","classNames","ui:style"]);xd in z&&(z[xd]=Hb(z[xd],["classNames","style"]));const D=Hj.jsx(C,Object.assign({},e,{onChange:j,idSchema:E,schema:$,uiSchema:z,disabled:O,readonly:P,hideError:R,autofocus:T,errorSchema:F,formContext:v,rawErrors:M})),L=E[cd];let B;B=m||td in $?u:b.title||e.schema.title||$.title||u;const V=b.description||e.schema.description||$.description||"",U=b.enableMarkdownInDescription?Hj.jsx(aB,{children:V}):V,W=b.help,q="hidden"===b.widget,K=["form-group","field",`field-${ej($)}`];!R&&M&&M.length>0&&K.push("field-error has-error has-danger"),(null==n?void 0:n.classNames)&&K.push(n.classNames),b.classNames&&K.push(b.classNames);const H=Hj.jsx(x,{help:W,idSchema:E,schema:$,uiSchema:n,hasErrors:!R&&M&&M.length>0,registry:h}),G=R||$.anyOf||$.oneOf?void 0:Hj.jsx(_,{errors:M,errorSchema:i,idSchema:E,schema:$,uiSchema:n,registry:h}),Q={description:Hj.jsx(S,{id:EC(L),description:U,schema:$,uiSchema:n,registry:h}),rawDescription:V,help:H,rawHelp:"string"==typeof W?W:void 0,errors:G,rawErrors:R?void 0:M,id:L,label:B,hidden:q,onChange:c,onKeyChange:d,onDropPropertyClick:f,required:p,disabled:O,readonly:P,hideError:R,displayLabel:A,classNames:K.join(" ").trim(),style:b.style,formContext:v,formData:o,schema:$,uiSchema:n,registry:h},J=h.fields.AnyOfField,Y=h.fields.OneOfField,X=(null==n?void 0:n["ui:field"])&&!0===(null==n?void 0:n["ui:fieldReplacesAnyOrOneOf"]);return Hj.jsx(w,Object.assign({},Q,{children:Hj.jsxs(Hj.Fragment,{children:[D,$.anyOf&&!X&&!g.isSelect($)&&Hj.jsx(J,{name:u,disabled:O,readonly:P,hideError:R,errorSchema:i,formData:o,formContext:v,idPrefix:s,idSchema:E,idSeparator:l,onBlur:e.onBlur,onChange:e.onChange,onFocus:e.onFocus,options:$.anyOf.map((e=>g.retrieveSchema(xf(e)?e:{},o))),registry:h,schema:$,uiSchema:n}),$.oneOf&&!X&&!g.isSelect($)&&Hj.jsx(Y,{name:u,disabled:O,readonly:P,hideError:R,errorSchema:i,formData:o,formContext:v,idPrefix:s,idSchema:E,idSeparator:l,onBlur:e.onBlur,onChange:e.onChange,onFocus:e.onFocus,options:$.oneOf.map((e=>g.retrieveSchema(xf(e)?e:{},o))),registry:h,schema:$,uiSchema:n})]})}))}class dB extends a.Component{shouldComponentUpdate(e){return!nv(this.props,e)}render(){return Hj.jsx(cB,Object.assign({},this.props))}}function fB(e){var t;const{schema:r,name:n,uiSchema:o,idSchema:a,formData:i,required:s,disabled:l=!1,readonly:u=!1,autofocus:c=!1,onChange:d,onBlur:f,onFocus:p,registry:h,rawErrors:m}=e,{title:v,format:g}=r,{widgets:y,formContext:b,schemaUtils:w,globalUiOptions:S}=h,x=w.isSelect(r)?AC(r):void 0;let _=x?"select":"text";g&&function(e,t,r={}){try{return $C(e,t,r),!0}catch(e){const t=e;if(t.message&&(t.message.startsWith("No widget")||t.message.startsWith("Unsupported widget")))return!1;throw e}}(r,g,y)&&(_=g);const $=_d(o),{widget:k=_,placeholder:E="",title:j}=$,C=ov($,["widget","placeholder","title"]),O=w.getDisplayLabel(r,o,S),P=null!==(t=null!=j?j:v)&&void 0!==t?t:n,N=$C(r,k,y);return Hj.jsx(N,{options:Object.assign(Object.assign({},C),{enumOptions:x}),schema:r,uiSchema:o,id:a.$id,name:n,label:P,hideLabel:!O,value:i,onChange:d,onBlur:f,onFocus:p,required:s,disabled:l,readonly:u,formContext:b,autofocus:c,registry:h,placeholder:E,rawErrors:m})}function pB(e){const{formData:t,onChange:r}=e;return a.useEffect((()=>{void 0===t&&r(null)}),[t,r]),null}function hB(e){const{idSchema:t,description:r,registry:n,schema:o,uiSchema:a}=e,i=_d(a,n.globalUiOptions),{label:s=!0}=i;if(!r||!s)return null;const l=Kj("DescriptionFieldTemplate",n,i);return Hj.jsx(l,{id:EC(t),description:r,schema:o,uiSchema:a,registry:n})}function mB(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:m}=e,{CopyButton:v,MoveDownButton:g,MoveUpButton:y,RemoveButton:b}=h.templates.ButtonTemplates,w={flex:1,paddingLeft:6,paddingRight:6,fontWeight:"bold"};return Hj.jsxs("div",Object.assign({className:r},{children:[Hj.jsx("div",Object.assign({className:o?"col-xs-9":"col-xs-12"},{children:t})),o&&Hj.jsx("div",Object.assign({className:"col-xs-3 array-item-toolbox"},{children:Hj.jsxs("div",Object.assign({className:"btn-group",style:{display:"flex",justifyContent:"space-around"}},{children:[(i||a)&&Hj.jsx(y,{style:w,disabled:n||p||!i,onClick:f(u,u-1),uiSchema:m,registry:h}),(i||a)&&Hj.jsx(g,{style:w,disabled:n||p||!a,onClick:f(u,u+1),uiSchema:m,registry:h}),l&&Hj.jsx(v,{style:w,disabled:n||p,onClick:c(u),uiSchema:m,registry:h}),s&&Hj.jsx(b,{style:w,disabled:n||p,onClick:d(u),uiSchema:m,registry:h})]}))}))]}))}function vB(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=_d(a),h=Kj("ArrayFieldDescriptionTemplate",u,p),m=Kj("ArrayFieldItemTemplate",u,p),v=Kj("ArrayFieldTitleTemplate",u,p),{ButtonTemplates:{AddButton:g}}=u.templates;return Hj.jsxs("fieldset",Object.assign({className:r,id:o.$id},{children:[Hj.jsx(v,{idSchema:o,title:p.title||f,required:c,schema:d,uiSchema:a,registry:u}),Hj.jsx(h,{idSchema:o,description:p.description||d.description,schema:d,uiSchema:a,registry:u}),Hj.jsx("div",Object.assign({className:"row array-item-list"},{children:i&&i.map((e=>{var{key:t}=e,r=ov(e,["key"]);return Hj.jsx(m,Object.assign({},r),t)}))})),t&&Hj.jsx(g,{className:"array-item-add",onClick:s,disabled:n||l,uiSchema:a,registry:u})]}))}function gB(e){const{idSchema:t,title:r,schema:n,uiSchema:o,required:a,registry:i}=e,s=_d(o,i.globalUiOptions),{label:l=!0}=s;if(!r||!l)return null;const u=Kj("TitleFieldTemplate",i,s);return Hj.jsx(u,{id:PC(t),title:r,required:a,schema:n,uiSchema:o,registry:i})}function yB(e){const{id:t,name:r,value:n,readonly:o,disabled:i,autofocus:s,onBlur:l,onFocus:u,onChange:c,onChangeOverride:d,options:f,schema:p,uiSchema:h,formContext:m,registry:v,rawErrors:g,type:y,hideLabel:b,hideError:w}=e,S=ov(e,["id","name","value","readonly","disabled","autofocus","onBlur","onFocus","onChange","onChangeOverride","options","schema","uiSchema","formContext","registry","rawErrors","type","hideLabel","hideError"]);if(!t)throw console.log("No id for",e),new Error(`no id for props ${JSON.stringify(e)}`);const x=Object.assign(Object.assign({},S),Uj(p,y,f));let _;_="number"===x.type||"integer"===x.type?n||0===n?n:"":null==n?"":n;const $=a.useCallback((({target:{value:e}})=>c(""===e?f.emptyValue:e)),[c,f]),k=a.useCallback((({target:{value:e}})=>l(t,e)),[l,t]),E=a.useCallback((({target:{value:e}})=>u(t,e)),[u,t]);return Hj.jsxs(Hj.Fragment,{children:[Hj.jsx("input",Object.assign({id:t,name:t,className:"form-control",readOnly:o,disabled:i,autoFocus:s,value:_},x,{list:p.examples?CC(t):void 0,onChange:d||$,onBlur:k,onFocus:E,"aria-describedby":NC(t,!!p.examples)})),Array.isArray(p.examples)&&Hj.jsx("datalist",Object.assign({id:CC(t)},{children:p.examples.concat(p.default&&!p.examples.includes(p.default)?[p.default]:[]).map((e=>Hj.jsx("option",{value:e},e)))}),`datalist_${t}`)]})}function bB({uiSchema:e}){const{submitText:t,norender:r,props:n={}}=qj(e);return r?null:Hj.jsx("div",{children:Hj.jsx("button",Object.assign({type:"submit"},n,{className:`btn btn-info ${n.className||""}`},{children:t}))})}function wB(e){const{iconType:t="default",icon:r,className:n,uiSchema:o,registry:a}=e,i=ov(e,["iconType","icon","className","uiSchema","registry"]);return Hj.jsx("button",Object.assign({type:"button",className:`btn btn-${t} ${n}`},i,{children:Hj.jsx("i",{className:`glyphicon glyphicon-${r}`})}))}function SB(e){const{registry:{translateString:t}}=e;return Hj.jsx(wB,Object.assign({title:t(HC.CopyButton),className:"array-item-copy"},e,{icon:"copy"}))}function xB(e){const{registry:{translateString:t}}=e;return Hj.jsx(wB,Object.assign({title:t(HC.MoveDownButton),className:"array-item-move-down"},e,{icon:"arrow-down"}))}function _B(e){const{registry:{translateString:t}}=e;return Hj.jsx(wB,Object.assign({title:t(HC.MoveUpButton),className:"array-item-move-up"},e,{icon:"arrow-up"}))}function $B(e){const{registry:{translateString:t}}=e;return Hj.jsx(wB,Object.assign({title:t(HC.RemoveButton),className:"array-item-remove"},e,{iconType:"danger",icon:"remove"}))}function kB({className:e,onClick:t,disabled:r,registry:n}){const{translateString:o}=n;return Hj.jsx("div",Object.assign({className:"row"},{children:Hj.jsx("p",Object.assign({className:`col-xs-3 col-xs-offset-9 text-right ${e}`},{children:Hj.jsx(wB,{iconType:"info",icon:"plus",className:"btn-add col-xs-12",title:o(HC.AddButton),onClick:t,disabled:r,registry:n})}))}))}function EB(e){const{id:t,description:r}=e;return r?"string"==typeof r?Hj.jsx("p",Object.assign({id:t,className:"field-description"},{children:r})):Hj.jsx("div",Object.assign({id:t,className:"field-description"},{children:r})):null}function jB({errors:e,registry:t}){const{translateString:r}=t;return Hj.jsxs("div",Object.assign({className:"panel panel-danger errors"},{children:[Hj.jsx("div",Object.assign({className:"panel-heading"},{children:Hj.jsx("h3",Object.assign({className:"panel-title"},{children:r(HC.ErrorsLabel)}))})),Hj.jsx("ul",Object.assign({className:"list-group"},{children:e.map(((e,t)=>Hj.jsx("li",Object.assign({className:"list-group-item text-danger"},{children:e.stack}),t)))}))]}))}const CB="*";function OB(e){const{label:t,required:r,id:n}=e;return t?Hj.jsxs("label",Object.assign({className:"control-label",htmlFor:n},{children:[t,r&&Hj.jsx("span",Object.assign({className:"required"},{children:CB}))]})):null}function PB(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=Kj("WrapIfAdditionalTemplate",c,_d(d));return s?Hj.jsx("div",Object.assign({className:"hidden"},{children:n})):Hj.jsxs(f,Object.assign({},e,{children:[u&&Hj.jsx(OB,{label:r,required:l,id:t}),u&&i?i:null,n,o,a]}))}function NB(e){const{errors:t=[],idSchema:r}=e;if(0===t.length)return null;const n=jC(r);return Hj.jsx("div",{children:Hj.jsx("ul",Object.assign({id:n,className:"error-detail bs-callout bs-callout-info"},{children:t.filter((e=>!!e)).map(((e,t)=>Hj.jsx("li",Object.assign({className:"text-danger"},{children:e}),t)))}))})}function RB(e){const{idSchema:t,help:r}=e;if(!r)return null;const n=OC(t);return"string"==typeof r?Hj.jsx("p",Object.assign({id:n,className:"help-block"},{children:r})):Hj.jsx("div",Object.assign({id:n,className:"help-block"},{children:r}))}function TB(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=_d(f),h=Kj("TitleFieldTemplate",l,p),m=Kj("DescriptionFieldTemplate",l,p),{ButtonTemplates:{AddButton:v}}=l.templates;return Hj.jsxs("fieldset",Object.assign({id:o.$id},{children:[d&&Hj.jsx(h,{id:PC(o),title:d,required:u,schema:c,uiSchema:f,registry:l}),t&&Hj.jsx(m,{id:EC(o),description:t,schema:c,uiSchema:f,registry:l}),i.map((e=>e.content)),$d(c,f,n)&&Hj.jsx(v,{className:"object-property-expand",onClick:a(c),disabled:r||s,uiSchema:f,registry:l})]}))}const AB="*";function IB(e){const{id:t,title:r,required:n}=e;return Hj.jsxs("legend",Object.assign({id:t},{children:[r,n&&Hj.jsx("span",Object.assign({className:"required"},{children:AB}))]}))}function MB(e){const{schema:t,idSchema:r,reason:n,registry:o}=e,{translateString:a}=o;let i=HC.UnsupportedField;const s=[];return r&&r.$id&&(i=HC.UnsupportedFieldWithId,s.push(r.$id)),n&&(i=i===HC.UnsupportedField?HC.UnsupportedFieldWithReason:HC.UnsupportedFieldWithIdAndReason,s.push(n)),Hj.jsxs("div",Object.assign({className:"unsupported-field"},{children:[Hj.jsx("p",{children:Hj.jsx(aB,{children:a(i,s)})}),t&&Hj.jsx("pre",{children:JSON.stringify(t,null,2)})]}))}function FB(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:m}=p,{RemoveButton:v}=h.ButtonTemplates,g=m(HC.KeyLabel,[a]);return td in c?Hj.jsx("div",Object.assign({className:r,style:n},{children:Hj.jsxs("div",Object.assign({className:"row"},{children:[Hj.jsx("div",Object.assign({className:"col-xs-5 form-additional"},{children:Hj.jsxs("div",Object.assign({className:"form-group"},{children:[Hj.jsx(OB,{label:g,required:u,id:`${t}-key`}),Hj.jsx("input",{className:"form-control",type:"text",id:`${t}-key`,onBlur:e=>i(e.target.value),defaultValue:a})]}))})),Hj.jsx("div",Object.assign({className:"form-additional form-group col-xs-5"},{children:d})),Hj.jsx("div",Object.assign({className:"col-xs-2"},{children:Hj.jsx(v,{className:"array-item-remove btn-block",style:{border:"0"},disabled:o||l,onClick:s(a),uiSchema:f,registry:p})}))]}))})):Hj.jsx("div",Object.assign({className:r,style:n},{children:d}))}function zB(e,t){const r=[];for(let n=e;n<=t;n++)r.push({value:n,label:IC(n,2)});return r}function DB(e,t,r=[1900,(new Date).getFullYear()+2]){const{year:n,month:o,day:a,hour:i,minute:s,second:l}=e,u=[{type:"year",range:r,value:n},{type:"month",range:[1,12],value:o},{type:"day",range:[1,31],value:a}];return t&&u.push({type:"hour",range:[0,23],value:i},{type:"minute",range:[0,59],value:s},{type:"second",range:[0,59],value:l}),u}function LB({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 Hj.jsx(p,{schema:{type:"integer"},id:f,name:a,className:"form-control",options:{enumOptions:zB(t[0],t[1])},placeholder:e,value:r,disabled:i,readonly:s,autofocus:l,onChange:t=>n(e,t),onBlur:c,onFocus:d,registry:u,label:"","aria-describedby":NC(o)})}function BB({time:e=!1,disabled:t=!1,readonly:r=!1,autofocus:n=!1,options:o,id:i,name:s,registry:l,onBlur:u,onFocus:c,onChange:d,value:f}){const{translateString:p}=l,[h,m]=a.useState(f),[v,g]=a.useReducer(((e,t)=>Object.assign(Object.assign({},e),t)),MC(f,e));a.useEffect((()=>{const t=zC(v,e);!function(e){return Object.values(e).every((e=>-1!==e))}(v)||t===f?h!==f&&(m(f),g(MC(f,e))):d(t)}),[e,f,d,v,h]);const y=a.useCallback(((e,t)=>{g({[e]:t})}),[]),b=a.useCallback((n=>{if(n.preventDefault(),t||r)return;const o=MC((new Date).toJSON(),e);d(zC(o,e))}),[t,r,e]),w=a.useCallback((e=>{e.preventDefault(),t||r||d(void 0)}),[t,r,d]);return Hj.jsxs("ul",Object.assign({className:"list-inline"},{children:[DB(v,e,o.yearsRange).map(((e,o)=>Hj.jsx("li",Object.assign({className:"list-inline-item"},{children:Hj.jsx(LB,Object.assign({rootId:i,name:s,select:y},e,{disabled:t,readonly:r,registry:l,onBlur:u,onFocus:c,autofocus:n&&0===o}))}),o))),("undefined"===o.hideNowButton||!o.hideNowButton)&&Hj.jsx("li",Object.assign({className:"list-inline-item"},{children:Hj.jsx("a",Object.assign({href:"#",className:"btn btn-info btn-now",onClick:b},{children:p(HC.NowLabel)}))})),("undefined"===o.hideClearButton||!o.hideClearButton)&&Hj.jsx("li",Object.assign({className:"list-inline-item"},{children:Hj.jsx("a",Object.assign({href:"#",className:"btn btn-warning btn-clear",onClick:w},{children:p(HC.ClearLabel)}))}))]}))}function VB(e){var{time:t=!0}=e,r=ov(e,["time"]);const{AltDateWidget:n}=r.registry.widgets;return Hj.jsx(n,Object.assign({time:t},r))}function UB({schema:e,uiSchema:t,options:r,id:n,value:o,disabled:i,readonly:s,label:l,hideLabel:u,autofocus:c=!1,onBlur:d,onFocus:f,onChange:p,registry:h}){var m;const v=Kj("DescriptionFieldTemplate",h,r),g=FC(e),y=a.useCallback((e=>p(e.target.checked)),[p]),b=a.useCallback((e=>d(n,e.target.checked)),[d,n]),w=a.useCallback((e=>f(n,e.target.checked)),[f,n]),S=null!==(m=r.description)&&void 0!==m?m:e.description;return Hj.jsxs("div",Object.assign({className:"checkbox "+(i||s?"disabled":"")},{children:[!u&&!!S&&Hj.jsx(v,{id:EC(n),description:S,schema:e,uiSchema:t,registry:h}),Hj.jsxs("label",{children:[Hj.jsx("input",{type:"checkbox",id:n,name:n,checked:void 0!==o&&o,required:g,disabled:i||s,autoFocus:c,onChange:y,onBlur:b,onFocus:w,"aria-describedby":NC(n)}),TC(Hj.jsx("span",{children:l}),u)]})]}))}function WB({id:e,disabled:t,options:{inline:r=!1,enumOptions:n,enumDisabled:o,emptyValue:i},value:s,autofocus:l=!1,readonly:u,onChange:c,onBlur:d,onFocus:f}){const p=Array.isArray(s)?s:[s],h=a.useCallback((({target:{value:t}})=>d(e,Aj(t,n,i))),[d,e]),m=a.useCallback((({target:{value:t}})=>f(e,Aj(t,n,i))),[f,e]);return Hj.jsx("div",Object.assign({className:"checkboxes",id:e},{children:Array.isArray(n)&&n.map(((a,i)=>{const s=Mj(a.value,p),d=Array.isArray(o)&&-1!==o.indexOf(a.value),f=t||d||u?"disabled":"",v=Hj.jsxs("span",{children:[Hj.jsx("input",{type:"checkbox",id:RC(e,i),name:e,checked:s,value:String(i),disabled:t||d||u,autoFocus:l&&0===i,onChange:e=>{e.target.checked?c(Lj(i,p,n)):c(Ij(i,p,n))},onBlur:h,onFocus:m,"aria-describedby":NC(e)}),Hj.jsx("span",{children:a.label})]});return r?Hj.jsx("label",Object.assign({className:`checkbox-inline ${f}`},{children:v}),i):Hj.jsx("div",Object.assign({className:`checkbox ${f}`},{children:Hj.jsx("label",{children:v})}),i)}))}))}function qB(e){const{disabled:t,readonly:r,options:n,registry:o}=e,a=Kj("BaseInputTemplate",o,n);return Hj.jsx(a,Object.assign({type:"color"},e,{disabled:t||r}))}function KB(e){const{onChange:t,options:r,registry:n}=e,o=Kj("BaseInputTemplate",n,r),i=a.useCallback((e=>t(e||void 0)),[t]);return Hj.jsx(o,Object.assign({type:"date"},e,{onChange:i}))}function HB(e){const{onChange:t,value:r,options:n,registry:o}=e,a=Kj("BaseInputTemplate",o,n);return Hj.jsx(a,Object.assign({type:"datetime-local"},e,{value:JC(r),onChange:e=>{return t((r=e)?new Date(r).toJSON():void 0);var r}}))}function GB(e){const{options:t,registry:r}=e,n=Kj("BaseInputTemplate",r,t);return Hj.jsx(n,Object.assign({type:"email"},e))}function QB(e,t){return null===e?null:e.replace(";base64",`;name=${encodeURIComponent(t)};base64`)}function JB(e){const{name:t,size:r,type:n}=e;return new Promise(((o,a)=>{const i=new window.FileReader;i.onerror=a,i.onload=e=>{var a;"string"==typeof(null===(a=e.target)||void 0===a?void 0:a.result)?o({dataURL:QB(e.target.result,t),name:t,size:r,type:n}):o({dataURL:null,name:t,size:r,type:n})},i.readAsDataURL(e)}))}function YB({fileInfo:e,registry:t}){const{translateString:r}=t,{dataURL:n,type:o,name:a}=e;return n?-1!==o.indexOf("image")?Hj.jsx("img",{src:n,style:{maxWidth:"100%"},className:"file-preview"}):Hj.jsxs(Hj.Fragment,{children:[" ",Hj.jsx("a",Object.assign({download:`preview-${a}`,href:n,className:"file-download"},{children:r(HC.PreviewLabel)}))]}):null}function XB({filesInfo:e,registry:t,preview:r}){if(0===e.length)return null;const{translateString:n}=t;return Hj.jsx("ul",Object.assign({className:"file-info"},{children:e.map(((e,o)=>{const{name:a,size:i,type:s}=e;return Hj.jsxs("li",{children:[Hj.jsx(aB,{children:n(HC.FilesInfo,[a,s,String(i)])}),r&&Hj.jsx(YB,{fileInfo:e,registry:t})]},o)}))}))}function ZB(e){return e.filter((e=>e)).map((e=>{const{blob:t,name:r}=function(e){const t=e.split(","),r=t[0].split(";"),n=r[0].replace("data:",""),o=r.filter((e=>"name"===e.split("=")[0]));let a;a=1!==o.length?"unknown":decodeURI(o[0].split("=")[1]);try{const e=atob(t[1]),r=[];for(let t=0;t<e.length;t++)r.push(e.charCodeAt(t));return{blob:new window.Blob([new Uint8Array(r)],{type:n}),name:a}}catch(t){return{blob:{size:0,type:t.message},name:e}}}(e);return{dataURL:e,name:r,size:t.size,type:t.type}}))}function eV(e){const{disabled:t,readonly:r,required:n,multiple:o,onChange:i,value:s,options:l,registry:u}=e,c=Kj("BaseInputTemplate",u,l),[d,f]=a.useState(Array.isArray(s)?ZB(s):ZB([s])),p=a.useCallback((e=>{var t;e.target.files&&(t=e.target.files,Promise.all(Array.from(t).map(JB))).then((e=>{const t=e.map((e=>e.dataURL));o?(f(d.concat(e[0])),i(s.concat(t[0]))):(f(e),i(t[0]))}))}),[o,s,d,i]);return Hj.jsxs("div",{children:[Hj.jsx(c,Object.assign({},e,{disabled:t||r,type:"file",required:!s&&n,onChangeOverride:p,value:"",accept:l.accept?String(l.accept):void 0})),Hj.jsx(XB,{filesInfo:d,registry:u,preview:l.filePreview})]})}function tV({id:e,value:t}){return Hj.jsx("input",{type:"hidden",id:e,name:e,value:void 0===t?"":t})}function rV(e){const{options:t,registry:r}=e,n=Kj("BaseInputTemplate",r,t);return Hj.jsx(n,Object.assign({type:"password"},e))}function nV({options:e,value:t,required:r,disabled:n,readonly:o,autofocus:i=!1,onBlur:s,onFocus:l,onChange:u,id:c}){const{enumOptions:d,enumDisabled:f,inline:p,emptyValue:h}=e,m=a.useCallback((({target:{value:e}})=>s(c,Aj(e,d,h))),[s,c]),v=a.useCallback((({target:{value:e}})=>l(c,Aj(e,d,h))),[l,c]);return Hj.jsx("div",Object.assign({className:"field-radio-group",id:c},{children:Array.isArray(d)&&d.map(((e,a)=>{const s=Mj(e.value,t),l=Array.isArray(f)&&-1!==f.indexOf(e.value),d=n||l||o?"disabled":"",h=Hj.jsxs("span",{children:[Hj.jsx("input",{type:"radio",id:RC(c,a),checked:s,name:c,required:r,value:String(a),disabled:n||l||o,autoFocus:i&&0===a,onChange:()=>u(e.value),onBlur:m,onFocus:v,"aria-describedby":NC(c)}),Hj.jsx("span",{children:e.label})]});return p?Hj.jsx("label",Object.assign({className:`radio-inline ${d}`},{children:h}),a):Hj.jsx("div",Object.assign({className:`radio ${d}`},{children:Hj.jsx("label",{children:h})}),a)}))}))}function oV(e){const{value:t,registry:{templates:{BaseInputTemplate:r}}}=e;return Hj.jsxs("div",Object.assign({className:"field-range-wrapper"},{children:[Hj.jsx(r,Object.assign({type:"range"},e)),Hj.jsx("span",Object.assign({className:"range-view"},{children:t}))]}))}function aV(e,t){return t?Array.from(e.target.options).slice().filter((e=>e.selected)).map((e=>e.value)):e.target.value}function iV({schema:e,id:t,options:r,value:n,required:o,disabled:i,readonly:s,multiple:l=!1,autofocus:u=!1,onChange:c,onBlur:d,onFocus:f,placeholder:p}){const{enumOptions:h,enumDisabled:m,emptyValue:v}=r,g=l?[]:"",y=a.useCallback((e=>{const r=aV(e,l);return f(t,Aj(r,h,v))}),[f,t,e,l,r]),b=a.useCallback((e=>{const r=aV(e,l);return d(t,Aj(r,h,v))}),[d,t,e,l,r]),w=a.useCallback((e=>{const t=aV(e,l);return c(Aj(t,h,v))}),[c,e,l,r]),S=Fj(n,h,l);return Hj.jsxs("select",Object.assign({id:t,name:t,multiple:l,className:"form-control",value:void 0===S?g:S,required:o,disabled:i||s,autoFocus:u,onBlur:b,onFocus:y,onChange:w,"aria-describedby":NC(t)},{children:[!l&&void 0===e.default&&Hj.jsx("option",Object.assign({value:""},{children:p})),Array.isArray(h)&&h.map((({value:e,label:t},r)=>{const n=m&&-1!==m.indexOf(e);return Hj.jsx("option",Object.assign({value:String(r),disabled:n},{children:t}),r)}))]}))}function sV({id:e,options:t={},placeholder:r,value:n,required:o,disabled:i,readonly:s,autofocus:l=!1,onChange:u,onBlur:c,onFocus:d}){const f=a.useCallback((({target:{value:e}})=>u(""===e?t.emptyValue:e)),[u,t.emptyValue]),p=a.useCallback((({target:{value:t}})=>c(e,t)),[c,e]),h=a.useCallback((({target:{value:t}})=>d(e,t)),[e,d]);return Hj.jsx("textarea",{id:e,name:e,className:"form-control",value:n||"",placeholder:r,required:o,disabled:i,readOnly:s,autoFocus:l,rows:t.rows,onBlur:p,onFocus:h,onChange:f,"aria-describedby":NC(e)})}function lV(e){const{options:t,registry:r}=e,n=Kj("BaseInputTemplate",r,t);return Hj.jsx(n,Object.assign({},e))}function uV(e){const{onChange:t,options:r,registry:n}=e,o=Kj("BaseInputTemplate",n,r),i=a.useCallback((e=>t(e?`${e}:00`:void 0)),[t]);return Hj.jsx(o,Object.assign({type:"time"},e,{onChange:i}))}function cV(e){const{options:t,registry:r}=e,n=Kj("BaseInputTemplate",r,t);return Hj.jsx(n,Object.assign({type:"url"},e))}function dV(e){const{options:t,registry:r}=e,n=Kj("BaseInputTemplate",r,t);return Hj.jsx(n,Object.assign({type:"number"},e))}function fV(){return{fields:{AnyOfField:cD,ArrayField:lD,BooleanField:uD,NumberField:pD,ObjectField:lB,OneOfField:cD,SchemaField:dB,StringField:fB,NullField:pB},templates:{ArrayFieldDescriptionTemplate:hB,ArrayFieldItemTemplate:mB,ArrayFieldTemplate:vB,ArrayFieldTitleTemplate:gB,ButtonTemplates:{SubmitButton:bB,AddButton:kB,CopyButton:SB,MoveDownButton:xB,MoveUpButton:_B,RemoveButton:$B},BaseInputTemplate:yB,DescriptionFieldTemplate:EB,ErrorListTemplate:jB,FieldTemplate:PB,FieldErrorTemplate:NB,FieldHelpTemplate:RB,ObjectFieldTemplate:TB,TitleFieldTemplate:IB,UnsupportedFieldTemplate:MB,WrapIfAdditionalTemplate:FB},widgets:{AltDateWidget:BB,AltDateTimeWidget:VB,CheckboxWidget:UB,CheckboxesWidget:WB,ColorWidget:qB,DateWidget:KB,DateTimeWidget:HB,EmailWidget:GB,FileWidget:eV,HiddenWidget:tV,PasswordWidget:rV,RadioWidget:nV,RangeWidget:oV,SelectWidget:iV,TextWidget:lV,TextareaWidget:sV,TimeWidget:uV,UpDownWidget:dV,URLWidget:cV},rootSchema:{},formContext:{},translateString:Tj}}sV.defaultProps={autofocus:!1,options:{}};let pV=class extends a.Component{constructor(e){if(super(e),this.getUsedFormData=(e,t)=>{if(0===t.length&&"object"!=typeof e)return e;const r=nD(e,t);return Array.isArray(e)?Object.keys(r).map((e=>r[e])):r},this.getFieldNames=(e,t)=>{const r=(e,n=[],o=[[]])=>(Object.keys(e).forEach((a=>{if("object"==typeof e[a]){const t=o.map((e=>[...e,a]));e[a][bd]&&""!==e[a][pd]?n.push(e[a][pd]):r(e[a],n,t)}else a===pd&&""!==e[a]&&o.forEach((e=>{const r=Lv(t,e);("object"!=typeof r||Jv(r))&&n.push(e)}))})),n);return r(e)},this.onChange=(e,t,r)=>{const{extraErrors:n,omitExtraData:o,liveOmit:a,noValidate:i,liveValidate:s,onChange:l}=this.props,{schemaUtils:u,schema:c}=this.state;if(Zc(e)||Array.isArray(e)){e=this.getStateFromProps(this.props,e).formData}const d=!i&&s;let f={formData:e,schema:c},p=e;if(!0===o&&!0===a){const t=u.retrieveSchema(c,e),r=u.toPathSchema(t,"",e),n=this.getFieldNames(r,e);p=this.getUsedFormData(e,n),f={formData:p}}if(d){const e=this.validate(p);let t=e.errors,r=e.errorSchema;const o=t,a=r;if(n){const o=YC(e,n);r=o.errorSchema,t=o.errors}f={formData:p,errors:t,errorSchema:r,schemaValidationErrors:o,schemaValidationErrorSchema:a}}else if(!i&&t){const e=n?vj(t,n,"preventDuplicates"):t;f={formData:p,errorSchema:e,errors:DC(e)}}this.setState(f,(()=>l&&l(Object.assign(Object.assign({},this.state),f),r)))},this.reset=()=>{const{onChange:e}=this.props,t={formData:this.getStateFromProps(this.props,void 0).formData,errorSchema:{},errors:[],schemaValidationErrors:[],schemaValidationErrorSchema:{}};this.setState(t,(()=>e&&e(Object.assign(Object.assign({},this.state),t))))},this.onBlur=(e,t)=>{const{onBlur:r}=this.props;r&&r(e,t)},this.onFocus=(e,t)=>{const{onFocus:r}=this.props;r&&r(e,t)},this.onSubmit=e=>{if(e.preventDefault(),e.target!==e.currentTarget)return;e.persist();const{omitExtraData:t,extraErrors:r,noValidate:n,onSubmit:o}=this.props;let{formData:a}=this.state;const{schema:i,schemaUtils:s}=this.state;if(!0===t){const e=s.retrieveSchema(i,a),t=s.toPathSchema(e,"",a),r=this.getFieldNames(t,a);a=this.getUsedFormData(a,r)}if(n||this.validateForm()){const t=r||{},n=r?DC(r):[];this.setState({formData:a,errors:n,errorSchema:t,schemaValidationErrors:[],schemaValidationErrorSchema:{}},(()=>{o&&o(Object.assign(Object.assign({},this.state),{formData:a,status:"submitted"}),e)}))}},!e.validator)throw new Error("A validator is required for Form functionality to work");this.state=this.getStateFromProps(e,e.formData),this.props.onChange&&!nv(this.state.formData,this.props.formData)&&this.props.onChange(this.state),this.formElement=a.createRef()}UNSAFE_componentWillReceiveProps(e){const t=this.getStateFromProps(e,e.formData);nv(t.formData,e.formData)||nv(t.formData,this.state.formData)||!e.onChange||e.onChange(t),this.setState(t)}getStateFromProps(e,t){const r=this.state||{},n="schema"in e?e.schema:this.props.schema,o=("uiSchema"in e?e.uiSchema:this.props.uiSchema)||{},a=void 0!==t,i="liveValidate"in e?e.liveValidate:this.props.liveValidate,s=a&&!e.noValidate&&i,l=n,u="experimental_defaultFormStateBehavior"in e?e.experimental_defaultFormStateBehavior:this.props.experimental_defaultFormStateBehavior;let c=r.schemaUtils;c&&!c.doesSchemaUtilsDiffer(e.validator,l,u)||(c=function(e,t,r={}){return new Rj(e,t,r)}(e.validator,l,u));const d=c.getDefaultFormState(n,t),f=c.retrieveSchema(n,d);let p,h,m=r.schemaValidationErrors,v=r.schemaValidationErrorSchema;if(s){const e=this.validate(d,n,c);p=e.errors,h=e.errorSchema,m=p,v=h}else{const t=e.noValidate?{errors:[],errorSchema:{}}:e.liveValidate?{errors:r.errors||[],errorSchema:r.errorSchema||{}}:{errors:r.schemaValidationErrors||[],errorSchema:r.schemaValidationErrorSchema||{}};p=t.errors,h=t.errorSchema}if(e.extraErrors){const t=YC({errorSchema:h,errors:p},e.extraErrors);h=t.errorSchema,p=t.errors}const g=c.toIdSchema(f,o["ui:rootFieldId"],d,e.idPrefix,e.idSeparator);return{schemaUtils:c,schema:n,uiSchema:o,idSchema:g,formData:d,edit:a,errors:p,errorSchema:h,schemaValidationErrors:m,schemaValidationErrorSchema:v}}shouldComponentUpdate(e,t){return function(e,t,r){const{props:n,state:o}=e;return!nv(n,t)||!nv(o,r)}(this,e,t)}validate(e,t=this.props.schema,r){const n=r||this.state.schemaUtils,{customValidate:o,transformErrors:a,uiSchema:i}=this.props,s=n.retrieveSchema(t,e);return n.getValidator().validateFormData(e,s,o,a,i)}renderErrors(e){const{errors:t,errorSchema:r,schema:n,uiSchema:o}=this.state,{formContext:a}=this.props,i=Kj("ErrorListTemplate",e,_d(o));return t&&t.length?Hj.jsx(i,{errors:t,errorSchema:r||{},schema:n,uiSchema:o,formContext:a,registry:e}):null}getRegistry(){var e;const{translateString:t,uiSchema:r={}}=this.props,{schemaUtils:n}=this.state,{fields:o,templates:a,widgets:i,formContext:s,translateString:l}=fV();return{fields:Object.assign(Object.assign({},o),this.props.fields),templates:Object.assign(Object.assign(Object.assign({},a),this.props.templates),{ButtonTemplates:Object.assign(Object.assign({},a.ButtonTemplates),null===(e=this.props.templates)||void 0===e?void 0:e.ButtonTemplates)}),widgets:Object.assign(Object.assign({},i),this.props.widgets),rootSchema:this.props.schema,formContext:this.props.formContext||s,schemaUtils:n,translateString:t||l,globalUiOptions:r["ui:globalOptions"]}}submit(){this.formElement.current&&(this.formElement.current.dispatchEvent(new CustomEvent("submit",{cancelable:!0})),this.formElement.current.requestSubmit())}focusOnError(e){const{idPrefix:t="root",idSeparator:r="_"}=this.props,{property:n}=e,o=GC(n);""===o[0]?o[0]=t:o.unshift(t);const a=o.join(r);let i=this.formElement.current.elements[a];i||(i=this.formElement.current.querySelector(`input[id^=${a}`)),i&&i.length&&(i=i[0]),i&&i.focus()}validateForm(){const{extraErrors:e,extraErrorsBlockSubmit:t,focusOnFirstError:r,onError:n}=this.props,{formData:o,errors:a}=this.state,i=this.validate(o);let s=i.errors,l=i.errorSchema;const u=s,c=l,d=s.length>0||e&&t;if(d){if(e){const t=YC(i,e);l=t.errorSchema,s=t.errors}r&&("function"==typeof r?r(s[0]):this.focusOnError(s[0])),this.setState({errors:s,errorSchema:l,schemaValidationErrors:u,schemaValidationErrorSchema:c},(()=>{n?n(s):console.error("Form validation failed",s)}))}else a.length>0&&this.setState({errors:[],errorSchema:{},schemaValidationErrors:[],schemaValidationErrorSchema:{}});return!d}render(){const{children:e,id:t,idPrefix:r,idSeparator:n,className:o="",tagName:a,name:i,method:s,target:l,action:u,autoComplete:c,enctype:d,acceptcharset:f,noHtml5Validate:p=!1,disabled:h=!1,readonly:m=!1,formContext:v,showErrorList:g="top",_internalFormWrapper:y}=this.props,{schema:b,uiSchema:w,formData:S,errorSchema:x,idSchema:_}=this.state,$=this.getRegistry(),{SchemaField:k}=$.fields,{SubmitButton:E}=$.templates.ButtonTemplates,j=y?a:void 0,C=y||a||"form";let{[gd]:O={}}=_d(w);h&&(O=Object.assign(Object.assign({},O),{props:Object.assign(Object.assign({},O.props),{disabled:!0})}));const P={[xd]:{[gd]:O}};return Hj.jsxs(C,Object.assign({className:o||"rjsf",id:t,name:i,method:s,target:l,action:u,autoComplete:c,encType:d,acceptCharset:f,noValidate:p,onSubmit:this.onSubmit,as:j,ref:this.formElement},{children:["top"===g&&this.renderErrors($),Hj.jsx(k,{name:"",schema:b,uiSchema:w,errorSchema:x,idSchema:_,idPrefix:r,idSeparator:n,formContext:v,formData:S,onChange:this.onChange,onBlur:this.onBlur,onFocus:this.onFocus,registry:$,disabled:h,readonly:m}),e||Hj.jsx(E,{uiSchema:P,registry:$}),"bottom"===g&&this.renderErrors($)]}))}};var hV={},mV={},vV={get exports(){return mV},set exports(e){mV=e}};!function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports}(vV);var gV={};function yV(){return yV=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},yV.apply(this,arguments)}function bV(e){return null!==e&&"object"==typeof e&&e.constructor===Object}function wV(e){if(!bV(e))return e;const t={};return Object.keys(e).forEach((r=>{t[r]=wV(e[r])})),t}function SV(e,t,r={clone:!0}){const n=r.clone?yV({},e):e;return bV(e)&&bV(t)&&Object.keys(t).forEach((o=>{"__proto__"!==o&&(bV(t[o])&&o in e&&bV(e[o])?n[o]=SV(e[o],t[o],r):r.clone?n[o]=bV(t[o])?wV(t[o]):t[o]:n[o]=t[o])})),n}function xV(e){let t="https://mui.com/production-error/?code="+e;for(let e=1;e<arguments.length;e+=1)t+="&args[]="+encodeURIComponent(arguments[e]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}function _V(e){if("string"!=typeof e)throw new Error(xV(7));return e.charAt(0).toUpperCase()+e.slice(1)}function $V(...e){return e.reduce(((e,t)=>null==t?e:function(...r){e.apply(this,r),t.apply(this,r)}),(()=>{}))}function kV(e,t=166){let r;function n(...n){clearTimeout(r),r=setTimeout((()=>{e.apply(this,n)}),t)}return n.clear=()=>{clearTimeout(r)},n}function EV(e,t){var r,n;return a.isValidElement(e)&&-1!==t.indexOf(null!=(r=e.type.muiName)?r:null==(n=e.type)||null==(n=n._payload)||null==(n=n.value)?void 0:n.muiName)}function jV(e){return e&&e.ownerDocument||document}function CV(e){return jV(e).defaultView||window}function OV(e,t){"function"==typeof e?e(t):e&&(e.current=t)}var PV="undefined"!=typeof window?a.useLayoutEffect:a.useEffect;let NV=0;const RV=V["useId".toString()];function TV(e){if(void 0!==RV){const t=RV();return null!=e?e:t}return function(e){const[t,r]=a.useState(e),n=e||t;return a.useEffect((()=>{null==t&&(NV+=1,r(`mui-${NV}`))}),[t]),n}(e)}function AV({controlled:e,default:t,name:r,state:n="value"}){const{current:o}=a.useRef(void 0!==e),[i,s]=a.useState(t);return[o?e:i,a.useCallback((e=>{o||s(e)}),[])]}function IV(e){const t=a.useRef(e);return PV((()=>{t.current=e})),a.useCallback(((...e)=>(0,t.current)(...e)),[])}function MV(...e){return a.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{OV(e,t)}))}),e)}let FV,zV=!0,DV=!1;const LV={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function BV(e){e.metaKey||e.altKey||e.ctrlKey||(zV=!0)}function VV(){zV=!1}function UV(){"hidden"===this.visibilityState&&DV&&(zV=!0)}function WV(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return zV||function(e){const{type:t,tagName:r}=e;return!("INPUT"!==r||!LV[t]||e.readOnly)||"TEXTAREA"===r&&!e.readOnly||!!e.isContentEditable}(t)}function qV(){const e=a.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",BV,!0),t.addEventListener("mousedown",VV,!0),t.addEventListener("pointerdown",VV,!0),t.addEventListener("touchstart",VV,!0),t.addEventListener("visibilitychange",UV,!0))}),[]),t=a.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!WV(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(DV=!0,window.clearTimeout(FV),FV=window.setTimeout((()=>{DV=!1}),100),t.current=!1,!0)},ref:e}}function KV(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}var HV={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:-1,overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function GV(e,t){const r=yV({},t);return Object.keys(e).forEach((n=>{if(n.toString().match(/^(components|slots)$/))r[n]=yV({},e[n],r[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const o=e[n]||{},a=t[n];r[n]={},a&&Object.keys(a)?o&&Object.keys(o)?(r[n]=yV({},a),Object.keys(o).forEach((e=>{r[n][e]=GV(o[e],a[e])}))):r[n]=a:r[n]=o}else void 0===r[n]&&(r[n]=e[n])})),r}function QV(e,t,r=void 0){const n={};return Object.keys(e).forEach((o=>{n[o]=e[o].reduce(((e,n)=>{if(n){const o=t(n);""!==o&&e.push(o),r&&r[n]&&e.push(r[n])}return e}),[]).join(" ")})),n}const JV=e=>e;var YV=(()=>{let e=JV;return{configure(t){e=t},generate:t=>e(t),reset(){e=JV}}})();const XV={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 ZV(e,t,r="Mui"){const n=XV[t];return n?`${r}-${n}`:`${YV.generate(e)}-${t}`}function eU(e,t,r="Mui"){const n={};return t.forEach((t=>{n[t]=ZV(e,t,r)})),n}function tU(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}function rU(e){var t,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(r=rU(e[t]))&&(n&&(n+=" "),n+=r);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function nU(){for(var e,t,r=0,n="";r<arguments.length;)(e=arguments[r++])&&(t=rU(e))&&(n&&(n+=" "),n+=t);return n}function oU(e){var t=Object.create(null);return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}var aU=/^((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)-.*))$/,iU=oU((function(e){return aU.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}));var sU=function(){function e(e){var t=this;this._insertTag=function(e){var r;r=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,r),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var r=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{r.insertRule(e,r.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}(),lU="-ms-",uU="-moz-",cU="-webkit-",dU="comm",fU="rule",pU="decl",hU="@keyframes",mU=Math.abs,vU=String.fromCharCode,gU=Object.assign;function yU(e){return e.trim()}function bU(e,t,r){return e.replace(t,r)}function wU(e,t){return e.indexOf(t)}function SU(e,t){return 0|e.charCodeAt(t)}function xU(e,t,r){return e.slice(t,r)}function _U(e){return e.length}function $U(e){return e.length}function kU(e,t){return t.push(e),e}var EU=1,jU=1,CU=0,OU=0,PU=0,NU="";function RU(e,t,r,n,o,a,i){return{value:e,root:t,parent:r,type:n,props:o,children:a,line:EU,column:jU,length:i,return:""}}function TU(e,t){return gU(RU("",null,null,"",null,null,0),e,{length:-e.length},t)}function AU(){return PU=OU>0?SU(NU,--OU):0,jU--,10===PU&&(jU=1,EU--),PU}function IU(){return PU=OU<CU?SU(NU,OU++):0,jU++,10===PU&&(jU=1,EU++),PU}function MU(){return SU(NU,OU)}function FU(){return OU}function zU(e,t){return xU(NU,e,t)}function DU(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function LU(e){return EU=jU=1,CU=_U(NU=e),OU=0,[]}function BU(e){return NU="",e}function VU(e){return yU(zU(OU-1,qU(91===e?e+2:40===e?e+1:e)))}function UU(e){for(;(PU=MU())&&PU<33;)IU();return DU(e)>2||DU(PU)>3?"":" "}function WU(e,t){for(;--t&&IU()&&!(PU<48||PU>102||PU>57&&PU<65||PU>70&&PU<97););return zU(e,FU()+(t<6&&32==MU()&&32==IU()))}function qU(e){for(;IU();)switch(PU){case e:return OU;case 34:case 39:34!==e&&39!==e&&qU(PU);break;case 40:41===e&&qU(e);break;case 92:IU()}return OU}function KU(e,t){for(;IU()&&e+PU!==57&&(e+PU!==84||47!==MU()););return"/*"+zU(t,OU-1)+"*"+vU(47===e?e:IU())}function HU(e){for(;!DU(MU());)IU();return zU(e,OU)}function GU(e){return BU(QU("",null,null,null,[""],e=LU(e),0,[0],e))}function QU(e,t,r,n,o,a,i,s,l){for(var u=0,c=0,d=i,f=0,p=0,h=0,m=1,v=1,g=1,y=0,b="",w=o,S=a,x=n,_=b;v;)switch(h=y,y=IU()){case 40:if(108!=h&&58==SU(_,d-1)){-1!=wU(_+=bU(VU(y),"&","&\f"),"&\f")&&(g=-1);break}case 34:case 39:case 91:_+=VU(y);break;case 9:case 10:case 13:case 32:_+=UU(h);break;case 92:_+=WU(FU()-1,7);continue;case 47:switch(MU()){case 42:case 47:kU(YU(KU(IU(),FU()),t,r),l);break;default:_+="/"}break;case 123*m:s[u++]=_U(_)*g;case 125*m:case 59:case 0:switch(y){case 0:case 125:v=0;case 59+c:-1==g&&(_=bU(_,/\f/g,"")),p>0&&_U(_)-d&&kU(p>32?XU(_+";",n,r,d-1):XU(bU(_," ","")+";",n,r,d-2),l);break;case 59:_+=";";default:if(kU(x=JU(_,t,r,u,c,o,s,b,w=[],S=[],d),a),123===y)if(0===c)QU(_,t,x,x,w,a,d,s,S);else switch(99===f&&110===SU(_,3)?100:f){case 100:case 108:case 109:case 115:QU(e,x,x,n&&kU(JU(e,x,x,0,0,o,s,b,o,w=[],d),S),o,S,d,s,n?w:S);break;default:QU(_,x,x,x,[""],S,0,s,S)}}u=c=p=0,m=g=1,b=_="",d=i;break;case 58:d=1+_U(_),p=h;default:if(m<1)if(123==y)--m;else if(125==y&&0==m++&&125==AU())continue;switch(_+=vU(y),y*m){case 38:g=c>0?1:(_+="\f",-1);break;case 44:s[u++]=(_U(_)-1)*g,g=1;break;case 64:45===MU()&&(_+=VU(IU())),f=MU(),c=d=_U(b=_+=HU(FU())),y++;break;case 45:45===h&&2==_U(_)&&(m=0)}}return a}function JU(e,t,r,n,o,a,i,s,l,u,c){for(var d=o-1,f=0===o?a:[""],p=$U(f),h=0,m=0,v=0;h<n;++h)for(var g=0,y=xU(e,d+1,d=mU(m=i[h])),b=e;g<p;++g)(b=yU(m>0?f[g]+" "+y:bU(y,/&\f/g,f[g])))&&(l[v++]=b);return RU(e,t,r,0===o?fU:s,l,u,c)}function YU(e,t,r){return RU(e,t,r,dU,vU(PU),xU(e,2,-2),0)}function XU(e,t,r,n){return RU(e,t,r,pU,xU(e,0,n),xU(e,n+1,-1),n)}function ZU(e,t){for(var r="",n=$U(e),o=0;o<n;o++)r+=t(e[o],o,e,t)||"";return r}function eW(e,t,r,n){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case pU:return e.return=e.return||e.value;case dU:return"";case hU:return e.return=e.value+"{"+ZU(e.children,n)+"}";case fU:e.value=e.props.join(",")}return _U(r=ZU(e.children,n))?e.return=e.value+"{"+r+"}":""}var tW=function(e,t,r){for(var n=0,o=0;n=o,o=MU(),38===n&&12===o&&(t[r]=1),!DU(o);)IU();return zU(e,OU)},rW=function(e,t){return BU(function(e,t){var r=-1,n=44;do{switch(DU(n)){case 0:38===n&&12===MU()&&(t[r]=1),e[r]+=tW(OU-1,t,r);break;case 2:e[r]+=VU(n);break;case 4:if(44===n){e[++r]=58===MU()?"&\f":"",t[r]=e[r].length;break}default:e[r]+=vU(n)}}while(n=IU());return e}(LU(e),t))},nW=new WeakMap,oW=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,r=e.parent,n=e.column===r.column&&e.line===r.line;"rule"!==r.type;)if(!(r=r.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||nW.get(r))&&!n){nW.set(e,!0);for(var o=[],a=rW(t,o),i=r.props,s=0,l=0;s<a.length;s++)for(var u=0;u<i.length;u++,l++)e.props[l]=o[s]?a[s].replace(/&\f/g,i[u]):i[u]+" "+a[s]}}},aW=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function iW(e,t){switch(function(e,t){return 45^SU(e,0)?(((t<<2^SU(e,0))<<2^SU(e,1))<<2^SU(e,2))<<2^SU(e,3):0}(e,t)){case 5103:return cU+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return cU+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return cU+e+uU+e+lU+e+e;case 6828:case 4268:return cU+e+lU+e+e;case 6165:return cU+e+lU+"flex-"+e+e;case 5187:return cU+e+bU(e,/(\w+).+(:[^]+)/,cU+"box-$1$2"+lU+"flex-$1$2")+e;case 5443:return cU+e+lU+"flex-item-"+bU(e,/flex-|-self/,"")+e;case 4675:return cU+e+lU+"flex-line-pack"+bU(e,/align-content|flex-|-self/,"")+e;case 5548:return cU+e+lU+bU(e,"shrink","negative")+e;case 5292:return cU+e+lU+bU(e,"basis","preferred-size")+e;case 6060:return cU+"box-"+bU(e,"-grow","")+cU+e+lU+bU(e,"grow","positive")+e;case 4554:return cU+bU(e,/([^-])(transform)/g,"$1"+cU+"$2")+e;case 6187:return bU(bU(bU(e,/(zoom-|grab)/,cU+"$1"),/(image-set)/,cU+"$1"),e,"")+e;case 5495:case 3959:return bU(e,/(image-set\([^]*)/,cU+"$1$`$1");case 4968:return bU(bU(e,/(.+:)(flex-)?(.*)/,cU+"box-pack:$3"+lU+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+cU+e+e;case 4095:case 3583:case 4068:case 2532:return bU(e,/(.+)-inline(.+)/,cU+"$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(_U(e)-1-t>6)switch(SU(e,t+1)){case 109:if(45!==SU(e,t+4))break;case 102:return bU(e,/(.+:)(.+)-([^]+)/,"$1"+cU+"$2-$3$1"+uU+(108==SU(e,t+3)?"$3":"$2-$3"))+e;case 115:return~wU(e,"stretch")?iW(bU(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==SU(e,t+1))break;case 6444:switch(SU(e,_U(e)-3-(~wU(e,"!important")&&10))){case 107:return bU(e,":",":"+cU)+e;case 101:return bU(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+cU+(45===SU(e,14)?"inline-":"")+"box$3$1"+cU+"$2$3$1"+lU+"$2box$3")+e}break;case 5936:switch(SU(e,t+11)){case 114:return cU+e+lU+bU(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return cU+e+lU+bU(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return cU+e+lU+bU(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return cU+e+lU+e+e}return e}var sW=[function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case pU:e.return=iW(e.value,e.length);break;case hU:return ZU([TU(e,{value:bU(e.value,"@","@"+cU)})],n);case fU:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ZU([TU(e,{props:[bU(t,/:(read-\w+)/,":-moz-$1")]})],n);case"::placeholder":return ZU([TU(e,{props:[bU(t,/:(plac\w+)/,":"+cU+"input-$1")]}),TU(e,{props:[bU(t,/:(plac\w+)/,":-moz-$1")]}),TU(e,{props:[bU(t,/:(plac\w+)/,lU+"input-$1")]})],n)}return""}))}}],lW=function(e){var t=e.key;if("css"===t){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var n,o,a=e.stylisPlugins||sW,i={},s=[];n=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),r=1;r<t.length;r++)i[t[r]]=!0;s.push(e)}));var l,u,c=[eW,(u=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&u(e)})],d=function(e){var t=$U(e);return function(r,n,o,a){for(var i="",s=0;s<t;s++)i+=e[s](r,n,o,a)||"";return i}}([oW,aW].concat(a,c));o=function(e,t,r,n){l=r,function(e){ZU(GU(e),d)}(e?e+"{"+t.styles+"}":t.styles),n&&(f.inserted[t.name]=!0)};var f={key:t,sheet:new sU({key:t,container:n,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:o};return f.sheet.hydrate(s),f},uW={},cW={get exports(){return uW},set exports(e){uW=e}},dW={},fW="function"==typeof Symbol&&Symbol.for,pW=fW?Symbol.for("react.element"):60103,hW=fW?Symbol.for("react.portal"):60106,mW=fW?Symbol.for("react.fragment"):60107,vW=fW?Symbol.for("react.strict_mode"):60108,gW=fW?Symbol.for("react.profiler"):60114,yW=fW?Symbol.for("react.provider"):60109,bW=fW?Symbol.for("react.context"):60110,wW=fW?Symbol.for("react.async_mode"):60111,SW=fW?Symbol.for("react.concurrent_mode"):60111,xW=fW?Symbol.for("react.forward_ref"):60112,_W=fW?Symbol.for("react.suspense"):60113,$W=fW?Symbol.for("react.suspense_list"):60120,kW=fW?Symbol.for("react.memo"):60115,EW=fW?Symbol.for("react.lazy"):60116,jW=fW?Symbol.for("react.block"):60121,CW=fW?Symbol.for("react.fundamental"):60117,OW=fW?Symbol.for("react.responder"):60118,PW=fW?Symbol.for("react.scope"):60119;function NW(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case pW:switch(e=e.type){case wW:case SW:case mW:case gW:case vW:case _W:return e;default:switch(e=e&&e.$$typeof){case bW:case xW:case EW:case kW:case yW:return e;default:return t}}case hW:return t}}}function RW(e){return NW(e)===SW}dW.AsyncMode=wW,dW.ConcurrentMode=SW,dW.ContextConsumer=bW,dW.ContextProvider=yW,dW.Element=pW,dW.ForwardRef=xW,dW.Fragment=mW,dW.Lazy=EW,dW.Memo=kW,dW.Portal=hW,dW.Profiler=gW,dW.StrictMode=vW,dW.Suspense=_W,dW.isAsyncMode=function(e){return RW(e)||NW(e)===wW},dW.isConcurrentMode=RW,dW.isContextConsumer=function(e){return NW(e)===bW},dW.isContextProvider=function(e){return NW(e)===yW},dW.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===pW},dW.isForwardRef=function(e){return NW(e)===xW},dW.isFragment=function(e){return NW(e)===mW},dW.isLazy=function(e){return NW(e)===EW},dW.isMemo=function(e){return NW(e)===kW},dW.isPortal=function(e){return NW(e)===hW},dW.isProfiler=function(e){return NW(e)===gW},dW.isStrictMode=function(e){return NW(e)===vW},dW.isSuspense=function(e){return NW(e)===_W},dW.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===mW||e===SW||e===gW||e===vW||e===_W||e===$W||"object"==typeof e&&null!==e&&(e.$$typeof===EW||e.$$typeof===kW||e.$$typeof===yW||e.$$typeof===bW||e.$$typeof===xW||e.$$typeof===CW||e.$$typeof===OW||e.$$typeof===PW||e.$$typeof===jW)},dW.typeOf=NW,function(e){e.exports=dW}(cW);var TW=uW,AW={};AW[TW.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},AW[TW.Memo]={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0};var IW=function(e,t,r){var n=e.key+"-"+t.name;!1===r&&void 0===e.registered[n]&&(e.registered[n]=t.styles)},MW=function(e,t,r){IW(e,t,r);var n=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+n:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}};var FW={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},zW=/[A-Z]|^ms/g,DW=/_EMO_([^_]+?)_([^]*?)_EMO_/g,LW=function(e){return 45===e.charCodeAt(1)},BW=function(e){return null!=e&&"boolean"!=typeof e},VW=oU((function(e){return LW(e)?e:e.replace(zW,"-$&").toLowerCase()})),UW=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(DW,(function(e,t,r){return qW={name:t,styles:r,next:qW},t}))}return 1===FW[e]||LW(e)||"number"!=typeof t||0===t?t:t+"px"};function WW(e,t,r){if(null==r)return"";if(void 0!==r.__emotion_styles)return r;switch(typeof r){case"boolean":return"";case"object":if(1===r.anim)return qW={name:r.name,styles:r.styles,next:qW},r.name;if(void 0!==r.styles){var n=r.next;if(void 0!==n)for(;void 0!==n;)qW={name:n.name,styles:n.styles,next:qW},n=n.next;return r.styles+";"}return function(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o++)n+=WW(e,t,r[o])+";";else for(var a in r){var i=r[a];if("object"!=typeof i)null!=t&&void 0!==t[i]?n+=a+"{"+t[i]+"}":BW(i)&&(n+=VW(a)+":"+UW(a,i)+";");else if(!Array.isArray(i)||"string"!=typeof i[0]||null!=t&&void 0!==t[i[0]]){var s=WW(e,t,i);switch(a){case"animation":case"animationName":n+=VW(a)+":"+s+";";break;default:n+=a+"{"+s+"}"}}else for(var l=0;l<i.length;l++)BW(i[l])&&(n+=VW(a)+":"+UW(a,i[l])+";")}return n}(e,t,r);case"function":if(void 0!==e){var o=qW,a=r(e);return qW=o,WW(e,t,a)}}if(null==t)return r;var i=t[r];return void 0!==i?i:r}var qW,KW=/label:\s*([^\s;\n{]+)\s*(;|$)/g,HW=function(e,t,r){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var n=!0,o="";qW=void 0;var a=e[0];null==a||void 0===a.raw?(n=!1,o+=WW(r,t,a)):o+=a[0];for(var i=1;i<e.length;i++)o+=WW(r,t,e[i]),n&&(o+=a[i]);KW.lastIndex=0;for(var s,l="";null!==(s=KW.exec(o));)l+="-"+s[1];var u=function(e){for(var t,r=0,n=0,o=e.length;o>=4;++n,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))+(59797*(t>>>16)<<16),r=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&r)+(59797*(r>>>16)<<16);switch(o){case 3:r^=(255&e.charCodeAt(n+2))<<16;case 2:r^=(255&e.charCodeAt(n+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(n)))+(59797*(r>>>16)<<16)}return(((r=1540483477*(65535&(r^=r>>>13))+(59797*(r>>>16)<<16))^r>>>15)>>>0).toString(36)}(o)+l;return{name:u,styles:o,next:qW}},GW=!!V.useInsertionEffect&&V.useInsertionEffect,QW=GW||function(e){return e()},JW=GW||a.useLayoutEffect,YW=a.createContext("undefined"!=typeof HTMLElement?lW({key:"css"}):null);YW.Provider;var XW=function(e){return a.forwardRef((function(t,r){var n=a.useContext(YW);return e(t,n,r)}))},ZW=a.createContext({}),eq=XW((function(e,t){var r=e.styles,n=HW([r],void 0,a.useContext(ZW)),o=a.useRef();return JW((function(){var e=t.key+"-global",r=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),a=!1,i=document.querySelector('style[data-emotion="'+e+" "+n.name+'"]');return t.sheet.tags.length&&(r.before=t.sheet.tags[0]),null!==i&&(a=!0,i.setAttribute("data-emotion",e),r.hydrate([i])),o.current=[r,a],function(){r.flush()}}),[t]),JW((function(){var e=o.current,r=e[0];if(e[1])e[1]=!1;else{if(void 0!==n.next&&MW(t,n.next,!0),r.tags.length){var a=r.tags[r.tags.length-1].nextElementSibling;r.before=a,r.flush()}t.insert("",n,r,!1)}}),[t,n.name]),null}));function tq(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return HW(t)}var rq=function(){var e=tq.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}},nq=iU,oq=function(e){return"theme"!==e},aq=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?nq:oq},iq=function(e,t,r){var n;if(t){var o=t.shouldForwardProp;n=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!=typeof n&&r&&(n=e.__emotion_forwardProp),n},sq=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return IW(t,r,n),QW((function(){return MW(t,r,n)})),null},lq=function e(t,r){var n,o,i=t.__emotion_real===t,s=i&&t.__emotion_base||t;void 0!==r&&(n=r.label,o=r.target);var l=iq(t,r,i),u=l||aq(s),c=!u("as");return function(){var d=arguments,f=i&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==n&&f.push("label:"+n+";"),null==d[0]||void 0===d[0].raw)f.push.apply(f,d);else{f.push(d[0][0]);for(var p=d.length,h=1;h<p;h++)f.push(d[h],d[0][h])}var m=XW((function(e,t,r){var n,i,d,p,h=c&&e.as||s,m="",v=[],g=e;if(null==e.theme){for(var y in g={},e)g[y]=e[y];g.theme=a.useContext(ZW)}"string"==typeof e.className?(n=t.registered,i=v,d=e.className,p="",d.split(" ").forEach((function(e){void 0!==n[e]?i.push(n[e]+";"):p+=e+" "})),m=p):null!=e.className&&(m=e.className+" ");var b=HW(f.concat(v),t.registered,g);m+=t.key+"-"+b.name,void 0!==o&&(m+=" "+o);var w=c&&void 0===l?aq(h):u,S={};for(var x in e)c&&"as"===x||w(x)&&(S[x]=e[x]);return S.className=m,S.ref=r,a.createElement(a.Fragment,null,a.createElement(sq,{cache:t,serialized:b,isStringTag:"string"==typeof h}),a.createElement(h,S))}));return m.displayName=void 0!==n?n:"Styled("+("string"==typeof s?s:s.displayName||s.name||"Component")+")",m.defaultProps=t.defaultProps,m.__emotion_real=m,m.__emotion_base=s,m.__emotion_styles=f,m.__emotion_forwardProp=l,Object.defineProperty(m,"toString",{value:function(){return"."+o}}),m.withComponent=function(t,n){return e(t,yV({},r,n,{shouldForwardProp:iq(m,n,!0)})).apply(void 0,f)},m}}.bind();function uq(e){const{styles:t,defaultTheme:r={}}=e,n="function"==typeof t?e=>{return t(null==(n=e)||0===Object.keys(n).length?r:e);var n}:t;return Hj.jsx(eq,{styles:n})}
|
|
36
57
|
/**
|
|
37
|
-
* @mui/styled-engine v5.14.
|
|
58
|
+
* @mui/styled-engine v5.14.12
|
|
38
59
|
*
|
|
39
60
|
* @license MIT
|
|
40
61
|
* This source code is licensed under the MIT license found in the
|
|
41
62
|
* LICENSE file in the root directory of this source tree.
|
|
42
|
-
*/function gQ(e,t){return vQ(e,t)}["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){vQ[e]=vQ(e)}));const bQ=["values","unit","step"],wQ=e=>{const t=Object.keys(e).map((t=>({key:t,val:e[t]})))||[];return t.sort(((e,t)=>e.val-t.val)),t.reduce(((e,t)=>EK({},e,{[t.key]:t.val})),{})};var SQ={borderRadius:4};function xQ(e,t){return t?jK(e,t,{clone:!1}):e}const $Q={xs:0,sm:600,md:900,lg:1200,xl:1536},kQ={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${$Q[e]}px)`};function _Q(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const e=n.breakpoints||kQ;return t.reduce(((n,o,a)=>(n[e.up(e.keys[a])]=r(t[a]),n)),{})}if("object"==typeof t){const e=n.breakpoints||kQ;return Object.keys(t).reduce(((n,o)=>{if(-1!==Object.keys(e.values||$Q).indexOf(o)){n[e.up(o)]=r(t[o],o)}else{const e=o;n[e]=t[e]}return n}),{})}return r(t)}function EQ(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce(((t,r)=>(t[e.up(r)]={},t)),{}))||{}}function CQ(e,t){return e.reduce(((e,t)=>{const r=e[t];return(!r||0===Object.keys(r).length)&&delete e[t],e}),t)}function PQ({values:e,breakpoints:t,base:r}){const n=r||function(e,t){if("object"!=typeof e)return{};const r={},n=Object.keys(t);return Array.isArray(e)?n.forEach(((t,n)=>{n<e.length&&(r[t]=!0)})):n.forEach((t=>{null!=e[t]&&(r[t]=!0)})),r}(e,t),o=Object.keys(n);if(0===o.length)return e;let a;return o.reduce(((t,r,n)=>(Array.isArray(e)?(t[r]=null!=e[n]?e[n]:e[a],a=n):"object"==typeof e?(t[r]=null!=e[r]?e[r]:e[a],a=r):t[r]=e,t)),{})}function jQ(e,t,r=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&r){const r=`vars.${t}`.split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=r)return r}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function OQ(e,t,r,n=r){let o;return o="function"==typeof e?e(r):Array.isArray(e)?e[r]||n:jQ(e,r)||n,t&&(o=t(o,n,e)),o}function NQ(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:o}=e,a=e=>{if(null==e[t])return null;const a=e[t],i=jQ(e.theme,n)||{};return _Q(e,a,(e=>{let n=OQ(i,o,e);return e===n&&"string"==typeof e&&(n=OQ(i,o,`${t}${"default"===e?"":NK(e)}`,e)),!1===r?n:{[r]:n}}))};return a.propTypes={},a.filterProps=[t],a}const RQ={m:"margin",p:"padding"},TQ={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},AQ={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},IQ=function(e){const t={};return r=>(void 0===t[r]&&(t[r]=e(r)),t[r])}((e=>{if(e.length>2){if(!AQ[e])return[e];e=AQ[e]}const[t,r]=e.split(""),n=RQ[t],o=TQ[r]||"";return Array.isArray(o)?o.map((e=>n+e)):[n+o]})),MQ=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],FQ=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function DQ(e,t,r,n){var o;const a=null!=(o=jQ(e,t,!1))?o:r;return"number"==typeof a?e=>"string"==typeof e?e:a*e:Array.isArray(a)?e=>"string"==typeof e?e:a[e]:"function"==typeof a?a:()=>{}}function zQ(e){return DQ(e,"spacing",8)}function LQ(e,t){if("string"==typeof t||null==t)return t;const r=e(Math.abs(t));return t>=0?r:"number"==typeof r?-r:`-${r}`}function BQ(e,t,r,n){if(-1===t.indexOf(r))return null;const o=function(e,t){return r=>e.reduce(((e,n)=>(e[n]=LQ(t,r),e)),{})}(IQ(r),n);return _Q(e,e[r],o)}function VQ(e,t){const r=zQ(e.theme);return Object.keys(e).map((n=>BQ(e,t,n,r))).reduce(xQ,{})}function UQ(e){return VQ(e,MQ)}function WQ(e){return VQ(e,FQ)}function qQ(...e){const t=e.reduce(((e,t)=>(t.filterProps.forEach((r=>{e[r]=t})),e)),{}),r=e=>Object.keys(e).reduce(((r,n)=>t[n]?xQ(r,t[n](e)):r),{});return r.propTypes={},r.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),r}function KQ(e){return"number"!=typeof e?e:`${e}px solid`}UQ.propTypes={},UQ.filterProps=MQ,WQ.propTypes={},WQ.filterProps=FQ;const HQ=NQ({prop:"border",themeKey:"borders",transform:KQ}),GQ=NQ({prop:"borderTop",themeKey:"borders",transform:KQ}),QQ=NQ({prop:"borderRight",themeKey:"borders",transform:KQ}),XQ=NQ({prop:"borderBottom",themeKey:"borders",transform:KQ}),YQ=NQ({prop:"borderLeft",themeKey:"borders",transform:KQ}),JQ=NQ({prop:"borderColor",themeKey:"palette"}),ZQ=NQ({prop:"borderTopColor",themeKey:"palette"}),eX=NQ({prop:"borderRightColor",themeKey:"palette"}),tX=NQ({prop:"borderBottomColor",themeKey:"palette"}),rX=NQ({prop:"borderLeftColor",themeKey:"palette"}),nX=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=DQ(e.theme,"shape.borderRadius",4),r=e=>({borderRadius:LQ(t,e)});return _Q(e,e.borderRadius,r)}return null};nX.propTypes={},nX.filterProps=["borderRadius"],qQ(HQ,GQ,QQ,XQ,YQ,JQ,ZQ,eX,tX,rX,nX);const oX=e=>{if(void 0!==e.gap&&null!==e.gap){const t=DQ(e.theme,"spacing",8),r=e=>({gap:LQ(t,e)});return _Q(e,e.gap,r)}return null};oX.propTypes={},oX.filterProps=["gap"];const aX=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=DQ(e.theme,"spacing",8),r=e=>({columnGap:LQ(t,e)});return _Q(e,e.columnGap,r)}return null};aX.propTypes={},aX.filterProps=["columnGap"];const iX=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=DQ(e.theme,"spacing",8),r=e=>({rowGap:LQ(t,e)});return _Q(e,e.rowGap,r)}return null};iX.propTypes={},iX.filterProps=["rowGap"];function sX(e,t){return"grey"===t?t:e}qQ(oX,aX,iX,NQ({prop:"gridColumn"}),NQ({prop:"gridRow"}),NQ({prop:"gridAutoFlow"}),NQ({prop:"gridAutoColumns"}),NQ({prop:"gridAutoRows"}),NQ({prop:"gridTemplateColumns"}),NQ({prop:"gridTemplateRows"}),NQ({prop:"gridTemplateAreas"}),NQ({prop:"gridArea"}));function lX(e){return e<=1&&0!==e?100*e+"%":e}qQ(NQ({prop:"color",themeKey:"palette",transform:sX}),NQ({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:sX}),NQ({prop:"backgroundColor",themeKey:"palette",transform:sX}));const uX=NQ({prop:"width",transform:lX}),cX=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var r;return{maxWidth:(null==(r=e.theme)||null==(r=r.breakpoints)||null==(r=r.values)?void 0:r[t])||$Q[t]||lX(t)}};return _Q(e,e.maxWidth,t)}return null};cX.filterProps=["maxWidth"];const dX=NQ({prop:"minWidth",transform:lX}),fX=NQ({prop:"height",transform:lX}),pX=NQ({prop:"maxHeight",transform:lX}),mX=NQ({prop:"minHeight",transform:lX});NQ({prop:"size",cssProperty:"width",transform:lX}),NQ({prop:"size",cssProperty:"height",transform:lX});qQ(uX,cX,dX,fX,pX,mX,NQ({prop:"boxSizing"}));var hX={border:{themeKey:"borders",transform:KQ},borderTop:{themeKey:"borders",transform:KQ},borderRight:{themeKey:"borders",transform:KQ},borderBottom:{themeKey:"borders",transform:KQ},borderLeft:{themeKey:"borders",transform:KQ},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:nX},color:{themeKey:"palette",transform:sX},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:sX},backgroundColor:{themeKey:"palette",transform:sX},p:{style:WQ},pt:{style:WQ},pr:{style:WQ},pb:{style:WQ},pl:{style:WQ},px:{style:WQ},py:{style:WQ},padding:{style:WQ},paddingTop:{style:WQ},paddingRight:{style:WQ},paddingBottom:{style:WQ},paddingLeft:{style:WQ},paddingX:{style:WQ},paddingY:{style:WQ},paddingInline:{style:WQ},paddingInlineStart:{style:WQ},paddingInlineEnd:{style:WQ},paddingBlock:{style:WQ},paddingBlockStart:{style:WQ},paddingBlockEnd:{style:WQ},m:{style:UQ},mt:{style:UQ},mr:{style:UQ},mb:{style:UQ},ml:{style:UQ},mx:{style:UQ},my:{style:UQ},margin:{style:UQ},marginTop:{style:UQ},marginRight:{style:UQ},marginBottom:{style:UQ},marginLeft:{style:UQ},marginX:{style:UQ},marginY:{style:UQ},marginInline:{style:UQ},marginInlineStart:{style:UQ},marginInlineEnd:{style:UQ},marginBlock:{style:UQ},marginBlockStart:{style:UQ},marginBlockEnd:{style:UQ},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:oX},rowGap:{style:iX},columnGap:{style:aX},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:lX},maxWidth:{style:cX},minWidth:{transform:lX},height:{transform:lX},maxHeight:{transform:lX},minHeight:{transform:lX},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};const vX=function(){function e(e,t,r,n){const o={[e]:t,theme:r},a=n[e];if(!a)return{[e]:t};const{cssProperty:i=e,themeKey:s,transform:l,style:u}=a;if(null==t)return null;if("typography"===s&&"inherit"===t)return{[e]:t};const c=jQ(r,s)||{};if(u)return u(o);return _Q(o,t,(t=>{let r=OQ(c,l,t);return t===r&&"string"==typeof t&&(r=OQ(c,l,`${e}${"default"===t?"":NK(t)}`,t)),!1===i?r:{[i]:r}}))}return function t(r){var n;const{sx:o,theme:a={}}=r||{};if(!o)return null;const i=null!=(n=a.unstable_sxConfig)?n:hX;function s(r){let n=r;if("function"==typeof r)n=r(a);else if("object"!=typeof r)return r;if(!n)return null;const o=EQ(a.breakpoints),s=Object.keys(o);let l=o;return Object.keys(n).forEach((r=>{const o=(s=n[r],u=a,"function"==typeof s?s(u):s);var s,u;if(null!=o)if("object"==typeof o)if(i[r])l=xQ(l,e(r,o,a,i));else{const e=_Q({theme:a},o,(e=>({[r]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),r=new Set(t);return e.every((e=>r.size===Object.keys(e).length))}(e,o)?l=xQ(l,e):l[r]=t({sx:o,theme:a})}else l=xQ(l,e(r,o,a,i))})),CQ(s,l)}return Array.isArray(o)?o.map(s):s(o)}}();vX.filterProps=["sx"];var yX=vX;const gX=["breakpoints","palette","spacing","shape"];function bX(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:a={}}=e,i=uH(e,gX),s=function(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=uH(e,bQ),a=wQ(t),i=Object.keys(a);function s(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r})`}function l(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-n/100}${r})`}function u(e,o){const a=i.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r}) and (max-width:${(-1!==a&&"number"==typeof t[i[a]]?t[i[a]]:o)-n/100}${r})`}return EK({keys:i,values:a,up:s,down:l,between:u,only:function(e){return i.indexOf(e)+1<i.length?u(e,i[i.indexOf(e)+1]):s(e)},not:function(e){const t=i.indexOf(e);return 0===t?s(i[1]):t===i.length-1?l(i[t]):u(e,i[i.indexOf(e)+1]).replace("@media","@media not all and")},unit:r},o)}(r),l=function(e=8){if(e.mui)return e;const t=zQ({spacing:e}),r=(...e)=>(0===e.length?[1]:e).map((e=>{const r=t(e);return"number"==typeof r?`${r}px`:r})).join(" ");return r.mui=!0,r}(o);let u=jK({breakpoints:s,direction:"ltr",components:{},palette:EK({mode:"light"},n),spacing:l,shape:EK({},SQ,a)},i);return u=t.reduce(((e,t)=>jK(e,t)),u),u.unstable_sxConfig=EK({},hX,null==i?void 0:i.unstable_sxConfig),u.unstable_sx=function(e){return yX({sx:e,theme:this})},u}function wX(e=null){const t=a.useContext(sQ);return t&&(r=t,0!==Object.keys(r).length)?t:e;var r}const SX=bX();function xX(e=SX){return wX(e)}function $X({styles:e,themeId:t,defaultTheme:r={}}){const n=xX(r),o="function"==typeof e?e(t&&n[t]||n):e;return SO.jsx(yQ,{styles:o})}const kX=["sx"],_X=e=>{var t,r;const n={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(r=e.theme)?void 0:r.unstable_sxConfig)?t:hX;return Object.keys(e).forEach((t=>{o[t]?n.systemProps[t]=e[t]:n.otherProps[t]=e[t]})),n};function EX(e){const{sx:t}=e,r=uH(e,kX),{systemProps:n,otherProps:o}=_X(r);let a;return a=Array.isArray(t)?[n,...t]:"function"==typeof t?(...e)=>{const r=t(...e);return CK(r)?EK({},n,r):n}:EK({},n,t),EK({},o,{sx:a})}const CX=["className","component"];const PX=["variant"];function jX(e){return 0===e.length}function OX(e){const{variant:t}=e,r=uH(e,PX);let n=t||"";return Object.keys(r).sort().forEach((t=>{n+="color"===t?jX(n)?e[t]:NK(e[t]):`${jX(n)?t:NK(t)}${NK(e[t].toString())}`})),n}const NX=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function RX(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const TX=bX(),AX=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function IX({defaultTheme:e,theme:t,themeId:r}){return n=t,0===Object.keys(n).length?e:t[r]||t;var n}function MX(e){return e?(t,r)=>r[e]:null}function FX(e={}){const{themeId:t,defaultTheme:r=TX,rootShouldForwardProp:n=RX,slotShouldForwardProp:o=RX}=e,a=e=>yX(EK({},e,{theme:IX(EK({},e,{defaultTheme:r,themeId:t}))}));return a.__mui_systemSx=!0,(e,i={})=>{((e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))})(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:s,slot:l,skipVariantsResolver:u,skipSx:c,overridesResolver:d=MX(AX(l))}=i,f=uH(i,NX),p=void 0!==u?u:l&&"Root"!==l&&"root"!==l||!1,m=c||!1;let h=RX;"Root"===l||"root"===l?h=n:l?h=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(h=void 0);const v=gQ(e,EK({shouldForwardProp:h,label:undefined},f)),y=(n,...o)=>{const i=o?o.map((e=>"function"==typeof e&&e.__emotion_real!==e?n=>e(EK({},n,{theme:IX(EK({},n,{defaultTheme:r,themeId:t}))})):e)):[];let l=n;s&&d&&i.push((e=>{const n=IX(EK({},e,{defaultTheme:r,themeId:t})),o=((e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null)(s,n);if(o){const t={};return Object.entries(o).forEach((([r,o])=>{t[r]="function"==typeof o?o(EK({},e,{theme:n})):o})),d(e,t)}return null})),s&&!p&&i.push((e=>{const n=IX(EK({},e,{defaultTheme:r,themeId:t}));return((e,t,r,n)=>{var o;const{ownerState:a={}}=e,i=[],s=null==r||null==(o=r.components)||null==(o=o[n])?void 0:o.variants;return s&&s.forEach((r=>{let n=!0;Object.keys(r.props).forEach((t=>{a[t]!==r.props[t]&&e[t]!==r.props[t]&&(n=!1)})),n&&i.push(t[OX(r.props)])})),i})(e,((e,t)=>{let r=[];t&&t.components&&t.components[e]&&t.components[e].variants&&(r=t.components[e].variants);const n={};return r.forEach((e=>{const t=OX(e.props);n[t]=e.style})),n})(s,n),n,s)})),m||i.push(a);const u=i.length-o.length;if(Array.isArray(n)&&u>0){const e=new Array(u).fill("");l=[...n,...e],l.raw=[...n.raw,...e]}else"function"==typeof n&&n.__emotion_real!==n&&(l=e=>n(EK({},e,{theme:IX(EK({},e,{defaultTheme:r,themeId:t}))})));const c=v(l,...i);return e.muiName&&(c.muiName=e.muiName),c};return v.withConfig&&(y.withConfig=v.withConfig),y}}var DX=FX();function zX({props:e,name:t,defaultTheme:r,themeId:n}){let o=xX(r);n&&(o=o[n]||o);const a=function(e){const{theme:t,name:r,props:n}=e;return t&&t.components&&t.components[r]&&t.components[r].defaultProps?rH(t.components[r].defaultProps,n):n}({theme:o,name:t,props:e});return a}function LX(e,t=0,r=1){return Math.min(Math.max(t,e),r)}function BX(e){if(e.type)return e;if("#"===e.charAt(0))return BX(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&1===r[0].length&&(r=r.map((e=>e+e))),r?`rgb${4===r.length?"a":""}(${r.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}(e));const t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error(OK(9,e));let n,o=e.substring(t+1,e.length-1);if("color"===r){if(o=o.split(" "),n=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(n))throw new Error(OK(10,n))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:r,values:o,colorSpace:n}}function VX(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return-1!==t.indexOf("rgb")?n=n.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),n=-1!==t.indexOf("color")?`${r} ${n.join(" ")}`:`${n.join(", ")}`,`${t}(${n})`}function UX(e){let t="hsl"===(e=BX(e)).type||"hsla"===e.type?BX(function(e){e=BX(e);const{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,a=n*Math.min(o,1-o),i=(e,t=(e+r/30)%12)=>o-a*Math.max(Math.min(t-3,9-t,1),-1);let s="rgb";const l=[Math.round(255*i(0)),Math.round(255*i(8)),Math.round(255*i(4))];return"hsla"===e.type&&(s+="a",l.push(t[3])),VX({type:s,values:l})}(e)).values:e.values;return t=t.map((t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function WX(e,t){return e=BX(e),t=LX(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,VX(e)}function qX(e,t){if(e=BX(e),t=LX(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let r=0;r<3;r+=1)e.values[r]*=1-t;return VX(e)}function KX(e,t){if(e=BX(e),t=LX(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(-1!==e.type.indexOf("color"))for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return VX(e)}const HX=["component","direction","spacing","divider","children","className","useFlexGap"],GX=bX(),QX=DX("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function XX(e){return zX({props:e,name:"MuiStack",defaultTheme:GX})}function YX(e,t){const r=a.Children.toArray(e).filter(Boolean);return r.reduce(((e,n,o)=>(e.push(n),o<r.length-1&&e.push(a.cloneElement(t,{key:`separator-${o}`})),e)),[])}const JX=({ownerState:e,theme:t})=>{let r=EK({display:"flex",flexDirection:"column"},_Q({theme:t},PQ({values:e.direction,breakpoints:t.breakpoints.values}),(e=>({flexDirection:e}))));if(e.spacing){const n=zQ(t),o=Object.keys(t.breakpoints.values).reduce(((t,r)=>(("object"==typeof e.spacing&&null!=e.spacing[r]||"object"==typeof e.direction&&null!=e.direction[r])&&(t[r]=!0),t)),{}),a=PQ({values:e.direction,base:o}),i=PQ({values:e.spacing,base:o});"object"==typeof a&&Object.keys(a).forEach(((e,t,r)=>{if(!a[e]){const n=t>0?a[r[t-1]]:"column";a[e]=n}}));r=jK(r,_Q({theme:t},i,((t,r)=>{return e.useFlexGap?{gap:LQ(n,t)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${o=r?a[r]:e.direction,{row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"}[o]}`]:LQ(n,t)}};var o})))}return r=function(e,...t){const r=EQ(e),n=[r,...t].reduce(((e,t)=>jK(e,t)),{});return CQ(Object.keys(r),n)}(t.breakpoints,r),r};var ZX={black:"#000",white:"#fff"};var eY={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"};var tY={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"};var rY={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"};var nY={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"};var oY={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"};var aY={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"};var iY={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 sY=["mode","contrastThreshold","tonalOffset"],lY={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:ZX.white,default:ZX.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}},uY={text:{primary:ZX.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:ZX.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 cY(e,t,r,n){const o=n.light||n,a=n.dark||1.5*n;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:"light"===t?e.light=KX(e.main,o):"dark"===t&&(e.dark=qX(e.main,a)))}function dY(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=uH(e,sY),a=e.primary||function(e="light"){return"dark"===e?{main:oY[200],light:oY[50],dark:oY[400]}:{main:oY[700],light:oY[400],dark:oY[800]}}(t),i=e.secondary||function(e="light"){return"dark"===e?{main:tY[200],light:tY[50],dark:tY[400]}:{main:tY[500],light:tY[300],dark:tY[700]}}(t),s=e.error||function(e="light"){return"dark"===e?{main:rY[500],light:rY[300],dark:rY[700]}:{main:rY[700],light:rY[400],dark:rY[800]}}(t),l=e.info||function(e="light"){return"dark"===e?{main:aY[400],light:aY[300],dark:aY[700]}:{main:aY[700],light:aY[500],dark:aY[900]}}(t),u=e.success||function(e="light"){return"dark"===e?{main:iY[400],light:iY[300],dark:iY[700]}:{main:iY[800],light:iY[500],dark:iY[900]}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:nY[400],light:nY[300],dark:nY[700]}:{main:"#ed6c02",light:nY[500],dark:nY[900]}}(t);function d(e){const t=function(e,t){const r=UX(e),n=UX(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}(e,uY.text.primary)>=r?uY.text.primary:lY.text.primary;return t}const f=({color:e,name:t,mainShade:r=500,lightShade:o=300,darkShade:a=700})=>{if(!(e=EK({},e)).main&&e[r]&&(e.main=e[r]),!e.hasOwnProperty("main"))throw new Error(OK(11,t?` (${t})`:"",r));if("string"!=typeof e.main)throw new Error(OK(12,t?` (${t})`:"",JSON.stringify(e.main)));return cY(e,"light",o,n),cY(e,"dark",a,n),e.contrastText||(e.contrastText=d(e.main)),e},p={dark:uY,light:lY};return jK(EK({common:EK({},ZX),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:eY,contrastThreshold:r,getContrastText:d,augmentColor:f,tonalOffset:n},p[t]),o)}const fY=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const pY={textTransform:"uppercase"},mY='"Roboto", "Helvetica", "Arial", sans-serif';function hY(e,t){const r="function"==typeof t?t(e):t,{fontFamily:n=mY,fontSize:o=14,fontWeightLight:a=300,fontWeightRegular:i=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=r,f=uH(r,fY),p=o/14,m=d||(e=>e/u*p+"rem"),h=(e,t,r,o,a)=>{return EK({fontFamily:n,fontWeight:e,fontSize:m(t),lineHeight:r},n===mY?{letterSpacing:(i=o/t,Math.round(1e5*i)/1e5)+"em"}:{},a,c);var i},v={h1:h(a,96,1.167,-1.5),h2:h(a,60,1.2,-.5),h3:h(i,48,1.167,0),h4:h(i,34,1.235,.25),h5:h(i,24,1.334,0),h6:h(s,20,1.6,.15),subtitle1:h(i,16,1.75,.15),subtitle2:h(s,14,1.57,.1),body1:h(i,16,1.5,.15),body2:h(i,14,1.43,.15),button:h(s,14,1.75,.4,pY),caption:h(i,12,1.66,.4),overline:h(i,12,2.66,1,pY),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return jK(EK({htmlFontSize:u,pxToRem:m,fontFamily:n,fontSize:o,fontWeightLight:a,fontWeightRegular:i,fontWeightMedium:s,fontWeightBold:l},v),f,{clone:!1})}function vY(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}var yY=["none",vY(0,2,1,-1,0,1,1,0,0,1,3,0),vY(0,3,1,-2,0,2,2,0,0,1,5,0),vY(0,3,3,-2,0,3,4,0,0,1,8,0),vY(0,2,4,-1,0,4,5,0,0,1,10,0),vY(0,3,5,-1,0,5,8,0,0,1,14,0),vY(0,3,5,-1,0,6,10,0,0,1,18,0),vY(0,4,5,-2,0,7,10,1,0,2,16,1),vY(0,5,5,-3,0,8,10,1,0,3,14,2),vY(0,5,6,-3,0,9,12,1,0,3,16,2),vY(0,6,6,-3,0,10,14,1,0,4,18,3),vY(0,6,7,-4,0,11,15,1,0,4,20,3),vY(0,7,8,-4,0,12,17,2,0,5,22,4),vY(0,7,8,-4,0,13,19,2,0,5,24,4),vY(0,7,9,-4,0,14,21,2,0,5,26,4),vY(0,8,9,-5,0,15,22,2,0,6,28,5),vY(0,8,10,-5,0,16,24,2,0,6,30,5),vY(0,8,11,-5,0,17,26,2,0,6,32,5),vY(0,9,11,-5,0,18,28,2,0,7,34,6),vY(0,9,12,-6,0,19,29,2,0,7,36,6),vY(0,10,13,-6,0,20,31,3,0,8,38,7),vY(0,10,13,-6,0,21,33,3,0,8,40,7),vY(0,10,14,-6,0,22,35,3,0,8,42,7),vY(0,11,14,-7,0,23,36,3,0,9,44,8),vY(0,11,15,-7,0,24,38,3,0,9,46,8)];const gY=["duration","easing","delay"],bY={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)"},wY={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function SY(e){return`${Math.round(e)}ms`}function xY(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function $Y(e){const t=EK({},bY,e.easing),r=EK({},wY,e.duration);return EK({getAutoHeightDuration:xY,create:(e=["all"],n={})=>{const{duration:o=r.standard,easing:a=t.easeInOut,delay:i=0}=n;return uH(n,gY),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:SY(o)} ${a} ${"string"==typeof i?i:SY(i)}`)).join(",")}},e,{easing:t,duration:r})}var kY={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};const _Y=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function EY(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:a={}}=e,i=uH(e,_Y);if(e.vars)throw new Error(OK(18));const s=dY(n),l=bX(e);let u=jK(l,{mixins:(c=l.breakpoints,d=r,EK({toolbar:{minHeight:56,[c.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[c.up("sm")]:{minHeight:64}}},d)),palette:s,shadows:yY.slice(),typography:hY(s,a),transitions:$Y(o),zIndex:EK({},kY)});var c,d;return u=jK(u,i),u=t.reduce(((e,t)=>jK(e,t)),u),u.unstable_sxConfig=EK({},hX,null==i?void 0:i.unstable_sxConfig),u.unstable_sx=function(e){return yX({sx:e,theme:this})},u}var CY=EY(),PY="$$material";function jY({props:e,name:t}){return zX({props:e,name:t,defaultTheme:CY,themeId:PY})}const OY=e=>RX(e)&&"classes"!==e,NY=RX;var RY=FX({themeId:PY,defaultTheme:CY,rootShouldForwardProp:OY});function TY(e){return sH("MuiSvgIcon",e)}lH("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const AY=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],IY=RY("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"inherit"!==r.color&&t[`color${NK(r.color)}`],t[`fontSize${NK(r.fontSize)}`]]}})((({theme:e,ownerState:t})=>{var r,n,o,a,i,s,l,u,c,d,f,p,m;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(r=e.transitions)||null==(n=r.create)?void 0:n.call(r,"fill",{duration:null==(o=e.transitions)||null==(o=o.duration)?void 0:o.shorter}),fontSize:{inherit:"inherit",small:(null==(a=e.typography)||null==(i=a.pxToRem)?void 0:i.call(a,20))||"1.25rem",medium:(null==(s=e.typography)||null==(l=s.pxToRem)?void 0:l.call(s,24))||"1.5rem",large:(null==(u=e.typography)||null==(c=u.pxToRem)?void 0:c.call(u,35))||"2.1875rem"}[t.fontSize],color:null!=(d=null==(f=(e.vars||e).palette)||null==(f=f[t.color])?void 0:f.main)?d:{action:null==(p=(e.vars||e).palette)||null==(p=p.action)?void 0:p.active,disabled:null==(m=(e.vars||e).palette)||null==(m=m.action)?void 0:m.disabled,inherit:void 0}[t.color]}})),MY=a.forwardRef((function(e,t){const r=jY({props:e,name:"MuiSvgIcon"}),{children:n,className:o,color:i="inherit",component:s="svg",fontSize:l="medium",htmlColor:u,inheritViewBox:c=!1,titleAccess:d,viewBox:f="0 0 24 24"}=r,p=uH(r,AY),m=a.isValidElement(n)&&"svg"===n.type,h=EK({},r,{color:i,component:s,fontSize:l,instanceFontSize:e.fontSize,inheritViewBox:c,viewBox:f,hasSvgAsChild:m}),v={};c||(v.viewBox=f);const y=(e=>{const{color:t,fontSize:r,classes:n}=e;return nH({root:["root","inherit"!==t&&`color${NK(t)}`,`fontSize${NK(r)}`]},TY,n)})(h);return SO.jsxs(IY,EK({as:s,className:dH(y.root,o),focusable:"false",color:u,"aria-hidden":!d||void 0,role:d?"img":void 0,ref:t},v,p,m&&n.props,{ownerState:h,children:[m?n.props.children:n,d?SO.jsx("title",{children:d}):null]}))}));MY.muiName="SvgIcon";var FY=MY;function DY(e,t){function r(r,n){return SO.jsx(FY,EK({"data-testid":`${t}Icon`,ref:n},r,{children:e}))}return r.muiName=FY.muiName,a.memo(a.forwardRef(r))}const zY={configure:e=>{aH.configure(e)}};var LY,BY=o(Object.freeze({__proto__:null,capitalize:NK,createChainedFunction:RK,createSvgIcon:DY,debounce:TK,deprecatedPropType:function(e,t){return()=>null},isMuiElement:AK,ownerDocument:IK,ownerWindow:MK,requirePropFactory:function(e,t){return()=>null},setRef:FK,unstable_ClassNameGenerator:zY,unstable_useEnhancedEffect:DK,unstable_useId:BK,unsupportedProp:function(e,t,r,n,o){return null},useControlled:VK,useEventCallback:UK,useForkRef:WK,useIsFocusVisible:ZK}));function VY(){return LY||(LY=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=BY}(_K)),_K}var UY=$K;Object.defineProperty(xK,"__esModule",{value:!0});var WY=xK.default=void 0,qY=UY(VY()),KY=SO,HY=(0,qY.default)((0,KY.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add");function GY(e,t){return GY=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},GY(e,t)}function QY(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,GY(e,t)}WY=xK.default=HY;var XY=!1,YY=B.createContext(null),JY="unmounted",ZY="exited",eJ="entering",tJ="entered",rJ="exiting",nJ=function(e){function t(t,r){var n;n=e.call(this,t,r)||this;var o,a=r&&!r.isMounting?t.enter:t.appear;return n.appearStatus=null,t.in?a?(o=ZY,n.appearStatus=eJ):o=tJ:o=t.unmountOnExit||t.mountOnEnter?JY:ZY,n.state={status:o},n.nextCallback=null,n}QY(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===JY?{status:ZY}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(e){var t=null;if(e!==this.props){var r=this.state.status;this.props.in?r!==eJ&&r!==tJ&&(t=eJ):r!==eJ&&r!==tJ||(t=rJ)}this.updateStatus(!1,t)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var e,t,r,n=this.props.timeout;return e=t=r=n,null!=n&&"number"!=typeof n&&(e=n.exit,t=n.enter,r=void 0!==n.appear?n.appear:t),{exit:e,enter:t,appear:r}},r.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===eJ){if(this.props.unmountOnExit||this.props.mountOnEnter){var r=this.props.nodeRef?this.props.nodeRef.current:Yc.findDOMNode(this);r&&function(e){e.scrollTop}(r)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===ZY&&this.setState({status:JY})},r.performEnter=function(e){var t=this,r=this.props.enter,n=this.context?this.context.isMounting:e,o=this.props.nodeRef?[n]:[Yc.findDOMNode(this),n],a=o[0],i=o[1],s=this.getTimeouts(),l=n?s.appear:s.enter;!e&&!r||XY?this.safeSetState({status:tJ},(function(){t.props.onEntered(a)})):(this.props.onEnter(a,i),this.safeSetState({status:eJ},(function(){t.props.onEntering(a,i),t.onTransitionEnd(l,(function(){t.safeSetState({status:tJ},(function(){t.props.onEntered(a,i)}))}))})))},r.performExit=function(){var e=this,t=this.props.exit,r=this.getTimeouts(),n=this.props.nodeRef?void 0:Yc.findDOMNode(this);t&&!XY?(this.props.onExit(n),this.safeSetState({status:rJ},(function(){e.props.onExiting(n),e.onTransitionEnd(r.exit,(function(){e.safeSetState({status:ZY},(function(){e.props.onExited(n)}))}))}))):this.safeSetState({status:ZY},(function(){e.props.onExited(n)}))},r.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},r.setNextCallback=function(e){var t=this,r=!0;return this.nextCallback=function(n){r&&(r=!1,t.nextCallback=null,e(n))},this.nextCallback.cancel=function(){r=!1},this.nextCallback},r.onTransitionEnd=function(e,t){this.setNextCallback(t);var r=this.props.nodeRef?this.props.nodeRef.current:Yc.findDOMNode(this),n=null==e&&!this.props.addEndListener;if(r&&!n){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[r,this.nextCallback],a=o[0],i=o[1];this.props.addEndListener(a,i)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},r.render=function(){var e=this.state.status;if(e===JY)return null;var t=this.props,r=t.children;t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef;var n=uH(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return B.createElement(YY.Provider,{value:null},"function"==typeof r?r(e,n):B.cloneElement(B.Children.only(r),n))},t}(B.Component);function oJ(){}nJ.contextType=YY,nJ.propTypes={},nJ.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:oJ,onEntering:oJ,onEntered:oJ,onExit:oJ,onExiting:oJ,onExited:oJ},nJ.UNMOUNTED=JY,nJ.EXITED=ZY,nJ.ENTERING=eJ,nJ.ENTERED=tJ,nJ.EXITING=rJ;var aJ=nJ;function iJ(e,t){var r=Object.create(null);return e&&a.Children.map(e,(function(e){return e})).forEach((function(e){r[e.key]=function(e){return t&&a.isValidElement(e)?t(e):e}(e)})),r}function sJ(e,t,r){return null!=r[t]?r[t]:e.props[t]}function lJ(e,t,r){var n=iJ(e.children),o=function(e,t){function r(r){return r in t?t[r]:e[r]}e=e||{},t=t||{};var n,o=Object.create(null),a=[];for(var i in e)i in t?a.length&&(o[i]=a,a=[]):a.push(i);var s={};for(var l in t){if(o[l])for(n=0;n<o[l].length;n++){var u=o[l][n];s[o[l][n]]=r(u)}s[l]=r(l)}for(n=0;n<a.length;n++)s[a[n]]=r(a[n]);return s}(t,n);return Object.keys(o).forEach((function(i){var s=o[i];if(a.isValidElement(s)){var l=i in t,u=i in n,c=t[i],d=a.isValidElement(c)&&!c.props.in;!u||l&&!d?u||!l||d?u&&l&&a.isValidElement(c)&&(o[i]=a.cloneElement(s,{onExited:r.bind(null,s),in:c.props.in,exit:sJ(s,"exit",e),enter:sJ(s,"enter",e)})):o[i]=a.cloneElement(s,{in:!1}):o[i]=a.cloneElement(s,{onExited:r.bind(null,s),in:!0,exit:sJ(s,"exit",e),enter:sJ(s,"enter",e)})}})),o}var uJ=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},cJ=function(e){function t(t,r){var n,o=(n=e.call(this,t,r)||this).handleExited.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(n));return n.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},n}QY(t,e);var r=t.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var r,n,o=t.children,i=t.handleExited;return{children:t.firstRender?(r=e,n=i,iJ(r.children,(function(e){return a.cloneElement(e,{onExited:n.bind(null,e),in:!0,appear:sJ(e,"appear",r),enter:sJ(e,"enter",r),exit:sJ(e,"exit",r)})}))):lJ(e,o,i),firstRender:!1}},r.handleExited=function(e,t){var r=iJ(this.props.children);e.key in r||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var r=EK({},t.children);return delete r[e.key],{children:r}})))},r.render=function(){var e=this.props,t=e.component,r=e.childFactory,n=uH(e,["component","childFactory"]),o=this.state.contextValue,a=uJ(this.state.children).map(r);return delete n.appear,delete n.enter,delete n.exit,null===t?B.createElement(YY.Provider,{value:o},a):B.createElement(YY.Provider,{value:o},B.createElement(t,n,a))},t}(B.Component);cJ.propTypes={},cJ.defaultProps={component:"div",childFactory:function(e){return e}};var dJ=cJ;var fJ=lH("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);const pJ=["center","classes","className"];let mJ,hJ,vJ,yJ,gJ=e=>e;const bJ=cQ(mJ||(mJ=gJ`
|
|
63
|
+
*/function cq(e,t){return lq(e,t)}["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){lq[e]=lq(e)}));const dq=["values","unit","step"],fq=e=>{const t=Object.keys(e).map((t=>({key:t,val:e[t]})))||[];return t.sort(((e,t)=>e.val-t.val)),t.reduce(((e,t)=>yV({},e,{[t.key]:t.val})),{})};var pq={borderRadius:4};function hq(e,t){return t?SV(e,t,{clone:!1}):e}const mq={xs:0,sm:600,md:900,lg:1200,xl:1536},vq={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${mq[e]}px)`};function gq(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const e=n.breakpoints||vq;return t.reduce(((n,o,a)=>(n[e.up(e.keys[a])]=r(t[a]),n)),{})}if("object"==typeof t){const e=n.breakpoints||vq;return Object.keys(t).reduce(((n,o)=>{if(-1!==Object.keys(e.values||mq).indexOf(o)){n[e.up(o)]=r(t[o],o)}else{const e=o;n[e]=t[e]}return n}),{})}return r(t)}function yq(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce(((t,r)=>(t[e.up(r)]={},t)),{}))||{}}function bq(e,t){return e.reduce(((e,t)=>{const r=e[t];return(!r||0===Object.keys(r).length)&&delete e[t],e}),t)}function wq({values:e,breakpoints:t,base:r}){const n=r||function(e,t){if("object"!=typeof e)return{};const r={},n=Object.keys(t);return Array.isArray(e)?n.forEach(((t,n)=>{n<e.length&&(r[t]=!0)})):n.forEach((t=>{null!=e[t]&&(r[t]=!0)})),r}(e,t),o=Object.keys(n);if(0===o.length)return e;let a;return o.reduce(((t,r,n)=>(Array.isArray(e)?(t[r]=null!=e[n]?e[n]:e[a],a=n):"object"==typeof e?(t[r]=null!=e[r]?e[r]:e[a],a=r):t[r]=e,t)),{})}function Sq(e,t,r=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&r){const r=`vars.${t}`.split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=r)return r}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function xq(e,t,r,n=r){let o;return o="function"==typeof e?e(r):Array.isArray(e)?e[r]||n:Sq(e,r)||n,t&&(o=t(o,n,e)),o}function _q(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:o}=e,a=e=>{if(null==e[t])return null;const a=e[t],i=Sq(e.theme,n)||{};return gq(e,a,(e=>{let n=xq(i,o,e);return e===n&&"string"==typeof e&&(n=xq(i,o,`${t}${"default"===e?"":_V(e)}`,e)),!1===r?n:{[r]:n}}))};return a.propTypes={},a.filterProps=[t],a}const $q={m:"margin",p:"padding"},kq={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Eq={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},jq=function(e){const t={};return r=>(void 0===t[r]&&(t[r]=e(r)),t[r])}((e=>{if(e.length>2){if(!Eq[e])return[e];e=Eq[e]}const[t,r]=e.split(""),n=$q[t],o=kq[r]||"";return Array.isArray(o)?o.map((e=>n+e)):[n+o]})),Cq=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Oq=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function Pq(e,t,r,n){var o;const a=null!=(o=Sq(e,t,!1))?o:r;return"number"==typeof a?e=>"string"==typeof e?e:a*e:Array.isArray(a)?e=>"string"==typeof e?e:a[e]:"function"==typeof a?a:()=>{}}function Nq(e){return Pq(e,"spacing",8)}function Rq(e,t){if("string"==typeof t||null==t)return t;const r=e(Math.abs(t));return t>=0?r:"number"==typeof r?-r:`-${r}`}function Tq(e,t,r,n){if(-1===t.indexOf(r))return null;const o=function(e,t){return r=>e.reduce(((e,n)=>(e[n]=Rq(t,r),e)),{})}(jq(r),n);return gq(e,e[r],o)}function Aq(e,t){const r=Nq(e.theme);return Object.keys(e).map((n=>Tq(e,t,n,r))).reduce(hq,{})}function Iq(e){return Aq(e,Cq)}function Mq(e){return Aq(e,Oq)}function Fq(...e){const t=e.reduce(((e,t)=>(t.filterProps.forEach((r=>{e[r]=t})),e)),{}),r=e=>Object.keys(e).reduce(((r,n)=>t[n]?hq(r,t[n](e)):r),{});return r.propTypes={},r.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),r}function zq(e){return"number"!=typeof e?e:`${e}px solid`}Iq.propTypes={},Iq.filterProps=Cq,Mq.propTypes={},Mq.filterProps=Oq;const Dq=_q({prop:"border",themeKey:"borders",transform:zq}),Lq=_q({prop:"borderTop",themeKey:"borders",transform:zq}),Bq=_q({prop:"borderRight",themeKey:"borders",transform:zq}),Vq=_q({prop:"borderBottom",themeKey:"borders",transform:zq}),Uq=_q({prop:"borderLeft",themeKey:"borders",transform:zq}),Wq=_q({prop:"borderColor",themeKey:"palette"}),qq=_q({prop:"borderTopColor",themeKey:"palette"}),Kq=_q({prop:"borderRightColor",themeKey:"palette"}),Hq=_q({prop:"borderBottomColor",themeKey:"palette"}),Gq=_q({prop:"borderLeftColor",themeKey:"palette"}),Qq=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=Pq(e.theme,"shape.borderRadius",4),r=e=>({borderRadius:Rq(t,e)});return gq(e,e.borderRadius,r)}return null};Qq.propTypes={},Qq.filterProps=["borderRadius"],Fq(Dq,Lq,Bq,Vq,Uq,Wq,qq,Kq,Hq,Gq,Qq);const Jq=e=>{if(void 0!==e.gap&&null!==e.gap){const t=Pq(e.theme,"spacing",8),r=e=>({gap:Rq(t,e)});return gq(e,e.gap,r)}return null};Jq.propTypes={},Jq.filterProps=["gap"];const Yq=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=Pq(e.theme,"spacing",8),r=e=>({columnGap:Rq(t,e)});return gq(e,e.columnGap,r)}return null};Yq.propTypes={},Yq.filterProps=["columnGap"];const Xq=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=Pq(e.theme,"spacing",8),r=e=>({rowGap:Rq(t,e)});return gq(e,e.rowGap,r)}return null};Xq.propTypes={},Xq.filterProps=["rowGap"];function Zq(e,t){return"grey"===t?t:e}Fq(Jq,Yq,Xq,_q({prop:"gridColumn"}),_q({prop:"gridRow"}),_q({prop:"gridAutoFlow"}),_q({prop:"gridAutoColumns"}),_q({prop:"gridAutoRows"}),_q({prop:"gridTemplateColumns"}),_q({prop:"gridTemplateRows"}),_q({prop:"gridTemplateAreas"}),_q({prop:"gridArea"}));function eK(e){return e<=1&&0!==e?100*e+"%":e}Fq(_q({prop:"color",themeKey:"palette",transform:Zq}),_q({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Zq}),_q({prop:"backgroundColor",themeKey:"palette",transform:Zq}));const tK=_q({prop:"width",transform:eK}),rK=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var r,n;const o=(null==(r=e.theme)||null==(r=r.breakpoints)||null==(r=r.values)?void 0:r[t])||mq[t];return o?"px"!==(null==(n=e.theme)||null==(n=n.breakpoints)?void 0:n.unit)?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:eK(t)}};return gq(e,e.maxWidth,t)}return null};rK.filterProps=["maxWidth"];const nK=_q({prop:"minWidth",transform:eK}),oK=_q({prop:"height",transform:eK}),aK=_q({prop:"maxHeight",transform:eK}),iK=_q({prop:"minHeight",transform:eK});_q({prop:"size",cssProperty:"width",transform:eK}),_q({prop:"size",cssProperty:"height",transform:eK});Fq(tK,rK,nK,oK,aK,iK,_q({prop:"boxSizing"}));var sK={border:{themeKey:"borders",transform:zq},borderTop:{themeKey:"borders",transform:zq},borderRight:{themeKey:"borders",transform:zq},borderBottom:{themeKey:"borders",transform:zq},borderLeft:{themeKey:"borders",transform:zq},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Qq},color:{themeKey:"palette",transform:Zq},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Zq},backgroundColor:{themeKey:"palette",transform:Zq},p:{style:Mq},pt:{style:Mq},pr:{style:Mq},pb:{style:Mq},pl:{style:Mq},px:{style:Mq},py:{style:Mq},padding:{style:Mq},paddingTop:{style:Mq},paddingRight:{style:Mq},paddingBottom:{style:Mq},paddingLeft:{style:Mq},paddingX:{style:Mq},paddingY:{style:Mq},paddingInline:{style:Mq},paddingInlineStart:{style:Mq},paddingInlineEnd:{style:Mq},paddingBlock:{style:Mq},paddingBlockStart:{style:Mq},paddingBlockEnd:{style:Mq},m:{style:Iq},mt:{style:Iq},mr:{style:Iq},mb:{style:Iq},ml:{style:Iq},mx:{style:Iq},my:{style:Iq},margin:{style:Iq},marginTop:{style:Iq},marginRight:{style:Iq},marginBottom:{style:Iq},marginLeft:{style:Iq},marginX:{style:Iq},marginY:{style:Iq},marginInline:{style:Iq},marginInlineStart:{style:Iq},marginInlineEnd:{style:Iq},marginBlock:{style:Iq},marginBlockStart:{style:Iq},marginBlockEnd:{style:Iq},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:Jq},rowGap:{style:Xq},columnGap:{style:Yq},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:eK},maxWidth:{style:rK},minWidth:{transform:eK},height:{transform:eK},maxHeight:{transform:eK},minHeight:{transform:eK},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};const lK=function(){function e(e,t,r,n){const o={[e]:t,theme:r},a=n[e];if(!a)return{[e]:t};const{cssProperty:i=e,themeKey:s,transform:l,style:u}=a;if(null==t)return null;if("typography"===s&&"inherit"===t)return{[e]:t};const c=Sq(r,s)||{};if(u)return u(o);return gq(o,t,(t=>{let r=xq(c,l,t);return t===r&&"string"==typeof t&&(r=xq(c,l,`${e}${"default"===t?"":_V(t)}`,t)),!1===i?r:{[i]:r}}))}return function t(r){var n;const{sx:o,theme:a={}}=r||{};if(!o)return null;const i=null!=(n=a.unstable_sxConfig)?n:sK;function s(r){let n=r;if("function"==typeof r)n=r(a);else if("object"!=typeof r)return r;if(!n)return null;const o=yq(a.breakpoints),s=Object.keys(o);let l=o;return Object.keys(n).forEach((r=>{const o=(s=n[r],u=a,"function"==typeof s?s(u):s);var s,u;if(null!=o)if("object"==typeof o)if(i[r])l=hq(l,e(r,o,a,i));else{const e=gq({theme:a},o,(e=>({[r]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),r=new Set(t);return e.every((e=>r.size===Object.keys(e).length))}(e,o)?l=hq(l,e):l[r]=t({sx:o,theme:a})}else l=hq(l,e(r,o,a,i))})),bq(s,l)}return Array.isArray(o)?o.map(s):s(o)}}();lK.filterProps=["sx"];var uK=lK;const cK=["breakpoints","palette","spacing","shape"];function dK(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:a={}}=e,i=tU(e,cK),s=function(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=tU(e,dq),a=fq(t),i=Object.keys(a);function s(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r})`}function l(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-n/100}${r})`}function u(e,o){const a=i.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r}) and (max-width:${(-1!==a&&"number"==typeof t[i[a]]?t[i[a]]:o)-n/100}${r})`}return yV({keys:i,values:a,up:s,down:l,between:u,only:function(e){return i.indexOf(e)+1<i.length?u(e,i[i.indexOf(e)+1]):s(e)},not:function(e){const t=i.indexOf(e);return 0===t?s(i[1]):t===i.length-1?l(i[t]):u(e,i[i.indexOf(e)+1]).replace("@media","@media not all and")},unit:r},o)}(r),l=function(e=8){if(e.mui)return e;const t=Nq({spacing:e}),r=(...e)=>(0===e.length?[1]:e).map((e=>{const r=t(e);return"number"==typeof r?`${r}px`:r})).join(" ");return r.mui=!0,r}(o);let u=SV({breakpoints:s,direction:"ltr",components:{},palette:yV({mode:"light"},n),spacing:l,shape:yV({},pq,a)},i);return u=t.reduce(((e,t)=>SV(e,t)),u),u.unstable_sxConfig=yV({},sK,null==i?void 0:i.unstable_sxConfig),u.unstable_sx=function(e){return uK({sx:e,theme:this})},u}function fK(e=null){const t=a.useContext(ZW);return t&&(r=t,0!==Object.keys(r).length)?t:e;var r}const pK=dK();function hK(e=pK){return fK(e)}function mK({styles:e,themeId:t,defaultTheme:r={}}){const n=hK(r),o="function"==typeof e?e(t&&n[t]||n):e;return Hj.jsx(uq,{styles:o})}const vK=["sx"],gK=e=>{var t,r;const n={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(r=e.theme)?void 0:r.unstable_sxConfig)?t:sK;return Object.keys(e).forEach((t=>{o[t]?n.systemProps[t]=e[t]:n.otherProps[t]=e[t]})),n};function yK(e){const{sx:t}=e,r=tU(e,vK),{systemProps:n,otherProps:o}=gK(r);let a;return a=Array.isArray(t)?[n,...t]:"function"==typeof t?(...e)=>{const r=t(...e);return bV(r)?yV({},n,r):n}:yV({},n,t),yV({},o,{sx:a})}const bK=["className","component"];const wK=["variant"];function SK(e){return 0===e.length}function xK(e){const{variant:t}=e,r=tU(e,wK);let n=t||"";return Object.keys(r).sort().forEach((t=>{n+="color"===t?SK(n)?e[t]:_V(e[t]):`${SK(n)?t:_V(t)}${_V(e[t].toString())}`})),n}const _K=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];const $K=e=>{const t={};return e&&e.forEach((e=>{const r=xK(e.props);t[r]=e.style})),t},kK=(e,t,r)=>{const{ownerState:n={}}=e,o=[];return r&&r.forEach((r=>{let a=!0;Object.keys(r.props).forEach((t=>{n[t]!==r.props[t]&&e[t]!==r.props[t]&&(a=!1)})),a&&o.push(t[xK(r.props)])})),o};function EK(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const jK=dK(),CK=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function OK({defaultTheme:e,theme:t,themeId:r}){return n=t,0===Object.keys(n).length?e:t[r]||t;var n}function PK(e){return e?(t,r)=>r[e]:null}const NK=({styledArg:e,props:t,defaultTheme:r,themeId:n})=>{const o=e(yV({},t,{theme:OK(yV({},t,{defaultTheme:r,themeId:n}))}));let a;if(o&&o.variants&&(a=o.variants,delete o.variants),a){return[o,...kK(t,$K(a),a)]}return o};function RK(e={}){const{themeId:t,defaultTheme:r=jK,rootShouldForwardProp:n=EK,slotShouldForwardProp:o=EK}=e,a=e=>uK(yV({},e,{theme:OK(yV({},e,{defaultTheme:r,themeId:t}))}));return a.__mui_systemSx=!0,(e,i={})=>{((e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))})(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:s,slot:l,skipVariantsResolver:u,skipSx:c,overridesResolver:d=PK(CK(l))}=i,f=tU(i,_K),p=void 0!==u?u:l&&"Root"!==l&&"root"!==l||!1,h=c||!1;let m=EK;"Root"===l||"root"===l?m=n:l?m=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(m=void 0);const v=cq(e,yV({shouldForwardProp:m,label:undefined},f)),g=(n,...o)=>{const i=o?o.map((e=>{if("function"==typeof e&&e.__emotion_real!==e)return n=>NK({styledArg:e,props:n,defaultTheme:r,themeId:t});if(bV(e)){let t,r=e;return e&&e.variants&&(t=e.variants,delete r.variants,r=r=>{let n=e;return kK(r,$K(t),t).forEach((e=>{n=SV(n,e)})),n}),r}return e})):[];let l=n;if(bV(n)){let e;n&&n.variants&&(e=n.variants,delete l.variants,l=t=>{let r=n;return kK(t,$K(e),e).forEach((e=>{r=SV(r,e)})),r})}else"function"==typeof n&&n.__emotion_real!==n&&(l=e=>NK({styledArg:n,props:e,defaultTheme:r,themeId:t}));s&&d&&i.push((e=>{const n=OK(yV({},e,{defaultTheme:r,themeId:t})),o=((e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null)(s,n);if(o){const t={};return Object.entries(o).forEach((([r,o])=>{t[r]="function"==typeof o?o(yV({},e,{theme:n})):o})),d(e,t)}return null})),s&&!p&&i.push((e=>{const n=OK(yV({},e,{defaultTheme:r,themeId:t}));return((e,t,r,n)=>{var o;const a=null==r||null==(o=r.components)||null==(o=o[n])?void 0:o.variants;return kK(e,t,a)})(e,((e,t)=>{let r=[];return t&&t.components&&t.components[e]&&t.components[e].variants&&(r=t.components[e].variants),$K(r)})(s,n),n,s)})),h||i.push(a);const u=i.length-o.length;if(Array.isArray(n)&&u>0){const e=new Array(u).fill("");l=[...n,...e],l.raw=[...n.raw,...e]}const c=v(l,...i);return e.muiName&&(c.muiName=e.muiName),c};return v.withConfig&&(g.withConfig=v.withConfig),g}}var TK=RK();function AK({props:e,name:t,defaultTheme:r,themeId:n}){let o=hK(r);n&&(o=o[n]||o);const a=function(e){const{theme:t,name:r,props:n}=e;return t&&t.components&&t.components[r]&&t.components[r].defaultProps?GV(t.components[r].defaultProps,n):n}({theme:o,name:t,props:e});return a}function IK(e,t=0,r=1){return Math.min(Math.max(t,e),r)}function MK(e){if(e.type)return e;if("#"===e.charAt(0))return MK(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&1===r[0].length&&(r=r.map((e=>e+e))),r?`rgb${4===r.length?"a":""}(${r.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}(e));const t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error(xV(9,e));let n,o=e.substring(t+1,e.length-1);if("color"===r){if(o=o.split(" "),n=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(n))throw new Error(xV(10,n))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:r,values:o,colorSpace:n}}function FK(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return-1!==t.indexOf("rgb")?n=n.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),n=-1!==t.indexOf("color")?`${r} ${n.join(" ")}`:`${n.join(", ")}`,`${t}(${n})`}function zK(e){let t="hsl"===(e=MK(e)).type||"hsla"===e.type?MK(function(e){e=MK(e);const{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,a=n*Math.min(o,1-o),i=(e,t=(e+r/30)%12)=>o-a*Math.max(Math.min(t-3,9-t,1),-1);let s="rgb";const l=[Math.round(255*i(0)),Math.round(255*i(8)),Math.round(255*i(4))];return"hsla"===e.type&&(s+="a",l.push(t[3])),FK({type:s,values:l})}(e)).values:e.values;return t=t.map((t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function DK(e,t){return e=MK(e),t=IK(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,FK(e)}function LK(e,t){if(e=MK(e),t=IK(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let r=0;r<3;r+=1)e.values[r]*=1-t;return FK(e)}function BK(e,t){if(e=MK(e),t=IK(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(-1!==e.type.indexOf("color"))for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return FK(e)}const VK=["component","direction","spacing","divider","children","className","useFlexGap"],UK=dK(),WK=TK("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function qK(e){return AK({props:e,name:"MuiStack",defaultTheme:UK})}function KK(e,t){const r=a.Children.toArray(e).filter(Boolean);return r.reduce(((e,n,o)=>(e.push(n),o<r.length-1&&e.push(a.cloneElement(t,{key:`separator-${o}`})),e)),[])}const HK=({ownerState:e,theme:t})=>{let r=yV({display:"flex",flexDirection:"column"},gq({theme:t},wq({values:e.direction,breakpoints:t.breakpoints.values}),(e=>({flexDirection:e}))));if(e.spacing){const n=Nq(t),o=Object.keys(t.breakpoints.values).reduce(((t,r)=>(("object"==typeof e.spacing&&null!=e.spacing[r]||"object"==typeof e.direction&&null!=e.direction[r])&&(t[r]=!0),t)),{}),a=wq({values:e.direction,base:o}),i=wq({values:e.spacing,base:o});"object"==typeof a&&Object.keys(a).forEach(((e,t,r)=>{if(!a[e]){const n=t>0?a[r[t-1]]:"column";a[e]=n}}));r=SV(r,gq({theme:t},i,((t,r)=>{return e.useFlexGap?{gap:Rq(n,t)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${o=r?a[r]:e.direction,{row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"}[o]}`]:Rq(n,t)}};var o})))}return r=function(e,...t){const r=yq(e),n=[r,...t].reduce(((e,t)=>SV(e,t)),{});return bq(Object.keys(r),n)}(t.breakpoints,r),r};var GK={black:"#000",white:"#fff"};var QK={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"};var JK={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"};var YK={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"};var XK={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"};var ZK={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"};var eH={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"};var tH={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 rH=["mode","contrastThreshold","tonalOffset"],nH={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:GK.white,default:GK.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}},oH={text:{primary:GK.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:GK.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 aH(e,t,r,n){const o=n.light||n,a=n.dark||1.5*n;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:"light"===t?e.light=BK(e.main,o):"dark"===t&&(e.dark=LK(e.main,a)))}function iH(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=tU(e,rH),a=e.primary||function(e="light"){return"dark"===e?{main:ZK[200],light:ZK[50],dark:ZK[400]}:{main:ZK[700],light:ZK[400],dark:ZK[800]}}(t),i=e.secondary||function(e="light"){return"dark"===e?{main:JK[200],light:JK[50],dark:JK[400]}:{main:JK[500],light:JK[300],dark:JK[700]}}(t),s=e.error||function(e="light"){return"dark"===e?{main:YK[500],light:YK[300],dark:YK[700]}:{main:YK[700],light:YK[400],dark:YK[800]}}(t),l=e.info||function(e="light"){return"dark"===e?{main:eH[400],light:eH[300],dark:eH[700]}:{main:eH[700],light:eH[500],dark:eH[900]}}(t),u=e.success||function(e="light"){return"dark"===e?{main:tH[400],light:tH[300],dark:tH[700]}:{main:tH[800],light:tH[500],dark:tH[900]}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:XK[400],light:XK[300],dark:XK[700]}:{main:"#ed6c02",light:XK[500],dark:XK[900]}}(t);function d(e){const t=function(e,t){const r=zK(e),n=zK(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}(e,oH.text.primary)>=r?oH.text.primary:nH.text.primary;return t}const f=({color:e,name:t,mainShade:r=500,lightShade:o=300,darkShade:a=700})=>{if(!(e=yV({},e)).main&&e[r]&&(e.main=e[r]),!e.hasOwnProperty("main"))throw new Error(xV(11,t?` (${t})`:"",r));if("string"!=typeof e.main)throw new Error(xV(12,t?` (${t})`:"",JSON.stringify(e.main)));return aH(e,"light",o,n),aH(e,"dark",a,n),e.contrastText||(e.contrastText=d(e.main)),e},p={dark:oH,light:nH};return SV(yV({common:yV({},GK),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:QK,contrastThreshold:r,getContrastText:d,augmentColor:f,tonalOffset:n},p[t]),o)}const sH=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const lH={textTransform:"uppercase"},uH='"Roboto", "Helvetica", "Arial", sans-serif';function cH(e,t){const r="function"==typeof t?t(e):t,{fontFamily:n=uH,fontSize:o=14,fontWeightLight:a=300,fontWeightRegular:i=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=r,f=tU(r,sH),p=o/14,h=d||(e=>e/u*p+"rem"),m=(e,t,r,o,a)=>{return yV({fontFamily:n,fontWeight:e,fontSize:h(t),lineHeight:r},n===uH?{letterSpacing:(i=o/t,Math.round(1e5*i)/1e5)+"em"}:{},a,c);var i},v={h1:m(a,96,1.167,-1.5),h2:m(a,60,1.2,-.5),h3:m(i,48,1.167,0),h4:m(i,34,1.235,.25),h5:m(i,24,1.334,0),h6:m(s,20,1.6,.15),subtitle1:m(i,16,1.75,.15),subtitle2:m(s,14,1.57,.1),body1:m(i,16,1.5,.15),body2:m(i,14,1.43,.15),button:m(s,14,1.75,.4,lH),caption:m(i,12,1.66,.4),overline:m(i,12,2.66,1,lH),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return SV(yV({htmlFontSize:u,pxToRem:h,fontFamily:n,fontSize:o,fontWeightLight:a,fontWeightRegular:i,fontWeightMedium:s,fontWeightBold:l},v),f,{clone:!1})}function dH(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}var fH=["none",dH(0,2,1,-1,0,1,1,0,0,1,3,0),dH(0,3,1,-2,0,2,2,0,0,1,5,0),dH(0,3,3,-2,0,3,4,0,0,1,8,0),dH(0,2,4,-1,0,4,5,0,0,1,10,0),dH(0,3,5,-1,0,5,8,0,0,1,14,0),dH(0,3,5,-1,0,6,10,0,0,1,18,0),dH(0,4,5,-2,0,7,10,1,0,2,16,1),dH(0,5,5,-3,0,8,10,1,0,3,14,2),dH(0,5,6,-3,0,9,12,1,0,3,16,2),dH(0,6,6,-3,0,10,14,1,0,4,18,3),dH(0,6,7,-4,0,11,15,1,0,4,20,3),dH(0,7,8,-4,0,12,17,2,0,5,22,4),dH(0,7,8,-4,0,13,19,2,0,5,24,4),dH(0,7,9,-4,0,14,21,2,0,5,26,4),dH(0,8,9,-5,0,15,22,2,0,6,28,5),dH(0,8,10,-5,0,16,24,2,0,6,30,5),dH(0,8,11,-5,0,17,26,2,0,6,32,5),dH(0,9,11,-5,0,18,28,2,0,7,34,6),dH(0,9,12,-6,0,19,29,2,0,7,36,6),dH(0,10,13,-6,0,20,31,3,0,8,38,7),dH(0,10,13,-6,0,21,33,3,0,8,40,7),dH(0,10,14,-6,0,22,35,3,0,8,42,7),dH(0,11,14,-7,0,23,36,3,0,9,44,8),dH(0,11,15,-7,0,24,38,3,0,9,46,8)];const pH=["duration","easing","delay"],hH={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)"},mH={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function vH(e){return`${Math.round(e)}ms`}function gH(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function yH(e){const t=yV({},hH,e.easing),r=yV({},mH,e.duration);return yV({getAutoHeightDuration:gH,create:(e=["all"],n={})=>{const{duration:o=r.standard,easing:a=t.easeInOut,delay:i=0}=n;return tU(n,pH),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:vH(o)} ${a} ${"string"==typeof i?i:vH(i)}`)).join(",")}},e,{easing:t,duration:r})}var bH={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};const wH=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function SH(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:a={}}=e,i=tU(e,wH);if(e.vars)throw new Error(xV(18));const s=iH(n),l=dK(e);let u=SV(l,{mixins:(c=l.breakpoints,d=r,yV({toolbar:{minHeight:56,[c.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[c.up("sm")]:{minHeight:64}}},d)),palette:s,shadows:fH.slice(),typography:cH(s,a),transitions:yH(o),zIndex:yV({},bH)});var c,d;return u=SV(u,i),u=t.reduce(((e,t)=>SV(e,t)),u),u.unstable_sxConfig=yV({},sK,null==i?void 0:i.unstable_sxConfig),u.unstable_sx=function(e){return uK({sx:e,theme:this})},u}var xH=SH(),_H="$$material";function $H({props:e,name:t}){return AK({props:e,name:t,defaultTheme:xH,themeId:_H})}const kH=e=>EK(e)&&"classes"!==e,EH=EK;var jH=RK({themeId:_H,defaultTheme:xH,rootShouldForwardProp:kH});function CH(e){return ZV("MuiSvgIcon",e)}eU("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const OH=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],PH=jH("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"inherit"!==r.color&&t[`color${_V(r.color)}`],t[`fontSize${_V(r.fontSize)}`]]}})((({theme:e,ownerState:t})=>{var r,n,o,a,i,s,l,u,c,d,f,p,h;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(r=e.transitions)||null==(n=r.create)?void 0:n.call(r,"fill",{duration:null==(o=e.transitions)||null==(o=o.duration)?void 0:o.shorter}),fontSize:{inherit:"inherit",small:(null==(a=e.typography)||null==(i=a.pxToRem)?void 0:i.call(a,20))||"1.25rem",medium:(null==(s=e.typography)||null==(l=s.pxToRem)?void 0:l.call(s,24))||"1.5rem",large:(null==(u=e.typography)||null==(c=u.pxToRem)?void 0:c.call(u,35))||"2.1875rem"}[t.fontSize],color:null!=(d=null==(f=(e.vars||e).palette)||null==(f=f[t.color])?void 0:f.main)?d:{action:null==(p=(e.vars||e).palette)||null==(p=p.action)?void 0:p.active,disabled:null==(h=(e.vars||e).palette)||null==(h=h.action)?void 0:h.disabled,inherit:void 0}[t.color]}})),NH=a.forwardRef((function(e,t){const r=$H({props:e,name:"MuiSvgIcon"}),{children:n,className:o,color:i="inherit",component:s="svg",fontSize:l="medium",htmlColor:u,inheritViewBox:c=!1,titleAccess:d,viewBox:f="0 0 24 24"}=r,p=tU(r,OH),h=a.isValidElement(n)&&"svg"===n.type,m=yV({},r,{color:i,component:s,fontSize:l,instanceFontSize:e.fontSize,inheritViewBox:c,viewBox:f,hasSvgAsChild:h}),v={};c||(v.viewBox=f);const g=(e=>{const{color:t,fontSize:r,classes:n}=e;return QV({root:["root","inherit"!==t&&`color${_V(t)}`,`fontSize${_V(r)}`]},CH,n)})(m);return Hj.jsxs(PH,yV({as:s,className:nU(g.root,o),focusable:"false",color:u,"aria-hidden":!d||void 0,role:d?"img":void 0,ref:t},v,p,h&&n.props,{ownerState:m,children:[h?n.props.children:n,d?Hj.jsx("title",{children:d}):null]}))}));NH.muiName="SvgIcon";var RH=NH;function TH(e,t){function r(r,n){return Hj.jsx(RH,yV({"data-testid":`${t}Icon`,ref:n},r,{children:e}))}return r.muiName=RH.muiName,a.memo(a.forwardRef(r))}const AH={configure:e=>{YV.configure(e)}};var IH,MH=o(Object.freeze({__proto__:null,capitalize:_V,createChainedFunction:$V,createSvgIcon:TH,debounce:kV,deprecatedPropType:function(e,t){return()=>null},isMuiElement:EV,ownerDocument:jV,ownerWindow:CV,requirePropFactory:function(e,t){return()=>null},setRef:OV,unstable_ClassNameGenerator:AH,unstable_useEnhancedEffect:PV,unstable_useId:TV,unsupportedProp:function(e,t,r,n,o){return null},useControlled:AV,useEventCallback:IV,useForkRef:MV,useIsFocusVisible:qV}));function FH(){return IH||(IH=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=MH}(gV)),gV}var zH=mV;Object.defineProperty(hV,"__esModule",{value:!0});var DH=hV.default=void 0,LH=zH(FH()),BH=Hj,VH=(0,LH.default)((0,BH.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add");function UH(e,t){return UH=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},UH(e,t)}function WH(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,UH(e,t)}DH=hV.default=VH;var qH=!1,KH=B.createContext(null),HH="unmounted",GH="exited",QH="entering",JH="entered",YH="exiting",XH=function(e){function t(t,r){var n;n=e.call(this,t,r)||this;var o,a=r&&!r.isMounting?t.enter:t.appear;return n.appearStatus=null,t.in?a?(o=GH,n.appearStatus=QH):o=JH:o=t.unmountOnExit||t.mountOnEnter?HH:GH,n.state={status:o},n.nextCallback=null,n}WH(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===HH?{status:GH}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(e){var t=null;if(e!==this.props){var r=this.state.status;this.props.in?r!==QH&&r!==JH&&(t=QH):r!==QH&&r!==JH||(t=YH)}this.updateStatus(!1,t)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var e,t,r,n=this.props.timeout;return e=t=r=n,null!=n&&"number"!=typeof n&&(e=n.exit,t=n.enter,r=void 0!==n.appear?n.appear:t),{exit:e,enter:t,appear:r}},r.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===QH){if(this.props.unmountOnExit||this.props.mountOnEnter){var r=this.props.nodeRef?this.props.nodeRef.current:Yc.findDOMNode(this);r&&function(e){e.scrollTop}(r)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===GH&&this.setState({status:HH})},r.performEnter=function(e){var t=this,r=this.props.enter,n=this.context?this.context.isMounting:e,o=this.props.nodeRef?[n]:[Yc.findDOMNode(this),n],a=o[0],i=o[1],s=this.getTimeouts(),l=n?s.appear:s.enter;!e&&!r||qH?this.safeSetState({status:JH},(function(){t.props.onEntered(a)})):(this.props.onEnter(a,i),this.safeSetState({status:QH},(function(){t.props.onEntering(a,i),t.onTransitionEnd(l,(function(){t.safeSetState({status:JH},(function(){t.props.onEntered(a,i)}))}))})))},r.performExit=function(){var e=this,t=this.props.exit,r=this.getTimeouts(),n=this.props.nodeRef?void 0:Yc.findDOMNode(this);t&&!qH?(this.props.onExit(n),this.safeSetState({status:YH},(function(){e.props.onExiting(n),e.onTransitionEnd(r.exit,(function(){e.safeSetState({status:GH},(function(){e.props.onExited(n)}))}))}))):this.safeSetState({status:GH},(function(){e.props.onExited(n)}))},r.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},r.setNextCallback=function(e){var t=this,r=!0;return this.nextCallback=function(n){r&&(r=!1,t.nextCallback=null,e(n))},this.nextCallback.cancel=function(){r=!1},this.nextCallback},r.onTransitionEnd=function(e,t){this.setNextCallback(t);var r=this.props.nodeRef?this.props.nodeRef.current:Yc.findDOMNode(this),n=null==e&&!this.props.addEndListener;if(r&&!n){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[r,this.nextCallback],a=o[0],i=o[1];this.props.addEndListener(a,i)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},r.render=function(){var e=this.state.status;if(e===HH)return null;var t=this.props,r=t.children;t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef;var n=tU(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return B.createElement(KH.Provider,{value:null},"function"==typeof r?r(e,n):B.cloneElement(B.Children.only(r),n))},t}(B.Component);function ZH(){}XH.contextType=KH,XH.propTypes={},XH.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ZH,onEntering:ZH,onEntered:ZH,onExit:ZH,onExiting:ZH,onExited:ZH},XH.UNMOUNTED=HH,XH.EXITED=GH,XH.ENTERING=QH,XH.ENTERED=JH,XH.EXITING=YH;var eG=XH;function tG(e,t){var r=Object.create(null);return e&&a.Children.map(e,(function(e){return e})).forEach((function(e){r[e.key]=function(e){return t&&a.isValidElement(e)?t(e):e}(e)})),r}function rG(e,t,r){return null!=r[t]?r[t]:e.props[t]}function nG(e,t,r){var n=tG(e.children),o=function(e,t){function r(r){return r in t?t[r]:e[r]}e=e||{},t=t||{};var n,o=Object.create(null),a=[];for(var i in e)i in t?a.length&&(o[i]=a,a=[]):a.push(i);var s={};for(var l in t){if(o[l])for(n=0;n<o[l].length;n++){var u=o[l][n];s[o[l][n]]=r(u)}s[l]=r(l)}for(n=0;n<a.length;n++)s[a[n]]=r(a[n]);return s}(t,n);return Object.keys(o).forEach((function(i){var s=o[i];if(a.isValidElement(s)){var l=i in t,u=i in n,c=t[i],d=a.isValidElement(c)&&!c.props.in;!u||l&&!d?u||!l||d?u&&l&&a.isValidElement(c)&&(o[i]=a.cloneElement(s,{onExited:r.bind(null,s),in:c.props.in,exit:rG(s,"exit",e),enter:rG(s,"enter",e)})):o[i]=a.cloneElement(s,{in:!1}):o[i]=a.cloneElement(s,{onExited:r.bind(null,s),in:!0,exit:rG(s,"exit",e),enter:rG(s,"enter",e)})}})),o}var oG=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},aG=function(e){function t(t,r){var n,o=(n=e.call(this,t,r)||this).handleExited.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(n));return n.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},n}WH(t,e);var r=t.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var r,n,o=t.children,i=t.handleExited;return{children:t.firstRender?(r=e,n=i,tG(r.children,(function(e){return a.cloneElement(e,{onExited:n.bind(null,e),in:!0,appear:rG(e,"appear",r),enter:rG(e,"enter",r),exit:rG(e,"exit",r)})}))):nG(e,o,i),firstRender:!1}},r.handleExited=function(e,t){var r=tG(this.props.children);e.key in r||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var r=yV({},t.children);return delete r[e.key],{children:r}})))},r.render=function(){var e=this.props,t=e.component,r=e.childFactory,n=tU(e,["component","childFactory"]),o=this.state.contextValue,a=oG(this.state.children).map(r);return delete n.appear,delete n.enter,delete n.exit,null===t?B.createElement(KH.Provider,{value:o},a):B.createElement(KH.Provider,{value:o},B.createElement(t,n,a))},t}(B.Component);aG.propTypes={},aG.defaultProps={component:"div",childFactory:function(e){return e}};var iG=aG;var sG=eU("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);const lG=["center","classes","className"];let uG,cG,dG,fG,pG=e=>e;const hG=rq(uG||(uG=pG`
|
|
43
64
|
0% {
|
|
44
65
|
transform: scale(0);
|
|
45
66
|
opacity: 0.1;
|
|
@@ -49,7 +70,7 @@ var X=a,Y=H;function J(e){for(var t="https://reactjs.org/docs/error-decoder.html
|
|
|
49
70
|
transform: scale(1);
|
|
50
71
|
opacity: 0.3;
|
|
51
72
|
}
|
|
52
|
-
`)),
|
|
73
|
+
`)),mG=rq(cG||(cG=pG`
|
|
53
74
|
0% {
|
|
54
75
|
opacity: 1;
|
|
55
76
|
}
|
|
@@ -57,7 +78,7 @@ var X=a,Y=H;function J(e){for(var t="https://reactjs.org/docs/error-decoder.html
|
|
|
57
78
|
100% {
|
|
58
79
|
opacity: 0;
|
|
59
80
|
}
|
|
60
|
-
`)),
|
|
81
|
+
`)),vG=rq(dG||(dG=pG`
|
|
61
82
|
0% {
|
|
62
83
|
transform: scale(1);
|
|
63
84
|
}
|
|
@@ -69,7 +90,7 @@ var X=a,Y=H;function J(e){for(var t="https://reactjs.org/docs/error-decoder.html
|
|
|
69
90
|
100% {
|
|
70
91
|
transform: scale(1);
|
|
71
92
|
}
|
|
72
|
-
`)),
|
|
93
|
+
`)),gG=jH("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),yG=jH((function(e){const{className:t,classes:r,pulsate:n=!1,rippleX:o,rippleY:i,rippleSize:s,in:l,onExited:u,timeout:c}=e,[d,f]=a.useState(!1),p=nU(t,r.ripple,r.rippleVisible,n&&r.ripplePulsate),h={width:s,height:s,top:-s/2+i,left:-s/2+o},m=nU(r.child,d&&r.childLeaving,n&&r.childPulsate);return l||d||f(!0),a.useEffect((()=>{if(!l&&null!=u){const e=setTimeout(u,c);return()=>{clearTimeout(e)}}}),[u,l,c]),Hj.jsx("span",{className:p,style:h,children:Hj.jsx("span",{className:m})})}),{name:"MuiTouchRipple",slot:"Ripple"})(fG||(fG=pG`
|
|
73
94
|
opacity: 0;
|
|
74
95
|
position: absolute;
|
|
75
96
|
|
|
@@ -112,4 +133,4 @@ var X=a,Y=H;function J(e){for(var t="https://reactjs.org/docs/error-decoder.html
|
|
|
112
133
|
animation-iteration-count: infinite;
|
|
113
134
|
animation-delay: 200ms;
|
|
114
135
|
}
|
|
115
|
-
`),fJ.rippleVisible,bJ,550,(({theme:e})=>e.transitions.easing.easeInOut),fJ.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),fJ.child,fJ.childLeaving,wJ,550,(({theme:e})=>e.transitions.easing.easeInOut),fJ.childPulsate,SJ,(({theme:e})=>e.transitions.easing.easeInOut)),kJ=a.forwardRef((function(e,t){const r=jY({props:e,name:"MuiTouchRipple"}),{center:n=!1,classes:o={},className:i}=r,s=uH(r,pJ),[l,u]=a.useState([]),c=a.useRef(0),d=a.useRef(null);a.useEffect((()=>{d.current&&(d.current(),d.current=null)}),[l]);const f=a.useRef(!1),p=a.useRef(0),m=a.useRef(null),h=a.useRef(null);a.useEffect((()=>()=>{p.current&&clearTimeout(p.current)}),[]);const v=a.useCallback((e=>{const{pulsate:t,rippleX:r,rippleY:n,rippleSize:a,cb:i}=e;u((e=>[...e,SO.jsx($J,{classes:{ripple:dH(o.ripple,fJ.ripple),rippleVisible:dH(o.rippleVisible,fJ.rippleVisible),ripplePulsate:dH(o.ripplePulsate,fJ.ripplePulsate),child:dH(o.child,fJ.child),childLeaving:dH(o.childLeaving,fJ.childLeaving),childPulsate:dH(o.childPulsate,fJ.childPulsate)},timeout:550,pulsate:t,rippleX:r,rippleY:n,rippleSize:a},c.current)])),c.current+=1,d.current=i}),[o]),y=a.useCallback(((e={},t={},r=(()=>{}))=>{const{pulsate:o=!1,center:a=n||t.pulsate,fakeElement:i=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&f.current)return void(f.current=!1);"touchstart"===(null==e?void 0:e.type)&&(f.current=!0);const s=i?null:h.current,l=s?s.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u,c,d;if(a||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(l.width/2),c=Math.round(l.height/2);else{const{clientX:t,clientY:r}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-l.left),c=Math.round(r-l.top)}if(a)d=Math.sqrt((2*l.width**2+l.height**2)/3),d%2==0&&(d+=1);else{const e=2*Math.max(Math.abs((s?s.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((s?s.clientHeight:0)-c),c)+2;d=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===m.current&&(m.current=()=>{v({pulsate:o,rippleX:u,rippleY:c,rippleSize:d,cb:r})},p.current=setTimeout((()=>{m.current&&(m.current(),m.current=null)}),80)):v({pulsate:o,rippleX:u,rippleY:c,rippleSize:d,cb:r})}),[n,v]),g=a.useCallback((()=>{y({},{pulsate:!0})}),[y]),b=a.useCallback(((e,t)=>{if(clearTimeout(p.current),"touchend"===(null==e?void 0:e.type)&&m.current)return m.current(),m.current=null,void(p.current=setTimeout((()=>{b(e,t)})));m.current=null,u((e=>e.length>0?e.slice(1):e)),d.current=t}),[]);return a.useImperativeHandle(t,(()=>({pulsate:g,start:y,stop:b})),[g,y,b]),SO.jsx(xJ,EK({className:dH(fJ.root,o.root,i),ref:h},s,{children:SO.jsx(dJ,{component:null,exit:!0,children:l})}))}));var _J=kJ;function EJ(e){return sH("MuiButtonBase",e)}var CJ=lH("MuiButtonBase",["root","disabled","focusVisible"]);const PJ=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],jJ=RY("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"},[`&.${CJ.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),OJ=a.forwardRef((function(e,t){const r=jY({props:e,name:"MuiButtonBase"}),{action:n,centerRipple:o=!1,children:i,className:s,component:l="button",disabled:u=!1,disableRipple:c=!1,disableTouchRipple:d=!1,focusRipple:f=!1,LinkComponent:p="a",onBlur:m,onClick:h,onContextMenu:v,onDragLeave:y,onFocus:g,onFocusVisible:b,onKeyDown:w,onKeyUp:S,onMouseDown:x,onMouseLeave:$,onMouseUp:k,onTouchEnd:_,onTouchMove:E,onTouchStart:C,tabIndex:P=0,TouchRippleProps:j,touchRippleRef:O,type:N}=r,R=uH(r,PJ),T=a.useRef(null),A=a.useRef(null),I=WK(A,O),{isFocusVisibleRef:M,onFocus:F,onBlur:D,ref:z}=ZK(),[L,B]=a.useState(!1);u&&L&&B(!1),a.useImperativeHandle(n,(()=>({focusVisible:()=>{B(!0),T.current.focus()}})),[]);const[V,U]=a.useState(!1);a.useEffect((()=>{U(!0)}),[]);const W=V&&!c&&!u;function q(e,t,r=d){return UK((n=>{t&&t(n);return!r&&A.current&&A.current[e](n),!0}))}a.useEffect((()=>{L&&f&&!c&&V&&A.current.pulsate()}),[c,f,L,V]);const K=q("start",x),H=q("stop",v),G=q("stop",y),Q=q("stop",k),X=q("stop",(e=>{L&&e.preventDefault(),$&&$(e)})),Y=q("start",C),J=q("stop",_),Z=q("stop",E),ee=q("stop",(e=>{D(e),!1===M.current&&B(!1),m&&m(e)}),!1),te=UK((e=>{T.current||(T.current=e.currentTarget),F(e),!0===M.current&&(B(!0),b&&b(e)),g&&g(e)})),re=()=>{const e=T.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},ne=a.useRef(!1),oe=UK((e=>{f&&!ne.current&&L&&A.current&&" "===e.key&&(ne.current=!0,A.current.stop(e,(()=>{A.current.start(e)}))),e.target===e.currentTarget&&re()&&" "===e.key&&e.preventDefault(),w&&w(e),e.target===e.currentTarget&&re()&&"Enter"===e.key&&!u&&(e.preventDefault(),h&&h(e))})),ae=UK((e=>{f&&" "===e.key&&A.current&&L&&!e.defaultPrevented&&(ne.current=!1,A.current.stop(e,(()=>{A.current.pulsate(e)}))),S&&S(e),h&&e.target===e.currentTarget&&re()&&" "===e.key&&!e.defaultPrevented&&h(e)}));let ie=l;"button"===ie&&(R.href||R.to)&&(ie=p);const se={};"button"===ie?(se.type=void 0===N?"button":N,se.disabled=u):(R.href||R.to||(se.role="button"),u&&(se["aria-disabled"]=u));const le=WK(t,z,T),ue=EK({},r,{centerRipple:o,component:l,disabled:u,disableRipple:c,disableTouchRipple:d,focusRipple:f,tabIndex:P,focusVisible:L}),ce=(e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:o}=e,a=nH({root:["root",t&&"disabled",r&&"focusVisible"]},EJ,o);return r&&n&&(a.root+=` ${n}`),a})(ue);return SO.jsxs(jJ,EK({as:ie,className:dH(ce.root,s),ownerState:ue,onBlur:ee,onClick:h,onContextMenu:H,onFocus:te,onKeyDown:oe,onKeyUp:ae,onMouseDown:K,onMouseLeave:X,onMouseUp:Q,onDragLeave:G,onTouchEnd:J,onTouchMove:Z,onTouchStart:Y,ref:le,tabIndex:u?-1:P,type:N},se,R,{children:[i,W?SO.jsx(_J,EK({ref:I,center:o},j)):null]}))}));var NJ=OJ;function RJ(e){return sH("MuiIconButton",e)}var TJ=lH("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]);const AJ=["edge","children","className","color","disabled","disableFocusRipple","size"],IJ=RY(NJ,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"default"!==r.color&&t[`color${NK(r.color)}`],r.edge&&t[`edge${NK(r.edge)}`],t[`size${NK(r.size)}`]]}})((({theme:e,ownerState:t})=>EK({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:WX(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"start"===t.edge&&{marginLeft:"small"===t.size?-3:-12},"end"===t.edge&&{marginRight:"small"===t.size?-3:-12})),(({theme:e,ownerState:t})=>{var r;const n=null==(r=(e.vars||e).palette)?void 0:r[t.color];return EK({},"inherit"===t.color&&{color:"inherit"},"inherit"!==t.color&&"default"!==t.color&&EK({color:null==n?void 0:n.main},!t.disableRipple&&{"&:hover":EK({},n&&{backgroundColor:e.vars?`rgba(${n.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:WX(n.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),"small"===t.size&&{padding:5,fontSize:e.typography.pxToRem(18)},"large"===t.size&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${TJ.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})})),MJ=a.forwardRef((function(e,t){const r=jY({props:e,name:"MuiIconButton"}),{edge:n=!1,children:o,className:a,color:i="default",disabled:s=!1,disableFocusRipple:l=!1,size:u="medium"}=r,c=uH(r,AJ),d=EK({},r,{edge:n,color:i,disabled:s,disableFocusRipple:l,size:u}),f=(e=>{const{classes:t,disabled:r,color:n,edge:o,size:a}=e;return nH({root:["root",r&&"disabled","default"!==n&&`color${NK(n)}`,o&&`edge${NK(o)}`,`size${NK(a)}`]},RJ,t)})(d);return SO.jsx(IJ,EK({className:dH(f.root,a),centerRipple:!0,focusRipple:!l,disabled:s,ref:t,ownerState:d},c,{children:o}))}));var FJ=MJ;function DJ(){const e=xX(CY);return e[PY]||e}var zJ=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};const LJ=EY(),BJ=function(e={}){const{themeId:t,defaultTheme:r,defaultClassName:n="MuiBox-root",generateClassName:o}=e,i=gQ("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(yX),s=a.forwardRef((function(e,a){const s=xX(r),l=EX(e),{className:u,component:c="div"}=l,d=uH(l,CX);return SO.jsx(i,EK({as:c,ref:a,className:dH(u,o?o(n):n),theme:t&&s[t]||s},d))}));return s}({themeId:PY,defaultTheme:LJ,defaultClassName:"MuiBox-root",generateClassName:aH.generate});var VJ=BJ;var UJ=a.createContext();function WJ(e){return sH("MuiGrid",e)}const qJ=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],KJ=lH("MuiGrid",["root","container","item","zeroMinWidth",...[0,1,2,3,4,5,6,7,8,9,10].map((e=>`spacing-xs-${e}`)),...["column-reverse","column","row-reverse","row"].map((e=>`direction-xs-${e}`)),...["nowrap","wrap-reverse","wrap"].map((e=>`wrap-xs-${e}`)),...qJ.map((e=>`grid-xs-${e}`)),...qJ.map((e=>`grid-sm-${e}`)),...qJ.map((e=>`grid-md-${e}`)),...qJ.map((e=>`grid-lg-${e}`)),...qJ.map((e=>`grid-xl-${e}`))]),HJ=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function GJ(e){const t=parseFloat(e);return`${t}${String(e).replace(String(t),"")||"px"}`}function QJ({breakpoints:e,values:t}){let r="";Object.keys(t).forEach((e=>{""===r&&0!==t[e]&&(r=e)}));const n=Object.keys(e).sort(((t,r)=>e[t]-e[r]));return n.slice(0,n.indexOf(r))}const XJ=RY("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=function(e,t,r={}){if(!e||e<=0)return[];if("string"==typeof e&&!Number.isNaN(Number(e))||"number"==typeof e)return[r[`spacing-xs-${String(e)}`]];const n=[];return t.forEach((t=>{const o=e[t];Number(o)>0&&n.push(r[`spacing-${t}-${String(o)}`])})),n}(i,u,t));const d=[];return u.forEach((e=>{const n=r[e];n&&d.push(t[`grid-${e}-${String(n)}`])})),[t.root,n&&t.container,a&&t.item,l&&t.zeroMinWidth,...c,"row"!==o&&t[`direction-xs-${String(o)}`],"wrap"!==s&&t[`wrap-xs-${String(s)}`],...d]}})((({ownerState:e})=>EK({boxSizing:"border-box"},e.container&&{display:"flex",flexWrap:"wrap",width:"100%"},e.item&&{margin:0},e.zeroMinWidth&&{minWidth:0},"wrap"!==e.wrap&&{flexWrap:e.wrap})),(function({theme:e,ownerState:t}){return _Q({theme:e},PQ({values:t.direction,breakpoints:e.breakpoints.values}),(e=>{const t={flexDirection:e};return 0===e.indexOf("column")&&(t[`& > .${KJ.item}`]={maxWidth:"none"}),t}))}),(function({theme:e,ownerState:t}){const{container:r,rowSpacing:n}=t;let o={};if(r&&0!==n){const t=PQ({values:n,breakpoints:e.breakpoints.values});let r;"object"==typeof t&&(r=QJ({breakpoints:e.breakpoints.values,values:t})),o=_Q({theme:e},t,((t,n)=>{var o;const a=e.spacing(t);return"0px"!==a?{marginTop:`-${GJ(a)}`,[`& > .${KJ.item}`]:{paddingTop:GJ(a)}}:null!=(o=r)&&o.includes(n)?{}:{marginTop:0,[`& > .${KJ.item}`]:{paddingTop:0}}}))}return o}),(function({theme:e,ownerState:t}){const{container:r,columnSpacing:n}=t;let o={};if(r&&0!==n){const t=PQ({values:n,breakpoints:e.breakpoints.values});let r;"object"==typeof t&&(r=QJ({breakpoints:e.breakpoints.values,values:t})),o=_Q({theme:e},t,((t,n)=>{var o;const a=e.spacing(t);return"0px"!==a?{width:`calc(100% + ${GJ(a)})`,marginLeft:`-${GJ(a)}`,[`& > .${KJ.item}`]:{paddingLeft:GJ(a)}}:null!=(o=r)&&o.includes(n)?{}:{width:"100%",marginLeft:0,[`& > .${KJ.item}`]:{paddingLeft:0}}}))}return o}),(function({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(!0===r)a={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if("auto"===r)a={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const i=PQ({values:t.columns,breakpoints:e.breakpoints.values}),s="object"==typeof i?i[o]:i;if(null==s)return n;const l=Math.round(r/s*1e8)/1e6+"%";let u={};if(t.container&&t.item&&0!==t.columnSpacing){const r=e.spacing(t.columnSpacing);if("0px"!==r){const e=`calc(${l} + ${GJ(r)})`;u={flexBasis:e,maxWidth:e}}}a=EK({flexBasis:l,flexGrow:0,maxWidth:l},u)}return 0===e.breakpoints.values[o]?Object.assign(n,a):n[e.breakpoints.up(o)]=a,n}),{})}));const YJ=e=>{const{classes:t,container:r,direction:n,item:o,spacing:a,wrap:i,zeroMinWidth:s,breakpoints:l}=e;let u=[];r&&(u=function(e,t){if(!e||e<=0)return[];if("string"==typeof e&&!Number.isNaN(Number(e))||"number"==typeof e)return[`spacing-xs-${String(e)}`];const r=[];return t.forEach((t=>{const n=e[t];if(Number(n)>0){const e=`spacing-${t}-${String(n)}`;r.push(e)}})),r}(a,l));const c=[];l.forEach((t=>{const r=e[t];r&&c.push(`grid-${t}-${String(r)}`)}));return nH({root:["root",r&&"container",o&&"item",s&&"zeroMinWidth",...u,"row"!==n&&`direction-xs-${String(n)}`,"wrap"!==i&&`wrap-xs-${String(i)}`,...c]},WJ,t)},JJ=a.forwardRef((function(e,t){const r=jY({props:e,name:"MuiGrid"}),{breakpoints:n}=DJ(),o=EX(r),{className:i,columns:s,columnSpacing:l,component:u="div",container:c=!1,direction:d="row",item:f=!1,rowSpacing:p,spacing:m=0,wrap:h="wrap",zeroMinWidth:v=!1}=o,y=uH(o,HJ),g=p||m,b=l||m,w=a.useContext(UJ),S=c?s||12:w,x={},$=EK({},y);n.keys.forEach((e=>{null!=y[e]&&(x[e]=y[e],delete $[e])}));const k=EK({},o,{columns:S,container:c,direction:d,item:f,rowSpacing:g,columnSpacing:b,wrap:h,zeroMinWidth:v,spacing:m},x,{breakpoints:n.keys}),_=YJ(k);return SO.jsx(UJ.Provider,{value:S,children:SO.jsx(XJ,EK({ownerState:k,className:dH(_.root,i),as:u,ref:t},$))})}));var ZJ=JJ;function eZ(e){return sH("MuiPaper",e)}lH("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 tZ=["className","component","elevation","square","variant"],rZ=RY("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],!r.square&&t.rounded,"elevation"===r.variant&&t[`elevation${r.elevation}`]]}})((({theme:e,ownerState:t})=>{var r;return EK({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.divider}`},"elevation"===t.variant&&EK({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${WX("#fff",zJ(t.elevation))}, ${WX("#fff",zJ(t.elevation))})`},e.vars&&{backgroundImage:null==(r=e.vars.overlays)?void 0:r[t.elevation]}))})),nZ=a.forwardRef((function(e,t){const r=jY({props:e,name:"MuiPaper"}),{className:n,component:o="div",elevation:a=1,square:i=!1,variant:s="elevation"}=r,l=uH(r,tZ),u=EK({},r,{component:o,elevation:a,square:i,variant:s}),c=(e=>{const{square:t,elevation:r,variant:n,classes:o}=e;return nH({root:["root",n,!t&&"rounded","elevation"===n&&`elevation${r}`]},eZ,o)})(u);return SO.jsx(rZ,EK({as:o,ownerState:u,className:dH(c.root,n),ref:t},l))}));var oZ=nZ;function aZ(e){return"string"==typeof e}function iZ(e,t=[]){if(void 0===e)return{};const r={};return Object.keys(e).filter((r=>r.match(/^on[A-Z]/)&&"function"==typeof e[r]&&!t.includes(r))).forEach((t=>{r[t]=e[t]})),r}function sZ(e){if(void 0===e)return{};const t={};return Object.keys(e).filter((t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t]))).forEach((r=>{t[r]=e[r]})),t}const lZ=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function uZ(e){var t;const{elementType:r,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:a=!1}=e,i=uH(e,lZ),s=a?{}:function(e,t,r){return"function"==typeof e?e(t,r):e}(n,o),{props:l,internalRef:u}=function(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:o,className:a}=e;if(!t){const e=dH(null==o?void 0:o.className,null==n?void 0:n.className,a,null==r?void 0:r.className),t=EK({},null==r?void 0:r.style,null==o?void 0:o.style,null==n?void 0:n.style),i=EK({},r,o,n);return e.length>0&&(i.className=e),Object.keys(t).length>0&&(i.style=t),{props:i,internalRef:void 0}}const i=iZ(EK({},o,n)),s=sZ(n),l=sZ(o),u=t(i),c=dH(null==u?void 0:u.className,null==r?void 0:r.className,a,null==o?void 0:o.className,null==n?void 0:n.className),d=EK({},null==u?void 0:u.style,null==r?void 0:r.style,null==o?void 0:o.style,null==n?void 0:n.style),f=EK({},u,r,l,s);return c.length>0&&(f.className=c),Object.keys(d).length>0&&(f.style=d),{props:f,internalRef:u.ref}}(EK({},i,{externalSlotProps:s})),c=function(e,t,r){return void 0===e||aZ(e)?t:EK({},t,{ownerState:EK({},t.ownerState,r)})}(r,EK({},l,{ref:WK(u,null==s?void 0:s.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o);return c}const cZ=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function dZ(e){const t=[],r=[];return Array.from(e.querySelectorAll(cZ)).forEach(((e,n)=>{const o=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==o&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let r=t(`[name="${e.name}"]:checked`);return r||(r=t(`[name="${e.name}"]`)),r!==e}(e))}(e)&&(0===o?t.push(e):r.push({documentOrder:n,tabIndex:o,node:e}))})),r.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function fZ(){return!0}function pZ(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:o=!1,getTabbable:i=dZ,isEnabled:s=fZ,open:l}=e,u=a.useRef(!1),c=a.useRef(null),d=a.useRef(null),f=a.useRef(null),p=a.useRef(null),m=a.useRef(!1),h=a.useRef(null),v=WK(t.ref,h),y=a.useRef(null);a.useEffect((()=>{l&&h.current&&(m.current=!r)}),[r,l]),a.useEffect((()=>{if(!l||!h.current)return;const e=IK(h.current);return h.current.contains(e.activeElement)||(h.current.hasAttribute("tabIndex")||h.current.setAttribute("tabIndex","-1"),m.current&&h.current.focus()),()=>{o||(f.current&&f.current.focus&&(u.current=!0,f.current.focus()),f.current=null)}}),[l]),a.useEffect((()=>{if(!l||!h.current)return;const e=IK(h.current),t=t=>{const{current:r}=h;if(null!==r)if(e.hasFocus()&&!n&&s()&&!u.current){if(!r.contains(e.activeElement)){if(t&&p.current!==t.target||e.activeElement!==p.current)p.current=null;else if(null!==p.current)return;if(!m.current)return;let n=[];if(e.activeElement!==c.current&&e.activeElement!==d.current||(n=i(h.current)),n.length>0){var o,a;const e=Boolean((null==(o=y.current)?void 0:o.shiftKey)&&"Tab"===(null==(a=y.current)?void 0:a.key)),t=n[0],r=n[n.length-1];"string"!=typeof t&&"string"!=typeof r&&(e?r.focus():t.focus())}else r.focus()}}else u.current=!1},r=t=>{y.current=t,!n&&s()&&"Tab"===t.key&&e.activeElement===h.current&&t.shiftKey&&(u.current=!0,d.current&&d.current.focus())};e.addEventListener("focusin",t),e.addEventListener("keydown",r,!0);const o=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&t(null)}),50);return()=>{clearInterval(o),e.removeEventListener("focusin",t),e.removeEventListener("keydown",r,!0)}}),[r,n,o,s,l,i]);const g=e=>{null===f.current&&(f.current=e.relatedTarget),m.current=!0};return SO.jsxs(a.Fragment,{children:[SO.jsx("div",{tabIndex:l?0:-1,onFocus:g,ref:c,"data-testid":"sentinelStart"}),a.cloneElement(t,{ref:v,onFocus:e=>{null===f.current&&(f.current=e.relatedTarget),m.current=!0,p.current=e.target;const r=t.props.onFocus;r&&r(e)}}),SO.jsx("div",{tabIndex:l?0:-1,onFocus:g,ref:d,"data-testid":"sentinelEnd"})]})}const mZ=a.forwardRef((function(e,t){const{children:r,container:n,disablePortal:o=!1}=e,[i,s]=a.useState(null),l=WK(a.isValidElement(r)?r.ref:null,t);if(DK((()=>{o||s(function(e){return"function"==typeof e?e():e}(n)||document.body)}),[n,o]),DK((()=>{if(i&&!o)return FK(t,i),()=>{FK(t,null)}}),[t,i,o]),o){if(a.isValidElement(r)){const e={ref:l};return a.cloneElement(r,e)}return SO.jsx(a.Fragment,{children:r})}return SO.jsx(a.Fragment,{children:i?W.createPortal(r,i):i})}));function hZ(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function vZ(e){return parseInt(MK(e).getComputedStyle(e).paddingRight,10)||0}function yZ(e,t,r,n,o){const a=[t,r,...n];[].forEach.call(e.children,(e=>{const t=-1===a.indexOf(e),r=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),r="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||r}(e);t&&r&&hZ(e,o)}))}function gZ(e,t){let r=-1;return e.some(((e,n)=>!!t(e)&&(r=n,!0))),r}function bZ(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(function(e){const t=IK(e);return t.body===e?MK(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(n)){const e=eH(IK(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${vZ(n)+e}px`;const t=IK(n).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{r.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${vZ(t)+e}px`}))}let e;if(n.parentNode instanceof DocumentFragment)e=IK(n).body;else{const t=n.parentElement,r=MK(n);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===r.getComputedStyle(t).overflowY?t:n}r.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{r.forEach((({value:e,el:t,property:r})=>{e?t.style.setProperty(r,e):t.style.removeProperty(r)}))}}const wZ=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let r=this.modals.indexOf(e);if(-1!==r)return r;r=this.modals.length,this.modals.push(e),e.modalRef&&hZ(e.modalRef,!1);const n=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);yZ(t,e.mount,e.modalRef,n,!0);const o=gZ(this.containers,(e=>e.container===t));return-1!==o?(this.containers[o].modals.push(e),r):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:n}),r)}mount(e,t){const r=gZ(this.containers,(t=>-1!==t.modals.indexOf(e))),n=this.containers[r];n.restore||(n.restore=bZ(n,t))}remove(e,t=!0){const r=this.modals.indexOf(e);if(-1===r)return r;const n=gZ(this.containers,(t=>-1!==t.modals.indexOf(e))),o=this.containers[n];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(r,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&hZ(e.modalRef,t),yZ(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(n,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&hZ(e.modalRef,!1)}return r}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function SZ(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,manager:o=wZ,closeAfterTransition:i=!1,onTransitionEnter:s,onTransitionExited:l,children:u,onClose:c,open:d,rootRef:f}=e,p=a.useRef({}),m=a.useRef(null),h=a.useRef(null),v=WK(h,f),[y,g]=a.useState(!d),b=function(e){return!!e&&e.props.hasOwnProperty("in")}(u);let w=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(w=!1);const S=()=>(p.current.modalRef=h.current,p.current.mount=m.current,p.current),x=()=>{o.mount(S(),{disableScrollLock:n}),h.current&&(h.current.scrollTop=0)},$=UK((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||IK(m.current).body;o.add(S(),e),h.current&&x()})),k=a.useCallback((()=>o.isTopModal(S())),[o]),_=UK((e=>{m.current=e,e&&(d&&k()?x():h.current&&hZ(h.current,w))})),E=a.useCallback((()=>{o.remove(S(),w)}),[w,o]);a.useEffect((()=>()=>{E()}),[E]),a.useEffect((()=>{d?$():b&&i||E()}),[d,E,b,i,$]);const C=e=>t=>{var n;null==(n=e.onKeyDown)||n.call(e,t),"Escape"===t.key&&k()&&(r||(t.stopPropagation(),c&&c(t,"escapeKeyDown")))},P=e=>t=>{var r;null==(r=e.onClick)||r.call(e,t),t.target===t.currentTarget&&c&&c(t,"backdropClick")};return{getRootProps:(t={})=>{const r=iZ(e);delete r.onTransitionEnter,delete r.onTransitionExited;const n=EK({},r,t);return EK({role:"presentation"},n,{onKeyDown:C(n),ref:v})},getBackdropProps:(e={})=>EK({"aria-hidden":!0},e,{onClick:P(e),open:d}),getTransitionProps:()=>({onEnter:RK((()=>{g(!1),s&&s()}),u.props.onEnter),onExited:RK((()=>{g(!0),l&&l(),i&&E()}),u.props.onExited)}),rootRef:v,portalRef:_,isTopModal:k,exited:y,hasTransition:b}}function xZ(e,t){return e-t}function $Z(e,t,r){return null==e?t:Math.min(Math.max(t,e),r)}function kZ(e,t){var r;const{index:n}=null!=(r=e.reduce(((e,r,n)=>{const o=Math.abs(t-r);return null===e||o<e.distance||o===e.distance?{distance:o,index:n}:e}),null))?r:{};return n}function _Z(e,t){if(void 0!==t.current&&e.changedTouches){const r=e;for(let e=0;e<r.changedTouches.length;e+=1){const n=r.changedTouches[e];if(n.identifier===t.current)return{x:n.clientX,y:n.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function EZ(e,t,r){return 100*(e-t)/(r-t)}function CZ(e,t,r){const n=Math.round((e-r)/t)*t+r;return Number(n.toFixed(function(e){if(Math.abs(e)<1){const t=e.toExponential().split("e-"),r=t[0].split(".")[1];return(r?r.length:0)+parseInt(t[1],10)}const t=e.toString().split(".")[1];return t?t.length:0}(t)))}function PZ({values:e,newValue:t,index:r}){const n=e.slice();return n[r]=t,n.sort(xZ)}function jZ({sliderRef:e,activeIndex:t,setActive:r}){var n,o;const a=IK(e.current);var i;null!=(n=e.current)&&n.contains(a.activeElement)&&Number(null==a||null==(o=a.activeElement)?void 0:o.getAttribute("data-index"))===t||(null==(i=e.current)||i.querySelector(`[type="range"][data-index="${t}"]`).focus());r&&r(t)}function OZ(e,t){return"number"==typeof e&&"number"==typeof t?e===t:"object"==typeof e&&"object"==typeof t&&function(e,t,r=((e,t)=>e===t)){return e.length===t.length&&e.every(((e,n)=>r(e,t[n])))}(e,t)}const NZ={horizontal:{offset:e=>({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}%`})}},RZ=e=>e;let TZ;function AZ(){return void 0===TZ&&(TZ="undefined"==typeof CSS||"function"!=typeof CSS.supports||CSS.supports("touch-action","none")),TZ}function IZ(e){const{"aria-labelledby":t,defaultValue:r,disabled:n=!1,disableSwap:o=!1,isRtl:i=!1,marks:s=!1,max:l=100,min:u=0,name:c,onChange:d,onChangeCommitted:f,orientation:p="horizontal",rootRef:m,scale:h=RZ,step:v=1,tabIndex:y,value:g}=e,b=a.useRef(),[w,S]=a.useState(-1),[x,$]=a.useState(-1),[k,_]=a.useState(!1),E=a.useRef(0),[C,P]=VK({controlled:g,default:null!=r?r:u,name:"Slider"}),j=d&&((e,t,r)=>{const n=e.nativeEvent||e,o=new n.constructor(n.type,n);Object.defineProperty(o,"target",{writable:!0,value:{value:t,name:c}}),d(o,t,r)}),O=Array.isArray(C);let N=O?C.slice().sort(xZ):[C];N=N.map((e=>$Z(e,u,l)));const R=!0===s&&null!==v?[...Array(Math.floor((l-u)/v)+1)].map(((e,t)=>({value:u+v*t}))):s||[],T=R.map((e=>e.value)),{isFocusVisibleRef:A,onBlur:I,onFocus:M,ref:F}=ZK(),[D,z]=a.useState(-1),L=a.useRef(),B=WK(F,L),V=WK(m,B),U=e=>t=>{var r;const n=Number(t.currentTarget.getAttribute("data-index"));M(t),!0===A.current&&z(n),$(n),null==e||null==(r=e.onFocus)||r.call(e,t)},W=e=>t=>{var r;I(t),!1===A.current&&z(-1),$(-1),null==e||null==(r=e.onBlur)||r.call(e,t)};DK((()=>{var e;n&&L.current.contains(document.activeElement)&&(null==(e=document.activeElement)||e.blur())}),[n]),n&&-1!==w&&S(-1),n&&-1!==D&&z(-1);const q=e=>t=>{var r;null==(r=e.onChange)||r.call(e,t);const n=Number(t.currentTarget.getAttribute("data-index")),a=N[n],i=T.indexOf(a);let s=t.target.valueAsNumber;if(R&&null==v){const e=T[T.length-1];s=s>e?e:s<T[0]?T[0]:s<a?T[i-1]:T[i+1]}if(s=$Z(s,u,l),O){o&&(s=$Z(s,N[n-1]||-1/0,N[n+1]||1/0));const e=s;s=PZ({values:N,newValue:s,index:n});let t=n;o||(t=s.indexOf(e)),jZ({sliderRef:L,activeIndex:t})}P(s),z(n),j&&!OZ(s,C)&&j(t,s,n),f&&f(t,s)},K=a.useRef();let H=p;i&&"horizontal"===p&&(H+="-reverse");const G=({finger:e,move:t=!1})=>{const{current:r}=L,{width:n,height:a,bottom:i,left:s}=r.getBoundingClientRect();let c,d;if(c=0===H.indexOf("vertical")?(i-e.y)/a:(e.x-s)/n,-1!==H.indexOf("-reverse")&&(c=1-c),d=function(e,t,r){return(r-t)*e+t}(c,u,l),v)d=CZ(d,v,u);else{const e=kZ(T,d);d=T[e]}d=$Z(d,u,l);let f=0;if(O){f=t?K.current:kZ(N,d),o&&(d=$Z(d,N[f-1]||-1/0,N[f+1]||1/0));const e=d;d=PZ({values:N,newValue:d,index:f}),o&&t||(f=d.indexOf(e),K.current=f)}return{newValue:d,activeIndex:f}},Q=UK((e=>{const t=_Z(e,b);if(!t)return;if(E.current+=1,"mousemove"===e.type&&0===e.buttons)return void X(e);const{newValue:r,activeIndex:n}=G({finger:t,move:!0});jZ({sliderRef:L,activeIndex:n,setActive:S}),P(r),!k&&E.current>2&&_(!0),j&&!OZ(r,C)&&j(e,r,n)})),X=UK((e=>{const t=_Z(e,b);if(_(!1),!t)return;const{newValue:r}=G({finger:t,move:!0});S(-1),"touchend"===e.type&&$(-1),f&&f(e,r),b.current=void 0,J()})),Y=UK((e=>{if(n)return;AZ()||e.preventDefault();const t=e.changedTouches[0];null!=t&&(b.current=t.identifier);const r=_Z(e,b);if(!1!==r){const{newValue:t,activeIndex:n}=G({finger:r});jZ({sliderRef:L,activeIndex:n,setActive:S}),P(t),j&&!OZ(t,C)&&j(e,t,n)}E.current=0;const o=IK(L.current);o.addEventListener("touchmove",Q),o.addEventListener("touchend",X)})),J=a.useCallback((()=>{const e=IK(L.current);e.removeEventListener("mousemove",Q),e.removeEventListener("mouseup",X),e.removeEventListener("touchmove",Q),e.removeEventListener("touchend",X)}),[X,Q]);a.useEffect((()=>{const{current:e}=L;return e.addEventListener("touchstart",Y,{passive:AZ()}),()=>{e.removeEventListener("touchstart",Y,{passive:AZ()}),J()}}),[J,Y]),a.useEffect((()=>{n&&J()}),[n,J]);const Z=e=>t=>{var r;if(null==(r=e.onMouseDown)||r.call(e,t),n)return;if(t.defaultPrevented)return;if(0!==t.button)return;t.preventDefault();const o=_Z(t,b);if(!1!==o){const{newValue:e,activeIndex:r}=G({finger:o});jZ({sliderRef:L,activeIndex:r,setActive:S}),P(e),j&&!OZ(e,C)&&j(t,e,r)}E.current=0;const a=IK(L.current);a.addEventListener("mousemove",Q),a.addEventListener("mouseup",X)},ee=EZ(O?N[0]:u,u,l),te=EZ(N[N.length-1],u,l)-ee,re=e=>t=>{var r;null==(r=e.onMouseOver)||r.call(e,t);const n=Number(t.currentTarget.getAttribute("data-index"));$(n)},ne=e=>t=>{var r;null==(r=e.onMouseLeave)||r.call(e,t),$(-1)};return{active:w,axis:H,axisProps:NZ,dragging:k,focusedThumbIndex:D,getHiddenInputProps:(r={})=>{var o;const a=EK({},r,{onChange:q(r||{}),onFocus:U(r||{}),onBlur:W(r||{})});return EK({tabIndex:y,"aria-labelledby":t,"aria-orientation":p,"aria-valuemax":h(l),"aria-valuemin":h(u),name:c,type:"range",min:e.min,max:e.max,step:null===e.step&&e.marks?"any":null!=(o=e.step)?o:void 0,disabled:n},a,{style:EK({},tH,{direction:i?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:(e={})=>{const t=EK({},e,{onMouseDown:Z(e||{})});return EK({ref:V},t)},getThumbProps:(e={})=>EK({},e,{onMouseOver:re(e||{}),onMouseLeave:ne(e||{})}),marks:R,open:x,range:O,rootRef:V,trackLeap:te,trackOffset:ee,values:N,getThumbStyle:e=>({pointerEvents:-1!==w&&w!==e?"none":void 0})}}const MZ=["onChange","maxRows","minRows","style","value"];function FZ(e){return parseInt(e,10)||0}const DZ={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function zZ(e){return null==e||0===Object.keys(e).length||0===e.outerHeightStyle&&!e.overflow}const LZ=a.forwardRef((function(e,t){const{onChange:r,maxRows:n,minRows:o=1,style:i,value:s}=e,l=uH(e,MZ),{current:u}=a.useRef(null!=s),c=a.useRef(null),d=WK(t,c),f=a.useRef(null),p=a.useRef(0),[m,h]=a.useState({outerHeightStyle:0}),v=a.useCallback((()=>{const t=c.current,r=MK(t).getComputedStyle(t);if("0px"===r.width)return{outerHeightStyle:0};const a=f.current;a.style.width=r.width,a.value=t.value||e.placeholder||"x","\n"===a.value.slice(-1)&&(a.value+=" ");const i=r.boxSizing,s=FZ(r.paddingBottom)+FZ(r.paddingTop),l=FZ(r.borderBottomWidth)+FZ(r.borderTopWidth),u=a.scrollHeight;a.value="x";const d=a.scrollHeight;let p=u;o&&(p=Math.max(Number(o)*d,p)),n&&(p=Math.min(Number(n)*d,p)),p=Math.max(p,d);return{outerHeightStyle:p+("border-box"===i?s+l:0),overflow:Math.abs(p-u)<=1}}),[n,o,e.placeholder]),y=(e,t)=>{const{outerHeightStyle:r,overflow:n}=t;return p.current<20&&(r>0&&Math.abs((e.outerHeightStyle||0)-r)>1||e.overflow!==n)?(p.current+=1,{overflow:n,outerHeightStyle:r}):e},g=a.useCallback((()=>{const e=v();zZ(e)||h((t=>y(t,e)))}),[v]);a.useEffect((()=>{const e=TK((()=>{p.current=0,c.current&&(()=>{const e=v();zZ(e)||W.flushSync((()=>{h((t=>y(t,e)))}))})()}));let t;const r=c.current,n=MK(r);return n.addEventListener("resize",e),"undefined"!=typeof ResizeObserver&&(t=new ResizeObserver(e),t.observe(r)),()=>{e.clear(),n.removeEventListener("resize",e),t&&t.disconnect()}})),DK((()=>{g()})),a.useEffect((()=>{p.current=0}),[s]);return SO.jsxs(a.Fragment,{children:[SO.jsx("textarea",EK({value:s,onChange:e=>{p.current=0,u||g(),r&&r(e)},ref:d,rows:o,style:EK({height:m.outerHeightStyle,overflow:m.overflow?"hidden":void 0},i)},l)),SO.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:f,tabIndex:-1,style:EK({},DZ,i,{paddingTop:0,paddingBottom:0})})]})}));function BZ({props:e,states:t,muiFormControl:r}){return t.reduce(((t,n)=>(t[n]=e[n],r&&void 0===e[n]&&(t[n]=r[n]),t)),{})}var VZ=a.createContext(void 0);function UZ(){return a.useContext(VZ)}function WZ(e){return SO.jsx($X,EK({},e,{defaultTheme:CY,themeId:PY}))}function qZ(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function KZ(e,t=!1){return e&&(qZ(e.value)&&""!==e.value||t&&qZ(e.defaultValue)&&""!==e.defaultValue)}function HZ(e){return sH("MuiInputBase",e)}var GZ=lH("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);const QZ=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],XZ=(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,"small"===r.size&&t.sizeSmall,r.multiline&&t.multiline,r.color&&t[`color${NK(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},YZ=(e,t)=>{const{ownerState:r}=e;return[t.input,"small"===r.size&&t.inputSizeSmall,r.multiline&&t.inputMultiline,"search"===r.type&&t.inputTypeSearch,r.startAdornment&&t.inputAdornedStart,r.endAdornment&&t.inputAdornedEnd,r.hiddenLabel&&t.inputHiddenLabel]},JZ=RY("div",{name:"MuiInputBase",slot:"Root",overridesResolver:XZ})((({theme:e,ownerState:t})=>EK({},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",[`&.${GZ.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&EK({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),ZZ=RY("input",{name:"MuiInputBase",slot:"Input",overridesResolver:YZ})((({theme:e,ownerState:t})=>{const r="light"===e.palette.mode,n=EK({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},a=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5};return EK({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%",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":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${GZ.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},[`&.${GZ.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},"small"===t.size&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},"search"===t.type&&{MozAppearance:"textfield"})})),e0=SO.jsx(WZ,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),t0=a.forwardRef((function(e,t){var r;const n=jY({props:e,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:i,autoFocus:s,className:l,components:u={},componentsProps:c={},defaultValue:d,disabled:f,disableInjectingGlobalStyles:p,endAdornment:m,fullWidth:h=!1,id:v,inputComponent:y="input",inputProps:g={},inputRef:b,maxRows:w,minRows:S,multiline:x=!1,name:$,onBlur:k,onChange:_,onClick:E,onFocus:C,onKeyDown:P,onKeyUp:j,placeholder:O,readOnly:N,renderSuffix:R,rows:T,slotProps:A={},slots:I={},startAdornment:M,type:F="text",value:D}=n,z=uH(n,QZ),L=null!=g.value?g.value:D,{current:B}=a.useRef(null!=L),V=a.useRef(),U=a.useCallback((e=>{}),[]),W=WK(V,b,g.ref,U),[q,K]=a.useState(!1),H=UZ(),G=BZ({props:n,muiFormControl:H,states:["color","disabled","error","hiddenLabel","size","required","filled"]});G.focused=H?H.focused:q,a.useEffect((()=>{!H&&f&&q&&(K(!1),k&&k())}),[H,f,q,k]);const Q=H&&H.onFilled,X=H&&H.onEmpty,Y=a.useCallback((e=>{KZ(e)?Q&&Q():X&&X()}),[Q,X]);DK((()=>{B&&Y({value:L})}),[L,Y,B]);a.useEffect((()=>{Y(V.current)}),[]);let J=y,Z=g;x&&"input"===J&&(Z=EK(T?{type:void 0,minRows:T,maxRows:T}:{type:void 0,maxRows:w,minRows:S},Z),J=LZ);a.useEffect((()=>{H&&H.setAdornedStart(Boolean(M))}),[H,M]);const ee=EK({},n,{color:G.color||"primary",disabled:G.disabled,endAdornment:m,error:G.error,focused:G.focused,formControl:H,fullWidth:h,hiddenLabel:G.hiddenLabel,multiline:x,size:G.size,startAdornment:M,type:F}),te=(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:m}=e;return nH({root:["root",`color${NK(r)}`,n&&"disabled",o&&"error",l&&"fullWidth",i&&"focused",s&&"formControl","small"===f&&"sizeSmall",c&&"multiline",p&&"adornedStart",a&&"adornedEnd",u&&"hiddenLabel",d&&"readOnly"],input:["input",n&&"disabled","search"===m&&"inputTypeSearch",c&&"inputMultiline","small"===f&&"inputSizeSmall",u&&"inputHiddenLabel",p&&"inputAdornedStart",a&&"inputAdornedEnd",d&&"readOnly"]},HZ,t)})(ee),re=I.root||u.Root||JZ,ne=A.root||c.root||{},oe=I.input||u.Input||ZZ;return Z=EK({},Z,null!=(r=A.input)?r:c.input),SO.jsxs(a.Fragment,{children:[!p&&e0,SO.jsxs(re,EK({},ne,!aZ(re)&&{ownerState:EK({},ee,ne.ownerState)},{ref:t,onClick:e=>{V.current&&e.currentTarget===e.target&&V.current.focus(),E&&E(e)}},z,{className:dH(te.root,ne.className,l,N&&"MuiInputBase-readOnly"),children:[M,SO.jsx(VZ.Provider,{value:null,children:SO.jsx(oe,EK({ownerState:ee,"aria-invalid":G.error,"aria-describedby":o,autoComplete:i,autoFocus:s,defaultValue:d,disabled:G.disabled,id:v,onAnimationStart:e=>{Y("mui-auto-fill-cancel"===e.animationName?V.current:{value:"x"})},name:$,placeholder:O,readOnly:N,required:G.required,rows:T,value:L,onKeyDown:P,onKeyUp:j,type:F},Z,!aZ(oe)&&{as:J,ownerState:EK({},ee,Z.ownerState)},{ref:W,className:dH(te.input,Z.className,N&&"MuiInputBase-readOnly"),onBlur:e=>{k&&k(e),g.onBlur&&g.onBlur(e),H&&H.onBlur?H.onBlur(e):K(!1)},onChange:(e,...t)=>{if(!B){const t=e.target||V.current;if(null==t)throw new Error(OK(1));Y({value:t.value})}g.onChange&&g.onChange(e,...t),_&&_(e,...t)},onFocus:e=>{G.disabled?e.stopPropagation():(C&&C(e),g.onFocus&&g.onFocus(e),H&&H.onFocus?H.onFocus(e):K(!0))}}))}),m,R?R(EK({},G,{startAdornment:M})):null]}))]})}));var r0=t0;function n0(e){return sH("MuiInput",e)}var o0=EK({},GZ,lH("MuiInput",["root","underline","input"]));const a0=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],i0=RY(JZ,{shouldForwardProp:e=>OY(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...XZ(e,t),!r.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{let r="light"===e.palette.mode?"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})`),EK({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,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"},[`&.${o0.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${o0.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(.${o0.disabled}, .${o0.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${o0.disabled}:before`]:{borderBottomStyle:"dotted"}})})),s0=RY(ZZ,{name:"MuiInput",slot:"Input",overridesResolver:YZ})({}),l0=a.forwardRef((function(e,t){var r,n,o,a;const i=jY({props:e,name:"MuiInput"}),{disableUnderline:s,components:l={},componentsProps:u,fullWidth:c=!1,inputComponent:d="input",multiline:f=!1,slotProps:p,slots:m={},type:h="text"}=i,v=uH(i,a0),y=(e=>{const{classes:t,disableUnderline:r}=e;return EK({},t,nH({root:["root",!r&&"underline"],input:["input"]},n0,t))})(i),g={root:{ownerState:{disableUnderline:s}}},b=(null!=p?p:u)?jK(null!=p?p:u,g):g,w=null!=(r=null!=(n=m.root)?n:l.Root)?r:i0,S=null!=(o=null!=(a=m.input)?a:l.Input)?o:s0;return SO.jsx(r0,EK({slots:{root:w,input:S},slotProps:b,fullWidth:c,inputComponent:d,multiline:f,ref:t,type:h},v,{classes:y}))}));l0.muiName="Input";var u0=l0;function c0(e){return sH("MuiFilledInput",e)}var d0=EK({},GZ,lH("MuiFilledInput",["root","underline","input"]));const f0=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],p0=RY(JZ,{shouldForwardProp:e=>OY(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...XZ(e,t),!r.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{var r;const n="light"===e.palette.mode,o=n?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",a=n?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",i=n?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=n?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return EK({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a,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:i,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a}},[`&.${d0.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a},[`&.${d0.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${null==(r=(e.vars||e).palette[t.color||"primary"])?void 0:r.main}`,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"},[`&.${d0.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${d0.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})`:o}`,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(.${d0.disabled}, .${d0.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${d0.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&EK({padding:"25px 12px 8px"},"small"===t.size&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17}))})),m0=RY(ZZ,{name:"MuiFilledInput",slot:"Input",overridesResolver:YZ})((({theme:e,ownerState:t})=>EK({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?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"}}},"small"===t.size&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&"small"===t.size&&{paddingTop:8,paddingBottom:9}))),h0=a.forwardRef((function(e,t){var r,n,o,a;const i=jY({props:e,name:"MuiFilledInput"}),{components:s={},componentsProps:l,fullWidth:u=!1,inputComponent:c="input",multiline:d=!1,slotProps:f,slots:p={},type:m="text"}=i,h=uH(i,f0),v=EK({},i,{fullWidth:u,inputComponent:c,multiline:d,type:m}),y=(e=>{const{classes:t,disableUnderline:r}=e;return EK({},t,nH({root:["root",!r&&"underline"],input:["input"]},c0,t))})(i),g={root:{ownerState:v},input:{ownerState:v}},b=(null!=f?f:l)?jK(null!=f?f:l,g):g,w=null!=(r=null!=(n=p.root)?n:s.Root)?r:p0,S=null!=(o=null!=(a=p.input)?a:s.Input)?o:m0;return SO.jsx(r0,EK({slots:{root:w,input:S},componentsProps:b,fullWidth:u,inputComponent:c,multiline:d,ref:t,type:m},h,{classes:y}))}));h0.muiName="Input";var v0,y0=h0;const g0=["children","classes","className","label","notched"],b0=RY("fieldset")({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%"}),w0=RY("legend")((({ownerState:e,theme:t})=>EK({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&EK({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})}))));function S0(e){return sH("MuiOutlinedInput",e)}var x0=EK({},GZ,lH("MuiOutlinedInput",["root","notchedOutline","input"]));const $0=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],k0=RY(JZ,{shouldForwardProp:e=>OY(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:XZ})((({theme:e,ownerState:t})=>{const r="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return EK({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${x0.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${x0.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:r}},[`&.${x0.focused} .${x0.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${x0.error} .${x0.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${x0.disabled} .${x0.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&EK({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))})),_0=RY((function(e){const{className:t,label:r,notched:n}=e,o=uH(e,g0),a=null!=r&&""!==r,i=EK({},e,{notched:n,withLabel:a});return SO.jsx(b0,EK({"aria-hidden":!0,className:t,ownerState:i},o,{children:SO.jsx(w0,{ownerState:i,children:a?SO.jsx("span",{children:r}):v0||(v0=SO.jsx("span",{className:"notranslate",children:""}))})}))}),{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})((({theme:e})=>{const t="light"===e.palette.mode?"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}})),E0=RY(ZZ,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:YZ})((({theme:e,ownerState:t})=>EK({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?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"}}},"small"===t.size&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0}))),C0=a.forwardRef((function(e,t){var r,n,o,i,s;const l=jY({props:e,name:"MuiOutlinedInput"}),{components:u={},fullWidth:c=!1,inputComponent:d="input",label:f,multiline:p=!1,notched:m,slots:h={},type:v="text"}=l,y=uH(l,$0),g=(e=>{const{classes:t}=e;return EK({},t,nH({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},S0,t))})(l),b=UZ(),w=BZ({props:l,muiFormControl:b,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),S=EK({},l,{color:w.color||"primary",disabled:w.disabled,error:w.error,focused:w.focused,formControl:b,fullWidth:c,hiddenLabel:w.hiddenLabel,multiline:p,size:w.size,type:v}),x=null!=(r=null!=(n=h.root)?n:u.Root)?r:k0,$=null!=(o=null!=(i=h.input)?i:u.Input)?o:E0;return SO.jsx(r0,EK({slots:{root:x,input:$},renderSuffix:e=>SO.jsx(_0,{ownerState:S,className:g.notchedOutline,label:null!=f&&""!==f&&w.required?s||(s=SO.jsxs(a.Fragment,{children:[f," ","*"]})):f,notched:void 0!==m?m:Boolean(e.startAdornment||e.filled||e.focused)}),fullWidth:c,inputComponent:d,multiline:p,ref:t,type:v},y,{classes:EK({},g,{notchedOutline:null})}))}));C0.muiName="Input";var P0=C0;function j0(e){return sH("MuiFormLabel",e)}var O0=lH("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]);const N0=["children","className","color","component","disabled","error","filled","focused","required"],R0=RY("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>EK({},t.root,"secondary"===e.color&&t.colorSecondary,e.filled&&t.filled)})((({theme:e,ownerState:t})=>EK({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${O0.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${O0.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${O0.error}`]:{color:(e.vars||e).palette.error.main}}))),T0=RY("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})((({theme:e})=>({[`&.${O0.error}`]:{color:(e.vars||e).palette.error.main}}))),A0=a.forwardRef((function(e,t){const r=jY({props:e,name:"MuiFormLabel"}),{children:n,className:o,component:a="label"}=r,i=uH(r,N0),s=BZ({props:r,muiFormControl:UZ(),states:["color","required","focused","disabled","error","filled"]}),l=EK({},r,{color:s.color||"primary",component:a,disabled:s.disabled,error:s.error,filled:s.filled,focused:s.focused,required:s.required}),u=(e=>{const{classes:t,color:r,focused:n,disabled:o,error:a,filled:i,required:s}=e;return nH({root:["root",`color${NK(r)}`,o&&"disabled",a&&"error",i&&"filled",n&&"focused",s&&"required"],asterisk:["asterisk",a&&"error"]},j0,t)})(l);return SO.jsxs(R0,EK({as:a,ownerState:l,className:dH(u.root,o),ref:t},i,{children:[n,s.required&&SO.jsxs(T0,{ownerState:l,"aria-hidden":!0,className:u.asterisk,children:[" ","*"]})]}))}));var I0=A0;function M0(e){return sH("MuiInputLabel",e)}lH("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const F0=["disableAnimation","margin","shrink","variant","className"],D0=RY(I0,{shouldForwardProp:e=>OY(e)||"classes"===e,name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${O0.asterisk}`]:t.asterisk},t.root,r.formControl&&t.formControl,"small"===r.size&&t.sizeSmall,r.shrink&&t.shrink,!r.disableAnimation&&t.animated,t[r.variant]]}})((({theme:e,ownerState:t})=>EK({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},"small"===t.size&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},"filled"===t.variant&&EK({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===t.size&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&EK({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},"small"===t.size&&{transform:"translate(12px, 4px) scale(0.75)"})),"outlined"===t.variant&&EK({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===t.size&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"})))),z0=a.forwardRef((function(e,t){const r=jY({name:"MuiInputLabel",props:e}),{disableAnimation:n=!1,shrink:o,className:a}=r,i=uH(r,F0),s=UZ();let l=o;void 0===l&&s&&(l=s.filled||s.focused||s.adornedStart);const u=BZ({props:r,muiFormControl:s,states:["size","variant","required"]}),c=EK({},r,{disableAnimation:n,formControl:s,shrink:l,size:u.size,variant:u.variant,required:u.required}),d=(e=>{const{classes:t,formControl:r,size:n,shrink:o,disableAnimation:a,variant:i,required:s}=e;return EK({},t,nH({root:["root",r&&"formControl",!a&&"animated",o&&"shrink","small"===n&&"sizeSmall",i],asterisk:[s&&"asterisk"]},M0,t))})(c);return SO.jsx(D0,EK({"data-shrink":l,ownerState:c,ref:t,className:dH(d.root,a)},i,{classes:d}))}));var L0=z0;function B0(e){return sH("MuiFormControl",e)}lH("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const V0=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],U0=RY("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>EK({},t.root,t[`margin${NK(e.margin)}`],e.fullWidth&&t.fullWidth)})((({ownerState:e})=>EK({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},"normal"===e.margin&&{marginTop:16,marginBottom:8},"dense"===e.margin&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"}))),W0=a.forwardRef((function(e,t){const r=jY({props:e,name:"MuiFormControl"}),{children:n,className:o,color:i="primary",component:s="div",disabled:l=!1,error:u=!1,focused:c,fullWidth:d=!1,hiddenLabel:f=!1,margin:p="none",required:m=!1,size:h="medium",variant:v="outlined"}=r,y=uH(r,V0),g=EK({},r,{color:i,component:s,disabled:l,error:u,fullWidth:d,hiddenLabel:f,margin:p,required:m,size:h,variant:v}),b=(e=>{const{classes:t,margin:r,fullWidth:n}=e;return nH({root:["root","none"!==r&&`margin${NK(r)}`,n&&"fullWidth"]},B0,t)})(g),[w,S]=a.useState((()=>{let e=!1;return n&&a.Children.forEach(n,(t=>{if(!AK(t,["Input","Select"]))return;const r=AK(t,["Select"])?t.props.input:t;r&&r.props.startAdornment&&(e=!0)})),e})),[x,$]=a.useState((()=>{let e=!1;return n&&a.Children.forEach(n,(t=>{AK(t,["Input","Select"])&&(KZ(t.props,!0)||KZ(t.props.inputProps,!0))&&(e=!0)})),e})),[k,_]=a.useState(!1);l&&k&&_(!1);const E=void 0===c||l?k:c;let C;const P=a.useMemo((()=>({adornedStart:w,setAdornedStart:S,color:i,disabled:l,error:u,filled:x,focused:E,fullWidth:d,hiddenLabel:f,size:h,onBlur:()=>{_(!1)},onEmpty:()=>{$(!1)},onFilled:()=>{$(!0)},onFocus:()=>{_(!0)},registerEffect:C,required:m,variant:v})),[w,i,l,u,x,E,d,f,C,m,h,v]);return SO.jsx(VZ.Provider,{value:P,children:SO.jsx(U0,EK({as:s,ownerState:g,className:dH(b.root,o),ref:t},y,{children:n}))})}));var q0=W0;function K0(e){return sH("MuiFormHelperText",e)}var H0,G0=lH("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);const Q0=["children","className","component","disabled","error","filled","focused","margin","required","variant"],X0=RY("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.size&&t[`size${NK(r.size)}`],r.contained&&t.contained,r.filled&&t.filled]}})((({theme:e,ownerState:t})=>EK({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${G0.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${G0.error}`]:{color:(e.vars||e).palette.error.main}},"small"===t.size&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14}))),Y0=a.forwardRef((function(e,t){const r=jY({props:e,name:"MuiFormHelperText"}),{children:n,className:o,component:a="p"}=r,i=uH(r,Q0),s=BZ({props:r,muiFormControl:UZ(),states:["variant","size","disabled","error","filled","focused","required"]}),l=EK({},r,{component:a,contained:"filled"===s.variant||"outlined"===s.variant,variant:s.variant,size:s.size,disabled:s.disabled,error:s.error,filled:s.filled,focused:s.focused,required:s.required}),u=(e=>{const{classes:t,contained:r,size:n,disabled:o,error:a,filled:i,focused:s,required:l}=e;return nH({root:["root",o&&"disabled",a&&"error",n&&`size${NK(n)}`,r&&"contained",s&&"focused",i&&"filled",l&&"required"]},K0,t)})(l);return SO.jsx(X0,EK({as:a,ownerState:l,className:dH(u.root,o),ref:t},i,{children:" "===n?H0||(H0=SO.jsx("span",{className:"notranslate",children:""})):n}))}));var J0=Y0;var Z0=a.createContext({});function e1(e){return sH("MuiList",e)}lH("MuiList",["root","padding","dense","subheader"]);const t1=["children","className","component","dense","disablePadding","subheader"],r1=RY("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]}})((({ownerState:e})=>EK({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0}))),n1=a.forwardRef((function(e,t){const r=jY({props:e,name:"MuiList"}),{children:n,className:o,component:i="ul",dense:s=!1,disablePadding:l=!1,subheader:u}=r,c=uH(r,t1),d=a.useMemo((()=>({dense:s})),[s]),f=EK({},r,{component:i,dense:s,disablePadding:l}),p=(e=>{const{classes:t,disablePadding:r,dense:n,subheader:o}=e;return nH({root:["root",!r&&"padding",n&&"dense",o&&"subheader"]},e1,t)})(f);return SO.jsx(Z0.Provider,{value:d,children:SO.jsxs(r1,EK({as:i,className:dH(p.root,o),ref:t,ownerState:f},c,{children:[u,n]}))})}));var o1=n1;const a1=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function i1(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function s1(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function l1(e,t){if(void 0===t)return!0;let r=e.innerText;return void 0===r&&(r=e.textContent),r=r.trim().toLowerCase(),0!==r.length&&(t.repeating?r[0]===t.keys[0]:0===r.indexOf(t.keys.join("")))}function u1(e,t,r,n,o,a){let i=!1,s=o(e,t,!!t&&r);for(;s;){if(s===e.firstChild){if(i)return!1;i=!0}const t=!n&&(s.disabled||"true"===s.getAttribute("aria-disabled"));if(s.hasAttribute("tabindex")&&l1(s,a)&&!t)return s.focus(),!0;s=o(e,s,r)}return!1}const c1=a.forwardRef((function(e,t){const{actions:r,autoFocus:n=!1,autoFocusItem:o=!1,children:i,className:s,disabledItemsFocusable:l=!1,disableListWrap:u=!1,onKeyDown:c,variant:d="selectedMenu"}=e,f=uH(e,a1),p=a.useRef(null),m=a.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});DK((()=>{n&&p.current.focus()}),[n]),a.useImperativeHandle(r,(()=>({adjustStyleForScrollbar:(e,t)=>{const r=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&r){const r=`${eH(IK(e))}px`;p.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=r,p.current.style.width=`calc(100% + ${r})`}return p.current}})),[]);const h=WK(p,t);let v=-1;a.Children.forEach(i,((e,t)=>{a.isValidElement(e)?(e.props.disabled||("selectedMenu"===d&&e.props.selected||-1===v)&&(v=t),v===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(v+=1,v>=i.length&&(v=-1))):v===t&&(v+=1,v>=i.length&&(v=-1))}));const y=a.Children.map(i,((e,t)=>{if(t===v){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===d&&(t.tabIndex=0),a.cloneElement(e,t)}return e}));return SO.jsx(o1,EK({role:"menu",ref:h,className:s,onKeyDown:e=>{const t=p.current,r=e.key,n=IK(t).activeElement;if("ArrowDown"===r)e.preventDefault(),u1(t,n,u,l,i1);else if("ArrowUp"===r)e.preventDefault(),u1(t,n,u,l,s1);else if("Home"===r)e.preventDefault(),u1(t,null,u,l,i1);else if("End"===r)e.preventDefault(),u1(t,null,u,l,s1);else if(1===r.length){const o=m.current,a=r.toLowerCase(),i=performance.now();o.keys.length>0&&(i-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&a!==o.keys[0]&&(o.repeating=!1)),o.lastTime=i,o.keys.push(a);const s=n&&!o.repeating&&l1(n,o);o.previousKeyMatched&&(s||u1(t,n,!1,l,i1,o))?e.preventDefault():o.previousKeyMatched=!1}c&&c(e)},tabIndex:n?0:-1},f,{children:y}))}));var d1=c1;const f1=e=>e.scrollTop;function p1(e,t){var r,n;const{timeout:o,easing:a,style:i={}}=e;return{duration:null!=(r=i.transitionDuration)?r:"number"==typeof o?o:o[t.mode]||0,easing:null!=(n=i.transitionTimingFunction)?n:"object"==typeof a?a[t.mode]:a,delay:i.transitionDelay}}const m1=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function h1(e){return`scale(${e}, ${e**2})`}const v1={entering:{opacity:1,transform:h1(1)},entered:{opacity:1,transform:"none"}},y1="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),g1=a.forwardRef((function(e,t){const{addEndListener:r,appear:n=!0,children:o,easing:i,in:s,onEnter:l,onEntered:u,onEntering:c,onExit:d,onExited:f,onExiting:p,style:m,timeout:h="auto",TransitionComponent:v=aJ}=e,y=uH(e,m1),g=a.useRef(),b=a.useRef(),w=DJ(),S=a.useRef(null),x=WK(S,o.ref,t),$=e=>t=>{if(e){const r=S.current;void 0===t?e(r):e(r,t)}},k=$(c),_=$(((e,t)=>{f1(e);const{duration:r,delay:n,easing:o}=p1({style:m,timeout:h,easing:i},{mode:"enter"});let a;"auto"===h?(a=w.transitions.getAutoHeightDuration(e.clientHeight),b.current=a):a=r,e.style.transition=[w.transitions.create("opacity",{duration:a,delay:n}),w.transitions.create("transform",{duration:y1?a:.666*a,delay:n,easing:o})].join(","),l&&l(e,t)})),E=$(u),C=$(p),P=$((e=>{const{duration:t,delay:r,easing:n}=p1({style:m,timeout:h,easing:i},{mode:"exit"});let o;"auto"===h?(o=w.transitions.getAutoHeightDuration(e.clientHeight),b.current=o):o=t,e.style.transition=[w.transitions.create("opacity",{duration:o,delay:r}),w.transitions.create("transform",{duration:y1?o:.666*o,delay:y1?r:r||.333*o,easing:n})].join(","),e.style.opacity=0,e.style.transform=h1(.75),d&&d(e)})),j=$(f);return a.useEffect((()=>()=>{clearTimeout(g.current)}),[]),SO.jsx(v,EK({appear:n,in:s,nodeRef:S,onEnter:_,onEntered:E,onEntering:k,onExit:P,onExited:j,onExiting:C,addEndListener:e=>{"auto"===h&&(g.current=setTimeout(e,b.current||0)),r&&r(S.current,e)},timeout:"auto"===h?null:h},y,{children:(e,t)=>a.cloneElement(o,EK({style:EK({opacity:0,transform:h1(.75),visibility:"exited"!==e||s?void 0:"hidden"},v1[e],m,o.props.style),ref:x},t))}))}));g1.muiSupportAuto=!0;var b1=g1;const w1=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],S1={entering:{opacity:1},entered:{opacity:1}},x1=a.forwardRef((function(e,t){const r=DJ(),n={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:s,easing:l,in:u,onEnter:c,onEntered:d,onEntering:f,onExit:p,onExited:m,onExiting:h,style:v,timeout:y=n,TransitionComponent:g=aJ}=e,b=uH(e,w1),w=a.useRef(null),S=WK(w,s.ref,t),x=e=>t=>{if(e){const r=w.current;void 0===t?e(r):e(r,t)}},$=x(f),k=x(((e,t)=>{f1(e);const n=p1({style:v,timeout:y,easing:l},{mode:"enter"});e.style.webkitTransition=r.transitions.create("opacity",n),e.style.transition=r.transitions.create("opacity",n),c&&c(e,t)})),_=x(d),E=x(h),C=x((e=>{const t=p1({style:v,timeout:y,easing:l},{mode:"exit"});e.style.webkitTransition=r.transitions.create("opacity",t),e.style.transition=r.transitions.create("opacity",t),p&&p(e)})),P=x(m);return SO.jsx(g,EK({appear:i,in:u,nodeRef:w,onEnter:k,onEntered:_,onEntering:$,onExit:C,onExited:P,onExiting:E,addEndListener:e=>{o&&o(w.current,e)},timeout:y},b,{children:(e,t)=>a.cloneElement(s,EK({style:EK({opacity:0,visibility:"exited"!==e||u?void 0:"hidden"},S1[e],v,s.props.style),ref:S},t))}))}));var $1=x1;function k1(e){return sH("MuiBackdrop",e)}lH("MuiBackdrop",["root","invisible"]);const _1=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],E1=RY("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})((({ownerState:e})=>EK({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"},e.invisible&&{backgroundColor:"transparent"}))),C1=a.forwardRef((function(e,t){var r,n,o;const a=jY({props:e,name:"MuiBackdrop"}),{children:i,className:s,component:l="div",components:u={},componentsProps:c={},invisible:d=!1,open:f,slotProps:p={},slots:m={},TransitionComponent:h=$1,transitionDuration:v}=a,y=uH(a,_1),g=EK({},a,{component:l,invisible:d}),b=(e=>{const{classes:t,invisible:r}=e;return nH({root:["root",r&&"invisible"]},k1,t)})(g),w=null!=(r=p.root)?r:c.root;return SO.jsx(h,EK({in:f,timeout:v},y,{children:SO.jsx(E1,EK({"aria-hidden":!0},w,{as:null!=(n=null!=(o=m.root)?o:u.Root)?n:l,className:dH(b.root,s,null==w?void 0:w.className),ownerState:EK({},g,null==w?void 0:w.ownerState),classes:b,ref:t,children:i}))}))}));var P1=C1;function j1(e){return sH("MuiModal",e)}lH("MuiModal",["root","hidden","backdrop"]);const O1=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","open","slotProps","slots","theme"],N1=RY("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})((({theme:e,ownerState:t})=>EK({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),R1=RY(P1,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),T1=a.forwardRef((function(e,t){var r,n,o,i,s,l;const u=jY({name:"MuiModal",props:e}),{BackdropComponent:c=R1,BackdropProps:d,className:f,closeAfterTransition:p=!1,children:m,container:h,component:v,components:y={},componentsProps:g={},disableAutoFocus:b=!1,disableEnforceFocus:w=!1,disableEscapeKeyDown:S=!1,disablePortal:x=!1,disableRestoreFocus:$=!1,disableScrollLock:k=!1,hideBackdrop:_=!1,keepMounted:E=!1,onBackdropClick:C,open:P,slotProps:j,slots:O}=u,N=uH(u,O1),R=EK({},u,{closeAfterTransition:p,disableAutoFocus:b,disableEnforceFocus:w,disableEscapeKeyDown:S,disablePortal:x,disableRestoreFocus:$,disableScrollLock:k,hideBackdrop:_,keepMounted:E}),{getRootProps:T,getBackdropProps:A,getTransitionProps:I,portalRef:M,isTopModal:F,exited:D,hasTransition:z}=SZ(EK({},R,{rootRef:t})),L=EK({},R,{exited:D}),B=(e=>{const{open:t,exited:r,classes:n}=e;return nH({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},j1,n)})(L),V={};if(void 0===m.props.tabIndex&&(V.tabIndex="-1"),z){const{onEnter:e,onExited:t}=I();V.onEnter=e,V.onExited=t}const U=null!=(r=null!=(n=null==O?void 0:O.root)?n:y.Root)?r:N1,W=null!=(o=null!=(i=null==O?void 0:O.backdrop)?i:y.Backdrop)?o:c,q=null!=(s=null==j?void 0:j.root)?s:g.root,K=null!=(l=null==j?void 0:j.backdrop)?l:g.backdrop,H=uZ({elementType:U,externalSlotProps:q,externalForwardedProps:N,getSlotProps:T,additionalProps:{ref:t,as:v},ownerState:L,className:dH(f,null==q?void 0:q.className,null==B?void 0:B.root,!L.open&&L.exited&&(null==B?void 0:B.hidden))}),G=uZ({elementType:W,externalSlotProps:K,additionalProps:d,getSlotProps:e=>A(EK({},e,{onClick:t=>{C&&C(t),null!=e&&e.onClick&&e.onClick(t)}})),className:dH(null==K?void 0:K.className,null==d?void 0:d.className,null==B?void 0:B.backdrop),ownerState:L});return E||P||z&&!D?SO.jsx(mZ,{ref:M,container:h,disablePortal:x,children:SO.jsxs(U,EK({},H,{children:[!_&&c?SO.jsx(W,EK({},G)):null,SO.jsx(pZ,{disableEnforceFocus:w,disableAutoFocus:b,disableRestoreFocus:$,isEnabled:F,open:P,children:a.cloneElement(m,V)})]}))}):null}));var A1=T1;function I1(e){return sH("MuiPopover",e)}lH("MuiPopover",["root","paper"]);const M1=["onEntering"],F1=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],D1=["slotProps"];function z1(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.height/2:"bottom"===t&&(r=e.height),r}function L1(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.width/2:"right"===t&&(r=e.width),r}function B1(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function V1(e){return"function"==typeof e?e():e}const U1=RY(A1,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),W1=RY(oZ,{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}),q1=a.forwardRef((function(e,t){var r,n,o;const i=jY({props:e,name:"MuiPopover"}),{action:s,anchorEl:l,anchorOrigin:u={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:d="anchorEl",children:f,className:p,container:m,elevation:h=8,marginThreshold:v=16,open:y,PaperProps:g={},slots:b,slotProps:w,transformOrigin:S={vertical:"top",horizontal:"left"},TransitionComponent:x=b1,transitionDuration:$="auto",TransitionProps:{onEntering:k}={},disableScrollLock:_=!1}=i,E=uH(i.TransitionProps,M1),C=uH(i,F1),P=null!=(r=null==w?void 0:w.paper)?r:g,j=a.useRef(),O=WK(j,P.ref),N=EK({},i,{anchorOrigin:u,anchorReference:d,elevation:h,marginThreshold:v,externalPaperSlotProps:P,transformOrigin:S,TransitionComponent:x,transitionDuration:$,TransitionProps:E}),R=(e=>{const{classes:t}=e;return nH({root:["root"],paper:["paper"]},I1,t)})(N),T=a.useCallback((()=>{if("anchorPosition"===d)return c;const e=V1(l),t=(e&&1===e.nodeType?e:IK(j.current).body).getBoundingClientRect();return{top:t.top+z1(t,u.vertical),left:t.left+L1(t,u.horizontal)}}),[l,u.horizontal,u.vertical,c,d]),A=a.useCallback((e=>({vertical:z1(e,S.vertical),horizontal:L1(e,S.horizontal)})),[S.horizontal,S.vertical]),I=a.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},r=A(t);if("none"===d)return{top:null,left:null,transformOrigin:B1(r)};const n=T();let o=n.top-r.vertical,a=n.left-r.horizontal;const i=o+t.height,s=a+t.width,u=MK(V1(l)),c=u.innerHeight-v,f=u.innerWidth-v;if(null!==v&&o<v){const e=o-v;o-=e,r.vertical+=e}else if(null!==v&&i>c){const e=i-c;o-=e,r.vertical+=e}if(null!==v&&a<v){const e=a-v;a-=e,r.horizontal+=e}else if(s>f){const e=s-f;a-=e,r.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(a)}px`,transformOrigin:B1(r)}}),[l,d,T,A,v]),[M,F]=a.useState(y),D=a.useCallback((()=>{const e=j.current;if(!e)return;const t=I(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,F(!0)}),[I]);a.useEffect((()=>(_&&window.addEventListener("scroll",D),()=>window.removeEventListener("scroll",D))),[l,_,D]);a.useEffect((()=>{y&&D()})),a.useImperativeHandle(s,(()=>y?{updatePosition:()=>{D()}}:null),[y,D]),a.useEffect((()=>{if(!y)return;const e=TK((()=>{D()})),t=MK(l);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[l,y,D]);let z=$;"auto"!==$||x.muiSupportAuto||(z=void 0);const L=m||(l?IK(V1(l)).body:void 0),B=null!=(n=null==b?void 0:b.root)?n:U1,V=null!=(o=null==b?void 0:b.paper)?o:W1,U=uZ({elementType:V,externalSlotProps:EK({},P,{style:M?P.style:EK({},P.style,{opacity:0})}),additionalProps:{elevation:h,ref:O},ownerState:N,className:dH(R.paper,null==P?void 0:P.className)}),W=uZ({elementType:B,externalSlotProps:(null==w?void 0:w.root)||{},externalForwardedProps:C,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:L,open:y},ownerState:N,className:dH(R.root,p)}),{slotProps:q}=W,K=uH(W,D1);return SO.jsx(B,EK({},K,!aZ(B)&&{slotProps:q,disableScrollLock:_},{children:SO.jsx(x,EK({appear:!0,in:y,onEntering:(e,t)=>{k&&k(e,t),D()},onExited:()=>{F(!1)},timeout:z},E,{children:SO.jsx(V,EK({},U,{children:f}))}))}))}));var K1=q1;function H1(e){return sH("MuiMenu",e)}lH("MuiMenu",["root","paper","list"]);const G1=["onEntering"],Q1=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],X1={vertical:"top",horizontal:"right"},Y1={vertical:"top",horizontal:"left"},J1=RY(K1,{shouldForwardProp:e=>OY(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Z1=RY(W1,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),e2=RY(d1,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),t2=a.forwardRef((function(e,t){var r,n;const o=jY({props:e,name:"MuiMenu"}),{autoFocus:i=!0,children:s,className:l,disableAutoFocusItem:u=!1,MenuListProps:c={},onClose:d,open:f,PaperProps:p={},PopoverClasses:m,transitionDuration:h="auto",TransitionProps:{onEntering:v}={},variant:y="selectedMenu",slots:g={},slotProps:b={}}=o,w=uH(o.TransitionProps,G1),S=uH(o,Q1),x=DJ(),$="rtl"===x.direction,k=EK({},o,{autoFocus:i,disableAutoFocusItem:u,MenuListProps:c,onEntering:v,PaperProps:p,transitionDuration:h,TransitionProps:w,variant:y}),_=(e=>{const{classes:t}=e;return nH({root:["root"],paper:["paper"],list:["list"]},H1,t)})(k),E=i&&!u&&f,C=a.useRef(null);let P=-1;a.Children.map(s,((e,t)=>{a.isValidElement(e)&&(e.props.disabled||("selectedMenu"===y&&e.props.selected||-1===P)&&(P=t))}));const j=null!=(r=g.paper)?r:Z1,O=null!=(n=b.paper)?n:p,N=uZ({elementType:g.root,externalSlotProps:b.root,ownerState:k,className:[_.root,l]}),R=uZ({elementType:j,externalSlotProps:O,ownerState:k,className:_.paper});return SO.jsx(J1,EK({onClose:d,anchorOrigin:{vertical:"bottom",horizontal:$?"right":"left"},transformOrigin:$?X1:Y1,slots:{paper:j,root:g.root},slotProps:{root:N,paper:R},open:f,ref:t,transitionDuration:h,TransitionProps:EK({onEntering:(e,t)=>{C.current&&C.current.adjustStyleForScrollbar(e,x),v&&v(e,t)}},w),ownerState:k},S,{classes:m,children:SO.jsx(e2,EK({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),d&&d(e,"tabKeyDown"))},actions:C,autoFocus:i&&(-1===P||u),autoFocusItem:E,variant:y},c,{className:dH(_.list,c.className),children:s}))}))}));var r2=t2;function n2(e){return sH("MuiNativeSelect",e)}var o2=lH("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);const a2=["className","disabled","error","IconComponent","inputRef","variant"],i2=({ownerState:e,theme:t})=>EK({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":EK({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:"light"===t.palette.mode?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${o2.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},"filled"===e.variant&&{"&&&":{paddingRight:32}},"outlined"===e.variant&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),s2=RY("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:OY,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${o2.multiple}`]:t.multiple}]}})(i2),l2=({ownerState:e,theme:t})=>EK({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${o2.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),u2=RY("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${NK(r.variant)}`],r.open&&t.iconOpen]}})(l2),c2=a.forwardRef((function(e,t){const{className:r,disabled:n,error:o,IconComponent:i,inputRef:s,variant:l="standard"}=e,u=uH(e,a2),c=EK({},e,{disabled:n,variant:l,error:o}),d=(e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:a,error:i}=e;return nH({select:["select",r,n&&"disabled",o&&"multiple",i&&"error"],icon:["icon",`icon${NK(r)}`,a&&"iconOpen",n&&"disabled"]},n2,t)})(c);return SO.jsxs(a.Fragment,{children:[SO.jsx(s2,EK({ownerState:c,className:dH(d.select,r),disabled:n,ref:s||t},u)),e.multiple?null:SO.jsx(u2,{as:i,ownerState:c,className:d.icon})]})}));var d2=c2;function f2(e){return sH("MuiSelect",e)}var p2,m2=lH("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);const h2=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],v2=RY("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${m2.select}`]:t.select},{[`&.${m2.select}`]:t[r.variant]},{[`&.${m2.error}`]:t.error},{[`&.${m2.multiple}`]:t.multiple}]}})(i2,{[`&.${m2.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),y2=RY("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${NK(r.variant)}`],r.open&&t.iconOpen]}})(l2),g2=RY("input",{shouldForwardProp:e=>NY(e)&&"classes"!==e,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 b2(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function w2(e){return null==e||"string"==typeof e&&!e.trim()}const S2=a.forwardRef((function(e,t){const{"aria-describedby":r,"aria-label":n,autoFocus:o,autoWidth:i,children:s,className:l,defaultOpen:u,defaultValue:c,disabled:d,displayEmpty:f,error:p=!1,IconComponent:m,inputRef:h,labelId:v,MenuProps:y={},multiple:g,name:b,onBlur:w,onChange:S,onClose:x,onFocus:$,onOpen:k,open:_,readOnly:E,renderValue:C,SelectDisplayProps:P={},tabIndex:j,value:O,variant:N="standard"}=e,R=uH(e,h2),[T,A]=VK({controlled:O,default:c,name:"Select"}),[I,M]=VK({controlled:_,default:u,name:"Select"}),F=a.useRef(null),D=a.useRef(null),[z,L]=a.useState(null),{current:B}=a.useRef(null!=_),[V,U]=a.useState(),W=WK(t,h),q=a.useCallback((e=>{D.current=e,e&&L(e)}),[]),K=null==z?void 0:z.parentNode;a.useImperativeHandle(W,(()=>({focus:()=>{D.current.focus()},node:F.current,value:T})),[T]),a.useEffect((()=>{u&&I&&z&&!B&&(U(i?null:K.clientWidth),D.current.focus())}),[z,i]),a.useEffect((()=>{o&&D.current.focus()}),[o]),a.useEffect((()=>{if(!v)return;const e=IK(D.current).getElementById(v);if(e){const t=()=>{getSelection().isCollapsed&&D.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}}),[v]);const H=(e,t)=>{e?k&&k(t):x&&x(t),B||(U(i?null:K.clientWidth),M(e))},G=a.Children.toArray(s),Q=e=>t=>{let r;if(t.currentTarget.hasAttribute("tabindex")){if(g){r=Array.isArray(T)?T.slice():[];const t=T.indexOf(e.props.value);-1===t?r.push(e.props.value):r.splice(t,1)}else r=e.props.value;if(e.props.onClick&&e.props.onClick(t),T!==r&&(A(r),S)){const n=t.nativeEvent||t,o=new n.constructor(n.type,n);Object.defineProperty(o,"target",{writable:!0,value:{value:r,name:b}}),S(o,e)}g||H(!1,t)}},X=null!==z&&I;let Y,J;delete R["aria-invalid"];const Z=[];let ee=!1;(KZ({value:T})||f)&&(C?Y=C(T):ee=!0);const te=G.map((e=>{if(!a.isValidElement(e))return null;let t;if(g){if(!Array.isArray(T))throw new Error(OK(2));t=T.some((t=>b2(t,e.props.value))),t&&ee&&Z.push(e.props.children)}else t=b2(T,e.props.value),t&&ee&&(J=e.props.children);return a.cloneElement(e,{"aria-selected":t?"true":"false",onClick:Q(e),onKeyUp:t=>{" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:t,value:void 0,"data-value":e.props.value})}));ee&&(Y=g?0===Z.length?null:Z.reduce(((e,t,r)=>(e.push(t),r<Z.length-1&&e.push(", "),e)),[]):J);let re,ne=V;!i&&B&&z&&(ne=K.clientWidth),re=void 0!==j?j:d?null:0;const oe=P.id||(b?`mui-component-select-${b}`:void 0),ae=EK({},e,{variant:N,value:T,open:X,error:p}),ie=(e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:a,error:i}=e;return nH({select:["select",r,n&&"disabled",o&&"multiple",i&&"error"],icon:["icon",`icon${NK(r)}`,a&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]},f2,t)})(ae);return SO.jsxs(a.Fragment,{children:[SO.jsx(v2,EK({ref:q,tabIndex:re,role:"button","aria-disabled":d?"true":void 0,"aria-expanded":X?"true":"false","aria-haspopup":"listbox","aria-label":n,"aria-labelledby":[v,oe].filter(Boolean).join(" ")||void 0,"aria-describedby":r,onKeyDown:e=>{if(!E){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),H(!0,e))}},onMouseDown:d||E?null:e=>{0===e.button&&(e.preventDefault(),D.current.focus(),H(!0,e))},onBlur:e=>{!X&&w&&(Object.defineProperty(e,"target",{writable:!0,value:{value:T,name:b}}),w(e))},onFocus:$},P,{ownerState:ae,className:dH(P.className,ie.select,l),id:oe,children:w2(Y)?p2||(p2=SO.jsx("span",{className:"notranslate",children:""})):Y})),SO.jsx(g2,EK({"aria-invalid":p,value:Array.isArray(T)?T.join(","):T,name:b,ref:F,"aria-hidden":!0,onChange:e=>{const t=G.find((t=>t.props.value===e.target.value));void 0!==t&&(A(t.props.value),S&&S(e,t))},tabIndex:-1,disabled:d,className:ie.nativeInput,autoFocus:o,ownerState:ae},R)),SO.jsx(y2,{as:m,className:ie.icon,ownerState:ae}),SO.jsx(r2,EK({id:`menu-${b||""}`,anchorEl:K,open:X,onClose:e=>{H(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},y,{MenuListProps:EK({"aria-labelledby":v,role:"listbox",disableListWrap:!0},y.MenuListProps),PaperProps:EK({},y.PaperProps,{style:EK({minWidth:ne},null!=y.PaperProps?y.PaperProps.style:null)}),children:te}))]})}));var x2=S2,$2=DY(SO.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");const k2=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],_2=["root"],E2={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>OY(e)&&"variant"!==e,slot:"Root"},C2=RY(u0,E2)(""),P2=RY(P0,E2)(""),j2=RY(y0,E2)(""),O2=a.forwardRef((function(e,t){const r=jY({name:"MuiSelect",props:e}),{autoWidth:n=!1,children:o,classes:i={},className:s,defaultOpen:l=!1,displayEmpty:u=!1,IconComponent:c=$2,id:d,input:f,inputProps:p,label:m,labelId:h,MenuProps:v,multiple:y=!1,native:g=!1,onClose:b,onOpen:w,open:S,renderValue:x,SelectDisplayProps:$,variant:k="outlined"}=r,_=uH(r,k2),E=g?d2:x2,C=BZ({props:r,muiFormControl:UZ(),states:["variant","error"]}),P=C.variant||k,j=EK({},r,{variant:P,classes:i}),O=(e=>{const{classes:t}=e;return t})(j),N=uH(O,_2),R=f||{standard:SO.jsx(C2,{ownerState:j}),outlined:SO.jsx(P2,{label:m,ownerState:j}),filled:SO.jsx(j2,{ownerState:j})}[P],T=WK(t,R.ref);return SO.jsx(a.Fragment,{children:a.cloneElement(R,EK({inputComponent:E,inputProps:EK({children:o,error:C.error,IconComponent:c,variant:P,type:void 0,multiple:y},g?{id:d}:{autoWidth:n,defaultOpen:l,displayEmpty:u,labelId:h,MenuProps:v,onClose:b,onOpen:w,open:S,renderValue:x,SelectDisplayProps:EK({id:d},$)},p,{classes:p?jK(N,p.classes):N},f?f.props.inputProps:{})},y&&g&&"outlined"===P?{notched:!0}:{},{ref:T,className:dH(R.props.className,s,O.root)},!f&&{variant:P},_))})}));O2.muiName="Select";var N2=O2;function R2(e){return sH("MuiTextField",e)}lH("MuiTextField",["root"]);const T2=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],A2={standard:u0,filled:y0,outlined:P0},I2=RY(q0,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),M2=a.forwardRef((function(e,t){const r=jY({props:e,name:"MuiTextField"}),{autoComplete:n,autoFocus:o=!1,children:a,className:i,color:s="primary",defaultValue:l,disabled:u=!1,error:c=!1,FormHelperTextProps:d,fullWidth:f=!1,helperText:p,id:m,InputLabelProps:h,inputProps:v,InputProps:y,inputRef:g,label:b,maxRows:w,minRows:S,multiline:x=!1,name:$,onBlur:k,onChange:_,onFocus:E,placeholder:C,required:P=!1,rows:j,select:O=!1,SelectProps:N,type:R,value:T,variant:A="outlined"}=r,I=uH(r,T2),M=EK({},r,{autoFocus:o,color:s,disabled:u,error:c,fullWidth:f,multiline:x,required:P,select:O,variant:A}),F=(e=>{const{classes:t}=e;return nH({root:["root"]},R2,t)})(M),D={};"outlined"===A&&(h&&void 0!==h.shrink&&(D.notched=h.shrink),D.label=b),O&&(N&&N.native||(D.id=void 0),D["aria-describedby"]=void 0);const z=BK(m),L=p&&z?`${z}-helper-text`:void 0,B=b&&z?`${z}-label`:void 0,V=A2[A],U=SO.jsx(V,EK({"aria-describedby":L,autoComplete:n,autoFocus:o,defaultValue:l,fullWidth:f,multiline:x,name:$,rows:j,maxRows:w,minRows:S,type:R,value:T,id:z,inputRef:g,onBlur:k,onChange:_,onFocus:E,placeholder:C,inputProps:v},D,y));return SO.jsxs(I2,EK({className:dH(F.root,i),disabled:u,error:c,fullWidth:f,ref:t,required:P,color:s,variant:A,ownerState:M},I,{children:[null!=b&&""!==b&&SO.jsx(L0,EK({htmlFor:z,id:B},h,{children:b})),O?SO.jsx(N2,EK({"aria-describedby":L,id:z,labelId:B,value:T,input:U},N,{children:a})):U,p&&SO.jsx(J0,EK({id:L},d,{children:p}))]}))}));var F2=M2;function D2(e){return sH("MuiTypography",e)}lH("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const z2=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],L2=RY("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.variant&&t[r.variant],"inherit"!==r.align&&t[`align${NK(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>EK({margin:0},"inherit"===t.variant&&{font:"inherit"},"inherit"!==t.variant&&e.typography[t.variant],"inherit"!==t.align&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16}))),B2={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},V2={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},U2=a.forwardRef((function(e,t){const r=jY({props:e,name:"MuiTypography"}),n=(e=>V2[e]||e)(r.color),o=EX(EK({},r,{color:n})),{align:a="inherit",className:i,component:s,gutterBottom:l=!1,noWrap:u=!1,paragraph:c=!1,variant:d="body1",variantMapping:f=B2}=o,p=uH(o,z2),m=EK({},o,{align:a,color:n,className:i,component:s,gutterBottom:l,noWrap:u,paragraph:c,variant:d,variantMapping:f}),h=s||(c?"p":f[d]||B2[d])||"span",v=(e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:o,variant:a,classes:i}=e;return nH({root:["root",a,"inherit"!==e.align&&`align${NK(t)}`,r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]},D2,i)})(m);return SO.jsx(L2,EK({as:h,ref:t,ownerState:m,className:dH(v.root,i)},p))}));var W2=U2,q2={},K2=$K;Object.defineProperty(q2,"__esModule",{value:!0});var H2=q2.default=void 0,G2=K2(VY()),Q2=SO,X2=(0,G2.default)((0,Q2.jsx)("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");function Y2(e){return sH("MuiListItem",e)}H2=q2.default=X2;var J2=lH("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]);var Z2=lH("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function e5(e){return sH("MuiListItemSecondaryAction",e)}lH("MuiListItemSecondaryAction",["root","disableGutters"]);const t5=["className"],r5=RY("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.disableGutters&&t.disableGutters]}})((({ownerState:e})=>EK({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0}))),n5=a.forwardRef((function(e,t){const r=jY({props:e,name:"MuiListItemSecondaryAction"}),{className:n}=r,o=uH(r,t5),i=EK({},r,{disableGutters:a.useContext(Z0).disableGutters}),s=(e=>{const{disableGutters:t,classes:r}=e;return nH({root:["root",t&&"disableGutters"]},e5,r)})(i);return SO.jsx(r5,EK({className:dH(s.root,n),ownerState:i,ref:t},o))}));n5.muiName="ListItemSecondaryAction";var o5=n5;const a5=["className"],i5=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],s5=RY("div",{name:"MuiListItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,"flex-start"===r.alignItems&&t.alignItemsFlexStart,r.divider&&t.divider,!r.disableGutters&&t.gutters,!r.disablePadding&&t.padding,r.button&&t.button,r.hasSecondaryAction&&t.secondaryAction]}})((({theme:e,ownerState:t})=>EK({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&EK({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${Z2.root}`]:{paddingRight:48}},{[`&.${J2.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${J2.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:WX(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${J2.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:WX(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${J2.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},"flex-start"===t.alignItems&&{alignItems:"flex-start"},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.button&&{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"}},[`&.${J2.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:WX(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})`:WX(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48}))),l5=RY("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),u5=a.forwardRef((function(e,t){const r=jY({props:e,name:"MuiListItem"}),{alignItems:n="center",autoFocus:o=!1,button:i=!1,children:s,className:l,component:u,components:c={},componentsProps:d={},ContainerComponent:f="li",ContainerProps:{className:p}={},dense:m=!1,disabled:h=!1,disableGutters:v=!1,disablePadding:y=!1,divider:g=!1,focusVisibleClassName:b,secondaryAction:w,selected:S=!1,slotProps:x={},slots:$={}}=r,k=uH(r.ContainerProps,a5),_=uH(r,i5),E=a.useContext(Z0),C=a.useMemo((()=>({dense:m||E.dense||!1,alignItems:n,disableGutters:v})),[n,E.dense,m,v]),P=a.useRef(null);DK((()=>{o&&P.current&&P.current.focus()}),[o]);const j=a.Children.toArray(s),O=j.length&&AK(j[j.length-1],["ListItemSecondaryAction"]),N=EK({},r,{alignItems:n,autoFocus:o,button:i,dense:C.dense,disabled:h,disableGutters:v,disablePadding:y,divider:g,hasSecondaryAction:O,selected:S}),R=(e=>{const{alignItems:t,button:r,classes:n,dense:o,disabled:a,disableGutters:i,disablePadding:s,divider:l,hasSecondaryAction:u,selected:c}=e;return nH({root:["root",o&&"dense",!i&&"gutters",!s&&"padding",l&&"divider",a&&"disabled",r&&"button","flex-start"===t&&"alignItemsFlexStart",u&&"secondaryAction",c&&"selected"],container:["container"]},Y2,n)})(N),T=WK(P,t),A=$.root||c.Root||s5,I=x.root||d.root||{},M=EK({className:dH(R.root,I.className,l),disabled:h},_);let F=u||"li";return i&&(M.component=u||"div",M.focusVisibleClassName=dH(J2.focusVisible,b),F=NJ),O?(F=M.component||u?F:"div","li"===f&&("li"===F?F="div":"li"===M.component&&(M.component="div")),SO.jsx(Z0.Provider,{value:C,children:SO.jsxs(l5,EK({as:f,className:dH(R.container,p),ref:T,ownerState:N},k,{children:[SO.jsx(A,EK({},I,!aZ(A)&&{as:F,ownerState:EK({},N,I.ownerState)},M,{children:j})),j.pop()]}))})):SO.jsx(Z0.Provider,{value:C,children:SO.jsxs(A,EK({},I,{as:F,ref:T},!aZ(A)&&{ownerState:EK({},N,I.ownerState)},M,{children:[j,w&&SO.jsx(o5,{children:w})]}))})}));var c5=u5;function d5(e){return sH("MuiListItemIcon",e)}var f5=lH("MuiListItemIcon",["root","alignItemsFlexStart"]);const p5=["className"],m5=RY("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"flex-start"===r.alignItems&&t.alignItemsFlexStart]}})((({theme:e,ownerState:t})=>EK({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8}))),h5=a.forwardRef((function(e,t){const r=jY({props:e,name:"MuiListItemIcon"}),{className:n}=r,o=uH(r,p5),i=EK({},r,{alignItems:a.useContext(Z0).alignItems}),s=(e=>{const{alignItems:t,classes:r}=e;return nH({root:["root","flex-start"===t&&"alignItemsFlexStart"]},d5,r)})(i);return SO.jsx(m5,EK({className:dH(s.root,n),ownerState:i,ref:t},o))}));var v5=h5;function y5(e){return sH("MuiListItemText",e)}var g5=lH("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);const b5=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],w5=RY("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${g5.primary}`]:t.primary},{[`& .${g5.secondary}`]:t.secondary},t.root,r.inset&&t.inset,r.primary&&r.secondary&&t.multiline,r.dense&&t.dense]}})((({ownerState:e})=>EK({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56}))),S5=a.forwardRef((function(e,t){const r=jY({props:e,name:"MuiListItemText"}),{children:n,className:o,disableTypography:i=!1,inset:s=!1,primary:l,primaryTypographyProps:u,secondary:c,secondaryTypographyProps:d}=r,f=uH(r,b5),{dense:p}=a.useContext(Z0);let m=null!=l?l:n,h=c;const v=EK({},r,{disableTypography:i,inset:s,primary:!!m,secondary:!!h,dense:p}),y=(e=>{const{classes:t,inset:r,primary:n,secondary:o,dense:a}=e;return nH({root:["root",r&&"inset",a&&"dense",n&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},y5,t)})(v);return null==m||m.type===W2||i||(m=SO.jsx(W2,EK({variant:p?"body2":"body1",className:y.primary,component:null!=u&&u.variant?void 0:"span",display:"block"},u,{children:m}))),null==h||h.type===W2||i||(h=SO.jsx(W2,EK({variant:"body2",className:y.secondary,color:"text.secondary",display:"block"},d,{children:h}))),SO.jsxs(w5,EK({className:dH(y.root,o),ownerState:v,ref:t},f,{children:[m,h]}))}));var x5=S5,$5={},k5=$K;Object.defineProperty($5,"__esModule",{value:!0});var _5=$5.default=void 0,E5=k5(VY()),C5=SO,P5=(0,E5.default)((0,C5.jsx)("path",{d:"m20 12-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward");_5=$5.default=P5;var j5={},O5=$K;Object.defineProperty(j5,"__esModule",{value:!0});var N5=j5.default=void 0,R5=O5(VY()),T5=SO,A5=(0,R5.default)((0,T5.jsx)("path",{d:"m4 12 1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z"}),"ArrowUpward");N5=j5.default=A5;var I5={},M5=$K;Object.defineProperty(I5,"__esModule",{value:!0});var F5=I5.default=void 0,D5=M5(VY()),z5=SO,L5=(0,D5.default)((0,z5.jsx)("path",{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"}),"ContentCopy");F5=I5.default=L5;var B5={},V5=$K;Object.defineProperty(B5,"__esModule",{value:!0});var U5=B5.default=void 0,W5=V5(VY()),q5=SO,K5=(0,W5.default)((0,q5.jsx)("path",{d:"M19 13H5v-2h14v2z"}),"Remove");function H5(e){return sH("MuiButton",e)}U5=B5.default=K5;var G5=lH("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","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]);var Q5=a.createContext({});const X5=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],Y5=e=>EK({},"small"===e.size&&{"& > *:nth-of-type(1)":{fontSize:18}},"medium"===e.size&&{"& > *:nth-of-type(1)":{fontSize:20}},"large"===e.size&&{"& > *:nth-of-type(1)":{fontSize:22}}),J5=RY(NJ,{shouldForwardProp:e=>OY(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${NK(r.color)}`],t[`size${NK(r.size)}`],t[`${r.variant}Size${NK(r.size)}`],"inherit"===r.color&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth]}})((({theme:e,ownerState:t})=>{var r,n;const o="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],a="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return EK({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":EK({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:WX(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"text"===t.variant&&"inherit"!==t.color&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:WX(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"outlined"===t.variant&&"inherit"!==t.color&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:WX(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===t.variant&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:a,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},"contained"===t.variant&&"inherit"!==t.color&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":EK({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${G5.focusVisible}`]:EK({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${G5.disabled}`]:EK({color:(e.vars||e).palette.action.disabled},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"contained"===t.variant&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},"text"===t.variant&&{padding:"6px 8px"},"text"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main},"outlined"===t.variant&&{padding:"5px 15px",border:"1px solid currentColor"},"outlined"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${WX(e.palette[t.color].main,.5)}`},"contained"===t.variant&&{color:e.vars?e.vars.palette.text.primary:null==(r=(n=e.palette).getContrastText)?void 0:r.call(n,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},"contained"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},"inherit"===t.color&&{color:"inherit",borderColor:"currentColor"},"small"===t.size&&"text"===t.variant&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"text"===t.variant&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"outlined"===t.variant&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"outlined"===t.variant&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"contained"===t.variant&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"contained"===t.variant&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})}),(({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${G5.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${G5.disabled}`]:{boxShadow:"none"}})),Z5=RY("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${NK(r.size)}`]]}})((({ownerState:e})=>EK({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},Y5(e)))),e4=RY("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${NK(r.size)}`]]}})((({ownerState:e})=>EK({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},Y5(e)))),t4=a.forwardRef((function(e,t){const r=a.useContext(Q5),n=jY({props:rH(r,e),name:"MuiButton"}),{children:o,color:i="primary",component:s="button",className:l,disabled:u=!1,disableElevation:c=!1,disableFocusRipple:d=!1,endIcon:f,focusVisibleClassName:p,fullWidth:m=!1,size:h="medium",startIcon:v,type:y,variant:g="text"}=n,b=uH(n,X5),w=EK({},n,{color:i,component:s,disabled:u,disableElevation:c,disableFocusRipple:d,fullWidth:m,size:h,type:y,variant:g}),S=(e=>{const{color:t,disableElevation:r,fullWidth:n,size:o,variant:a,classes:i}=e;return EK({},i,nH({root:["root",a,`${a}${NK(t)}`,`size${NK(o)}`,`${a}Size${NK(o)}`,"inherit"===t&&"colorInherit",r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${NK(o)}`],endIcon:["endIcon",`iconSize${NK(o)}`]},H5,i))})(w),x=v&&SO.jsx(Z5,{className:S.startIcon,ownerState:w,children:v}),$=f&&SO.jsx(e4,{className:S.endIcon,ownerState:w,children:f});return SO.jsxs(J5,EK({ownerState:w,className:dH(r.className,S.root,l),component:s,disabled:u,focusRipple:!d,focusVisibleClassName:dH(S.focusVisible,p),ref:t,type:y},b,{classes:S,children:[x,o,$]}))}));var r4=t4;function n4(e){return sH("MuiDivider",e)}var o4=lH("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const a4=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],i4=RY("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,"vertical"===r.orientation&&t.vertical,r.flexItem&&t.flexItem,r.children&&t.withChildren,r.children&&"vertical"===r.orientation&&t.withChildrenVertical,"right"===r.textAlign&&"vertical"!==r.orientation&&t.textAlignRight,"left"===r.textAlign&&"vertical"!==r.orientation&&t.textAlignLeft]}})((({theme:e,ownerState:t})=>EK({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:WX(e.palette.divider,.08)},"inset"===t.variant&&{marginLeft:72},"middle"===t.variant&&"horizontal"===t.orientation&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},"middle"===t.variant&&"vertical"===t.orientation&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},"vertical"===t.orientation&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"})),(({ownerState:e})=>EK({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>EK({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}})),(({theme:e,ownerState:t})=>EK({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}})),(({ownerState:e})=>EK({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),s4=RY("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,"vertical"===r.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>EK({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},"vertical"===t.orientation&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}))),l4=a.forwardRef((function(e,t){const r=jY({props:e,name:"MuiDivider"}),{absolute:n=!1,children:o,className:a,component:i=(o?"div":"hr"),flexItem:s=!1,light:l=!1,orientation:u="horizontal",role:c=("hr"!==i?"separator":void 0),textAlign:d="center",variant:f="fullWidth"}=r,p=uH(r,a4),m=EK({},r,{absolute:n,component:i,flexItem:s,light:l,orientation:u,role:c,textAlign:d,variant:f}),h=(e=>{const{absolute:t,children:r,classes:n,flexItem:o,light:a,orientation:i,textAlign:s,variant:l}=e;return nH({root:["root",t&&"absolute",l,a&&"light","vertical"===i&&"vertical",o&&"flexItem",r&&"withChildren",r&&"vertical"===i&&"withChildrenVertical","right"===s&&"vertical"!==i&&"textAlignRight","left"===s&&"vertical"!==i&&"textAlignLeft"],wrapper:["wrapper","vertical"===i&&"wrapperVertical"]},n4,n)})(m);return SO.jsx(i4,EK({as:i,className:dH(h.root,a),role:c,ref:t,ownerState:m},p,{children:o?SO.jsx(s4,{className:h.wrapper,ownerState:m,children:o}):null}))}));l4.muiSkipListHighlight=!0;var u4=l4;function c4(e){return sH("PrivateSwitchBase",e)}lH("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const d4=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],f4=RY(NJ)((({ownerState:e})=>EK({padding:9,borderRadius:"50%"},"start"===e.edge&&{marginLeft:"small"===e.size?-3:-12},"end"===e.edge&&{marginRight:"small"===e.size?-3:-12}))),p4=RY("input")({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),m4=a.forwardRef((function(e,t){const{autoFocus:r,checked:n,checkedIcon:o,className:a,defaultChecked:i,disabled:s,disableFocusRipple:l=!1,edge:u=!1,icon:c,id:d,inputProps:f,inputRef:p,name:m,onBlur:h,onChange:v,onFocus:y,readOnly:g,required:b=!1,tabIndex:w,type:S,value:x}=e,$=uH(e,d4),[k,_]=VK({controlled:n,default:Boolean(i),name:"SwitchBase",state:"checked"}),E=UZ();let C=s;E&&void 0===C&&(C=E.disabled);const P="checkbox"===S||"radio"===S,j=EK({},e,{checked:k,disabled:C,disableFocusRipple:l,edge:u}),O=(e=>{const{classes:t,checked:r,disabled:n,edge:o}=e;return nH({root:["root",r&&"checked",n&&"disabled",o&&`edge${NK(o)}`],input:["input"]},c4,t)})(j);return SO.jsxs(f4,EK({component:"span",className:dH(O.root,a),centerRipple:!0,focusRipple:!l,disabled:C,tabIndex:null,role:void 0,onFocus:e=>{y&&y(e),E&&E.onFocus&&E.onFocus(e)},onBlur:e=>{h&&h(e),E&&E.onBlur&&E.onBlur(e)},ownerState:j,ref:t},$,{children:[SO.jsx(p4,EK({autoFocus:r,checked:n,defaultChecked:i,className:O.input,disabled:C,id:P?d:void 0,name:m,onChange:e=>{if(e.nativeEvent.defaultPrevented)return;const t=e.target.checked;_(t),v&&v(e,t)},readOnly:g,ref:p,required:b,ownerState:j,tabIndex:w,type:S},"checkbox"===S&&void 0===x?{}:{value:x},f)),k?o:c]}))}));var h4=m4,v4=DY(SO.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"),y4=DY(SO.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"),g4=DY(SO.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 b4(e){return sH("MuiCheckbox",e)}var w4=lH("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]);const S4=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],x4=RY(h4,{shouldForwardProp:e=>OY(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.indeterminate&&t.indeterminate,"default"!==r.color&&t[`color${NK(r.color)}`]]}})((({theme:e,ownerState:t})=>EK({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${"default"===t.color?e.vars.palette.action.activeChannel:e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:WX("default"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${w4.checked}, &.${w4.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${w4.disabled}`]:{color:(e.vars||e).palette.action.disabled}}))),$4=SO.jsx(y4,{}),k4=SO.jsx(v4,{}),_4=SO.jsx(g4,{}),E4=a.forwardRef((function(e,t){var r,n;const o=jY({props:e,name:"MuiCheckbox"}),{checkedIcon:i=$4,color:s="primary",icon:l=k4,indeterminate:u=!1,indeterminateIcon:c=_4,inputProps:d,size:f="medium",className:p}=o,m=uH(o,S4),h=u?c:l,v=u?c:i,y=EK({},o,{color:s,indeterminate:u,size:f}),g=(e=>{const{classes:t,indeterminate:r,color:n,size:o}=e;return EK({},t,nH({root:["root",r&&"indeterminate",`color${NK(n)}`,`size${NK(o)}`]},b4,t))})(y);return SO.jsx(x4,EK({type:"checkbox",inputProps:EK({"data-indeterminate":u},d),icon:a.cloneElement(h,{fontSize:null!=(r=h.props.fontSize)?r:f}),checkedIcon:a.cloneElement(v,{fontSize:null!=(n=v.props.fontSize)?n:f}),ownerState:y,ref:t,className:dH(g.root,p)},m,{classes:g}))}));var C4=E4;const P4=function(e={}){const{createStyledComponent:t=QX,useThemeProps:r=XX,componentName:n="MuiStack"}=e,o=t(JX),i=a.forwardRef((function(e,t){const a=EX(r(e)),{component:i="div",direction:s="column",spacing:l=0,divider:u,children:c,className:d,useFlexGap:f=!1}=a,p=uH(a,HX),m={direction:s,spacing:l,useFlexGap:f},h=nH({root:["root"]},(e=>sH(n,e)),{});return SO.jsx(o,EK({as:i,ownerState:m,ref:t,className:dH(h.root,d)},p,{children:u?YX(c,u):c}))}));return i}({createStyledComponent:RY("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>jY({props:e,name:"MuiStack"})});var j4=P4;function O4(e){return sH("MuiFormControlLabel",e)}var N4=lH("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]);const R4=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],T4=RY("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${N4.label}`]:t.label},t.root,t[`labelPlacement${NK(r.labelPlacement)}`]]}})((({theme:e,ownerState:t})=>EK({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${N4.disabled}`]:{cursor:"default"}},"start"===t.labelPlacement&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},"top"===t.labelPlacement&&{flexDirection:"column-reverse",marginLeft:16},"bottom"===t.labelPlacement&&{flexDirection:"column",marginLeft:16},{[`& .${N4.label}`]:{[`&.${N4.disabled}`]:{color:(e.vars||e).palette.text.disabled}}}))),A4=RY("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})((({theme:e})=>({[`&.${N4.error}`]:{color:(e.vars||e).palette.error.main}}))),I4=a.forwardRef((function(e,t){var r,n;const o=jY({props:e,name:"MuiFormControlLabel"}),{className:i,componentsProps:s={},control:l,disabled:u,disableTypography:c,label:d,labelPlacement:f="end",required:p,slotProps:m={}}=o,h=uH(o,R4),v=UZ(),y=null!=(r=null!=u?u:l.props.disabled)?r:null==v?void 0:v.disabled,g=null!=p?p:l.props.required,b={disabled:y,required:g};["checked","name","onChange","value","inputRef"].forEach((e=>{void 0===l.props[e]&&void 0!==o[e]&&(b[e]=o[e])}));const w=BZ({props:o,muiFormControl:v,states:["error"]}),S=EK({},o,{disabled:y,labelPlacement:f,required:g,error:w.error}),x=(e=>{const{classes:t,disabled:r,labelPlacement:n,error:o,required:a}=e;return nH({root:["root",r&&"disabled",`labelPlacement${NK(n)}`,o&&"error",a&&"required"],label:["label",r&&"disabled"],asterisk:["asterisk",o&&"error"]},O4,t)})(S),$=null!=(n=m.typography)?n:s.typography;let k=d;return null==k||k.type===W2||c||(k=SO.jsx(W2,EK({component:"span"},$,{className:dH(x.label,null==$?void 0:$.className),children:k}))),SO.jsxs(T4,EK({className:dH(x.root,i),ownerState:S,ref:t},h,{children:[a.cloneElement(l,b),g?SO.jsxs(j4,{direction:"row",alignItems:"center",children:[k,SO.jsxs(A4,{ownerState:S,"aria-hidden":!0,className:x.asterisk,children:[" ","*"]})]}):k]}))}));var M4=I4;function F4(e){return sH("MuiFormGroup",e)}lH("MuiFormGroup",["root","row","error"]);const D4=["className","row"],z4=RY("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.row&&t.row]}})((({ownerState:e})=>EK({display:"flex",flexDirection:"column",flexWrap:"wrap"},e.row&&{flexDirection:"row"}))),L4=a.forwardRef((function(e,t){const r=jY({props:e,name:"MuiFormGroup"}),{className:n,row:o=!1}=r,a=uH(r,D4),i=EK({},r,{row:o,error:BZ({props:r,muiFormControl:UZ(),states:["error"]}).error}),s=(e=>{const{classes:t,row:r,error:n}=e;return nH({root:["root",r&&"row",n&&"error"]},F4,t)})(i);return SO.jsx(z4,EK({className:dH(s.root,n),ownerState:i,ref:t},a))}));var B4=L4,V4=DY(SO.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"),U4=DY(SO.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");const W4=RY("span")({position:"relative",display:"flex"}),q4=RY(V4)({transform:"scale(1)"}),K4=RY(U4)((({theme:e,ownerState:t})=>EK({left:0,position:"absolute",transform:"scale(0)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest})},t.checked&&{transform:"scale(1)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})})));function H4(e){const{checked:t=!1,classes:r={},fontSize:n}=e,o=EK({},e,{checked:t});return SO.jsxs(W4,{className:r.root,ownerState:o,children:[SO.jsx(q4,{fontSize:n,className:r.background,ownerState:o}),SO.jsx(K4,{fontSize:n,className:r.dot,ownerState:o})]})}var G4=a.createContext(void 0);function Q4(e){return sH("MuiRadio",e)}var X4=lH("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary"]);const Y4=["checked","checkedIcon","color","icon","name","onChange","size","className"],J4=RY(h4,{shouldForwardProp:e=>OY(e)||"classes"===e,name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`color${NK(r.color)}`]]}})((({theme:e,ownerState:t})=>EK({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${"default"===t.color?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:WX("default"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${X4.checked}`]:{color:(e.vars||e).palette[t.color].main}},{[`&.${X4.disabled}`]:{color:(e.vars||e).palette.action.disabled}})));const Z4=SO.jsx(H4,{checked:!0}),e3=SO.jsx(H4,{}),t3=a.forwardRef((function(e,t){var r,n;const o=jY({props:e,name:"MuiRadio"}),{checked:i,checkedIcon:s=Z4,color:l="primary",icon:u=e3,name:c,onChange:d,size:f="medium",className:p}=o,m=uH(o,Y4),h=EK({},o,{color:l,size:f}),v=(e=>{const{classes:t,color:r}=e;return EK({},t,nH({root:["root",`color${NK(r)}`]},Q4,t))})(h),y=a.useContext(G4);let g=i;const b=RK(d,y&&y.onChange);let w=c;return y&&(void 0===g&&(g=function(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}(y.value,o.value)),void 0===w&&(w=y.name)),SO.jsx(J4,EK({type:"radio",icon:a.cloneElement(u,{fontSize:null!=(r=e3.props.fontSize)?r:f}),checkedIcon:a.cloneElement(s,{fontSize:null!=(n=Z4.props.fontSize)?n:f}),ownerState:h,classes:v,name:w,checked:g,onChange:b,ref:t,className:dH(v.root,p)},m))}));var r3=t3;const n3=["actions","children","defaultValue","name","onChange","value"],o3=a.forwardRef((function(e,t){const{actions:r,children:n,defaultValue:o,name:i,onChange:s,value:l}=e,u=uH(e,n3),c=a.useRef(null),[d,f]=VK({controlled:l,default:o,name:"RadioGroup"});a.useImperativeHandle(r,(()=>({focus:()=>{let e=c.current.querySelector("input:not(:disabled):checked");e||(e=c.current.querySelector("input:not(:disabled)")),e&&e.focus()}})),[]);const p=WK(t,c),m=BK(i),h=a.useMemo((()=>({name:m,onChange(e){f(e.target.value),s&&s(e,e.target.value)},value:d})),[m,s,f,d]);return SO.jsx(G4.Provider,{value:h,children:SO.jsx(B4,EK({role:"radiogroup",ref:p},u,{children:n}))})}));var a3=o3;var i3=e=>!e||!aZ(e);function s3(e){return sH("MuiSlider",e)}var l3=lH("MuiSlider",["root","active","colorPrimary","colorSecondary","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]);const u3=["aria-label","aria-valuetext","aria-labelledby","component","components","componentsProps","color","classes","className","disableSwap","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","orientation","size","step","scale","slotProps","slots","tabIndex","track","value","valueLabelDisplay","valueLabelFormat"];function c3(e){return e}const d3=RY("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`color${NK(r.color)}`],"medium"!==r.size&&t[`size${NK(r.size)}`],r.marked&&t.marked,"vertical"===r.orientation&&t.vertical,"inverted"===r.track&&t.trackInverted,!1===r.track&&t.trackFalse]}})((({theme:e,ownerState:t})=>EK({borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",color:(e.vars||e).palette[t.color].main,WebkitTapHighlightColor:"transparent"},"horizontal"===t.orientation&&EK({height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}},"small"===t.size&&{height:2},t.marked&&{marginBottom:20}),"vertical"===t.orientation&&EK({height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}},"small"===t.size&&{width:2},t.marked&&{marginRight:44}),{"@media print":{colorAdjust:"exact"},[`&.${l3.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${l3.dragging}`]:{[`& .${l3.thumb}, & .${l3.track}`]:{transition:"none"}}}))),f3=RY("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})((({ownerState:e})=>EK({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38},"horizontal"===e.orientation&&{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"},"vertical"===e.orientation&&{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"},"inverted"===e.track&&{opacity:1}))),p3=RY("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})((({theme:e,ownerState:t})=>{const r="light"===e.palette.mode?KX(e.palette[t.color].main,.62):qX(e.palette[t.color].main,.5);return EK({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})},"small"===t.size&&{border:"none"},"horizontal"===t.orientation&&{height:"inherit",top:"50%",transform:"translateY(-50%)"},"vertical"===t.orientation&&{width:"inherit",left:"50%",transform:"translateX(-50%)"},!1===t.track&&{display:"none"},"inverted"===t.track&&{backgroundColor:e.vars?e.vars.palette.Slider[`${t.color}Track`]:r,borderColor:e.vars?e.vars.palette.Slider[`${t.color}Track`]:r})})),m3=RY("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.thumb,t[`thumbColor${NK(r.color)}`],"medium"!==r.size&&t[`thumbSize${NK(r.size)}`]]}})((({theme:e,ownerState:t})=>EK({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})},"small"===t.size&&{width:12,height:12},"horizontal"===t.orientation&&{top:"50%",transform:"translate(-50%, -50%)"},"vertical"===t.orientation&&{left:"50%",transform:"translate(-50%, 50%)"},{"&:before":EK({position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},"small"===t.size&&{boxShadow:"none"}),"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&:hover, &.${l3.focusVisible}`]:{boxShadow:`0px 0px 0px 8px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:WX(e.palette[t.color].main,.16)}`,"@media (hover: none)":{boxShadow:"none"}},[`&.${l3.active}`]:{boxShadow:`0px 0px 0px 14px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:WX(e.palette[t.color].main,.16)}`},[`&.${l3.disabled}`]:{"&:hover":{boxShadow:"none"}}}))),h3=RY((function(e){const{children:t,className:r,value:n}=e,o=(e=>{const{open:t}=e;return{offset:dH(t&&l3.valueLabelOpen),circle:l3.valueLabelCircle,label:l3.valueLabelLabel}})(e);return t?a.cloneElement(t,{className:dH(t.props.className)},SO.jsxs(a.Fragment,{children:[t.props.children,SO.jsx("span",{className:dH(o.offset,r),"aria-hidden":!0,children:SO.jsx("span",{className:o.circle,children:SO.jsx("span",{className:o.label,children:n})})})]})):null}),{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})((({theme:e,ownerState:t})=>EK({[`&.${l3.valueLabelOpen}`]:{transform:("vertical"===t.orientation?"translateY(-50%)":"translateY(-100%)")+" scale(1)"},zIndex:1,whiteSpace:"nowrap"},e.typography.body2,{fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),transform:("vertical"===t.orientation?"translateY(-50%)":"translateY(-100%)")+" scale(0)",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"},"horizontal"===t.orientation&&{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%"}},"vertical"===t.orientation&&{right:"small"===t.size?"20px":"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%"}},"small"===t.size&&{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"}))),v3=RY("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>NY(e)&&"markActive"!==e,overridesResolver:(e,t)=>{const{markActive:r}=e;return[t.mark,r&&t.markActive]}})((({theme:e,ownerState:t,markActive:r})=>EK({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor"},"horizontal"===t.orientation&&{top:"50%",transform:"translate(-1px, -50%)"},"vertical"===t.orientation&&{left:"50%",transform:"translate(-50%, 1px)"},r&&{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8}))),y3=RY("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>NY(e)&&"markLabelActive"!==e,overridesResolver:(e,t)=>t.markLabel})((({theme:e,ownerState:t,markLabelActive:r})=>EK({},e.typography.body2,{color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap"},"horizontal"===t.orientation&&{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}},"vertical"===t.orientation&&{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}},r&&{color:(e.vars||e).palette.text.primary}))),g3=({children:e})=>e,b3=a.forwardRef((function(e,t){var r,n,o,i,s,l,u,c,d,f,p,m,h,v,y,g,b,w,S,x,$,k,_,E;const C=jY({props:e,name:"MuiSlider"}),P="rtl"===DJ().direction,{"aria-label":j,"aria-valuetext":O,"aria-labelledby":N,component:R="span",components:T={},componentsProps:A={},color:I="primary",classes:M,className:F,disableSwap:D=!1,disabled:z=!1,getAriaLabel:L,getAriaValueText:B,marks:V=!1,max:U=100,min:W=0,orientation:q="horizontal",size:K="medium",step:H=1,scale:G=c3,slotProps:Q,slots:X,track:Y="normal",valueLabelDisplay:J="off",valueLabelFormat:Z=c3}=C,ee=uH(C,u3),te=EK({},C,{isRtl:P,max:U,min:W,classes:M,disabled:z,disableSwap:D,orientation:q,marks:V,color:I,size:K,step:H,scale:G,track:Y,valueLabelDisplay:J,valueLabelFormat:Z}),{axisProps:re,getRootProps:ne,getHiddenInputProps:oe,getThumbProps:ae,open:ie,active:se,axis:le,focusedThumbIndex:ue,range:ce,dragging:de,marks:fe,values:pe,trackOffset:me,trackLeap:he,getThumbStyle:ve}=IZ(EK({},te,{rootRef:t}));te.marked=fe.length>0&&fe.some((e=>e.label)),te.dragging=de,te.focusedThumbIndex=ue;const ye=(e=>{const{disabled:t,dragging:r,marked:n,orientation:o,track:a,classes:i,color:s,size:l}=e;return nH({root:["root",t&&"disabled",r&&"dragging",n&&"marked","vertical"===o&&"vertical","inverted"===a&&"trackInverted",!1===a&&"trackFalse",s&&`color${NK(s)}`,l&&`size${NK(l)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",l&&`thumbSize${NK(l)}`,s&&`thumbColor${NK(s)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]},s3,i)})(te),ge=null!=(r=null!=(n=null==X?void 0:X.root)?n:T.Root)?r:d3,be=null!=(o=null!=(i=null==X?void 0:X.rail)?i:T.Rail)?o:f3,we=null!=(s=null!=(l=null==X?void 0:X.track)?l:T.Track)?s:p3,Se=null!=(u=null!=(c=null==X?void 0:X.thumb)?c:T.Thumb)?u:m3,xe=null!=(d=null!=(f=null==X?void 0:X.valueLabel)?f:T.ValueLabel)?d:h3,$e=null!=(p=null!=(m=null==X?void 0:X.mark)?m:T.Mark)?p:v3,ke=null!=(h=null!=(v=null==X?void 0:X.markLabel)?v:T.MarkLabel)?h:y3,_e=null!=(y=null!=(g=null==X?void 0:X.input)?g:T.Input)?y:"input",Ee=null!=(b=null==Q?void 0:Q.root)?b:A.root,Ce=null!=(w=null==Q?void 0:Q.rail)?w:A.rail,Pe=null!=(S=null==Q?void 0:Q.track)?S:A.track,je=null!=(x=null==Q?void 0:Q.thumb)?x:A.thumb,Oe=null!=($=null==Q?void 0:Q.valueLabel)?$:A.valueLabel,Ne=null!=(k=null==Q?void 0:Q.mark)?k:A.mark,Re=null!=(_=null==Q?void 0:Q.markLabel)?_:A.markLabel,Te=null!=(E=null==Q?void 0:Q.input)?E:A.input,Ae=uZ({elementType:ge,getSlotProps:ne,externalSlotProps:Ee,externalForwardedProps:ee,additionalProps:EK({},i3(ge)&&{as:R}),ownerState:EK({},te,null==Ee?void 0:Ee.ownerState),className:[ye.root,F]}),Ie=uZ({elementType:be,externalSlotProps:Ce,ownerState:te,className:ye.rail}),Me=uZ({elementType:we,externalSlotProps:Pe,additionalProps:{style:EK({},re[le].offset(me),re[le].leap(he))},ownerState:EK({},te,null==Pe?void 0:Pe.ownerState),className:ye.track}),Fe=uZ({elementType:Se,getSlotProps:ae,externalSlotProps:je,ownerState:EK({},te,null==je?void 0:je.ownerState),className:ye.thumb}),De=uZ({elementType:xe,externalSlotProps:Oe,ownerState:EK({},te,null==Oe?void 0:Oe.ownerState),className:ye.valueLabel}),ze=uZ({elementType:$e,externalSlotProps:Ne,ownerState:te,className:ye.mark}),Le=uZ({elementType:ke,externalSlotProps:Re,ownerState:te,className:ye.markLabel}),Be=uZ({elementType:_e,getSlotProps:oe,externalSlotProps:Te,ownerState:te});return SO.jsxs(ge,EK({},Ae,{children:[SO.jsx(be,EK({},Ie)),SO.jsx(we,EK({},Me)),fe.filter((e=>e.value>=W&&e.value<=U)).map(((e,t)=>{const r=EZ(e.value,W,U),n=re[le].offset(r);let o;return o=!1===Y?-1!==pe.indexOf(e.value):"normal"===Y&&(ce?e.value>=pe[0]&&e.value<=pe[pe.length-1]:e.value<=pe[0])||"inverted"===Y&&(ce?e.value<=pe[0]||e.value>=pe[pe.length-1]:e.value>=pe[0]),SO.jsxs(a.Fragment,{children:[SO.jsx($e,EK({"data-index":t},ze,!aZ($e)&&{markActive:o},{style:EK({},n,ze.style),className:dH(ze.className,o&&ye.markActive)})),null!=e.label?SO.jsx(ke,EK({"aria-hidden":!0,"data-index":t},Le,!aZ(ke)&&{markLabelActive:o},{style:EK({},n,Le.style),className:dH(ye.markLabel,Le.className,o&&ye.markLabelActive),children:e.label})):null]},t)})),pe.map(((e,t)=>{const r=EZ(e,W,U),n=re[le].offset(r),o="off"===J?g3:xe;return SO.jsx(o,EK({},!aZ(o)&&{valueLabelFormat:Z,valueLabelDisplay:J,value:"function"==typeof Z?Z(G(e),t):Z,index:t,open:ie===t||se===t||"on"===J,disabled:z},De,{children:SO.jsx(Se,EK({"data-index":t},Fe,{className:dH(ye.thumb,Fe.className,se===t&&ye.active,ue===t&&ye.focusVisible),style:EK({},n,ve(t),Fe.style),children:SO.jsx(_e,EK({"data-index":t,"aria-label":L?L(t):j,"aria-valuenow":G(e),"aria-labelledby":N,"aria-valuetext":B?B(G(e),t):O,value:pe[t]},Be))}))}),t)}))]}))}));var w3=b3;function S3(e){return sH("MuiMenuItem",e)}var x3=lH("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);const $3=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],k3=RY(NJ,{shouldForwardProp:e=>OY(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.divider&&t.divider,!r.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>EK({},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"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${x3.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:WX(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${x3.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:WX(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${x3.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:WX(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})`:WX(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${x3.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${x3.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${o4.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${o4.inset}`]:{marginLeft:52},[`& .${g5.root}`]:{marginTop:0,marginBottom:0},[`& .${g5.inset}`]:{paddingLeft:36},[`& .${f5.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&EK({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${f5.root} svg`]:{fontSize:"1.25rem"}})))),_3=a.forwardRef((function(e,t){const r=jY({props:e,name:"MuiMenuItem"}),{autoFocus:n=!1,component:o="li",dense:i=!1,divider:s=!1,disableGutters:l=!1,focusVisibleClassName:u,role:c="menuitem",tabIndex:d,className:f}=r,p=uH(r,$3),m=a.useContext(Z0),h=a.useMemo((()=>({dense:i||m.dense||!1,disableGutters:l})),[m.dense,i,l]),v=a.useRef(null);DK((()=>{n&&v.current&&v.current.focus()}),[n]);const y=EK({},r,{dense:h.dense,divider:s,disableGutters:l}),g=(e=>{const{disabled:t,dense:r,divider:n,disableGutters:o,selected:a,classes:i}=e;return EK({},i,nH({root:["root",r&&"dense",t&&"disabled",!o&&"gutters",n&&"divider",a&&"selected"]},S3,i))})(r),b=WK(v,t);let w;return r.disabled||(w=void 0!==d?d:-1),SO.jsx(Z0.Provider,{value:h,children:SO.jsx(k3,EK({ref:b,role:c,tabIndex:w,component:o,focusVisibleClassName:dH(g.focusVisible,u),className:dH(g.root,f)},p,{ownerState:y,classes:g}))})}));var E3=_3;function C3(){return C3=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},C3.apply(this,arguments)}function P3(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}var j3=["uiSchema","registry"];function O3(e){var t=e.registry,r=P3(e,j3),n=t.translateString;return SO.jsx(FJ,C3({title:n(jR.AddItemButton)},r,{color:"primary",children:SO.jsx(WY,{})}))}function N3(e){var t=e.children,r=e.disabled,n=e.hasToolbar,o=e.hasCopy,a=e.hasMoveDown,i=e.hasMoveUp,s=e.hasRemove,l=e.index,u=e.onCopyIndexClick,c=e.onDropIndexClick,d=e.onReorderClick,f=e.readonly,p=e.uiSchema,m=e.registry,h=m.templates.ButtonTemplates,v=h.CopyButton,y=h.MoveDownButton,g=h.MoveUpButton,b=h.RemoveButton,w={flex:1,paddingLeft:6,paddingRight:6,fontWeight:"bold",minWidth:0};return SO.jsxs(ZJ,{container:!0,alignItems:"center",children:[SO.jsx(ZJ,{item:!0,xs:!0,style:{overflow:"auto"},children:SO.jsx(VJ,{mb:2,children:SO.jsx(oZ,{elevation:2,children:SO.jsx(VJ,{p:2,children:t})})})}),n&&SO.jsxs(ZJ,{item:!0,children:[(i||a)&&SO.jsx(g,{style:w,disabled:r||f||!i,onClick:d(l,l-1),uiSchema:p,registry:m}),(i||a)&&SO.jsx(y,{style:w,disabled:r||f||!a,onClick:d(l,l+1),uiSchema:p,registry:m}),o&&SO.jsx(v,{style:w,disabled:r||f,onClick:u(l),uiSchema:p,registry:m}),s&&SO.jsx(b,{style:w,disabled:r||f,onClick:c(l),uiSchema:p,registry:m})]})]})}var R3=["key"];function T3(e){var t=e.canAdd,r=e.disabled,n=e.idSchema,o=e.uiSchema,a=e.items,i=e.onAddClick,s=e.readonly,l=e.registry,u=e.required,c=e.schema,d=e.title,f=EN(o),p=PR("ArrayFieldDescriptionTemplate",l,f),m=PR("ArrayFieldItemTemplate",l,f),h=PR("ArrayFieldTitleTemplate",l,f),v=l.templates.ButtonTemplates.AddButton;return SO.jsx(oZ,{elevation:2,children:SO.jsxs(VJ,{p:2,children:[SO.jsx(h,{idSchema:n,title:f.title||d,schema:c,uiSchema:o,required:u,registry:l}),SO.jsx(p,{idSchema:n,description:f.description||c.description,schema:c,uiSchema:o,registry:l}),SO.jsxs(ZJ,{container:!0,children:[a&&a.map((function(e){var t=e.key,r=P3(e,R3);return SO.jsx(m,C3({},r),t)})),t&&SO.jsx(ZJ,{container:!0,justifyContent:"flex-end",children:SO.jsx(ZJ,{item:!0,children:SO.jsx(VJ,{mt:2,children:SO.jsx(v,{className:"array-item-add",onClick:i,disabled:r||s,uiSchema:o,registry:l})})})})]},"array-item-list-"+n.$id)]})})}var A3=["id","name","placeholder","required","readonly","disabled","type","label","hideLabel","value","onChange","onChangeOverride","onBlur","onFocus","autofocus","options","schema","uiSchema","rawErrors","formContext","registry","InputLabelProps"],I3=["step","min","max"],M3=["date","datetime-local","file","time"];function F3(e){var t=e.id,r=e.placeholder,n=e.required,o=e.readonly,a=e.disabled,i=e.type,s=e.label,l=e.hideLabel,u=e.value,c=e.onChange,d=e.onChangeOverride,f=e.onBlur,p=e.onFocus,m=e.autofocus,h=e.options,v=e.schema,y=e.rawErrors,g=void 0===y?[]:y,b=e.InputLabelProps,w=P3(e,A3),S=_R(v,i,h),x=S.step,$=S.min,k=S.max,_=P3(S,I3),E=C3({inputProps:C3({step:x,min:$,max:k},v.examples?{list:MR(t)}:void 0)},_),C=M3.includes(i)?C3({},b,{shrink:!0}):b;return SO.jsxs(SO.Fragment,{children:[SO.jsx(F2,C3({id:t,name:t,placeholder:r,label:BR(s||void 0,l,!1),autoFocus:m,required:n,disabled:a||o},E,{value:u||0===u?u:"",error:g.length>0,onChange:d||function(e){var t=e.target.value;return c(""===t?h.emptyValue:t)},onBlur:function(e){var r=e.target.value;return f(t,r)},onFocus:function(e){var r=e.target.value;return p(t,r)},InputLabelProps:C},w,{"aria-describedby":zR(t,!!v.examples)})),Array.isArray(v.examples)&&SO.jsx("datalist",{id:MR(t),children:v.examples.concat(v.default&&!v.examples.includes(v.default)?[v.default]:[]).map((function(e){return SO.jsx("option",{value:e},e)}))})]})}function D3(e){var t=e.id,r=e.description;return r?SO.jsx(W2,{id:t,variant:"subtitle2",style:{marginTop:"5px"},children:r}):null}function z3(e){var t=e.errors,r=e.registry.translateString;return SO.jsx(oZ,{elevation:2,children:SO.jsxs(VJ,{mb:2,p:2,children:[SO.jsx(W2,{variant:"h6",children:r(jR.ErrorsLabel)}),SO.jsx(o1,{dense:!0,children:t.map((function(e,t){return SO.jsxs(c5,{children:[SO.jsx(v5,{children:SO.jsx(H2,{color:"error"})}),SO.jsx(x5,{primary:e.stack})]},t)}))})]})})}var L3=["icon","color","uiSchema","registry"],B3=["iconType"];function V3(e){var t=e.icon,r=e.color,n=P3(e,L3);return SO.jsx(FJ,C3({},n,{size:"small",color:r,children:t}))}function U3(e){var t=e.registry.translateString;return SO.jsx(V3,C3({title:t(jR.CopyButton)},e,{icon:SO.jsx(F5,{fontSize:"small"})}))}function W3(e){var t=e.registry.translateString;return SO.jsx(V3,C3({title:t(jR.MoveDownButton)},e,{icon:SO.jsx(_5,{fontSize:"small"})}))}function q3(e){var t=e.registry.translateString;return SO.jsx(V3,C3({title:t(jR.MoveUpButton)},e,{icon:SO.jsx(N5,{fontSize:"small"})}))}function K3(e){var t=e.iconType,r=P3(e,B3),n=r.registry.translateString;return SO.jsx(V3,C3({title:n(jR.RemoveButton)},r,{color:"error",icon:SO.jsx(U5,{fontSize:"default"===t?void 0:"small"})}))}function H3(e){var t=e.errors,r=void 0===t?[]:t,n=e.idSchema;if(0===r.length)return null;var o=IR(n);return SO.jsx(o1,{dense:!0,disablePadding:!0,children:r.map((function(e,t){return SO.jsx(c5,{disableGutters:!0,children:SO.jsx(J0,{id:o,children:e})},t)}))})}function G3(e){var t=e.idSchema,r=e.help;if(!r)return null;var n=FR(t);return SO.jsx(J0,{id:n,children:r})}function Q3(e){var t=e.id,r=e.children,n=e.classNames,o=e.style,a=e.disabled,i=e.displayLabel,s=e.hidden,l=e.label,u=e.onDropPropertyClick,c=e.onKeyChange,d=e.readonly,f=e.required,p=e.rawErrors,m=void 0===p?[]:p,h=e.errors,v=e.help,y=e.rawDescription,g=e.schema,b=e.uiSchema,w=e.registry,S=PR("WrapIfAdditionalTemplate",w,EN(b));return s?SO.jsx("div",{style:{display:"none"},children:r}):SO.jsx(S,{classNames:n,style:o,disabled:a,id:t,label:l,onDropPropertyClick:u,onKeyChange:c,readonly:d,required:f,schema:g,uiSchema:b,registry:w,children:SO.jsxs(q0,{fullWidth:!0,error:!!m.length,required:f,children:[r,i&&y?SO.jsx(W2,{variant:"caption",color:"textSecondary",children:y}):null,h,v]})})}function X3(e){var t=e.description,r=e.title,n=e.properties,o=e.required,a=e.disabled,i=e.readonly,s=e.uiSchema,l=e.idSchema,u=e.schema,c=e.formData,d=e.onAddClick,f=e.registry,p=EN(s),m=PR("TitleFieldTemplate",f,p),h=PR("DescriptionFieldTemplate",f,p),v=f.templates.ButtonTemplates.AddButton;return SO.jsxs(SO.Fragment,{children:[r&&SO.jsx(m,{id:DR(l),title:r,required:o,schema:u,uiSchema:s,registry:f}),t&&SO.jsx(h,{id:AR(l),description:t,schema:u,uiSchema:s,registry:f}),SO.jsxs(ZJ,{container:!0,spacing:2,style:{marginTop:"10px"},children:[n.map((function(e,t){return e.hidden?e.content:SO.jsx(ZJ,{item:!0,xs:12,style:{marginBottom:"10px"},children:e.content},t)})),CN(u,s,c)&&SO.jsx(ZJ,{container:!0,justifyContent:"flex-end",children:SO.jsx(ZJ,{item:!0,children:SO.jsx(v,{className:"object-property-expand",onClick:d(u),disabled:a||i,uiSchema:s,registry:f})})})]})]})}function Y3(e){var t=CR(e.uiSchema),r=t.submitText,n=t.norender,o=t.props,a=void 0===o?{}:o;return n?null:SO.jsx(VJ,{marginTop:3,children:SO.jsx(r4,C3({type:"submit",variant:"contained",color:"primary"},a,{children:r}))})}function J3(e){var t=e.id,r=e.title;return SO.jsxs(VJ,{id:t,mb:1,mt:1,children:[SO.jsx(W2,{variant:"h5",children:r}),SO.jsx(u4,{})]})}function Z3(e){var t=e.children,r=e.classNames,n=e.style,o=e.disabled,a=e.id,i=e.label,s=e.onDropPropertyClick,l=e.onKeyChange,u=e.readonly,c=e.required,d=e.schema,f=e.uiSchema,p=e.registry,m=p.templates,h=p.translateString,v=m.ButtonTemplates.RemoveButton,y=h(jR.KeyLabel,[i]);if(!(oN in d))return SO.jsx("div",{className:r,style:n,children:t});return SO.jsxs(ZJ,{container:!0,alignItems:"center",spacing:2,className:r,style:n,children:[SO.jsx(ZJ,{item:!0,xs:!0,children:SO.jsx(F2,{fullWidth:!0,required:c,label:y,defaultValue:i,disabled:o||u,id:a+"-key",name:a+"-key",onBlur:u?void 0:function(e){var t=e.target;return l(t.value)},type:"text"})}),SO.jsx(ZJ,{item:!0,xs:!0,children:t}),SO.jsx(ZJ,{item:!0,children:SO.jsx(v,{iconType:"default",style:{flex:1,paddingLeft:6,paddingRight:6,fontWeight:"bold"},disabled:o||u,onClick:s(i),uiSchema:f,registry:p})})]},a+"-key")}function e9(e){var t,r=e.schema,n=e.id,o=e.value,a=e.disabled,i=e.readonly,s=e.label,l=void 0===s?"":s,u=e.hideLabel,c=e.autofocus,d=e.onChange,f=e.onBlur,p=e.onFocus,m=e.registry,h=e.options,v=e.uiSchema,y=PR("DescriptionFieldTemplate",m,h),g=qR(r),b=null!=(t=h.description)?t:r.description;return SO.jsxs(SO.Fragment,{children:[!u&&!!b&&SO.jsx(y,{id:AR(n),description:b,schema:r,uiSchema:v,registry:m}),SO.jsx(M4,{control:SO.jsx(C4,{id:n,name:n,checked:void 0!==o&&Boolean(o),required:g,disabled:a||i,autoFocus:c,onChange:function(e,t){return d(t)},onBlur:function(e){var t=e.target.value;return f(n,t)},onFocus:function(e){var t=e.target.value;return p(n,t)},"aria-describedby":zR(n)}),label:BR(l,u,!1)})]})}function t9(e){var t=e.label,r=e.hideLabel,n=e.id,o=e.disabled,a=e.options,i=e.value,s=e.autofocus,l=e.readonly,u=e.required,c=e.onChange,d=e.onBlur,f=e.onFocus,p=a.enumOptions,m=a.enumDisabled,h=a.inline,v=a.emptyValue,y=Array.isArray(i)?i:[i],g=function(e){return function(t){var r=t.target.checked;c(r?xR(e,y,p):bR(e,y,p))}},b=function(e){var t=e.target.value;return d(n,gR(t,p,v))},w=function(e){var t=e.target.value;return f(n,gR(t,p,v))};return SO.jsxs(SO.Fragment,{children:[BR(SO.jsx(I0,{required:u,htmlFor:n,children:t||void 0}),r),SO.jsx(B4,{id:n,row:!!h,children:Array.isArray(p)&&p.map((function(e,t){var r=wR(e.value,y),a=Array.isArray(m)&&-1!==m.indexOf(e.value),i=SO.jsx(C4,{id:LR(n,t),name:n,checked:r,disabled:o||a||l,autoFocus:s&&0===t,onChange:g(t),onBlur:b,onFocus:w,"aria-describedby":zR(n)});return SO.jsx(M4,{control:i,label:e.label},t)}))})]})}function r9(e){var t,r=e.id,n=e.options,o=e.value,a=e.required,i=e.disabled,s=e.readonly,l=e.label,u=e.hideLabel,c=e.onChange,d=e.onBlur,f=e.onFocus,p=n.enumOptions,m=n.enumDisabled,h=n.emptyValue,v=!!n&&n.inline,y=null!=(t=SR(o,p))?t:null;return SO.jsxs(SO.Fragment,{children:[BR(SO.jsx(I0,{required:a,htmlFor:r,children:l||void 0}),u),SO.jsx(a3,{id:r,name:r,value:y,row:v,onChange:function(e,t){return c(gR(t,p,h))},onBlur:function(e){var t=e.target.value;return d(r,gR(t,p,h))},onFocus:function(e){var t=e.target.value;return f(r,gR(t,p,h))},"aria-describedby":zR(r),children:Array.isArray(p)&&p.map((function(e,t){var n=Array.isArray(m)&&-1!==m.indexOf(e.value);return SO.jsx(M4,{control:SO.jsx(r3,{name:r,id:LR(r,t),color:"primary"}),label:e.label,value:String(t),disabled:i||n||s},t)}))})]})}function n9(e){var t=e.value,r=e.readonly,n=e.disabled,o=e.onBlur,a=e.onFocus,i=e.options,s=e.schema,l=e.onChange,u=e.required,c=e.label,d=e.hideLabel,f=e.id,p=C3({value:t,label:c,id:f,name:f},kR(s));return SO.jsxs(SO.Fragment,{children:[BR(SO.jsx(I0,{required:u,htmlFor:f,children:c||void 0}),d),SO.jsx(w3,C3({disabled:n||r,onChange:function(e,t){l(null!=t?t:i.emptyValue)},onBlur:function(e){var t=e.target.value;return o(f,t)},onFocus:function(e){var t=e.target.value;return a(f,t)},valueLabelDisplay:"auto"},p,{"aria-describedby":zR(f)}))]})}var o9=["schema","id","name","options","label","hideLabel","required","disabled","placeholder","readonly","value","multiple","autofocus","onChange","onBlur","onFocus","rawErrors","registry","uiSchema","hideError","formContext"];function a9(e){var t=e.id,r=e.options,n=e.label,o=e.hideLabel,a=e.required,i=e.disabled,s=e.placeholder,l=e.readonly,u=e.value,c=e.multiple,d=e.autofocus,f=e.onChange,p=e.onBlur,m=e.onFocus,h=e.rawErrors,v=void 0===h?[]:h,y=P3(e,o9),g=r.enumOptions,b=r.enumDisabled,w=r.emptyValue,S=(c=void 0!==c&&!!c)?[]:"",x=void 0===u||c&&u.length<1||!c&&u===S,$=SR(u,g,c);return SO.jsx(F2,C3({id:t,name:t,label:BR(n||void 0,o,!1),value:x?S:$,required:a,disabled:i||l,autoFocus:d,placeholder:s,error:v.length>0,onChange:function(e){var t=e.target.value;return f(gR(t,g,w))},onBlur:function(e){var r=e.target.value;return p(t,gR(r,g,w))},onFocus:function(e){var r=e.target.value;return m(t,gR(r,g,w))}},y,{select:!0,InputLabelProps:C3({},y.InputLabelProps,{shrink:!x}),SelectProps:C3({},y.SelectProps,{multiple:c}),"aria-describedby":zR(t),children:Array.isArray(g)&&g.map((function(e,t){var r=e.value,n=e.label,o=Array.isArray(b)&&-1!==b.indexOf(r);return SO.jsx(E3,{value:String(t),disabled:o,children:n},t)}))}))}function i9(e){var t=e.options,r=PR("BaseInputTemplate",e.registry,t),n=5;return"string"!=typeof t.rows&&"number"!=typeof t.rows||(n=t.rows),SO.jsx(r,C3({},e,{multiline:!0,rows:n}))}function s9(){return{CheckboxWidget:e9,CheckboxesWidget:t9,RadioWidget:r9,RangeWidget:n9,SelectWidget:a9,TextareaWidget:i9}}const l9=(u9={templates:{ArrayFieldItemTemplate:N3,ArrayFieldTemplate:T3,BaseInputTemplate:F3,ButtonTemplates:{AddButton:O3,CopyButton:U3,MoveDownButton:W3,MoveUpButton:q3,RemoveButton:K3,SubmitButton:Y3},DescriptionFieldTemplate:D3,ErrorListTemplate:z3,FieldErrorTemplate:H3,FieldHelpTemplate:G3,FieldTemplate:Q3,ObjectFieldTemplate:X3,TitleFieldTemplate:J3,WrapIfAdditionalTemplate:Z3},widgets:{...s9(),SelectWidget:e=>{const r=s9().SelectWidget;return B.createElement(r,t({},e,{SelectProps:{...e.SelectProps||{},MenuProps:{autoFocus:!1,disableAutoFocusItem:!0,disableEnforceFocus:!0,disableAutoFocus:!0}}}))}}},a.forwardRef((function(e,t){var r,n,o=e.fields,a=e.widgets,i=e.templates,s=GW(e,SK);return o=qW({},null==u9?void 0:u9.fields,o),a=qW({},null==u9?void 0:u9.widgets,a),i=qW({},null==u9?void 0:u9.templates,i,{ButtonTemplates:qW({},null==u9||null===(r=u9.templates)||void 0===r?void 0:r.ButtonTemplates,null===(n=i)||void 0===n?void 0:n.ButtonTemplates)}),SO.jsx(wK,qW({},u9,s,{fields:o,widgets:a,templates:i,ref:t}))})));var u9;function c9(){const e=frameData.app.context,t=["form-data"];return e.organization_id&&t.push(e.organization_id),e.project_id&&t.push(e.project_id),t.join("-")}const d9={htmlWidget:function(e){const{value:t,options:{content:r}}=e,n=a.useRef();return a.useEffect((()=>{const e=t||r,o=document.createRange().createContextualFragment(e);n.current.append(o)}),[]),B.createElement("div",{ref:n})}};function f9(e={},t,r){const n=U.createRoot(document.getElementById("form"));if(AP&&AP._data&&AP._data.app&&["modal","editor-right-panel"].includes(AP._data.app.type)){const e=document.getElementById("card");e.style.border="none",e.style.overflow="initial",e.removeAttribute("is-shadowed"),e.setAttribute("without-p",!0),e.parentElement.style.padding="16px",e.parentElement.style.paddingBottom="0px"}n.render(B.createElement(l9,{widgets:d9,formData:e,validator:QV,schema:t||window.formSchema,uiSchema:r||window.formUiSchema,onSubmit:e=>{!function(e){document.getElementById("form-loading").style.display="flex",checkOrigin().then((t=>fetch(formPostDataUrl+t+"&id="+c9(),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({data:e,context:frameData.app.context})}))).then(checkResponse).then((e=>{e&&e.message||showToast("Settings successfully saved"),document.getElementById("form-loading").style.display="none",e&&(e.formData||e.formSchema||e.formUiSchema)&&f9(e.formData,e.formSchema,e.formUiSchema),e&&e.redirect&&(window.location=e.redirect)})).catch((e=>{catchRejection(e,"Can't save settings"),document.getElementById("form-loading").style.display="none"}))}(e.formData)}})),document.getElementById("form-loading").style.display="none"}checkOrigin().then((e=>{const t=new URLSearchParams(frameData.app.context).toString(),r=new URLSearchParams(e+"&id="+c9());return r.set("context",t),fetch(formGetDataUrl+"?"+r.toString(),{method:"GET"})})).then(checkResponse).catch((e=>catchRejection(e,"Can't load saved settings"))).then((e=>{f9(e.formData,e.formSchema,e.formUiSchema)})).catch((()=>f9({})))}();
|
|
136
|
+
`),sG.rippleVisible,hG,550,(({theme:e})=>e.transitions.easing.easeInOut),sG.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),sG.child,sG.childLeaving,mG,550,(({theme:e})=>e.transitions.easing.easeInOut),sG.childPulsate,vG,(({theme:e})=>e.transitions.easing.easeInOut)),bG=a.forwardRef((function(e,t){const r=$H({props:e,name:"MuiTouchRipple"}),{center:n=!1,classes:o={},className:i}=r,s=tU(r,lG),[l,u]=a.useState([]),c=a.useRef(0),d=a.useRef(null);a.useEffect((()=>{d.current&&(d.current(),d.current=null)}),[l]);const f=a.useRef(!1),p=a.useRef(0),h=a.useRef(null),m=a.useRef(null);a.useEffect((()=>()=>{p.current&&clearTimeout(p.current)}),[]);const v=a.useCallback((e=>{const{pulsate:t,rippleX:r,rippleY:n,rippleSize:a,cb:i}=e;u((e=>[...e,Hj.jsx(yG,{classes:{ripple:nU(o.ripple,sG.ripple),rippleVisible:nU(o.rippleVisible,sG.rippleVisible),ripplePulsate:nU(o.ripplePulsate,sG.ripplePulsate),child:nU(o.child,sG.child),childLeaving:nU(o.childLeaving,sG.childLeaving),childPulsate:nU(o.childPulsate,sG.childPulsate)},timeout:550,pulsate:t,rippleX:r,rippleY:n,rippleSize:a},c.current)])),c.current+=1,d.current=i}),[o]),g=a.useCallback(((e={},t={},r=(()=>{}))=>{const{pulsate:o=!1,center:a=n||t.pulsate,fakeElement:i=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&f.current)return void(f.current=!1);"touchstart"===(null==e?void 0:e.type)&&(f.current=!0);const s=i?null:m.current,l=s?s.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u,c,d;if(a||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(l.width/2),c=Math.round(l.height/2);else{const{clientX:t,clientY:r}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-l.left),c=Math.round(r-l.top)}if(a)d=Math.sqrt((2*l.width**2+l.height**2)/3),d%2==0&&(d+=1);else{const e=2*Math.max(Math.abs((s?s.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((s?s.clientHeight:0)-c),c)+2;d=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===h.current&&(h.current=()=>{v({pulsate:o,rippleX:u,rippleY:c,rippleSize:d,cb:r})},p.current=setTimeout((()=>{h.current&&(h.current(),h.current=null)}),80)):v({pulsate:o,rippleX:u,rippleY:c,rippleSize:d,cb:r})}),[n,v]),y=a.useCallback((()=>{g({},{pulsate:!0})}),[g]),b=a.useCallback(((e,t)=>{if(clearTimeout(p.current),"touchend"===(null==e?void 0:e.type)&&h.current)return h.current(),h.current=null,void(p.current=setTimeout((()=>{b(e,t)})));h.current=null,u((e=>e.length>0?e.slice(1):e)),d.current=t}),[]);return a.useImperativeHandle(t,(()=>({pulsate:y,start:g,stop:b})),[y,g,b]),Hj.jsx(gG,yV({className:nU(sG.root,o.root,i),ref:m},s,{children:Hj.jsx(iG,{component:null,exit:!0,children:l})}))}));var wG=bG;function SG(e){return ZV("MuiButtonBase",e)}var xG=eU("MuiButtonBase",["root","disabled","focusVisible"]);const _G=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],$G=jH("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"},[`&.${xG.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),kG=a.forwardRef((function(e,t){const r=$H({props:e,name:"MuiButtonBase"}),{action:n,centerRipple:o=!1,children:i,className:s,component:l="button",disabled:u=!1,disableRipple:c=!1,disableTouchRipple:d=!1,focusRipple:f=!1,LinkComponent:p="a",onBlur:h,onClick:m,onContextMenu:v,onDragLeave:g,onFocus:y,onFocusVisible:b,onKeyDown:w,onKeyUp:S,onMouseDown:x,onMouseLeave:_,onMouseUp:$,onTouchEnd:k,onTouchMove:E,onTouchStart:j,tabIndex:C=0,TouchRippleProps:O,touchRippleRef:P,type:N}=r,R=tU(r,_G),T=a.useRef(null),A=a.useRef(null),I=MV(A,P),{isFocusVisibleRef:M,onFocus:F,onBlur:z,ref:D}=qV(),[L,B]=a.useState(!1);u&&L&&B(!1),a.useImperativeHandle(n,(()=>({focusVisible:()=>{B(!0),T.current.focus()}})),[]);const[V,U]=a.useState(!1);a.useEffect((()=>{U(!0)}),[]);const W=V&&!c&&!u;function q(e,t,r=d){return IV((n=>{t&&t(n);return!r&&A.current&&A.current[e](n),!0}))}a.useEffect((()=>{L&&f&&!c&&V&&A.current.pulsate()}),[c,f,L,V]);const K=q("start",x),H=q("stop",v),G=q("stop",g),Q=q("stop",$),J=q("stop",(e=>{L&&e.preventDefault(),_&&_(e)})),Y=q("start",j),X=q("stop",k),Z=q("stop",E),ee=q("stop",(e=>{z(e),!1===M.current&&B(!1),h&&h(e)}),!1),te=IV((e=>{T.current||(T.current=e.currentTarget),F(e),!0===M.current&&(B(!0),b&&b(e)),y&&y(e)})),re=()=>{const e=T.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},ne=a.useRef(!1),oe=IV((e=>{f&&!ne.current&&L&&A.current&&" "===e.key&&(ne.current=!0,A.current.stop(e,(()=>{A.current.start(e)}))),e.target===e.currentTarget&&re()&&" "===e.key&&e.preventDefault(),w&&w(e),e.target===e.currentTarget&&re()&&"Enter"===e.key&&!u&&(e.preventDefault(),m&&m(e))})),ae=IV((e=>{f&&" "===e.key&&A.current&&L&&!e.defaultPrevented&&(ne.current=!1,A.current.stop(e,(()=>{A.current.pulsate(e)}))),S&&S(e),m&&e.target===e.currentTarget&&re()&&" "===e.key&&!e.defaultPrevented&&m(e)}));let ie=l;"button"===ie&&(R.href||R.to)&&(ie=p);const se={};"button"===ie?(se.type=void 0===N?"button":N,se.disabled=u):(R.href||R.to||(se.role="button"),u&&(se["aria-disabled"]=u));const le=MV(t,D,T),ue=yV({},r,{centerRipple:o,component:l,disabled:u,disableRipple:c,disableTouchRipple:d,focusRipple:f,tabIndex:C,focusVisible:L}),ce=(e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:o}=e,a=QV({root:["root",t&&"disabled",r&&"focusVisible"]},SG,o);return r&&n&&(a.root+=` ${n}`),a})(ue);return Hj.jsxs($G,yV({as:ie,className:nU(ce.root,s),ownerState:ue,onBlur:ee,onClick:m,onContextMenu:H,onFocus:te,onKeyDown:oe,onKeyUp:ae,onMouseDown:K,onMouseLeave:J,onMouseUp:Q,onDragLeave:G,onTouchEnd:X,onTouchMove:Z,onTouchStart:Y,ref:le,tabIndex:u?-1:C,type:N},se,R,{children:[i,W?Hj.jsx(wG,yV({ref:I,center:o},O)):null]}))}));var EG=kG;function jG(e){return ZV("MuiIconButton",e)}var CG=eU("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]);const OG=["edge","children","className","color","disabled","disableFocusRipple","size"],PG=jH(EG,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"default"!==r.color&&t[`color${_V(r.color)}`],r.edge&&t[`edge${_V(r.edge)}`],t[`size${_V(r.size)}`]]}})((({theme:e,ownerState:t})=>yV({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:DK(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"start"===t.edge&&{marginLeft:"small"===t.size?-3:-12},"end"===t.edge&&{marginRight:"small"===t.size?-3:-12})),(({theme:e,ownerState:t})=>{var r;const n=null==(r=(e.vars||e).palette)?void 0:r[t.color];return yV({},"inherit"===t.color&&{color:"inherit"},"inherit"!==t.color&&"default"!==t.color&&yV({color:null==n?void 0:n.main},!t.disableRipple&&{"&:hover":yV({},n&&{backgroundColor:e.vars?`rgba(${n.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:DK(n.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),"small"===t.size&&{padding:5,fontSize:e.typography.pxToRem(18)},"large"===t.size&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${CG.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})})),NG=a.forwardRef((function(e,t){const r=$H({props:e,name:"MuiIconButton"}),{edge:n=!1,children:o,className:a,color:i="default",disabled:s=!1,disableFocusRipple:l=!1,size:u="medium"}=r,c=tU(r,OG),d=yV({},r,{edge:n,color:i,disabled:s,disableFocusRipple:l,size:u}),f=(e=>{const{classes:t,disabled:r,color:n,edge:o,size:a}=e;return QV({root:["root",r&&"disabled","default"!==n&&`color${_V(n)}`,o&&`edge${_V(o)}`,`size${_V(a)}`]},jG,t)})(d);return Hj.jsx(PG,yV({className:nU(f.root,a),centerRipple:!0,focusRipple:!l,disabled:s,ref:t,ownerState:d},c,{children:o}))}));var RG=NG;function TG(e){var{uiSchema:t,registry:r}=e,n=ov(e,["uiSchema","registry"]);const{translateString:o}=r;return Hj.jsx(RG,Object.assign({title:o(HC.AddItemButton)},n,{color:"primary"},{children:Hj.jsx(DH,{})}))}function AG(){const e=hK(xH);return e[_H]||e}var IG=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};const MG=SH(),FG=function(e={}){const{themeId:t,defaultTheme:r,defaultClassName:n="MuiBox-root",generateClassName:o}=e,i=cq("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(uK),s=a.forwardRef((function(e,a){const s=hK(r),l=yK(e),{className:u,component:c="div"}=l,d=tU(l,bK);return Hj.jsx(i,yV({as:c,ref:a,className:nU(u,o?o(n):n),theme:t&&s[t]||s},d))}));return s}({themeId:_H,defaultTheme:MG,defaultClassName:"MuiBox-root",generateClassName:YV.generate});var zG=FG;var DG=a.createContext();function LG(e){return ZV("MuiGrid",e)}const BG=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],VG=eU("MuiGrid",["root","container","item","zeroMinWidth",...[0,1,2,3,4,5,6,7,8,9,10].map((e=>`spacing-xs-${e}`)),...["column-reverse","column","row-reverse","row"].map((e=>`direction-xs-${e}`)),...["nowrap","wrap-reverse","wrap"].map((e=>`wrap-xs-${e}`)),...BG.map((e=>`grid-xs-${e}`)),...BG.map((e=>`grid-sm-${e}`)),...BG.map((e=>`grid-md-${e}`)),...BG.map((e=>`grid-lg-${e}`)),...BG.map((e=>`grid-xl-${e}`))]),UG=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function WG(e){const t=parseFloat(e);return`${t}${String(e).replace(String(t),"")||"px"}`}function qG({breakpoints:e,values:t}){let r="";Object.keys(t).forEach((e=>{""===r&&0!==t[e]&&(r=e)}));const n=Object.keys(e).sort(((t,r)=>e[t]-e[r]));return n.slice(0,n.indexOf(r))}const KG=jH("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=function(e,t,r={}){if(!e||e<=0)return[];if("string"==typeof e&&!Number.isNaN(Number(e))||"number"==typeof e)return[r[`spacing-xs-${String(e)}`]];const n=[];return t.forEach((t=>{const o=e[t];Number(o)>0&&n.push(r[`spacing-${t}-${String(o)}`])})),n}(i,u,t));const d=[];return u.forEach((e=>{const n=r[e];n&&d.push(t[`grid-${e}-${String(n)}`])})),[t.root,n&&t.container,a&&t.item,l&&t.zeroMinWidth,...c,"row"!==o&&t[`direction-xs-${String(o)}`],"wrap"!==s&&t[`wrap-xs-${String(s)}`],...d]}})((({ownerState:e})=>yV({boxSizing:"border-box"},e.container&&{display:"flex",flexWrap:"wrap",width:"100%"},e.item&&{margin:0},e.zeroMinWidth&&{minWidth:0},"wrap"!==e.wrap&&{flexWrap:e.wrap})),(function({theme:e,ownerState:t}){return gq({theme:e},wq({values:t.direction,breakpoints:e.breakpoints.values}),(e=>{const t={flexDirection:e};return 0===e.indexOf("column")&&(t[`& > .${VG.item}`]={maxWidth:"none"}),t}))}),(function({theme:e,ownerState:t}){const{container:r,rowSpacing:n}=t;let o={};if(r&&0!==n){const t=wq({values:n,breakpoints:e.breakpoints.values});let r;"object"==typeof t&&(r=qG({breakpoints:e.breakpoints.values,values:t})),o=gq({theme:e},t,((t,n)=>{var o;const a=e.spacing(t);return"0px"!==a?{marginTop:`-${WG(a)}`,[`& > .${VG.item}`]:{paddingTop:WG(a)}}:null!=(o=r)&&o.includes(n)?{}:{marginTop:0,[`& > .${VG.item}`]:{paddingTop:0}}}))}return o}),(function({theme:e,ownerState:t}){const{container:r,columnSpacing:n}=t;let o={};if(r&&0!==n){const t=wq({values:n,breakpoints:e.breakpoints.values});let r;"object"==typeof t&&(r=qG({breakpoints:e.breakpoints.values,values:t})),o=gq({theme:e},t,((t,n)=>{var o;const a=e.spacing(t);return"0px"!==a?{width:`calc(100% + ${WG(a)})`,marginLeft:`-${WG(a)}`,[`& > .${VG.item}`]:{paddingLeft:WG(a)}}:null!=(o=r)&&o.includes(n)?{}:{width:"100%",marginLeft:0,[`& > .${VG.item}`]:{paddingLeft:0}}}))}return o}),(function({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(!0===r)a={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if("auto"===r)a={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const i=wq({values:t.columns,breakpoints:e.breakpoints.values}),s="object"==typeof i?i[o]:i;if(null==s)return n;const l=Math.round(r/s*1e8)/1e6+"%";let u={};if(t.container&&t.item&&0!==t.columnSpacing){const r=e.spacing(t.columnSpacing);if("0px"!==r){const e=`calc(${l} + ${WG(r)})`;u={flexBasis:e,maxWidth:e}}}a=yV({flexBasis:l,flexGrow:0,maxWidth:l},u)}return 0===e.breakpoints.values[o]?Object.assign(n,a):n[e.breakpoints.up(o)]=a,n}),{})}));const HG=e=>{const{classes:t,container:r,direction:n,item:o,spacing:a,wrap:i,zeroMinWidth:s,breakpoints:l}=e;let u=[];r&&(u=function(e,t){if(!e||e<=0)return[];if("string"==typeof e&&!Number.isNaN(Number(e))||"number"==typeof e)return[`spacing-xs-${String(e)}`];const r=[];return t.forEach((t=>{const n=e[t];if(Number(n)>0){const e=`spacing-${t}-${String(n)}`;r.push(e)}})),r}(a,l));const c=[];l.forEach((t=>{const r=e[t];r&&c.push(`grid-${t}-${String(r)}`)}));return QV({root:["root",r&&"container",o&&"item",s&&"zeroMinWidth",...u,"row"!==n&&`direction-xs-${String(n)}`,"wrap"!==i&&`wrap-xs-${String(i)}`,...c]},LG,t)},GG=a.forwardRef((function(e,t){const r=$H({props:e,name:"MuiGrid"}),{breakpoints:n}=AG(),o=yK(r),{className:i,columns:s,columnSpacing:l,component:u="div",container:c=!1,direction:d="row",item:f=!1,rowSpacing:p,spacing:h=0,wrap:m="wrap",zeroMinWidth:v=!1}=o,g=tU(o,UG),y=p||h,b=l||h,w=a.useContext(DG),S=c?s||12:w,x={},_=yV({},g);n.keys.forEach((e=>{null!=g[e]&&(x[e]=g[e],delete _[e])}));const $=yV({},o,{columns:S,container:c,direction:d,item:f,rowSpacing:y,columnSpacing:b,wrap:m,zeroMinWidth:v,spacing:h},x,{breakpoints:n.keys}),k=HG($);return Hj.jsx(DG.Provider,{value:S,children:Hj.jsx(KG,yV({ownerState:$,className:nU(k.root,i),as:u,ref:t},_))})}));var QG=GG;function JG(e){return ZV("MuiPaper",e)}eU("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 YG=["className","component","elevation","square","variant"],XG=jH("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],!r.square&&t.rounded,"elevation"===r.variant&&t[`elevation${r.elevation}`]]}})((({theme:e,ownerState:t})=>{var r;return yV({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.divider}`},"elevation"===t.variant&&yV({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${DK("#fff",IG(t.elevation))}, ${DK("#fff",IG(t.elevation))})`},e.vars&&{backgroundImage:null==(r=e.vars.overlays)?void 0:r[t.elevation]}))})),ZG=a.forwardRef((function(e,t){const r=$H({props:e,name:"MuiPaper"}),{className:n,component:o="div",elevation:a=1,square:i=!1,variant:s="elevation"}=r,l=tU(r,YG),u=yV({},r,{component:o,elevation:a,square:i,variant:s}),c=(e=>{const{square:t,elevation:r,variant:n,classes:o}=e;return QV({root:["root",n,!t&&"rounded","elevation"===n&&`elevation${r}`]},JG,o)})(u);return Hj.jsx(XG,yV({as:o,ownerState:u,className:nU(c.root,n),ref:t},l))}));var eQ=ZG;function tQ(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:m,MoveDownButton:v,MoveUpButton:g,RemoveButton:y}=h.templates.ButtonTemplates,b={flex:1,paddingLeft:6,paddingRight:6,fontWeight:"bold",minWidth:0};return Hj.jsxs(QG,Object.assign({container:!0,alignItems:"center"},{children:[Hj.jsx(QG,Object.assign({item:!0,xs:!0,style:{overflow:"auto"}},{children:Hj.jsx(zG,Object.assign({mb:2},{children:Hj.jsx(eQ,Object.assign({elevation:2},{children:Hj.jsx(zG,Object.assign({p:2},{children:t}))}))}))})),n&&Hj.jsxs(QG,Object.assign({item:!0},{children:[(i||a)&&Hj.jsx(g,{style:b,disabled:r||f||!i,onClick:d(l,l-1),uiSchema:p,registry:h}),(i||a)&&Hj.jsx(v,{style:b,disabled:r||f||!a,onClick:d(l,l+1),uiSchema:p,registry:h}),o&&Hj.jsx(m,{style:b,disabled:r||f,onClick:u(l),uiSchema:p,registry:h}),s&&Hj.jsx(y,{style:b,disabled:r||f,onClick:c(l),uiSchema:p,registry:h})]}))]}))}function rQ(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=_d(o),p=Kj("ArrayFieldDescriptionTemplate",l,f),h=Kj("ArrayFieldItemTemplate",l,f),m=Kj("ArrayFieldTitleTemplate",l,f),{ButtonTemplates:{AddButton:v}}=l.templates;return Hj.jsx(eQ,Object.assign({elevation:2},{children:Hj.jsxs(zG,Object.assign({p:2},{children:[Hj.jsx(m,{idSchema:n,title:f.title||d,schema:c,uiSchema:o,required:u,registry:l}),Hj.jsx(p,{idSchema:n,description:f.description||c.description,schema:c,uiSchema:o,registry:l}),Hj.jsxs(QG,Object.assign({container:!0},{children:[a&&a.map((e=>{var{key:t}=e,r=ov(e,["key"]);return Hj.jsx(h,Object.assign({},r),t)})),t&&Hj.jsx(QG,Object.assign({container:!0,justifyContent:"flex-end"},{children:Hj.jsx(QG,Object.assign({item:!0},{children:Hj.jsx(zG,Object.assign({mt:2},{children:Hj.jsx(v,{className:"array-item-add",onClick:i,disabled:r||s,uiSchema:o,registry:l})}))}))}))]}),`array-item-list-${n.$id}`)]}))}))}function nQ(e){return"string"==typeof e}function oQ(e,t=[]){if(void 0===e)return{};const r={};return Object.keys(e).filter((r=>r.match(/^on[A-Z]/)&&"function"==typeof e[r]&&!t.includes(r))).forEach((t=>{r[t]=e[t]})),r}function aQ(e){if(void 0===e)return{};const t={};return Object.keys(e).filter((t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t]))).forEach((r=>{t[r]=e[r]})),t}const iQ=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function sQ(e){var t;const{elementType:r,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:a=!1}=e,i=tU(e,iQ),s=a?{}:function(e,t,r){return"function"==typeof e?e(t,r):e}(n,o),{props:l,internalRef:u}=function(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:o,className:a}=e;if(!t){const e=nU(null==o?void 0:o.className,null==n?void 0:n.className,a,null==r?void 0:r.className),t=yV({},null==r?void 0:r.style,null==o?void 0:o.style,null==n?void 0:n.style),i=yV({},r,o,n);return e.length>0&&(i.className=e),Object.keys(t).length>0&&(i.style=t),{props:i,internalRef:void 0}}const i=oQ(yV({},o,n)),s=aQ(n),l=aQ(o),u=t(i),c=nU(null==u?void 0:u.className,null==r?void 0:r.className,a,null==o?void 0:o.className,null==n?void 0:n.className),d=yV({},null==u?void 0:u.style,null==r?void 0:r.style,null==o?void 0:o.style,null==n?void 0:n.style),f=yV({},u,r,l,s);return c.length>0&&(f.className=c),Object.keys(d).length>0&&(f.style=d),{props:f,internalRef:u.ref}}(yV({},i,{externalSlotProps:s})),c=function(e,t,r){return void 0===e||nQ(e)?t:yV({},t,{ownerState:yV({},t.ownerState,r)})}(r,yV({},l,{ref:MV(u,null==s?void 0:s.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o);return c}const lQ=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function uQ(e){const t=[],r=[];return Array.from(e.querySelectorAll(lQ)).forEach(((e,n)=>{const o=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==o&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let r=t(`[name="${e.name}"]:checked`);return r||(r=t(`[name="${e.name}"]`)),r!==e}(e))}(e)&&(0===o?t.push(e):r.push({documentOrder:n,tabIndex:o,node:e}))})),r.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function cQ(){return!0}function dQ(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:o=!1,getTabbable:i=uQ,isEnabled:s=cQ,open:l}=e,u=a.useRef(!1),c=a.useRef(null),d=a.useRef(null),f=a.useRef(null),p=a.useRef(null),h=a.useRef(!1),m=a.useRef(null),v=MV(t.ref,m),g=a.useRef(null);a.useEffect((()=>{l&&m.current&&(h.current=!r)}),[r,l]),a.useEffect((()=>{if(!l||!m.current)return;const e=jV(m.current);return m.current.contains(e.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex","-1"),h.current&&m.current.focus()),()=>{o||(f.current&&f.current.focus&&(u.current=!0,f.current.focus()),f.current=null)}}),[l]),a.useEffect((()=>{if(!l||!m.current)return;const e=jV(m.current),t=t=>{g.current=t,!n&&s()&&"Tab"===t.key&&e.activeElement===m.current&&t.shiftKey&&(u.current=!0,d.current&&d.current.focus())},r=()=>{const t=m.current;if(null===t)return;if(!e.hasFocus()||!s()||u.current)return void(u.current=!1);if(t.contains(e.activeElement))return;if(n&&e.activeElement!==c.current&&e.activeElement!==d.current)return;if(e.activeElement!==p.current)p.current=null;else if(null!==p.current)return;if(!h.current)return;let r=[];if(e.activeElement!==c.current&&e.activeElement!==d.current||(r=i(m.current)),r.length>0){var o,a;const e=Boolean((null==(o=g.current)?void 0:o.shiftKey)&&"Tab"===(null==(a=g.current)?void 0:a.key)),t=r[0],n=r[r.length-1];"string"!=typeof t&&"string"!=typeof n&&(e?n.focus():t.focus())}else t.focus()};e.addEventListener("focusin",r),e.addEventListener("keydown",t,!0);const o=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&r()}),50);return()=>{clearInterval(o),e.removeEventListener("focusin",r),e.removeEventListener("keydown",t,!0)}}),[r,n,o,s,l,i]);const y=e=>{null===f.current&&(f.current=e.relatedTarget),h.current=!0};return Hj.jsxs(a.Fragment,{children:[Hj.jsx("div",{tabIndex:l?0:-1,onFocus:y,ref:c,"data-testid":"sentinelStart"}),a.cloneElement(t,{ref:v,onFocus:e=>{null===f.current&&(f.current=e.relatedTarget),h.current=!0,p.current=e.target;const r=t.props.onFocus;r&&r(e)}}),Hj.jsx("div",{tabIndex:l?0:-1,onFocus:y,ref:d,"data-testid":"sentinelEnd"})]})}const fQ=a.forwardRef((function(e,t){const{children:r,container:n,disablePortal:o=!1}=e,[i,s]=a.useState(null),l=MV(a.isValidElement(r)?r.ref:null,t);if(PV((()=>{o||s(function(e){return"function"==typeof e?e():e}(n)||document.body)}),[n,o]),PV((()=>{if(i&&!o)return OV(t,i),()=>{OV(t,null)}}),[t,i,o]),o){if(a.isValidElement(r)){const e={ref:l};return a.cloneElement(r,e)}return Hj.jsx(a.Fragment,{children:r})}return Hj.jsx(a.Fragment,{children:i?W.createPortal(r,i):i})}));function pQ(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function hQ(e){return parseInt(CV(e).getComputedStyle(e).paddingRight,10)||0}function mQ(e,t,r,n,o){const a=[t,r,...n];[].forEach.call(e.children,(e=>{const t=-1===a.indexOf(e),r=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),r="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||r}(e);t&&r&&pQ(e,o)}))}function vQ(e,t){let r=-1;return e.some(((e,n)=>!!t(e)&&(r=n,!0))),r}function gQ(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(function(e){const t=jV(e);return t.body===e?CV(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(n)){const e=KV(jV(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${hQ(n)+e}px`;const t=jV(n).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{r.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${hQ(t)+e}px`}))}let e;if(n.parentNode instanceof DocumentFragment)e=jV(n).body;else{const t=n.parentElement,r=CV(n);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===r.getComputedStyle(t).overflowY?t:n}r.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{r.forEach((({value:e,el:t,property:r})=>{e?t.style.setProperty(r,e):t.style.removeProperty(r)}))}}const yQ=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let r=this.modals.indexOf(e);if(-1!==r)return r;r=this.modals.length,this.modals.push(e),e.modalRef&&pQ(e.modalRef,!1);const n=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);mQ(t,e.mount,e.modalRef,n,!0);const o=vQ(this.containers,(e=>e.container===t));return-1!==o?(this.containers[o].modals.push(e),r):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:n}),r)}mount(e,t){const r=vQ(this.containers,(t=>-1!==t.modals.indexOf(e))),n=this.containers[r];n.restore||(n.restore=gQ(n,t))}remove(e,t=!0){const r=this.modals.indexOf(e);if(-1===r)return r;const n=vQ(this.containers,(t=>-1!==t.modals.indexOf(e))),o=this.containers[n];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(r,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&pQ(e.modalRef,t),mQ(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(n,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&pQ(e.modalRef,!1)}return r}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function bQ(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,manager:o=yQ,closeAfterTransition:i=!1,onTransitionEnter:s,onTransitionExited:l,children:u,onClose:c,open:d,rootRef:f}=e,p=a.useRef({}),h=a.useRef(null),m=a.useRef(null),v=MV(m,f),[g,y]=a.useState(!d),b=function(e){return!!e&&e.props.hasOwnProperty("in")}(u);let w=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(w=!1);const S=()=>(p.current.modalRef=m.current,p.current.mount=h.current,p.current),x=()=>{o.mount(S(),{disableScrollLock:n}),m.current&&(m.current.scrollTop=0)},_=IV((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||jV(h.current).body;o.add(S(),e),m.current&&x()})),$=a.useCallback((()=>o.isTopModal(S())),[o]),k=IV((e=>{h.current=e,e&&(d&&$()?x():m.current&&pQ(m.current,w))})),E=a.useCallback((()=>{o.remove(S(),w)}),[w,o]);a.useEffect((()=>()=>{E()}),[E]),a.useEffect((()=>{d?_():b&&i||E()}),[d,E,b,i,_]);const j=e=>t=>{var n;null==(n=e.onKeyDown)||n.call(e,t),"Escape"===t.key&&$()&&(r||(t.stopPropagation(),c&&c(t,"escapeKeyDown")))},C=e=>t=>{var r;null==(r=e.onClick)||r.call(e,t),t.target===t.currentTarget&&c&&c(t,"backdropClick")};return{getRootProps:(t={})=>{const r=oQ(e);delete r.onTransitionEnter,delete r.onTransitionExited;const n=yV({},r,t);return yV({role:"presentation"},n,{onKeyDown:j(n),ref:v})},getBackdropProps:(e={})=>yV({"aria-hidden":!0},e,{onClick:C(e),open:d}),getTransitionProps:()=>({onEnter:$V((()=>{y(!1),s&&s()}),null==u?void 0:u.props.onEnter),onExited:$V((()=>{y(!0),l&&l(),i&&E()}),null==u?void 0:u.props.onExited)}),rootRef:v,portalRef:k,isTopModal:$,exited:g,hasTransition:b}}function wQ(e,t){return e-t}function SQ(e,t,r){return null==e?t:Math.min(Math.max(t,e),r)}function xQ(e,t){var r;const{index:n}=null!=(r=e.reduce(((e,r,n)=>{const o=Math.abs(t-r);return null===e||o<e.distance||o===e.distance?{distance:o,index:n}:e}),null))?r:{};return n}function _Q(e,t){if(void 0!==t.current&&e.changedTouches){const r=e;for(let e=0;e<r.changedTouches.length;e+=1){const n=r.changedTouches[e];if(n.identifier===t.current)return{x:n.clientX,y:n.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function $Q(e,t,r){return 100*(e-t)/(r-t)}function kQ(e,t,r){const n=Math.round((e-r)/t)*t+r;return Number(n.toFixed(function(e){if(Math.abs(e)<1){const t=e.toExponential().split("e-"),r=t[0].split(".")[1];return(r?r.length:0)+parseInt(t[1],10)}const t=e.toString().split(".")[1];return t?t.length:0}(t)))}function EQ({values:e,newValue:t,index:r}){const n=e.slice();return n[r]=t,n.sort(wQ)}function jQ({sliderRef:e,activeIndex:t,setActive:r}){var n,o;const a=jV(e.current);var i;null!=(n=e.current)&&n.contains(a.activeElement)&&Number(null==a||null==(o=a.activeElement)?void 0:o.getAttribute("data-index"))===t||(null==(i=e.current)||i.querySelector(`[type="range"][data-index="${t}"]`).focus());r&&r(t)}function CQ(e,t){return"number"==typeof e&&"number"==typeof t?e===t:"object"==typeof e&&"object"==typeof t&&function(e,t,r=((e,t)=>e===t)){return e.length===t.length&&e.every(((e,n)=>r(e,t[n])))}(e,t)}const OQ={horizontal:{offset:e=>({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}%`})}},PQ=e=>e;let NQ;function RQ(){return void 0===NQ&&(NQ="undefined"==typeof CSS||"function"!=typeof CSS.supports||CSS.supports("touch-action","none")),NQ}function TQ(e){const{"aria-labelledby":t,defaultValue:r,disabled:n=!1,disableSwap:o=!1,isRtl:i=!1,marks:s=!1,max:l=100,min:u=0,name:c,onChange:d,onChangeCommitted:f,orientation:p="horizontal",rootRef:h,scale:m=PQ,step:v=1,tabIndex:g,value:y}=e,b=a.useRef(),[w,S]=a.useState(-1),[x,_]=a.useState(-1),[$,k]=a.useState(!1),E=a.useRef(0),[j,C]=AV({controlled:y,default:null!=r?r:u,name:"Slider"}),O=d&&((e,t,r)=>{const n=e.nativeEvent||e,o=new n.constructor(n.type,n);Object.defineProperty(o,"target",{writable:!0,value:{value:t,name:c}}),d(o,t,r)}),P=Array.isArray(j);let N=P?j.slice().sort(wQ):[j];N=N.map((e=>SQ(e,u,l)));const R=!0===s&&null!==v?[...Array(Math.floor((l-u)/v)+1)].map(((e,t)=>({value:u+v*t}))):s||[],T=R.map((e=>e.value)),{isFocusVisibleRef:A,onBlur:I,onFocus:M,ref:F}=qV(),[z,D]=a.useState(-1),L=a.useRef(),B=MV(F,L),V=MV(h,B),U=e=>t=>{var r;const n=Number(t.currentTarget.getAttribute("data-index"));M(t),!0===A.current&&D(n),_(n),null==e||null==(r=e.onFocus)||r.call(e,t)},W=e=>t=>{var r;I(t),!1===A.current&&D(-1),_(-1),null==e||null==(r=e.onBlur)||r.call(e,t)};PV((()=>{var e;n&&L.current.contains(document.activeElement)&&(null==(e=document.activeElement)||e.blur())}),[n]),n&&-1!==w&&S(-1),n&&-1!==z&&D(-1);const q=a.useRef();let K=p;i&&"horizontal"===p&&(K+="-reverse");const H=({finger:e,move:t=!1})=>{const{current:r}=L,{width:n,height:a,bottom:i,left:s}=r.getBoundingClientRect();let c,d;if(c=0===K.indexOf("vertical")?(i-e.y)/a:(e.x-s)/n,-1!==K.indexOf("-reverse")&&(c=1-c),d=function(e,t,r){return(r-t)*e+t}(c,u,l),v)d=kQ(d,v,u);else{const e=xQ(T,d);d=T[e]}d=SQ(d,u,l);let f=0;if(P){f=t?q.current:xQ(N,d),o&&(d=SQ(d,N[f-1]||-1/0,N[f+1]||1/0));const e=d;d=EQ({values:N,newValue:d,index:f}),o&&t||(f=d.indexOf(e),q.current=f)}return{newValue:d,activeIndex:f}},G=IV((e=>{const t=_Q(e,b);if(!t)return;if(E.current+=1,"mousemove"===e.type&&0===e.buttons)return void Q(e);const{newValue:r,activeIndex:n}=H({finger:t,move:!0});jQ({sliderRef:L,activeIndex:n,setActive:S}),C(r),!$&&E.current>2&&k(!0),O&&!CQ(r,j)&&O(e,r,n)})),Q=IV((e=>{const t=_Q(e,b);if(k(!1),!t)return;const{newValue:r}=H({finger:t,move:!0});S(-1),"touchend"===e.type&&_(-1),f&&f(e,r),b.current=void 0,Y()})),J=IV((e=>{if(n)return;RQ()||e.preventDefault();const t=e.changedTouches[0];null!=t&&(b.current=t.identifier);const r=_Q(e,b);if(!1!==r){const{newValue:t,activeIndex:n}=H({finger:r});jQ({sliderRef:L,activeIndex:n,setActive:S}),C(t),O&&!CQ(t,j)&&O(e,t,n)}E.current=0;const o=jV(L.current);o.addEventListener("touchmove",G),o.addEventListener("touchend",Q)})),Y=a.useCallback((()=>{const e=jV(L.current);e.removeEventListener("mousemove",G),e.removeEventListener("mouseup",Q),e.removeEventListener("touchmove",G),e.removeEventListener("touchend",Q)}),[Q,G]);a.useEffect((()=>{const{current:e}=L;return e.addEventListener("touchstart",J,{passive:RQ()}),()=>{e.removeEventListener("touchstart",J,{passive:RQ()}),Y()}}),[Y,J]),a.useEffect((()=>{n&&Y()}),[n,Y]);const X=$Q(P?N[0]:u,u,l),Z=$Q(N[N.length-1],u,l)-X,ee=e=>t=>{var r;null==(r=e.onMouseLeave)||r.call(e,t),_(-1)};return{active:w,axis:K,axisProps:OQ,dragging:$,focusedThumbIndex:z,getHiddenInputProps:(r={})=>{var a;const s=oQ(r);var d;const h=yV({},s,{onChange:(d=s||{},e=>{var t;null==(t=d.onChange)||t.call(d,e);const r=Number(e.currentTarget.getAttribute("data-index")),n=N[r],a=T.indexOf(n);let i=e.target.valueAsNumber;if(R&&null==v){const e=T[T.length-1];i=i>e?e:i<T[0]?T[0]:i<n?T[a-1]:T[a+1]}if(i=SQ(i,u,l),P){o&&(i=SQ(i,N[r-1]||-1/0,N[r+1]||1/0));const e=i;i=EQ({values:N,newValue:i,index:r});let t=r;o||(t=i.indexOf(e)),jQ({sliderRef:L,activeIndex:t})}C(i),D(r),O&&!CQ(i,j)&&O(e,i,r),f&&f(e,i)}),onFocus:U(s||{}),onBlur:W(s||{})});return yV({tabIndex:g,"aria-labelledby":t,"aria-orientation":p,"aria-valuemax":m(l),"aria-valuemin":m(u),name:c,type:"range",min:e.min,max:e.max,step:null===e.step&&e.marks?"any":null!=(a=e.step)?a:void 0,disabled:n},r,h,{style:yV({},HV,{direction:i?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:(e={})=>{const t=oQ(e);var r;const o=yV({},t,{onMouseDown:(r=t||{},e=>{var t;if(null==(t=r.onMouseDown)||t.call(r,e),n)return;if(e.defaultPrevented)return;if(0!==e.button)return;e.preventDefault();const o=_Q(e,b);if(!1!==o){const{newValue:t,activeIndex:r}=H({finger:o});jQ({sliderRef:L,activeIndex:r,setActive:S}),C(t),O&&!CQ(t,j)&&O(e,t,r)}E.current=0;const a=jV(L.current);a.addEventListener("mousemove",G),a.addEventListener("mouseup",Q)})});return yV({},e,{ref:V},o)},getThumbProps:(e={})=>{const t=oQ(e);var r;return yV({},e,t,{onMouseOver:(r=t||{},e=>{var t;null==(t=r.onMouseOver)||t.call(r,e);const n=Number(e.currentTarget.getAttribute("data-index"));_(n)}),onMouseLeave:ee(t||{})})},marks:R,open:x,range:P,rootRef:V,trackLeap:Z,trackOffset:X,values:N,getThumbStyle:e=>({pointerEvents:-1!==w&&w!==e?"none":void 0})}}const AQ=["onChange","maxRows","minRows","style","value"];function IQ(e){return parseInt(e,10)||0}const MQ={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function FQ(e){return null==e||0===Object.keys(e).length||0===e.outerHeightStyle&&!e.overflow}const zQ=a.forwardRef((function(e,t){const{onChange:r,maxRows:n,minRows:o=1,style:i,value:s}=e,l=tU(e,AQ),{current:u}=a.useRef(null!=s),c=a.useRef(null),d=MV(t,c),f=a.useRef(null),p=a.useRef(0),[h,m]=a.useState({outerHeightStyle:0}),v=a.useCallback((()=>{const t=c.current,r=CV(t).getComputedStyle(t);if("0px"===r.width)return{outerHeightStyle:0};const a=f.current;a.style.width=r.width,a.value=t.value||e.placeholder||"x","\n"===a.value.slice(-1)&&(a.value+=" ");const i=r.boxSizing,s=IQ(r.paddingBottom)+IQ(r.paddingTop),l=IQ(r.borderBottomWidth)+IQ(r.borderTopWidth),u=a.scrollHeight;a.value="x";const d=a.scrollHeight;let p=u;o&&(p=Math.max(Number(o)*d,p)),n&&(p=Math.min(Number(n)*d,p)),p=Math.max(p,d);return{outerHeightStyle:p+("border-box"===i?s+l:0),overflow:Math.abs(p-u)<=1}}),[n,o,e.placeholder]),g=(e,t)=>{const{outerHeightStyle:r,overflow:n}=t;return p.current<20&&(r>0&&Math.abs((e.outerHeightStyle||0)-r)>1||e.overflow!==n)?(p.current+=1,{overflow:n,outerHeightStyle:r}):e},y=a.useCallback((()=>{const e=v();FQ(e)||m((t=>g(t,e)))}),[v]);PV((()=>{const e=()=>{p.current=0,(()=>{const e=v();FQ(e)||W.flushSync((()=>{m((t=>g(t,e)))}))})()};const t=kV(e),r=c.current,n=CV(r);let o;return n.addEventListener("resize",t),"undefined"!=typeof ResizeObserver&&(o=new ResizeObserver(e),o.observe(r)),()=>{t.clear(),cancelAnimationFrame(undefined),n.removeEventListener("resize",t),o&&o.disconnect()}}),[v]),PV((()=>{y()})),a.useEffect((()=>{p.current=0}),[s]);return Hj.jsxs(a.Fragment,{children:[Hj.jsx("textarea",yV({value:s,onChange:e=>{p.current=0,u||y(),r&&r(e)},ref:d,rows:o,style:yV({height:h.outerHeightStyle,overflow:h.overflow?"hidden":void 0},i)},l)),Hj.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:f,tabIndex:-1,style:yV({},MQ,i,{paddingTop:0,paddingBottom:0})})]})}));function DQ({props:e,states:t,muiFormControl:r}){return t.reduce(((t,n)=>(t[n]=e[n],r&&void 0===e[n]&&(t[n]=r[n]),t)),{})}var LQ=a.createContext(void 0);function BQ(){return a.useContext(LQ)}function VQ(e){return Hj.jsx(mK,yV({},e,{defaultTheme:xH,themeId:_H}))}function UQ(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function WQ(e,t=!1){return e&&(UQ(e.value)&&""!==e.value||t&&UQ(e.defaultValue)&&""!==e.defaultValue)}function qQ(e){return ZV("MuiInputBase",e)}var KQ=eU("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);const HQ=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],GQ=(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,"small"===r.size&&t.sizeSmall,r.multiline&&t.multiline,r.color&&t[`color${_V(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},QQ=(e,t)=>{const{ownerState:r}=e;return[t.input,"small"===r.size&&t.inputSizeSmall,r.multiline&&t.inputMultiline,"search"===r.type&&t.inputTypeSearch,r.startAdornment&&t.inputAdornedStart,r.endAdornment&&t.inputAdornedEnd,r.hiddenLabel&&t.inputHiddenLabel]},JQ=jH("div",{name:"MuiInputBase",slot:"Root",overridesResolver:GQ})((({theme:e,ownerState:t})=>yV({},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",[`&.${KQ.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&yV({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),YQ=jH("input",{name:"MuiInputBase",slot:"Input",overridesResolver:QQ})((({theme:e,ownerState:t})=>{const r="light"===e.palette.mode,n=yV({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},a=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5};return yV({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%",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":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${KQ.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},[`&.${KQ.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},"small"===t.size&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},"search"===t.type&&{MozAppearance:"textfield"})})),XQ=Hj.jsx(VQ,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),ZQ=a.forwardRef((function(e,t){var r;const n=$H({props:e,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:i,autoFocus:s,className:l,components:u={},componentsProps:c={},defaultValue:d,disabled:f,disableInjectingGlobalStyles:p,endAdornment:h,fullWidth:m=!1,id:v,inputComponent:g="input",inputProps:y={},inputRef:b,maxRows:w,minRows:S,multiline:x=!1,name:_,onBlur:$,onChange:k,onClick:E,onFocus:j,onKeyDown:C,onKeyUp:O,placeholder:P,readOnly:N,renderSuffix:R,rows:T,slotProps:A={},slots:I={},startAdornment:M,type:F="text",value:z}=n,D=tU(n,HQ),L=null!=y.value?y.value:z,{current:B}=a.useRef(null!=L),V=a.useRef(),U=a.useCallback((e=>{}),[]),W=MV(V,b,y.ref,U),[q,K]=a.useState(!1),H=BQ(),G=DQ({props:n,muiFormControl:H,states:["color","disabled","error","hiddenLabel","size","required","filled"]});G.focused=H?H.focused:q,a.useEffect((()=>{!H&&f&&q&&(K(!1),$&&$())}),[H,f,q,$]);const Q=H&&H.onFilled,J=H&&H.onEmpty,Y=a.useCallback((e=>{WQ(e)?Q&&Q():J&&J()}),[Q,J]);PV((()=>{B&&Y({value:L})}),[L,Y,B]);a.useEffect((()=>{Y(V.current)}),[]);let X=g,Z=y;x&&"input"===X&&(Z=yV(T?{type:void 0,minRows:T,maxRows:T}:{type:void 0,maxRows:w,minRows:S},Z),X=zQ);a.useEffect((()=>{H&&H.setAdornedStart(Boolean(M))}),[H,M]);const ee=yV({},n,{color:G.color||"primary",disabled:G.disabled,endAdornment:h,error:G.error,focused:G.focused,formControl:H,fullWidth:m,hiddenLabel:G.hiddenLabel,multiline:x,size:G.size,startAdornment:M,type:F}),te=(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;return QV({root:["root",`color${_V(r)}`,n&&"disabled",o&&"error",l&&"fullWidth",i&&"focused",s&&"formControl",f&&"medium"!==f&&`size${_V(f)}`,c&&"multiline",p&&"adornedStart",a&&"adornedEnd",u&&"hiddenLabel",d&&"readOnly"],input:["input",n&&"disabled","search"===h&&"inputTypeSearch",c&&"inputMultiline","small"===f&&"inputSizeSmall",u&&"inputHiddenLabel",p&&"inputAdornedStart",a&&"inputAdornedEnd",d&&"readOnly"]},qQ,t)})(ee),re=I.root||u.Root||JQ,ne=A.root||c.root||{},oe=I.input||u.Input||YQ;return Z=yV({},Z,null!=(r=A.input)?r:c.input),Hj.jsxs(a.Fragment,{children:[!p&&XQ,Hj.jsxs(re,yV({},ne,!nQ(re)&&{ownerState:yV({},ee,ne.ownerState)},{ref:t,onClick:e=>{V.current&&e.currentTarget===e.target&&V.current.focus(),E&&E(e)}},D,{className:nU(te.root,ne.className,l,N&&"MuiInputBase-readOnly"),children:[M,Hj.jsx(LQ.Provider,{value:null,children:Hj.jsx(oe,yV({ownerState:ee,"aria-invalid":G.error,"aria-describedby":o,autoComplete:i,autoFocus:s,defaultValue:d,disabled:G.disabled,id:v,onAnimationStart:e=>{Y("mui-auto-fill-cancel"===e.animationName?V.current:{value:"x"})},name:_,placeholder:P,readOnly:N,required:G.required,rows:T,value:L,onKeyDown:C,onKeyUp:O,type:F},Z,!nQ(oe)&&{as:X,ownerState:yV({},ee,Z.ownerState)},{ref:W,className:nU(te.input,Z.className,N&&"MuiInputBase-readOnly"),onBlur:e=>{$&&$(e),y.onBlur&&y.onBlur(e),H&&H.onBlur?H.onBlur(e):K(!1)},onChange:(e,...t)=>{if(!B){const t=e.target||V.current;if(null==t)throw new Error(xV(1));Y({value:t.value})}y.onChange&&y.onChange(e,...t),k&&k(e,...t)},onFocus:e=>{G.disabled?e.stopPropagation():(j&&j(e),y.onFocus&&y.onFocus(e),H&&H.onFocus?H.onFocus(e):K(!0))}}))}),h,R?R(yV({},G,{startAdornment:M})):null]}))]})}));var eJ=ZQ;function tJ(e){return ZV("MuiInput",e)}var rJ=yV({},KQ,eU("MuiInput",["root","underline","input"]));const nJ=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],oJ=jH(JQ,{shouldForwardProp:e=>kH(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...GQ(e,t),!r.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{let r="light"===e.palette.mode?"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})`),yV({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,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"},[`&.${rJ.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${rJ.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(.${rJ.disabled}, .${rJ.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${rJ.disabled}:before`]:{borderBottomStyle:"dotted"}})})),aJ=jH(YQ,{name:"MuiInput",slot:"Input",overridesResolver:QQ})({}),iJ=a.forwardRef((function(e,t){var r,n,o,a;const i=$H({props:e,name:"MuiInput"}),{disableUnderline:s,components:l={},componentsProps:u,fullWidth:c=!1,inputComponent:d="input",multiline:f=!1,slotProps:p,slots:h={},type:m="text"}=i,v=tU(i,nJ),g=(e=>{const{classes:t,disableUnderline:r}=e;return yV({},t,QV({root:["root",!r&&"underline"],input:["input"]},tJ,t))})(i),y={root:{ownerState:{disableUnderline:s}}},b=(null!=p?p:u)?SV(null!=p?p:u,y):y,w=null!=(r=null!=(n=h.root)?n:l.Root)?r:oJ,S=null!=(o=null!=(a=h.input)?a:l.Input)?o:aJ;return Hj.jsx(eJ,yV({slots:{root:w,input:S},slotProps:b,fullWidth:c,inputComponent:d,multiline:f,ref:t,type:m},v,{classes:g}))}));iJ.muiName="Input";var sJ=iJ;function lJ(e){return ZV("MuiFilledInput",e)}var uJ=yV({},KQ,eU("MuiFilledInput",["root","underline","input"]));const cJ=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],dJ=jH(JQ,{shouldForwardProp:e=>kH(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...GQ(e,t),!r.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{var r;const n="light"===e.palette.mode,o=n?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",a=n?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",i=n?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=n?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return yV({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a,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:i,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a}},[`&.${uJ.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a},[`&.${uJ.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${null==(r=(e.vars||e).palette[t.color||"primary"])?void 0:r.main}`,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"},[`&.${uJ.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${uJ.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})`:o}`,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(.${uJ.disabled}, .${uJ.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${uJ.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&yV({padding:"25px 12px 8px"},"small"===t.size&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17}))})),fJ=jH(YQ,{name:"MuiFilledInput",slot:"Input",overridesResolver:QQ})((({theme:e,ownerState:t})=>yV({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?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"}}},"small"===t.size&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&"small"===t.size&&{paddingTop:8,paddingBottom:9}))),pJ=a.forwardRef((function(e,t){var r,n,o,a;const i=$H({props:e,name:"MuiFilledInput"}),{components:s={},componentsProps:l,fullWidth:u=!1,inputComponent:c="input",multiline:d=!1,slotProps:f,slots:p={},type:h="text"}=i,m=tU(i,cJ),v=yV({},i,{fullWidth:u,inputComponent:c,multiline:d,type:h}),g=(e=>{const{classes:t,disableUnderline:r}=e;return yV({},t,QV({root:["root",!r&&"underline"],input:["input"]},lJ,t))})(i),y={root:{ownerState:v},input:{ownerState:v}},b=(null!=f?f:l)?SV(null!=f?f:l,y):y,w=null!=(r=null!=(n=p.root)?n:s.Root)?r:dJ,S=null!=(o=null!=(a=p.input)?a:s.Input)?o:fJ;return Hj.jsx(eJ,yV({slots:{root:w,input:S},componentsProps:b,fullWidth:u,inputComponent:c,multiline:d,ref:t,type:h},m,{classes:g}))}));pJ.muiName="Input";var hJ,mJ=pJ;const vJ=["children","classes","className","label","notched"],gJ=jH("fieldset")({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%"}),yJ=jH("legend")((({ownerState:e,theme:t})=>yV({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&yV({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})}))));function bJ(e){return ZV("MuiOutlinedInput",e)}var wJ=yV({},KQ,eU("MuiOutlinedInput",["root","notchedOutline","input"]));const SJ=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],xJ=jH(JQ,{shouldForwardProp:e=>kH(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:GQ})((({theme:e,ownerState:t})=>{const r="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return yV({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${wJ.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${wJ.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:r}},[`&.${wJ.focused} .${wJ.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${wJ.error} .${wJ.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${wJ.disabled} .${wJ.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&yV({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))})),_J=jH((function(e){const{className:t,label:r,notched:n}=e,o=tU(e,vJ),a=null!=r&&""!==r,i=yV({},e,{notched:n,withLabel:a});return Hj.jsx(gJ,yV({"aria-hidden":!0,className:t,ownerState:i},o,{children:Hj.jsx(yJ,{ownerState:i,children:a?Hj.jsx("span",{children:r}):hJ||(hJ=Hj.jsx("span",{className:"notranslate",children:""}))})}))}),{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})((({theme:e})=>{const t="light"===e.palette.mode?"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}})),$J=jH(YQ,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:QQ})((({theme:e,ownerState:t})=>yV({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?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"}}},"small"===t.size&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0}))),kJ=a.forwardRef((function(e,t){var r,n,o,i,s;const l=$H({props:e,name:"MuiOutlinedInput"}),{components:u={},fullWidth:c=!1,inputComponent:d="input",label:f,multiline:p=!1,notched:h,slots:m={},type:v="text"}=l,g=tU(l,SJ),y=(e=>{const{classes:t}=e;return yV({},t,QV({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},bJ,t))})(l),b=BQ(),w=DQ({props:l,muiFormControl:b,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),S=yV({},l,{color:w.color||"primary",disabled:w.disabled,error:w.error,focused:w.focused,formControl:b,fullWidth:c,hiddenLabel:w.hiddenLabel,multiline:p,size:w.size,type:v}),x=null!=(r=null!=(n=m.root)?n:u.Root)?r:xJ,_=null!=(o=null!=(i=m.input)?i:u.Input)?o:$J;return Hj.jsx(eJ,yV({slots:{root:x,input:_},renderSuffix:e=>Hj.jsx(_J,{ownerState:S,className:y.notchedOutline,label:null!=f&&""!==f&&w.required?s||(s=Hj.jsxs(a.Fragment,{children:[f," ","*"]})):f,notched:void 0!==h?h:Boolean(e.startAdornment||e.filled||e.focused)}),fullWidth:c,inputComponent:d,multiline:p,ref:t,type:v},g,{classes:yV({},y,{notchedOutline:null})}))}));kJ.muiName="Input";var EJ=kJ;function jJ(e){return ZV("MuiFormLabel",e)}var CJ=eU("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]);const OJ=["children","className","color","component","disabled","error","filled","focused","required"],PJ=jH("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>yV({},t.root,"secondary"===e.color&&t.colorSecondary,e.filled&&t.filled)})((({theme:e,ownerState:t})=>yV({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${CJ.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${CJ.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${CJ.error}`]:{color:(e.vars||e).palette.error.main}}))),NJ=jH("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})((({theme:e})=>({[`&.${CJ.error}`]:{color:(e.vars||e).palette.error.main}}))),RJ=a.forwardRef((function(e,t){const r=$H({props:e,name:"MuiFormLabel"}),{children:n,className:o,component:a="label"}=r,i=tU(r,OJ),s=DQ({props:r,muiFormControl:BQ(),states:["color","required","focused","disabled","error","filled"]}),l=yV({},r,{color:s.color||"primary",component:a,disabled:s.disabled,error:s.error,filled:s.filled,focused:s.focused,required:s.required}),u=(e=>{const{classes:t,color:r,focused:n,disabled:o,error:a,filled:i,required:s}=e;return QV({root:["root",`color${_V(r)}`,o&&"disabled",a&&"error",i&&"filled",n&&"focused",s&&"required"],asterisk:["asterisk",a&&"error"]},jJ,t)})(l);return Hj.jsxs(PJ,yV({as:a,ownerState:l,className:nU(u.root,o),ref:t},i,{children:[n,s.required&&Hj.jsxs(NJ,{ownerState:l,"aria-hidden":!0,className:u.asterisk,children:[" ","*"]})]}))}));var TJ=RJ;function AJ(e){return ZV("MuiInputLabel",e)}eU("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const IJ=["disableAnimation","margin","shrink","variant","className"],MJ=jH(TJ,{shouldForwardProp:e=>kH(e)||"classes"===e,name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${CJ.asterisk}`]:t.asterisk},t.root,r.formControl&&t.formControl,"small"===r.size&&t.sizeSmall,r.shrink&&t.shrink,!r.disableAnimation&&t.animated,t[r.variant]]}})((({theme:e,ownerState:t})=>yV({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},"small"===t.size&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},"filled"===t.variant&&yV({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===t.size&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&yV({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},"small"===t.size&&{transform:"translate(12px, 4px) scale(0.75)"})),"outlined"===t.variant&&yV({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===t.size&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"})))),FJ=a.forwardRef((function(e,t){const r=$H({name:"MuiInputLabel",props:e}),{disableAnimation:n=!1,shrink:o,className:a}=r,i=tU(r,IJ),s=BQ();let l=o;void 0===l&&s&&(l=s.filled||s.focused||s.adornedStart);const u=DQ({props:r,muiFormControl:s,states:["size","variant","required"]}),c=yV({},r,{disableAnimation:n,formControl:s,shrink:l,size:u.size,variant:u.variant,required:u.required}),d=(e=>{const{classes:t,formControl:r,size:n,shrink:o,disableAnimation:a,variant:i,required:s}=e;return yV({},t,QV({root:["root",r&&"formControl",!a&&"animated",o&&"shrink",n&&"normal"!==n&&`size${_V(n)}`,i],asterisk:[s&&"asterisk"]},AJ,t))})(c);return Hj.jsx(MJ,yV({"data-shrink":l,ownerState:c,ref:t,className:nU(d.root,a)},i,{classes:d}))}));var zJ=FJ;function DJ(e){return ZV("MuiFormControl",e)}eU("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const LJ=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],BJ=jH("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>yV({},t.root,t[`margin${_V(e.margin)}`],e.fullWidth&&t.fullWidth)})((({ownerState:e})=>yV({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},"normal"===e.margin&&{marginTop:16,marginBottom:8},"dense"===e.margin&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"}))),VJ=a.forwardRef((function(e,t){const r=$H({props:e,name:"MuiFormControl"}),{children:n,className:o,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:m="medium",variant:v="outlined"}=r,g=tU(r,LJ),y=yV({},r,{color:i,component:s,disabled:l,error:u,fullWidth:d,hiddenLabel:f,margin:p,required:h,size:m,variant:v}),b=(e=>{const{classes:t,margin:r,fullWidth:n}=e;return QV({root:["root","none"!==r&&`margin${_V(r)}`,n&&"fullWidth"]},DJ,t)})(y),[w,S]=a.useState((()=>{let e=!1;return n&&a.Children.forEach(n,(t=>{if(!EV(t,["Input","Select"]))return;const r=EV(t,["Select"])?t.props.input:t;r&&r.props.startAdornment&&(e=!0)})),e})),[x,_]=a.useState((()=>{let e=!1;return n&&a.Children.forEach(n,(t=>{EV(t,["Input","Select"])&&(WQ(t.props,!0)||WQ(t.props.inputProps,!0))&&(e=!0)})),e})),[$,k]=a.useState(!1);l&&$&&k(!1);const E=void 0===c||l?$:c;let j;const C=a.useMemo((()=>({adornedStart:w,setAdornedStart:S,color:i,disabled:l,error:u,filled:x,focused:E,fullWidth:d,hiddenLabel:f,size:m,onBlur:()=>{k(!1)},onEmpty:()=>{_(!1)},onFilled:()=>{_(!0)},onFocus:()=>{k(!0)},registerEffect:j,required:h,variant:v})),[w,i,l,u,x,E,d,f,j,h,m,v]);return Hj.jsx(LQ.Provider,{value:C,children:Hj.jsx(BJ,yV({as:s,ownerState:y,className:nU(b.root,o),ref:t},g,{children:n}))})}));var UJ=VJ;function WJ(e){return ZV("MuiFormHelperText",e)}var qJ,KJ=eU("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);const HJ=["children","className","component","disabled","error","filled","focused","margin","required","variant"],GJ=jH("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.size&&t[`size${_V(r.size)}`],r.contained&&t.contained,r.filled&&t.filled]}})((({theme:e,ownerState:t})=>yV({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${KJ.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${KJ.error}`]:{color:(e.vars||e).palette.error.main}},"small"===t.size&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14}))),QJ=a.forwardRef((function(e,t){const r=$H({props:e,name:"MuiFormHelperText"}),{children:n,className:o,component:a="p"}=r,i=tU(r,HJ),s=DQ({props:r,muiFormControl:BQ(),states:["variant","size","disabled","error","filled","focused","required"]}),l=yV({},r,{component:a,contained:"filled"===s.variant||"outlined"===s.variant,variant:s.variant,size:s.size,disabled:s.disabled,error:s.error,filled:s.filled,focused:s.focused,required:s.required}),u=(e=>{const{classes:t,contained:r,size:n,disabled:o,error:a,filled:i,focused:s,required:l}=e;return QV({root:["root",o&&"disabled",a&&"error",n&&`size${_V(n)}`,r&&"contained",s&&"focused",i&&"filled",l&&"required"]},WJ,t)})(l);return Hj.jsx(GJ,yV({as:a,ownerState:l,className:nU(u.root,o),ref:t},i,{children:" "===n?qJ||(qJ=Hj.jsx("span",{className:"notranslate",children:""})):n}))}));var JJ=QJ;var YJ=a.createContext({});function XJ(e){return ZV("MuiList",e)}eU("MuiList",["root","padding","dense","subheader"]);const ZJ=["children","className","component","dense","disablePadding","subheader"],eY=jH("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]}})((({ownerState:e})=>yV({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0}))),tY=a.forwardRef((function(e,t){const r=$H({props:e,name:"MuiList"}),{children:n,className:o,component:i="ul",dense:s=!1,disablePadding:l=!1,subheader:u}=r,c=tU(r,ZJ),d=a.useMemo((()=>({dense:s})),[s]),f=yV({},r,{component:i,dense:s,disablePadding:l}),p=(e=>{const{classes:t,disablePadding:r,dense:n,subheader:o}=e;return QV({root:["root",!r&&"padding",n&&"dense",o&&"subheader"]},XJ,t)})(f);return Hj.jsx(YJ.Provider,{value:d,children:Hj.jsxs(eY,yV({as:i,className:nU(p.root,o),ref:t,ownerState:f},c,{children:[u,n]}))})}));var rY=tY;const nY=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function oY(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function aY(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function iY(e,t){if(void 0===t)return!0;let r=e.innerText;return void 0===r&&(r=e.textContent),r=r.trim().toLowerCase(),0!==r.length&&(t.repeating?r[0]===t.keys[0]:0===r.indexOf(t.keys.join("")))}function sY(e,t,r,n,o,a){let i=!1,s=o(e,t,!!t&&r);for(;s;){if(s===e.firstChild){if(i)return!1;i=!0}const t=!n&&(s.disabled||"true"===s.getAttribute("aria-disabled"));if(s.hasAttribute("tabindex")&&iY(s,a)&&!t)return s.focus(),!0;s=o(e,s,r)}return!1}const lY=a.forwardRef((function(e,t){const{actions:r,autoFocus:n=!1,autoFocusItem:o=!1,children:i,className:s,disabledItemsFocusable:l=!1,disableListWrap:u=!1,onKeyDown:c,variant:d="selectedMenu"}=e,f=tU(e,nY),p=a.useRef(null),h=a.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});PV((()=>{n&&p.current.focus()}),[n]),a.useImperativeHandle(r,(()=>({adjustStyleForScrollbar:(e,t)=>{const r=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&r){const r=`${KV(jV(e))}px`;p.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=r,p.current.style.width=`calc(100% + ${r})`}return p.current}})),[]);const m=MV(p,t);let v=-1;a.Children.forEach(i,((e,t)=>{a.isValidElement(e)?(e.props.disabled||("selectedMenu"===d&&e.props.selected||-1===v)&&(v=t),v===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(v+=1,v>=i.length&&(v=-1))):v===t&&(v+=1,v>=i.length&&(v=-1))}));const g=a.Children.map(i,((e,t)=>{if(t===v){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===d&&(t.tabIndex=0),a.cloneElement(e,t)}return e}));return Hj.jsx(rY,yV({role:"menu",ref:m,className:s,onKeyDown:e=>{const t=p.current,r=e.key,n=jV(t).activeElement;if("ArrowDown"===r)e.preventDefault(),sY(t,n,u,l,oY);else if("ArrowUp"===r)e.preventDefault(),sY(t,n,u,l,aY);else if("Home"===r)e.preventDefault(),sY(t,null,u,l,oY);else if("End"===r)e.preventDefault(),sY(t,null,u,l,aY);else if(1===r.length){const o=h.current,a=r.toLowerCase(),i=performance.now();o.keys.length>0&&(i-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&a!==o.keys[0]&&(o.repeating=!1)),o.lastTime=i,o.keys.push(a);const s=n&&!o.repeating&&iY(n,o);o.previousKeyMatched&&(s||sY(t,n,!1,l,oY,o))?e.preventDefault():o.previousKeyMatched=!1}c&&c(e)},tabIndex:n?0:-1},f,{children:g}))}));var uY=lY;const cY=e=>e.scrollTop;function dY(e,t){var r,n;const{timeout:o,easing:a,style:i={}}=e;return{duration:null!=(r=i.transitionDuration)?r:"number"==typeof o?o:o[t.mode]||0,easing:null!=(n=i.transitionTimingFunction)?n:"object"==typeof a?a[t.mode]:a,delay:i.transitionDelay}}const fY=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function pY(e){return`scale(${e}, ${e**2})`}const hY={entering:{opacity:1,transform:pY(1)},entered:{opacity:1,transform:"none"}},mY="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),vY=a.forwardRef((function(e,t){const{addEndListener:r,appear:n=!0,children:o,easing:i,in:s,onEnter:l,onEntered:u,onEntering:c,onExit:d,onExited:f,onExiting:p,style:h,timeout:m="auto",TransitionComponent:v=eG}=e,g=tU(e,fY),y=a.useRef(),b=a.useRef(),w=AG(),S=a.useRef(null),x=MV(S,o.ref,t),_=e=>t=>{if(e){const r=S.current;void 0===t?e(r):e(r,t)}},$=_(c),k=_(((e,t)=>{cY(e);const{duration:r,delay:n,easing:o}=dY({style:h,timeout:m,easing:i},{mode:"enter"});let a;"auto"===m?(a=w.transitions.getAutoHeightDuration(e.clientHeight),b.current=a):a=r,e.style.transition=[w.transitions.create("opacity",{duration:a,delay:n}),w.transitions.create("transform",{duration:mY?a:.666*a,delay:n,easing:o})].join(","),l&&l(e,t)})),E=_(u),j=_(p),C=_((e=>{const{duration:t,delay:r,easing:n}=dY({style:h,timeout:m,easing:i},{mode:"exit"});let o;"auto"===m?(o=w.transitions.getAutoHeightDuration(e.clientHeight),b.current=o):o=t,e.style.transition=[w.transitions.create("opacity",{duration:o,delay:r}),w.transitions.create("transform",{duration:mY?o:.666*o,delay:mY?r:r||.333*o,easing:n})].join(","),e.style.opacity=0,e.style.transform=pY(.75),d&&d(e)})),O=_(f);return a.useEffect((()=>()=>{clearTimeout(y.current)}),[]),Hj.jsx(v,yV({appear:n,in:s,nodeRef:S,onEnter:k,onEntered:E,onEntering:$,onExit:C,onExited:O,onExiting:j,addEndListener:e=>{"auto"===m&&(y.current=setTimeout(e,b.current||0)),r&&r(S.current,e)},timeout:"auto"===m?null:m},g,{children:(e,t)=>a.cloneElement(o,yV({style:yV({opacity:0,transform:pY(.75),visibility:"exited"!==e||s?void 0:"hidden"},hY[e],h,o.props.style),ref:x},t))}))}));vY.muiSupportAuto=!0;var gY=vY;const yY=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],bY={entering:{opacity:1},entered:{opacity:1}},wY=a.forwardRef((function(e,t){const r=AG(),n={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:s,easing:l,in:u,onEnter:c,onEntered:d,onEntering:f,onExit:p,onExited:h,onExiting:m,style:v,timeout:g=n,TransitionComponent:y=eG}=e,b=tU(e,yY),w=a.useRef(null),S=MV(w,s.ref,t),x=e=>t=>{if(e){const r=w.current;void 0===t?e(r):e(r,t)}},_=x(f),$=x(((e,t)=>{cY(e);const n=dY({style:v,timeout:g,easing:l},{mode:"enter"});e.style.webkitTransition=r.transitions.create("opacity",n),e.style.transition=r.transitions.create("opacity",n),c&&c(e,t)})),k=x(d),E=x(m),j=x((e=>{const t=dY({style:v,timeout:g,easing:l},{mode:"exit"});e.style.webkitTransition=r.transitions.create("opacity",t),e.style.transition=r.transitions.create("opacity",t),p&&p(e)})),C=x(h);return Hj.jsx(y,yV({appear:i,in:u,nodeRef:w,onEnter:$,onEntered:k,onEntering:_,onExit:j,onExited:C,onExiting:E,addEndListener:e=>{o&&o(w.current,e)},timeout:g},b,{children:(e,t)=>a.cloneElement(s,yV({style:yV({opacity:0,visibility:"exited"!==e||u?void 0:"hidden"},bY[e],v,s.props.style),ref:S},t))}))}));var SY=wY;function xY(e){return ZV("MuiBackdrop",e)}eU("MuiBackdrop",["root","invisible"]);const _Y=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],$Y=jH("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})((({ownerState:e})=>yV({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"},e.invisible&&{backgroundColor:"transparent"}))),kY=a.forwardRef((function(e,t){var r,n,o;const a=$H({props:e,name:"MuiBackdrop"}),{children:i,className:s,component:l="div",components:u={},componentsProps:c={},invisible:d=!1,open:f,slotProps:p={},slots:h={},TransitionComponent:m=SY,transitionDuration:v}=a,g=tU(a,_Y),y=yV({},a,{component:l,invisible:d}),b=(e=>{const{classes:t,invisible:r}=e;return QV({root:["root",r&&"invisible"]},xY,t)})(y),w=null!=(r=p.root)?r:c.root;return Hj.jsx(m,yV({in:f,timeout:v},g,{children:Hj.jsx($Y,yV({"aria-hidden":!0},w,{as:null!=(n=null!=(o=h.root)?o:u.Root)?n:l,className:nU(b.root,s,null==w?void 0:w.className),ownerState:yV({},y,null==w?void 0:w.ownerState),classes:b,ref:t,children:i}))}))}));var EY=kY;function jY(e){return ZV("MuiModal",e)}eU("MuiModal",["root","hidden","backdrop"]);const CY=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],OY=jH("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})((({theme:e,ownerState:t})=>yV({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),PY=jH(EY,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),NY=a.forwardRef((function(e,t){var r,n,o,i,s,l;const u=$H({name:"MuiModal",props:e}),{BackdropComponent:c=PY,BackdropProps:d,className:f,closeAfterTransition:p=!1,children:h,container:m,component:v,components:g={},componentsProps:y={},disableAutoFocus:b=!1,disableEnforceFocus:w=!1,disableEscapeKeyDown:S=!1,disablePortal:x=!1,disableRestoreFocus:_=!1,disableScrollLock:$=!1,hideBackdrop:k=!1,keepMounted:E=!1,onBackdropClick:j,open:C,slotProps:O,slots:P}=u,N=tU(u,CY),R=yV({},u,{closeAfterTransition:p,disableAutoFocus:b,disableEnforceFocus:w,disableEscapeKeyDown:S,disablePortal:x,disableRestoreFocus:_,disableScrollLock:$,hideBackdrop:k,keepMounted:E}),{getRootProps:T,getBackdropProps:A,getTransitionProps:I,portalRef:M,isTopModal:F,exited:z,hasTransition:D}=bQ(yV({},R,{rootRef:t})),L=yV({},R,{exited:z}),B=(e=>{const{open:t,exited:r,classes:n}=e;return QV({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},jY,n)})(L),V={};if(void 0===h.props.tabIndex&&(V.tabIndex="-1"),D){const{onEnter:e,onExited:t}=I();V.onEnter=e,V.onExited=t}const U=null!=(r=null!=(n=null==P?void 0:P.root)?n:g.Root)?r:OY,W=null!=(o=null!=(i=null==P?void 0:P.backdrop)?i:g.Backdrop)?o:c,q=null!=(s=null==O?void 0:O.root)?s:y.root,K=null!=(l=null==O?void 0:O.backdrop)?l:y.backdrop,H=sQ({elementType:U,externalSlotProps:q,externalForwardedProps:N,getSlotProps:T,additionalProps:{ref:t,as:v},ownerState:L,className:nU(f,null==q?void 0:q.className,null==B?void 0:B.root,!L.open&&L.exited&&(null==B?void 0:B.hidden))}),G=sQ({elementType:W,externalSlotProps:K,additionalProps:d,getSlotProps:e=>A(yV({},e,{onClick:t=>{j&&j(t),null!=e&&e.onClick&&e.onClick(t)}})),className:nU(null==K?void 0:K.className,null==d?void 0:d.className,null==B?void 0:B.backdrop),ownerState:L});return E||C||D&&!z?Hj.jsx(fQ,{ref:M,container:m,disablePortal:x,children:Hj.jsxs(U,yV({},H,{children:[!k&&c?Hj.jsx(W,yV({},G)):null,Hj.jsx(dQ,{disableEnforceFocus:w,disableAutoFocus:b,disableRestoreFocus:_,isEnabled:F,open:C,children:a.cloneElement(h,V)})]}))}):null}));var RY=NY;function TY(e){return ZV("MuiPopover",e)}eU("MuiPopover",["root","paper"]);const AY=["onEntering"],IY=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],MY=["slotProps"];function FY(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.height/2:"bottom"===t&&(r=e.height),r}function zY(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.width/2:"right"===t&&(r=e.width),r}function DY(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function LY(e){return"function"==typeof e?e():e}const BY=jH(RY,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),VY=jH(eQ,{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}),UY=a.forwardRef((function(e,t){var r,n,o;const i=$H({props:e,name:"MuiPopover"}),{action:s,anchorEl:l,anchorOrigin:u={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:d="anchorEl",children:f,className:p,container:h,elevation:m=8,marginThreshold:v=16,open:g,PaperProps:y={},slots:b,slotProps:w,transformOrigin:S={vertical:"top",horizontal:"left"},TransitionComponent:x=gY,transitionDuration:_="auto",TransitionProps:{onEntering:$}={},disableScrollLock:k=!1}=i,E=tU(i.TransitionProps,AY),j=tU(i,IY),C=null!=(r=null==w?void 0:w.paper)?r:y,O=a.useRef(),P=MV(O,C.ref),N=yV({},i,{anchorOrigin:u,anchorReference:d,elevation:m,marginThreshold:v,externalPaperSlotProps:C,transformOrigin:S,TransitionComponent:x,transitionDuration:_,TransitionProps:E}),R=(e=>{const{classes:t}=e;return QV({root:["root"],paper:["paper"]},TY,t)})(N),T=a.useCallback((()=>{if("anchorPosition"===d)return c;const e=LY(l),t=(e&&1===e.nodeType?e:jV(O.current).body).getBoundingClientRect();return{top:t.top+FY(t,u.vertical),left:t.left+zY(t,u.horizontal)}}),[l,u.horizontal,u.vertical,c,d]),A=a.useCallback((e=>({vertical:FY(e,S.vertical),horizontal:zY(e,S.horizontal)})),[S.horizontal,S.vertical]),I=a.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},r=A(t);if("none"===d)return{top:null,left:null,transformOrigin:DY(r)};const n=T();let o=n.top-r.vertical,a=n.left-r.horizontal;const i=o+t.height,s=a+t.width,u=CV(LY(l)),c=u.innerHeight-v,f=u.innerWidth-v;if(null!==v&&o<v){const e=o-v;o-=e,r.vertical+=e}else if(null!==v&&i>c){const e=i-c;o-=e,r.vertical+=e}if(null!==v&&a<v){const e=a-v;a-=e,r.horizontal+=e}else if(s>f){const e=s-f;a-=e,r.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(a)}px`,transformOrigin:DY(r)}}),[l,d,T,A,v]),[M,F]=a.useState(g),z=a.useCallback((()=>{const e=O.current;if(!e)return;const t=I(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,F(!0)}),[I]);a.useEffect((()=>(k&&window.addEventListener("scroll",z),()=>window.removeEventListener("scroll",z))),[l,k,z]);a.useEffect((()=>{g&&z()})),a.useImperativeHandle(s,(()=>g?{updatePosition:()=>{z()}}:null),[g,z]),a.useEffect((()=>{if(!g)return;const e=kV((()=>{z()})),t=CV(l);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[l,g,z]);let D=_;"auto"!==_||x.muiSupportAuto||(D=void 0);const L=h||(l?jV(LY(l)).body:void 0),B=null!=(n=null==b?void 0:b.root)?n:BY,V=null!=(o=null==b?void 0:b.paper)?o:VY,U=sQ({elementType:V,externalSlotProps:yV({},C,{style:M?C.style:yV({},C.style,{opacity:0})}),additionalProps:{elevation:m,ref:P},ownerState:N,className:nU(R.paper,null==C?void 0:C.className)}),W=sQ({elementType:B,externalSlotProps:(null==w?void 0:w.root)||{},externalForwardedProps:j,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:L,open:g},ownerState:N,className:nU(R.root,p)}),{slotProps:q}=W,K=tU(W,MY);return Hj.jsx(B,yV({},K,!nQ(B)&&{slotProps:q,disableScrollLock:k},{children:Hj.jsx(x,yV({appear:!0,in:g,onEntering:(e,t)=>{$&&$(e,t),z()},onExited:()=>{F(!1)},timeout:D},E,{children:Hj.jsx(V,yV({},U,{children:f}))}))}))}));var WY=UY;function qY(e){return ZV("MuiMenu",e)}eU("MuiMenu",["root","paper","list"]);const KY=["onEntering"],HY=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],GY={vertical:"top",horizontal:"right"},QY={vertical:"top",horizontal:"left"},JY=jH(WY,{shouldForwardProp:e=>kH(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),YY=jH(VY,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),XY=jH(uY,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),ZY=a.forwardRef((function(e,t){var r,n;const o=$H({props:e,name:"MuiMenu"}),{autoFocus:i=!0,children:s,className:l,disableAutoFocusItem:u=!1,MenuListProps:c={},onClose:d,open:f,PaperProps:p={},PopoverClasses:h,transitionDuration:m="auto",TransitionProps:{onEntering:v}={},variant:g="selectedMenu",slots:y={},slotProps:b={}}=o,w=tU(o.TransitionProps,KY),S=tU(o,HY),x=AG(),_="rtl"===x.direction,$=yV({},o,{autoFocus:i,disableAutoFocusItem:u,MenuListProps:c,onEntering:v,PaperProps:p,transitionDuration:m,TransitionProps:w,variant:g}),k=(e=>{const{classes:t}=e;return QV({root:["root"],paper:["paper"],list:["list"]},qY,t)})($),E=i&&!u&&f,j=a.useRef(null);let C=-1;a.Children.map(s,((e,t)=>{a.isValidElement(e)&&(e.props.disabled||("selectedMenu"===g&&e.props.selected||-1===C)&&(C=t))}));const O=null!=(r=y.paper)?r:YY,P=null!=(n=b.paper)?n:p,N=sQ({elementType:y.root,externalSlotProps:b.root,ownerState:$,className:[k.root,l]}),R=sQ({elementType:O,externalSlotProps:P,ownerState:$,className:k.paper});return Hj.jsx(JY,yV({onClose:d,anchorOrigin:{vertical:"bottom",horizontal:_?"right":"left"},transformOrigin:_?GY:QY,slots:{paper:O,root:y.root},slotProps:{root:N,paper:R},open:f,ref:t,transitionDuration:m,TransitionProps:yV({onEntering:(e,t)=>{j.current&&j.current.adjustStyleForScrollbar(e,x),v&&v(e,t)}},w),ownerState:$},S,{classes:h,children:Hj.jsx(XY,yV({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),d&&d(e,"tabKeyDown"))},actions:j,autoFocus:i&&(-1===C||u),autoFocusItem:E,variant:g},c,{className:nU(k.list,c.className),children:s}))}))}));var eX=ZY;function tX(e){return ZV("MuiNativeSelect",e)}var rX=eU("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);const nX=["className","disabled","error","IconComponent","inputRef","variant"],oX=({ownerState:e,theme:t})=>yV({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":yV({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:"light"===t.palette.mode?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${rX.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},"filled"===e.variant&&{"&&&":{paddingRight:32}},"outlined"===e.variant&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),aX=jH("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:kH,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${rX.multiple}`]:t.multiple}]}})(oX),iX=({ownerState:e,theme:t})=>yV({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${rX.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),sX=jH("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${_V(r.variant)}`],r.open&&t.iconOpen]}})(iX),lX=a.forwardRef((function(e,t){const{className:r,disabled:n,error:o,IconComponent:i,inputRef:s,variant:l="standard"}=e,u=tU(e,nX),c=yV({},e,{disabled:n,variant:l,error:o}),d=(e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:a,error:i}=e;return QV({select:["select",r,n&&"disabled",o&&"multiple",i&&"error"],icon:["icon",`icon${_V(r)}`,a&&"iconOpen",n&&"disabled"]},tX,t)})(c);return Hj.jsxs(a.Fragment,{children:[Hj.jsx(aX,yV({ownerState:c,className:nU(d.select,r),disabled:n,ref:s||t},u)),e.multiple?null:Hj.jsx(sX,{as:i,ownerState:c,className:d.icon})]})}));var uX=lX;function cX(e){return ZV("MuiSelect",e)}var dX,fX=eU("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);const pX=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],hX=jH("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${fX.select}`]:t.select},{[`&.${fX.select}`]:t[r.variant]},{[`&.${fX.error}`]:t.error},{[`&.${fX.multiple}`]:t.multiple}]}})(oX,{[`&.${fX.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),mX=jH("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${_V(r.variant)}`],r.open&&t.iconOpen]}})(iX),vX=jH("input",{shouldForwardProp:e=>EH(e)&&"classes"!==e,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 gX(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function yX(e){return null==e||"string"==typeof e&&!e.trim()}const bX=a.forwardRef((function(e,t){var r;const{"aria-describedby":n,"aria-label":o,autoFocus:i,autoWidth:s,children:l,className:u,defaultOpen:c,defaultValue:d,disabled:f,displayEmpty:p,error:h=!1,IconComponent:m,inputRef:v,labelId:g,MenuProps:y={},multiple:b,name:w,onBlur:S,onChange:x,onClose:_,onFocus:$,onOpen:k,open:E,readOnly:j,renderValue:C,SelectDisplayProps:O={},tabIndex:P,value:N,variant:R="standard"}=e,T=tU(e,pX),[A,I]=AV({controlled:N,default:d,name:"Select"}),[M,F]=AV({controlled:E,default:c,name:"Select"}),z=a.useRef(null),D=a.useRef(null),[L,B]=a.useState(null),{current:V}=a.useRef(null!=E),[U,W]=a.useState(),q=MV(t,v),K=a.useCallback((e=>{D.current=e,e&&B(e)}),[]),H=null==L?void 0:L.parentNode;a.useImperativeHandle(q,(()=>({focus:()=>{D.current.focus()},node:z.current,value:A})),[A]),a.useEffect((()=>{c&&M&&L&&!V&&(W(s?null:H.clientWidth),D.current.focus())}),[L,s]),a.useEffect((()=>{i&&D.current.focus()}),[i]),a.useEffect((()=>{if(!g)return;const e=jV(D.current).getElementById(g);if(e){const t=()=>{getSelection().isCollapsed&&D.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}}),[g]);const G=(e,t)=>{e?k&&k(t):_&&_(t),V||(W(s?null:H.clientWidth),F(e))},Q=a.Children.toArray(l),J=e=>t=>{let r;if(t.currentTarget.hasAttribute("tabindex")){if(b){r=Array.isArray(A)?A.slice():[];const t=A.indexOf(e.props.value);-1===t?r.push(e.props.value):r.splice(t,1)}else r=e.props.value;if(e.props.onClick&&e.props.onClick(t),A!==r&&(I(r),x)){const n=t.nativeEvent||t,o=new n.constructor(n.type,n);Object.defineProperty(o,"target",{writable:!0,value:{value:r,name:w}}),x(o,e)}b||G(!1,t)}},Y=null!==L&&M;let X,Z;delete T["aria-invalid"];const ee=[];let te=!1;(WQ({value:A})||p)&&(C?X=C(A):te=!0);const re=Q.map((e=>{if(!a.isValidElement(e))return null;let t;if(b){if(!Array.isArray(A))throw new Error(xV(2));t=A.some((t=>gX(t,e.props.value))),t&&te&&ee.push(e.props.children)}else t=gX(A,e.props.value),t&&te&&(Z=e.props.children);return a.cloneElement(e,{"aria-selected":t?"true":"false",onClick:J(e),onKeyUp:t=>{" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:t,value:void 0,"data-value":e.props.value})}));te&&(X=b?0===ee.length?null:ee.reduce(((e,t,r)=>(e.push(t),r<ee.length-1&&e.push(", "),e)),[]):Z);let ne,oe=U;!s&&V&&L&&(oe=H.clientWidth),ne=void 0!==P?P:f?null:0;const ae=O.id||(w?`mui-component-select-${w}`:void 0),ie=yV({},e,{variant:R,value:A,open:Y,error:h}),se=(e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:a,error:i}=e;return QV({select:["select",r,n&&"disabled",o&&"multiple",i&&"error"],icon:["icon",`icon${_V(r)}`,a&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]},cX,t)})(ie),le=yV({},y.PaperProps,null==(r=y.slotProps)?void 0:r.paper),ue=TV();return Hj.jsxs(a.Fragment,{children:[Hj.jsx(hX,yV({ref:K,tabIndex:ne,role:"combobox","aria-controls":ue,"aria-disabled":f?"true":void 0,"aria-expanded":Y?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[g,ae].filter(Boolean).join(" ")||void 0,"aria-describedby":n,onKeyDown:e=>{if(!j){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),G(!0,e))}},onMouseDown:f||j?null:e=>{0===e.button&&(e.preventDefault(),D.current.focus(),G(!0,e))},onBlur:e=>{!Y&&S&&(Object.defineProperty(e,"target",{writable:!0,value:{value:A,name:w}}),S(e))},onFocus:$},O,{ownerState:ie,className:nU(O.className,se.select,u),id:ae,children:yX(X)?dX||(dX=Hj.jsx("span",{className:"notranslate",children:""})):X})),Hj.jsx(vX,yV({"aria-invalid":h,value:Array.isArray(A)?A.join(","):A,name:w,ref:z,"aria-hidden":!0,onChange:e=>{const t=Q.find((t=>t.props.value===e.target.value));void 0!==t&&(I(t.props.value),x&&x(e,t))},tabIndex:-1,disabled:f,className:se.nativeInput,autoFocus:i,ownerState:ie},T)),Hj.jsx(mX,{as:m,className:se.icon,ownerState:ie}),Hj.jsx(eX,yV({id:`menu-${w||""}`,anchorEl:H,open:Y,onClose:e=>{G(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},y,{MenuListProps:yV({"aria-labelledby":g,role:"listbox","aria-multiselectable":b?"true":void 0,disableListWrap:!0,id:ue},y.MenuListProps),slotProps:yV({},y.slotProps,{paper:yV({},le,{style:yV({minWidth:oe},null!=le?le.style:null)})}),children:re}))]})}));var wX=bX,SX=TH(Hj.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");const xX=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],_X=["root"],$X={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>kH(e)&&"variant"!==e,slot:"Root"},kX=jH(sJ,$X)(""),EX=jH(EJ,$X)(""),jX=jH(mJ,$X)(""),CX=a.forwardRef((function(e,t){const r=$H({name:"MuiSelect",props:e}),{autoWidth:n=!1,children:o,classes:i={},className:s,defaultOpen:l=!1,displayEmpty:u=!1,IconComponent:c=SX,id:d,input:f,inputProps:p,label:h,labelId:m,MenuProps:v,multiple:g=!1,native:y=!1,onClose:b,onOpen:w,open:S,renderValue:x,SelectDisplayProps:_,variant:$="outlined"}=r,k=tU(r,xX),E=y?uX:wX,j=DQ({props:r,muiFormControl:BQ(),states:["variant","error"]}),C=j.variant||$,O=yV({},r,{variant:C,classes:i}),P=(e=>{const{classes:t}=e;return t})(O),N=tU(P,_X),R=f||{standard:Hj.jsx(kX,{ownerState:O}),outlined:Hj.jsx(EX,{label:h,ownerState:O}),filled:Hj.jsx(jX,{ownerState:O})}[C],T=MV(t,R.ref);return Hj.jsx(a.Fragment,{children:a.cloneElement(R,yV({inputComponent:E,inputProps:yV({children:o,error:j.error,IconComponent:c,variant:C,type:void 0,multiple:g},y?{id:d}:{autoWidth:n,defaultOpen:l,displayEmpty:u,labelId:m,MenuProps:v,onClose:b,onOpen:w,open:S,renderValue:x,SelectDisplayProps:yV({id:d},_)},p,{classes:p?SV(N,p.classes):N},f?f.props.inputProps:{})},g&&y&&"outlined"===C?{notched:!0}:{},{ref:T,className:nU(R.props.className,s,P.root)},!f&&{variant:C},k))})}));CX.muiName="Select";var OX=CX;function PX(e){return ZV("MuiTextField",e)}eU("MuiTextField",["root"]);const NX=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],RX={standard:sJ,filled:mJ,outlined:EJ},TX=jH(UJ,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),AX=a.forwardRef((function(e,t){const r=$H({props:e,name:"MuiTextField"}),{autoComplete:n,autoFocus:o=!1,children:a,className:i,color:s="primary",defaultValue:l,disabled:u=!1,error:c=!1,FormHelperTextProps:d,fullWidth:f=!1,helperText:p,id:h,InputLabelProps:m,inputProps:v,InputProps:g,inputRef:y,label:b,maxRows:w,minRows:S,multiline:x=!1,name:_,onBlur:$,onChange:k,onFocus:E,placeholder:j,required:C=!1,rows:O,select:P=!1,SelectProps:N,type:R,value:T,variant:A="outlined"}=r,I=tU(r,NX),M=yV({},r,{autoFocus:o,color:s,disabled:u,error:c,fullWidth:f,multiline:x,required:C,select:P,variant:A}),F=(e=>{const{classes:t}=e;return QV({root:["root"]},PX,t)})(M),z={};"outlined"===A&&(m&&void 0!==m.shrink&&(z.notched=m.shrink),z.label=b),P&&(N&&N.native||(z.id=void 0),z["aria-describedby"]=void 0);const D=TV(h),L=p&&D?`${D}-helper-text`:void 0,B=b&&D?`${D}-label`:void 0,V=RX[A],U=Hj.jsx(V,yV({"aria-describedby":L,autoComplete:n,autoFocus:o,defaultValue:l,fullWidth:f,multiline:x,name:_,rows:O,maxRows:w,minRows:S,type:R,value:T,id:D,inputRef:y,onBlur:$,onChange:k,onFocus:E,placeholder:j,inputProps:v},z,g));return Hj.jsxs(TX,yV({className:nU(F.root,i),disabled:u,error:c,fullWidth:f,ref:t,required:C,color:s,variant:A,ownerState:M},I,{children:[null!=b&&""!==b&&Hj.jsx(zJ,yV({htmlFor:D,id:B},m,{children:b})),P?Hj.jsx(OX,yV({"aria-describedby":L,id:D,labelId:B,value:T,input:U},N,{children:a})):U,p&&Hj.jsx(JJ,yV({id:L},d,{children:p}))]}))}));var IX=AX;const MX=["date","datetime-local","file","time"];function FX(e){const{id:t,name:r,placeholder:n,required:o,readonly:a,disabled:i,type:s,label:l,hideLabel:u,value:c,onChange:d,onChangeOverride:f,onBlur:p,onFocus:h,autofocus:m,options:v,schema:g,uiSchema:y,rawErrors:b=[],formContext:w,registry:S,InputLabelProps:x}=e,_=ov(e,["id","name","placeholder","required","readonly","disabled","type","label","hideLabel","value","onChange","onChangeOverride","onBlur","onFocus","autofocus","options","schema","uiSchema","rawErrors","formContext","registry","InputLabelProps"]),$=Uj(g,s,v),{step:k,min:E,max:j}=$,C=ov($,["step","min","max"]),O=Object.assign({inputProps:Object.assign({step:k,min:E,max:j},g.examples?{list:CC(t)}:void 0)},C),P=MX.includes(s)?Object.assign(Object.assign({},x),{shrink:!0}):x;return Hj.jsxs(Hj.Fragment,{children:[Hj.jsx(IX,Object.assign({id:t,name:t,placeholder:n,label:TC(l||void 0,u,!1),autoFocus:m,required:o,disabled:i||a},O,{value:c||0===c?c:"",error:b.length>0,onChange:f||(({target:{value:e}})=>d(""===e?v.emptyValue:e)),onBlur:({target:{value:e}})=>p(t,e),onFocus:({target:{value:e}})=>h(t,e),InputLabelProps:P},_,{"aria-describedby":NC(t,!!g.examples)})),Array.isArray(g.examples)&&Hj.jsx("datalist",Object.assign({id:CC(t)},{children:g.examples.concat(g.default&&!g.examples.includes(g.default)?[g.default]:[]).map((e=>Hj.jsx("option",{value:e},e)))}))]})}function zX(e){return ZV("MuiTypography",e)}eU("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const DX=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],LX=jH("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.variant&&t[r.variant],"inherit"!==r.align&&t[`align${_V(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>yV({margin:0},"inherit"===t.variant&&{font:"inherit"},"inherit"!==t.variant&&e.typography[t.variant],"inherit"!==t.align&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16}))),BX={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},VX={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},UX=a.forwardRef((function(e,t){const r=$H({props:e,name:"MuiTypography"}),n=(e=>VX[e]||e)(r.color),o=yK(yV({},r,{color:n})),{align:a="inherit",className:i,component:s,gutterBottom:l=!1,noWrap:u=!1,paragraph:c=!1,variant:d="body1",variantMapping:f=BX}=o,p=tU(o,DX),h=yV({},o,{align:a,color:n,className:i,component:s,gutterBottom:l,noWrap:u,paragraph:c,variant:d,variantMapping:f}),m=s||(c?"p":f[d]||BX[d])||"span",v=(e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:o,variant:a,classes:i}=e;return QV({root:["root",a,"inherit"!==e.align&&`align${_V(t)}`,r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]},zX,i)})(h);return Hj.jsx(LX,yV({as:m,ref:t,ownerState:h,className:nU(v.root,i)},p))}));var WX=UX;function qX(e){const{id:t,description:r}=e;return r?Hj.jsx(WX,Object.assign({id:t,variant:"subtitle2",style:{marginTop:"5px"}},{children:r})):null}var KX={},HX=mV;Object.defineProperty(KX,"__esModule",{value:!0});var GX=KX.default=void 0,QX=HX(FH()),JX=Hj,YX=(0,QX.default)((0,JX.jsx)("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");function XX(e){return ZV("MuiListItem",e)}GX=KX.default=YX;var ZX=eU("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]);var eZ=eU("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function tZ(e){return ZV("MuiListItemSecondaryAction",e)}eU("MuiListItemSecondaryAction",["root","disableGutters"]);const rZ=["className"],nZ=jH("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.disableGutters&&t.disableGutters]}})((({ownerState:e})=>yV({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0}))),oZ=a.forwardRef((function(e,t){const r=$H({props:e,name:"MuiListItemSecondaryAction"}),{className:n}=r,o=tU(r,rZ),i=yV({},r,{disableGutters:a.useContext(YJ).disableGutters}),s=(e=>{const{disableGutters:t,classes:r}=e;return QV({root:["root",t&&"disableGutters"]},tZ,r)})(i);return Hj.jsx(nZ,yV({className:nU(s.root,n),ownerState:i,ref:t},o))}));oZ.muiName="ListItemSecondaryAction";var aZ=oZ;const iZ=["className"],sZ=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],lZ=jH("div",{name:"MuiListItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,"flex-start"===r.alignItems&&t.alignItemsFlexStart,r.divider&&t.divider,!r.disableGutters&&t.gutters,!r.disablePadding&&t.padding,r.button&&t.button,r.hasSecondaryAction&&t.secondaryAction]}})((({theme:e,ownerState:t})=>yV({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&yV({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${eZ.root}`]:{paddingRight:48}},{[`&.${ZX.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${ZX.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:DK(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${ZX.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:DK(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${ZX.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},"flex-start"===t.alignItems&&{alignItems:"flex-start"},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.button&&{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"}},[`&.${ZX.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:DK(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})`:DK(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48}))),uZ=jH("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),cZ=a.forwardRef((function(e,t){const r=$H({props:e,name:"MuiListItem"}),{alignItems:n="center",autoFocus:o=!1,button:i=!1,children:s,className:l,component:u,components:c={},componentsProps:d={},ContainerComponent:f="li",ContainerProps:{className:p}={},dense:h=!1,disabled:m=!1,disableGutters:v=!1,disablePadding:g=!1,divider:y=!1,focusVisibleClassName:b,secondaryAction:w,selected:S=!1,slotProps:x={},slots:_={}}=r,$=tU(r.ContainerProps,iZ),k=tU(r,sZ),E=a.useContext(YJ),j=a.useMemo((()=>({dense:h||E.dense||!1,alignItems:n,disableGutters:v})),[n,E.dense,h,v]),C=a.useRef(null);PV((()=>{o&&C.current&&C.current.focus()}),[o]);const O=a.Children.toArray(s),P=O.length&&EV(O[O.length-1],["ListItemSecondaryAction"]),N=yV({},r,{alignItems:n,autoFocus:o,button:i,dense:j.dense,disabled:m,disableGutters:v,disablePadding:g,divider:y,hasSecondaryAction:P,selected:S}),R=(e=>{const{alignItems:t,button:r,classes:n,dense:o,disabled:a,disableGutters:i,disablePadding:s,divider:l,hasSecondaryAction:u,selected:c}=e;return QV({root:["root",o&&"dense",!i&&"gutters",!s&&"padding",l&&"divider",a&&"disabled",r&&"button","flex-start"===t&&"alignItemsFlexStart",u&&"secondaryAction",c&&"selected"],container:["container"]},XX,n)})(N),T=MV(C,t),A=_.root||c.Root||lZ,I=x.root||d.root||{},M=yV({className:nU(R.root,I.className,l),disabled:m},k);let F=u||"li";return i&&(M.component=u||"div",M.focusVisibleClassName=nU(ZX.focusVisible,b),F=EG),P?(F=M.component||u?F:"div","li"===f&&("li"===F?F="div":"li"===M.component&&(M.component="div")),Hj.jsx(YJ.Provider,{value:j,children:Hj.jsxs(uZ,yV({as:f,className:nU(R.container,p),ref:T,ownerState:N},$,{children:[Hj.jsx(A,yV({},I,!nQ(A)&&{as:F,ownerState:yV({},N,I.ownerState)},M,{children:O})),O.pop()]}))})):Hj.jsx(YJ.Provider,{value:j,children:Hj.jsxs(A,yV({},I,{as:F,ref:T},!nQ(A)&&{ownerState:yV({},N,I.ownerState)},M,{children:[O,w&&Hj.jsx(aZ,{children:w})]}))})}));var dZ=cZ;function fZ(e){return ZV("MuiListItemIcon",e)}var pZ=eU("MuiListItemIcon",["root","alignItemsFlexStart"]);const hZ=["className"],mZ=jH("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"flex-start"===r.alignItems&&t.alignItemsFlexStart]}})((({theme:e,ownerState:t})=>yV({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8}))),vZ=a.forwardRef((function(e,t){const r=$H({props:e,name:"MuiListItemIcon"}),{className:n}=r,o=tU(r,hZ),i=yV({},r,{alignItems:a.useContext(YJ).alignItems}),s=(e=>{const{alignItems:t,classes:r}=e;return QV({root:["root","flex-start"===t&&"alignItemsFlexStart"]},fZ,r)})(i);return Hj.jsx(mZ,yV({className:nU(s.root,n),ownerState:i,ref:t},o))}));var gZ=vZ;function yZ(e){return ZV("MuiListItemText",e)}var bZ=eU("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);const wZ=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],SZ=jH("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${bZ.primary}`]:t.primary},{[`& .${bZ.secondary}`]:t.secondary},t.root,r.inset&&t.inset,r.primary&&r.secondary&&t.multiline,r.dense&&t.dense]}})((({ownerState:e})=>yV({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56}))),xZ=a.forwardRef((function(e,t){const r=$H({props:e,name:"MuiListItemText"}),{children:n,className:o,disableTypography:i=!1,inset:s=!1,primary:l,primaryTypographyProps:u,secondary:c,secondaryTypographyProps:d}=r,f=tU(r,wZ),{dense:p}=a.useContext(YJ);let h=null!=l?l:n,m=c;const v=yV({},r,{disableTypography:i,inset:s,primary:!!h,secondary:!!m,dense:p}),g=(e=>{const{classes:t,inset:r,primary:n,secondary:o,dense:a}=e;return QV({root:["root",r&&"inset",a&&"dense",n&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},yZ,t)})(v);return null==h||h.type===WX||i||(h=Hj.jsx(WX,yV({variant:p?"body2":"body1",className:g.primary,component:null!=u&&u.variant?void 0:"span",display:"block"},u,{children:h}))),null==m||m.type===WX||i||(m=Hj.jsx(WX,yV({variant:"body2",className:g.secondary,color:"text.secondary",display:"block"},d,{children:m}))),Hj.jsxs(SZ,yV({className:nU(g.root,o),ownerState:v,ref:t},f,{children:[h,m]}))}));var _Z=xZ;function $Z({errors:e,registry:t}){const{translateString:r}=t;return Hj.jsx(eQ,Object.assign({elevation:2},{children:Hj.jsxs(zG,Object.assign({mb:2,p:2},{children:[Hj.jsx(WX,Object.assign({variant:"h6"},{children:r(HC.ErrorsLabel)})),Hj.jsx(rY,Object.assign({dense:!0},{children:e.map(((e,t)=>Hj.jsxs(dZ,{children:[Hj.jsx(gZ,{children:Hj.jsx(GX,{color:"error"})}),Hj.jsx(_Z,{primary:e.stack})]},t)))}))]}))}))}var kZ={},EZ=mV;Object.defineProperty(kZ,"__esModule",{value:!0});var jZ=kZ.default=void 0,CZ=EZ(FH()),OZ=Hj,PZ=(0,CZ.default)((0,OZ.jsx)("path",{d:"m20 12-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward");jZ=kZ.default=PZ;var NZ={},RZ=mV;Object.defineProperty(NZ,"__esModule",{value:!0});var TZ=NZ.default=void 0,AZ=RZ(FH()),IZ=Hj,MZ=(0,AZ.default)((0,IZ.jsx)("path",{d:"m4 12 1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z"}),"ArrowUpward");TZ=NZ.default=MZ;var FZ={},zZ=mV;Object.defineProperty(FZ,"__esModule",{value:!0});var DZ=FZ.default=void 0,LZ=zZ(FH()),BZ=Hj,VZ=(0,LZ.default)((0,BZ.jsx)("path",{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"}),"ContentCopy");DZ=FZ.default=VZ;var UZ={},WZ=mV;Object.defineProperty(UZ,"__esModule",{value:!0});var qZ=UZ.default=void 0,KZ=WZ(FH()),HZ=Hj,GZ=(0,KZ.default)((0,HZ.jsx)("path",{d:"M19 13H5v-2h14v2z"}),"Remove");function QZ(e){const{icon:t,color:r,uiSchema:n,registry:o}=e,a=ov(e,["icon","color","uiSchema","registry"]);return Hj.jsx(RG,Object.assign({},a,{size:"small",color:r},{children:t}))}function JZ(e){const{registry:{translateString:t}}=e;return Hj.jsx(QZ,Object.assign({title:t(HC.CopyButton)},e,{icon:Hj.jsx(DZ,{fontSize:"small"})}))}function YZ(e){const{registry:{translateString:t}}=e;return Hj.jsx(QZ,Object.assign({title:t(HC.MoveDownButton)},e,{icon:Hj.jsx(jZ,{fontSize:"small"})}))}function XZ(e){const{registry:{translateString:t}}=e;return Hj.jsx(QZ,Object.assign({title:t(HC.MoveUpButton)},e,{icon:Hj.jsx(TZ,{fontSize:"small"})}))}function ZZ(e){const{iconType:t}=e,r=ov(e,["iconType"]),{registry:{translateString:n}}=r;return Hj.jsx(QZ,Object.assign({title:n(HC.RemoveButton)},r,{color:"error",icon:Hj.jsx(qZ,{fontSize:"default"===t?void 0:"small"})}))}function e0(e){const{errors:t=[],idSchema:r}=e;if(0===t.length)return null;const n=jC(r);return Hj.jsx(rY,Object.assign({dense:!0,disablePadding:!0},{children:t.map(((e,t)=>Hj.jsx(dZ,Object.assign({disableGutters:!0},{children:Hj.jsx(JJ,Object.assign({id:n},{children:e}))}),t)))}))}function t0(e){const{idSchema:t,help:r}=e;if(!r)return null;const n=OC(t);return Hj.jsx(JJ,Object.assign({id:n},{children:r}))}function r0(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:m,description:v,rawDescription:g,schema:y,uiSchema:b,registry:w}=e,S=Kj("WrapIfAdditionalTemplate",w,_d(b));return s?Hj.jsx("div",Object.assign({style:{display:"none"}},{children:r})):Hj.jsx(S,Object.assign({classNames:n,style:o,disabled:a,id:t,label:l,onDropPropertyClick:u,onKeyChange:c,readonly:d,required:f,schema:y,uiSchema:b,registry:w},{children:Hj.jsxs(UJ,Object.assign({fullWidth:!0,error:!!p.length,required:f},{children:[r,i&&g?Hj.jsx(WX,Object.assign({variant:"caption",color:"textSecondary"},{children:v})):null,h,m]}))}))}function n0(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=_d(s),h=Kj("TitleFieldTemplate",f,p),m=Kj("DescriptionFieldTemplate",f,p),{ButtonTemplates:{AddButton:v}}=f.templates;return Hj.jsxs(Hj.Fragment,{children:[r&&Hj.jsx(h,{id:PC(l),title:r,required:o,schema:u,uiSchema:s,registry:f}),t&&Hj.jsx(m,{id:EC(l),description:t,schema:u,uiSchema:s,registry:f}),Hj.jsxs(QG,Object.assign({container:!0,spacing:2,style:{marginTop:"10px"}},{children:[n.map(((e,t)=>e.hidden?e.content:Hj.jsx(QG,Object.assign({item:!0,xs:12,style:{marginBottom:"10px"}},{children:e.content}),t))),$d(u,s,c)&&Hj.jsx(QG,Object.assign({container:!0,justifyContent:"flex-end"},{children:Hj.jsx(QG,Object.assign({item:!0},{children:Hj.jsx(v,{className:"object-property-expand",onClick:d(u),disabled:a||i,uiSchema:s,registry:f})}))}))]}))]})}function o0(e){return ZV("MuiButton",e)}qZ=UZ.default=GZ;var a0=eU("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","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]);var i0=a.createContext({});var s0=a.createContext(void 0);const l0=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],u0=e=>yV({},"small"===e.size&&{"& > *:nth-of-type(1)":{fontSize:18}},"medium"===e.size&&{"& > *:nth-of-type(1)":{fontSize:20}},"large"===e.size&&{"& > *:nth-of-type(1)":{fontSize:22}}),c0=jH(EG,{shouldForwardProp:e=>kH(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${_V(r.color)}`],t[`size${_V(r.size)}`],t[`${r.variant}Size${_V(r.size)}`],"inherit"===r.color&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth]}})((({theme:e,ownerState:t})=>{var r,n;const o="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],a="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return yV({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":yV({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:DK(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"text"===t.variant&&"inherit"!==t.color&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:DK(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"outlined"===t.variant&&"inherit"!==t.color&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:DK(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===t.variant&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:a,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},"contained"===t.variant&&"inherit"!==t.color&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":yV({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${a0.focusVisible}`]:yV({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${a0.disabled}`]:yV({color:(e.vars||e).palette.action.disabled},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"contained"===t.variant&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},"text"===t.variant&&{padding:"6px 8px"},"text"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main},"outlined"===t.variant&&{padding:"5px 15px",border:"1px solid currentColor"},"outlined"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${DK(e.palette[t.color].main,.5)}`},"contained"===t.variant&&{color:e.vars?e.vars.palette.text.primary:null==(r=(n=e.palette).getContrastText)?void 0:r.call(n,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},"contained"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},"inherit"===t.color&&{color:"inherit",borderColor:"currentColor"},"small"===t.size&&"text"===t.variant&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"text"===t.variant&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"outlined"===t.variant&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"outlined"===t.variant&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"contained"===t.variant&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"contained"===t.variant&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})}),(({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${a0.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${a0.disabled}`]:{boxShadow:"none"}})),d0=jH("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${_V(r.size)}`]]}})((({ownerState:e})=>yV({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},u0(e)))),f0=jH("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${_V(r.size)}`]]}})((({ownerState:e})=>yV({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},u0(e)))),p0=a.forwardRef((function(e,t){const r=a.useContext(i0),n=a.useContext(s0),o=$H({props:GV(r,e),name:"MuiButton"}),{children:i,color:s="primary",component:l="button",className:u,disabled:c=!1,disableElevation:d=!1,disableFocusRipple:f=!1,endIcon:p,focusVisibleClassName:h,fullWidth:m=!1,size:v="medium",startIcon:g,type:y,variant:b="text"}=o,w=tU(o,l0),S=yV({},o,{color:s,component:l,disabled:c,disableElevation:d,disableFocusRipple:f,fullWidth:m,size:v,type:y,variant:b}),x=(e=>{const{color:t,disableElevation:r,fullWidth:n,size:o,variant:a,classes:i}=e;return yV({},i,QV({root:["root",a,`${a}${_V(t)}`,`size${_V(o)}`,`${a}Size${_V(o)}`,"inherit"===t&&"colorInherit",r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${_V(o)}`],endIcon:["endIcon",`iconSize${_V(o)}`]},o0,i))})(S),_=g&&Hj.jsx(d0,{className:x.startIcon,ownerState:S,children:g}),$=p&&Hj.jsx(f0,{className:x.endIcon,ownerState:S,children:p}),k=n||"";return Hj.jsxs(c0,yV({ownerState:S,className:nU(r.className,x.root,u,k),component:l,disabled:c,focusRipple:!f,focusVisibleClassName:nU(x.focusVisible,h),ref:t,type:y},w,{classes:x,children:[_,i,$]}))}));var h0=p0;function m0({uiSchema:e}){const{submitText:t,norender:r,props:n={}}=qj(e);return r?null:Hj.jsx(zG,Object.assign({marginTop:3},{children:Hj.jsx(h0,Object.assign({type:"submit",variant:"contained",color:"primary"},n,{children:t}))}))}function v0(e){return ZV("MuiDivider",e)}var g0=eU("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const y0=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],b0=jH("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,"vertical"===r.orientation&&t.vertical,r.flexItem&&t.flexItem,r.children&&t.withChildren,r.children&&"vertical"===r.orientation&&t.withChildrenVertical,"right"===r.textAlign&&"vertical"!==r.orientation&&t.textAlignRight,"left"===r.textAlign&&"vertical"!==r.orientation&&t.textAlignLeft]}})((({theme:e,ownerState:t})=>yV({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:DK(e.palette.divider,.08)},"inset"===t.variant&&{marginLeft:72},"middle"===t.variant&&"horizontal"===t.orientation&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},"middle"===t.variant&&"vertical"===t.orientation&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},"vertical"===t.orientation&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"})),(({ownerState:e})=>yV({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>yV({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}})),(({theme:e,ownerState:t})=>yV({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}})),(({ownerState:e})=>yV({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),w0=jH("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,"vertical"===r.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>yV({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},"vertical"===t.orientation&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}))),S0=a.forwardRef((function(e,t){const r=$H({props:e,name:"MuiDivider"}),{absolute:n=!1,children:o,className:a,component:i=(o?"div":"hr"),flexItem:s=!1,light:l=!1,orientation:u="horizontal",role:c=("hr"!==i?"separator":void 0),textAlign:d="center",variant:f="fullWidth"}=r,p=tU(r,y0),h=yV({},r,{absolute:n,component:i,flexItem:s,light:l,orientation:u,role:c,textAlign:d,variant:f}),m=(e=>{const{absolute:t,children:r,classes:n,flexItem:o,light:a,orientation:i,textAlign:s,variant:l}=e;return QV({root:["root",t&&"absolute",l,a&&"light","vertical"===i&&"vertical",o&&"flexItem",r&&"withChildren",r&&"vertical"===i&&"withChildrenVertical","right"===s&&"vertical"!==i&&"textAlignRight","left"===s&&"vertical"!==i&&"textAlignLeft"],wrapper:["wrapper","vertical"===i&&"wrapperVertical"]},v0,n)})(h);return Hj.jsx(b0,yV({as:i,className:nU(m.root,a),role:c,ref:t,ownerState:h},p,{children:o?Hj.jsx(w0,{className:m.wrapper,ownerState:h,children:o}):null}))}));S0.muiSkipListHighlight=!0;var x0=S0;function _0({id:e,title:t}){return Hj.jsxs(zG,Object.assign({id:e,mb:1,mt:1},{children:[Hj.jsx(WX,Object.assign({variant:"h5"},{children:t})),Hj.jsx(x0,{})]}))}function $0(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:m}=p,{RemoveButton:v}=h.ButtonTemplates,g=m(HC.KeyLabel,[i]);if(!(td in d))return Hj.jsx("div",Object.assign({className:r,style:n},{children:t}));return Hj.jsxs(QG,Object.assign({container:!0,alignItems:"center",spacing:2,className:r,style:n},{children:[Hj.jsx(QG,Object.assign({item:!0,xs:!0},{children:Hj.jsx(IX,{fullWidth:!0,required:c,label:g,defaultValue:i,disabled:o||u,id:`${a}-key`,name:`${a}-key`,onBlur:u?void 0:({target:e})=>l(e.value),type:"text"})})),Hj.jsx(QG,Object.assign({item:!0,xs:!0},{children:t})),Hj.jsx(QG,Object.assign({item:!0},{children:Hj.jsx(v,{iconType:"default",style:{flex:1,paddingLeft:6,paddingRight:6,fontWeight:"bold"},disabled:o||u,onClick:s(i),uiSchema:f,registry:p})}))]}),`${a}-key`)}function k0(e){return ZV("PrivateSwitchBase",e)}eU("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const E0=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],j0=jH(EG)((({ownerState:e})=>yV({padding:9,borderRadius:"50%"},"start"===e.edge&&{marginLeft:"small"===e.size?-3:-12},"end"===e.edge&&{marginRight:"small"===e.size?-3:-12}))),C0=jH("input")({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),O0=a.forwardRef((function(e,t){const{autoFocus:r,checked:n,checkedIcon:o,className:a,defaultChecked:i,disabled:s,disableFocusRipple:l=!1,edge:u=!1,icon:c,id:d,inputProps:f,inputRef:p,name:h,onBlur:m,onChange:v,onFocus:g,readOnly:y,required:b=!1,tabIndex:w,type:S,value:x}=e,_=tU(e,E0),[$,k]=AV({controlled:n,default:Boolean(i),name:"SwitchBase",state:"checked"}),E=BQ();let j=s;E&&void 0===j&&(j=E.disabled);const C="checkbox"===S||"radio"===S,O=yV({},e,{checked:$,disabled:j,disableFocusRipple:l,edge:u}),P=(e=>{const{classes:t,checked:r,disabled:n,edge:o}=e;return QV({root:["root",r&&"checked",n&&"disabled",o&&`edge${_V(o)}`],input:["input"]},k0,t)})(O);return Hj.jsxs(j0,yV({component:"span",className:nU(P.root,a),centerRipple:!0,focusRipple:!l,disabled:j,tabIndex:null,role:void 0,onFocus:e=>{g&&g(e),E&&E.onFocus&&E.onFocus(e)},onBlur:e=>{m&&m(e),E&&E.onBlur&&E.onBlur(e)},ownerState:O,ref:t},_,{children:[Hj.jsx(C0,yV({autoFocus:r,checked:n,defaultChecked:i,className:P.input,disabled:j,id:C?d:void 0,name:h,onChange:e=>{if(e.nativeEvent.defaultPrevented)return;const t=e.target.checked;k(t),v&&v(e,t)},readOnly:y,ref:p,required:b,ownerState:O,tabIndex:w,type:S},"checkbox"===S&&void 0===x?{}:{value:x},f)),$?o:c]}))}));var P0=O0,N0=TH(Hj.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"),R0=TH(Hj.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"),T0=TH(Hj.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 A0(e){return ZV("MuiCheckbox",e)}var I0=eU("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]);const M0=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],F0=jH(P0,{shouldForwardProp:e=>kH(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.indeterminate&&t.indeterminate,"default"!==r.color&&t[`color${_V(r.color)}`]]}})((({theme:e,ownerState:t})=>yV({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${"default"===t.color?e.vars.palette.action.activeChannel:e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:DK("default"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${I0.checked}, &.${I0.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${I0.disabled}`]:{color:(e.vars||e).palette.action.disabled}}))),z0=Hj.jsx(R0,{}),D0=Hj.jsx(N0,{}),L0=Hj.jsx(T0,{}),B0=a.forwardRef((function(e,t){var r,n;const o=$H({props:e,name:"MuiCheckbox"}),{checkedIcon:i=z0,color:s="primary",icon:l=D0,indeterminate:u=!1,indeterminateIcon:c=L0,inputProps:d,size:f="medium",className:p}=o,h=tU(o,M0),m=u?c:l,v=u?c:i,g=yV({},o,{color:s,indeterminate:u,size:f}),y=(e=>{const{classes:t,indeterminate:r,color:n,size:o}=e;return yV({},t,QV({root:["root",r&&"indeterminate",`color${_V(n)}`,`size${_V(o)}`]},A0,t))})(g);return Hj.jsx(F0,yV({type:"checkbox",inputProps:yV({"data-indeterminate":u},d),icon:a.cloneElement(m,{fontSize:null!=(r=m.props.fontSize)?r:f}),checkedIcon:a.cloneElement(v,{fontSize:null!=(n=v.props.fontSize)?n:f}),ownerState:g,ref:t,className:nU(y.root,p)},h,{classes:y}))}));var V0=B0;const U0=function(e={}){const{createStyledComponent:t=WK,useThemeProps:r=qK,componentName:n="MuiStack"}=e,o=t(HK),i=a.forwardRef((function(e,t){const a=yK(r(e)),{component:i="div",direction:s="column",spacing:l=0,divider:u,children:c,className:d,useFlexGap:f=!1}=a,p=tU(a,VK),h={direction:s,spacing:l,useFlexGap:f},m=QV({root:["root"]},(e=>ZV(n,e)),{});return Hj.jsx(o,yV({as:i,ownerState:h,ref:t,className:nU(m.root,d)},p,{children:u?KK(c,u):c}))}));return i}({createStyledComponent:jH("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>$H({props:e,name:"MuiStack"})});var W0=U0;function q0(e){return ZV("MuiFormControlLabel",e)}var K0=eU("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]);const H0=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],G0=jH("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${K0.label}`]:t.label},t.root,t[`labelPlacement${_V(r.labelPlacement)}`]]}})((({theme:e,ownerState:t})=>yV({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${K0.disabled}`]:{cursor:"default"}},"start"===t.labelPlacement&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},"top"===t.labelPlacement&&{flexDirection:"column-reverse",marginLeft:16},"bottom"===t.labelPlacement&&{flexDirection:"column",marginLeft:16},{[`& .${K0.label}`]:{[`&.${K0.disabled}`]:{color:(e.vars||e).palette.text.disabled}}}))),Q0=jH("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})((({theme:e})=>({[`&.${K0.error}`]:{color:(e.vars||e).palette.error.main}}))),J0=a.forwardRef((function(e,t){var r,n;const o=$H({props:e,name:"MuiFormControlLabel"}),{className:i,componentsProps:s={},control:l,disabled:u,disableTypography:c,label:d,labelPlacement:f="end",required:p,slotProps:h={}}=o,m=tU(o,H0),v=BQ(),g=null!=(r=null!=u?u:l.props.disabled)?r:null==v?void 0:v.disabled,y=null!=p?p:l.props.required,b={disabled:g,required:y};["checked","name","onChange","value","inputRef"].forEach((e=>{void 0===l.props[e]&&void 0!==o[e]&&(b[e]=o[e])}));const w=DQ({props:o,muiFormControl:v,states:["error"]}),S=yV({},o,{disabled:g,labelPlacement:f,required:y,error:w.error}),x=(e=>{const{classes:t,disabled:r,labelPlacement:n,error:o,required:a}=e;return QV({root:["root",r&&"disabled",`labelPlacement${_V(n)}`,o&&"error",a&&"required"],label:["label",r&&"disabled"],asterisk:["asterisk",o&&"error"]},q0,t)})(S),_=null!=(n=h.typography)?n:s.typography;let $=d;return null==$||$.type===WX||c||($=Hj.jsx(WX,yV({component:"span"},_,{className:nU(x.label,null==_?void 0:_.className),children:$}))),Hj.jsxs(G0,yV({className:nU(x.root,i),ownerState:S,ref:t},m,{children:[a.cloneElement(l,b),y?Hj.jsxs(W0,{direction:"row",alignItems:"center",children:[$,Hj.jsxs(Q0,{ownerState:S,"aria-hidden":!0,className:x.asterisk,children:[" ","*"]})]}):$]}))}));var Y0=J0;function X0(e){var t;const{schema:r,id:n,value:o,disabled:a,readonly:i,label:s="",hideLabel:l,autofocus:u,onChange:c,onBlur:d,onFocus:f,registry:p,options:h,uiSchema:m}=e,v=Kj("DescriptionFieldTemplate",p,h),g=FC(r),y=null!==(t=h.description)&&void 0!==t?t:r.description;return Hj.jsxs(Hj.Fragment,{children:[!l&&!!y&&Hj.jsx(v,{id:EC(n),description:y,schema:r,uiSchema:m,registry:p}),Hj.jsx(Y0,{control:Hj.jsx(V0,{id:n,name:n,checked:void 0!==o&&Boolean(o),required:g,disabled:a||i,autoFocus:u,onChange:(e,t)=>c(t),onBlur:({target:{value:e}})=>d(n,e),onFocus:({target:{value:e}})=>f(n,e),"aria-describedby":NC(n)}),label:TC(s,l,!1)})]})}function Z0(e){return ZV("MuiFormGroup",e)}eU("MuiFormGroup",["root","row","error"]);const e1=["className","row"],t1=jH("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.row&&t.row]}})((({ownerState:e})=>yV({display:"flex",flexDirection:"column",flexWrap:"wrap"},e.row&&{flexDirection:"row"}))),r1=a.forwardRef((function(e,t){const r=$H({props:e,name:"MuiFormGroup"}),{className:n,row:o=!1}=r,a=tU(r,e1),i=yV({},r,{row:o,error:DQ({props:r,muiFormControl:BQ(),states:["error"]}).error}),s=(e=>{const{classes:t,row:r,error:n}=e;return QV({root:["root",r&&"row",n&&"error"]},Z0,t)})(i);return Hj.jsx(t1,yV({className:nU(s.root,n),ownerState:i,ref:t},a))}));var n1=r1;function o1({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:m}=o,v=Array.isArray(a)?a:[a],g=e=>({target:{checked:t}})=>{u(t?Lj(e,v,f):Ij(e,v,f))},y=({target:{value:e}})=>c(r,Aj(e,f,m)),b=({target:{value:e}})=>d(r,Aj(e,f,m));return Hj.jsxs(Hj.Fragment,{children:[TC(Hj.jsx(TJ,Object.assign({required:l,htmlFor:r},{children:e||void 0})),t),Hj.jsx(n1,Object.assign({id:r,row:!!h},{children:Array.isArray(f)&&f.map(((e,t)=>{const o=Mj(e.value,v),a=Array.isArray(p)&&-1!==p.indexOf(e.value),l=Hj.jsx(V0,{id:RC(r,t),name:r,checked:o,disabled:n||a||s,autoFocus:i&&0===t,onChange:g(t),onBlur:y,onFocus:b,"aria-describedby":NC(r)});return Hj.jsx(Y0,{control:l,label:e.label},t)}))}))]})}var a1=TH(Hj.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"),i1=TH(Hj.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");const s1=jH("span")({position:"relative",display:"flex"}),l1=jH(a1)({transform:"scale(1)"}),u1=jH(i1)((({theme:e,ownerState:t})=>yV({left:0,position:"absolute",transform:"scale(0)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest})},t.checked&&{transform:"scale(1)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})})));function c1(e){const{checked:t=!1,classes:r={},fontSize:n}=e,o=yV({},e,{checked:t});return Hj.jsxs(s1,{className:r.root,ownerState:o,children:[Hj.jsx(l1,{fontSize:n,className:r.background,ownerState:o}),Hj.jsx(u1,{fontSize:n,className:r.dot,ownerState:o})]})}var d1=a.createContext(void 0);function f1(e){return ZV("MuiRadio",e)}var p1=eU("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]);const h1=["checked","checkedIcon","color","icon","name","onChange","size","className"],m1=jH(P0,{shouldForwardProp:e=>kH(e)||"classes"===e,name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`color${_V(r.color)}`]]}})((({theme:e,ownerState:t})=>yV({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${"default"===t.color?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:DK("default"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${p1.checked}`]:{color:(e.vars||e).palette[t.color].main}},{[`&.${p1.disabled}`]:{color:(e.vars||e).palette.action.disabled}})));const v1=Hj.jsx(c1,{checked:!0}),g1=Hj.jsx(c1,{}),y1=a.forwardRef((function(e,t){var r,n;const o=$H({props:e,name:"MuiRadio"}),{checked:i,checkedIcon:s=v1,color:l="primary",icon:u=g1,name:c,onChange:d,size:f="medium",className:p}=o,h=tU(o,h1),m=yV({},o,{color:l,size:f}),v=(e=>{const{classes:t,color:r,size:n}=e;return yV({},t,QV({root:["root",`color${_V(r)}`,"medium"!==n&&`size${_V(n)}`]},f1,t))})(m),g=a.useContext(d1);let y=i;const b=$V(d,g&&g.onChange);let w=c;return g&&(void 0===y&&(y=function(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}(g.value,o.value)),void 0===w&&(w=g.name)),Hj.jsx(m1,yV({type:"radio",icon:a.cloneElement(u,{fontSize:null!=(r=g1.props.fontSize)?r:f}),checkedIcon:a.cloneElement(s,{fontSize:null!=(n=v1.props.fontSize)?n:f}),ownerState:m,classes:v,name:w,checked:y,onChange:b,ref:t,className:nU(v.root,p)},h))}));var b1=y1;const w1=["actions","children","defaultValue","name","onChange","value"],S1=a.forwardRef((function(e,t){const{actions:r,children:n,defaultValue:o,name:i,onChange:s,value:l}=e,u=tU(e,w1),c=a.useRef(null),[d,f]=AV({controlled:l,default:o,name:"RadioGroup"});a.useImperativeHandle(r,(()=>({focus:()=>{let e=c.current.querySelector("input:not(:disabled):checked");e||(e=c.current.querySelector("input:not(:disabled)")),e&&e.focus()}})),[]);const p=MV(t,c),h=TV(i),m=a.useMemo((()=>({name:h,onChange(e){f(e.target.value),s&&s(e,e.target.value)},value:d})),[h,s,f,d]);return Hj.jsx(d1.Provider,{value:m,children:Hj.jsx(n1,yV({role:"radiogroup",ref:p},u,{children:n}))})}));var x1=S1;function _1({id:e,options:t,value:r,required:n,disabled:o,readonly:a,label:i,hideLabel:s,onChange:l,onBlur:u,onFocus:c}){var d;const{enumOptions:f,enumDisabled:p,emptyValue:h}=t,m=!!t&&t.inline,v=null!==(d=Fj(r,f))&&void 0!==d?d:null;return Hj.jsxs(Hj.Fragment,{children:[TC(Hj.jsx(TJ,Object.assign({required:n,htmlFor:e},{children:i||void 0})),s),Hj.jsx(x1,Object.assign({id:e,name:e,value:v,row:m,onChange:(e,t)=>l(Aj(t,f,h)),onBlur:({target:{value:t}})=>u(e,Aj(t,f,h)),onFocus:({target:{value:t}})=>c(e,Aj(t,f,h)),"aria-describedby":NC(e)},{children:Array.isArray(f)&&f.map(((t,r)=>{const n=Array.isArray(p)&&-1!==p.indexOf(t.value);return Hj.jsx(Y0,{control:Hj.jsx(b1,{name:e,id:RC(e,r),color:"primary"}),label:t.label,value:String(r),disabled:o||n||a},r)}))}))]})}var $1=e=>!e||!nQ(e);function k1(e){return ZV("MuiSlider",e)}var E1=eU("MuiSlider",["root","active","colorPrimary","colorSecondary","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]);const j1=["aria-label","aria-valuetext","aria-labelledby","component","components","componentsProps","color","classes","className","disableSwap","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","orientation","size","step","scale","slotProps","slots","tabIndex","track","value","valueLabelDisplay","valueLabelFormat"];function C1(e){return e}const O1=jH("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`color${_V(r.color)}`],"medium"!==r.size&&t[`size${_V(r.size)}`],r.marked&&t.marked,"vertical"===r.orientation&&t.vertical,"inverted"===r.track&&t.trackInverted,!1===r.track&&t.trackFalse]}})((({theme:e,ownerState:t})=>yV({borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",color:(e.vars||e).palette[t.color].main,WebkitTapHighlightColor:"transparent"},"horizontal"===t.orientation&&yV({height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}},"small"===t.size&&{height:2},t.marked&&{marginBottom:20}),"vertical"===t.orientation&&yV({height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}},"small"===t.size&&{width:2},t.marked&&{marginRight:44}),{"@media print":{colorAdjust:"exact"},[`&.${E1.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${E1.dragging}`]:{[`& .${E1.thumb}, & .${E1.track}`]:{transition:"none"}}}))),P1=jH("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})((({ownerState:e})=>yV({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38},"horizontal"===e.orientation&&{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"},"vertical"===e.orientation&&{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"},"inverted"===e.track&&{opacity:1}))),N1=jH("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})((({theme:e,ownerState:t})=>{const r="light"===e.palette.mode?BK(e.palette[t.color].main,.62):LK(e.palette[t.color].main,.5);return yV({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})},"small"===t.size&&{border:"none"},"horizontal"===t.orientation&&{height:"inherit",top:"50%",transform:"translateY(-50%)"},"vertical"===t.orientation&&{width:"inherit",left:"50%",transform:"translateX(-50%)"},!1===t.track&&{display:"none"},"inverted"===t.track&&{backgroundColor:e.vars?e.vars.palette.Slider[`${t.color}Track`]:r,borderColor:e.vars?e.vars.palette.Slider[`${t.color}Track`]:r})})),R1=jH("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.thumb,t[`thumbColor${_V(r.color)}`],"medium"!==r.size&&t[`thumbSize${_V(r.size)}`]]}})((({theme:e,ownerState:t})=>yV({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})},"small"===t.size&&{width:12,height:12},"horizontal"===t.orientation&&{top:"50%",transform:"translate(-50%, -50%)"},"vertical"===t.orientation&&{left:"50%",transform:"translate(-50%, 50%)"},{"&:before":yV({position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},"small"===t.size&&{boxShadow:"none"}),"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&:hover, &.${E1.focusVisible}`]:{boxShadow:`0px 0px 0px 8px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:DK(e.palette[t.color].main,.16)}`,"@media (hover: none)":{boxShadow:"none"}},[`&.${E1.active}`]:{boxShadow:`0px 0px 0px 14px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:DK(e.palette[t.color].main,.16)}`},[`&.${E1.disabled}`]:{"&:hover":{boxShadow:"none"}}}))),T1=jH((function(e){const{children:t,className:r,value:n}=e,o=(e=>{const{open:t}=e;return{offset:nU(t&&E1.valueLabelOpen),circle:E1.valueLabelCircle,label:E1.valueLabelLabel}})(e);return t?a.cloneElement(t,{className:nU(t.props.className)},Hj.jsxs(a.Fragment,{children:[t.props.children,Hj.jsx("span",{className:nU(o.offset,r),"aria-hidden":!0,children:Hj.jsx("span",{className:o.circle,children:Hj.jsx("span",{className:o.label,children:n})})})]})):null}),{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})((({theme:e,ownerState:t})=>yV({[`&.${E1.valueLabelOpen}`]:{transform:("vertical"===t.orientation?"translateY(-50%)":"translateY(-100%)")+" scale(1)"},zIndex:1,whiteSpace:"nowrap"},e.typography.body2,{fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),transform:("vertical"===t.orientation?"translateY(-50%)":"translateY(-100%)")+" scale(0)",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"},"horizontal"===t.orientation&&{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%"}},"vertical"===t.orientation&&{right:"small"===t.size?"20px":"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%"}},"small"===t.size&&{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"}))),A1=jH("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>EH(e)&&"markActive"!==e,overridesResolver:(e,t)=>{const{markActive:r}=e;return[t.mark,r&&t.markActive]}})((({theme:e,ownerState:t,markActive:r})=>yV({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor"},"horizontal"===t.orientation&&{top:"50%",transform:"translate(-1px, -50%)"},"vertical"===t.orientation&&{left:"50%",transform:"translate(-50%, 1px)"},r&&{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8}))),I1=jH("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>EH(e)&&"markLabelActive"!==e,overridesResolver:(e,t)=>t.markLabel})((({theme:e,ownerState:t,markLabelActive:r})=>yV({},e.typography.body2,{color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap"},"horizontal"===t.orientation&&{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}},"vertical"===t.orientation&&{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}},r&&{color:(e.vars||e).palette.text.primary}))),M1=({children:e})=>e,F1=a.forwardRef((function(e,t){var r,n,o,i,s,l,u,c,d,f,p,h,m,v,g,y,b,w,S,x,_,$,k,E;const j=$H({props:e,name:"MuiSlider"}),C="rtl"===AG().direction,{"aria-label":O,"aria-valuetext":P,"aria-labelledby":N,component:R="span",components:T={},componentsProps:A={},color:I="primary",classes:M,className:F,disableSwap:z=!1,disabled:D=!1,getAriaLabel:L,getAriaValueText:B,marks:V=!1,max:U=100,min:W=0,orientation:q="horizontal",size:K="medium",step:H=1,scale:G=C1,slotProps:Q,slots:J,track:Y="normal",valueLabelDisplay:X="off",valueLabelFormat:Z=C1}=j,ee=tU(j,j1),te=yV({},j,{isRtl:C,max:U,min:W,classes:M,disabled:D,disableSwap:z,orientation:q,marks:V,color:I,size:K,step:H,scale:G,track:Y,valueLabelDisplay:X,valueLabelFormat:Z}),{axisProps:re,getRootProps:ne,getHiddenInputProps:oe,getThumbProps:ae,open:ie,active:se,axis:le,focusedThumbIndex:ue,range:ce,dragging:de,marks:fe,values:pe,trackOffset:he,trackLeap:me,getThumbStyle:ve}=TQ(yV({},te,{rootRef:t}));te.marked=fe.length>0&&fe.some((e=>e.label)),te.dragging=de,te.focusedThumbIndex=ue;const ge=(e=>{const{disabled:t,dragging:r,marked:n,orientation:o,track:a,classes:i,color:s,size:l}=e;return QV({root:["root",t&&"disabled",r&&"dragging",n&&"marked","vertical"===o&&"vertical","inverted"===a&&"trackInverted",!1===a&&"trackFalse",s&&`color${_V(s)}`,l&&`size${_V(l)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",l&&`thumbSize${_V(l)}`,s&&`thumbColor${_V(s)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]},k1,i)})(te),ye=null!=(r=null!=(n=null==J?void 0:J.root)?n:T.Root)?r:O1,be=null!=(o=null!=(i=null==J?void 0:J.rail)?i:T.Rail)?o:P1,we=null!=(s=null!=(l=null==J?void 0:J.track)?l:T.Track)?s:N1,Se=null!=(u=null!=(c=null==J?void 0:J.thumb)?c:T.Thumb)?u:R1,xe=null!=(d=null!=(f=null==J?void 0:J.valueLabel)?f:T.ValueLabel)?d:T1,_e=null!=(p=null!=(h=null==J?void 0:J.mark)?h:T.Mark)?p:A1,$e=null!=(m=null!=(v=null==J?void 0:J.markLabel)?v:T.MarkLabel)?m:I1,ke=null!=(g=null!=(y=null==J?void 0:J.input)?y:T.Input)?g:"input",Ee=null!=(b=null==Q?void 0:Q.root)?b:A.root,je=null!=(w=null==Q?void 0:Q.rail)?w:A.rail,Ce=null!=(S=null==Q?void 0:Q.track)?S:A.track,Oe=null!=(x=null==Q?void 0:Q.thumb)?x:A.thumb,Pe=null!=(_=null==Q?void 0:Q.valueLabel)?_:A.valueLabel,Ne=null!=($=null==Q?void 0:Q.mark)?$:A.mark,Re=null!=(k=null==Q?void 0:Q.markLabel)?k:A.markLabel,Te=null!=(E=null==Q?void 0:Q.input)?E:A.input,Ae=sQ({elementType:ye,getSlotProps:ne,externalSlotProps:Ee,externalForwardedProps:ee,additionalProps:yV({},$1(ye)&&{as:R}),ownerState:yV({},te,null==Ee?void 0:Ee.ownerState),className:[ge.root,F]}),Ie=sQ({elementType:be,externalSlotProps:je,ownerState:te,className:ge.rail}),Me=sQ({elementType:we,externalSlotProps:Ce,additionalProps:{style:yV({},re[le].offset(he),re[le].leap(me))},ownerState:yV({},te,null==Ce?void 0:Ce.ownerState),className:ge.track}),Fe=sQ({elementType:Se,getSlotProps:ae,externalSlotProps:Oe,ownerState:yV({},te,null==Oe?void 0:Oe.ownerState),className:ge.thumb}),ze=sQ({elementType:xe,externalSlotProps:Pe,ownerState:yV({},te,null==Pe?void 0:Pe.ownerState),className:ge.valueLabel}),De=sQ({elementType:_e,externalSlotProps:Ne,ownerState:te,className:ge.mark}),Le=sQ({elementType:$e,externalSlotProps:Re,ownerState:te,className:ge.markLabel}),Be=sQ({elementType:ke,getSlotProps:oe,externalSlotProps:Te,ownerState:te});return Hj.jsxs(ye,yV({},Ae,{children:[Hj.jsx(be,yV({},Ie)),Hj.jsx(we,yV({},Me)),fe.filter((e=>e.value>=W&&e.value<=U)).map(((e,t)=>{const r=$Q(e.value,W,U),n=re[le].offset(r);let o;return o=!1===Y?-1!==pe.indexOf(e.value):"normal"===Y&&(ce?e.value>=pe[0]&&e.value<=pe[pe.length-1]:e.value<=pe[0])||"inverted"===Y&&(ce?e.value<=pe[0]||e.value>=pe[pe.length-1]:e.value>=pe[0]),Hj.jsxs(a.Fragment,{children:[Hj.jsx(_e,yV({"data-index":t},De,!nQ(_e)&&{markActive:o},{style:yV({},n,De.style),className:nU(De.className,o&&ge.markActive)})),null!=e.label?Hj.jsx($e,yV({"aria-hidden":!0,"data-index":t},Le,!nQ($e)&&{markLabelActive:o},{style:yV({},n,Le.style),className:nU(ge.markLabel,Le.className,o&&ge.markLabelActive),children:e.label})):null]},t)})),pe.map(((e,t)=>{const r=$Q(e,W,U),n=re[le].offset(r),o="off"===X?M1:xe;return Hj.jsx(o,yV({},!nQ(o)&&{valueLabelFormat:Z,valueLabelDisplay:X,value:"function"==typeof Z?Z(G(e),t):Z,index:t,open:ie===t||se===t||"on"===X,disabled:D},ze,{children:Hj.jsx(Se,yV({"data-index":t},Fe,{className:nU(ge.thumb,Fe.className,se===t&&ge.active,ue===t&&ge.focusVisible),style:yV({},n,ve(t),Fe.style),children:Hj.jsx(ke,yV({"data-index":t,"aria-label":L?L(t):O,"aria-valuenow":G(e),"aria-labelledby":N,"aria-valuetext":B?B(G(e),t):P,value:pe[t]},Be))}))}),t)}))]}))}));var z1=F1;function D1(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=Object.assign({value:t,label:c,id:f,name:f},Vj(s));return Hj.jsxs(Hj.Fragment,{children:[TC(Hj.jsx(TJ,Object.assign({required:u,htmlFor:f},{children:c||void 0})),d),Hj.jsx(z1,Object.assign({disabled:n||r,onChange:(e,t)=>{l(null!=t?t:i.emptyValue)},onBlur:({target:{value:e}})=>o(f,e),onFocus:({target:{value:e}})=>a(f,e),valueLabelDisplay:"auto"},p,{"aria-describedby":NC(f)}))]})}function L1(e){return ZV("MuiMenuItem",e)}var B1=eU("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);const V1=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],U1=jH(EG,{shouldForwardProp:e=>kH(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.divider&&t.divider,!r.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>yV({},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"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${B1.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:DK(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${B1.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:DK(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${B1.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:DK(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})`:DK(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${B1.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${B1.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${g0.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${g0.inset}`]:{marginLeft:52},[`& .${bZ.root}`]:{marginTop:0,marginBottom:0},[`& .${bZ.inset}`]:{paddingLeft:36},[`& .${pZ.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&yV({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${pZ.root} svg`]:{fontSize:"1.25rem"}})))),W1=a.forwardRef((function(e,t){const r=$H({props:e,name:"MuiMenuItem"}),{autoFocus:n=!1,component:o="li",dense:i=!1,divider:s=!1,disableGutters:l=!1,focusVisibleClassName:u,role:c="menuitem",tabIndex:d,className:f}=r,p=tU(r,V1),h=a.useContext(YJ),m=a.useMemo((()=>({dense:i||h.dense||!1,disableGutters:l})),[h.dense,i,l]),v=a.useRef(null);PV((()=>{n&&v.current&&v.current.focus()}),[n]);const g=yV({},r,{dense:m.dense,divider:s,disableGutters:l}),y=(e=>{const{disabled:t,dense:r,divider:n,disableGutters:o,selected:a,classes:i}=e;return yV({},i,QV({root:["root",r&&"dense",t&&"disabled",!o&&"gutters",n&&"divider",a&&"selected"]},L1,i))})(r),b=MV(v,t);let w;return r.disabled||(w=void 0!==d?d:-1),Hj.jsx(YJ.Provider,{value:m,children:Hj.jsx(U1,yV({ref:b,role:c,tabIndex:w,component:o,focusVisibleClassName:nU(y.focusVisible,u),className:nU(y.root,f)},p,{ownerState:g,classes:y}))})}));var q1=W1;function K1(e){var{schema:t,id:r,name:n,options:o,label:a,hideLabel:i,required:s,disabled:l,placeholder:u,readonly:c,value:d,multiple:f,autofocus:p,onChange:h,onBlur:m,onFocus:v,rawErrors:g=[],registry:y,uiSchema:b,hideError:w,formContext:S}=e,x=ov(e,["schema","id","name","options","label","hideLabel","required","disabled","placeholder","readonly","value","multiple","autofocus","onChange","onBlur","onFocus","rawErrors","registry","uiSchema","hideError","formContext"]);const{enumOptions:_,enumDisabled:$,emptyValue:k}=o,E=(f=void 0!==f&&!!f)?[]:"",j=void 0===d||f&&d.length<1||!f&&d===E,C=Fj(d,_,f);return Hj.jsx(IX,Object.assign({id:r,name:r,label:TC(a||void 0,i,!1),value:j?E:C,required:s,disabled:l||c,autoFocus:p,placeholder:u,error:g.length>0,onChange:({target:{value:e}})=>h(Aj(e,_,k)),onBlur:({target:{value:e}})=>m(r,Aj(e,_,k)),onFocus:({target:{value:e}})=>v(r,Aj(e,_,k))},x,{select:!0,InputLabelProps:Object.assign(Object.assign({},x.InputLabelProps),{shrink:!j}),SelectProps:Object.assign(Object.assign({},x.SelectProps),{multiple:f}),"aria-describedby":NC(r)},{children:Array.isArray(_)&&_.map((({value:e,label:t},r)=>{const n=Array.isArray($)&&-1!==$.indexOf(e);return Hj.jsx(q1,Object.assign({value:String(r),disabled:n},{children:t}),r)}))}))}function H1(e){const{options:t,registry:r}=e,n=Kj("BaseInputTemplate",r,t);let o=5;return"string"!=typeof t.rows&&"number"!=typeof t.rows||(o=t.rows),Hj.jsx(n,Object.assign({},e,{multiline:!0,rows:o}))}function G1(){return{CheckboxWidget:X0,CheckboxesWidget:o1,RadioWidget:_1,RangeWidget:D1,SelectWidget:K1,TextareaWidget:H1}}const Q1=(J1={templates:{ArrayFieldItemTemplate:tQ,ArrayFieldTemplate:rQ,BaseInputTemplate:FX,ButtonTemplates:{AddButton:TG,CopyButton:JZ,MoveDownButton:YZ,MoveUpButton:XZ,RemoveButton:ZZ,SubmitButton:m0},DescriptionFieldTemplate:qX,ErrorListTemplate:$Z,FieldErrorTemplate:e0,FieldHelpTemplate:t0,FieldTemplate:r0,ObjectFieldTemplate:n0,TitleFieldTemplate:_0,WrapIfAdditionalTemplate:$0},widgets:{...G1(),SelectWidget:e=>{const r=G1().SelectWidget;return B.createElement(r,t({},e,{SelectProps:{...e.SelectProps||{},MenuProps:{autoFocus:!1,disableAutoFocusItem:!0,disableEnforceFocus:!0,disableAutoFocus:!0}}}))}}},a.forwardRef(((e,t)=>{var r,{fields:n,widgets:o,templates:a}=e,i=ov(e,["fields","widgets","templates"]);return n=Object.assign(Object.assign({},null==J1?void 0:J1.fields),n),o=Object.assign(Object.assign({},null==J1?void 0:J1.widgets),o),a=Object.assign(Object.assign(Object.assign({},null==J1?void 0:J1.templates),a),{ButtonTemplates:Object.assign(Object.assign({},null===(r=null==J1?void 0:J1.templates)||void 0===r?void 0:r.ButtonTemplates),null==a?void 0:a.ButtonTemplates)}),Hj.jsx(pV,Object.assign({},J1,i,{fields:n,widgets:o,templates:a,ref:t}))})));var J1;function Y1(){const e=frameData.app.context,t=["form-data"];return e.organization_id&&t.push(e.organization_id),e.project_id&&t.push(e.project_id),t.join("-")}const X1={htmlWidget:function(e){const{value:t,options:{content:r}}=e,n=a.useRef();return a.useEffect((()=>{const e=t||r,o=document.createRange().createContextualFragment(e);n.current.append(o)}),[]),B.createElement("div",{ref:n})}};function Z1(e={},t,r){const n=U.createRoot(document.getElementById("form"));if(AP&&AP._data&&AP._data.app&&["modal","editor-right-panel"].includes(AP._data.app.type)){const e=document.getElementById("card");e.style.border="none",e.style.overflow="initial",e.removeAttribute("is-shadowed"),e.setAttribute("without-p",!0),e.parentElement.style.padding="16px",e.parentElement.style.paddingBottom="0px"}n.render(B.createElement(Q1,{widgets:X1,formData:e,validator:Qz,schema:t||window.formSchema,uiSchema:r||window.formUiSchema,onSubmit:e=>{!function(e){document.getElementById("form-loading").style.display="flex",checkOrigin().then((t=>fetch(formPostDataUrl+t+"&id="+Y1(),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({data:e,context:frameData.app.context})}))).then(checkResponse).then((e=>{e&&e.message||showToast("Settings successfully saved"),document.getElementById("form-loading").style.display="none",e&&(e.formData||e.formSchema||e.formUiSchema)&&Z1(e.formData,e.formSchema,e.formUiSchema),e&&e.redirect&&(window.location=e.redirect)})).catch((e=>{catchRejection(e,"Can't save settings"),document.getElementById("form-loading").style.display="none"}))}(e.formData)}})),document.getElementById("form-loading").style.display="none"}checkOrigin().then((e=>{const t=new URLSearchParams(frameData.app.context).toString(),r=new URLSearchParams(e+"&id="+Y1());return r.set("context",t),fetch(formGetDataUrl+"?"+r.toString(),{method:"GET"})})).then(checkResponse).catch((e=>catchRejection(e,"Can't load saved settings"))).then((e=>{Z1(e.formData,e.formSchema,e.formUiSchema)})).catch((()=>Z1({})))}();
|