@limetech/lime-elements 40.5.1 → 40.5.4

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.
Files changed (97) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/dist/cjs/{_baseEach-Bygi-un6.js → _baseForOwn-8jMPwf3X.js} +1 -43
  3. package/dist/cjs/{_baseIsEqual-CQZKiKbe.js → _baseIsEqual-zzV9DKMv.js} +0 -1
  4. package/dist/cjs/{_baseIteratee-DDklwtn9.js → _baseIteratee-BIMRm4nq.js} +1 -3
  5. package/dist/cjs/_baseSet-DykMx7uF.js +92 -0
  6. package/dist/cjs/_getPrototype-CCLHkBHj.js +8 -0
  7. package/dist/cjs/{cloneDeep-hE40Q8aw.js → cloneDeep-D2immmwT.js} +16 -160
  8. package/dist/cjs/{difference-B543MGsY.js → isArrayLikeObject-U2Ddbw4n.js} +5 -93
  9. package/dist/cjs/{isEqual-Cd9J8a5-.js → isEqual-D3eFkhqd.js} +1 -1
  10. package/dist/cjs/limel-action-bar_3.cjs.entry.js +1 -1
  11. package/dist/cjs/limel-chip-set.cjs.entry.js +2 -2
  12. package/dist/cjs/limel-dialog.cjs.entry.js +2 -2
  13. package/dist/cjs/limel-file-dropzone_2.cjs.entry.js +45 -6
  14. package/dist/cjs/limel-file-viewer.cjs.entry.js +510 -70
  15. package/dist/cjs/limel-flatpickr-adapter.cjs.entry.js +73 -11
  16. package/dist/cjs/limel-form.cjs.entry.js +5985 -3415
  17. package/dist/cjs/limel-popover_2.cjs.entry.js +1 -1
  18. package/dist/cjs/limel-prosemirror-adapter.cjs.entry.js +326 -262
  19. package/dist/cjs/limel-tab-bar.cjs.entry.js +83 -4
  20. package/dist/cjs/limel-table.cjs.entry.js +598 -199
  21. package/dist/collection/components/action-bar/action-bar-item/action-bar-item.css +1 -1
  22. package/dist/collection/components/form/fields/schema-field.js +8 -0
  23. package/dist/collection/components/form/form.js +1 -0
  24. package/dist/collection/components/form/form.test-schemas.js +47 -0
  25. package/dist/collection/components/form/templates/array-field-collapsible-item.js +38 -11
  26. package/dist/collection/components/popover-surface/popover-surface.css +1 -0
  27. package/dist/collection/components/table/table.css +1 -2
  28. package/dist/esm/{_baseEach-lvj-g1Zj.js → _baseForOwn-D5j7fHlv.js} +2 -42
  29. package/dist/esm/{_baseIsEqual-B6bIeexY.js → _baseIsEqual-CyF4P8uM.js} +2 -2
  30. package/dist/esm/{_baseIteratee-CEZRuq23.js → _baseIteratee-CpbczHY1.js} +3 -3
  31. package/dist/esm/_baseSet-Cw2IE6ZF.js +89 -0
  32. package/dist/esm/_getPrototype-B0kMNv1F.js +6 -0
  33. package/dist/esm/{_getTag-CMJL-6hk.js → _getTag-BiAaLWvH.js} +1 -1
  34. package/dist/esm/{cloneDeep-CL7UD3mR.js → cloneDeep-DAbOtbs8.js} +18 -154
  35. package/dist/esm/{difference-DND5tWiA.js → isArrayLikeObject-CJB8HbtH.js} +7 -91
  36. package/dist/esm/{isEmpty-DHgukT5k.js → isEmpty-BGVZ12Ea.js} +1 -1
  37. package/dist/esm/{isEqual-4tbMaaf_.js → isEqual-CE83yS8T.js} +1 -1
  38. package/dist/esm/limel-action-bar_3.entry.js +1 -1
  39. package/dist/esm/limel-chip-set.entry.js +3 -3
  40. package/dist/esm/limel-chip_2.entry.js +2 -2
  41. package/dist/esm/limel-dialog.entry.js +3 -3
  42. package/dist/esm/limel-file-dropzone_2.entry.js +45 -6
  43. package/dist/esm/limel-file-viewer.entry.js +510 -70
  44. package/dist/esm/limel-flatpickr-adapter.entry.js +69 -7
  45. package/dist/esm/limel-form.entry.js +5982 -3412
  46. package/dist/esm/limel-popover_2.entry.js +1 -1
  47. package/dist/esm/limel-prosemirror-adapter.entry.js +327 -263
  48. package/dist/esm/limel-tab-bar.entry.js +83 -4
  49. package/dist/esm/limel-table.entry.js +595 -196
  50. package/dist/lime-elements/lime-elements.esm.js +1 -1
  51. package/dist/lime-elements/p-05afb316.entry.js +1 -0
  52. package/dist/lime-elements/p-0fba64eb.entry.js +16 -0
  53. package/dist/lime-elements/p-10594468.entry.js +1 -0
  54. package/dist/lime-elements/p-19344984.entry.js +13 -0
  55. package/dist/lime-elements/p-26c5c6b9.entry.js +1 -0
  56. package/dist/lime-elements/{p-11a96a8c.entry.js → p-36ce4fbc.entry.js} +1 -1
  57. package/dist/lime-elements/{p-955292eb.entry.js → p-4aae63bd.entry.js} +1 -1
  58. package/dist/lime-elements/{p-b8c76487.entry.js → p-5d974afa.entry.js} +1 -1
  59. package/dist/lime-elements/p-B6-3WXAv.js +1 -0
  60. package/dist/lime-elements/p-BQeIv4aA.js +1 -0
  61. package/dist/lime-elements/p-BY5NjPj8.js +1 -0
  62. package/dist/lime-elements/p-COdirXg1.js +1 -0
  63. package/dist/lime-elements/p-CW2-jhzP.js +1 -0
  64. package/dist/lime-elements/p-D2VFSWDU.js +1 -0
  65. package/dist/lime-elements/{p-D4RdItCq.js → p-DK0pjX-Y.js} +1 -1
  66. package/dist/lime-elements/p-ORUNaKm-.js +1 -0
  67. package/dist/lime-elements/{p-5b371d6b.entry.js → p-a71f6e87.entry.js} +4 -4
  68. package/dist/lime-elements/{p-1dd86ad4.entry.js → p-bd7b3f8e.entry.js} +1 -1
  69. package/dist/lime-elements/p-cef66e53.entry.js +1 -0
  70. package/dist/lime-elements/{p-02812dc8.entry.js → p-d3bd4b80.entry.js} +1 -1
  71. package/dist/lime-elements/p-nVemxylR.js +1 -0
  72. package/dist/lime-elements/p-pk5KIdKH.js +1 -0
  73. package/dist/types/components/form/form.test-schemas.d.ts +3 -0
  74. package/dist/types/components/form/templates/array-field-collapsible-item.d.ts +0 -1
  75. package/package.json +16 -16
  76. package/dist/cjs/_getAllKeysIn-BJsgUTAt.js +0 -119
  77. package/dist/cjs/_isIterateeCall-BUGt9SrH.js +0 -73
  78. package/dist/cjs/pickBy-D-X6S5kg.js +0 -201
  79. package/dist/esm/_getAllKeysIn-kT3KizYN.js +0 -114
  80. package/dist/esm/_isIterateeCall-Bb4gUZLK.js +0 -70
  81. package/dist/esm/pickBy-C4C3CM4m.js +0 -195
  82. package/dist/lime-elements/p-055b11f7.entry.js +0 -13
  83. package/dist/lime-elements/p-56bkn1D-.js +0 -1
  84. package/dist/lime-elements/p-67f02b69.entry.js +0 -1
  85. package/dist/lime-elements/p-867681aa.entry.js +0 -1
  86. package/dist/lime-elements/p-9d3437ac.entry.js +0 -16
  87. package/dist/lime-elements/p-B8yl2MCT.js +0 -1
  88. package/dist/lime-elements/p-BAR6am-7.js +0 -1
  89. package/dist/lime-elements/p-BE1Efiuj.js +0 -1
  90. package/dist/lime-elements/p-BsX7ma3n.js +0 -1
  91. package/dist/lime-elements/p-CR7u-m0b.js +0 -1
  92. package/dist/lime-elements/p-CVzgpz9P.js +0 -1
  93. package/dist/lime-elements/p-D8H5afYg.js +0 -1
  94. package/dist/lime-elements/p-DtrvybFR.js +0 -1
  95. package/dist/lime-elements/p-f309ceb8.entry.js +0 -1
  96. package/dist/lime-elements/p-f3c108c9.entry.js +0 -1
  97. package/dist/lime-elements/p-mmkVLOjW.js +0 -1
@@ -0,0 +1,13 @@
1
+ import{r as e,c as r,h as t,a as n}from"./p-Bnc9lzk2.js";import{g as i}from"./p-B85MJLTf.js";import{t as o,b as a,g as l}from"./p-BY5NjPj8.js";import{i as u}from"./p-D2VFSWDU.js";import{i as s}from"./p-COdirXg1.js";import{b as c}from"./p-BJQylLSL.js";import{g as f}from"./p-CW2-jhzP.js";import{i as d}from"./p-oiMYqRQ0.js";import{b as h,n as m}from"./p-nVemxylR.js";import{a as p,b as v,c as y,i as b}from"./p-pk5KIdKH.js";import{s as g,S as w,c as k}from"./p-B6-3WXAv.js";import{S as $}from"./p-DK0pjX-Y.js";import{m as S}from"./p-zo6O9LC9.js";import{c as E}from"./p-ORUNaKm-.js";import{i as j}from"./p-B8hi7R6R.js";import{b as x}from"./p-ByzvFNMm.js";import{b as O}from"./p-BQeIv4aA.js";import"./p-B8VKuhvH.js";import"./p-BOEi1C7r.js";import"./p-B--C3qwe.js";import"./p-BYfPV0O4.js";import"./p-BcJ-TDVt.js";import"./p-CK4jS9_E.js";import"./p-9W8bTt2G.js";import"./p-DbBZn7JO.js";import"./p-CZ30nDJE.js";var A=Function.prototype.toString,C=Object.prototype.hasOwnProperty,_=A.call(Object);function I(e){if(!d(e)||"[object Object]"!=c(e))return!1;var r=f(e);if(null===r)return!0;var t=C.call(r,"constructor")&&r.constructor;return"function"==typeof t&&t instanceof t&&A.call(t)==_}var D=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");function P(e){return D.test(e)}var F="\\ud800-\\udfff",q="["+F+"]",T="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",M="\\ud83c[\\udffb-\\udfff]",N="[^"+F+"]",R="(?:\\ud83c[\\udde6-\\uddff]){2}",z="[\\ud800-\\udbff][\\udc00-\\udfff]",U="(?:"+T+"|"+M+")?",L="[\\ufe0e\\ufe0f]?",B=L+U+"(?:\\u200d(?:"+[N,R,z].join("|")+")"+L+U+")*",V="(?:"+[N+T+"?",T,R,z,q].join("|")+")",H=RegExp(M+"(?="+M+")|"+V+B,"g");var W,G,K=function(e){var r,t,n,i,a=P(e=o(e))?function(e){return P(e)?function(e){return e.match(H)||[]}(e):function(e){return e.split("")}(e)}(e):void 0,l=a?a[0]:e.charAt(0),u=a?(r=a,t=1,i=r.length,n=void 0===n?i:n,!t&&n>=i?r:function(e,r,t){var n=-1,i=e.length;r<0&&(r=-r>i?0:i+r),(t=t>i?i:t)<0&&(t+=i),i=r>t?0:t-r>>>0,r>>>=0;for(var o=Array(i);++n<i;)o[n]=e[n+r];return o}(r,t,n)).join(""):e.slice(1);return l.toUpperCase()+u},Z=$&&1/g(new $([,-0]))[1]==1/0?function(e){return new $(e)}:function(){},J=v((function(e){return function(e){var r=-1,t=p,n=e.length,i=!0,o=[],a=o;if(n>=200){var l=Z(e);if(l)return g(l);i=!1,t=k,a=new w}else a=o;e:for(;++r<n;){var u=e[r],s=u;if(u=0!==u?u:0,i&&s==s){for(var c=a.length;c--;)if(a[c]===s)continue e;o.push(u)}else t(a,s,undefined)||(a!==o&&a.push(s),o.push(u))}return o}(y(e,1,b))})),Y={exports:{}},X={};function Q(){if(W)return X;W=1;var e=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),t=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),a=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),s=Symbol.for("react.memo"),c=Symbol.for("react.lazy"),f=Symbol.for("react.activity"),d=Symbol.for("react.view_transition"),h=Symbol.iterator,m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},p=Object.assign,v={};function y(e,r,t){this.props=e,this.context=r,this.refs=v,this.updater=t||m}function b(){}function g(e,r,t){this.props=e,this.context=r,this.refs=v,this.updater=t||m}y.prototype.isReactComponent={},y.prototype.setState=function(e,r){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,r,"setState")},y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},b.prototype=y.prototype;var w=g.prototype=new b;w.constructor=g,p(w,y.prototype),w.isPureReactComponent=!0;var k=Array.isArray;function $(){}var S={H:null,A:null,T:null,S:null},E=Object.prototype.hasOwnProperty;function j(r,t,n){var i=n.ref;return{$$typeof:e,type:r,key:t,ref:void 0!==i?i:null,props:n}}function x(r){return"object"==typeof r&&null!==r&&r.$$typeof===e}var O=/\/+/g;function A(e,r){return"object"==typeof e&&null!==e&&null!=e.key?(t={"=":"=0",":":"=2"},"$"+(""+e.key).replace(/[=:]/g,(function(e){return t[e]}))):r.toString(36);var t}function C(t,n,i,o,a){var l=typeof t;"undefined"!==l&&"boolean"!==l||(t=null);var u,s,f=!1;if(null===t)f=!0;else switch(l){case"bigint":case"string":case"number":f=!0;break;case"object":switch(t.$$typeof){case e:case r:f=!0;break;case c:return C((f=t._init)(t._payload),n,i,o,a)}}if(f)return a=a(t),f=""===o?"."+A(t,0):o,k(a)?(i="",null!=f&&(i=f.replace(O,"$&/")+"/"),C(a,n,i,"",(function(e){return e}))):null!=a&&(x(a)&&(u=a,s=i+(null==a.key||t&&t.key===a.key?"":(""+a.key).replace(O,"$&/")+"/")+f,a=j(u.type,s,u.props)),n.push(a)),1;f=0;var d,m=""===o?".":o+":";if(k(t))for(var p=0;p<t.length;p++)f+=C(o=t[p],n,i,l=m+A(o,p),a);else if("function"==typeof(p=null===(d=t)||"object"!=typeof d?null:"function"==typeof(d=h&&d[h]||d["@@iterator"])?d:null))for(t=p.call(t),p=0;!(o=t.next()).done;)f+=C(o=o.value,n,i,l=m+A(o,p++),a);else if("object"===l){if("function"==typeof t.then)return C(function(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch("string"==typeof e.status?e.then($,$):(e.status="pending",e.then((function(r){"pending"===e.status&&(e.status="fulfilled",e.value=r)}),(function(r){"pending"===e.status&&(e.status="rejected",e.reason=r)}))),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}(t),n,i,o,a);throw n=String(t),Error("Objects are not valid as a React child (found: "+("[object Object]"===n?"object with keys {"+Object.keys(t).join(", ")+"}":n)+"). If you meant to render a collection of children, use an array instead.")}return f}function _(e,r,t){if(null==e)return e;var n=[],i=0;return C(e,n,"","",(function(e){return r.call(t,e,i++)})),n}function I(e){if(-1===e._status){var r=(0,e._result)();r.then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t,void 0===r.status&&(r.status="fulfilled",r.value=t))}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t,void 0===r.status&&(r.status="rejected",r.reason=t))})),-1===e._status&&(e._status=0,e._result=r)}if(1===e._status)return e._result.default;throw e._result}var D="function"==typeof reportError?reportError:function(e){if("object"==typeof window&&"function"==typeof window.ErrorEvent){var r=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:String("object"==typeof e&&null!==e&&"string"==typeof e.message?e.message:e),error:e});if(!window.dispatchEvent(r))return}else if("object"==typeof process&&"function"==typeof process.emit)return void process.emit("uncaughtException",e);console.error(e)};function P(e){var r=S.T,t={};t.types=null!==r?r.types:null,S.T=t;try{var n=e(),i=S.S;null!==i&&i(t,n),"object"==typeof n&&null!==n&&"function"==typeof n.then&&n.then($,D)}catch(e){D(e)}finally{null!==r&&null!==t.types&&(r.types=t.types),S.T=r}}var F={map:_,forEach:function(e,r,t){_(e,(function(){r.apply(this,arguments)}),t)},count:function(e){var r=0;return _(e,(function(){r++})),r},toArray:function(e){return _(e,(function(e){return e}))||[]},only:function(e){if(!x(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};return X.Activity=f,X.Children=F,X.Component=y,X.Fragment=t,X.Profiler=i,X.PureComponent=g,X.StrictMode=n,X.Suspense=u,X.ViewTransition=d,X.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=S,X.__COMPILER_RUNTIME={__proto__:null,c:function(e){return S.H.useMemoCache(e)}},X.addTransitionType=function e(r){var t=S.T;if(null!==t){var n=t.types;null===n?t.types=[r]:-1===n.indexOf(r)&&n.push(r)}else P(e.bind(null,r))},X.cache=function(e){return function(){return e.apply(null,arguments)}},X.cacheSignal=function(){return null},X.cloneElement=function(e,r,t){if(null==e)throw Error("The argument must be a React element, but you passed "+e+".");var n=p({},e.props),i=e.key;if(null!=r)for(o in void 0!==r.key&&(i=""+r.key),r)!E.call(r,o)||"key"===o||"__self"===o||"__source"===o||"ref"===o&&void 0===r.ref||(n[o]=r[o]);var o=arguments.length-2;if(1===o)n.children=t;else if(1<o){for(var a=Array(o),l=0;l<o;l++)a[l]=arguments[l+2];n.children=a}return j(e.type,i,n)},X.createContext=function(e){return(e={$$typeof:a,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider=e,e.Consumer={$$typeof:o,_context:e},e},X.createElement=function(e,r,t){var n,i={},o=null;if(null!=r)for(n in void 0!==r.key&&(o=""+r.key),r)E.call(r,n)&&"key"!==n&&"__self"!==n&&"__source"!==n&&(i[n]=r[n]);var a=arguments.length-2;if(1===a)i.children=t;else if(1<a){for(var l=Array(a),u=0;u<a;u++)l[u]=arguments[u+2];i.children=l}if(e&&e.defaultProps)for(n in a=e.defaultProps)void 0===i[n]&&(i[n]=a[n]);return j(e,o,i)},X.createRef=function(){return{current:null}},X.forwardRef=function(e){return{$$typeof:l,render:e}},X.isValidElement=x,X.lazy=function(e){return{$$typeof:c,_payload:{_status:-1,_result:e},_init:I}},X.memo=function(e,r){return{$$typeof:s,type:e,compare:void 0===r?null:r}},X.startTransition=P,X.unstable_useCacheRefresh=function(){return S.H.useCacheRefresh()},X.use=function(e){return S.H.use(e)},X.useActionState=function(e,r,t){return S.H.useActionState(e,r,t)},X.useCallback=function(e,r){return S.H.useCallback(e,r)},X.useContext=function(e){return S.H.useContext(e)},X.useDebugValue=function(){},X.useDeferredValue=function(e,r){return S.H.useDeferredValue(e,r)},X.useEffect=function(e,r){return S.H.useEffect(e,r)},X.useEffectEvent=function(e){return S.H.useEffectEvent(e)},X.useId=function(){return S.H.useId()},X.useImperativeHandle=function(e,r,t){return S.H.useImperativeHandle(e,r,t)},X.useInsertionEffect=function(e,r){return S.H.useInsertionEffect(e,r)},X.useLayoutEffect=function(e,r){return S.H.useLayoutEffect(e,r)},X.useMemo=function(e,r){return S.H.useMemo(e,r)},X.useOptimistic=function(e,r){return S.H.useOptimistic(e,r)},X.useReducer=function(e,r,t){return S.H.useReducer(e,r,t)},X.useRef=function(e){return S.H.useRef(e)},X.useState=function(e){return S.H.useState(e)},X.useSyncExternalStore=function(e,r,t){return S.H.useSyncExternalStore(e,r,t)},X.useTransition=function(){return S.H.useTransition()},X.version="19.3.0",X}function ee(){return G||(G=1,Y.exports=Q()),Y.exports}var re,te,ne=ee(),ie=i(ne),oe={exports:{}},ae={},le={exports:{}},ue={};var se,ce,fe,de,he={exports:{}},me={};var pe,ve,ye=(de||(de=1,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)}}(),oe.exports=function(){if(fe)return ae;fe=1;var e=(te||(te=1,le.exports=(re||(re=1,function(e){function r(e,r){var t=e.length;e.push(r);e:for(;0<t;){var n=t-1>>>1,o=e[n];if(!(0<i(o,r)))break e;e[n]=r,e[t]=o,t=n}}function t(e){return 0===e.length?null:e[0]}function n(e){if(0===e.length)return null;var r=e[0],t=e.pop();if(t!==r){e[0]=t;e:for(var n=0,o=e.length,a=o>>>1;n<a;){var l=2*(n+1)-1,u=e[l],s=l+1,c=e[s];if(0>i(u,t))s<o&&0>i(c,u)?(e[n]=c,e[s]=t,n=s):(e[n]=u,e[l]=t,n=l);else{if(!(s<o&&0>i(c,t)))break e;e[n]=c,e[s]=t,n=s}}}return r}function i(e,r){var t=e.sortIndex-r.sortIndex;return 0!==t?t:e.id-r.id}if(e.unstable_now=void 0,"object"==typeof performance&&"function"==typeof performance.now){var o=performance;e.unstable_now=function(){return o.now()}}else{var a=Date,l=a.now();e.unstable_now=function(){return a.now()-l}}var u=[],s=[],c=1,f=null,d=3,h=!1,m=!1,p=!1,v=!1,y="function"==typeof setTimeout?setTimeout:null,b="function"==typeof clearTimeout?clearTimeout:null,g="undefined"!=typeof setImmediate?setImmediate:null;function w(e){for(var i=t(s);null!==i;){if(null===i.callback)n(s);else{if(!(i.startTime<=e))break;n(s),i.sortIndex=i.expirationTime,r(u,i)}i=t(s)}}function k(e){if(p=!1,w(e),!m)if(null!==t(u))m=!0,S||(S=!0,$());else{var r=t(s);null!==r&&I(k,r.startTime-e)}}var $,S=!1,E=-1,j=5,x=-1;function O(){return!(!v&&e.unstable_now()-x<j)}function A(){if(v=!1,S){var r=e.unstable_now();x=r;var i=!0;try{e:{m=!1,p&&(p=!1,b(E),E=-1),h=!0;var o=d;try{r:{for(w(r),f=t(u);null!==f&&!(f.expirationTime>r&&O());){var a=f.callback;if("function"==typeof a){f.callback=null,d=f.priorityLevel;var l=a(f.expirationTime<=r);if(r=e.unstable_now(),"function"==typeof l){f.callback=l,w(r),i=!0;break r}f===t(u)&&n(u),w(r)}else n(u);f=t(u)}if(null!==f)i=!0;else{var c=t(s);null!==c&&I(k,c.startTime-r),i=!1}}break e}finally{f=null,d=o,h=!1}i=void 0}}finally{i?$():S=!1}}}if("function"==typeof g)$=function(){g(A)};else if("undefined"!=typeof MessageChannel){var C=new MessageChannel,_=C.port2;C.port1.onmessage=A,$=function(){_.postMessage(null)}}else $=function(){y(A,0)};function I(r,t){E=y((function(){r(e.unstable_now())}),t)}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_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"):j=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return d},e.unstable_next=function(e){switch(d){case 1:case 2:case 3:var r=3;break;default:r=d}var t=d;d=r;try{return e()}finally{d=t}},e.unstable_requestPaint=function(){v=!0},e.unstable_runWithPriority=function(e,r){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var t=d;d=e;try{return r()}finally{d=t}},e.unstable_scheduleCallback=function(n,i,o){var a=e.unstable_now();switch(o="object"==typeof o&&null!==o&&"number"==typeof(o=o.delay)&&0<o?a+o:a,n){case 1:var l=-1;break;case 2:l=250;break;case 5:l=1073741823;break;case 4:l=1e4;break;default:l=5e3}return n={id:c++,callback:i,priorityLevel:n,startTime:o,expirationTime:l=o+l,sortIndex:-1},o>a?(n.sortIndex=o,r(s,n),null===t(u)&&n===t(s)&&(p?(b(E),E=-1):p=!0,I(k,o-a))):(n.sortIndex=l,r(u,n),m||h||(m=!0,S||(S=!0,$()))),n},e.unstable_shouldYield=O,e.unstable_wrapCallback=function(e){var r=d;return function(){var t=d;d=r;try{return e.apply(this,arguments)}finally{d=t}}}}(ue)),ue)),le.exports),r=ee(),t=(ce||(ce=1,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)}}(),he.exports=function(){if(se)return me;se=1;var e=ee();function r(e){var r="https://react.dev/errors/"+e;if(1<arguments.length){r+="?args[]="+encodeURIComponent(arguments[1]);for(var t=2;t<arguments.length;t++)r+="&args[]="+encodeURIComponent(arguments[t])}return"Minified React error #"+e+"; visit "+r+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function t(){}var n={d:{f:t,r:function(){throw Error(r(522))},D:t,C:t,L:t,m:t,X:t,S:t,M:t},p:0,findDOMNode:null},i=Symbol.for("react.portal"),o=Symbol.for("react.recoverable"),a=Symbol.for("react.optimistic_key"),l=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function u(e,r){return"font"===e?"":"string"==typeof r?"use-credentials"===r?r:"":void 0}return me.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=n,me.browser=function(e){return{$$typeof:o,_reason:e}},me.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!t||1!==t.nodeType&&9!==t.nodeType&&11!==t.nodeType)throw Error(r(299));return function(e,r,t){var n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:i,key:null==n?null:n===a?a:""+n,children:e,containerInfo:r,implementation:t}}(e,t,null,n)},me.flushSync=function(e){var r=l.T,t=n.p;try{if(l.T=null,n.p=2,e)return e()}finally{l.T=r,n.p=t,n.d.f()}},me.preconnect=function(e,r){"string"==typeof e&&(r=r?"string"==typeof(r=r.crossOrigin)?"use-credentials"===r?r:"":void 0:null,n.d.C(e,r))},me.prefetchDNS=function(e){"string"==typeof e&&n.d.D(e)},me.preinit=function(e,r){if("string"==typeof e&&r&&"string"==typeof r.as){var t=r.as,i=u(t,r.crossOrigin),o="string"==typeof r.integrity?r.integrity:void 0,a="string"==typeof r.fetchPriority?r.fetchPriority:void 0;"style"===t?n.d.S(e,"string"==typeof r.precedence?r.precedence:void 0,{crossOrigin:i,integrity:o,fetchPriority:a}):"script"===t&&n.d.X(e,{crossOrigin:i,integrity:o,fetchPriority:a,nonce:"string"==typeof r.nonce?r.nonce:void 0})}},me.preinitModule=function(e,r){if("string"==typeof e)if("object"==typeof r&&null!==r){if(null==r.as||"script"===r.as){var t=u(r.as,r.crossOrigin);n.d.M(e,{crossOrigin:t,integrity:"string"==typeof r.integrity?r.integrity:void 0,nonce:"string"==typeof r.nonce?r.nonce:void 0,fetchPriority:"string"==typeof r.fetchPriority?r.fetchPriority:void 0})}}else null==r&&n.d.M(e)},me.preload=function(e,r){if("string"==typeof e&&"object"==typeof r&&null!==r&&"string"==typeof r.as){var t=r.as,i=u(t,r.crossOrigin);n.d.L(e,t,{crossOrigin:i,integrity:"string"==typeof r.integrity?r.integrity:void 0,nonce:"string"==typeof r.nonce?r.nonce:void 0,type:"string"==typeof r.type?r.type:void 0,fetchPriority:"string"==typeof r.fetchPriority?r.fetchPriority:void 0,referrerPolicy:"string"==typeof r.referrerPolicy?r.referrerPolicy:void 0,imageSrcSet:"string"==typeof r.imageSrcSet?r.imageSrcSet:void 0,imageSizes:"string"==typeof r.imageSizes?r.imageSizes:void 0,media:"string"==typeof r.media?r.media:void 0})}},me.preloadModule=function(e,r){if("string"==typeof e)if(r){var t=u(r.as,r.crossOrigin);n.d.m(e,{as:"string"==typeof r.as&&"script"!==r.as?r.as:void 0,crossOrigin:t,integrity:"string"==typeof r.integrity?r.integrity:void 0,nonce:"string"==typeof r.nonce?r.nonce:void 0,fetchPriority:"string"==typeof r.fetchPriority?r.fetchPriority:void 0})}else n.d.m(e)},me.requestFormReset=function(e){n.d.r(e)},me.unstable_batchedUpdates=function(e,r){return e(r)},me.useFormState=function(e,r,t){return l.H.useFormState(e,r,t)},me.useFormStatus=function(){return l.H.useHostTransitionStatus()},me.version="19.3.0",me}()),he.exports);function n(e){var r="https://react.dev/errors/"+e;if(1<arguments.length){r+="?args[]="+encodeURIComponent(arguments[1]);for(var t=2;t<arguments.length;t++)r+="&args[]="+encodeURIComponent(arguments[t])}return"Minified React error #"+e+"; visit "+r+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function o(e){for(var r=e,t=r;t&&!t.alternate;)!!(4098&(r=t).flags)&&(e=r.return),t=r.return;for(;r.return;)r=r.return;return 3===r.tag?e:null}function a(e){if(13===e.tag){var r=e.memoizedState;if(null===r&&null!==(e=e.alternate)&&(r=e.memoizedState),null!==r)return r.dehydrated}return null}function l(e){if(31===e.tag){var r=e.memoizedState;if(null===r&&null!==(e=e.alternate)&&(r=e.memoizedState),null!==r)return r.dehydrated}return null}function u(e){if(o(e)!==e)throw Error(n(188))}function s(e){var r=e.tag;if(5===r||26===r||27===r||6===r)return e;for(e=e.child;null!==e;){if(null!==(r=s(e)))return r;e=e.sibling}return null}function c(e,r,t,n,i,o){for(;null!==e;){if((5===e.tag||27===e.tag||6===e.tag)&&t(e,n,i,o)||(22!==e.tag||null===e.memoizedState)&&(r||5!==e.tag&&27!==e.tag)&&c(e.child,r,t,n,i,o))return!0;e=e.sibling}return!1}function f(e){for(e=e.return;null!==e;){if(3===e.tag||5===e.tag||27===e.tag)return e;e=e.return}return null}function d(e){var r=!1;for(e=e.return;null!==e&&(4===e.tag&&(r=!0),3!==e.tag&&5!==e.tag&&27!==e.tag);)e=e.return;return r}function h(e){var r=[null,null],t=f(e);return null===t||m(r,e,t.child,{foundSelf:!1}),r}function m(e,r,t,n){for(;null!==t;){if(t===r)n.foundSelf=!0;else if(5===t.tag||27===t.tag||6===t.tag){if(n.foundSelf)return e[1]=t,!0;e[0]=t}else if((22!==t.tag||null===t.memoizedState)&&m(e,r,t.child,n))return!0;t=t.sibling}return!1}function p(e){switch(e.tag){case 5:case 27:case 6:return e.stateNode;case 3:return e.stateNode.containerInfo;default:throw Error(n(559))}}var v=null,y=null;function b(e,r,t){return e===t||e===r&&(v=e,!0)}function g(e,r,t){return e===t?(y=e,!1):e===r&&(null!==y&&(v=e),!0)}function w(e){if(null===e)return null;do{e=null===e?null:e.return}while(e&&5!==e.tag&&27!==e.tag&&3!==e.tag);return e||null}function k(e,r,t){for(var n=0,i=e;i;i=t(i))n++;i=0;for(var o=r;o;o=t(o))i++;for(;0<n-i;)e=t(e),n--;for(;0<i-n;)r=t(r),i--;for(;n--;){if(e===r||null!==r&&e===r.alternate)return e;e=t(e),r=t(r)}return null}var $=Object.assign,S=Symbol.for("react.element"),E=Symbol.for("react.transitional.element"),j=Symbol.for("react.portal"),x=Symbol.for("react.fragment"),O=Symbol.for("react.strict_mode"),A=Symbol.for("react.profiler"),C=Symbol.for("react.consumer"),_=Symbol.for("react.context"),I=Symbol.for("react.forward_ref"),D=Symbol.for("react.suspense"),P=Symbol.for("react.suspense_list"),F=Symbol.for("react.memo"),q=Symbol.for("react.lazy"),T=Symbol.for("react.activity"),M=Symbol.for("react.legacy_hidden"),N=Symbol.for("react.memo_cache_sentinel"),R=Symbol.for("react.view_transition"),z=Symbol.for("react.recoverable"),U=Symbol.iterator;function L(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=U&&e[U]||e["@@iterator"])?e:null}var B=Symbol.for("react.client.reference");function V(e){if(null==e)return null;if("function"==typeof e)return e.$$typeof===B?null:e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case x:return"Fragment";case A:return"Profiler";case O:return"StrictMode";case D:return"Suspense";case P:return"SuspenseList";case T:return"Activity";case R:return"ViewTransition"}if("object"==typeof e)switch(e.$$typeof){case j:return"Portal";case _:return e.displayName||"Context";case C:return(e._context.displayName||"Context")+".Consumer";case I:var r=e.render;return(e=e.displayName)||(e=""!==(e=r.displayName||r.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case F:return null!==(r=e.displayName||null)?r:V(e.type)||"Memo";case q:r=e._payload,e=e._init;try{return V(e(r))}catch(e){}}return null}var H=Array.isArray,W=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,G=t.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,K={pending:!1,data:null,method:null,action:null},Z=[],J=-1;function Y(e){return{current:e}}function X(e){0>J||(e.current=Z[J],Z[J]=null,J--)}function Q(e,r){J++,Z[J]=e.current,e.current=r}var ne,ie,oe=Y(null),de=Y(null),pe=Y(null),ve=Y(null);function ye(e,r){switch(Q(pe,r),Q(de,e),Q(oe,null),r.nodeType){case 9:case 11:e=(e=r.documentElement)&&(e=e.namespaceURI)?Hd(e):0;break;default:if(e=r.tagName,r=r.namespaceURI)e=Wd(r=Hd(r),e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}X(oe),Q(oe,e)}function be(){X(oe),X(de),X(pe)}function ge(e){var r=e.memoizedState;null!==r&&(ym._currentValue=r.memoizedState,Q(ve,e));var t=Wd(r=oe.current,e.type);r!==t&&(Q(de,e),Q(oe,t))}function we(e){de.current===e&&(X(oe),X(de)),ve.current===e&&(X(ve),ym._currentValue=K)}function ke(e){if(void 0===ne)try{throw Error()}catch(e){var r=e.stack.trim().match(/\n( *(at )?)/);ne=r&&r[1]||"",ie=-1<e.stack.indexOf("\n at")?" (<anonymous>)":-1<e.stack.indexOf("@")?"@unknown:0:0":""}return"\n"+ne+e+ie}var $e=!1;function Se(e,r){if(!e||$e)return"";$e=!0;var t=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var n={DetermineComponentFrameRoot:function(){try{if(r){var t=function(){throw Error()};if(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}t=!1;try{var i=Object.getOwnPropertyDescriptor(e.prototype,"props");Object.defineProperty(e.prototype,"props",{configurable:!0,set:function(){throw Error()}}),t=!0,new e}finally{t&&(void 0!==i?Object.defineProperty(e.prototype,"props",i):delete e.prototype.props)}}}else{try{throw Error()}catch(e){n=e}(t=e())&&"function"==typeof t.catch&&t.catch((function(){}))}}catch(e){if(e&&n&&"string"==typeof e.stack)return[e.stack,n.stack]}return[null,null]}};n.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var i=Object.getOwnPropertyDescriptor(n.DetermineComponentFrameRoot,"name");i&&i.configurable&&Object.defineProperty(n.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var o=n.DetermineComponentFrameRoot(),a=o[0],l=o[1];if(a&&l){var u=a.split("\n"),s=l.split("\n");for(i=n=0;n<u.length&&!u[n].includes("DetermineComponentFrameRoot");)n++;for(;i<s.length&&!s[i].includes("DetermineComponentFrameRoot");)i++;if(n===u.length||i===s.length)for(n=u.length-1,i=s.length-1;1<=n&&0<=i&&u[n]!==s[i];)i--;for(;1<=n&&0<=i;n--,i--)if(u[n]!==s[i]){if(1!==n||1!==i)do{if(n--,0>--i||u[n]!==s[i]){var c="\n"+u[n].replace(" at new "," at ");return e.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",e.displayName)),c}}while(1<=n&&0<=i);break}}}finally{$e=!1,Error.prepareStackTrace=t}return(t=e?e.displayName||e.name:"")?ke(t):""}function Ee(e,r){switch(e.tag){case 26:case 27:case 5:return ke(e.type);case 16:return ke("Lazy");case 13:return ke(e.child!==r&&null!==r?"Suspense Fallback":"Suspense");case 19:return ke("SuspenseList");case 0:case 15:return Se(e.type,!1);case 11:return Se(e.type.render,!1);case 1:return Se(e.type,!0);case 31:return ke("Activity");case 30:return ke("ViewTransition");default:return""}}function je(e){try{var r="",t=null;do{r+=Ee(e,t),t=e,e=e.return}while(e);return r}catch(e){return"\nError generating stack: "+e.message+"\n"+e.stack}}var xe=Object.prototype.hasOwnProperty,Oe=e.unstable_scheduleCallback,Ae=e.unstable_cancelCallback,Ce=e.unstable_shouldYield,_e=e.unstable_requestPaint,Ie=e.unstable_now,De=e.unstable_getCurrentPriorityLevel,Pe=e.unstable_ImmediatePriority,Fe=e.unstable_UserBlockingPriority,qe=e.unstable_NormalPriority,Te=e.unstable_LowPriority,Me=e.unstable_IdlePriority,Ne=e.log,Re=e.unstable_setDisableYieldValue,ze=null,Ue=null;function Le(e){if("function"==typeof Ne&&Re(e),Ue&&"function"==typeof Ue.setStrictMode)try{Ue.setStrictMode(ze,e)}catch(e){}}var Be=Math.clz32?Math.clz32:function(e){return 0==(e>>>=0)?32:31-(Ve(e)/He|0)|0},Ve=Math.log,He=Math.LN2,We=256,Ge=262144,Ke=4194304;function Ze(e){var r=42&e;if(0!==r)return r;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:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&-e;case 262144:case 524288:case 1048576:case 2097152:return 3932160&e;case 4194304:case 8388608:case 16777216:case 33554432:return 62914560&e;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Je(e,r,t){var n=e.pendingLanes;if(0===n)return 0;var i=0,o=e.suspendedLanes,a=e.pingedLanes;e=e.warmLanes;var l=134217727&n;return 0!==l?0!=(n=l&~o)?i=Ze(n):0!=(a&=l)?i=Ze(a):t||0!=(t=l&~e)&&(i=Ze(t)):0!=(l=n&~o)?i=Ze(l):0!==a?i=Ze(a):t||0!=(t=n&~e)&&(i=Ze(t)),0===i?0:0===r||r===i||r&o||!((o=i&-i)>=(t=r&-r)||32===o&&4194048&t)?i:r}function Ye(e,r){return!(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&r)}function Xe(e,r){8&r&&(r|=32&r);var t=e.entangledLanes;if(0!==t)for(e=e.entanglements,t&=r;0<t;){var n=31-Be(t);r|=e[n],t&=~(1<<n)}return r}function Qe(e,r){switch(e){case 1:case 2:case 4:case 8:case 64:return r+250;case 16:case 32: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 r+5e3;default:return-1}}function er(){var e=Ke;return!(62914560&(Ke<<=1))&&(Ke=4194304),e}function rr(e){for(var r=[],t=0;31>t;t++)r.push(e);return r}function tr(e,r){e.pendingLanes|=r,268435456!==r&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function nr(e,r,t){e.pendingLanes|=r,e.suspendedLanes&=~r;var n=31-Be(r);e.entangledLanes|=r,e.entanglements[n]=1073741824|e.entanglements[n]|261930&t}function ir(e,r){var t=e.entangledLanes|=r;for(e=e.entanglements;t;){var n=31-Be(t),i=1<<n;i&r|e[n]&r&&(e[n]|=r),t&=~i}}function or(e,r){var t=r&-r;return(t=42&t?1:ar(t))&(e.suspendedLanes|r)?0:t}function ar(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;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:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function lr(e){return 2<(e&=-e)?8<e?134217727&e?32:268435456:8:2}function ur(){var e=G.p;return 0!==e?e:void 0===(e=window.event)?32:Pm(e.type)}function sr(e,r){var t=G.p;try{return G.p=e,r()}finally{G.p=t}}var cr=Math.random().toString(36).slice(2),fr="__reactFiber$"+cr,dr="__reactProps$"+cr,hr="__reactContainer$"+cr,mr="__reactEvents$"+cr,pr="__reactListeners$"+cr,vr="__reactHandles$"+cr,yr="__reactResources$"+cr,br="__reactMarker$"+cr,gr="__reactLoad$"+cr;function wr(e){delete e[fr],delete e[dr],delete e[pr],delete e[vr]}function kr(e){var r;if(r=e[fr])return r;for(var t=e.parentNode;t;){if(r=t[hr]||t[fr]){if(t=r.alternate,null!==r.child||null!==t&&null!==t.child)for(e=Mh(e);null!==e;){if(t=e[fr])return t;e=Mh(e)}return r}t=(e=t).parentNode}return null}function $r(e){if(e=e[fr]||e[hr]){var r=e.tag;if(5===r||6===r||13===r||31===r||26===r||27===r||3===r)return e}return null}function Sr(e){var r=e.tag;if(5===r||26===r||27===r||6===r)return e.stateNode;throw Error(n(33))}function Er(e){var r=e[yr];return r||(r=e[yr]={hoistableStyles:new Map,hoistableScripts:new Map}),r}function jr(e){e[br]=!0}function xr(e){e[gr]=void 0}var Or=new Set,Ar={};function Cr(e,r){_r(e,r),_r(e+"Capture",r)}function _r(e,r){for(Ar[e]=r,e=0;e<r.length;e++)Or.add(r[e])}var Ir=RegExp("^[: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]*$"),Dr={},Pr={},Fr=!1;function qr(){var e=Fr;return Fr=!1,e}function Tr(e,r,t){if(xe.call(Pr,i=r)||!xe.call(Dr,i)&&(Ir.test(i)?Pr[i]=!0:(Dr[i]=!0,0)))if(null===t)e.removeAttribute(r);else{switch(typeof t){case"undefined":case"function":case"symbol":return void e.removeAttribute(r);case"boolean":var n=r.toLowerCase().slice(0,5);if("data-"!==n&&"aria-"!==n)return void e.removeAttribute(r)}e.setAttribute(r,t)}var i}function Mr(e,r,t){if(null===t)e.removeAttribute(r);else{switch(typeof t){case"undefined":case"function":case"symbol":case"boolean":return void e.removeAttribute(r)}e.setAttribute(r,t)}}function Nr(e,r,t,n){if(null===n)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":return void e.removeAttribute(t)}e.setAttributeNS(r,t,n)}}function Rr(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function zr(e){var r=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===r||"radio"===r)}function Ur(e){if(!e._valueTracker){var r=zr(e)?"checked":"value";e._valueTracker=function(e,r,t){var n=Object.getOwnPropertyDescriptor(e.constructor.prototype,r);if(!e.hasOwnProperty(r)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var i=n.get,o=n.set;return Object.defineProperty(e,r,{configurable:!0,get:function(){return i.call(this)},set:function(e){t=""+e,o.call(this,e)}}),Object.defineProperty(e,r,{enumerable:n.enumerable}),{getValue:function(){return t},setValue:function(e){t=""+e},stopTracking:function(){e._valueTracker=null,delete e[r]}}}}(e,r,""+e[r])}}function Lr(e){if(!e)return!1;var r=e._valueTracker;if(!r)return!0;var t=r.getValue(),n="";return e&&(n=zr(e)?e.checked?"true":"false":e.value),(e=n)!==t&&(r.setValue(e),!0)}var Br=/[\n"\\]/g;function Vr(e){return e.replace(Br,(function(e){return"\\"+e.charCodeAt(0).toString(16)+" "}))}function Hr(e,r,t,n,i,o,a,l){e.name="",null!=a&&"function"!=typeof a&&"symbol"!=typeof a&&"boolean"!=typeof a?e.type=a:e.removeAttribute("type"),null!=r?"number"===a?(0===r&&""===e.value||e.value!=r)&&(e.value=""+Rr(r)):e.value!==""+Rr(r)&&(e.value=""+Rr(r)):"submit"!==a&&"reset"!==a||e.removeAttribute("value"),null!=r?Gr(e,Rr("number"===a&&e.value==r?e.value:r)):null!=t?Gr(e,Rr(t)):null!=n&&e.removeAttribute("value"),null==i&&null!=o&&(e.defaultChecked=!!o),null!=i&&(e.checked=i&&"function"!=typeof i&&"symbol"!=typeof i),null!=l&&"function"!=typeof l&&"symbol"!=typeof l&&"boolean"!=typeof l?e.name=""+Rr(l):e.removeAttribute("name")}function Wr(e,r,t,n,i,o,a,l){if(null!=o&&"function"!=typeof o&&"symbol"!=typeof o&&"boolean"!=typeof o&&(e.type=o),null!=r||null!=t){if(("submit"===o||"reset"===o)&&null==r)return void Ur(e);t=null!=t?""+Rr(t):"",r=null!=r?""+Rr(r):t,l||r===e.value||(e.value=r),e.defaultValue=r}n="function"!=typeof(n=null!=n?n:i)&&"symbol"!=typeof n&&!!n,e.checked=l?e.checked:!!n,e.defaultChecked=!!n,null!=a&&"function"!=typeof a&&"symbol"!=typeof a&&"boolean"!=typeof a&&(e.name=a),Ur(e)}function Gr(e,r){e.defaultValue!==""+r&&(e.defaultValue=""+r)}function Kr(e,r,t,n){if(e=e.options,r){r={};for(var i=0;i<t.length;i++)r["$"+t[i]]=!0;for(t=0;t<e.length;t++)i=r.hasOwnProperty("$"+e[t].value),e[t].selected!==i&&(e[t].selected=i),i&&n&&(e[t].defaultSelected=!0)}else{for(t=""+Rr(t),r=null,i=0;i<e.length;i++){if(e[i].value===t)return e[i].selected=!0,void(n&&(e[i].defaultSelected=!0));null!==r||e[i].disabled||(r=e[i])}null!==r&&(r.selected=!0)}}function Zr(e,r,t){null==r||((r=""+Rr(r))!==e.value&&(e.value=r),null!=t)?e.defaultValue=null!=t?""+Rr(t):"":e.defaultValue!==r&&(e.defaultValue=r)}function Jr(e,r,t,i){if(null==r){if(null!=i){if(null!=t)throw Error(n(92));if(H(i)){if(1<i.length)throw Error(n(93));i=i[0]}t=i}null==t&&(t=""),r=t}t=Rr(r),e.defaultValue=t,(i=e.textContent)===t&&""!==i&&null!==i&&(e.value=i),Ur(e)}function Yr(e,r){if(r){var t=e.firstChild;if(t&&t===e.lastChild&&3===t.nodeType)return void(t.nodeValue=r)}e.textContent=r}var Xr=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Qr(e,r,t){var n=0===r.indexOf("--");null==t||"boolean"==typeof t||""===t?n?e.setProperty(r,""):"float"===r?e.cssFloat="":e[r]="":n?e.setProperty(r,t):"number"!=typeof t||0===t||Xr.has(r)?"float"===r?e.cssFloat=t:e[r]=(""+t).trim():e[r]=t+"px"}function et(e,r,t){if(null!=r&&"object"!=typeof r)throw Error(n(62));if(e=e.style,null!=t){for(var i in t)!t.hasOwnProperty(i)||null!=r&&r.hasOwnProperty(i)||(0===i.indexOf("--")?e.setProperty(i,""):"float"===i?e.cssFloat="":e[i]="",Fr=!0);for(var o in r)i=r[o],r.hasOwnProperty(o)&&t[o]!==i&&(Qr(e,o,i),Fr=!0)}else for(var a in r)r.hasOwnProperty(a)&&Qr(e,a,r[a])}function rt(e){if(-1===e.indexOf("-"))return!1;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 tt=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["maskType","mask-type"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),nt=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function it(e){return nt.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function ot(){}var at=null;function lt(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var ut=null,st=null;function ct(e){var r=$r(e);if(r&&(e=r.stateNode)){var t=e[dr]||null;e:switch(e=r.stateNode,r.type){case"input":if(Hr(e,t.value,t.defaultValue,t.defaultValue,t.checked,t.defaultChecked,t.type,t.name),r=t.name,"radio"===t.type&&null!=r){for(t=e;t.parentNode;)t=t.parentNode;for(t=t.querySelectorAll('input[name="'+Vr(""+r)+'"][type="radio"]'),r=0;r<t.length;r++){var i=t[r];if(i!==e&&i.form===e.form){var o=i[dr]||null;if(!o)throw Error(n(90));Hr(i,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name)}}for(r=0;r<t.length;r++)(i=t[r]).form===e.form&&Lr(i)}break e;case"textarea":Zr(e,t.value,t.defaultValue);break e;case"select":null!=(r=t.value)&&Kr(e,!!t.multiple,r,!1)}}}var ft=!1;function dt(e,r,t){if(ft)return e(r,t);ft=!0;try{return e(r)}finally{if(ft=!1,(null!==ut||null!==st)&&(jf(),ut&&(r=ut,e=st,st=ut=null,ct(r),e)))for(r=0;r<e.length;r++)ct(e[r])}}function ht(e,r){var t=e.stateNode;if(null===t)return null;var i=t[dr]||null;if(null===i)return null;t=i[r];e:switch(r){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(i=!i.disabled)||(i=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!i;break e;default:e=!1}if(e)return null;if(t&&"function"!=typeof t)throw Error(n(231,r,typeof t));return t}var mt=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),pt=!1;if(mt)try{var vt={};Object.defineProperty(vt,"passive",{get:function(){pt=!0}}),window.addEventListener("test",vt,vt),window.removeEventListener("test",vt,vt)}catch(e){pt=!1}var yt=null,bt=null,gt=null;function wt(){if(gt)return gt;var e,r,t=bt,n=t.length,i="value"in yt?yt.value:yt.textContent,o=i.length;for(e=0;e<n&&t[e]===i[e];e++);var a=n-e;for(r=1;r<=a&&t[n-r]===i[o-r];r++);return gt=i.slice(e,1<r?1-r:void 0)}function kt(e){var r=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===r&&(e=13):e=r,10===e&&(e=13),32<=e||13===e?e:0}function $t(){return!0}function St(){return!1}function Et(e){function r(r,t,n,i,o){for(var a in this._reactName=r,this._targetInst=n,this.type=t,this.nativeEvent=i,this.target=o,this.currentTarget=null,e)e.hasOwnProperty(a)&&(this[a]=(r=e[a])?r(i):i[a]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?$t:St,this.isPropagationStopped=St,this}return $(r.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=$t)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=$t)},persist:function(){},isPersistent:$t}),r}var jt,xt,Ot,At={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ct=Et(At),_t=$({},At,{view:0,detail:0}),It=Et(_t),Dt=$({},_t,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Bt,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!==Ot&&(Ot&&"mousemove"===e.type?(jt=e.screenX-Ot.screenX,xt=e.screenY-Ot.screenY):xt=jt=0,Ot=e),jt)},movementY:function(e){return"movementY"in e?e.movementY:xt}}),Pt=Et(Dt),Ft=Et($({},Dt,{dataTransfer:0})),qt=Et($({},_t,{relatedTarget:0})),Tt=Et($({},At,{animationName:0,elapsedTime:0,pseudoElement:0})),Mt=Et($({},At,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}})),Nt=Et($({},At,{data:0})),Rt={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},zt={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"},Ut={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Lt(e){var r=this.nativeEvent;return r.getModifierState?r.getModifierState(e):!!(e=Ut[e])&&!!r[e]}function Bt(){return Lt}var Vt=Et($({},_t,{key:function(e){if(e.key){var r=Rt[e.key]||e.key;if("Unidentified"!==r)return r}return"keypress"===e.type?13===(e=kt(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?zt[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Bt,charCode:function(e){return"keypress"===e.type?kt(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?kt(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}})),Ht=Et($({},Dt,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Wt=Et($({},At,{submitter:0})),Gt=Et($({},_t,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Bt})),Kt=Et($({},At,{propertyName:0,elapsedTime:0,pseudoElement:0})),Zt=Et($({},Dt,{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})),Jt=Et($({},At,{newState:0,oldState:0,source:0})),Yt=[9,13,27,32],Xt=mt&&"CompositionEvent"in window,Qt=null;mt&&"documentMode"in document&&(Qt=document.documentMode);var en=mt&&"TextEvent"in window&&!Qt,rn=mt&&(!Xt||Qt&&8<Qt&&11>=Qt),tn=String.fromCharCode(32),nn=!1;function on(e,r){switch(e){case"keyup":return-1!==Yt.indexOf(r.keyCode);case"keydown":return 229!==r.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function an(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var ln=!1,un={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 sn(e){var r=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===r?!!un[e.type]:"textarea"===r}function cn(e,r,t,n){ut?st?st.push(n):st=[n]:ut=n,0<(r=_d(r,"onChange")).length&&(t=new Ct("onChange","change",null,t,n),e.push({event:t,listeners:r}))}var fn=null,dn=null;function hn(e){$d(e,0)}function mn(e){if(Lr(Sr(e)))return e}function pn(e,r){if("change"===e)return r}var vn=!1;if(mt){var yn;if(mt){var bn="oninput"in document;if(!bn){var gn=document.createElement("div");gn.setAttribute("oninput","return;"),bn="function"==typeof gn.oninput}yn=bn}else yn=!1;vn=yn&&(!document.documentMode||9<document.documentMode)}function wn(){fn&&(fn.detachEvent("onpropertychange",kn),dn=fn=null)}function kn(e){if("value"===e.propertyName&&mn(dn)){var r=[];cn(r,dn,e,lt(e)),dt(hn,r)}}function $n(e,r,t){"focusin"===e?(wn(),dn=t,(fn=r).attachEvent("onpropertychange",kn)):"focusout"===e&&wn()}function Sn(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return mn(dn)}function En(e,r){if("click"===e)return mn(r)}function jn(e,r){if("input"===e||"change"===e)return mn(r)}var xn="function"==typeof Object.is?Object.is:function(e,r){return e===r&&(0!==e||1/e==1/r)||e!=e&&r!=r};function On(e,r){if(xn(e,r))return!0;if("object"!=typeof e||null===e||"object"!=typeof r||null===r)return!1;var t=Object.keys(e),n=Object.keys(r);if(t.length!==n.length)return!1;for(n=0;n<t.length;n++){var i=t[n];if(!xe.call(r,i)||!xn(e[i],r[i]))return!1}return!0}function An(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(r){return e.body}}function Cn(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function _n(e,r){var t,n=Cn(e);for(e=0;n;){if(3===n.nodeType){if(t=e+n.textContent.length,e<=r&&t>=r)return{node:n,offset:r-e};e=t}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Cn(n)}}function In(e,r){return!(!e||!r)&&(e===r||(!e||3!==e.nodeType)&&(r&&3===r.nodeType?In(e,r.parentNode):"contains"in e?e.contains(r):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(r))))}function Dn(e){for(var r=An((e=null!=e&&null!=e.ownerDocument&&null!=e.ownerDocument.defaultView?e.ownerDocument.defaultView:window).document);r instanceof e.HTMLIFrameElement;){try{var t="string"==typeof r.contentWindow.location.href}catch(e){t=!1}if(!t)break;r=An((e=r.contentWindow).document)}return r}function Pn(e){var r=e&&e.nodeName&&e.nodeName.toLowerCase();return r&&("input"===r&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===r||"true"===e.contentEditable)}var Fn=mt&&"documentMode"in document&&11>=document.documentMode,qn=null,Tn=null,Mn=null,Nn=!1;function Rn(e,r,t){var n=t.window===t?t.document:9===t.nodeType?t:t.ownerDocument;Nn||null==qn||qn!==An(n)||(n="selectionStart"in(n=qn)&&Pn(n)?{start:n.selectionStart,end:n.selectionEnd}:{anchorNode:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset},Mn&&On(Mn,n)||(Mn=n,0<(n=_d(Tn,"onSelect")).length&&(r=new Ct("onSelect","select",null,r,t),e.push({event:r,listeners:n}),r.target=qn)))}function zn(e,r){var t={};return t[e.toLowerCase()]=r.toLowerCase(),t["Webkit"+e]="webkit"+r,t["Moz"+e]="moz"+r,t}var Un={animationend:zn("Animation","AnimationEnd"),animationiteration:zn("Animation","AnimationIteration"),animationstart:zn("Animation","AnimationStart"),transitionrun:zn("Transition","TransitionRun"),transitionstart:zn("Transition","TransitionStart"),transitioncancel:zn("Transition","TransitionCancel"),transitionend:zn("Transition","TransitionEnd")},Ln={},Bn={};function Vn(e){if(Ln[e])return Ln[e];if(!Un[e])return e;var r,t=Un[e];for(r in t)if(t.hasOwnProperty(r)&&r in Bn)return Ln[e]=t[r];return e}mt&&(Bn=document.createElement("div").style,"AnimationEvent"in window||(delete Un.animationend.animation,delete Un.animationiteration.animation,delete Un.animationstart.animation),"TransitionEvent"in window||delete Un.transitionend.transition);var Hn=Vn("animationend"),Wn=Vn("animationiteration"),Gn=Vn("animationstart"),Kn=Vn("transitionrun"),Zn=Vn("transitionstart"),Jn=Vn("transitioncancel"),Yn=Vn("transitionend"),Xn=new Map,Qn="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error fullscreenChange fullscreenError 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 ei(e,r){Xn.set(e,r),Cr(r,[e])}Qn.push("scrollEnd");var ri=0;function ti(e,r){return null!=e.name&&"auto"!==e.name?e.name:null!==r.autoName?r.autoName:(e="_"+(e=af.identifierPrefix)+"t_"+(ri++).toString(32)+"_",r.autoName=e)}function ni(e){if(null==e||"string"==typeof e)return e;var r=null,t=mf;if(null!==t)for(var n=0;n<t.length;n++){var i=e[t[n]];if(null!=i){if("none"===i)return"none";r=null==r?i:r+" "+i}}return null==r?e.default:r}function ii(e,r){return e=ni(e),null==(r=ni(r))?"auto"===e?null:e:"auto"===r?null:r}var oi="function"==typeof reportError?reportError:function(e){if("object"==typeof window&&"function"==typeof window.ErrorEvent){var r=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:String("object"==typeof e&&null!==e&&"string"==typeof e.message?e.message:e),error:e});if(!window.dispatchEvent(r))return}else if("object"==typeof process&&"function"==typeof process.emit)return void process.emit("uncaughtException",e);console.error(e)},ai=[],li=0,ui=0;function si(){for(var e=li,r=ui=li=0;r<e;){var t=ai[r];ai[r++]=null;var n=ai[r];ai[r++]=null;var i=ai[r];ai[r++]=null;var o=ai[r];if(ai[r++]=null,null!==n&&null!==i){var a=n.pending;null===a?i.next=i:(i.next=a.next,a.next=i),n.pending=i}0!==o&&hi(t,i,o)}}function ci(e,r,t,n){ai[li++]=e,ai[li++]=r,ai[li++]=t,ai[li++]=n,ui|=n,e.lanes|=n,null!==(e=e.alternate)&&(e.lanes|=n)}function fi(e,r,t,n){return ci(e,r,t,n),mi(e)}function di(e,r){return ci(e,null,null,r),mi(e)}function hi(e,r,t){e.lanes|=t;var n=e.alternate;null!==n&&(n.lanes|=t);for(var i=!1,o=e.return;null!==o;)o.childLanes|=t,null!==(n=o.alternate)&&(n.childLanes|=t),22===o.tag&&(null===(e=o.stateNode)||1&e._visibility||(i=!0)),e=o,o=o.return;return 3===e.tag?(o=e.stateNode,i&&null!==r&&(i=31-Be(t),null===(n=(e=o.hiddenUpdates)[i])?e[i]=[r]:n.push(r),r.lane=536870912|t),o):null}function mi(e){if(50<pf)throw pf=0,vf=null,Error(n(185));for(var r=e.return;null!==r;)r=(e=r).return;return 3===e.tag?e.stateNode:null}var pi={};function vi(e,r,t,n){this.tag=e,this.key=t,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=r,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 yi(e,r,t,n){return new vi(e,r,t,n)}function bi(e){return!(!(e=e.prototype)||!e.isReactComponent)}function gi(e,r){var t=e.alternate;return null===t?((t=yi(e.tag,r,e.key,e.mode)).elementType=e.elementType,t.type=e.type,t.stateNode=e.stateNode,t.alternate=e,e.alternate=t):(t.pendingProps=r,t.type=e.type,t.flags=0,t.subtreeFlags=0,t.deletions=null),t.flags=1206910976&e.flags,t.childLanes=e.childLanes,t.lanes=e.lanes,t.child=e.child,t.memoizedProps=e.memoizedProps,t.memoizedState=e.memoizedState,t.updateQueue=e.updateQueue,t.dependencies=null===(r=e.dependencies)?null:{lanes:r.lanes,firstContext:r.firstContext},t.sibling=e.sibling,t.index=e.index,t.ref=e.ref,t.refCleanup=e.refCleanup,t}function wi(e,r){e.flags&=1206910978;var t=e.alternate;return null===t?(e.childLanes=0,e.lanes=r,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=t.childLanes,e.lanes=t.lanes,e.child=t.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=t.memoizedProps,e.memoizedState=t.memoizedState,e.updateQueue=t.updateQueue,e.type=t.type,e.dependencies=null===(r=t.dependencies)?null:{lanes:r.lanes,firstContext:r.firstContext}),e}function ki(e,r,t,i,o,a){var l=0;if("function"==typeof(i=e))bi(i)&&(l=1);else if("string"==typeof i)l=function(e,r,t){if(1===t||null!=r.itemProp)return!1;switch(e){case"meta":case"title":return!0;case"style":if("string"!=typeof r.precedence||"string"!=typeof r.href||""===r.href)break;return!0;case"link":if("string"!=typeof r.rel||"string"!=typeof r.href||""===r.href||r.onLoad||r.onError)break;return"stylesheet"!==r.rel||(e=r.disabled,"string"==typeof r.precedence&&null==e);case"script":if(r.async&&"function"!=typeof r.async&&"symbol"!=typeof r.async&&!r.onLoad&&!r.onError&&r.src&&"string"==typeof r.src)return!0}return!1}(e,t,oe.current)?26:"html"===e||"head"===e||"body"===e?27:5;else e:switch(i){case T:return(e=yi(31,t,r,o)).elementType=T,e.lanes=a,e;case x:return $i(t.children,o,a,r);case O:l=8,o|=24;break;case A:return(e=yi(12,t,r,2|o)).elementType=A,e.lanes=a,e;case D:return(e=yi(13,t,r,o)).elementType=D,e.lanes=a,e;case P:return(e=yi(19,t,r,o)).elementType=P,e.lanes=a,e;case M:case R:return(e=yi(30,t,r,e=32|o)).elementType=R,e.lanes=a,e.stateNode={autoName:null,paired:null,clones:null,ref:null},e;default:if("object"==typeof i&&null!==i)switch(i.$$typeof){case _:l=10;break e;case C:l=9;break e;case I:l=11;break e;case F:l=14;break e;case q:l=16,i=null;break e}l=29,t=Error(n(130,null===e?"null":typeof e,"")),i=null}return(r=yi(l,t,r,o)).elementType=e,r.type=i,r.lanes=a,r}function $i(e,r,t,n){return(e=yi(7,e,n,r)).lanes=t,e}function Si(e,r,t){return(e=yi(6,e,null,r)).lanes=t,e}function Ei(e){var r=yi(18,null,null,0);return r.stateNode=e,r}function ji(e,r,t){return(r=yi(4,null!==e.children?e.children:[],e.key,r)).lanes=t,r.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},r}var xi=new WeakMap;function Oi(e,r){if("object"==typeof e&&null!==e){var t=xi.get(e);return void 0!==t?t:(r={value:e,source:r,stack:je(r)},xi.set(e,r),r)}return{value:e,source:r,stack:je(r)}}var Ai=[],Ci=0,_i=null,Ii=0,Di=[],Pi=0,Fi=null,qi=1,Ti="";function Mi(e,r){Ai[Ci++]=Ii,Ai[Ci++]=_i,_i=e,Ii=r}function Ni(e,r,t){Di[Pi++]=qi,Di[Pi++]=Ti,Di[Pi++]=Fi,Fi=e;var n=qi;e=Ti;var i=32-Be(n)-1;n&=~(1<<i),t+=1;var o=32-Be(r)+i;if(30<o){var a=i-i%5;o=(n&(1<<a)-1).toString(32),n>>=a,i-=a,qi=1<<32-Be(r)+i|t<<i|n,Ti=o+e}else qi=1<<o|t<<i|n,Ti=e}function Ri(e){null!==e.return&&(Mi(e,1),Ni(e,1,0))}function zi(e){for(;e===_i;)_i=Ai[--Ci],Ai[Ci]=null,Ii=Ai[--Ci],Ai[Ci]=null;for(;e===Fi;)Fi=Di[--Pi],Di[Pi]=null,Ti=Di[--Pi],Di[Pi]=null,qi=Di[--Pi],Di[Pi]=null}function Ui(e,r){Di[Pi++]=qi,Di[Pi++]=Ti,Di[Pi++]=Fi,qi=r.id,Ti=r.overflow,Fi=e}var Li=null,Bi=null,Vi=!1,Hi=null,Wi=!1,Gi=Error(n(519));function Ki(e){throw eo(Oi(Error(n(418,1<arguments.length&&void 0!==arguments[1]&&arguments[1]?"text":"HTML","")),e)),Gi}function Zi(e){var r=e.stateNode,t=e.type,n=e.memoizedProps;switch(r[fr]=e,r[dr]=n,t){case"dialog":Sd("cancel",r),Sd("close",r);break;case"iframe":case"object":case"embed":Sd("load",r);break;case"video":case"audio":for(t=0;t<wd.length;t++)Sd(wd[t],r);break;case"source":Sd("error",r);break;case"img":case"image":case"link":Sd("error",r),Sd("load",r);break;case"details":Sd("toggle",r);break;case"input":Sd("invalid",r),Wr(r,n.value,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name,!0);break;case"select":Sd("invalid",r);break;case"textarea":Sd("invalid",r),Jr(r,n.value,n.defaultValue,n.children)}"string"!=typeof(t=n.children)&&"number"!=typeof t&&"bigint"!=typeof t||r.textContent===""+t||!0===n.suppressHydrationWarning||Td(r.textContent,t)?(null!=n.popover&&(Sd("beforetoggle",r),Sd("toggle",r)),null!=n.onScroll&&Sd("scroll",r),null!=n.onScrollEnd&&Sd("scrollend",r),null!=n.onClick&&(r.onclick=ot),r=!0):r=!1,r||Ki(e,!0)}function Ji(e){for(Li=e.return;Li;)switch(Li.tag){case 5:case 31:case 13:return void(Wi=!1);case 27:case 3:return void(Wi=!0);default:Li=Li.return}}function Yi(e){if(e!==Li)return!1;if(!Vi)return Ji(e),Vi=!0,!1;var r,t=e.tag;if((r=3!==t&&27!==t)&&((r=5===t)&&(r=!("form"!==(r=e.type)&&"button"!==r)||Kd(e.type,e.memoizedProps)),r=!r),r&&Bi&&Ki(e),Ji(e),13===t){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(n(317));Bi=Th(e)}else if(31===t){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(n(317));Bi=Th(e)}else 27===t?(t=Bi,th(e.type)?(e=qh,qh=null,Bi=e):Bi=t):Bi=Li?Fh(e.stateNode.nextSibling):null;return!0}function Xi(){Bi=Li=null,Vi=!1}function Qi(){var e=Hi;return null!==e&&(null===Yc?Yc=e:Yc.push.apply(Yc,e),Hi=null),e}function eo(e){null===Hi?Hi=[e]:Hi.push(e)}var ro=Y(null),to=null,no=null;function io(e,r,t){Q(ro,r._currentValue),r._currentValue=t}function oo(e){e._currentValue=ro.current,X(ro)}function ao(e,r,t){for(;null!==e;){var n=e.alternate;if((e.childLanes&r)!==r?(e.childLanes|=r,null!==n&&(n.childLanes|=r)):null!==n&&(n.childLanes&r)!==r&&(n.childLanes|=r),e===t)break;e=e.return}}function lo(e,r,t,i){var o=e.child;for(null!==o&&(o.return=e);null!==o;){var a=o.dependencies;if(null!==a){var l=o.child;a=a.firstContext;e:for(;null!==a;){var u=a;a=o;for(var s=0;s<r.length;s++)if(u.context===r[s]){a.lanes|=t,null!==(u=a.alternate)&&(u.lanes|=t),ao(a.return,t,e),i||(l=null);break e}a=u.next}}else if(18===o.tag){if(null===(l=o.return))throw Error(n(341));l.lanes|=t,null!==(a=l.alternate)&&(a.lanes|=t),ao(l,t,e),l=null}else 13===o.tag&&null!==o.memoizedState&&null===o.memoizedState.dehydrated?(o.lanes|=t,null!==(l=o.alternate)&&(l.lanes|=t),ao(o.return,t,e),l=null!==(l=o.child)?l.sibling:null):l=o.child;if(null!==l)l.return=o;else for(l=o;null!==l;){if(l===e){l=null;break}if(null!==(o=l.sibling)){o.return=l.return,l=o;break}l=l.return}o=l}}function uo(e,r,t,i){e=null;for(var o=r,a=!1;null!==o;){if(!a)if(524288&o.flags)a=!0;else if(262144&o.flags)break;if(10===o.tag){var l=o.alternate;if(null===l)throw Error(n(387));if(null!==(l=l.memoizedProps)){var u=o.type;xn(o.pendingProps.value,l.value)||(null!==e?e.push(u):e=[u])}}else if(o===ve.current){if(null===(l=o.alternate))throw Error(n(387));l.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(null!==e?e.push(ym):e=[ym])}o=o.return}return null!==e&&lo(r,e,t,i),r.flags|=262144,null!==e}function so(e){for(e=e.firstContext;null!==e;){if(!xn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function co(e){to=e,no=null,null!==(e=e.dependencies)&&(e.firstContext=null)}function fo(e){return mo(to,e)}function ho(e,r){return null===to&&co(e),mo(e,r)}function mo(e,r){var t=r._currentValue;if(r={context:r,memoizedValue:t,next:null},null===no){if(null===e)throw Error(n(308));no=r,e.dependencies={lanes:0,firstContext:r},e.flags|=524288}else no=no.next=r;return t}var po="undefined"!=typeof AbortController?AbortController:function(){var e=[],r=this.signal={aborted:!1,addEventListener:function(r,t){e.push(t)}};this.abort=function(){r.aborted=!0,e.forEach((function(e){return e()}))}},vo=e.unstable_scheduleCallback,yo=e.unstable_NormalPriority,bo={$$typeof:_,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function go(){return{controller:new po,data:new Map,refCount:0}}function wo(e){e.refCount--,0===e.refCount&&vo(yo,(function(){e.controller.abort()}))}function ko(e,r){if(4194048&e.pendingLanes){var t=e.transitionTypes;for(null===t&&(t=e.transitionTypes=[]),e=0;e<r.length;e++){var n=r[e];-1===t.indexOf(n)&&t.push(n)}}}var $o=null,So=null,Eo=0,jo=0,xo=null;function Oo(){if(0==--Eo&&($o=null,null!==So)){null!==xo&&(xo.status="fulfilled");var e=So;So=null,jo=0,xo=null;for(var r=0;r<e.length;r++)(0,e[r])()}}var Ao=W.S;W.S=function(e,r){if(ef=Ie(),"object"==typeof r&&null!==r&&"function"==typeof r.then&&function(e,r){if(null===So){var t=So=[];Eo=0,jo=vd(),xo={status:"pending",value:void 0,then:function(e){t.push(e)}}}Eo++,r.then(Oo,Oo)}(0,r),null!==$o)for(var t=nd;null!==t;)ko(t,$o),t=t.next;if(null!==(t=e.types)){for(var n=nd;null!==n;)ko(n,t),n=n.next;if(0!==jo){null===(n=$o)&&(n=$o=[]);for(var i=0;i<t.length;i++){var o=t[i];-1===n.indexOf(o)&&n.push(o)}}}null!==Ao&&Ao(e,r)};var Co=Y(null);function _o(){var e=Co.current;return null!==e?e:qc.pooledCache}function Io(e,r){Q(Co,null===r?Co.current:r.pool)}function Do(){var e=_o();return null===e?null:{parent:bo._currentValue,pool:e}}var Po=Error(n(460)),Fo=Error(n(474)),qo=Error(n(542)),To={then:function(){}};function Mo(e){return"fulfilled"===(e=e.status)||"rejected"===e}function No(e,r,t){switch(void 0===(t=e[t])?e.push(r):t!==r&&(r.then(ot,ot),r=t),r.status){case"fulfilled":return r.value;case"rejected":if(Lo(e=r.reason),void 0===e&&!("reason"in r))throw Error(n(600));throw e;default:if("string"==typeof r.status)r.then(ot,ot);else{if(null!==(e=qc)&&100<e.shellSuspendCounter)throw Error(n(482));(e=r).status="pending",e.then((function(e){if("pending"===r.status){var t=r;t.status="fulfilled",t.value=e}}),(function(e){if("pending"===r.status){var t=r;t.status="rejected",t.reason=e}}))}switch(r.status){case"fulfilled":return r.value;case"rejected":throw Lo(e=r.reason),e}throw zo=r,Po}}function Ro(e){try{return(0,e._init)(e._payload)}catch(e){if(null!==e&&"object"==typeof e&&"function"==typeof e.then)throw zo=e,Po;throw e}}var zo=null;function Uo(){if(null===zo)throw Error(n(459));var e=zo;return zo=null,e}function Lo(e){if(e===Po||e===qo)throw Error(n(483))}var Bo=null,Vo=0;function Ho(e){var r=Vo;return Vo+=1,null===Bo&&(Bo=[]),No(Bo,e,r)}function Wo(e,r){e.ref=void 0!==(r=r.props.ref)?r:null}function Go(e,r){if(r.$$typeof===S)throw Error(n(525));throw e=Object.prototype.toString.call(r),Error(n(31,"[object Object]"===e?"object with keys {"+Object.keys(r).join(", ")+"}":e))}function Ko(e){function r(r,t){if(e){var n=r.deletions;null===n?(r.deletions=[t],r.flags|=16):n.push(t)}}function t(t,n){if(!e)return null;for(;null!==n;)r(t,n),n=n.sibling;return null}function i(e){for(var r=new Map;null!==e;)r.set(null===e.key?e.index:e.key,e),e=e.sibling;return r}function o(e,r){return(e=gi(e,r)).index=0,e.sibling=null,e}function a(r,t,n){return r.index=n,e?null!==(n=r.alternate)?(n=n.index)<t?(r.flags|=2,t):n:(r.flags|=134217730,t):(r.flags|=1048576,t)}function l(r){return e&&null===r.alternate&&(r.flags|=134217730),r}function u(e,r,t,n){return null===r||6!==r.tag?((r=Si(t,e.mode,n)).return=e,r):((r=o(r,t)).return=e,r)}function s(e,r,t,n){var i=t.type;return i===x?(Wo(e=f(e,r,t.props.children,n,t.key),t),e):null!==r&&(r.elementType===i||"object"==typeof i&&null!==i&&i.$$typeof===q&&Ro(i)===r.type)?(Wo(r=o(r,t.props),t),r.return=e,r):(Wo(r=ki(t.type,t.key,t.props,null,e.mode,n),t),r.return=e,r)}function c(e,r,t,n){return null===r||4!==r.tag||r.stateNode.containerInfo!==t.containerInfo||r.stateNode.implementation!==t.implementation?((r=ji(t,e.mode,n)).return=e,r):((r=o(r,t.children||[])).return=e,r)}function f(e,r,t,n,i){return null===r||7!==r.tag?((r=$i(t,e.mode,n,i)).return=e,r):((r=o(r,t)).return=e,r)}function d(e,r,t){if("string"==typeof r&&""!==r||"number"==typeof r||"bigint"==typeof r)return(r=Si(""+r,e.mode,t)).return=e,r;if("object"==typeof r&&null!==r){switch(r.$$typeof){case E:return Wo(t=ki(r.type,r.key,r.props,null,e.mode,t),r),t.return=e,t;case j:return(r=ji(r,e.mode,t)).return=e,r;case q:return d(e,r=Ro(r),t)}if(H(r)||L(r))return(r=$i(r,e.mode,t,null)).return=e,r;if("function"==typeof r.then)return d(e,Ho(r),t);if(r.$$typeof===_)return d(e,ho(e,r),t);Go(e,r)}return null}function h(e,r,t,n){var i=null!==r?r.key:null;if("string"==typeof t&&""!==t||"number"==typeof t||"bigint"==typeof t)return null!==i?null:u(e,r,""+t,n);if("object"==typeof t&&null!==t){switch(t.$$typeof){case E:return t.key===i?s(e,r,t,n):null;case j:return t.key===i?c(e,r,t,n):null;case q:return h(e,r,t=Ro(t),n)}if(H(t)||L(t))return null!==i?null:f(e,r,t,n,null);if("function"==typeof t.then)return h(e,r,Ho(t),n);if(t.$$typeof===_)return h(e,r,ho(e,t),n);Go(e,t)}return null}function m(e,r,t,n,i){if("string"==typeof n&&""!==n||"number"==typeof n||"bigint"==typeof n)return u(r,e=e.get(t)||null,""+n,i);if("object"==typeof n&&null!==n){switch(n.$$typeof){case E:return s(r,e=e.get(null===n.key?t:n.key)||null,n,i);case j:return c(r,e=e.get(null===n.key?t:n.key)||null,n,i);case q:return m(e,r,t,n=Ro(n),i)}if(H(n)||L(n))return f(r,e=e.get(t)||null,n,i,null);if("function"==typeof n.then)return m(e,r,t,Ho(n),i);if(n.$$typeof===_)return m(e,r,t,ho(r,n),i);Go(r,n)}return null}function p(u,s,c,f){if("object"==typeof c&&null!==c&&c.type===x&&null===c.key&&void 0===c.props.ref&&(c=c.props.children),"object"==typeof c&&null!==c){switch(c.$$typeof){case E:e:{for(var v=c.key;null!==s;){if(s.key===v){if((v=c.type)===x){if(7===s.tag){t(u,s.sibling),Wo(f=o(s,c.props.children),c),f.return=u,u=f;break e}}else if(s.elementType===v||"object"==typeof v&&null!==v&&v.$$typeof===q&&Ro(v)===s.type){t(u,s.sibling),Wo(f=o(s,c.props),c),f.return=u,u=f;break e}t(u,s);break}r(u,s),s=s.sibling}c.type===x?(Wo(f=$i(c.props.children,u.mode,f,c.key),c),f.return=u,u=f):(Wo(f=ki(c.type,c.key,c.props,null,u.mode,f),c),f.return=u,u=f)}return l(u);case j:e:{for(v=c.key;null!==s;){if(s.key===v){if(4===s.tag&&s.stateNode.containerInfo===c.containerInfo&&s.stateNode.implementation===c.implementation){t(u,s.sibling),(f=o(s,c.children||[])).return=u,u=f;break e}t(u,s);break}r(u,s),s=s.sibling}(f=ji(c,u.mode,f)).return=u,u=f}return l(u);case q:return p(u,s,c=Ro(c),f)}if(H(c))return function(n,o,l,u){for(var s=null,c=null,f=o,p=o=0,v=null;null!==f&&p<l.length;p++){f.index>p?(v=f,f=null):v=f.sibling;var y=h(n,f,l[p],u);if(null===y){null===f&&(f=v);break}e&&f&&null===y.alternate&&r(n,f),o=a(y,o,p),null===c?s=y:c.sibling=y,c=y,f=v}if(p===l.length)return t(n,f),Vi&&Mi(n,p),s;if(null===f){for(;p<l.length;p++)null!==(f=d(n,l[p],u))&&(o=a(f,o,p),null===c?s=f:c.sibling=f,c=f);return Vi&&Mi(n,p),s}for(f=i(f);p<l.length;p++)null!==(v=m(f,n,p,l[p],u))&&(e&&null!==(y=v.alternate)&&f.delete(null===y.key?p:y.key),o=a(v,o,p),null===c?s=v:c.sibling=v,c=v);return e&&f.forEach((function(e){return r(n,e)})),Vi&&Mi(n,p),s}(u,s,c,f);if(L(c)){if("function"!=typeof(v=L(c)))throw Error(n(150));return function(o,l,u,s){if(null==u)throw Error(n(151));for(var c=null,f=null,p=l,v=l=0,y=null,b=u.next();null!==p&&!b.done;v++,b=u.next()){p.index>v?(y=p,p=null):y=p.sibling;var g=h(o,p,b.value,s);if(null===g){null===p&&(p=y);break}e&&p&&null===g.alternate&&r(o,p),l=a(g,l,v),null===f?c=g:f.sibling=g,f=g,p=y}if(b.done)return t(o,p),Vi&&Mi(o,v),c;if(null===p){for(;!b.done;v++,b=u.next())null!==(b=d(o,b.value,s))&&(l=a(b,l,v),null===f?c=b:f.sibling=b,f=b);return Vi&&Mi(o,v),c}for(p=i(p);!b.done;v++,b=u.next())null!==(b=m(p,o,v,b.value,s))&&(e&&null!==(y=b.alternate)&&p.delete(null===y.key?v:y.key),l=a(b,l,v),null===f?c=b:f.sibling=b,f=b);return e&&p.forEach((function(e){return r(o,e)})),Vi&&Mi(o,v),c}(u,s,c=v.call(c),f)}if("function"==typeof c.then)return p(u,s,Ho(c),f);if(c.$$typeof===_)return p(u,s,ho(u,c),f);Go(u,c)}return"string"==typeof c&&""!==c||"number"==typeof c||"bigint"==typeof c?(c=""+c,null!==s&&6===s.tag?(t(u,s.sibling),(f=o(s,c)).return=u,u=f):(t(u,s),(f=Si(c,u.mode,f)).return=u,u=f),l(u)):t(u,s)}return function(e,r,t,n){try{Vo=0;var i=p(e,r,t,n);return Bo=null,i}catch(r){if(r===Po||r===qo)throw r;var o=yi(29,r,null,e.mode);return o.lanes=n,o.return=e,o}}}var Zo=Ko(!0),Jo=Ko(!1),Yo=!1;function Xo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Qo(e,r){r.updateQueue===(e=e.updateQueue)&&(r.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function ea(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function ra(e,r,t){var n=e.updateQueue;if(null===n)return null;if(n=n.shared,2&Fc){var i=n.pending;return null===i?r.next=r:(r.next=i.next,i.next=r),n.pending=r,r=mi(e),hi(e,null,t),r}return ci(e,n,r,t),mi(e)}function ta(e,r,t){if(null!==(r=r.updateQueue)&&(r=r.shared,4194048&t)){var n=r.lanes;r.lanes=t|=n&=e.pendingLanes,ir(e,t)}}function na(e,r){var t=e.updateQueue,n=e.alternate;if(null===n||t!==(n=n.updateQueue))null===(e=t.lastBaseUpdate)?t.firstBaseUpdate=r:e.next=r,t.lastBaseUpdate=r;else{var i=null,o=null;if(null!==(t=t.firstBaseUpdate)){do{var a={lane:t.lane,tag:t.tag,payload:t.payload,callback:null,next:null};null===o?i=o=a:o=o.next=a,t=t.next}while(null!==t);null===o?i=o=r:o=o.next=r}else i=o=r;e.updateQueue=t={baseState:n.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:n.shared,callbacks:n.callbacks}}}var ia=!1;function oa(){if(ia&&null!==xo)throw xo}function aa(e,r,t,n){ia=!1;var i=e.updateQueue;Yo=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,l=i.shared.pending;if(null!==l){i.shared.pending=null;var u=l,s=u.next;u.next=null,null===a?o=s:a.next=s,a=u;var c=e.alternate;null!==c&&(l=(c=c.updateQueue).lastBaseUpdate)!==a&&(null===l?c.firstBaseUpdate=s:l.next=s,c.lastBaseUpdate=u)}if(null!==o){var f=i.baseState;for(a=0,c=s=u=null,l=o;;){var d=-536870913&l.lane,h=d!==l.lane;if(h?(Mc&d)===d:(n&d)===d){0!==d&&d===jo&&(ia=!0),null!==c&&(c=c.next={lane:0,tag:l.tag,payload:l.payload,callback:null,next:null});e:{var m=e,p=l;d=r;var v=t;switch(p.tag){case 1:if("function"==typeof(m=p.payload)){f=m.call(v,f,d);break e}f=m;break e;case 3:m.flags=-65537&m.flags|128;case 0:if(null==(d="function"==typeof(m=p.payload)?m.call(v,f,d):m))break e;f=$({},f,d);break e;case 2:Yo=!0}}null!==(d=l.callback)&&(e.flags|=64,h&&(e.flags|=8192),null===(h=i.callbacks)?i.callbacks=[d]:h.push(d))}else h={lane:d,tag:l.tag,payload:l.payload,callback:l.callback,next:null},null===c?(s=c=h,u=f):c=c.next=h,a|=d;if(null===(l=l.next)){if(null===(l=i.shared.pending))break;l=(h=l).next,h.next=null,i.lastBaseUpdate=h,i.shared.pending=null}}null===c&&(u=f),i.baseState=u,i.firstBaseUpdate=s,i.lastBaseUpdate=c,null===o&&(i.shared.lanes=0),Hc|=a,e.lanes=a,e.memoizedState=f}}function la(e,r){if("function"!=typeof e)throw Error(n(191,e));e.call(r)}function ua(e,r){var t=e.callbacks;if(null!==t)for(e.callbacks=null,e=0;e<t.length;e++)la(t[e],r)}var sa=Y(null),ca=Y(0);function fa(e,r){Q(ca,e=Bc),Q(sa,r),Bc=e|r.baseLanes}function da(){Q(ca,Bc),Q(sa,sa.current)}function ha(){Bc=ca.current,X(sa),X(ca)}var ma=Y(null),pa=null;function va(e){var r=e.alternate;Q(ka,1&ka.current),Q(ma,e),null===pa&&(null===r||null!==sa.current||null!==r.memoizedState)&&(pa=e)}function ya(e){Q(ka,ka.current),Q(ma,e),null===pa&&(pa=e)}function ba(e){22===e.tag?(Q(ka,ka.current),Q(ma,e),null===pa&&(pa=e)):ga()}function ga(){Q(ka,ka.current),Q(ma,ma.current)}function wa(e){X(ma),pa===e&&(pa=null),X(ka)}var ka=Y(0);function $a(e,r){Q(ma,ma.current),Q(ka,r)}function Sa(e){X(ka),X(ma),pa===e&&(pa=null)}function Ea(e){for(var r=e;null!==r;){if(13===r.tag){var t=r.memoizedState;if(null!==t&&(null===(t=t.dehydrated)||Dh(t)||Ph(t)))return r}else if(19===r.tag&&"independent"!==r.memoizedProps.revealOrder){if(128&r.flags)return r}else if(null!==r.child){r.child.return=r,r=r.child;continue}if(r===e)break;for(;null===r.sibling;){if(null===r.return||r.return===e)return null;r=r.return}r.sibling.return=r.return,r=r.sibling}return null}var ja=0,xa=null,Oa=null,Aa=null,Ca=!1,_a=!1,Ia=!1,Da=0,Pa=0,Fa=null,qa=0;function Ta(){throw Error(n(321))}function Ma(e,r){if(null===r)return!1;for(var t=0;t<r.length&&t<e.length;t++)if(!xn(e[t],r[t]))return!1;return!0}function Na(e,r,t,n,i,o){return ja=o,xa=r,r.memoizedState=null,r.updateQueue=null,r.lanes=0,W.H=null===e||null===e.memoizedState?Ql:eu,Ia=!1,o=t(n,i),Ia=!1,_a&&(o=za(r,t,n,i)),Ra(e),o}function Ra(e){W.H=Xl;var r=null!==Oa&&null!==Oa.next;if(ja=0,Aa=Oa=xa=null,Ca=!1,Pa=0,Fa=null,r)throw Error(n(300));null===e||vu||null!==(e=e.dependencies)&&so(e)&&(vu=!0)}function za(e,r,t,i){xa=e;var o=0;do{if(_a&&(Fa=null),Pa=0,_a=!1,25<=o)throw Error(n(301));if(o+=1,Aa=Oa=null,null!=e.updateQueue){var a=e.updateQueue;a.lastEffect=null,a.events=null,a.stores=null,null!=a.memoCache&&(a.memoCache.index=0)}W.H=ru,a=r(t,i)}while(_a);return a}function Ua(){var e=W.H,r=e.useState()[0];return r="function"==typeof r.then?Ga(r):r,e=e.useState()[0],(null!==Oa?Oa.memoizedState:null)!==e&&(xa.flags|=1024),r}function La(){var e=0!==Da;return Da=0,e}function Ba(e,r,t){r.updateQueue=e.updateQueue,r.flags&=-2053,e.lanes&=~t}function Va(e){if(Ca){for(e=e.memoizedState;null!==e;){var r=e.queue;null!==r&&(r.pending=null),e=e.next}Ca=!1}ja=0,Aa=Oa=xa=null,_a=!1,Pa=Da=0,Fa=null}function Ha(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Aa?xa.memoizedState=Aa=e:Aa=Aa.next=e,Aa}function Wa(){if(null===Oa){var e=xa.alternate;e=null!==e?e.memoizedState:null}else e=Oa.next;var r=null===Aa?xa.memoizedState:Aa.next;if(null!==r)Aa=r,Oa=e;else{if(null===e){if(null===xa.alternate)throw Error(n(467));throw Error(n(310))}e={memoizedState:(Oa=e).memoizedState,baseState:Oa.baseState,baseQueue:Oa.baseQueue,queue:Oa.queue,next:null},null===Aa?xa.memoizedState=Aa=e:Aa=Aa.next=e}return Aa}function Ga(e){var r=Pa;return Pa+=1,null===Fa&&(Fa=[]),e=No(Fa,e,r),r=xa,null===(null===Aa?r.memoizedState:Aa.next)&&(W.H=null===(r=r.alternate)||null===r.memoizedState?Ql:eu),e}function Ka(e){if(null!==e&&"object"==typeof e){if("function"==typeof e.then)return Ga(e);if(e.$$typeof===z)return;if(e.$$typeof===_)return fo(e)}throw Error(n(438,String(e)))}function Za(e){var r=null,t=xa.updateQueue;if(null!==t&&(r=t.memoCache),null==r){var n=xa.alternate;null!==n&&null!==(n=n.updateQueue)&&null!=(n=n.memoCache)&&(r={data:n.data.map((function(e){return e.slice()})),index:0})}if(null==r&&(r={data:[],index:0}),null===t&&(xa.updateQueue=t={lastEffect:null,events:null,stores:null,memoCache:null}),t.memoCache=r,void 0===(t=r.data[r.index]))for(t=r.data[r.index]=Array(e),n=0;n<e;n++)t[n]=N;return r.index++,t}function Ja(e,r){return"function"==typeof r?r(e):r}function Ya(e){return Xa(Wa(),Oa,e)}function Xa(e,r,t){var i=e.queue;if(null===i)throw Error(n(311));i.lastRenderedReducer=t;var o=e.baseQueue,a=i.pending;if(null!==a){if(null!==o){var l=o.next;o.next=a.next,a.next=l}r.baseQueue=o=a,i.pending=null}if(a=e.baseState,null===o)e.memoizedState=a;else{var u=l=null,s=null,c=r=o.next,f=!1;do{var d=-536870913&c.lane;if(d!==c.lane?(Mc&d)===d:(ja&d)===d){var h=c.revertLane;if(0===h)null!==s&&(s=s.next={lane:0,revertLane:0,gesture:null,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),d===jo&&(f=!0);else{if((ja&h)===h){c=c.next,h===jo&&(f=!0);continue}d={lane:0,revertLane:c.revertLane,gesture:null,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null},null===s?(u=s=d,l=a):s=s.next=d,xa.lanes|=h,Hc|=h}d=c.action,Ia&&t(a,d),a=c.hasEagerState?c.eagerState:t(a,d)}else h={lane:d,revertLane:c.revertLane,gesture:c.gesture,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null},null===s?(u=s=h,l=a):s=s.next=h,xa.lanes|=d,Hc|=d;c=c.next}while(null!==c&&c!==r);if(null===s?l=a:s.next=u,!xn(a,e.memoizedState)&&(vu=!0,f&&null!==(t=xo)))throw t;e.memoizedState=a,e.baseState=l,e.baseQueue=s,i.lastRenderedState=a}return null===o&&(i.lanes=0),[e.memoizedState,i.dispatch]}function Qa(e){var r=Wa(),t=r.queue;if(null===t)throw Error(n(311));t.lastRenderedReducer=e;var i=t.dispatch,o=t.pending,a=r.memoizedState;if(null!==o){t.pending=null;var l=o=o.next;do{a=e(a,l.action),l=l.next}while(l!==o);xn(a,r.memoizedState)||(vu=!0),r.memoizedState=a,null===r.baseQueue&&(r.baseState=a),t.lastRenderedState=a}return[a,i]}function el(e,r,t){var i=xa,o=Wa(),a=Vi;if(a){if(void 0===t)throw Error(n(407));t=t()}else t=r();var l=!xn((Oa||o).memoizedState,t);if(l&&(o.memoizedState=t,vu=!0),jl(nl.bind(null,i,o=o.queue,e),[e]),wl((e=o.getSnapshot!==r||l||null!==Aa&&!!(1&Aa.memoizedState.tag))?9:8,{destroy:void 0},tl.bind(null,i,o,t,r),null),e){if(i.flags|=2048,null===qc)throw Error(n(349));a||127&ja||rl(i,r,t)}return t}function rl(e,r,t){e.flags|=16384,e={getSnapshot:r,value:t},null===(r=xa.updateQueue)?(xa.updateQueue=r={lastEffect:null,events:null,stores:null,memoCache:null},r.stores=[e]):null===(t=r.stores)?r.stores=[e]:t.push(e)}function tl(e,r,t,n){r.value=t,r.getSnapshot=n,il(r)&&ol(e)}function nl(e,r,t){return t((function(){il(r)&&ol(e)}))}function il(e){var r=e.getSnapshot;e=e.value;try{var t=r();return!xn(e,t)}catch(e){return!0}}function ol(e){var r=di(e,2);null!==r&&wf(r,0,2)}function al(e){var r=Ha();if("function"==typeof e){var t=e;if(e=t(),Ia){Le(!0);try{t()}finally{Le(!1)}}}return r.memoizedState=r.baseState=e,r.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ja,lastRenderedState:e},r}function ll(e,r,t,n){return e.baseState=t,Xa(e,Oa,"function"==typeof n?n:Ja)}function ul(e,r,t,i,o){if(Zl(e))throw Error(n(485));if(null!==(e=r.action)){var a={payload:o,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(e){a.listeners.push(e)}};null!==W.T?t(!0):a.isTransition=!1,i(a),null===(t=r.pending)?(a.next=r.pending=a,sl(r,a)):(a.next=t.next,r.pending=t.next=a)}}function sl(e,r){var t=r.action,n=r.payload,i=e.state;if(r.isTransition){var o=W.T,a={};a.types=null!==o?o.types:null,W.T=a;try{var l=t(i,n),u=W.S;null!==u&&u(a,l),cl(e,r,l)}catch(t){dl(e,r,t)}finally{null!==o&&null!==a.types&&(o.types=a.types),W.T=o}}else try{cl(e,r,o=t(i,n))}catch(t){dl(e,r,t)}}function cl(e,r,t){null!==t&&"object"==typeof t&&"function"==typeof t.then?t.then((function(t){fl(e,r,t)}),(function(t){return dl(e,r,t)})):fl(e,r,t)}function fl(e,r,t){r.status="fulfilled",r.value=t,hl(r),e.state=t,null!==(r=e.pending)&&((t=r.next)===r?e.pending=null:(r.next=t=t.next,sl(e,t)))}function dl(e,r,t){var n=e.pending;if(e.pending=null,null!==n){n=n.next;do{r.status="rejected",r.reason=t,hl(r),r=r.next}while(r!==n)}e.action=null}function hl(e){e=e.listeners;for(var r=0;r<e.length;r++)(0,e[r])()}function ml(e,r){return r}function pl(e,r){if(Vi){var t=qc.formState;if(null!==t){e:{var n=xa;if(Vi){if(Bi){r:{for(var i=Bi,o=Wi;8!==i.nodeType;){if(!o){i=null;break r}if(null===(i=Fh(i.nextSibling))){i=null;break r}}i="F!"===(o=i.data)||"F"===o?i:null}if(i){Bi=Fh(i.nextSibling),n="F!"===i.data;break e}}Ki(n)}n=!1}n&&(r=t[0])}}return(t=Ha()).memoizedState=t.baseState=r,t.queue=n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ml,lastRenderedState:r},t=Wl.bind(null,xa,n),n.dispatch=t,n=al(!1),o=Kl.bind(null,xa,!1,n.queue),(n=Ha()).queue=i={state:r,dispatch:null,action:e,pending:null},t=ul.bind(null,xa,i,o,t),i.dispatch=t,n.memoizedState=e,[r,t,!1]}function vl(e){return yl(Wa(),Oa,e)}function yl(e,r,t){if(r=Xa(e,r,ml)[0],e=Ya(Ja)[0],"object"==typeof r&&null!==r&&"function"==typeof r.then)try{var n=Ga(r)}catch(e){if(e===Po)throw qo;throw e}else n=r;var i=(r=Wa()).queue,o=i.dispatch;return t!==r.memoizedState&&(xa.flags|=2048,wl(9,{destroy:void 0},bl.bind(null,i,t),null)),[n,o,e]}function bl(e,r){e.action=r}function gl(e){var r=Wa(),t=Oa;if(null!==t)return yl(r,t,e);Wa(),r=r.memoizedState;var n=(t=Wa()).queue.dispatch;return t.memoizedState=e,[r,n,!1]}function wl(e,r,t,n){return e={tag:e,create:t,deps:n,inst:r,next:null},null===(r=xa.updateQueue)&&(xa.updateQueue=r={lastEffect:null,events:null,stores:null,memoCache:null}),null===(t=r.lastEffect)?r.lastEffect=e.next=e:(n=t.next,t.next=e,e.next=n,r.lastEffect=e),e}function kl(){return Wa().memoizedState}function $l(e,r,t,n){var i=Ha();xa.flags|=e,i.memoizedState=wl(1|r,{destroy:void 0},t,void 0===n?null:n)}function Sl(e,r,t,n){var i=Wa();n=void 0===n?null:n;var o=i.memoizedState.inst;null!==Oa&&null!==n&&Ma(n,Oa.memoizedState.deps)?i.memoizedState=wl(r,o,t,n):(xa.flags|=e,i.memoizedState=wl(1|r,o,t,n))}function El(e,r){$l(8390656,8,e,r)}function jl(e,r){Sl(2048,8,e,r)}function xl(e){var r=Wa().memoizedState;return function(e){xa.flags|=4;var r=xa.updateQueue;if(null===r)xa.updateQueue=r={lastEffect:null,events:null,stores:null,memoCache:null},r.events=[e];else{var t=r.events;null===t?r.events=[e]:t.push(e)}}({ref:r,nextImpl:e}),function(){if(2&Fc)throw Error(n(440));return r.impl.apply(void 0,arguments)}}function Ol(e,r){return Sl(4,2,e,r)}function Al(e,r){return Sl(4,4,e,r)}function Cl(e,r){if("function"==typeof r){e=e();var t=r(e);return function(){"function"==typeof t?t():r(null)}}if(null!=r)return e=e(),r.current=e,function(){r.current=null}}function _l(e,r,t){t=null!=t?t.concat([e]):null,Sl(4,4,Cl.bind(null,r,e),t)}function Il(){}function Dl(e,r){var t=Wa(),n=t.memoizedState;return null!==(r=void 0===r?null:r)&&Ma(r,n[1])?n[0]:(t.memoizedState=[e,r],e)}function Pl(e,r){var t=Wa(),n=t.memoizedState;if(null!==(r=void 0===r?null:r)&&Ma(r,n[1]))return n[0];if(n=e(),Ia){Le(!0);try{e()}finally{Le(!1)}}return t.memoizedState=[n,r],n}function Fl(e,r,t){return void 0===t||1073741824&ja&&!(261930&Mc)?e.memoizedState=r:(e.memoizedState=t,e=bf(),xa.lanes|=e,Hc|=e,t)}function ql(e,r,t,n){return xn(t,r)?t:null!==sa.current?(e=Fl(e,t,n),xn(e,r)||(vu=!0),e):106&ja&&(!(1073741824&ja)||261930&Mc)?(e=bf(),xa.lanes|=e,Hc|=e,r):(vu=!0,e.memoizedState=t)}function Tl(e,r,t,n,i){var o=G.p;G.p=0!==o&&8>o?o:8;var a,l,u,s=W.T,c={};c.types=null!==s?s.types:null,W.T=c,Kl(e,!1,r,t);try{var f=i(),d=W.S;if(null!==d&&d(c,f),null!==f&&"object"==typeof f&&"function"==typeof f.then){var h=(a=n,l=[],u={status:"pending",value:null,reason:null,then:function(e){l.push(e)}},f.then((function(){u.status="fulfilled",u.value=a;for(var e=0;e<l.length;e++)(0,l[e])(a)}),(function(e){for(u.status="rejected",u.reason=e,e=0;e<l.length;e++)(0,l[e])(void 0)})),u);Gl(e,r,h,yf())}else Gl(e,r,n,yf())}catch(t){Gl(e,r,{then:function(){},status:"rejected",reason:t},yf())}finally{G.p=o,null!==s&&null!==c.types&&(s.types=c.types),W.T=s}}function Ml(){}function Nl(e,r,t,i){if(5!==e.tag)throw Error(n(476));var o=Rl(e).queue;Tl(e,o,r,K,null===t?Ml:function(){return zl(e),t(i)})}function Rl(e){var r=e.memoizedState;if(null!==r)return r;var t={};return(r={memoizedState:K,baseState:K,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ja,lastRenderedState:K},next:null}).next={memoizedState:t,baseState:t,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ja,lastRenderedState:t},next:null},e.memoizedState=r,null!==(e=e.alternate)&&(e.memoizedState=r),r}function zl(e){var r=Rl(e);null===r.next&&(r=e.alternate.memoizedState),Gl(e,r.next.queue,{},yf())}function Ul(){return fo(ym)}function Ll(){return Wa().memoizedState}function Bl(){return Wa().memoizedState}function Vl(e){for(var r=e.return;null!==r;){switch(r.tag){case 24:case 3:var t=yf(),n=ra(r,e=ea(t),t);return null!==n&&(wf(n,0,t),ta(n,r,t)),r={cache:go()},void(e.payload=r)}r=r.return}}function Hl(e,r,t){var n=yf();t={lane:n,revertLane:0,gesture:null,action:t,hasEagerState:!1,eagerState:null,next:null},Zl(e)?Jl(r,t):null!==(t=fi(e,r,t,n))&&(wf(t,0,n),Yl(t,r,n))}function Wl(e,r,t){Gl(e,r,t,yf())}function Gl(e,r,t,n){var i={lane:n,revertLane:0,gesture:null,action:t,hasEagerState:!1,eagerState:null,next:null};if(Zl(e))Jl(r,i);else{var o=e.alternate;if(0===e.lanes&&(null===o||0===o.lanes)&&null!==(o=r.lastRenderedReducer))try{var a=r.lastRenderedState,l=o(a,t);if(i.hasEagerState=!0,i.eagerState=l,xn(l,a))return ci(e,r,i,0),null===qc&&si(),!1}catch(e){}if(null!==(t=fi(e,r,i,n)))return wf(t,0,n),Yl(t,r,n),!0}return!1}function Kl(e,r,t,i){if(i={lane:2,revertLane:vd(),gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},Zl(e)){if(r)throw Error(n(479))}else null!==(r=fi(e,t,i,2))&&wf(r,0,2)}function Zl(e){var r=e.alternate;return e===xa||null!==r&&r===xa}function Jl(e,r){_a=Ca=!0;var t=e.pending;null===t?r.next=r:(r.next=t.next,t.next=r),e.pending=r}function Yl(e,r,t){if(4194048&t){var n=r.lanes;r.lanes=t|=n&=e.pendingLanes,ir(e,t)}}var Xl={readContext:fo,use:Ka,useCallback:Ta,useContext:Ta,useEffect:Ta,useImperativeHandle:Ta,useLayoutEffect:Ta,useInsertionEffect:Ta,useMemo:Ta,useReducer:Ta,useRef:Ta,useState:Ta,useDebugValue:Ta,useDeferredValue:Ta,useTransition:Ta,useSyncExternalStore:Ta,useId:Ta,useHostTransitionStatus:Ta,useFormState:Ta,useActionState:Ta,useOptimistic:Ta,useMemoCache:Ta,useCacheRefresh:Ta,useEffectEvent:Ta},Ql={readContext:fo,use:Ka,useCallback:function(e,r){return Ha().memoizedState=[e,void 0===r?null:r],e},useContext:fo,useEffect:El,useImperativeHandle:function(e,r,t){t=null!=t?t.concat([e]):null,$l(4194308,4,Cl.bind(null,r,e),t)},useLayoutEffect:function(e,r){return $l(4194308,4,e,r)},useInsertionEffect:function(e,r){$l(4,2,e,r)},useMemo:function(e,r){var t=Ha();r=void 0===r?null:r;var n=e();if(Ia){Le(!0);try{e()}finally{Le(!1)}}return t.memoizedState=[n,r],n},useReducer:function(e,r,t){var n=Ha();if(void 0!==t){var i=t(r);if(Ia){Le(!0);try{t(r)}finally{Le(!1)}}}else i=r;return n.memoizedState=n.baseState=i,n.queue=e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},e=e.dispatch=Hl.bind(null,xa,e),[n.memoizedState,e]},useRef:function(e){return Ha().memoizedState={current:e}},useState:function(e){var r=(e=al(e)).queue,t=Wl.bind(null,xa,r);return r.dispatch=t,[e.memoizedState,t]},useDebugValue:Il,useDeferredValue:function(e,r){return Fl(Ha(),e,r)},useTransition:function(){var e=al(!1);return e=Tl.bind(null,xa,e.queue,!0,!1),Ha().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,r,t){var i=xa,o=Ha();if(Vi){if(void 0===t)throw Error(n(407));t=t()}else{if(t=r(),null===qc)throw Error(n(349));127&Mc||rl(i,r,t)}o.memoizedState=t;var a={value:t,getSnapshot:r};return o.queue=a,El(nl.bind(null,i,a,e),[e]),i.flags|=2048,wl(9,{destroy:void 0},tl.bind(null,i,a,t,r),null),t},useId:function(){var e=Ha(),r=qc.identifierPrefix;if(Vi){var t=Ti;r="_"+r+"R_"+(t=(qi&~(1<<32-Be(qi)-1)).toString(32)+t),0<(t=Da++)&&(r+="H"+t.toString(32)),r+="_"}else r="_"+r+"r_"+(t=qa++).toString(32)+"_";return e.memoizedState=r},useHostTransitionStatus:Ul,useFormState:pl,useActionState:pl,useOptimistic:function(e){var r=Ha();r.memoizedState=r.baseState=e;var t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return r.queue=t,r=Kl.bind(null,xa,!0,t),t.dispatch=r,[e,r]},useMemoCache:Za,useCacheRefresh:function(){return Ha().memoizedState=Vl.bind(null,xa)},useEffectEvent:function(e){var r=Ha(),t={impl:e};return r.memoizedState=t,function(){if(2&Fc)throw Error(n(440));return t.impl.apply(void 0,arguments)}}},eu={readContext:fo,use:Ka,useCallback:Dl,useContext:fo,useEffect:jl,useImperativeHandle:_l,useInsertionEffect:Ol,useLayoutEffect:Al,useMemo:Pl,useReducer:Ya,useRef:kl,useState:function(){return Ya(Ja)},useDebugValue:Il,useDeferredValue:function(e,r){return ql(Wa(),Oa.memoizedState,e,r)},useTransition:function(){var e=Ya(Ja)[0],r=Wa().memoizedState;return["boolean"==typeof e?e:Ga(e),r]},useSyncExternalStore:el,useId:Ll,useHostTransitionStatus:Ul,useFormState:vl,useActionState:vl,useOptimistic:function(e,r){return ll(Wa(),0,e,r)},useMemoCache:Za,useCacheRefresh:Bl,useEffectEvent:xl},ru={readContext:fo,use:Ka,useCallback:Dl,useContext:fo,useEffect:jl,useImperativeHandle:_l,useInsertionEffect:Ol,useLayoutEffect:Al,useMemo:Pl,useReducer:Qa,useRef:kl,useState:function(){return Qa(Ja)},useDebugValue:Il,useDeferredValue:function(e,r){var t=Wa();return null===Oa?Fl(t,e,r):ql(t,Oa.memoizedState,e,r)},useTransition:function(){var e=Qa(Ja)[0],r=Wa().memoizedState;return["boolean"==typeof e?e:Ga(e),r]},useSyncExternalStore:el,useId:Ll,useHostTransitionStatus:Ul,useFormState:gl,useActionState:gl,useOptimistic:function(e,r){var t=Wa();return null!==Oa?ll(t,0,e,r):(t.baseState=e,[e,t.queue.dispatch])},useMemoCache:Za,useCacheRefresh:Bl,useEffectEvent:xl};function tu(e,r,t,n){t=null==(t=t(n,r=e.memoizedState))?r:$({},r,t),e.memoizedState=t,0===e.lanes&&(e.updateQueue.baseState=t)}var nu={enqueueSetState:function(e,r,t){e=e._reactInternals;var n=yf(),i=ea(n);i.payload=r,null!=t&&(i.callback=t),null!==(r=ra(e,i,n))&&(wf(r,0,n),ta(r,e,n))},enqueueReplaceState:function(e,r,t){e=e._reactInternals;var n=yf(),i=ea(n);i.tag=1,i.payload=r,null!=t&&(i.callback=t),null!==(r=ra(e,i,n))&&(wf(r,0,n),ta(r,e,n))},enqueueForceUpdate:function(e,r){e=e._reactInternals;var t=yf(),n=ea(t);n.tag=2,null!=r&&(n.callback=r),null!==(r=ra(e,n,t))&&(wf(r,0,t),ta(r,e,t))}};function iu(e,r,t,n,i,o,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(n,o,a):!(r.prototype&&r.prototype.isPureReactComponent&&On(t,n)&&On(i,o))}function ou(e,r,t,n){e=r.state,"function"==typeof r.componentWillReceiveProps&&r.componentWillReceiveProps(t,n),"function"==typeof r.UNSAFE_componentWillReceiveProps&&r.UNSAFE_componentWillReceiveProps(t,n),r.state!==e&&nu.enqueueReplaceState(r,r.state,null)}function au(e,r){var t=r;if("ref"in r)for(var n in t={},r)"ref"!==n&&(t[n]=r[n]);if(e=e.defaultProps)for(var i in t===r&&(t=$({},t)),e)void 0===t[i]&&(t[i]=e[i]);return t}function lu(e){oi(e)}function uu(e){console.error(e)}function su(e){oi(e)}function cu(e,r){try{(0,e.onUncaughtError)(r.value,{componentStack:r.stack})}catch(e){setTimeout((function(){throw e}))}}function fu(e,r,t){try{(0,e.onCaughtError)(t.value,{componentStack:t.stack,errorBoundary:1===r.tag?r.stateNode:null})}catch(e){setTimeout((function(){throw e}))}}function du(e,r,t){return(t=ea(t)).tag=3,t.payload={element:null},t.callback=function(){cu(e,r)},t}function hu(e){return(e=ea(e)).tag=3,e}function mu(e,r,t,n){var i=t.type.getDerivedStateFromError;if("function"==typeof i){var o=n.value;e.payload=function(){return i(o)},e.callback=function(){fu(r,t,n)}}var a=t.stateNode;null!==a&&"function"==typeof a.componentDidCatch&&(e.callback=function(){fu(r,t,n),"function"!=typeof i&&(null===nf?nf=new Set([this]):nf.add(this));var e=n.stack;this.componentDidCatch(n.value,{componentStack:null!==e?e:""})})}var pu=Error(n(461)),vu=!1;function yu(e,r,t,n){r.child=null===e?Jo(r,null,t,n):Zo(r,e.child,t,n)}function bu(e,r,t,n,i){t=t.render;var o=r.ref;if("ref"in n){var a={};for(var l in n)"ref"!==l&&(a[l]=n[l])}else a=n;return co(r),n=Na(e,r,t,a,o,i),l=La(),null===e||vu?(Vi&&l&&Ri(r),r.flags|=1,yu(e,r,n,i),r.child):(Ba(e,r,i),Vu(e,r,i))}function gu(e,r,t,n,i){if(null===e){var o=t.type;return"function"!=typeof o||bi(o)||void 0!==o.defaultProps||null!==t.compare?((e=ki(t.type,null,n,r,r.mode,i)).ref=r.ref,e.return=r,r.child=e):(r.tag=15,r.type=o,wu(e,r,o,n,i))}return o=e.child,!Hu(e,i)&&(t=null!==(t=t.compare)?t:On)(o.memoizedProps,n)&&e.ref===r.ref?Vu(e,r,i):(r.flags|=1,(e=gi(o,n)).ref=r.ref,e.return=r,r.child=e)}function wu(e,r,t,n,i){if(null!==e){var o=e.memoizedProps;if(On(o,n)&&e.ref===r.ref){if(vu=!1,r.pendingProps=n=o,!Hu(e,i))return r.lanes=e.lanes,Vu(e,r,i);131072&e.flags&&(vu=!0)}}return Ou(e,r,t,n,i)}function ku(e,r,t,n){var i=n.children,o=null!==e?e.memoizedState:null;if(null===e&&null===r.stateNode&&(r.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),"hidden"===n.mode){if(128&r.flags){if(o=null!==o?o.baseLanes|t:t,null!==e){for(n=r.child=e.child,i=0;null!==n;)i=i|n.lanes|n.childLanes,n=n.sibling;n=i&~o}else n=0,r.child=null;return Su(e,r,o,t,n)}if(!(536870912&t))return n=r.lanes=536870912,Su(e,r,null!==o?o.baseLanes|t:t,t,n);r.memoizedState={baseLanes:0,cachePool:null},null!==e&&Io(0,null!==o?o.cachePool:null),null!==o?fa(r,o):da(),ba(r)}else null!==o?(Io(0,o.cachePool),fa(r,o),ga(),r.memoizedState=null):(null!==e&&Io(0,null),da(),ga());return yu(e,r,i,t),r.child}function $u(e,r){return null!==e&&22===e.tag||null!==r.stateNode||(r.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.sibling}function Su(e,r,t,n,i){var o=_o();return r.memoizedState={baseLanes:t,cachePool:o=null===o?null:{parent:bo._currentValue,pool:o}},null!==e&&Io(0,null),da(),ba(r),null!==e&&uo(e,r,n,!0),r.childLanes=i,null}function Eu(e,r){return(r=Tu({mode:r.mode,children:r.children},e.mode)).ref=e.ref,e.child=r,r.return=e,r}function ju(e,r,t){return Zo(r,e.child,null,t),(e=Eu(r,r.pendingProps)).flags|=2,wa(r),r.memoizedState=null,e}function xu(e,r){var t=r.ref;if(null===t)null!==e&&null!==e.ref&&(r.flags|=4194816);else{if("function"!=typeof t&&"object"!=typeof t)throw Error(n(284));null!==e&&e.ref===t||(r.flags|=4194816)}}function Ou(e,r,t,n,i){return co(r),t=Na(e,r,t,n,void 0,i),n=La(),null===e||vu?(Vi&&n&&Ri(r),r.flags|=1,yu(e,r,t,i),r.child):(Ba(e,r,i),Vu(e,r,i))}function Au(e,r,t,n,i,o){return co(r),r.updateQueue=null,t=za(r,n,t,i),Ra(e),n=La(),null===e||vu?(Vi&&n&&Ri(r),r.flags|=1,yu(e,r,t,o),r.child):(Ba(e,r,o),Vu(e,r,o))}function Cu(e,r,t,n,i){if(co(r),null===r.stateNode){var o=pi,a=t.contextType;"object"==typeof a&&null!==a&&(o=fo(a)),o=new t(n,o),r.memoizedState=null!=o.state?o.state:null,o.updater=nu,r.stateNode=o,o._reactInternals=r,(o=r.stateNode).props=n,o.state=r.memoizedState,o.refs={},Xo(r),o.context="object"==typeof(a=t.contextType)&&null!==a?fo(a):pi,o.state=r.memoizedState,"function"==typeof(a=t.getDerivedStateFromProps)&&(tu(r,t,a,n),o.state=r.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(a=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),a!==o.state&&nu.enqueueReplaceState(o,o.state,null),aa(r,n,o,i),oa(),o.state=r.memoizedState),"function"==typeof o.componentDidMount&&(r.flags|=4194308),n=!0}else if(null===e){o=r.stateNode;var l=r.memoizedProps,u=au(t,l);o.props=u;var s=o.context,c=t.contextType;a=pi,"object"==typeof c&&null!==c&&(a=fo(c));var f=t.getDerivedStateFromProps;l=r.pendingProps!==l,(c="function"==typeof f||"function"==typeof o.getSnapshotBeforeUpdate)||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||(l||s!==a)&&ou(r,o,n,a),Yo=!1;var d=r.memoizedState;o.state=d,aa(r,n,o,i),oa(),s=r.memoizedState,l||d!==s||Yo?("function"==typeof f&&(tu(r,t,f,n),s=r.memoizedState),(u=Yo||iu(r,t,u,n,d,s,a))?(c||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||("function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount()),"function"==typeof o.componentDidMount&&(r.flags|=4194308)):("function"==typeof o.componentDidMount&&(r.flags|=4194308),r.memoizedProps=n,r.memoizedState=s),o.props=n,o.state=s,o.context=a,n=u):("function"==typeof o.componentDidMount&&(r.flags|=4194308),n=!1)}else{o=r.stateNode,Qo(e,r),c=au(t,a=r.memoizedProps),o.props=c,f=r.pendingProps,d=o.context,u=pi,"object"==typeof(s=t.contextType)&&null!==s&&(u=fo(s)),(s="function"==typeof(l=t.getDerivedStateFromProps)||"function"==typeof o.getSnapshotBeforeUpdate)||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||(a!==f||d!==u)&&ou(r,o,n,u),Yo=!1,o.state=d=r.memoizedState,aa(r,n,o,i),oa();var h=r.memoizedState;a!==f||d!==h||Yo||null!==e&&null!==e.dependencies&&so(e.dependencies)?("function"==typeof l&&(tu(r,t,l,n),h=r.memoizedState),(c=Yo||iu(r,t,c,n,d,h,u)||null!==e&&null!==e.dependencies&&so(e.dependencies))?(s||"function"!=typeof o.UNSAFE_componentWillUpdate&&"function"!=typeof o.componentWillUpdate||("function"==typeof o.componentWillUpdate&&o.componentWillUpdate(n,h,u),"function"==typeof o.UNSAFE_componentWillUpdate&&o.UNSAFE_componentWillUpdate(n,h,u)),"function"==typeof o.componentDidUpdate&&(r.flags|=4),"function"==typeof o.getSnapshotBeforeUpdate&&(r.flags|=1024)):("function"!=typeof o.componentDidUpdate||a===e.memoizedProps&&d===e.memoizedState||(r.flags|=4),"function"!=typeof o.getSnapshotBeforeUpdate||a===e.memoizedProps&&d===e.memoizedState||(r.flags|=1024),r.memoizedProps=n,r.memoizedState=h),o.props=n,o.state=h,o.context=u,n=c):("function"!=typeof o.componentDidUpdate||a===e.memoizedProps&&d===e.memoizedState||(r.flags|=4),"function"!=typeof o.getSnapshotBeforeUpdate||a===e.memoizedProps&&d===e.memoizedState||(r.flags|=1024),n=!1)}return o=n,xu(e,r),n=!!(128&r.flags),o||n?(o=r.stateNode,t=n&&"function"!=typeof t.getDerivedStateFromError?null:o.render(),r.flags|=1,null!==e&&n?(r.child=Zo(r,e.child,null,i),r.child=Zo(r,null,t,i)):yu(e,r,t,i),r.memoizedState=o.state,e=r.child):e=Vu(e,r,i),e}function _u(e,r,t,n){return Xi(),r.flags|=256,yu(e,r,t,n),r.child}var Iu={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Du(e){return{baseLanes:e,cachePool:Do()}}function Pu(e,r,t){return e=null!==e?e.childLanes&~t:0,r&&(e|=Kc),e}function Fu(e,r,t){var i,o=r.pendingProps,a=!1,l=!!(128&r.flags);if((i=l)||(i=(null===e||null!==e.memoizedState)&&!!(2&ka.current)),i&&(a=!0,r.flags&=-129),i=!!(32&r.flags),r.flags&=-33,null===e){if(Vi){if(a?va(r):ga(),(e=Bi)?null!==(e=null!==(e=Ih(e,Wi))&&"&"!==e.data?e:null)&&(r.memoizedState={dehydrated:e,treeContext:null!==Fi?{id:qi,overflow:Ti}:null,retryLane:536870912,hydrationErrors:null},(t=Ei(e)).return=r,r.child=t,Li=r,Bi=null):e=null,null===e)throw Ki(r);return r.lanes=Ph(e)?32:536870912,null}return l=o.children,o=o.fallback,a?(ga(),l=Tu({mode:"hidden",children:l},a=r.mode),o=$i(o,a,t,null),l.return=r,o.return=r,l.sibling=o,r.child=l,(o=r.child).memoizedState=Du(t),o.childLanes=Pu(e,i,t),r.memoizedState=Iu,$u(null,o)):(va(r),qu(r,l))}var u=e.memoizedState;if(null!==u){var s=u.dehydrated;if(null!==s)return function(e,r,t,i,o,a,l,u){if(t)return 256&r.flags?(va(r),r.flags&=-257,Mu(e,r,u)):null!==r.memoizedState?(ga(),r.child=e.child,r.flags|=128,null):(ga(),a=o.fallback,o=Tu({mode:"visible",children:o.children},l=r.mode),(a=$i(a,l,u,null)).flags|=2,o.return=r,a.return=r,o.sibling=a,r.child=o,Zo(r,e.child,null,u),(o=r.child).memoizedState=Du(u),o.childLanes=Pu(e,i,u),r.memoizedState=Iu,$u(null,o));if(va(r),Ph(a)){if(i=a.nextSibling&&a.nextSibling.dataset)var s=i.dgst;return""!==(i=s)&&((o=Error(n(419))).stack="",o.digest=i,eo({value:o,source:null,stack:null})),Mu(e,r,u)}if(vu||uo(e,r,u,!1),i=!!(u&e.childLanes),vu||i){if(null!==sa.current)return Mu(e,r,u);if(null!==(i=qc)&&0!==(o=or(i,u))&&o!==l.retryLane)throw l.retryLane=o,di(e,o),wf(i,0,o),pu;return Dh(a)||Df(),Mu(e,r,u)}return Dh(a)?(r.flags|=192,r.child=e.child,null):(e=l.treeContext,Bi=Fh(a.nextSibling),Li=r,Vi=!0,Hi=null,Wi=!1,null!==e&&Ui(r,e),(r=qu(r,o.children)).flags|=134221824,r)}(e,r,l,i,o,s,u,t)}return a?(ga(),a=o.fallback,l=r.mode,s=(u=e.child).sibling,(o=gi(u,{mode:"hidden",children:o.children})).subtreeFlags=1206910976&u.subtreeFlags,null!==s?a=gi(s,a):(a=$i(a,l,t,null)).flags|=2,a.return=r,o.return=r,o.sibling=a,r.child=o,$u(null,o),o=r.child,null===(a=e.child.memoizedState)?a=Du(t):(l=null!==(l=a.cachePool)?l.parent!==(u=bo._currentValue)?{parent:u,pool:u}:l:Do(),a={baseLanes:a.baseLanes|t,cachePool:l}),o.memoizedState=a,o.childLanes=Pu(e,i,t),r.memoizedState=Iu,$u(e.child,o)):(va(r),e=(t=e.child).sibling,(t=gi(t,{mode:"visible",children:o.children})).return=r,t.sibling=null,null!==e&&(null===(i=r.deletions)?(r.deletions=[e],r.flags|=16):i.push(e)),r.child=t,r.memoizedState=null,t)}function qu(e,r){return(r=Tu({mode:"visible",children:r},e.mode)).return=e,e.child=r}function Tu(e,r){return(e=yi(22,e,null,r)).lanes=0,e}function Mu(e,r,t){return Zo(r,e.child,null,t),(e=qu(r,r.pendingProps.children)).flags|=2,r.memoizedState=null,e}function Nu(e,r,t){e.lanes|=r;var n=e.alternate;null!==n&&(n.lanes|=r),ao(e.return,r,t)}function Ru(e){for(var r=null;null!==e;){var t=e.alternate;null!==t&&null===Ea(t)&&(r=e),e=e.sibling}return r}function zu(e,r,t,n,i,o){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:r,rendering:null,renderingStartTime:0,last:n,tail:t,tailMode:i,treeForkCount:o}:(a.isBackwards=r,a.rendering=null,a.renderingStartTime=0,a.last=n,a.tail=t,a.tailMode=i,a.treeForkCount=o)}function Uu(e){var r=e.child;for(e.child=null;null!==r;){var t=r.sibling;r.sibling=e.child,e.child=r,r=t}}function Lu(e,r,t){var n=r.pendingProps,i=n.revealOrder,o=n.tail;n=n.children;var a=ka.current;if(128&r.flags)return $a(0,a),null;var l=!!(2&a);if(l?(a=1&a|2,r.flags|=128):a&=1,$a(0,a),"backwards"===i&&null!==e?(Uu(e),yu(e,r,n,t),Uu(e)):yu(e,r,n,t),n=Vi?Ii:0,!l&&null!==e&&128&e.flags)e:for(e=r.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Nu(e,t,r);else if(19===e.tag)Nu(e,t,r);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===r)break e;for(;null===e.sibling;){if(null===e.return||e.return===r)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case"backwards":null===(t=Ru(r.child))?(i=r.child,r.child=null):(i=t.sibling,t.sibling=null,Uu(r)),zu(r,!0,i,null,o,n);break;case"unstable_legacy-backwards":for(t=null,i=r.child,r.child=null;null!==i;){if(null!==(e=i.alternate)&&null===Ea(e)){r.child=i;break}e=i.sibling,i.sibling=t,t=i,i=e}zu(r,!0,t,null,o,n);break;case"together":zu(r,!1,null,null,void 0,n);break;case"independent":r.memoizedState=null;break;default:null===(t=Ru(r.child))?(i=r.child,r.child=null):(i=t.sibling,t.sibling=null),zu(r,!1,i,t,o,n)}return r.child}function Bu(e,r,t){var n=r.pendingProps;return io(0,r.type,n.value),yu(e,r,n.children,t),r.child}function Vu(e,r,t){if(null!==e&&(r.dependencies=e.dependencies),Hc|=r.lanes,!(t&r.childLanes)){if(null===e)return null;if(uo(e,r,t,!1),!(t&r.childLanes))return null}if(null!==e&&r.child!==e.child)throw Error(n(153));if(null!==r.child){for(t=gi(e=r.child,e.pendingProps),r.child=t,t.return=r;null!==e.sibling;)(t=t.sibling=gi(e=e.sibling,e.pendingProps)).return=r;t.sibling=null}return r.child}function Hu(e,r){return!!(e.lanes&r)||!(null===(e=e.dependencies)||!so(e))}function Wu(e,r,t){if(null!==e)if(e.memoizedProps!==r.pendingProps)vu=!0;else{if(!(Hu(e,t)||128&r.flags))return vu=!1,function(e,r,t){switch(r.tag){case 3:ye(r,r.stateNode.containerInfo),io(0,bo,e.memoizedState.cache),Xi();break;case 27:case 5:ge(r);break;case 4:ye(r,r.stateNode.containerInfo);break;case 10:io(0,r.type,r.memoizedProps.value);break;case 31:if(null!==r.memoizedState)return r.flags|=128,ya(r),null;break;case 13:var n=r.memoizedState;if(null!==n){if(null!==n.dehydrated)return va(r),r.flags|=128,null;n=uo(e,r,t,!1);var i=r.child.childLanes;return n||t&i?Fu(e,r,t):(va(r),null!==(e=Vu(e,r,t))?e.sibling:null)}va(r);break;case 19:if(128&r.flags)return Lu(e,r,t);if(i=!!(128&e.flags),(n=!!(t&r.childLanes))||(uo(e,r,t,!1),n=!!(t&r.childLanes)),i){if(n)return Lu(e,r,t);r.flags|=128}if(null!==(i=r.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),$a(0,ka.current),n)break;return null;case 22:return r.lanes=0,ku(e,r,t,r.pendingProps);case 24:io(0,bo,e.memoizedState.cache)}return Vu(e,r,t)}(e,r,t);vu=!!(131072&e.flags)}else vu=!1,Vi&&1048576&r.flags&&Ni(r,Ii,r.index);switch(r.lanes=0,r.tag){case 16:e:{var i=r.pendingProps;if(e=Ro(r.elementType),r.type=e,"function"!=typeof e){if(null!=e){var o=e.$$typeof;if(o===I){r.tag=11,r=bu(null,r,e,i,t);break e}if(o===F){r.tag=14,r=gu(null,r,e,i,t);break e}if(o===_){r.tag=10,r.type=e,r=Bu(null,r,t);break e}}throw r=V(e)||e,Error(n(306,r,""))}bi(e)?(i=au(e,i),r.tag=1,r=Cu(null,r,e,i,t)):(r.tag=0,r=Ou(null,r,e,i,t))}return r;case 0:return Ou(e,r,r.type,r.pendingProps,t);case 1:return Cu(e,r,i=r.type,o=au(i,r.pendingProps),t);case 3:e:{if(ye(r,r.stateNode.containerInfo),null===e)throw Error(n(387));i=r.pendingProps;var a=r.memoizedState;o=a.element,Qo(e,r),aa(r,i,null,t);var l=r.memoizedState;if(io(0,bo,i=l.cache),i!==a.cache&&lo(r,[bo],t,!0),oa(),i=l.element,a.isDehydrated){if(r.updateQueue.baseState=a={element:i,isDehydrated:!1,cache:l.cache},r.memoizedState=a,256&r.flags){r=_u(e,r,i,t);break e}if(i!==o){eo(o=Oi(Error(n(424)),r)),r=_u(e,r,i,t);break e}for(e=9===(e=r.stateNode.containerInfo).nodeType?e.body:"HTML"===e.nodeName?e.ownerDocument.body:e,Bi=Fh(e.firstChild),Li=r,Vi=!0,Hi=null,Wi=!0,t=Jo(r,null,i,t),r.child=t;t;)t.flags=-3&t.flags|134221824,t=t.sibling}else{if(Xi(),i===o){r=Vu(e,r,t);break e}yu(e,r,i,t)}r=r.child}return r;case 26:return xu(e,r),null===e?(t=Gh(r.type,null,r.pendingProps,null))?r.memoizedState=t:Vi||(r.stateNode=Gd(r.type,r.pendingProps,pe.current,r)):r.memoizedState=Gh(r.type,e.memoizedProps,r.pendingProps,e.memoizedState),null;case 27:return ge(r),null===e&&Vi&&(i=r.stateNode=Nh(r.type,r.pendingProps,pe.current),Li=r,Wi=!0,o=Bi,th(r.type)?(qh=o,Bi=Fh(i.firstChild)):Bi=o),yu(e,r,r.pendingProps.children,t),xu(e,r),null===e&&(r.flags|=4194304),r.child;case 5:return null===e&&Vi&&((o=i=Bi)&&(null!==(i=function(e,r,t,n){for(;1===e.nodeType;){var i=t;if(e.nodeName.toLowerCase()!==r.toLowerCase()){if(!n&&("INPUT"!==e.nodeName||"hidden"!==e.type))break}else if(n){if(!e[br])switch(r){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if("stylesheet"===(o=e.getAttribute("rel"))&&e.hasAttribute("data-precedence"))break;if(o!==i.rel||e.getAttribute("href")!==(null==i.href||""===i.href?null:i.href)||e.getAttribute("crossorigin")!==(null==i.crossOrigin?null:i.crossOrigin)||e.getAttribute("title")!==(null==i.title?null:i.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(((o=e.getAttribute("src"))!==(null==i.src?null:i.src)||e.getAttribute("type")!==(null==i.type?null:i.type)||e.getAttribute("crossorigin")!==(null==i.crossOrigin?null:i.crossOrigin))&&o&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else{if("input"!==r||"hidden"!==e.type)return e;var o=null==i.name?null:""+i.name;if("hidden"===i.type&&e.getAttribute("name")===o)return e}if(null===(e=Fh(e.nextSibling)))break}return null}(i,r.type,r.pendingProps,Wi))?(r.stateNode=i,Li=r,Bi=Fh(i.firstChild),Wi=!1,o=!0):o=!1),o||Ki(r)),ge(r),l=null!==e?e.memoizedProps:null,i=(a=r.pendingProps).children,Kd(o=r.type,a)?i=null:null!==l&&Kd(o,l)&&(r.flags|=32),null!==r.memoizedState&&(o=Na(e,r,Ua,null,null,t),ym._currentValue=o),xu(e,r),yu(e,r,i,t),r.child;case 6:return null===e&&Vi&&((e=t=Bi)&&(null!==(t=function(e,r,t){if(""===r)return null;for(;3!==e.nodeType;){if((1!==e.nodeType||"INPUT"!==e.nodeName||"hidden"!==e.type)&&!t)return null;if(null===(e=Fh(e.nextSibling)))return null}return e}(t,r.pendingProps,Wi))?(r.stateNode=t,Li=r,Bi=null,e=!0):e=!1),e||Ki(r)),null;case 13:return Fu(e,r,t);case 4:return ye(r,r.stateNode.containerInfo),i=r.pendingProps,null===e?r.child=Zo(r,null,i,t):yu(e,r,i,t),r.child;case 11:return bu(e,r,r.type,r.pendingProps,t);case 7:return i=r.pendingProps,xu(e,r),yu(e,r,i,t),r.child;case 8:case 12:return yu(e,r,r.pendingProps.children,t),r.child;case 10:return Bu(e,r,t);case 9:return o=r.type._context,i=r.pendingProps.children,co(r),i=i(o=fo(o)),r.flags|=1,yu(e,r,i,t),r.child;case 14:return gu(e,r,r.type,r.pendingProps,t);case 15:return wu(e,r,r.type,r.pendingProps,t);case 19:return Lu(e,r,t);case 31:return function(e,r,t){var i=r.pendingProps,o=!!(128&r.flags);if(r.flags&=-129,null===e){if(Vi){if("hidden"===i.mode)return e=Eu(r,i),r.lanes=536870912,e.memoizedState={baseLanes:0,cachePool:null},$u(null,e);if(ya(r),(e=Bi)?null!==(e=null!==(e=Ih(e,Wi))&&"&"===e.data?e:null)&&(r.memoizedState={dehydrated:e,treeContext:null!==Fi?{id:qi,overflow:Ti}:null,retryLane:536870912,hydrationErrors:null},(t=Ei(e)).return=r,r.child=t,Li=r,Bi=null):e=null,null===e)throw Ki(r);return r.lanes=536870912,null}return Eu(r,i)}var a=e.memoizedState;if(null!==a){var l=a.dehydrated;if(ya(r),o)if(256&r.flags)r.flags&=-257,r=ju(e,r,t);else{if(null===r.memoizedState)throw Error(n(558));r.child=e.child,r.flags|=128,r=null}else if(vu||uo(e,r,t,!1),o=!!(t&e.childLanes),vu||o){if(null===sa.current){if(null!==(i=qc)&&0!==(l=or(i,t))&&l!==a.retryLane)throw a.retryLane=l,di(e,l),wf(i,0,l),pu;Df()}r=ju(e,r,t)}else e=a.treeContext,Bi=Fh(l.nextSibling),Li=r,Vi=!0,Hi=null,Wi=!1,null!==e&&Ui(r,e),(r=Eu(r,i)).flags|=134221824;return r}return(e=gi(e.child,{mode:i.mode,children:i.children})).ref=r.ref,r.child=e,e.return=r,e}(e,r,t);case 22:return ku(e,r,t,r.pendingProps);case 24:return co(r),i=fo(bo),null===e?(null===(o=_o())&&(o=qc,a=go(),o.pooledCache=a,a.refCount++,null!==a&&(o.pooledCacheLanes|=t),o=a),r.memoizedState={parent:i,cache:o},Xo(r),io(0,bo,o)):(!!(e.lanes&t)&&(Qo(e,r),aa(r,null,null,t),oa()),a=r.memoizedState,(o=e.memoizedState).parent!==i?(r.memoizedState=o={parent:i,cache:i},0===r.lanes&&(r.memoizedState=r.updateQueue.baseState=o),io(0,bo,i)):(io(0,bo,i=a.cache),i!==o.cache&&lo(r,[bo],t,!0))),yu(e,r,r.pendingProps.children,t),r.child;case 30:return null===r.stateNode&&(r.stateNode={autoName:null,paired:null,clones:null,ref:null}),null!=(i=r.pendingProps).name&&"auto"!==i.name?r.flags|=null===e?18882560:18874368:Vi&&Ri(r),null!==e&&e.memoizedProps.name!==i.name?r.flags|=4194816:xu(e,r),yu(e,r,i.children,t),r.child;case 29:throw r.pendingProps}throw Error(n(156,r.tag))}function Gu(e){e.flags|=4}function Ku(e,r,t,n,i){var o;if((o=!!(32&e.mode))&&(o=null===t?am(r,n):am(r,n)&&(n.src!==t.src||n.srcSet!==t.srcSet)),o){if(e.flags|=16777216,(335544128&i)===i)if(e.stateNode.complete)e.flags|=8192;else{if(!Cf())throw zo=To,Fo;e.flags|=8192}}else e.flags&=-16777217}function Zu(e,r){if("stylesheet"!==r.type||4&r.state.loading)e.flags&=-16777217;else if(e.flags|=16777216,!lm(r)){if(!Cf())throw zo=To,Fo;e.flags|=8192}}function Ju(e,r){null!==r&&(e.flags|=4),16384&e.flags&&(r=22!==e.tag?er():536870912,e.lanes|=r,Zc|=r)}function Yu(e,r){if(!Vi)switch(e.tailMode){case"visible":break;case"collapsed":for(var t=e.tail,n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?r||null===e.tail?e.tail=null:e.tail.sibling=null:n.sibling=null;break;default:for(r=e.tail,t=null;null!==r;)null!==r.alternate&&(t=r),r=r.sibling;null===t?e.tail=null:t.sibling=null}}function Xu(e){var r=null!==e.alternate&&e.alternate.child===e.child,t=0,n=0;if(r)for(var i=e.child;null!==i;)t|=i.lanes|i.childLanes,n|=1206910976&i.subtreeFlags,n|=1206910976&i.flags,i.return=e,i=i.sibling;else for(i=e.child;null!==i;)t|=i.lanes|i.childLanes,n|=i.subtreeFlags,n|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=n,e.childLanes=t,r}function Qu(e,r,t){var i=r.pendingProps;switch(zi(r),r.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:case 1:return Xu(r),null;case 3:return t=r.stateNode,i=null,null!==e&&(i=e.memoizedState.cache),r.memoizedState.cache!==i&&(r.flags|=2048),oo(bo),be(),t.pendingContext&&(t.context=t.pendingContext,t.pendingContext=null),null!==e&&null!==e.child||(Yi(r)?Gu(r):null===e||e.memoizedState.isDehydrated&&!(256&r.flags)||(r.flags|=1024,Qi())),Xu(r),null;case 26:var o=r.type,a=r.memoizedState;return null===e?(Gu(r),null!==a?(Xu(r),Zu(r,a)):(Xu(r),Ku(r,o,null,i,t))):a?a!==e.memoizedState?(Gu(r),Xu(r),Zu(r,a)):(Xu(r),r.flags&=-16777217):((e=e.memoizedProps)!==i&&Gu(r),Xu(r),Ku(r,o,e,i,t)),null;case 27:if(we(r),t=pe.current,o=r.type,null!==e&&null!=r.stateNode)e.memoizedProps!==i&&Gu(r);else{if(!i){if(null===r.stateNode)throw Error(n(166));return Xu(r),r.subtreeFlags&=-33554433,null}e=oe.current,Yi(r)?Zi(r):(e=Nh(o,i,t),r.stateNode=e,Gu(r))}return Xu(r),r.subtreeFlags&=-33554433,null;case 5:if(we(r),o=r.type,null!==e&&null!=r.stateNode)e.memoizedProps!==i&&Gu(r);else{if(!i){if(null===r.stateNode)throw Error(n(166));return Xu(r),r.subtreeFlags&=-33554433,null}if(a=oe.current,Yi(r))Zi(r);else{var l=Vd(pe.current);switch(a){case 1:a=l.createElementNS("http://www.w3.org/2000/svg",o);break;case 2:a=l.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;default:switch(o){case"svg":a=l.createElementNS("http://www.w3.org/2000/svg",o);break;case"math":a=l.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;case"script":(a=l.createElement("div")).innerHTML="<script><\/script>",a=a.removeChild(a.firstChild);break;case"select":a="string"==typeof i.is?l.createElement("select",{is:i.is}):l.createElement("select"),i.multiple?a.multiple=!0:i.size&&(a.size=i.size);break;default:a="string"==typeof i.is?l.createElement(o,{is:i.is}):l.createElement(o)}}a[fr]=r,a[dr]=i;e:for(l=r.child;null!==l;){if(5===l.tag||6===l.tag)a.appendChild(l.stateNode);else if(4!==l.tag&&27!==l.tag&&null!==l.child){l.child.return=l,l=l.child;continue}if(l===r)break e;for(;null===l.sibling;){if(null===l.return||l.return===r)break e;l=l.return}l.sibling.return=l.return,l=l.sibling}r.stateNode=a;e:switch(Rd(a,o,i),o){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break e;case"img":i=!0;break e;default:i=!1}i&&Gu(r)}}return Xu(r),r.subtreeFlags&=-33554433,Ku(r,r.type,null===e?null:e.memoizedProps,r.pendingProps,t),null;case 6:if(e&&null!=r.stateNode)e.memoizedProps!==i&&Gu(r);else{if("string"!=typeof i&&null===r.stateNode)throw Error(n(166));if(e=pe.current,Yi(r)){if(e=r.stateNode,t=r.memoizedProps,i=null,null!==(o=Li))switch(o.tag){case 27:case 5:i=o.memoizedProps}e[fr]=r,(e=!!(e.nodeValue===t||null!==i&&!0===i.suppressHydrationWarning||Td(e.nodeValue,t)))||Ki(r,!0)}else(e=Vd(e).createTextNode(i))[fr]=r,r.stateNode=e}return Xu(r),null;case 31:if(t=r.memoizedState,null===e||null!==e.memoizedState){if(i=Yi(r),null!==t){if(null===e){if(!i)throw Error(n(318));if(!(e=null!==(e=r.memoizedState)?e.dehydrated:null))throw Error(n(557));e[fr]=r}else Xi(),!(128&r.flags)&&(r.memoizedState=null),r.flags|=4;Xu(r),e=!1}else t=Qi(),null!==e&&null!==e.memoizedState&&(e.memoizedState.hydrationErrors=t),e=!0;if(!e)return 256&r.flags?(wa(r),r):(wa(r),null);if(128&r.flags)throw Error(n(558))}return Xu(r),null;case 13:if(i=r.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(o=Yi(r),null!==i&&null!==i.dehydrated){if(null===e){if(!o)throw Error(n(318));if(!(o=null!==(o=r.memoizedState)?o.dehydrated:null))throw Error(n(317));o[fr]=r}else Xi(),!(128&r.flags)&&(r.memoizedState=null),r.flags|=4;Xu(r),o=!1}else o=Qi(),null!==e&&null!==e.memoizedState&&(e.memoizedState.hydrationErrors=o),o=!0;if(!o)return 256&r.flags?(wa(r),r):(wa(r),null)}return wa(r),128&r.flags?(r.lanes=t,r):(e=null!==e&&null!==e.memoizedState,(t=null!==i)&&(o=null,null!==(i=r.child).alternate&&null!==i.alternate.memoizedState&&null!==i.alternate.memoizedState.cachePool&&(o=i.alternate.memoizedState.cachePool.pool),a=null,null!==i.memoizedState&&null!==i.memoizedState.cachePool&&(a=i.memoizedState.cachePool.pool),a!==o&&(i.flags|=2048)),t!==e&&t&&(r.child.flags|=8192),Ju(r,r.updateQueue),Xu(r),null);case 4:return be(),null===e&&xd(r.stateNode.containerInfo),r.flags|=67108864,Xu(r),null;case 10:return oo(r.type),Xu(r),null;case 19:if(Sa(r),null===(i=r.memoizedState))return Xu(r),null;if(o=!!(128&r.flags),null===(a=i.rendering))if(o)Yu(i,!1);else{if(0!==Vc||null!==e&&128&e.flags)for(e=r.child;null!==e;){if(null!==(a=Ea(e))){for(r.flags|=128,Yu(i,!1),r.updateQueue=e=a.updateQueue,Ju(r,e),r.subtreeFlags=0,e=t,t=r.child;null!==t;)wi(t,e),t=t.sibling;return $a(0,1&ka.current|2),Vi&&Mi(r,i.treeForkCount),r.child}e=e.sibling}null!==i.tail&&Ie()>rf&&(r.flags|=128,o=!0,Yu(i,!1),r.lanes=4194304)}else{if(!o)if(null!==(e=Ea(a))){if(r.flags|=128,o=!0,r.updateQueue=e=e.updateQueue,Ju(r,e),Yu(i,!0),null===i.tail&&"collapsed"!==i.tailMode&&"visible"!==i.tailMode&&!a.alternate&&!Vi)return Xu(r),null}else 2*Ie()-i.renderingStartTime>rf&&536870912!==t&&(r.flags|=128,o=!0,Yu(i,!1),r.lanes=4194304);i.isBackwards?(a.sibling=r.child,r.child=a):(null!==(e=i.last)?e.sibling=a:r.child=a,i.last=a)}if(null!==i.tail){e:{for(t=e=i.tail;null!==t;){if(null!==t.alternate){t=!1;break e}t=t.sibling}t=!0}return i.rendering=e,i.tail=e.sibling,i.renderingStartTime=Ie(),e.sibling=null,a=ka.current,a=o?1&a|2:1&a,"visible"===i.tailMode||"collapsed"===i.tailMode||!t||Vi?$a(0,a):(t=a,Q(ma,r),Q(ka,t),null===pa&&(pa=r)),Vi&&Mi(r,i.treeForkCount),e}return Xu(r),null;case 22:case 23:return wa(r),ha(),i=null!==r.memoizedState,null!==e?null!==e.memoizedState!==i&&(r.flags|=8192):i&&(r.flags|=8192),i?!!(536870912&t)&&!(128&r.flags)&&(Xu(r),6&r.subtreeFlags&&(r.flags|=8192)):Xu(r),null!==(t=r.updateQueue)&&Ju(r,t.retryQueue),t=null,null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(t=e.memoizedState.cachePool.pool),i=null,null!==r.memoizedState&&null!==r.memoizedState.cachePool&&(i=r.memoizedState.cachePool.pool),i!==t&&(r.flags|=2048),null!==e&&X(Co),null;case 24:return t=null,null!==e&&(t=e.memoizedState.cache),r.memoizedState.cache!==t&&(r.flags|=2048),oo(bo),Xu(r),null;case 25:return null;case 30:return r.flags|=33554432,Xu(r),null}throw Error(n(156,r.tag))}function es(e,r){switch(zi(r),r.tag){case 1:return 65536&(e=r.flags)?(r.flags=-65537&e|128,r):null;case 3:return oo(bo),be(),65536&(e=r.flags)&&!(128&e)?(r.flags=-65537&e|128,r):null;case 26:case 27:case 5:return we(r),null;case 31:if(null!==r.memoizedState){if(wa(r),null===r.alternate)throw Error(n(340));Xi()}return 65536&(e=r.flags)?(r.flags=-65537&e|128,r):null;case 13:if(wa(r),null!==(e=r.memoizedState)&&null!==e.dehydrated){if(null===r.alternate)throw Error(n(340));Xi()}return 65536&(e=r.flags)?(r.flags=-65537&e|128,r):null;case 19:return Sa(r),65536&(e=r.flags)?(r.flags=-65537&e|128,null!==(e=r.memoizedState)&&(e.rendering=null,e.tail=null),r.flags|=4,r):null;case 4:return be(),null;case 10:return oo(r.type),null;case 22:case 23:return wa(r),ha(),null!==e&&X(Co),65536&(e=r.flags)?(r.flags=-65537&e|128,r):null;case 24:return oo(bo),null;default:return null}}function rs(e,r){switch(zi(r),r.tag){case 3:oo(bo),be();break;case 26:case 27:case 5:we(r);break;case 4:be();break;case 31:null!==r.memoizedState&&wa(r);break;case 13:wa(r);break;case 19:Sa(r);break;case 10:oo(r.type);break;case 22:case 23:wa(r),ha(),null!==e&&X(Co);break;case 24:oo(bo)}}function ts(e,r){try{var t=r.updateQueue,n=null!==t?t.lastEffect:null;if(null!==n){var i=n.next;t=i;do{if((t.tag&e)===e){n=void 0;var o=t.inst;n=(0,t.create)(),o.destroy=n}t=t.next}while(t!==i)}}catch(e){Yf(r,r.return,e)}}function ns(e,r,t){try{var n=r.updateQueue,i=null!==n?n.lastEffect:null;if(null!==i){var o=i.next;n=o;do{if((n.tag&e)===e){var a=n.inst,l=a.destroy;if(void 0!==l){a.destroy=void 0,i=r;var u=t,s=l;try{s()}catch(e){Yf(i,u,e)}}}n=n.next}while(n!==o)}}catch(e){Yf(r,r.return,e)}}function is(e){var r=e.updateQueue;if(null!==r){var t=e.stateNode;try{ua(r,t)}catch(r){Yf(e,e.return,r)}}}function os(e,r,t){t.props=au(e.type,e.memoizedProps),t.state=e.memoizedState;try{t.componentWillUnmount()}catch(t){Yf(e,r,t)}}function as(e,r){try{var t=e.ref;if(null!==t){switch(e.tag){case 26:case 27:case 5:var n=e.stateNode;break;case 30:var i=e.stateNode,o=ti(e.memoizedProps,i);null!==i.ref&&i.ref.name===o||(i.ref=ch(o)),n=i.ref;break;case 7:if(null===e.stateNode){var a=new fh(e);c(e.child,!1,xh,a,void 0,void 0),e.stateNode=a}n=e.stateNode;break;default:n=e.stateNode}"function"==typeof t?e.refCleanup=t(n):t.current=n}}catch(t){Yf(e,r,t)}}function ls(e,r){var t=e.ref,n=e.refCleanup;if(null!==t)if("function"==typeof n)try{n()}catch(t){Yf(e,r,t)}finally{e.refCleanup=null,null!=(e=e.alternate)&&(e.refCleanup=null)}else if("function"==typeof t)try{t(null)}catch(t){Yf(e,r,t)}else t.current=null}function us(e,r){if((5===e.tag||27===e.tag||6===e.tag)&&null===e.alternate&&null!==r)for(var t=0;t<r.length;t++)Ah(e.stateNode,r[t])}function ss(e){for(var r=e.return;null!==r&&(ds(r)&&Ah(e.stateNode,r.stateNode),!fs(r));)r=r.return}function cs(e){for(var r=e.return;null!==r&&(ds(r)&&Ch(e.stateNode,r.stateNode),!fs(r));)r=r.return}function fs(e){return 5===e.tag||3===e.tag||27===e.tag}function ds(e){return e&&7===e.tag&&null!==e.stateNode}function hs(e){var r=e.type,t=e.memoizedProps,n=e.stateNode;try{e:switch(r){case"button":case"input":case"select":case"textarea":t.autoFocus&&n.focus();break e;case"img":t.src?n.src=t.src:t.srcSet&&(n.srcset=t.srcSet)}}catch(r){Yf(e,e.return,r)}}function ms(e,r,t){try{var i=e.stateNode;!function(e,r,t,i){switch(r){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var o=null,a=null,l=null,u=null,s=null,c=null,f=null;for(m in t){var d=t[m];if(t.hasOwnProperty(m)&&null!=d)switch(m){case"checked":case"value":break;case"defaultValue":s=d;default:i.hasOwnProperty(m)||Md(e,r,m,null,i,d)}}for(var h in i){var m=i[h];if(d=t[h],i.hasOwnProperty(h)&&(null!=m||null!=d))switch(h){case"type":m!==d&&(Fr=!0),a=m;break;case"name":m!==d&&(Fr=!0),o=m;break;case"checked":m!==d&&(Fr=!0),c=m;break;case"defaultChecked":m!==d&&(Fr=!0),f=m;break;case"value":m!==d&&(Fr=!0),l=m;break;case"defaultValue":m!==d&&(Fr=!0),u=m;break;case"children":case"dangerouslySetInnerHTML":if(null!=m)throw Error(n(137,r));break;default:m!==d&&Md(e,r,h,m,i,d)}}return void Hr(e,l,u,s,c,f,a,o);case"select":for(a in m=l=u=h=null,t)if(s=t[a],t.hasOwnProperty(a)&&null!=s)switch(a){case"value":break;case"multiple":m=s;default:i.hasOwnProperty(a)||Md(e,r,a,null,i,s)}for(o in i)if(a=i[o],s=t[o],i.hasOwnProperty(o)&&(null!=a||null!=s))switch(o){case"value":a!==s&&(Fr=!0),h=a;break;case"defaultValue":a!==s&&(Fr=!0),u=a;break;case"multiple":a!==s&&(Fr=!0),l=a;default:a!==s&&Md(e,r,o,a,i,s)}return r=u,t=l,i=m,void(null!=h?Kr(e,!!t,h,!1):!!i!=!!t&&(null!=r?Kr(e,!!t,r,!0):Kr(e,!!t,t?[]:"",!1)));case"textarea":for(u in m=h=null,t)if(o=t[u],t.hasOwnProperty(u)&&null!=o&&!i.hasOwnProperty(u))switch(u){case"value":case"children":break;default:Md(e,r,u,null,i,o)}for(l in i)if(o=i[l],a=t[l],i.hasOwnProperty(l)&&(null!=o||null!=a))switch(l){case"value":o!==a&&(Fr=!0),h=o;break;case"defaultValue":o!==a&&(Fr=!0),m=o;break;case"children":break;case"dangerouslySetInnerHTML":if(null!=o)throw Error(n(91));break;default:o!==a&&Md(e,r,l,o,i,a)}return void Zr(e,h,m);case"option":for(var p in t)h=t[p],t.hasOwnProperty(p)&&null!=h&&!i.hasOwnProperty(p)&&("selected"===p?e.selected=!1:Md(e,r,p,null,i,h));for(s in i)h=i[s],m=t[s],!i.hasOwnProperty(s)||h===m||null==h&&null==m||("selected"===s?(h!==m&&(Fr=!0),e.selected=h&&"function"!=typeof h&&"symbol"!=typeof h):Md(e,r,s,h,i,m));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var v in t)h=t[v],t.hasOwnProperty(v)&&null!=h&&!i.hasOwnProperty(v)&&Md(e,r,v,null,i,h);for(c in i)if(h=i[c],m=t[c],i.hasOwnProperty(c)&&h!==m&&(null!=h||null!=m))switch(c){case"children":case"dangerouslySetInnerHTML":if(null!=h)throw Error(n(137,r));break;default:Md(e,r,c,h,i,m)}return;default:if(rt(r)){for(var y in t)h=t[y],t.hasOwnProperty(y)&&void 0!==h&&!i.hasOwnProperty(y)&&Nd(e,r,y,void 0,i,h);for(f in i)h=i[f],m=t[f],!i.hasOwnProperty(f)||h===m||void 0===h&&void 0===m||Nd(e,r,f,h,i,m);return}}for(var b in t)h=t[b],t.hasOwnProperty(b)&&null!=h&&!i.hasOwnProperty(b)&&Md(e,r,b,null,i,h);for(d in i)h=i[d],m=t[d],!i.hasOwnProperty(d)||h===m||null==h&&null==m||Md(e,r,d,h,i,m)}(i,e.type,t,r),i[dr]=r}catch(r){Yf(e,e.return,r)}}function ps(e){return 5===e.tag||3===e.tag||26===e.tag||27===e.tag&&th(e.type)||4===e.tag}function vs(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||ps(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(27===e.tag&&th(e.type))continue e;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 ys(e,r,t,n){var i=e.tag;if(5===i||6===i)i=e.stateNode,r?(9===t.nodeType?t.body:"HTML"===t.nodeName?t.ownerDocument.body:t).insertBefore(i,r):((r=9===t.nodeType?t.body:"HTML"===t.nodeName?t.ownerDocument.body:t).appendChild(i),null!=(t=t._reactRootContainer)||null!==r.onclick||(r.onclick=ot)),us(e,n),Fr=!0;else if(4!==i&&(27===i&&(us(e,n),n=null,th(e.type)&&(t=e.stateNode,r=null)),null!==(e=e.child)))for(ys(e,r,t,n),e=e.sibling;null!==e;)ys(e,r,t,n),e=e.sibling}function bs(e,r,t,n){var i=e.tag;if(5===i||6===i)i=e.stateNode,r?t.insertBefore(i,r):t.appendChild(i),us(e,n),Fr=!0;else if(4!==i&&(27===i&&(us(e,n),n=null,th(e.type)&&(t=e.stateNode)),null!==(e=e.child)))for(bs(e,r,t,n),e=e.sibling;null!==e;)bs(e,r,t,n),e=e.sibling}function gs(e){var r=e.stateNode,t=e.memoizedProps;try{for(var n=e.type,i=r.attributes;i.length;)r.removeAttributeNode(i[0]);Rd(r,n,t),r[fr]=e,r[dr]=t}catch(r){Yf(e,e.return,r)}}var ws=!1,ks=null;function $s(e){(30===e.tag||33554432&e.subtreeFlags)&&(ws=!0)}var Ss=null;function Es(){var e=Ss;return Ss=null,e}var js=0;function xs(e,r,t,n,i){return js=0,Os(e.child,r,t,n,i)}function Os(e,r,t,n,i){for(var o=!1;null!==e;){if(5===e.tag){var a=e.stateNode;if(null!==n){var l=lh(a);n.push(l),l.view&&(o=!0)}else o||lh(a).view&&(o=!0);ws=!0,oh(a,0===js?r:r+"_"+js,t),js++}else 22===e.tag&&null!==e.memoizedState||30===e.tag&&i||Os(e.child,r,t,n,i)&&(o=!0);e=e.sibling}return o}function As(e,r){for(;null!==e;)5===e.tag?ah(e.stateNode,e.memoizedProps):22===e.tag&&null!==e.memoizedState||30===e.tag&&r||As(e.child,r),e=e.sibling}function Cs(e){if(18874368&e.subtreeFlags)for(e=e.child;null!==e;){if((22!==e.tag||null===e.memoizedState)&&(Cs(e),30===e.tag&&18874368&e.flags&&e.stateNode.paired)){var r=e.memoizedProps;if(null==r.name||"auto"===r.name)throw Error(n(544));var t=r.name;"none"!==(r=ii(r.default,r.share))&&(xs(e,t,r,null,!1)||As(e.child,!1))}e=e.sibling}}function _s(e,r){if(30===e.tag){var t=e.stateNode,n=e.memoizedProps,i=ti(n,t),o=ii(n.default,t.paired?n.share:n.enter);"none"!==o?xs(e,i,o,null,!1)?(Cs(e),t.paired||r||gf(e,n.onEnter)):As(e.child,!1):Cs(e)}else if(33554432&e.subtreeFlags)for(e=e.child;null!==e;)_s(e,r),e=e.sibling;else Cs(e)}function Is(e){if(null!==ks&&0!==ks.size){var r=ks;if(18874368&e.subtreeFlags)for(e=e.child;null!==e;){if(22!==e.tag||null===e.memoizedState){if(30===e.tag&&18874368&e.flags){var t=e.memoizedProps,n=t.name;if(null!=n&&"auto"!==n){var i=r.get(n);if(void 0!==i){var o=ii(t.default,t.share);if("none"!==o&&(xs(e,n,o,null,!1)?(i.paired=o=e.stateNode,o.paired=i,gf(e,t.onShare)):As(e.child,!1)),r.delete(n),0===r.size)break}}}Is(e)}e=e.sibling}}}function Ds(e){if(30===e.tag){var r=e.memoizedProps,t=ti(r,e.stateNode),n=null!==ks?ks.get(t):void 0,i=ii(r.default,void 0!==n?r.share:r.exit);"none"!==i&&(xs(e,t,i,null,!1)?void 0!==n?(n.paired=i=e.stateNode,i.paired=n,ks.delete(t),gf(e,r.onShare)):gf(e,r.onExit):As(e.child,!1)),null!==ks&&Is(e)}else if(33554432&e.subtreeFlags)for(e=e.child;null!==e;)Ds(e),e=e.sibling;else null!==ks&&Is(e)}function Ps(e){for(e=e.child;null!==e;){if(30===e.tag){var r=e.memoizedProps,t=ti(r,e.stateNode);r=ii(r.default,r.update),e.flags&=-5,"none"!==r&&xs(e,t,r,e.memoizedState=[],!1)}else 33554432&e.subtreeFlags&&Ps(e);e=e.sibling}}function Fs(e){if(18874368&e.subtreeFlags)for(e=e.child;null!==e;){if(22!==e.tag||null===e.memoizedState){if(30===e.tag&&18874368&e.flags){var r=e.stateNode;null!==r.paired&&(r.paired=null,As(e.child,!1))}Fs(e)}e=e.sibling}}function qs(e){if(30===e.tag)e.stateNode.paired=null,As(e.child,!1),Fs(e);else if(33554432&e.subtreeFlags)for(e=e.child;null!==e;)qs(e),e=e.sibling;else Fs(e)}function Ts(e){for(e=e.child;null!==e;)30===e.tag?As(e.child,!1):!!(33554432&e.subtreeFlags)&&Ts(e),e=e.sibling}function Ms(e,r,t,n,i,o,a){for(var l=!1;null!==r;){if(5===r.tag){var u=r.stateNode;if(null!==o&&js<o.length){var s,c=o[js],f=lh(u);if((c.view||f.view)&&(l=!0),s=!(4&e.flags))if(f.clip)s=!0;else{var d=f.rect;s=(s=c.rect).y!==d.y||s.x!==d.x||s.height!==d.height||s.width!==d.width}s&&(e.flags|=4),(f=f.abs?!c.abs:(c=c.rect).height!==(f=f.rect).height||c.width!==f.width)&&(e.flags|=32)}else e.flags|=32;4&e.flags&&oh(u,0===js?t:t+"_"+js,i),l&&4&e.flags||(null===Ss&&(Ss=[]),Ss.push(u,0===js?n:n+"_"+js,r.memoizedProps)),js++}else 22===r.tag&&null!==r.memoizedState||(30===r.tag&&a?e.flags|=32&r.flags:Ms(e,r.child,t,n,i,o,a)&&(l=!0));r=r.sibling}return l}function Ns(e){for(e=e.child;null!==e;){if(30===e.tag){var r,t=e.memoizedProps,n=e.stateNode,i=ti(t,n),o=ii(t.default,t.update);r=e.memoizedState,e.memoizedState=null,js=0,i=Ms(n=e,e.child,i,i,o,r,!1),4&e.flags&&i&&gf(e,t.onUpdate)}else 33554432&e.subtreeFlags&&Ns(e);e=e.sibling}}var Rs=!1,zs=!1,Us=!1,Ls=!1,Bs="function"==typeof WeakSet?WeakSet:Set,Vs=null,Hs=!1,Ws=!1,Gs=!1,Ks=!1;function Zs(e){for(;null!==Vs;){var r=Vs,t=e,i=r.alternate,o=r.flags;switch(r.tag){case 0:case 11:case 15:case 5:case 26:case 27:case 6:case 4:case 17:break;case 1:if(1024&o&&null!==i){t=void 0,o=i.memoizedProps,i=i.memoizedState;var a=r.stateNode;try{var l=au(r.type,o);t=a.getSnapshotBeforeUpdate(l,i),a.__reactInternalSnapshotBeforeUpdate=t}catch(e){Yf(r,r.return,e)}}break;case 3:if(1024&o)if(9===(t=(i=r.stateNode.containerInfo).nodeType))_h(i);else if(1===t)switch(i.nodeName){case"HEAD":case"HTML":case"BODY":_h(i);break;default:i.textContent=""}break;case 30:t&&null!==i&&(t=ti(i.memoizedProps,i.stateNode),"none"!==(o=ii((o=r.memoizedProps).default,o.update))&&xs(i,t,o,i.memoizedState=[],!0));break;default:if(1024&o)throw Error(n(163))}if(null!==(i=r.sibling)){i.return=r.return,Vs=i;break}Vs=r.return}}function Js(e,r,t){var n=t.flags;switch(t.tag){case 0:case 11:case 15:pc(e,t),4&n&&ts(5,t);break;case 1:if(pc(e,t),4&n)if(e=t.stateNode,null===r)try{e.componentDidMount()}catch(e){Yf(t,t.return,e)}else{var i=au(t.type,r.memoizedProps);r=r.memoizedState;try{e.componentDidUpdate(i,r,e.__reactInternalSnapshotBeforeUpdate)}catch(e){Yf(t,t.return,e)}}64&n&&is(t),512&n&&as(t,t.return);break;case 3:if(pc(e,t),64&n&&null!==(e=t.updateQueue)){if(r=null,null!==t.child)switch(t.child.tag){case 27:case 5:case 1:r=t.child.stateNode}try{ua(e,r)}catch(e){Yf(t,t.return,e)}}break;case 27:null===r&&4&n&&gs(t);case 26:case 5:pc(e,t),null===r&&4&n&&hs(t),512&n&&as(t,t.return);break;case 12:pc(e,t);break;case 31:pc(e,t),4&n&&oc(e,t);break;case 13:pc(e,t),4&n&&ac(e,t),64&n&&null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)&&function(e,r){var t=e.ownerDocument;if("$~"===e.data)e._reactRetry=r;else if("$?"!==e.data||"loading"!==t.readyState)r();else{var n=function(){r(),t.removeEventListener("DOMContentLoaded",n)};t.addEventListener("DOMContentLoaded",n),e._reactRetry=n}}(e,t=rd.bind(null,t));break;case 22:if(!(n=null!==t.memoizedState||Rs)){var o=null!==r&&null!==r.memoizedState||zs;r=Rs,i=zs,Rs=n,(zs=o)&&!i?(n=2,!!(8772&t.subtreeFlags)&&(n|=1),yc(e,t,n)):pc(e,t),Rs=r,zs=i}break;case 30:pc(e,t),512&n&&as(t,t.return);break;case 7:512&n&&as(t,t.return);default:pc(e,t)}}function Ys(e,r){for(e=e.child;null!==e;)Xs(e,r),e=e.sibling}function Xs(e,r){switch(e.tag){case 5:case 26:try{if(r){var t=e.stateNode.style;"function"==typeof t.setProperty?t.setProperty("display","none","important"):t.display="none"}else{var n=e.stateNode,i=e.memoizedProps.style,o=null!=i&&i.hasOwnProperty("display")?i.display:null;n.style.display=null==o||"boolean"==typeof o?"":(""+o).trim()}}catch(r){Yf(e,e.return,r)}Qs(e,r);break;case 6:try{e.stateNode.nodeValue=r?"":e.memoizedProps,Fr=!0}catch(r){Yf(e,e.return,r)}break;case 18:try{ih(e.stateNode,!!r)}catch(r){Yf(e,e.return,r)}break;case 22:case 23:null===e.memoizedState&&Ys(e,r);break;default:Ys(e,r)}}function Qs(e,r){if(67108864&e.subtreeFlags)for(e=e.child;null!==e;){e:{var t=e,n=r;switch(t.tag){case 4:Xs(t,n);break e;case 22:null===t.memoizedState&&Qs(t,n);break e;default:Qs(t,n)}}e=e.sibling}}function ec(e){var r=e.alternate;null!==r&&(e.alternate=null,ec(r)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&null!==(r=e.stateNode)&&wr(r),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var rc=null,tc=!1;function nc(e,r,t){for(t=t.child;null!==t;)ic(e,r,t),t=t.sibling}function ic(e,r,t){if(Ue&&"function"==typeof Ue.onCommitFiberUnmount)try{Ue.onCommitFiberUnmount(ze,t)}catch(e){}switch(t.tag){case 26:zs||ls(t,r),nc(e,r,t),t.memoizedState?t.memoizedState.count--:t.stateNode&&!zs&&(t=t.stateNode).parentNode.removeChild(t);break;case 27:zs||ls(t,r),cs(t);var n=rc,i=tc;th(t.type)&&(rc=t.stateNode,tc=!1),nc(e,r,t),Rh(t.stateNode,t.type,t.memoizedProps),rc=n,tc=i;break;case 5:zs||ls(t,r),cs(t);case 6:if(6===t.tag&&cs(t),n=rc,i=tc,rc=null,nc(e,r,t),tc=i,null!==(rc=n))if(tc)try{(9===rc.nodeType?rc.body:"HTML"===rc.nodeName?rc.ownerDocument.body:rc).removeChild(t.stateNode),Fr=!0}catch(e){Yf(t,r,e)}else try{rc.removeChild(t.stateNode),Fr=!0}catch(e){Yf(t,r,e)}break;case 18:null!==rc&&(tc?(nh(9===(e=rc).nodeType?e.body:"HTML"===e.nodeName?e.ownerDocument.body:e,t.stateNode),Ym(e)):nh(rc,t.stateNode));break;case 4:n=rc,i=tc,rc=t.stateNode.containerInfo,tc=!0,nc(e,r,t),rc=n,tc=i;break;case 0:case 11:case 14:case 15:ns(2,t,r),zs||ns(4,t,r),nc(e,r,t);break;case 1:zs||(ls(t,r),"function"==typeof(n=t.stateNode).componentWillUnmount&&os(t,r,n)),nc(e,r,t);break;case 21:nc(e,r,t);break;case 22:zs=(n=zs)||null!==t.memoizedState,nc(e,r,t),zs=n;break;case 30:ls(t,r),nc(e,r,t);break;case 7:zs||ls(t,r),nc(e,r,t);break;default:nc(e,r,t)}}function oc(e,r){if(null===r.memoizedState&&null!==(e=r.alternate)&&null!==(e=e.memoizedState)){e=e.dehydrated;try{Ym(e)}catch(e){Yf(r,r.return,e)}}}function ac(e,r){if(null===r.memoizedState&&null!==(e=r.alternate)&&null!==(e=e.memoizedState)&&null!==(e=e.dehydrated))try{Ym(e)}catch(e){Yf(r,r.return,e)}}function lc(e,r){var t=function(e){switch(e.tag){case 31:case 13:case 19:var r=e.stateNode;return null===r&&(r=e.stateNode=new Bs),r;case 22:return null===(r=(e=e.stateNode)._retryCache)&&(r=e._retryCache=new Bs),r;default:throw Error(n(435,e.tag))}}(e);r.forEach((function(r){if(!t.has(r)){t.add(r);var n=td.bind(null,e,r);r.then(n,n)}}))}function uc(e,r,t){var i=r.deletions;if(null!==i)for(var o=0;o<i.length;o++){var a=i[o],l=e,u=r,s=u;e:for(;null!==s;){switch(s.tag){case 27:if(th(s.type)){rc=s.stateNode,tc=!1;break e}break;case 5:rc=s.stateNode,tc=!1;break e;case 3:case 4:rc=s.stateNode.containerInfo,tc=!0;break e}s=s.return}if(null===rc)throw Error(n(160));ic(l,u,a),rc=null,tc=!1,null!==(l=a.alternate)&&(l.return=null),a.return=null}if(13886&r.subtreeFlags)for(r=r.child;null!==r;)cc(r,e,t),r=r.sibling}var sc=null;function cc(e,r,t){var i=e.alternate,o=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(4&o&&null!==(i=null!==(i=e.updateQueue)?i.events:null))for(var a=0;a<i.length;a++){var l=i[a];l.ref.impl=l.nextImpl}uc(r,e,t),fc(e),4&o&&(ns(3,e,e.return),ts(3,e),ns(5,e,e.return));break;case 1:uc(r,e,t),fc(e),512&o&&(zs||null===i||ls(i,i.return)),64&o&&Rs&&null!==(e=e.updateQueue)&&null!==(r=e.callbacks)&&(e.shared.hiddenCallbacks=null===(t=e.shared.hiddenCallbacks)?r:t.concat(r));break;case 26:if(a=sc,uc(r,e,t),fc(e),512&o&&(zs||null===i||ls(i,i.return)),4&o)if(o=null!==i?i.memoizedState:null,t=e.memoizedState,null===i)if(null===t)if(null===e.stateNode)if(Rs)e.stateNode=Gd(e.type,e.memoizedProps,r.containerInfo,e);else{e:{t=e.memoizedProps,o=a.ownerDocument||a;r:switch(r=e.type){case"title":(!(i=o.getElementsByTagName("title")[0])||i[br]||i[fr]||"http://www.w3.org/2000/svg"===i.namespaceURI||i.hasAttribute("itemprop"))&&(i=o.createElement(r),o.head.insertBefore(i,o.querySelector("head > title"))),Rd(i,r,t),i[fr]=e,jr(i),r=i;break e;case"link":if(a=im("link","href",o).get(r+(t.href||"")))for(l=0;l<a.length;l++)if((i=a[l]).getAttribute("href")===(null==t.href||""===t.href?null:t.href)&&i.getAttribute("rel")===(null==t.rel?null:t.rel)&&i.getAttribute("title")===(null==t.title?null:t.title)&&i.getAttribute("crossorigin")===(null==t.crossOrigin?null:t.crossOrigin)){a.splice(l,1);break r}Rd(i=o.createElement(r),r,t),o.head.appendChild(i);break;case"meta":if(a=im("meta","content",o).get(r+(t.content||"")))for(l=0;l<a.length;l++)if((i=a[l]).getAttribute("content")===(null==t.content?null:""+t.content)&&i.getAttribute("name")===(null==t.name?null:t.name)&&i.getAttribute("property")===(null==t.property?null:t.property)&&i.getAttribute("http-equiv")===(null==t.httpEquiv?null:t.httpEquiv)&&i.getAttribute("charset")===(null==t.charSet?null:t.charSet)){a.splice(l,1);break r}Rd(i=o.createElement(r),r,t),o.head.appendChild(i);break;default:throw Error(n(468,r))}i[fr]=e,jr(i),r=i}e.stateNode=r}else Rs||om(a,e.type,e.stateNode);else e.stateNode=Qh(a,t,e.memoizedProps);else o!==t?(null===o?null===(r=i.stateNode)||zs||r.parentNode.removeChild(r):o.count--,null===t?Rs||om(a,e.type,e.stateNode):Qh(a,t,e.memoizedProps)):null===t&&null!==e.stateNode&&ms(e,e.memoizedProps,i.memoizedProps);break;case 27:uc(r,e,t),fc(e),512&o&&(zs||null===i||ls(i,i.return)),null!==i&&4&o&&ms(e,e.memoizedProps,i.memoizedProps);break;case 5:if(a=Us,Us=!1,uc(r,e,t),Us=a,fc(e),512&o&&(zs||null===i||ls(i,i.return)),32&e.flags){r=e.stateNode;try{Yr(r,""),Fr=!0}catch(r){Yf(e,e.return,r)}}4&o&&null!=e.stateNode&&ms(e,r=e.memoizedProps,null!==i?i.memoizedProps:r),1024&o&&(Ls=!0);break;case 6:if(uc(r,e,t),fc(e),4&o){if(null===e.stateNode)throw Error(n(162));r=e.memoizedProps,t=e.stateNode;try{t.nodeValue=r,Fr=!0}catch(r){Yf(e,e.return,r)}}break;case 3:if(Fr=!1,nm=null,a=sc,sc=Bh(r.containerInfo),uc(r,e,t),sc=a,fc(e),4&o&&null!==i&&i.memoizedState.isDehydrated)try{Ym(r.containerInfo)}catch(r){Yf(e,e.return,r)}Ls&&(Ls=!1,dc(e)),Fr=!1;break;case 4:o=Us,Us=Rs,i=qr(),a=sc,sc=Bh(e.stateNode.containerInfo),uc(r,e,t),fc(e),sc=a,Fr&&Ws&&(Gs=!0),Fr=i,Us=o;break;case 12:uc(r,e,t),fc(e);break;case 31:uc(r,e,t),fc(e),4&o&&null!==(r=e.updateQueue)&&(e.updateQueue=null,lc(e,r));break;case 13:uc(r,e,t),fc(e),8192&e.child.flags&&null!==e.memoizedState!=(null!==i&&null!==i.memoizedState)&&(Qc=Ie()),4&o&&null!==(r=e.updateQueue)&&(e.updateQueue=null,lc(e,r));break;case 22:a=null!==e.memoizedState,l=null!==i&&null!==i.memoizedState;var u=Rs,s=zs,c=Us;Rs=u||a,Us=c||a,zs=s||l,uc(r,e,t),zs=s,Us=c,Rs=u,fc(e),8192&o&&((r=e.stateNode)._visibility=a?-2&r._visibility:1|r._visibility,!a||null===i||l||Rs||zs||(t=Rs,i=zs,Rs=a||Rs,zs=r=l||zs,vc(e,2),Rs=t,zs=i),!a&&Us||Ys(e,a)),4&o&&null!==(r=e.updateQueue)&&null!==(t=r.retryQueue)&&(r.retryQueue=null,lc(e,t));break;case 19:uc(r,e,t),fc(e),4&o&&null!==(r=e.updateQueue)&&(e.updateQueue=null,lc(e,r));break;case 30:512&o&&(zs||null===i||ls(i,i.return)),o=qr(),a=Ws,u=e.memoizedProps,Ws=(l=(335544064&t)===t)&&"none"!==ii(u.default,u.update),uc(r,e,t),fc(e),l&&null!==i&&Fr&&(e.flags|=4),Ws=a,Fr=o;break;case 21:break;case 7:512&o&&(zs||null===i||ls(i,i.return)),i&&null!==i.stateNode&&(i.stateNode._fragmentFiber=e);default:uc(r,e,t),fc(e)}}function fc(e){var r=e.flags;if(2&r){try{for(var t,i=e.return;null!==i;){if(ps(i)){t=i;break}i=i.return}i=null;for(var o=e.return;null!==o;){if(ds(o)){var a=o.stateNode;null===i?i=[a]:i.push(a)}if(fs(o))break;o=o.return}var l=i;if(null==t)throw Error(n(160));switch(t.tag){case 27:var u=t.stateNode;bs(e,vs(e),u,l);break;case 5:var s=t.stateNode;32&t.flags&&(Yr(s,""),t.flags&=-33),bs(e,vs(e),s,l);break;case 3:case 4:var c=t.stateNode.containerInfo;ys(e,vs(e),c,l);break;default:throw Error(n(161))}}catch(r){Yf(e,e.return,r)}e.flags&=-3}4096&r&&(e.flags&=-4097)}function dc(e){if(1024&e.subtreeFlags)for(e=e.child;null!==e;){var r=e;dc(r),5===r.tag&&1024&r.flags&&(xm=!0,(r=r.stateNode).reset(),xm=!1),e=e.sibling}}function hc(e,r){if(9270&r.subtreeFlags)for(r=r.child;null!==r;)mc(r,e),r=r.sibling;else Ns(r)}function mc(e,r){var t=e.alternate;if(null===t)_s(e,!1);else switch(e.tag){case 3:if(Ks=Hs=!1,Es(),hc(r,e),!Hs&&!Gs){if(null!==(e=Ss))for(var n=0;n<e.length;n+=3){var i=e[n+1];ah(t=e[n],e[n+2]),null!==(t=t.ownerDocument.documentElement)&&t.animate({opacity:[0,0],pointerEvents:["none","none"]},{duration:0,fill:"forwards",pseudoElement:"::view-transition-group("+i+")"})}null!==(e=9===(e=r.containerInfo).nodeType?e.documentElement:e.ownerDocument.documentElement)&&""===e.style.viewTransitionName&&(e.style.viewTransitionName="none",e.animate({opacity:[0,0],pointerEvents:["none","none"]},{duration:0,fill:"forwards",pseudoElement:"::view-transition-group(root)"}),e.animate({width:[0,0],height:[0,0]},{duration:0,fill:"forwards",pseudoElement:"::view-transition"})),Ks=!0}Ss=null;break;case 5:default:hc(r,e);break;case 4:n=Hs,Hs=!1,hc(r,e),Hs&&(Gs=!0),Hs=n;break;case 22:null===e.memoizedState&&(null!==t.memoizedState?_s(e,!1):hc(r,e));break;case 30:n=Hs,i=Es(),Hs=!1,hc(r,e),Hs&&(e.flags|=4);var o=e.memoizedProps,a=e.stateNode;r=ti(o,a),a=ti(t.memoizedProps,a);var l=ii(o.default,o.update);"none"===l?r=!1:(o=t.memoizedState,t.memoizedState=null,js=0,r=Ms(e,t=e.child,r,a,l,o,!0),js!==(null===o?0:o.length)&&(e.flags|=32)),4&e.flags&&r?(gf(e,e.memoizedProps.onUpdate),Ss=i):null!==i&&(i.push.apply(i,Ss),Ss=i),Hs=!!(32&e.flags)||n}}function pc(e,r){if(8772&r.subtreeFlags)for(r=r.child;null!==r;)Js(e,r.alternate,r),r=r.sibling}function vc(e,r){for(e=e.child;null!==e;){var t=e,n=r;switch(t.tag){case 0:case 11:case 14:case 15:ns(4,t,t.return),vc(t,n);break;case 1:ls(t,t.return);var i=t.stateNode;"function"==typeof i.componentWillUnmount&&os(t,t.return,i),vc(t,n);break;case 27:2&n&&Rh(t.stateNode,t.type,t.memoizedProps);case 5:ls(t,t.return),5!==t.tag&&27!==t.tag||cs(t),vc(t,n);break;case 6:cs(t);break;case 26:ls(t,t.return),i=t.stateNode,null!==t.memoizedState||null===i||zs||i.parentNode.removeChild(i),vc(t,n);break;case 22:null===t.memoizedState&&vc(t,n);break;case 30:ls(t,t.return),vc(t,n);break;case 7:ls(t,t.return);default:vc(t,n)}e=e.sibling}}function yc(e,r,t){for(t=8772&r.subtreeFlags?t:-2&t,r=r.child;null!==r;){var n=r.alternate,i=e,o=r,a=o.flags,l=!!(1&t);switch(o.tag){case 0:case 11:case 15:yc(i,o,t),ts(4,o);break;case 1:if(yc(i,o,t),"function"==typeof(i=(n=o).stateNode).componentDidMount)try{i.componentDidMount()}catch(e){Yf(n,n.return,e)}if(null!==(i=(n=o).updateQueue)){var u=n.stateNode;try{var s=i.shared.hiddenCallbacks;if(null!==s)for(i.shared.hiddenCallbacks=null,i=0;i<s.length;i++)la(s[i],u)}catch(e){Yf(n,n.return,e)}}l&&64&a&&is(o),as(o,o.return);break;case 27:2&t&&gs(o);case 5:5!==o.tag&&27!==o.tag||ss(o),yc(i,o,t),l&&null===n&&4&a&&hs(o),as(o,o.return);break;case 6:ss(o);break;case 26:u=o.stateNode,null!==o.memoizedState||null===u||Rs||om(Bh(u.ownerDocument),o.type,u),yc(i,o,t),l&&null===n&&4&a&&hs(o),as(o,o.return);break;case 12:yc(i,o,t);break;case 31:yc(i,o,t),l&&4&a&&oc(i,o);break;case 13:yc(i,o,t),l&&4&a&&ac(i,o);break;case 22:null===o.memoizedState&&yc(i,o,t),as(o,o.return);break;case 30:yc(i,o,t),as(o,o.return);break;case 7:as(o,o.return);default:yc(i,o,t)}r=r.sibling}}function bc(e,r){var t=null;null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(t=e.memoizedState.cachePool.pool),e=null,null!==r.memoizedState&&null!==r.memoizedState.cachePool&&(e=r.memoizedState.cachePool.pool),e!==t&&(null!=e&&e.refCount++,null!=t&&wo(t))}function gc(e,r){e=null,null!==r.alternate&&(e=r.alternate.memoizedState.cache),(r=r.memoizedState.cache)!==e&&(r.refCount++,null!=e&&wo(e))}function wc(e,r,t,n){var i=(335544064&t)===t;if(r.subtreeFlags&(i?10262:10256))for(r=r.child;null!==r;)kc(e,r,t,n),r=r.sibling;else i&&Ts(r)}function kc(e,r,t,n){var i=(335544064&t)===t;i&&null===r.alternate&&null!==r.return&&null!==r.return.alternate&&qs(r);var o=r.flags;switch(r.tag){case 0:case 11:case 15:wc(e,r,t,n),2048&o&&ts(9,r);break;case 1:case 31:case 13:default:wc(e,r,t,n);break;case 3:wc(e,r,t,n),i&&Ks&&("root"===(e=9===(e=e.containerInfo).nodeType?e.body:"HTML"===e.nodeName?e.ownerDocument.body:e).style.viewTransitionName&&(e.style.viewTransitionName=""),null!==(e=e.ownerDocument.documentElement)&&"none"===e.style.viewTransitionName&&(e.style.viewTransitionName="")),2048&o&&(o=null,null!==r.alternate&&(o=r.alternate.memoizedState.cache),(r=r.memoizedState.cache)!==o&&(r.refCount++,null!=o&&wo(o)));break;case 12:if(2048&o){wc(e,r,t,n),o=r.stateNode;try{var a=r.memoizedProps,l=a.id,u=a.onPostCommit;"function"==typeof u&&u(l,null===r.alternate?"mount":"update",o.passiveEffectDuration,-0)}catch(e){Yf(r,r.return,e)}}else wc(e,r,t,n);break;case 23:break;case 22:a=r.stateNode,l=r.alternate,null!==r.memoizedState?(i&&null!==l&&null===l.memoizedState&&qs(l),2&a._visibility?wc(e,r,t,n):Sc(e,r)):(i&&null!==l&&null!==l.memoizedState&&qs(r),2&a._visibility?wc(e,r,t,n):(a._visibility|=2,$c(e,r,t,n,!!(10256&r.subtreeFlags)||!1))),2048&o&&bc(l,r);break;case 24:wc(e,r,t,n),2048&o&&gc(r.alternate,r);break;case 30:i&&null!==(o=r.alternate)&&(As(o.child,!0),As(r.child,!0)),wc(e,r,t,n)}}function $c(e,r,t,n,i){for(i=i&&(!!(10256&r.subtreeFlags)||!1),r=r.child;null!==r;){var o=e,a=r,l=t,u=n,s=a.flags;switch(a.tag){case 0:case 11:case 15:$c(o,a,l,u,i),ts(8,a);break;case 23:break;case 22:var c=a.stateNode;null!==a.memoizedState?2&c._visibility?$c(o,a,l,u,i):Sc(o,a):(c._visibility|=2,$c(o,a,l,u,i)),i&&2048&s&&bc(a.alternate,a);break;case 24:$c(o,a,l,u,i),i&&2048&s&&gc(a.alternate,a);break;default:$c(o,a,l,u,i)}r=r.sibling}}function Sc(e,r){if(10256&r.subtreeFlags)for(r=r.child;null!==r;){var t=e,n=r,i=n.flags;switch(n.tag){case 22:Sc(t,n),2048&i&&bc(n.alternate,n);break;case 24:Sc(t,n),2048&i&&gc(n.alternate,n);break;default:Sc(t,n)}r=r.sibling}}var Ec=8192;function jc(e,r,t){if(e.subtreeFlags&Ec)for(e=e.child;null!==e;)xc(e,r,t),e=e.sibling}function xc(e,r,t){switch(e.tag){case 26:jc(e,r,t),e.flags&Ec&&(null!==e.memoizedState?function(e,r,t,n){if(!("stylesheet"!==t.type||"string"==typeof n.media&&!1===matchMedia(n.media).matches||4&t.state.loading)){if(null===t.instance){var i=Kh(n.href),o=r.querySelector(Zh(i));if(o)return null!==(r=o._p)&&"object"==typeof r&&"function"==typeof r.then&&(e.count++,e=dm.bind(e),r.then(e,e)),t.state.loading|=4,t.instance=o,void jr(o);o=r.ownerDocument||r,n=Jh(n),(i=Uh.get(i))&&rm(n,i),jr(o=o.createElement("link"));var a=o;a._p=new Promise((function(e,r){a.onload=e,a.onerror=r})),Rd(o,"link",n),t.instance=o}null===e.stylesheets&&(e.stylesheets=new Map),e.stylesheets.set(t,r),(r=t.state.preload)&&!(3&t.state.loading)&&(e.count++,t=dm.bind(e),r.addEventListener("load",t),r.addEventListener("error",t))}}(t,sc,e.memoizedState,e.memoizedProps):(e=e.stateNode,(335544128&r)===r&&sm(t,e)));break;case 5:jc(e,r,t),e.flags&Ec&&(e=e.stateNode,(335544128&r)===r&&sm(t,e));break;case 3:case 4:var n=sc;sc=Bh(e.stateNode.containerInfo),jc(e,r,t),sc=n;break;case 22:null===e.memoizedState&&(null!==(n=e.alternate)&&null!==n.memoizedState?(n=Ec,Ec=16777216,jc(e,r,t),Ec=n):jc(e,r,t));break;case 30:if(e.flags&Ec&&null!=(n=e.memoizedProps.name)&&"auto"!==n){var i=e.stateNode;i.paired=null,null===ks&&(ks=new Map),ks.set(n,i)}jc(e,r,t);break;default:jc(e,r,t)}}function Oc(e){var r=e.alternate;if(null!==r&&null!==(e=r.child)){r.child=null;do{r=e.sibling,e.sibling=null,e=r}while(null!==e)}}function Ac(e){var r=e.deletions;if(16&e.flags){if(null!==r)for(var t=0;t<r.length;t++){var n=r[t];Vs=n,Ic(n,e)}Oc(e)}if(10256&e.subtreeFlags)for(e=e.child;null!==e;)Cc(e),e=e.sibling}function Cc(e){switch(e.tag){case 0:case 11:case 15:Ac(e),2048&e.flags&&ns(9,e,e.return);break;case 3:case 12:default:Ac(e);break;case 22:var r=e.stateNode;null!==e.memoizedState&&2&r._visibility&&(null===e.return||13!==e.return.tag)?(r._visibility&=-3,_c(e)):Ac(e)}}function _c(e){var r=e.deletions;if(16&e.flags){if(null!==r)for(var t=0;t<r.length;t++){var n=r[t];Vs=n,Ic(n,e)}Oc(e)}for(e=e.child;null!==e;){switch((r=e).tag){case 0:case 11:case 15:ns(8,r,r.return),_c(r);break;case 22:2&(t=r.stateNode)._visibility&&(t._visibility&=-3,_c(r));break;default:_c(r)}e=e.sibling}}function Ic(e,r){for(;null!==Vs;){var t=Vs;switch(t.tag){case 0:case 11:case 15:ns(8,t,r);break;case 23:case 22:if(null!==t.memoizedState&&null!==t.memoizedState.cachePool){var n=t.memoizedState.cachePool.pool;null!=n&&n.refCount++}break;case 24:wo(t.memoizedState.cache)}if(null!==(n=t.child))n.return=t,Vs=n;else e:for(t=e;null!==Vs;){var i=(n=Vs).sibling,o=n.return;if(ec(n),n===t){Vs=null;break e}if(null!==i){i.return=o,Vs=i;break e}Vs=o}}}var Dc={getCacheForType:function(e){var r=fo(bo),t=r.data.get(e);return void 0===t&&(t=e(),r.data.set(e,t)),t},cacheSignal:function(){return fo(bo).controller.signal}},Pc="function"==typeof WeakMap?WeakMap:Map,Fc=0,qc=null,Tc=null,Mc=0,Nc=0,Rc=null,zc=!1,Uc=!1,Lc=!1,Bc=0,Vc=0,Hc=0,Wc=0,Gc=0,Kc=0,Zc=0,Jc=null,Yc=null,Xc=!1,Qc=0,ef=0,rf=1/0,tf=null,nf=null,of=0,af=null,lf=null,uf=0,sf=0,cf=null,ff=null,df=null,hf=null,mf=null,pf=0,vf=null;function yf(){return 2&Fc&&0!==Mc?Mc&-Mc:null!==W.T?vd():ur()}function bf(){if(0===Kc)if(536870912&Mc&&!Vi)Kc=536870912;else{var e=Ge;!(3932160&(Ge<<=1))&&(Ge=262144),Kc=e}return null!==(e=ma.current)&&(e.flags|=32),Kc}function gf(e,r){if(null!=r){var t=e.stateNode,n=t.ref;null===n&&(n=t.ref=ch(ti(e.memoizedProps,t))),null===hf&&(hf=[]),hf.push(r.bind(null,n))}}function wf(e,r,t){(e!==qc||2!==Nc&&9!==Nc)&&null===e.cancelPendingCommit||(Of(e,0),Ef(e,Mc,Kc,!1)),tr(e,t),2&Fc&&e===qc||(e===qc&&(!(2&Fc)&&(Wc|=t),4===Vc&&Ef(e,Mc,Kc,!1)),sd(e))}function kf(e,r,t){if(6&Fc)throw Error(n(327));for(var i=!t&&!(127&r)&&!(r&e.expiredLanes)||Ye(e,r),o=i?function(e,r){var t=Fc;Fc|=2;var i=_f(),o=If();qc!==e||Mc!==r?(tf=null,rf=Ie()+500,Of(e,r)):Uc=Ye(e,r);e:for(;;)try{if(0!==Nc&&null!==Tc){r=Tc;var a=Rc;r:switch(Nc){case 1:Nc=0,Rc=null,Nf(e,r,a,1);break;case 2:case 9:if(Mo(a)){Nc=0,Rc=null,Mf(r);break}a.then(r=function(){2!==Nc&&9!==Nc||qc!==e||(Nc=7),sd(e)},r);break e;case 3:Nc=7;break e;case 4:Nc=5;break e;case 7:Mo(a)?(Nc=0,Rc=null,Mf(r)):(Nc=0,Rc=null,Nf(e,r,a,7));break;case 5:var l=null;switch(Tc.tag){case 26:l=Tc.memoizedState;case 5:case 27:var u=Tc;if(l?lm(l):u.stateNode.complete){Nc=0,Rc=null;var s=u.sibling;if(null!==s)Tc=s;else{var c=u.return;null!==c?(Tc=c,Rf(c)):Tc=null}break r}}Nc=0,Rc=null,Nf(e,r,a,5);break;case 6:Nc=0,Rc=null,Nf(e,r,a,6);break;case 8:xf(),Vc=6;break e;default:throw Error(n(462))}}qf();break}catch(r){Af(e,r)}return no=to=null,W.H=i,W.A=o,Fc=t,null!==Tc?0:(qc=null,Mc=0,si(),Vc)}(e,r):Pf(e,r,!0),a=i;;){if(0===o){Uc&&!i&&Ef(e,r,0,!1);break}if(t=e.current.alternate,!a||Sf(t)){if(2===o){if(e.errorRecoveryDisabledLanes&(a=r))var l=0;else l=0!=(l=-536870913&e.pendingLanes)?l:536870912&l?536870912:0;if(0!==l){r=l;e:{var u=e;o=Jc;var s=u.current.memoizedState.isDehydrated;if(s&&(Of(u,l).flags|=256),2!==(l=Pf(u,l,!1))&&6!==l){if(Lc&&!s){u.errorRecoveryDisabledLanes|=a,Wc|=a,o=4;break e}a=Yc,Yc=o,null!==a&&(null===Yc?Yc=a:Yc.push.apply(Yc,a))}o=l}if(a=!1,2!==o)continue}}if(1===o){Of(e,0),Ef(e,r,0,!0);break}e:{switch(i=e,a=o){case 0:case 1:throw Error(n(345));case 4:if((4194048&r)!==r&&(62914560&r)!==r)break;case 6:Ef(i,r,Kc,!zc);break e;case 2:Yc=null;break;case 3:case 5:break;default:throw Error(n(329))}if((62914560&r)===r&&10<(o=Qc+300-Ie())){if(Ef(i,r,Kc,!zc),0!==Je(i,0,!0))break e;uf=r,i.timeoutHandle=Jd($f.bind(null,i,t,Yc,tf,Xc,r,Kc,Wc,Zc,zc,a,"Throttled",-0,0),o)}else $f(i,t,Yc,tf,Xc,r,Kc,Wc,Zc,zc,a,null,-0,0)}break}o=Pf(e,r,!1),a=!1}sd(e)}function $f(e,r,t,n,i,o,a,l,u,s,c,f,d,h){e.timeoutHandle=-1;var m,p,v=r.subtreeFlags,y=(335544064&o)===o;if(f=null,(y||8192&v||!(16785408&~v))&&(ks=null,xc(r,o,f={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:ot}),y&&(v=f,null!=(y=(9===(y=e.containerInfo).nodeType?y:y.ownerDocument).__reactViewTransition)&&(v.count++,v.waitingForViewTransition=!0,v=dm.bind(v),y.finished.then(v,v))),v=(62914560&o)===o?Qc-Ie():(4194048&o)===o?ef-Ie():0,p=v,(m=f).stylesheets&&0===m.count&&pm(m,m.stylesheets),null!==(v=0<m.count||0<m.imgCount?function(e){var r=setTimeout((function(){if(m.stylesheets&&pm(m,m.stylesheets),m.unsuspend){var e=m.unsuspend;m.unsuspend=null,e()}}),6e4+p);0<m.imgBytes&&0===cm&&(cm=62500*function(){if("function"==typeof performance.getEntriesByType){for(var e=0,r=0,t=performance.getEntriesByType("resource"),n=0;n<t.length;n++){var i=t[n],o=i.transferSize,a=i.initiatorType,l=i.duration;if(o&&l&&Ud(a)){for(a=0,l=i.responseEnd,n+=1;n<t.length;n++){var u=t[n],s=u.startTime;if(s>l)break;var c=u.transferSize;c&&Ud(u.initiatorType)&&(a+=c*((u=u.responseEnd)<l?1:(l-s)/(u-s)))}if(--n,r+=8*(o+a)/(i.duration/1e3),10<++e)break}}if(0<e)return r/e/1e6}return navigator.connection&&"number"==typeof(e=navigator.connection.downlink)?e:5}());var t=setTimeout((function(){if(m.waitingForImages=!1,0===m.count&&(m.stylesheets&&pm(m,m.stylesheets),m.unsuspend)){var e=m.unsuspend;m.unsuspend=null,e()}}),(m.imgBytes>cm?50:800)+p);return m.unsuspend=e,function(){m.unsuspend=null,clearTimeout(r),clearTimeout(t)}}:null)))return uf=o,e.cancelPendingCommit=v(Uf.bind(null,e,r,o,t,n,i,a,l,u,s,c,f,null,d,h)),void Ef(e,o,a,!s);Uf(e,r,o,t,n,0,a,l,u,0,0,f)}function Sf(e){for(var r=e;;){var t=r.tag;if((0===t||11===t||15===t)&&16384&r.flags&&null!==(t=r.updateQueue)&&null!==(t=t.stores))for(var n=0;n<t.length;n++){var i=t[n],o=i.getSnapshot;i=i.value;try{if(!xn(o(),i))return!1}catch(e){return!1}}if(t=r.child,16384&r.subtreeFlags&&null!==t)t.return=r,r=t;else{if(r===e)break;for(;null===r.sibling;){if(null===r.return||r.return===e)return!0;r=r.return}r.sibling.return=r.return,r=r.sibling}}return!0}function Ef(e,r,t,n){r=Xe(e,r),r&=~Gc,e.suspendedLanes|=r&=~Wc,e.pingedLanes&=~r,n&&(e.warmLanes|=r),n=e.expirationTimes;for(var i=r;0<i;){var o=31-Be(i),a=1<<o;n[o]=-1,i&=~a}0!==t&&nr(e,t,r)}function jf(){return!!(6&Fc)||(cd(0),!1)}function xf(){if(null!==Tc){if(0===Nc)var e=Tc.return;else no=to=null,Va(e=Tc),Bo=null,Vo=0,e=Tc;for(;null!==e;)rs(e.alternate,e),e=e.return;Tc=null}}function Of(e,r){var t=e.timeoutHandle;return-1!==t&&(e.timeoutHandle=-1,Yd(t)),null!==(t=e.cancelPendingCommit)&&(e.cancelPendingCommit=null,t()),uf=0,xf(),qc=e,Tc=t=gi(e.current,null),Mc=r,Nc=0,Rc=null,zc=!1,Uc=Ye(e,r),Lc=!1,Zc=Kc=Gc=Wc=Hc=Vc=0,Yc=Jc=null,Xc=!1,Bc=Xe(e,r),si(),t}function Af(e,r){xa=null,W.H=Xl,r===Po||r===qo?(r=Uo(),Nc=3):r===Fo?(r=Uo(),Nc=4):Nc=r===pu?8:null!==r&&"object"==typeof r&&"function"==typeof r.then?6:1,Rc=r,null===Tc&&(Vc=1,cu(e,Oi(r,e.current)))}function Cf(){var e=ma.current;return null===e||((4194048&Mc)===Mc?null===pa:!!((62914560&Mc)===Mc||536870912&Mc)&&e===pa)}function _f(){var e=W.H;return W.H=Xl,null===e?Xl:e}function If(){var e=W.A;return W.A=Dc,e}function Df(){Vc=4,zc||(4194048&Mc)!==Mc&&null!==ma.current||(Uc=!0),!(134217727&Hc)&&!(134217727&Wc)||null===qc||Ef(qc,Mc,Kc,!1)}function Pf(e,r,t){var n=Fc;Fc|=2;var i=_f(),o=If();qc===e&&Mc===r||(tf=null,Of(e,r)),r=!1;var a=Vc;e:for(;;)try{if(0!==Nc&&null!==Tc){var l=Tc,u=Rc;switch(Nc){case 8:xf(),a=6;break e;case 3:case 2:case 9:case 6:null===ma.current&&(r=!0);var s=Nc;if(Nc=0,Rc=null,Nf(e,l,u,s),t&&Uc){a=0;break e}break;default:s=Nc,Nc=0,Rc=null,Nf(e,l,u,s)}}Ff(),a=Vc;break}catch(r){Af(e,r)}return r&&e.shellSuspendCounter++,no=to=null,Fc=n,W.H=i,W.A=o,null===Tc&&(qc=null,Mc=0,si()),a}function Ff(){for(;null!==Tc;)Tf(Tc)}function qf(){for(;null!==Tc&&!Ce();)Tf(Tc)}function Tf(e){var r=Wu(e.alternate,e,Bc);e.memoizedProps=e.pendingProps,null===r?Rf(e):Tc=r}function Mf(e){var r=e,t=r.alternate;switch(r.tag){case 15:case 0:r=Au(t,r,r.pendingProps,r.type,void 0,Mc);break;case 11:r=Au(t,r,r.pendingProps,r.type.render,r.ref,Mc);break;case 5:Va(r);var n=r;n===Li&&(Vi?(Ji(n),5===n.tag&&null!=n.stateNode&&(Bi=n.stateNode)):(Ji(n),Vi=!0));default:rs(t,r),r=Wu(t,r=Tc=wi(r,Bc),Bc)}e.memoizedProps=e.pendingProps,null===r?Rf(e):Tc=r}function Nf(e,r,t,i){no=to=null,Va(r),Bo=null,Vo=0;var o=r.return;try{if(function(e,r,t,i,o){if(t.flags|=32768,null!==i&&"object"==typeof i&&"function"==typeof i.then){if(null!==(r=t.alternate)&&uo(r,t,o,!0),null!==(t=ma.current)){switch(t.tag){case 31:case 13:case 19:return null===pa?Df():null===t.alternate&&0===Vc&&(Vc=3),t.flags&=-257,t.flags|=65536,t.lanes=o,i===To?t.flags|=16384:(null===(r=t.updateQueue)?t.updateQueue=new Set([i]):r.add(i),Xf(e,i,o)),!1;case 22:return t.flags|=65536,i===To?t.flags|=16384:(null===(r=t.updateQueue)?(r={transitions:null,markerInstances:null,retryQueue:new Set([i])},t.updateQueue=r):null===(t=r.retryQueue)?r.retryQueue=new Set([i]):t.add(i),Xf(e,i,o)),!1}throw Error(n(435,t.tag))}return Xf(e,i,o),Df(),!1}if(Vi)return null!==(r=ma.current)?(!(65536&r.flags)&&(r.flags|=256),r.flags|=65536,r.lanes=o,i!==Gi&&eo(Oi(e=Error(n(422),{cause:i}),t))):(i!==Gi&&eo(Oi(r=Error(n(423),{cause:i}),t)),(e=e.current.alternate).flags|=65536,e.lanes|=o&=-o,i=Oi(i,t),na(e,o=du(e.stateNode,i,o)),4!==Vc&&(Vc=2)),!1;var a=Error(n(520),{cause:i});if(a=Oi(a,t),null===Jc?Jc=[a]:Jc.push(a),4!==Vc&&(Vc=2),null===r)return!0;i=Oi(i,t),t=r;do{switch(t.tag){case 3:return t.flags|=65536,t.lanes|=e=o&-o,na(t,e=du(t.stateNode,i,e)),!1;case 1:if(r=t.type,a=t.stateNode,!(128&t.flags||"function"!=typeof r.getDerivedStateFromError&&(null===a||"function"!=typeof a.componentDidCatch||null!==nf&&nf.has(a))))return t.flags|=65536,t.lanes|=o&=-o,mu(o=hu(o),e,t,i),na(t,o),!1;break;case 22:if(null!==t.memoizedState)return t.flags|=65536,!1}t=t.return}while(null!==t);return!1}(e,o,r,t,Mc))return Vc=1,cu(e,Oi(t,e.current)),void(Tc=null)}catch(r){if(null!==o)throw Tc=o,r;return Vc=1,cu(e,Oi(t,e.current)),void(Tc=null)}32768&r.flags?(Vi||1===i?e=!0:Uc||536870912&Mc?e=!1:(zc=e=!0,(2===i||9===i||3===i||6===i)&&null!==(i=ma.current)&&13===i.tag&&(i.flags|=16384)),zf(r,e)):Rf(r)}function Rf(e){var r=e;do{if(32768&r.flags)return void zf(r,zc);e=r.return;var t=Qu(r.alternate,r,Bc);if(null!==t)return void(Tc=t);if(null!==(r=r.sibling))return void(Tc=r);Tc=r=e}while(null!==r);0===Vc&&(Vc=5)}function zf(e,r){do{var t=es(e.alternate,e);if(null!==t)return t.flags&=32767,void(Tc=t);if(null!==(t=e.return)&&(t.flags|=32768,t.subtreeFlags=0,t.deletions=null),!r&&null!==(e=e.sibling))return void(Tc=e);Tc=e=t}while(null!==e);Vc=6,Tc=null}function Uf(e,r,t,i,o,a,l,u,s,c,f,d){e.cancelPendingCommit=null;do{Kf()}while(0!==of);if(6&Fc)throw Error(n(327));if(null!==r){if(r===e.current)throw Error(n(177));e===qc&&(Tc=qc=null,Mc=0),lf=r,af=e,uf=t,cf=o,ff=i,function(e,r,t,n,i,o,a){var l=r.lanes|r.childLanes;if(sf=l,function(e,r,t,n,i,o){var a=e.pendingLanes;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=t,e.entangledLanes&=t,e.errorRecoveryDisabledLanes&=t,e.shellSuspendCounter=0;var l=e.entanglements,u=e.expirationTimes,s=e.hiddenUpdates;for(t=a&~t;0<t;){var c=31-Be(t),f=1<<c;l[c]=0,u[c]=-1;var d=s[c];if(null!==d)for(s[c]=null,c=0;c<d.length;c++){var h=d[c];null!==h&&(h.lane&=-536870913)}t&=~f}0!==n&&nr(e,n,0),0!==o&&0===i&&0!==e.tag&&(e.suspendedLanes|=o&~(a&~r))}(e,t,l|=ui,n,i,o),hf=null,(335544064&t)===t?(mf=function(e){var r=e.transitionTypes;return e.transitionTypes=null,r}(e),n=10262):(mf=null,n=10256),r.subtreeFlags&n||r.flags&n?(e.callbackNode=null,e.callbackPriority=0,Oe(qe,(function(){return Zf(),null}))):(e.callbackNode=null,e.callbackPriority=0),ws=!1,n=!!(13878&r.flags),13878&r.subtreeFlags||n){n=W.T,W.T=null,i=G.p,G.p=2,o=Fc,Fc|=4;try{!function(e,r,t){if(Ld=xm,Pn(e=Dn(e=e.containerInfo))){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else{var i=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(i&&0!==i.rangeCount){n=i.anchorNode;var o=i.anchorOffset,a=i.focusNode;i=i.focusOffset;var l=0,u=-1,s=-1,c=0,f=0,d=e,h=null;e:for(;;){for(var m;d!==n||0!==o&&3!==d.nodeType||(u=l+o),d!==a||0!==i&&3!==d.nodeType||(s=l+i),3===d.nodeType&&(l+=d.nodeValue.length),null!==(m=d.firstChild);)h=d,d=m;for(;;){if(d===e)break e;if(h===n&&++c===o&&(u=l),h===a&&++f===i&&(s=l),null!==(m=d.nextSibling))break;h=(d=h).parentNode}d=m}n=-1===u||-1===s?null:{start:u,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(Bd={focusedElem:e,selectionRange:n},xm=!1,Vs=r,r=(t=(335544064&t)===t)?9270:1024;null!==Vs;){if(e=Vs,t&&null!==(n=e.deletions))for(o=0;o<n.length;o++)t&&Ds(n[o]);if(null===e.alternate&&2&e.flags)t&&$s(e),Zs(t);else{if(22===e.tag){if(n=e.alternate,null!==e.memoizedState){null!==n&&null===n.memoizedState&&t&&Ds(n),Zs(t);continue}if(null!==n&&null!==n.memoizedState){t&&$s(e),Zs(t);continue}}n=e.child,e.subtreeFlags&r&&null!==n?(n.return=e,Vs=n):(t&&Ps(e),Zs(t))}}ks=null}(e,r,t)}finally{Fc=o,G.p=i,W.T=n}}of=1,ws?df=function(e,r,t,n,i,o,a,l,u){var s=9===r.nodeType?r:r.ownerDocument;try{var c=s.startViewTransition({update:function(){var r=s.defaultView,t=r.navigation&&r.navigation.transition,a=s.fonts.status;n();var l=[];if("loaded"===a&&"loading"===s.fonts.status&&l.push(s.fonts.ready),a=l.length,null!==e)for(var u=e.suspenseyImages,c=0,f=0;f<u.length;f++){var d=u[f];if(!d.complete){var h=d.getBoundingClientRect();if(0<h.bottom&&0<h.right&&h.top<r.innerHeight&&h.left<r.innerWidth){if((c+=um(d))>cm){l.length=a;break}d=new Promise(uh.bind(d)),l.push(d)}}}return 0<l.length?(r=Promise.race([Promise.all(l),new Promise((function(e){return setTimeout(e,500)}))]).then(i,i),(t?Promise.allSettled([t.finished,r]):r).then(o,o)):(i(),t?t.finished.then(o,o):void o())},types:t});s.__reactViewTransition=c;var f=[];return c.ready.then((function(){for(var e=s.documentElement.getAnimations({subtree:!0}),r=0;r<e.length;r++){var t=e[r],n=t.effect,i=n.pseudoElement;if(null!=i&&i.startsWith("::view-transition")){f.push(t),t=n.getKeyframes();for(var o=i=void 0,l=!0,u=0;u<t.length;u++){var c=t[u],d=c.width;if(void 0===i)i=d;else if(i!==d){l=!1;break}if(d=c.height,void 0===o)o=d;else if(o!==d){l=!1;break}delete c.width,delete c.height,"none"===c.transform&&delete c.transform}l&&void 0!==i&&void 0!==o&&(n.setKeyframes(t),(l=getComputedStyle(n.target,n.pseudoElement)).width!==i||l.height!==o)&&((l=t[0]).width=i,l.height=o,(l=t[t.length-1]).width=i,l.height=o,n.setKeyframes(t))}}a()}),(function(e){s.__reactViewTransition===c&&(s.__reactViewTransition=null);try{"object"==typeof e&&null!==e&&"InvalidStateError"===e.name&&("View transition was skipped because document visibility state is hidden."!==e.message&&"Skipping view transition because document visibility state has become hidden."!==e.message&&"Skipping view transition because viewport size changed."!==e.message&&"Transition was aborted because of invalid state"!==e.message||(e=null)),null!==e&&u(e)}finally{n(),i(),a()}})),c.finished.finally((function(){for(var e=0;e<f.length;e++)f[e].cancel();s.__reactViewTransition===c&&(s.__reactViewTransition=null),l()})),c}catch(e){return n(),i(),a(),null}}(a,e.containerInfo,mf,Vf,Hf,Bf,Wf,Zf,Lf):(Vf(),Hf(),Wf())}(e,r,t,l,u,s,d)}}function Lf(e){0!==of&&(0,af.onRecoverableError)(e,{componentStack:null})}function Bf(){3===of&&(of=0,mc(lf,af),of=4)}function Vf(){if(1===of){of=0;var e=af,r=lf,t=uf,n=!!(13878&r.flags);if(13878&r.subtreeFlags||n){n=W.T,W.T=null;var i=G.p;G.p=2;var o=Fc;Fc|=4;try{Ws=Gs=!1,cc(r,e,t),t=Bd;var a=Dn(e.containerInfo),l=t.focusedElem,u=t.selectionRange;if(a!==l&&l&&l.ownerDocument&&In(l.ownerDocument.documentElement,l)){if(null!==u&&Pn(l)){var s=u.start,c=u.end;if(void 0===c&&(c=s),"selectionStart"in l)l.selectionStart=s,l.selectionEnd=Math.min(c,l.value.length);else{var f=l.ownerDocument||document,d=f&&f.defaultView||window;if(d.getSelection){var h=d.getSelection(),m=l.textContent.length,p=Math.min(u.start,m),v=void 0===u.end?p:Math.min(u.end,m);!h.extend&&p>v&&(a=v,v=p,p=a);var y=_n(l,p),b=_n(l,v);if(y&&b&&(1!==h.rangeCount||h.anchorNode!==y.node||h.anchorOffset!==y.offset||h.focusNode!==b.node||h.focusOffset!==b.offset)){var g=f.createRange();g.setStart(y.node,y.offset),h.removeAllRanges(),p>v?(h.addRange(g),h.extend(b.node,b.offset)):(g.setEnd(b.node,b.offset),h.addRange(g))}}}}for(f=[],h=l;h=h.parentNode;)1===h.nodeType&&f.push({element:h,left:h.scrollLeft,top:h.scrollTop});for("function"==typeof l.focus&&l.focus(),l=0;l<f.length;l++){var w=f[l];w.element.scrollLeft=w.left,w.element.scrollTop=w.top}}xm=!!Ld,Bd=Ld=null}finally{Fc=o,G.p=i,W.T=n}}e.current=r,of=2}}function Hf(){if(2===of){of=0;var e=af,r=lf,t=!!(8772&r.flags);if(8772&r.subtreeFlags||t){t=W.T,W.T=null;var n=G.p;G.p=2;var i=Fc;Fc|=4;try{Js(e,r.alternate,r)}finally{Fc=i,G.p=n,W.T=t}}of=3}}function Wf(){if(4===of||3===of){of=0;var e=df;df=null,_e();var r=af,t=lf,n=uf,i=ff,o=(335544064&n)===n?10262:10256;if(t.subtreeFlags&o||t.flags&o?of=5:(of=0,lf=af=null,Gf(r,r.pendingLanes)),0===(o=r.pendingLanes)&&(nf=null),lr(n),t=t.stateNode,Ue&&"function"==typeof Ue.onCommitFiberRoot)try{Ue.onCommitFiberRoot(ze,t,void 0,!(128&~t.current.flags))}catch(e){}if(null!==i){t=W.T,o=G.p,G.p=2,W.T=null;try{for(var a=r.onRecoverableError,l=0;l<i.length;l++){var u=i[l];a(u.value,{componentStack:u.stack})}}finally{W.T=t,G.p=o}}if(a=mf,mf=null,null!==(i=hf)&&(hf=null,null===a&&(a=[]),null!==e))for(u=0;u<i.length;u++)void 0!==(t=(0,i[u])(a))&&e.finished.finally(t);3&uf&&Kf(),sd(r),o=r.pendingLanes,261930&n&&42&o?r===vf?pf++:(pf=0,vf=r):(pf=0,vf=null),cd(0)}}function Gf(e,r){0==(e.pooledCacheLanes&=r)&&null!=(r=e.pooledCache)&&(e.pooledCache=null,wo(r))}function Kf(){return null!==df&&(df.skipTransition(),df=null),Vf(),Hf(),Wf(),Zf()}function Zf(){if(5!==of)return!1;var e=af,r=sf;sf=0;var t=lr(uf),i=W.T,o=G.p;try{G.p=32>t?32:t,W.T=null,t=cf,cf=null;var a=af,l=uf;if(of=0,lf=af=null,uf=0,6&Fc)throw Error(n(331));var u=Fc;if(Fc|=4,Cc(a.current),kc(a,a.current,l,t),Fc=u,cd(0),Ue&&"function"==typeof Ue.onPostCommitFiberRoot)try{Ue.onPostCommitFiberRoot(ze,a)}catch(e){}return!0}finally{G.p=o,W.T=i,Gf(e,r)}}function Jf(e,r,t){r=Oi(t,r),null!==(e=ra(e,r=du(e.stateNode,r,2),2))&&(tr(e,2),sd(e))}function Yf(e,r,t){if(3===e.tag)Jf(e,e,t);else for(;null!==r;){if(3===r.tag){Jf(r,e,t);break}if(1===r.tag){var n=r.stateNode;if("function"==typeof r.type.getDerivedStateFromError||"function"==typeof n.componentDidCatch&&(null===nf||!nf.has(n))){e=Oi(t,e),null!==(n=ra(r,t=hu(2),2))&&(mu(t,n,r,e),tr(n,2),sd(n));break}}r=r.return}}function Xf(e,r,t){var n=e.pingCache;if(null===n){n=e.pingCache=new Pc;var i=new Set;n.set(r,i)}else void 0===(i=n.get(r))&&(i=new Set,n.set(r,i));i.has(t)||(Lc=!0,i.add(t),e=Qf.bind(null,e,r,t),r.then(e,e))}function Qf(e,r,t){var n=e.pingCache;null!==n&&n.delete(r),e.pingedLanes|=e.suspendedLanes&t,e.warmLanes&=~t,qc===e&&(Mc&t)===t&&(4===Vc||3===Vc&&(62914560&Mc)===Mc&&300>Ie()-Qc?2&Fc?Gc|=t:Of(e,0):Gc|=t,Zc===Mc&&(Zc=0)),sd(e)}function ed(e,r){0===r&&(r=er()),null!==(e=di(e,r))&&(tr(e,r),sd(e))}function rd(e){var r=e.memoizedState,t=0;null!==r&&(t=r.retryLane),ed(e,t)}function td(e,r){var t=0;switch(e.tag){case 31:case 13:var i=e.stateNode,o=e.memoizedState;null!==o&&(t=o.retryLane);break;case 19:i=e.stateNode;break;case 22:i=e.stateNode._retryCache;break;default:throw Error(n(314))}null!==i&&i.delete(r),ed(e,t)}var nd=null,id=null,od=!1,ad=!1,ld=!1,ud=0;function sd(e){e!==id&&null===e.next&&(null===id?nd=id=e:id=id.next=e),ad=!0,od||(od=!0,eh((function(){6&Fc?Oe(Pe,fd):dd()})))}function cd(e){if(!ld&&ad){ld=!0;do{for(var r=!1,t=nd;null!==t;){if(0!==e){var n=t.pendingLanes;if(0===n)var i=0;else{var o=t.suspendedLanes,a=t.pingedLanes;i=(1<<31-Be(42|e)+1)-1,i=201326741&(i&=n&~(o&~a))?201326741&i|1:i?2|i:0}0!==i&&(r=!0,pd(t,i))}else i=Mc,!(3&(i=Je(t,t===qc?i:0,null!==t.cancelPendingCommit||-1!==t.timeoutHandle)))||Ye(t,i)||(r=!0,pd(t,i));t=t.next}}while(r);ld=!1}}function fd(){dd()}function dd(){ad=od=!1;var e,r=0;0!==ud&&((e=window.event)&&"popstate"===e.type?e!==Zd&&(Zd=e,1):(Zd=null,0))&&(r=ud);for(var t=Ie(),n=null,i=nd;null!==i;){var o=i.next,a=hd(i,t);0===a?(i.next=null,null===n?nd=o:n.next=o,null===o&&(id=n)):(n=i,(0!==r||3&a)&&(ad=!0)),i=o}0!==of&&5!==of||cd(r),0!==ud&&(ud=0)}function hd(e,r){for(var t=e.suspendedLanes,n=e.pingedLanes,i=e.expirationTimes,o=-62914561&e.pendingLanes;0<o;){var a=31-Be(o),l=1<<a,u=i[a];-1===u?l&t&&!(l&n)||(i[a]=Qe(l,r)):u<=r&&(e.expiredLanes|=l),o&=~l}if(t=Mc,t=Je(e,e===(r=qc)?t:0,null!==e.cancelPendingCommit||-1!==e.timeoutHandle),n=e.callbackNode,0===t||e===r&&(2===Nc||9===Nc)||null!==e.cancelPendingCommit)return null!==n&&null!==n&&Ae(n),e.callbackNode=null,e.callbackPriority=0;if(!(3&t)||Ye(e,t)){if((r=t&-t)===e.callbackPriority)return r;switch(null!==n&&Ae(n),lr(t)){case 2:case 8:t=Fe;break;case 32:default:t=qe;break;case 268435456:t=Me}return n=md.bind(null,e),t=Oe(t,n),e.callbackPriority=r,e.callbackNode=t,r}return null!==n&&null!==n&&Ae(n),e.callbackPriority=2,e.callbackNode=null,2}function md(e,r){if(0!==of&&5!==of)return e.callbackNode=null,e.callbackPriority=0,null;var t=e.callbackNode;if(Kf()&&e.callbackNode!==t)return null;var n=Mc;return 0===(n=Je(e,e===qc?n:0,null!==e.cancelPendingCommit||-1!==e.timeoutHandle))?null:(kf(e,n,r),hd(e,Ie()),null!=e.callbackNode&&e.callbackNode===t?md.bind(null,e):null)}function pd(e,r){if(Kf())return null;kf(e,r,!0)}function vd(){if(0===ud){var e=jo;0===e&&(e=We,!(261888&(We<<=1))&&(We=256)),ud=e}return ud}function yd(e){return null==e||"symbol"==typeof e||"boolean"==typeof e?null:"function"==typeof e?e:it(e)}for(var bd=0;bd<Qn.length;bd++){var gd=Qn[bd];ei(gd.toLowerCase(),"on"+(gd[0].toUpperCase()+gd.slice(1)))}ei(Hn,"onAnimationEnd"),ei(Wn,"onAnimationIteration"),ei(Gn,"onAnimationStart"),ei("dblclick","onDoubleClick"),ei("focusin","onFocus"),ei("focusout","onBlur"),ei(Kn,"onTransitionRun"),ei(Zn,"onTransitionStart"),ei(Jn,"onTransitionCancel"),ei(Yn,"onTransitionEnd"),_r("onMouseEnter",["mouseout","mouseover"]),_r("onMouseLeave",["mouseout","mouseover"]),_r("onPointerEnter",["pointerout","pointerover"]),_r("onPointerLeave",["pointerout","pointerover"]),Cr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Cr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Cr("onBeforeInput",["compositionend","keypress","textInput","paste"]),Cr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Cr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Cr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var wd="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(" "),kd=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(wd));function $d(e,r){r=!!(4&r);for(var t=0;t<e.length;t++){var n=e[t],i=n.event;n=n.listeners;e:{var o=void 0;if(r)for(var a=n.length-1;0<=a;a--){var l=n[a],u=l.instance,s=l.currentTarget;if(l=l.listener,u!==o&&i.isPropagationStopped())break e;o=l,i.currentTarget=s;try{o(i)}catch(e){oi(e)}i.currentTarget=null,o=u}else for(a=0;a<n.length;a++){if(u=(l=n[a]).instance,s=l.currentTarget,l=l.listener,u!==o&&i.isPropagationStopped())break e;o=l,i.currentTarget=s;try{o(i)}catch(e){oi(e)}i.currentTarget=null,o=u}}}}function Sd(e,r){var t=r[mr];void 0===t&&(t=r[mr]=new Set);var n=e+"__bubble";t.has(n)||(Od(r,e,2,!1),t.add(n))}function Ed(e,r,t){var n=0;r&&(n|=4),Od(t,e,n,r)}var jd="_reactListening"+Math.random().toString(36).slice(2);function xd(e){if(!e[jd]){e[jd]=!0,Or.forEach((function(r){"selectionchange"!==r&&(kd.has(r)||Ed(r,!1,e),Ed(r,!0,e))}));var r=9===e.nodeType?e:e.ownerDocument;null===r||r[jd]||(r[jd]=!0,Ed("selectionchange",!1,r))}}function Od(e,r,t,n){switch(Pm(r)){case 2:var i=Om;break;case 8:i=Am;break;default:i=Cm}t=i.bind(null,r,t,e),i=void 0,!pt||"touchstart"!==r&&"touchmove"!==r&&"wheel"!==r||(i=!0),e.addEventListener(r,t,n?void 0===i||{capture:!0,passive:i}:void 0!==i&&{passive:i})}function Ad(e,r,t,n,i){var a=n;if(!(1&r||2&r||null===n))e:for(;;){if(null===n)return;var l=n.tag;if(3===l||4===l){var u=n.stateNode.containerInfo;if(u===i)break;if(4===l)for(l=n.return;null!==l;){var s=l.tag;if((3===s||4===s)&&l.stateNode.containerInfo===i)return;l=l.return}for(;null!==u;){if(null===(l=kr(u)))return;if(5===(s=l.tag)||6===s||26===s||27===s){n=a=l;continue e}u=u.parentNode}}n=n.return}dt((function(){var n=a,i=lt(t),l=[];e:{var u=Xn.get(e);if(void 0!==u){var s=Ct,c=e;switch(e){case"keypress":if(0===kt(t))break e;case"keydown":case"keyup":s=Vt;break;case"focusin":c="focus",s=qt;break;case"focusout":c="blur",s=qt;break;case"beforeblur":case"afterblur":s=qt;break;case"click":if(2===t.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":s=Pt;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":s=Ft;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":s=Gt;break;case Hn:case Wn:case Gn:s=Tt;break;case Yn:s=Kt;break;case"scroll":case"scrollend":s=It;break;case"wheel":s=Zt;break;case"copy":case"cut":case"paste":s=Mt;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":s=Ht;break;case"submit":s=Wt;break;case"toggle":case"beforetoggle":s=Jt}var f=!!(4&r),d=!f&&("scroll"===e||"scrollend"===e),h=f?null!==u?u+"Capture":null:u;f=[];for(var m,p=n;null!==p;){var v=p;if(m=v.stateNode,5!==(v=v.tag)&&26!==v&&27!==v||null===m||null===h||null!=(v=ht(p,h))&&f.push(Cd(p,v,m)),d)break;p=p.return}0<f.length&&(u=new s(u,c,null,t,i),l.push({event:u,listeners:f}))}}if(!(7&r)){if(u="mouseout"===e||"pointerout"===e,(s="mouseover"===e||"pointerover"===e)&&t!==at&&(c=t.relatedTarget||t.fromElement)&&(kr(c)||c[hr])||(u||s)&&(c=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,u?(u=n,null!==(s=(s=t.relatedTarget||t.toElement)?kr(s):null)&&(d=o(s),f=s.tag,s!==d||5!==f&&27!==f&&6!==f)&&(s=null)):(u=null,s=n),u!==s&&(f=Pt,v="onMouseLeave",h="onMouseEnter",p="mouse","pointerout"!==e&&"pointerover"!==e||(f=Ht,v="onPointerLeave",h="onPointerEnter",p="pointer"),d=null==u?c:Sr(u),m=null==s?c:Sr(s),(c=new f(v,p+"leave",u,t,i)).target=d,c.relatedTarget=m,v=null,kr(i)===n&&((f=new f(h,p+"enter",s,t,i)).target=m,f.relatedTarget=d,v=f),d=v,f=u&&s?k(u,s,Id):null,null!==u&&Dd(l,c,u,f,!1),null!==s&&null!==d&&Dd(l,d,s,f,!0))),"select"===(s=(u=n?Sr(n):window).nodeName&&u.nodeName.toLowerCase())||"input"===s&&"file"===u.type)var y=pn;else if(sn(u))if(vn)y=jn;else{y=Sn;var b=$n}else!(s=u.nodeName)||"input"!==s.toLowerCase()||"checkbox"!==u.type&&"radio"!==u.type?n&&rt(n.elementType)&&(y=pn):y=En;switch(y&&(y=y(e,n))?cn(l,y,t,i):b&&b(e,u,n),b=n?Sr(n):window,e){case"focusin":(sn(b)||"true"===b.contentEditable)&&(qn=b,Tn=n,Mn=null);break;case"focusout":Mn=Tn=qn=null;break;case"mousedown":Nn=!0;break;case"contextmenu":case"mouseup":case"dragend":Nn=!1,Rn(l,t,i);break;case"selectionchange":if(Fn)break;case"keydown":case"keyup":Rn(l,t,i)}var g;if(Xt)e:{switch(e){case"compositionstart":var w="onCompositionStart";break e;case"compositionend":w="onCompositionEnd";break e;case"compositionupdate":w="onCompositionUpdate";break e}w=void 0}else ln?on(e,t)&&(w="onCompositionEnd"):"keydown"===e&&229===t.keyCode&&(w="onCompositionStart");w&&(rn&&"ko"!==t.locale&&(ln||"onCompositionStart"!==w?"onCompositionEnd"===w&&ln&&(g=wt()):(bt="value"in(yt=i)?yt.value:yt.textContent,ln=!0)),0<(b=_d(n,w)).length&&(w=new Nt(w,e,null,t,i),l.push({event:w,listeners:b}),(g||null!==(g=an(t)))&&(w.data=g))),(g=en?function(e,r){switch(e){case"compositionend":return an(r);case"keypress":return 32!==r.which?null:(nn=!0,tn);case"textInput":return(e=r.data)===tn&&nn?null:e;default:return null}}(e,t):function(e,r){if(ln)return"compositionend"===e||!Xt&&on(e,r)?(e=wt(),gt=bt=yt=null,ln=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(r.ctrlKey||r.altKey||r.metaKey)||r.ctrlKey&&r.altKey){if(r.char&&1<r.char.length)return r.char;if(r.which)return String.fromCharCode(r.which)}return null;case"compositionend":return rn&&"ko"!==r.locale?null:r.data}}(e,t))&&0<(w=_d(n,"onBeforeInput")).length&&(b=new Nt("onBeforeInput","beforeinput",null,t,i),l.push({event:b,listeners:w}),b.data=g),function(e,r,t,n,i){if("submit"===r&&t&&t.stateNode===i){var o=yd((i[dr]||null).action),a=n.submitter;a&&null!==(r=(r=a[dr]||null)?yd(r.formAction):a.getAttribute("formAction"))&&(o=r,a=null);var l=new Ct("action","action",null,n,i);e.push({event:l,listeners:[{instance:null,listener:function(){if(n.defaultPrevented){if(0!==ud){var e=new FormData(i,a);Nl(t,{pending:!0,data:e,method:i.method,action:o},null,e)}}else"function"==typeof o&&(l.preventDefault(),e=new FormData(i,a),Nl(t,{pending:!0,data:e,method:i.method,action:o},o,e))},currentTarget:i}]})}}(l,e,n,t,i)}$d(l,r)}))}function Cd(e,r,t){return{instance:e,listener:r,currentTarget:t}}function _d(e,r){for(var t=r+"Capture",n=[];null!==e;){var i=e,o=i.stateNode;if(5!==(i=i.tag)&&26!==i&&27!==i||null===o||(null!=(i=ht(e,t))&&n.unshift(Cd(e,i,o)),null!=(i=ht(e,r))&&n.push(Cd(e,i,o))),3===e.tag)return n;e=e.return}return[]}function Id(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag&&27!==e.tag);return e||null}function Dd(e,r,t,n,i){for(var o=r._reactName,a=[];null!==t&&t!==n;){var l=t,u=l.alternate,s=l.stateNode;if(l=l.tag,null!==u&&u===n)break;5!==l&&26!==l&&27!==l||null===s||(u=s,i?null!=(s=ht(t,o))&&a.unshift(Cd(t,s,u)):i||null!=(s=ht(t,o))&&a.push(Cd(t,s,u))),t=t.return}0!==a.length&&e.push({event:r,listeners:a})}var Pd=/\r\n?/g,Fd=/\u0000|\uFFFD/g;function qd(e){return("string"==typeof e?e:""+e).replace(Pd,"\n").replace(Fd,"")}function Td(e,r){return r=qd(r),qd(e)===r}function Md(e,r,t,i,o,a){switch(t){case"children":if("string"==typeof i)"body"===r||"textarea"===r&&""===i||Yr(e,i);else{if("number"!=typeof i&&"bigint"!=typeof i)return;"body"!==r&&Yr(e,""+i)}break;case"className":Mr(e,"class",i);break;case"tabIndex":Mr(e,"tabindex",i);break;case"dir":case"role":case"viewBox":case"width":case"height":Mr(e,t,i);break;case"style":return void et(e,i,a);case"data":if("object"!==r){Mr(e,"data",i);break}case"src":case"href":if(""===i&&("a"!==r||"href"!==t)){e.removeAttribute(t);break}if(null==i||"function"==typeof i||"symbol"==typeof i||"boolean"==typeof i){e.removeAttribute(t);break}i=it(i),e.setAttribute(t,i);break;case"action":case"formAction":if("function"==typeof i){e.setAttribute(t,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}if("function"==typeof a&&("formAction"===t?("input"!==r&&Md(e,r,"name",o.name,o,null),Md(e,r,"formEncType",o.formEncType,o,null),Md(e,r,"formMethod",o.formMethod,o,null),Md(e,r,"formTarget",o.formTarget,o,null)):(Md(e,r,"encType",o.encType,o,null),Md(e,r,"method",o.method,o,null),Md(e,r,"target",o.target,o,null))),null==i||"symbol"==typeof i||"boolean"==typeof i){e.removeAttribute(t);break}i=it(i),e.setAttribute(t,i);break;case"onClick":return void(null!=i&&(e.onclick=ot));case"onScroll":return void(null!=i&&Sd("scroll",e));case"onScrollEnd":return void(null!=i&&Sd("scrollend",e));case"dangerouslySetInnerHTML":if(null!=i){if("object"!=typeof i||!("__html"in i))throw Error(n(61));if(null!=(t=i.__html)){if(null!=o.children)throw Error(n(60));(null!=a?a.__html:void 0)!==t&&(e.innerHTML=t)}}break;case"multiple":e.multiple=i&&"function"!=typeof i&&"symbol"!=typeof i;break;case"muted":e.muted=i&&"function"!=typeof i&&"symbol"!=typeof i;break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":case"autoFocus":break;case"xlinkHref":if(null==i||"function"==typeof i||"boolean"==typeof i||"symbol"==typeof i){e.removeAttribute("xlink:href");break}t=it(i),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",t);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":null!=i&&"function"!=typeof i&&"symbol"!=typeof i?e.setAttribute(t,i):e.removeAttribute(t);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"credentialless":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":i&&"function"!=typeof i&&"symbol"!=typeof i?e.setAttribute(t,""):e.removeAttribute(t);break;case"capture":case"download":!0===i?e.setAttribute(t,""):!1!==i&&null!=i&&"function"!=typeof i&&"symbol"!=typeof i?e.setAttribute(t,i):e.removeAttribute(t);break;case"cols":case"rows":case"size":case"span":null!=i&&"function"!=typeof i&&"symbol"!=typeof i&&!isNaN(i)&&1<=i?e.setAttribute(t,i):e.removeAttribute(t);break;case"rowSpan":case"start":null==i||"function"==typeof i||"symbol"==typeof i||isNaN(i)?e.removeAttribute(t):e.setAttribute(t,i);break;case"popover":Sd("beforetoggle",e),Sd("toggle",e),Tr(e,"popover",i);break;case"xlinkActuate":Nr(e,"http://www.w3.org/1999/xlink","xlink:actuate",i);break;case"xlinkArcrole":Nr(e,"http://www.w3.org/1999/xlink","xlink:arcrole",i);break;case"xlinkRole":Nr(e,"http://www.w3.org/1999/xlink","xlink:role",i);break;case"xlinkShow":Nr(e,"http://www.w3.org/1999/xlink","xlink:show",i);break;case"xlinkTitle":Nr(e,"http://www.w3.org/1999/xlink","xlink:title",i);break;case"xlinkType":Nr(e,"http://www.w3.org/1999/xlink","xlink:type",i);break;case"xmlBase":Nr(e,"http://www.w3.org/XML/1998/namespace","xml:base",i);break;case"xmlLang":Nr(e,"http://www.w3.org/XML/1998/namespace","xml:lang",i);break;case"xmlSpace":Nr(e,"http://www.w3.org/XML/1998/namespace","xml:space",i);break;case"is":Tr(e,"is",i);break;case"innerText":case"textContent":return;default:if(2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1]))return;Tr(e,t=tt.get(t)||t,i)}Fr=!0}function Nd(e,r,t,i,o,a){switch(t){case"style":return void et(e,i,a);case"dangerouslySetInnerHTML":if(null!=i){if("object"!=typeof i||!("__html"in i))throw Error(n(61));if(null!=(t=i.__html)){if(null!=o.children)throw Error(n(60));(null!=a?a.__html:void 0)!==t&&(e.innerHTML=t)}}break;case"children":if("string"==typeof i)Yr(e,i);else{if("number"!=typeof i&&"bigint"!=typeof i)return;Yr(e,""+i)}break;case"onScroll":return void(null!=i&&Sd("scroll",e));case"onScrollEnd":return void(null!=i&&Sd("scrollend",e));case"onClick":return void(null!=i&&(e.onclick=ot));case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":case"innerText":case"textContent":return;default:return void(Ar.hasOwnProperty(t)||("o"!==t[0]||"n"!==t[1]||(o=t.endsWith("Capture"),a=t.slice(2,o?t.length-7:void 0),"function"==typeof(r=null!=(r=e[dr]||null)?r[t]:null)&&e.removeEventListener(a,r,o),"function"!=typeof i)?(Fr=!0,t in e?e[t]=i:!0===i?e.setAttribute(t,""):Tr(e,t,i)):("function"!=typeof r&&null!==r&&(t in e?e[t]=null:e.hasAttribute(t)&&e.removeAttribute(t)),e.addEventListener(a,i,o))))}Fr=!0}function Rd(e,r,t){switch(r){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Sd("error",e),Sd("load",e);var i,o=!1,a=!1;for(i in t)if(t.hasOwnProperty(i)){var l=t[i];if(null!=l)switch(i){case"src":o=!0;break;case"srcSet":a=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(n(137,r));default:Md(e,r,i,l,t,null)}}return a&&Md(e,r,"srcSet",t.srcSet,t,null),void(o&&Md(e,r,"src",t.src,t,null));case"input":Sd("invalid",e);var u=i=l=a=null,s=null,c=null;for(o in t)if(t.hasOwnProperty(o)){var f=t[o];if(null!=f)switch(o){case"name":a=f;break;case"type":l=f;break;case"checked":s=f;break;case"defaultChecked":c=f;break;case"value":i=f;break;case"defaultValue":u=f;break;case"children":case"dangerouslySetInnerHTML":if(null!=f)throw Error(n(137,r));break;default:Md(e,r,o,f,t,null)}}return void Wr(e,i,u,s,c,l,a,!1);case"select":for(a in Sd("invalid",e),o=l=i=null,t)if(t.hasOwnProperty(a)&&null!=(u=t[a]))switch(a){case"value":i=u;break;case"defaultValue":l=u;break;case"multiple":o=u;default:Md(e,r,a,u,t,null)}return r=i,t=l,e.multiple=!!o,void(null!=r?Kr(e,!!o,r,!1):null!=t&&Kr(e,!!o,t,!0));case"textarea":for(l in Sd("invalid",e),i=a=o=null,t)if(t.hasOwnProperty(l)&&null!=(u=t[l]))switch(l){case"value":o=u;break;case"defaultValue":a=u;break;case"children":i=u;break;case"dangerouslySetInnerHTML":if(null!=u)throw Error(n(91));break;default:Md(e,r,l,u,t,null)}return void Jr(e,o,a,i);case"option":for(s in t)t.hasOwnProperty(s)&&null!=(o=t[s])&&("selected"===s?e.selected=o&&"function"!=typeof o&&"symbol"!=typeof o:Md(e,r,s,o,t,null));return;case"dialog":Sd("beforetoggle",e),Sd("toggle",e),Sd("cancel",e),Sd("close",e);break;case"iframe":case"object":Sd("load",e);break;case"video":case"audio":for(o=0;o<wd.length;o++)Sd(wd[o],e);break;case"image":Sd("error",e),Sd("load",e);break;case"details":Sd("toggle",e);break;case"embed":case"source":case"link":Sd("error",e),Sd("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(c in t)if(t.hasOwnProperty(c)&&null!=(o=t[c]))switch(c){case"children":case"dangerouslySetInnerHTML":throw Error(n(137,r));default:Md(e,r,c,o,t,null)}return;default:if(rt(r)){for(f in t)t.hasOwnProperty(f)&&void 0!==(o=t[f])&&Nd(e,r,f,o,t,void 0);return}}for(u in t)t.hasOwnProperty(u)&&null!=(o=t[u])&&Md(e,r,u,o,t,null)}var zd={};function Ud(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}var Ld=null,Bd=null;function Vd(e){return 9===e.nodeType?e:e.ownerDocument}function Hd(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Wd(e,r){if(0===e)switch(r){case"svg":return 1;case"math":return 2;default:return 0}return 1===e&&"foreignObject"===r?0:e}function Gd(e,r,t,n){return(t=Vd(t).createElement(e))[fr]=n,t[dr]=r,Rd(t,e,r),jr(t),t}function Kd(e,r){return"textarea"===e||"noscript"===e||"string"==typeof r.children||"number"==typeof r.children||"bigint"==typeof r.children||"object"==typeof r.dangerouslySetInnerHTML&&null!==r.dangerouslySetInnerHTML&&null!=r.dangerouslySetInnerHTML.__html}var Zd=null,Jd="function"==typeof setTimeout?setTimeout:void 0,Yd="function"==typeof clearTimeout?clearTimeout:void 0,Xd="function"==typeof Promise?Promise:void 0,Qd="function"==typeof requestAnimationFrame?requestAnimationFrame:Jd,eh="function"==typeof queueMicrotask?queueMicrotask:void 0!==Xd?function(e){return Xd.resolve(null).then(e).catch(rh)}:Jd;function rh(e){setTimeout((function(){throw e}))}function th(e){return"head"===e}function nh(e,r){var t=r,n=0;do{var i=t.nextSibling;if(e.removeChild(t),i&&8===i.nodeType)if("/$"===(t=i.data)||"/&"===t){if(0===n)return e.removeChild(i),void Ym(r);n--}else if("$"===t||"$?"===t||"$~"===t||"$!"===t||"&"===t)n++;else if("html"===t)zh(e.ownerDocument.documentElement);else if("head"===t){zh(t=e.ownerDocument.head);for(var o=t.firstChild;o;){var a=o.nextSibling,l=o.nodeName;o[br]||"SCRIPT"===l||"STYLE"===l||"LINK"===l&&"stylesheet"===o.rel.toLowerCase()||t.removeChild(o),o=a}}else"body"===t&&zh(e.ownerDocument.body);t=i}while(t);Ym(r)}function ih(e,r){var t=e;e=0;do{var n=t.nextSibling;if(1===t.nodeType?r?(t._stashedDisplay=t.style.display,t.style.display="none"):(t.style.display=t._stashedDisplay||"",""===t.getAttribute("style")&&t.removeAttribute("style")):3===t.nodeType&&(r?(t._stashedText=t.nodeValue,t.nodeValue=""):t.nodeValue=t._stashedText||""),n&&8===n.nodeType)if("/$"===(t=n.data)){if(0===e)break;e--}else"$"!==t&&"$?"!==t&&"$~"!==t&&"$!"!==t||e++;t=n}while(t)}function oh(e,r,t){if(r=CSS.escape(r)!==r?"r-"+btoa(r).replace(/=/g,""):r,e.style.viewTransitionName=r,null!=t&&(e.style.viewTransitionClass=t),"inline"===(t=getComputedStyle(e)).display){if(1===(r=e.getClientRects()).length)var n=1;else for(var i=n=0;i<r.length;i++){var o=r[i];0<o.width&&0<o.height&&n++}1===n&&((e=e.style).display=1===r.length?"inline-block":"block",e.marginTop="-"+t.paddingTop,e.marginBottom="-"+t.paddingBottom)}}function ah(e,r){e=e.style;var t=null!=(r=r.style)?r.hasOwnProperty("viewTransitionName")?r.viewTransitionName:r.hasOwnProperty("view-transition-name")?r["view-transition-name"]:null:null;e.viewTransitionName=null==t||"boolean"==typeof t?"":(""+t).trim(),t=null!=r?r.hasOwnProperty("viewTransitionClass")?r.viewTransitionClass:r.hasOwnProperty("view-transition-class")?r["view-transition-class"]:null:null,e.viewTransitionClass=null==t||"boolean"==typeof t?"":(""+t).trim(),"inline-block"===e.display&&(null==r?e.display=e.margin="":(e.display=null==(t=r.display)||"boolean"==typeof t?"":t,null!=(t=r.margin)?e.margin=t:(t=r.hasOwnProperty("marginTop")?r.marginTop:r["margin-top"],e.marginTop=null==t||"boolean"==typeof t?"":t,r=r.hasOwnProperty("marginBottom")?r.marginBottom:r["margin-bottom"],e.marginBottom=null==r||"boolean"==typeof r?"":r)))}function lh(e){return r=e.getBoundingClientRect(),t=getComputedStyle(e),n=(n=e).ownerDocument.defaultView,{rect:r,abs:"absolute"===t.position||"fixed"===t.position,clip:"none"!==t.clipPath||"visible"!==t.overflow||"none"!==t.filter||"none"!==t.mask||"none"!==t.mask||"0px"!==t.borderRadius,view:0<=r.bottom&&0<=r.right&&r.top<=n.innerHeight&&r.left<=n.innerWidth};var r,t,n}function uh(e){this.addEventListener("load",e),this.addEventListener("error",e)}function sh(e,r){this._scope=document.documentElement,this._selector="::view-transition-"+e+"("+r+")"}function ch(e){return{name:e,group:new sh("group",e),imagePair:new sh("image-pair",e),old:new sh("old",e),new:new sh("new",e)}}function fh(e){this._fragmentFiber=e,this._observers=this._eventListeners=null}function dh(e,r,t,n){return p(e).addEventListener(r,t,n),!1}function hh(e,r,t,n){return p(e).removeEventListener(r,t,n),!1}function mh(e){return null!=e&&"boolean"!=typeof e&&(!0===e.once||e.signal instanceof AbortSignal)?{capture:e.capture,passive:e.passive}:e}function ph(e){return null==e?"c=0":"boolean"==typeof e?"c="+(e?"1":"0"):"c="+(e.capture?"1":"0")}function vh(e,r,t,n){if(0===e.length)return-1;n=ph(n);for(var i=0;i<e.length;i++){var o=e[i];if(o.type===r&&o.listener===t&&ph(o.optionsOrUseCapture)===n)return i}return-1}function yh(e,r){return 6!==e.tag&&function(e,r){function t(){n=!0}if(e.ownerDocument.activeElement===e)return!0;var n=!1;try{e.ownerDocument.addEventListener("focus",t,!0),(e.focus||HTMLElement.prototype.focus).call(e,r)}finally{e.ownerDocument.removeEventListener("focus",t,!0)}return n}(e=p(e),r)}function bh(e,r){return r.push(e),!1}function gh(e,r){return!(6===e.tag||(e=p(e))!==r&&!e.contains(r)||(r.blur(),0))}function wh(e,r){return 6===e.tag||(e=p(e),r.observe(e)),!1}function kh(e,r){return 6===e.tag||(e=p(e),r.unobserve(e)),!1}sh.prototype.animate=function(e,r){return(r="number"==typeof r?{duration:r}:$({},r)).pseudoElement=this._selector,this._scope.animate(e,r)},sh.prototype.getAnimations=function(){for(var e=this._scope,r=this._selector,t=e.getAnimations({subtree:!0}),n=[],i=0;i<t.length;i++){var o=t[i].effect;null!==o&&o.target===e&&o.pseudoElement===r&&n.push(t[i])}return n},sh.prototype.getComputedStyle=function(){return getComputedStyle(this._scope,this._selector)},fh.prototype.addEventListener=function(e,r,t){var n=null,i=null;if(null==t||"boolean"==typeof t||null===(n=t.signal||null)||!n.aborted){null===this._eventListeners&&(this._eventListeners=[]);var o=this._eventListeners;if(-1===vh(o,e,r,t)){var a=this,l=r;null!=t&&"boolean"!=typeof t&&!0===t.once&&(l=function(n){a.removeEventListener(e,r,t),"function"==typeof r?r.call(this,n):r.handleEvent(n)}),null!==n&&(i=a.removeEventListener.bind(a,e,r,t),n.addEventListener("abort",i,{once:!0}),i=n.removeEventListener.bind(n,"abort",i)),n=mh(t),o.push({type:e,listener:r,optionsOrUseCapture:t,attachedListener:l,cleanup:i}),c(this._fragmentFiber.child,!1,dh,e,l,n)}this._eventListeners=o}},fh.prototype.removeEventListener=function(e,r,t){var n=this._eventListeners;if(null!==n&&-1!==(r=vh(n,e,r,t))){var i=n[r];t=i.attachedListener;var o=i.cleanup;i=mh(i.optionsOrUseCapture),c(this._fragmentFiber.child,!1,hh,e,t,i),n.splice(r,1),null!==o&&o()}},fh.prototype.dispatchEvent=function(e){var r=f(this._fragmentFiber);if(null===r)return!0;r=p(r);var t=this._eventListeners;if(null!==t&&0<t.length||!e.bubbles){var n=9===r.nodeType?r.createComment(""):document.createTextNode("");if(t)for(var i=0;i<t.length;i++){var o=t[i];n.addEventListener(o.type,o.attachedListener,mh(o.optionsOrUseCapture))}if(r.appendChild(n),e=n.dispatchEvent(e),t)for(i=0;i<t.length;i++)n.removeEventListener((o=t[i]).type,o.attachedListener,mh(o.optionsOrUseCapture));return r.removeChild(n),e}return r.dispatchEvent(e)},fh.prototype.focus=function(e){c(this._fragmentFiber.child,!0,yh,e,void 0,void 0)},fh.prototype.focusLast=function(e){var r=[];c(this._fragmentFiber.child,!0,bh,r,void 0,void 0);for(var t=r.length-1;0<=t&&!yh(r[t],e);t--);},fh.prototype.blur=function(){var e=f(this._fragmentFiber);null!==e&&null!==(e=Vd(e=p(e)).activeElement)&&c(this._fragmentFiber.child,!1,gh,e,void 0,void 0)},fh.prototype.observeUsing=function(e){null===this._observers&&(this._observers=new Set),this._observers.add(e),c(this._fragmentFiber.child,!1,wh,e,void 0,void 0)},fh.prototype.unobserveUsing=function(e){var r=this._observers;if(null!==r&&r.has(e)){r.delete(e),c(this._fragmentFiber.child,!1,kh,e,void 0,void 0);for(var t=r=0;t<$h.length;t++){var n=$h[t];n.fragmentInstance===this&&n.observer===e?e.unobserve(n.instance):$h[r++]=n}$h.length=r}};var $h=[],Sh=!1;function Eh(e,r){if(6===e.tag){var t=(e=e.stateNode).ownerDocument.createRange();t.selectNodeContents(e),r.push.apply(r,t.getClientRects())}else e=p(e),r.push.apply(r,e.getClientRects());return!1}function jh(e,r){var t=e.ownerDocument.createRange();t.selectNodeContents(e),e=t.getBoundingClientRect(),window.scrollTo(window.scrollX+e.left,r?window.scrollY+e.top:window.scrollY+e.bottom-window.innerHeight)}function xh(e,r){return Oh(e=p(e),r),!1}function Oh(e,r){null==e.reactFragments&&(e.reactFragments=new Set),e.reactFragments.add(r)}function Ah(e,r){var t=r._eventListeners;if(null!==t)for(var n=0;n<t.length;n++){var i=t[n];e.addEventListener(i.type,i.attachedListener,mh(i.optionsOrUseCapture))}3!==e.nodeType&&(null!==(t=r._observers)&&t.forEach((function(t){for(var n=0,i=0;i<$h.length;i++){var o=$h[i];o.fragmentInstance===r&&o.observer===t&&o.instance===e||($h[n++]=o)}$h.length=n,t.observe(e)})),Oh(e,r))}function Ch(e,r){var t=r._eventListeners;if(null!==t)for(var n=0;n<t.length;n++){var i=t[n];e.removeEventListener(i.type,i.attachedListener,mh(i.optionsOrUseCapture))}3!==e.nodeType&&(null!==(t=r._observers)&&t.forEach((function(t){"string"==typeof t.rootMargin?function(e,r,t){var n;$h.push({fragmentInstance:e,observer:r,instance:t}),Sh||(Sh=!0,n=function(){Sh=!1;var e=$h;$h=[];for(var r=0;r<e.length;r++){var t=e[r];t.observer.unobserve(t.instance)}},Qd((function(){Qd((function(){return n()}))})))}(r,t,e):t.unobserve(e)})),null!=e.reactFragments&&e.reactFragments.delete(r))}function _h(e){var r=e.firstChild;for(r&&10===r.nodeType&&(r=r.nextSibling);r;){var t=r;switch(r=r.nextSibling,t.nodeName){case"HTML":case"HEAD":case"BODY":_h(t),wr(t);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if("stylesheet"===t.rel.toLowerCase())continue}e.removeChild(t)}}function Ih(e,r){for(;8!==e.nodeType;){if((1!==e.nodeType||"INPUT"!==e.nodeName||"hidden"!==e.type)&&!r)return null;if(null===(e=Fh(e.nextSibling)))return null}return e}function Dh(e){return"$?"===e.data||"$~"===e.data}function Ph(e){return"$!"===e.data||"$?"===e.data&&"loading"!==e.ownerDocument.readyState}function Fh(e){for(;null!=e;e=e.nextSibling){var r=e.nodeType;if(1===r||3===r)break;if(8===r){if("$"===(r=e.data)||"$!"===r||"$?"===r||"$~"===r||"&"===r||"F!"===r||"F"===r)break;if("/$"===r||"/&"===r)return null}}return e}fh.prototype.getClientRects=function(){var e=[];return c(this._fragmentFiber.child,!1,Eh,e,void 0,void 0),e},fh.prototype.getRootNode=function(e){var r=f(this._fragmentFiber);return null===r?this:p(r).getRootNode(e)},fh.prototype.compareDocumentPosition=function(e){var r=f(this._fragmentFiber);if(null===r)return Node.DOCUMENT_POSITION_DISCONNECTED;var t=[];c(this._fragmentFiber.child,!1,bh,t,void 0,void 0);var n=p(r);if(0===t.length){if(t=n,d(this._fragmentFiber)){e:{for(r=this._fragmentFiber.return;null!==r;){if(4===r.tag){r=r.stateNode.containerInfo;break e}if(3===r.tag||5===r.tag||27===r.tag)break;r=r.return}r=null}null!=r&&(t=r)}r=this._fragmentFiber;var i=n=t.compareDocumentPosition(e);return t===e?i=Node.DOCUMENT_POSITION_CONTAINS:n&Node.DOCUMENT_POSITION_CONTAINED_BY&&(i=null===(t=h(r)[1])?Node.DOCUMENT_POSITION_PRECEDING:0===(e=p(t).compareDocumentPosition(e))||e&Node.DOCUMENT_POSITION_FOLLOWING?Node.DOCUMENT_POSITION_FOLLOWING:Node.DOCUMENT_POSITION_PRECEDING),i|Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC}r=p(t[0]),i=p(t[t.length-1]);var o=d(this._fragmentFiber)?r.parentElement:n;if(null==o)return Node.DOCUMENT_POSITION_DISCONNECTED;n=o.compareDocumentPosition(r)&Node.DOCUMENT_POSITION_CONTAINED_BY,o=o.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY;var a=r.compareDocumentPosition(e),l=i.compareDocumentPosition(e),u=a&Node.DOCUMENT_POSITION_CONTAINED_BY||l&Node.DOCUMENT_POSITION_CONTAINED_BY;return l=n&&o&&a&Node.DOCUMENT_POSITION_FOLLOWING&&l&Node.DOCUMENT_POSITION_PRECEDING,(r=n&&r===e||o&&i===e||u||l?Node.DOCUMENT_POSITION_CONTAINED_BY:!n&&r===e||!o&&i===e?Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:a)&Node.DOCUMENT_POSITION_DISCONNECTED||r&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC||function(e,r,t,n,i){var o=kr(i);if(e&Node.DOCUMENT_POSITION_CONTAINED_BY){if(t=!!o)e:{for(;null!==o;){if(7===o.tag&&(o===r||o.alternate===r)){t=!0;break e}o=o.return}t=!1}return t}if(e&Node.DOCUMENT_POSITION_CONTAINS){if(null===o)return i===(o=i.ownerDocument)||i===o.documentElement||i===o.body;e:{for(o=r,r=f(r);null!==o;){if(!(5!==o.tag&&3!==o.tag&&27!==o.tag||o!==r&&o.alternate!==r)){o=!0;break e}o=o.return}o=!1}return o}return e&Node.DOCUMENT_POSITION_PRECEDING?((r=!!o)&&!(r=o===t)&&(null===(r=k(t,o,w))?r=!1:(c(r,!0,b,o,t),o=v,v=null,r=null!==o)),r):!!(e&Node.DOCUMENT_POSITION_FOLLOWING)&&((r=!!o)&&!(r=o===n)&&(null===(r=k(n,o,w))?r=!1:(c(r,!0,g,o,n),o=v,y=v=null,r=null!==o)),r)}(r,this._fragmentFiber,t[0],t[t.length-1],e)?r:Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC},fh.prototype.scrollIntoView=function(e){if("object"==typeof e)throw Error(n(566));var r=[];c(this._fragmentFiber.child,!1,bh,r,void 0,void 0);var t=!1!==e;if(0===r.length){var i=h(this._fragmentFiber);if(null===(i=t?i[1]||i[0]||f(this._fragmentFiber):i[0]||i[1]))return;if(6===i.tag)return void jh(e=p(i),t);if(9!==(i=p(i)).nodeType){if(11===i.nodeType)return void(null!==(t="host"in i?i.host:null)&&t.scrollIntoView(e));i.scrollIntoView(e)}}for(i=t?r.length-1:0;i!==(t?-1:r.length);){var o=r[i];6===o.tag?jh(o=p(o),t):p(o).scrollIntoView(e),i+=t?-1:1}};var qh=null;function Th(e){e=e.nextSibling;for(var r=0;e;){if(8===e.nodeType){var t=e.data;if("/$"===t||"/&"===t){if(0===r)return Fh(e.nextSibling);r--}else"$"!==t&&"$!"!==t&&"$?"!==t&&"$~"!==t&&"&"!==t||r++}e=e.nextSibling}return null}function Mh(e){e=e.previousSibling;for(var r=0;e;){if(8===e.nodeType){var t=e.data;if("$"===t||"$!"===t||"$?"===t||"$~"===t||"&"===t){if(0===r)return e;r--}else"/$"!==t&&"/&"!==t||r++}e=e.previousSibling}return null}function Nh(e,r,t){switch(r=Vd(t),e){case"html":if(!(e=r.documentElement))throw Error(n(452));return e;case"head":if(!(e=r.head))throw Error(n(453));return e;case"body":if(!(e=r.body))throw Error(n(454));return e;default:throw Error(n(451))}}function Rh(e,r,t){for(var n in t){var i=t[n];t.hasOwnProperty(n)&&null!=i&&Md(e,r,n,null,zd,i)}null!=t.dangerouslySetInnerHTML&&(e.textContent=""),e.onclick===ot&&(e.onclick=null),wr(e)}function zh(e){for(var r=e.attributes;r.length;)e.removeAttributeNode(r[0]);wr(e)}var Uh=new Map,Lh=new Set;function Bh(e){if("function"==typeof e.getRootNode){var r=e.getRootNode();if(9===r.nodeType||11===r.nodeType)return r}return 9===e.nodeType?e:e.ownerDocument}var Vh=G.d;G.d={f:function(){var e=Vh.f(),r=jf();return e||r},r:function(e){var r=$r(e);null!==r&&5===r.tag&&"form"===r.type?zl(r):Vh.r(e)},D:function(e){Vh.D(e),Wh("dns-prefetch",e,null)},C:function(e,r){Vh.C(e,r),Wh("preconnect",e,r)},L:function(e,r,t){Vh.L(e,r,t);var n=Hh;if(n&&e&&r){var i='link[rel="preload"][as="'+Vr(r)+'"]';"image"===r&&t&&t.imageSrcSet?(i+='[imagesrcset="'+Vr(t.imageSrcSet)+'"]',"string"==typeof t.imageSizes&&(i+='[imagesizes="'+Vr(t.imageSizes)+'"]')):i+='[href="'+Vr(e)+'"]';var o=i;switch(r){case"style":o=Kh(e);break;case"script":o=Yh(e)}if(!(Uh.has(o)||(e=$({rel:"preload",href:"image"===r&&t&&t.imageSrcSet?void 0:e,as:r},t),Uh.set(o,e),null!==n.querySelector(i)||"style"===r&&n.querySelector(Zh(o))||"script"===r&&n.querySelector(Xh(o))))){var a=n.createElement("link");Rd(a,"link",e),"style"===r&&(a[gr]=!0,a.onload=a.onerror=function(){xr(a)}),jr(a),n.head.appendChild(a)}}},m:function(e,r){Vh.m(e,r);var t=Hh;if(t&&e){var n=r&&"string"==typeof r.as?r.as:"script",i='link[rel="modulepreload"][as="'+Vr(n)+'"][href="'+Vr(e)+'"]',o=i;switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":o=Yh(e)}if(!Uh.has(o)&&(e=$({rel:"modulepreload",href:e},r),Uh.set(o,e),null===t.querySelector(i))){switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(t.querySelector(Xh(o)))return}Rd(n=t.createElement("link"),"link",e),jr(n),t.head.appendChild(n)}}},X:function(e,r){Vh.X(e,r);var t=Hh;if(t&&e){var n=Er(t).hoistableScripts,i=Yh(e),o=n.get(i);o||((o=t.querySelector(Xh(i)))||(e=$({src:e,async:!0},r),(r=Uh.get(i))&&tm(e,r),jr(o=t.createElement("script")),Rd(o,"link",e),t.head.appendChild(o)),n.set(i,o={type:"script",instance:o,count:1,state:null}))}},S:function(e,r,t){Vh.S(e,r,t);var n=Hh;if(n&&e){var i=Er(n).hoistableStyles,o=Kh(e);r=r||"default";var a=i.get(o);if(!a){var l={loading:0,preload:null};if(a=n.querySelector(Zh(o)))l.loading=5;else{e=$({rel:"stylesheet",href:e,"data-precedence":r},t),(t=Uh.get(o))&&rm(e,t);var u=a=n.createElement("link");jr(u),Rd(u,"link",e),u._p=new Promise((function(e,r){u.onload=e,u.onerror=r})),u.addEventListener("load",(function(){l.loading|=1})),u.addEventListener("error",(function(){l.loading|=2})),l.loading|=4,em(a,r,n)}i.set(o,a={type:"stylesheet",instance:a,count:1,state:l})}}},M:function(e,r){Vh.M(e,r);var t=Hh;if(t&&e){var n=Er(t).hoistableScripts,i=Yh(e),o=n.get(i);o||((o=t.querySelector(Xh(i)))||(e=$({src:e,async:!0,type:"module"},r),(r=Uh.get(i))&&tm(e,r),jr(o=t.createElement("script")),Rd(o,"link",e),t.head.appendChild(o)),n.set(i,o={type:"script",instance:o,count:1,state:null}))}}};var Hh="undefined"==typeof document?null:document;function Wh(e,r,t){var n=Hh;if(n&&"string"==typeof r&&r){var i=Vr(r);i='link[rel="'+e+'"][href="'+i+'"]',"string"==typeof t&&(i+='[crossorigin="'+t+'"]'),Lh.has(i)||(Lh.add(i),e={rel:e,crossOrigin:t,href:r},null===n.querySelector(i)&&(Rd(r=n.createElement("link"),"link",e),jr(r),n.head.appendChild(r)))}}function Gh(e,r,t,i){var o=(o=pe.current)?Bh(o):null;if(!o)throw Error(n(446));switch(e){case"meta":case"title":return null;case"style":return"string"==typeof t.precedence&&"string"==typeof t.href?(t=Kh(t.href),(i=(r=Er(o).hoistableStyles).get(t))||r.set(t,i={type:"style",instance:null,count:0,state:null}),i):{type:"void",instance:null,count:0,state:null};case"link":if("stylesheet"===t.rel&&"string"==typeof t.href&&"string"==typeof t.precedence){e=Kh(t.href);var a=Er(o).hoistableStyles,l=a.get(e);if(l||(o=o.ownerDocument||o,a.set(e,l={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}}),(a=o.querySelector(Zh(e)))?a._p||(l.instance=a,l.state.loading=5):((a=Uh.get(e))||Uh.set(e,a={rel:"preload",as:"style",href:t.href,crossOrigin:t.crossOrigin,integrity:t.integrity,media:t.media,hrefLang:t.hrefLang,referrerPolicy:t.referrerPolicy}),function(e,r,t,n){if(r=e.querySelector('link[rel="preload"][as="style"]['+r+"]")){if(!0!==r[gr])return void(n.loading=1)}else(r=e.createElement("link"))[gr]=!0,r.onload=r.onerror=xr.bind(null,r),Rd(r,"link",t),jr(r),e.head.appendChild(r);n.preload=r,r.addEventListener("load",(function(){return n.loading|=1})),r.addEventListener("error",(function(){return n.loading|=2}))}(o,e,a,l.state))),r&&null===i)throw Error(n(528,""));return l}if(r&&null!==i)throw Error(n(529,""));return null;case"script":return r=t.async,"string"==typeof(t=t.src)&&r&&"function"!=typeof r&&"symbol"!=typeof r?(t=Yh(t),(i=(r=Er(o).hoistableScripts).get(t))||r.set(t,i={type:"script",instance:null,count:0,state:null}),i):{type:"void",instance:null,count:0,state:null};default:throw Error(n(444,e))}}function Kh(e){return'href="'+Vr(e)+'"'}function Zh(e){return'link[rel="stylesheet"]['+e+"]"}function Jh(e){return $({},e,{"data-precedence":e.precedence,precedence:null})}function Yh(e){return'[src="'+Vr(e)+'"]'}function Xh(e){return"script[async]"+e}function Qh(e,r,t){if(r.count++,null===r.instance)switch(r.type){case"style":var i=e.querySelector('style[data-href~="'+Vr(t.href)+'"]');if(i)return r.instance=i,jr(i),i;var o=$({},t,{"data-href":t.href,"data-precedence":t.precedence,href:null,precedence:null});return jr(i=(e.ownerDocument||e).createElement("style")),Rd(i,"style",o),em(i,t.precedence,e),r.instance=i;case"stylesheet":o=Kh(t.href);var a=e.querySelector(Zh(o));if(a)return r.state.loading|=4,r.instance=a,jr(a),a;i=Jh(t),(o=Uh.get(o))&&rm(i,o),jr(a=(e.ownerDocument||e).createElement("link"));var l=a;return l._p=new Promise((function(e,r){l.onload=e,l.onerror=r})),Rd(a,"link",i),r.state.loading|=4,em(a,t.precedence,e),r.instance=a;case"script":return a=Yh(t.src),(o=e.querySelector(Xh(a)))?(r.instance=o,jr(o),o):(i=t,(o=Uh.get(a))&&tm(i=$({},t),o),jr(o=(e=e.ownerDocument||e).createElement("script")),Rd(o,"link",i),e.head.appendChild(o),r.instance=o);case"void":return null;default:throw Error(n(443,r.type))}else"stylesheet"===r.type&&!(4&r.state.loading)&&(i=r.instance,r.state.loading|=4,em(i,t.precedence,e));return r.instance}function em(e,r,t){for(var n=t.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),i=n.length?n[n.length-1]:null,o=i,a=0;a<n.length;a++){var l=n[a];if(l.dataset.precedence===r)o=l;else if(o!==i)break}o?o.parentNode.insertBefore(e,o.nextSibling):(r=9===t.nodeType?t.head:t).insertBefore(e,r.firstChild)}function rm(e,r){null==e.crossOrigin&&(e.crossOrigin=r.crossOrigin),null==e.referrerPolicy&&(e.referrerPolicy=r.referrerPolicy),null==e.title&&(e.title=r.title)}function tm(e,r){null==e.crossOrigin&&(e.crossOrigin=r.crossOrigin),null==e.referrerPolicy&&(e.referrerPolicy=r.referrerPolicy),null==e.integrity&&(e.integrity=r.integrity)}var nm=null;function im(e,r,t){if(null===nm){var n=new Map,i=nm=new Map;i.set(t,n)}else(n=(i=nm).get(t))||(n=new Map,i.set(t,n));if(n.has(e))return n;for(n.set(e,null),t=t.getElementsByTagName(e),i=0;i<t.length;i++){var o=t[i];if(!(o[br]||o[fr]||"link"===e&&"stylesheet"===o.getAttribute("rel"))&&"http://www.w3.org/2000/svg"!==o.namespaceURI){var a=o.getAttribute(r)||"",l=n.get(a=e+a);l?l.push(o):n.set(a,[o])}}return n}function om(e,r,t){(e=e.ownerDocument||e).head.insertBefore(t,"title"===r?e.querySelector("head > title"):null)}function am(e,r){return"img"===e&&null!=r.src&&""!==r.src&&null==r.onLoad&&"lazy"!==r.loading}function lm(e){return!!("stylesheet"!==e.type||3&e.state.loading)}function um(e){return(e.width||100)*(e.height||100)*("number"==typeof devicePixelRatio?devicePixelRatio:1)*.25}function sm(e,r){"function"==typeof r.decode&&(e.imgCount++,r.complete||(e.imgBytes+=um(r),e.suspenseyImages.push(r)),e=hm.bind(e),r.decode().then(e,e))}var cm=0;function fm(e){if(0===e.count&&(0===e.imgCount||!e.waitingForImages))if(e.stylesheets)pm(e,e.stylesheets);else if(e.unsuspend){var r=e.unsuspend;e.unsuspend=null,r()}}function dm(){this.count--,fm(this)}function hm(){this.imgCount--,fm(this)}var mm=null;function pm(e,r){e.stylesheets=null,null!==e.unsuspend&&(e.count++,mm=new Map,r.forEach(vm,e),mm=null,dm.call(e))}function vm(e,r){if(!(4&r.state.loading)){var t=mm.get(e);if(t)var n=t.get(null);else{t=new Map,mm.set(e,t);for(var i=e.querySelectorAll("link[data-precedence],style[data-precedence]"),o=0;o<i.length;o++){var a=i[o];"LINK"!==a.nodeName&&"not all"===a.getAttribute("media")||(t.set(a.dataset.precedence,a),n=a)}n&&t.set(null,n)}a=(i=r.instance).getAttribute("data-precedence"),(o=t.get(a)||n)===n&&t.set(null,i),t.set(a,i),this.count++,n=dm.bind(this),i.addEventListener("load",n),i.addEventListener("error",n),o?o.parentNode.insertBefore(i,o.nextSibling):(e=9===e.nodeType?e.head:e).insertBefore(i,e.firstChild),r.state.loading|=4}}var ym={$$typeof:_,Provider:null,Consumer:null,_currentValue:K,_currentValue2:K,_threadCount:0};function bm(e,r,t,n,i,o,a,l,u){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=rr(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=rr(0),this.hiddenUpdates=rr(null),this.identifierPrefix=n,this.onUncaughtError=i,this.onCaughtError=o,this.onRecoverableError=a,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=u,this.transitionTypes=null,this.incompleteTransitions=new Map}function gm(e,r,t,n,i,o,a,l,u,s,c,f){return e=new bm(e,r,t,a,u,s,c,f,l),r=1,!0===o&&(r|=24),o=yi(3,null,null,r),e.current=o,o.stateNode=e,(r=go()).refCount++,e.pooledCache=r,r.refCount++,o.memoizedState={element:n,isDehydrated:t,cache:r},Xo(o),e}function wm(e){return e?e=pi:pi}function km(e,r,t,n,i,o){i=wm(i),null===n.context?n.context=i:n.pendingContext=i,(n=ea(r)).payload={element:t},null!==(o=void 0===o?null:o)&&(n.callback=o),null!==(t=ra(e,n,r))&&(wf(t,0,r),ta(t,e,r))}function $m(e,r){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var t=e.retryLane;e.retryLane=0!==t&&t<r?t:r}}function Sm(e,r){$m(e,r),(e=e.alternate)&&$m(e,r)}function Em(e){if(13===e.tag||31===e.tag){var r=di(e,67108864);null!==r&&wf(r,0,67108864),Sm(e,67108864)}}function jm(e){if(13===e.tag||31===e.tag){var r=yf(),t=di(e,r=ar(r));null!==t&&wf(t,0,r),Sm(e,r)}}var xm=!0;function Om(e,r,t,n){var i=W.T;W.T=null;var o=G.p;try{G.p=2,Cm(e,r,t,n)}finally{G.p=o,W.T=i}}function Am(e,r,t,n){var i=W.T;W.T=null;var o=G.p;try{G.p=8,Cm(e,r,t,n)}finally{G.p=o,W.T=i}}function Cm(e,r,t,n){if(xm){var i=_m(n);if(null===i)Ad(e,r,n,Im,t),Lm(e,n);else if(function(e,r,t,n,i){switch(r){case"focusin":return qm=Bm(qm,e,r,t,n,i),!0;case"dragenter":return Tm=Bm(Tm,e,r,t,n,i),!0;case"mouseover":return Mm=Bm(Mm,e,r,t,n,i),!0;case"pointerover":var o=i.pointerId;return Nm.set(o,Bm(Nm.get(o)||null,e,r,t,n,i)),!0;case"gotpointercapture":return Rm.set(o=i.pointerId,Bm(Rm.get(o)||null,e,r,t,n,i)),!0}return!1}(i,e,r,t,n))n.stopPropagation();else if(Lm(e,n),4&r&&-1<Um.indexOf(e)){for(;null!==i;){var o=$r(i);if(null!==o)switch(o.tag){case 3:if((o=o.stateNode).current.memoizedState.isDehydrated){var a=Ze(o.pendingLanes);if(0!==a){var l=o;for(l.pendingLanes|=2,l.entangledLanes|=2;a;){var u=1<<31-Be(a);l.entanglements[1]|=u,a&=~u}sd(o),!(6&Fc)&&(rf=Ie()+500,cd(0))}}break;case 31:case 13:null!==(l=di(o,2))&&wf(l,0,2),jf(),Sm(o,2)}if(null===(o=_m(n))&&Ad(e,r,n,Im,t),o===i)break;i=o}null!==i&&n.stopPropagation()}else Ad(e,r,n,null,t)}}function _m(e){return Dm(e=lt(e))}var Im=null;function Dm(e){if(Im=null,null!==(e=kr(e))){var r=o(e);if(null===r)e=null;else{var t=r.tag;if(13===t){if(null!==(e=a(r)))return e;e=null}else if(31===t){if(null!==(e=l(r)))return e;e=null}else if(3===t){if(r.stateNode.current.memoizedState.isDehydrated)return 3===r.tag?r.stateNode.containerInfo:null;e=null}else r!==e&&(e=null)}}return Im=e,null}function Pm(e){switch(e){case"beforetoggle":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"seeked":case"submit":case"toggle":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"fullscreenerror":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"resize":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(De()){case Pe:return 2;case Fe:return 8;case qe:case Te:return 32;case Me:return 268435456;default:return 32}default:return 32}}var Fm=!1,qm=null,Tm=null,Mm=null,Nm=new Map,Rm=new Map,zm=[],Um="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".split(" ");function Lm(e,r){switch(e){case"focusin":case"focusout":qm=null;break;case"dragenter":case"dragleave":Tm=null;break;case"mouseover":case"mouseout":Mm=null;break;case"pointerover":case"pointerout":Nm.delete(r.pointerId);break;case"gotpointercapture":case"lostpointercapture":Rm.delete(r.pointerId)}}function Bm(e,r,t,n,i,o){return null===e||e.nativeEvent!==o?(e={blockedOn:r,domEventName:t,eventSystemFlags:n,nativeEvent:o,targetContainers:[i]},null!==r&&null!==(r=$r(r))&&Em(r),e):(e.eventSystemFlags|=n,r=e.targetContainers,null!==i&&-1===r.indexOf(i)&&r.push(i),e)}function Vm(e){var r=kr(e.target);if(null!==r){var t=o(r);if(null!==t)if(13===(r=t.tag)){if(null!==(r=a(t)))return e.blockedOn=r,void sr(e.priority,(function(){jm(t)}))}else if(31===r){if(null!==(r=l(t)))return e.blockedOn=r,void sr(e.priority,(function(){jm(t)}))}else if(3===r&&t.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===t.tag?t.stateNode.containerInfo:null)}e.blockedOn=null}function Hm(e){if(null!==e.blockedOn)return!1;for(var r=e.targetContainers;0<r.length;){var t=_m(e.nativeEvent);if(null!==t)return null!==(r=$r(t))&&Em(r),e.blockedOn=t,!1;var n=new(t=e.nativeEvent).constructor(t.type,t);at=n,t.target.dispatchEvent(n),at=null,r.shift()}return!0}function Wm(e,r,t){Hm(e)&&t.delete(r)}function Gm(){Fm=!1,null!==qm&&Hm(qm)&&(qm=null),null!==Tm&&Hm(Tm)&&(Tm=null),null!==Mm&&Hm(Mm)&&(Mm=null),Nm.forEach(Wm),Rm.forEach(Wm)}function Km(r,t){r.blockedOn===t&&(r.blockedOn=null,Fm||(Fm=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,Gm)))}var Zm=null;function Jm(r){Zm!==r&&(Zm=r,e.unstable_scheduleCallback(e.unstable_NormalPriority,(function(){Zm===r&&(Zm=null);for(var e=0;e<r.length;e+=3){var t=r[e],n=r[e+1],i=r[e+2];if("function"!=typeof n){if(null===Dm(n||t))continue;break}var o=$r(t);null!==o&&(r.splice(e,3),e-=3,Nl(o,{pending:!0,data:i,method:t.method,action:n},n,i))}})))}function Ym(e){function r(r){return Km(r,e)}null!==qm&&Km(qm,e),null!==Tm&&Km(Tm,e),null!==Mm&&Km(Mm,e),Nm.forEach(r),Rm.forEach(r);for(var t=0;t<zm.length;t++){var n=zm[t];n.blockedOn===e&&(n.blockedOn=null)}for(;0<zm.length&&null===(t=zm[0]).blockedOn;)Vm(t),null===t.blockedOn&&zm.shift();if(null!=(t=(e.ownerDocument||e).$$reactFormReplay))for(n=0;n<t.length;n+=3){var i=t[n],o=t[n+1],a=i[dr]||null;if("function"==typeof o)a||Jm(t);else if(a){var l=null;if(o&&o.hasAttribute("formAction")){if(i=o,a=o[dr]||null)l=a.formAction;else if(null!==Dm(i))continue}else l=a.action;"function"==typeof l?t[n+1]=l:(t.splice(n,3),n-=3),Jm(t)}}}function Xm(){function e(e){e.canIntercept&&"react-transition"===e.info&&e.intercept({handler:function(){return new Promise((function(e){return i=e}))},focusReset:"manual",scroll:"manual"})}function r(){null!==i&&(i(),i=null),n||setTimeout(t,20)}function t(){if(!n&&!navigation.transition){var e=navigation.currentEntry;e&&null!=e.url&&navigation.navigate(e.url,{state:e.getState(),info:"react-transition",history:"replace"})}}if("object"==typeof navigation){var n=!1,i=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",r),navigation.addEventListener("navigateerror",r),setTimeout(t,100),function(){n=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",r),navigation.removeEventListener("navigateerror",r),null!==i&&(i(),i=null)}}}function Qm(e){this._internalRoot=e}function ep(e){this._internalRoot=e}ep.prototype.render=Qm.prototype.render=function(e){var r=this._internalRoot;if(null===r)throw Error(n(409));km(r.current,yf(),e,r,null,null)},ep.prototype.unmount=Qm.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var r=e.containerInfo;km(e.current,2,null,e,null,null),jf(),r[hr]=null}},ep.prototype.unstable_scheduleHydration=function(e){if(e){var r=ur();e={blockedOn:null,target:e,priority:r};for(var t=0;t<zm.length&&0!==r&&r<zm[t].priority;t++);zm.splice(t,0,e),0===t&&Vm(e)}};var rp=r.version;if("19.3.0"!==rp)throw Error(n(527,rp,"19.3.0"));G.findDOMNode=function(e){var r=e._reactInternals;if(void 0===r){if("function"==typeof e.render)throw Error(n(188));throw e=Object.keys(e).join(","),Error(n(268,e))}return e=function(e){var r=e.alternate;if(!r){if(null===(r=o(e)))throw Error(n(188));return r!==e?null:e}for(var t=e,i=r;;){var a=t.return;if(null===a)break;var l=a.alternate;if(null===l){if(null!==(i=a.return)){t=i;continue}break}if(a.child===l.child){for(l=a.child;l;){if(l===t)return u(a),e;if(l===i)return u(a),r;l=l.sibling}throw Error(n(188))}if(t.return!==i.return)t=a,i=l;else{for(var s=!1,c=a.child;c;){if(c===t){s=!0,t=a,i=l;break}if(c===i){s=!0,i=a,t=l;break}c=c.sibling}if(!s){for(c=l.child;c;){if(c===t){s=!0,t=l,i=a;break}if(c===i){s=!0,i=l,t=a;break}c=c.sibling}if(!s)throw Error(n(189))}}if(t.alternate!==i)throw Error(n(190))}if(3!==t.tag)throw Error(n(188));return t.stateNode.current===t?e:r}(r),null===(e=null!==e?s(e):null)?null:e.stateNode};var tp={bundleType:0,version:"19.3.0",rendererPackageName:"react-dom",currentDispatcherRef:W,reconcilerVersion:"19.3.0"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var np=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!np.isDisabled&&np.supportsFiber)try{ze=np.inject(tp),Ue=np}catch(e){}}return ae.createRoot=function(e,r){if(!i(e))throw Error(n(299));var t=!1,o="",a=lu,l=uu,u=su;return null!=r&&(!0===r.unstable_strictMode&&(t=!0),void 0!==r.identifierPrefix&&(o=r.identifierPrefix),void 0!==r.onUncaughtError&&(a=r.onUncaughtError),void 0!==r.onCaughtError&&(l=r.onCaughtError),void 0!==r.onRecoverableError&&(u=r.onRecoverableError)),r=gm(e,1,!1,null,0,t,o,null,a,l,u,Xm),e[hr]=r.current,xd(e),new Qm(r)},ae.hydrateRoot=function(e,r,t){if(!i(e))throw Error(n(299));var o=!1,a="",l=lu,u=uu,s=su,c=null;return null!=t&&(!0===t.unstable_strictMode&&(o=!0),void 0!==t.identifierPrefix&&(a=t.identifierPrefix),void 0!==t.onUncaughtError&&(l=t.onUncaughtError),void 0!==t.onCaughtError&&(u=t.onCaughtError),void 0!==t.onRecoverableError&&(s=t.onRecoverableError),void 0!==t.formState&&(c=t.formState)),(r=gm(e,1,!0,r,0,o,a,c,l,u,s,Xm)).context=wm(null),t=r.current,(a=ea(o=ar(o=yf()))).callback=null,ra(t,a,o),r.current.lanes=t=o,tr(r,t),sd(r),e[hr]=r.current,xd(e),new ep(r)},ae.version="19.3.0",ae}()),oe.exports),be={exports:{}},ge={},we=(ve||(ve=1,be.exports=function(){if(pe)return ge;pe=1;var e=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function t(r,t,n){var i=null;if(void 0!==n&&(i=""+n),void 0!==t.key&&(i=""+t.key),"key"in t)for(var o in n={},t)"key"!==o&&(n[o]=t[o]);else n=t;return{$$typeof:e,type:r,key:i,ref:void 0!==(t=n.ref)?t:null,props:n}}return ge.Fragment=r,ge.jsx=t,ge.jsxs=t,ge}()),be.exports);function ke(e){return!("object"!=typeof e||null===e||"lastModified"in e&&"number"==typeof e.lastModified&&"undefined"!=typeof File&&e instanceof File||"getMonth"in e&&"function"==typeof e.getMonth&&"undefined"!=typeof Date&&e instanceof Date||Array.isArray(e))}function $e(){const e="undefined"!=typeof navigator?navigator.languages:void 0;if(e)try{const r=new Intl.NumberFormat(e).formatToParts(1.1);return r.find((e=>"decimal"===e.type))?.value||"."}catch(e){}return"."}function Se(e){if(""===e)return;if(null===e)return null;const r=$e(),t="string"==typeof e&&"."!==r?e.replace(r,"."):e;if(/\.$/.test(t))return e;if(/\.0$/.test(t))return e;if(/\.\d*0$/.test(t))return e;const n=Number(t);return"number"!=typeof n||Number.isNaN(n)?e:n}const Ee=Symbol("__additional_property"),je="additionalProperties",xe="allOf",Oe="anyOf",Ae="const",Ce="default",_e="dependencies",Ie="__errors",De="$id",Pe="if",Fe="items",qe="$name",Te="oneOf",Me="patternProperties",Ne="properties",Re="readonly",ze="required",Ue="submitButtonOptions",Le="$ref",Be=Symbol("__rjsf_ref"),Ve=Symbol("__rjsf_ref_cycle"),He="$schema",We="root",Ge="_",Ke=["discriminator","propertyName"],Ze="formContext",Je="__rjsf",Ye=`${Je}_additionalProperties`,Xe=`${Je}_rootSchema`,Qe="ui:widget",er="ui:options",rr="ui:globalOptions",tr="https://json-schema.org/draft/2020-12/schema";function nr(e={},r={}){return e?Object.keys(e).filter((e=>e.startsWith("ui:"))).reduce(((r,t)=>{const n=e[t];return t===Qe&&ke(n)?(console.error("Setting options via ui:widget object is no longer supported, use ui:options instead"),r):t===er&&ke(n)?{...r,...n}:{...r,[t.substring(3)]:n}}),{...r}):{...r}}function ir(e,r={},t){if(!e.additionalProperties&&!e.patternProperties)return!1;const{expandable:n=!0}=nr(r);return!1===n?n:void 0===e.maxProperties||!t||Object.keys(t).length<e.maxProperties}function or(e){if("object"!=typeof e||null===e)return!1;const r=Object.getPrototypeOf(e);return null===r||r===Object.prototype}function ar(e){const r={[Ie]:[],addError(e){this[Ie].push(e)}};return Array.isArray(e)?e.reduce(((e,r,t)=>({...e,[t]:ar(r)})),r):or(e)?Object.keys(e).reduce(((r,t)=>({...r,[t]:ar(e[t])})),r):r}const{getOwnPropertyNames:lr,getOwnPropertySymbols:ur}=Object,{hasOwnProperty:sr}=Object.prototype;function cr(e,r){return function(t,n,i){return e(t,n,i)&&r(t,n,i)}}function fr(e){return function(r,t,n){if(!r||!t||"object"!=typeof r||"object"!=typeof t)return e(r,t,n);const{cache:i}=n,o=i.get(r),a=i.get(t);if(o&&a)return o===t&&a===r;i.set(r,t),i.set(t,r);const l=e(r,t,n);return i.delete(r),i.delete(t),l}}function dr(e){return lr(e).concat(ur(e))}const hr=Object.hasOwn||((e,r)=>sr.call(e,r)),{getOwnPropertyDescriptor:mr,keys:pr}=Object,vr=Object.is||function(e,r){return e===r?0!==e||1/e==1/r:e!=e&&r!=r};function yr(e,r){return e===r}function br(e,r){return e.byteLength===r.byteLength&&Cr(new Uint8Array(e),new Uint8Array(r))}function gr(e,r,t){let n=e.length;if(r.length!==n)return!1;for(;n-- >0;)if(!t.equals(e[n],r[n],n,n,e,r,t))return!1;return!0}function wr(e,r){return e.byteLength===r.byteLength&&Cr(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(r.buffer,r.byteOffset,r.byteLength))}function kr(e,r){return vr(e.getTime(),r.getTime())}function $r(e,r){return e.name===r.name&&e.message===r.message&&e.cause===r.cause&&e.stack===r.stack}function Sr(e,r,t){const n=e.size;if(n!==r.size)return!1;if(!n)return!0;const i=new Array(n),o=e.entries();let a,l,u=0;for(;(a=o.next())&&!a.done;){const n=r.entries();let o=!1,s=0;for(;(l=n.next())&&!l.done;){if(i[s]){s++;continue}const n=a.value,c=l.value;if(t.equals(n[0],c[0],u,s,e,r,t)&&t.equals(n[1],c[1],n[0],c[0],e,r,t)){o=i[s]=!0;break}s++}if(!o)return!1;u++}return!0}function Er(e,r,t){const n=pr(e);let i=n.length;if(pr(r).length!==i)return!1;for(;i-- >0;)if(!Ir(e,r,t,n[i]))return!1;return!0}function jr(e,r,t){const n=dr(e);let i,o,a,l=n.length;if(dr(r).length!==l)return!1;for(;l-- >0;){if(i=n[l],!Ir(e,r,t,i))return!1;if(o=mr(e,i),a=mr(r,i),(o||a)&&(!o||!a||o.configurable!==a.configurable||o.enumerable!==a.enumerable||o.writable!==a.writable))return!1}return!0}function xr(e,r){return vr(e.valueOf(),r.valueOf())}function Or(e,r){return e.source===r.source&&e.flags===r.flags}function Ar(e,r,t){const n=e.size;if(n!==r.size)return!1;if(!n)return!0;const i=new Array(n),o=e.values();let a,l;for(;(a=o.next())&&!a.done;){const n=r.values();let o=!1,u=0;for(;(l=n.next())&&!l.done;){if(!i[u]&&t.equals(a.value,l.value,a.value,l.value,e,r,t)){o=i[u]=!0;break}u++}if(!o)return!1}return!0}function Cr(e,r){let t=e.byteLength;if(r.byteLength!==t||e.byteOffset!==r.byteOffset)return!1;for(;t-- >0;)if(e[t]!==r[t])return!1;return!0}function _r(e,r){return e.hostname===r.hostname&&e.pathname===r.pathname&&e.protocol===r.protocol&&e.port===r.port&&e.hash===r.hash&&e.username===r.username&&e.password===r.password}function Ir(e,r,t,n){return!("_owner"!==n&&"__o"!==n&&"__v"!==n||!e.$$typeof&&!r.$$typeof)||hr(r,n)&&t.equals(e[n],r[n],n,n,e,r,t)}const Dr=Object.prototype.toString;function Pr(e={}){const{circular:r=!1,createInternalComparator:t,createState:n,strict:i=!1}=e,o=function({circular:e,createCustomConfig:r,strict:t}){let n={areArrayBuffersEqual:br,areArraysEqual:t?jr:gr,areDataViewsEqual:wr,areDatesEqual:kr,areErrorsEqual:$r,areFunctionsEqual:yr,areMapsEqual:t?cr(Sr,jr):Sr,areNumbersEqual:vr,areObjectsEqual:t?jr:Er,arePrimitiveWrappersEqual:xr,areRegExpsEqual:Or,areSetsEqual:t?cr(Ar,jr):Ar,areTypedArraysEqual:t?cr(Cr,jr):Cr,areUrlsEqual:_r,getUnsupportedCustomComparator:void 0};if(r&&(n=Object.assign({},n,r(n))),e){const e=fr(n.areArraysEqual),r=fr(n.areMapsEqual),t=fr(n.areObjectsEqual),i=fr(n.areSetsEqual);n=Object.assign({},n,{areArraysEqual:e,areMapsEqual:r,areObjectsEqual:t,areSetsEqual:i})}return n}(e),a=function(e){const r=function({areArrayBuffersEqual:e,areArraysEqual:r,areDataViewsEqual:t,areDatesEqual:n,areErrorsEqual:i,areFunctionsEqual:o,areMapsEqual:a,areNumbersEqual:l,areObjectsEqual:u,arePrimitiveWrappersEqual:s,areRegExpsEqual:c,areSetsEqual:f,areTypedArraysEqual:d,areUrlsEqual:h}){return{"[object Arguments]":u,"[object Array]":r,"[object ArrayBuffer]":e,"[object AsyncGeneratorFunction]":o,"[object BigInt]":l,"[object BigInt64Array]":d,"[object BigUint64Array]":d,"[object Boolean]":s,"[object DataView]":t,"[object Date]":n,"[object Error]":i,"[object Float16Array]":d,"[object Float32Array]":d,"[object Float64Array]":d,"[object Function]":o,"[object GeneratorFunction]":o,"[object Int8Array]":d,"[object Int16Array]":d,"[object Int32Array]":d,"[object Map]":a,"[object Number]":s,"[object Object]":(e,r,t)=>"function"!=typeof e.then&&"function"!=typeof r.then&&u(e,r,t),"[object RegExp]":c,"[object Set]":f,"[object String]":s,"[object URL]":h,"[object Uint8Array]":d,"[object Uint8ClampedArray]":d,"[object Uint16Array]":d,"[object Uint32Array]":d}}(e),{areArraysEqual:t,areDatesEqual:n,areFunctionsEqual:i,areMapsEqual:o,areNumbersEqual:a,areObjectsEqual:l,areRegExpsEqual:u,areSetsEqual:s,getUnsupportedCustomComparator:c}=e;return function(e,f,d){if(e===f)return!0;if(null==e||null==f)return!1;const h=typeof e;if(h!==typeof f)return!1;if("object"!==h)return"number"===h||"bigint"===h?a(e,f,d):"function"===h&&i(e,f,d);const m=e.constructor;if(m!==f.constructor)return!1;if(m===Object)return l(e,f,d);if(m===Array)return t(e,f,d);if(m===Date)return n(e,f,d);if(m===RegExp)return u(e,f,d);if(m===Map)return o(e,f,d);if(m===Set)return s(e,f,d);if(m===Promise)return!1;if(Array.isArray(e))return t(e,f,d);const p=Dr.call(e),v=r[p];if(v)return v(e,f,d);const y=c&&c(e,f,d,p);return!!y&&y(e,f,d)}}(o);var l;return function({circular:e,comparator:r,createState:t,equals:n,strict:i}){if(t)return function(o,a){const{cache:l=(e?new WeakMap:void 0),meta:u}=t();return r(o,a,{cache:l,equals:n,meta:u,strict:i})};if(e)return function(e,t){return r(e,t,{cache:new WeakMap,equals:n,meta:void 0,strict:i})};const o={cache:void 0,equals:n,meta:void 0,strict:i};return function(e,t){return r(e,t,o)}}({circular:r,comparator:a,createState:n,equals:t?t(a):(l=a,function(e,r,t,n,i,o,a){return l(e,r,a)}),strict:i})}Pr(),Pr({strict:!0}),Pr({circular:!0}),Pr({circular:!0,strict:!0}),Pr({createInternalComparator:()=>vr}),Pr({strict:!0,createInternalComparator:()=>vr}),Pr({circular:!0,createInternalComparator:()=>vr}),Pr({circular:!0,createInternalComparator:()=>vr,strict:!0});const Fr=Pr({circular:!0,createCustomConfig:()=>({areFunctionsEqual:(e,r)=>"function"==typeof r})});var qr,Tr,Mr,Nr,Rr,zr={exports:{}};function Ur(){if(Tr)return qr;Tr=1;const e=RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu),r=RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u),t=RegExp.prototype.test.bind(/^\d*$/u),n=RegExp.prototype.test.bind(/^[\da-f]{2}$/iu),i=RegExp.prototype.test.bind(/^[\da-z\-._~]$/iu),o=RegExp.prototype.test.bind(/^[A-Za-z0-9\-._~!$&'()*+,;=:@/]$/u),a=RegExp.prototype.test.bind(/^[A-Za-z0-9\-._~!$&'()*+,;=:@/?]$/u),l=RegExp.prototype.test.bind(/^[A-Za-z0-9\-._~!$&'()*+,;=:]$/u),u=RegExp.prototype.test.bind(/^[\dA-Fa-f]{1,4}$/),s=RegExp.prototype.test.bind(/^[vV][\dA-Fa-f]+\.[A-Za-z\d\-._~!$&'()*+,;=:]+$/),c=RegExp.prototype.test.bind(/^[A-Za-z\d\-._~]$/),f=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u),d=RegExp.prototype.test.bind(/[^\d!"$&'()*+,\-.;=_`a-z{}~]/u),h=RegExp.prototype.test.bind(/(?:^|\.)\d+$/u);function m(e){let r=-1,t=0,n=-1,i=0;for(let o=0;o<e.length;o++)"0"===e[o]?(-1===n&&(n=o),i++,i>t&&(t=i,r=n)):(n=-1,i=0);return t<2?e.join(":"):e.slice(0,r).join(":")+"::"+e.slice(r+t).join(":")}function p(e){const t="["===e[0]&&"]"===e[e.length-1];if(("["===e[0]||"]"===e[e.length-1])&&!t)return{host:e,isIPV6:!1,error:!0};let i=t?e.slice(1,-1):e;if(t&&s(i))return i=i.toLowerCase(),{host:`[${i}]`,escapedHost:i,isIPV6:!1,isIPVFuture:!0};if(function(e){let r=0;for(let t=0;t<e.length;t++)":"===e[t]&&r++;return r}(i)<2)return{host:e,isIPV6:!1,error:t};let o="";const a=i.indexOf("%");if(-1!==a){const r="%25"===i.slice(a,a+3).toLowerCase()?3:1;if(o=i.slice(a+r),!function(e){if(0===e.length)return!1;for(let r=0;r<e.length;r++)if(!c(e[r])){if(!("%"===e[r]&&r+2<e.length&&n(e.slice(r+1,r+3))))return!1;r+=2}return!0}(o))return{host:e,isIPV6:!1,error:!0};i=i.slice(0,a)}const l=function(e){const t=e.indexOf("::");if(-1!==t&&-1!==e.indexOf("::",t+1))return;const n=-1===t?e.split(":"):e.slice(0,t).split(":"),i=-1===t?[]:e.slice(t+2).split(":");-1!==t&&(1===n.length&&""===n[0]&&(n.length=0),1===i.length&&""===i[0]&&(i.length=0));const o=n.concat(i);let a=0;for(let e=0;e<o.length;e++){const n=o[e];if(""===n)return;if(-1===n.indexOf(".")){if(!u(n))return;o[e]=parseInt(n,16).toString(16),a++}else{if(e!==o.length-1||-1!==t&&0===i.length||!r(n))return;a+=2}}if(-1===t){if(8!==a)return;return m(o)}if(a>=8)return;const l=o.slice(0,n.length);for(let e=a;e<8;e++)l.push("0");for(let e=n.length;e<o.length;e++)l.push(o[e]);return m(l)}(i);return void 0===l?{host:e,isIPV6:!1,error:!0}:{host:l+(o?"%"+o:""),escapedHost:l+(o?"%25"+o:""),isIPV6:!0}}const v={"@":"%40","/":"%2F","?":"%3F","#":"%23",":":"%3A"},y=/[@/?#:]/g,b=/[@/?#]/g;function g(e,r){const t=r?b:y;return t.lastIndex=0,e.replace(t,(e=>v[e]))}function w(e,r=!1){if(-1===e.indexOf("%"))return e;let t="";for(let o=0;o<e.length;o++){if("%"===e[o]&&o+2<e.length){const a=e.slice(o+1,o+3);if(n(a)){const e=a.toUpperCase(),n=String.fromCharCode(parseInt(e,16));r&&i(n)?t+=n:t+="%"+e,o+=2;continue}}t+=e[o]}return t}const k=new Array(256);{const e="0123456789ABCDEF";for(let r=0;r<256;r++)k[r]="%"+e[r>>4]+e[15&r]}function $(e){return e>=48&&e<=57||e>=65&&e<=90||e>=97&&e<=122||42===e||43===e||45===e||46===e||47===e||64===e||95===e}function S(e){return e<2048?k[192|e>>6]+k[128|63&e]:e<65536?k[224|e>>12]+k[128|e>>6&63]+k[128|63&e]:k[240|e>>18]+k[128|e>>12&63]+k[128|e>>6&63]+k[128|63&e]}function E(e,r){let t="";for(let i=0;i<e.length;i++){const o=e[i];if("%"===o&&i+2<e.length){const r=e.slice(i+1,i+3);if(n(r)){t+="%"+r.toUpperCase(),i+=2;continue}}if(r(o))t+=o;else{const r=e.charCodeAt(i);if(r<128)t+=k[r];else if(r<55296||r>57343)t+=S(r);else if(r<=56319&&i+1<e.length){const n=e.charCodeAt(i+1);n>=56320&&n<=57343?(t+=S(65536+(r-55296<<10)+(n-56320)),i++):t+=S(65533)}else t+=S(65533)}}return t}function j(e){return E(e,l)}return qr={BYTE_HEX:k,percentEncodeNonAscii:S,nonSimpleDomain:f,nonSimpleMailtoDomain:function(e){return d(e)||h(e)},recomposeAuthority:function(e){const n=[];if(void 0!==e.userinfo&&(n.push(j(e.userinfo)),n.push("@")),void 0!==e.host){let t=e.host;if(!r(t)){const r=function(e){const r=e.ipv6Zone;if(void 0===r)return;const t=e.host,n=t.indexOf("%");if(-1===n)return;const i=t.slice(0,n)+"%25"+r,o=p("["+i+"]");return!0===o.isIPV6&&o.host===t?"["+i+"]":void 0}(e);if(void 0!==r)t=r;else{let e=p(t);!0!==e.isIPV6&&!0!==e.isIPVFuture&&(t=w(t,!0),e=p(t)),t=!0===e.isIPV6||!0===e.isIPVFuture?`[${e.escapedHost}]`:g(t,!1)}}n.push(t)}if("number"==typeof e.port||"string"==typeof e.port){const r=String(e.port);if(!t(r))throw new TypeError("URI port is malformed.");n.push(":"),n.push(r)}return n.length?n.join(""):void 0},reescapeHostDelimiters:g,normalizePercentEncoding:w,normalizePathEncoding:function(e){let r="";for(let t=0;t<e.length;t++){const a=e[t];if("%"===a&&t+2<e.length){const o=e.slice(t+1,t+3);if(n(o)){const e=o.toUpperCase(),n=String.fromCharCode(parseInt(e,16));"."!==n&&i(n)?r+=n:r+="%"+e,t+=2;continue}}if(o(a))r+=a;else{const n=e.charCodeAt(t);if(n<128)r+=$(n)?a:k[n];else if(n<55296||n>57343)r+=S(n);else if(n<=56319&&t+1<e.length){const i=e.charCodeAt(t+1);i>=56320&&i<=57343?(r+=S(65536+(n-55296<<10)+(i-56320)),t++):r+=S(65533)}else r+=S(65533)}}return r},serializePathEncoding:function(e,r=!1){let t="",i=r&&"/"!==e[0];for(let r=0;r<e.length;r++){const a=e[r];if("%"===a&&r+2<e.length){const i=e.slice(r+1,r+3);if(n(i)){t+="%"+i.toUpperCase(),r+=2;continue}}if("/"===a&&(i=!1),!o(a)||":"===a&&i){const n=e.charCodeAt(r);if(n<128)t+=k[n];else if(n<55296||n>57343)t+=S(n);else if(n<=56319&&r+1<e.length){const i=e.charCodeAt(r+1);i>=56320&&i<=57343?(t+=S(65536+(n-55296<<10)+(i-56320)),r++):t+=S(65533)}else t+=S(65533)}else t+=a}return t},normalizeQueryFragmentEncoding:function(e){let r="";for(let t=0;t<e.length;t++){const o=e[t];if("%"===o&&t+2<e.length){const o=e.slice(t+1,t+3);if(n(o)){const e=o.toUpperCase(),n=String.fromCharCode(parseInt(e,16));i(n)?r+=n:r+="%"+e,t+=2;continue}}if(a(o))r+=o;else{const n=e.charCodeAt(t);if(n<128)r+=$(n)?o:k[n];else if(n<55296||n>57343)r+=S(n);else if(n<=56319&&t+1<e.length){const i=e.charCodeAt(t+1);i>=56320&&i<=57343?(r+=S(65536+(n-55296<<10)+(i-56320)),t++):r+=S(65533)}else r+=S(65533)}}return r},encodeUserinfo:j,encodeQuery:function(e){return E(e,a)},encodeFragment:function(e){return E(e,a)},escapePreservingEscapes:function(e){let r="";for(let t=0;t<e.length;t++){const i=e[t];if("%"===i&&t+2<e.length){const i=e.slice(t+1,t+3);if(n(i)){r+="%"+i.toUpperCase(),t+=2;continue}}const o=e.charCodeAt(t);if(o<128)r+=$(o)?i:k[o];else if(o<55296||o>57343)r+=S(o);else if(o<=56319&&t+1<e.length){const n=e.charCodeAt(t+1);n>=56320&&n<=57343?(r+=S(65536+(o-55296<<10)+(n-56320)),t++):r+=S(65533)}else r+=S(65533)}return r},removeDotSegments:function(e){let r=e;const t=[];let n=-1,i=0;for(;i=r.length;){if(1===i){if("."===r)break;if("/"===r){t.push("/");break}t.push(r);break}if(2===i){if("."===r[0]){if("."===r[1])break;if("/"===r[1]){r=r.slice(2);continue}}else if("/"===r[0]&&"."===r[1]){t.push("/");break}}else if(3===i&&"/.."===r){0!==t.length&&t.pop(),t.push("/");break}if("."===r[0]){if("."===r[1]){if("/"===r[2]){r=r.slice(3);continue}}else if("/"===r[1]){r=r.slice(2);continue}}else if("/"===r[0]&&"."===r[1]){if("/"===r[2]){r=r.slice(2);continue}if("."===r[2]&&"/"===r[3]){r=r.slice(3),0!==t.length&&t.pop();continue}}if(-1===(n=r.indexOf("/",1))){t.push(r);break}t.push(r.slice(0,n)),r=r.slice(n)}return t.join("")},isIPv4:r,isUUID:e,normalizeIPv6:p,stringArrayToHexStripped:function(e){let r="",t=0,n=0;for(n=0;n<e.length;n++)if(t=e[n].charCodeAt(0),48!==t){if(!(t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102))return"";r+=e[n];break}for(n+=1;n<e.length;n++){if(t=e[n].charCodeAt(0),!(t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102))return"";r+=e[n]}return r}},qr}var Lr,Br=function(){if(Rr)return zr.exports;Rr=1;const{normalizeIPv6:e,removeDotSegments:r,recomposeAuthority:t,normalizePercentEncoding:n,normalizePathEncoding:i,serializePathEncoding:o,normalizeQueryFragmentEncoding:a,encodeQuery:l,encodeFragment:u,reescapeHostDelimiters:s,isIPv4:c,nonSimpleDomain:f}=Ur(),{SCHEMES:d,getSchemeHandler:h}=function(){if(Nr)return Mr;Nr=1;const{isUUID:e,BYTE_HEX:r,percentEncodeNonAscii:t,nonSimpleMailtoDomain:n}=Ur(),i=/^([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-./:;=@]|%[\da-f]{2})+)$/iu,o=["http","https","ws","wss","urn","urn:uuid","mailto"];function a(e){return!0===e.secure||!1!==e.secure&&!!e.scheme&&!(3!==e.scheme.length||"w"!==e.scheme[0]&&"W"!==e.scheme[0]||"s"!==e.scheme[1]&&"S"!==e.scheme[1]||"s"!==e.scheme[2]&&"S"!==e.scheme[2])}function l(e){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e}function u(e){const r="https"===String(e.scheme).toLowerCase();return e.port!==(r?443:80)&&""!==e.port||(e.port=void 0),e.path||(e.path="/"),e}const s={scheme:"http",domainHost:!0,parse:l,serialize:u},c={scheme:"https",domainHost:s.domainHost,parse:l,serialize:u},f={scheme:"ws",domainHost:!0,parse:function(e){return e.secure=a(e),e.resourceName=(e.path||"/")+(e.query?"?"+e.query:""),e.path=void 0,e.query=void 0,e},serialize:function(e){if(e.port!==(a(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){const r=e.resourceName.indexOf("?"),t=-1===r?e.resourceName:e.resourceName.slice(0,r);e.path=t&&"/"!==t?t:void 0,e.query=-1===r?void 0:e.resourceName.slice(r+1),e.resourceName=void 0}return e.fragment=void 0,e}},d={scheme:"wss",domainHost:f.domainHost,parse:f.parse,serialize:f.serialize},h={scheme:"urn",parse:function(e,r){if(!e.path)return e.error="URN can not be parsed",e;const t=e.path.match(i);if(t&&t[0]===e.path){const n=r.scheme||e.scheme||"urn";e.nid=t[1].toLowerCase(),e.nss=t[2];const i=D(`${n}:${r.nid||e.nid}`);e.path=void 0,i&&(e=i.parse(e,r))}else e.error=e.error||"URN can not be parsed.";return e},serialize:function(e,r){if(void 0===e.nid)throw new Error("URN without nid cannot be serialized");const t=r.scheme||e.scheme||"urn",n=e.nid.toLowerCase(),i=D(`${t}:${r.nid||n}`);i&&(e=i.serialize(e,r));const o=e;return o.path=`${n||r.nid}:${e.nss}`,r.skipEscape=!0,o},skipNormalize:!0},m={scheme:"urn:uuid",parse:function(r,t){const n=r;return n.uuid=n.nss,n.nss=void 0,t.tolerant||n.uuid&&e(n.uuid)||(n.error=n.error||"UUID is not valid."),n},serialize:function(e){const r=e;return r.nss=(e.uuid||"").toLowerCase(),r},skipNormalize:!0},p="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~!$'()*+;:";function v(e,r=!1){const t=new Uint8Array(128);for(let r=0;r<e.length;r++)t[e.charCodeAt(r)]=1;const n=e.replace(/[\\\]^-]/gu,"\\$&");return{all:new RegExp(`^(?:${r?`[${n}]|[^\\0-\\x7F\\uD800-\\uDFFF]`:`[${n}]`})*$`,"u"),table:t,allowNonAscii:r}}const y=v("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~!$'()*+="),b=v("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~!$'()*+,;:@"),g=v(p),w=v(p,!0),k=/^[\da-f]{2}$/iu,$=/^\[[\x21-\x5A\x5E-\x7E]*\]$/u,S="URI mailto has an invalid recipient domain.",E=/[\uD800-\uDFFF]/u;function j(e){if("string"!=typeof e||-1===e.indexOf("%"))return e;try{return decodeURIComponent(e)}catch{return e}}function x(e){let r="";for(let t=0;t<e.length;t++){const n=e.charCodeAt(t);if(n>=55296&&n<=56319&&t+1<e.length){const n=e.charCodeAt(t+1);if(n>=56320&&n<=57343){r+=e[t]+e[t+1],t++;continue}}r+=n>=55296&&n<=57343?"�":e[t]}return r}function O(e,n){if(n.all.test(e))return e;const i=n.table;let o="";for(let a=0;a<e.length;a++){const l=e.charCodeAt(a);if(l<128)1===i[l]?o+=e[a]:37===l&&a+2<e.length&&k.test(e.slice(a+1,a+3))?(o+="%"+e.slice(a+1,a+3).toUpperCase(),a+=2):o+=r[l];else if(l<55296||l>57343)o+=n.allowNonAscii?e[a]:t(l);else{if(l<=56319&&a+1<e.length){const r=e.charCodeAt(a+1);if(r>=56320&&r<=57343){o+=n.allowNonAscii?e[a]+e[a+1]:t(65536+(l-55296<<10)+(r-56320)),a++;continue}}o+=n.allowNonAscii?"�":t(65533)}}return o}function A(e,r,t){const i=String(e).toLowerCase();if($.test(i))return i;if(""!==i&&!n(i))return i;try{const e=new URL("http://"+i);if(e.username||e.password||e.port||"/"!==e.pathname||e.search||e.hash||!e.hostname)throw new Error(S);return r&&r.unicodeSupport?i:e.hostname}catch{return t&&(t.error=t.error||S),i}}function C(e,r){const t=r&&r.unicodeSupport?w:g;return e.length>1&&"["===e[0]&&"]"===e[e.length-1]?"["+O(e.slice(1,-1),t)+"]":O(e,t)}function _(e){return O(e.replace(/%/gu,"%25"),b)}const I={http:s,https:c,ws:f,wss:d,urn:h,"urn:uuid":m,mailto:{scheme:"mailto",parse:function(e,r){const t=e;let n=t.path,i=t.query;n&&E.test(n)&&(n=x(n)),i&&E.test(i)&&(i=x(i));const o=n?-1===n.indexOf(",")?[n]:n.split(","):[];if(t.path=void 0,i){let e=null,r=0;for(;r<=i.length;){let n=i.indexOf("&",r);-1===n&&(n=i.length);const a=i.slice(r,n);r=n+1;const l=a.indexOf("=");if(l!==a.lastIndexOf("=")){t.error=t.error||"URI mailto has malformed header fields.";continue}const u=j(-1===l?a:a.slice(0,l)),s=u.toLowerCase(),c=-1===l?"":a.slice(l+1);if("to"!==s)"subject"!==s?"body"!==s?(null===e&&(e=Object.create(null)),e[u]=j(c)):t.body=j(c):t.subject=j(c);else{const e=c.split(",");for(let r=0;r<e.length;r++)o.push(e[r])}}null!==e&&(t.headers=e)}t.query=void 0,o.length>0&&(void 0!==t.userinfo||void 0!==t.host||void 0!==t.port)&&(t.userinfo=void 0,t.host=void 0,t.port=void 0,t.error=t.error||"URI mailto must not have an authority component.");for(let e=0;e<o.length;e++){const n=o[e],i=n.lastIndexOf("@");if(i<0){t.error=t.error||S,o[e]=j(n);continue}const a=j(n.slice(0,i)),l=A(j(n.slice(i+1)),r,t);o[e]=a+"@"+l}return o.length&&(t.to=o),t},serialize:function(e,r){const t=e,n=Array.isArray(t.to)?t.to.slice():[],i=t.headers&&"object"==typeof t.headers?Object.assign(Object.create(null),t.headers):Object.create(null),o=Object.create(null);for(const e in i){const r=e.toLowerCase();if("to"===r){const r=String(i[e]).split(",");for(let e=0;e<r.length;e++)n.push(r[e])}else"subject"===r||"body"===r?o[r]=i[e]:o[e]=i[e]}if(void 0!==t.subject&&(o.subject=t.subject),void 0!==t.body&&(o.body=t.body),t.headers=o,n.length){t.userinfo=void 0,t.host=void 0,t.port=void 0;for(let e=0;e<n.length;e++){const t=String(n[e]),i=t.lastIndexOf("@"),o=i>=0?t.slice(0,i):t,a=i>=0?t.slice(i+1):"",l=O(o,y),u=A(j(a),r);n[e]=l+"@"+C(u,r)}t.path=n.join(","),r.skipEscape=!0}else t.path=void 0;let a="",l=0;for(const e in o)0!=l++&&(a+="&"),a+=_(e)+"="+O(String(o[e]),b);return 0!==l?t.query=a:t.headers=void 0,t},domainHost:!1,unicodeSupport:!0,skipNormalize:!0,absolutePath:!0}};function D(e){return e&&(I[e]||I[e.toLowerCase()])||void 0}return Object.setPrototypeOf(I,null),Mr={wsIsSecure:a,SCHEMES:I,isValidSchemeName:function(e){return-1!==o.indexOf(e)},getSchemeHandler:D}}(),m=/^[A-Za-z][A-Za-z0-9+.-]*$/u,p="URI scheme is malformed.";function v(e){const r=unescape(String(e));if(!m.test(r))throw new TypeError(p);return r}function y(e,r){e.host=r.host,void 0!==r.ipv6Zone&&(e.ipv6Zone=r.ipv6Zone)}function b(e,t,n,i){const o={};return i||(e=O(g(e,n),n),t=O(g(t,n),n)),!(n=n||{}).tolerant&&t.scheme?(o.scheme=t.scheme,o.userinfo=t.userinfo,y(o,t),o.port=t.port,o.path=r(t.path||""),o.query=t.query):(void 0!==t.userinfo||void 0!==t.host||void 0!==t.port?(o.userinfo=t.userinfo,y(o,t),o.port=t.port,o.path=r(t.path||""),o.query=t.query):(t.path?("/"===t.path[0]?o.path=r(t.path):(o.path=void 0===e.userinfo&&void 0===e.host&&void 0===e.port||e.path?e.path?e.path.slice(0,e.path.lastIndexOf("/")+1)+t.path:t.path:"/"+t.path,o.path=r(o.path)),o.query=t.query):(o.path=e.path,o.query=void 0!==t.query?t.query:e.query),o.userinfo=e.userinfo,y(o,e),o.port=e.port),o.scheme=e.scheme),o.fragment=t.fragment,o}function g(e,i){const a={host:e.host,ipv6Zone:e.ipv6Zone,scheme:e.scheme,userinfo:e.userinfo,port:e.port,path:e.path,query:e.query,nid:e.nid,nss:e.nss,uuid:e.uuid,fragment:e.fragment,reference:e.reference,resourceName:e.resourceName,secure:e.secure,to:e.to,subject:e.subject,body:e.body,headers:e.headers,error:""},s=Object.assign({},i),c=[];a.scheme&&(a.scheme=v(a.scheme));const f=h(s.scheme||a.scheme);f&&f.serialize&&f.serialize(a,s);const d=!s.skipEscape&&void 0===a.scheme&&!(void 0!==a.userinfo||void 0!==a.host||void 0!==a.port);void 0!==a.path&&(a.path=s.skipEscape?n(a.path):o(a.path,d)),"suffix"!==s.reference&&a.scheme&&(a.scheme=v(a.scheme),c.push(a.scheme,":"));const m=t(a);if(void 0!==m&&("suffix"!==s.reference&&c.push("//"),c.push(m),a.path&&"/"!==a.path[0]&&c.push("/")),void 0!==a.path){let e=a.path;s.absolutePath||f&&f.absolutePath||(e=r(e)),d&&(e=o(e,!0)),void 0===m&&"/"===e[0]&&"/"===e[1]&&(e="/%2F"+e.slice(2)),c.push(e)}return void 0!==a.query&&c.push("?",l(a.query)),void 0!==a.fragment&&c.push("#",u(a.fragment)),c.join("")}const w=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u,k=/^(?:[^#/:?]+:)?\/\/([^/?#]*)/,$=/^(?:[^#/:?]+:)?([/\\\t\n\r]*)/;function S(e){if(void 0===e)return!1;let r=e.indexOf("%");for(;-1!==r;){if(r+2>=e.length||!/^[\da-f]{2}$/iu.test(e.slice(r+1,r+3)))return!0;r=e.indexOf("%",r+3)}return!1}function E(e){return"["===e[0]&&"]"===e[e.length-1]}function j(e,r,t,n){const i=e.host&&"["===e.host[0]&&"]"===e.host[e.host.length-1];if(!r.unicodeSupport&&(!t||!t.unicodeSupport)&&e.host&&!E(e.host)&&(r.domainHost||t&&t.domainHost)&&!1===n&&!i&&f(e.host))try{e.host=new URL("http://"+e.host).hostname}catch(r){return e.error=e.error||"Host's domain name can not be converted to ASCII: "+r,!0}return!1}function x(r,t){const o=Object.assign({},t),l={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0};let u=!1,f=!1,v=!1,y=!1,b=!1,g=!1,x=!1;"suffix"===o.reference&&(r=o.scheme?o.scheme+":"+r:"//"+r);const O=r.match(k);null!==O&&-1!==O[1].indexOf("\\")&&(l.error="URI authority must not contain a literal backslash.",u=!0);const A=r.match($);if(null!==A){const e=A[1],r=e.replace(/[\t\n\r]/g,"");r.length>=2&&("//"!==r.slice(0,2)?(l.error=l.error||"URI authority must not contain a literal backslash.",u=!0):e.length!==r.length&&(l.error=l.error||"URI authority introducer must not contain whitespace.",u=!0))}const C=r.match(w);if(C){if(l.scheme=C[1],l.userinfo=C[3],l.host=C[4],l.port=parseInt(C[5],10),l.path=C[6]||"",l.query=C[7],l.fragment=C[8],void 0!==l.scheme){const e=unescape(l.scheme);m.test(e)?l.scheme=e.toLowerCase():(l.error=l.error||p,g=!0)}f=function(e){const r=e[4];return S(e[3])||void 0!==r&&!E(r)&&S(r)||S(e[6])||S(e[7])||S(e[8])}(C),f&&(l.error=l.error||"URI contains malformed percent-encoding."),isNaN(l.port)&&(l.port=C[5]);const t=function(e,r){return void 0!==r[2]&&e.path&&"/"!==e.path[0]?'URI path must start with "/" when authority is present.':"number"==typeof e.port&&(e.port<0||e.port>65535)?"URI port is malformed.":void 0}(l,C);if(void 0!==t&&(l.error=l.error||t,u=!0),l.host)if(!1===c(l.host)){const r=E(l.host),t=-1!==l.host.indexOf("[")||-1!==l.host.indexOf("]"),n=e(l.host);x=n.isIPV6||!0===n.isIPVFuture,b=t&&(!r||!0===n.error),l.host=x?n.host:n.host.toLowerCase(),x&&!0===n.isIPV6&&-1!==l.host.indexOf("%")&&(l.ipv6Zone=l.host.slice(l.host.indexOf("%")+1)),b&&(l.error=l.error||"URI host is malformed.",u=!0)}else x=!0;l.reference=void 0!==l.scheme||void 0!==l.userinfo||void 0!==l.host||void 0!==l.port||void 0!==l.query||l.path?void 0===l.scheme?"relative":void 0===l.fragment?"absolute":"uri":"same-document",o.reference&&"suffix"!==o.reference&&o.reference!==l.reference&&(l.error=l.error||"URI is not a "+o.reference+" reference.");const w=h(o.scheme||l.scheme);if(b||(y=j(l,o,w,x)),-1!==r.indexOf("%")&&void 0!==l.host&&!b){let e=x?l.host:n(l.host,!0);x||(e=n(e.toLowerCase())),l.host=s(e,x)}(!w||w&&!w.skipNormalize)&&(l.path&&(l.path=i(l.path)),l.query&&(l.query=a(l.query)),l.fragment&&(l.fragment=a(l.fragment))),w&&w.parse&&(w.parse(l,o),w===d.urn&&void 0===l.nid&&(v=!0))}else l.error=l.error||"URI can not be parsed.";return{parsed:l,malformedAuthorityOrPort:u,malformedPercentEncoding:f,malformedSchemeSpecific:v,malformedHost:y,malformedScheme:g}}function O(e,r){return x(e,r).parsed}function A(e,r){const{parsed:t,malformedAuthorityOrPort:n,malformedPercentEncoding:i,malformedSchemeSpecific:o,malformedHost:a,malformedScheme:l}=x(e,r);return{normalized:n||i||o||a||l?e:g(t,r),malformedAuthorityOrPort:n,malformedPercentEncoding:i,malformedSchemeSpecific:o,malformedHost:a,malformedScheme:l}}function C(e,r){if("string"!=typeof e&&"object"!=typeof e)return;let t;try{t="string"==typeof e?e:g(e,r)}catch{return}const{normalized:n,malformedAuthorityOrPort:i,malformedPercentEncoding:o,malformedSchemeSpecific:a,malformedHost:l,malformedScheme:u}=A(t,r);return i||o||a||l||u?void 0:n}const _={SCHEMES:d,normalize:function(e,r){return"string"==typeof e?e=function(e,r){return A(e,r).normalized}(e,r):"object"==typeof e&&(e=O(g(e,r),r)),e},resolve:function(r,t,n){const i=n?Object.assign({scheme:"null"},n):{scheme:"null"},{parsed:o,malformedAuthorityOrPort:a,malformedPercentEncoding:l,malformedSchemeSpecific:u,malformedHost:s,malformedScheme:f}=x(r,i),{parsed:d,malformedAuthorityOrPort:m,malformedPercentEncoding:p,malformedSchemeSpecific:v,malformedHost:y,malformedScheme:w}=x(t,i);if(a||m||l||p||u||v||s||y||f||w)throw new Error(o.error||d.error||"URI is malformed.");const k=b(o,d,i,!0),$=h(n&&n.scheme||k.scheme),S=k.host;j(k,n||{},$,void 0!==S&&""!==S&&(c(S)||e(S).isIPV6));const E=S&&-1!==S.indexOf("%")&&!/\P{ASCII}/u.test(S);if(k.error&&!E)throw new Error(k.error);return i.skipEscape=!0,g(k,i)},resolveComponent:b,equal:function(e,r,t){const n=C(e,t),i=C(r,t);return void 0!==n&&void 0!==i&&n===i},serialize:g,parse:O};return zr.exports=_,zr.exports.default=_,zr.exports.fastUri=_,zr.exports}(),Vr=i(Br),Hr={},Wr=function(){if(Lr)return Hr;Lr=1;var e=/~/,r=/~[01]/g;function t(e){switch(e){case"~1":return"/";case"~0":return"~"}throw new Error("Invalid tilde escape: "+e)}function n(n){return e.test(n)?n.replace(r,t):n}function i(e){if("string"==typeof e){if(""===(e=e.split("/"))[0])return e;throw new Error("Invalid JSON pointer.")}if(Array.isArray(e)){for(const r of e)if("string"!=typeof r&&"number"!=typeof r)throw new Error("Invalid JSON pointer. Must be of type string or number.");return e}throw new Error("Invalid JSON pointer.")}function o(e,r){if("object"!=typeof e)throw new Error("Invalid input object.");var t=(r=i(r)).length;if(1===t)return e;for(var o=1;o<t;){if(e=e[n(r[o++])],t===o)return e;if("object"!=typeof e||null===e)return}}function a(e,r,t){if("object"!=typeof e)throw new Error("Invalid input object.");if(0===(r=i(r)).length)throw new Error("Invalid JSON pointer for set.");return function(e,r,t){for(var i,o,a=1,l=r.length;a<l;){if("constructor"===r[a]||"prototype"===r[a]||"__proto__"===r[a])return e;if(i=n(r[a++]),o=l>a,void 0===e[i]&&(Array.isArray(e)&&"-"===i&&(i=e.length),o&&(e[i]=""!==r[a]&&r[a]<1/0||"-"===r[a]?[]:{})),!o)break;e=e[i]}var u=e[i];return void 0===t?delete e[i]:e[i]=t,u}(e,r,t)}return Hr.get=o,Hr.set=a,Hr.compile=function(e){var r=i(e);return{get:function(e){return o(e,r)},set:function(e,t){return a(e,r,t)}}},Hr}(),Gr=i(Wr);function Kr(e,r){if(De in e&&Vr.equal(e[De],r))return e;for(const t of Object.values(e))if(Array.isArray(t)){for(const e of t)if(ke(e)){const t=Kr(e,r);if(void 0!==t)return t}}else if(ke(t)){const e=Kr(t,r);if(void 0!==e)return e}}function Zr(e,r){const t=e[De]??r;let n=e;Le in n&&(n={...n,[Le]:Vr.resolve(t,n[Le])});for(const[e,r]of Object.entries(n))Array.isArray(r)?n={...n,[e]:r.map((e=>ke(e)?Zr(e,t):e))}:ke(r)&&(n={...n,[e]:Zr(r,t)});return n}function Jr(e,r){const{[e]:t,...n}=r;return[n,t]}function Yr(e,r={},t=[],n=r[De]){const i=e||"";let o,a=n;if(i.startsWith("#")){const e=decodeURIComponent(i.substring(1));void 0===a||De in r&&r[De]===a?o=Gr.get(r,e):r[He]===tr&&(o=Kr(r,a.replace(/\/$/,"")),void 0!==o&&(o=Gr.get(o,e)))}else if(r[He]===tr){const e=a?Vr.resolve(a,i):i,[t,...n]=e.replace(/#\/?$/,"").split("#");o=Kr(r,t.replace(/\/$/,"")),void 0!==o&&(a=o[De],n.length>0&&(o=Gr.get(o,decodeURIComponent(n.join("#")))))}if(void 0===o)throw new Error(`Could not find a definition for ${e}.`);const l=o[Le];if(l){if(t.includes(l)){if(1===t.length)throw new Error(`Definition for ${e} is a circular reference`);const[r,...n]=t,o=[...n,i,r].join(" -> ");throw new Error(`Definition for ${r} contains a circular reference through ${o}`)}const[n,u]=Jr(Le,o),s=Yr(u,r,[...t,i],a);return Object.keys(n).length>0?"https://json-schema.org/draft/2019-09/schema"===r[He]||r[He]===tr?{[xe]:[n,s]}:{...n,...s}:s}return o}function Xr(e,r={},t=r[De]){return Yr(e,r,[],t)}const Qr=/^(?:0|[1-9]\d*)$/;function et(e){return e.split(/[.[\]]+/).filter(Boolean)}function rt(e){return"__proto__"===e}function tt(e){return"number"==typeof e?Number.isInteger(e)&&e>=0:Qr.test(e)}function nt(e){return null!=e&&("object"==typeof e||"function"==typeof e)}function it(e,r,t){let n;if(Array.isArray(r))if(0===r.length)n=void 0;else{n=e;for(let e=0;e<r.length;e++){const t=r[e];if(!nt(n)||!Object.hasOwn(n,t)){n=void 0;break}n=n[t]}}else n=nt(e)&&Object.hasOwn(e,r)?e[r]:void 0;return void 0===n?t:n}function ot(e,r,t,n=!1){if(!nt(e))return e;if(!Array.isArray(r))return rt(r)||(e[r]=t),e;const i=r;if(i.some(rt))return e;let o=e;for(let e=0;e<i.length;e++){const r=i[e];if(e===i.length-1)o[r]=t;else{const t=Object.hasOwn(o,r)?o[r]:void 0;if(nt(t))o=t;else{const t=n||!tt(i[e+1])?{}:[];o[r]=t,nt(t)&&(o=t)}}}return e}function at(e,r){if(!Array.isArray(r))return nt(e)&&Object.hasOwn(e,r);let t=e;for(let e=0;e<r.length;e++){if(!nt(t)||!Object.hasOwn(t,r[e]))return!1;t=t[r[e]]}return r.length>0}function lt(e){let r;const t=it(e,Ke);return"string"==typeof t?r=t:void 0!==t&&console.warn(`Expecting discriminator to be a string, got "${typeof t}" instead`),r}function ut(e){return Array.isArray(e)?"array":"string"==typeof e?"string":null==e?"null":"boolean"==typeof e?"boolean":"number"!=typeof e||Number.isNaN(e)?"object"==typeof e?"object":"string":"number"}function st(e){let{type:r}=e;return!r&&e.const?ut(e.const):!r&&e.enum?"string":!r&&(e.properties||e.additionalProperties||e.patternProperties)?"object":(Array.isArray(r)&&(r=2===r.length&&r.includes("null")?r.find((e=>"null"!==e)):r[0]),r)}function ct(e,r){const t={...e},n=Object.keys(r).reduce(((t,n)=>{const i=e?e[n]:{},o=r[n];return t[n]=e&&n in e&&ke(o)?ct(i,o):e&&r&&("object"===st(e)||"object"===st(r))&&n===ze&&Array.isArray(i)&&Array.isArray(o)?[...new Set([...i,...o])]:o,t}),t);for(const e of Object.getOwnPropertySymbols(r))n[e]=r[e];return n}function ft(e,r){return e?.[Ne]?.[r]??{}}function dt(e,r,t){if(e&&t){const n=it(e,t);if(void 0===n)return;for(let e=0;e<r.length;e+=1){const i=ft(r[e],t);if("object"!==i.type&&"array"!==i.type){if(i.const===n)return e;const r=i.enum;if(r?.includes(n))return e}}}}function ht(e,r,t,n,i){if(void 0===r)return 0;const o=dt(r,t,i);if("number"==typeof o)return o;for(let o=0;o<t.length;o+=1){const a=t[o],l=i?a[Ne]?.[i]:void 0;if(i&&void 0!==l){const t=it(r,i);if(e.isValid(l,t,n))return o}else if(a[Ne]){const t={anyOf:Object.keys(a[Ne]).map((e=>({required:[e]})))};let i;if(a.anyOf){const{...e}=a;e.allOf=e.allOf?e.allOf.slice():[],e.allOf.push(t),i=e}else i={...a,...t};if(delete i.required,e.isValid(i,r,n))return o}else if(e.isValid(a,r,n))return o}return 0}const mt=Object.prototype;function pt(e){for(const r in e)if(mt.hasOwnProperty.call(e,r))return!1;return!0}function vt(e){return"object"==typeof e}function yt(e){return vt(e)?pt(e):!0===e}function bt(e){return void 0!==e.items}function gt(e,r){return e<r?-1:e>r?1:0}function wt(e,r){const t=e.length;if(0===t)return r;let n=r.length;if(0===n)return e;if(t<n){const i=e;e=r,r=i,n=t}const i=new Set(e);for(let e=0;e<n;e++)i.add(r[e]);return Array.from(i)}function kt(e,r){const t=[];if(0===e.length||0===r.length)return t;if(e.length>r.length){const t=e;e=r,r=t}const n=new Set(r);for(let r=0;r<e.length&&n.size>0;r++){const i=e[r];n.delete(i)&&t.push(i)}return t}function $t(e){return 0===e.length}function St(e){return(r,t)=>{const n=r.length-t.length;if(0!==n)return n;for(let n=0;n<r.length;n++)if(r[n]!==t[n]){const i=e(r[n],t[n]);if(0!==i)return i}return 0}}function Et(e,{threshold:r=12}={}){return t=>{const n=t.length;if(0===n)return t;if(n<=r){const r=[];let i=0;e:for(let o=0;o<n;o++){const n=t[o];for(let t=0;t<i;t++)if(0===e(n,r[t]))continue e;i=r.push(n)}return r}const i=t.slice().sort(e);let o=0;for(let r=1;r<n;r++)0!==e(i[o],i[r])&&++o!==r&&(i[o]=i[r]);return i.length=o+1,i}}new Set(["array","boolean","integer","null","number","object","string"]),new Set(["$defs","definitions","properties","patternProperties","dependencies"]),new Set(["items","allOf","oneOf","anyOf"]),new Set(["items","additionalItems","additionalProperties","propertyNames","contains","if","then","else","not"]);const jt=function(e,r){return t=>{if(e.has(t))return e.get(t);const n=r(t);return e.set(t,n),n}},xt=()=>0,Ot=e=>void 0===e,At=e=>"object"!=typeof e,Ct={boolean:0,number:1,string:2};function _t(e,r){const t=typeof e,n=typeof r;return t===n?gt(e,r):Ct[t]-Ct[n]}function It(e,r,t=xt){return(n,i)=>e(n)?e(i)?t(n,i):-1:e(i)?1:r(n,i)}function Dt(e){return It(Ot,e)}function Pt(e,r){return It((r=>void 0===r||e(r)),r)}function Ft(e,r){return It(Array.isArray,e,r)}const qt=Dt(gt),Tt=Pt((e=>0===e),((e,r)=>e-r));function Mt(e){return e}const Nt=(e,r)=>e?Nt(r%e,e):r;function Rt(e,r){return e===r?e:`(?=.*(?:${e}))(?=.*(?:${r}))`}function zt(e,r,t){const n=e.length,i=r.length;if(n>0&&i>0)for(let o=0;o<n;o++){const n=e[o];for(let e=0;e<i;e++)t(n,r[e])}}function Ut(e,r){return e||r}function Lt(e){return(r,t)=>{const n={...r},i=Object.keys(t),o=i.length;for(let a=0;a<o;a++){const o=i[a];n[o]=void 0===r[o]?t[o]:e(r[o],t[o])}return n}}function Bt(e,r,t){void 0===t||yt(t)?delete e[r]:e[r]=t}const Vt=["properties","patternProperties","additionalProperties"];function Ht(e){const r=Object.keys(e),t=r.length,n=[];for(let i=0;i<t;i++){const t=r[i];n.push({regExp:new RegExp(t),schema:e[t]})}return[n,r]}const Wt=[[],[]];function Gt(e,r,t){const n=t.length;for(let i=0;i<n;i++){const n=t[i];if(!n.regExp.test(r))continue;const o=n.schema;if(!1===o)return!0;e.push(o)}return!1}const Kt=["items","additionalItems"],Zt=["if","then","else"],Jt=["contains"];function Yt(e,r){return void 0!==r.if&&(e.if=r.if),void 0!==r.then&&(e.then=r.then),void 0!==r.else&&(e.else=r.else),e}function Xt(e,{items:r,additionalItems:t}){return e.items=r,Bt(e,"additionalItems",Array.isArray(r)?t:void 0),e}function Qt(e,r){if(e===r)return e;switch(e){case"number":if("integer"===r)return"integer";case"integer":if("number"===r)return"integer";default:return}}function en(e,r,t){return[e,r,t]}const rn=[en("minimum","maximum",(e=>e.maximum>=e.minimum)),en("exclusiveMinimum","maximum",(e=>e.maximum>e.exclusiveMinimum)),en("minimum","exclusiveMaximum",(e=>e.exclusiveMaximum>e.minimum)),en("exclusiveMinimum","exclusiveMaximum",(e=>e.exclusiveMaximum>e.exclusiveMinimum)),en("minLength","maxLength",(e=>e.maxLength>=e.minLength)),en("minItems","maxItems",(e=>e.maxItems>=e.minItems)),en("minProperties","maxProperties",(e=>e.maxProperties>=e.minProperties))],{compareSchemaDefinitions:tn,compareSchemaValues:nn}=function({deduplicationCache:e=new WeakMap,sortedKeysCache:r=new WeakMap}={}){const t=jt(r,(e=>Object.keys(e).sort()));function n(e){return(r,n)=>{const i=t(r),o=t(n),a=Math.min(i.length,o.length);for(let e=0;e<a;e++){const r=gt(i[e],o[e]);if(0!==r)return r}if(i.length!==o.length)return i.length-o.length;for(let t=0;t<a;t++){const o=i[t],a=e(r[o],n[o]);if(0!==a)return a}return 0}}function i(r){const t=St(r),n=jt(e,Et(r,{threshold:0}));return(e,r)=>t(n(e),n(r))}const o=i(gt);function a(e,r){if(vt(e)){if(vt(r)){const t=function(e,r){const t=e.length;if(0===t)return r;const n=r.length;if(0===n)return e;if(n>t){const t=e;e=r,r=t}const i=new Set(e),o=r.length;for(let t=0;t<o;t++){const n=r[t];i.has(n)||e.push(n)}return e}(Object.keys(e),Object.keys(r)),n=t.length;for(let i=0;i<n;i++){const n=t[i];if(e[n]===r[n])continue;const o=(m[n]??l)(e[n],r[n]);if(0!==o)return o}return 0}return!0===r&&pt(e)?0:1}return vt(r)?!0===e&&pt(r)?0:-1:gt(e,r)}const l=Dt(s),u=It(At,Ft(n(l),St(s)),_t);function s(e,r){return null===e?-1:null===r?1:u(e,r)}const c=Dt(a),f=Pt(pt,n(c)),d=Dt(i(a)),h=Pt(yt,a),m={$id:qt,$comment:qt,$defs:f,$ref:qt,$schema:qt,const:l,contains:c,contentEncoding:qt,contentMediaType:qt,default:l,definitions:f,description:qt,else:c,examples:l,exclusiveMaximum:qt,exclusiveMinimum:qt,format:qt,if:c,maximum:qt,maxItems:qt,maxLength:qt,maxProperties:qt,minimum:qt,multipleOf:qt,not:c,pattern:qt,propertyNames:c,readOnly:qt,then:c,title:qt,writeOnly:qt,uniqueItems:Pt((e=>!1===e),xt),minLength:Tt,minItems:Tt,minProperties:Tt,required:Pt($t,o),enum:Pt($t,i(s)),type:Dt(((e,r)=>{const t=Array.isArray(e),n=Array.isArray(r);return t||n?o(t?e:[e],n?r:[r]):gt(e,r)})),items:Pt((e=>!Array.isArray(e)&&yt(e)),Ft(a,St(a))),anyOf:d,allOf:d,oneOf:d,properties:f,patternProperties:f,additionalProperties:h,additionalItems:h,dependencies:Pt(pt,n(Dt(Ft(a,o))))};return{compareSchemaValues:s,compareSchemaDefinitions:a}}(),{mergeArrayOfSchemaDefinitions:on}=function({mergePatterns:e=Rt,isSubRegExp:r=Object.is,intersectJson:t=kt,deduplicateJsonSchemaDef:n=Mt,defaultMerger:i=Mt,assigners:o=[],checks:a=rn,mergers:l}={}){function u(e){const r=e.length;let t=e[0];for(let n=1;n<r;n++){const r=v(t,e[n]);if(!1===r)return!1;yt(r)||(t=r)}return t}function s(e,r,t,n,i,o,a){if(e.length=0,!1===t)return!1;if(e.push(t),void 0!==i){if(!1===i)return!1;e.push(i)}if(Gt(e,r,o))return!1;const l=e.length<2;if(!1===a){if(l)return;if(Gt(e,r,n))return!1}else l&&void 0!==a&&e.push(a);return 1===e.length?e[0]:u(e)}function c(e,r,t,n,i,o){const a=t.length;if(a>0&&!1!==i)if(o)Object.assign(e,r);else for(let o=0;o<a;o++){const a=t[o];n.has(a)||(e[a]=v(r[a],i))}return e}function f(e,r){const t=[];if(zt(e,r,((e,r)=>{try{t.push(v(e,r))}catch{}})),0===t.length)throw new Error(`No valid schema combinations could be produced for "${JSON.stringify(e)}" and "${JSON.stringify(r)}"; the merged result is empty`);return n(t)}const d=function(e){const r=new Map;for(const t of e)for(const e of t[0])r.set(e,t[1]);return r}([[Vt,(t,{properties:n={},patternProperties:i,additionalProperties:o=!0},{properties:a={},patternProperties:l,additionalProperties:u=!0})=>{const f=yt(o),d=yt(u);if(f&&d)return Bt(t,"properties",y(n,a)),Bt(t,"patternProperties",i&&l?y(i,l):i??l),delete t.additionalProperties,t;Bt(t,"additionalProperties",v(o,u));const h={},m=Object.keys(n),p=m.length,[b,g]=i?Ht(i):Wt,[w,k]=l?Ht(l):Wt,$=[],S=new Set,E=d?void 0:u;for(let e=0;e<p;e++){const r=m[e];S.add(r);const t=s($,r,n[r],b,a[r],w,E);void 0!==t&&(h[r]=t)}const j=Object.keys(a),x=j.length,O=f?void 0:o;for(let e=0;e<x;e++){const r=j[e];if(S.has(r))continue;const t=s($,r,a[r],w,void 0,b,O);void 0!==t&&(h[r]=t)}Bt(t,"properties",h);let A={};const C=new Set;return g.length>0&&k.length>0&&zt(g,k,((t,n)=>{r(t,n)&&C.add(t),r(n,t)&&C.add(n),A[e(t,n)]=v(i[t],l[n])})),A=c(A,i,g,C,u,d),A=c(A,l,k,C,o,f),Bt(t,"patternProperties",A),t}],[Kt,(e,r,t)=>{if(!bt(r))return bt(t)?Xt(e,t):(delete e.items,delete e.additionalItems,e);if(!bt(t))return Xt(e,r);const{items:n,additionalItems:i}=r,{items:o,additionalItems:a}=t,l=Array.isArray(n),u=Array.isArray(o),s=[];if(e.items=s,l&&u){const[r,t,l]=n.length<o.length?[n.length,i,o]:[o.length,a,n];let u=0;for(;u<r;u++)s.push(v(n[u],o[u]));if(!1===t)e.additionalItems=!1;else{const r=void 0===t||yt(t);for(;u<l.length;u++)s.push(r?l[u]:v(l[u],t));Bt(e,"additionalItems",void 0!==i&&void 0!==a?v(i,a):i??a)}}else if(l||u){const[r,t,u]=l?[n,o,i]:[o,n,a];Bt(e,"additionalItems",u&&v(u,t));for(let e=0;e<r.length;e++)s.push(v(r[e],t))}else delete e.additionalItems,e.items=v(n,o);return e}],[Zt,(e,r,t)=>{Yt(e,r);const n=Yt({},t);return e.allOf=void 0===e.allOf?[n]:e.allOf.concat(n),e}],[Jt,(e,r,t)=>{const i=r.contains,o=t.contains;if(i===o)return e;if(!1===i||!1===o)return e.contains=!1,e;if(yt(i))return e.contains=o,e;if(yt(o))return e.contains=i,e;if(1===n([i,o]).length)return e;const a={contains:o};return e.allOf=void 0===e.allOf?[a]:n(e.allOf.concat(a)),e}],...o]),h=new Map;for(const[e,r]of d){const t=h.get(r);void 0===t?h.set(r,[e]):t.push(e)}function m(e,r){const t=h.get(r);for(let r=0;r<t.length;r++)if(void 0!==e[t[r]])return!0;return!1}const p=function(e){const r=new Map;for(const[t,n,i]of e){const e=e=>{if(!i(e))throw new Error(`Schema keys '${t}' and '${n}' are conflicting (${t}: ${JSON.stringify(e[t])}, ${n}: ${JSON.stringify(e[n])})`)};for(const i of[[t,n],[n,t]]){let t=r.get(i[0]);void 0===t&&(t=[],r.set(i[0],t)),t.push({oppositeKey:i[1],check:e})}}return r}(a);function v(e,r){if(!1===e||!1===r)return!1;if(yt(e))return!!yt(r)||r;if(yt(r))return e;let t={...e};const n=new Set,o=new Set,a=Reflect.ownKeys(r),l=a.length;for(let u=0;u<l;u++){const l=a[u],s=r[l];if(void 0===s)continue;const c=p.get(l);if(void 0!==c){const r=c.length;for(let t=0;t<r;t++){const r=c[t];void 0!==e[r.oppositeKey]&&o.add(r.check)}}const f=d.get(l);if(void 0!==f&&m(e,f)){n.add(f);continue}const h=e[l];void 0!==h?t[l]=(b[l]??i)(h,s):t[l]=s}for(const i of n)t=i(t,e,r);for(const e of o)e(t);return t}const y=Lt(v),b={$id:i,$ref:i,$schema:i,$comment:i,$defs:y,definitions:y,type:(e,r)=>{if(e===r)return e;const t=Array.isArray(e),n=Array.isArray(r);if(t||n){if(t||n){const i=new Set;if(t&&n)zt(e,r,((e,r)=>{const t=Qt(e,r);void 0!==t&&i.add(t)}));else{const n=t?e:r,o=t?r:e,a=n.length;for(let e=0;e<a;e++){const r=Qt(o,n[e]);void 0!==r&&i.add(r)}}const o=i.size;if(1===o)return i.values().next().value;if(o>1)return Array.from(i)}}else{const t=Qt(e,r);if(void 0!==t)return t}throw new Error(`It is not possible to create an intersection of the following incompatible types: ${e.toString()}, ${r.toString()}`)},default:i,description:i,title:i,const:i,format:i,contentEncoding:i,contentMediaType:i,not:(e,r)=>{const t=n([e,r]);return 1===t.length?t[0]:{anyOf:t}},pattern:e,readOnly:Ut,writeOnly:Ut,enum:(e,r)=>{const n=t(e,r);if(0===n.length)throw new Error(`Intersection of the following enums is empty: "${JSON.stringify(e)}", "${JSON.stringify(r)}"`);return n},anyOf:f,oneOf:f,allOf:(e,r)=>n(e.concat(r)),propertyNames:v,dependencies:Lt(((e,r)=>Array.isArray(e)?Array.isArray(r)?wt(e,r):v(r,{required:e}):Array.isArray(r)?v(e,{required:r}):v(e,r))),examples:(e,r)=>{if(!Array.isArray(e)||!Array.isArray(r))throw new Error(`Value of the 'examples' field should be an array, but got "${JSON.stringify(e)}" and "${JSON.stringify(r)}"`);return wt(e,r)},multipleOf:(e,r)=>{let t=1;for(;!Number.isInteger(e)||!Number.isInteger(r);)t*=10,e*=10,r*=10;return((e,r)=>Math.abs(e*r)/Nt(e,r))(e,r)/t},exclusiveMaximum:Math.min,maximum:Math.min,maxItems:Math.min,maxLength:Math.min,maxProperties:Math.min,exclusiveMinimum:Math.max,minimum:Math.max,minItems:Math.max,minLength:Math.max,minProperties:Math.max,uniqueItems:Ut,required:wt,...l};return{mergeSchemaDefinitions:v,mergeArrayOfSchemaDefinitions:u}}({intersectJson:(an=nn,(e,r)=>{const t=[];let n=e.length,i=r.length;if(0===n||0===i)return t;if(n>i){const t=e;e=r,r=t;const o=n;n=i,i=o}const o=[...e].sort(an),a=[...r].sort(an);let l=0,u=0;for(;l<n&&u<i;){const e=an(o[l],a[u]);0===e?(0!==t.length&&0===an(t[t.length-1],o[l])||t.push(o[l]),l++,u++):e<0?l++:u++}return t}),deduplicateJsonSchemaDef:Et(tn)});var an,ln=function(e){return r=>e(function(e){const r=[],t=[e];for(;t.length>0;){const e=t.pop();if("boolean"==typeof e||void 0===e.allOf){r.push(e);continue}const{allOf:n,...i}=e;r.push(i);for(let e=n.length-1;e>=0;e--)t.push(n[e])}return r}(r))}(on);function un(e,r,t={},n,i,o=!1){return mn(e,r,t,n,void 0,void 0,i,o)[0]}function sn(e){return"boolean"!=typeof e?e:e?{}:{not:{}}}function cn(e){return e.reduce(((e,r)=>r.length>1?r.flatMap((r=>e.map((e=>[...e,r])))):(e.forEach((e=>e.push(r[0]))),e)),[[]])}function fn(e,r){return Object.fromEntries(Object.entries(e.patternProperties??{}).filter((([e])=>RegExp(e).test(r))))}function dn(e,r,t,n,i,o,a,l,u=!1){const s=hn(r,t,i,void 0,l);return s!==r?mn(e,s,t,o,n,i,a,l,u):[r]}function hn(e,r,t,n,i,o=!1){if(!ke(e))return e;let a=e,l=n;if(Le in a){const{$ref:e,...n}=a;if(t.includes(e))return o?{...a,[Ve]:!0}:a;t.push(e),a={...Xr(e,r,l),...n,[Be]:e},De in a&&(l=a[De])}if(Ne in a){const e=[],n={};for(const[o,u]of Object.entries(a[Ne]??{})){const a=[...t];n[o]=hn(u,r,a,l,i,!i),e.push(a)}for(const r of new Set(e.flat()))t.includes(r)||t.push(r);a={...a,[Ne]:n}}if(Fe in a&&!Array.isArray(a.items)&&"boolean"!=typeof a.items&&(a={...a,items:hn(a.items,r,t,l,i)}),i){let n,o;Oe in e&&Array.isArray(e[Oe])?(n=Oe,o=a[Oe]):Te in e&&Array.isArray(e[Te])&&(n=Te,o=a[Te]),n&&o&&(a={...a,[n]:o.map((e=>hn(e,r,t,l,i)))})}return Fr(e,a)?e:a}function mn(e,r,t,n,i=!1,o=[],a,l,u=!1){if(!ke(r))return[{}];const s=function(e,r,t,n,i,o,a,l,u=!1){const s=dn(e,r,t,n,i,o,a,l,u);return s.length>1||s[0]!==r?s:_e in r&&!u?vn(e,r,t,n,i,o,a).flatMap((r=>mn(e,r,t,o,n,i,a))):xe in r&&Array.isArray(r[xe])?cn(r.allOf.map((r=>mn(e,r,t,o,n,i,a,void 0,u)))).map((e=>({...r,allOf:e}))):[r]}(e,r,t,i,o,n,a,l,u);return s.flatMap((r=>{let l=r;if(Pe in l)return function(e,r,t,n,i,o,a,l=!1){const{if:u,then:s,else:c,...f}=r,d=e.isValid(u,o||{},t);let h=[f],m=[];if(n)s&&"boolean"!=typeof s&&(m=m.concat(mn(e,s,t,o,n,i,a,void 0,l))),c&&"boolean"!=typeof c&&(m=m.concat(mn(e,c,t,o,n,i,a,void 0,l)));else{const r=d?s:c;if(void 0!==r){const u=sn(r);m=m.concat(mn(e,u,t,o,n,i,a,void 0,l))}}return m.length&&(h=m.map((e=>ct(f,e)))),h.flatMap((r=>mn(e,r,t,o,n,i,a,void 0,l)))}(e,l,t,i,o,n,a,u);if(xe in l){if(i){const{allOf:e,...r}=l;return[...e,r]}try{l=a?a(l):function(e){return ln(e)}(l)}catch(e){console.warn("could not merge subschemas in allOf:\n",e);const{allOf:r,...t}=l;return t}}return Ne in l&&Me in l&&(l=Object.keys(l.properties).reduce(((r,i)=>{const o=fn(r,i);return Object.keys(o).length>0&&([r.properties[i]]=mn(e,{allOf:[r.properties[i],...Object.values(o)]},t,it(n,i),void 0,void 0,a,void 0,u)),r}),{...l,properties:{...l.properties}})),Me in l||je in l&&!1!==l.additionalProperties?function(e,r,t,n,i){const o={...r,properties:{...r.properties}},a=n&&ke(n)?n:{};return Object.keys(a).forEach((r=>{if(!(r in o.properties)){if(Me in o){const n=fn(o,r);if(Object.keys(n).length>0)return o.properties[r]=un(e,{[xe]:Object.values(n)},t,a[r],i),void(o.properties[r][Ee]=!0)}if(je in o&&!1!==o.additionalProperties){let n;n="boolean"!=typeof o.additionalProperties?Le in o.additionalProperties?un(e,{[Le]:o.additionalProperties[Le]},t,a[r],i):"type"in o.additionalProperties?{...o.additionalProperties}:Oe in o.additionalProperties||Te in o.additionalProperties?{type:"object",...o.additionalProperties}:{type:ut(a[r])}:{type:ut(a[r])},o.properties[r]=n,o.properties[r][Ee]=!0}else o.properties[r]={type:"null"},o.properties[r][Ee]=!0}})),o}(e,l,t,n,a):l}))}function pn(e,r=!1,t){return e.map((e=>{if(!ke(e))return sn(e);const n=r&&t?hn(e,t,[]):e;return!1===n.additionalProperties?{...n,additionalProperties:!0}:n}))}function vn(e,r,t,n,i,o,a){const{dependencies:l,...u}=r,s=function(e,r,t,n,i){let o;const{oneOf:a,anyOf:l,...u}=r;if(Array.isArray(a)?o=a:Array.isArray(l)&&(o=l),o){const a=void 0===i&&n?{}:i,l=lt(r);o=o.map((e=>hn(e,t,[])));const s=ht(e,a,o,t,l);return n?(ht(e,a,pn(o,!1,t),t,l),o.map((e=>ct(u,e)))):[ct(u,o[s])]}return[r]}(e,u,t,n,o);return s.flatMap((r=>yn(e,l,r,t,n,i,o,a)))}function yn(e,r,t,n,i,o,a,l){let u=[t];for(const s in r)if((i||void 0!==it(a,s))&&(!t.properties||s in t.properties)){const[c,f]=Jr(s,r);return Array.isArray(f)?u[0]=bn(t,f):ke(f)&&(u=gn(e,t,n,s,f,i,o,a,l)),u.flatMap((r=>yn(e,c,r,n,i,o,a,l)))}return u}function bn(e,r){if(!r)return e;const t=Array.isArray(e.required)?Array.from(new Set([...e.required,...r])):r;return{...e,required:t}}function gn(e,r,t,n,i,o,a,l,u){return mn(e,i,t,l,o,a,u).flatMap((i=>{const{oneOf:s,...c}=i,f=ct(r,c);if(void 0===s)return f;const d=s.map((r=>"boolean"!=typeof r&&Le in r?dn(e,r,t,o,a,l):[r]));return cn(d).flatMap((r=>function(e,r,t,n,i,o,a,l,u){const s=i.filter((r=>{if("boolean"==typeof r||!r?.properties)return!1;const{[n]:i}=r.properties;return!!i&&(e.isValid({type:"object",properties:{[n]:i}},l,t)||o)}));return o||1===s.length?s.flatMap((i=>{const s=i,[c]=Jr(n,s.properties),f={...s,properties:c};return mn(e,f,t,l,o,a,u).map((e=>ct(r,e)))})):(console.warn("ignoring oneOf in dependencies because there isn't exactly one subschema that is valid"),[r])}(e,f,t,n,r,o,a,l,u)))}))}function wn(e,r,t,n,i,o={},a){if(Array.isArray(t[i])){const l=lt(t)||n,u=t[i].map((t=>un(e,t,r,o,a))),s=it(o,l);if(void 0!==s)return u.find((e=>Fr(it(e,[Ne,l,Ce],it(e,[Ne,l,Ae])),s)))}}function kn(e,r,t,n,i){let o=t;if(at(t,Le)&&(o=un(e,t,r,void 0,i)),0===n.length)return o;const a=Array.isArray(n)?[...n]:et(n),[l,...u]=a;return void 0!==l&&""!==l&&at(o,l)?(o=it(o,l),kn(e,r,o,u,i)):void 0}function $n(e,r,t,n,i,o){const a=kn(e,r,t,n,o);return void 0===a?i:a}const Sn={title:"!@#$_UNKNOWN_$#@!"},En={type:"object",$id:"_$junk_option_schema_id$_",properties:{__not_really_there__:{type:"number"}}};function jn(e,r,t,n,i){let o=0;return t&&(ke(t.properties)?o+=Object.entries(t.properties).reduce(((t,[o,a])=>{const l=n?.[o];if("boolean"==typeof a)return t;if(at(a,Le)){const n=un(e,a,r,l,i);return t+jn(e,r,n,l||{},i)}if((at(a,Te)||at(a,Oe))&&l){const n=at(a,Te)?Te:Oe,o=lt(a);return t+xn(e,r,l,it(a,n),-1,o,i)}if("object"===a.type)return t+("object"==typeof l&&null!==l?1:0)+jn(e,r,a,l,i);if(a.type===ut(l)){let e=t+1;return a.default?e+=l===a.default?1:-1:a.const&&(e+=l===a.const?1:-1),e}return t}),0):"string"==typeof t.type&&t.type===ut(n)&&(o+=1)),o}function xn(e,r,t,n,i=-1,o,a){const l=n.map((e=>hn(e,r,[]))),u=dt(t,n,o);if("number"==typeof u)return u;const s=l.reduce(((n,i,a)=>(1===ht(e,t,[En,i],r,o)&&n.push(a),n)),[]);if(1===s.length)return s[0];s.length||s.push(...l.keys());const c=new Set,{bestIndex:f}=s.reduce(((n,i)=>{const{bestScore:o}=n,u=jn(e,r,l[i],t,a);return c.add(u),u>o?{bestIndex:i,bestScore:u}:n}),{bestIndex:i,bestScore:0});return 1===c.size&&i>=0?i:f}function On(e){const r=e[Ae],t=st(e);return ke(r)&&"string"==typeof r?.$data&&"object"!==t&&"array"!==t}function An(e){return Array.isArray(e.enum)&&1===e.enum.length||Ae in e}function Cn(e){return Array.isArray(e.items)&&e.items.every((e=>ke(e)))}function _n(e,r,t=!1,n=!1,i=!1){if(Array.isArray(r)){const o=Array.isArray(e)?e:[],a=i?r:o,l=(i?o:r).map(((e,l)=>void 0!==a[l]?_n(o[l],r[l],t,n,i):e));return(t||i)&&l.length<a.length&&l.push(...a.slice(l.length)),l}if(ke(r)){const o=Object.assign({},e),a=r,l=ke(e)?e:void 0;return Object.keys(a).reduce(((e,r)=>{const u=a[r],s=void 0!==l&&r in l,c=r in a,f=l?.[r]??{},d=s&&ke(f)&&Object.values(f).some((e=>ke(e)||Array.isArray(e))),h=s&&ke(l?.[r]),m=c&&ke(u);return h&&m&&!d?(e[r]={...l?.[r],...u},e):(e[r]=_n(l?.[r],u,t,n,i&&(s||!c)),o)}),o)}return n&&(void 0!==e&&null==r||"number"==typeof r&&Number.isNaN(r))||i&&null!=r?e:r}function In(e,r,t=!1){return Object.keys(r).reduce(((n,i)=>{const o=e?e[i]:{},a=r[i];if(e&&i in e&&ke(a))n[i]=In(o,a,t);else if(t&&Array.isArray(o)&&Array.isArray(a)){let e=a;"preventDuplicates"===t&&(e=a.reduce(((e,r)=>(o.includes(r)||e.push(r),e)),[])),n[i]=o.concat(e)}else n[i]=a;return n}),{...e})}function Dn(e,r){if(e.enum){let t,n;if(r){const{enumNames:e,enumOrder:i}=nr(r);t=e,n=i}let i=e.enum.map(((e,r)=>({label:Array.isArray(t)?t[r]||String(e):t?.[String(e)]||String(e),value:e})));return n&&(i=function(e,r){const t=new Map(e.map((e=>[String(e.value),e]))),n=new Set(r.filter((e=>"*"!==e)).map(String)),i=e.filter((e=>!n.has(String(e.value))));return r.flatMap((e=>{if("*"===e)return i;const r=t.get(String(e));return r?[r]:[]}))}(i,n)),i}let t,n;e.anyOf?(t=e.anyOf,n=r?.anyOf):e.oneOf&&(t=e.oneOf,n=r?.oneOf);let i=lt(e);if(r){const{optionsSchemaSelector:e=i}=nr(r);i=e}return t?.map(((e,r)=>{const{title:t}=nr(n?.[r]),o=e;let a,l=t;if(i){const e=ft(o,i);a=it(e,Ce,it(e,Ae)),l=l??e?.title??o.title??String(a)}else a=function(e){if("enum"in e&&Array.isArray(e.enum)&&1===e.enum.length)return e.enum[0];if(Ae in e)return e.const;throw new Error("schema cannot be inferred as a constant")}(o),l=l??o.title??String(a);return{schema:o,label:l,value:a}}))}function Pn(e,r,t={},n){const i=un(e,r,t,void 0,n),o=i.oneOf||i.anyOf;return!!Array.isArray(i.enum)||!!Array.isArray(o)&&o.every((e=>"boolean"!=typeof e&&An(e)))}function Fn(e,r,t,n){return!(!r.uniqueItems||!r.items||"boolean"==typeof r.items)&&Pn(e,r.items,t,n)}const qn=["string","number","integer","boolean","null"];var Tn;function Mn(e,r){return Boolean("populateDefaults"===r?.allOf&&xe in e)}function Nn(e,r=Tn.Ignore,t=-1){if(t>=0){if(Array.isArray(e.items)&&t<e.items.length){const r=e.items[t];if("boolean"!=typeof r)return r}}else if(e.items&&!Array.isArray(e.items)&&"boolean"!=typeof e.items)return e.items;return r!==Tn.Ignore&&ke(e.additionalItems)?e.additionalItems:{}}function Rn(e){return void 0===e||ke(e)&&0===Object.keys(e).length}function zn(e,r){const{default:t,type:n}=e;var i;return Array.isArray(n)&&n.includes("null")&&!("string"==typeof(i=r)||Array.isArray(i)?i.length>0:"object"==typeof i&&null!==i&&Object.keys(i).length>0)&&null===t?null:r}function Un(e,r,t,n,i,o=[],a={},l=!1,u=!1){const{emptyObjectFields:s="populateAllDefaults"}=a;if(!0===n||l)e[r]=t;else if("excludeObjectChildren"===n)(u&&void 0!==t||!ke(t)||Object.keys(t).length>0)&&(e[r]=t);else if("skipDefaults"!==s){const n=void 0===i?o.includes(r):i;ke(t)?"skipEmptyDefaults"===s?Object.keys(t).length>0&&(e[r]=t):(Object.keys(t).length>0||o.includes(r))&&(n||"populateRequiredDefaults"!==s)&&(e[r]=t):void 0!==t&&("populateAllDefaults"===s||"skipEmptyDefaults"===s||n&&o.includes(r))&&(e[r]=t)}}function Ln(e,r,t={}){const{parentDefaults:n,rawFormData:i,rootSchema:o={},includeUndefinedValues:a=!1,_recurseList:l=[],experimental_defaultFormStateBehavior:u,experimental_customMergeAllOf:s,required:c,shouldMergeDefaultsIntoFormData:f=!1,initialDefaultsGenerated:d}=t;let h=ke(i)?i:{};const m=ke(r)?r:{};let p=n;const v=p&&"ancestorWins"===u?.nestedDefaultsPrecedence;let y=null,b=u,g=l;if(void 0===m[Ae]||"never"===u?.constAsDefaults||On(m))if(!ke(p)||!ke(m.default)||m[Oe]||m[Te]||m[Le])if(!(Ce in m)||v||m[Oe]||m[Te]||m[Le])if(Le in m){const e=m[Le];l.includes(e)||(g=l.concat(e),y=Xr(e,o)),y&&!p&&Rn(i)&&(p=m.default),f&&y&&!ke(i)&&(h=i)}else if(_e in m){const r={...Vn(e,m,t,p),...h},n=vn(e,m,o,!1,[],r,s);[y]=n}else if(Cn(m)&&!v)p=m.items.map(((r,t)=>Ln(e,r,{rootSchema:o,includeUndefinedValues:a,_recurseList:l,experimental_defaultFormStateBehavior:u,experimental_customMergeAllOf:s,parentDefaults:Array.isArray(n)?n[t]:void 0,rawFormData:h,required:c,shouldMergeDefaultsIntoFormData:f})));else if(Te in m){const{oneOf:r,...t}=m;if(0===r.length)return;const n=lt(m),{type:a="null"}=t;!Array.isArray(a)&&qn.includes(a)&&"skipOneOf"===b?.constAsDefaults&&(b={...b,constAsDefaults:"never"}),y=r[xn(e,o,i??m.default,r,0,n,s)],y=ct(t,y)}else if(Oe in m){const{anyOf:r,...t}=m;if(0===r.length)return;const n=lt(m);y=r[xn(e,o,i??m.default,r,0,n,s)],y=ct(t,y)}else Mn(m,u)&&"object"!==st(m)&&(y=un(e,m,o,i,s));else p=m.default;else p=v?In(m.default,p):In(p,m.default);else p=m[Ae];if(y)return Ln(e,y,{rootSchema:o,includeUndefinedValues:a,_recurseList:g,experimental_defaultFormStateBehavior:b,experimental_customMergeAllOf:s,parentDefaults:p,rawFormData:i??h,required:c,shouldMergeDefaultsIntoFormData:f,initialDefaultsGenerated:d});void 0===p&&(p=m.default);let w=Vn(e,m,t,p)??p;if(f){const{arrayMinItems:r={}}=u||{},{mergeExtraDefaults:t}=r,n=Bn(e,m,o,i,u,s);ke(i)&&!(xe in m)||(w=_n(w,n,t,!0))}return w}function Bn(e,r,t,n,i,o){const a=Mn(r,i),l=a?un(e,r,t,n,o):r,u=!An(l)&&Pn(e,l,t,o);let s=n;if(u){const e=Dn(l),r=e?.some((e=>Fr(e.value,n)));s=r?n:void 0}return l[Ae]&&"always"===i?.constAsDefaults?s=l.const:ke(s)&&ke(l.properties)&&(s=Object.keys(l.properties).reduce(((r,n)=>{const u=ft(l,n);return n in r&&(a||ke(u)&&xe in u)&&(r[n]=Bn(e,u,t,r[n],i,o)),r}),{...s})),s}function Vn(e,r,t={},n){switch(st(r)){case"object":return function(e,r,{rawFormData:t,rootSchema:n={},includeUndefinedValues:i=!1,_recurseList:o=[],experimental_defaultFormStateBehavior:a,experimental_customMergeAllOf:l,required:u,shouldMergeDefaultsIntoFormData:s,initialDefaultsGenerated:c}={},f){{const d=ke(t)?t:{},h=r,m=Mn(h,a)||"skipEmptyDefaults"!==a?.emptyObjectFields&&Pe in h?un(e,h,n,d,l):h,p=m[Ae],v=Object.keys(m.properties||{}).reduce(((r,t)=>{const h=ft(m,t),v=ke(p)&&void 0!==p[t],y=(ke(h)&&Ae in h||v)&&"never"!==a?.constAsDefaults&&!On(h);return Un(r,t,Ln(e,h,{rootSchema:n,_recurseList:o,experimental_defaultFormStateBehavior:a,experimental_customMergeAllOf:l,includeUndefinedValues:!0===i,parentDefaults:it(f,t),rawFormData:it(d,t),required:m.required?.includes(t),shouldMergeDefaultsIntoFormData:s,initialDefaultsGenerated:c}),i,u,m.required,a,y,"null"===h?.type),r}),{});if(m.additionalProperties&&!c){const r=ke(m.additionalProperties)?m.additionalProperties:{},t=new Set,h=[];Object.keys(d).filter((e=>!m.properties||!m.properties[e])).forEach((e=>{t.add(e),h.push(e)})),ke(f)&&0===h.length&&Object.keys(f).filter((e=>!m.properties||!m.properties[e])).forEach((e=>t.add(e))),t.forEach((t=>{const p=Ln(e,r,{rootSchema:n,_recurseList:o,experimental_defaultFormStateBehavior:a,experimental_customMergeAllOf:l,includeUndefinedValues:!0===i,parentDefaults:it(f,t),rawFormData:it(d,t),required:m.required?.includes(t),shouldMergeDefaultsIntoFormData:s,initialDefaultsGenerated:c});Un(v,t,p,i,u,h)}))}return zn(r,v)}}(e,r,t,n);case"array":return function(e,r,{rawFormData:t,rootSchema:n={},_recurseList:i=[],experimental_defaultFormStateBehavior:o,experimental_customMergeAllOf:a,required:l,requiredAsRoot:u=!1,shouldMergeDefaultsIntoFormData:s,initialDefaultsGenerated:c}={},f){let d=f;const h=r,m=o?.arrayMinItems??{},{populate:p,mergeExtraDefaults:v}=m,y="never"===p,b="requiredOnly"===p,g="all"===p||!y&&!b,w=m?.computeSkipPopulate??(()=>!1),k="skipEmptyDefaults"===o?.emptyObjectFields?void 0:[];if(Array.isArray(d)&&(d=d.map(((r,u)=>{const f=Nn(h,Tn.Fallback,u),d=Array.isArray(t)?t[u]:void 0;return Ln(e,f,{rootSchema:n,_recurseList:i,experimental_defaultFormStateBehavior:o,experimental_customMergeAllOf:a,parentDefaults:r,rawFormData:d,required:l,shouldMergeDefaultsIntoFormData:s,initialDefaultsGenerated:c})}))),Array.isArray(t)){const r=Nn(h);if(y)d=t;else{const u=t.map(((t,u)=>Ln(e,r,{rootSchema:n,_recurseList:i,experimental_defaultFormStateBehavior:o,experimental_customMergeAllOf:a,rawFormData:t,parentDefaults:it(d,u),required:l,shouldMergeDefaultsIntoFormData:s,initialDefaultsGenerated:c})));d=_n(d,u,(b&&l||g)&&v)}}const $=Array.isArray(d)?d.length:0;if(y)return s&&!l?d:d??k;if(b&&!l)return d||void 0;let S;if(!h.minItems||Fn(e,h,n,a)||w(e,h,n)||h.minItems<=$)S=d||!l&&!u?d:k;else{const r=d||[],t=Nn(h,Tn.Invert),u=t.default,c=Array.from({length:h.minItems-$},(()=>Ln(e,t,{parentDefaults:u,rootSchema:n,_recurseList:i,experimental_defaultFormStateBehavior:o,experimental_customMergeAllOf:a,required:l,shouldMergeDefaultsIntoFormData:s})));S=r.concat(c)}return zn(r,S)}(e,r,t,n);case"boolean":{const e=t.experimental_defaultFormStateBehavior?.requiredBooleanDefault;return("skip"===e||!t.required||void 0!==n)&&void 0}default:return}}function Hn(e,r,t,n,i=!1,o,a,l){if(!ke(r))throw new Error(`Invalid schema: ${r}`);const u=Rn(t),[s]=mn(e,r,n??{},t,void 0,void 0,a,void 0,u),c=Ln(e,s,{rootSchema:n??(u?r:void 0),includeUndefinedValues:i,experimental_defaultFormStateBehavior:o,experimental_customMergeAllOf:a,rawFormData:t,shouldMergeDefaultsIntoFormData:!0,initialDefaultsGenerated:l,requiredAsRoot:!0});if("object"!==s.type&&ke(s.default))return{...c,...t};if(ke(t)||Array.isArray(t)){const{mergeDefaultsIntoFormData:r}=o||{},i="useDefaultIfFormDataUndefined"===r;return _n(c,Bn(e,s,n??s,t,o,a),!0,i,!0)}return c}function Wn(e={}){return"widget"in nr(e)&&"hidden"!==nr(e).widget}function Gn(e,r,t={},n,i){if("files"===t[Qe])return!0;if(r.items){const t=un(e,r.items,n,void 0,i);return"string"===t.type&&"data-url"===t.format}return!1}function Kn(e){return null==e||""===e||(Array.isArray(e)?0===e.length:!!ke(e)&&Object.values(e).every(Kn))}!function(e){e[e.Ignore=0]="Ignore",e[e.Invert=1]="Invert",e[e.Fallback=2]="Fallback"}(Tn||(Tn={}));const Zn=Symbol("no Value");function Jn(e){if(Array.isArray(e.enum))return e.enum;const r=e.oneOf||e.anyOf;if(!Array.isArray(r))return;const t=r.map((e=>Ae in e?e[Ae]:Array.isArray(e.enum)&&1===e.enum.length?e.enum[0]:Zn)).filter((e=>e!==Zn));return t.length>0?t:void 0}function Yn(e,r,t,n,i={},o){let a;const l=t?.[Ne];if(l){const u={},s=n?.[Ne];s&&Object.keys(s).forEach((e=>{at(i,e)&&(u[e]=void 0)}));const c=Object.keys(l),f={};c.forEach((a=>{const l=i?.[a],s=!at(n,[Ne,a]),c=ft(n,a),d=ft(t,a),h=un(e,c,r,l,o),m=Fr(c,d)?h:un(e,d,r,l,o),p=h.type,v=m.type;if(!p||p===v)if(a in u&&delete u[a],"object"===v||"array"===v&&Array.isArray(l)){const t=Yn(e,r,m,s&&"array"===v?m:h,l,o);void 0===t&&"array"!==v||(f[a]=t)}else{const e=it(m,Ce,Zn),r=it(h,Ce,Zn);e!==Zn&&e!==l&&(s&&void 0===l||r===l?u[a]=e:!0===m.readOnly&&(u[a]=void 0));const t=it(m,Ae,Zn),n=it(h,Ae,Zn);if(t!==Zn&&t!==l&&(u[a]=n===l?t:void 0),at(i,a)){const e=function(e,r){const t=Jn(e);if(!t||t.some((e=>Fr(e,r))))return Zn;const n=it(e,Ce,Zn);return n!==Zn&&t.some((e=>Fr(e,n)))?n:1===t.length?t[0]:void 0}(m,l);e!==Zn&&(u[a]=e)}}})),a={..."string"==typeof i||Array.isArray(i)?void 0:i,...u,...f}}else if("array"===n?.type&&"array"===t?.type&&Array.isArray(i)){let l=n.items,u=t.items;if("object"!=typeof l||"object"!=typeof u||Array.isArray(l)||Array.isArray(u))"boolean"==typeof l&&"boolean"==typeof u&&l===u&&(a=i);else{const n=l,s=u;l=un(e,n,r,i,o),u=Fr(n,s)?l:un(e,s,r,i,o);const c=it(l,"type"),f=it(u,"type");if(!c||c===f){const l=t.maxItems??-1;if("object"===f)a=i.reduce(((t,i)=>{const a=un(e,n,r,i,o),u=Fr(n,s)?a:un(e,s,r,i,o),c=Yn(e,r,u,a,i,o);return void 0!==c&&(l<0||t.length<l)&&t.push(c),t}),[]);else{const e=Jn(u),r=e?i.filter((r=>e.some((e=>Fr(e,r))))):i;a=l>0&&r.length>l?r.slice(0,l):r}}}}return a}function Xn(e,r,t,n,i,o=[],a){if(Le in r||_e in r||xe in r||Pe in r){const l=un(e,r,n,i,a);if(-1===o.findIndex((e=>Fr(e,l))))return Xn(e,l,t,n,i,o.concat(l),a)}let l={[qe]:t.replace(/^\./,"")};if(Te in r||Oe in r){const u=Te in r?r.oneOf:r.anyOf,s=lt(r),c=u[xn(e,n,i,u,0,s,a)];l={...l,...Xn(e,c,t,n,i,o,a)}}if(je in r&&!1!==r[je]){ot(l,Ye,!0);const u=ke(r[je])?r[je]:{},s=r[Ne]??{};for(const r of Object.keys(i??{}))r in s||(l[r]=Xn(e,u,`${t}.${r}`,n,it(i,r),o,a))}if(Fe in r&&Array.isArray(i)){const{items:u,additionalItems:s}=r;Array.isArray(u)?i.forEach(((r,i)=>{u[i]?l[i]=Xn(e,u[i],`${t}.${i}`,n,r,o,a):s?l[i]=Xn(e,s,`${t}.${i}`,n,r,o,a):console.warn(`Unable to generate path schema for "${t}.${i}". No schema defined for it`)})):i.forEach(((r,i)=>{l[i]=Xn(e,u,`${t}.${i}`,n,r,o,a)}))}else if(Ne in r)for(const u in r.properties){const s=ft(r,u);l[u]=Xn(e,s,`${t}.${u}`,n,it(i,u),o,a)}return l}function Qn(e,r,t="",n,i,o){return Xn(e,r,t,n,i,void 0,o)}class ei{rootSchema;validator;experimental_defaultFormStateBehavior;experimental_customMergeAllOf;constructor(e,r,t,n){this.rootSchema=r?.[He]===tr?Zr(r,r[De]??"#"):r,this.validator=e,this.experimental_defaultFormStateBehavior=t,this.experimental_customMergeAllOf=n}getRootSchema(){return this.rootSchema}getValidator(){return this.validator}doesSchemaUtilsDiffer(e,r,t={},n){return!(!e||!r||this.validator===e&&Fr(this.rootSchema,r)&&Fr(this.experimental_defaultFormStateBehavior,t)&&this.experimental_customMergeAllOf===n)}findFieldInSchema(e,r,t){return function(e,r,t,n,i={},o){const a=Array.isArray(n)?[...n]:n.split(".");let l=t;const u=a.pop(),s=String(u);a.length&&a.forEach((t=>{l=$n(e,r,l,[Ne,t],{},o),at(l,Te)?l=wn(e,r,l,s,Te,it(i,t),o):at(l,Oe)&&(l=wn(e,r,l,s,Oe,it(i,t),o))})),at(l,Te)?l=wn(e,r,l,s,Te,i,o):at(l,Oe)&&(l=wn(e,r,l,s,Oe,i,o));let c=$n(e,r,l,[Ne,u],Sn,o);c===Sn&&(c=void 0);const f=$n(e,r,l,ze,[],o);let d;return c&&Array.isArray(f)&&(d=f.includes(s)),{field:c,isRequired:d}}(this.validator,this.rootSchema,e,r,t,this.experimental_customMergeAllOf)}findSelectedOptionInXxxOf(e,r,t,n){return wn(this.validator,this.rootSchema,e,r,t,n,this.experimental_customMergeAllOf)}getDefaultFormState(e,r,t=!1,n){return Hn(this.validator,e,r,this.rootSchema,t,this.experimental_defaultFormStateBehavior,this.experimental_customMergeAllOf,n)}getDisplayLabel(e,r,t){return function(e,r,t={},n,i,o){const a=nr(t,i),{label:l=!0}=a;let u=Boolean(l);if(u){const i=st(r),a=Boolean(r[Ee]);"array"===i&&(u=a||Fn(e,r,n,o)||Gn(e,r,t,n,o)||Wn(t)),"object"===i&&(u=a),"boolean"===i&&t&&!t[Qe]&&(u=!1),t?.["ui:field"]&&(u=!1)}return u}(this.validator,e,r,this.rootSchema,t,this.experimental_customMergeAllOf)}getClosestMatchingOption(e,r,t,n){return xn(this.validator,this.rootSchema,e,r,t,n,this.experimental_customMergeAllOf)}getFirstMatchingOption(e,r,t){return ht(this.validator,e,r,this.rootSchema,t)}getFromSchema(e,r,t){return $n(this.validator,this.rootSchema,e,r,t,this.experimental_customMergeAllOf)}isFilesArray(e,r){return Gn(this.validator,e,r,this.rootSchema,this.experimental_customMergeAllOf)}isMultiSelect(e){return Fn(this.validator,e,this.rootSchema,this.experimental_customMergeAllOf)}isSelect(e){return Pn(this.validator,e,this.rootSchema,this.experimental_customMergeAllOf)}omitExtraData(e,r){return function(e,r,t={},n,i){function o(e){return ke(e)}function a(e){return ke(e)}function l(r,n,o,a){if(!Array.isArray(r)||Pn(e,n,t,i))return a;const l=pn(r,!0,t),s=xn(e,t,o,l,0,lt(n),i),c=r[s];return u(ke(c)?hn(c,t,[]):l[s],o,a,!1)}function u(r,n,s,c=!0){if(void 0===n||!1===r)return;if(!0===r||!r||0===Object.keys(r).length)return s??(c?n:void 0);let f=r;const{$ref:d,allOf:h}=f;if(void 0!==d)return u(Xr(d,t),n,s,c);if(h){f=function(e,r){return r?r(e):ln(e)}(f,i);const e=f.allOf;if(e)for(let r=0;r<e.length;r++)s=u(e[r],n,s,!1)}let m=function(e,r,t){const{anyOf:n}=e;if(!Array.isArray(n))return t;if(void 0===r||Array.isArray(r)&&0===r.length||ke(r)&&0===Object.keys(r).length){let e=t;for(const t of n)e=u(t,r,e,!1);return e}return l(n,e,r,t)}(f,n,l(f.oneOf,f,n,s));const p=st(f);if("object"===p){if(!o(n))return;m=function(e,r,n){const{properties:i,additionalProperties:o,patternProperties:l}=e,s=new Set(e.required??[]);function c(e,r,i,o=!1){const l=u(r,i,n[e]);if(!o&&ke(l)){let e=a(r)?r:{};void 0!==e.$ref&&(e=Xr(e.$ref,t));const n=new Set(e.required??[]);if(Object.entries(l).every((([e,r])=>!n.has(e)&&Kn(r))))return}void 0!==l&&(n[e]=l)}if(void 0!==i)for(const[e,t]of Object.entries(i))c(e,t,r[e],s.has(e));let f;if(void 0!==l){f=[];const e=Object.entries(l).map((([e,r])=>[new RegExp(e),r])),t=new Set(Object.keys(i??{}));for(const[n,i]of Object.entries(r))if(!t.has(n)){const r=e.find((([e])=>e.test(n)));void 0===r?f.push(n):c(n,r[1],i)}}if(void 0!==o&&!1!==o){const e=o;if(void 0!==f)for(const t of f)c(t,e,r[t]);else{const t=new Set(Object.keys(i??{}));for(const[n,i]of Object.entries(r))t.has(n)||c(n,e,i)}}return n}(f,n,o(m)?m:{})}else if("array"===p){if(!Array.isArray(n))return;void 0!==f.items&&(m=function(e,r,t){const{items:n,additionalItems:i}=e;if(Array.isArray(n)){const e=Math.min(n.length,r.length);let o=0;for(;o<e;o+=1)t[o]=u(n[o],r[o]);if(!i)return t.length=e,t;for(;o<r.length;o+=1)t[o]=u(i,r[o])}else for(let e=0;e<r.length;e+=1)t[e]=u(n,r[e]);return t.length=r.length,t}(f,n,Array.isArray(m)?m:[]))}const v=function(r,n,i){const{if:o,then:l,else:s}=r;if(void 0===o)return i;const c=(a(o)?e.isValid(o,n,t):o)?l:s;return void 0===c?i:u(c,n,i,!1)}(f,n,m);if(!1===f.additionalProperties&&o(v)){const e=new Set(Object.keys(f.properties??{})),r=f.patternProperties?Object.keys(f.patternProperties).map((e=>new RegExp(e))):[];for(const t of Object.keys(v))e.has(t)||r.some((e=>e.test(t)))||delete v[t]}const y=function(e,r,t){const{dependencies:n}=e;if(void 0===n||!o(r))return t;let i=t;for(const[e,t]of Object.entries(n))e in r&&!Array.isArray(t)&&(i=u(t,r,i,!1));return i}(f,n,v);return y??(c?n:void 0)}return u(r,n)}(this.validator,e,this.rootSchema,r)}retrieveSchema(e,r,t){return un(this.validator,e,this.rootSchema,r,this.experimental_customMergeAllOf,t)}sanitizeDataForNewSchema(e,r,t){return Yn(this.validator,this.rootSchema,e,r,t,this.experimental_customMergeAllOf)}toPathSchema(e,r,t){return Qn(this.validator,e,r,this.rootSchema,t,this.experimental_customMergeAllOf)}}function ri(e,r){let t=String(e);for(;t.length<r;)t=`0${t}`;return t}function ti(e,r){const t=e<=0&&r<=0;if(!t&&(e<0||r<0))throw new Error(`Both start (${e}) and stop (${r}) must both be <= 0 or > 0, got one of each`);const n=(new Date).getFullYear(),i=t?n+e:e,o=t?n+r:r;if(i>o)return ti(r,e).reverse();const a=[];for(let e=i;e<=o;e+=1)a.push({value:e,label:ri(e,2)});return a}function ni(e,r){return function(e,r){let t=e;if(Array.isArray(r)){const e=t.split(/(%\d)/);r.forEach(((r,t)=>{const n=e.findIndex((e=>e===`%${t+1}`));n>=0&&(e[n]=r)})),t=e.join("")}return t}(e,r)}function ii(e,r=[],t){if(Array.isArray(e))return e.map((e=>ii(e,r))).filter((e=>void 0!==e));const n=""===e||null===e?-1:Number(e),i=r[n];return i?i.value:t}function oi(e,r){return Array.isArray(r)?r.some((r=>Fr(r,e))):Fr(r,e)}function ai(e,r=[],t=!1){const n=r.map(((r,t)=>oi(r.value,e)?String(t):void 0)).filter((e=>void 0!==e));return t?n:n[0]}function li(e,r,t){if(""===e||!Array.isArray(r))return t;const n=r.find((r=>String(r.value)===e));if(n)return n.value;const i=Number(e);return!Number.isNaN(i)&&i>=0&&i<r.length?r[i].value:t}function ui(e,r,t="indexed",n){return"realValue"!==t?ii(e,r,n):Array.isArray(e)?e.map((e=>li(e,r,n))):li(e,r,n)}function si(e,r,t="indexed"){return"realValue"!==t?String(r):null==e?"":String("object"==typeof e?r:e)}class ci{errorSchema={};constructor(e){this.resetAllErrors(e)}get ErrorSchema(){return this.errorSchema}getOrCreateErrorBlock(e){const r="string"==typeof e?et(e):e??[];if(0===r.length)return this.errorSchema;let t=it(this.errorSchema,r);return t||(t={},ot(this.errorSchema,r,t,!0)),t}resetAllErrors(e){return this.errorSchema=e?structuredClone(e):{},this}addErrors(e,r){const t=this.getOrCreateErrorBlock(r);let n=t[Ie];return Array.isArray(n)||(n=[],t[Ie]=n),t[Ie]=Array.isArray(e)?[...new Set([...n,...e])]:[...new Set([...n,e])],this}setErrors(e,r){const t=this.getOrCreateErrorBlock(r),n=Array.isArray(e)?[...new Set([...e])]:[e];return t[Ie]=n,this}clearErrors(e){return this.getOrCreateErrorBlock(e)[Ie]=[],this}}function fi(e,r){return or(e)&&or(r)?di(e,r,!0):Array.isArray(e)&&Array.isArray(r)&&e.length===r.length?e.flatMap(((e,t)=>{if(Fr(e,r[t]))return[];const n=fi(e,r[t]);return n.length?n.map((e=>`${t}.${e}`)):[String(t)]})):[]}function di(e,r,t=!1){if(e===r)return[];if(!or(e))return or(r)?Object.keys(r):[];if(!or(r))return Object.keys(e);const n=Object.keys(e),i=new Set(n);return[...n.filter((t=>!Fr(e[t],it(r,t)))).flatMap((n=>{if(!t)return[n];const i=fi(e[n],it(r,n));return i.length?i.map((e=>`${n}.${e}`)):[n]})),...Object.keys(r).filter((e=>!i.has(e)))]}function hi(e){const r={};return e.multipleOf&&(r.step=e.multipleOf),(e.minimum||0===e.minimum)&&(r.min=e.minimum),(e.maximum||0===e.maximum)&&(r.max=e.maximum),r}function mi(e,r,t={},n=!0){const i={type:r||"text",...hi(e)};return t.inputType?i.type=t.inputType:r||("number"===e.type?"."===$e()?(i.type="number",n&&void 0===i.step&&(i.step="any")):i.type="text":"integer"===e.type&&(i.type="number",void 0===i.step&&(i.step=1))),["date","datetime-local","time","week","month"].includes(i.type)&&(void 0!==e.formatMinimum&&(i.min=e.formatMinimum),void 0!==e.formatMaximum&&(i.max=e.formatMaximum)),t.autocomplete&&(i.autoComplete=t.autocomplete),t.autocapitalize&&(i.autoCapitalize=t.autocapitalize),t.accept&&(i.accept=t.accept),i}function pi(e){return e?.optionValueFormat??"indexed"}const vi={props:{disabled:!1},submitText:"Submit",norender:!1};function yi(e,r,t={}){const{templates:n}=r;return"ButtonTemplates"===e?n[e]:Object.hasOwn(t,e)&&"string"==typeof t[e]&&Object.hasOwn(n,t[e])?n[t[e]]:t[e]||n[e]}let bi=0;function gi(){if("test"!==it(globalThis,["process","env","NODE_ENV"]))return{};const e=new Map;return new Proxy({},{get:(r,t)=>(e.has(t)||(bi+=1,e.set(t,`test-id-${bi}`)),e.get(t))})}var wi,ki,$i={exports:{}},Si={},Ei=(ki||(ki=1,$i.exports=function(){if(wi)return Si;wi=1;var e,r=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),l=Symbol.for("react.context"),u=Symbol.for("react.server_context"),s=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen");function p(e){if("object"==typeof e&&null!==e){var m=e.$$typeof;switch(m){case r:switch(e=e.type){case n:case o:case i:case c:case f:return e;default:switch(e=e&&e.$$typeof){case u:case l:case s:case h:case d:case a:return e;default:return m}}case t:return m}}}return e=Symbol.for("react.module.reference"),Si.ContextConsumer=l,Si.ContextProvider=a,Si.Element=r,Si.ForwardRef=s,Si.Fragment=n,Si.Lazy=h,Si.Memo=d,Si.Portal=t,Si.Profiler=o,Si.StrictMode=i,Si.Suspense=c,Si.SuspenseList=f,Si.isAsyncMode=function(){return!1},Si.isConcurrentMode=function(){return!1},Si.isContextConsumer=function(e){return p(e)===l},Si.isContextProvider=function(e){return p(e)===a},Si.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},Si.isForwardRef=function(e){return p(e)===s},Si.isFragment=function(e){return p(e)===n},Si.isLazy=function(e){return p(e)===h},Si.isMemo=function(e){return p(e)===d},Si.isPortal=function(e){return p(e)===t},Si.isProfiler=function(e){return p(e)===o},Si.isStrictMode=function(e){return p(e)===i},Si.isSuspense=function(e){return p(e)===c},Si.isSuspenseList=function(e){return p(e)===f},Si.isValidElementType=function(r){return"string"==typeof r||"function"==typeof r||r===n||r===o||r===i||r===c||r===f||r===m||"object"==typeof r&&null!==r&&(r.$$typeof===h||r.$$typeof===d||r.$$typeof===a||r.$$typeof===l||r.$$typeof===s||r.$$typeof===e||void 0!==r.getModuleId)},Si.typeOf=p,Si}()),$i.exports),ji=i(Ei);const xi={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 Oi(e,r,t={}){const n=st(e);if("function"==typeof r||r&&ji.isForwardRef(ne.createElement(r))||ji.isMemo(r))return function(e){let{MergedWidget:r}=e;if(!r){const t=e.defaultProps?.options||{};r=({options:r,...n})=>we.jsx(e,{options:{...t,...r},...n}),e.MergedWidget=r}return r}(r);if("string"!=typeof r)throw new Error(`Unsupported widget definition: ${typeof r} in schema: ${JSON.stringify(e)}`);if(r in t)return Oi(e,t[r],t);if("string"==typeof n){if(!(n in xi))throw new Error(`No widget for type '${n}' in schema: ${JSON.stringify(e)}`);if(r in xi[n])return Oi(e,t[xi[n][r]],t)}throw new Error(`No widget '${r}' for type '${n}' in schema: ${JSON.stringify(e)}`)}function Ai(e){let r=0;for(let t=0;t<e.length;t++)r=(r<<5)-r+e.charCodeAt(t),r&=r;return r.toString(16)}function Ci(e){if(Array.isArray(e))return`[${e.map((e=>void 0===e?"undefined":Ci(e))).join(",")}]`;if(null===e||"object"!=typeof e)return JSON.stringify("function"==typeof e?null:e);const r=e;return`{${Object.keys(r).sort().filter((e=>{return void 0!==(t=r[e])&&"function"!=typeof t&&"symbol"!=typeof t;var t})).map((e=>`${JSON.stringify(e)}:${Ci(r[e])}`)).join(",")}}`}function _i(e){return Ai(Ci(e))}function Ii(e,r){return`${"string"==typeof e?e:e[De]}__${r}`}function Di(e){return Ii(e,"description")}function Pi(e){return Ii(e,"error")}function Fi(e){return Ii(e,"examples")}function qi(e){return Ii(e,"help")}function Ti(e){return Ii(e,"title")}function Mi(e,r=!1){const t=r?` ${Fi(e)}`:"";return`${Pi(e)} ${Di(e)} ${qi(e)}${t}`}function Ni(e,r){return`${e}-${r}`}function Ri(e,r){return Ii(e,r)}function zi(e,r){return Ii(e,`optional${r}`)}function Ui(e){return null!=e&&(!("object"==typeof e&&!Array.isArray(e))||Object.keys(e).length>0)}function Li(e,r,t){return r?t:e}function Bi(e,r,t){const n=["layoutGridLookupMap"];return at(e,Ze)&&n.unshift(Ze),it(e,[...n,r],t)}function Vi(){}function Hi(e,r=!0){if(!e)return{year:-1,month:-1,day:-1,hour:r?-1:0,minute:r?-1:0,second:r?-1:0};const t=new Date(e);if(Number.isNaN(t.getTime()))throw new Error(`Unable to parse date ${e}`);return{year:t.getUTCFullYear(),month:t.getUTCMonth()+1,day:t.getUTCDate(),hour:r?t.getUTCHours():0,minute:r?t.getUTCMinutes():0,second:r?t.getUTCSeconds():0}}function Wi(e,r,t,n={}){const{format:i}=e,o=t.isSelect(e)?Dn(e,r):void 0;let a=o?"select":"text";return i&&function(e,r,t={}){try{return Oi(e,r,t),!0}catch(e){const r=e;if(r.message&&(r.message.startsWith("No widget")||r.message.startsWith("Unsupported widget")))return!1;throw e}}(e,i,n)&&(a=i),{defaultWidget:a,enumOptions:o}}function Gi(e,r,t=!0,n=[]){if(!ke(e))return!1;let i=e,o=n;if("string"==typeof i[Le]){const e=i[Le];if(o.includes(e))return!1;o=[...o,e];try{const t=Xr(e,r);if(ke(t)){const{[Le]:e,...r}=i;i={...t,...r}}}catch{return!1}}if(!t&&(_e in i||Pe in i))return!0;const a=i[Ne],l=i[Me],u=i[Fe],s=i[_e],c=ke(s)?Object.values(s).filter(ke):[];return[...ke(a)?Object.values(a):[],...ke(l)?Object.values(l):[],...Array.isArray(u)?u:[u],i[je],...i[xe]??[],...i[Oe]??[],...i[Te]??[],...c,i.then,i.else].some((e=>Gi(e,r,!1,o)))}function Ki(e){return!!e.const||(1===e.enum?.length&&!0===e.enum[0]||(1===e.anyOf?.length?Ki(e.anyOf[0]):1===e.oneOf?.length?Ki(e.oneOf[0]):!!e.allOf&&e.allOf.some((e=>Ki(e)))))}function Zi({hideLabel:e,id:r,multiple:t,options:n,registry:i,uiSchema:o,value:a}){if(t||e)return null;const{label:l=!0}=nr(o,i.globalUiOptions);if(!l)return null;const u=n.enumOptions?.find((({value:e})=>oi(e,a))),s=u?.schema?.description;if(!s)return null;const c=yi("DescriptionFieldTemplate",i,n);return we.jsx(c,{id:Di(r),description:s,schema:u.schema,uiSchema:o,registry:i})}function Ji(e,r){if(Object.is(e,r))return!0;if(null==e||null==r)return!1;if("object"!=typeof e||"object"!=typeof r)return!1;const t=Object.keys(e),n=Object.keys(r);if(t.length!==n.length)return!1;for(let n=0;n<t.length;n+=1){const i=t[n];if(!Object.hasOwn(r,i)||!Object.is(e[i],r[i]))return!1}return!0}function Yi(e){const r=[...new Set(e.map((e=>ke(e)?st(e):void 0)).flat().filter((e=>void 0!==e)))];return 1===r.length?r[0]:r}function Xi(e,r,t,n){const{enableOptionalDataFieldForType:i=[]}=nr(n,e.globalUiOptions);let o;return o=Oe in r&&Array.isArray(r[Oe])?Yi(r[Oe]):Te in r&&Array.isArray(r[Te])?Yi(r[Te]):st(r),!(function(e,r){const{rootSchema:t,schemaUtils:n}=e;if(Fr(r,t))return!0;if(Le in t){const e=n.retrieveSchema(t);return Fr(r,e)}return!1}(e,r)||t||!o||Array.isArray(o)||!i.find((e=>e===o)))}function Qi(e,r=!0){const{year:t,month:n,day:i,hour:o=0,minute:a=0,second:l=0}=e,u=Date.UTC(t,n-1,i,o,a,l),s=new Date(u).toJSON();return r?s:s.slice(0,10)}function eo(e,r=[]){return e?ro(e,r):[]}function ro(e,r){const t=e[Ie],n=`.${r.join(".")}`,i=Array.isArray(t)?t.map((e=>({property:n,message:e,stack:`${n} ${e}`}))):[];return Object.keys(e).reduce(((t,n)=>{const i=e[n];return n!==Ie&&or(i)?t.concat(ro(i,[...r,n])):t}),i)}function to(e,r,t,n){const i=Array.isArray(t)?t:t?.path,o=""===e?[]:[e],a=i?i.concat(...o):o,l=[r.idPrefix,...a].join(r.idSeparator);let u;return r.nameGenerator&&a.length>0&&(u=r.nameGenerator(a,r.idPrefix,n)),{path:a,[De]:l,...void 0!==u&&{name:u}}}function no(e){return io(e)}function io(e){return Object.keys(e).reduce(((r,t)=>{if("addError"===t)return r;const n=e[t];return or(n)?{...r,[t]:io(n)}:{...r,[t]:n}}),{})}function oo(e){const{className:r="form-control",type:t,range:n,value:i,select:o,rootId:a,name:l,disabled:u,readonly:s,autofocus:c,registry:f,onBlur:d,onFocus:h}=e,m=`${a}_${t}`,{SelectWidget:p}=f.widgets,v=ne.useCallback((e=>o(t,e)),[o,t]);return we.jsx(p,{schema:{type:"integer"},id:m,name:l,className:r,options:{enumOptions:ti(n[0],n[1])},placeholder:t,value:i,disabled:u,readonly:s,autofocus:c,onChange:v,onBlur:d,onFocus:h,registry:f,label:"","aria-describedby":Mi(a)})}function ao(e){const r=ne.useRef(e);return Fr(e,r.current)||(r.current=e),r.current}function lo(e,r){return e.replace(";base64",`;name=${encodeURIComponent(r)};base64`)}async function uo(e){const{name:r,size:t,type:n}=e;return new Promise(((i,o)=>{const a=new window.FileReader;a.onerror=o,a.onload=e=>{i("string"==typeof e.target?.result?{dataURL:lo(e.target.result,r),name:r,size:t,type:n}:{dataURL:null,name:r,size:t,type:n})},a.readAsDataURL(e)}))}function so(e){return e.reduce(((e,r)=>{if(!r)return e;try{const{blob:t,name:n}=function(e){if(!e.includes("data:"))throw new Error("File is invalid: URI must be a dataURI");const r=e.slice(5).split(";base64,");if(2!==r.length)throw new Error("File is invalid: dataURI must be base64");const[t,n]=r,[i,...o]=t.split(";"),a=i||"",l=decodeURI(o.map((e=>e.split("="))).find((([e])=>"name"===e))?.[1]||"unknown");try{const e=atob(n),r=new Array(e.length);for(let t=0;t<e.length;t+=1)r[t]=e.charCodeAt(t);return{blob:new window.Blob([new Uint8Array(r)],{type:a}),name:l}}catch(e){throw new Error(`File is invalid: ${e.message}`)}}(r);return[...e,{dataURL:r,name:n,size:t.size,type:t.type}]}catch{return e}}),[])}function co(e){if(!e)return"";const r=new Date(e);return`${ri(r.getFullYear(),4)}-${ri(r.getMonth()+1,2)}-${ri(r.getDate(),2)}T${ri(r.getHours(),2)}:${ri(r.getMinutes(),2)}:${ri(r.getSeconds(),2)}.${ri(r.getMilliseconds(),3)}`}function fo(e,r,t=!1){if(!r)return e;const{errors:n,errorSchema:i}=e;let o=eo(r),a=r;return i&&Object.keys(i).length>0&&(a=In(i,r,!t||"preventDuplicates"),o=[...n].concat(o)),{errorSchema:a,errors:o}}function ho(e){return Array.isArray(e)?[...e].map((e=>ho(e))):ke(e)?function(e){const r=e;for(const e in r)if(Object.hasOwn(r,e)){const t=r[e];r[e]=e===Le&&"string"==typeof t&&t.startsWith("#")?Xe+t:ho(t)}return e}({...e}):e}var mo;!function(e){e.ArrayItemTitle="Item",e.MissingItems="Missing items definition",e.EmptyArray="No items yet. Use the button below to add some.",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.ExpandButton="Expand Cycle",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.OptionalObjectAdd="Add data for optional field",e.OptionalObjectRemove="Remove data for optional field",e.OptionalObjectEmptyMsg="No data for optional field",e.Type="Type",e.Value="Value",e.ClearButton="clear input",e.UnknownFieldType="Unknown field type %1",e.OptionPrefix="Option %1",e.TitleOptionPrefix="%1 option %2",e.KeyLabel="%1 Key",e.DeprecatedLabel="%1 (deprecated)",e.CycleDetected='Circular reference ($ref cycle) detected for field "%1". You may choose to expand to the next cycle break',e.InvalidObjectField='Invalid "%1" object field configuration: _%2_.',e.UnsupportedField="Unsupported field schema.",e.UnsupportedFieldWithId="Unsupported field schema for field `%1`.",e.UnsupportedFieldWithReason="Unsupported field schema: _%1_.",e.UnsupportedFieldWithIdAndReason="Unsupported field schema for field `%1`: _%2_.",e.FilesInfo="**%1** (%2, %3 bytes)"}(mo||(mo={}));let po=0;function vo(){return po+=1,`rjsf-array-item-${po}`}function yo(e){return Array.isArray(e)?e.map((e=>({key:vo(),item:e}))):[]}function bo(e){return Array.isArray(e)?e.map((e=>e.item)):[]}function go(e){return Array.isArray(e.type)?!e.type.includes("null"):"null"!==e.type}function wo(e,r,t,n){let{addable:i}=nr(n,e.globalUiOptions);return!1!==i&&(i=void 0===r.maxItems||t.length<r.maxItems),i}function ko(e,r,t,n){if("function"!=typeof e.items)return e.items;try{return e.items(r,t,n)}catch(e){return void console.error(`Error executing dynamic uiSchema.items function for item at index ${t}:`,e)}}function $o(e,r){const{schemaUtils:t,globalFormOptions:n}=e;let i=r.items;return n.useFallbackUiForUnsupportedType&&!i?i={}:Cn(r)&&function(e){return!0===e.additionalItems&&console.warn("additionalItems=true is currently not supported"),ke(e.additionalItems)}(r)&&(i=r.additionalItems),t.getDefaultFormState(i)}function So(e){const{schema:r,fieldPathId:t,uiSchema:n,formData:i=[],disabled:o=!1,readonly:a=!1,autofocus:l=!1,required:u=!1,placeholder:s,onBlur:c,onFocus:f,registry:d,rawErrors:h,name:m,onSelectChange:p}=e,{widgets:v,schemaUtils:y,globalFormOptions:b,globalUiOptions:g}=d,w=Dn(y.retrieveSchema(r.items,i),n?.items??n),{widget:k="select",title:$,...S}=nr(n,g),E=Oi(r,k,v),j=$??r.title??m,x=y.getDisplayLabel(r,n,g),O=ao(to("",b,t,!0));return we.jsx(E,{id:O[De],name:m,multiple:!0,onChange:p,onBlur:c,onFocus:f,options:{...S,enumOptions:w},schema:r,uiSchema:n,registry:d,value:i,disabled:o,readonly:a,required:u,label:j,hideLabel:!x,placeholder:s,autofocus:l,rawErrors:h,htmlName:O.name})}function Eo(e){const{schema:r,fieldPathId:t,uiSchema:n,disabled:i=!1,readonly:o=!1,autofocus:a=!1,required:l=!1,hideError:u,placeholder:s,onBlur:c,onFocus:f,formData:d=[],registry:h,rawErrors:m,name:p,onSelectChange:v}=e,{widgets:y,schemaUtils:b,globalFormOptions:g,globalUiOptions:w}=h,{widget:k,title:$,...S}=nr(n,w),E=Oi(r,k,y),j=$??r.title??p,x=b.getDisplayLabel(r,n,w),O=ao(to("",g,t,!0));return we.jsx(E,{id:O[De],name:p,multiple:!0,onChange:v,onBlur:c,onFocus:f,options:S,schema:r,uiSchema:n,registry:h,value:d,disabled:i,readonly:o,hideError:u,required:l,label:j,hideLabel:!x,placeholder:s,autofocus:a,rawErrors:m,htmlName:O.name})}function jo(e){const{schema:r,uiSchema:t,fieldPathId:n,name:i,disabled:o=!1,readonly:a=!1,autofocus:l=!1,required:u=!1,onBlur:s,onFocus:c,registry:f,formData:d=[],rawErrors:h,onSelectChange:m}=e,{widgets:p,schemaUtils:v,globalFormOptions:y,globalUiOptions:b}=f,{widget:g="files",title:w,...k}=nr(t,b),$=Oi(r,g,p),S=w??r.title??i,E=v.getDisplayLabel(r,t,b),j=ao(to("",y,n,!0));return we.jsx($,{options:k,id:j[De],name:i,multiple:!0,onChange:m,onBlur:s,onFocus:c,schema:r,uiSchema:t,value:d,disabled:o,readonly:a,required:u,registry:f,autofocus:l,rawErrors:h,label:S,hideLabel:!E,htmlName:j.name})}const xo=ne.memo((function(e){const{itemKey:r,index:t,name:n,disabled:i,hideError:o,readonly:a,registry:l,uiOptions:u,parentUiSchema:s,canAdd:c,canRemove:f=!0,canMoveUp:d,canMoveDown:h,rawItemSchema:m,itemData:p,itemUiSchema:v,parentFieldPathId:y,itemErrorSchema:b,autofocus:g,onBlur:w,onFocus:k,onChange:$,rawErrors:S,totalItems:E,title:j,handleAddItem:x,handleCopyItem:O,handleRemoveItem:A,handleReorderItems:C}=e,{schemaUtils:_,fields:{ArraySchemaField:I,SchemaField:D},globalUiOptions:P,globalFormOptions:F}=l,q=ne.useMemo((()=>_.retrieveSchema(m,p)),[_,m,p]),T=ne.useMemo((()=>to(t,F,y)),[t,F,y]),M=I||D,N=yi("ArrayFieldItemTemplate",l,u),R=_.getDisplayLabel(q,v,P),{description:z}=nr(v),U=!!z||!!q.description,{orderable:L=!0,removable:B=!0,copyable:V=!1}=u,H={moveUp:L&&d,moveDown:L&&h,copy:V&&c,remove:B&&f,toolbar:!1};H.toolbar=Object.keys(H).some((e=>H[e]));const W=ne.useCallback((e=>{x(e,t+1)}),[x,t]),G=ne.useCallback((e=>{O(e,t)}),[O,t]),K=ne.useCallback((e=>{A(e,t)}),[A,t]),Z=ne.useCallback((e=>{C(e,t,t-1)}),[C,t]),J=ne.useCallback((e=>{C(e,t,t+1)}),[C,t]),Y={children:we.jsx(M,{name:n,title:j,index:t,schema:q,uiSchema:v,formData:p,errorSchema:b,fieldPathId:T,required:go(q),onChange:$,onBlur:w,onFocus:k,registry:l,disabled:i,readonly:a,hideError:o,autofocus:g,rawErrors:S}),buttonsProps:{fieldPathId:T,disabled:i,readonly:a,canAdd:c,hasCopy:H.copy,hasMoveUp:H.moveUp,hasMoveDown:H.moveDown,hasRemove:H.remove,index:t,totalItems:E,onAddItem:W,onCopyItem:G,onRemoveItem:K,onMoveUpItem:Z,onMoveDownItem:J,registry:l,schema:q,uiSchema:v},itemKey:r,className:"rjsf-array-item",disabled:i,hasToolbar:H.toolbar,index:t,totalItems:E,readonly:a,registry:l,schema:q,uiSchema:v,parentUiSchema:s,displayLabel:R,hasDescription:U};return we.jsx(N,{...Y})}));function Oo(e){const{schema:r,uiSchema:t={},errorSchema:n,fieldPathId:i,formData:o,name:a,title:l,disabled:u=!1,readonly:s=!1,autofocus:c=!1,required:f=!1,hideError:d=!1,registry:h,onBlur:m,onFocus:p,rawErrors:v,onChange:y,keyedFormData:b,handleAddItem:g,handleCopyItem:w,handleRemoveItem:k,handleReorderItems:$}=e,S=r.title||l||a,{schemaUtils:E,fields:j,formContext:x,globalUiOptions:O}=h,{OptionalDataControlsField:A}=j,C=ne.useMemo((()=>nr(t,O)),[t,O]),_=ne.useMemo((()=>ke(r.items)?r.items:{}),[r.items]),I=ne.useMemo((()=>E.retrieveSchema(_)),[E,_]),D=ne.useMemo((()=>bo(b)),[b]),P=Xi(h,r,f,t),F=Ui(o),q=ne.useMemo((()=>wo(h,r,D,t)&&(!P||F)),[h,r,D,t,P,F]),T=F?b:[],M=P?" rjsf-optional-array-field":"",N=e.childFieldPathId??i,R=P?we.jsx(A,{...e,fieldPathId:N}):void 0,z={canAdd:q,items:T.map(((e,r)=>{const{key:i,item:o}=e,l=o,E=n?n[r]:void 0,j=ko(t,o,r,x);return we.jsx(xo,{itemKey:i,index:r,name:a&&`${a}-${r}`,registry:h,uiOptions:C,parentUiSchema:t,hideError:d,readonly:s,disabled:u,required:f,title:S?`${S}-${r+1}`:void 0,canAdd:q,canMoveUp:r>0,canMoveDown:r<D.length-1,rawItemSchema:_,parentFieldPathId:N,itemErrorSchema:E,itemData:l,itemUiSchema:j,autofocus:c&&0===r,onBlur:m,onFocus:p,rawErrors:v,totalItems:b.length,handleAddItem:g,handleCopyItem:w,handleRemoveItem:k,handleReorderItems:$,onChange:y},i)})),className:`rjsf-field rjsf-field-array rjsf-field-array-of-${I.type}${M}`,disabled:u,fieldPathId:i,uiSchema:t,onAddClick:g,readonly:s,required:f,schema:r,title:S,formData:D,rawErrors:v,registry:h,optionalDataControl:R},U=yi("ArrayFieldTemplate",h,C);return we.jsx(U,{...z})}function Ao(e){const{schema:r,uiSchema:t={},formData:n,errorSchema:i,fieldPathId:o,name:a,title:l,disabled:u=!1,readonly:s=!1,autofocus:c=!1,required:f=!1,hideError:d=!1,registry:h,onBlur:m,onFocus:p,rawErrors:v,keyedFormData:y,onChange:b,handleAddItem:g,handleCopyItem:w,handleRemoveItem:k,handleReorderItems:$}=e;let{formData:S=[]}=e;const E=r.title||l||a,{fields:j,formContext:x,globalUiOptions:O}=h,A=ne.useMemo((()=>nr(t,O)),[t,O]),{OptionalDataControlsField:C}=j,_=Xi(h,r,f,t),I=Ui(n),D=ne.useMemo((()=>Array.isArray(r.items)?r.items:[]),[r.items]),P=ke(r.additionalItems),F=e.childFieldPathId??o;S.length<D.length&&(S=S.concat(new Array(D.length-S.length)));const q=I?y:[],T=_?" rjsf-optional-array-field":"",M=_?we.jsx(C,{...e,fieldPathId:F}):void 0,N=wo(h,r,S,t)&&P&&(!_||I),R={canAdd:N,className:`rjsf-field rjsf-field-array rjsf-field-array-fixed-items${T}`,disabled:u,fieldPathId:o,formData:n,items:q.map(((e,n)=>{const{key:o,item:l}=e,j=l,O=n>=D.length,C=(O&&ke(r.additionalItems)?r.additionalItems:D[n])||{};let _;return _=O?t.additionalItems:Array.isArray(t.items)?t.items[n]:ko(t,l,n,x),we.jsx(xo,{index:n,itemKey:o,name:a&&`${a}-${n}`,registry:h,uiOptions:A,parentUiSchema:t,hideError:d,readonly:s,disabled:u,required:f,title:E?`${E}-${n+1}`:void 0,canAdd:N,canRemove:O,canMoveUp:n>=D.length+1,canMoveDown:O&&n<S.length-1,rawItemSchema:C,itemData:j,itemUiSchema:_,parentFieldPathId:F,itemErrorSchema:i?i[n]:void 0,autofocus:c&&0===n,onBlur:m,onFocus:p,rawErrors:v,totalItems:y.length,onChange:b,handleAddItem:g,handleCopyItem:w,handleRemoveItem:k,handleReorderItems:$},o)})),onAddClick:g,readonly:s,required:f,registry:h,schema:r,uiSchema:t,title:E,errorSchema:i,rawErrors:v,optionalDataControl:M},z=yi("ArrayFieldTemplate",h,A);return we.jsx(z,{...R})}function Co(e){const{schema:r,uiSchema:t,errorSchema:n,fieldPathId:i,registry:o,formData:a,onChange:l}=e,{globalFormOptions:u,schemaUtils:s,translateString:c}=o,{keyedFormData:f,updateKeyedFormData:d}=function(e=[]){const r=ne.useMemo((()=>_i(e)),[e]),[t,n]=ne.useState((()=>({formDataHash:r,keyedFormData:yo(e)})));let{keyedFormData:i,formDataHash:o}=t;if(r!==o){const t=Array.isArray(e)?e:[],a=i||[];i=t.length===a.length?a.map(((e,r)=>({key:e.key,item:t[r]}))):yo(t),o=r,n({formDataHash:o,keyedFormData:i})}return{keyedFormData:i,updateKeyedFormData:ne.useCallback((e=>{const r=bo(e),t=_i(r);return n({formDataHash:t,keyedFormData:e}),r}),[])}}(a),h=ne.useRef(f);h.current=f;const m=ne.useRef(n);m.current=n;const p=e.childFieldPathId??i,v=ne.useCallback(((e,t)=>{let n;if(e&&e.preventDefault(),m.current){n={};for(const e of Object.keys(m.current)){const r=parseInt(e,10);void 0===t||r<t?ot(n,r,m.current[r]):r>=t&&ot(n,r+1,m.current[r])}}const i={key:vo(),item:$o(o,r)},a=[...h.current];void 0!==t?a.splice(t,0,i):a.push(i),l(d(a),p.path,n)}),[o,r,l,d,p]),y=ne.useCallback(((e,r)=>{let t;if(e&&e.preventDefault(),m.current){t={};for(const e of Object.keys(m.current)){const n=parseInt(e,10);n<=r?ot(t,n,m.current[n]):n>r&&ot(t,n+1,m.current[n])}}const n={key:vo(),item:structuredClone(h.current[r].item)},i=[...h.current];void 0!==r?i.splice(r+1,0,n):i.push(n),l(d(i),p.path,t)}),[l,d,p]),b=ne.useCallback(((e,r)=>{let t;if(e&&e.preventDefault(),m.current){t={};for(const e of Object.keys(m.current)){const n=parseInt(e,10);n<r?ot(t,n,m.current[n]):n>r&&ot(t,n-1,m.current[n])}}const n=h.current.filter(((e,t)=>t!==r));l(d(n),p.path,t)}),[l,d,p]),g=ne.useCallback(((e,r,t)=>{let n;if(e&&(e.preventDefault(),e.currentTarget.blur()),m.current){n={};for(const e of Object.keys(m.current)){const i=parseInt(e,10);i===r?ot(n,t,m.current[r]):i===t?ot(n,r,m.current[t]):ot(n,e,m.current[i])}}const i=function(){const e=h.current.slice();return e.splice(r,1),e.splice(t,0,h.current[r]),e}();l(d(i),p.path,n)}),[l,d,p]),w=ne.useCallback(((e,r,t,n)=>{const i="number"==typeof r.at(-1);l(i&&void 0===e?null:e,r,t,n)}),[l]),k=ne.useCallback((e=>{l(e,p.path,void 0,p?.[De])}),[l,p]),$={...e,formData:a,fieldPathId:p,onSelectChange:k},S={...e,handleAddItem:v,handleCopyItem:y,handleRemoveItem:b,handleReorderItems:g,keyedFormData:f,onChange:w};if(!(Fe in r)){if(!u.useFallbackUiForUnsupportedType){const e=nr(t),n=yi("UnsupportedFieldTemplate",o,e);return we.jsx(n,{schema:r,fieldPathId:i,reason:c(mo.MissingItems),registry:o})}const e={...r,[Fe]:{type:void 0}};$.schema=e,S.schema=e}return s.isMultiSelect($.schema)?we.jsx(So,{...$}):Wn(t)?we.jsx(Eo,{...$}):Cn($.schema)?we.jsx(Ao,{...S}):s.isFilesArray($.schema,t)?we.jsx(jo,{...$}):we.jsx(Oo,{...S})}function _o(e){const{schema:r,name:t,uiSchema:n,fieldPathId:i,formData:o,registry:a,required:l,disabled:u,readonly:s,hideError:c,autofocus:f,title:d,onChange:h,onFocus:m,onBlur:p,rawErrors:v}=e,{title:y}=r,{widgets:b,translateString:g,globalUiOptions:w}=a,{widget:k="checkbox",title:$,label:S=!0,enumNames:E,...j}=nr(n,w),x=Oi(r,k,b),O=g(mo.YesLabel),A=g(mo.NoLabel);let C;const _=$??y??d??t;if(Array.isArray(r.oneOf))C=Dn({oneOf:r.oneOf.map((e=>{if(ke(e))return{...e,title:e.title||(!0===e.const?O:A)}})).filter((e=>e))},n);else{const e=r.enum??[!0,!1];C=!E&&2===e.length&&e.every((e=>"boolean"==typeof e))?[{value:e[0],label:e[0]?O:A},{value:e[1],label:e[1]?O:A}]:Dn({enum:e},n)}const I=ne.useCallback(((e,r,t)=>h(e,i.path,r,t)),[h,i]);return we.jsx(x,{options:{...j,enumOptions:C},schema:r,uiSchema:n,id:i.$id,name:t,onChange:I,onFocus:m,onBlur:p,label:_,hideLabel:!S,value:o,required:l,disabled:u,readonly:s,hideError:c,registry:a,autofocus:f,rawErrors:v,htmlName:i.name})}function Io(e){const[r,t]=ne.useState(!1),{name:n,registry:i,schema:o,uiSchema:a,fieldPathId:l}=e,{globalUiOptions:u}=i,s=yi("CyclicSchemaExpandTemplate",i,nr(a,u));if(!r)return we.jsx(s,{registry:i,schema:o,uiSchema:a,name:n,fieldPathId:l,onExpand:()=>t(!0)});const{fields:c}=i,{SchemaField:f}=c;return we.jsx(f,{...e,schema:{...o,[Ve]:!1}})}function Do(e){const{id:r,formData:t,displayLabel:n=!0,schema:i,name:o,uiSchema:a,required:l,disabled:u=!1,readonly:s=!1,onBlur:c,onFocus:f,registry:d,fieldPathId:h,onChange:m,errorSchema:p}=e,{translateString:v,fields:y,globalFormOptions:b}=d,[g,w]=ne.useState(function(e){const r=typeof e;return"string"===r||"number"===r||"boolean"===r?r:"object"===r?Array.isArray(e)?"array":"object":"string"}(t)),k=nr(a),$=ao(to("__internal_type_selector",b,h)),S=v(mo.Type),E=ne.useMemo((()=>({type:"string",enum:["string","number","boolean","object","array"],default:"string",title:S})),[S]);if(!b.useFallbackUiForUnsupportedType){const{reason:r=v(mo.UnknownFieldType,[String(i.type)])}=e,t=yi("UnsupportedFieldTemplate",d,k);return we.jsx(t,{schema:i,fieldPathId:h,reason:r,registry:d})}const j=yi("FallbackFieldTemplate",d,k),{SchemaField:x}=y;return we.jsx(j,{schema:i,registry:d,typeSelector:we.jsx(x,{fieldPathId:$,name:`${o}__fallback_type`,schema:E,formData:g,onChange:e=>{null!=e&&(w(e),m(function(e,r){switch(r){case"string":return String(e);case"number":{const r=Number(e);return Number.isNaN(r)?0:r}case"boolean":return Boolean(e);default:return e}}(t,e),h.path,p,r))},onBlur:c,onFocus:f,registry:d,hideLabel:!n,disabled:u,readonly:s,required:l},t?_i(t):"__empty__"),schemaField:we.jsx(x,{...e,schema:{type:g,title:v(mo.Value),..."object"===g&&{additionalProperties:!0}}})})}var Po,Fo;!function(e){e.ROW="ui:row",e.COLUMN="ui:col",e.COLUMNS="ui:columns",e.CONDITION="ui:condition"}(Po||(Po={})),function(e){e.ALL="all",e.SOME="some",e.NONE="none"}(Fo||(Fo={}));const qo=/^\$lookup=(.+)/,To="layoutGrid";function Mo(e,r){return e??r}const No=gi();function Ro(e,r,t){let n={},i=e[r];if(or(i)){const{children:e,className:r,...o}=i;if(i=e,r){const e=r.split(" ").map((e=>Bi(t,e,e))).join(" ");n={...o,className:e}}else n=o}if(!Array.isArray(i))throw new TypeError(`Expected array for "${r}" in ${JSON.stringify(e)}`);return{children:i,gridProps:n}}function zo(e,r,t){let n,i=r;if(/^\d+?$/.test(t)&&e&&"array"===e?.type&&Fe in e){const o=Number(t),a=e[Fe];n=Array.isArray(a)?o>a.length?a.at(-1):a[o]:a,i={[De]:r[De],path:[...r.path.slice(0,r.path.length-1),o]}}return{rawSchema:n,fieldPathId:i}}function Uo(e){const{childrenLayoutGridSchemaId:r,...t}=e,{registry:n,schema:i,formData:o}=t,{schemaUtils:a}=n,l=a.retrieveSchema(i,o);return r.map((e=>ne.createElement(Go,{...t,key:`layoutGrid-${_i(e)}`,schema:l,layoutGridSchema:e})))}function Lo(e){const{layoutGridSchema:r,...t}=e,{formData:n,registry:i}=t,{children:o,gridProps:a}=Ro(r,Po.CONDITION,i),{operator:l,field:u="",value:s}=a;return function(e,r,t="$0m3tH1nG Un3xP3cT3d"){const n=[r].flat().sort(),i=[t].flat().sort();switch(e){case Fo.ALL:return Fr(n,i);case Fo.SOME:return n.some((e=>i.includes(e)));case Fo.NONE:return!n.some((e=>i.includes(e)));default:return!1}}(l,it(n,et(u),null),s)?we.jsx(Uo,{...t,childrenLayoutGridSchemaId:o}):null}function Bo(e){const{layoutGridSchema:r,...t}=e,{registry:n,uiSchema:i}=t,{children:o,gridProps:a}=Ro(r,Po.COLUMN,n),l=yi("GridTemplate",n,nr(i));return we.jsx(l,{column:!0,"data-testid":No.col,...a,children:we.jsx(Uo,{...t,childrenLayoutGridSchemaId:o})})}function Vo(e){const{layoutGridSchema:r,...t}=e,{registry:n,uiSchema:i}=t,{children:o,gridProps:a}=Ro(r,Po.COLUMNS,n),l=yi("GridTemplate",n,nr(i));return o.map((e=>we.jsx(l,{column:!0,"data-testid":No.col,...a,children:we.jsx(Uo,{...t,childrenLayoutGridSchemaId:[e]})},`column-${_i(e)}`)))}function Ho(e){const{layoutGridSchema:r,...t}=e,{registry:n,uiSchema:i}=t,{children:o,gridProps:a}=Ro(r,Po.ROW,n),l=yi("GridTemplate",n,nr(i));return we.jsx(l,{...a,"data-testid":No.row,children:we.jsx(Uo,{...t,childrenLayoutGridSchemaId:o})})}function Wo(e){const{gridSchema:r,schema:t,uiSchema:n,errorSchema:i,fieldPathId:o,onBlur:a,onFocus:l,formData:u,readonly:s,registry:c,layoutGridSchema:f,...d}=e,{onChange:h}=d,{fields:m}=c,{SchemaField:p,LayoutMultiSchemaField:v}=m,y=function(e,r){let t,n,i=null,o={};if("string"==typeof r||void 0===r)t=r??"";else{const{name:a="",render:l,...u}=r;t=a,o=u,Object.entries(o).forEach((([r,t])=>{if("string"==typeof t){const n=qo.exec(t);if(Array.isArray(n)&&n.length>1){const t=n[1];o[r]=Bi(e,t,t)}}})),i=function(e,r){let t=e;return"string"==typeof t&&(t=Bi(r,t)),"function"==typeof t?t:null}(l,e),!a&&i&&(n=we.jsx(i,{...u,"data-testid":No.uiComponent}))}return{name:t,UIComponent:i,uiProps:o,rendered:n}}(c,r),{name:b,UIComponent:g,uiProps:w}=y,{schema:k,isRequired:$,isReadonly:S,optionsInfo:E,fieldPathId:j}=function(e,r,t,n,i){const{schemaUtils:o,globalFormOptions:a}=e;let l=t,u=i;const s=r.split("."),c=s.pop();let f,d=o.retrieveSchema(l,n),h=n,m=d.readOnly;s.forEach((e=>{u=to(e,a,u);const r=d?.[Ne];if(r)l=r[e]??{};else if(d&&(Te in d||Oe in d)){const r=o.findSelectedOptionInXxxOf(d,e,Te in d?Te:Oe,h);l=ft(r,e)}else{const r=zo(d,u,e);l=r.rawSchema??{},u=r.fieldPathId}h=it(h,e,{}),d=o.retrieveSchema(l,h),m=Mo(d.readOnly,m)}));let p=!1;if(d&&0!==Object.keys(d).length||(d=void 0),d&&c){d&&(Te in d||Oe in d)&&(d=o.findSelectedOptionInXxxOf(d,c,Te in d?Te:Oe,h)),u=to(c,a,u),p=void 0!==d&&Array.isArray(d.required)&&d.required.includes(c);const e=zo(d,u,c);if(e.rawSchema?(d=e.rawSchema,u=e.fieldPathId):(d=d?.[Ne]?.[c],d=d?o.retrieveSchema(d):d),m=Mo(d?.readOnly,m),d&&(Te in d||Oe in d)){const e=Te in d?Te:Oe,r=lt(d);f={options:d[e],hasDiscriminator:!!r}}}return{schema:d,isRequired:p,isReadonly:m,optionsInfo:f,fieldPathId:u}}(c,b,t,u,o),x=ao(j);if(y.rendered)return y.rendered;if(k){const e=E?.hasDiscriminator?v:p,{fieldUiSchema:r,uiReadonly:t}=function(e,r,t,n,i){const o=t?.[rr]??{},a=it(t,et(e)),l={...a?.[er]??{},...r,...o},u={...a};Object.keys(l).length>0&&(u[er]=l),Object.keys(o).length>0&&(u[rr]=o);let{readonly:s}=nr(u);if(!0===i||void 0===s&&!0===n){s=!0;const e=u[er];e&&Re in e?e[Re]=!0:u[`ui:${Re}`]=!0}return{fieldUiSchema:u,uiReadonly:s}}(b,w,n,S,s),o=et(b);return we.jsx(e,{"data-testid":E?.hasDiscriminator?No.layoutMultiSchemaField:No.field,...d,name:b,required:$,readonly:t,schema:k,uiSchema:r,errorSchema:it(i,o),fieldPathId:x,formData:it(u,o),onChange:h,onBlur:a,onFocus:l,options:E?.options,registry:c})}return g?we.jsx(g,{"data-testid":No.uiComponent,...d,name:b,required:$,formData:u,readOnly:!!S||s,errorSchema:i,uiSchema:n,schema:t,fieldPathId:o,onBlur:a,onFocus:l,registry:c,...w}):null}function Go(e){const{uiSchema:r}=e;let{layoutGridSchema:t}=e;const n=nr(r);if(!t&&To in n&&ke(n[To])&&(t=n[To]),ke(t)){if(Po.ROW in t)return we.jsx(Ho,{...e,layoutGridSchema:t});if(Po.COLUMN in t)return we.jsx(Bo,{...e,layoutGridSchema:t});if(Po.COLUMNS in t)return we.jsx(Vo,{...e,layoutGridSchema:t});if(Po.CONDITION in t)return we.jsx(Lo,{...e,layoutGridSchema:t})}return we.jsx(Wo,{...e,gridSchema:t})}function Ko(e){const{fieldPathId:r,title:t,schema:n,uiSchema:i,required:o,registry:a,name:l}=e,u=nr(i,a.globalUiOptions),{title:s}=u,{title:c}=n,f=s||t||c||l;if(!f)return null;const d=yi("TitleFieldTemplate",a,u);return we.jsx(d,{id:Ti(r),title:f,required:o,schema:n,uiSchema:i,registry:a})}function Zo(e,r){return r&&e?.required?ct({required:e.required},r):r}function Jo(e){return Ce in e||Ae in e}function Yo(e,r,t){if(Jo(e.retrieveSchema(ft(r,t))))return!0;const n=r[Ce];return or(n)&&t in n}function Xo(e,r,t,n,i){let o=e.sanitizeDataForNewSchema(t,n,r);const a=Zo(i,t);if(a){const t=Zo(i,n);let l,u=!1;const s=()=>(u||(l=t?e.getDefaultFormState(t,void 0,"excludeObjectChildren"):void 0,u=!0),l);let c,f=!1;const d=()=>(f||(c=e.getDefaultFormState(a,void 0,"excludeObjectChildren"),f=!0),c);if(or(o)){const n=o,i=or(r)?r:{},l=Object.keys(n).filter((e=>void 0!==i[e]));if(l.length>0){const r=d(),u=or(r)?r:{},c=l.filter((r=>void 0!==u[r]&&Yo(e,a,r)));if(c.length>0){const r=r=>{if(!t||!Yo(e,t,r))return!1;const n=s();return or(n)&&Fr(n[r],i[r])},a={...n};c.forEach((e=>{(void 0===n[e]||r(e))&&delete a[e]})),o=a}}}else void 0!==o&&t&&Jo(a)&&Jo(t)&&Fr(s(),r)&&void 0!==d()&&(o=void 0);o=void 0===o?d():e.getDefaultFormState(a,o,"excludeObjectChildren")}return o}function Qo(e,r,t){return e.map((({schema:e})=>e)).find((e=>{const n=e[Ne]?.[r];return it(n,Ce,it(n,Ae,"!@#!@$@#$!@$#"))===t}))}function ea(e,r,t,n,i){const o=r.map((e=>t.retrieveSchema(e,i)));let a=e;Te in e?a={...e,[Te]:o}:Oe in e&&(a={...e,[Oe]:o});const l=Dn(a,n);if(!l)throw new Error(`No enumOptions were computed from the schema ${JSON.stringify(a)}`);return l}function ra(e){const{name:r,baseType:t,disabled:n=!1,formData:i,fieldPathId:o,onBlur:a,onChange:l,options:u,onFocus:s,registry:c,uiSchema:f,schema:d,autofocus:h,readonly:m,required:p,errorSchema:v,hideError:y=!1}=e,{widgets:b,schemaUtils:g,globalUiOptions:w}=c,[k,$]=ne.useState(ea(d,u,g,f,i)),S=o[De],E=lt(d),j=yi("FieldErrorTemplate",c,u),x=yi("FieldTemplate",c,u),O=_i(d),A=_i(u),C=f?_i(f):"",_=i?_i(i):"";ne.useEffect((()=>{$(ea(d,u,g,f,i))}),[O,A,g,C,_]);const{widget:I=(E?"radio":"select"),title:D="",placeholder:P="",optionsSchemaSelector:F=E,hideError:q,...T}=nr(f);if(!F)throw new Error("No selector field provided for the LayoutMultiSchemaField");const M=it(i,F);let N=ft(k[0]?.schema,F);const R=Qo(k,F,M);N=N?.type?N:{...N,type:R?.type||t};const z=Oi(N,I,b),U=void 0===q?y:Boolean(q),L=v?.[Ie]??[],B={...v};delete B[Ie];const V=g.getDisplayLabel(d,f,w),H={enumOptions:k,...T},W=!U&&L.length>0?we.jsx(j,{fieldPathId:o,schema:d,errors:L,registry:c}):void 0;return we.jsx(x,{fieldPathId:o,id:S,schema:d,label:(D||d.title)??"",disabled:n||Array.isArray(k)&&0===k.length,uiSchema:f,required:p,readonly:!!m,registry:c,displayLabel:V,errors:W,onChange:l,onKeyRename:Vi,onKeyRenameBlur:Vi,onRemoveProperty:Vi,children:we.jsx(z,{id:S,name:r,schema:d,label:(D||d.title)??"",disabled:n||Array.isArray(k)&&0===k.length,uiSchema:f,autofocus:h,readonly:m,required:p,registry:c,multiple:!1,rawErrors:L,hideError:U,hideLabel:!V,errorSchema:B,placeholder:P,onChange:e=>{if(n||m)return;const r=Qo(k,F,e),t=Qo(k,F,M),a=Xo(g,i,r,t,d);a&&ot(a,F,e),l(a,o.path,void 0,S)},onBlur:a,onFocus:s,value:M,options:H,htmlName:o.name})})}function ta(e){const{name:r,disabled:t=!1,errorSchema:n,formData:i,fieldPathId:o,onBlur:a,onChange:l,onFocus:u,options:s,readonly:c,registry:f,required:d=!1,schema:h,uiSchema:m}=e,{schemaUtils:p}=f,v=_i(i??null),y=ne.useMemo((()=>s.map((e=>p.retrieveSchema(e,i)))),[s,p,v]),[b,g]=ne.useState((()=>{const e=lt(h);return p.getClosestMatchingOption(i,y,0,e)})),w=ne.useRef(!1),k=ne.useRef(i),$=ne.useRef(o.$id);ne.useEffect((()=>{const e=k.current,r=$.current;if(k.current=i,$.current=o.$id,!Fr(i,e)&&o.$id===r){if(w.current)return void(w.current=!1);const e=lt(h),r=p.getClosestMatchingOption(i,y,b,e);r!==b&&g(r)}}));const S=`${o.$id}${h.oneOf?"__oneof_select":"__anyof_select"}`,E=ne.useCallback((e=>{if(t||c)return;const r=void 0!==e?parseInt(e,10):-1;if(r===b)return;const n=Xo(p,i,r>=0?y[r]:void 0,b>=0?y[b]:void 0,h);g(r),w.current=!0,l(n,o.path,void 0,S)}),[b,y,t,c,h,p,i,o,l,S]),{widgets:j,fields:x,translateString:O,globalUiOptions:A}=f,{SchemaField:C}=x,_=yi("MultiSchemaFieldTemplate",f,A),I=Xi(f,h,d,m),D=Ui(i),{widget:P="select",placeholder:F,autofocus:q,autocomplete:T,title:M=h.title,...N}=nr(m,A),R=Oi({type:"number"},P,j),z=n?.[Ie]??[],U={...n};delete U[Ie];const L=p.getDisplayLabel(h,m,A),B=b>=0&&y[b]||null;let V;if(B){const{required:e,type:r}=h,t={};e&&(t.required=e),void 0===r||"type"in B||(t.type=r),V=Object.keys(t).length>0?ct(t,B):B}let H=[];Te in h&&m&&Te in m?Array.isArray(m[Te])?H=m[Te]:console.warn(`uiSchema.oneOf is not an array for "${M||r}"`):Oe in h&&m&&Oe in m&&(Array.isArray(m[Oe])?H=m[Oe]:console.warn(`uiSchema.anyOf is not an array for "${M||r}"`));let W=m;b>=0&&H.length>b&&(W=H[b]);const G=M?mo.TitleOptionPrefix:mo.OptionPrefix,K=M?[M]:[],Z=y.map(((e,r)=>{const{title:t=e.title}=nr(H[r]);return{label:t||O(G,K.concat(String(r+1))),value:r}})),J=!I||D?we.jsx(R,{id:S,name:`${r}${h.oneOf?"__oneof_select":"__anyof_select"}`,schema:{type:"number",default:0},onChange:E,onBlur:a,onFocus:u,disabled:t||0===Z.length,multiple:!1,rawErrors:z,errorSchema:U,value:b>=0?b:void 0,options:{enumOptions:Z,...N},registry:f,placeholder:F,autocomplete:T,autofocus:q,label:M??r,hideLabel:!L,readonly:c}):void 0,Y=V&&"null"!==V.type&&we.jsx(C,{...e,schema:V,uiSchema:W})||null;return we.jsx(_,{schema:h,registry:f,uiSchema:m,selector:J,optionSchemaField:Y})}function na(e){const{formData:r,onChange:t,fieldPathId:n}=e;return ne.useEffect((()=>{void 0===r&&t(null,n.path)}),[n,r,t]),null}Go.TEST_IDS=No;const ia=/\.([0-9]*0)*$/,oa=/[0.]0*$/;function aa(e){const{registry:r,onChange:t,formData:n,value:i}=e,[o,a]=ne.useState(i),{StringField:l}=r.fields,u=$e();let s=n;const c=ne.useCallback(((e,r,n,i)=>{a(e);const o="string"==typeof e?e.replace(u,"."):e,l=`${o}`.startsWith(".")?`0${o}`:o,s="string"==typeof l&&ia.exec(l)?Se(l.replace(oa,"")):Se(l);t(s,r,n,i)}),[t,u]);if("string"==typeof o&&"number"==typeof s){const e=o.replace(u,"."),r=String(s).replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),t=new RegExp(`^(${r})?\\.?0*$`);e.match(t)&&(s=o)}let f=s;if("number"==typeof s&&"."!==u){const{schema:t,uiSchema:n}=e,{schemaUtils:i,widgets:o}=r,{defaultWidget:a}=Wi(t,n,i,o),{widget:l=a,inputType:c}=nr(n);"text"===l&&"number"!==c&&(f=String(s).replace(".",u))}return we.jsx(l,{...e,formData:f,onChange:c})}var la={af:"⁡",applyfunction:"⁡",ic:"⁣",invisiblecomma:"⁣",invisibletimes:"⁢",it:"⁢",lrm:"‎",negativemediumspace:"​",negativethickspace:"​",negativethinspace:"​",negativeverythinspace:"​",nobreak:"⁠",rlm:"‏",shy:"­",zerowidthspace:"​",zwj:"‍",zwnj:"‌",downbreve:"̑",tdot:"⃛",tripledot:"⃛",dotdot:"⃜",tab:"\t",newline:"\n",emsp:" ",emsp13:" ",emsp14:" ",ensp:" ",hairsp:" ",mediumspace:" ",puncsp:" ",thinsp:" ",thinspace:" ",verythinspace:" ",nbsp:" ",nonbreakingspace:" ",numsp:" ",thickspace:"  ",oline:"‾",overbar:"‾",lowbar:"_",underbar:"_",dash:"‐",hyphen:"‐",ndash:"–",mdash:"—",horbar:"―",comma:",",semi:";",bsemi:"⁏",colon:":",Colone:"⩴",excl:"!",iexcl:"¡",quest:"?",iquest:"¿",period:".",nldr:"‥",hellip:"…",mldr:"…",centerdot:"·",middot:"·",apos:"'",lsquo:"‘",opencurlyquote:"‘",closecurlyquote:"’",rsquo:"’",rsquor:"’",lsquor:"‚",sbquo:"‚",lsaquo:"‹",rsaquo:"›",quot:'"',ldquo:"“",opencurlydoublequote:"“",closecurlydoublequote:"”",rdquo:"”",rdquor:"”",bdquo:"„",ldquor:"„",laquo:"«",raquo:"»",lpar:"(",rpar:")",lbrack:"[",lsqb:"[",rbrack:"]",rsqb:"]",lbrace:"{",lcub:"{",rbrace:"}",rcub:"}",lceil:"⌈",leftceiling:"⌈",rceil:"⌉",rightceiling:"⌉",leftfloor:"⌊",lfloor:"⌊",rfloor:"⌋",rightfloor:"⌋",lopar:"⦅",ropar:"⦆",lbrke:"⦋",rbrke:"⦌",lbrkslu:"⦍",rbrksld:"⦎",lbrksld:"⦏",rbrkslu:"⦐",langd:"⦑",rangd:"⦒",lparlt:"⦓",rpargt:"⦔",gtlpar:"⦕",ltrpar:"⦖",leftdoublebracket:"⟦",lobrk:"⟦",rightdoublebracket:"⟧",robrk:"⟧",lang:"⟨",langle:"⟨",leftanglebracket:"⟨",rang:"⟩",rangle:"⟩",rightanglebracket:"⟩",Lang:"⟪",Rang:"⟫",loang:"⟬",roang:"⟭",lbbrk:"❲",rbbrk:"❳",Verbar:"‖",Vert:"‖",sect:"§",para:"¶",commat:"@",ast:"*",midast:"*",sol:"/",bsol:"\\",amp:"&",num:"#",percnt:"%",permil:"‰",pertenk:"‱",dagger:"†",Dagger:"‡",ddagger:"‡",bull:"•",bullet:"•",hybull:"⁃",prime:"′",Prime:"″",tprime:"‴",qprime:"⁗",backprime:"‵",bprime:"‵",caret:"⁁",diacriticalgrave:"`",grave:"`",acute:"´",diacriticalacute:"´",diacriticaltilde:"˜",tilde:"˜",hat:"^",macr:"¯",strns:"¯",breve:"˘",diacriticaldot:"˙",dot:"˙",die:"¨",Dot:"¨",doubledot:"¨",uml:"¨",ring:"˚",dblac:"˝",diacriticaldoubleacute:"˝",cedil:"¸",cedilla:"¸",ogon:"˛",circ:"ˆ",caron:"ˇ",hacek:"ˇ",deg:"°",copy:"©",circledr:"®",reg:"®",copysr:"℗",weierp:"℘",wp:"℘",rx:"℞",mho:"℧",iiota:"℩",larr:"←",leftarrow:"←",shortleftarrow:"←",slarr:"←",nlarr:"↚",nleftarrow:"↚",rarr:"→",rightarrow:"→",shortrightarrow:"→",srarr:"→",nrarr:"↛",nrightarrow:"↛",shortuparrow:"↑",uarr:"↑",uparrow:"↑",darr:"↓",downarrow:"↓",shortdownarrow:"↓",harr:"↔",leftrightarrow:"↔",nharr:"↮",nleftrightarrow:"↮",updownarrow:"↕",varr:"↕",nwarr:"↖",nwarrow:"↖",upperleftarrow:"↖",nearr:"↗",nearrow:"↗",upperrightarrow:"↗",lowerrightarrow:"↘",searr:"↘",searrow:"↘",lowerleftarrow:"↙",swarr:"↙",swarrow:"↙",rarrw:"↝",rightsquigarrow:"↝",nrarrw:"↝̸",Larr:"↞",twoheadleftarrow:"↞",Uarr:"↟",Rarr:"↠",twoheadrightarrow:"↠",Darr:"↡",larrtl:"↢",leftarrowtail:"↢",rarrtl:"↣",rightarrowtail:"↣",leftteearrow:"↤",mapstoleft:"↤",mapstoup:"↥",upteearrow:"↥",map:"↦",mapsto:"↦",rightteearrow:"↦",downteearrow:"↧",mapstodown:"↧",hookleftarrow:"↩",larrhk:"↩",hookrightarrow:"↪",rarrhk:"↪",larrlp:"↫",looparrowleft:"↫",looparrowright:"↬",rarrlp:"↬",harrw:"↭",leftrightsquigarrow:"↭",lsh:"↰",rsh:"↱",ldsh:"↲",rdsh:"↳",crarr:"↵",cularr:"↶",curvearrowleft:"↶",curarr:"↷",curvearrowright:"↷",circlearrowleft:"↺",olarr:"↺",circlearrowright:"↻",orarr:"↻",leftharpoonup:"↼",leftvector:"↼",lharu:"↼",downleftvector:"↽",leftharpoondown:"↽",lhard:"↽",rightupvector:"↾",uharr:"↾",upharpoonright:"↾",leftupvector:"↿",uharl:"↿",upharpoonleft:"↿",rharu:"⇀",rightharpoonup:"⇀",rightvector:"⇀",downrightvector:"⇁",rhard:"⇁",rightharpoondown:"⇁",dharr:"⇂",downharpoonright:"⇂",rightdownvector:"⇂",dharl:"⇃",downharpoonleft:"⇃",leftdownvector:"⇃",rightarrowleftarrow:"⇄",rightleftarrows:"⇄",rlarr:"⇄",udarr:"⇅",uparrowdownarrow:"⇅",leftarrowrightarrow:"⇆",leftrightarrows:"⇆",lrarr:"⇆",leftleftarrows:"⇇",llarr:"⇇",upuparrows:"⇈",uuarr:"⇈",rightrightarrows:"⇉",rrarr:"⇉",ddarr:"⇊",downdownarrows:"⇊",leftrightharpoons:"⇋",lrhar:"⇋",reverseequilibrium:"⇋",equilibrium:"⇌",rightleftharpoons:"⇌",rlhar:"⇌",doubleleftarrow:"⇐",lArr:"⇐",Leftarrow:"⇐",nlArr:"⇍",nLeftarrow:"⇍",doubleuparrow:"⇑",uArr:"⇑",Uparrow:"⇑",doublerightarrow:"⇒",implies:"⇒",rArr:"⇒",Rightarrow:"⇒",nrArr:"⇏",nRightarrow:"⇏",dArr:"⇓",doubledownarrow:"⇓",Downarrow:"⇓",doubleleftrightarrow:"⇔",hArr:"⇔",iff:"⇔",Leftrightarrow:"⇔",nhArr:"⇎",nLeftrightarrow:"⇎",doubleupdownarrow:"⇕",Updownarrow:"⇕",vArr:"⇕",nwArr:"⇖",neArr:"⇗",seArr:"⇘",swArr:"⇙",laarr:"⇚",lleftarrow:"⇚",raarr:"⇛",rrightarrow:"⇛",zigrarr:"⇝",larrb:"⇤",leftarrowbar:"⇤",rarrb:"⇥",rightarrowbar:"⇥",downarrowuparrow:"⇵",duarr:"⇵",loarr:"⇽",roarr:"⇾",hoarr:"⇿",forall:"∀",comp:"∁",complement:"∁",part:"∂",partiald:"∂",npart:"∂̸",exist:"∃",exists:"∃",nexist:"∄",nexists:"∄",notexists:"∄",empty:"∅",emptyset:"∅",emptyv:"∅",varnothing:"∅",del:"∇",nabla:"∇",element:"∈",in:"∈",isin:"∈",isinv:"∈",notelement:"∉",notin:"∉",notinva:"∉",ni:"∋",niv:"∋",reverseelement:"∋",suchthat:"∋",notni:"∌",notniva:"∌",notreverseelement:"∌",backepsilon:"϶",bepsi:"϶",prod:"∏",product:"∏",coprod:"∐",coproduct:"∐",sum:"∑",plus:"+",plusminus:"±",plusmn:"±",pm:"±",div:"÷",divide:"÷",times:"×",lt:"<",nless:"≮",nlt:"≮",notless:"≮",nvlt:"<⃒",equals:"=",ne:"≠",notequal:"≠",bne:"=⃥",equal:"⩵",gt:">",ngt:"≯",ngtr:"≯",notgreater:"≯",nvgt:">⃒",not:"¬",verbar:"|",vert:"|",verticalline:"|",brvbar:"¦",minus:"−",minusplus:"∓",mnplus:"∓",mp:"∓",dotplus:"∔",plusdo:"∔",frasl:"⁄",backslash:"∖",setminus:"∖",setmn:"∖",smallsetminus:"∖",ssetmn:"∖",lowast:"∗",compfn:"∘",smallcircle:"∘",radic:"√",sqrt:"√",prop:"∝",proportional:"∝",propto:"∝",varpropto:"∝",vprop:"∝",infin:"∞",angrt:"∟",ang:"∠",angle:"∠",nang:"∠⃒",angmsd:"∡",measuredangle:"∡",angsph:"∢",mid:"∣",shortmid:"∣",smid:"∣",verticalbar:"∣",nmid:"∤",notverticalbar:"∤",nshortmid:"∤",nsmid:"∤",doubleverticalbar:"∥",par:"∥",parallel:"∥",shortparallel:"∥",spar:"∥",notdoubleverticalbar:"∦",npar:"∦",nparallel:"∦",nshortparallel:"∦",nspar:"∦",and:"∧",wedge:"∧",or:"∨",vee:"∨",cap:"∩",caps:"∩︀",cup:"∪",cups:"∪︀",int:"∫",integral:"∫",Int:"∬",iiint:"∭",tint:"∭",iiiint:"⨌",qint:"⨌",conint:"∮",contourintegral:"∮",oint:"∮",Conint:"∯",doublecontourintegral:"∯",cconint:"∰",cwint:"∱",clockwisecontourintegral:"∲",cwconint:"∲",awconint:"∳",counterclockwisecontourintegral:"∳",there4:"∴",therefore:"∴",becaus:"∵",because:"∵",ratio:"∶",Colon:"∷",proportion:"∷",dotminus:"∸",minusd:"∸",mddot:"∺",homtht:"∻",sim:"∼",thicksim:"∼",thksim:"∼",Tilde:"∼",nottilde:"≁",nsim:"≁",nvsim:"∼⃒",backsim:"∽",bsim:"∽",race:"∽̱",ac:"∾",mstpos:"∾",ace:"∾̳",acd:"∿",verticaltilde:"≀",wr:"≀",wreath:"≀",eqsim:"≂",equaltilde:"≂",esim:"≂",nesim:"≂̸",notequaltilde:"≂̸",sime:"≃",simeq:"≃",tildeequal:"≃",nottildeequal:"≄",nsime:"≄",nsimeq:"≄",cong:"≅",tildefullequal:"≅",ncong:"≇",nottildefullequal:"≇",simne:"≆",ap:"≈",approx:"≈",asymp:"≈",thickapprox:"≈",thkap:"≈",tildetilde:"≈",nap:"≉",napprox:"≉",nottildetilde:"≉",ape:"≊",approxeq:"≊",apid:"≋",napid:"≋̸",backcong:"≌",bcong:"≌",asympeq:"≍",CupCap:"≍",notcupcap:"≭",nvap:"≍⃒",bump:"≎",Bumpeq:"≎",humpdownhump:"≎",nbump:"≎̸",nothumpdownhump:"≎̸",bumpe:"≏",bumpeq:"≏",humpequal:"≏",nbumpe:"≏̸",nothumpequal:"≏̸",doteq:"≐",dotequal:"≐",esdot:"≐",nedot:"≐̸",doteqdot:"≑",eDot:"≑",efdot:"≒",fallingdotseq:"≒",erdot:"≓",risingdotseq:"≓",assign:"≔",colone:"≔",coloneq:"≔",ecolon:"≕",eqcolon:"≕",ecir:"≖",eqcirc:"≖",circeq:"≗",cire:"≗",wedgeq:"≙",veeeq:"≚",triangleq:"≜",trie:"≜",equest:"≟",questeq:"≟",congruent:"≡",equiv:"≡",nequiv:"≢",notcongruent:"≢",bnequiv:"≡⃥",le:"≤",leq:"≤",nle:"≰",nleq:"≰",notlessequal:"≰",nvle:"≤⃒",ge:"≥",geq:"≥",greaterequal:"≥",nge:"≱",ngeq:"≱",notgreaterequal:"≱",nvge:"≥⃒",lE:"≦",leqq:"≦",lessfullequal:"≦",nlE:"≦̸",nleqq:"≦̸",gE:"≧",geqq:"≧",greaterfullequal:"≧",ngE:"≧̸",ngeqq:"≧̸",notgreaterfullequal:"≧̸",lnE:"≨",lneqq:"≨",lvertneqq:"≨︀",lvne:"≨︀",gnE:"≩",gneqq:"≩",gvertneqq:"≩︀",gvne:"≩︀",ll:"≪",Lt:"≪",nestedlessless:"≪",nltv:"≪̸",notlessless:"≪̸",nLt:"≪⃒",gg:"≫",Gt:"≫",nestedgreatergreater:"≫",ngtv:"≫̸",notgreatergreater:"≫̸",nGt:"≫⃒",between:"≬",twixt:"≬",lesssim:"≲",lesstilde:"≲",lsim:"≲",nlsim:"≴",notlesstilde:"≴",greatertilde:"≳",gsim:"≳",gtrsim:"≳",ngsim:"≵",notgreatertilde:"≵",lessgreater:"≶",lessgtr:"≶",lg:"≶",notlessgreater:"≸",ntlg:"≸",gl:"≷",greaterless:"≷",gtrless:"≷",notgreaterless:"≹",ntgl:"≹",pr:"≺",prec:"≺",precedes:"≺",notprecedes:"⊀",npr:"⊀",nprec:"⊀",sc:"≻",succ:"≻",succeeds:"≻",notsucceeds:"⊁",nsc:"⊁",nsucc:"⊁",prcue:"≼",preccurlyeq:"≼",precedesslantequal:"≼",notprecedesslantequal:"⋠",nprcue:"⋠",sccue:"≽",succcurlyeq:"≽",succeedsslantequal:"≽",notsucceedsslantequal:"⋡",nsccue:"⋡",precedestilde:"≾",precsim:"≾",prsim:"≾",scsim:"≿",succeedstilde:"≿",succsim:"≿",notsucceedstilde:"≿̸",sub:"⊂",subset:"⊂",nsub:"⊄",notsubset:"⊂⃒",nsubset:"⊂⃒",vnsub:"⊂⃒",sup:"⊃",superset:"⊃",supset:"⊃",nsup:"⊅",notsuperset:"⊃⃒",nsupset:"⊃⃒",vnsup:"⊃⃒",sube:"⊆",subseteq:"⊆",subsetequal:"⊆",notsubsetequal:"⊈",nsube:"⊈",nsubseteq:"⊈",supe:"⊇",supersetequal:"⊇",supseteq:"⊇",notsupersetequal:"⊉",nsupe:"⊉",nsupseteq:"⊉",subne:"⊊",subsetneq:"⊊",varsubsetneq:"⊊︀",vsubne:"⊊︀",supne:"⊋",supsetneq:"⊋",varsupsetneq:"⊋︀",vsupne:"⊋︀",cupdot:"⊍",unionplus:"⊎",uplus:"⊎",sqsub:"⊏",sqsubset:"⊏",squaresubset:"⊏",notsquaresubset:"⊏̸",sqsup:"⊐",sqsupset:"⊐",squaresuperset:"⊐",notsquaresuperset:"⊐̸",sqsube:"⊑",sqsubseteq:"⊑",squaresubsetequal:"⊑",notsquaresubsetequal:"⋢",nsqsube:"⋢",sqsupe:"⊒",sqsupseteq:"⊒",squaresupersetequal:"⊒",notsquaresupersetequal:"⋣",nsqsupe:"⋣",sqcap:"⊓",sqcaps:"⊓︀",squareintersection:"⊓",sqcup:"⊔",sqcups:"⊔︀",squareunion:"⊔",circleplus:"⊕",oplus:"⊕",circleminus:"⊖",ominus:"⊖",circletimes:"⊗",otimes:"⊗",osol:"⊘",circledot:"⊙",odot:"⊙",circledcirc:"⊚",ocir:"⊚",circledast:"⊛",oast:"⊛",circleddash:"⊝",odash:"⊝",boxplus:"⊞",plusb:"⊞",boxminus:"⊟",minusb:"⊟",boxtimes:"⊠",timesb:"⊠",dotsquare:"⊡",sdotb:"⊡",righttee:"⊢",vdash:"⊢",nvdash:"⊬",dashv:"⊣",lefttee:"⊣",downtee:"⊤",top:"⊤",bot:"⊥",bottom:"⊥",perp:"⊥",uptee:"⊥",models:"⊧",doublerighttee:"⊨",vDash:"⊨",nvDash:"⊭",Vdash:"⊩",nVdash:"⊮",vvdash:"⊪",VDash:"⊫",nVDash:"⊯",prurel:"⊰",lefttriangle:"⊲",vartriangleleft:"⊲",vltri:"⊲",nltri:"⋪",notlefttriangle:"⋪",ntriangleleft:"⋪",righttriangle:"⊳",vartriangleright:"⊳",vrtri:"⊳",notrighttriangle:"⋫",nrtri:"⋫",ntriangleright:"⋫",lefttriangleequal:"⊴",ltrie:"⊴",trianglelefteq:"⊴",nltrie:"⋬",notlefttriangleequal:"⋬",ntrianglelefteq:"⋬",nvltrie:"⊴⃒",righttriangleequal:"⊵",rtrie:"⊵",trianglerighteq:"⊵",notrighttriangleequal:"⋭",nrtrie:"⋭",ntrianglerighteq:"⋭",nvrtrie:"⊵⃒",origof:"⊶",imof:"⊷",multimap:"⊸",mumap:"⊸",hercon:"⊹",intcal:"⊺",intercal:"⊺",veebar:"⊻",barvee:"⊽",angrtvb:"⊾",lrtri:"⊿",bigwedge:"⋀",Wedge:"⋀",xwedge:"⋀",bigvee:"⋁",Vee:"⋁",xvee:"⋁",bigcap:"⋂",intersection:"⋂",xcap:"⋂",bigcup:"⋃",union:"⋃",xcup:"⋃",diam:"⋄",diamond:"⋄",sdot:"⋅",sstarf:"⋆",Star:"⋆",divideontimes:"⋇",divonx:"⋇",bowtie:"⋈",ltimes:"⋉",rtimes:"⋊",leftthreetimes:"⋋",lthree:"⋋",rightthreetimes:"⋌",rthree:"⋌",backsimeq:"⋍",bsime:"⋍",curlyvee:"⋎",cuvee:"⋎",curlywedge:"⋏",cuwed:"⋏",Sub:"⋐",Subset:"⋐",Sup:"⋑",Supset:"⋑",Cap:"⋒",Cup:"⋓",fork:"⋔",pitchfork:"⋔",epar:"⋕",lessdot:"⋖",ltdot:"⋖",gtdot:"⋗",gtrdot:"⋗",Ll:"⋘",nll:"⋘̸",Gg:"⋙",ggg:"⋙",ngg:"⋙̸",leg:"⋚",lesg:"⋚︀",lesseqgtr:"⋚",lessequalgreater:"⋚",gel:"⋛",gesl:"⋛︀",greaterequalless:"⋛",gtreqless:"⋛",cuepr:"⋞",curlyeqprec:"⋞",cuesc:"⋟",curlyeqsucc:"⋟",lnsim:"⋦",gnsim:"⋧",precnsim:"⋨",prnsim:"⋨",scnsim:"⋩",succnsim:"⋩",vellip:"⋮",ctdot:"⋯",utdot:"⋰",dtdot:"⋱",disin:"⋲",isinsv:"⋳",isins:"⋴",isindot:"⋵",notindot:"⋵̸",notinvc:"⋶",notinvb:"⋷",isine:"⋹",notine:"⋹̸",nisd:"⋺",xnis:"⋻",nis:"⋼",notnivc:"⋽",notnivb:"⋾",barwed:"⌅",barwedge:"⌅",Barwed:"⌆",doublebarwedge:"⌆",drcrop:"⌌",dlcrop:"⌍",urcrop:"⌎",ulcrop:"⌏",bnot:"⌐",profline:"⌒",profsurf:"⌓",telrec:"⌕",target:"⌖",ulcorn:"⌜",ulcorner:"⌜",urcorn:"⌝",urcorner:"⌝",dlcorn:"⌞",llcorner:"⌞",drcorn:"⌟",lrcorner:"⌟",frown:"⌢",sfrown:"⌢",smile:"⌣",ssmile:"⌣",cylcty:"⌭",profalar:"⌮",topbot:"⌶",ovbar:"⌽",solbar:"⌿",angzarr:"⍼",lmoust:"⎰",lmoustache:"⎰",rmoust:"⎱",rmoustache:"⎱",overbracket:"⎴",tbrk:"⎴",bbrk:"⎵",underbracket:"⎵",bbrktbrk:"⎶",overparenthesis:"⏜",underparenthesis:"⏝",overbrace:"⏞",underbrace:"⏟",trpezium:"⏢",elinters:"⏧",blank:"␣",boxh:"─",horizontalline:"─",boxv:"│",boxdr:"┌",boxdl:"┐",boxur:"└",boxul:"┘",boxvr:"├",boxvl:"┤",boxhd:"┬",boxhu:"┴",boxvh:"┼",boxH:"═",boxV:"║",boxdR:"╒",boxDr:"╓",boxDR:"╔",boxdL:"╕",boxDl:"╖",boxDL:"╗",boxuR:"╘",boxUr:"╙",boxUR:"╚",boxuL:"╛",boxUl:"╜",boxUL:"╝",boxvR:"╞",boxVr:"╟",boxVR:"╠",boxvL:"╡",boxVl:"╢",boxVL:"╣",boxHd:"╤",boxhD:"╥",boxHD:"╦",boxHu:"╧",boxhU:"╨",boxHU:"╩",boxvH:"╪",boxVh:"╫",boxVH:"╬",uhblk:"▀",lhblk:"▄",block:"█",blk14:"░",blk12:"▒",blk34:"▓",squ:"□",square:"□",blacksquare:"▪",filledverysmallsquare:"▪",squarf:"▪",squf:"▪",emptyverysmallsquare:"▫",rect:"▭",marker:"▮",fltns:"▱",bigtriangleup:"△",xutri:"△",blacktriangle:"▴",utrif:"▴",triangle:"▵",utri:"▵",blacktriangleright:"▸",rtrif:"▸",rtri:"▹",triangleright:"▹",bigtriangledown:"▽",xdtri:"▽",blacktriangledown:"▾",dtrif:"▾",dtri:"▿",triangledown:"▿",blacktriangleleft:"◂",ltrif:"◂",ltri:"◃",triangleleft:"◃",loz:"◊",lozenge:"◊",cir:"○",tridot:"◬",bigcirc:"◯",xcirc:"◯",ultri:"◸",urtri:"◹",lltri:"◺",emptysmallsquare:"◻",filledsmallsquare:"◼",bigstar:"★",starf:"★",star:"☆",phone:"☎",female:"♀",male:"♂",spades:"♠",spadesuit:"♠",clubs:"♣",clubsuit:"♣",hearts:"♥",heartsuit:"♥",diamondsuit:"♦",diams:"♦",sung:"♪",check:"✓",checkmark:"✓",cross:"✗",malt:"✠",maltese:"✠",sext:"✶",verticalseparator:"❘",bsolhsub:"⟈",suphsol:"⟉",longleftarrow:"⟵",xlarr:"⟵",longrightarrow:"⟶",xrarr:"⟶",longleftrightarrow:"⟷",xharr:"⟷",doublelongleftarrow:"⟸",Longleftarrow:"⟸",xlArr:"⟸",doublelongrightarrow:"⟹",Longrightarrow:"⟹",xrArr:"⟹",doublelongleftrightarrow:"⟺",Longleftrightarrow:"⟺",xhArr:"⟺",longmapsto:"⟼",xmap:"⟼",dzigrarr:"⟿",nvlarr:"⤂",nvrarr:"⤃",nvharr:"⤄",Map:"⤅",lbarr:"⤌",bkarow:"⤍",lBarr:"⤎",dbkarow:"⤏",rBarr:"⤏",drbkarow:"⤐",rbarr:"⤐",RBarr:"⤐",ddotrahd:"⤑",uparrowbar:"⤒",downarrowbar:"⤓",Rarrtl:"⤖",latail:"⤙",ratail:"⤚",lAtail:"⤛",rAtail:"⤜",larrfs:"⤝",rarrfs:"⤞",larrbfs:"⤟",rarrbfs:"⤠",nwarhk:"⤣",nearhk:"⤤",hksearow:"⤥",searhk:"⤥",hkswarow:"⤦",swarhk:"⤦",nwnear:"⤧",nesear:"⤨",toea:"⤨",seswar:"⤩",tosa:"⤩",swnwar:"⤪",rarrc:"⤳",nrarrc:"⤳̸",cudarrr:"⤵",ldca:"⤶",rdca:"⤷",cudarrl:"⤸",larrpl:"⤹",curarrm:"⤼",cularrp:"⤽",rarrpl:"⥅",harrcir:"⥈",uarrocir:"⥉",lurdshar:"⥊",ldrushar:"⥋",leftrightvector:"⥎",rightupdownvector:"⥏",downleftrightvector:"⥐",leftupdownvector:"⥑",leftvectorbar:"⥒",rightvectorbar:"⥓",rightupvectorbar:"⥔",rightdownvectorbar:"⥕",downleftvectorbar:"⥖",downrightvectorbar:"⥗",leftupvectorbar:"⥘",leftdownvectorbar:"⥙",leftteevector:"⥚",rightteevector:"⥛",rightupteevector:"⥜",rightdownteevector:"⥝",downleftteevector:"⥞",downrightteevector:"⥟",leftupteevector:"⥠",leftdownteevector:"⥡",lhar:"⥢",uhar:"⥣",rhar:"⥤",dhar:"⥥",luruhar:"⥦",ldrdhar:"⥧",ruluhar:"⥨",rdldhar:"⥩",lharul:"⥪",llhard:"⥫",rharul:"⥬",lrhard:"⥭",udhar:"⥮",upequilibrium:"⥮",duhar:"⥯",reverseupequilibrium:"⥯",roundimplies:"⥰",erarr:"⥱",simrarr:"⥲",larrsim:"⥳",rarrsim:"⥴",rarrap:"⥵",ltlarr:"⥶",gtrarr:"⥸",subrarr:"⥹",suplarr:"⥻",lfisht:"⥼",rfisht:"⥽",ufisht:"⥾",dfisht:"⥿",vzigzag:"⦚",vangrt:"⦜",angrtvbd:"⦝",ange:"⦤",range:"⦥",dwangle:"⦦",uwangle:"⦧",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",bemptyv:"⦰",demptyv:"⦱",cemptyv:"⦲",raemptyv:"⦳",laemptyv:"⦴",ohbar:"⦵",omid:"⦶",opar:"⦷",operp:"⦹",olcross:"⦻",odsold:"⦼",olcir:"⦾",ofcir:"⦿",olt:"⧀",ogt:"⧁",cirscir:"⧂",cirE:"⧃",solb:"⧄",bsolb:"⧅",boxbox:"⧉",trisb:"⧍",rtriltri:"⧎",lefttrianglebar:"⧏",notlefttrianglebar:"⧏̸",righttrianglebar:"⧐",notrighttrianglebar:"⧐̸",iinfin:"⧜",infintie:"⧝",nvinfin:"⧞",eparsl:"⧣",smeparsl:"⧤",eqvparsl:"⧥",blacklozenge:"⧫",lozf:"⧫",ruledelayed:"⧴",dsol:"⧶",bigodot:"⨀",xodot:"⨀",bigoplus:"⨁",xoplus:"⨁",bigotimes:"⨂",xotime:"⨂",biguplus:"⨄",xuplus:"⨄",bigsqcup:"⨆",xsqcup:"⨆",fpartint:"⨍",cirfnint:"⨐",awint:"⨑",rppolint:"⨒",scpolint:"⨓",npolint:"⨔",pointint:"⨕",quatint:"⨖",intlarhk:"⨗",pluscir:"⨢",plusacir:"⨣",simplus:"⨤",plusdu:"⨥",plussim:"⨦",plustwo:"⨧",mcomma:"⨩",minusdu:"⨪",loplus:"⨭",roplus:"⨮",Cross:"⨯",timesd:"⨰",timesbar:"⨱",smashp:"⨳",lotimes:"⨴",rotimes:"⨵",otimesas:"⨶",Otimes:"⨷",odiv:"⨸",triplus:"⨹",triminus:"⨺",tritime:"⨻",intprod:"⨼",iprod:"⨼",amalg:"⨿",capdot:"⩀",ncup:"⩂",ncap:"⩃",capand:"⩄",cupor:"⩅",cupcap:"⩆",capcup:"⩇",cupbrcap:"⩈",capbrcup:"⩉",cupcup:"⩊",capcap:"⩋",ccups:"⩌",ccaps:"⩍",ccupssm:"⩐",And:"⩓",Or:"⩔",andand:"⩕",oror:"⩖",orslope:"⩗",andslope:"⩘",andv:"⩚",orv:"⩛",andd:"⩜",ord:"⩝",wedbar:"⩟",sdote:"⩦",simdot:"⩪",congdot:"⩭",ncongdot:"⩭̸",easter:"⩮",apacir:"⩯",apE:"⩰",nape:"⩰̸",eplus:"⩱",pluse:"⩲",Esim:"⩳",ddotseq:"⩷",eddot:"⩷",equivdd:"⩸",ltcir:"⩹",gtcir:"⩺",ltquest:"⩻",gtquest:"⩼",leqslant:"⩽",les:"⩽",lessslantequal:"⩽",nleqslant:"⩽̸",nles:"⩽̸",notlessslantequal:"⩽̸",geqslant:"⩾",ges:"⩾",greaterslantequal:"⩾",ngeqslant:"⩾̸",nges:"⩾̸",notgreaterslantequal:"⩾̸",lesdot:"⩿",gesdot:"⪀",lesdoto:"⪁",gesdoto:"⪂",lesdotor:"⪃",gesdotol:"⪄",lap:"⪅",lessapprox:"⪅",gap:"⪆",gtrapprox:"⪆",lne:"⪇",lneq:"⪇",gne:"⪈",gneq:"⪈",lnap:"⪉",lnapprox:"⪉",gnap:"⪊",gnapprox:"⪊",lEg:"⪋",lesseqqgtr:"⪋",gEl:"⪌",gtreqqless:"⪌",lsime:"⪍",gsime:"⪎",lsimg:"⪏",gsiml:"⪐",lge:"⪑",gle:"⪒",lesges:"⪓",gesles:"⪔",els:"⪕",eqslantless:"⪕",egs:"⪖",eqslantgtr:"⪖",elsdot:"⪗",egsdot:"⪘",el:"⪙",eg:"⪚",siml:"⪝",simg:"⪞",simle:"⪟",simge:"⪠",lessless:"⪡",notnestedlessless:"⪡̸",greatergreater:"⪢",notnestedgreatergreater:"⪢̸",glj:"⪤",gla:"⪥",ltcc:"⪦",gtcc:"⪧",lescc:"⪨",gescc:"⪩",smt:"⪪",lat:"⪫",smte:"⪬",smtes:"⪬︀",late:"⪭",lates:"⪭︀",bumpE:"⪮",pre:"⪯",precedesequal:"⪯",preceq:"⪯",notprecedesequal:"⪯̸",npre:"⪯̸",npreceq:"⪯̸",sce:"⪰",succeedsequal:"⪰",succeq:"⪰",notsucceedsequal:"⪰̸",nsce:"⪰̸",nsucceq:"⪰̸",prE:"⪳",scE:"⪴",precneqq:"⪵",prne:"⪵",scne:"⪶",succneqq:"⪶",prap:"⪷",precapprox:"⪷",scap:"⪸",succapprox:"⪸",precnapprox:"⪹",prnap:"⪹",scnap:"⪺",succnapprox:"⪺",Pr:"⪻",Sc:"⪼",subdot:"⪽",supdot:"⪾",subplus:"⪿",supplus:"⫀",submult:"⫁",supmult:"⫂",subedot:"⫃",supedot:"⫄",subE:"⫅",subseteqq:"⫅",nsubE:"⫅̸",nsubseteqq:"⫅̸",supE:"⫆",supseteqq:"⫆",nsupE:"⫆̸",nsupseteqq:"⫆̸",subsim:"⫇",supsim:"⫈",subnE:"⫋",subsetneqq:"⫋",varsubsetneqq:"⫋︀",vsubnE:"⫋︀",supnE:"⫌",supsetneqq:"⫌",varsupsetneqq:"⫌︀",vsupnE:"⫌︀",csub:"⫏",csup:"⫐",csube:"⫑",csupe:"⫒",subsup:"⫓",supsub:"⫔",subsub:"⫕",supsup:"⫖",suphsub:"⫗",supdsub:"⫘",forkv:"⫙",topfork:"⫚",mlcp:"⫛",Dashv:"⫤",doublelefttee:"⫤",vdashl:"⫦",barv:"⫧",vbar:"⫨",vbarv:"⫩",Vbar:"⫫",Not:"⫬",bNot:"⫭",rnmid:"⫮",cirmid:"⫯",midcir:"⫰",topcir:"⫱",nhpar:"⫲",parsim:"⫳",parsl:"⫽",nparsl:"⫽⃥",flat:"♭",natur:"♮",natural:"♮",sharp:"♯",curren:"¤",cent:"¢",dollar:"$",pound:"£",yen:"¥",euro:"€",sup1:"¹",frac12:"½",half:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",sup2:"²",frac23:"⅔",frac25:"⅖",sup3:"³",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",afr:"𝔞",aopf:"𝕒",ascr:"𝒶",Afr:"𝔄",Aopf:"𝔸",Ascr:"𝒜",ordf:"ª",aacute:"á",Aacute:"Á",agrave:"à",Agrave:"À",abreve:"ă",Abreve:"Ă",acirc:"â",Acirc:"Â",aring:"å",angst:"Å",Aring:"Å",auml:"ä",Auml:"Ä",atilde:"ã",Atilde:"Ã",aogon:"ą",Aogon:"Ą",amacr:"ā",Amacr:"Ā",aelig:"Æ",AElig:"Æ",bfr:"𝔟",bopf:"𝕓",bscr:"𝒷",bernou:"ℬ",bernoullis:"ℬ",Bfr:"𝔅",Bopf:"𝔹",Bscr:"ℬ",cfr:"𝔠",copf:"𝕔",cscr:"𝒸",cayleys:"ℭ",Cfr:"ℭ",complexes:"ℂ",Copf:"ℂ",Cscr:"𝒞",cacute:"ć",Cacute:"Ć",ccirc:"ĉ",Ccirc:"Ĉ",ccaron:"č",Ccaron:"Č",cdot:"ċ",Cdot:"Ċ",ccedil:"ç",Ccedil:"Ç",incare:"℅",dfr:"𝔡",differentiald:"ⅆ",dopf:"𝕕",dscr:"𝒹",capitaldifferentiald:"ⅅ",dd:"ⅅ",DD:"ⅅ",Dfr:"𝔇",Dopf:"𝔻",Dscr:"𝒟",dcaron:"ď",Dcaron:"Ď",dstrok:"đ",Dstrok:"Đ",eth:"ð",ETH:"Ð",ee:"ⅇ",efr:"𝔢",eopf:"𝕖",escr:"ℯ",exponentiale:"ⅇ",Efr:"𝔈",Eopf:"𝔼",Escr:"ℰ",expectation:"ℰ",eacute:"é",Eacute:"É",egrave:"è",Egrave:"È",ecirc:"ê",Ecirc:"Ê",ecaron:"ě",Ecaron:"Ě",euml:"ë",Euml:"Ë",edot:"ė",Edot:"Ė",eogon:"ę",Eogon:"Ę",emacr:"ē",Emacr:"Ē",ffr:"𝔣",fopf:"𝕗",fscr:"𝒻",Ffr:"𝔉",Fopf:"𝔽",fouriertrf:"ℱ",Fscr:"ℱ",fflig:"ff",ffilig:"ffi",ffllig:"ffl",filig:"fi",fjlig:"fj",fllig:"fl",fnof:"ƒ",gfr:"𝔤",gopf:"𝕘",gscr:"ℊ",Gfr:"𝔊",Gopf:"𝔾",Gscr:"𝒢",gacute:"ǵ",gbreve:"ğ",Gbreve:"Ğ",gcirc:"ĝ",Gcirc:"Ĝ",gdot:"ġ",Gdot:"Ġ",gcedil:"Ģ",hfr:"𝔥",hopf:"𝕙",hscr:"𝒽",planckh:"ℎ",hamilt:"ℋ",Hfr:"ℌ",hilbertspace:"ℋ",Hopf:"ℍ",Hscr:"ℋ",poincareplane:"ℌ",quaternions:"ℍ",hcirc:"ĥ",Hcirc:"Ĥ",hbar:"ℏ",hslash:"ℏ",hstrok:"ħ",planck:"ℏ",plankv:"ℏ",Hstrok:"Ħ",ifr:"𝔦",ii:"ⅈ",imaginaryi:"ⅈ",iopf:"𝕚",iscr:"𝒾",Ifr:"ℑ",im:"ℑ",image:"ℑ",imagline:"ℐ",imagpart:"ℑ",Iopf:"𝕀",Iscr:"ℐ",iacute:"í",Iacute:"Í",igrave:"ì",Igrave:"Ì",icirc:"î",Icirc:"Î",iuml:"ï",Iuml:"Ï",itilde:"ĩ",Itilde:"Ĩ",idot:"İ",iogon:"į",Iogon:"Į",imacr:"ī",Imacr:"Ī",ijlig:"IJ",IJlig:"IJ",imath:"ı",inodot:"ı",jfr:"𝔧",jopf:"𝕛",jscr:"𝒿",Jfr:"𝔍",Jopf:"𝕁",Jscr:"𝒥",jcirc:"ĵ",Jcirc:"Ĵ",jmath:"ȷ",kfr:"𝔨",kopf:"𝕜",kscr:"𝓀",Kfr:"𝔎",Kopf:"𝕂",Kscr:"𝒦",kcedil:"ķ",Kcedil:"Ķ",ell:"ℓ",lfr:"𝔩",lopf:"𝕝",lscr:"𝓁",lagran:"ℒ",laplacetrf:"ℒ",Lfr:"𝔏",Lopf:"𝕃",Lscr:"ℒ",lacute:"ĺ",Lacute:"Ĺ",lcaron:"ľ",Lcaron:"Ľ",lcedil:"ļ",Lcedil:"Ļ",lstrok:"ł",Lstrok:"Ł",lmidot:"ŀ",Lmidot:"Ŀ",mfr:"𝔪",mopf:"𝕞",mscr:"𝓂",mellintrf:"ℳ",Mfr:"𝔐",Mopf:"𝕄",Mscr:"ℳ",phmmat:"ℳ",nfr:"𝔫",nopf:"𝕟",nscr:"𝓃",naturals:"ℕ",Nfr:"𝔑",Nopf:"ℕ",Nscr:"𝒩",nacute:"ń",Nacute:"Ń",ncaron:"ň",Ncaron:"Ň",ntilde:"ñ",Ntilde:"Ñ",ncedil:"ņ",Ncedil:"Ņ",numero:"№",eng:"ŋ",ENG:"Ŋ",ofr:"𝔬",oopf:"𝕠",order:"ℴ",orderof:"ℴ",oscr:"ℴ",Ofr:"𝔒",Oopf:"𝕆",Oscr:"𝒪",ordm:"º",oacute:"ó",Oacute:"Ó",ograve:"ò",Ograve:"Ò",ocirc:"ô",Ocirc:"Ô",ouml:"ö",Ouml:"Ö",odblac:"ő",Odblac:"Ő",otilde:"õ",Otilde:"Õ",oslash:"ø",Oslash:"Ø",omacr:"ō",Omacr:"Ō",oelig:"Œ",OElig:"Œ",pfr:"𝔭",popf:"𝕡",pscr:"𝓅",Pfr:"𝔓",Popf:"ℙ",primes:"ℙ",Pscr:"𝒫",qfr:"𝔮",qopf:"𝕢",qscr:"𝓆",Qfr:"𝔔",Qopf:"ℚ",Qscr:"𝒬",rationals:"ℚ",kgreen:"ĸ",rfr:"𝔯",ropf:"𝕣",rscr:"𝓇",re:"ℜ",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",Rfr:"ℜ",Ropf:"ℝ",Rscr:"ℛ",racute:"ŕ",Racute:"Ŕ",rcaron:"ř",Rcaron:"Ř",rcedil:"ŗ",Rcedil:"Ŗ",sfr:"𝔰",sopf:"𝕤",sscr:"𝓈",Sfr:"𝔖",Sopf:"𝕊",Sscr:"𝒮",circleds:"Ⓢ",os:"Ⓢ",sacute:"ś",Sacute:"Ś",scirc:"ŝ",Scirc:"Ŝ",scaron:"š",Scaron:"Š",scedil:"ş",Scedil:"Ş",szlig:"ß",tfr:"𝔱",topf:"𝕥",tscr:"𝓉",Tfr:"𝔗",Topf:"𝕋",Tscr:"𝒯",tcaron:"ť",Tcaron:"Ť",tcedil:"ţ",Tcedil:"Ţ",trade:"™",tstrok:"ŧ",Tstrok:"Ŧ",ufr:"𝔲",uopf:"𝕦",uscr:"𝓊",Ufr:"𝔘",Uopf:"𝕌",Uscr:"𝒰",uacute:"ú",Uacute:"Ú",ugrave:"ù",Ugrave:"Ù",ubreve:"ŭ",Ubreve:"Ŭ",ucirc:"û",Ucirc:"Û",uring:"ů",Uring:"Ů",uuml:"ü",Uuml:"Ü",udblac:"ű",Udblac:"Ű",utilde:"ũ",Utilde:"Ũ",uogon:"ų",Uogon:"Ų",umacr:"ū",Umacr:"Ū",vfr:"𝔳",vopf:"𝕧",vscr:"𝓋",Vfr:"𝔙",Vopf:"𝕍",Vscr:"𝒱",wfr:"𝔴",wopf:"𝕨",wscr:"𝓌",Wfr:"𝔚",Wopf:"𝕎",Wscr:"𝒲",wcirc:"ŵ",Wcirc:"Ŵ",xfr:"𝔵",xopf:"𝕩",xscr:"𝓍",Xfr:"𝔛",Xopf:"𝕏",Xscr:"𝒳",yfr:"𝔶",yopf:"𝕪",yscr:"𝓎",Yfr:"𝔜",Yopf:"𝕐",Yscr:"𝒴",yacute:"ý",Yacute:"Ý",ycirc:"ŷ",Ycirc:"Ŷ",yuml:"ÿ",Yuml:"Ÿ",zfr:"𝔷",zopf:"𝕫",zscr:"𝓏",integers:"ℤ",zeetrf:"ℨ",Zfr:"ℨ",Zopf:"ℤ",Zscr:"𝒵",zacute:"ź",Zacute:"Ź",zcaron:"ž",Zcaron:"Ž",zdot:"ż",Zdot:"Ż",imped:"Ƶ",thorn:"þ",THORN:"Þ",napos:"ʼn",alpha:"α",Alpha:"Α",beta:"β",Beta:"Β",gamma:"γ",Gamma:"Γ",delta:"δ",Delta:"Δ",epsi:"ε",epsilon:"ε",epsiv:"ϵ",straightepsilon:"ϵ",varepsilon:"ϵ",Epsilon:"Ε",digamma:"ϝ",gammad:"ϝ",Gammad:"Ϝ",zeta:"ζ",Zeta:"Ζ",eta:"η",Eta:"Η",theta:"θ",thetasym:"ϑ",thetav:"ϑ",vartheta:"ϑ",Theta:"Θ",iota:"ι",Iota:"Ι",kappa:"κ",kappav:"ϰ",varkappa:"ϰ",Kappa:"Κ",lambda:"λ",Lambda:"Λ",mu:"μ",micro:"µ",Mu:"Μ",nu:"ν",Nu:"Ν",xi:"ξ",Xi:"Ξ",omicron:"ο",Omicron:"Ο",pi:"π",piv:"ϖ",varpi:"ϖ",Pi:"Π",rho:"ρ",rhov:"ϱ",varrho:"ϱ",Rho:"Ρ",sigma:"σ",Sigma:"Σ",sigmaf:"ς",sigmav:"ς",varsigma:"ς",tau:"τ",Tau:"Τ",upsi:"υ",upsilon:"υ",Upsilon:"Υ",Upsi:"ϒ",upsih:"ϒ",phi:"φ",phiv:"ϕ",straightphi:"ϕ",varphi:"ϕ",Phi:"Φ",chi:"χ",Chi:"Χ",psi:"ψ",Psi:"Ψ",omega:"ω",ohm:"Ω",Omega:"Ω",acy:"а",Acy:"А",bcy:"б",Bcy:"Б",vcy:"в",Vcy:"В",gcy:"г",Gcy:"Г",gjcy:"Ѓ",GJcy:"Ѓ",dcy:"д",Dcy:"Д",djcy:"Ђ",DJcy:"Ђ",iecy:"Е",IEcy:"Е",iocy:"Ё",IOcy:"Ё",jukcy:"є",Jukcy:"Є",zhcy:"Ж",ZHcy:"Ж",zcy:"з",Zcy:"З",dscy:"Ѕ",DScy:"Ѕ",icy:"и",Icy:"И",iukcy:"і",Iukcy:"І",yicy:"Ї",YIcy:"Ї",jcy:"й",Jcy:"Й",jsercy:"ј",Jsercy:"Ј",kcy:"к",Kcy:"К",kjcy:"Ќ",KJcy:"Ќ",lcy:"л",Lcy:"Л",ljcy:"Љ",LJcy:"Љ",mcy:"м",Mcy:"М",ncy:"н",Ncy:"Н",njcy:"Њ",NJcy:"Њ",ocy:"о",Ocy:"О",pcy:"п",Pcy:"П",rcy:"р",Rcy:"Р",scy:"с",Scy:"С",tcy:"т",Tcy:"Т",tshcy:"ћ",TSHcy:"Ћ",ucy:"у",Ucy:"У",ubrcy:"ў",Ubrcy:"Ў",fcy:"ф",Fcy:"Ф",khcy:"Х",KHcy:"Х",tscy:"Ц",TScy:"Ц",chcy:"Ч",CHcy:"Ч",dzcy:"Џ",DZcy:"Џ",shcy:"Ш",SHcy:"Ш",shchcy:"щ",SHCHcy:"Щ",hardcy:"ъ",HARDcy:"Ъ",ycy:"ы",Ycy:"Ы",softcy:"ь",SOFTcy:"Ь",ecy:"э",Ecy:"Э",yucy:"Ю",YUcy:"Ю",yacy:"Я",YAcy:"Я",alefsym:"ℵ",aleph:"ℵ",beth:"ℶ",gimel:"ℷ",daleth:"ℸ"},ua=32,sa=13,ca=10,fa=96,da=126,ha=91,ma=94,pa=62,va=35,ya=45,ba=61,ga=92,wa=42,ka=95,$a=60,Sa=93,Ea=33,ja=58,xa=102,Oa=104,Aa=119,Ca=116,_a=63,Ia=46,Da=47,Pa=39,Fa=34,qa=43,Ta=124,Ma=123,Na=40,Ra=41,za=48,Ua=57,La=65,Ba=90,Va=97,Ha=122,Wa=128,Ga=32,Ka=0,Za=1,Ja=2,Ya=3,Xa=4,Qa=5,el=6,rl=7,tl=8,nl=9,il=10,ol=11,al=12,ll=13,ul=14,sl=15,cl=16,fl=18,dl=19,hl=20,ml=21,pl=22,vl=/&([a-zA-Z0-9]+|#[0-9]{1,7}|#x[0-9a-fA-F]{1,6});/gi,yl={class:"className",for:"htmlFor",allowfullscreen:"allowFullScreen",allowtransparency:"allowTransparency",autocomplete:"autoComplete",autofocus:"autoFocus",autoplay:"autoPlay",cellpadding:"cellPadding",cellspacing:"cellSpacing",charset:"charSet",classid:"classId",colspan:"colSpan",contenteditable:"contentEditable",contextmenu:"contextMenu",crossorigin:"crossOrigin",enctype:"encType",formaction:"formAction",formenctype:"formEncType",formmethod:"formMethod",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",hreflang:"hrefLang",inputmode:"inputMode",keyparams:"keyParams",keytype:"keyType",marginheight:"marginHeight",marginwidth:"marginWidth",maxlength:"maxLength",mediagroup:"mediaGroup",minlength:"minLength",novalidate:"noValidate",radiogroup:"radioGroup",readonly:"readOnly",rowspan:"rowSpan",spellcheck:"spellCheck",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",tabindex:"tabIndex",usemap:"useMap",viewbox:"viewBox"},bl={};function gl(e){if(!e)return bl;var r={};for(var t in e){var n=t.toLowerCase(),i=yl[n];if(i)r[i]=e[t];else{var o=t.indexOf(":");-1===o?r[t]=e[t]:r[t.slice(0,o)+t[o+1].toUpperCase()+t.slice(o+2)]=e[t]}}return r}var wl=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s|^<(div|p|h[1-6]|ul|ol|li|blockquote|pre|table|thead|tbody|tr|td|th|dl|dt|dd|hr|address|article|aside|details|dialog|figure|figcaption|footer|form|header|main|menu|nav|section|summary|textarea|fieldset|legend|center|dir|hgroup|marquee|search|output|template)\b)/i;function kl(e){return-1===e.indexOf("&")?e:e.replace(vl,((e,r)=>{var t,n=la[t=r]||la[t.toLowerCase()];if(n)return n;if("#"===r[0]){var i="x"===r[1]||"X"===r[1]?Number.parseInt(r.slice(2),16):Number.parseInt(r.slice(1),10);return 0===i||i>=55296&&i<=57343||i>1114111?"�":i<=65535?String.fromCharCode(i):String.fromCharCode(55296+(i-65536>>10),56320+(i-65536&1023))}return e}))}var $l=/(javascript|vbscript|data(?!:image)):/i;function Sl(e){if($l.test(e))return null;if(-1===e.indexOf("%"))return e;try{let r=decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"");if($l.test(r))return null}catch{return null}return e}var El,jl,xl={};for(El=[192,193,194,195,196,197,224,225,226,227,228,229,230,198],jl=0;jl<El.length;jl++)xl[El[jl]]="a";for(xl[231]=xl[199]="c",xl[240]=xl[208]="d",El=[200,201,202,203,233,232,234,235],jl=0;jl<El.length;jl++)xl[El[jl]]="e";for(El=[207,239,206,238,205,237,204,236],jl=0;jl<El.length;jl++)xl[El[jl]]="i";for(xl[209]=xl[241]="n",El=[248,216,339,338,213,245,212,244,211,243,210,242],jl=0;jl<El.length;jl++)xl[El[jl]]="o";for(El=[220,252,219,251,218,250,217,249],jl=0;jl<El.length;jl++)xl[El[jl]]="u";function Ol(e){for(var r="",t=-1,n=e.length,i=0;i<n;i++){var o=e.charCodeAt(i);if(o>=Va&&o<=Ha||o>=za&&o<=Ua)t<0&&(t=i);else if(o>=La&&o<=Ba)t>=0&&(r+=e.slice(t,i),t=-1),r+=String.fromCharCode(o+Ga);else if(o!==ua&&o!==ya){t>=0&&(r+=e.slice(t,i),t=-1);var a=xl[o];a&&(r+=a)}else t>=0&&(r+=e.slice(t,i),t=-1),r+="-"}return t>=0&&(r+=e.slice(t)),r}function Al(e,r,t){return e.startsWith(r,t)}xl[376]=xl[255]=xl[221]=xl[253]="y";var Cl=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr","circle","ellipse","line","path","polygon","polyline","rect","use","stop","animate","set"]);function _l(e){let r=e.toLowerCase();if(Cl.has(r))return!0;let t=r.indexOf(":");return-1!==t&&(r=r.slice(t+1),Cl.has(r))}var Il=(()=>{var e,r=new Uint8Array(128);for(r[9]=1,r[ca]=3,r[12]=1,r[sa]=3,r[ua]=1,e=Ea;e<=Da;e++)r[e]=4;for(e=ja;e<=64;e++)r[e]=4;for(e=ha;e<=fa;e++)r[e]=4;for(e=Ma;e<=da;e++)r[e]=4;for(e=za;e<=Ua;e++)r[e]=16;for(e=La;e<=Ba;e++)r[e]=8;for(e=Va;e<=Ha;e++)r[e]=8;return r})(),Dl=/[\p{P}\p{S}]/u,Pl=/\p{Zs}/u,Fl=[];function ql(e,r,t){let n=t??e.length;for(;r<n&&(" "===e[r]||"\t"===e[r]);)r++;return r}function Tl(e){if(!e)return!1;for(var r in e)return!0;return!1}var Ml=/^\n+/;function Nl(e){if((e.type===al||e.type===il)&&e.a)return[];if(e.type===cl){var r=e.children;return r?r.flatMap(Nl):[]}return e.type===hl?e.text?.trim()?[e]:[]:e.type===il&&e.children?[{...e,children:e.children?.flatMap(Nl)}]:[e]}function Rl(e){for(var r=0;r<e.length;r++){if(e[r].type===il){var t=e[r],n=!1;if(t.c&&r===e.length-1){var i=void 0===t.j?t.a?t.e||"":(t.e||"")+(t.h||""):t.j,o=`</${String(t.tag).toLowerCase()}>`,a=i.toLowerCase().indexOf(o);-1!==a&&i.slice(a+o.length).replace(/<\/[a-z][a-z0-9-]*\s*>/gi,"").trim()&&(n=!0)}n||(t.c=!1)}"children"in e[r]&&e[r].children&&Rl(e[r].children)}}function zl(e,r,t,n){var i;return i=void 0===r?function(e){var r="";for(var t in e){var n=e[t];!0===n?r+=` ${t}`:void 0!==n&&null!=n&&!1!==n&&(r+=` ${t}="${String(n)}"`)}return r}(t):r.length>0&&r.charCodeAt(0)>ua?` ${r}`:r,`<${e}${i}${n}`}function Ul(e){var r=e.tag,t=e.type===al,n=e,i=n.b,o=`</${r}>`;if(!t&&n.a)return{kind:"literal",literal:(n.h||o)+(n.e||"")};if(t)return e.a?{kind:"literal",literal:e.h||o}:e.m?{kind:"literal",literal:e.m}:{kind:"literal",literal:zl(r,i,e.attrs," />")};var a=zl(r,i,e.attrs,">"),l=n.children,u=null!=l&&l.length>0;if(n.c&&void 0!==n.j)return u?{kind:"sandwich",open:a,close:o}:{kind:"literal",literal:n.j};if(n.c&&!u)return{kind:"literal",literal:a+(n.e||"")+(n.h||o)};if(null!=l&&l.length>0){for(var s="",c=0;c<l.length;c++){var f=l[c];if(f.type!==hl)return{kind:"sandwich",open:a,close:o};s+=f.text}return{kind:"literal",literal:a+s+o}}var d=n.e||"";return d&&-1!==d.indexOf(o)?{kind:"literal",literal:a+d}:{kind:"literal",literal:a+d+o}}function Ll(e){return null==e||!1!==e.tagfilter}function Bl(e,r,t){if(-1===r.indexOf("."))return e?.[r]||t;for(var n=e,i=r.split("."),o=0;o<i.length&&(n=n?.[i[o]],void 0!==n);)o++;return n||t}function Vl(...e){return e.filter(Boolean).join(" ")}var Hl=new Set(["title","textarea","style","xmp","iframe","noembed","noframes","script","plaintext"]),Wl=/<(\/?)(title|textarea|style|xmp|iframe|noembed|noframes|script|plaintext)(\s|>|\/)/gi;function Gl(e){return Hl.has(e.toLowerCase())}function Kl(e){return Wl.lastIndex=0,e.replace(Wl,((e,r,t,n)=>`&lt;${r}${t}${n}`))}function Zl(e,r){var t,n=e||{},i=n.slugify;if(i){var o=i;t=e=>o(e,Ol)}else t=Ol;return{disableAutoLink:n.disableAutoLink,disableFrontmatter:n.disableFrontmatter,disableParsingRawHTML:n.disableParsingRawHTML,enforceAtxHeadings:n.enforceAtxHeadings,evalUnserializableExpressions:n.evalUnserializableExpressions,forceBlock:n.forceBlock,forceInline:void 0===r?n.forceInline:r,ignoreHTMLBlocks:n.ignoreHTMLBlocks,optimizeForStreaming:n.optimizeForStreaming,preserveFrontmatter:n.preserveFrontmatter,sanitizer:n.sanitizer||Sl,slugify:t,tagfilter:Ll(n)}}var Jl=/^<([a-zA-Z][a-zA-Z0-9-]*)\s[^>]*>/,Yl=/^<[A-Z]/,Xl=["script","pre","style","textarea"],Ql=new Set(Xl),eu=/<(?:pre|script|style|textarea)\b/i,ru=/<(?:pre|script|style|textarea)\b/iy,tu=/^(\s{0,3}#[#\s]|\s{0,3}[-*+]\s|\s{0,3}\d+\.\s|\s{0,3}>\s|\s{0,3}```)/m,nu=/^<([a-z][^ >/\n\r]*) ?([^>]*?)>/im,iu=new Uint8Array(128);(()=>{for(var e=[fa,wa,ka,da,ba,ha,Ea,$a,ga,38,ca,Oa,Aa,xa],r=0;r<e.length;r++)iu[e[r]]=1})();var ou=/([a-zA-Z_][a-zA-Z0-9_-]*)=(?:"([^"]*)"|'([^']*)')/g;function au(e,r,t){for(var n=r,i=t;n<i&&(e.charCodeAt(n)===ua||9===e.charCodeAt(n));)n++;if(n>=i)return!1;e.charCodeAt(n)===Ta&&n++;for(var o=0;n<i;){for(;n<i&&(e.charCodeAt(n)===ua||9===e.charCodeAt(n));)n++;if(n>=i)break;if(e.charCodeAt(n)===Ta&&o>0){for(var a=n+1;a<i&&(e.charCodeAt(a)===ua||9===e.charCodeAt(a));)a++;if(a>=i)return!0}if(e.charCodeAt(n)===ja&&n++,n>=i||e.charCodeAt(n)!==ya)return!1;for(;n<i&&e.charCodeAt(n)===ya;)n++;for(n<i&&e.charCodeAt(n)===ja&&n++,o++;n<i&&(e.charCodeAt(n)===ua||9===e.charCodeAt(n));)n++;if(n<i){if(e.charCodeAt(n)!==Ta)return!1;n++}}return o>0}var lu=/[\u0000-\u001F\u007F]/g,uu={action:1,background:1,cite:1,data:1,formaction:1,href:1,longdesc:1,poster:1,src:1,"xlink:href":1},su=/&#(x[0-9a-f]+|[0-9]+);?/gi;function cu(e,r,t){if(t&&r.charCodeAt(0)===Ma)return!1;var n=e.charCodeAt(0),i=e.charCodeAt(1);if(!(111!==n&&79!==n||110!==i&&78!==i))return!(t&&""===r);var o=e.toLowerCase();if("srcdoc"===o)return!0;if("style"===o)return/url\s*\(\s*(javascript|vbscript|data:(?!image\/))/i.test(r);if(1===uu[o]){var a=function(e){return-1===e.indexOf("&#")?e:e.replace(su,((e,r)=>{var t=120===r.charCodeAt(0)||88===r.charCodeAt(0)?Number.parseInt(r.slice(1),16):Number.parseInt(r,10);return t>0&&t<=1114111?String.fromCodePoint(t):e}))}(kl(r));if(null===Sl(a))return!0;var l=a.replace(lu,"");return l!==a&&null===Sl(l)}return!1}function fu(e){return"<"+(e.f?"/":"")+e.tag+e.g+e.b+(e.n?e.r?" />":"/>":">")}function du(e,r,t,n){for(var i=[],o=r,a=0;a<n.length;a+=2){var l=n[a];if(l>o){var u=e.slice(o,l).trim();u&&i.push(u)}o=n[a+1]}if(o<t){var s=e.slice(o,t).trim();s&&i.push(s)}return i.join(" ")}function hu(e,r){if(e.charCodeAt(r)!==$a)return null;let t=r+1,n=e.length,i=!1;e.charCodeAt(t)===Da&&(t++,i=!0);let o=t,a=e.charCodeAt(t);if(!(a>=Va&&a<=Ha||a>=La&&a<=Ba))return null;for(;t<n&&(e.charCodeAt(t)>=Va&&e.charCodeAt(t)<=Ha||e.charCodeAt(t)>=La&&e.charCodeAt(t)<=Ba||e.charCodeAt(t)>=za&&e.charCodeAt(t)<=Ua||e.charCodeAt(t)===ya);)t++;let l=e.slice(o,t);if(!l)return null;let u=l.charCodeAt(0),s=u>=La&&u<=Ba||-1!==l.indexOf("-"),c=t;for(;t<n&&(e.charCodeAt(t)===ua||9===e.charCodeAt(t)||e.charCodeAt(t)===ca);)t++;let f=e.slice(c,t);if(t===c&&t<n){var d=e.charCodeAt(t);if(d!==pa&&d!==Da)return null}let h=t,m={},p=!1;for(var v=null;t<n;){let r=e.charCodeAt(t);if(r===pa)return{r:p,u:s,f:i,b:v?du(e,h,t,v):e.slice(h,t),q:null!=v,n:!1,g:f,attrs:m,end:t+1,tag:l};if(r!==ua&&9!==r&&r!==ca){if(r===Da&&t+1<n&&e.charCodeAt(t+1)===pa)return p=t>h&&e.charCodeAt(t-1)===ua,{r:p,u:s,f:i,b:v?du(e,h,t,v):e.slice(h,t),q:null!=v,n:!0,g:f,attrs:m,end:t+2,tag:l};var y,b,g=t,w=e.charCodeAt(t);if(!(w>=Va&&w<=Ha||w>=La&&w<=Ba||w===ka||w===ja))return null;for(t++;t<n&&((O=e.charCodeAt(t))>=Va&&O<=Ha||O>=La&&O<=Ba||O>=za&&O<=Ua||O===ka||O===Ia||O===ja||O===ya);)t++;for(var k=e.slice(g,t),$=t;t<n&&(e.charCodeAt(t)===ua||9===e.charCodeAt(t));)t++;if(e.charCodeAt(t)===ba){for(t++;t<n&&(e.charCodeAt(t)===ua||9===e.charCodeAt(t));)t++;var S=e.charCodeAt(t);if(S===Fa||S===Pa){t++;for(var E=t;t<n&&e.charCodeAt(t)!==S;)t++;if(t>=n)return null;if(y=e.slice(E,t),t++,t<n){var j=e.charCodeAt(t);if(j!==ua&&9!==j&&j!==ca&&j!==pa&&j!==Da)return null}b=t}else if(S===Ma){var x=1;for(E=t,t++;t<n&&x>0;){var O;(O=e.charCodeAt(t))===Ma?x++:125===O&&x--,t++}y=e.slice(E,t),b=t}else{for(E=t;t<n;){var A=e.charCodeAt(t);if(A===ua||9===A||A===pa||A===ca||A===Fa||A===Pa||A===ba||A===$a||A===fa)break;t++}if(t===E)return null;y=e.slice(E,t),b=t}}else y="",b=$;cu(k,y,s)?(null===v&&(v=[]),v.push(g,b)):m[k]=y}else t++}return null}function mu(e){var r=e.indexOf("<");if(-1===r)return e;for(var t="",n=0,i=!1;-1!==r;){var o=hu(e,r);o?(o.q&&(t+=e.slice(n,r)+fu(o),n=o.end,i=!0),r=e.indexOf("<",o.end)):r=e.indexOf("<",r+1)}return i?t+e.slice(n):e}function pu(e,r,t){let n=e.length;if(e.charCodeAt(r)!==ha)return null;let i=r+1<n&&e.charCodeAt(r+1)===ma,o=r+1;for(;o<n;){if((v=e.charCodeAt(o))===Sa){o++;break}if(v===ha)return null;v===ga&&o+1<n&&o++,o++}if(o>n||e.charCodeAt(o-1)!==Sa)return null;let a=e.slice(r+1,o-1);if(a.length>999)return null;let l=gu(a);if(!l||o>=n||e.charCodeAt(o)!==ja)return null;o++;let u=!1;for(;o<n;){let r=e.charCodeAt(o);if(r===ua||9===r)o++;else{if(r!==ca||u)break;u=!0,o++}}if(i){let r=e.indexOf("\n",o),i=e.slice(o,r<0?n:r).trim();return t[l]={target:i,title:void 0},r<0?n:r+1}var s;if(o<n&&e.charCodeAt(o)===$a){o++;for(var c=o;o<n&&e.charCodeAt(o)!==pa&&e.charCodeAt(o)!==ca;)e.charCodeAt(o)===ga&&o+1<n&&o++,o++;if(o>=n||e.charCodeAt(o)!==pa)return null;s=e.slice(c,o),o++;for(var f=e.indexOf("\n",o),d=f<0?n:f,h=o;h<d&&(e.charCodeAt(h)===ua||9===e.charCodeAt(h));)h++;if(h<d){if(h===o)return null;var m=e.charCodeAt(h);if(m!==Fa&&m!==Pa&&m!==Na)return null}}else{c=o;for(var p=0;o<n;){var v;if((v=e.charCodeAt(o))===Na)p++;else if(v===Ra){if(0===p)break;p--}else{if(v===ua||9===v||v===ca)break;v===ga&&o+1<n&&o++}o++}if(!(s=e.slice(c,o)))return null}for(;o<n&&(e.charCodeAt(o)===ua||9===e.charCodeAt(o));)o++;var y,b=e.indexOf("\n",o),g=b<0?n:b,w=!1,k=o,$=o;if(o===g&&o<n)for($=o+1;$<n&&(e.charCodeAt($)===ua||9===e.charCodeAt($));)$++;if($<n){var S=e.charCodeAt($);if(S===Fa||S===Pa||S===Na){for(var E=S===Na?41:S,j=$+1,x=j;j<n;){var O=e.charCodeAt(j);if(O===E){for(var A=j+1;A<n&&(e.charCodeAt(A)===ua||9===e.charCodeAt(A));)A++;(A>=n||e.charCodeAt(A)===ca)&&(y=e.slice(x,j),w=!0,k=A<n?A+1:n);break}if(O===ga&&j+1<n)j+=2;else{if(O===ca&&j+1<n&&e.charCodeAt(j+1)===ca)break;j++}}if(!w&&$===o)return null}}if(w)return t[l]||(t[l]={target:kl(ku(s)),title:void 0===y?y:kl(ku(y))}),k;for(;o<g&&(e.charCodeAt(o)===ua||9===e.charCodeAt(o));)o++;return o<g?null:(t[l]||(t[l]={target:kl(ku(s)),title:y}),b<0?n:b+1)}var vu,yu=new Uint8Array(Il);for(yu[va]|=32,yu[pa]|=32,yu[ya]|=96,yu[qa]|=32,yu[wa]|=96,yu[ka]|=96,yu[fa]|=96,yu[da]|=96,yu[$a]|=96,yu[ha]|=64,yu[Ea]|=64,yu[Ta]|=32,vu=za;vu<=Ua;vu++)yu[vu]|=32;function bu(e){if(e.indexOf("[")<0&&e.indexOf("]")<0)return!1;for(var r=0;r<e.length;r++)if(e.charCodeAt(r)!==ga){if(e.charCodeAt(r)===ha||e.charCodeAt(r)===Sa)return!0}else r++;return!1}function gu(e){for(var r=e.length,t=!0,n=r>0,i=0;i<r;i++){var o=e.charCodeAt(i);if(o===ua){if(t){n=!1;break}t=!0}else{if(o<33||o>126||o>=La&&o<=Ba){n=!1;break}t=!1}}if(n&&!t)return e;var a=e.replace(/\s+/g," ").trim();return-1!==a.indexOf("ẞ")?a.replace(/\u1E9E/g,"ss").toLowerCase():a.toLowerCase()}function wu(e){return e<Wa?yu[e]:160===e?1:0}function ku(e){return-1===e.indexOf("\\")?e:e.replace(/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,"$1")}var $u=null,Su=-1,Eu=-1;function ju(e,r){if(r>=Su&&r<=Eu&&e===$u)return Eu;var t=e.indexOf("\n",r),n=t<0?e.length:t;return $u=e,Su=r,Eu=n,n}function xu(e,r){let t=ju(e,r);return t<e.length?t+1:t}function Ou(e,r,t){for(;r<t;){let t=e.charCodeAt(r);if(t!==ua&&9!==t)break;r++}return r}function Au(e,r){let t=xu(e,r);for(;t<e.length;){if(Pu(e,t,ju(e,t)))return t;t=xu(e,t)}return e.length}function Cu(e,r,t,n){let i=0;for(;r+i<t&&e.charCodeAt(r+i)===n;)i++;return i}var _u=0,Iu=0;function Du(e,r,t){for(_u=0,Iu=0;r+Iu<t;){let t=e.charCodeAt(r+Iu);if(9===t)_u+=4-_u%4;else{if(t!==ua)break;_u++}Iu++}}function Pu(e,r,t){return Ou(e,r,t)>=t}function Fu(e,r){if(!e)return e;var t=r.v||(r.v=Object.create(null)),n=t[e];if(void 0===n)return t[e]=0,e;for(var i=n+1,o=`${e}-${i}`;void 0!==t[o];)o=`${e}-${++i}`;return t[e]=i,t[o]=0,o}function qu(e,r,t,n){let i=ju(e,r);if(Du(e,r,i),_u>3)return null;let o=r+Iu;if(e.charCodeAt(o)!==va)return null;let a=Cu(e,o,i,35);if(a<1||a>6||(o+=a,o<i&&e.charCodeAt(o)!==ua&&9!==e.charCodeAt(o)))return null;o=Ou(e,o,i);for(var l=i;l>o&&e.charCodeAt(l-1)===ua;)l--;for(var u=l;l>o&&e.charCodeAt(l-1)===va;)l--;if(l<u)if(l===o||e.charCodeAt(l-1)===ua)for(;l>o&&e.charCodeAt(l-1)===ua;)l--;else l=u;let s=os(e.slice(o,l),!1,t,n);return{node:{type:nl,level:a,children:s,id:""},end:xu(e,i)}}function Tu(e,r){let t=ju(e,r);if(Du(e,r,t),_u>3)return null;let n=r+Iu,i=e.charCodeAt(n);if(i!==ya&&i!==wa&&i!==ka)return null;let o=0;for(;n<t;){let r=e.charCodeAt(n);if(r===i)o++;else if(r!==ua&&9!==r)return null;n++}return o<3?null:{node:{type:Ja},end:xu(e,t)}}var Mu=0,Nu=0,Ru="";function zu(e,r){let t=ju(e,r);if(Du(e,r,t),_u>3)return null;let n=_u,i=r+Iu,o=e.charCodeAt(i);if(o!==fa&&o!==da)return null;let a=Cu(e,i,t,o);if(a<3)return null;i+=a;let l=Ou(e,i,t),u=t;if(o===fa)for(let r=l;r<t;r++)if(e.charCodeAt(r)===fa)return null;for(;u>l&&(e.charCodeAt(u-1)===ua||9===e.charCodeAt(u-1));)u--;let s=e.slice(l,u),c="",f="",d=s.indexOf(" ");var h;if(-1===d?c=s:(c=s.slice(0,d),f=s.slice(d+1).trim()),c=ku(c),f){ou.lastIndex=0;for(var m;null!=(m=ou.exec(f));)h||(h={}),h[m[1]]=void 0===m[2]?m[3]:m[2]}let p=xu(e,t),v=e.length,y=e.length;var b,g;o===Mu&&a===Nu?b=Ru:(b=String.fromCharCode(o).repeat(a),Mu=o,Nu=a,Ru=b);for(var w=p;w<e.length;){var k=e.indexOf(b,w);if(-1===k)break;for(var $=k,S=0;$>0&&S<4&&e.charCodeAt($-1)===ua;)$--,S++;if(S<=3&&(0===$||e.charCodeAt($-1)===ca)){for(var E=k+a;E<e.length&&e.charCodeAt(E)===o;)E++;var j=ju(e,E);if(Pu(e,E,j)){v=$,y=xu(e,j);break}}w=k+1}if(0===n)g=v>p&&e.charCodeAt(v-1)===ca?e.slice(p,v-1):e.slice(p,v);else{g="";for(var x=p;x<v;){var O=ju(e,x);Du(e,x,O);var A=Math.min(Iu,n);g+=`${e.slice(x+A,O)}\n`,x=xu(e,O)}g.length>0&&g.charCodeAt(g.length-1)===ca&&(g=g.slice(0,-1))}return{node:{type:Ya,lang:c||void 0,text:g,infoString:f||void 0,attrs:h},end:y}}function Uu(e,r,t){for(var n=0,i=r;i<t&&n<4;)9===e.charCodeAt(i)?n+=4-n%4:n++,i++;if(n<4)return"";for(var o="",a=4;a<n;a++)o+=" ";return o+e.slice(i,t)}function Lu(e,r){if(Du(e,r,ju(e,r)),_u<4)return null;let t="",n=r;for(;n<e.length;){let r=ju(e,n);if(Du(e,n,r),Pu(e,n,r)){for(var i=`${Uu(e,n,r)}\n`,o=xu(e,r);o<e.length;){var a=ju(e,o);if(!Pu(e,o,a)){Du(e,o,a),_u>=4&&(t+=i,n=o);break}i+=`${Uu(e,o,a)}\n`,o=xu(e,a)}if(n!==o)break;continue}if(_u<4)break;let f=0,d=0;var l=0;for(let t=n;t<r&&d<4;t++){if(9===e.charCodeAt(t)){var u=4-d%4;d+u>4&&(l=d+u-4),d+=u}else d++;f++}var s="";if(l>0)for(var c=0;c<l;c++)s+=" ";t+=`${s+=e.slice(n+f,r)}\n`,n=xu(e,r)}for(;t.length>0&&t.charCodeAt(t.length-1)===ca;)t=t.slice(0,-1);return t?{node:{type:Ya,lang:void 0,text:t,infoString:void 0,attrs:void 0},end:n}:null}function Bu(e,r,t,n){if(Du(e,r,ju(e,r)),_u>3)return null;if(e.charCodeAt(r+Iu)!==pa)return null;let i,o="",a=r,l=!1,u=!1,s=!1;for(;a<e.length;){let r=ju(e,a);Du(e,a,r);let t=a+Iu;if(e.charCodeAt(t)===pa){let n=t+1;var c=_u+1,f=!1;if(n<r){var d=e.charCodeAt(n);d===ua?(n++,c++,f=!0):9===d&&(f=!0)}for(var h="",m=!1,p=n;p<r;p++)if(9===e.charCodeAt(p)){m=!0;break}if(m){var v=c;if(f&&n<r&&9===e.charCodeAt(n)){for(var y=4-v%4,b=0;b<y-1;b++)h+=" ";v+=y,n++}for(var g=n;g<r;g++)if(9===e.charCodeAt(g)){for(var w=4-v%4,k=0;k<w;k++)h+=" ";v+=w}else h+=e[g],v++}else h=e.slice(n,r);if(!o&&!i){let t=h.match(/^\[!([A-Za-z]+)\]\s*$/);if(t){i=t[1].toUpperCase(),a=xu(e,r);continue}}o+=`${h}\n`;var $=h.trimStart();$.startsWith("```")||$.startsWith("~~~")?s=!s:(h.startsWith(" ")||h.startsWith("\t"))&&(s=!0),u=$.length>0,a=xu(e,r)}else{if(!o||Pu(e,a,r)||!u)break;if(_u<4){var S=a+Iu,E=S<r?e.charCodeAt(S):0;if(E===va||E===pa||E===fa||E===da||E===$a||(E===ya||E===wa||E===ka)&&Tu(e,a)||(E===ya||E===wa||E===qa)&&S+1<r&&(e.charCodeAt(S+1)===ua||9===e.charCodeAt(S+1)))break;if(E>=za&&E<=Ua){for(var j=S;j<r&&e.charCodeAt(j)>=za&&e.charCodeAt(j)<=Ua;)j++;if(j<r&&(e.charCodeAt(j)===Ia||e.charCodeAt(j)===Ra))break}}if(s)break;o+=`${e.slice(a,r)}\n`,l=!0,a=xu(e,r)}}if(!o&&!i)return null;var{inBlockQuote:x,l:O}=t;t.inBlockQuote=!0,l&&(t.l=!0);var A=t.i;t.i=A||!Pu(e,a,e.length);let C=Vs(o||"",t,n);return t.i=A,t.inBlockQuote=x,t.l=O,{node:{type:Ka,children:C,alert:i||void 0},end:a}}function Vu(e,r,t){for(var n=0,i=r;i<t;i++)9===e.charCodeAt(i)?n+=4-n%4:n++;return n}function Hu(e,r,t){if(Du(e,r,t),_u>3)return null;var n=r+Iu;if(n>=t)return null;var i=e.charCodeAt(n),o=_u,a=n,l=n;if(i===ya||i===wa||i===qa){if((a=n+1)<t&&e.charCodeAt(a)!==ua&&9!==e.charCodeAt(a)&&e.charCodeAt(a)!==ca)return null}else{if(!(i>=za&&i<=Ua))return null;for(;l<t&&l-n<9;){var u=e.charCodeAt(l);if(u<za||u>Ua)break;l++}if(!(l>n&&l<t))return null;var s=e.charCodeAt(l);if(s!==Ia&&s!==Ra)return null;if((a=l+1)<t&&e.charCodeAt(a)!==ua&&9!==e.charCodeAt(a)&&e.charCodeAt(a)!==ca)return null}var c=a,f=Vu(e,r,a),d=0,h=c,m=f;if(c>=t)return{ordered:i>=za&&i<=Ua,marker:i>=za&&i<=Ua?e[l]:e[n],start:i>=za&&i<=Ua?Number.parseInt(e.slice(n,l),10):void 0,contentStart:c,contentCol:f+1,markerCol:o,isEmpty:!0};for(;h<t&&(e.charCodeAt(h)===ua||9===e.charCodeAt(h));)9===e.charCodeAt(h)?m+=4-m%4:m++,h++,d++;var p=h>=t;return p||m-f>4?(m=f+1,h=c+1,d=1):0===d&&(m=f+1,h=c,d=1),{ordered:i>=za&&i<=Ua,marker:i>=za&&i<=Ua?e[l]:e[n],start:i>=za&&i<=Ua?Number.parseInt(e.slice(n,l),10):void 0,contentStart:h,contentCol:m,markerCol:o,isEmpty:p}}var Wu=0;function Gu(e,r,t,n){var i=0,o=r;for(Wu=0;o<t&&i<n;){var a=e.charCodeAt(o);if(9===a){var l=4-i%4;if(i+l>n){Wu=i+l-n,o++,i=n;break}i+=l}else{if(a!==ua)break;i++}o++}return o}function Ku(e,r,t,n){var i=ju(e,r),o=Hu(e,r,i);if(!o)return null;var a=[],l=r,u=o.contentCol,s="",c=o.isEmpty,f=!1,d=!1;if(!o.isEmpty){for(var h=!1,m=o.contentStart;m<i;m++)if(9===e.charCodeAt(m)){h=!0;break}if(h){var p="",v=Vu(e,r,o.contentStart),y=v-o.contentCol;if(y>0)for(var b=0;b<y;b++)p+=" ";for(var g=o.contentStart;g<i;g++)if(9===e.charCodeAt(g)){for(var w=4-v%4,k=0;k<w;k++)p+=" ";v+=w}else p+=e[g],v++;s=`${p}\n`}else s=`${e.slice(o.contentStart,i)}\n`}for(l=xu(e,i);l<e.length;){var $=ju(e,l);Du(e,l,$);var S=e.charCodeAt(l+Iu);if(_u<u&&(S===ya||S===wa||S===ka)&&_u<=3&&Tu(e,l))break;var E=Hu(e,l,$);if(E&&E.ordered===o.ordered&&E.marker===o.marker&&E.markerCol<u)a.push({contentCol:u,raw:s,hasBlankAfter:f,isEmpty:c}),f&&(d=!0),u=E.contentCol,c=E.isEmpty,f=!1,s=E.isEmpty?"":`${e.slice(E.contentStart,$)}\n`,l=xu(e,$);else if(Pu(e,l,$)){var j=Gu(e,l,$,u);if(Wu>0||j<$){for(var x="",O=0;O<Wu;O++)x+=" ";s+=`${x+e.slice(j,$)}\n`}else s+="\n";l=xu(e,$);for(var A=!1,C=0;C<s.length;C++){var _=s.charCodeAt(C);if(_!==ca&&_!==sa&&_!==ua&&9!==_){A=!0;break}}if(c&&!A){if(!(l<e.length))break;var I=Hu(e,l,ju(e,l));if(!I||I.ordered!==o.ordered||I.marker!==o.marker)break;f=!0}if(l<e.length){var D=ju(e,l);Du(e,l,D);var P=e.charCodeAt(l+Iu);if((P===ya||P===wa||P===ka)&&_u<=3&&Tu(e,l))break;var F=Hu(e,l,D);if(F&&F.ordered===o.ordered&&F.marker===o.marker&&F.markerCol<u){f=!0;continue}if(!Pu(e,l,D)&&_u<u)break}}else{if(!(_u>=u)){for(var q=!1,T=0;T<s.length;T++){var M=s.charCodeAt(T);if(M!==ca&&M!==sa&&M!==ua&&9!==M){q=!0;break}}if(!f&&q&&!c){var N=l+Iu,R=e.charCodeAt(N);if(R!==va&&R!==pa&&R!==$a&&R!==fa&&R!==da&&(R!==ya&&R!==wa&&R!==ka&&R!==qa||null==Tu(e,l)&&null==Hu(e,l,$))&&!(R>=za&&R<=Ua&&null!=Hu(e,l,$))){s+=`${e.slice(N,$)}\n`,l=xu(e,$);continue}}break}var z=Gu(e,l,$,u);if(Wu>0){for(var U="",L=u,B=0;B<Wu;B++)U+=" ",L++;for(var V=z;V<$;V++)if(9===e.charCodeAt(V)){for(var H=4-L%4,W=0;W<H;W++)U+=" ";L+=H}else U+=e[V],L++;s+=`${U}\n`}else s+=`${e.slice(z,$)}\n`;l=xu(e,$)}}if(a.push({contentCol:u,raw:s,hasBlankAfter:f,isEmpty:c}),0===a.length)return null;var G=d;if(!G)for(var K=0;K<a.length;K++){if(a[K].hasBlankAfter&&K<a.length-1){G=!0;break}if(!a[K].isEmpty){for(var Z=a[K].raw,J=Z.length,Y=0,X=!1,Q=!1,ee=!1,re=!1,te=0,ne=0,ie=-1;Y<J;){var oe=Z.indexOf("\n",Y);if(oe<0&&(oe=J),re){Du(Z,Y,oe);for(var ae=Z.slice(Y+Iu,oe),le=0;le<ae.length&&ae.charCodeAt(le)===te;)le++;le>=ne&&""===ae.slice(le).trim()&&(re=!1),Y=oe<J?oe+1:J}else if(Pu(Z,Y,oe))ie>=0?ee=!0:X&&(Q=!0),Y=oe<J?oe+1:J;else{if(Du(Z,Y,oe),ie>=0){if(_u>=ie){Y=oe<J?oe+1:J;continue}var ue=Hu(Z,Y,oe);if(ue&&ue.markerCol<ie&&ue.contentCol<=ie){Y=oe<J?oe+1:J;continue}if(ue){Y=oe<J?oe+1:J;continue}ie=-1,ee&&(Q=!0,ee=!1)}var se=Z.slice(Y+Iu,oe),ce=se.charCodeAt(0);if((ce===fa||ce===da)&&_u<=3){for(var fe=0;fe<se.length&&se.charCodeAt(fe)===ce;)fe++;if(fe>=3){if(Q&&X){G=!0;break}re=!0,te=ce,ne=fe,X=!0,Y=oe<J?oe+1:J;continue}}var de=_u<=3?Hu(Z,Y,oe):null;if(de&&X){if(Q){G=!0;break}ie=de.contentCol,ee=!1,Y=oe<J?oe+1:J,X=!0}else{if(Q){G=!0;break}X=!0,Y=oe<J?oe+1:J}}}if(G)break}}for(var he=[],me=0;me<a.length;me++){for(var pe=a[me],ve=pe.raw,ye=ve.length;ye>0&&ve.charCodeAt(ye-1)===ca;)ye--;var be,ge=ye<ve.length?ve.slice(0,ye):ve,we=null;if(ge.length>=3&&ge.charCodeAt(0)===ha){var ke=ge[1];(" "===ke||"x"===ke||"X"===ke)&&ge.charCodeAt(2)===Sa&&(we={type:tl,completed:"x"===ke||"X"===ke},ge=ge.slice(3))}if(pe.isEmpty&&""===ge.trim())be=[];else if(G){var $e=t.inList;t.inList=!0;var Se=t.i;t.i=Se||me!==a.length-1,be=Vs(ge,t,n),t.i=Se,t.inList=$e}else{var Ee=t.inList;t.inList=!0;var je=t.i;if(t.i=je||me!==a.length-1,be=Vs(ge,t,n),t.i=je,t.inList=Ee,1===be.length&&be[0].type===cl)be=be[0].children;else if(t.p){var xe=[];t.p.push({src:be,dest:xe,unwrap:!0}),be=xe}else{for(var Oe=[],Ae=0;Ae<be.length;Ae++)if(be[Ae].type===cl)for(var Ce=be[Ae].children,_e=0;_e<Ce.length;_e++)Oe.push(Ce[_e]);else Oe.push(be[Ae]);be=Oe}}if(we){var Ie=[we,{type:hl,text:" "}];if(t.p)t.p.push({src:be,dest:Ie,unwrap:!1});else for(var De=0;De<be.length;De++)Ie.push(be[De]);he.push(Ie)}else he.push(be)}return{node:{type:o.ordered?sl:pl,start:o.ordered?o.start:void 0,items:he},end:l}}var Zu=new Set(["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"]);function Ju(e,r,t){let n={};for(let[a,l]of Object.entries(e)){let e=a.toLowerCase();if("style"===e&&"string"==typeof l){let e={},r=[],t=0,i=0;for(let e=0;e<l.length;e++){let n=l.charCodeAt(e);n===Na?t++:n===Ra?t--:59===n&&0===t&&(r.push(l.slice(i,e)),i=e+1)}i<l.length&&r.push(l.slice(i));let o=!1;r.forEach((r=>{let t=r.indexOf(":");if(-1===t)return;let n=r.slice(0,t).trim(),i=r.slice(t+1).trim();if(n&&i){if(/url\s*\(\s*(javascript|vbscript|data:(?!image\/))/i.test(i))return void(o=!0);let r=-1===n.indexOf("-")?n:n.replace(/-([a-z])/g,((e,r)=>r.toUpperCase()));e[r]=i}})),!o&&Object.keys(e).length>0&&(n[a]=e)}else if("href"!==e&&"src"!==e||!t?.sanitizer)if(""===l)n[a]=!0;else if(l.length>=2&&l.charCodeAt(0)===Ma&&125===l.charCodeAt(l.length-1)){var i=l.slice(1,-1);if(i.length>0){var o=i.charCodeAt(0);if(o===ha||o===Ma)try{n[a]=JSON.parse(i);continue}catch{}}if("true"===i){n[a]=!0;continue}if("false"===i){n[a]=!1;continue}if(t?.evalUnserializableExpressions)try{n[a]=(0,eval)(`(${i})`);continue}catch{}n[a]=i}else n[a]=l;else{let i=t.sanitizer(l,r,e);null!=i&&(n[a]=i)}}return n}function Yu(e,r,t){let n=r.length;if(0===n)return t;var i=r.charCodeAt(0);if(!(i>=La&&i<=Ba||i>=Va&&i<=Ha)){for(var o=String.fromCharCode(i),a=e.length-n,l=t;l<=a;){var u=e.indexOf(o,l);if(-1===u||u>a)return-1;for(var s=!0,c=1;c<n;c++){var f=e.charCodeAt(u+c),d=r.charCodeAt(c);if(f>=La&&f<=Ba&&(f+=Ga),d>=La&&d<=Ba&&(d+=Ga),f!==d){s=!1;break}}if(s)return u;l=u+1}return-1}i>=La&&i<=Ba&&(i+=Ga);for(let o=t;o<=e.length-n;o++){var h=e.charCodeAt(o);if(h>=La&&h<=Ba&&(h+=Ga),h!==i)continue;let t=!0;for(let i=1;i<n;i++){let n=e.charCodeAt(o+i),a=r.charCodeAt(i);if(n>=La&&n<=Ba&&(n+=Ga),a>=La&&a<=Ba&&(a+=Ga),n!==a){t=!1;break}}if(t)return o}return-1}var Xu=-1;function Qu(e,r,t){let n=t.toLowerCase(),i=`<${n}`,o=`</${n}`,a=1,l=r,u=e.length;for(Xu=-1;l<u&&a>0;){let r=Yu(e,i,l),t=Yu(e,o,l);if(-1===t)return-1;if(-1!==r&&r<t){let t=hu(e,r);t?(t.tag.toLowerCase()===n&&!t.f&&!t.n&&!_l(t.tag)&&a++,l=t.end):l=r+1}else{var s=t+o.length,c=s<u?e.charCodeAt(s):62;if((c===pa||c===ua||9===c||c===ca)&&(a--,0===a)){Xu=t;let r=t+o.length;for(;r<u&&e.charCodeAt(r)!==pa;)r++;return r+1}l=t+1}}return-1}function es(e,r,t,n){if(n.ignoreHTMLBlocks||n.disableParsingRawHTML)return null;var i=ju(e,r);if(Du(e,r,i),_u>3&&!t.inHTML)return null;var o=r+Iu;if(e.charCodeAt(o)!==$a)return null;var a=e.indexOf(">",o+1);if(-1!==a&&a<i){var l=e.slice(o+1,a);if(/^[a-zA-Z][a-zA-Z0-9+.-]*:/.test(l)||/^[^\s@]+@[^\s@]+$/.test(l))return null}var u=function(e,r){if(e.charCodeAt(r)!==$a)return 0;var t=r+1,n=e.length;if(e.charCodeAt(t)===Ea&&e.charCodeAt(t+1)===ya&&e.charCodeAt(t+2)===ya)return 2;if(e.charCodeAt(t)===_a)return 3;if(e.charCodeAt(t)===Ea){var i=e.charCodeAt(t+1);if(i>=La&&i<=Ba)return 4;if("[CDATA["===e.slice(t+1,t+8))return 5}for(var o=e.charCodeAt(t)===Da,a=o?t+1:t,l=a;l<n;){var u=e.charCodeAt(l);if(!(u>=La&&u<=Ba||u>=Va&&u<=Ha||u>=za&&u<=Ua||u===ya))break;l++}if(l===a)return 0;var s=e.slice(a,l);if(Ql.has(s.toLowerCase())){if(o)return 0;var c=e.charCodeAt(l);return c===ua||9===c||c===pa||c===ca||l>=n?1:0}if(Zu.has(s.toLowerCase())){if(o){for(var f=l;f<n&&(e.charCodeAt(f)===ua||9===e.charCodeAt(f));)f++;return f<n&&e.charCodeAt(f)===pa?6:0}var d=l<n?e.charCodeAt(l):-1;return d===ua||9===d||d===pa||d===ca||d===Da||-1===d?6:0}if(o){for(var h=l;h<n&&(e.charCodeAt(h)===ua||9===e.charCodeAt(h));)h++;if(h<n&&e.charCodeAt(h)===pa){var m=ju(e,r);if(""===e.slice(h+1,m).trim())return 7}}else{var p=ju(e,r),v=hu(e,r);if(v&&v.end<=p&&""===e.slice(v.end,p).trim())return 7}return 0}(e,o);if(u>=1&&u<=5){var s=e.length;if(1===u){for(var c=e.length,f=0;f<Xl.length;f++){var d=Yu(e,`</${Xl[f]}>`,o);d>=0&&d<c&&(c=d)}if(c<e.length){var h=e.indexOf(">",c);s=h>=0?xu(e,h+1):e.length}}else{var m=2===u?"--\x3e":3===u?"?>":4===u?">":"]]>",p=e.indexOf(m,o);p>=0&&(s=xu(e,p+m.length))}var v=e.slice(o,s);if(u>=2)return{node:{type:ol,text:v,s:!1,raw:!0},end:s};var y="div",b=v.match(/^<\/?([a-zA-Z][a-zA-Z0-9-]*)/);b&&(y=b[1]);var g,w=hu(e,o),k={};w&&!w.f&&(k=Ju(w.attrs,y,n),g=w.g+w.b);var $,S,E,j=Yu(v,`</${y.toLowerCase()}`,0),x="";if(w?.f){E=v.slice(0,w.end-o);for(var O=v.slice(w.end-o);O.length>0&&O.charCodeAt(O.length-1)===ca;)O=O.slice(0,-1);O&&(S=mu(O))}else if(w&&!w.f){var A=w.end-o;if(-1===j){for(var C=v;C.length>0&&C.charCodeAt(C.length-1)===ca;)C=C.slice(0,-1);$=mu(C)}else{var _=A;v.charCodeAt(_)===ca&&_++;for(var I=j;I>_;){var D=v.charCodeAt(I-1);if(D!==ua&&9!==D&&D!==ca&&D!==sa)break;I--}var P=v.slice(_,I);P&&(S=mu(P));for(var F=v.slice(j);F.length>0&&F.charCodeAt(F.length-1)===ca;)F=F.slice(0,-1);E=mu(F),x=v.slice(A,j).trim()}}return{node:{type:il,tag:y,attrs:k,b:g,children:[],e:S,h:E,j:$,text:x,c:!0,a:!!w&&w.f},end:s}}if(6===u||7===u){var q=Au(e,r),T=q<e.length?q:e.length,M=e.slice(o,T),N=q<e.length?xu(e,q):e.length,R=hu(e,o);if(R){var z=R.tag,U=z.toLowerCase();if(R.f){var L=e.slice(R.end,T);return{node:{type:il,tag:z,attrs:{},children:[],h:e.slice(o,R.end),e:L?mu(L):void 0,text:L,c:!0,a:!0},end:N}}if(R.n||_l(z))return{node:{type:il,tag:z,attrs:Ju(R.attrs,z,n),b:R.g+R.b,children:[],text:"",c:!1,a:!1},end:R.end<e.length&&e.charCodeAt(R.end)===ca?R.end+1:R.end};var B=t.d||0,V=e.slice(o,T),H=-1,W=-1,G=!1;if(B<10){for(var K=`</${U}`,Z=1,J=R.end-o;J<V.length&&Z>0;){var Y=Yu(V,`<${U}`,J),X=Yu(V,K,J);if(-1===X)break;if(-1!==Y&&Y<X){var Q=Y+U.length+1;if(Q<V.length){var ee=V.charCodeAt(Q);(ee===ua||9===ee||ee===ca||ee===pa||ee===Da)&&Z++}J=Y+1}else{var re=X+K.length;if(re<V.length){var te=V.charCodeAt(re);if((te===pa||te===ua||9===te||te===ca)&&0==--Z){H=X;for(var ne=re;ne<V.length&&V.charCodeAt(ne)!==pa;)ne++;W=ne+1;break}}else if(0==--Z){H=X,W=V.length;break}J=X+1}}if(-1===H&&!R.f&&(6===u||R.u)){var ie=Qu(e,R.end,U);if(-1!==ie){for(var oe=Xu,ae=!1,le=!1,ue=!1,se=0,ce=!1,fe=!1,de=R.end;de<oe;){var he=e.charCodeAt(de);if(he===ca)fe&&(ae=!0),ce||se++,fe=!0,de++;else if(he===ua||9===he)de++;else{if(!ce&&(ce=!0,se>=2&&he===$a)){ue=!0;break}if(fe=!1,he===$a){var me=32|e.charCodeAt(de+1);if((112===me||115===me||me===Ca)&&(ru.lastIndex=de,ru.test(e))){le=!0;break}}de++}}if(ae&&!ue&&!le){var pe=ju(e,ie);T=pe,N=xu(e,pe),V=e.slice(o,T),M=e.slice(o,T),H=oe-o,W=ie-o,G=!0}}}}var ve=-1!==R.b.indexOf("\n")||-1!==R.g.indexOf("\n"),ye=!1;-1!==H&&(ye=0===V.slice(W).trim().length);var be=!1,ge=T,we=N;if(-1!==H){var ke=o+W,$e=ju(e,ke-1);if(ke<$e){for(var Se=ke;Se<$e&&(e.charCodeAt(Se)===ua||9===e.charCodeAt(Se));)Se++;if(Se<$e&&e.charCodeAt(Se)===$a){var Ee=hu(e,Se);Ee&&!Ee.f&&(be=!0,ge=ke,we=ke,ye=!0)}}if(!be){var je=xu(e,$e);if(je<T){for(var xe=je;xe<T&&(e.charCodeAt(xe)===ua||9===e.charCodeAt(xe));)xe++;xe<T&&e.charCodeAt(xe)===$a&&hu(e,xe)&&(be=!0,ge=$e,we=je,ye=!0)}}!be&&t.inHTML&&(be=!0,ge=$e,we=xu(e,$e),ye=0===e.slice(ke,$e).trim().length)}var Oe=[],Ae="";if(-1!==H){var Ce=(Ae=V.slice(R.end-o,H)).trim();if(Ce){var{inline:_e,inHTML:Ie,d:De}=t;if(t.inHTML=!0,t.d=B+1,"p"===U)t.inline=!0,Oe=os(Ce,!1,t,n);else{var Pe=-1!==Ae.indexOf("\n\n"),Fe=tu.test(Ce),qe=nu.test(Ce),Te=Pe||Fe||t.inHTML&&qe;!(Ae.length>=2&&Ae.charCodeAt(0)===ca&&Ae.charCodeAt(Ae.length-1)===ca)||Pe||Fe||qe?Te||qe?(t.inline=!1,Oe=Vs(Ae,t,n)):(t.inline=!0,Oe=os(Ce,!1,t,n)):Oe=[{type:hl,text:Ce}]}t.inline=_e,t.inHTML=Ie,t.d=De}}var Me=!1;if(6===u&&-1!==H&&!t.inHTML&&!ve){var Ne=/<[a-zA-Z][^>]*>/.test(Ae),Re=-1!==Ae.indexOf("\n\n")||tu.test(Ae);Ne&&!Re&&(Me=!0)}if(!G&&(t.inHTML||7===u||ve||!ye||Me)){var ze,Ue,Le=!1;if(-1!==H&&be){var Be=!1;if(t.inHTML&&W<V.length){for(var Ve=W;Ve<V.length&&V.charCodeAt(Ve)!==ca;)Ve++;var He=V.slice(W,Ve).trim();Be=He.length>1&&He.charCodeAt(0)===$a&&He.charCodeAt(1)!==Da}Ue=Be?V.slice(R.end-o):Ae,Le=!0}else 7!==u&&!t.inHTML||-1===H?be?ze=e.slice(o,ge):ve?ze=M:(Ue=V.slice(R.end-o)).charCodeAt(0)===ca&&(Ue=Ue.slice(1)):(Ue=V.slice(R.end-o)).charCodeAt(0)===ca&&(Ue=Ue.slice(1));var We=void 0!==ze,Ge=mu(void 0===ze?Ue||"":ze),Ke={type:il,tag:z,attrs:Ju(R.attrs,z,n),b:R.g+R.b,children:Oe,e:We?void 0:Ge,j:We?Ge:void 0,text:Ge,c:!0,a:!1};return Le&&(Ke.x=!0),{node:Ke,end:we}}var Ze=mu(Ae);return{node:{type:il,tag:z,attrs:Ju(R.attrs,z,n),b:R.g+R.b,children:Oe,e:G?void 0:Ze,text:Ze,c:!1,a:!1},end:we}}var Je,Ye,Xe,Qe=M.match(/^<(\/?)([a-zA-Z][a-zA-Z0-9-]*)/),er=Qe?Qe[2]:"div",rr=!!Qe&&"/"===Qe[1],tr="";if(rr){var nr=M.indexOf(">");-1===nr?Je=M:(Je=M.slice(0,nr+1),(tr=M.slice(nr+1))&&(Ye=mu(tr)))}else Xe=mu(M);return{node:{type:il,tag:er,attrs:{},children:[],e:Ye,h:Je,j:Xe,text:rr?tr:M,c:!0,a:rr},end:N}}var ir=hu(e,o);if(!ir)return null;var or=ir.tag,ar=or.toLowerCase(),lr=or.charCodeAt(0),ur=lr>=La&&lr<=Ba;if(!(ur||Zu.has(ar)||Ql.has(ar)||ar.includes("-")))return null;if(ir.f)return{node:{type:al,tag:or,attrs:{},h:e.slice(o,ir.end),a:!0},end:ir.end};var sr=Qu(e,ir.end,or),cr=[];if(-1!==sr){var fr=e.slice(ir.end,Xu),dr=fr.trim();if(dr){var hr=-1!==fr.indexOf("\n\n"),mr=tu.test(dr),pr=nu.test(dr),vr=t.inline,yr=t.inHTML,br=t.d;t.inHTML=!0,t.d=(t.d||0)+1,hr||mr||pr?(t.inline=!1,cr=Vs(fr,t,n)):(t.inline=!0,cr=os(dr,!1,t,n)),t.inline=vr,t.inHTML=yr,t.d=br}var gr=ju(e,sr),wr=e.slice(sr,gr).trim()?sr:xu(e,sr),kr=e.slice(o,ur?sr:wr);return{node:{type:il,tag:or,attrs:Ju(ir.attrs,or,n),b:ir.g+ir.b,children:cr,j:mu(kr),text:ur?fr:kr,c:!0,a:!1},end:wr}}var $r=Au(e,ir.end),Sr=$r<e.length?xu(e,$r):$r,Er=e.slice(ir.end,$r);if(Er.trim()){var{inline:jr,inHTML:xr,d:Or}=t;t.inline=!1,t.inHTML=!0,t.d=(t.d||0)+1,cr=Vs(Er,t,n),t.inline=jr,t.inHTML=xr,t.d=Or}var Ar=e.slice(ir.end,$r);return{node:{type:il,tag:or,attrs:Ju(ir.attrs,or,n),b:ir.g+ir.b,children:cr,e:mu(Ar),text:Er,c:!0,a:!1},end:Sr}}function rs(e,r,t){for(var n=0,i=e.length;n<i&&(e.charCodeAt(n)===ua||9===e.charCodeAt(n));)n++;for(;i>n&&(e.charCodeAt(i-1)===ua||9===e.charCodeAt(i-1));)i--;n<i&&e.charCodeAt(n)===Ta&&n++,i>n&&e.charCodeAt(i-1)===Ta&&(i-2<n||e.charCodeAt(i-2)!==ga)&&i--;for(var o=[],a=n,l=!1,u=[],s=n;s<i;){var c=e.charCodeAt(s);if(c===ga&&s+1<i)e.charCodeAt(s+1)===Ta?(l||(l=!0,u=[]),u.push(e.slice(a,s)),u.push("|"),a=s+=2):s+=2;else if(c!==fa)if(c!==Ta)s++;else{var f=l?(u.push(e.slice(a,s)),u.join("")):e.slice(a,s);o.push(f.trim()),a=++s,l=!1,u=[]}else{for(var d=0;s<i&&e.charCodeAt(s)===fa;)d++,s++;for(var h=!1;s<i&&!h;){for(var m=0;s<i&&e.charCodeAt(s)===fa;)m++,s++;m===d?h=!0:0===m&&s++}}}var p=l?(u.push(e.slice(a,i)),u.join("")):e.slice(a,i);return o.push(p.trim()),o.map((e=>{var n=-1===e.indexOf("\\|")?e:e.replace(/\\\|/g,"|");return n?os(n,!1,r,t):[]}))}function ts(e,r,t,n){let i=ju(e,r);var o=e.indexOf("|",r);if(o<0||o>=i)return null;let a=xu(e,i);if(a>=e.length)return null;let l=ju(e,a);if(!au(e,a,l))return null;let u=e.slice(r,i),s=e.slice(a,l);for(var c=[],f=0,d=s.length;f<d&&(s.charCodeAt(f)===ua||9===s.charCodeAt(f));)f++;for(f<d&&s.charCodeAt(f)===Ta&&f++;f<d;){for(;f<d&&(s.charCodeAt(f)===ua||9===s.charCodeAt(f));)f++;if(f>=d||s.charCodeAt(f)===Ta)break;var h=s.charCodeAt(f)===ja;for(h&&f++;f<d&&s.charCodeAt(f)===ya;)f++;var m=f<d&&s.charCodeAt(f)===ja;for(m&&f++,c.push(h&&m?"center":m?"right":h?"left":null);f<d&&(s.charCodeAt(f)===ua||9===s.charCodeAt(f));)f++;f<d&&s.charCodeAt(f)===Ta&&f++}let p=rs(u,t,n);if(c.length!==p.length)return null;let v=[],y=xu(e,l);for(;y<e.length;){let r=ju(e,y),i=e.slice(y,r);if(Pu(e,y,r))break;if(Du(e,y,r),_u<4){var b=e.charCodeAt(y+Iu);if(b===pa||b===va||(b===ya||b===wa||b===ka)&&Tu(e,y))break;if(b===fa||b===da){for(var g=y+Iu,w=0;g<r&&e.charCodeAt(g)===b;)w++,g++;if(w>=3)break}}v.push(rs(i,t,n)),y=xu(e,r)}if(n.optimizeForStreaming&&0===v.length)return null;for(var k=p.length,$=0;$<v.length;$++)if(v[$].length<k)for(;v[$].length<k;)v[$].push([]);else v[$].length>k&&(v[$].length=k);return{node:{type:dl,header:p,cells:v,align:c},end:y}}function ns(e,r,t){if(Du(e,r,ju(e,r)),_u>3)return null;var n=r+Iu;if(e.charCodeAt(n)!==ha)return null;if(n+1<e.length&&e.charCodeAt(n+1)===ma){var i=function(e,r,t){var n=e.length;if(e.charCodeAt(r)!==ha||r+1>=n||e.charCodeAt(r+1)!==ma)return null;for(var i=r+2,o=i;i<n&&e.charCodeAt(i)!==Sa;){if(e.charCodeAt(i)===ca)return null;i++}if(i>=n)return null;var a=`^${e.slice(o,i)}`.toLowerCase();if(++i>=n||e.charCodeAt(i)!==ja)return null;for(i++;i<n&&(e.charCodeAt(i)===ua||9===e.charCodeAt(i));)i++;if(i<n&&e.charCodeAt(i)===ca)for(i++;i<n&&(e.charCodeAt(i)===ua||9===e.charCodeAt(i));)i++;var l=e.indexOf("\n",i);l<0&&(l=n);for(var u=e.slice(i,l).trim(),s=l<n?l+1:n;s<n;){var c=ju(e,s);if(Du(e,s,c),!(_u>=2)||Pu(e,s,c)){if(Pu(e,s,c)){var f=xu(e,c);if(f<n&&(Du(e,f,ju(e,f)),_u>=2)){u+="\n",s=xu(e,c);continue}break}break}u+=`\n${e.slice(s,c)}`,s=xu(e,c)}var d=t.refs;return d&&!d[a]&&(d[a]={target:u,title:void 0}),{node:{type:Qa},end:s}}(e,n,t);return i||null}t.refs||(t.refs={});var o=pu(e,n,t.refs);return null===o?null:{node:{type:fl},end:o}}function is(e,r,t,n){let i=r,o=0,a=0,l=-1;for(;i<e.length;){let r=l>=0?l:ju(e,i);if(l=-1,Pu(e,i,r))break;if(Du(e,i,r),_u<4&&a>0&&!t.l){let t=e.charCodeAt(i+Iu);if(t===ba||t===ya){let n=i+Iu;for(;n<r&&e.charCodeAt(n)===t;)n++;for(;n<r&&(e.charCodeAt(n)===ua||9===e.charCodeAt(n));)n++;if(n>=r){o=t===ba?1:2,i=xu(e,r);break}}}a=r;let k=xu(e,r);if(k<e.length){if(30===e.charCodeAt(k)){var u=ju(e,k);i=xu(e,u),a=u;continue}let r=ju(e,k);if(l=r,Du(e,k,r),_u<4){let o=e.charCodeAt(k+Iu);if(o===pa){i=k;break}if(o===va){for(var s=k+Iu,c=0;s<r&&e.charCodeAt(s)===va&&c<=6;)c++,s++;if(c>=1&&c<=6&&(s>=r||e.charCodeAt(s)===ua||9===e.charCodeAt(s))){i=k;break}}if(o===fa||o===da){for(var f=k+Iu,d=0;f<r&&e.charCodeAt(f)===o;)d++,f++;if(d>=3){i=k;break}}if(o===$a){var h=k+Iu+1,m=h<r?e.charCodeAt(h):0,p=m===Ea||m===_a;if(p||m!==Da){if(!p){for(var v=h;v<r&&(e.charCodeAt(v)>=La&&e.charCodeAt(v)<=Ba||e.charCodeAt(v)>=Va&&e.charCodeAt(v)<=Ha||e.charCodeAt(v)>=za&&e.charCodeAt(v)<=Ua||e.charCodeAt(v)===ya);)v++;if(v>h){var y=e.slice(h,v).toLowerCase();p=Zu.has(y)||Ql.has(y)}}}else{for(var b=h+1,g=b;g<r&&(e.charCodeAt(g)>=La&&e.charCodeAt(g)<=Ba||e.charCodeAt(g)>=Va&&e.charCodeAt(g)<=Ha||e.charCodeAt(g)>=za&&e.charCodeAt(g)<=Ua||e.charCodeAt(g)===ya);)g++;g>b&&(p=Zu.has(e.slice(b,g).toLowerCase()))}if(p&&es(e,k,t,n)){i=k;break}}if(o===ya||o===wa||o===qa){let t=k+Iu+1;if(t<r&&(e.charCodeAt(t)===ua||9===e.charCodeAt(t))&&Ou(e,t,r)<r&&!Tu(e,k)){i=k;break}}if(o>=za&&o<=Ua){let t=k+Iu;for(;t<r&&e.charCodeAt(t)>=za&&e.charCodeAt(t)<=Ua;)t++;if(t<r&&(e.charCodeAt(t)===Ia||e.charCodeAt(t)===Ra)&&t-(k+Iu)==1&&49===e.charCodeAt(k+Iu)){var w=t+1;if(w<r&&(e.charCodeAt(w)===ua||9===e.charCodeAt(w))&&Ou(e,w,r)<r){i=k;break}}}if(o===Ta){let t=xu(e,r);if(t<e.length&&au(e,t,ju(e,t))){i=k;break}}if((o===ya||o===wa||o===ka)&&Tu(e,k)){if(o!==ya){i=k;break}let t=k+Iu;for(;t<r&&e.charCodeAt(t)===ya;)t++;for(;t<r&&(e.charCodeAt(t)===ua||9===e.charCodeAt(t));)t++;if(t<r){i=k;break}}}}i=xu(e,r)}for(var k=o?a:i;k>r&&(e.charCodeAt(k-1)===ca||e.charCodeAt(k-1)===sa||e.charCodeAt(k-1)===ua||9===e.charCodeAt(k-1));)k--;for(var $=r;$<k&&(e.charCodeAt($)===ua||9===e.charCodeAt($));)$++;if($>=k)return null;for(var S=!1,E=$;E<k;E++)if(30===e.charCodeAt(E)){S=!0;break}var j=S?e.slice($,k).replace(/\u001E/g,""):e.slice($,k);if(!j)return null;let x=os(j,!0,t,n);return o?{node:{type:nl,level:o,children:x,id:""},end:i}:{node:{type:cl,children:x},end:i}}function os(e,r,t,n){var i=t.t;if(!i){var o=t.k;t.k=r;var a=zs(e,0,e.length,t,n);return t.k=o,a}var l=[];return i.push({dest:l,text:e,breaks:r,inline:t.inline,inAnchor:t.inAnchor,inHTML:t.inHTML,htmlDepth:t.d,inList:t.inList,inBlockQuote:t.inBlockQuote,noSetext:t.l,depth:t.o}),l}function as(e,r,t){if(e.charCodeAt(r)!==fa)return null;let n=Cu(e,r,t,96),i=r+n;for(;i<t;){let o=e.indexOf("`",i);if(o<0||o>=t)return null;let a=Cu(e,o,t,96);if(a===n){let t=e.slice(r+n,o);return-1!==t.indexOf("\n")&&(t=t.replace(/\n/g," ")),t.length>0&&" "===t[0]&&" "===t.at(-1)&&t.trim().length>0&&(t=t.slice(1,-1)),{node:{type:Xa,text:t},end:o+a}}i=o+a}return null}function ls(e,r,t){if(e.charCodeAt(r)!==fa)return r;let n=Cu(e,r,t,96),i=r+n;for(;i<t;){let o=e.indexOf("`",i);if(o<0||o>=t)return r;let a=Cu(e,o,t,96);if(a===n)return o+a;i=o+a}return r}function us(e,r,t){if(e.charCodeAt(r)!==$a)return r;if(r+1<t&&e.charCodeAt(r+1)===Da){let n=r+2;for(;n<t&&e.charCodeAt(n)!==pa;)n++;return n<t?n+1:r}if(r+3<t&&e.charCodeAt(r+1)===Ea&&e.charCodeAt(r+2)===ya&&e.charCodeAt(r+3)===ya){let t=e.indexOf("--\x3e",r+4);return t>=0?t+3:r}let n=r+1,i=n;for(;n<t;){let r=e.charCodeAt(n);if(!(r>=La&&r<=Ba||r>=Va&&r<=Ha||r>=za&&r<=Ua||r===ya))break;n++}if(n===i)return r;let o=e.slice(i,n).toLowerCase(),a=!1;for(;n<t;){let i=e.charCodeAt(n);if(i===pa){n++;break}if(i===Da&&n+1<t&&e.charCodeAt(n+1)===pa){n+=2,a=!0;break}if(i!==Fa&&i!==Pa){if(i===ca)return r;n++}else{var l=i;for(n++;n<t&&e.charCodeAt(n)!==l;)n++;n<t&&n++}}if(a||_l(o))return n;let u=1;for(;n<t&&u>0;)if(e.charCodeAt(n)===$a)if(n+1<t&&e.charCodeAt(n+1)===Da){let r=n+2,i=r;for(;i<t&&(e.charCodeAt(i)>=La&&e.charCodeAt(i)<=Ba||e.charCodeAt(i)>=Va&&e.charCodeAt(i)<=Ha);)i++;if(e.slice(r,i).toLowerCase()===o){for(;i<t&&e.charCodeAt(i)!==pa;)i++;if(i<t&&i++,u--,0===u)return i}n=i}else{let r=n+1,i=r;for(;i<t&&(e.charCodeAt(i)>=La&&e.charCodeAt(i)<=Ba||e.charCodeAt(i)>=Va&&e.charCodeAt(i)<=Ha);)i++;e.slice(r,i).toLowerCase()===o&&u++,n++}else n++;return n}function ss(e,r,t,n,i){if(e.charCodeAt(r)!==da||r+1>=t||e.charCodeAt(r+1)!==da)return null;let o=r+2;for(;o+1<t;){let a=e.charCodeAt(o);if(a===fa){let r=ls(e,o,t);if(r>o){o=r;continue}}if(a===da&&e.charCodeAt(o+1)===da){let t=e.slice(r+2,o),a=zs(t,0,t.length,n,i);return{node:{type:ml,tag:"del",children:a},end:o+2}}a===ga&&o+1<t&&o++,o++}return null}function cs(e,r,t,n,i){if(e.charCodeAt(r)!==ba||r+1>=t||e.charCodeAt(r+1)!==ba)return null;let o=r+2;for(;o+1<t;){let a=e.charCodeAt(o);if(a===fa){let r=ls(e,o,t);if(r>o){o=r;continue}}if(a===ba&&e.charCodeAt(o+1)===ba&&o>r+2){let t=e.slice(r+2,o),a=zs(t,0,t.length,n,i);return{node:{type:ml,tag:"mark",children:a},end:o+2}}a===ga&&o+1<t&&o++,o++}return null}function fs(e,r,t){return e<Wa?!!(4&wu(e)):Dl.test(r[t])}function ds(e,r,t){return e<Wa?!!(1&wu(e)):Pl.test(r[t])}function hs(e,r,t){var n=e.charCodeAt(r);if(n!==wa&&n!==ka)return null;var i=Cu(e,r,t,n);if(0===i)return null;var o,a,l=r>0?e.charCodeAt(r-1):32,u=r+i<t?e.charCodeAt(r+i):32,s=ds(l,e,r-1),c=ds(u,e,r+i),f=r>0&&fs(l,e,r-1),d=r+i<t&&fs(u,e,r+i),h=!c&&(!d||s||f),m=!s&&(!f||c||d);return n===wa?(o=h,a=m):(o=h&&(!m||f),a=m&&(!h||d)),{len:i,canOpen:o,canClose:a}}function ms(e,r,t,n){return null===r(e,t,n)?null:e}var ps=0,vs=0,ys=0,bs=0,gs=0,ws=0,ks=0,$s=0,Ss=null,Es=0,js=[],xs=256;function Os(e,r,t,n,i){let o=e.charCodeAt(r)===Ea,a=o?r+1:r;if(e.charCodeAt(a)!==ha||bs===$s&&a>=ys)return null;var l=Es===$s?Ss:null,u=null===l?0:l[a];if(u<0)return null;var s=u;if(0===u){var c=e.indexOf("]",a+1);if(c<0||c>=t)return ys=a,bs=$s,null;s=a+1;var f=0;js[f++]=a;for(var d=t-a>=xs;s<t&&f>0;){var h=e.charCodeAt(s);if(h===ga&&s+1<t)s+=2;else{if(h===fa){var m=ls(e,s,t);if(m>s){s=m;continue}}if(h===$a){var p=As(e,s,t);if(p){s=p.end;continue}var v=us(e,s,t);if(v>s){s=v;continue}}if(h===ha)js[f++]=s;else if(h===Sa){var y=js[--f];null===l&&d&&s-a>=xs&&(l=Ss=new Int32Array(t),Es=$s),null!==l&&(l[y]=s+1)}s++}}if(f>0){if(null===l&&d&&s-a>=xs&&(l=Ss=new Int32Array(t),Es=$s),null!==l)for(;f>0;)l[js[--f]]=-1;return null}}var b=s-1,g=e.slice(a+1,b),w=s<t?e.charCodeAt(s):0,k=!1;if(w===Na){var $=!0;for(s++;s<t&&(e.charCodeAt(s)===ua||e.charCodeAt(s)===ca);)s++;var S="",E=s;if(s<t&&e.charCodeAt(s)===$a){for(E=++s;E<t&&e.charCodeAt(E)!==pa;)if(e.charCodeAt(E)===ga&&E+1<t)E+=2;else{if(e.charCodeAt(E)===ca){$=!1;break}E++}$&&(E>=t||e.charCodeAt(E)!==pa)&&($=!1),$&&(S=e.slice(s,E),E++)}else if($){var j=vs===$s?ps:-1;if(j>=0&&s>=j)$=!1;else{for(var x=0,O=!1;E<t;){var A=e.charCodeAt(E);if(A===ga&&E+1<t)E+=2;else{if(A===Na)x++;else if(A===Ra){if(O=!0,0===x)break;x--}else if(A===ua||A===ca)break;E++}}E>=t&&!O&&(j<0||s<j)&&(ps=s,vs=$s),S=e.slice(s,E)}}if($){for(s=E;s<t&&(e.charCodeAt(s)===ua||e.charCodeAt(s)===ca);)s++;var C;if(s<t){var _=e.charCodeAt(s);if(_===Fa||_===Pa||_===Na){for(var I=_===Na?41:_,D=++s;s<t&&e.charCodeAt(s)!==I;)e.charCodeAt(s)===ga&&s+1<t&&s++,s++;s>=t?$=!1:(C=e.slice(D,s),s++)}}if($){for(;s<t&&(e.charCodeAt(s)===ua||e.charCodeAt(s)===ca);)s++;(s>=t||e.charCodeAt(s)!==Ra)&&($=!1)}}if($){if(s++,S=kl(ku(S)),void 0!==C&&(C=kl(ku(C))),o){var P=Ps(zs(g,0,g.length,n,i));return{node:{type:ll,target:ms(S,i?.sanitizer||Sl,"img","src"),alt:P,title:C},end:s}}var F=n.inAnchor;n.inAnchor=!0;var q=F?[{type:hl,text:g}]:zs(g,0,g.length,n,i);return n.inAnchor=F,!n.inAnchor&&Ds(q)?null:{node:{type:ul,target:ms(S,i?.sanitizer||Sl,"a","href"),title:C,children:q},end:s}}s=b+1,k=!0}var T="",M=s;if(k||w!==ha){if(bu(g))return null;T=gu(g)}else{var N=s+1;M=N;for(var R=!1;M<t&&e.charCodeAt(M)!==Sa;)if(e.charCodeAt(M)===ga&&M+1<t)M+=2;else{if(e.charCodeAt(M)===ha){R=!0;break}M++}if(R||M>=t)return null;var z=e.slice(N,M);if(z.trim())T=gu(z);else{if(bu(g))return null;T=gu(g)}M+=1}var U=n.refs?.[T];if(!U)return null;if(o)return{node:{type:ll,target:ms(U.target,i?.sanitizer||Sl,"img","src"),alt:Ps(zs(g,0,g.length,n,i)),title:U.title},end:M};var L=n.inAnchor;return n.inAnchor=!0,q=L?[{type:hl,text:g}]:zs(g,0,g.length,n,i),n.inAnchor=L,!n.inAnchor&&Ds(q)?null:{node:{type:ul,target:ms(U.target,i?.sanitizer||Sl,"a","href"),title:U.title,children:q},end:M}}function As(e,r,t){if(e.charCodeAt(r)!==$a)return null;for(var n=r+1;n<t;){var i=e.charCodeAt(n);if(i===pa)break;if(i===ua||i===ca||i===sa||i===$a)return null;n++}if(n>=t||e.charCodeAt(n)!==pa)return null;var o=e.slice(r+1,n);return o.match(/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^\x00-\x20]*)$/)?{node:{type:ul,target:o,title:void 0,children:[{type:hl,text:o}]},end:n+1}:-1!==o.indexOf("@")&&/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/.test(o)?{node:{type:ul,target:`mailto:${o}`,title:void 0,children:[{type:hl,text:o}]},end:n+1}:null}function Cs(e,r,t){if(e.charCodeAt(r)!==ha||r+1>=t||e.charCodeAt(r+1)!==ma||ws===$s&&r>=gs)return null;let n=r+2;for(;n<t&&e.charCodeAt(n)!==Sa&&e.charCodeAt(n)!==ca;)n++;if(n>=t)return gs=r,ws=$s,null;if(e.charCodeAt(n)!==Sa)return null;let i=e.slice(r+2,n);return i?{node:{type:el,target:`#${Ol(i)}`,text:i},end:n+1}:null}function _s(e,r,t,n){if(n.disableBareUrls)return null;var i="",o=!1,a=e.charCodeAt(r);if(a===Oa||72===a?r+8<=t&&e.charCodeAt(r+1)===Ca&&e.charCodeAt(r+2)===Ca&&112===e.charCodeAt(r+3)&&(115===e.charCodeAt(r+4)&&e.charCodeAt(r+5)===ja&&e.charCodeAt(r+6)===Da&&e.charCodeAt(r+7)===Da?i="https://":e.charCodeAt(r+4)===ja&&e.charCodeAt(r+5)===Da&&e.charCodeAt(r+6)===Da&&(i="http://")):a===xa||70===a?r+6<=t&&e.charCodeAt(r+1)===Ca&&112===e.charCodeAt(r+2)&&e.charCodeAt(r+3)===ja&&e.charCodeAt(r+4)===Da&&e.charCodeAt(r+5)===Da&&(i="ftp://"):(a===Aa||87===a)&&r+4<=t&&e.charCodeAt(r+1)===Aa&&e.charCodeAt(r+2)===Aa&&e.charCodeAt(r+3)===Ia&&(i="www.",o=!0),!i)return null;let l=r+i.length;for(;l<t;){let r=e.charCodeAt(l);if(r===ua||r===ca||9===r||r===sa||r===$a||r===pa)break;l++}for(var u=0,s=0,c=r;c<l;c++){var f=e.charCodeAt(c);f===Na?u++:f===Ra&&s++}let d=l;for(;d>r+i.length;){let t=e.charCodeAt(d-1);if(t===Ia||44===t||t===ja||t===Ea||t===_a||t===Ra||t===wa||t===ka||t===da){if(t===Ra){if(u>=s)break;s--}d--}else{if(59!==t)break;for(var h=d-2;h>r&&(e.charCodeAt(h)>=La&&e.charCodeAt(h)<=Ba||e.charCodeAt(h)>=Va&&e.charCodeAt(h)<=Ha||e.charCodeAt(h)>=za&&e.charCodeAt(h)<=Ua);)h--;h>=r&&38===e.charCodeAt(h)?d=h:d--}}if(d<=r+i.length)return null;var m=r+(o?4:i.length),p=e.indexOf("/",m);if((p<0||p>d)&&(p=d),o&&-1===e.indexOf(".",m))return null;for(var v=-1,y=-1,b=p-1;b>=m;b--)if(e.charCodeAt(b)===Ia){if(!(v<0)){y=b;break}v=b}for(b=y>=0?y+1:m;b<p;b++)if(e.charCodeAt(b)===ka)return null;var g=e.slice(r,d);return{node:{type:ul,target:o?`http://${g}`:g,title:void 0,children:[{type:hl,text:g}]},end:d}}function Is(e,r,t,n){if(n.disableBareUrls)return null;for(var i=r,o=i;i<t&&((s=e.charCodeAt(i))>=La&&s<=Ba||s>=Va&&s<=Ha||s>=za&&s<=Ua||s===Ia||s===Ea||s===va||36===s||37===s||38===s||s===Pa||s===wa||s===qa||s===Da||s===ba||s===_a||s===ma||s===ka||s===fa||s===Ma||s===Ta||125===s||s===da||s===ya);)i++;if(i===o||i>=t||64!==e.charCodeAt(i))return null;for(var a=++i,l=-1,u=i;i<t;){var s;if((s=e.charCodeAt(i))>=La&&s<=Ba||s>=Va&&s<=Ha||s>=za&&s<=Ua)i++;else if((s===ya||s===ka)&&i>a)i++;else{if(s!==Ia)break;if(i===a)break;var c=e.charCodeAt(i-1);if(c===ya||c===ka||i-u>63)break;if(!(i+1<t))break;var f=e.charCodeAt(i+1);if(!(f>=La&&f<=Ba||f>=Va&&f<=Ha||f>=za&&f<=Ua))break;l=i,u=i+1,i++}}if(i-u>63||l<0)return null;var d=e.charCodeAt(i-1);if(!(d>=La&&d<=Ba||d>=Va&&d<=Ha||d>=za&&d<=Ua)||i<=l+1)return null;for(var h=-1,m=l-1;m>=a;m--)if(e.charCodeAt(m)===Ia){h=m;break}for(m=h>=0?h+1:a;m<i;m++)if(e.charCodeAt(m)===ka)return null;var p=e.slice(r,i);return{node:{type:ul,target:`mailto:${p}`,title:void 0,children:[{type:hl,text:p}]},end:i}}function Ds(e){for(var r=0;r<e.length;r++)if(e[r].type===ul||"children"in e[r]&&Array.isArray(e[r].children)&&Ds(e[r].children))return!0;return!1}function Ps(e,r){for(var t="",n=0;n<e.length;n++){var i=e[n];i.type===hl?t+=i.text:i.type===Za?t+=" ":i.type===Xa||i.type===el?t+=i.text:"children"in i&&Array.isArray(i.children)?t+=Ps(i.children,r):!r&&i.type===ll&&(t+=i.alt||"")}return t}function Fs(e,r,t){for(var n=0;n<e.length;n++){var i=e[n];if(i.type===nl&&(i.id=Fu(t(Ps(i.children,!0)),r)),"children"in i){var o=i.children;Array.isArray(o)&&Fs(o,r,t)}if((i.type===sl||i.type===pl)&&Array.isArray(i.items))for(var a=i.items,l=0;l<a.length;l++)Fs(a[l],r,t)}}function qs(e){return{type:hl,text:e}}function Ts(e,r,t){var n=r+1;if(n>=t)return-1;if(e.charCodeAt(n)===va){var i=++n<t&&(120===e.charCodeAt(n)||88===e.charCodeAt(n));i&&n++;for(var o=n,a=i?6:7;n<t&&n-o<=a;){var l=e.charCodeAt(n);if(!(l>=za&&l<=Ua||i&&(l>=La&&l<=70||l>=Va&&l<=xa)))break;n++}return n===o||n-o>a?-1:n<t&&59===e.charCodeAt(n)?n+1:-1}for(var u=n;n<t&&n-u<48;){var s=e.charCodeAt(n);if(!(s>=La&&s<=Ba||s>=Va&&s<=Ha||s>=za&&s<=Ua))break;n++}return n===u?-1:n<t&&59===e.charCodeAt(n)?n+1:-1}function Ms(e,r,t,n,i){if(e.charCodeAt(r)!==$a)return null;var o=r+1;if(o>=t)return null;var a=e.charCodeAt(o);if(a===Ea&&o+1<t&&e.charCodeAt(o+1)===ya&&o+2<t&&e.charCodeAt(o+2)===ya){var l=o+3;if(l<t&&e.charCodeAt(l)===pa)return{node:{type:ol,text:"",s:!0},end:l+1};if(l+1<t&&e.charCodeAt(l)===ya&&e.charCodeAt(l+1)===pa)return{node:{type:ol,text:"-",s:!0},end:l+2};var u=e.indexOf("--\x3e",l);return-1!==u&&u<=t-3?{node:{type:ol,text:e.slice(r+4,u),s:!1},end:u+3}:null}if(a===_a){var s=e.indexOf("?>",o+1);return-1!==s&&s<t?{node:{type:al,tag:"?",attrs:{},m:e.slice(r,s+2),a:!1},end:s+2}:null}if(a===Ea&&o+1<t){var c=e.charCodeAt(o+1);if(c===ha&&"[CDATA["===e.slice(o+1,o+8)){var f=e.indexOf("]]>",o+8);return-1!==f&&f<t?{node:{type:al,tag:"![CDATA[",attrs:{},m:e.slice(r,f+3),a:!1},end:f+3}:null}if(c>=La&&c<=Ba){var d=e.indexOf(">",o+2);return-1!==d&&d<t?{node:{type:al,tag:`!${e.slice(o+1,d)}`,attrs:{},m:e.slice(r,d+1),a:!1},end:d+1}:null}}if(a===Da){var h=o+1;if(h>=t)return null;var m=e.charCodeAt(h);if(!(m>=La&&m<=Ba||m>=Va&&m<=Ha))return null;for(h++;h<t;){var p=e.charCodeAt(h);if(!(p>=La&&p<=Ba||p>=Va&&p<=Ha||p>=za&&p<=Ua||p===ya))break;h++}for(;h<t&&(e.charCodeAt(h)===ua||9===e.charCodeAt(h)||e.charCodeAt(h)===ca);)h++;if(h<t&&e.charCodeAt(h)===pa){var v=e.slice(o+1,h).trim();return{node:{type:al,tag:v,attrs:{},h:e.slice(r,h+1),a:!0},end:h+1}}return null}if(!(a>=La&&a<=Ba||a>=Va&&a<=Ha))return null;var y=hu(e,r);if(!y)return null;var b=y.tag,g=b.toLowerCase();if(y.n||_l(b))return{node:{type:al,tag:b,attrs:Ju(y.attrs,b,i),m:y.q?fu(y):e.slice(r,y.end),a:!1},end:y.end};var w=Ql.has(g),k=Qu(e.slice(0,t),y.end,b);if(-1===k)return{node:{type:al,tag:b,attrs:Ju(y.attrs,b,i),m:y.q?fu(y):e.slice(r,y.end),a:!1},end:y.end};var $=function(e,r,t){let n=r.length;var i=r.charCodeAt(0);i>=La&&i<=Ba&&(i+=Ga);for(let a=Math.min(t,e.length-n);a>=0;a--){var o=e.charCodeAt(a);if(o>=La&&o<=Ba&&(o+=Ga),o!==i)continue;let t=!0;for(let i=1;i<n;i++){let n=e.charCodeAt(a+i),o=r.charCodeAt(i);if(n>=La&&n<=Ba&&(n+=Ga),o>=La&&o<=Ba&&(o+=Ga),n!==o){t=!1;break}}if(t)return a}return-1}(e,`</${g}`,k),S=e.slice(y.end,$);if(w){var E=mu(S);return{node:{type:il,tag:b,attrs:Ju(y.attrs,b,i),b:y.g+y.b,children:[],e:E||void 0,h:e.slice($,k),text:E,c:!0,a:!1},end:k}}var j=[],x=S.trim();if(x){var{inAnchor:O,inline:A,k:C}=n;"a"===g&&(n.inAnchor=!0),n.k=!1,-1!==x.indexOf("\n\n")||/^#{1,6}\s/.test(x)?(n.inline=!1,j=Vs(x,n,i)):j=zs(x,0,x.length,n,i),n.inAnchor=O,n.inline=A,n.k=C}return{node:{type:il,tag:b,attrs:Ju(y.attrs,b,i),b:y.b,children:j,text:mu(S),c:!1,a:!1},end:k}}var Ns=200,Rs=0;function zs(e,r,t,n,i){if(++Rs>Ns)return Rs--,[{type:hl,text:e.slice(r,t)}];var o=$s;2147483647===ks&&(vs=0,bs=0,ws=0,Es=0,ks=0),$s=++ks;let a=n;if(i.optimizeForStreaming){let n=function(e,r){for(var t=1,n=r+1;n<e.length;n++){var i=e.charCodeAt(n);if(i===ha)t++;else if(i===Sa&&0==--t)return n}return-1},i=e.slice(r,t),o=i;for(var l=0,u=0,s=0,c=0,f=0,d=-1,h=-1,m=-1,p=-1,v=-1,y=0;y<i.length;y++){var b=i.charCodeAt(y);b===wa?y+1<i.length&&i.charCodeAt(y+1)===wa?(l++,d=y,y++):(u++,h=y):b===ka?y+1<i.length&&i.charCodeAt(y+1)===ka?(s++,m=y,y++):(c++,p=y):b===da&&y+1<i.length&&i.charCodeAt(y+1)===da&&(f++,v=y,y++)}var g=[];f%2==1&&v>=0&&g.push([v,2]),s%2==1&&m>=0&&g.push([m,2]),c%2==1&&p>=0&&g.push([p,1]),l%2==1&&d>=0&&g.push([d,2]),u%2==1&&h>=0&&g.push([h,1]),g.sort(((e,r)=>r[0]-e[0]));for(var w=0;w<g.length;w++){var k=g[w][0],$=g[w][1];i=i.slice(0,k)+i.slice(k+$)}let a=0,R=-1;for(let e=0;e<i.length;e++)i.charCodeAt(e)===fa&&(a++,R=e);if(a%2==1&&-1!==R){let e=!1,r=-1,t=0;for(;t<i.length;)i.charCodeAt(t)===fa&&(e?(e=!1,r=-1):(r=t,e=!0)),t++;e&&-1!==r&&(i=i.slice(0,r))}for(var S=!0;S;){S=!1;for(var E=-1,j=-1,x=-1,O=!1,A=0;A<i.length;A++)if(i.charCodeAt(A)===ha&&(0===A||i.charCodeAt(A-1)!==ga)){var C=A>0&&i.charCodeAt(A-1)===Ea,_=C?A-1:A,I=n(i,A);if(-1===I)E=_,O=C,j=A+1,x=i.length;else{var D=I+1;if(D>=i.length)E=_,O=C,j=A+1,x=I;else if(i.charCodeAt(D)===Na){var P=i.indexOf(")",D+1);-1===P?(E=_,O=C,j=A+1,x=I,A=i.length):A=P}else if(i.charCodeAt(D)===ha){var F=i.indexOf("]",D+1);-1===F?(E=_,O=C,j=A+1,x=I,A=i.length):A=F}else A=I}}if(E>=0){var q=O?"":i.slice(j,x);i=i.slice(0,E)+q,S=!0}}let z=i.match(/<([A-Z][A-Za-z0-9]*)(?:\s[^>]*)?>([^<]*)$/);if(z&&void 0!==z.index){var T=z[0].length-z[2].length;if(!(T>=2&&z[0].charCodeAt(T-2)===Da)){for(var M=0,N=0;N<z.index;N++)i.charCodeAt(N)===fa&&M++;M%2!=1&&-1===Yu(i,`</${z[1]}`,0)&&(i=i.slice(0,z.index)+z[2])}}i!==o&&(e=e.slice(0,r)+i,t=r+i.length)}let R=[];var z=[];let U=r;var L="",B=i.disableAutoLink||i.disableBareUrls||a.inAnchor?-1:e.indexOf("@",r);for(B>=t&&(B=-1);r<t;){let n=e.charCodeAt(r),o=null;if(n===fa)o=as(e,r,t),o||(r+=Cu(e,r,t,fa)-1);else if(n===wa||n===ka){var V=hs(e,r,t);if(V){if(V.canOpen||V.canClose){(L||r>U)&&(R.push(qs(L+e.slice(U,r))),L="");var H=qs(e.slice(r,r+V.len));z.push({idx:R.length,ch:n,len:V.len,canOpen:V.canOpen,canClose:V.canClose,active:!0}),R.push(H),U=r+=V.len;continue}r+=V.len-1}}else if(n===da)o=ss(e,r,t,a,i);else if(n===ba)o=cs(e,r,t,a,i);else if(n===ha)r+1<t&&e.charCodeAt(r+1)===ma&&(o=Cs(e,r,t)),o||(o=Os(e,r,t,a,i));else if(n===Ea&&r+1<t&&e.charCodeAt(r+1)===ha)o=Os(e,r,t,a,i);else if(n===$a)o=As(e,r,t),!(o||i.disableParsingRawHTML||i.ignoreHTMLBlocks)&&(o=Ms(e,r,t,a,i));else if(38===n){var W=Ts(e,r,t);if(-1!==W){var G=e.slice(r,W),K=kl(G);if(K!==G){L=L+e.slice(U,r)+K,r=W,U=W;continue}}}else if(!(n!==Oa&&n!==Aa&&n!==xa||a.inAnchor||i.disableAutoLink||0!==r&&e.charCodeAt(r-1)===$a)){var Z=r+1<t?e.charCodeAt(r+1):0;(n===Oa&&Z===Ca||n===xa&&Z===Ca||n===Aa&&Z===Aa)&&(o=_s(e,r,t,i))}if(!o&&B>=0&&B-r<=64&&!a.inAnchor&&!i.disableAutoLink&&!i.disableBareUrls&&(n>=La&&n<=Ba||n>=Va&&n<=Ha||n>=za&&n<=Ua)&&(o=Is(e,r,t,i),!o&&r>=B&&(B=e.indexOf("@",r+1))>=t&&(B=-1)),n===ca&&a.k){var J=!1,Y=0;if(r>U&&e.charCodeAt(r-1)===ga)J=!0,Y=1;else{for(var X=0,Q=r-1;Q>=U&&e.charCodeAt(Q)===ua;)X++,Q--;X>=2&&(J=!0,Y=X)}if(J){for((L||r-Y>U)&&(R.push(qs(L+e.slice(U,r-Y))),L=""),R.push({type:Za}),r++;r<t&&e.charCodeAt(r)===ua;)r++;U=r;continue}var ee=r>U&&e.charCodeAt(r-1)===ua,re=r+1<t&&e.charCodeAt(r+1)===ua;if(ee||re){for(var te=r;te>U&&e.charCodeAt(te-1)===ua;)te--;for(L+=`${e.slice(U,te)}\n`,r++;r<t&&e.charCodeAt(r)===ua;)r++;U=r;continue}}if(o)(L||r>U)&&(R.push(qs(L+e.slice(U,r))),L=""),R.push(o.node),U=r=o.end;else{if(n===ga&&r+1<t&&4&wu(e.charCodeAt(r+1))){(L||r>U)&&(R.push(qs(L+e.slice(U,r))),L=""),R.push(qs(e[r+1])),U=r+=2;continue}if(r++,B<0||B-r>64)for(;r<t&&!(B>=0&&B-r<=64);){var ne=e.charCodeAt(r);if(!(ne<Wa)||iu[ne])break;r++}}}return(L||t>U)&&(R.push(qs(L+e.slice(U,t))),L=""),z.length>0&&function(e,r){if(0!==r.length){for(var t=e.length,n=Array(t),i=null,o=null,a=0;a<t;a++){var l={node:e[a],prev:o,next:null};o?o.next=l:i=l,n[a]=l,o=l}for(var u=Array(r.length),s=0;s<r.length;s++)u[s]=n[r[s].idx];for(var c=[],f=0;f<12;f++)c[f]=-1;for(var d=0;d<r.length;){var h=r[d];if(h.active&&h.canClose){for(var m=6*(h.ch===wa?0:1)+h.len%3*2+(h.canOpen?1:0),p=void 0===c[m]?-1:c[m],v=-1,y=d-1;y>p;y--){var b=r[y];if(b.active&&b.ch===h.ch&&b.canOpen&&(!h.canOpen&&!b.canClose||(b.len+h.len)%3!=0||b.len%3==0)){v=y;break}}if(v<0)c[m]=d-1,!h.canOpen&&(h.active=!1),d++;else{var g=r[v],w=g.len>=2&&h.len>=2,k=w?2:1;g.len-=k,h.len-=k;var $=u[v],S=u[d],E=$.node,j=S.node;E.text=E.text.slice(0,E.text.length-k),j.text=j.text.slice(k);for(var x=[],O=$.next;O&&O!==S;)x.push(O.node),O=O.next;var A={node:{type:ml,tag:w?"strong":"em",children:x},prev:$,next:S};$.next=A,S.prev=A;for(var C=v+1;C<d;C++)r[C].active=!1;if(0===g.len&&(g.active=!1,""===E.text)){var _=$.prev;A.prev=_,_?_.next=A:i=A}if(0===h.len){if(h.active=!1,""===j.text){var I=S.next;A.next=I,I&&(I.prev=A)}d++}}}else d++}for(var D=0,P=i;P;){var F=P.node;if(F.type===hl){var q=F;if(""===q.text){P=P.next;continue}if(D>0&&e[D-1].type===hl){e[D-1].text+=q.text,P=P.next;continue}}e[D++]=F,P=P.next}e.length=D}}(R,z),$s=o,Rs--,R}var Us,Ls,Bs=500;function Vs(e,r,t){var n=r.o||0;if(n>Bs)return[{type:hl,text:e}];if(r.o=n+1,t.optimizeForStreaming&&!r.i&&!r.w){for(var i=e.length;i>0&&e.charCodeAt(i-1)===ca;)i--;for(var o=i;o>0&&e.charCodeAt(o-1)!==ca;)o--;if(i>o&&e.charCodeAt(o)===Ta){for(var a=!1,l=o+1;l<i;l++){var u=e.charCodeAt(l);if(u!==ua&&9!==u&&u!==Ta&&u!==ja&&u!==ya){a=!0;break}}for(var s=!1,c=!1,f=0,d=o,h=o-1;h>0;){for(var m=h;m>0&&e.charCodeAt(m-1)!==ca;)m--;if(e.charCodeAt(m)!==Ta)break;d=m;for(var p=!0,v=!1,y=m;y<h;y++){var b=e.charCodeAt(y);if(b===ya)v=!0;else if(b!==ua&&9!==b&&b!==ja&&b!==Ta){p=!1;break}}p&&v?(s=!0,c=!0):c||f++,h=m-1}a?s||(e=e.slice(0,o).trimEnd()):e=s&&f>0?e.slice(0,o).trimEnd():e.slice(0,d).trimEnd()}for(var g=-1,w=-1,k=-1,$=!1,S=e.length-1;S>=0;S--)if(e.charCodeAt(S)===$a){for(var E=S+1<e.length?e.charCodeAt(S+1):0,j=E>=La&&E<=Ba||E>=Va&&E<=Ha,x=E===Da&&S+2<e.length&&(e.charCodeAt(S+2)>=La&&e.charCodeAt(S+2)<=Ba||e.charCodeAt(S+2)>=Va&&e.charCodeAt(S+2)<=Ha),O=E===Ea||E===_a,A=e.length;A>S+1&&e.charCodeAt(A-1)===ca;)A--;if(j||x||O||S+1>=A){var C=S+1;if((x||j)&&(C=S+2),j||x)for(;C<e.length;){var _=e.charCodeAt(C);if(!(_>=La&&_<=Ba||_>=Va&&_<=Ha||_>=za&&_<=Ua))break;C++}for(var I=j||x?C:S+2;I<e.length&&e.charCodeAt(I)!==pa;)I++;if(I>=e.length)g=S,$=!0;else if((j||x)&&e.charCodeAt(I-1)!==Da){for(var D=!1,P=I+1;P<e.length;P++)if(e.charCodeAt(P)===$a){D=!0;break}D||(g=S,w=C,k=I+1)}}break}if(g>=0){for(var F=0,q=0;q<g;q++)e.charCodeAt(q)===fa&&F++;if(F%2==0)if($)e=e.slice(0,g);else{var T=e.slice(g+1,w);-1===Yu(e,`</${T}`,0)&&(e=e.slice(0,g)+e.slice(k))}}for(var M=e.length;M>0&&e.charCodeAt(M-1)===ca;)M--;if(M>0){for(var N=M;N>0&&e.charCodeAt(N-1)!==ca;)N--;for(var R=N,z=0;R<M&&e.charCodeAt(R)===ua&&z<3;)R++,z++;if(N>0&&R<M&&function(e,r,t){var n=e.charCodeAt(r);if(n!==ba&&n!==ya)return!1;for(var i=r;i<t&&e.charCodeAt(i)===n;)i++;for(;i<t&&(e.charCodeAt(i)===ua||9===e.charCodeAt(i));)i++;return i>=t}(e,R,M)){for(var U=N-1,L=U;L>0&&e.charCodeAt(L-1)!==ca;)L--;Pu(e,L,U)||(e=e.slice(0,N).trimEnd())}}var B=e.length;if(B>0){for(var V=e.lastIndexOf("\n"),H=-1===V?0:V+1,W=B,G=H,K=0;G<W&&e.charCodeAt(G)===ua&&K<3;)G++,K++;if(G<W){var Z=e.charCodeAt(G),J=!1;if(Z===wa||Z===ya||Z===qa){var Y=G+1;if(Y>=W||e.charCodeAt(Y)===ua||9===e.charCodeAt(Y)){for(var X=Y;X<W&&(e.charCodeAt(X)===ua||9===e.charCodeAt(X));)X++;X>=W&&(J=!0)}}else if(Z>=za&&Z<=Ua){for(var Q=G;Q<W&&e.charCodeAt(Q)>=za&&e.charCodeAt(Q)<=Ua;)Q++;if(Q<W&&(e.charCodeAt(Q)===Ia||e.charCodeAt(Q)===Ra)){var ee=Q+1;if(ee>=W||e.charCodeAt(ee)===ua||9===e.charCodeAt(ee)){for(var re=ee;re<W&&(e.charCodeAt(re)===ua||9===e.charCodeAt(re));)re++;re>=W&&(J=!0)}}}J&&(e=e.slice(0,H).trimEnd())}}}if(r.inline)return zs(e,0,e.length,r,t);let te=[],ne=0,ie=e.length;if(0===ne&&!t.disableFrontmatter&&e.startsWith("---")){let r=function(e){if(!Al(e,"---"))return null;let r=3;for(;r<e.length&&(" "===e[r]||"\t"===e[r]);)r++;if(r<e.length&&"\r"===e[r]&&r++,r>=e.length||"\n"!==e[r])return null;r++;let t=!1;for(;r<e.length;){let n=r;for(;r<e.length&&"\n"!==e[r]&&"\r"!==e[r];)r++;if(r>=e.length)break;let i=r;if("\r"===e[r]&&r++,r<e.length&&"\n"===e[r]&&r++,Al(e,"---",n))return{endPos:r,hasValidYaml:t};if(!t){let r=ql(e,n,i);if(r<i){let n=e.charCodeAt(r);if(n>=Va&&n<=Ha||n>=La&&n<=Ba||n>=za&&n<=Ua||n===ka){for(r++;r<i&&(n=e.charCodeAt(r),n>=Va&&n<=Ha||n>=La&&n<=Ba||n>=za&&n<=Ua||n===ka||n===ya||n===Ia);)r++;r<i&&e.charCodeAt(r)===ja&&(r++,r>=i?t=!0:(n=e.charCodeAt(r),(n===ua||9===n)&&(t=!0)))}}}}return null}(e);if(r?.hasValidYaml){if(!1!==t.preserveFrontmatter){let t=e.slice(0,r.endPos).trimEnd();te.push({type:rl,text:t})}ne=r.endPos}}for(;ne<ie;){for(var oe=e.indexOf("\n",ne),ae=oe<0?ie:oe;ne<ie&&Pu(e,ne,ae);)ne=ae<ie?ae+1:ae,ne<ie&&(ae=(oe=e.indexOf("\n",ne))<0?ie:oe);if(ne>=ie)break;var le=30===e.charCodeAt(ne);Du(e,ne,ae);let n=null;if($u=e,Su=ne,Eu=ae,!le&&_u>=4&&!r.inHTML)n=Lu(e,ne);else if(!le){let i=e.charCodeAt(ne+Iu);i===va?n=qu(e,ne,r,t):i===pa?n=Bu(e,ne,r,t):i===fa||i===da?n=zu(e,ne):i===ya||i===wa||i===ka?(n=Tu(e,ne),!n&&(n=Ku(e,ne,r,t))):i===qa||i>=za&&i<=Ua?n=Ku(e,ne,r,t):i===$a?n=es(e,ne,r,t):i===Ta?n=ts(e,ne,r,t):i===ha&&(n=ns(e,ne,r))}if(!n){for(var ue=!1,se=ne;se<ae;se++)if(e.charCodeAt(se)===Ta){ue=!0;break}ue&&(n=ts(e,ne,r,t))}if(n||(n=is(e,ne,r,t)),n)n.node.type!==fl&&te.push(n.node),ne=n.end;else{var ce=e.indexOf("\n",ne);ne=ce<0?ie:ce+1}}return r.o=n,te}function Hs(e,r){var t=hu(e,r);return t?{tagName:t.tag,tagLower:t.tag.toLowerCase(),attrs:t.b,whitespaceBeforeAttrs:t.g,isSelfClosing:t.n,hasSpaceBeforeSlash:t.r,isClosing:t.f,hasNewline:t.g.includes("\n")||t.b.includes("\n"),endPos:t.end}:null}function Ws(e,r,t){var n,i;Rs=0,e=function(e){var r=e.indexOf("\r"),t=e.indexOf("\0");if(-1===r&&-1===t)return e;var n=e.length;Fl.length=0;var i=0,o=0;for(o=-1===r?t:-1===t||r<t?r:t;o<n;o++){var a=e.charCodeAt(o);a===sa?(i<o&&Fl.push(e.slice(i,o)),o+1<n&&e.charCodeAt(o+1)===ca&&o++,Fl.push("\n"),i=o+1):0===a&&(i<o&&Fl.push(e.slice(i,o)),Fl.push("�"),i=o+1)}return i<n&&Fl.push(e.slice(i)),Fl.join("")}(e),!r.refs&&(r.refs={}),(t.optimizeForStreaming||r.inline)&&(r.w=function(e,r,t){if(!t.optimizeForStreaming&&-1===e.indexOf("["))return!1;for(var n=0,i=e.length,o=!1,a=!1;n<i;){for(var l=e.indexOf("\n",n),u=l<0?i:l,s=n,c=0;s<u&&c<4;)if(e.charCodeAt(s)===ua)c++,s++;else{if(9!==e.charCodeAt(s))break;c+=4,s++}if(s>=u)o=!1,n=l<0?i:l+1;else{if(c<4){var f=e.charCodeAt(s);if(f===fa||f===da){for(var d=f,h=0,m=s;m<u&&e.charCodeAt(m)===d;)h++,m++;if(h>=3){var p=!0;if(d===fa)for(var v=m;v<u;v++)if(e.charCodeAt(v)===fa){p=!1;break}if(p){o=!1;for(var y=l<0?i:l+1;y<i;){for(var b=y,g=0;b<i&&g<4;){var w=e.charCodeAt(b);if(w===ua)g++,b++;else{if(9!==w)break;g+=4,b++}}if(g<4&&b<i&&e.charCodeAt(b)===d){for(var k=0;b<i&&e.charCodeAt(b)===d;)k++,b++;if(k>=h){for(;b<i&&(e.charCodeAt(b)===ua||9===e.charCodeAt(b));)b++;if(b>=i||e.charCodeAt(b)===ca){n=b>=i?i:b+1;break}}}for(;y<i&&e.charCodeAt(y)!==ca;)y++;y<i&&y++}y>=i&&(n=i,a=!0);continue}}}}for(var $=s;$<u&&e.charCodeAt($)===pa;){++$<u&&e.charCodeAt($)===ua&&$++;for(var S=0;$<u&&S<4;)if(e.charCodeAt($)===ua)S++,$++;else{if(9!==e.charCodeAt($))break;S+=4,$++}if(S>=4)break;o=!1}if(!o&&c<4&&$<u&&e.charCodeAt($)===ha&&!($+1<i&&e.charCodeAt($+1)===ma)){var E=pu(e,$,r);if(E){n=E,o=!1;continue}}var j=e.charCodeAt(s);if(j===va&&c<4)o=!1;else if(c<4&&(j===ya||j===wa||j===ka)){for(var x=s,O=0;x<u;){var A=e.charCodeAt(x);if(A===j)O++;else if(A!==ua&&9!==A)break;x++}o=!(O>=3&&x>=u)}else o=!0;n=l<0?i:l+1}}return a}(e,r.refs,t)),r.t||(r.t=n=[],r.p=i=[]);let o=Vs(e,r,t);if(n&&i){for(var a=n,l={inline:r.inline,inAnchor:r.inAnchor,inHTML:r.inHTML,htmlDepth:r.d,inList:r.inList,inBlockQuote:r.inBlockQuote,noSetext:r.l,depth:r.o},u=0;u<a.length;u++){var s=a[u];r.inline=s.inline,r.inAnchor=s.inAnchor,r.inHTML=s.inHTML,r.d=s.htmlDepth,r.inList=s.inList,r.inBlockQuote=s.inBlockQuote,r.l=s.noSetext,r.o=s.depth,r.k=s.breaks;var c=zs(s.text,0,s.text.length,r,t);r.k=!1;for(var f=0;f<c.length;f++)s.dest.push(c[f])}r.inline=l.inline,r.inAnchor=l.inAnchor,r.inHTML=l.inHTML,r.d=l.htmlDepth,r.inList=l.inList,r.inBlockQuote=l.inBlockQuote,r.l=l.noSetext,r.o=l.depth;for(var d=i,h=0;h<d.length;h++)for(var m=d[h],p=0;p<m.src.length;p++){var v=m.src[p];if(m.unwrap&&v.type===cl)for(var y=v.children,b=0;b<y.length;b++)m.dest.push(y[b]);else m.dest.push(v)}r.t=void 0,r.p=void 0,Fs(o,r,t.slugify)}return Tl(r.refs)?[{type:fl,refs:r.refs},...o]:o}try{Ls=ne.createElement("div"),Us=null!=Ls&&"object"==typeof Ls&&"$$typeof"in Ls&&"symbol"==typeof Ls.$$typeof?Ls.$$typeof:Symbol.for("react.transitional.element")}catch{Us=Symbol.for("react.transitional.element")}function Gs(e,r,t){return{$$typeof:Us,type:e,key:null==t?null:String(t),ref:null,props:r,_owner:null,_store:{},_debugStack:null,_debugTask:null}}function Ks(e,r){var t={key:e};if(r){var n=gl(r);for(var i in n)t[i]=n[i]}return t}var Zs=typeof ne.createContext>"u"?void 0:ne.createContext(void 0);function Js(e,r,t,n,i,o,a,l,u){switch(e.type){case Ka:{let i={key:t.key};return e.alert&&(i.className=`markdown-alert-${o(e.alert.toLowerCase(),Ol)}`,e.children.unshift(function(e){return{attrs:{},children:[{type:hl,text:e}],c:!0,type:il,tag:"header"}}(e.alert))),n("blockquote",i,r(e.children,t))}case Za:return n("br",{key:t.key});case Ja:return n("hr",{key:t.key});case rl:return l.preserveFrontmatter?n("pre",{key:t.key},e.text):null;case Ya:{let r=e.lang?kl(e.lang):"";var s=e.attrs?gl(e.attrs):{};return s.className=r?`language-${r} lang-${r}`:"",n("pre",{key:t.key},n("code",s,e.text))}case Xa:return n("code",{key:t.key},e.text);case el:return n("a",{key:t.key,href:i(e.target,"a","href")||void 0},n("sup",null,e.text));case tl:return n("input",{checked:e.completed,key:t.key,readOnly:!0,type:"checkbox"});case nl:return n(`h${e.level}`,{id:e.id,key:t.key},r(e.children,t));case il:{let o=e;if(Ll(l)&&Gl(o.tag)){var c=Ul(o);return"literal"===c.kind?n("span",{key:t.key},c.literal):n("span",{key:t.key},...function(e,r,t){var n=[],i=t;if(e&&n.push(e),Array.isArray(r))for(var o=0;o<r.length;o++)n.push(r[o]);else null!=r&&n.push(r);i&&n.push(i);for(var a=[],l=0;l<n.length;l++){var u=n[l];"string"==typeof u&&a.length>0&&"string"==typeof a.at(-1)?a[a.length-1]=a.at(-1)+u:a.push(u)}return a}(c.open,o.children?r(o.children,t):null,c.close))}let s=o.j,v=void 0!==s,y=v?s:o.a?o.e||"":(o.e||"")+(o.h||"");if(y&&o.c){let n=function(e){return Ql.has(e)}(o.tag.toLowerCase()),c=o.children,b=null!=c&&c.length>0;if(n){let r=v?s:o.e||"",n=Ll(l)?Kl(r):r;if(/<[a-z][^>]{0,100}>/i.test(y)){var f=Ks(t.key,e.attrs);return f.dangerouslySetInnerHTML={__html:n},u(e.tag,f)}return u(e.tag,Ks(t.key,e.attrs),n)}let g=new RegExp(`^<${o.tag}(\\s|>)`,"i");if(b&&!g.test(y)&&Ll(l)&&function(e){return Wl.lastIndex=0,Wl.test(e)}(y))return u(e.tag,Ks(t.key,e.attrs),r(c,t));if(function(e){return eu.test(e)}(y)){let r=Ll(l)?Kl(y):y;var d=Ks(t.key,e.attrs);return d.dangerouslySetInnerHTML={__html:r},u(e.tag,d)}let w=Zl({slugify:l.slugify,sanitizer:i,tagfilter:!0}),k=function(e){return e.replace(/>\s+</g,"><").replace(/\n+/g," ").trim()}(y);if(new RegExp(`^<${o.tag}(\\s[^>]*)?>(\\s*</${o.tag}>)?$`,"i").test(k))return o.children&&o.children.length>0?u(e.tag,Ks(t.key,e.attrs),r(o.children,t)):u(e.tag,Ks(t.key,e.attrs));let $=Ws(k,{inline:!1,refs:a,inHTML:!1},w);Rl($);let S=o.tag.toLowerCase(),E=v;if(E&&b)return u(e.tag,Ks(t.key,e.attrs),r(c,t));if(E)return r($.flatMap(Nl),t);var h=function(e,r){for(var t=0;t<e.length;t++){var n=e[t];if(n.type===cl&&n.children)for(var i=n.children,o=0;o<i.length;o++){var a=i[o];if(a.type===al&&a.a&&a.tag.toLowerCase()===r){var l=e.slice(0,t);o>0&&l.push({type:cl,children:i.slice(0,o)});var u=[];if(o+1<i.length){var s=i.slice(o+1).filter((e=>!(e.type===al&&e.a)));s.length>0&&(u=s)}return{found:!0,beforeClose:l,afterClose:u=u.concat(e.slice(t+1))}}}if((n.type===al||n.type===il)&&n.a&&n.tag.toLowerCase()===r)return{found:!0,beforeClose:e.slice(0,t),afterClose:e.slice(t+1)}}return{found:!1,beforeClose:e,afterClose:[]}}($,S);if(h.found&&h.afterClose.length>0){var m=h.beforeClose.flatMap(Nl),p=h.afterClose.flatMap(Nl);return Gs(ne.Fragment,{children:[u(e.tag,Ks(t.key,e.attrs),r(m,t)),r(p,t)]},t.key)}return u(e.tag,Ks(t.key,e.attrs),r($.flatMap(Nl),t))}return _l(e.tag)?u(e.tag,Ks(t.key,e.attrs)):u(e.tag,Ks(t.key,e.attrs),e.children?r(e.children,t):"")}case al:{let r=e;if(Ll(l)&&Gl(r.tag)){var v=Ul(r);return n("span",{key:t.key},"literal"===v.kind?v.literal:v.open+(v.close||""))}return u(e.tag,Ks(t.key,e.attrs))}case ll:{let r=null===e.target?null:i(e.target,"img","src");return n("img",{key:t.key,alt:e.alt&&e.alt.length>0?e.alt:void 0,title:e.title||void 0,src:r||void 0})}case ul:{let o={key:t.key};if(null!=e.target){let r=function(e,r,t,n){var i=r(e,t,n);return null===i?null:function(e){for(var r=!1,t=0;t<e.length;t++)if((i=e.charCodeAt(t))<=ua||i===Fa||37===i||i===$a||i===pa||i===ha||i===ga||i===Sa||i===ma||i===fa||i>=123){r=!0;break}if(!r)return e;var n="";for(t=0;t<e.length;t++){var i;if(37===(i=e.charCodeAt(t))&&t+2<e.length){var o=e.charCodeAt(t+1),a=e.charCodeAt(t+2);if((o>=za&&o<=Ua||o>=La&&o<=70||o>=Va&&o<=xa)&&(a>=za&&a<=Ua||a>=La&&a<=70||a>=Va&&a<=xa)){n+=e[t]+e[t+1]+e[t+2],t+=2;continue}}if(i>=55296&&i<=57343){if(i<=56319&&t+1<e.length){var l=e.charCodeAt(t+1);if(l>=56320&&l<=57343){n+=encodeURI(e[t]+e[t+1]),t++;continue}}n+=e[t]}else n+=encodeURI(e[t])}return n}(i)}(e.target,i,"a","href");null!=r&&(o.href=r)}return e.title&&(o.title=e.title),n("a",o,r(e.children,t))}case dl:{let i=e;return n("table",{key:t.key},n("thead",{key:"thead"},n("tr",null,i.header.map((function(e,o){return n("th",{key:o,style:null===i.align[o]?{}:{textAlign:i.align[o]}},r(e,t))})))),i.cells.length>0&&n("tbody",{key:"tbody"},i.cells.map((function(e,o){return n("tr",{key:o},e.map((function(e,o){return n("td",{key:o,style:null===i.align[o]?{}:{textAlign:i.align[o]}},r(e,t))})))}))))}case hl:return e.text;case ml:return n(e.tag,{key:t.key},r(e.children,t));case sl:case pl:return n(e.type===sl?"ol":"ul",{key:t.key,start:e.type===sl?e.start:void 0},e.items.map((function(e,i){return n("li",{key:i},r(e,t))})));case cl:return n("p",{key:t.key},r(e.children,t));default:return null}}function Ys(e="",r={}){let t={...r||{}};t.overrides=t.overrides||{};let n={};return function(e){let r=t.forceInline||!(t.forceBlock||wl.test(e)),i=Zl(t,r),o=r?e:function(e){for(var r=e.length;r>0&&("\n"===e[r-1]||"\r"===e[r-1]);)r--;return`${e.slice(0,r).replace(Ml,"")}\n\n`}(e);return function(e,r){let t={...r||{}};t.overrides=t.overrides||{};let n=t.slugify||Ol,i=t.sanitizer||Sl,o=t.createElement,a=Tl(t.overrides),l=e=>Ys(e,{...t,wrapper:null});function u(e,r,...n){var i=r||{},l=e;if(a){var u=Bl(t.overrides,`${e}.props`,{});l=((e,r)=>{let t=Bl(r,e,void 0);return t?"function"==typeof t||"object"==typeof t&&"render"in t?t:Bl(r,`${e}.component`,e):e})(e,t.overrides),i={...i,...u,className:Vl(i.className,u.className)||void 0}}if(!o){var s=i.key;return null!=s&&delete i.key,1===n.length?i.children=n[0]:n.length>1&&(i.children=n),Gs(l,i,s)}return o(l,i,...n)}let s=Zl(t,t.forceInline),c=e[0]&&e[0].type===fl?e[0].refs:{},f=((e,r,t,n,i,o,a)=>{var l=(u,s={})=>{var c=Array.isArray(u)?u:[u],f=(s.renderDepth||0)+1;if(f>2500)return(e=>e.map((e=>"text"in e?e.text:"")))(c);s.renderDepth=f;for(var d=s.key,h=[],m=!1,p=0;p<c.length;p++){var v;if(s.key=p,e){var y=Js.bind(null,c[p],l,s,r,t,n,i,o,a);v=e(y,c[p],l,s)}else v=Js(c[p],l,s,r,t,n,i,o,a);var b="string"==typeof v;if(m&&"string"==typeof v){var g=h.at(-1);h[h.length-1]=("string"==typeof g?g:"")+v}else if(null!=v)if(Array.isArray(v))for(var w=0;w<v.length;w++)h.push(v[w]);else h.push(v);m=b}return s.key=d,s.renderDepth=f-1,h};return l})(t.renderRule,u,i,n,c,t,(function(e,r,...t){return r&&function(e){for(var r in e){var t=e[r];if("string"==typeof t&&t.length>0&&t.charCodeAt(0)===$a&&(Jl.test(t)||Yl.test(t)||Hs(t,0))){var n=l(t.trim());e[r]="innerHTML"===r&&Array.isArray(n)?n[0]:n}}}(r),u(e,r,...t)})),d=f(e,{inline:t.forceInline,refs:c}),h=function(e){var r=[];if(!e)return r;for(var t in e)94===t.charCodeAt(0)&&r.push({identifier:t,footnote:e[t].target});return r}(c);if(h.length>0&&d.push(u("footer",{key:"footer"},h.map((function(e){let r=e.identifier.charCodeAt(0)===ma?e.identifier.slice(1):e.identifier,t=Ws(e.footnote,{inline:!0,refs:c},s);return u("div",{id:n(r,Ol),key:e.identifier},`${r}: `,f(t,{inline:!0,refs:c}))})))),null===t.wrapper)return d;let m,p=t.wrapper||(t.forceInline?"span":"div");if(!(d.length>1||t.forceWrapper))return 1===d.length?d[0]:null;m=d;var v=t.wrapperProps?{...t.wrapperProps}:{};return v.children=m,Gs(p,v,"outer")}(Ws(o,{inline:r,refs:n},i),{...t,forceInline:r})}(e)}var Xs=({children:e,options:r,...t})=>{if(!(typeof ne.useContext<"u"))return Ys(e??"",{...r,overrides:{...r?.overrides},wrapperProps:{...r?.wrapperProps,...t}});let n=Zs?ne.useContext(Zs):void 0,i=function(e){let r=ne.useRef(e),t=r.current;if(t!==e){var n=!0,i=0;for(var o in e)if(i++,!Object.is(t[o],e[o])){n=!1;break}if(n){var a=0;for(var l in t)a++;n=a===i}n||(r.current=e)}return r.current}(t),o=ne.useMemo((()=>({...n,...r,overrides:{...n?.overrides,...r?.overrides},wrapperProps:{...n?.wrapperProps,...r?.wrapperProps,...i}})),[n,r,i]),a=e??"";return ne.useMemo((()=>Ys(a,o)),[a,o])};const Qs=Symbol("remove-this-key"),ec=Symbol("reset");function rc(e,r){return Array.isArray(e.required)&&e.required.includes(r)}function tc(e){return Boolean(e?.[Ee])}function nc(e){return Object.keys(e).filter((r=>tc(e[r])))}const ic=ne.memo((function(e){const{fieldPathId:r,schema:t,registry:n,uiSchema:i,errorSchema:o,formData:a,onChange:l,onBlur:u,onFocus:s,disabled:c,readonly:f,required:d,hideError:h,propertyName:m,handleKeyRename:p,handleRemoveProperty:v,addedByAdditionalProperties:y}=e,[b,g]=ne.useState(!1),{globalFormOptions:w,fields:k}=n,{SchemaField:$}=k,S=ao(to(m,w,r.path)),E=ne.useCallback(((e,r,t,n)=>{let i=e;void 0===e&&y&&Fr(r,S.path)&&(i=""),l(i,r,t,n)}),[l,y,S]),j=ne.useCallback((e=>{m!==e&&g(!0),p(m,e)}),[m,p]),x=ne.useCallback((e=>{const{target:{value:r}}=e;j(r)}),[j]),O=ne.useCallback((()=>{v(m)}),[m,v]);return we.jsx($,{name:m,required:d,schema:t,uiSchema:i,errorSchema:o,fieldPathId:S,formData:a,wasPropertyKeyModified:b,onKeyRename:j,onKeyRenameBlur:x,onRemoveProperty:O,onChange:E,onBlur:u,onFocus:s,registry:n,disabled:c,readonly:f,hideError:h})}));function oc(e){const{schema:r,uiSchema:t={},formData:n,errorSchema:i,fieldPathId:o,name:a,required:l=!1,disabled:u,readonly:s,hideError:c,onBlur:f,onFocus:d,onChange:h,registry:m,title:p}=e,{fields:v,schemaUtils:y,translateString:b,globalUiOptions:g}=m,{OptionalDataControlsField:w}=v,k=ne.useRef(n);k.current=n;const $=ne.useMemo((()=>y.retrieveSchema(r,n,!0)),[y,r,n]),S=ne.useMemo((()=>nr(t,g)),[t,g]),E=ne.useMemo((()=>$.properties??{}),[$.properties]),j=e.childFieldPathId??o,x=ne.useRef({previousKey:"",currentKey:void 0}),[O,A]=ne.useState((()=>nc(E))),C=ne.useMemo((()=>{const e=new Set(nc(E));return Object.keys(E).filter((r=>!e.has(r)))}),[E]),_=S.title??$.title??p??a,I=S.description??$.description,D=Xi(m,$,l,t),P=Ui(n);let F=[];const q=ne.useCallback(((e,r)=>{const{duplicateKeySuffixSeparator:n="-"}=nr(t,g);let i=0,o=e;for(;at(r,o);)i+=1,o=`${e}${n}${i}`;return o}),[t,g]),T=ne.useCallback((()=>{if(!$.additionalProperties&&!$.patternProperties)return;const e={...n},r=q("newKey",e);if($.patternProperties)ot(e,r,null);else{let t,i,o;if(ke($.additionalProperties)){t=$.additionalProperties.type,i=$.additionalProperties.const,o=$.additionalProperties.default;let e=$.additionalProperties;Le in e&&(e=y.retrieveSchema({[Le]:e[Le]},n),t=e.type,i=e.const,o=y.getDefaultFormState(e,o)),t||!(Oe in e)&&!(Te in e)||(t="object")}const a=i??o??function(e,r){switch(r){case"array":return[];case"boolean":return!1;case"null":return null;case"number":return 0;case"object":return{};default:return e(mo.NewStringDefault)}}(b,t);ot(e,r,a)}x.current.previousKey===r&&(x.current.currentKey=r,x.current.previousKey=q(r,e)),A((e=>[...e,r])),h(e,j.path)}),[n,h,b,y,j,q,$]),M=ne.useCallback(((e,r)=>{if(e!==r){const t=k.current,n=q(r,t),i={...t},o={[e]:n},a=Object.keys(i).map((e=>{const r=Object.hasOwn(o,e)?o[e]:e;return{[r]:i[e]}})),l=Object.assign({},...a);k.current=l,e!==x.current.currentKey&&(x.current.previousKey=e),x.current.currentKey=n,A((r=>r.map((r=>r===e?n:r)))),h(l,j.path)}}),[h,j,q]),N=ne.useCallback((e=>{A((r=>r.filter((r=>r!==e)))),h(Qs,[...j.path,e])}),[h,j]),R=ne.useCallback((e=>x.current.currentKey===e?x.current.previousKey:e),[]);if(!D||P)try{const e=new Set(C),r=O.filter((r=>Object.hasOwn(E,r)&&!e.has(r)));F=function(e,r){if(!Array.isArray(r))return e;const t=e=>e.reduce(((e,r)=>(e[r]=!0,e)),{}),n=t(e),i=r.filter((e=>"*"===e||n[e])),o=t(i),a=e.filter((e=>!o[e])),l=i.indexOf("*");if(-1===l){if(a.length)throw new Error("uiSchema order list does not contain "+((u=a).length>1?`properties '${u.join("', '")}'`:`property '${u[0]}'`));return i}var u;if(l!==i.lastIndexOf("*"))throw new Error("uiSchema order list contains more than one wildcard item");const s=[...i];return s.splice(l,1,...a),s}([...C,...r],S.order)}catch(e){return we.jsxs("div",{children:[we.jsx("p",{className:"rjsf-config-error",style:{color:"red"},children:we.jsx(Xs,{options:{disableParsingRawHTML:!0},children:b(mo.InvalidObjectField,[a||"root",e.message])})}),we.jsx("pre",{children:JSON.stringify($)})]})}const z=yi("ObjectFieldTemplate",m,S),U=D?we.jsx(w,{...e,fieldPathId:j,schema:$}):void 0,L={title:!1===S.label?"":_,description:!1===S.label?void 0:I,properties:F.map((e=>{const r=tc($.properties?.[e]),o=r?t.additionalProperties:t[e],a="hidden"===nr(o).widget;return{content:we.jsx(ic,{propertyName:e,required:rc($,e),schema:ft($,e),uiSchema:o,errorSchema:it(i,e),fieldPathId:j,formData:it(n,e),handleKeyRename:M,handleRemoveProperty:N,addedByAdditionalProperties:r,onChange:h,onBlur:f,onFocus:d,registry:m,disabled:u,readonly:s,hideError:c},R(e)),name:e,readonly:s,disabled:u,required:l,hidden:a}})),readonly:s,disabled:u,required:l,fieldPathId:o,uiSchema:t,errorSchema:i,schema:$,formData:n,registry:m,optionalDataControl:U,className:D?"rjsf-optional-object-field":void 0};return we.jsx(z,{...L,onAddProperty:T})}function ac(e){const{schema:r,uiSchema:t={},formData:n,disabled:i=!1,readonly:o=!1,onChange:a,errorSchema:l,fieldPathId:u,registry:s}=e,{globalUiOptions:c={},schemaUtils:f,translateString:d}=s,h=yi("OptionalDataControlsTemplate",s,nr(t,c)),m=Ui(n);let p,v,y,b;return i||o?(p=zi(u,"Msg"),v=m?void 0:d(mo.OptionalObjectEmptyMsg)):(v=d(m?mo.OptionalObjectRemove:mo.OptionalObjectAdd),m?(p=zi(u,"Remove"),b=()=>a(void 0,u.path,l)):(p=zi(u,"Add"),y=()=>{let e=f.getDefaultFormState(r,n,"excludeObjectChildren");void 0===e&&(e="array"===st(r)?[]:{}),a(e,u.path,l)})),v&&we.jsx(h,{id:p,registry:s,schema:r,uiSchema:t,label:v,onAddClick:y,onRemoveClick:b})}const lc={array:"ArrayField",boolean:"BooleanField",integer:"NumberField",number:"NumberField",object:"ObjectField",string:"StringField",null:"NullField"},uc=ne.memo((function(e){const{schema:r,fieldPathId:t,uiSchema:n,formData:i,errorSchema:o,name:a,onChange:l,onKeyRename:u,onKeyRenameBlur:s,onRemoveProperty:c,required:f=!1,registry:d,wasPropertyKeyModified:h=!1}=e,{schemaUtils:m,globalFormOptions:p,globalUiOptions:v,fields:y}=d,{AnyOfField:b,OneOfField:g,CyclicSchemaField:w}=y,k=t[De],$=ne.useCallback(((e,r,t,n)=>l(e,r,t,n||k)),[k,l]);if(r[Ve])return we.jsx(w,{...e});const S=function(e,r,t){const n=e[Be]??e[Le],i=t.uiSchemaDefinitions,o=n&&i?i[n]:void 0;let a;if(a=o?r&&0!==Object.keys(r).length?In(o,r):{...o}:r||{},i){let r=e;if(n&&e[Le]&&!e[Be])try{r=Xr(n,t.rootSchema)}catch(e){return console.warn("could not resolve $ref in resolveUiSchema:\n",e),a}for(const e of[Te,Oe]){const t=r[e];if(Array.isArray(t)&&t.length>0){const r=a[e],n=Array.isArray(r)?[...r]:[];let o=!1;for(let e=0;e<t.length;e++){const r=t[e],a=r?.[Be]??r?.[Le];a&&a in i&&(n[e]=In(i[a],n[e]||{}),o=!0)}o&&(a[e]=n)}}}return a}(r,n,d),E=nr(S,v),j=yi("FieldTemplate",d,E),x=yi("DescriptionFieldTemplate",d,E),O=yi("FieldHelpTemplate",d,E),A=yi("FieldErrorTemplate",d,E),C=m.retrieveSchema(r,i),_=function(e,r,t){const{field:n}=r,{fields:i,schemaUtils:o}=t;if("function"==typeof n)return n;if("string"==typeof n&&n in i)return i[n];const a=st(e),l=Array.isArray(a)?a[0]:a||"",u=e.$id;let s=lc[l];return u&&u in i&&(s=u),!e.anyOf&&!e.oneOf||o.isSelect(e)||"ObjectField"===s?s in i?i[s]:i.FallbackField:()=>null}(C,E,d),I=Boolean(C.deprecated)?E.deprecatedHandling??"label":void 0,D=Boolean(E.disabled??e.disabled)||"disable"===I,P=Boolean(E.readonly??(e.readonly||e.schema.readOnly||C.readOnly)),F=E.hideError,q=void 0===F?e.hideError:Boolean(F),T=Boolean(E.autofocus??e.autofocus);if(0===Object.keys(C).length)return null;let M,N,R=m.getDisplayLabel(C,S,v),z={fieldPathId:t};if(!(!(Oe in C)&&!(Te in C)||E.field&&!0===E.fieldReplacesAnyOrOneOf||m.isSelect(C))){C[Oe]?(M=b,N=C[Oe].map((e=>m.retrieveSchema(ke(e)?e:{},i)))):C[Te]&&(M=g,N=C[Te].map((e=>m.retrieveSchema(ke(e)?e:{},i))));const e=Xi(d,C,f,S),r=Ui(i);R=R&&(!e||r),z={childFieldPathId:t,fieldPathId:to("XxxOf",p,t)}}const{__errors:U,...L}=o||{},{"ui:classNames":B,classNames:V,"ui:style":H,...W}=S;if(er in W){const{classNames:e,style:r,...t}=W[er];W[er]=t}const G=we.jsx(_,{...e,onChange:$,...z,schema:C,uiSchema:W,disabled:D,readonly:P,hideError:q,autofocus:T,errorSchema:L,rawErrors:U}),K=t[De];let Z;Z=h||Ee in C?a:E.title||e.schema.title||C.title||e.title||a,"label"===I&&(Z=d.translateString(mo.DeprecatedLabel,[Z]));const J=E.description||e.schema.description||C.description||"",{help:Y}=E,X="hidden"===E.widget||"hide"===I,Q=["rjsf-field",`rjsf-field-${st(C)}`];!q&&U&&U.length>0&&Q.push("rjsf-field-error"),E.classNames&&Q.push(E.classNames);const ee=we.jsx(O,{help:Y,fieldPathId:t,schema:C,uiSchema:S,hasErrors:!q&&U&&U.length>0,registry:d}),re=q||M&&!m.isSelect(C)?void 0:we.jsx(A,{errors:U,errorSchema:o,fieldPathId:t,schema:C,uiSchema:S,registry:d}),te={description:we.jsx(x,{id:Di(K),description:J,schema:C,uiSchema:S,registry:d}),rawDescription:J,help:ee,rawHelp:"string"==typeof Y?Y:void 0,errors:re,rawErrors:q?void 0:U,fieldPathId:t,id:K,label:Z,hidden:X,onChange:l,onKeyRename:u,onKeyRenameBlur:s,onRemoveProperty:c,required:f,disabled:D,readonly:P,hideError:q,displayLabel:R,classNames:Q.join(" ").trim(),style:E.style,formData:i,schema:C,uiSchema:S,registry:d};return we.jsx(j,{...te,children:we.jsxs(we.Fragment,{children:[G,M&&we.jsx(M,{name:a,disabled:D,readonly:P,hideError:q,errorSchema:o,formData:i,fieldPathId:t,onBlur:e.onBlur,onChange:e.onChange,onFocus:e.onFocus,options:N,registry:d,required:f,schema:C,uiSchema:S})]})})}),((e,r)=>{const{experimental_componentUpdateStrategy:t="customDeep"}=r.registry.globalFormOptions;return"always"!==t&&("shallow"===t?Ji(e,r):Fr(e,r))}));function sc(e){const{schema:r,name:t,uiSchema:n,fieldPathId:i,formData:o,required:a,disabled:l=!1,readonly:u=!1,autofocus:s=!1,onChange:c,onBlur:f,onFocus:d,registry:h,rawErrors:m,hideError:p,title:v}=e,{title:y}=r,{widgets:b,schemaUtils:g,globalUiOptions:w}=h,{defaultWidget:k,enumOptions:$}=Wi(r,n,g,b),{widget:S=k,placeholder:E="",title:j,...x}=nr(n),O=g.getDisplayLabel(r,n,w),A=j??v??y??t,C=Oi(r,S,b),_=ne.useCallback(((e,r,t)=>c(e,i.path,r,t)),[c,i]);return we.jsx(C,{options:{...x,enumOptions:$},schema:r,uiSchema:n,id:i.$id,name:t,label:A,hideLabel:!O,hideError:p,value:o,onChange:_,onBlur:f,onFocus:d,required:a,disabled:l,readonly:u,autofocus:s,registry:h,placeholder:E,rawErrors:m,htmlName:i.name})}function cc(e){const{fieldPathId:r,description:t,registry:n,schema:i,uiSchema:o}=e,a=nr(o,n.globalUiOptions),{label:l=!0}=a;if(!t||!l)return null;const u=yi("DescriptionFieldTemplate",n,a);return we.jsx(u,{id:Di(r),description:t,schema:i,uiSchema:o,registry:n})}function fc(e){const{disabled:r,hasCopy:t,hasMoveDown:n,hasMoveUp:i,hasRemove:o,fieldPathId:a,onCopyItem:l,onRemoveItem:u,onMoveDownItem:s,onMoveUpItem:c,readonly:f,registry:d,uiSchema:h}=e,{CopyButton:m,MoveDownButton:p,MoveUpButton:v,RemoveButton:y}=d.templates.ButtonTemplates;return we.jsxs(we.Fragment,{children:[(i||n)&&we.jsx(v,{id:Ri(a,"moveUp"),className:"rjsf-array-item-move-up",disabled:r||f||!i,onClick:c,uiSchema:h,registry:d}),(i||n)&&we.jsx(p,{id:Ri(a,"moveDown"),className:"rjsf-array-item-move-down",disabled:r||f||!n,onClick:s,uiSchema:h,registry:d}),t&&we.jsx(m,{id:Ri(a,"copy"),className:"rjsf-array-item-copy",disabled:r||f,onClick:l,uiSchema:h,registry:d}),o&&we.jsx(y,{id:Ri(a,"remove"),className:"rjsf-array-item-remove",disabled:r||f,onClick:u,uiSchema:h,registry:d})]})}function dc(e){const{children:r,className:t,buttonsProps:n,displayLabel:i,hasDescription:o,hasToolbar:a,registry:l,uiSchema:u}=e,s=yi("ArrayFieldItemButtonsTemplate",l,nr(u)),c={display:"flex",justifyContent:"flex-end",marginTop:i?(o?31:9)+"px":0};return we.jsxs("div",{className:t,style:{display:"flex",alignItems:i?"center":"baseline"},children:[we.jsx("div",{className:a?"col-xs-9 col-md-10 col-xl-11":"col-xs-12",children:r}),a&&we.jsx("div",{className:"col-xs-3 col-md-2 col-xl-1 array-item-toolbox",children:we.jsx("div",{className:"btn-group",style:c,children:we.jsx(s,{...n,style:{flex:1,paddingLeft:6,paddingRight:6,fontWeight:"bold"}})})})]})}function hc(e){const{canAdd:r,className:t,disabled:n,fieldPathId:i,uiSchema:o,items:a,optionalDataControl:l,onAddClick:u,readonly:s,registry:c,required:f,schema:d,title:h}=e,m=nr(o),p=yi("ArrayFieldDescriptionTemplate",c,m),v=yi("ArrayFieldTitleTemplate",c,m),y=!s&&!n,{ButtonTemplates:{AddButton:b}}=c.templates;return we.jsxs("fieldset",{className:t,id:i.$id,children:[we.jsx(v,{fieldPathId:i,title:m.title||h,required:f,schema:d,uiSchema:o,registry:c,optionalDataControl:y?l:void 0}),we.jsx(p,{fieldPathId:i,description:m.description||d.description,schema:d,uiSchema:o,registry:c}),y?void 0:l,we.jsx("div",{className:"row array-item-list",children:a}),r&&we.jsx(b,{id:Ri(i,"add"),className:"rjsf-array-item-add",onClick:u,disabled:n||s,uiSchema:o,registry:c})]})}function mc(e){const{fieldPathId:r,title:t,schema:n,uiSchema:i,required:o,registry:a,optionalDataControl:l}=e,u=nr(i,a.globalUiOptions),{label:s=!0}=u;if(!t||!s)return null;const c=yi("TitleFieldTemplate",a,u);return we.jsx(c,{id:Ti(r),title:t,required:o,schema:n,uiSchema:i,registry:a,optionalDataControl:l})}function pc(e){const{id:r,schema:t}=e,{examples:n,default:i}=t;return Array.isArray(n)?we.jsx("datalist",{id:Fi(r),children:n.concat(void 0===i||n.map(String).includes(String(i))?[]:[i]).map((e=>we.jsx("option",{value:e},String(e))))},`datalist_${r}`):null}function vc(e){const{id:r,name:t,htmlName:n,value:i,readonly:o,disabled:a,autofocus:l,onBlur:u,onFocus:s,onChange:c,onChangeOverride:f,options:d,schema:h,uiSchema:m,registry:p,rawErrors:v,type:y,hideLabel:b,hideError:g,...w}=e,{ClearButton:k}=p.templates.ButtonTemplates;if(!r)throw console.log("No id for",e),new Error(`no id for props ${JSON.stringify(e)}`);const $={...w,...mi(h,y,d)};let S;S="number"===$.type||"integer"===$.type?i||0===i?i:"":null==i?"":i;const E=ne.useCallback((({target:{value:e}})=>c(""===e?d.emptyValue:e)),[c,d]),j=ne.useCallback((({target:e})=>u(r,e?.value)),[u,r]),x=ne.useCallback((({target:e})=>s(r,e?.value)),[s,r]),O=ne.useCallback((e=>{e.preventDefault(),e.stopPropagation(),c(d.emptyValue)}),[c,d.emptyValue]);return we.jsxs(we.Fragment,{children:[we.jsx("input",{id:r,name:n||r,className:"form-control",readOnly:o,disabled:a,autoFocus:l,value:S,...$,list:h.examples?Fi(r):void 0,onChange:f||E,onBlur:j,onFocus:x,"aria-describedby":Mi(r,!!h.examples)}),d.allowClearTextInputs&&!o&&!a&&S&&we.jsx(k,{registry:p,onClick:O}),we.jsx(pc,{id:r,schema:h})]})}const yc=ne.memo((function(e){const{iconType:r="default",icon:t,className:n,uiSchema:i,registry:o,...a}=e;return we.jsx("button",{type:"button",className:`btn btn-${r} ${n}`,...a,children:we.jsx("i",{className:`glyphicon glyphicon-${t}`})})})),bc=ne.memo((function(e){const{registry:{translateString:r}}=e;return we.jsx(yc,{title:r(mo.CopyButton),...e,icon:"copy"})})),gc=ne.memo((function(e){const{registry:{translateString:r}}=e;return we.jsx(yc,{title:r(mo.MoveDownButton),...e,icon:"arrow-down"})})),wc=ne.memo((function(e){const{registry:{translateString:r}}=e;return we.jsx(yc,{title:r(mo.MoveUpButton),...e,icon:"arrow-up"})})),kc=ne.memo((function(e){const{registry:{translateString:r}}=e;return we.jsx(yc,{title:r(mo.RemoveButton),...e,iconType:"danger",icon:"remove"})})),$c=ne.memo((function({id:e,className:r,onClick:t,disabled:n,registry:i,...o}){const{translateString:a}=i;return we.jsx(yc,{id:e,iconType:"default",icon:"remove",className:"btn-clear col-xs-12",title:a(mo.ClearButton),onClick:t,disabled:n,registry:i,...o})}));function Sc({id:e,className:r,onClick:t,disabled:n,registry:i}){const{translateString:o}=i;return we.jsx("div",{className:"row",children:we.jsx("p",{className:`col-xs-4 col-sm-2 col-lg-1 col-xs-offset-8 col-sm-offset-10 col-lg-offset-11 text-right ${r}`,children:we.jsx(yc,{id:e,iconType:"info",icon:"plus",className:"btn-add col-xs-12",title:o(mo.AddButton),onClick:t,disabled:n,registry:i})})})}function Ec({uiSchema:e}){const{submitText:r,norender:t,props:n={}}=function(e={}){const r=nr(e);if(r?.[Ue]){const e=r[Ue];return{...vi,...e}}return vi}(e);return t?null:we.jsx("div",{children:we.jsx("button",{type:"submit",...n,className:`btn btn-info ${n.className||""}`,children:r})})}function jc(e){const{name:r,fieldPathId:t,registry:n,onExpand:i}=e,{translateString:o}=n,a=`${t[De]}-button`;return we.jsxs("div",{style:{marginTop:"1rem"},children:[we.jsx("div",{className:"text-danger",children:o(mo.CycleDetected,[r])}),we.jsxs("div",{children:[we.jsx("button",{id:a,type:"button",className:"btn btn-sm btn-warning",onClick:()=>i(t[De]),children:o(mo.ExpandButton)})," "]})]})}const xc=gi();function Oc({description:e,registry:r,uiSchema:t={}}){const{globalUiOptions:n}=r;return nr(t,n).enableMarkdownInDescription&&"string"==typeof e?we.jsx(Xs,{options:{disableParsingRawHTML:!0},"data-testid":xc.markdown,children:e}):e}function Ac(e){const{id:r,description:t,registry:n,uiSchema:i}=e;return t?we.jsx("div",{id:r,className:"field-description",children:we.jsx(Oc,{description:t,registry:n,uiSchema:i})}):null}function Cc({errors:e,registry:r}){const{translateString:t}=r;return we.jsxs("div",{className:"panel panel-danger errors",children:[we.jsx("div",{className:"panel-heading",children:we.jsx("h3",{className:"panel-title",children:t(mo.ErrorsLabel)})}),we.jsx("ul",{className:"list-group",children:e.map(((e,r)=>we.jsx("li",{className:"list-group-item text-danger",children:e.stack},r)))})]})}function _c(e){const{schema:r,registry:t,typeSelector:n,schemaField:i}=e,o=yi("MultiSchemaFieldTemplate",t);return we.jsx(o,{selector:n,optionSchemaField:i,schema:r,registry:t})}function Ic(e){const{errors:r=[],fieldPathId:t}=e;if(0===r.length)return null;const n=Pi(t);return we.jsx("div",{children:we.jsx("ul",{id:n,className:"error-detail bs-callout bs-callout-info",children:r.filter((e=>!!e)).map(((e,r)=>we.jsx("li",{className:"text-danger",children:e},r)))})})}Oc.TEST_IDS=xc;const Dc=gi();function Pc({help:e,registry:r,uiSchema:t={}}){const{globalUiOptions:n}=r;return nr(t,n).enableMarkdownInHelp&&"string"==typeof e?we.jsx(Xs,{options:{disableParsingRawHTML:!0},"data-testid":Dc.markdown,children:e}):e}function Fc(e){const{fieldPathId:r,help:t,uiSchema:n,registry:i}=e;return t?we.jsx("div",{id:qi(r),className:"help-block",children:we.jsx(Pc,{help:t,registry:i,uiSchema:n})}):null}function qc(e){const{label:r,required:t,id:n}=e;return r?we.jsxs("label",{className:"control-label",htmlFor:n,children:[r,t&&we.jsx("span",{className:"required",children:"*"})]}):null}function Tc(e){const{id:r,label:t,children:n,errors:i,help:o,description:a,hidden:l,required:u,displayLabel:s,registry:c,uiSchema:f}=e,d=nr(f),h=yi("WrapIfAdditionalTemplate",c,d);if(l)return we.jsx("div",{className:"hidden",children:n});const m="checkbox"===d.widget;return we.jsxs(h,{...e,children:[s&&!m&&we.jsx(qc,{label:t,required:u,id:r}),s&&a?a:null,n,i,o]})}function Mc(e){const{children:r,column:t,className:n,...i}=e;return we.jsx("div",{className:n,...i,children:r})}function Nc(e){const{selector:r,optionSchemaField:t}=e;return we.jsxs("div",{className:"panel panel-default panel-body",children:[we.jsx("div",{className:"form-group",children:r}),t]})}function Rc(e){const{className:r,description:t,disabled:n,formData:i,fieldPathId:o,onAddProperty:a,optionalDataControl:l,properties:u,readonly:s,registry:c,required:f,schema:d,title:h,uiSchema:m}=e,p=nr(m),v=yi("TitleFieldTemplate",c,p),y=yi("DescriptionFieldTemplate",c,p);if((d.oneOf||d.anyOf)&&!d.properties&&0===u.length)return null;const b=!s&&!n,{ButtonTemplates:{AddButton:g}}=c.templates;return we.jsxs("fieldset",{className:r,id:o.$id,children:[h&&we.jsx(v,{id:Ti(o),title:h,required:f,schema:d,uiSchema:m,registry:c,optionalDataControl:b?l:void 0}),t&&we.jsx(y,{id:Di(o),description:t,schema:d,uiSchema:m,registry:c}),b?void 0:l,u.map((e=>e.content)),ir(d,m,i)&&we.jsx(g,{id:Ri(o,"add"),className:"rjsf-object-property-expand",onClick:a,disabled:n||s,uiSchema:m,registry:c})]})}function zc(e){const{id:r,registry:t,label:n,onAddClick:i,onRemoveClick:o}=e;return i?we.jsx(yc,{id:r,registry:t,icon:"plus",className:"rjsf-add-optional-data btn-sm",onClick:i,title:n}):o?we.jsx(yc,{id:r,registry:t,icon:"remove",className:"rjsf-remove-optional-data btn-sm",onClick:o,title:n}):we.jsx("em",{id:r,children:n})}function Uc(e){const{id:r,title:t,required:n,optionalDataControl:i}=e;return we.jsxs("legend",{id:r,children:[t,n&&we.jsx("span",{className:"required",children:"*"}),i&&we.jsx("span",{className:"pull-right",style:{marginBottom:"2px"},children:i})]})}function Lc(e){const{schema:r,fieldPathId:t,reason:n,registry:i}=e,{translateString:o}=i;let a=mo.UnsupportedField;const l=[];return t?.$id&&(a=mo.UnsupportedFieldWithId,l.push(t.$id)),n&&(a=a===mo.UnsupportedField?mo.UnsupportedFieldWithReason:mo.UnsupportedFieldWithIdAndReason,l.push(n)),we.jsxs("div",{className:"unsupported-field",children:[we.jsx("p",{children:we.jsx(Xs,{options:{disableParsingRawHTML:!0},children:o(a,l)})}),r&&we.jsx("pre",{children:JSON.stringify(r,null,2)})]})}function Bc(e){const{id:r,classNames:t,style:n,disabled:i,displayLabel:o,label:a,onKeyRenameBlur:l,onRemoveProperty:u,rawDescription:s,readonly:c,required:f,schema:d,hideError:h,rawErrors:m,children:p,uiSchema:v,registry:y}=e,{templates:b,translateString:g}=y,{RemoveButton:w}=b.ButtonTemplates,k=g(mo.KeyLabel,[a]),$=Ee in d,S=!!s,E=["form-group",t];!h&&m&&m.length>0&&E.push("has-error has-danger");const j=E.join(" ").trim();if(!$)return we.jsx("div",{className:j,style:n,children:p});const x=S?46:26;return we.jsx("div",{className:j,style:n,children:we.jsxs("div",{className:"row",children:[we.jsx("div",{className:"col-xs-5 form-additional",children:we.jsxs("div",{className:"form-group",children:[o&&we.jsx(qc,{label:k,required:f,id:`${r}-key`}),o&&s&&we.jsx("div",{children:" "}),we.jsx("input",{className:"form-control",type:"text",id:`${r}-key`,onBlur:l,defaultValue:a},a)]})}),we.jsx("div",{className:"form-additional form-group col-xs-5",children:p}),we.jsx("div",{className:"col-xs-2",style:{marginTop:o?`${x}px`:void 0},children:we.jsx(w,{id:Ri(r,"remove"),className:"rjsf-object-property-remove btn-block",style:{border:"0"},disabled:i||c,onClick:u,uiSchema:v,registry:y})})]})})}function Vc({time:e=!0,...r}){const{AltDateWidget:t}=r.registry.widgets;return we.jsx(t,{time:e,...r})}function Hc(e){const{disabled:r=!1,readonly:t=!1,autofocus:n=!1,options:i,id:o,name:a,registry:l,onBlur:u,onFocus:s}=e,{translateString:c}=l,{elements:f,handleChange:d,handleClear:h,handleSetNow:m}=function(e){const{time:r=!1,disabled:t=!1,readonly:n=!1,options:i,onChange:o,value:a}=e,[l,u]=ne.useState(Hi(a,r));ne.useEffect((()=>{u(Hi(a,r))}),[r,a]);const s=ne.useCallback(((e,t)=>{const n={...l,[e]:void 0===t?-1:t};!function(e){return Object.values(e).every((e=>-1!==e))}(n)?u(n):o(Qi(n,r))}),[l,o,r]),c=ne.useCallback((e=>{e.preventDefault(),t||n||o(void 0)}),[t,n,o]),f=ne.useCallback((e=>{if(e.preventDefault(),t||n)return;const i=Hi((new Date).toJSON(),r);o(Qi(i,r))}),[t,n,r,o]),d=ne.useMemo((()=>function(e,r,t=[1900,(new Date).getFullYear()+2],n="YMD"){const{day:i,month:o,year:a,hour:l,minute:u,second:s}=e,c={type:"day",range:[1,31],value:i},f={type:"month",range:[1,12],value:o},d={type:"year",range:t,value:a},h=[];switch(n){case"MDY":h.push(f,c,d);break;case"DMY":h.push(c,f,d);break;default:h.push(d,f,c)}return r&&h.push({type:"hour",range:[0,23],value:l},{type:"minute",range:[0,59],value:u},{type:"second",range:[0,59],value:s}),h}(l,r,i.yearsRange,i.format)),[l,r,i.yearsRange,i.format]);return{elements:d,handleChange:s,handleClear:c,handleSetNow:f}}(e);return we.jsxs("ul",{className:"list-inline",children:[f.map(((e,i)=>we.jsx("li",{className:"list-inline-item",children:we.jsx(oo,{rootId:o,name:a,select:d,...e,disabled:r,readonly:t,registry:l,onBlur:u,onFocus:s,autofocus:n&&0===i})},i))),("undefined"===i.hideNowButton||!i.hideNowButton)&&we.jsx("li",{className:"list-inline-item",children:we.jsx("button",{type:"button",className:"btn btn-info btn-now",onClick:m,children:c(mo.NowLabel)})}),("undefined"===i.hideClearButton||!i.hideClearButton)&&we.jsx("li",{className:"list-inline-item",children:we.jsx("button",{type:"button",className:"btn btn-warning btn-clear",onClick:h,children:c(mo.ClearLabel)})})]})}function Wc({id:e,disabled:r,options:t,value:n,autofocus:i=!1,readonly:o,onChange:a,onBlur:l,onFocus:u,htmlName:s}){const{inline:c=!1,enumOptions:f,enumDisabled:d,emptyValue:h}=t,m=pi(t),p=Array.isArray(n)?n:[n],v=ne.useCallback((({target:r})=>l(e,ui(r?.value,f,m,h))),[l,e,f,h,m]),y=ne.useCallback((({target:r})=>u(e,ui(r?.value,f,m,h))),[u,e,f,h,m]);return we.jsx("div",{className:"checkboxes",id:e,children:Array.isArray(f)&&f.map(((t,n)=>{const l=oi(t.value,p),u=Array.isArray(d)&&d.includes(t.value),h=r||u||o?"disabled":"",b=we.jsxs("span",{children:[we.jsx("input",{type:"checkbox",id:Ni(e,n),name:s||e,checked:l,value:si(t.value,n,m),disabled:r||u||o,autoFocus:i&&0===n,onChange:e=>{a(e.target.checked?function(e,r,t=[]){const n=ii(e,t);if(null!=n){const e=t.findIndex((e=>n===e.value)),i=t.map((({value:e})=>e));return r.slice(0,e).concat(n,r.slice(e)).sort(((e,r)=>Number(i.indexOf(e)>i.indexOf(r))))}return r}(n,p,f):function(e,r,t=[]){const n=ii(e,t);return Array.isArray(r)?r.filter((e=>!Fr(e,n))):Fr(n,r)?void 0:r}(n,p,f))},onBlur:v,onFocus:y,"aria-describedby":Mi(e)}),we.jsx("span",{children:t.label})]});return c?we.jsx("label",{className:`checkbox-inline ${h}`,children:b},String(t.value)):we.jsx("div",{className:`checkbox ${h}`,children:we.jsx("label",{children:b})},String(t.value))}))})}function Gc({schema:e,uiSchema:r,options:t,id:n,value:i,disabled:o,readonly:a,label:l,hideLabel:u,autofocus:s=!1,onBlur:c,onFocus:f,onChange:d,registry:h,htmlName:m,required:p}){const v=yi("DescriptionFieldTemplate",h,t),y=Ki(e)&&p,b=ne.useCallback((e=>d(e.target.checked)),[d]),g=ne.useCallback((e=>c(n,e.target.checked)),[c,n]),w=ne.useCallback((e=>f(n,e.target.checked)),[f,n]),k="checkbox"===nr(r).widget?void 0:t.description??e.description;return we.jsxs("div",{className:"checkbox "+(o||a?"disabled":""),children:[!u&&k&&we.jsx(v,{id:Di(n),description:k,schema:e,uiSchema:r,registry:h}),we.jsxs("label",{children:[we.jsx("input",{type:"checkbox",id:n,name:m||n,checked:void 0!==i&&i,required:p,disabled:o||a,autoFocus:s,onChange:b,onBlur:g,onFocus:w,"aria-describedby":Mi(n)}),Li(we.jsxs("span",{children:[l,y&&we.jsx("span",{className:"required",children:"*"})]}),u)]})]})}function Kc(e){const{disabled:r,readonly:t,options:n,registry:i}=e,o=yi("BaseInputTemplate",i,n);return we.jsx(o,{type:"color",...e,disabled:r||t})}function Zc(e){const{onChange:r,value:t,options:n,registry:i}=e,o=yi("BaseInputTemplate",i,n);return we.jsx(o,{type:"datetime-local",...e,value:co(t),onChange:e=>{return r((t=e)?new Date(t).toJSON():void 0);var t}})}function Jc(e){const{onChange:r,options:t,registry:n}=e,i=yi("BaseInputTemplate",n,t),o=ne.useCallback((e=>r(e||void 0)),[r]);return we.jsx(i,{type:"date",...e,onChange:o})}function Yc(e){const{options:r,registry:t}=e,n=yi("BaseInputTemplate",t,r);return we.jsx(n,{type:"email",...e})}function Xc({fileInfo:e,registry:r}){const{translateString:t}=r,{dataURL:n,type:i,name:o}=e;if(!n)return null;const a=t(mo.PreviewLabel);return["image/jpeg","image/png"].includes(i)?we.jsx("img",{src:n,alt:a,style:{maxWidth:"100%"},className:"file-preview"}):we.jsxs(we.Fragment,{children:[" ",we.jsx("a",{download:`preview-${o}`,href:n,className:"file-download",children:a})]})}function Qc({filesInfo:e,registry:r,preview:t,onRemove:n,options:i}){if(0===e.length)return null;const{translateString:o}=r,{RemoveButton:a}=yi("ButtonTemplates",r,i);return we.jsx("ul",{className:"file-info",children:e.map(((e,i)=>{const{name:l,size:u,type:s}=e;return we.jsxs("li",{children:[we.jsx(Xs,{children:o(mo.FilesInfo,[l,s,String(u)])}),t&&we.jsx(Xc,{fileInfo:e,registry:r}),we.jsx(a,{onClick:()=>n(i),registry:r})]},i)}))})}function ef(e){const{disabled:r,readonly:t,required:n,multiple:i,onChange:o,value:a,options:l,registry:u}=e,{filesInfo:s,handleChange:c,handleRemove:f}=function(e,r,t=!1){const n=ne.useMemo((()=>t&&e?Array.isArray(e)?e:[e]:[]),[e,t]),i=ne.useMemo((()=>Array.isArray(e)?so(e):so([e||""])),[e]),o=ne.useCallback((async e=>{const i=await async function(e){return Promise.all(Array.from(e).map(uo))}(e),o=i.map((e=>e.dataURL||null));r(t?n.concat(...o):o[0])}),[n,t,r]),a=ne.useCallback((e=>{if(t){const t=n.filter(((r,t)=>t!==e));r(t)}else r(void 0)}),[n,t,r]);return{filesInfo:i,handleChange:o,handleRemove:a}}(a,o,i),d=yi("BaseInputTemplate",u,l);return we.jsxs("div",{children:[we.jsx(d,{...e,disabled:r||t,type:"file",required:!a&&n,onChangeOverride:e=>{e.target.files&&c(e.target.files)},value:"",accept:l.accept?String(l.accept):void 0}),we.jsx(Qc,{filesInfo:s,onRemove:f,registry:u,preview:l.filePreview,options:l})]})}function rf({id:e,value:r,htmlName:t}){return we.jsx("input",{type:"hidden",id:e,name:t||e,value:void 0===r?"":r})}function tf(e){const{options:r,registry:t}=e,n=yi("BaseInputTemplate",t,r);return we.jsx(n,{type:"password",...e})}function nf({options:e,value:r,required:t,disabled:n,readonly:i,autofocus:o=!1,onBlur:a,onFocus:l,onChange:u,id:s,htmlName:c}){const{enumOptions:f,enumDisabled:d,inline:h,emptyValue:m}=e,p=pi(e),v=ne.useCallback((({target:e})=>a(s,ui(e?.value,f,p,m))),[a,f,m,s,p]),y=ne.useCallback((({target:e})=>l(s,ui(e?.value,f,p,m))),[l,f,m,s,p]);return we.jsx("div",{className:"field-radio-group",id:s,role:"radiogroup",children:Array.isArray(f)&&f.map(((e,a)=>{const l=oi(e.value,r),f=Array.isArray(d)&&d.includes(e.value),m=n||f||i?"disabled":"",b=we.jsxs("span",{children:[we.jsx("input",{type:"radio",id:Ni(s,a),checked:l,name:c||s,required:t,value:si(e.value,a,p),disabled:n||f||i,autoFocus:o&&0===a,onChange:()=>u(e.value),onBlur:v,onFocus:y,"aria-describedby":Mi(s)}),we.jsx("span",{children:e.label})]});return h?we.jsx("label",{className:`radio-inline ${m}`,children:b},String(e.value)):we.jsx("div",{className:`radio ${m}`,children:we.jsx("label",{children:b})},String(e.value))}))})}function of(e){const{value:r,registry:{templates:{BaseInputTemplate:t}}}=e;return we.jsxs("div",{className:"field-range-wrapper",children:[we.jsx(t,{type:"range",...e}),we.jsx("span",{className:"range-view",children:r})]})}function af({id:e,value:r,required:t,disabled:n,readonly:i,onChange:o,onFocus:a,onBlur:l,schema:u,options:s,htmlName:c}){const{stars:f=5,shape:d="star"}=s,h=u.maximum?Math.min(u.maximum,5):Math.min(Math.max(f,1),5),m=u.minimum||0,p=ne.useCallback((e=>{n||i||o(e)}),[o,n,i]),v=ne.useCallback((r=>{if(a){const t=Number(r.target.dataset.value);a(e,t)}}),[a,e]),y=ne.useCallback((r=>{if(l){const t=Number(r.target.dataset.value);l(e,t)}}),[l,e]),b=e=>"heart"===d?e?"♥":"♡":e?"★":"☆";return we.jsxs("div",{className:"rating-widget",style:{display:"inline-flex",fontSize:"1.5rem",cursor:n||i?"default":"pointer"},children:[[...Array(h)].map(((e,t)=>{const o=m+t,a=o<=r;return we.jsx("span",{onClick:()=>p(o),onKeyDown:e=>("Enter"===e.key||" "===e.key)&&p(o),onFocus:v,onBlur:y,"data-value":o,tabIndex:n||i?-1:0,role:"radio","aria-checked":o===r,"aria-label":`${o} ${"heart"===d?"heart":"star"}${1===o?"":"s"}`,style:{color:a?"#FFD700":"#ccc",padding:"0 0.2rem",transition:"color 0.2s",userSelect:"none"},children:b(a)},t)})),we.jsx("input",{type:"hidden",id:e,name:c||e,value:r||"",required:t,disabled:n||i,"aria-hidden":"true"})]})}function lf(e,r){return r?Array.from(e.target.options).slice().filter((e=>e.selected)).map((e=>e.value)):e.target.value}function uf({schema:e,id:r,options:t,value:n,required:i,disabled:o,readonly:a,multiple:l=!1,autofocus:u=!1,onChange:s,onBlur:c,onFocus:f,placeholder:d,htmlName:h,registry:m,uiSchema:p}){const{enumOptions:v,enumDisabled:y,emptyValue:b}=t,g=l?[]:"",w=pi(t),k=ne.useCallback((e=>{const t=lf(e,l);return f(r,ui(t,v,w,b))}),[f,r,l,v,b,w]),$=ne.useCallback((e=>{const t=lf(e,l);return c(r,ui(t,v,w,b))}),[c,r,l,v,b,w]),S=ne.useCallback((e=>{const r=lf(e,l);return s(ui(r,v,w,b))}),[s,l,v,b,w]),E=function(e,r,t,n="indexed",i){if(void 0===e||t&&Array.isArray(e)&&e.length<1||!t&&e===i)return i;if("realValue"===n)return t?e.map(String):String(e);const o=ai(e,r,t);return void 0===o?i:o}(n,v,l,w,g),j=!l&&void 0===e.default;return function(e,r,t,n=!1){!n&&Array.isArray(t)&&void 0!==r.default&&void 0===ai(r.default,t,n)&&console.error(`The schema default value "${r.default}" is not one of the values in the enum options for "${e}"`)}(r,e,v,l),we.jsxs(we.Fragment,{children:[we.jsx(Zi,{id:r,multiple:l,options:t,registry:m,uiSchema:p,value:n}),we.jsxs("select",{id:r,name:h||r,multiple:l,className:"form-control",value:E,required:i,disabled:o||a,autoFocus:u,onBlur:$,onFocus:k,onChange:S,"aria-describedby":Mi(r),children:[j&&we.jsx("option",{value:"",children:d}),Array.isArray(v)&&v.map((({value:e,label:r},t)=>{const n=y&&y.includes(e);return we.jsx("option",{value:si(e,t,w),disabled:n,children:r},String(e))}))]})]})}function sf({id:e,options:r,placeholder:t,value:n,required:i,disabled:o,readonly:a,autofocus:l=!1,onChange:u,onBlur:s,onFocus:c,htmlName:f}){const d=ne.useCallback((({target:{value:e}})=>u(""===e?r.emptyValue:e)),[u,r.emptyValue]),h=ne.useCallback((({target:r})=>s(e,r?.value)),[s,e]),m=ne.useCallback((({target:r})=>c(e,r?.value)),[e,c]);return we.jsx("textarea",{id:e,name:f||e,className:"form-control",value:n||"",placeholder:t,required:i,disabled:o,readOnly:a,autoFocus:l,rows:r.rows,onBlur:h,onFocus:m,onChange:d,"aria-describedby":Mi(e)})}function cf(e){const{options:r,registry:t}=e,n=yi("BaseInputTemplate",t,r);return we.jsx(n,{...e})}function ff(e){const{onChange:r,options:t,registry:n,schema:i,value:o}=e,a=yi("BaseInputTemplate",n,t),l="number"==typeof i.multipleOf&&Number.isFinite(i.multipleOf)&&i.multipleOf<60,u=ne.useCallback((e=>{r(e?l?e:`${e}:00`:void 0)}),[l,r]),s="string"==typeof o&&!l&&/^\d{2}:\d{2}:00$/.test(o)?o.slice(0,-3):o;return we.jsx(a,{type:"time",...e,value:s,onChange:u})}function df(e){const{options:r,registry:t}=e,n=yi("BaseInputTemplate",t,r);return we.jsx(n,{type:"number",...e})}function hf(e){const{options:r,registry:t}=e,n=yi("BaseInputTemplate",t,r);return we.jsx(n,{type:"url",...e})}function mf(){return{fields:{AnyOfField:ta,ArrayField:Co,BooleanField:_o,CyclicSchemaField:Io,FallbackField:Do,LayoutGridField:Go,LayoutHeaderField:Ko,LayoutMultiSchemaField:ra,NumberField:aa,ObjectField:oc,OneOfField:ta,OptionalDataControlsField:ac,SchemaField:uc,StringField:sc,NullField:na},templates:{ArrayFieldDescriptionTemplate:cc,ArrayFieldItemTemplate:dc,ArrayFieldItemButtonsTemplate:fc,ArrayFieldTemplate:hc,ArrayFieldTitleTemplate:mc,ButtonTemplates:{SubmitButton:Ec,AddButton:Sc,CopyButton:bc,MoveDownButton:gc,MoveUpButton:wc,RemoveButton:kc,ClearButton:$c},BaseInputTemplate:vc,CyclicSchemaExpandTemplate:jc,DescriptionFieldTemplate:Ac,ErrorListTemplate:Cc,FallbackFieldTemplate:_c,FieldTemplate:Tc,FieldErrorTemplate:Ic,FieldHelpTemplate:Fc,GridTemplate:Mc,MultiSchemaFieldTemplate:Nc,ObjectFieldTemplate:Rc,OptionalDataControlsTemplate:zc,TitleFieldTemplate:Uc,UnsupportedFieldTemplate:Lc,WrapIfAdditionalTemplate:Bc},widgets:{AltDateWidget:Hc,AltDateTimeWidget:Vc,CheckboxWidget:Gc,CheckboxesWidget:Wc,ColorWidget:Kc,DateWidget:Jc,DateTimeWidget:Zc,EmailWidget:Yc,FileWidget:ef,HiddenWidget:rf,PasswordWidget:tf,RadioWidget:nf,RangeWidget:of,RatingWidget:af,SelectWidget:uf,TextWidget:cf,TextareaWidget:sf,TimeWidget:ff,UpDownWidget:df,URLWidget:hf},rootSchema:{},formContext:{},translateString:ni,globalFormOptions:{idPrefix:We,idSeparator:Ge,useFallbackUiForUnsupportedType:!1}}}function pf(e,r){const{schema:t,uiSchema:n,fieldPathId:i,schemaUtils:o,formData:a,edit:l,errors:u,errorSchema:s}=e;return{schema:t,uiSchema:n,fieldPathId:i,schemaUtils:o,formData:a,edit:l,errors:u,errorSchema:s,...void 0!==r&&{status:r}}}function vf(e){return function e(r,t){if(!t||null!==r){if(Array.isArray(r))return r.map((r=>e(r,!1)));if(ke(r)){const n=Object.entries(r).reduce(((r,[t,n])=>(void 0!==n&&(r[t]=e(n,!1)),r)),{});return t&&0===Object.keys(n).length?void 0:n}return r}}(e,!0)}Pc.TEST_IDS=Dc;let yf=class e extends ne.Component{formElement;pendingChanges=[];lastReportedFormData;static getDerivedStateFromProps(e,r){if(e.extraErrors!==r.prevExtraErrors){const t={errors:r.schemaValidationErrors||[],errorSchema:r.schemaValidationErrorSchema||{}};let{errors:n,errorSchema:i}=t;return e.extraErrors&&({errors:n,errorSchema:i}=fo(t,e.extraErrors)),r.customErrors&&({errors:n,errorSchema:i}=fo({errors:n,errorSchema:i},r.customErrors.ErrorSchema,!0)),{prevExtraErrors:e.extraErrors,errors:n,errorSchema:i}}return null}constructor(e){if(super(e),!e.validator)throw new Error("A validator is required for Form functionality to work");const{formData:r,initialFormData:t}=e,n=r??t;this.state={...this.getStateFromProps(e,n,void 0,void 0,void 0,!0),prevExtraErrors:e.extraErrors},Fr(this.state.formData,n)||this.reportChange(pf(this.state)),this.formElement=ne.createRef()}isReportedFormData(e){if(!this.lastReportedFormData)return!1;const{formData:r,awaitingReply:t}=this.lastReportedFormData;return t?Fr(vf(e),vf(r)):Fr(e,r)}reportChange(e,...r){const{onChange:t}=this.props;t&&(this.lastReportedFormData={formData:e.formData,awaitingReply:!0},t(e,...r))}getSnapshotBeforeUpdate(e,r){if(!Fr(this.props,e)){const t=di(this.props.formData,e.formData),n=di(this.props.formData,this.state.formData),i=!Fr(e.schema,this.props.schema),o=t.length>0||!Fr(e.formData,this.props.formData),a=n.length>0||!Fr(this.state.formData,this.props.formData),l=this.getStateFromProps(this.props,this.props.formData,i||o?void 0:this.state.retrievedSchema,i,(()=>di(this.props.formData,e.formData,!0)),!a);return{nextState:l,shouldUpdate:!Fr(l,r),isEchoOfState:(!a||void 0===this.props.formData||this.isReportedFormData(this.props.formData))&&!i&&Fr(e.experimental_defaultFormStateBehavior,this.props.experimental_defaultFormStateBehavior)}}return{shouldUpdate:!1}}componentDidUpdate(e,r,t){if(t.shouldUpdate){const{nextState:e,isEchoOfState:n}=t,i=!Fr(e.formData,this.props.formData);if(this.lastReportedFormData&&"formData"in this.props&&(this.lastReportedFormData=n?{formData:this.props.formData,awaitingReply:!1}:void 0),n&&i){const{formData:r,retrievedSchema:t,errors:n,errorSchema:i,schemaValidationErrors:o,schemaValidationErrorSchema:a}=this.state,l=this.props.liveValidate&&!this.props.noValidate;return void this.setState({...e,formData:r,retrievedSchema:t,...l&&{errors:n,errorSchema:i,schemaValidationErrors:o,schemaValidationErrorSchema:a}})}i&&!Fr(e.formData,r.formData)&&this.reportChange(pf(e)),this.setState(e)}}getStateFromProps(r,t,n,i=!1,o=()=>[],a=!1,l=!1){const u=this.state||{},s="schema"in r?r.schema:this.props.schema,c="validator"in r?r.validator:this.props.validator,f=("uiSchema"in r?r.uiSchema:this.props.uiSchema)||{},d=void 0===r.formData&&void 0===this.props.formData,h=void 0!==t,m=h&&!r.noValidate&&("liveValidate"in r?r.liveValidate:this.props.liveValidate),p="experimental_defaultFormStateBehavior"in r?r.experimental_defaultFormStateBehavior:this.props.experimental_defaultFormStateBehavior,v="experimental_customMergeAllOf"in r?r.experimental_customMergeAllOf:this.props.experimental_customMergeAllOf;let{schemaUtils:y,hasNestedConditionalSchema:b}=u;y&&!y.doesSchemaUtilsDiffer(c,s,p,v)||(y=function(e,r,t={},n){return new ei(e,r,t,n)}(c,s,p,v),b=Gi(y.getRootSchema(),y.getRootSchema()));const g=y.getRootSchema();let w,k,$=t;t===ec?$=void 0:void 0===t&&d&&($=u.formData);let S=!1;const E=[];do{w=y.getDefaultFormState(g,$,!1,u.initialDefaultsGenerated);const e=l?_i({formData:w}):"";if(k=this.updateRetrievedSchema(n??y.retrieveSchema(g,w)),!l||E.includes(e)||!b&&Fr(k,u.retrievedSchema))S=!1;else{const r=y.sanitizeDataForNewSchema(k,u.retrievedSchema,w);if(S=!Fr(r,w),S){w=r,$=r;const e=_i({formData:r});S=!E.includes(e),E.push(e)}E.push(e)}}while(S);let j,x,{schemaValidationErrors:O,schemaValidationErrorSchema:A}=u;if(m&&!a){const e=this.liveValidate(g,y,u.errorSchema,w,void 0,u.customErrors,n,void 0!==n);j=e.errors,x=e.errorSchema,O=e.schemaValidationErrors,A=e.schemaValidationErrorSchema}else{const t=r.noValidate||i?{errors:[],errorSchema:{}}:r.liveValidate?{errors:u.errors||[],errorSchema:u.errorSchema||{}}:{errors:u.schemaValidationErrors||[],errorSchema:u.schemaValidationErrorSchema||{}};if(j=t.errors,x=t.errorSchema,!m){const e=o();if(e.length>0){const r=e.reduce(((e,r)=>{const t=et(r);for(let r=1;r<t.length;r++)ot(e,[...t.slice(0,r),Ie],void 0,!0);return ot(e,t,void 0,!0)}),{});A=In(t.errorSchema,r,"preventDuplicates"),x=A}}const n=e.mergeErrors({errorSchema:x,errors:j},r.extraErrors,u.customErrors);j=n.errors,x=n.errorSchema}const C=e.getRegistry(r,g,y),_=Fr(u.registry,C)?u.registry:C;return{schemaUtils:y,schema:g,uiSchema:f,fieldPathId:u.fieldPathId&&u.fieldPathId?.[De]===_.globalFormOptions.idPrefix?u.fieldPathId:to("",_.globalFormOptions),formData:w,edit:h,errors:j,errorSchema:x,schemaValidationErrors:O,schemaValidationErrorSchema:A,retrievedSchema:k,hasNestedConditionalSchema:b,initialDefaultsGenerated:!0,registry:_}}shouldComponentUpdate(e,r){const{experimental_componentUpdateStrategy:t="customDeep"}=this.props;return function(e,r,t,n="customDeep"){if("always"===n)return!0;if("shallow"===n){const{props:n,state:i}=e;return!Ji(n,r)||!Ji(i,t)}const{props:i,state:o}=e;return!Fr(i,r)||!Fr(o,t)}(this,e,r,t)}validate(e,r=this.state.schema,t,n){const i=t||this.state.schemaUtils,{customValidate:o,transformErrors:a,uiSchema:l}=this.props,u=n??r,s=e?JSON.parse(JSON.stringify(e)):void 0;return i.getValidator().validateFormData(s,u,o,a,l)}renderErrors(e){const{errors:r,errorSchema:t,schema:n,uiSchema:i}=this.state,o=yi("ErrorListTemplate",e,nr(i));return r?.length?we.jsx(o,{errors:r,errorSchema:t||{},schema:n,uiSchema:i,registry:e}):null}static mergeErrors(e,r,t){let{errorSchema:n,errors:i}=e;if(r){const t=fo(e,r);n=t.errorSchema,i=t.errors}if(t){const e=fo({errors:i,errorSchema:n},t.ErrorSchema,!0);n=e.errorSchema,i=e.errors}return{errors:i,errorSchema:n}}liveValidate(r,t,n,i,o,a,l,u=!1){const s=this.validate(i,r,t,l),{errors:c}=s;let{errorSchema:f}=s;u&&(f=In(n,s.errorSchema,"preventDuplicates"));const d=c,h=f;return{...e.mergeErrors({errorSchema:f,errors:c},o,a),schemaValidationErrors:d,schemaValidationErrorSchema:h}}getUsedFormData=(e,r)=>function(e,r){if(0===r.length&&"object"!=typeof e)return e;const t={};return r.forEach((r=>{const n=Array.isArray(r)?r:et(r);at(e,n)&&ot(t,n,it(e,n))})),Array.isArray(e)?Object.keys(t).map((e=>t[e])):t}(e,r);getFieldNames=(e,r)=>function(e,r){const t=(e,r)=>"object"!=typeof e||null===e||(Array.isArray(e)?0===e.length:0===Object.keys(e).length)||r,n=(e,i=[],o=[[]])=>{const a=Object.keys(e);return a.forEach((l=>{const u=e[l];if("object"==typeof u){const e=o.map((e=>[...e,l]));u[Ye]&&""!==u[qe]?i.push(u[qe]):n(u,i,e)}else l===qe&&""!==u&&o.forEach((e=>{const n=it(r,e),o=1===a.length;(t(n,o)||Array.isArray(n)&&n.every((e=>t(e,o))))&&i.push(e)}))})),i};return n(e)}(e,r);omitExtraData=e=>{const{schema:r,schemaUtils:t}=this.state;return t.omitExtraData(r,e)};setFieldValue=(e,r)=>{const{registry:t}=this.state,n=Array.isArray(e)?e:e.split("."),i=to("",t.globalFormOptions,n);this.onChange(r,n,void 0,i[De])};onChange=(e,r,t,n)=>{this.pendingChanges.push({newValue:e,path:r,newErrorSchema:t,id:n}),1===this.pendingChanges.length&&this.processPendingChange()};processPendingChange(){if(0===this.pendingChanges.length)return;const{newValue:r,path:t,id:n}=this.pendingChanges[0],{newErrorSchema:i}=this.pendingChanges[0],{extraErrors:o,omitExtraData:a,liveOmit:l,noValidate:u,liveValidate:s,disabled:c,readonly:f}=this.props,{formData:d,schemaUtils:h,schema:m,fieldPathId:p,schemaValidationErrorSchema:v,errors:y}=this.state;let{customErrors:b,retrievedSchema:g}=this.state,w=v;const k=!t||0===t.length||1===t.length&&t[0]===(p.path[0]||"");let $=k?r:structuredClone(d);const S=ke($)&&Object.keys($).length>0&&Object.values($).every((e=>void 0===e))&&null==d?void 0:$;if(ke($)||Array.isArray($)){let e=!1;if(r===Qs)!function(e,r){const t=function(e){return Array.isArray(e)?e:[e]}(r);if(0===t.length)return!0;const n=t.length>1?it(e,t.slice(0,-1)):e;if(null==n)return!0;try{return Reflect.deleteProperty(n,t[t.length-1])}catch{return!1}}($,t);else if(!k){let n=r;if(void 0===r)if("number"==typeof t[t.length-1])n=null;else{const{field:r}=h.findFieldInSchema(m,t,d);r&&(Te in r||Oe in r)||void 0===r||(e=!0)}ot($,t,e?void 0:n)}const n=g&&!k&&!ke(r)&&!Array.isArray(r)&&!c&&!f,i=this.getStateFromProps(this.props,S,void 0,void 0,void 0,!0,n);$=i.formData,g=i.retrievedSchema,e&&$&&ot($,t,void 0)}const E=!u&&(!0===s||"onChange"===s);let j={formData:$,retrievedSchema:g},x=$;if(!0!==a||!0!==l&&"onChange"!==l||(x=this.omitExtraData($),j={...j,formData:x}),i){const e=k?v:it(v,t);if(e&&Object.keys(e).length>0)k?w=i:(w=structuredClone(v),ot(w,t,i,!0));else if(b||(b=new ci),k){const e=i[Ie];e&&b.setErrors(e)}else ot(b.ErrorSchema,t,i,!0)}else b&&it(b.ErrorSchema,[...t,Ie])&&b.clearErrors(t);if(E&&1===this.pendingChanges.length){const e=this.liveValidate(m,h,w,x,o,b,g);j={...j,formData:x,...e,customErrors:b}}else if(!u&&i){const r=e.mergeErrors({errorSchema:w,errors:y},o,b);j={...j,formData:x,...r,customErrors:b}}this.setState(j,(()=>{this.reportChange(pf({...this.state,...j}),n),this.pendingChanges.shift(),this.processPendingChange()}))}updateRetrievedSchema(e){return Fr(e,this.state?.retrievedSchema)?this.state.retrievedSchema:e}reset=()=>{const{formData:e,initialFormData:r=ec}=this.props,t={formData:this.getStateFromProps(this.props,e??r,void 0,void 0,void 0,!0).formData,errorSchema:{},errors:[],schemaValidationErrors:[],schemaValidationErrorSchema:{},initialDefaultsGenerated:!1,customErrors:void 0};this.setState(t,(()=>this.reportChange(pf({...this.state,...t}))))};onBlur=(e,r)=>{const{onBlur:t,omitExtraData:n,liveOmit:i,liveValidate:o}=this.props;if(t&&t(e,r),!0===n&&"onBlur"===i||"onBlur"===o){const{extraErrors:r}=this.props,{formData:t}=this.state;let a=t,l={formData:a};if(!0===n&&"onBlur"===i&&(a=this.omitExtraData(t),l={formData:a}),"onBlur"===o){const{schema:e,schemaUtils:t,errorSchema:n,customErrors:i,retrievedSchema:o}=this.state,u=this.liveValidate(e,t,n,a,r,i,o);l={formData:a,...u,customErrors:i}}const u=Object.keys(l).filter((e=>!e.startsWith("schemaValidation"))).some((e=>!Fr(this.state[e],l[e])));this.setState(l,(()=>{u&&this.reportChange(pf({...this.state,...l}),e)}))}};onFocus=(e,r)=>{const{onFocus:t}=this.props;t&&t(e,r)};onSubmit=e=>{if(e.preventDefault(),e.target!==e.currentTarget)return;e.persist();const{omitExtraData:r,extraErrors:t,noValidate:n,onSubmit:i}=this.props;let{formData:o}=this.state;if(!0===r&&(o=this.omitExtraData(o)),n||this.validateFormWithFormData(o)){const r=t||{},n=t?eo(t):[];this.setState({formData:o,errors:n,errorSchema:r,schemaValidationErrors:[],schemaValidationErrorSchema:{}},(()=>{i&&i(pf({...this.state,formData:o},"submitted"),e)}))}};static getGlobalFormOptions(e){const{uiSchema:r={},experimental_componentUpdateStrategy:t,idSeparator:n=Ge,idPrefix:i=We,nameGenerator:o,useFallbackUiForUnsupportedType:a=!1}=e;return{idPrefix:r["ui:rootFieldId"]||i,idSeparator:n,useFallbackUiForUnsupportedType:a,...void 0!==t&&{experimental_componentUpdateStrategy:t},...void 0!==o&&{nameGenerator:o}}}static getRegistry(r,t,n){const{translateString:i,uiSchema:o={}}=r,{fields:a,templates:l,widgets:u,formContext:s,translateString:c}=mf();return{fields:{...a,...r.fields},templates:{...l,...r.templates,ButtonTemplates:{...l.ButtonTemplates,...r.templates?.ButtonTemplates}},widgets:{...u,...r.widgets},rootSchema:t,formContext:r.formContext||s,schemaUtils:n,translateString:i||c,globalUiOptions:o[rr],globalFormOptions:e.getGlobalFormOptions(r),uiSchemaDefinitions:o["ui:definitions"]??{}}}submit=()=>{if(this.formElement.current){const e=new CustomEvent("submit",{cancelable:!0});e.preventDefault(),this.formElement.current.dispatchEvent(e),this.formElement.current.requestSubmit()}};focusOnError(e){const{idPrefix:r="root",idSeparator:t="_"}=this.props,{property:n}=e,i=et(n??"");i.unshift(r);const o=i.join(t);let a=this.formElement.current.elements[o];a||(a=this.formElement.current.querySelector(`input[id^="${o}"], button[id^="${o}"]`)),a?.length&&(a=a[0]),a&&a.focus()}validateFormWithFormData=r=>{const{extraErrors:t,extraErrorsBlockSubmit:n,focusOnFirstError:i,onError:o}=this.props,{errors:a}=this.state,l=this.validate(r),{errors:u,errorSchema:s}=t?e.mergeErrors(l,t):l,c=l.errors.length>0||t&&n;return c?(i&&("function"==typeof i?i(u[0]):this.focusOnError(u[0])),this.setState({errors:u,errorSchema:s,schemaValidationErrors:l.errors,schemaValidationErrorSchema:l.errorSchema},(()=>{o?o(u):console.error("Form validation failed",u)}))):u.length>0?this.setState({errors:u,errorSchema:s,schemaValidationErrors:[],schemaValidationErrorSchema:{}}):a.length>0&&this.setState({errors:[],errorSchema:{},schemaValidationErrors:[],schemaValidationErrorSchema:{}}),!c};validateForm(){const{omitExtraData:e}=this.props;let{formData:r}=this.state;return!0===e&&(r=this.omitExtraData(r)),this.validateFormWithFormData(r)}render(){const{children:e,id:r,className:t="",tagName:n,name:i,method:o,target:a,action:l,autoComplete:u,enctype:s,acceptCharset:c,noHtml5Validate:f=!1,disabled:d,readonly:h,showErrorList:m="top",_internalFormWrapper:p}=this.props,{schema:v,uiSchema:y,formData:b,errorSchema:g,fieldPathId:w,registry:k}=this.state,{SchemaField:$}=k.fields,{SubmitButton:S}=k.templates.ButtonTemplates,E=p?n:void 0,j=p||n||"form";let{[Ue]:x={}}=nr(y);d&&(x={...x,props:{...x.props,disabled:!0}});const O={[er]:{[Ue]:x}};return we.jsxs(j,{className:t||"rjsf",id:r,name:i,method:o,target:a,action:l,autoComplete:u,encType:s,acceptCharset:c,noValidate:f,onSubmit:this.onSubmit,as:E,ref:this.formElement,children:["top"===m&&this.renderErrors(k),we.jsx($,{name:"",schema:v,uiSchema:y,errorSchema:g,fieldPathId:w,formData:b,onChange:this.onChange,onBlur:this.onBlur,onFocus:this.onFocus,registry:k,disabled:d,readonly:h}),e||we.jsx(S,{uiSchema:O,registry:k}),"bottom"===m&&this.renderErrors(k)]})}};function bf(e,r,t,n,i,o,a,l){const{validationError:u}=r;let s=function(e=[],r,t,n){const i=e.map((e=>{const{instancePath:t,keyword:i,params:o,schemaPath:a,parentSchema:l,...u}=e;let{message:s=""}=u,c=t.replace(/\//g,"."),f=`${c} ${s}`.trim(),d="";const h=[...o.deps?.split(", ")||[],o.missingProperty,o.property].filter((e=>e));if(h.length>0)h.forEach((e=>{let t=nr(it(r,et(c?`${c}.${e}`:e))).title;if(void 0===t){const n=a.replace(/\/properties\//g,"/").split("/").slice(1,-1).concat([e]);t=nr(it(r,n)).title}if(void 0===t){const n=c.replace(/^\./,"").split(".").filter(Boolean);t=it(r,[...n,e,"title"])}if(t)s=s.replace(`'${e}'`,`'${t}'`),d=t;else{const r=it(l,[Ne,e,"title"]);if(r)s=s.replace(`'${e}'`,`'${r}'`),d=r;else if(n){const r=c.replace(/^\./,"").split(".").filter(Boolean),t=[];for(const e of r)t.push(Ne,e);t.push(Ne,e,"title");const i=it(n,t);i&&(s=s.replace(`'${e}'`,`'${i}'`),d=i)}}})),f=s;else{const e=nr(it(r,et(c))).title;if(e)f=`'${e}' ${s}`.trim(),d=e;else{const e=l?.title;e&&(f=`'${e}' ${s}`.trim(),d=e)}}return"missingProperty"in o&&(c=c?`${c}.${o.missingProperty}`:o.missingProperty),{name:i,property:c,message:s,params:o,stack:f,schemaPath:a,title:d}}));return function(e,r="none"){return"all"===r?e:e.reduce(((e,t)=>{const{message:n,schemaPath:i}=t,o="anyOf"!==r?i?.indexOf(`/${Oe}/`):void 0,a="oneOf"!==r?i?.indexOf(`/${Te}/`):void 0;let l;o&&o>=0?l=i?.substring(0,o):a&&a>=0&&(l=i?.substring(0,a));const u=l?e.find((e=>e.message===n&&e.schemaPath?.startsWith(l))):void 0;return u||e.push(t),e}),[])}(i,t)}(r.errors,a,l,n);u&&(s=[...s,{stack:u.message}]),"function"==typeof o&&(s=o(s,a));let c=function(e){const r=new ci;return e.length&&e.forEach((e=>{const{property:t,message:n}=e,i=t?et(t):[];n&&r.addErrors(n,i)})),r.ErrorSchema}(s);if(u&&(c={...c,$schema:{__errors:[u.message]}}),"function"!=typeof i)return{errors:s,errorSchema:c};const f=Hn(e,n,t,n,!0);return fo({errors:s,errorSchema:c},no(i(f,ar(f),a,c)))}var gf,wf={exports:{}},kf={},$f={},Sf={},Ef={},jf={},xf={};function Of(){return gf||(gf=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 r{}e._CodeOrName=r,e.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class t extends r{constructor(r){if(super(),!e.IDENTIFIER.test(r))throw new Error("CodeGen: name must be a valid identifier");this.str=r}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}e.Name=t;class n extends r{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,r)=>`${e}${r}`),"")}get names(){var e;return null!==(e=this._names)&&void 0!==e?e:this._names=this._items.reduce(((e,r)=>(r instanceof t&&(e[r.str]=(e[r.str]||0)+1),e)),{})}}function i(e,...r){const t=[e[0]];let i=0;for(;i<r.length;)l(t,r[i]),t.push(e[++i]);return new n(t)}e._Code=n,e.nil=new n(""),e._=i;const o=new n("+");function a(e,...r){const t=[s(e[0])];let i=0;for(;i<r.length;)t.push(o),l(t,r[i]),t.push(o,s(e[++i]));return function(e){let r=1;for(;r<e.length-1;){if(e[r]===o){const t=u(e[r-1],e[r+1]);if(void 0!==t){e.splice(r-1,3,t);continue}e[r++]="+"}r++}}(t),new n(t)}function l(e,r){var i;r instanceof n?e.push(...r._items):e.push(r instanceof t?r:"number"==typeof(i=r)||"boolean"==typeof i||null===i?i:s(Array.isArray(i)?i.join(","):i))}function u(e,r){if('""'===r)return e;if('""'===e)return r;if("string"==typeof e){if(r instanceof t||'"'!==e[e.length-1])return;return"string"!=typeof r?`${e.slice(0,-1)}${r}"`:'"'===r[0]?e.slice(0,-1)+r.slice(1):void 0}return"string"!=typeof r||'"'!==r[0]||e instanceof t?void 0:`"${e}${r.slice(1)}`}function s(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}e.str=a,e.addCodeArg=l,e.strConcat=function(e,r){return r.emptyStr()?e:e.emptyStr()?r:a`${e}${r}`},e.stringify=function(e){return new n(s(e))},e.safeStringify=s,e.getProperty=function(r){return"string"==typeof r&&e.IDENTIFIER.test(r)?new n(`.${r}`):i`[${r}]`},e.getEsmExportName=function(r){if("string"==typeof r&&e.IDENTIFIER.test(r))return new n(`${r}`);throw new Error(`CodeGen: invalid export name: ${r}, use explicit $id name mapping`)},e.regexpCode=function(e){return new n(e.toString())}}(xf)),xf}var Af,Cf,_f={};function If(){return Af||(Af=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ValueScope=e.ValueScopeName=e.Scope=e.varKinds=e.UsedValueState=void 0;const r=Of();class t 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=n={})),e.varKinds={const:new r.Name("const"),let:new r.Name("let"),var:new r.Name("var")};class i{constructor({prefixes:e,parent:r}={}){this._names={},this._prefixes=e,this._parent=r}toName(e){return e instanceof r.Name?e:this.name(e)}name(e){return new r.Name(this._newName(e))}_newName(e){return`${e}${(this._names[e]||this._nameGroup(e)).index++}`}_nameGroup(e){var r,t;if((null===(t=null===(r=this._parent)||void 0===r?void 0:r._prefixes)||void 0===t?void 0:t.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=i;class o extends r.Name{constructor(e,r){super(r),this.prefix=e}setValue(e,{property:t,itemIndex:n}){this.value=e,this.scopePath=r._`.${new r.Name(t)}[${n}]`}}e.ValueScopeName=o;const a=r._`\n`;e.ValueScope=class extends i{constructor(e){super(e),this._values={},this._scope=e.scope,this.opts={...e,_n:e.lines?a:r.nil}}get(){return this._scope}name(e){return new o(e,this._newName(e))}value(e,r){var t;if(void 0===r.ref)throw new Error("CodeGen: ref must be passed in value");const n=this.toName(e),{prefix:i}=n,o=null!==(t=r.key)&&void 0!==t?t:r.ref;let a=this._values[i];if(a){const e=a.get(o);if(e)return e}else a=this._values[i]=new Map;a.set(o,n);const l=this._scope[i]||(this._scope[i]=[]),u=l.length;return l[u]=r.ref,n.setValue(r,{property:i,itemIndex:u}),n}getValue(e,r){const t=this._values[e];if(t)return t.get(r)}scopeRefs(e,t=this._values){return this._reduceValues(t,(t=>{if(void 0===t.scopePath)throw new Error(`CodeGen: name "${t}" has no value`);return r._`${e}${t.scopePath}`}))}scopeCode(e=this._values,r,t){return this._reduceValues(e,(e=>{if(void 0===e.value)throw new Error(`CodeGen: name "${e}" has no value`);return e.value.code}),r,t)}_reduceValues(i,o,a={},l){let u=r.nil;for(const s in i){const c=i[s];if(!c)continue;const f=a[s]=a[s]||new Map;c.forEach((i=>{if(f.has(i))return;f.set(i,n.Started);let a=o(i);if(a)u=r._`${u}${this.opts.es5?e.varKinds.var:e.varKinds.const} ${i} = ${a};${this.opts._n}`;else{if(!(a=null==l?void 0:l(i)))throw new t(i);u=r._`${u}${a}${this.opts._n}`}f.set(i,n.Completed)}))}return u}}}(_f)),_f}function Df(){return Cf||(Cf=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 r=Of(),t=If();var n=Of();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 i=If();Object.defineProperty(e,"Scope",{enumerable:!0,get:function(){return i.Scope}}),Object.defineProperty(e,"ValueScope",{enumerable:!0,get:function(){return i.ValueScope}}),Object.defineProperty(e,"ValueScopeName",{enumerable:!0,get:function(){return i.ValueScopeName}}),Object.defineProperty(e,"varKinds",{enumerable:!0,get:function(){return i.varKinds}}),e.operators={GT:new r._Code(">"),GTE:new r._Code(">="),LT:new r._Code("<"),LTE:new r._Code("<="),EQ:new r._Code("==="),NEQ:new r._Code("!=="),NOT:new r._Code("!"),OR:new r._Code("||"),AND:new r._Code("&&"),ADD:new r._Code("+")};class o{optimizeNodes(){return this}optimizeNames(e,r){return this}}class a extends o{constructor(e,r,t){super(),this.varKind=e,this.name=r,this.rhs=t}render({es5:e,_n:r}){return`${e?t.varKinds.var:this.varKind} ${this.name}${void 0===this.rhs?"":` = ${this.rhs}`};`+r}optimizeNames(e,r){if(e[this.name.str])return this.rhs&&(this.rhs=C(this.rhs,e,r)),this}get names(){return this.rhs instanceof r._CodeOrName?this.rhs.names:{}}}class l extends o{constructor(e,r,t){super(),this.lhs=e,this.rhs=r,this.sideEffects=t}render({_n:e}){return`${this.lhs} = ${this.rhs};`+e}optimizeNames(e,t){if(!(this.lhs instanceof r.Name)||e[this.lhs.str]||this.sideEffects)return this.rhs=C(this.rhs,e,t),this}get names(){return A(this.lhs instanceof r.Name?{}:{...this.lhs.names},this.rhs)}}class u extends l{constructor(e,r,t,n){super(e,t,n),this.op=r}render({_n:e}){return`${this.lhs} ${this.op}= ${this.rhs};`+e}}class s extends o{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`${this.label}:`+e}}class c extends o{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`break${this.label?` ${this.label}`:""};`+e}}class f extends o{constructor(e){super(),this.error=e}render({_n:e}){return`throw ${this.error};`+e}get names(){return this.error.names}}class d extends o{constructor(e){super(),this.code=e}render({_n:e}){return`${this.code};`+e}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(e,r){return this.code=C(this.code,e,r),this}get names(){return this.code instanceof r._CodeOrName?this.code.names:{}}}class h extends o{constructor(e=[]){super(),this.nodes=e}render(e){return this.nodes.reduce(((r,t)=>r+t.render(e)),"")}optimizeNodes(){const{nodes:e}=this;let r=e.length;for(;r--;){const t=e[r].optimizeNodes();Array.isArray(t)?e.splice(r,1,...t):t?e[r]=t:e.splice(r,1)}return e.length>0?this:void 0}optimizeNames(e,r){const{nodes:t}=this;let n=t.length;for(;n--;){const i=t[n];i.optimizeNames(e,r)||(_(e,i.names),t.splice(n,1))}return t.length>0?this:void 0}get names(){return this.nodes.reduce(((e,r)=>O(e,r.names)),{})}}class m extends h{render(e){return"{"+e._n+super.render(e)+"}"+e._n}}class p extends h{}class v extends m{}v.kind="else";class y extends m{constructor(e,r){super(r),this.condition=e}render(e){let r=`if(${this.condition})`+super.render(e);return this.else&&(r+="else "+this.else.render(e)),r}optimizeNodes(){super.optimizeNodes();const e=this.condition;if(!0===e)return this.nodes;let r=this.else;if(r){const e=r.optimizeNodes();r=this.else=Array.isArray(e)?new v(e):e}return r?!1===e?r instanceof y?r:r.nodes:this.nodes.length?this:new y(I(e),r instanceof y?[r]:r.nodes):!1!==e&&this.nodes.length?this:void 0}optimizeNames(e,r){var t;if(this.else=null===(t=this.else)||void 0===t?void 0:t.optimizeNames(e,r),super.optimizeNames(e,r)||this.else)return this.condition=C(this.condition,e,r),this}get names(){const e=super.names;return A(e,this.condition),this.else&&O(e,this.else.names),e}}y.kind="if";class b extends m{}b.kind="for";class g extends b{constructor(e){super(),this.iteration=e}render(e){return`for(${this.iteration})`+super.render(e)}optimizeNames(e,r){if(super.optimizeNames(e,r))return this.iteration=C(this.iteration,e,r),this}get names(){return O(super.names,this.iteration.names)}}class w extends b{constructor(e,r,t,n){super(),this.varKind=e,this.name=r,this.from=t,this.to=n}render(e){const r=e.es5?t.varKinds.var:this.varKind,{name:n,from:i,to:o}=this;return`for(${r} ${n}=${i}; ${n}<${o}; ${n}++)`+super.render(e)}get names(){const e=A(super.names,this.from);return A(e,this.to)}}class k extends b{constructor(e,r,t,n){super(),this.loop=e,this.varKind=r,this.name=t,this.iterable=n}render(e){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(e)}optimizeNames(e,r){if(super.optimizeNames(e,r))return this.iterable=C(this.iterable,e,r),this}get names(){return O(super.names,this.iterable.names)}}class $ extends m{constructor(e,r,t){super(),this.name=e,this.args=r,this.async=t}render(e){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(e)}}$.kind="func";class S extends h{render(e){return"return "+super.render(e)}}S.kind="return";class E extends m{render(e){let r="try"+super.render(e);return this.catch&&(r+=this.catch.render(e)),this.finally&&(r+=this.finally.render(e)),r}optimizeNodes(){var e,r;return super.optimizeNodes(),null===(e=this.catch)||void 0===e||e.optimizeNodes(),null===(r=this.finally)||void 0===r||r.optimizeNodes(),this}optimizeNames(e,r){var t,n;return super.optimizeNames(e,r),null===(t=this.catch)||void 0===t||t.optimizeNames(e,r),null===(n=this.finally)||void 0===n||n.optimizeNames(e,r),this}get names(){const e=super.names;return this.catch&&O(e,this.catch.names),this.finally&&O(e,this.finally.names),e}}class j extends m{constructor(e){super(),this.error=e}render(e){return`catch(${this.error})`+super.render(e)}}j.kind="catch";class x extends m{render(e){return"finally"+super.render(e)}}function O(e,r){for(const t in r)e[t]=(e[t]||0)+(r[t]||0);return e}function A(e,t){return t instanceof r._CodeOrName?O(e,t.names):e}function C(e,t,n){return e instanceof r.Name?i(e):function(e){return e instanceof r._Code&&e._items.some((e=>e instanceof r.Name&&1===t[e.str]&&void 0!==n[e.str]))}(e)?new r._Code(e._items.reduce(((e,t)=>(t instanceof r.Name&&(t=i(t)),t instanceof r._Code?e.push(...t._items):e.push(t),e)),[])):e;function i(e){const r=n[e.str];return void 0===r||1!==t[e.str]?e:(delete t[e.str],r)}}function _(e,r){for(const t in r)e[t]=(e[t]||0)-(r[t]||0)}function I(e){return"boolean"==typeof e||"number"==typeof e||null===e?!e:r._`!${q(e)}`}x.kind="finally",e.CodeGen=class{constructor(e,r={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...r,_n:r.lines?"\n":""},this._extScope=e,this._scope=new t.Scope({parent:e}),this._nodes=[new p]}toString(){return this._root.render(this.opts)}name(e){return this._scope.name(e)}scopeName(e){return this._extScope.name(e)}scopeValue(e,r){const t=this._extScope.value(e,r);return(this._values[t.prefix]||(this._values[t.prefix]=new Set)).add(t),t}getScopeValue(e,r){return this._extScope.getValue(e,r)}scopeRefs(e){return this._extScope.scopeRefs(e,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(e,r,t,n){const i=this._scope.toName(r);return void 0!==t&&n&&(this._constants[i.str]=t),this._leafNode(new a(e,i,t)),i}const(e,r,n){return this._def(t.varKinds.const,e,r,n)}let(e,r,n){return this._def(t.varKinds.let,e,r,n)}var(e,r,n){return this._def(t.varKinds.var,e,r,n)}assign(e,r,t){return this._leafNode(new l(e,r,t))}add(r,t){return this._leafNode(new u(r,e.operators.ADD,t))}code(e){return"function"==typeof e?e():e!==r.nil&&this._leafNode(new d(e)),this}object(...e){const t=["{"];for(const[n,i]of e)t.length>1&&t.push(","),t.push(n),(n!==i||this.opts.es5)&&(t.push(":"),(0,r.addCodeArg)(t,i));return t.push("}"),new r._Code(t)}if(e,r,t){if(this._blockNode(new y(e)),r&&t)this.code(r).else().code(t).endIf();else if(r)this.code(r).endIf();else if(t)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,r){return this._blockNode(e),r&&this.code(r).endFor(),this}for(e,r){return this._for(new g(e),r)}forRange(e,r,n,i,o=(this.opts.es5?t.varKinds.var:t.varKinds.let)){const a=this._scope.toName(e);return this._for(new w(o,a,r,n),(()=>i(a)))}forOf(e,n,i,o=t.varKinds.const){const a=this._scope.toName(e);if(this.opts.es5){const e=n instanceof r.Name?n:this.var("_arr",n);return this.forRange("_i",0,r._`${e}.length`,(t=>{this.var(a,r._`${e}[${t}]`),i(a)}))}return this._for(new k("of",o,a,n),(()=>i(a)))}forIn(e,n,i,o=(this.opts.es5?t.varKinds.var:t.varKinds.const)){if(this.opts.ownProperties)return this.forOf(e,r._`Object.keys(${n})`,i);const a=this._scope.toName(e);return this._for(new k("in",o,a,n),(()=>i(a)))}endFor(){return this._endBlockNode(b)}label(e){return this._leafNode(new s(e))}break(e){return this._leafNode(new c(e))}return(e){const r=new S;if(this._blockNode(r),this.code(e),1!==r.nodes.length)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(S)}try(e,r,t){if(!r&&!t)throw new Error('CodeGen: "try" without "catch" and "finally"');const n=new E;if(this._blockNode(n),this.code(e),r){const e=this.name("e");this._currNode=n.catch=new j(e),r(e)}return t&&(this._currNode=n.finally=new x,this.code(t)),this._endBlockNode(j,x)}throw(e){return this._leafNode(new f(e))}block(e,r){return this._blockStarts.push(this._nodes.length),e&&this.code(e).endBlock(r),this}endBlock(e){const r=this._blockStarts.pop();if(void 0===r)throw new Error("CodeGen: not in self-balancing block");const t=this._nodes.length-r;if(t<0||void 0!==e&&t!==e)throw new Error(`CodeGen: wrong number of nodes: ${t} vs ${e} expected`);return this._nodes.length=r,this}func(e,t=r.nil,n,i){return this._blockNode(new $(e,t,n)),i&&this.code(i).endFunc(),this}endFunc(){return this._endBlockNode($)}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,r){const t=this._currNode;if(t instanceof e||r&&t instanceof r)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${r?`${e.kind}/${r.kind}`:e.kind}"`)}_elseNode(e){const r=this._currNode;if(!(r instanceof y))throw new Error('CodeGen: "else" without "if"');return this._currNode=r.else=e,this}get _root(){return this._nodes[0]}get _currNode(){const e=this._nodes;return e[e.length-1]}set _currNode(e){const r=this._nodes;r[r.length-1]=e}},e.not=I;const D=F(e.operators.AND);e.and=function(...e){return e.reduce(D)};const P=F(e.operators.OR);function F(e){return(t,n)=>t===r.nil?n:n===r.nil?t:r._`${q(t)} ${e} ${q(n)}`}function q(e){return e instanceof r.Name?e:r._`(${e})`}e.or=function(...e){return e.reduce(P)}}(jf)),jf}var Pf,Ff={};function qf(){if(Pf)return Ff;Pf=1,Object.defineProperty(Ff,"__esModule",{value:!0}),Ff.checkStrictMode=Ff.getErrorPath=Ff.Type=Ff.useFunc=Ff.setEvaluated=Ff.evaluatedPropsToName=Ff.mergeEvaluated=Ff.eachItem=Ff.unescapeJsonPointer=Ff.escapeJsonPointer=Ff.escapeFragment=Ff.unescapeFragment=Ff.schemaRefOrVal=Ff.schemaHasRulesButRef=Ff.schemaHasRules=Ff.checkUnknownRules=Ff.alwaysValidSchema=Ff.toHash=void 0;const e=Df(),r=Of();function t(e,r=e.schema){const{opts:t,self:n}=e;if(!t.strictSchema)return;if("boolean"==typeof r)return;const i=n.RULES.keywords;for(const t in r)i[t]||f(e,`unknown keyword: "${t}"`)}function n(e,r){if("boolean"==typeof e)return!e;for(const t in e)if(r[t])return!0;return!1}function i(e){return"number"==typeof e?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}function o(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function a({mergeNames:r,mergeToName:t,mergeValues:n,resultToName:i}){return(o,a,l,u)=>{const s=void 0===l?a:l instanceof e.Name?(a instanceof e.Name?r(o,a,l):t(o,a,l),l):a instanceof e.Name?(t(o,l,a),a):n(a,l);return u!==e.Name||s instanceof e.Name?s:i(o,s)}}function l(r,t){if(!0===t)return r.var("props",!0);const n=r.var("props",e._`{}`);return void 0!==t&&u(r,n,t),n}function u(r,t,n){Object.keys(n).forEach((n=>r.assign(e._`${t}${(0,e.getProperty)(n)}`,!0)))}Ff.toHash=function(e){const r={};for(const t of e)r[t]=!0;return r},Ff.alwaysValidSchema=function(e,r){return"boolean"==typeof r?r:0===Object.keys(r).length||(t(e,r),!n(r,e.self.RULES.all))},Ff.checkUnknownRules=t,Ff.schemaHasRules=n,Ff.schemaHasRulesButRef=function(e,r){if("boolean"==typeof e)return!e;for(const t in e)if("$ref"!==t&&r.all[t])return!0;return!1},Ff.schemaRefOrVal=function({topSchemaRef:r,schemaPath:t},n,i,o){if(!o){if("number"==typeof n||"boolean"==typeof n)return n;if("string"==typeof n)return e._`${n}`}return e._`${r}${t}${(0,e.getProperty)(i)}`},Ff.unescapeFragment=function(e){return o(decodeURIComponent(e))},Ff.escapeFragment=function(e){return encodeURIComponent(i(e))},Ff.escapeJsonPointer=i,Ff.unescapeJsonPointer=o,Ff.eachItem=function(e,r){if(Array.isArray(e))for(const t of e)r(t);else r(e)},Ff.mergeEvaluated={props:a({mergeNames:(r,t,n)=>r.if(e._`${n} !== true && ${t} !== undefined`,(()=>{r.if(e._`${t} === true`,(()=>r.assign(n,!0)),(()=>r.assign(n,e._`${n} || {}`).code(e._`Object.assign(${n}, ${t})`)))})),mergeToName:(r,t,n)=>r.if(e._`${n} !== true`,(()=>{!0===t?r.assign(n,!0):(r.assign(n,e._`${n} || {}`),u(r,n,t))})),mergeValues:(e,r)=>!0===e||{...e,...r},resultToName:l}),items:a({mergeNames:(r,t,n)=>r.if(e._`${n} !== true && ${t} !== undefined`,(()=>r.assign(n,e._`${t} === true ? true : ${n} > ${t} ? ${n} : ${t}`))),mergeToName:(r,t,n)=>r.if(e._`${n} !== true`,(()=>r.assign(n,!0===t||e._`${n} > ${t} ? ${n} : ${t}`))),mergeValues:(e,r)=>!0===e||Math.max(e,r),resultToName:(e,r)=>e.var("items",r)})},Ff.evaluatedPropsToName=l,Ff.setEvaluated=u;const s={};var c;function f(e,r,t=e.opts.strictSchema){if(t){if(r=`strict mode: ${r}`,!0===t)throw new Error(r);e.self.logger.warn(r)}}return Ff.useFunc=function(e,t){return e.scopeValue("func",{ref:t,code:s[t.code]||(s[t.code]=new r._Code(t.code))})},function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"}(c||(Ff.Type=c={})),Ff.getErrorPath=function(r,t,n){if(r instanceof e.Name){const i=t===c.Num;return n?i?e._`"[" + ${r} + "]"`:e._`"['" + ${r} + "']"`:i?e._`"/" + ${r}`:e._`"/" + ${r}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return n?(0,e.getProperty)(r).toString():"/"+i(r)},Ff.checkStrictMode=f,Ff}var Tf,Mf,Nf,Rf={};function zf(){if(Tf)return Rf;Tf=1,Object.defineProperty(Rf,"__esModule",{value:!0});const e=Df(),r={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 Rf.default=r,Rf}function Uf(){return Mf||(Mf=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 r=Df(),t=qf(),n=zf();function i(e,t){const i=e.const("err",t);e.if(r._`${n.default.vErrors} === null`,(()=>e.assign(n.default.vErrors,r._`[${i}]`)),r._`${n.default.vErrors}.push(${i})`),e.code(r._`${n.default.errors}++`)}function o(e,t){const{gen:n,validateName:i,schemaEnv:o}=e;o.$async?n.throw(r._`new ${e.ValidationError}(${t})`):(n.assign(r._`${i}.errors`,t),n.return(!1))}e.keywordError={message:({keyword:e})=>r.str`must pass "${e}" keyword validation`},e.keyword$DataError={message:({keyword:e,schemaType:t})=>t?r.str`"${e}" keyword must be ${t} ($data)`:r.str`"${e}" keyword is invalid ($data)`},e.reportError=function(t,n=e.keywordError,a,u){const{it:s}=t,{gen:c,compositeRule:f,allErrors:d}=s,h=l(t,n,a);(null!=u?u:f||d)?i(c,h):o(s,r._`[${h}]`)},e.reportExtraError=function(r,t=e.keywordError,a){const{it:u}=r,{gen:s,compositeRule:c,allErrors:f}=u;i(s,l(r,t,a)),c||f||o(u,n.default.vErrors)},e.resetErrorsCount=function(e,t){e.assign(n.default.errors,t),e.if(r._`${n.default.vErrors} !== null`,(()=>e.if(t,(()=>e.assign(r._`${n.default.vErrors}.length`,t)),(()=>e.assign(n.default.vErrors,null)))))},e.extendErrors=function({gen:e,keyword:t,schemaValue:i,data:o,errsCount:a,it:l}){if(void 0===a)throw new Error("ajv implementation error");const u=e.name("err");e.forRange("i",a,n.default.errors,(a=>{e.const(u,r._`${n.default.vErrors}[${a}]`),e.if(r._`${u}.instancePath === undefined`,(()=>e.assign(r._`${u}.instancePath`,(0,r.strConcat)(n.default.instancePath,l.errorPath)))),e.assign(r._`${u}.schemaPath`,r.str`${l.errSchemaPath}/${t}`),l.opts.verbose&&(e.assign(r._`${u}.schema`,i),e.assign(r._`${u}.data`,o))}))};const a={keyword:new r.Name("keyword"),schemaPath:new r.Name("schemaPath"),params:new r.Name("params"),propertyName:new r.Name("propertyName"),message:new r.Name("message"),schema:new r.Name("schema"),parentSchema:new r.Name("parentSchema")};function l(e,t,i){const{createErrors:o}=e.it;return!1===o?r._`{}`:function(e,t,i={}){const{gen:o,it:l}=e,c=[u(l,i),s(e,i)];return function(e,{params:t,message:i},o){const{keyword:l,data:u,schemaValue:s,it:c}=e,{opts:f,propertyName:d,topSchemaRef:h,schemaPath:m}=c;o.push([a.keyword,l],[a.params,"function"==typeof t?t(e):t||r._`{}`]),f.messages&&o.push([a.message,"function"==typeof i?i(e):i]),f.verbose&&o.push([a.schema,s],[a.parentSchema,r._`${h}${m}`],[n.default.data,u]),d&&o.push([a.propertyName,d])}(e,t,c),o.object(...c)}(e,t,i)}function u({errorPath:e},{instancePath:i}){const o=i?r.str`${e}${(0,t.getErrorPath)(i,t.Type.Str)}`:e;return[n.default.instancePath,(0,r.strConcat)(n.default.instancePath,o)]}function s({keyword:e,it:{errSchemaPath:n}},{schemaPath:i,parentSchema:o}){let l=o?n:r.str`${n}/${e}`;return i&&(l=r.str`${l}${(0,t.getErrorPath)(i,t.Type.Str)}`),[a.schemaPath,l]}}(Ef)),Ef}function Lf(){if(Nf)return Sf;Nf=1,Object.defineProperty(Sf,"__esModule",{value:!0}),Sf.boolOrEmptySchema=Sf.topBoolOrEmptySchema=void 0;const e=Uf(),r=Df(),t=zf(),n={message:"boolean schema is false"};function i(r,t){const{gen:i,data:o}=r;(0,e.reportError)({gen:i,keyword:"false schema",data:o,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:r},n,void 0,t)}return Sf.topBoolOrEmptySchema=function(e){const{gen:n,schema:o,validateName:a}=e;!1===o?i(e,!1):"object"==typeof o&&!0===o.$async?n.return(t.default.data):(n.assign(r._`${a}.errors`,null),n.return(!0))},Sf.boolOrEmptySchema=function(e,r){const{gen:t,schema:n}=e;!1===n?(t.var(r,!1),i(e)):t.var(r,!0)},Sf}var Bf,Vf={},Hf={};function Wf(){if(Bf)return Hf;Bf=1,Object.defineProperty(Hf,"__esModule",{value:!0}),Hf.getRules=Hf.isJSONType=void 0;const e=new Set(["string","number","integer","boolean","null","object","array"]);return Hf.isJSONType=function(r){return"string"==typeof r&&e.has(r)},Hf.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:{}}},Hf}var Gf,Kf,Zf={};function Jf(){if(Gf)return Zf;function e(e,t){return t.rules.some((t=>r(e,t)))}function r(e,r){var t;return void 0!==e[r.keyword]||(null===(t=r.definition.implements)||void 0===t?void 0:t.some((r=>void 0!==e[r])))}return Gf=1,Object.defineProperty(Zf,"__esModule",{value:!0}),Zf.shouldUseRule=Zf.shouldUseGroup=Zf.schemaHasRulesForType=void 0,Zf.schemaHasRulesForType=function({schema:r,self:t},n){const i=t.RULES.types[n];return i&&!0!==i&&e(r,i)},Zf.shouldUseGroup=e,Zf.shouldUseRule=r,Zf}function Yf(){if(Kf)return Vf;Kf=1,Object.defineProperty(Vf,"__esModule",{value:!0}),Vf.reportTypeError=Vf.checkDataTypes=Vf.checkDataType=Vf.coerceAndCheckDataType=Vf.getJSONTypes=Vf.getSchemaTypes=Vf.DataType=void 0;const e=Wf(),r=Jf(),t=Uf(),n=Df(),i=qf();var o;function a(r){const t=Array.isArray(r)?r:r?[r]:[];if(t.every(e.isJSONType))return t;throw new Error("type must be JSONType or JSONType[]: "+t.join(","))}!function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"}(o||(Vf.DataType=o={})),Vf.getSchemaTypes=function(e){const r=a(e.type);if(r.includes("null")){if(!1===e.nullable)throw new Error("type: null contradicts nullable: false")}else{if(!r.length&&void 0!==e.nullable)throw new Error('"nullable" cannot be used without "type"');!0===e.nullable&&r.push("null")}return r},Vf.getJSONTypes=a,Vf.coerceAndCheckDataType=function(e,t){const{gen:i,data:a,opts:u}=e,c=function(e,r){return r?e.filter((e=>l.has(e)||"array"===r&&"array"===e)):[]}(t,u.coerceTypes),d=t.length>0&&!(0===c.length&&1===t.length&&(0,r.schemaHasRulesForType)(e,t[0]));if(d){const r=s(t,a,u.strictNumbers,o.Wrong);i.if(r,(()=>{c.length?function(e,r,t){const{gen:i,data:o,opts:a}=e,u=i.let("dataType",n._`typeof ${o}`),c=i.let("coerced",n._`undefined`);"array"===a.coerceTypes&&i.if(n._`${u} == 'object' && Array.isArray(${o}) && ${o}.length == 1`,(()=>i.assign(o,n._`${o}[0]`).assign(u,n._`typeof ${o}`).if(s(r,o,a.strictNumbers),(()=>i.assign(c,o))))),i.if(n._`${c} !== undefined`);for(const e of t)(l.has(e)||"array"===e&&"array"===a.coerceTypes)&&d(e);function d(e){switch(e){case"string":return void i.elseIf(n._`${u} == "number" || ${u} == "boolean"`).assign(c,n._`"" + ${o}`).elseIf(n._`${o} === null`).assign(c,n._`""`);case"number":return void i.elseIf(n._`${u} == "boolean" || ${o} === null
2
+ || (${u} == "string" && ${o} && ${o} == +${o})`).assign(c,n._`+${o}`);case"integer":return void i.elseIf(n._`${u} === "boolean" || ${o} === null
3
+ || (${u} === "string" && ${o} && ${o} == +${o} && !(${o} % 1))`).assign(c,n._`+${o}`);case"boolean":return void i.elseIf(n._`${o} === "false" || ${o} === 0 || ${o} === null`).assign(c,!1).elseIf(n._`${o} === "true" || ${o} === 1`).assign(c,!0);case"null":return i.elseIf(n._`${o} === "" || ${o} === 0 || ${o} === false`),void i.assign(c,null);case"array":i.elseIf(n._`${u} === "string" || ${u} === "number"
4
+ || ${u} === "boolean" || ${o} === null`).assign(c,n._`[${o}]`)}}i.else(),f(e),i.endIf(),i.if(n._`${c} !== undefined`,(()=>{i.assign(o,c),function({gen:e,parentData:r,parentDataProperty:t},i){e.if(n._`${r} !== undefined`,(()=>e.assign(n._`${r}[${t}]`,i)))}(e,c)}))}(e,t,c):f(e)}))}return d};const l=new Set(["string","number","integer","boolean","null"]);function u(e,r,t,i=o.Correct){const a=i===o.Correct?n.operators.EQ:n.operators.NEQ;let l;switch(e){case"null":return n._`${r} ${a} null`;case"array":l=n._`Array.isArray(${r})`;break;case"object":l=n._`${r} && typeof ${r} == "object" && !Array.isArray(${r})`;break;case"integer":l=u(n._`!(${r} % 1) && !isNaN(${r})`);break;case"number":l=u();break;default:return n._`typeof ${r} ${a} ${e}`}return i===o.Correct?l:(0,n.not)(l);function u(e=n.nil){return(0,n.and)(n._`typeof ${r} == "number"`,e,t?n._`isFinite(${r})`:n.nil)}}function s(e,r,t,o){if(1===e.length)return u(e[0],r,t,o);let a;const l=(0,i.toHash)(e);if(l.array&&l.object){const e=n._`typeof ${r} != "object"`;a=l.null?e:n._`!${r} || ${e}`,delete l.null,delete l.array,delete l.object}else a=n.nil;l.number&&delete l.integer;for(const e in l)a=(0,n.and)(a,u(e,r,t,o));return a}Vf.checkDataType=u,Vf.checkDataTypes=s;const c={message:({schema:e})=>`must be ${e}`,params:({schema:e,schemaValue:r})=>"string"==typeof e?n._`{type: ${e}}`:n._`{type: ${r}}`};function f(e){const r=function(e){const{gen:r,data:t,schema:n}=e,o=(0,i.schemaRefOrVal)(e,n,"type");return{gen:r,keyword:"type",data:t,schema:n.type,schemaCode:o,schemaValue:o,parentSchema:n,params:{},it:e}}(e);(0,t.reportError)(r,c)}return Vf.reportTypeError=f,Vf}var Xf,Qf={};function ed(){if(Xf)return Qf;Xf=1,Object.defineProperty(Qf,"__esModule",{value:!0}),Qf.assignDefaults=void 0;const e=Df(),r=qf();function t(t,n,i){const{gen:o,compositeRule:a,data:l,opts:u}=t;if(void 0===i)return;const s=e._`${l}${(0,e.getProperty)(n)}`;if(a)return void(0,r.checkStrictMode)(t,`default is ignored for: ${s}`);let c=e._`${s} === undefined`;"empty"===u.useDefaults&&(c=e._`${c} || ${s} === null || ${s} === ""`),o.if(c,e._`${s} = ${(0,e.stringify)(i)}`)}return Qf.assignDefaults=function(e,r){const{properties:n,items:i}=e.schema;if("object"===r&&n)for(const r in n)t(e,r,n[r].default);else"array"===r&&Array.isArray(i)&&i.forEach(((r,n)=>t(e,n,r.default)))},Qf}var rd,td,nd={},id={};function od(){if(rd)return id;rd=1,Object.defineProperty(id,"__esModule",{value:!0}),id.validateUnion=id.validateArray=id.usePattern=id.callValidateCode=id.schemaProperties=id.allSchemaProperties=id.noPropertyInData=id.propertyInData=id.isOwnProperty=id.hasPropFunc=id.reportMissingProp=id.checkMissingProp=id.checkReportMissingProp=void 0;const e=Df(),r=qf(),t=zf(),n=qf();function i(r){return r.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:e._`Object.prototype.hasOwnProperty`})}function o(r,t,n){return e._`${i(r)}.call(${t}, ${n})`}function a(r,t,n,i){const a=e._`${t}${(0,e.getProperty)(n)} === undefined`;return i?(0,e.or)(a,(0,e.not)(o(r,t,n))):a}function l(e){return e?Object.keys(e).filter((e=>"__proto__"!==e)):[]}id.checkReportMissingProp=function(r,t){const{gen:n,data:i,it:o}=r;n.if(a(n,i,t,o.opts.ownProperties),(()=>{r.setParams({missingProperty:e._`${t}`},!0),r.error()}))},id.checkMissingProp=function({gen:r,data:t,it:{opts:n}},i,o){return(0,e.or)(...i.map((i=>(0,e.and)(a(r,t,i,n.ownProperties),e._`${o} = ${i}`))))},id.reportMissingProp=function(e,r){e.setParams({missingProperty:r},!0),e.error()},id.hasPropFunc=i,id.isOwnProperty=o,id.propertyInData=function(r,t,n,i){const a=e._`${t}${(0,e.getProperty)(n)} !== undefined`;return i?e._`${a} && ${o(r,t,n)}`:a},id.noPropertyInData=a,id.allSchemaProperties=l,id.schemaProperties=function(e,t){return l(t).filter((n=>!(0,r.alwaysValidSchema)(e,t[n])))},id.callValidateCode=function({schemaCode:r,data:n,it:{gen:i,topSchemaRef:o,schemaPath:a,errorPath:l},it:u},s,c,f){const d=f?e._`${r}, ${n}, ${o}${a}`:n,h=[[t.default.instancePath,(0,e.strConcat)(t.default.instancePath,l)],[t.default.parentData,u.parentData],[t.default.parentDataProperty,u.parentDataProperty],[t.default.rootData,t.default.rootData]];u.opts.dynamicRef&&h.push([t.default.dynamicAnchors,t.default.dynamicAnchors]);const m=e._`${d}, ${i.object(...h)}`;return c!==e.nil?e._`${s}.call(${c}, ${m})`:e._`${s}(${m})`};const u=e._`new RegExp`;return id.usePattern=function({gen:r,it:{opts:t}},i){const o=t.unicodeRegExp?"u":"",{regExp:a}=t.code,l=a(i,o);return r.scopeValue("pattern",{key:l.toString(),ref:l,code:e._`${"new RegExp"===a.code?u:(0,n.useFunc)(r,a)}(${i}, ${o})`})},id.validateArray=function(t){const{gen:n,data:i,keyword:o,it:a}=t,l=n.name("valid");if(a.allErrors){const e=n.let("valid",!0);return u((()=>n.assign(e,!1))),e}return n.var(l,!0),u((()=>n.break())),l;function u(a){const u=n.const("len",e._`${i}.length`);n.forRange("i",0,u,(i=>{t.subschema({keyword:o,dataProp:i,dataPropType:r.Type.Num},l),n.if((0,e.not)(l),a)}))}},id.validateUnion=function(t){const{gen:n,schema:i,keyword:o,it:a}=t;if(!Array.isArray(i))throw new Error("ajv implementation error");if(i.some((e=>(0,r.alwaysValidSchema)(a,e)))&&!a.opts.unevaluated)return;const l=n.let("valid",!1),u=n.name("_valid");n.block((()=>i.forEach(((r,i)=>{const a=t.subschema({keyword:o,schemaProp:i,compositeRule:!0},u);n.assign(l,e._`${l} || ${u}`),t.mergeValidEvaluated(a,u)||n.if((0,e.not)(l))})))),t.result(l,(()=>t.reset()),(()=>t.error(!0)))},id}function ad(){if(td)return nd;td=1,Object.defineProperty(nd,"__esModule",{value:!0}),nd.validateKeywordUsage=nd.validSchemaType=nd.funcKeywordCode=nd.macroKeywordCode=void 0;const e=Df(),r=zf(),t=od(),n=Uf();function i(r){const{gen:t,data:n,it:i}=r;t.if(i.parentData,(()=>t.assign(n,e._`${i.parentData}[${i.parentDataProperty}]`)))}function o(r,t,n){if(void 0===n)throw new Error(`keyword "${t}" failed to compile`);return r.scopeValue("keyword","function"==typeof n?{ref:n}:{ref:n,code:(0,e.stringify)(n)})}return nd.macroKeywordCode=function(r,t){const{gen:n,keyword:i,schema:a,parentSchema:l,it:u}=r,s=t.macro.call(u.self,a,l,u),c=o(n,i,s);!1!==u.opts.validateSchema&&u.self.validateSchema(s,!0);const f=n.name("valid");r.subschema({schema:s,schemaPath:e.nil,errSchemaPath:`${u.errSchemaPath}/${i}`,topSchemaRef:c,compositeRule:!0},f),r.pass(f,(()=>r.error(!0)))},nd.funcKeywordCode=function(a,l){var u;const{gen:s,keyword:c,schema:f,parentSchema:d,$data:h,it:m}=a;!function({schemaEnv:e},r){if(r.async&&!e.$async)throw new Error("async keyword in sync schema")}(m,l);const p=!h&&l.compile?l.compile.call(m.self,f,d,m):l.validate,v=o(s,c,p),y=s.let("valid");function b(n=(l.async?e._`await `:e.nil)){s.assign(y,e._`${n}${(0,t.callValidateCode)(a,v,m.opts.passContext?r.default.this:r.default.self,!("compile"in l&&!h||!1===l.schema))}`,l.modifying)}function g(r){var t;s.if((0,e.not)(null!==(t=l.valid)&&void 0!==t?t:y),r)}a.block$data(y,(function(){if(!1===l.errors)b(),l.modifying&&i(a),g((()=>a.error()));else{const t=l.async?function(){const r=s.let("ruleErrs",null);return s.try((()=>b(e._`await `)),(t=>s.assign(y,!1).if(e._`${t} instanceof ${m.ValidationError}`,(()=>s.assign(r,e._`${t}.errors`)),(()=>s.throw(t))))),r}():function(){const r=e._`${v}.errors`;return s.assign(r,null),b(e.nil),r}();l.modifying&&i(a),g((()=>function(t,i){const{gen:o}=t;o.if(e._`Array.isArray(${i})`,(()=>{o.assign(r.default.vErrors,e._`${r.default.vErrors} === null ? ${i} : ${r.default.vErrors}.concat(${i})`).assign(r.default.errors,e._`${r.default.vErrors}.length`),(0,n.extendErrors)(t)}),(()=>t.error()))}(a,t)))}})),a.ok(null!==(u=l.valid)&&void 0!==u?u:y)},nd.validSchemaType=function(e,r,t=!1){return!r.length||r.some((r=>"array"===r?Array.isArray(e):"object"===r?e&&"object"==typeof e&&!Array.isArray(e):typeof e==r||t&&void 0===e))},nd.validateKeywordUsage=function({schema:e,opts:r,self:t,errSchemaPath:n},i,o){if(Array.isArray(i.keyword)?!i.keyword.includes(o):i.keyword!==o)throw new Error("ajv implementation error");const a=i.dependencies;if(null==a?void 0:a.some((r=>!Object.prototype.hasOwnProperty.call(e,r))))throw new Error(`parent schema must have dependencies of ${o}: ${a.join(",")}`);if(i.validateSchema&&!i.validateSchema(e[o])){const e=`keyword "${o}" value is invalid at path "${n}": `+t.errorsText(i.validateSchema.errors);if("log"!==r.validateSchema)throw new Error(e);t.logger.error(e)}},nd}var ld,ud={};function sd(){if(ld)return ud;ld=1,Object.defineProperty(ud,"__esModule",{value:!0}),ud.extendSubschemaMode=ud.extendSubschemaData=ud.getSubschema=void 0;const e=Df(),r=qf();return ud.getSubschema=function(t,{keyword:n,schemaProp:i,schema:o,schemaPath:a,errSchemaPath:l,topSchemaRef:u}){if(void 0!==n&&void 0!==o)throw new Error('both "keyword" and "schema" passed, only one allowed');if(void 0!==n){const o=t.schema[n];return void 0===i?{schema:o,schemaPath:e._`${t.schemaPath}${(0,e.getProperty)(n)}`,errSchemaPath:`${t.errSchemaPath}/${n}`}:{schema:o[i],schemaPath:e._`${t.schemaPath}${(0,e.getProperty)(n)}${(0,e.getProperty)(i)}`,errSchemaPath:`${t.errSchemaPath}/${n}/${(0,r.escapeFragment)(i)}`}}if(void 0!==o){if(void 0===a||void 0===l||void 0===u)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:o,schemaPath:a,topSchemaRef:u,errSchemaPath:l}}throw new Error('either "keyword" or "schema" must be passed')},ud.extendSubschemaData=function(t,n,{dataProp:i,dataPropType:o,data:a,dataTypes:l,propertyName:u}){if(void 0!==a&&void 0!==i)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:s}=n;if(void 0!==i){const{errorPath:a,dataPathArr:l,opts:u}=n;c(s.let("data",e._`${n.data}${(0,e.getProperty)(i)}`,!0)),t.errorPath=e.str`${a}${(0,r.getErrorPath)(i,o,u.jsPropertySyntax)}`,t.parentDataProperty=e._`${i}`,t.dataPathArr=[...l,t.parentDataProperty]}function c(e){t.data=e,t.dataLevel=n.dataLevel+1,t.dataTypes=[],n.definedProperties=new Set,t.parentData=n.data,t.dataNames=[...n.dataNames,e]}void 0!==a&&(c(a instanceof e.Name?a:s.let("data",a,!0)),void 0!==u&&(t.propertyName=u)),l&&(t.dataTypes=l)},ud.extendSubschemaMode=function(e,{jtdDiscriminator:r,jtdMetadata:t,compositeRule:n,createErrors:i,allErrors:o}){void 0!==n&&(e.compositeRule=n),void 0!==i&&(e.createErrors=i),void 0!==o&&(e.allErrors=o),e.jtdDiscriminator=r,e.jtdMetadata=t},ud}var cd,fd,dd={};function hd(){return fd||(fd=1,cd=function e(r,t){if(r===t)return!0;if(r&&t&&"object"==typeof r&&"object"==typeof t){if(r.constructor!==t.constructor)return!1;var n,i,o;if(Array.isArray(r)){if((n=r.length)!=t.length)return!1;for(i=n;0!=i--;)if(!e(r[i],t[i]))return!1;return!0}if(r.constructor===RegExp)return r.source===t.source&&r.flags===t.flags;if(r.valueOf!==Object.prototype.valueOf)return r.valueOf()===t.valueOf();if(r.toString!==Object.prototype.toString)return r.toString()===t.toString();if((n=(o=Object.keys(r)).length)!==Object.keys(t).length)return!1;for(i=n;0!=i--;)if(!Object.prototype.hasOwnProperty.call(t,o[i]))return!1;for(i=n;0!=i--;){var a=o[i];if(!e(r[a],t[a]))return!1}return!0}return r!=r&&t!=t}),cd}var md,pd,vd,yd={exports:{}};function bd(){if(md)return yd.exports;md=1;var e=yd.exports=function(e,t,n){"function"==typeof t&&(n=t,t={}),r(t,"function"==typeof(n=t.cb||n)?n:n.pre||function(){},n.post||function(){},e,"",e)};function r(t,n,i,o,a,l,u,s,c,f){if(o&&"object"==typeof o&&!Array.isArray(o)){for(var d in n(o,a,l,u,s,c,f),o){var h=o[d];if(Array.isArray(h)){if(d in e.arrayKeywords)for(var m=0;m<h.length;m++)r(t,n,i,h[m],a+"/"+d+"/"+m,l,a,d,o,m)}else if(d in e.propsKeywords){if(h&&"object"==typeof h)for(var p in h)r(t,n,i,h[p],a+"/"+d+"/"+p.replace(/~/g,"~0").replace(/\//g,"~1"),l,a,d,o,p)}else(d in e.keywords||t.allKeys&&!(d in e.skipKeywords))&&r(t,n,i,h,a+"/"+d,l,a,d,o)}i(o,a,l,u,s,c,f)}}return e.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0},e.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},e.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},e.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},yd.exports}function gd(){if(pd)return dd;pd=1,Object.defineProperty(dd,"__esModule",{value:!0}),dd.getSchemaRefs=dd.resolveUrl=dd.normalizeId=dd._getFullPath=dd.getFullPath=dd.inlineRef=void 0;const e=qf(),r=hd(),t=bd(),n=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);dd.inlineRef=function(e,r=!0){return"boolean"==typeof e||(!0===r?!o(e):!!r&&a(e)<=r)};const i=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function o(e){for(const r in e){if(i.has(r))return!0;const t=e[r];if(Array.isArray(t)&&t.some(o))return!0;if("object"==typeof t&&o(t))return!0}return!1}function a(r){let t=0;for(const i in r){if("$ref"===i)return 1/0;if(t++,!n.has(i)&&("object"==typeof r[i]&&(0,e.eachItem)(r[i],(e=>t+=a(e))),t===1/0))return 1/0}return t}function l(e,r="",t){!1!==t&&(r=c(r));const n=e.parse(r);return u(e,n)}function u(e,r){return e.serialize(r).split("#")[0]+"#"}dd.getFullPath=l,dd._getFullPath=u;const s=/#\/?$/;function c(e){return e?e.replace(s,""):""}dd.normalizeId=c,dd.resolveUrl=function(e,r,t){return t=c(t),e.resolve(r,t)};const f=/^[a-z_][-a-z0-9._]*$/i;return dd.getSchemaRefs=function(e,n){if("boolean"==typeof e)return{};const{schemaId:i,uriResolver:o}=this.opts,a=c(e[i]||n),u={"":a},s=l(o,a,!1),d={},h=new Set;return t(e,{allKeys:!0},((e,r,t,n)=>{if(void 0===n)return;const o=s+r;let a=u[n];function l(r){if(r=c(a?(0,this.opts.uriResolver.resolve)(a,r):r),h.has(r))throw p(r);h.add(r);let t=this.refs[r];return"string"==typeof t&&(t=this.refs[t]),"object"==typeof t?m(e,t.schema,r):r!==c(o)&&("#"===r[0]?(m(e,d[r],r),d[r]=e):this.refs[r]=o),r}function v(e){if("string"==typeof e){if(!f.test(e))throw new Error(`invalid anchor "${e}"`);l.call(this,`#${e}`)}}"string"==typeof e[i]&&(a=l.call(this,e[i])),v.call(this,e.$anchor),v.call(this,e.$dynamicAnchor),u[r]=a})),d;function m(e,t,n){if(void 0!==t&&!r(e,t))throw p(n)}function p(e){return new Error(`reference "${e}" resolves to more than one schema`)}},dd}function wd(){if(vd)return $f;vd=1,Object.defineProperty($f,"__esModule",{value:!0}),$f.getData=$f.KeywordCxt=$f.validateFunctionCode=void 0;const e=Lf(),r=Yf(),t=Jf(),n=Yf(),i=ed(),o=ad(),a=sd(),l=Df(),u=zf(),s=gd(),c=qf(),f=Uf();function d({gen:e,validateName:r,schema:t,schemaEnv:n,opts:i},o){i.code.es5?e.func(r,l._`${u.default.data}, ${u.default.valCxt}`,n.$async,(()=>{e.code(l._`"use strict"; ${h(t,i)}`),function(e,r){e.if(u.default.valCxt,(()=>{e.var(u.default.instancePath,l._`${u.default.valCxt}.${u.default.instancePath}`),e.var(u.default.parentData,l._`${u.default.valCxt}.${u.default.parentData}`),e.var(u.default.parentDataProperty,l._`${u.default.valCxt}.${u.default.parentDataProperty}`),e.var(u.default.rootData,l._`${u.default.valCxt}.${u.default.rootData}`),r.dynamicRef&&e.var(u.default.dynamicAnchors,l._`${u.default.valCxt}.${u.default.dynamicAnchors}`)}),(()=>{e.var(u.default.instancePath,l._`""`),e.var(u.default.parentData,l._`undefined`),e.var(u.default.parentDataProperty,l._`undefined`),e.var(u.default.rootData,u.default.data),r.dynamicRef&&e.var(u.default.dynamicAnchors,l._`{}`)}))}(e,i),e.code(o)})):e.func(r,l._`${u.default.data}, ${function(e){return l._`{${u.default.instancePath}="", ${u.default.parentData}, ${u.default.parentDataProperty}, ${u.default.rootData}=${u.default.data}${e.dynamicRef?l._`, ${u.default.dynamicAnchors}={}`:l.nil}}={}`}(i)}`,n.$async,(()=>e.code(h(t,i)).code(o)))}function h(e,r){const t="object"==typeof e&&e[r.schemaId];return t&&(r.code.source||r.code.process)?l._`/*# sourceURL=${t} */`:l.nil}function m({schema:e,self:r}){if("boolean"==typeof e)return!e;for(const t in e)if(r.RULES.all[t])return!0;return!1}function p(e){return"boolean"!=typeof e.schema}function v(e){(0,c.checkUnknownRules)(e),function(e){const{schema:r,errSchemaPath:t,opts:n,self:i}=e;r.$ref&&n.ignoreKeywordsWithRef&&(0,c.schemaHasRulesButRef)(r,i.RULES)&&i.logger.warn(`$ref: keywords ignored in schema at path "${t}"`)}(e)}function y(e,t){if(e.opts.jtd)return g(e,[],!1,t);const n=(0,r.getSchemaTypes)(e.schema);g(e,n,!(0,r.coerceAndCheckDataType)(e,n),t)}function b({gen:e,schemaEnv:r,schema:t,errSchemaPath:n,opts:i}){const o=t.$comment;if(!0===i.$comment)e.code(l._`${u.default.self}.logger.log(${o})`);else if("function"==typeof i.$comment){const t=l.str`${n}/$comment`,i=e.scopeValue("root",{ref:r.root});e.code(l._`${u.default.self}.opts.$comment(${o}, ${t}, ${i}.schema)`)}}function g(e,r,i,o){const{gen:a,schema:s,data:f,allErrors:d,opts:h,self:m}=e,{RULES:p}=m;function v(c){(0,t.shouldUseGroup)(s,c)&&(c.type?(a.if((0,n.checkDataType)(c.type,f,h.strictNumbers)),w(e,c),1===r.length&&r[0]===c.type&&i&&(a.else(),(0,n.reportTypeError)(e)),a.endIf()):w(e,c),d||a.if(l._`${u.default.errors} === ${o||0}`))}!s.$ref||!h.ignoreKeywordsWithRef&&(0,c.schemaHasRulesButRef)(s,p)?(h.jtd||function(e,r){!e.schemaEnv.meta&&e.opts.strictTypes&&(function(e,r){r.length&&(e.dataTypes.length?(r.forEach((r=>{k(e.dataTypes,r)||$(e,`type "${r}" not allowed by context "${e.dataTypes.join(",")}"`)})),function(e,r){const t=[];for(const n of e.dataTypes)k(r,n)?t.push(n):r.includes("integer")&&"number"===n&&t.push("integer");e.dataTypes=t}(e,r)):e.dataTypes=r)}(e,r),e.opts.allowUnionTypes||function(e,r){r.length>1&&(2!==r.length||!r.includes("null"))&&$(e,"use allowUnionTypes to allow union type keyword")}(e,r),function(e,r){const n=e.self.RULES.all;for(const i in n){const o=n[i];if("object"==typeof o&&(0,t.shouldUseRule)(e.schema,o)){const{type:t}=o.definition;t.length&&!t.some((e=>{return(t=r).includes(n=e)||"number"===n&&t.includes("integer");var t,n}))&&$(e,`missing type "${t.join(",")}" for keyword "${i}"`)}}}(e,e.dataTypes))}(e,r),a.block((()=>{for(const e of p.rules)v(e);v(p.post)}))):a.block((()=>E(e,"$ref",p.all.$ref.definition)))}function w(e,r){const{gen:n,schema:o,opts:{useDefaults:a}}=e;a&&(0,i.assignDefaults)(e,r.type),n.block((()=>{for(const n of r.rules)(0,t.shouldUseRule)(o,n)&&E(e,n.keyword,n.definition,r.type)}))}function k(e,r){return e.includes(r)||"integer"===r&&e.includes("number")}function $(e,r){(0,c.checkStrictMode)(e,r+=` at "${e.schemaEnv.baseId+e.errSchemaPath}" (strictTypes)`,e.opts.strictTypes)}$f.validateFunctionCode=function(r){p(r)&&(v(r),m(r))?function(e){const{schema:r,opts:t,gen:n}=e;d(e,(()=>{t.$comment&&r.$comment&&b(e),function(e){const{schema:r,opts:t}=e;void 0!==r.default&&t.useDefaults&&t.strictSchema&&(0,c.checkStrictMode)(e,"default is ignored in the schema root")}(e),n.let(u.default.vErrors,null),n.let(u.default.errors,0),t.unevaluated&&function(e){const{gen:r,validateName:t}=e;e.evaluated=r.const("evaluated",l._`${t}.evaluated`),r.if(l._`${e.evaluated}.dynamicProps`,(()=>r.assign(l._`${e.evaluated}.props`,l._`undefined`))),r.if(l._`${e.evaluated}.dynamicItems`,(()=>r.assign(l._`${e.evaluated}.items`,l._`undefined`)))}(e),y(e),function(e){const{gen:r,schemaEnv:t,validateName:n,ValidationError:i,opts:o}=e;t.$async?r.if(l._`${u.default.errors} === 0`,(()=>r.return(u.default.data)),(()=>r.throw(l._`new ${i}(${u.default.vErrors})`))):(r.assign(l._`${n}.errors`,u.default.vErrors),o.unevaluated&&function({gen:e,evaluated:r,props:t,items:n}){t instanceof l.Name&&e.assign(l._`${r}.props`,t),n instanceof l.Name&&e.assign(l._`${r}.items`,n)}(e),r.return(l._`${u.default.errors} === 0`))}(e)}))}(r):d(r,(()=>(0,e.topBoolOrEmptySchema)(r)))};class S{constructor(e,r,t){if((0,o.validateKeywordUsage)(e,r,t),this.gen=e.gen,this.allErrors=e.allErrors,this.keyword=t,this.data=e.data,this.schema=e.schema[t],this.$data=r.$data&&e.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,c.schemaRefOrVal)(e,this.schema,t,this.$data),this.schemaType=r.schemaType,this.parentSchema=e.schema,this.params={},this.it=e,this.def=r,this.$data)this.schemaCode=e.gen.const("vSchema",O(this.$data,e));else if(this.schemaCode=this.schemaValue,!(0,o.validSchemaType)(this.schema,r.schemaType,r.allowUndefined))throw new Error(`${t} value must be ${JSON.stringify(r.schemaType)}`);("code"in r?r.trackErrors:!1!==r.errors)&&(this.errsCount=e.gen.const("_errs",u.default.errors))}result(e,r,t){this.failResult((0,l.not)(e),r,t)}failResult(e,r,t){this.gen.if(e),t?t():this.error(),r?(this.gen.else(),r(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(e,r){this.failResult((0,l.not)(e),void 0,r)}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:r}=this;this.fail(l._`${r} !== undefined && (${(0,l.or)(this.invalid$data(),e)})`)}error(e,r,t){if(r)return this.setParams(r),this._error(e,t),void this.setParams({});this._error(e,t)}_error(e,r){(e?f.reportExtraError:f.reportError)(this,this.def.error,r)}$dataError(){(0,f.reportError)(this,this.def.$dataError||f.keyword$DataError)}reset(){if(void 0===this.errsCount)throw new Error('add "trackErrors" to keyword definition');(0,f.resetErrorsCount)(this.gen,this.errsCount)}ok(e){this.allErrors||this.gen.if(e)}setParams(e,r){r?Object.assign(this.params,e):this.params=e}block$data(e,r,t=l.nil){this.gen.block((()=>{this.check$data(e,t),r()}))}check$data(e=l.nil,r=l.nil){if(!this.$data)return;const{gen:t,schemaCode:n,schemaType:i,def:o}=this;t.if((0,l.or)(l._`${n} === undefined`,r)),e!==l.nil&&t.assign(e,!0),(i.length||o.validateSchema)&&(t.elseIf(this.invalid$data()),this.$dataError(),e!==l.nil&&t.assign(e,!1)),t.else()}invalid$data(){const{gen:e,schemaCode:r,schemaType:t,def:i,it:o}=this;return(0,l.or)(function(){if(t.length){if(!(r instanceof l.Name))throw new Error("ajv implementation error");const e=Array.isArray(t)?t:[t];return l._`${(0,n.checkDataTypes)(e,r,o.opts.strictNumbers,n.DataType.Wrong)}`}return l.nil}(),function(){if(i.validateSchema){const t=e.scopeValue("validate$data",{ref:i.validateSchema});return l._`!${t}(${r})`}return l.nil}())}subschema(r,t){const n=(0,a.getSubschema)(this.it,r);(0,a.extendSubschemaData)(n,this.it,r),(0,a.extendSubschemaMode)(n,r);const i={...this.it,...n,items:void 0,props:void 0};return function(r,t){p(r)&&(v(r),m(r))?function(e,r){const{schema:t,gen:n,opts:i}=e;i.$comment&&t.$comment&&b(e),function(e){const r=e.schema[e.opts.schemaId];r&&(e.baseId=(0,s.resolveUrl)(e.opts.uriResolver,e.baseId,r))}(e),function(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}(e);const o=n.const("_errs",u.default.errors);y(e,o),n.var(r,l._`${o} === ${u.default.errors}`)}(r,t):(0,e.boolOrEmptySchema)(r,t)}(i,t),i}mergeEvaluated(e,r){const{it:t,gen:n}=this;t.opts.unevaluated&&(!0!==t.props&&void 0!==e.props&&(t.props=c.mergeEvaluated.props(n,e.props,t.props,r)),!0!==t.items&&void 0!==e.items&&(t.items=c.mergeEvaluated.items(n,e.items,t.items,r)))}mergeValidEvaluated(e,r){const{it:t,gen:n}=this;if(t.opts.unevaluated&&(!0!==t.props||!0!==t.items))return n.if(r,(()=>this.mergeEvaluated(e,l.Name))),!0}}function E(e,r,t,n){const i=new S(e,t,r);"code"in t?t.code(i,n):i.$data&&t.validate?(0,o.funcKeywordCode)(i,t):"macro"in t?(0,o.macroKeywordCode)(i,t):(t.compile||t.validate)&&(0,o.funcKeywordCode)(i,t)}$f.KeywordCxt=S;const j=/^\/(?:[^~]|~0|~1)*$/,x=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function O(e,{dataLevel:r,dataNames:t,dataPathArr:n}){let i,o;if(""===e)return u.default.rootData;if("/"===e[0]){if(!j.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);i=e,o=u.default.rootData}else{const a=x.exec(e);if(!a)throw new Error(`Invalid JSON-pointer: ${e}`);const l=+a[1];if(i=a[2],"#"===i){if(l>=r)throw new Error(f("property/index",l));return n[r-l]}if(l>r)throw new Error(f("data",l));if(o=t[r-l],!i)return o}let a=o;const s=i.split("/");for(const e of s)e&&(o=l._`${o}${(0,l.getProperty)((0,c.unescapeJsonPointer)(e))}`,a=l._`${a} && ${o}`);return a;function f(e,t){return`Cannot access ${e} ${t} levels up, current level is ${r}`}}return $f.getData=O,$f}var kd,$d={};function Sd(){if(kd)return $d;kd=1,Object.defineProperty($d,"__esModule",{value:!0});class e extends Error{constructor(e){super("validation failed"),this.errors=e,this.ajv=this.validation=!0}}return $d.default=e,$d}var Ed,jd={};function xd(){if(Ed)return jd;Ed=1,Object.defineProperty(jd,"__esModule",{value:!0});const e=gd();class r extends Error{constructor(r,t,n,i){super(i||`can't resolve reference ${n} from id ${t}`),this.missingRef=(0,e.resolveUrl)(r,t,n),this.missingSchema=(0,e.normalizeId)((0,e.getFullPath)(r,this.missingRef))}}return jd.default=r,jd}var Od,Ad={};function Cd(){if(Od)return Ad;Od=1,Object.defineProperty(Ad,"__esModule",{value:!0}),Ad.resolveSchema=Ad.getCompilingSchema=Ad.resolveRef=Ad.compileSchema=Ad.SchemaEnv=void 0;const e=Df(),r=Sd(),t=zf(),n=gd(),i=qf(),o=wd();class a{constructor(e){var r;let t;this.refs={},this.dynamicAnchors={},"object"==typeof e.schema&&(t=e.schema),this.schema=e.schema,this.schemaId=e.schemaId,this.root=e.root||this,this.baseId=null!==(r=e.baseId)&&void 0!==r?r:(0,n.normalizeId)(null==t?void 0:t[e.schemaId||"$id"]),this.schemaPath=e.schemaPath,this.localRefs=e.localRefs,this.meta=e.meta,this.$async=null==t?void 0:t.$async,this.refs={}}}function l(i){const a=s.call(this,i);if(a)return a;const l=(0,n.getFullPath)(this.opts.uriResolver,i.root.baseId),{es5:u,lines:c}=this.opts.code,{ownProperties:f}=this.opts,d=new e.CodeGen(this.scope,{es5:u,lines:c,ownProperties:f});let h;i.$async&&(h=d.scopeValue("Error",{ref:r.default,code:e._`require("ajv/dist/runtime/validation_error").default`}));const m=d.scopeName("validate");i.validateName=m;const p={gen:d,allErrors:this.opts.allErrors,data:t.default.data,parentData:t.default.parentData,parentDataProperty:t.default.parentDataProperty,dataNames:[t.default.data],dataPathArr:[e.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:d.scopeValue("schema",!0===this.opts.code.source?{ref:i.schema,code:(0,e.stringify)(i.schema)}:{ref:i.schema}),validateName:m,ValidationError:h,schema:i.schema,schemaEnv:i,rootId:l,baseId:i.baseId||l,schemaPath:e.nil,errSchemaPath:i.schemaPath||(this.opts.jtd?"":"#"),errorPath:e._`""`,opts:this.opts,self:this};let v;try{this._compilations.add(i),(0,o.validateFunctionCode)(p),d.optimize(this.opts.code.optimize);const r=d.toString();v=`${d.scopeRefs(t.default.scope)}return ${r}`,this.opts.code.process&&(v=this.opts.code.process(v,i));const n=new Function(`${t.default.self}`,`${t.default.scope}`,v)(this,this.scope.get());if(this.scope.value(m,{ref:n}),n.errors=null,n.schema=i.schema,n.schemaEnv=i,i.$async&&(n.$async=!0),!0===this.opts.code.source&&(n.source={validateName:m,validateCode:r,scopeValues:d._values}),this.opts.unevaluated){const{props:r,items:t}=p;n.evaluated={props:r instanceof e.Name?void 0:r,items:t instanceof e.Name?void 0:t,dynamicProps:r instanceof e.Name,dynamicItems:t instanceof e.Name},n.source&&(n.source.evaluated=(0,e.stringify)(n.evaluated))}return i.validate=n,i}catch(e){throw delete i.validate,delete i.validateName,v&&this.logger.error("Error compiling schema, function code:",v),e}finally{this._compilations.delete(i)}}function u(e){return(0,n.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:l.call(this,e)}function s(e){for(const n of this._compilations)if((r=n).schema===(t=e).schema&&r.root===t.root&&r.baseId===t.baseId)return n;var r,t}function c(e,r){let t;for(;"string"==typeof(t=this.refs[r]);)r=t;return t||this.schemas[r]||f.call(this,e,r)}function f(e,r){const t=this.opts.uriResolver.parse(r),i=(0,n._getFullPath)(this.opts.uriResolver,t);let o=(0,n.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&i===o)return h.call(this,t,e);const u=(0,n.normalizeId)(i),s=this.refs[u]||this.schemas[u];if("string"==typeof s){const r=f.call(this,e,s);if("object"!=typeof(null==r?void 0:r.schema))return;return h.call(this,t,r)}if("object"==typeof(null==s?void 0:s.schema)){if(s.validate||l.call(this,s),u===(0,n.normalizeId)(r)){const{schema:r}=s,{schemaId:t}=this.opts,i=r[t];return i&&(o=(0,n.resolveUrl)(this.opts.uriResolver,o,i)),new a({schema:r,schemaId:t,root:e,baseId:o})}return h.call(this,t,s)}}Ad.SchemaEnv=a,Ad.compileSchema=l,Ad.resolveRef=function(e,r,t){var i;t=(0,n.resolveUrl)(this.opts.uriResolver,r,t);const o=e.refs[t];if(o)return o;let l=c.call(this,e,t);if(void 0===l){const n=null===(i=e.localRefs)||void 0===i?void 0:i[t],{schemaId:o}=this.opts;n&&(l=new a({schema:n,schemaId:o,root:e,baseId:r}))}return void 0!==l?e.refs[t]=u.call(this,l):void 0},Ad.getCompilingSchema=s,Ad.resolveSchema=f;const d=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function h(e,{baseId:r,schema:t,root:o}){var l;if("/"!==(null===(l=e.fragment)||void 0===l?void 0:l[0]))return;for(const o of e.fragment.slice(1).split("/")){if("boolean"==typeof t)return;const e=t[(0,i.unescapeFragment)(o)];if(void 0===e)return;const a="object"==typeof(t=e)&&t[this.opts.schemaId];!d.has(o)&&a&&(r=(0,n.resolveUrl)(this.opts.uriResolver,r,a))}let u;if("boolean"!=typeof t&&t.$ref&&!(0,i.schemaHasRulesButRef)(t,this.RULES)){const e=(0,n.resolveUrl)(this.opts.uriResolver,r,t.$ref);u=f.call(this,o,e)}const{schemaId:s}=this.opts;return u=u||new a({schema:t,schemaId:s,root:o,baseId:r}),u.schema!==u.root.schema?u:void 0}return Ad}var _d,Id,Dd,Pd,Fd,qd,Td,Md={$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},Nd={},Rd={exports:{}};function zd(){if(Id)return _d;Id=1;const e=RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu),r=RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u),t=RegExp.prototype.test.bind(/^\d*$/u),n=RegExp.prototype.test.bind(/^[\da-f]{2}$/iu),i=RegExp.prototype.test.bind(/^[\da-z\-._~]$/iu),o=RegExp.prototype.test.bind(/^[A-Za-z0-9\-._~!$&'()*+,;=:@/]$/u),a=RegExp.prototype.test.bind(/^[A-Za-z0-9\-._~!$&'()*+,;=:@/?]$/u),l=RegExp.prototype.test.bind(/^[A-Za-z0-9\-._~!$&'()*+,;=:]$/u),u=new Array(256);{const e="0123456789ABCDEF";for(let r=0;r<256;r++)u[r]="%"+e[r>>4]+e[15&r]}function s(e){return e<2048?u[192|e>>6]+u[128|63&e]:e<65536?u[224|e>>12]+u[128|e>>6&63]+u[128|63&e]:u[240|e>>18]+u[128|e>>12&63]+u[128|e>>6&63]+u[128|63&e]}const c=RegExp.prototype.test.bind(/^[\dA-Fa-f]{1,4}$/),f=RegExp.prototype.test.bind(/^[vV][\dA-Fa-f]+\.[A-Za-z\d\-._~!$&'()*+,;=:]+$/),d=RegExp.prototype.test.bind(/^[A-Za-z\d\-._~]$/),h=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function m(e){let r=-1,t=0,n=-1,i=0;for(let o=0;o<e.length;o++)"0"===e[o]?(-1===n&&(n=o),i++,i>t&&(t=i,r=n)):(n=-1,i=0);return t<2?e.join(":"):e.slice(0,r).join(":")+"::"+e.slice(r+t).join(":")}function p(e){const t="["===e[0]&&"]"===e[e.length-1];if(("["===e[0]||"]"===e[e.length-1])&&!t)return{host:e,isIPV6:!1,error:!0};let i=t?e.slice(1,-1):e;if(t&&f(i))return i=i.toLowerCase(),{host:`[${i}]`,escapedHost:i,isIPV6:!1,isIPVFuture:!0};if(function(e){let r=0;for(let t=0;t<e.length;t++)":"===e[t]&&r++;return r}(i)<2)return{host:e,isIPV6:!1,error:t};let o="";const a=i.indexOf("%");if(-1!==a){const r="%25"===i.slice(a,a+3).toLowerCase()?3:1;if(o=i.slice(a+r),!function(e){if(0===e.length)return!1;for(let r=0;r<e.length;r++)if(!d(e[r])){if(!("%"===e[r]&&r+2<e.length&&n(e.slice(r+1,r+3))))return!1;r+=2}return!0}(o))return{host:e,isIPV6:!1,error:!0};i=i.slice(0,a)}const l=function(e){const t=e.indexOf("::");if(-1!==t&&-1!==e.indexOf("::",t+1))return;const n=-1===t?e.split(":"):e.slice(0,t).split(":"),i=-1===t?[]:e.slice(t+2).split(":");-1!==t&&(1===n.length&&""===n[0]&&(n.length=0),1===i.length&&""===i[0]&&(i.length=0));const o=n.concat(i);let a=0;for(let e=0;e<o.length;e++){const n=o[e];if(""===n)return;if(-1===n.indexOf(".")){if(!c(n))return;o[e]=parseInt(n,16).toString(16),a++}else{if(e!==o.length-1||-1!==t&&0===i.length||!r(n))return;a+=2}}if(-1===t){if(8!==a)return;return m(o)}if(a>=8)return;const l=o.slice(0,n.length);for(let e=a;e<8;e++)l.push("0");for(let e=n.length;e<o.length;e++)l.push(o[e]);return m(l)}(i);return void 0===l?{host:e,isIPV6:!1,error:!0}:{host:l+(o?"%"+o:""),escapedHost:l+(o?"%25"+o:""),isIPV6:!0}}const v={"@":"%40","/":"%2F","?":"%3F","#":"%23",":":"%3A"},y=/[@/?#:]/g,b=/[@/?#]/g;function g(e,r){const t=r?b:y;return t.lastIndex=0,e.replace(t,(e=>v[e]))}function w(e,r=!1){if(-1===e.indexOf("%"))return e;let t="";for(let o=0;o<e.length;o++){if("%"===e[o]&&o+2<e.length){const a=e.slice(o+1,o+3);if(n(a)){const e=a.toUpperCase(),n=String.fromCharCode(parseInt(e,16));r&&i(n)?t+=n:t+="%"+e,o+=2;continue}}t+=e[o]}return t}function k(e,r){let t="";for(let i=0;i<e.length;i++){const o=e[i];if("%"===o&&i+2<e.length){const r=e.slice(i+1,i+3);if(n(r)){t+="%"+r.toUpperCase(),i+=2;continue}}if(r(o))t+=o;else{const r=e.charCodeAt(i);if(r<128)t+=u[r];else if(r<55296||r>57343)t+=s(r);else if(r<=56319&&i+1<e.length){const n=e.charCodeAt(i+1);n>=56320&&n<=57343?(t+=s(65536+(r-55296<<10)+(n-56320)),i++):t+=s(65533)}else t+=s(65533)}}return t}function $(e){return k(e,l)}function S(e){return e>=48&&e<=57||e>=65&&e<=90||e>=97&&e<=122||42===e||43===e||45===e||46===e||47===e||64===e||95===e}return _d={nonSimpleDomain:h,recomposeAuthority:function(e){const n=[];if(void 0!==e.userinfo&&(n.push($(e.userinfo)),n.push("@")),void 0!==e.host){let t=e.host;if(!r(t)){let e=p(t);!0!==e.isIPV6&&!0!==e.isIPVFuture&&(t=w(t,!0),e=p(t)),t=!0===e.isIPV6||!0===e.isIPVFuture?`[${e.escapedHost}]`:g(t,!1)}n.push(t)}if("number"==typeof e.port||"string"==typeof e.port){const r=String(e.port);if(!t(r))throw new TypeError("URI port is malformed.");n.push(":"),n.push(r)}return n.length?n.join(""):void 0},reescapeHostDelimiters:g,normalizePercentEncoding:w,normalizePathEncoding:function(e){let r="";for(let t=0;t<e.length;t++){const a=e[t];if("%"===a&&t+2<e.length){const o=e.slice(t+1,t+3);if(n(o)){const e=o.toUpperCase(),n=String.fromCharCode(parseInt(e,16));"."!==n&&i(n)?r+=n:r+="%"+e,t+=2;continue}}if(o(a))r+=a;else{const n=e.charCodeAt(t);if(n<128)r+=S(n)?a:u[n];else if(n<55296||n>57343)r+=s(n);else if(n<=56319&&t+1<e.length){const i=e.charCodeAt(t+1);i>=56320&&i<=57343?(r+=s(65536+(n-55296<<10)+(i-56320)),t++):r+=s(65533)}else r+=s(65533)}}return r},serializePathEncoding:function(e,r=!1){let t="",i=r&&"/"!==e[0];for(let r=0;r<e.length;r++){const a=e[r];if("%"===a&&r+2<e.length){const i=e.slice(r+1,r+3);if(n(i)){t+="%"+i.toUpperCase(),r+=2;continue}}if("/"===a&&(i=!1),!o(a)||":"===a&&i){const n=e.charCodeAt(r);if(n<128)t+=u[n];else if(n<55296||n>57343)t+=s(n);else if(n<=56319&&r+1<e.length){const i=e.charCodeAt(r+1);i>=56320&&i<=57343?(t+=s(65536+(n-55296<<10)+(i-56320)),r++):t+=s(65533)}else t+=s(65533)}else t+=a}return t},normalizeQueryFragmentEncoding:function(e){let r="";for(let t=0;t<e.length;t++){const o=e[t];if("%"===o&&t+2<e.length){const o=e.slice(t+1,t+3);if(n(o)){const e=o.toUpperCase(),n=String.fromCharCode(parseInt(e,16));i(n)?r+=n:r+="%"+e,t+=2;continue}}if(a(o))r+=o;else{const n=e.charCodeAt(t);if(n<128)r+=S(n)?o:u[n];else if(n<55296||n>57343)r+=s(n);else if(n<=56319&&t+1<e.length){const i=e.charCodeAt(t+1);i>=56320&&i<=57343?(r+=s(65536+(n-55296<<10)+(i-56320)),t++):r+=s(65533)}else r+=s(65533)}}return r},encodeUserinfo:$,encodeQuery:function(e){return k(e,a)},encodeFragment:function(e){return k(e,a)},escapePreservingEscapes:function(e){let r="";for(let t=0;t<e.length;t++){if("%"===e[t]&&t+2<e.length){const i=e.slice(t+1,t+3);if(n(i)){r+="%"+i.toUpperCase(),t+=2;continue}}r+=escape(e[t])}return r},removeDotSegments:function(e){let r=e;const t=[];let n=-1,i=0;for(;i=r.length;){if(1===i){if("."===r)break;if("/"===r){t.push("/");break}t.push(r);break}if(2===i){if("."===r[0]){if("."===r[1])break;if("/"===r[1]){r=r.slice(2);continue}}else if("/"===r[0]&&("."===r[1]||"/"===r[1])){t.push("/");break}}else if(3===i&&"/.."===r){0!==t.length&&t.pop(),t.push("/");break}if("."===r[0]){if("."===r[1]){if("/"===r[2]){r=r.slice(3);continue}}else if("/"===r[1]){r=r.slice(2);continue}}else if("/"===r[0]&&"."===r[1]){if("/"===r[2]){r=r.slice(2);continue}if("."===r[2]&&"/"===r[3]){r=r.slice(3),0!==t.length&&t.pop();continue}}if(-1===(n=r.indexOf("/",1))){t.push(r);break}t.push(r.slice(0,n)),r=r.slice(n)}return t.join("")},isIPv4:r,isUUID:e,normalizeIPv6:p,stringArrayToHexStripped:function(e){let r="",t=0,n=0;for(n=0;n<e.length;n++)if(t=e[n].charCodeAt(0),48!==t){if(!(t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102))return"";r+=e[n];break}for(n+=1;n<e.length;n++){if(t=e[n].charCodeAt(0),!(t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102))return"";r+=e[n]}return r}},_d}function Ud(){if(qd)return Nd;qd=1,Object.defineProperty(Nd,"__esModule",{value:!0});const e=function(){if(Fd)return Rd.exports;Fd=1;const{normalizeIPv6:e,removeDotSegments:r,recomposeAuthority:t,normalizePercentEncoding:n,normalizePathEncoding:i,serializePathEncoding:o,normalizeQueryFragmentEncoding:a,encodeQuery:l,encodeFragment:u,reescapeHostDelimiters:s,isIPv4:c,nonSimpleDomain:f}=zd(),{SCHEMES:d,getSchemeHandler:h}=function(){if(Pd)return Dd;Pd=1;const{isUUID:e}=zd(),r=/^([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-./:;=@]|%[\da-f]{2})+)$/iu,t=["http","https","ws","wss","urn","urn:uuid"];function n(e){return!0===e.secure||!1!==e.secure&&!!e.scheme&&!(3!==e.scheme.length||"w"!==e.scheme[0]&&"W"!==e.scheme[0]||"s"!==e.scheme[1]&&"S"!==e.scheme[1]||"s"!==e.scheme[2]&&"S"!==e.scheme[2])}function i(e){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e}function o(e){const r="https"===String(e.scheme).toLowerCase();return e.port!==(r?443:80)&&""!==e.port||(e.port=void 0),e.path||(e.path="/"),e}const a={scheme:"http",domainHost:!0,parse:i,serialize:o},l={scheme:"ws",domainHost:!0,parse:function(e){return e.secure=n(e),e.resourceName=(e.path||"/")+(e.query?"?"+e.query:""),e.path=void 0,e.query=void 0,e},serialize:function(e){if(e.port!==(n(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){const r=e.resourceName.indexOf("?"),t=-1===r?e.resourceName:e.resourceName.slice(0,r);e.path=t&&"/"!==t?t:void 0,e.query=-1===r?void 0:e.resourceName.slice(r+1),e.resourceName=void 0}return e.fragment=void 0,e}},u={scheme:"urn",parse:function(e,t){if(!e.path)return e.error="URN can not be parsed",e;const n=e.path.match(r);if(n&&n[0]===e.path){const r=t.scheme||e.scheme||"urn";e.nid=n[1].toLowerCase(),e.nss=n[2];const i=c(`${r}:${t.nid||e.nid}`);e.path=void 0,i&&(e=i.parse(e,t))}else e.error=e.error||"URN can not be parsed.";return e},serialize:function(e,r){if(void 0===e.nid)throw new Error("URN without nid cannot be serialized");const t=r.scheme||e.scheme||"urn",n=e.nid.toLowerCase(),i=c(`${t}:${r.nid||n}`);i&&(e=i.serialize(e,r));const o=e;return o.path=`${n||r.nid}:${e.nss}`,r.skipEscape=!0,o},skipNormalize:!0},s={http:a,https:{scheme:"https",domainHost:a.domainHost,parse:i,serialize:o},ws:l,wss:{scheme:"wss",domainHost:l.domainHost,parse:l.parse,serialize:l.serialize},urn:u,"urn:uuid":{scheme:"urn:uuid",parse:function(r,t){const n=r;return n.uuid=n.nss,n.nss=void 0,t.tolerant||n.uuid&&e(n.uuid)||(n.error=n.error||"UUID is not valid."),n},serialize:function(e){const r=e;return r.nss=(e.uuid||"").toLowerCase(),r},skipNormalize:!0}};function c(e){return e&&(s[e]||s[e.toLowerCase()])||void 0}return Object.setPrototypeOf(s,null),Dd={wsIsSecure:n,SCHEMES:s,isValidSchemeName:function(e){return-1!==t.indexOf(e)},getSchemeHandler:c}}(),m=/^[A-Za-z][A-Za-z0-9+.-]*$/u,p="URI scheme is malformed.";function v(e){const r=unescape(String(e));if(!m.test(r))throw new TypeError(p);return r}function y(e,t,n,i){const o={};return i||(e=x(b(e,n),n),t=x(b(t,n),n)),!(n=n||{}).tolerant&&t.scheme?(o.scheme=t.scheme,o.userinfo=t.userinfo,o.host=t.host,o.port=t.port,o.path=r(t.path||""),o.query=t.query):(void 0!==t.userinfo||void 0!==t.host||void 0!==t.port?(o.userinfo=t.userinfo,o.host=t.host,o.port=t.port,o.path=r(t.path||""),o.query=t.query):(t.path?("/"===t.path[0]?o.path=r(t.path):(o.path=void 0===e.userinfo&&void 0===e.host&&void 0===e.port||e.path?e.path?e.path.slice(0,e.path.lastIndexOf("/")+1)+t.path:t.path:"/"+t.path,o.path=r(o.path)),o.query=t.query):(o.path=e.path,o.query=void 0!==t.query?t.query:e.query),o.userinfo=e.userinfo,o.host=e.host,o.port=e.port),o.scheme=e.scheme),o.fragment=t.fragment,o}function b(e,i){const a={host:e.host,scheme:e.scheme,userinfo:e.userinfo,port:e.port,path:e.path,query:e.query,nid:e.nid,nss:e.nss,uuid:e.uuid,fragment:e.fragment,reference:e.reference,resourceName:e.resourceName,secure:e.secure,error:""},s=Object.assign({},i),c=[];a.scheme&&(a.scheme=v(a.scheme));const f=h(s.scheme||a.scheme);f&&f.serialize&&f.serialize(a,s);const d=!s.skipEscape&&void 0===a.scheme&&!(void 0!==a.userinfo||void 0!==a.host||void 0!==a.port);void 0!==a.path&&(a.path=s.skipEscape?n(a.path):o(a.path,d)),"suffix"!==s.reference&&a.scheme&&(a.scheme=v(a.scheme),c.push(a.scheme,":"));const m=t(a);if(void 0!==m&&("suffix"!==s.reference&&c.push("//"),c.push(m),a.path&&"/"!==a.path[0]&&c.push("/")),void 0!==a.path){let e=a.path;s.absolutePath||f&&f.absolutePath||(e=r(e)),d&&(e=o(e,!0)),void 0===m&&"/"===e[0]&&"/"===e[1]&&(e="/%2F"+e.slice(2)),c.push(e)}return void 0!==a.query&&c.push("?",l(a.query)),void 0!==a.fragment&&c.push("#",u(a.fragment)),c.join("")}const g=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u,w=/^(?:[^#/:?]+:)?\/\/([^/?#]*)/,k=/^(?:[^#/:?]+:)?([/\\\t\n\r]*)/;function $(e){if(void 0===e)return!1;let r=e.indexOf("%");for(;-1!==r;){if(r+2>=e.length||!/^[\da-f]{2}$/iu.test(e.slice(r+1,r+3)))return!0;r=e.indexOf("%",r+3)}return!1}function S(e){return"["===e[0]&&"]"===e[e.length-1]}function E(e,r,t,n){if(!r.unicodeSupport&&(!t||!t.unicodeSupport)&&e.host&&!S(e.host)&&(r.domainHost||t&&t.domainHost)&&!1===n&&f(e.host))try{e.host=new URL("http://"+e.host).hostname}catch(r){return e.error=e.error||"Host's domain name can not be converted to ASCII: "+r,!0}return!1}function j(r,t){const o=Object.assign({},t),l={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0};let u=!1,f=!1,v=!1,y=!1,b=!1,j=!1,x=!1;"suffix"===o.reference&&(r=o.scheme?o.scheme+":"+r:"//"+r);const O=r.match(w);null!==O&&-1!==O[1].indexOf("\\")&&(l.error="URI authority must not contain a literal backslash.",u=!0);const A=r.match(k);if(null!==A){const e=A[1],r=e.replace(/[\t\n\r]/g,"");r.length>=2&&("//"!==r.slice(0,2)?(l.error=l.error||"URI authority must not contain a literal backslash.",u=!0):e.length!==r.length&&(l.error=l.error||"URI authority introducer must not contain whitespace.",u=!0))}const C=r.match(g);if(C){if(l.scheme=C[1],l.userinfo=C[3],l.host=C[4],l.port=parseInt(C[5],10),l.path=C[6]||"",l.query=C[7],l.fragment=C[8],void 0!==l.scheme){const e=unescape(l.scheme);m.test(e)?l.scheme=e.toLowerCase():(l.error=l.error||p,j=!0)}f=function(e){const r=e[4];return $(e[3])||void 0!==r&&!S(r)&&$(r)||$(e[6])||$(e[7])||$(e[8])}(C),f&&(l.error=l.error||"URI contains malformed percent-encoding."),isNaN(l.port)&&(l.port=C[5]);const t=function(e,r){return void 0!==r[2]&&e.path&&"/"!==e.path[0]?'URI path must start with "/" when authority is present.':"number"==typeof e.port&&(e.port<0||e.port>65535)?"URI port is malformed.":void 0}(l,C);if(void 0!==t&&(l.error=l.error||t,u=!0),l.host)if(!1===c(l.host)){const r=S(l.host),t=-1!==l.host.indexOf("[")||-1!==l.host.indexOf("]"),n=e(l.host);x=n.isIPV6||!0===n.isIPVFuture,b=t&&(!r||!0===n.error),l.host=x?n.host:n.host.toLowerCase(),b&&(l.error=l.error||"URI host is malformed.",u=!0)}else x=!0;l.reference=void 0!==l.scheme||void 0!==l.userinfo||void 0!==l.host||void 0!==l.port||void 0!==l.query||l.path?void 0===l.scheme?"relative":void 0===l.fragment?"absolute":"uri":"same-document",o.reference&&"suffix"!==o.reference&&o.reference!==l.reference&&(l.error=l.error||"URI is not a "+o.reference+" reference.");const g=h(o.scheme||l.scheme);if(b||(y=E(l,o,g,x)),-1!==r.indexOf("%")&&void 0!==l.host&&!b){let e=x?l.host:n(l.host,!0);x||(e=n(e.toLowerCase())),l.host=s(e,x)}(!g||g&&!g.skipNormalize)&&(l.path&&(l.path=i(l.path)),l.query&&(l.query=a(l.query)),l.fragment&&(l.fragment=a(l.fragment))),g&&g.parse&&(g.parse(l,o),g===d.urn&&void 0===l.nid&&(v=!0))}else l.error=l.error||"URI can not be parsed.";return{parsed:l,malformedAuthorityOrPort:u,malformedPercentEncoding:f,malformedSchemeSpecific:v,malformedHost:y,malformedScheme:j}}function x(e,r){return j(e,r).parsed}function O(e,r){const{parsed:t,malformedAuthorityOrPort:n,malformedPercentEncoding:i,malformedSchemeSpecific:o,malformedHost:a,malformedScheme:l}=j(e,r);return{normalized:n||i||o||a||l?e:b(t,r),malformedAuthorityOrPort:n,malformedPercentEncoding:i,malformedSchemeSpecific:o,malformedHost:a,malformedScheme:l}}function A(e,r){if("string"!=typeof e&&"object"!=typeof e)return;let t;try{t="string"==typeof e?e:b(e,r)}catch{return}const{normalized:n,malformedAuthorityOrPort:i,malformedPercentEncoding:o,malformedSchemeSpecific:a,malformedHost:l,malformedScheme:u}=O(t,r);return i||o||a||l||u?void 0:n}const C={SCHEMES:d,normalize:function(e,r){return"string"==typeof e?e=function(e,r){return O(e,r).normalized}(e,r):"object"==typeof e&&(e=x(b(e,r),r)),e},resolve:function(r,t,n){const i=n?Object.assign({scheme:"null"},n):{scheme:"null"},{parsed:o,malformedAuthorityOrPort:a,malformedPercentEncoding:l,malformedSchemeSpecific:u,malformedHost:s,malformedScheme:f}=j(r,i),{parsed:d,malformedAuthorityOrPort:m,malformedPercentEncoding:p,malformedSchemeSpecific:v,malformedHost:g,malformedScheme:w}=j(t,i);if(a||m||l||p||u||v||s||g||f||w)throw new Error(o.error||d.error||"URI is malformed.");const k=y(o,d,i,!0),$=h(n&&n.scheme||k.scheme),S=k.host;E(k,n||{},$,void 0!==S&&""!==S&&(c(S)||e(S).isIPV6));const x=S&&-1!==S.indexOf("%")&&!/\P{ASCII}/u.test(S);if(k.error&&!x)throw new Error(k.error);return i.skipEscape=!0,b(k,i)},resolveComponent:y,equal:function(e,r,t){const n=A(e,t),i=A(r,t);return void 0!==n&&void 0!==i&&n===i},serialize:b,parse:x};return Rd.exports=C,Rd.exports.default=C,Rd.exports.fastUri=C,Rd.exports}();return e.code='require("ajv/dist/runtime/uri").default',Nd.default=e,Nd}function Ld(){return Td||(Td=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CodeGen=e.Name=e.nil=e.stringify=e.str=e._=e.KeywordCxt=void 0;var r=wd();Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return r.KeywordCxt}});var t=Df();Object.defineProperty(e,"_",{enumerable:!0,get:function(){return t._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return t.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return t.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return t.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return t.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return t.CodeGen}});const n=Sd(),i=xd(),o=Wf(),a=Cd(),l=Df(),u=gd(),s=Yf(),c=qf(),f=Md,d=Ud(),h=(e,r)=>new RegExp(e,r);h.code="new RegExp";const m=["removeAdditional","useDefaults","coerceTypes"],p=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 b(e){var r,t,n,i,o,a,l,u,s,c,f,m,p,v,y,b,g,w,k,$,S,E,j,x,O;const A=e.strict,C=null===(r=e.code)||void 0===r?void 0:r.optimize,_=!0===C||void 0===C?1:C||0,I=null!==(n=null===(t=e.code)||void 0===t?void 0:t.regExp)&&void 0!==n?n:h,D=null!==(i=e.uriResolver)&&void 0!==i?i:d.default;return{strictSchema:null===(a=null!==(o=e.strictSchema)&&void 0!==o?o:A)||void 0===a||a,strictNumbers:null===(u=null!==(l=e.strictNumbers)&&void 0!==l?l:A)||void 0===u||u,strictTypes:null!==(c=null!==(s=e.strictTypes)&&void 0!==s?s:A)&&void 0!==c?c:"log",strictTuples:null!==(m=null!==(f=e.strictTuples)&&void 0!==f?f:A)&&void 0!==m?m:"log",strictRequired:null!==(v=null!==(p=e.strictRequired)&&void 0!==p?p:A)&&void 0!==v&&v,code:e.code?{...e.code,optimize:_,regExp:I}:{optimize:_,regExp:I},loopRequired:null!==(y=e.loopRequired)&&void 0!==y?y:200,loopEnum:null!==(b=e.loopEnum)&&void 0!==b?b:200,meta:null===(g=e.meta)||void 0===g||g,messages:null===(w=e.messages)||void 0===w||w,inlineRefs:null===(k=e.inlineRefs)||void 0===k||k,schemaId:null!==($=e.schemaId)&&void 0!==$?$:"$id",addUsedSchema:null===(S=e.addUsedSchema)||void 0===S||S,validateSchema:null===(E=e.validateSchema)||void 0===E||E,validateFormats:null===(j=e.validateFormats)||void 0===j||j,unicodeRegExp:null===(x=e.unicodeRegExp)||void 0===x||x,int32range:null===(O=e.int32range)||void 0===O||O,uriResolver:D}}class g{constructor(e={}){this.schemas={},this.refs={},this.formats=Object.create(null),this._compilations=new Set,this._loading={},this._cache=new Map,e=this.opts={...e,...b(e)};const{es5:r,lines:t}=this.opts.code;this.scope=new l.ValueScope({scope:{},prefixes:p,es5:r,lines:t}),this.logger=function(e){if(!1===e)return x;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,o.getRules)(),w.call(this,v,e,"NOT SUPPORTED"),w.call(this,y,e,"DEPRECATED","warn"),this._metaOpts=j.call(this),e.formats&&S.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),e.keywords&&E.call(this,e.keywords),"object"==typeof e.meta&&this.addMetaSchema(e.meta),$.call(this),e.validateFormats=n}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:e,meta:r,schemaId:t}=this.opts;let n=f;"id"===t&&(n={...f},n.id=n.$id,delete n.$id),r&&e&&this.addMetaSchema(n,n[t],!1)}defaultMeta(){const{meta:e,schemaId:r}=this.opts;return this.opts.defaultMeta="object"==typeof e?e[r]||e:void 0}validate(e,r){let t;if("string"==typeof e){if(t=this.getSchema(e),!t)throw new Error(`no schema with key or ref "${e}"`)}else t=this.compile(e);const n=t(r);return"$async"in t||(this.errors=t.errors),n}compile(e,r){const t=this._addSchema(e,r);return t.validate||this._compileSchemaEnv(t)}compileAsync(e,r){if("function"!=typeof this.opts.loadSchema)throw new Error("options.loadSchema should be a function");const{loadSchema:t}=this.opts;return n.call(this,e,r);async function n(e,r){await o.call(this,e.$schema);const t=this._addSchema(e,r);return t.validate||a.call(this,t)}async function o(e){e&&!this.getSchema(e)&&await n.call(this,{$ref:e},!0)}async function a(e){try{return this._compileSchemaEnv(e)}catch(r){if(!(r instanceof i.default))throw r;return l.call(this,r),await u.call(this,r.missingSchema),a.call(this,e)}}function l({missingSchema:e,missingRef:r}){if(this.refs[e])throw new Error(`AnySchema ${e} is loaded but ${r} cannot be resolved`)}async function u(e){const t=await s.call(this,e);this.refs[e]||await o.call(this,t.$schema),this.refs[e]||this.addSchema(t,e,r)}async function s(e){const r=this._loading[e];if(r)return r;try{return await(this._loading[e]=t(e))}finally{delete this._loading[e]}}}addSchema(e,r,t,n=this.opts.validateSchema){if(Array.isArray(e)){for(const r of e)this.addSchema(r,void 0,t,n);return this}let i;if("object"==typeof e){const{schemaId:r}=this.opts;if(i=e[r],void 0!==i&&"string"!=typeof i)throw new Error(`schema ${r} must be string`)}return r=(0,u.normalizeId)(r||i),this._checkUnique(r),this.schemas[r]=this._addSchema(e,t,r,n,!0),this}addMetaSchema(e,r,t=this.opts.validateSchema){return this.addSchema(e,r,!0,t),this}validateSchema(e,r){if("boolean"==typeof e)return!0;let t;if(t=e.$schema,void 0!==t&&"string"!=typeof t)throw new Error("$schema must be a string");if(t=t||this.opts.defaultMeta||this.defaultMeta(),!t)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const n=this.validate(t,e);if(!n&&r){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 r;for(;"string"==typeof(r=k.call(this,e));)e=r;if(void 0===r){const{schemaId:t}=this.opts,n=new a.SchemaEnv({schema:{},schemaId:t});if(r=a.resolveSchema.call(this,n,e),!r)return;this.refs[e]=r}return r.validate||this._compileSchemaEnv(r)}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 r=k.call(this,e);return"object"==typeof r&&this._cache.delete(r.schema),delete this.schemas[e],delete this.refs[e],this}case"object":{this._cache.delete(e);let r=e[this.opts.schemaId];return r&&(r=(0,u.normalizeId)(r),delete this.schemas[r],delete this.refs[r]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(e){for(const r of e)this.addKeyword(r);return this}addKeyword(e,r){let t;if("string"==typeof e)t=e,"object"==typeof r&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),r.keyword=t);else{if("object"!=typeof e||void 0!==r)throw new Error("invalid addKeywords parameters");if(t=(r=e).keyword,Array.isArray(t)&&!t.length)throw new Error("addKeywords: keyword must be string or non-empty array")}if(A.call(this,t,r),!r)return(0,c.eachItem)(t,(e=>C.call(this,e))),this;I.call(this,r);const n={...r,type:(0,s.getJSONTypes)(r.type),schemaType:(0,s.getJSONTypes)(r.schemaType)};return(0,c.eachItem)(t,0===n.type.length?e=>C.call(this,e,n):e=>n.type.forEach((r=>C.call(this,e,n,r)))),this}getKeyword(e){const r=this.RULES.all[e];return"object"==typeof r?r.definition:!!r}removeKeyword(e){const{RULES:r}=this;delete r.keywords[e],delete r.all[e];for(const t of r.rules){const r=t.rules.findIndex((r=>r.keyword===e));r>=0&&t.rules.splice(r,1)}return this}addFormat(e,r){return"string"==typeof r&&(r=new RegExp(r)),this.formats[e]=r,this}errorsText(e=this.errors,{separator:r=", ",dataVar:t="data"}={}){return e&&0!==e.length?e.map((e=>`${t}${e.instancePath} ${e.message}`)).reduce(((e,t)=>e+r+t)):"No errors"}$dataMetaSchema(e,r){const t=this.RULES.all;e=JSON.parse(JSON.stringify(e));for(const n of r){const r=n.split("/").slice(1);let i=e;for(const e of r)i=i[e];for(const e in t){const r=t[e];if("object"!=typeof r)continue;const{$data:n}=r.definition,o=i[e];n&&o&&(i[e]=P(o))}}return e}_removeAllSchemas(e,r){for(const t in e){const n=e[t];r&&!r.test(t)||("string"==typeof n?delete e[t]:n&&!n.meta&&(this._cache.delete(n.schema),delete e[t]))}}_addSchema(e,r,t,n=this.opts.validateSchema,i=this.opts.addUsedSchema){let o;const{schemaId:l}=this.opts;if("object"==typeof e)o=e[l];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 s=this._cache.get(e);if(void 0!==s)return s;t=(0,u.normalizeId)(o||t);const c=u.getSchemaRefs.call(this,e,t);return s=new a.SchemaEnv({schema:e,schemaId:l,meta:r,baseId:t,localRefs:c}),this._cache.set(s.schema,s),i&&!t.startsWith("#")&&(t&&this._checkUnique(t),this.refs[t]=s),n&&this.validateSchema(e,!0),s}_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):a.compileSchema.call(this,e),!e.validate)throw new Error("ajv implementation error");return e.validate}_compileMetaSchema(e){const r=this.opts;this.opts=this._metaOpts;try{a.compileSchema.call(this,e)}finally{this.opts=r}}}function w(e,r,t,n="error"){for(const i in e)i in r&&this.logger[n](`${t}: option ${i}. ${e[i]}`)}function k(e){return e=(0,u.normalizeId)(e),this.schemas[e]||this.refs[e]}function $(){const e=this.opts.schemas;if(e)if(Array.isArray(e))this.addSchema(e);else for(const r in e)this.addSchema(e[r],r)}function S(){for(const e in this.opts.formats){const r=this.opts.formats[e];r&&this.addFormat(e,r)}}function E(e){if(Array.isArray(e))this.addVocabulary(e);else{this.logger.warn("keywords option as map is deprecated, pass array");for(const r in e){const t=e[r];t.keyword||(t.keyword=r),this.addKeyword(t)}}}function j(){const e={...this.opts};for(const r of m)delete e[r];return e}g.ValidationError=n.default,g.MissingRefError=i.default,e.default=g;const x={log(){},warn(){},error(){}},O=/^[a-z_$][a-z0-9_$:-]*$/i;function A(e,r){const{RULES:t}=this;if((0,c.eachItem)(e,(e=>{if(t.keywords[e])throw new Error(`Keyword ${e} is already defined`);if(!O.test(e))throw new Error(`Keyword ${e} has invalid name`)})),r&&r.$data&&!("code"in r)&&!("validate"in r))throw new Error('$data keyword must have "code" or "validate" function')}function C(e,r,t){var n;const i=null==r?void 0:r.post;if(t&&i)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:o}=this;let a=i?o.post:o.rules.find((({type:e})=>e===t));if(a||(a={type:t,rules:[]},o.rules.push(a)),o.keywords[e]=!0,!r)return;const l={keyword:e,definition:{...r,type:(0,s.getJSONTypes)(r.type),schemaType:(0,s.getJSONTypes)(r.schemaType)}};r.before?_.call(this,a,l,r.before):a.rules.push(l),o.all[e]=l,null===(n=r.implements)||void 0===n||n.forEach((e=>this.addKeyword(e)))}function _(e,r,t){const n=e.rules.findIndex((e=>e.keyword===t));n>=0?e.rules.splice(n,0,r):(e.rules.push(r),this.logger.warn(`rule ${t} is not defined`))}function I(e){let{metaSchema:r}=e;void 0!==r&&(e.$data&&this.opts.$data&&(r=P(r)),e.validateSchema=this.compile(r,!0))}const D={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function P(e){return{anyOf:[e,D]}}}(kf)),kf}var Bd,Vd={},Hd={},Wd={};function Gd(){return Bd||(Bd=1,Object.defineProperty(Wd,"__esModule",{value:!0}),Wd.default={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}}),Wd}var Kd,Zd,Jd={};function Yd(){if(Kd)return Jd;Kd=1,Object.defineProperty(Jd,"__esModule",{value:!0}),Jd.callRef=Jd.getValidate=void 0;const e=xd(),r=od(),t=Df(),n=zf(),i=Cd(),o=qf(),a={keyword:"$ref",schemaType:"string",code(r){const{gen:n,schema:o,it:a}=r,{baseId:s,schemaEnv:c,validateName:f,opts:d,self:h}=a,{root:m}=c;if(("#"===o||"#/"===o)&&s===m.baseId)return function(){if(c===m)return u(r,f,c,c.$async);const e=n.scopeValue("root",{ref:m});return u(r,t._`${e}.validate`,m,m.$async)}();const p=i.resolveRef.call(h,m,s,o);if(void 0===p)throw new e.default(a.opts.uriResolver,s,o);return p instanceof i.SchemaEnv?function(e){const t=l(r,e);u(r,t,e,e.$async)}(p):function(e){const i=n.scopeValue("schema",!0===d.code.source?{ref:e,code:(0,t.stringify)(e)}:{ref:e}),a=n.name("valid"),l=r.subschema({schema:e,dataTypes:[],schemaPath:t.nil,topSchemaRef:i,errSchemaPath:o},a);r.mergeEvaluated(l),r.ok(a)}(p)}};function l(e,r){const{gen:n}=e;return r.validate?n.scopeValue("validate",{ref:r.validate}):t._`${n.scopeValue("wrapper",{ref:r})}.validate`}function u(e,i,a,l){const{gen:u,it:s}=e,{allErrors:c,schemaEnv:f,opts:d}=s,h=d.passContext?n.default.this:t.nil;function m(e){const r=t._`${e}.errors`;u.assign(n.default.vErrors,t._`${n.default.vErrors} === null ? ${r} : ${n.default.vErrors}.concat(${r})`),u.assign(n.default.errors,t._`${n.default.vErrors}.length`)}function p(e){var r;if(!s.opts.unevaluated)return;const n=null===(r=null==a?void 0:a.validate)||void 0===r?void 0:r.evaluated;if(!0!==s.props)if(n&&!n.dynamicProps)void 0!==n.props&&(s.props=o.mergeEvaluated.props(u,n.props,s.props));else{const r=u.var("props",t._`${e}.evaluated.props`);s.props=o.mergeEvaluated.props(u,r,s.props,t.Name)}if(!0!==s.items)if(n&&!n.dynamicItems)void 0!==n.items&&(s.items=o.mergeEvaluated.items(u,n.items,s.items));else{const r=u.var("items",t._`${e}.evaluated.items`);s.items=o.mergeEvaluated.items(u,r,s.items,t.Name)}}l?function(){if(!f.$async)throw new Error("async schema referenced by sync schema");const n=u.let("valid");u.try((()=>{u.code(t._`await ${(0,r.callValidateCode)(e,i,h)}`),p(i),c||u.assign(n,!0)}),(e=>{u.if(t._`!(${e} instanceof ${s.ValidationError})`,(()=>u.throw(e))),m(e),c||u.assign(n,!1)})),e.ok(n)}():e.result((0,r.callValidateCode)(e,i,h),(()=>p(i)),(()=>m(i)))}return Jd.getValidate=l,Jd.callRef=u,Jd.default=a,Jd}function Xd(){return Zd||(Zd=1,Object.defineProperty(Hd,"__esModule",{value:!0}),Hd.default=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",Gd().default,Yd().default]),Hd}var Qd,eh={},rh={};function th(){if(Qd)return rh;Qd=1,Object.defineProperty(rh,"__esModule",{value:!0});const e=Df(),r=e.operators,t={maximum:{okStr:"<=",ok:r.LTE,fail:r.GT},minimum:{okStr:">=",ok:r.GTE,fail:r.LT},exclusiveMaximum:{okStr:"<",ok:r.LT,fail:r.GTE},exclusiveMinimum:{okStr:">",ok:r.GT,fail:r.LTE}},n={message:({keyword:r,schemaCode:n})=>e.str`must be ${t[r].okStr} ${n}`,params:({keyword:r,schemaCode:n})=>e._`{comparison: ${t[r].okStr}, limit: ${n}}`},i={keyword:Object.keys(t),type:"number",schemaType:"number",$data:!0,error:n,code(r){const{keyword:n,data:i,schemaCode:o}=r;r.fail$data(e._`${i} ${t[n].fail} ${o} || isNaN(${i})`)}};return rh.default=i,rh}var nh,ih={};function oh(){if(nh)return ih;nh=1,Object.defineProperty(ih,"__esModule",{value:!0});const e=Df();return ih.default={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:({schemaCode:r})=>e.str`must be multiple of ${r}`,params:({schemaCode:r})=>e._`{multipleOf: ${r}}`},code(r){const{gen:t,data:n,schemaCode:i,it:o}=r,a=o.opts.multipleOfPrecision,l=t.let("res"),u=a?e._`Math.abs(Math.round(${l}) - ${l}) > 1e-${a}`:e._`${l} !== parseInt(${l})`;r.fail$data(e._`(${i} === 0 || (${l} = ${n}/${i}, ${u}))`)}},ih}var ah,lh,uh={},sh={};function ch(){if(ah)return sh;function e(e){const r=e.length;let t,n=0,i=0;for(;i<r;)n++,t=e.charCodeAt(i++),t>=55296&&t<=56319&&i<r&&(t=e.charCodeAt(i),56320==(64512&t)&&i++);return n}return ah=1,Object.defineProperty(sh,"__esModule",{value:!0}),sh.default=e,e.code='require("ajv/dist/runtime/ucs2length").default',sh}function fh(){if(lh)return uh;lh=1,Object.defineProperty(uh,"__esModule",{value:!0});const e=Df(),r=qf(),t=ch(),n={message:({keyword:r,schemaCode:t})=>e.str`must NOT have ${"maxLength"===r?"more":"fewer"} than ${t} characters`,params:({schemaCode:r})=>e._`{limit: ${r}}`},i={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:n,code(n){const{keyword:i,data:o,schemaCode:a,it:l}=n,u="maxLength"===i?e.operators.GT:e.operators.LT,s=!1===l.opts.unicode?e._`${o}.length`:e._`${(0,r.useFunc)(n.gen,t.default)}(${o})`;n.fail$data(e._`${s} ${u} ${a}`)}};return uh.default=i,uh}var dh,hh={};function mh(){if(dh)return hh;dh=1,Object.defineProperty(hh,"__esModule",{value:!0});const e=od(),r=qf(),t=Df(),n={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:{message:({schemaCode:e})=>t.str`must match pattern "${e}"`,params:({schemaCode:e})=>t._`{pattern: ${e}}`},code(n){const{gen:i,data:o,$data:a,schema:l,schemaCode:u,it:s}=n,c=s.opts.unicodeRegExp?"u":"";if(a){const{regExp:e}=s.opts.code,a="new RegExp"===e.code?t._`new RegExp`:(0,r.useFunc)(i,e),l=i.let("valid");i.try((()=>i.assign(l,t._`${a}(${u}, ${c}).test(${o})`)),(()=>i.assign(l,!1))),n.fail$data(t._`!${l}`)}else{const r=(0,e.usePattern)(n,l);n.fail$data(t._`!${r}.test(${o})`)}}};return hh.default=n,hh}var ph,vh={};function yh(){if(ph)return vh;ph=1,Object.defineProperty(vh,"__esModule",{value:!0});const e=Df(),r={message:({keyword:r,schemaCode:t})=>e.str`must NOT have ${"maxProperties"===r?"more":"fewer"} than ${t} properties`,params:({schemaCode:r})=>e._`{limit: ${r}}`},t={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:r,code(r){const{keyword:t,data:n,schemaCode:i}=r;r.fail$data(e._`Object.keys(${n}).length ${"maxProperties"===t?e.operators.GT:e.operators.LT} ${i}`)}};return vh.default=t,vh}var bh,gh={};function wh(){if(bh)return gh;bh=1,Object.defineProperty(gh,"__esModule",{value:!0});const e=od(),r=Df(),t=qf();return gh.default={keyword:"required",type:"object",schemaType:"array",$data:!0,error:{message:({params:{missingProperty:e}})=>r.str`must have required property '${e}'`,params:({params:{missingProperty:e}})=>r._`{missingProperty: ${e}}`},code(n){const{gen:i,schema:o,schemaCode:a,data:l,$data:u,it:s}=n,{opts:c}=s;if(!u&&0===o.length)return;const f=o.length>=c.loopRequired;if(s.allErrors?function(){if(f||u)n.block$data(r.nil,d);else for(const r of o)(0,e.checkReportMissingProp)(n,r)}():function(){const t=i.let("missing");if(f||u){const o=i.let("valid",!0);n.block$data(o,(()=>function(t,o){n.setParams({missingProperty:t}),i.forOf(t,a,(()=>{i.assign(o,(0,e.propertyInData)(i,l,t,c.ownProperties)),i.if((0,r.not)(o),(()=>{n.error(),i.break()}))}),r.nil)}(t,o))),n.ok(o)}else i.if((0,e.checkMissingProp)(n,o,t)),(0,e.reportMissingProp)(n,t),i.else()}(),c.strictRequired){const e=n.parentSchema.properties,{definedProperties:r}=n.it;for(const n of o)void 0!==(null==e?void 0:e[n])||r.has(n)||(0,t.checkStrictMode)(s,`required property "${n}" is not defined at "${s.schemaEnv.baseId+s.errSchemaPath}" (strictRequired)`,s.opts.strictRequired)}function d(){i.forOf("prop",a,(r=>{n.setParams({missingProperty:r}),i.if((0,e.noPropertyInData)(i,l,r,c.ownProperties),(()=>n.error()))}))}}},gh}var kh,$h={};function Sh(){if(kh)return $h;kh=1,Object.defineProperty($h,"__esModule",{value:!0});const e=Df(),r={message:({keyword:r,schemaCode:t})=>e.str`must NOT have ${"maxItems"===r?"more":"fewer"} than ${t} items`,params:({schemaCode:r})=>e._`{limit: ${r}}`},t={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:r,code(r){const{keyword:t,data:n,schemaCode:i}=r;r.fail$data(e._`${n}.length ${"maxItems"===t?e.operators.GT:e.operators.LT} ${i}`)}};return $h.default=t,$h}var Eh,jh,xh={},Oh={};function Ah(){if(Eh)return Oh;Eh=1,Object.defineProperty(Oh,"__esModule",{value:!0});const e=hd();return e.code='require("ajv/dist/runtime/equal").default',Oh.default=e,Oh}function Ch(){if(jh)return xh;jh=1,Object.defineProperty(xh,"__esModule",{value:!0});const e=Yf(),r=Df(),t=qf(),n=Ah();return xh.default={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:{message:({params:{i:e,j:t}})=>r.str`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>r._`{i: ${e}, j: ${t}}`},code(i){const{gen:o,data:a,$data:l,schema:u,parentSchema:s,schemaCode:c,it:f}=i;if(!l&&!u)return;const d=o.let("valid"),h=s.items?(0,e.getSchemaTypes)(s.items):[];function m(t,n){const l=o.name("item"),u=(0,e.checkDataTypes)(h,l,f.opts.strictNumbers,e.DataType.Wrong),s=o.const("indices",r._`{}`);o.for(r._`;${t}--;`,(()=>{o.let(l,r._`${a}[${t}]`),o.if(u,r._`continue`),h.length>1&&o.if(r._`typeof ${l} == "string"`,r._`${l} += "_"`),o.if(r._`typeof ${s}[${l}] == "number"`,(()=>{o.assign(n,r._`${s}[${l}]`),i.error(),o.assign(d,!1).break()})).code(r._`${s}[${l}] = ${t}`)}))}function p(e,l){const u=(0,t.useFunc)(o,n.default),s=o.name("outer");o.label(s).for(r._`;${e}--;`,(()=>o.for(r._`${l} = ${e}; ${l}--;`,(()=>o.if(r._`${u}(${a}[${e}], ${a}[${l}])`,(()=>{i.error(),o.assign(d,!1).break(s)}))))))}i.block$data(d,(function(){const e=o.let("i",r._`${a}.length`),t=o.let("j");i.setParams({i:e,j:t}),o.assign(d,!0),o.if(r._`${e} > 1`,(()=>(h.length>0&&!h.some((e=>"object"===e||"array"===e))?m:p)(e,t)))}),r._`${c} === false`),i.ok(d)}},xh}var _h,Ih={};function Dh(){if(_h)return Ih;_h=1,Object.defineProperty(Ih,"__esModule",{value:!0});const e=Df(),r=qf(),t=Ah();return Ih.default={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:({schemaCode:r})=>e._`{allowedValue: ${r}}`},code(n){const{gen:i,data:o,$data:a,schemaCode:l,schema:u}=n;a||u&&"object"==typeof u?n.fail$data(e._`!${(0,r.useFunc)(i,t.default)}(${o}, ${l})`):n.fail(e._`${u} !== ${o}`)}},Ih}var Ph,Fh,qh={};function Th(){if(Ph)return qh;Ph=1,Object.defineProperty(qh,"__esModule",{value:!0});const e=Df(),r=qf(),t=Ah();return qh.default={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:({schemaCode:r})=>e._`{allowedValues: ${r}}`},code(n){const{gen:i,data:o,$data:a,schema:l,schemaCode:u,it:s}=n;if(!a&&0===l.length)throw new Error("enum must have non-empty array");let c;const f=()=>null!=c?c:c=(0,r.useFunc)(i,t.default);let d;if(l.length>=s.opts.loopEnum||a)d=i.let("valid"),n.block$data(d,(function(){i.assign(d,!1),i.forOf("v",u,(r=>i.if(e._`${f()}(${o}, ${r})`,(()=>i.assign(d,!0).break()))))}));else{if(!Array.isArray(l))throw new Error("ajv implementation error");const r=i.const("vSchema",u);d=(0,e.or)(...l.map(((t,n)=>function(r,t){const n=l[t];return"object"==typeof n&&null!==n?e._`${f()}(${o}, ${r}[${t}])`:e._`${o} === ${n}`}(r,n))))}n.pass(d)}},qh}function Mh(){return Fh||(Fh=1,Object.defineProperty(eh,"__esModule",{value:!0}),eh.default=[th().default,oh().default,fh().default,mh().default,yh().default,wh().default,Sh().default,Ch().default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},Dh().default,Th().default]),eh}var Nh,Rh={},zh={};function Uh(){if(Nh)return zh;Nh=1,Object.defineProperty(zh,"__esModule",{value:!0}),zh.validateAdditionalItems=void 0;const e=Df(),r=qf(),t={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:({params:{len:r}})=>e.str`must NOT have more than ${r} items`,params:({params:{len:r}})=>e._`{limit: ${r}}`},code(e){const{parentSchema:t,it:i}=e,{items:o}=t;Array.isArray(o)?n(e,o):(0,r.checkStrictMode)(i,'"additionalItems" is ignored when "items" is not an array of schemas')}};function n(t,n){const{gen:i,schema:o,data:a,keyword:l,it:u}=t;u.items=!0;const s=i.const("len",e._`${a}.length`);if(!1===o)t.setParams({len:n.length}),t.pass(e._`${s} <= ${n.length}`);else if("object"==typeof o&&!(0,r.alwaysValidSchema)(u,o)){const o=i.var("valid",e._`${s} <= ${n.length}`);i.if((0,e.not)(o),(()=>function(o){i.forRange("i",n.length,s,(n=>{t.subschema({keyword:l,dataProp:n,dataPropType:r.Type.Num},o),u.allErrors||i.if((0,e.not)(o),(()=>i.break()))}))}(o))),t.ok(o)}}return zh.validateAdditionalItems=n,zh.default=t,zh}var Lh,Bh,Vh={},Hh={};function Wh(){if(Lh)return Hh;Lh=1,Object.defineProperty(Hh,"__esModule",{value:!0}),Hh.validateTuple=void 0;const e=Df(),r=qf(),t=od(),n={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){const{schema:n,it:o}=e;if(Array.isArray(n))return i(e,"additionalItems",n);o.items=!0,(0,r.alwaysValidSchema)(o,n)||e.ok((0,t.validateArray)(e))}};function i(t,n,i=t.schema){const{gen:o,parentSchema:a,data:l,keyword:u,it:s}=t;!function(e){const{opts:t,errSchemaPath:o}=s,a=i.length;t.strictTuples&&!(a===e.minItems&&(a===e.maxItems||!1===e[n]))&&(0,r.checkStrictMode)(s,`"${u}" is ${a}-tuple, but minItems or maxItems/${n} are not specified or different at path "${o}"`,t.strictTuples)}(a),s.opts.unevaluated&&i.length&&!0!==s.items&&(s.items=r.mergeEvaluated.items(o,i.length,s.items));const c=o.name("valid"),f=o.const("len",e._`${l}.length`);i.forEach(((n,i)=>{(0,r.alwaysValidSchema)(s,n)||(o.if(e._`${f} > ${i}`,(()=>t.subschema({keyword:u,schemaProp:i,dataProp:i},c))),t.ok(c))}))}return Hh.validateTuple=i,Hh.default=n,Hh}function Gh(){if(Bh)return Vh;Bh=1,Object.defineProperty(Vh,"__esModule",{value:!0});const e=Wh();return Vh.default={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:r=>(0,e.validateTuple)(r,"items")},Vh}var Kh,Zh={};function Jh(){if(Kh)return Zh;Kh=1,Object.defineProperty(Zh,"__esModule",{value:!0});const e=Df(),r=qf(),t=od(),n=Uh(),i={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:({params:{len:r}})=>e.str`must NOT have more than ${r} items`,params:({params:{len:r}})=>e._`{limit: ${r}}`},code(e){const{schema:i,parentSchema:o,it:a}=e,{prefixItems:l}=o;a.items=!0,(0,r.alwaysValidSchema)(a,i)||(l?(0,n.validateAdditionalItems)(e,l):e.ok((0,t.validateArray)(e)))}};return Zh.default=i,Zh}var Yh,Xh={};function Qh(){if(Yh)return Xh;Yh=1,Object.defineProperty(Xh,"__esModule",{value:!0});const e=Df(),r=qf();return Xh.default={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:{message:({params:{min:r,max:t}})=>void 0===t?e.str`must contain at least ${r} valid item(s)`:e.str`must contain at least ${r} and no more than ${t} valid item(s)`,params:({params:{min:r,max:t}})=>void 0===t?e._`{minContains: ${r}}`:e._`{minContains: ${r}, maxContains: ${t}}`},code(t){const{gen:n,schema:i,parentSchema:o,data:a,it:l}=t;let u,s;const{minContains:c,maxContains:f}=o;l.opts.next?(u=void 0===c?1:c,s=f):u=1;const d=n.const("len",e._`${a}.length`);if(t.setParams({min:u,max:s}),void 0===s&&0===u)return void(0,r.checkStrictMode)(l,'"minContains" == 0 without "maxContains": "contains" keyword ignored');if(void 0!==s&&u>s)return(0,r.checkStrictMode)(l,'"minContains" > "maxContains" is always invalid'),void t.fail();if((0,r.alwaysValidSchema)(l,i)){let r=e._`${d} >= ${u}`;return void 0!==s&&(r=e._`${r} && ${d} <= ${s}`),void t.pass(r)}l.items=!0;const h=n.name("valid");function m(){const r=n.name("_valid"),t=n.let("count",0);p(r,(()=>n.if(r,(()=>function(r){n.code(e._`${r}++`),void 0===s?n.if(e._`${r} >= ${u}`,(()=>n.assign(h,!0).break())):(n.if(e._`${r} > ${s}`,(()=>n.assign(h,!1).break())),1===u?n.assign(h,!0):n.if(e._`${r} >= ${u}`,(()=>n.assign(h,!0))))}(t)))))}function p(e,i){n.forRange("i",0,d,(n=>{t.subschema({keyword:"contains",dataProp:n,dataPropType:r.Type.Num,compositeRule:!0},e),i()}))}void 0===s&&1===u?p(h,(()=>n.if(h,(()=>n.break())))):0===u?(n.let(h,!0),void 0!==s&&n.if(e._`${a}.length > 0`,m)):(n.let(h,!1),m()),t.result(h,(()=>t.reset()))}},Xh}var em,rm={};function tm(){return em||(em=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0;const r=Df(),t=qf(),n=od();e.error={message:({params:{property:e,depsCount:t,deps:n}})=>r.str`must have ${1===t?"property":"properties"} ${n} when property ${e} is present`,params:({params:{property:e,depsCount:t,deps:n,missingProperty:i}})=>r._`{property: ${e},
5
+ missingProperty: ${i},
6
+ depsCount: ${t},
7
+ deps: ${n}}`};const i={keyword:"dependencies",type:"object",schemaType:"object",error:e.error,code(e){const[r,t]=function({schema:e}){const r={},t={};for(const n in e)"__proto__"!==n&&((Array.isArray(e[n])?r:t)[n]=e[n]);return[r,t]}(e);o(e,r),a(e,t)}};function o(e,t=e.schema){const{gen:i,data:o,it:a}=e;if(0===Object.keys(t).length)return;const l=i.let("missing");for(const u in t){const s=t[u];if(0===s.length)continue;const c=(0,n.propertyInData)(i,o,u,a.opts.ownProperties);e.setParams({property:u,depsCount:s.length,deps:s.join(", ")}),a.allErrors?i.if(c,(()=>{for(const r of s)(0,n.checkReportMissingProp)(e,r)})):(i.if(r._`${c} && (${(0,n.checkMissingProp)(e,s,l)})`),(0,n.reportMissingProp)(e,l),i.else())}}function a(e,r=e.schema){const{gen:i,data:o,keyword:a,it:l}=e,u=i.name("valid");for(const s in r)(0,t.alwaysValidSchema)(l,r[s])||(i.if((0,n.propertyInData)(i,o,s,l.opts.ownProperties),(()=>{const r=e.subschema({keyword:a,schemaProp:s},u);e.mergeValidEvaluated(r,u)}),(()=>i.var(u,!0))),e.ok(u))}e.validatePropertyDeps=o,e.validateSchemaDeps=a,e.default=i}(rm)),rm}var nm,im={};function om(){if(nm)return im;nm=1,Object.defineProperty(im,"__esModule",{value:!0});const e=Df(),r=qf();return im.default={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:r})=>e._`{propertyName: ${r.propertyName}}`},code(t){const{gen:n,schema:i,data:o,it:a}=t;if((0,r.alwaysValidSchema)(a,i))return;const l=n.name("valid");n.forIn("key",o,(r=>{t.setParams({propertyName:r}),t.subschema({keyword:"propertyNames",data:r,dataTypes:["string"],propertyName:r,compositeRule:!0},l),n.if((0,e.not)(l),(()=>{t.error(!0),a.allErrors||n.break()}))})),t.ok(l)}},im}var am,lm={};function um(){if(am)return lm;am=1,Object.defineProperty(lm,"__esModule",{value:!0});const e=od(),r=Df(),t=zf(),n=qf(),i={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:e})=>r._`{additionalProperty: ${e.additionalProperty}}`},code(i){const{gen:o,schema:a,parentSchema:l,data:u,errsCount:s,it:c}=i;if(!s)throw new Error("ajv implementation error");const{allErrors:f,opts:d}=c;if(c.props=!0,"all"!==d.removeAdditional&&(0,n.alwaysValidSchema)(c,a))return;const h=(0,e.allSchemaProperties)(l.properties),m=(0,e.allSchemaProperties)(l.patternProperties);function p(e){o.code(r._`delete ${u}[${e}]`)}function v(e){if("all"===d.removeAdditional||d.removeAdditional&&!1===a)p(e);else{if(!1===a)return i.setParams({additionalProperty:e}),i.error(),void(f||o.break());if("object"==typeof a&&!(0,n.alwaysValidSchema)(c,a)){const t=o.name("valid");"failing"===d.removeAdditional?(y(e,t,!1),o.if((0,r.not)(t),(()=>{i.reset(),p(e)}))):(y(e,t),f||o.if((0,r.not)(t),(()=>o.break())))}}}function y(e,r,t){const o={keyword:"additionalProperties",dataProp:e,dataPropType:n.Type.Str};!1===t&&Object.assign(o,{compositeRule:!0,createErrors:!1,allErrors:!1}),i.subschema(o,r)}o.forIn("key",u,(t=>{h.length||m.length?o.if(function(t){let a;if(h.length>8){const r=(0,n.schemaRefOrVal)(c,l.properties,"properties");a=(0,e.isOwnProperty)(o,r,t)}else a=h.length?(0,r.or)(...h.map((e=>r._`${t} === ${e}`))):r.nil;return m.length&&(a=(0,r.or)(a,...m.map((n=>r._`${(0,e.usePattern)(i,n)}.test(${t})`)))),(0,r.not)(a)}(t),(()=>v(t))):v(t)})),i.ok(r._`${s} === ${t.default.errors}`)}};return lm.default=i,lm}var sm,cm={};function fm(){if(sm)return cm;sm=1,Object.defineProperty(cm,"__esModule",{value:!0});const e=wd(),r=od(),t=qf(),n=um(),i={keyword:"properties",type:"object",schemaType:"object",code(i){const{gen:o,schema:a,parentSchema:l,data:u,it:s}=i;"all"===s.opts.removeAdditional&&void 0===l.additionalProperties&&n.default.code(new e.KeywordCxt(s,n.default,"additionalProperties"));const c=(0,r.allSchemaProperties)(a);for(const e of c)s.definedProperties.add(e);s.opts.unevaluated&&c.length&&!0!==s.props&&(s.props=t.mergeEvaluated.props(o,(0,t.toHash)(c),s.props));const f=c.filter((e=>!(0,t.alwaysValidSchema)(s,a[e])));if(0===f.length)return;const d=o.name("valid");for(const e of f)h(e)?m(e):(o.if((0,r.propertyInData)(o,u,e,s.opts.ownProperties)),m(e),s.allErrors||o.else().var(d,!0),o.endIf()),i.it.definedProperties.add(e),i.ok(d);function h(e){return s.opts.useDefaults&&!s.compositeRule&&void 0!==a[e].default}function m(e){i.subschema({keyword:"properties",schemaProp:e,dataProp:e},d)}}};return cm.default=i,cm}var dm,hm={};function mm(){if(dm)return hm;dm=1,Object.defineProperty(hm,"__esModule",{value:!0});const e=od(),r=Df(),t=qf(),n=qf(),i={keyword:"patternProperties",type:"object",schemaType:"object",code(i){const{gen:o,schema:a,data:l,parentSchema:u,it:s}=i,{opts:c}=s,f=(0,e.allSchemaProperties)(a),d=f.filter((e=>(0,t.alwaysValidSchema)(s,a[e])));if(0===f.length||d.length===f.length&&(!s.opts.unevaluated||!0===s.props))return;const h=c.strictSchema&&!c.allowMatchingProperties&&u.properties,m=o.name("valid");!0===s.props||s.props instanceof r.Name||(s.props=(0,n.evaluatedPropsToName)(o,s.props));const{props:p}=s;function v(e){for(const r in h)new RegExp(e).test(r)&&(0,t.checkStrictMode)(s,`property ${r} matches pattern ${e} (use allowMatchingProperties)`)}function y(t){o.forIn("key",l,(a=>{o.if(r._`${(0,e.usePattern)(i,t)}.test(${a})`,(()=>{const e=d.includes(t);e||i.subschema({keyword:"patternProperties",schemaProp:t,dataProp:a,dataPropType:n.Type.Str},m),s.opts.unevaluated&&!0!==p?o.assign(r._`${p}[${a}]`,!0):e||s.allErrors||o.if((0,r.not)(m),(()=>o.break()))}))}))}!function(){for(const e of f)h&&v(e),s.allErrors?y(e):(o.var(m,!0),y(e),o.if(m))}()}};return hm.default=i,hm}var pm,vm={};function ym(){if(pm)return vm;pm=1,Object.defineProperty(vm,"__esModule",{value:!0});const e=qf();return vm.default={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(r){const{gen:t,schema:n,it:i}=r;if((0,e.alwaysValidSchema)(i,n))return void r.fail();const o=t.name("valid");r.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},o),r.failResult(o,(()=>r.reset()),(()=>r.error()))},error:{message:"must NOT be valid"}},vm}var bm,gm={};function wm(){return bm||(bm=1,Object.defineProperty(gm,"__esModule",{value:!0}),gm.default={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:od().validateUnion,error:{message:"must match a schema in anyOf"}}),gm}var km,$m={};function Sm(){if(km)return $m;km=1,Object.defineProperty($m,"__esModule",{value:!0});const e=Df(),r=qf();return $m.default={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:r})=>e._`{passingSchemas: ${r.passing}}`},code(t){const{gen:n,schema:i,parentSchema:o,it:a}=t;if(!Array.isArray(i))throw new Error("ajv implementation error");if(a.opts.discriminator&&o.discriminator)return;const l=i,u=n.let("valid",!1),s=n.let("passing",null),c=n.name("_valid");t.setParams({passing:s}),n.block((function(){l.forEach(((i,o)=>{let l;(0,r.alwaysValidSchema)(a,i)?n.var(c,!0):l=t.subschema({keyword:"oneOf",schemaProp:o,compositeRule:!0},c),o>0&&n.if(e._`${c} && ${u}`).assign(u,!1).assign(s,e._`[${s}, ${o}]`).else(),n.if(c,(()=>{n.assign(u,!0),n.assign(s,o),l&&t.mergeEvaluated(l,e.Name)}))}))})),t.result(u,(()=>t.reset()),(()=>t.error(!0)))}},$m}var Em,jm={};function xm(){if(Em)return jm;Em=1,Object.defineProperty(jm,"__esModule",{value:!0});const e=qf();return jm.default={keyword:"allOf",schemaType:"array",code(r){const{gen:t,schema:n,it:i}=r;if(!Array.isArray(n))throw new Error("ajv implementation error");const o=t.name("valid");n.forEach(((t,n)=>{if((0,e.alwaysValidSchema)(i,t))return;const a=r.subschema({keyword:"allOf",schemaProp:n},o);r.ok(o),r.mergeEvaluated(a)}))}},jm}var Om,Am={};function Cm(){if(Om)return Am;Om=1,Object.defineProperty(Am,"__esModule",{value:!0});const e=Df(),r=qf(),t={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:r})=>e.str`must match "${r.ifClause}" schema`,params:({params:r})=>e._`{failingKeyword: ${r.ifClause}}`},code(t){const{gen:i,parentSchema:o,it:a}=t;void 0===o.then&&void 0===o.else&&(0,r.checkStrictMode)(a,'"if" without "then" and "else" is ignored');const l=n(a,"then"),u=n(a,"else");if(!l&&!u)return;const s=i.let("valid",!0),c=i.name("_valid");if(function(){const e=t.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},c);t.mergeEvaluated(e)}(),t.reset(),l&&u){const e=i.let("ifClause");t.setParams({ifClause:e}),i.if(c,f("then",e),f("else",e))}else l?i.if(c,f("then")):i.if((0,e.not)(c),f("else"));function f(r,n){return()=>{const o=t.subschema({keyword:r},c);i.assign(s,c),t.mergeValidEvaluated(o,s),n?i.assign(n,e._`${r}`):t.setParams({ifClause:r})}}t.pass(s,(()=>t.error(!0)))}};function n(e,t){const n=e.schema[t];return void 0!==n&&!(0,r.alwaysValidSchema)(e,n)}return Am.default=t,Am}var _m,Im,Dm={};function Pm(){if(_m)return Dm;_m=1,Object.defineProperty(Dm,"__esModule",{value:!0});const e=qf(),r={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:r,parentSchema:t,it:n}){void 0===t.if&&(0,e.checkStrictMode)(n,`"${r}" without "if" is ignored`)}};return Dm.default=r,Dm}function Fm(){if(Im)return Rh;Im=1,Object.defineProperty(Rh,"__esModule",{value:!0});const e=Uh(),r=Gh(),t=Wh(),n=Jh(),i=Qh(),o=tm(),a=om(),l=um(),u=fm(),s=mm(),c=ym(),f=wm(),d=Sm(),h=xm(),m=Cm(),p=Pm();return Rh.default=function(v=!1){const y=[c.default,f.default,d.default,h.default,m.default,p.default,a.default,l.default,o.default,u.default,s.default];return v?y.push(r.default,n.default):y.push(e.default,t.default),y.push(i.default),y},Rh}var qm,Tm,Mm={},Nm={};function Rm(){if(qm)return Nm;qm=1,Object.defineProperty(Nm,"__esModule",{value:!0});const e=Df(),r={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:r})=>e.str`must match format "${r}"`,params:({schemaCode:r})=>e._`{format: ${r}}`},code(r,t){const{gen:n,data:i,$data:o,schema:a,schemaCode:l,it:u}=r,{opts:s,errSchemaPath:c,schemaEnv:f,self:d}=u;s.validateFormats&&(o?function(){const o=n.scopeValue("formats",{ref:d.formats,code:s.code.formats}),a=n.const("fDef",e._`${o}[${l}]`),u=n.let("fType"),c=n.let("format");n.if(e._`typeof ${a} == "object" && !(${a} instanceof RegExp)`,(()=>n.assign(u,e._`${a}.type || "string"`).assign(c,e._`${a}.validate`)),(()=>n.assign(u,e._`"string"`).assign(c,a))),r.fail$data((0,e.or)(!1===s.strictSchema?e.nil:e._`${l} && !${c}`,function(){const r=f.$async?e._`(${a}.async ? await ${c}(${i}) : ${c}(${i}))`:e._`${c}(${i})`,n=e._`(typeof ${c} == "function" ? ${r} : ${c}.test(${i}))`;return e._`${c} && ${c} !== true && ${u} === ${t} && !${n}`}()))}():function(){const o=d.formats[a];if(!o)return void function(){if(!1!==s.strictSchema)throw new Error(e());function e(){return`unknown format "${a}" ignored in schema at path "${c}"`}d.logger.warn(e())}();if(!0===o)return;const[l,u,h]=function(r){const t=r instanceof RegExp?(0,e.regexpCode)(r):s.code.formats?e._`${s.code.formats}${(0,e.getProperty)(a)}`:void 0,i=n.scopeValue("formats",{key:a,ref:r,code:t});return"object"!=typeof r||r instanceof RegExp?["string",r,i]:[r.type||"string",r.validate,e._`${i}.validate`]}(o);l===t&&r.pass(function(){if("object"==typeof o&&!(o instanceof RegExp)&&o.async){if(!f.$async)throw new Error("async format in sync schema");return e._`await ${h}(${i})`}return"function"==typeof u?e._`${h}(${i})`:e._`${h}.test(${i})`}())}())}};return Nm.default=r,Nm}function zm(){return Tm||(Tm=1,Object.defineProperty(Mm,"__esModule",{value:!0}),Mm.default=[Rm().default]),Mm}var Um,Lm,Bm={};function Vm(){return Um||(Um=1,Object.defineProperty(Bm,"__esModule",{value:!0}),Bm.contentVocabulary=Bm.metadataVocabulary=void 0,Bm.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],Bm.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]),Bm}function Hm(){if(Lm)return Vd;Lm=1,Object.defineProperty(Vd,"__esModule",{value:!0});const e=Xd(),r=Mh(),t=Fm(),n=zm(),i=Vm(),o=[e.default,r.default,(0,t.default)(),n.default,i.metadataVocabulary,i.contentVocabulary];return Vd.default=o,Vd}var Wm,Gm,Km={},Zm={};function Jm(){return Wm||(Wm=1,Object.defineProperty(Zm,"__esModule",{value:!0}),Zm.DiscrError=void 0,function(e){e.Tag="tag",e.Mapping="mapping"}(e||(Zm.DiscrError=e={}))),Zm;var e}function Ym(){if(Gm)return Km;Gm=1,Object.defineProperty(Km,"__esModule",{value:!0});const e=Df(),r=Jm(),t=Cd(),n=xd(),i=qf(),o={keyword:"discriminator",type:"object",schemaType:"object",error:{message:({params:{discrError:e,tagName:t}})=>e===r.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:r,tag:t,tagName:n}})=>e._`{error: ${r}, tag: ${n}, tagValue: ${t}}`},code(o){const{gen:a,data:l,schema:u,parentSchema:s,it:c}=o,{oneOf:f}=s;if(!c.opts.discriminator)throw new Error("discriminator: requires discriminator option");const d=u.propertyName;if("string"!=typeof d)throw new Error("discriminator: requires propertyName");if(u.mapping)throw new Error("discriminator: mapping is not supported");if(!f)throw new Error("discriminator: requires oneOf keyword");const h=a.let("valid",!1),m=a.const("tag",e._`${l}${(0,e.getProperty)(d)}`);function p(r){const t=a.name("valid"),n=o.subschema({keyword:"oneOf",schemaProp:r},t);return o.mergeEvaluated(n,e.Name),t}a.if(e._`typeof ${m} == "string"`,(()=>function(){const l=function(){var e;const r={},o=l(s);let a=!0;for(let r=0;r<f.length;r++){let s=f[r];if((null==s?void 0:s.$ref)&&!(0,i.schemaHasRulesButRef)(s,c.self.RULES)){const e=s.$ref;if(s=t.resolveRef.call(c.self,c.schemaEnv.root,c.baseId,e),s instanceof t.SchemaEnv&&(s=s.schema),void 0===s)throw new n.default(c.opts.uriResolver,c.baseId,e)}const h=null===(e=null==s?void 0:s.properties)||void 0===e?void 0:e[d];if("object"!=typeof h)throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${d}"`);a=a&&(o||l(s)),u(h,r)}if(!a)throw new Error(`discriminator: "${d}" must be required`);return r;function l({required:e}){return Array.isArray(e)&&e.includes(d)}function u(e,r){if(e.const)h(e.const,r);else{if(!e.enum)throw new Error(`discriminator: "properties/${d}" must have "const" or "enum"`);for(const t of e.enum)h(t,r)}}function h(e,t){if("string"!=typeof e||e in r)throw new Error(`discriminator: "${d}" values must be unique strings`);r[e]=t}}();a.if(!1);for(const r in l)a.elseIf(e._`${m} === ${r}`),a.assign(h,p(l[r]));a.else(),o.error(!1,{discrError:r.DiscrError.Mapping,tag:m,tagName:d}),a.endIf()}()),(()=>o.error(!1,{discrError:r.DiscrError.Tag,tag:m,tagName:d}))),o.ok(h)}};return Km.default=o,Km}var Xm,Qm={$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 ep(){return Xm||(Xm=1,function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.MissingRefError=r.ValidationError=r.CodeGen=r.Name=r.nil=r.stringify=r.str=r._=r.KeywordCxt=r.Ajv=void 0;const t=Ld(),n=Hm(),i=Ym(),o=Qm,a=["/properties"],l="http://json-schema.org/draft-07/schema";class u extends t.default{_addVocabularies(){super._addVocabularies(),n.default.forEach((e=>this.addVocabulary(e))),this.opts.discriminator&&this.addKeyword(i.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const e=this.opts.$data?this.$dataMetaSchema(o,a):o;this.addMetaSchema(e,l,!1),this.refs["http://json-schema.org/schema"]=l}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(l)?l:void 0)}}r.Ajv=u,e.exports=r=u,e.exports.Ajv=u,Object.defineProperty(r,"__esModule",{value:!0}),r.default=u;var s=wd();Object.defineProperty(r,"KeywordCxt",{enumerable:!0,get:function(){return s.KeywordCxt}});var c=Df();Object.defineProperty(r,"_",{enumerable:!0,get:function(){return c._}}),Object.defineProperty(r,"str",{enumerable:!0,get:function(){return c.str}}),Object.defineProperty(r,"stringify",{enumerable:!0,get:function(){return c.stringify}}),Object.defineProperty(r,"nil",{enumerable:!0,get:function(){return c.nil}}),Object.defineProperty(r,"Name",{enumerable:!0,get:function(){return c.Name}}),Object.defineProperty(r,"CodeGen",{enumerable:!0,get:function(){return c.CodeGen}});var f=Sd();Object.defineProperty(r,"ValidationError",{enumerable:!0,get:function(){return f.default}});var d=xd();Object.defineProperty(r,"MissingRefError",{enumerable:!0,get:function(){return d.default}})}(wf,wf.exports)),wf.exports}var rp,tp,np,ip=i(ep()),op={exports:{}},ap={},lp={},up=(np||(np=1,function(e,r){Object.defineProperty(r,"__esModule",{value:!0});const t=(rp||(rp=1,function(e){function r(e,r){return{validate:e,compare:r}}Object.defineProperty(e,"__esModule",{value:!0}),e.formatNames=e.fastFormats=e.fullFormats=void 0,e.fullFormats={date:r(i,o),time:r(l,u),"date-time":r((function(e){const r=e.split(s);return 2===r.length&&i(r[0])&&l(r[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 f.test(e)&&d.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!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 h.lastIndex=0,h.test(e)},int32:{type:"number",validate:function(e){return Number.isInteger(e)&&e<=p&&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:r(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,o),time:r(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,u),"date-time":r(/^\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 t=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,n=[0,31,28,31,30,31,30,31,31,30,31,30,31];function i(e){const r=t.exec(e);if(!r)return!1;const i=+r[2],o=+r[3];return i>=1&&i<=12&&o>=1&&o<=(2!==i||(a=+r[1])%4!=0||a%100==0&&a%400!=0?n[i]:29);var a}function o(e,r){if(e&&r)return e>r?1:e<r?-1:0}const a=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i;function l(e,r){const t=a.exec(e);if(!t)return!1;const n=+t[1],i=+t[2],o=+t[3];return(n<=23&&i<=59&&o<=59||23===n&&59===i&&60===o)&&(!r||""!==t[5])}function u(e,r){if(!e||!r)return;const t=a.exec(e),n=a.exec(r);return t&&n?(e=t[1]+t[2]+t[3]+(t[4]||""))>(r=n[1]+n[2]+n[3]+(n[4]||""))?1:e<r?-1:0:void 0}const s=/t|\s/i;function c(e,r){if(!e||!r)return;const[t,n]=e.split(s),[i,a]=r.split(s),l=o(t,i);return void 0!==l?l||u(n,a):void 0}const f=/\/|:/,d=/^(?:[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,h=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm,m=-2147483648,p=2**31-1;function v(){return!0}const y=/[^\\]\\Z/}(ap)),ap),n=(tp||(tp=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatLimitDefinition=void 0;const r=ep(),t=Df(),n=t.operators,i={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}},o={message:({keyword:e,schemaCode:r})=>t.str`should be ${i[e].okStr} ${r}`,params:({keyword:e,schemaCode:r})=>t._`{comparison: ${i[e].okStr}, limit: ${r}}`};e.formatLimitDefinition={keyword:Object.keys(i),type:"string",schemaType:"string",$data:!0,error:o,code(e){const{gen:n,data:o,schemaCode:a,keyword:l,it:u}=e,{opts:s,self:c}=u;if(!s.validateFormats)return;const f=new r.KeywordCxt(u,c.RULES.all.format.definition,"format");function d(e){return t._`${e}.compare(${o}, ${a}) ${i[l].fail} 0`}f.$data?function(){const r=n.scopeValue("formats",{ref:c.formats,code:s.code.formats}),i=n.const("fmt",t._`${r}[${f.schemaCode}]`);e.fail$data(t.or(t._`typeof ${i} != "object"`,t._`${i} instanceof RegExp`,t._`typeof ${i}.compare != "function"`,d(i)))}():function(){const r=f.schema,i=c.formats[r];if(!i||!0===i)return;if("object"!=typeof i||i instanceof RegExp||"function"!=typeof i.compare)throw new Error(`"${l}": format "${r}" does not define "compare" function`);const o=n.scopeValue("formats",{key:r,ref:i,code:s.code.formats?t._`${s.code.formats}${t.getProperty(r)}`:void 0});e.fail$data(d(o))}()},dependencies:["format"]},e.default=r=>(r.addKeyword(e.formatLimitDefinition),r)}(lp)),lp),i=Df(),o=new i.Name("fullFormats"),a=new i.Name("fastFormats"),l=(e,r={keywords:!0})=>{if(Array.isArray(r))return u(e,r,t.fullFormats,o),e;const[i,l]="fast"===r.mode?[t.fastFormats,a]:[t.fullFormats,o];return u(e,r.formats||t.formatNames,i,l),r.keywords&&n.default(e),e};function u(e,r,t,n){var o,a;null!==(o=(a=e.opts.code).formats)&&void 0!==o||(a.formats=i._`require("ajv-formats/dist/formats").${n}`);for(const n of r)e.addFormat(n,t[n])}l.get=(e,r="full")=>{const n=("fast"===r?t.fastFormats:t.fullFormats)[e];if(!n)throw new Error(`Unknown format "${e}"`);return n},e.exports=r=l,Object.defineProperty(r,"__esModule",{value:!0}),r.default=l}(op,op.exports)),op.exports),sp=i(up);const cp={allErrors:!0,multipleOfPrecision:8,strict:!1,verbose:!0,discriminator:!1},fp=/^(#?([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*\)))$/,dp=/^data:([a-z]+\/[a-z0-9-+.]+)?;(?:name=(.*);)?base64,(.*)$/;class hp{ajv;localizer;suppressDuplicateFiltering;lastSeenRootSchema;hasRegisteredRootSchema=!1;constructor(e,r){const{additionalMetaSchemas:t,customFormats:n,ajvOptionsOverrides:i,ajvFormatOptions:o,AjvClass:a,extenderFn:l,suppressDuplicateFiltering:u}=e;this.ajv=function(e,r,t={},n,i=ip,o){let a=new i({...cp,...t});return n?sp(a,n):!1!==n&&sp(a),a.addFormat("data-url",dp),a.addFormat("color",fp),a.addKeyword(Ye),Array.isArray(e)&&a.addMetaSchema(e),ke(r)&&Object.keys(r).forEach((e=>{a.addFormat(e,r[e])})),o&&(a=o(a)),a}(t,n,i,o,a,l),this.localizer=r,this.suppressDuplicateFiltering=u}reset(){this.ajv.removeSchema(),this.lastSeenRootSchema=void 0,this.hasRegisteredRootSchema=!1}rawValidation(e,r){let t,n,i;try{e[De]&&(n=this.ajv.getSchema(e[De])),void 0===n&&(n=this.ajv.compile(e)),n(r)}catch(r){t=r,void 0===n&&this.ajv.removeSchema(void 0!==e[De]?e[De]:e)}return n&&("function"==typeof this.localizer&&((n.errors??[]).forEach((e=>{["missingProperty","property"].forEach((r=>{e.params?.[r]&&(e.params[r]=`'${e.params[r]}'`)})),e.params?.deps&&(e.params.deps=e.params.deps.split(", ").map((e=>`'${e}'`)).join(", "))})),this.localizer(n.errors),(n.errors??[]).forEach((e=>{["missingProperty","property"].forEach((r=>{e.params?.[r]&&(e.params[r]=e.params[r].slice(1,-1))})),e.params?.deps&&(e.params.deps=e.params.deps.split(", ").map((e=>e.slice(1,-1))).join(", "))}))),i=n.errors||void 0,n.errors=null),{errors:i,validationError:t}}validateFormData(e,r,t,n,i){return bf(this,this.rawValidation(r,e),e,r,t,n,i,this.suppressDuplicateFiltering)}handleSchemaUpdate(e){if(this.lastSeenRootSchema===e&&this.hasRegisteredRootSchema)return;const r=e[De]??Xe;void 0===this.ajv.getSchema(r)?this.ajv.addSchema(e,r):Fr(e,this.ajv.getSchema(r)?.schema)||(this.ajv.removeSchema(r),this.ajv.addSchema(e,r)),this.lastSeenRootSchema=e,this.hasRegisteredRootSchema=!0}isValid(e,r,t){let n,i=!1;try{this.handleSchemaUpdate(t);const o=ho(e);let a;return n=o[De]??function(e){return Ai(Ci(e))}(o),a=this.ajv.getSchema(n),void 0===a&&(a=this.ajv.addSchema(o,n).getSchema(n)||this.ajv.compile(o)),i=!0,a(r)}catch(e){return console.warn("Error encountered compiling schema:",e),i||void 0===n||this.ajv.removeSchema(n),!1}}}function mp(e={},r){return new hp(e,r)}function pp(e={}){return gp(e.type,"object")}function vp(e){return gp(e.type,"array")}function yp(e){return gp(e.type,"number")}function bp(e){return gp(e.type,"integer")}function gp(e,r){return Array.isArray(e)?e.includes(r):e===r}mp();const wp=e=>{let r=e.classNames;const t=function(e){var r;const t=null===(r=e.lime)||void 0===r?void 0:r.layout,n=null==t?void 0:t.colSpan;return!n&&pp(e)?"all":n}(e.schema),n=function(e){var r;const t=null===(r=e.lime)||void 0===r?void 0:r.layout;return null==t?void 0:t.rowSpan}(e.schema);let i;return t&&(r+=` limel-form-layout-colspan--${t}`),n&&(i={gridRow:`span ${n}`,minHeight:`calc(var(--min-height-of-one-row) * ${n})`}),ie.createElement("div",{className:r,style:i},e.children)};function kp(e){if(e)return ie.createElement("h1",{className:"mdc-typography mdc-typography--headline1"},e)}function $p(e){if(e)return ie.createElement("limel-markdown",{value:e})}function Sp(e,r,t){if(!e)return null;if(Array.isArray(e)&&pp(r.items))return Sp(e[0],r,t);if(Array.isArray(e)||"object"!=typeof e)return function(e,r){var t;return vp(r)&&r.items.anyOf?r.items.anyOf.filter((r=>e.includes(r.const))).map((e=>e.title)).join(", "):r.oneOf?(null===(t=r.oneOf.find((r=>e===r.const)))||void 0===t?void 0:t.title)||`${e} is an invalid option`:e}(e,r);const n=function(e,r){let t=e;if(vp(e)&&(t=e.items),t.$ref){const e=t.$ref.split("/").slice(1).join(".");t=l(r,e)}return t}(r,t);e=function(e,r){if(!r||u(r))return e;const t={};for(const n of Object.keys(r))t[n]=e[n];return t}(e,n.properties);const i=function(e,r){return[["title",e.title],["name",e.name],Ep(e,r),...Object.entries(e)].find((e=>{const r=e[1];return!!r&&"boolean"!=typeof r}))}(e,n);if(!i)return null;if(!n.properties)return null;const[o,a]=i;return Sp(a,n.properties[o],t)}function Ep(e,r){if(!("required"in r))return[null,null];const t=Object.keys(e).find((e=>r.required.includes(e)));return t?[t,e[t]]:[null,null]}function jp(e){return!!e&&Object.entries(e).some((([e,r])=>"__errors"===e?Array.isArray(r)&&r.length>0:jp(r)))}
8
+ /**!
9
+ * Sortable 1.15.7
10
+ * @author RubaXa <trash@rubaxa.org>
11
+ * @author owenm <owen23355@gmail.com>
12
+ * @license MIT
13
+ */function xp(e,r,t){return(r=function(e){var r=function(e,r){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,r);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof r?r:r+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function Op(){return Op=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)({}).hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},Op.apply(null,arguments)}function Ap(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function Cp(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?Ap(Object(t),!0).forEach((function(r){xp(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Ap(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function _p(e){return _p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_p(e)}function Ip(e){if("undefined"!=typeof window&&window.navigator)return!!navigator.userAgent.match(e)}var Dp=Ip(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Pp=Ip(/Edge/i),Fp=Ip(/firefox/i),qp=Ip(/safari/i)&&!Ip(/chrome/i)&&!Ip(/android/i),Tp=Ip(/iP(ad|od|hone)/i),Mp=Ip(/chrome/i)&&Ip(/android/i),Np={capture:!1,passive:!1};function Rp(e,r,t){e.addEventListener(r,t,!Dp&&Np)}function zp(e,r,t){e.removeEventListener(r,t,!Dp&&Np)}function Up(e,r){if(r){if(">"===r[0]&&(r=r.substring(1)),e)try{if(e.matches)return e.matches(r);if(e.msMatchesSelector)return e.msMatchesSelector(r);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(r)}catch(e){return!1}return!1}}function Lp(e){return e.host&&e!==document&&e.host.nodeType&&e.host!==e?e.host:e.parentNode}function Bp(e,r,t,n){if(e){t=t||document;do{if(null!=r&&(">"===r[0]?e.parentNode===t&&Up(e,r):Up(e,r))||n&&e===t)return e;if(e===t)break}while(e=Lp(e))}return null}var Vp,Hp=/\s+/g;function Wp(e,r,t){if(e&&r)if(e.classList)e.classList[t?"add":"remove"](r);else{var n=(" "+e.className+" ").replace(Hp," ").replace(" "+r+" "," ");e.className=(n+(t?" "+r:"")).replace(Hp," ")}}function Gp(e,r,t){var n=e&&e.style;if(n){if(void 0===t)return document.defaultView&&document.defaultView.getComputedStyle?t=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(t=e.currentStyle),void 0===r?t:t[r];r in n||-1!==r.indexOf("webkit")||(r="-webkit-"+r),n[r]=t+("string"==typeof t?"":"px")}}function Kp(e,r){var t="";if("string"==typeof e)t=e;else do{var n=Gp(e,"transform");n&&"none"!==n&&(t=n+" "+t)}while(!r&&(e=e.parentNode));var i=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return i&&new i(t)}function Zp(e,r,t){if(e){var n=e.getElementsByTagName(r),i=0,o=n.length;if(t)for(;i<o;i++)t(n[i],i);return n}return[]}function Jp(){return document.scrollingElement||document.documentElement}function Yp(e,r,t,n,i){if(e.getBoundingClientRect||e===window){var o,a,l,u,s,c,f;if(e!==window&&e.parentNode&&e!==Jp()?(a=(o=e.getBoundingClientRect()).top,l=o.left,u=o.bottom,s=o.right,c=o.height,f=o.width):(a=0,l=0,u=window.innerHeight,s=window.innerWidth,c=window.innerHeight,f=window.innerWidth),(r||t)&&e!==window&&(i=i||e.parentNode,!Dp))do{if(i&&i.getBoundingClientRect&&("none"!==Gp(i,"transform")||t&&"static"!==Gp(i,"position"))){var d=i.getBoundingClientRect();a-=d.top+parseInt(Gp(i,"border-top-width")),l-=d.left+parseInt(Gp(i,"border-left-width")),u=a+o.height,s=l+o.width;break}}while(i=i.parentNode);if(n&&e!==window){var h=Kp(i||e),m=h&&h.a,p=h&&h.d;h&&(u=(a/=p)+(c/=p),s=(l/=m)+(f/=m))}return{top:a,left:l,bottom:u,right:s,width:f,height:c}}}function Xp(e,r,t){for(var n=nv(e,!0),i=Yp(e)[r];n;){if(!(i>=Yp(n)[t]))return n;if(n===Jp())break;n=nv(n,!1)}return!1}function Qp(e,r,t,n){for(var i=0,o=0,a=e.children;o<a.length;){if("none"!==a[o].style.display&&a[o]!==ay.ghost&&(n||a[o]!==ay.dragged)&&Bp(a[o],t.draggable,e,!1)){if(i===r)return a[o];i++}o++}return null}function ev(e,r){for(var t=e.lastElementChild;t&&(t===ay.ghost||"none"===Gp(t,"display")||r&&!Up(t,r));)t=t.previousElementSibling;return t||null}function rv(e,r){var t=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)"TEMPLATE"===e.nodeName.toUpperCase()||e===ay.clone||r&&!Up(e,r)||t++;return t}function tv(e){var r=0,t=0,n=Jp();if(e)do{var i=Kp(e);r+=e.scrollLeft*i.a,t+=e.scrollTop*i.d}while(e!==n&&(e=e.parentNode));return[r,t]}function nv(e,r){if(!e||!e.getBoundingClientRect)return Jp();var t=e,n=!1;do{if(t.clientWidth<t.scrollWidth||t.clientHeight<t.scrollHeight){var i=Gp(t);if(t.clientWidth<t.scrollWidth&&("auto"==i.overflowX||"scroll"==i.overflowX)||t.clientHeight<t.scrollHeight&&("auto"==i.overflowY||"scroll"==i.overflowY)){if(!t.getBoundingClientRect||t===document.body)return Jp();if(n||r)return t;n=!0}}}while(t=t.parentNode);return Jp()}function iv(e,r){return Math.round(e.top)===Math.round(r.top)&&Math.round(e.left)===Math.round(r.left)&&Math.round(e.height)===Math.round(r.height)&&Math.round(e.width)===Math.round(r.width)}function ov(e,r){return function(){if(!Vp){var t=arguments;1===t.length?e.call(this,t[0]):e.apply(this,t),Vp=setTimeout((function(){Vp=void 0}),r)}}}function av(e,r,t){e.scrollLeft+=r,e.scrollTop+=t}function lv(e){var r=window.Polymer,t=window.jQuery||window.Zepto;return r&&r.dom?r.dom(e).cloneNode(!0):t?t(e).clone(!0)[0]:e.cloneNode(!0)}function uv(e,r,t){var n={};return Array.from(e.children).forEach((function(i){var o,a,l,u;if(Bp(i,r.draggable,e,!1)&&!i.animated&&i!==t){var s=Yp(i);n.left=Math.min(null!==(o=n.left)&&void 0!==o?o:1/0,s.left),n.top=Math.min(null!==(a=n.top)&&void 0!==a?a:1/0,s.top),n.right=Math.max(null!==(l=n.right)&&void 0!==l?l:-1/0,s.right),n.bottom=Math.max(null!==(u=n.bottom)&&void 0!==u?u:-1/0,s.bottom)}})),n.width=n.right-n.left,n.height=n.bottom-n.top,n.x=n.left,n.y=n.top,n}var sv="Sortable"+(new Date).getTime();var cv=[],fv={initializeByDefault:!0},dv={mount:function(e){for(var r in fv)fv.hasOwnProperty(r)&&!(r in e)&&(e[r]=fv[r]);cv.forEach((function(r){if(r.pluginName===e.pluginName)throw"Sortable: Cannot mount plugin ".concat(e.pluginName," more than once")})),cv.push(e)},pluginEvent:function(e,r,t){var n=this;this.eventCanceled=!1,t.cancel=function(){n.eventCanceled=!0};var i=e+"Global";cv.forEach((function(n){r[n.pluginName]&&(r[n.pluginName][i]&&r[n.pluginName][i](Cp({sortable:r},t)),r.options[n.pluginName]&&r[n.pluginName][e]&&r[n.pluginName][e](Cp({sortable:r},t)))}))},initializePlugins:function(e,r,t){for(var n in cv.forEach((function(n){var i=n.pluginName;if(e.options[i]||n.initializeByDefault){var o=new n(e,r,e.options);o.sortable=e,o.options=e.options,e[i]=o,Op(t,o.defaults)}})),e.options)if(e.options.hasOwnProperty(n)){var i=this.modifyOption(e,n,e.options[n]);void 0!==i&&(e.options[n]=i)}},getEventProperties:function(e,r){var t={};return cv.forEach((function(n){"function"==typeof n.eventProperties&&Op(t,n.eventProperties.call(r[n.pluginName],e))})),t},modifyOption:function(e,r,t){var n;return cv.forEach((function(i){e[i.pluginName]&&i.optionListeners&&"function"==typeof i.optionListeners[r]&&(n=i.optionListeners[r].call(e[i.pluginName],t))})),n}},hv=["evt"],mv=function(e,r){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=t.evt,i=function(e,r){if(null==e)return{};var t,n,i=function(e,r){if(null==e)return{};var t={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==r.indexOf(n))continue;t[n]=e[n]}return t}(e,r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)-1===r.indexOf(t=o[n])&&{}.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}(t,hv);dv.pluginEvent.bind(ay)(e,r,Cp({dragEl:vv,parentEl:yv,ghostEl:bv,rootEl:gv,nextEl:wv,lastDownEl:kv,cloneEl:$v,cloneHidden:Sv,dragStarted:Tv,putSortable:Cv,activeSortable:ay.active,originalEvent:n,oldIndex:Ev,oldDraggableIndex:xv,newIndex:jv,newDraggableIndex:Ov,hideGhostForTarget:ty,unhideGhostForTarget:ny,cloneNowHidden:function(){Sv=!0},cloneNowShown:function(){Sv=!1},dispatchSortableEvent:function(e){pv({sortable:r,name:e,originalEvent:n})}},i))};function pv(e){!function(e){var r=e.sortable,t=e.rootEl,n=e.name,i=e.targetEl,o=e.cloneEl,a=e.toEl,l=e.fromEl,u=e.oldIndex,s=e.newIndex,c=e.oldDraggableIndex,f=e.newDraggableIndex,d=e.originalEvent,h=e.putSortable,m=e.extraEventProperties;if(r=r||t&&t[sv]){var p,v=r.options,y="on"+n.charAt(0).toUpperCase()+n.substr(1);!window.CustomEvent||Dp||Pp?(p=document.createEvent("Event")).initEvent(n,!0,!0):p=new CustomEvent(n,{bubbles:!0,cancelable:!0}),p.to=a||t,p.from=l||t,p.item=i||t,p.clone=o,p.oldIndex=u,p.newIndex=s,p.oldDraggableIndex=c,p.newDraggableIndex=f,p.originalEvent=d,p.pullMode=h?h.lastPutMode:void 0;var b=Cp(Cp({},m),dv.getEventProperties(n,r));for(var g in b)p[g]=b[g];t&&t.dispatchEvent(p),v[y]&&v[y].call(r,p)}}(Cp({putSortable:Cv,cloneEl:$v,targetEl:vv,rootEl:gv,oldIndex:Ev,oldDraggableIndex:xv,newIndex:jv,newDraggableIndex:Ov},e))}var vv,yv,bv,gv,wv,kv,$v,Sv,Ev,jv,xv,Ov,Av,Cv,_v,Iv,Dv,Pv,Fv,qv,Tv,Mv,Nv,Rv,zv,Uv=!1,Lv=!1,Bv=[],Vv=!1,Hv=!1,Wv=[],Gv=!1,Kv=[],Zv="undefined"!=typeof document,Jv=Tp,Yv=Pp||Dp?"cssFloat":"float",Xv=Zv&&!Mp&&!Tp&&"draggable"in document.createElement("div"),Qv=function(){if(Zv){if(Dp)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto","auto"===e.style.pointerEvents}}(),ey=function(e,r){var t=Gp(e),n=parseInt(t.width)-parseInt(t.paddingLeft)-parseInt(t.paddingRight)-parseInt(t.borderLeftWidth)-parseInt(t.borderRightWidth),i=Qp(e,0,r),o=Qp(e,1,r),a=i&&Gp(i),l=o&&Gp(o),u=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+Yp(i).width,s=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+Yp(o).width;return"flex"===t.display?"column"===t.flexDirection||"column-reverse"===t.flexDirection?"vertical":"horizontal":"grid"===t.display?t.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal":i&&a.float&&"none"!==a.float?!o||"both"!==l.clear&&l.clear!==("left"===a.float?"left":"right")?"horizontal":"vertical":i&&("block"===a.display||"flex"===a.display||"table"===a.display||"grid"===a.display||u>=n&&"none"===t[Yv]||o&&"none"===t[Yv]&&u+s>n)?"vertical":"horizontal"},ry=function(e){function r(e,t){return function(n,i,o,a){if(null==e&&(t||n.options.group.name&&i.options.group.name&&n.options.group.name===i.options.group.name))return!0;if(null==e||!1===e)return!1;if(t&&"clone"===e)return e;if("function"==typeof e)return r(e(n,i,o,a),t)(n,i,o,a);var l=(t?n:i).options.group.name;return!0===e||"string"==typeof e&&e===l||e.join&&e.indexOf(l)>-1}}var t={},n=e.group;n&&"object"==_p(n)||(n={name:n}),t.name=n.name,t.checkPull=r(n.pull,!0),t.checkPut=r(n.put),t.revertClone=n.revertClone,e.group=t},ty=function(){!Qv&&bv&&Gp(bv,"display","none")},ny=function(){!Qv&&bv&&Gp(bv,"display","")};Zv&&!Mp&&document.addEventListener("click",(function(e){if(Lv)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),Lv=!1,!1}),!0);var iy=function(e){if(vv){var r=(i=(e=e.touches?e.touches[0]:e).clientX,o=e.clientY,Bv.some((function(e){var r=e[sv].options.emptyInsertThreshold;if(r&&!ev(e)){var t=Yp(e);return i>=t.left-r&&i<=t.right+r&&o>=t.top-r&&o<=t.bottom+r?a=e:void 0}})),a);if(r){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.target=t.rootEl=r,t.preventDefault=void 0,t.stopPropagation=void 0,r[sv]._onDragOver(t)}}var i,o,a},oy=function(e){vv&&vv.parentNode[sv]._isOutsideThisEl(e.target)};function ay(e,r){if(!e||!e.nodeType||1!==e.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=r=Op({},r),e[sv]=this;var t,n,i={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return ey(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(e,r){e.setData("Text",r.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==ay.supportPointer&&"PointerEvent"in window&&(!qp||Tp),emptyInsertThreshold:5};for(var o in dv.initializePlugins(this,e,i),i)!(o in r)&&(r[o]=i[o]);for(var a in ry(r),this)"_"===a.charAt(0)&&"function"==typeof this[a]&&(this[a]=this[a].bind(this));this.nativeDraggable=!r.forceFallback&&Xv,this.nativeDraggable&&(this.options.touchStartThreshold=1),r.supportPointer?Rp(e,"pointerdown",this._onTapStart):(Rp(e,"mousedown",this._onTapStart),Rp(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(Rp(e,"dragover",this),Rp(e,"dragenter",this)),Bv.push(this.el),r.store&&r.store.get&&this.sort(r.store.get(this)||[]),Op(this,(n=[],{captureAnimationState:function(){n=[],this.options.animation&&[].slice.call(this.el.children).forEach((function(e){if("none"!==Gp(e,"display")&&e!==ay.ghost){n.push({target:e,rect:Yp(e)});var r=Cp({},n[n.length-1].rect);if(e.thisAnimationDuration){var t=Kp(e,!0);t&&(r.top-=t.f,r.left-=t.e)}e.fromRect=r}}))},addAnimationState:function(e){n.push(e)},removeAnimationState:function(e){n.splice(function(e,r){for(var t in e)if(e.hasOwnProperty(t))for(var n in r)if(r.hasOwnProperty(n)&&r[n]===e[t][n])return Number(t);return-1}(n,{target:e}),1)},animateAll:function(e){var r=this;if(!this.options.animation)return clearTimeout(t),void("function"==typeof e&&e());var i=!1,o=0;n.forEach((function(e){var t=0,n=e.target,a=n.fromRect,l=Yp(n),u=n.prevFromRect,s=n.prevToRect,c=e.rect,f=Kp(n,!0);f&&(l.top-=f.f,l.left-=f.e),n.toRect=l,n.thisAnimationDuration&&iv(u,l)&&!iv(a,l)&&(c.top-l.top)/(c.left-l.left)==(a.top-l.top)/(a.left-l.left)&&(t=function(e,r,t,n){return Math.sqrt(Math.pow(r.top-e.top,2)+Math.pow(r.left-e.left,2))/Math.sqrt(Math.pow(r.top-t.top,2)+Math.pow(r.left-t.left,2))*n.animation}(c,u,s,r.options)),iv(l,a)||(n.prevFromRect=a,n.prevToRect=l,t||(t=r.options.animation),r.animate(n,c,l,t)),t&&(i=!0,o=Math.max(o,t),clearTimeout(n.animationResetTimer),n.animationResetTimer=setTimeout((function(){n.animationTime=0,n.prevFromRect=null,n.fromRect=null,n.prevToRect=null,n.thisAnimationDuration=null}),t),n.thisAnimationDuration=t)})),clearTimeout(t),i?t=setTimeout((function(){"function"==typeof e&&e()}),o):"function"==typeof e&&e(),n=[]},animate:function(e,r,t,n){if(n){Gp(e,"transition",""),Gp(e,"transform","");var i=Kp(this.el),o=(r.left-t.left)/(i&&i.a||1),a=(r.top-t.top)/(i&&i.d||1);e.animatingX=!!o,e.animatingY=!!a,Gp(e,"transform","translate3d("+o+"px,"+a+"px,0)"),this.forRepaintDummy=function(e){return e.offsetWidth}(e),Gp(e,"transition","transform "+n+"ms"+(this.options.easing?" "+this.options.easing:"")),Gp(e,"transform","translate3d(0,0,0)"),"number"==typeof e.animated&&clearTimeout(e.animated),e.animated=setTimeout((function(){Gp(e,"transition",""),Gp(e,"transform",""),e.animated=!1,e.animatingX=!1,e.animatingY=!1}),n)}}}))}function ly(e,r,t,n,i,o,a,l){var u,s,c=e[sv],f=c.options.onMove;return!window.CustomEvent||Dp||Pp?(u=document.createEvent("Event")).initEvent("move",!0,!0):u=new CustomEvent("move",{bubbles:!0,cancelable:!0}),u.to=r,u.from=e,u.dragged=t,u.draggedRect=n,u.related=i||r,u.relatedRect=o||Yp(r),u.willInsertAfter=l,u.originalEvent=a,e.dispatchEvent(u),f&&(s=f.call(c,u,a)),s}function uy(e){e.draggable=!1}function sy(){Gv=!1}function cy(e){for(var r=e.tagName+e.className+e.src+e.href+e.textContent,t=r.length,n=0;t--;)n+=r.charCodeAt(t);return n.toString(36)}function fy(e){return setTimeout(e,0)}function dy(e){return clearTimeout(e)}ay.prototype={constructor:ay,_isOutsideThisEl:function(e){this.el.contains(e)||e===this.el||(Mv=null)},_getDirection:function(e,r){return"function"==typeof this.options.direction?this.options.direction.call(this,e,r,vv):this.options.direction},_onTapStart:function(e){if(e.cancelable){var r=this,t=this.el,n=this.options,i=n.preventOnFilter,o=e.type,a=e.touches&&e.touches[0]||e.pointerType&&"touch"===e.pointerType&&e,l=(a||e).target,u=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||l,s=n.filter;if(function(e){Kv.length=0;for(var r=e.getElementsByTagName("input"),t=r.length;t--;){var n=r[t];n.checked&&Kv.push(n)}}(t),!vv&&!(/mousedown|pointerdown/.test(o)&&0!==e.button||n.disabled)&&!u.isContentEditable&&(this.nativeDraggable||!qp||!l||"SELECT"!==l.tagName.toUpperCase())&&!((l=Bp(l,n.draggable,t,!1))&&l.animated||kv===l)){if(Ev=rv(l),xv=rv(l,n.draggable),"function"==typeof s){if(s.call(this,e,l,this))return pv({sortable:r,rootEl:u,name:"filter",targetEl:l,toEl:t,fromEl:t}),mv("filter",r,{evt:e}),void(i&&e.preventDefault())}else if(s&&(s=s.split(",").some((function(n){if(n=Bp(u,n.trim(),t,!1))return pv({sortable:r,rootEl:n,name:"filter",targetEl:l,fromEl:t,toEl:t}),mv("filter",r,{evt:e}),!0}))))return void(i&&e.preventDefault());n.handle&&!Bp(u,n.handle,t,!1)||this._prepareDragStart(e,a,l)}}},_prepareDragStart:function(e,r,t){var n,i=this,o=i.el,a=i.options,l=o.ownerDocument;if(t&&!vv&&t.parentNode===o){var u=Yp(t);if(gv=o,yv=(vv=t).parentNode,wv=vv.nextSibling,kv=t,Av=a.group,ay.dragged=vv,Fv=(_v={target:vv,clientX:(r||e).clientX,clientY:(r||e).clientY}).clientX-u.left,qv=_v.clientY-u.top,this._lastX=(r||e).clientX,this._lastY=(r||e).clientY,vv.style["will-change"]="all",n=function(){mv("delayEnded",i,{evt:e}),ay.eventCanceled?i._onDrop():(i._disableDelayedDragEvents(),!Fp&&i.nativeDraggable&&(vv.draggable=!0),i._triggerDragStart(e,r),pv({sortable:i,name:"choose",originalEvent:e}),Wp(vv,a.chosenClass,!0))},a.ignore.split(",").forEach((function(e){Zp(vv,e.trim(),uy)})),Rp(l,"dragover",iy),Rp(l,"mousemove",iy),Rp(l,"touchmove",iy),a.supportPointer?(Rp(l,"pointerup",i._onDrop),!this.nativeDraggable&&Rp(l,"pointercancel",i._onDrop)):(Rp(l,"mouseup",i._onDrop),Rp(l,"touchend",i._onDrop),Rp(l,"touchcancel",i._onDrop)),Fp&&this.nativeDraggable&&(this.options.touchStartThreshold=4,vv.draggable=!0),mv("delayStart",this,{evt:e}),!a.delay||a.delayOnTouchOnly&&!r||this.nativeDraggable&&(Pp||Dp))n();else{if(ay.eventCanceled)return void this._onDrop();a.supportPointer?(Rp(l,"pointerup",i._disableDelayedDrag),Rp(l,"pointercancel",i._disableDelayedDrag)):(Rp(l,"mouseup",i._disableDelayedDrag),Rp(l,"touchend",i._disableDelayedDrag),Rp(l,"touchcancel",i._disableDelayedDrag)),Rp(l,"mousemove",i._delayedDragTouchMoveHandler),Rp(l,"touchmove",i._delayedDragTouchMoveHandler),a.supportPointer&&Rp(l,"pointermove",i._delayedDragTouchMoveHandler),i._dragStartTimer=setTimeout(n,a.delay)}}},_delayedDragTouchMoveHandler:function(e){var r=e.touches?e.touches[0]:e;Math.max(Math.abs(r.clientX-this._lastX),Math.abs(r.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){vv&&uy(vv),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;zp(e,"mouseup",this._disableDelayedDrag),zp(e,"touchend",this._disableDelayedDrag),zp(e,"touchcancel",this._disableDelayedDrag),zp(e,"pointerup",this._disableDelayedDrag),zp(e,"pointercancel",this._disableDelayedDrag),zp(e,"mousemove",this._delayedDragTouchMoveHandler),zp(e,"touchmove",this._delayedDragTouchMoveHandler),zp(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,r){r=r||"touch"==e.pointerType&&e,!this.nativeDraggable||r?Rp(document,this.options.supportPointer?"pointermove":r?"touchmove":"mousemove",this._onTouchMove):(Rp(vv,"dragend",this),Rp(gv,"dragstart",this._onDragStart));try{document.selection?fy((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(e){}},_dragStarted:function(e,r){if(Uv=!1,gv&&vv){mv("dragStarted",this,{evt:r}),this.nativeDraggable&&Rp(document,"dragover",oy);var t=this.options;!e&&Wp(vv,t.dragClass,!1),Wp(vv,t.ghostClass,!0),ay.active=this,e&&this._appendGhost(),pv({sortable:this,name:"start",originalEvent:r})}else this._nulling()},_emulateDragOver:function(){if(Iv){this._lastX=Iv.clientX,this._lastY=Iv.clientY,ty();for(var e=document.elementFromPoint(Iv.clientX,Iv.clientY),r=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(Iv.clientX,Iv.clientY))!==r;)r=e;if(vv.parentNode[sv]._isOutsideThisEl(e),r)do{if(r[sv]&&r[sv]._onDragOver({clientX:Iv.clientX,clientY:Iv.clientY,target:e,rootEl:r})&&!this.options.dragoverBubble)break;e=r}while(r=Lp(r));ny()}},_onTouchMove:function(e){if(_v){var r=this.options,t=r.fallbackTolerance,n=r.fallbackOffset,i=e.touches?e.touches[0]:e,o=bv&&Kp(bv,!0),a=bv&&o&&o.a,l=bv&&o&&o.d,u=Jv&&zv&&tv(zv),s=(i.clientX-_v.clientX+n.x)/(a||1)+(u?u[0]-Wv[0]:0)/(a||1),c=(i.clientY-_v.clientY+n.y)/(l||1)+(u?u[1]-Wv[1]:0)/(l||1);if(!ay.active&&!Uv){if(t&&Math.max(Math.abs(i.clientX-this._lastX),Math.abs(i.clientY-this._lastY))<t)return;this._onDragStart(e,!0)}if(bv){o?(o.e+=s-(Dv||0),o.f+=c-(Pv||0)):o={a:1,b:0,c:0,d:1,e:s,f:c};var f="matrix(".concat(o.a,",").concat(o.b,",").concat(o.c,",").concat(o.d,",").concat(o.e,",").concat(o.f,")");Gp(bv,"webkitTransform",f),Gp(bv,"mozTransform",f),Gp(bv,"msTransform",f),Gp(bv,"transform",f),Dv=s,Pv=c,Iv=i}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!bv){var e=this.options.fallbackOnBody?document.body:gv,r=Yp(vv,!0,Jv,!0,e),t=this.options;if(Jv){for(zv=e;"static"===Gp(zv,"position")&&"none"===Gp(zv,"transform")&&zv!==document;)zv=zv.parentNode;zv!==document.body&&zv!==document.documentElement?(zv===document&&(zv=Jp()),r.top+=zv.scrollTop,r.left+=zv.scrollLeft):zv=Jp(),Wv=tv(zv)}Wp(bv=vv.cloneNode(!0),t.ghostClass,!1),Wp(bv,t.fallbackClass,!0),Wp(bv,t.dragClass,!0),Gp(bv,"transition",""),Gp(bv,"transform",""),Gp(bv,"box-sizing","border-box"),Gp(bv,"margin",0),Gp(bv,"top",r.top),Gp(bv,"left",r.left),Gp(bv,"width",r.width),Gp(bv,"height",r.height),Gp(bv,"opacity","0.8"),Gp(bv,"position",Jv?"absolute":"fixed"),Gp(bv,"zIndex","100000"),Gp(bv,"pointerEvents","none"),ay.ghost=bv,e.appendChild(bv),Gp(bv,"transform-origin",Fv/parseInt(bv.style.width)*100+"% "+qv/parseInt(bv.style.height)*100+"%")}},_onDragStart:function(e,r){var t=this,n=e.dataTransfer,i=t.options;mv("dragStart",this,{evt:e}),ay.eventCanceled?this._onDrop():(mv("setupClone",this),ay.eventCanceled||(($v=lv(vv)).removeAttribute("id"),$v.draggable=!1,$v.style["will-change"]="",this._hideClone(),Wp($v,this.options.chosenClass,!1),ay.clone=$v),t.cloneId=fy((function(){mv("clone",t),ay.eventCanceled||(t.options.removeCloneOnHide||gv.insertBefore($v,vv),t._hideClone(),pv({sortable:t,name:"clone"}))})),!r&&Wp(vv,i.dragClass,!0),r?(Lv=!0,t._loopId=setInterval(t._emulateDragOver,50)):(zp(document,"mouseup",t._onDrop),zp(document,"touchend",t._onDrop),zp(document,"touchcancel",t._onDrop),n&&(n.effectAllowed="move",i.setData&&i.setData.call(t,n,vv)),Rp(document,"drop",t),Gp(vv,"transform","translateZ(0)")),Uv=!0,t._dragStartId=fy(t._dragStarted.bind(t,r,e)),Rp(document,"selectstart",t),Tv=!0,window.getSelection().removeAllRanges(),qp&&Gp(document.body,"user-select","none"))},_onDragOver:function(e){var r,t,n,i,o=this.el,a=e.target,l=this.options,u=l.group,s=ay.active,c=Av===u,f=l.sort,d=Cv||s,h=this,m=!1;if(!Gv){if(void 0!==e.preventDefault&&e.cancelable&&e.preventDefault(),a=Bp(a,l.draggable,o,!0),C("dragOver"),ay.eventCanceled)return m;if(vv.contains(e.target)||a.animated&&a.animatingX&&a.animatingY||h._ignoreWhileAnimating===a)return I(!1);if(Lv=!1,s&&!l.disabled&&(c?f||(n=yv!==gv):Cv===this||(this.lastPutMode=Av.checkPull(this,s,vv,e))&&u.checkPut(this,s,vv,e))){if(i="vertical"===this._getDirection(e,a),r=Yp(vv),C("dragOverValid"),ay.eventCanceled)return m;if(n)return yv=gv,_(),this._hideClone(),C("revert"),ay.eventCanceled||(wv?gv.insertBefore(vv,wv):gv.appendChild(vv)),I(!0);var p=ev(o,l.draggable);if(!p||function(e,r,t){var n=Yp(ev(t.el,t.options.draggable)),i=uv(t.el,t.options,bv);return r?e.clientX>i.right+10||e.clientY>n.bottom&&e.clientX>n.left:e.clientY>i.bottom+10||e.clientX>n.right&&e.clientY>n.top}(e,i,this)&&!p.animated){if(p===vv)return I(!1);if(p&&o===e.target&&(a=p),a&&(t=Yp(a)),!1!==ly(gv,o,vv,r,a,t,e,!!a))return _(),p&&p.nextSibling?o.insertBefore(vv,p.nextSibling):o.appendChild(vv),yv=o,D(),I(!0)}else if(p&&function(e,r,t){var n=Yp(Qp(t.el,0,t.options,!0)),i=uv(t.el,t.options,bv);return r?e.clientX<i.left-10||e.clientY<n.top&&e.clientX<n.right:e.clientY<i.top-10||e.clientY<n.bottom&&e.clientX<n.left}(e,i,this)){var v=Qp(o,0,l,!0);if(v===vv)return I(!1);if(t=Yp(a=v),!1!==ly(gv,o,vv,r,a,t,e,!1))return _(),o.insertBefore(vv,v),yv=o,D(),I(!0)}else if(a.parentNode===o){t=Yp(a);var y,b,g,w=vv.parentNode!==o,k=!function(e,r,t){var n=t?e.left:e.top,i=t?r.left:r.top;return n===i||(t?e.right:e.bottom)===(t?r.right:r.bottom)||n+(t?e.width:e.height)/2===i+(t?r.width:r.height)/2}(vv.animated&&vv.toRect||r,a.animated&&a.toRect||t,i),$=i?"top":"left",S=Xp(a,"top","top")||Xp(vv,"top","top"),E=S?S.scrollTop:void 0;if(Mv!==a&&(b=t[$],Vv=!1,Hv=!k&&l.invertSwap||w),y=function(e,r,t,n,i,o,a,l){var u=n?e.clientY:e.clientX,s=n?t.height:t.width,c=n?t.top:t.left,f=n?t.bottom:t.right,d=!1;if(!a)if(l&&Rv<s*i){if(!Vv&&(1===Nv?u>c+s*o/2:u<f-s*o/2)&&(Vv=!0),Vv)d=!0;else if(1===Nv?u<c+Rv:u>f-Rv)return-Nv}else if(u>c+s*(1-i)/2&&u<f-s*(1-i)/2)return function(e){return rv(vv)<rv(e)?1:-1}(r);return(d=d||a)&&(u<c+s*o/2||u>f-s*o/2)?u>c+s/2?1:-1:0}(e,a,t,i,k?1:l.swapThreshold,null==l.invertedSwapThreshold?l.swapThreshold:l.invertedSwapThreshold,Hv,Mv===a),0!==y){var j=rv(vv);do{g=yv.children[j-=y]}while(g&&("none"===Gp(g,"display")||g===bv))}if(0===y||g===a)return I(!1);Mv=a,Nv=y;var x=a.nextElementSibling,O=!1,A=ly(gv,o,vv,r,a,t,e,O=1===y);if(!1!==A)return 1!==A&&-1!==A||(O=1===A),Gv=!0,setTimeout(sy,30),_(),O&&!x?o.appendChild(vv):a.parentNode.insertBefore(vv,O?x:a),S&&av(S,0,E-S.scrollTop),yv=vv.parentNode,void 0===b||Hv||(Rv=Math.abs(b-Yp(a)[$])),D(),I(!0)}if(o.contains(vv))return I(!1)}return!1}function C(l,u){mv(l,h,Cp({evt:e,isOwner:c,axis:i?"vertical":"horizontal",revert:n,dragRect:r,targetRect:t,canSort:f,fromSortable:d,target:a,completed:I,onMove:function(t,n){return ly(gv,o,vv,r,t,Yp(t),e,n)},changed:D},u))}function _(){C("dragOverAnimationCapture"),h.captureAnimationState(),h!==d&&d.captureAnimationState()}function I(r){return C("dragOverCompleted",{insertion:r}),r&&(c?s._hideClone():s._showClone(h),h!==d&&(Wp(vv,Cv?Cv.options.ghostClass:s.options.ghostClass,!1),Wp(vv,l.ghostClass,!0)),Cv!==h&&h!==ay.active?Cv=h:h===ay.active&&Cv&&(Cv=null),d===h&&(h._ignoreWhileAnimating=a),h.animateAll((function(){C("dragOverAnimationComplete"),h._ignoreWhileAnimating=null})),h!==d&&(d.animateAll(),d._ignoreWhileAnimating=null)),(a===vv&&!vv.animated||a===o&&!a.animated)&&(Mv=null),l.dragoverBubble||e.rootEl||a===document||(vv.parentNode[sv]._isOutsideThisEl(e.target),!r&&iy(e)),!l.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),m=!0}function D(){jv=rv(vv),Ov=rv(vv,l.draggable),pv({sortable:h,name:"change",toEl:o,newIndex:jv,newDraggableIndex:Ov,originalEvent:e})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){zp(document,"mousemove",this._onTouchMove),zp(document,"touchmove",this._onTouchMove),zp(document,"pointermove",this._onTouchMove),zp(document,"dragover",iy),zp(document,"mousemove",iy),zp(document,"touchmove",iy)},_offUpEvents:function(){var e=this.el.ownerDocument;zp(e,"mouseup",this._onDrop),zp(e,"touchend",this._onDrop),zp(e,"pointerup",this._onDrop),zp(e,"pointercancel",this._onDrop),zp(e,"touchcancel",this._onDrop),zp(document,"selectstart",this)},_onDrop:function(e){var r=this.el,t=this.options;jv=rv(vv),Ov=rv(vv,t.draggable),mv("drop",this,{evt:e}),yv=vv&&vv.parentNode,jv=rv(vv),Ov=rv(vv,t.draggable),ay.eventCanceled||(Uv=!1,Hv=!1,Vv=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),dy(this.cloneId),dy(this._dragStartId),this.nativeDraggable&&(zp(document,"drop",this),zp(r,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),qp&&Gp(document.body,"user-select",""),Gp(vv,"transform",""),e&&(Tv&&(e.cancelable&&e.preventDefault(),!t.dropBubble&&e.stopPropagation()),bv&&bv.parentNode&&bv.parentNode.removeChild(bv),(gv===yv||Cv&&"clone"!==Cv.lastPutMode)&&$v&&$v.parentNode&&$v.parentNode.removeChild($v),vv&&(this.nativeDraggable&&zp(vv,"dragend",this),uy(vv),vv.style["will-change"]="",Tv&&!Uv&&Wp(vv,Cv?Cv.options.ghostClass:this.options.ghostClass,!1),Wp(vv,this.options.chosenClass,!1),pv({sortable:this,name:"unchoose",toEl:yv,newIndex:null,newDraggableIndex:null,originalEvent:e}),gv!==yv?(jv>=0&&(pv({rootEl:yv,name:"add",toEl:yv,fromEl:gv,originalEvent:e}),pv({sortable:this,name:"remove",toEl:yv,originalEvent:e}),pv({rootEl:yv,name:"sort",toEl:yv,fromEl:gv,originalEvent:e}),pv({sortable:this,name:"sort",toEl:yv,originalEvent:e})),Cv&&Cv.save()):jv!==Ev&&jv>=0&&(pv({sortable:this,name:"update",toEl:yv,originalEvent:e}),pv({sortable:this,name:"sort",toEl:yv,originalEvent:e})),ay.active&&(null!=jv&&-1!==jv||(jv=Ev,Ov=xv),pv({sortable:this,name:"end",toEl:yv,originalEvent:e}),this.save())))),this._nulling()},_nulling:function(){mv("nulling",this),gv=vv=yv=bv=wv=$v=kv=Sv=_v=Iv=Tv=jv=Ov=Ev=xv=Mv=Nv=Cv=Av=ay.dragged=ay.ghost=ay.clone=ay.active=null;var e=this.el;Kv.forEach((function(r){e.contains(r)&&(r.checked=!0)})),Kv.length=Dv=Pv=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":vv&&(this._onDragOver(e),function(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.cancelable&&e.preventDefault()}(e));break;case"selectstart":e.preventDefault()}},toArray:function(){for(var e,r=[],t=this.el.children,n=0,i=t.length,o=this.options;n<i;n++)Bp(e=t[n],o.draggable,this.el,!1)&&r.push(e.getAttribute(o.dataIdAttr)||cy(e));return r},sort:function(e,r){var t={},n=this.el;this.toArray().forEach((function(e,r){var i=n.children[r];Bp(i,this.options.draggable,n,!1)&&(t[e]=i)}),this),r&&this.captureAnimationState(),e.forEach((function(e){t[e]&&(n.removeChild(t[e]),n.appendChild(t[e]))})),r&&this.animateAll()},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,r){return Bp(e,r||this.options.draggable,this.el,!1)},option:function(e,r){var t=this.options;if(void 0===r)return t[e];var n=dv.modifyOption(this,e,r);t[e]=void 0!==n?n:r,"group"===e&&ry(t)},destroy:function(){mv("destroy",this);var e=this.el;e[sv]=null,zp(e,"mousedown",this._onTapStart),zp(e,"touchstart",this._onTapStart),zp(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(zp(e,"dragover",this),zp(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),(function(e){e.removeAttribute("draggable")})),this._onDrop(),this._disableDelayedDragEvents(),Bv.splice(Bv.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!Sv){if(mv("hideClone",this),ay.eventCanceled)return;Gp($v,"display","none"),this.options.removeCloneOnHide&&$v.parentNode&&$v.parentNode.removeChild($v),Sv=!0}},_showClone:function(e){if("clone"===e.lastPutMode){if(Sv){if(mv("showClone",this),ay.eventCanceled)return;vv.parentNode!=gv||this.options.group.revertClone?wv?gv.insertBefore($v,wv):gv.appendChild($v):gv.insertBefore($v,vv),this.options.group.revertClone&&this.animate(vv,$v),Gp($v,"display",""),Sv=!1}}else this._hideClone()}},Zv&&Rp(document,"touchmove",(function(e){(ay.active||Uv)&&e.cancelable&&e.preventDefault()})),ay.utils={on:Rp,off:zp,css:Gp,find:Zp,is:function(e,r){return!!Bp(e,r,e,!1)},extend:function(e,r){if(e&&r)for(var t in r)r.hasOwnProperty(t)&&(e[t]=r[t]);return e},throttle:ov,closest:Bp,toggleClass:Wp,clone:lv,index:rv,nextTick:fy,cancelNextTick:dy,detectDirection:ey,getChild:Qp,expando:sv},ay.get=function(e){return e[sv]},ay.mount=function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];r[0].constructor===Array&&(r=r[0]),r.forEach((function(e){if(!e.prototype||!e.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(e));e.utils&&(ay.utils=Cp(Cp({},ay.utils),e.utils)),dv.mount(e)}))},ay.create=function(e,r){return new ay(e,r)},ay.version="1.15.7";var hy,my,py,vy,yy,by,gy=[],wy=!1;function ky(){gy.forEach((function(e){clearInterval(e.pid)})),gy=[]}function $y(){clearInterval(by)}var Sy=ov((function(e,r,t,n){if(r.scroll){var i,o=(e.touches?e.touches[0]:e).clientX,a=(e.touches?e.touches[0]:e).clientY,l=r.scrollSensitivity,u=r.scrollSpeed,s=Jp(),c=!1;my!==t&&(my=t,ky(),i=r.scrollFn,!0===(hy=r.scroll)&&(hy=nv(t,!0)));var f=0,d=hy;do{var h=d,m=Yp(h),p=m.top,v=m.bottom,y=m.left,b=m.right,g=m.width,w=m.height,k=void 0,$=void 0,S=h.scrollWidth,E=h.scrollHeight,j=Gp(h),x=h.scrollLeft,O=h.scrollTop;h===s?(k=g<S&&("auto"===j.overflowX||"scroll"===j.overflowX||"visible"===j.overflowX),$=w<E&&("auto"===j.overflowY||"scroll"===j.overflowY||"visible"===j.overflowY)):(k=g<S&&("auto"===j.overflowX||"scroll"===j.overflowX),$=w<E&&("auto"===j.overflowY||"scroll"===j.overflowY));var A=k&&(Math.abs(b-o)<=l&&x+g<S)-(Math.abs(y-o)<=l&&!!x),C=$&&(Math.abs(v-a)<=l&&O+w<E)-(Math.abs(p-a)<=l&&!!O);if(!gy[f])for(var _=0;_<=f;_++)gy[_]||(gy[_]={});gy[f].vx==A&&gy[f].vy==C&&gy[f].el===h||(gy[f].el=h,gy[f].vx=A,gy[f].vy=C,clearInterval(gy[f].pid),0==A&&0==C||(c=!0,gy[f].pid=setInterval(function(){n&&0===this.layer&&ay.active._onTouchMove(yy);var r=gy[this.layer].vy?gy[this.layer].vy*u:0,t=gy[this.layer].vx?gy[this.layer].vx*u:0;"function"==typeof i&&"continue"!==i.call(ay.dragged.parentNode[sv],t,r,e,yy,gy[this.layer].el)||av(gy[this.layer].el,t,r)}.bind({layer:f}),24))),f++}while(r.bubbleScroll&&d!==s&&(d=nv(d,!1)));wy=c}}),30),Ey=function(e){var r=e.originalEvent,t=e.putSortable,n=e.dragEl,i=e.dispatchSortableEvent,o=e.unhideGhostForTarget;if(r){var a=t||e.activeSortable;(0,e.hideGhostForTarget)();var l=r.changedTouches&&r.changedTouches.length?r.changedTouches[0]:r,u=document.elementFromPoint(l.clientX,l.clientY);o(),a&&!a.el.contains(u)&&(i("spill"),this.onSpill({dragEl:n,putSortable:t}))}};function jy(){}function xy(){}jy.prototype={startIndex:null,dragStart:function(e){this.startIndex=e.oldDraggableIndex},onSpill:function(e){var r=e.dragEl,t=e.putSortable;this.sortable.captureAnimationState(),t&&t.captureAnimationState();var n=Qp(this.sortable.el,this.startIndex,this.options);n?this.sortable.el.insertBefore(r,n):this.sortable.el.appendChild(r),this.sortable.animateAll(),t&&t.animateAll()},drop:Ey},Op(jy,{pluginName:"revertOnSpill"}),xy.prototype={onSpill:function(e){var r=e.dragEl,t=e.putSortable||this.sortable;t.captureAnimationState(),r.parentNode&&r.parentNode.removeChild(r),t.animateAll()},drop:Ey},Op(xy,{pluginName:"removeOnSpill"}),ay.mount(new function(){function e(){for(var e in this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0},this)"_"===e.charAt(0)&&"function"==typeof this[e]&&(this[e]=this[e].bind(this))}return e.prototype={dragStarted:function(e){var r=e.originalEvent;this.sortable.nativeDraggable?Rp(document,"dragover",this._handleAutoScroll):Rp(document,this.options.supportPointer?"pointermove":r.touches?"touchmove":"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(e){var r=e.originalEvent;this.options.dragOverBubble||r.rootEl||this._handleAutoScroll(r)},drop:function(){this.sortable.nativeDraggable?zp(document,"dragover",this._handleAutoScroll):(zp(document,"pointermove",this._handleFallbackAutoScroll),zp(document,"touchmove",this._handleFallbackAutoScroll),zp(document,"mousemove",this._handleFallbackAutoScroll)),$y(),ky(),clearTimeout(Vp),Vp=void 0},nulling:function(){yy=my=hy=wy=by=py=vy=null,gy.length=0},_handleFallbackAutoScroll:function(e){this._handleAutoScroll(e,!0)},_handleAutoScroll:function(e,r){var t=this,n=(e.touches?e.touches[0]:e).clientX,i=(e.touches?e.touches[0]:e).clientY,o=document.elementFromPoint(n,i);if(yy=e,r||this.options.forceAutoScrollFallback||Pp||Dp||qp){Sy(e,this.options,o,r);var a=nv(o,!0);!wy||by&&n===py&&i===vy||(by&&$y(),by=setInterval((function(){var o=nv(document.elementFromPoint(n,i),!0);o!==a&&(a=o,ky()),Sy(e,t.options,o,r)}),10),py=n,vy=i)}else{if(!this.options.bubbleScroll||nv(o,!0)===Jp())return void ky();Sy(e,this.options,nv(o,!1),!1)}}},Op(e,{pluginName:"scroll",initializeByDefault:!0})}),ay.mount(xy,jy);const Oy=ne.createContext(null),Ay=ne.createContext(null),Cy="arrayReorder",_y="[data-drag-handle]",Iy='.array-item[data-reorderable="true"]',Dy="has-an-item-which-is-being-dragged",Py="is-elevated";class Fy extends ie.Component{constructor(e){super(e),this.cachedContextValue=null,this.handleAddClick=e=>{e.stopPropagation(),this.props.onAddClick(e)},this.setContainer=e=>{this.container!==e&&(this.teardownDragController(),this.container=null!=e?e:void 0,this.setupDragController())},this.handleSortStart=e=>{this.canReorderItems()&&(this.dragSnapshot=[...this.state.order],this.draggedItemIndex=this.getReorderId(e.item),this.container&&this.container.classList.add(Dy),e.item instanceof HTMLElement&&this.applyDropElevation(e.item))},this.handleSortEnd=e=>{var r;if(!this.canReorderItems())return;this.container&&this.container.classList.remove(Dy);const t=this.dragSnapshot,n=this.draggedItemIndex;this.dragSnapshot=void 0,this.draggedItemIndex=void 0,e.item instanceof HTMLElement&&(this.dropElevationTarget=e.item);const i=this.readOrderFromDom();if(this.arraysEqual(this.state.order,i)||this.setState({order:i}),void 0===t||void 0===n||!(e.item instanceof HTMLElement))return void this.scheduleDropElevationRemoval();const o=t.indexOf(n),a=i.indexOf(n);-1!==o&&-1!==a&&o!==a?(null===(r=this.container)||void 0===r||r.dispatchEvent(new CustomEvent(Cy,{bubbles:!0,detail:{fromIndex:o,toIndex:a}})),this.scheduleDropElevationRemoval()):this.scheduleDropElevationRemoval()},this.state={order:this.extractIndices(e.items)}}componentWillUnmount(){this.teardownDragController()}componentDidMount(){this.setupDragController()}componentDidUpdate(e){if(e.items!==this.props.items){const e=this.extractIndices(this.props.items);if(!this.arraysEqual(this.state.order,e))return void this.setState({order:e},(()=>{this.setupDragController()}))}e.items===this.props.items&&e.schema===this.props.schema&&e.disabled===this.props.disabled&&e.readonly===this.props.readonly||this.setupDragController()}render(){const e=this.getOrderedItems(),r=this.getContextValue();return ie.createElement(Oy.Provider,{value:r},ie.createElement("div",{},kp(this.props.title),$p(this.props.schema.description),ie.createElement("div",{className:"array-items",ref:this.setContainer},e),this.renderAddButton()))}renderAddButton(){if(this.props.canAdd)return ie.createElement("limel-button",{label:this.props.title||"Add",onClick:this.handleAddClick,icon:"plus_math",class:"button-add-new"})}getOrderedItems(){var e;const r=null!==(e=this.props.items)&&void 0!==e?e:[];if(0===r.length)return[];const t=new Map;for(const[e,n]of r.entries())t.set(e,n);const n=[],i=new Set;for(const e of this.state.order){const r=t.get(e);r&&(n.push(r),i.add(e))}for(const[e,r]of t.entries())i.has(e)||n.push(r);return n}setupDragController(){if(this.container&&this.canReorderItems())return this.container.querySelectorAll(`:scope > ${Iy}`).length<2?void this.teardownDragController():this.sortable?(this.sortable.option("handle",_y),this.sortable.option("draggable",Iy),this.sortable.option("disabled",!1),this.sortable.option("delay",200),void this.sortable.option("delayOnTouchOnly",!0)):void(this.sortable=ay.create(this.container,{animation:150,handle:_y,draggable:Iy,delay:200,delayOnTouchOnly:!0,onStart:this.handleSortStart,onEnd:this.handleSortEnd}));this.teardownDragController()}teardownDragController(){this.sortable&&(this.sortable.destroy(),this.sortable=void 0),this.clearDropElevationTimer(),this.dropElevationTarget&&(this.dropElevationTarget.classList.remove(Py),this.dropElevationTarget=void 0),this.container&&this.container.classList.remove(Dy),this.dragSnapshot=void 0,this.draggedItemIndex=void 0}canReorderItems(){if(this.props.disabled||this.props.readonly)return!1;const e=this.props.schema;return!1!==((null==e?void 0:e.lime)||{}).allowItemReorder}readOrderFromDom(){if(!this.container)return[];const e=[...this.container.children].filter((e=>{var r,t;return Boolean(null===(t=null===(r=null==e?void 0:e.classList)||void 0===r?void 0:r.contains)||void 0===t?void 0:t.call(r,"array-item"))})),r=[];for(const t of e){const e=this.getReorderId(t);void 0!==e&&r.push(e)}return r}getReorderId(e){var r;if(!e)return;const t=null===(r=null==e?void 0:e.dataset)||void 0===r?void 0:r.reorderId;if(void 0===t)return;const n=Number.parseInt(t,10);return Number.isNaN(n)?void 0:n}applyDropElevation(e){this.dropElevationTarget&&this.dropElevationTarget!==e&&this.dropElevationTarget.classList.remove(Py),this.clearDropElevationTimer(),e.classList.add(Py),this.dropElevationTarget=e}scheduleDropElevationRemoval(){if(!this.dropElevationTarget)return;const e=this.dropElevationTarget;this.clearDropElevationTimer(),this.dropElevationTimeout=globalThis.setTimeout((()=>{e.classList.remove(Py),this.dropElevationTarget===e&&(this.dropElevationTarget=void 0),this.dropElevationTimeout=void 0}),1e3)}clearDropElevationTimer(){void 0!==this.dropElevationTimeout&&(clearTimeout(this.dropElevationTimeout),this.dropElevationTimeout=void 0)}arraysEqual(e,r){if(e.length!==r.length)return!1;let t=0;for(const n of e){if(n!==r[t])return!1;t+=1}return!0}extractIndices(e=[]){return(null!=e?e:[]).map(((e,r)=>r))}getContextValue(){var e;const r=this.props.schema,t=null!==(e=this.props.formData)&&void 0!==e?e:[];return this.cachedContextValue&&this.cachedSchema===r&&this.cachedFormData===t||(this.cachedSchema=r,this.cachedFormData=t,this.cachedContextValue={arraySchema:r,formData:t}),this.cachedContextValue}}const qy=mp({customFormats:{integer:function(e){return Number.isInteger(Number(e))}},ajvOptionsOverrides:{allErrors:!0,multipleOfPrecision:2}});class Ty extends ie.Component{constructor(e){super(e),this.props=e,this.state={isOpen:!1},this.handleOpen=()=>{this.setState({isOpen:!0})},this.handleAction=this.handleAction.bind(this),this.state={isOpen:My(e)}}componentDidMount(){const e=this.section;e.addEventListener("action",this.handleAction),e.addEventListener("open",this.handleOpen),this.setActions(e)}componentDidUpdate(){this.setActions(this.section)}componentWillUnmount(){const e=this.section;e.removeEventListener("action",this.handleAction),e.removeEventListener("open",this.handleOpen)}render(){const{data:e,schema:r,formSchema:t,errorSchema:n,revealErrors:i}=this.props;let o;this.state.isOpen&&(o=this.props.children);const a=this.props.allowItemReorder?ie.createElement("limel-drag-handle",{slot:"header",class:"drag-handle"}):null,l=!0===i&&jp(n);return ie.createElement("limel-collapsible-section",{header:Sp(e,r,t)||"New item",class:"array-item limel-form-array-item--object",ref:e=>{this.section=e},"is-open":this.state.isOpen,"data-reorder-id":String(this.props.index),"data-reorderable":this.props.allowItemReorder?"true":"false",invalid:l},a,o)}setActions(e){const{buttonsProps:r,allowItemRemoval:t}=this.props,n=[];t&&n.push({id:"remove",icon:"trash",disabled:!r.hasRemove,run:r.onRemoveItem}),e.actions=n}handleAction(e){e.stopPropagation(),e.detail.run(e)}}function My(e){return!!Ny(e.data)||s(e.data,function(e){var r,t;const n=null===(r=e.schema)||void 0===r?void 0:r.items,i=Array.isArray(n)?n[e.index]:n;if(i)return Hn(qy,i,void 0,null!==(t=e.formSchema)&&void 0!==t?t:i,!1,{constAsDefaults:"skipOneOf",requiredBooleanDefault:"skip"})}(e))}function Ny(e){return"object"==typeof e&&(!!u(e)||Object.values(e).every(Ny))}class Ry extends ie.Component{constructor(e){super(e),this.props=e,this.handleRemove=e=>{this.props.buttonsProps.onRemoveItem(e)},this.setRemoveButton=e=>{this.removeButton&&this.removeButton.removeEventListener("click",this.handleRemove),this.removeButton=e||void 0,this.removeButton&&this.removeButton.addEventListener("click",this.handleRemove)}}componentWillUnmount(){this.setRemoveButton(void 0)}render(){const{allowItemReorder:e}=this.props;return ie.createElement("div",{className:"array-item limel-form-array-item--simple","data-reorder-id":String(this.props.index),"data-reorderable":e?"true":"false"},this.props.children,this.renderRemoveButton(),this.renderDragHandle())}renderDragHandle(){if(this.props.allowItemReorder)return ie.createElement("limel-drag-handle",{class:"drag-handle"})}renderRemoveButton(){if(this.props.allowItemRemoval)return ie.createElement("limel-icon-button",{icon:"trash",disabled:!this.props.buttonsProps.hasRemove,ref:this.setRemoveButton})}}const zy=e=>{const r=ne.useContext(Oy),t=ne.useContext(Ay),n=null==r?void 0:r.arraySchema,i=null==r?void 0:r.formData,o=e.registry.formContext,a=function(e,r){if(!1===((null==r?void 0:r.lime)||{}).allowItemReorder)return!1;const{buttonsProps:t}=e;return Boolean((null==t?void 0:t.hasMoveDown)||(null==t?void 0:t.hasMoveUp))}(e,n),l=function(e){return!1!==((null==e?void 0:e.lime)||{}).allowItemRemoval}(n);if(n&&pp(n.items)){const r=Array.isArray(i)?i[e.index]:void 0;return ie.createElement(Ty,{key:e.itemKey,buttonsProps:e.buttonsProps,index:e.index,data:r,schema:n,formSchema:null==o?void 0:o.schema,allowItemRemoval:l,allowItemReorder:a,errorSchema:null==t?void 0:t[e.index],revealErrors:!0===(null==o?void 0:o.revealErrors)},e.children)}return ie.createElement(Ry,{key:e.itemKey,buttonsProps:e.buttonsProps,index:e.index,allowItemRemoval:l,allowItemReorder:a},e.children)},Uy="--number-of-columns";class Ly extends ie.Component{constructor(e){super(e),this.props=e,this.handleResize=this.handleResize.bind(this),this.state={maxColumns:5},this.elementRef=ie.createRef()}componentDidMount(){this.observer=new ResizeObserver(this.handleResize),this.observer.observe(this.elementRef.current),window.addEventListener("resize",this.handleResize,{capture:!0,passive:!0})}componentWillUnmount(){this.observer.unobserve(this.elementRef.current),window.removeEventListener("resize",this.handleResize,{capture:!0})}handleResize(){requestAnimationFrame((()=>{const e=this.elementRef.current;if(!e)return;const r=e.getBoundingClientRect().width,t=Math.min(5,Math.max(1,Math.floor(r/240))),n=this.getColumnCount(t);e.style.getPropertyValue(Uy)!==`${n}`&&e.style.setProperty(Uy,`${n}`),t!==this.state.maxColumns&&this.setState({maxColumns:t})}))}render(){var e;const r=["limel-form-layout--grid"],t=this.getColumnCount(this.state.maxColumns);return r.push(`layout-${t}-columns`),this.hasAutoFlowDense()&&r.push("auto-reorder-to-avoid-empty-cells"),ie.createElement("div",{className:r.join(" "),"data-schema-path":Yy(null!==(e=this.props.schemaPath)&&void 0!==e?e:[]),ref:this.elementRef},this.props.children)}getColumnCount(e){return Math.min(this.props.options.columns||5,e)}hasAutoFlowDense(){return!1!==this.props.options.dense}}const By=ne.createContext(!1);class Vy extends ie.Component{constructor(e){super(e),this.props=e}render(){const e=["row"];return this.icon&&e.push("has-icon"),ie.createElement("div",{className:e.join(" ")},this.renderMainInformation(),this.renderDescription())}renderIcon(){if(this.icon)return ie.createElement("limel-icon",{name:this.icon})}renderMainInformation(){return ie.createElement("div",{className:"main-information"},this.renderIcon(),this.renderTitle(),this.renderChildren())}renderTitle(){var e;return ie.createElement("h1",{className:"title"},null===(e=this.schema)||void 0===e?void 0:e.title)}renderDescription(){var e;if(null===(e=this.schema)||void 0===e?void 0:e.description)return ie.createElement("limel-markdown",{class:"description",value:this.schema.description})}renderChildren(){return ie.createElement(By.Provider,{value:!0},this.props.children)}get schema(){return this.props.children.props.schema}get icon(){var e,r,t;return null===(t=null===(r=null===(e=this.schema)||void 0===e?void 0:e.lime)||void 0===r?void 0:r.layout)||void 0===t?void 0:t.icon}}class Hy extends ie.Component{constructor(e){super(e),this.props=e,this.elementRef=ie.createRef()}render(){var e;return ie.createElement("div",{className:"limel-form-row--layout","data-schema-path":Yy(null!==(e=this.props.schemaPath)&&void 0!==e?e:[]),ref:this.elementRef},this.props.children.map(((e,r)=>ie.createElement(Vy,{key:r.toString()},e))))}}function Wy(e,r){var t;const n=null===(t=e.lime)||void 0===t?void 0:t.help;if(n)return ie.createElement("limel-help",Object.assign("string"==typeof n?{value:n}:Object.assign({},n),r))}const Gy=e=>{const r=ne.useContext(Oy),t=e.fieldPathId.$id;return r&&"root"!==t?ie.createElement(Oy.Provider,{value:null},Zy(e.properties,e.schema,e.fieldPathId.path.map(String))):"root"!==t&&(null===(n=e.schema.lime)||void 0===n?void 0:n.collapsible)?function(e){var r;const t=!(!1!==e.schema.lime.collapsed),n=Wy(e.schema,{slot:"header"}),i=!0===(null===(r=e.registry.formContext)||void 0===r?void 0:r.revealErrors)&&jp(e.errorSchema);return ie.createElement("limel-collapsible-section",{header:e.title,id:Ky(e.registry.formContext.schema,e.fieldPathId),"is-open":t,invalid:i},n,$p(e.description),Zy(e.properties,e.schema,e.fieldPathId.path.map(String)))}(e):function(e){return ie.createElement(ie.Fragment,{},function(e){const r=Wy(e.schema);return r?ie.createElement(ie.Fragment,{},kp(e.title),r):kp(e.title)}(e),$p(e.description),Zy(e.properties,e.schema,e.fieldPathId.path.map(String)))}(e);var n};function Ky(e,r){var t,n;return`${null!==(n=null===(t=e.$ref)||void 0===t?void 0:t.replace(/\//g,".").slice(2))&&void 0!==n?n:""}${r.path.map((e=>`.properties.${e}`)).join("")}`}function Zy(e,r,t){var n;return function(e,r,t){return{default:Jy,grid:Xy,row:Qy}[(null==r?void 0:r.type)||"default"](e,r,t)}(e,null===(n=r.lime)||void 0===n?void 0:n.layout,t)}function Jy(e,r,t){return ie.createElement("div",{className:"limel-form-layout--default","data-schema-path":Yy(t)},e.map((e=>e.content)))}function Yy(e){return 0===e.length?"/":`/${e.join("/")}`}function Xy(e,r,t){return ie.createElement(Ly,{options:r,schemaPath:t},e.map((e=>e.content)))}function Qy(e,r,t){return ie.createElement(Hy,{schemaPath:t},e.map((e=>e.content)))}function eb(e){return null!=e&&""!==e&&(Array.isArray(e)?e.length>0:e instanceof Date||"object"!=typeof e||!u(e))}function rb(e){return e.hasErrors&&(e.modified||e.hasValue||!e.required||!!e.revealErrors)}function tb(e){return e.required||e.minItems>0}function nb(e,r,t){return(null==e?void 0:e.length)>0?K(o(e[0]).toLowerCase()):t||r}const ib=(e,r,t,n)=>{if(!I(r))return r;if(ob(t))return r;const i=un(qy,t,n,e),o=((e={},r={})=>J(Object.keys(e),Object.keys(r)).filter((t=>!s(r[t],e[t]))))(un(qy,t,n,r).properties,i.properties);for(const e of o)delete r[e];return r};function ob(e){return!!e.additionalProperties&&(!("properties"in e)||0===Object.values(e.properties).filter(m(ab)).length)}function ab(e){return!0===e[Ee]}const lb=e=>{const r=null==e?void 0:e.type;return!!r&&(Array.isArray(r)?r.includes("null"):"null"===r)};class ub extends ie.Component{constructor(e){super(e),this.props=e,this.state={modified:!1},this.handleChange=e=>{this.props.events.change(e.nativeEvent)},this.handleBlur=this.handleBlur.bind(this)}handleBlur(){this.setState({modified:!0})}getLabel(){if(this.context)return"";const{schema:e,label:r,hideLabel:t}=this.props.widgetProps;return t?"":r||e.title}isInvalid(){var e;const{modified:r}=this.state,{rawErrors:t,required:n,schema:i,registry:o}=this.props.widgetProps;return rb({hasErrors:!!t,modified:r,hasValue:eb(this.getValue()),required:tb({required:n,minItems:i.minItems}),revealErrors:!0===(null===(e=null==o?void 0:o.formContext)||void 0===e?void 0:e.revealErrors)})}getHelperText(){const{rawErrors:e,schema:r}=this.props.widgetProps;return this.isInvalid()?nb(e||[],r.description):this.context?"":r.description}getValue(){const{value:e}=this.props,{value:r}=this.props.widgetProps;return e||r}render(){const{name:e,extraProps:r}=this.props,t=this.isDisabled(),n=this.getValue(),i=this.isReadOnly();return ie.createElement(ie.Fragment,{},ie.createElement(e,Object.assign(Object.assign({value:n,label:this.getLabel(),disabled:t,readonly:i,required:tb({required:this.props.widgetProps.required,minItems:this.props.widgetProps.schema.minItems}),invalid:this.isInvalid(),"helper-text":this.getHelperText()},r),{onChange:this.handleChange,onBlur:this.handleBlur})),Wy(this.props.widgetProps.schema))}isDisabled(){var e,r;const t=this.props.widgetProps,n=t.schema.lime;return t.disabled||(null==n?void 0:n.disabled)||(null===(r=null===(e=null==n?void 0:n.component)||void 0===e?void 0:e.props)||void 0===r?void 0:r.disabled)}isReadOnly(){return this.props.widgetProps.readonly}}ub.contextType=By;class sb extends ie.Component{constructor(e){super(e),this.props=e,this.state={modified:!1},this.handleChange=this.handleChange.bind(this)}render(){var e,r;const t=this.props,{type:n="datetime"}=t,i=function(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)r.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(t[n[i]]=e[n[i]])}return t}(t,["type"]);return ie.createElement(ub,{name:"limel-date-picker",value:this.getValue(),events:{change:this.handleChange},widgetProps:i,extraProps:Object.assign({type:n},null===(r=null===(e=i.schema.lime)||void 0===e?void 0:e.component)||void 0===r?void 0:r.props)})}getValue(){return"string"==typeof this.props.value?new Date(this.props.value):this.props.value}handleChange(e){const r=this.props;if(e.stopPropagation(),!r.onChange)return;if(!e.detail)return void r.onChange(null);const t=S(e.detail).format({"date-time":"YYYY-MM-DDTHH:mm:ssZ",date:"YYYY-MM-DD",time:"HH:mm:ss"}[r.schema.format]);r.onChange(t)}}const cb=e=>{var{value:r}=e,t=function(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)r.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(t[n[i]]=e[n[i]])}return t}(e,["value"]);return"string"==typeof r&&fb.test(r)&&(r=new Date("2000-01-01T"+r)),ie.createElement(sb,Object.assign({type:"time",value:r},t))},fb=/^\d\d:\d\d/,{fields:db}=mf(),hb=db.SchemaField,mb=e=>{if(!customElements.get(e))throw new Error(`Custom form element '${e}' is not defined!`)};class pb extends ie.Component{constructor(e){super(e),this.state={modified:!1},this.handleChange=this.handleChange.bind(this),this.handleCustomComponentChange=this.handleCustomComponentChange.bind(this)}isInvalid(){var e;const{modified:r}=this.state,{errorSchema:t,required:n,schema:i,registry:o}=this.props;return rb({hasErrors:!u(t),modified:r,hasValue:eb(this.props.formData),required:tb({required:n,minItems:i.minItems}),revealErrors:!0===(null===(e=o.formContext)||void 0===e?void 0:e.revealErrors)})}getHelperText(){var e,r,t;const{errorSchema:n,schema:i}=this.props,o=!u(n)&&"__errors"in n,a=this.isInvalid()&&o?n.__errors:[],l=null===(t=null===(r=null===(e=i.lime)||void 0===e?void 0:e.component)||void 0===r?void 0:r.props)||void 0===t?void 0:t.helperText;return nb(a,i.description,l)}handleCustomComponentChange(e){const{schema:r}=this.props;e.stopPropagation();let t=e.nativeEvent.detail;((e,r)=>null===e&&!lb(r))(t,r)&&(t=void 0),this.handleChange(t,this.props.fieldPathId.path)}handleChange(e,r){const{formData:t,schema:n}=this.props,{rootSchema:i}=this.props.registry;if(this.setState({modified:!0}),this.isDeepLeafChange(r))return void this.props.onChange(e,r);const o=ib(t,e,n,i);this.props.onChange(o,r)}isDeepLeafChange(e){const{fieldPathId:r}=this.props;return!!r&&e.length>r.path.length}buildCustomComponentProps(){const{disabled:e,readonly:r,name:t,registry:n,schema:i,errorSchema:o,fieldPathId:a}=this.props,l=i,u=function(e,r){const t=e.propsFactory;if("function"!=typeof t)return{};return t(r)||{}}(n.formContext,l);return Object.assign(Object.assign({},u),{value:this.props.formData,required:tb({required:this.props.required,minItems:l.minItems}),readonly:r||l.readOnly,disabled:e,invalid:this.isInvalid(),label:this.context?"":l.title,helperText:this.context&&!this.isInvalid()?"":this.getHelperText(),ref:e=>{var r;return e.formInfo={schema:l,rootSchema:n.formContext.schema,errorSchema:o,rootValue:n.formContext.rootValue,name:t,schemaPath:null===(r=null==a?void 0:a.path)||void 0===r?void 0:r.map(String)},()=>{}}})}renderCustomComponent(e){const r=e.schema,{name:t,props:n}=(e=>{var r,t,n,i;return{name:null===(t=null===(r=e.lime)||void 0===r?void 0:r.component)||void 0===t?void 0:t.name,props:(null===(i=null===(n=e.lime)||void 0===n?void 0:n.component)||void 0===i?void 0:i.props)||{}}})(r);mb(t);const i=ie.createElement(t,Object.assign(Object.assign(Object.assign({},n),this.buildCustomComponentProps()),{onChange:this.handleCustomComponentChange}));return ie.createElement(wp,Object.assign(Object.assign({},this.props),{classNames:"rjsf-field rjsf-field-custom"}),i,Wy(r))}render(){var e;const r=this.props.schema;if(null===(e=this.props.schema.lime)||void 0===e?void 0:e.hidden)return null;if((()=>{var e,r;const t=null===(r=null===(e=this.props.schema.lime)||void 0===e?void 0:e.component)||void 0===r?void 0:r.name;if(!t)return!1;try{mb(t)}catch(e){return console.warn(`Custom component ${t} not defined`),!1}return!0})())return this.renderCustomComponent(this.props);const t=Object.assign(Object.assign({},this.props),{onChange:this.handleChange});return"time"===this.props.schema.format&&(t.uiSchema=Object.assign({"ui:widget":cb},t.uiSchema)),(yp(r)||bp(r))&&(t.uiSchema=Object.assign({"ui:inputType":"number"},t.uiSchema)),ie.createElement(hb,t)}}pb.contextType=By;const{fields:vb}=mf(),yb=vb.ArrayField;class bb extends ie.Component{constructor(e){super(e),this.handleChange=this.handleChange.bind(this),this.handleReorder=this.handleReorder.bind(this),this.setWrapper=this.setWrapper.bind(this)}componentWillUnmount(){this.setWrapper(null)}setWrapper(e){this.wrapper&&this.wrapper.removeEventListener(Cy,this.handleReorder),this.wrapper=null!=e?e:void 0,this.wrapper&&this.wrapper.addEventListener(Cy,this.handleReorder)}handleReorder(e){e.stopPropagation();const{fromIndex:r,toIndex:t}=e.detail,{formData:n,fieldPathId:i}=this.props;if(!Array.isArray(n)||!i)return;const o=[...n],[a]=o.splice(r,1);o.splice(t,0,a),this.props.onChange(o,i.path)}handleChange(e,r){const{formData:t,schema:n}=this.props,{rootSchema:i}=this.props.registry;if(this.isDeepLeafChange(r))return void this.handleDeepLeafChange(e,r);if(!t)return void this.props.onChange(e,r);if(t.length!==e.length)return void this.props.onChange(e,r);const o=[];for(const[r,n]of t.entries())e[r]!==n&&o.push(r);if(1===o.length){const r=o[0];e[r]=ib(t[r],e[r],n.items,i)}this.props.onChange(e,r)}isDeepLeafChange(e){const{formData:r,fieldPathId:t}=this.props;return Array.isArray(r)&&!!t&&e.length>t.path.length}handleDeepLeafChange(e,r){const{formData:t,fieldPathId:n}=this.props,[i,...o]=r.slice(n.path.length),a=Number(i),l=[...t];l[a]=this.buildResetItem(e,a,o),this.props.onChange(l,n.path)}buildResetItem(e,r,t){const{formData:n,schema:i}=this.props,{rootSchema:o}=this.props.registry,a=Array.isArray(i.items)?i.items[r]:i.items,l=function(e,r){let t=e;for(const e of r){if(!t)return;t=gb(t,e)}return t}(a,t),u=null!==e||lb(l)?e:void 0,s=n[r],c=function(e,r,t){if(0===r.length)return t;const n=function(e,r){return Array.isArray(e)||I(e)?E(e):"number"==typeof r?[]:{}}(e,r[0]);return function(e,r,t){null==e||h(e,r,t)}(n,r,t),n}(s,t,u);return ib(s,c,a,o)}render(){var e;const r=Object.assign(Object.assign({},this.props),{onChange:this.handleChange});return ie.createElement("div",{ref:this.setWrapper},ie.createElement(Ay.Provider,{value:null!==(e=this.props.errorSchema)&&void 0!==e?e:null},ie.createElement(yb,r)))}}function gb(e,r){var t;if("number"==typeof r){const t=e.items;return Array.isArray(t)?t[r]:t}return null===(t=e.properties)||void 0===t?void 0:t[r]}class wb extends ie.Component{constructor(e){super(e),this.state={validationError:"",modified:!1},this.handleChange=this.handleChange.bind(this)}render(){const e=this.props;let r="{}";try{r=JSON.stringify(e.formData,null," ")}catch(e){}const{validationError:t,modified:n}=this.state,{errorSchema:i,formData:o,required:a}=e,l=!u(i)&&(n||null!=o||!a),s=t.length>0||l;let c;return t?c=t:l&&(c=kb(i)),ie.createElement("limel-code-editor",{value:r,language:"json",lineNumbers:!0,fold:!0,lint:!0,onChange:this.handleChange,invalid:s,helperText:c})}componentDidUpdate(e){e.formData===this.props.formData||""===this.state.validationError&&!this.state.modified||this.setState({validationError:"",modified:!1})}handleChange(e){const r=this.props;if(e.stopPropagation(),!r.onChange)return;let t;try{t=JSON.parse(e.nativeEvent.detail)}catch(e){const r=e instanceof SyntaxError?`Invalid JSON: ${e.message}`:"Should be a valid JSON document";return void this.setState({validationError:r,modified:!0})}r.onChange(t,r.fieldPathId.path),this.setState({validationError:"",modified:!0})}}function kb(e){if(e&&"object"==typeof e){if("__errors"in e&&Array.isArray(e.__errors)){const r=e.__errors;if(r.length>0)return r[0]}for(const r of Object.keys(e)){if("__errors"===r)continue;const t=e[r];if(t&&"object"==typeof t){const e=kb(t);if(e)return`${r}: ${e}`}}}}const{fields:$b}=mf(),Sb=$b.ObjectField;class Eb extends ie.Component{render(){return ob(this.props.schema)?ie.createElement(ie.Fragment,{},kp(this.props.schema.title),$p(this.props.schema.description),ie.createElement(wb,this.props)):ie.createElement(Sb,this.props)}}class jb extends ie.Component{constructor(e){super(e),this.props=e,this.handleChange=this.handleChange.bind(this)}render(){const e=this.props,r=e.schema;let t,n;const i=function(e){var r,t;let n={};return(null===(t=null===(r=e.lime)||void 0===r?void 0:r.component)||void 0===t?void 0:t.props)&&(n=Object.assign(Object.assign({},n),e.lime.component.props)),n}(e.schema);return function(e){return e.multipleOf<1&&0===e.minimum&&1===e.maximum}(r)&&(t=100,n="%"),ie.createElement(ub,{name:"limel-slider",value:e.value,events:{change:this.handleChange},widgetProps:e,extraProps:Object.assign({valuemin:r.minimum,valuemax:r.maximum,step:r.multipleOf,factor:t,unit:n},i)})}handleChange(e){const r=this.props;e.stopPropagation(),r.onChange&&r.onChange(e.detail)}}class xb extends ie.Component{constructor(e){super(e),this.props=e,this.handleChange=this.handleChange.bind(this)}render(){const e=this.props;if((yp(r=e.schema)||bp(r))&&"minimum"in r&&"maximum"in r&&"multipleOf"in r)return ie.createElement(jb,e);var r;const t=Ob(e.schema),n=function(e){return yp(e)&&e.multipleOf?+e.multipleOf||"any":bp(e)?Math.floor(+e.multipleOf)||1:"any"}(e.schema),i=function(e){var r,t;let n={};return e.minimum&&(n.min=e.minimum),e.maximum&&(n.max=e.maximum),e.maxLength&&(n.maxlength=e.maxLength),e.minLength&&(n.minlength=e.minLength),(null===(t=null===(r=e.lime)||void 0===r?void 0:r.component)||void 0===t?void 0:t.props)&&(n=Object.assign(Object.assign({},n),e.lime.component.props)),n}(e.schema);return ie.createElement(ub,{name:"limel-input-field",value:e.value,events:{change:this.handleChange},widgetProps:e,extraProps:Object.assign({step:n,type:t},i)})}handleChange(e){e.stopPropagation();const r=this.props,t=Ob(r.schema);if(!r.onChange)return;let n;n=e.detail||"number"==typeof e.detail?e.detail:"number"===t||r.required?null:"",r.onChange(n)}}function Ob(e){return yp(e)||bp(e)?"number":"email"===e.format?"email":"text"}function Ab(e){var r;const t=e.schema;return{text:e.label,value:e.value,secondaryText:null==t?void 0:t.description,icon:null===(r=null==t?void 0:t.lime)||void 0===r?void 0:r.icon,disabled:!!(null==t?void 0:t.readOnly)}}const Cb={CheckboxWidget:class extends ie.Component{constructor(e){super(e),this.props=e,this.handleChange=this.handleChange.bind(this)}render(){const e=this.props,r=null!==(i=null===(n=null===(t=e.schema.lime)||void 0===t?void 0:t.component)||void 0===n?void 0:n.props)&&void 0!==i?i:{};var t,n,i;return ie.createElement(ub,{name:"limel-checkbox",value:e.value,widgetProps:e,extraProps:Object.assign({checked:!!e.value},r),events:{change:this.handleChange}})}handleChange(e){const r=this.props;e.stopPropagation(),r.onChange&&r.onChange(e.detail)}},DateTimeWidget:sb,DateWidget:e=>{var{value:r}=e,t=function(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)r.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(t[n[i]]=e[n[i]])}return t}(e,["value"]);return"string"==typeof r&&/-\d\d$/.test(r)&&(r+="T00:00"),ie.createElement(sb,Object.assign({type:"date",value:r},t))},EmailWidget:xb,TextWidget:xb,SelectWidget:class extends ie.Component{constructor(e){super(e),this.props=e,this.state={modified:!1},this.handleChange=this.handleChange.bind(this)}render(){var e,r;const t=this.props,n=t.options.enumOptions.map(Ab);let i;i=t.multiple?function(e,r){return r.filter((r=>e.includes(r.value)))}(t.value,n):function(e,r){return r.find((r=>r.value===e))}(t.value,n);const o=(null===(r=null===(e=t.schema.lime)||void 0===e?void 0:e.component)||void 0===r?void 0:r.props)||{};return ie.createElement(ub,{name:"limel-select",value:i,events:{change:this.handleChange},widgetProps:t,extraProps:Object.assign({multiple:t.multiple,options:n},o)})}handleChange(e){const r=this.props;if(e.stopPropagation(),r.onChange)if(j(e.detail)){const t=e.detail.map((e=>e.value));r.onChange(t)}else r.onChange(e.detail.value)}},RangeWidget:jb};const _b=class{constructor(t){e(this,t),this.change=r(this,"change",7),this.validate=r(this,"validate",7),this.schema={},this.disabled=!1,this.revealErrors=!1,this.isValid=!0,this.initialized=!1,this.handleChange=this.handleChange.bind(this),this.getCustomErrorMessages=this.getCustomErrorMessages.bind(this)}connectedCallback(){this.initialize()}componentDidLoad(){this.initialize()}initialize(){this.initialized||this.host.shadowRoot.querySelector(".root")&&(this.initialized=!0,this.reactRender(),this.validateFormData())}componentDidUpdate(){this.reactRender(),this.validateFormData()}disconnectedCallback(){this.root&&(this.root.unmount(),this.root=void 0),this.initialized=!1}render(){return t("div",{key:"5d3f44861410db842a515bf6f28e0385aea101a5",class:"root"})}reactRender(){if(!this.root){const e=this.host.shadowRoot.querySelector(".root");this.root=ye.createRoot(e)}this.root.render(ie.createElement(yf,{schema:this.prepareSchema(this.schema),formData:this.value,onChange:this.handleChange,widgets:Cb,validator:qy,liveValidate:"onChange",experimental_defaultFormStateBehavior:{constAsDefaults:"skipOneOf",requiredBooleanDefault:"skip"},showErrorList:!1,extraErrors:this.getExtraErrors(this.errors),templates:{FieldTemplate:wp,ArrayFieldTemplate:Fy,ArrayFieldItemTemplate:zy,ObjectFieldTemplate:Gy},disabled:this.disabled,transformErrors:this.getCustomErrorMessages,formContext:{schema:this.schema,rootValue:this.value,propsFactory:this.propsFactory,revealErrors:this.revealErrors},fields:{SchemaField:pb,ArrayField:bb,ObjectField:Eb}},[]))}handleChange(e){this.change.emit(e.formData)}validateFormData(){var e;const{errors:r}=qy.validateFormData(null!==(e=this.value)&&void 0!==e?e:{},this.prepareSchema(this.schema));this.emitValidationStatus(r)}prepareSchema(e){const{$id:r}=e,t=function(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)r.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(t[n[i]]=e[n[i]])}return t}(e,["$id"]),n=JSON.stringify(t);let i=5381;for(let e=0;e<n.length;e++)i=(i<<5)+i+n.codePointAt(e)&4294967295;const o=(i>>>0).toString(36);return Object.assign(Object.assign({},e),{$id:r?`${r}-${o}`:o})}hasExtraErrors(){return!!this.errors&&Object.keys(this.errors).length>0}emitValidationStatus(e){const r=!(e&&0!==e.length||this.hasExtraErrors()),t=this.mapErrors(null!=e?e:[]);this.isValid===r&&r||this.validate.emit({valid:r,errors:t}),this.isValid=r}mapErrors(e){return e.map((e=>({name:e.name,property:e.property,message:e.message,schemaPath:e.schemaPath,params:e.params})))}getExtraErrors(e){var r,t,n;if(e)return r=e,n={},t=a(t=e=>Array.isArray(e)?{__errors:e}:this.getExtraErrors(e)),O(r,(function(e,r,i){x(n,r,t(e,r,i))})),n}getCustomErrorMessages(e){if(!this.transformErrors)return e;const r=this.mapErrors(e);return this.transformErrors.call({},r).map((r=>{const t=e.find((e=>r.property===e.property));return Object.assign(Object.assign({},t),{message:r.message})}))}get host(){return n(this)}};_b.style='@charset "UTF-8";.limel-form-row--layout{--limel-form-row-border-radius:0.375rem;--limel-form-row-icon-size:1.75rem;--limel-form-row-main-information-gap:0.5rem;display:flex;flex-direction:column}.limel-form-row--layout .row{display:flex;gap:0.5rem;flex-direction:column;padding:0.5rem 1rem}.limel-form-row--layout .row:nth-child(odd){background-color:var(--form-background-color-of-odd-rows, rgb(var(--contrast-200)))}.limel-form-row--layout .row:nth-child(even){background-color:var(--form-background-color-of-even-rows, transparent)}.limel-form-row--layout .row:first-child{border-radius:var(--limel-form-row-border-radius) var(--limel-form-row-border-radius) 0 0}.limel-form-row--layout .row:last-child{border-radius:0 0 var(--limel-form-row-border-radius) var(--limel-form-row-border-radius)}.limel-form-row--layout .main-information{position:relative;display:flex;flex-direction:row;align-items:center;gap:var(--limel-form-row-main-information-gap);min-width:0}.limel-form-row--layout .main-information{position:relative}.limel-form-row--layout .main-information>.rjsf-field{position:unset}.limel-form-row--layout .main-information>.rjsf-field limel-help{top:0}.limel-form-row--layout limel-icon{color:rgb(var(--contrast-1200));width:var(--limel-form-row-icon-size);flex-shrink:0;min-width:0}.limel-form-row--layout .title{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;margin:0;font-weight:normal;flex-grow:1;color:var(--limel-theme-on-surface-color);font-size:0.875rem}.limel-form-row--layout .description{margin:0;color:var(--limel-theme-text-secondary-on-background-color);font-size:var(--limel-theme-default-small-font-size);line-height:1.5}.limel-form-row--layout .has-icon .description{padding-left:calc(var(--limel-form-row-icon-size) + var(--limel-form-row-main-information-gap))}.limel-form-row--layout .rjsf-field{flex-shrink:0;display:flex;align-content:center}.limel-form-row--layout .rjsf-field limel-slider{min-width:8rem;display:block}*,*::after,*::before{box-sizing:border-box}.rjsf-field{min-width:0}.limel-form-array-item--simple{display:flex;align-items:center;padding:0.25rem}.limel-form-array-item--simple>*:first-child{flex:1;min-width:0}.array-items{isolation:isolate;display:flex;flex-direction:column;row-gap:var(--form-row-gap, 0.5rem);margin-top:1rem}.array-items.has-an-item-which-is-being-dragged limel-collapsible-section{--limel-cs-grid-template-rows:0fr;--limel-cs-opacity-transition-speed:0.2s;--limel-cs-grid-template-rows-transition-speed:0.2s;--limel-cs-open-header-bottom-border-radius:0.75rem}.array-item:has(limel-drag-handle:hover),.array-item:has(limel-drag-handle:focus-within),.array-item.is-elevated,.array-item.sortable-chosen{will-change:transform, box-shadow, border-radius, background-color}.array-item.sortable-ghost{border-radius:0.5rem;box-shadow:var(--shadow-depth-64), 0 0.65rem 0.75rem -0.425rem rgb(var(--color-black), 0.3)}.array-item.sortable-chosen{border-radius:0.5rem;background-color:var(--lime-elevated-surface-background-color)}.array-item.is-elevated[draggable=false]{animation:sit-here 0.8s forwards}@keyframes sit-here{0%{border-radius:0.5rem;background-color:var(--lime-elevated-surface-background-color);box-shadow:var(--shadow-depth-64), 0 0.65rem 0.75rem -0.425rem rgb(var(--color-black), 0.3)}100%{box-shadow:none}}limel-drag-handle{order:10}limel-collapsible-section.is-being-dragged{border-radius:0.75rem !important}.limel-form-layout--default{display:grid;column-gap:var(--form-column-gap, 1rem);row-gap:var(--form-row-gap, 1rem);padding:var(--form-body-padding, 1rem)}.limel-form-layout--grid{--min-height-of-one-row:2.5rem;display:grid;column-gap:var(--form-column-gap, 1rem);row-gap:var(--form-row-gap, 1rem);padding:var(--form-body-padding, 1rem);grid-template-columns:repeat(var(--number-of-columns), minmax(0, 1fr))}.limel-form-layout--grid.auto-reorder-to-avoid-empty-cells{grid-auto-flow:dense}.limel-form-layout--grid.layout-1-columns .limel-form-layout-colspan--1,.limel-form-layout--grid.layout-1-columns .limel-form-layout-colspan--2,.limel-form-layout--grid.layout-1-columns .limel-form-layout-colspan--3,.limel-form-layout--grid.layout-1-columns .limel-form-layout-colspan--4,.limel-form-layout--grid.layout-1-columns .limel-form-layout-colspan--5{grid-column:span 1}.limel-form-layout--grid.layout-2-columns .limel-form-layout-colspan--1{grid-column:span 1}.limel-form-layout--grid.layout-2-columns .limel-form-layout-colspan--2,.limel-form-layout--grid.layout-2-columns .limel-form-layout-colspan--3,.limel-form-layout--grid.layout-2-columns .limel-form-layout-colspan--4,.limel-form-layout--grid.layout-2-columns .limel-form-layout-colspan--5{grid-column:span 2}.limel-form-layout--grid.layout-3-columns .limel-form-layout-colspan--1{grid-column:span 1}.limel-form-layout--grid.layout-3-columns .limel-form-layout-colspan--2{grid-column:span 2}.limel-form-layout--grid.layout-3-columns .limel-form-layout-colspan--3,.limel-form-layout--grid.layout-3-columns .limel-form-layout-colspan--4,.limel-form-layout--grid.layout-3-columns .limel-form-layout-colspan--5{grid-column:span 3}.limel-form-layout--grid.layout-4-columns .limel-form-layout-colspan--1{grid-column:span 1}.limel-form-layout--grid.layout-4-columns .limel-form-layout-colspan--2{grid-column:span 2}.limel-form-layout--grid.layout-4-columns .limel-form-layout-colspan--3{grid-column:span 3}.limel-form-layout--grid.layout-4-columns .limel-form-layout-colspan--4,.limel-form-layout--grid.layout-4-columns .limel-form-layout-colspan--5{grid-column:span 4}.limel-form-layout--grid.layout-5-columns .limel-form-layout-colspan--1{grid-column:span 1}.limel-form-layout--grid.layout-5-columns .limel-form-layout-colspan--2{grid-column:span 2}.limel-form-layout--grid.layout-5-columns .limel-form-layout-colspan--3{grid-column:span 3}.limel-form-layout--grid.layout-5-columns .limel-form-layout-colspan--4{grid-column:span 4}.limel-form-layout--grid.layout-5-columns .limel-form-layout-colspan--5{grid-column:span 5}.limel-form-layout--grid .limel-form-layout-colspan--all{grid-column:1/-1}.limel-form-layout--grid limel-checkbox,.limel-form-layout--grid limel-switch{min-height:var(--min-height-of-one-row)}.limel-form-layout--grid limel-checkbox{display:block}.limel-form-layout--grid limel-switch{margin-left:0.5rem}.form-error{color:var(--limel-theme-error-color);font-size:0.6875rem;line-height:1.5;visibility:inherit;padding-right:1rem;padding-left:1rem;padding-top:0.25rem}.button-add-new{margin-top:0.5rem;width:100%}h1{position:relative;margin-top:0;margin-bottom:0;word-break:break-word;hyphens:auto;-webkit-hyphens:auto;text-wrap:balance;font-size:var(--limel-form-h1-font-size);line-height:calc(var(--limel-form-h1-font-size) * 1.42857);letter-spacing:-0.01rem;font-weight:500}limel-markdown{display:block;margin-bottom:0.5rem}.rjsf-field{position:relative}.rjsf-field limel-help{position:absolute;top:calc(var(--form-row-gap, 1rem) * -0.5);left:calc(var(--form-column-gap, 1rem) * -0.5)}.rjsf-field h1{color:rgb(var(--contrast-1400), 0.8)}.rjsf-field h1{--limel-form-h1-font-size:1.476rem;font-weight:800}.rjsf-field .rjsf-field h1{--limel-form-h1-font-size:1.383rem;font-weight:700}.rjsf-field .rjsf-field h1:before{content:"";display:block;position:absolute;top:0;bottom:0;margin:auto;left:-0.75rem;background-color:var(--lime-primary-color, var(--limel-theme-primary-color));width:0.125rem;height:1.5rem;border-radius:0.125rem;opacity:0.6}.rjsf-field .rjsf-field .rjsf-field h1{--limel-form-h1-font-size:1.296rem;font-weight:600}.rjsf-field .rjsf-field .rjsf-field h1:before{display:none}.rjsf-field .rjsf-field .rjsf-field .rjsf-field h1{--limel-form-h1-font-size:1.215rem}.rjsf-field .rjsf-field .rjsf-field .rjsf-field h1:before{display:none}.rjsf-field .rjsf-field .rjsf-field .rjsf-field .rjsf-field h1{--limel-form-h1-font-size:1.138rem}.rjsf-field .rjsf-field .rjsf-field .rjsf-field .rjsf-field h1:before{display:none}.rjsf-field .rjsf-field .rjsf-field .rjsf-field .rjsf-field .rjsf-field h1{--limel-form-h1-font-size:1.067rem}.rjsf-field .rjsf-field .rjsf-field .rjsf-field .rjsf-field .rjsf-field h1:before{display:none}';export{_b as limel_form}