fastapi-rtk 0.0.20 → 0.0.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- (function(A,T){typeof exports=="object"&&typeof module<"u"?T(exports,require("react"),require("@mantine/core"),require("@mantine/form"),require("@mantine/dates"),require("@mantine/hooks"),require("@jsonforms/react"),require("@jsonforms/core"),require("@emotion/react"),require("react-router-dom")):typeof define=="function"&&define.amd?define(["exports","react","@mantine/core","@mantine/form","@mantine/dates","@mantine/hooks","@jsonforms/react","@jsonforms/core","@emotion/react","react-router-dom"],T):(A=typeof globalThis<"u"?globalThis:A||self,T(A["fastapi-rtk"]={},A.React$2,A.core,A.form,A.dates,A.hooks,A.react,A.core$1,A.react$1,A.reactRouterDom))})(this,function(A,T,v,Ui,or,Nr,ye,V,Gt,Md){"use strict";var Ek=Object.defineProperty;var Sk=(A,T,v)=>T in A?Ek(A,T,{enumerable:!0,configurable:!0,writable:!0,value:v}):A[T]=v;var Dd=(A,T,v)=>(Sk(A,typeof T!="symbol"?T+"":T,v),v);function Nd(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const tt=Nd(T);var Ie=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ot(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Dt(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:function(){return e[n]}})}),r}var Vi={exports:{}},Fr={};/**
1
+ (function(A,T){typeof exports=="object"&&typeof module<"u"?T(exports,require("react"),require("@mantine/core"),require("@mantine/form"),require("@mantine/dates"),require("@mantine/hooks"),require("@jsonforms/react"),require("@jsonforms/core"),require("@emotion/react"),require("react-router-dom")):typeof define=="function"&&define.amd?define(["exports","react","@mantine/core","@mantine/form","@mantine/dates","@mantine/hooks","@jsonforms/react","@jsonforms/core","@emotion/react","react-router-dom"],T):(A=typeof globalThis<"u"?globalThis:A||self,T(A["fastapi-rtk"]={},A.React$2,A.core,A.form,A.dates,A.hooks,A.react,A.core$1,A.react$1,A.reactRouterDom))})(this,function(A,T,v,Ui,or,Nr,ve,V,Gt,Md){"use strict";var Ek=Object.defineProperty;var Sk=(A,T,v)=>T in A?Ek(A,T,{enumerable:!0,configurable:!0,writable:!0,value:v}):A[T]=v;var Dd=(A,T,v)=>(Sk(A,typeof T!="symbol"?T+"":T,v),v);function Nd(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const tt=Nd(T);var Ie=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ot(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Dt(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:function(){return e[n]}})}),r}var Vi={exports:{}},Fr={};/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.min.js
4
4
  *
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var Ua;function Fd(){if(Ua)return Fr;Ua=1;var e=T,t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o={key:!0,ref:!0,__self:!0,__source:!0};function a(s,l,u){var c,f={},p=null,g=null;u!==void 0&&(p=""+u),l.key!==void 0&&(p=""+l.key),l.ref!==void 0&&(g=l.ref);for(c in l)n.call(l,c)&&!o.hasOwnProperty(c)&&(f[c]=l[c]);if(s&&s.defaultProps)for(c in l=s.defaultProps,l)f[c]===void 0&&(f[c]=l[c]);return{$$typeof:t,type:s,key:p,ref:g,props:f,_owner:i.current}}return Fr.Fragment=r,Fr.jsx=a,Fr.jsxs=a,Fr}var Lr={};/**
9
+ */var Ua;function Fd(){if(Ua)return Fr;Ua=1;var e=T,t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o={key:!0,ref:!0,__self:!0,__source:!0};function a(s,l,u){var f,c={},p=null,y=null;u!==void 0&&(p=""+u),l.key!==void 0&&(p=""+l.key),l.ref!==void 0&&(y=l.ref);for(f in l)n.call(l,f)&&!o.hasOwnProperty(f)&&(c[f]=l[f]);if(s&&s.defaultProps)for(f in l=s.defaultProps,l)c[f]===void 0&&(c[f]=l[f]);return{$$typeof:t,type:s,key:p,ref:y,props:c,_owner:i.current}}return Fr.Fragment=r,Fr.jsx=a,Fr.jsxs=a,Fr}var Lr={};/**
10
10
  * @license React
11
11
  * react-jsx-runtime.development.js
12
12
  *
@@ -14,46 +14,46 @@
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var Va;function Ld(){return Va||(Va=1,process.env.NODE_ENV!=="production"&&function(){var e=T,t=Symbol.for("react.element"),r=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"),s=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen"),y=Symbol.iterator,h="@@iterator";function x(m){if(m===null||typeof m!="object")return null;var E=y&&m[y]||m[h];return typeof E=="function"?E:null}var w=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function j(m){{for(var E=arguments.length,R=new Array(E>1?E-1:0),W=1;W<E;W++)R[W-1]=arguments[W];M("error",m,R)}}function M(m,E,R){{var W=w.ReactDebugCurrentFrame,ne=W.getStackAddendum();ne!==""&&(E+="%s",R=R.concat([ne]));var de=R.map(function(re){return String(re)});de.unshift("Warning: "+E),Function.prototype.apply.call(console[m],console,de)}}var F=!1,_=!1,P=!1,D=!1,te=!1,ae;ae=Symbol.for("react.module.reference");function Oe(m){return!!(typeof m=="string"||typeof m=="function"||m===n||m===o||te||m===i||m===u||m===c||D||m===g||F||_||P||typeof m=="object"&&m!==null&&(m.$$typeof===p||m.$$typeof===f||m.$$typeof===a||m.$$typeof===s||m.$$typeof===l||m.$$typeof===ae||m.getModuleId!==void 0))}function U(m,E,R){var W=m.displayName;if(W)return W;var ne=E.displayName||E.name||"";return ne!==""?R+"("+ne+")":R}function se(m){return m.displayName||"Context"}function he(m){if(m==null)return null;if(typeof m.tag=="number"&&j("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof m=="function")return m.displayName||m.name||null;if(typeof m=="string")return m;switch(m){case n:return"Fragment";case r:return"Portal";case o:return"Profiler";case i:return"StrictMode";case u:return"Suspense";case c:return"SuspenseList"}if(typeof m=="object")switch(m.$$typeof){case s:var E=m;return se(E)+".Consumer";case a:var R=m;return se(R._context)+".Provider";case l:return U(m,m.render,"ForwardRef");case f:var W=m.displayName||null;return W!==null?W:he(m.type)||"Memo";case p:{var ne=m,de=ne._payload,re=ne._init;try{return he(re(de))}catch{return null}}}return null}var ge=Object.assign,qe=0,je,Ze,ot,vt,C,k,Y;function L(){}L.__reactDisabledLog=!0;function G(){{if(qe===0){je=console.log,Ze=console.info,ot=console.warn,vt=console.error,C=console.group,k=console.groupCollapsed,Y=console.groupEnd;var m={configurable:!0,enumerable:!0,value:L,writable:!0};Object.defineProperties(console,{info:m,log:m,warn:m,error:m,group:m,groupCollapsed:m,groupEnd:m})}qe++}}function z(){{if(qe--,qe===0){var m={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:ge({},m,{value:je}),info:ge({},m,{value:Ze}),warn:ge({},m,{value:ot}),error:ge({},m,{value:vt}),group:ge({},m,{value:C}),groupCollapsed:ge({},m,{value:k}),groupEnd:ge({},m,{value:Y})})}qe<0&&j("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var B=w.ReactCurrentDispatcher,q;function K(m,E,R){{if(q===void 0)try{throw Error()}catch(ne){var W=ne.stack.trim().match(/\n( *(at )?)/);q=W&&W[1]||""}return`
18
- `+q+m}}var J=!1,X;{var Ae=typeof WeakMap=="function"?WeakMap:Map;X=new Ae}function $(m,E){if(!m||J)return"";{var R=X.get(m);if(R!==void 0)return R}var W;J=!0;var ne=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var de;de=B.current,B.current=null,G();try{if(E){var re=function(){throw Error()};if(Object.defineProperty(re.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(re,[])}catch(me){W=me}Reflect.construct(m,[],re)}else{try{re.call()}catch(me){W=me}m.call(re.prototype)}}else{try{throw Error()}catch(me){W=me}m()}}catch(me){if(me&&W&&typeof me.stack=="string"){for(var O=me.stack.split(`
17
+ */var Va;function Ld(){return Va||(Va=1,process.env.NODE_ENV!=="production"&&function(){var e=T,t=Symbol.for("react.element"),r=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"),s=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),c=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),y=Symbol.for("react.offscreen"),g=Symbol.iterator,h="@@iterator";function x(m){if(m===null||typeof m!="object")return null;var E=g&&m[g]||m[h];return typeof E=="function"?E:null}var w=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function k(m){{for(var E=arguments.length,$=new Array(E>1?E-1:0),W=1;W<E;W++)$[W-1]=arguments[W];D("error",m,$)}}function D(m,E,$){{var W=w.ReactDebugCurrentFrame,ie=W.getStackAddendum();ie!==""&&(E+="%s",$=$.concat([ie]));var pe=$.map(function(ne){return String(ne)});pe.unshift("Warning: "+E),Function.prototype.apply.call(console[m],console,pe)}}var N=!1,_=!1,R=!1,F=!1,J=!1,ee;ee=Symbol.for("react.module.reference");function oe(m){return!!(typeof m=="string"||typeof m=="function"||m===n||m===o||J||m===i||m===u||m===f||F||m===y||N||_||R||typeof m=="object"&&m!==null&&(m.$$typeof===p||m.$$typeof===c||m.$$typeof===a||m.$$typeof===s||m.$$typeof===l||m.$$typeof===ee||m.getModuleId!==void 0))}function z(m,E,$){var W=m.displayName;if(W)return W;var ie=E.displayName||E.name||"";return ie!==""?$+"("+ie+")":$}function le(m){return m.displayName||"Context"}function me(m){if(m==null)return null;if(typeof m.tag=="number"&&k("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof m=="function")return m.displayName||m.name||null;if(typeof m=="string")return m;switch(m){case n:return"Fragment";case r:return"Portal";case o:return"Profiler";case i:return"StrictMode";case u:return"Suspense";case f:return"SuspenseList"}if(typeof m=="object")switch(m.$$typeof){case s:var E=m;return le(E)+".Consumer";case a:var $=m;return le($._context)+".Provider";case l:return z(m,m.render,"ForwardRef");case c:var W=m.displayName||null;return W!==null?W:me(m.type)||"Memo";case p:{var ie=m,pe=ie._payload,ne=ie._init;try{return me(ne(pe))}catch{return null}}}return null}var ye=Object.assign,qe=0,je,Ze,ot,vt,C,P,Y;function L(){}L.__reactDisabledLog=!0;function G(){{if(qe===0){je=console.log,Ze=console.info,ot=console.warn,vt=console.error,C=console.group,P=console.groupCollapsed,Y=console.groupEnd;var m={configurable:!0,enumerable:!0,value:L,writable:!0};Object.defineProperties(console,{info:m,log:m,warn:m,error:m,group:m,groupCollapsed:m,groupEnd:m})}qe++}}function U(){{if(qe--,qe===0){var m={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:ye({},m,{value:je}),info:ye({},m,{value:Ze}),warn:ye({},m,{value:ot}),error:ye({},m,{value:vt}),group:ye({},m,{value:C}),groupCollapsed:ye({},m,{value:P}),groupEnd:ye({},m,{value:Y})})}qe<0&&k("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var B=w.ReactCurrentDispatcher,q;function K(m,E,$){{if(q===void 0)try{throw Error()}catch(ie){var W=ie.stack.trim().match(/\n( *(at )?)/);q=W&&W[1]||""}return`
18
+ `+q+m}}var Z=!1,X;{var Ae=typeof WeakMap=="function"?WeakMap:Map;X=new Ae}function I(m,E){if(!m||Z)return"";{var $=X.get(m);if($!==void 0)return $}var W;Z=!0;var ie=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var pe;pe=B.current,B.current=null,G();try{if(E){var ne=function(){throw Error()};if(Object.defineProperty(ne.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ne,[])}catch(ge){W=ge}Reflect.construct(m,[],ne)}else{try{ne.call()}catch(ge){W=ge}m.call(ne.prototype)}}else{try{throw Error()}catch(ge){W=ge}m()}}catch(ge){if(ge&&W&&typeof ge.stack=="string"){for(var O=ge.stack.split(`
19
19
  `),b=W.stack.split(`
20
- `),S=O.length-1,I=b.length-1;S>=1&&I>=0&&O[S]!==b[I];)I--;for(;S>=1&&I>=0;S--,I--)if(O[S]!==b[I]){if(S!==1||I!==1)do if(S--,I--,I<0||O[S]!==b[I]){var Z=`
21
- `+O[S].replace(" at new "," at ");return m.displayName&&Z.includes("<anonymous>")&&(Z=Z.replace("<anonymous>",m.displayName)),typeof m=="function"&&X.set(m,Z),Z}while(S>=1&&I>=0);break}}}finally{J=!1,B.current=de,z(),Error.prepareStackTrace=ne}var _e=m?m.displayName||m.name:"",be=_e?K(_e):"";return typeof m=="function"&&X.set(m,be),be}function $e(m,E,R){return $(m,!1)}function N(m){var E=m.prototype;return!!(E&&E.isReactComponent)}function Ye(m,E,R){if(m==null)return"";if(typeof m=="function")return $(m,N(m));if(typeof m=="string")return K(m);switch(m){case u:return K("Suspense");case c:return K("SuspenseList")}if(typeof m=="object")switch(m.$$typeof){case l:return $e(m.render);case f:return Ye(m.type,E,R);case p:{var W=m,ne=W._payload,de=W._init;try{return Ye(de(ne),E,R)}catch{}}}return""}var Qe=Object.prototype.hasOwnProperty,dt={},rr=w.ReactDebugCurrentFrame;function jt(m){if(m){var E=m._owner,R=Ye(m.type,m._source,E?E.type:null);rr.setExtraStackFrame(R)}else rr.setExtraStackFrame(null)}function Oi(m,E,R,W,ne){{var de=Function.call.bind(Qe);for(var re in m)if(de(m,re)){var O=void 0;try{if(typeof m[re]!="function"){var b=Error((W||"React class")+": "+R+" type `"+re+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof m[re]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw b.name="Invariant Violation",b}O=m[re](E,re,W,R,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(S){O=S}O&&!(O instanceof Error)&&(jt(ne),j("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",W||"React class",R,re,typeof O),jt(null)),O instanceof Error&&!(O.message in dt)&&(dt[O.message]=!0,jt(ne),j("Failed %s type: %s",R,O.message),jt(null))}}}var Ai=Array.isArray;function fn(m){return Ai(m)}function dn(m){{var E=typeof Symbol=="function"&&Symbol.toStringTag,R=E&&m[Symbol.toStringTag]||m.constructor.name||"Object";return R}}function nr(m){try{return It(m),!1}catch{return!0}}function It(m){return""+m}function $t(m){if(nr(m))return j("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",dn(m)),It(m)}var Bt=w.ReactCurrentOwner,Pi={key:!0,ref:!0,__self:!0,__source:!0},pn,jr,Ir;Ir={};function $r(m){if(Qe.call(m,"ref")){var E=Object.getOwnPropertyDescriptor(m,"ref").get;if(E&&E.isReactWarning)return!1}return m.ref!==void 0}function Rr(m){if(Qe.call(m,"key")){var E=Object.getOwnPropertyDescriptor(m,"key").get;if(E&&E.isReactWarning)return!1}return m.key!==void 0}function bt(m,E){if(typeof m.ref=="string"&&Bt.current&&E&&Bt.current.stateNode!==E){var R=he(Bt.current.type);Ir[R]||(j('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',he(Bt.current.type),m.ref),Ir[R]=!0)}}function Wt(m,E){{var R=function(){pn||(pn=!0,j("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",E))};R.isReactWarning=!0,Object.defineProperty(m,"key",{get:R,configurable:!0})}}function hn(m,E){{var R=function(){jr||(jr=!0,j("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",E))};R.isReactWarning=!0,Object.defineProperty(m,"ref",{get:R,configurable:!0})}}var mn=function(m,E,R,W,ne,de,re){var O={$$typeof:t,type:m,key:E,ref:R,props:re,_owner:de};return O._store={},Object.defineProperty(O._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(O,"_self",{configurable:!1,enumerable:!1,writable:!1,value:W}),Object.defineProperty(O,"_source",{configurable:!1,enumerable:!1,writable:!1,value:ne}),Object.freeze&&(Object.freeze(O.props),Object.freeze(O)),O};function za(m,E,R,W,ne){{var de,re={},O=null,b=null;R!==void 0&&($t(R),O=""+R),Rr(E)&&($t(E.key),O=""+E.key),$r(E)&&(b=E.ref,bt(E,ne));for(de in E)Qe.call(E,de)&&!Pi.hasOwnProperty(de)&&(re[de]=E[de]);if(m&&m.defaultProps){var S=m.defaultProps;for(de in S)re[de]===void 0&&(re[de]=S[de])}if(O||b){var I=typeof m=="function"?m.displayName||m.name||"Unknown":m;O&&Wt(re,I),b&&hn(re,I)}return mn(m,O,b,ne,W,Bt.current,re)}}var Rt=w.ReactCurrentOwner,ki=w.ReactDebugCurrentFrame;function Ht(m){if(m){var E=m._owner,R=Ye(m.type,m._source,E?E.type:null);ki.setExtraStackFrame(R)}else ki.setExtraStackFrame(null)}var Se;Se=!1;function Ct(m){return typeof m=="object"&&m!==null&&m.$$typeof===t}function ji(){{if(Rt.current){var m=he(Rt.current.type);if(m)return`
20
+ `),S=O.length-1,j=b.length-1;S>=1&&j>=0&&O[S]!==b[j];)j--;for(;S>=1&&j>=0;S--,j--)if(O[S]!==b[j]){if(S!==1||j!==1)do if(S--,j--,j<0||O[S]!==b[j]){var Q=`
21
+ `+O[S].replace(" at new "," at ");return m.displayName&&Q.includes("<anonymous>")&&(Q=Q.replace("<anonymous>",m.displayName)),typeof m=="function"&&X.set(m,Q),Q}while(S>=1&&j>=0);break}}}finally{Z=!1,B.current=pe,U(),Error.prepareStackTrace=ie}var Te=m?m.displayName||m.name:"",xe=Te?K(Te):"";return typeof m=="function"&&X.set(m,xe),xe}function $e(m,E,$){return I(m,!1)}function M(m){var E=m.prototype;return!!(E&&E.isReactComponent)}function Ye(m,E,$){if(m==null)return"";if(typeof m=="function")return I(m,M(m));if(typeof m=="string")return K(m);switch(m){case u:return K("Suspense");case f:return K("SuspenseList")}if(typeof m=="object")switch(m.$$typeof){case l:return $e(m.render);case c:return Ye(m.type,E,$);case p:{var W=m,ie=W._payload,pe=W._init;try{return Ye(pe(ie),E,$)}catch{}}}return""}var Qe=Object.prototype.hasOwnProperty,dt={},rr=w.ReactDebugCurrentFrame;function jt(m){if(m){var E=m._owner,$=Ye(m.type,m._source,E?E.type:null);rr.setExtraStackFrame($)}else rr.setExtraStackFrame(null)}function Oi(m,E,$,W,ie){{var pe=Function.call.bind(Qe);for(var ne in m)if(pe(m,ne)){var O=void 0;try{if(typeof m[ne]!="function"){var b=Error((W||"React class")+": "+$+" type `"+ne+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof m[ne]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw b.name="Invariant Violation",b}O=m[ne](E,ne,W,$,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(S){O=S}O&&!(O instanceof Error)&&(jt(ie),k("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",W||"React class",$,ne,typeof O),jt(null)),O instanceof Error&&!(O.message in dt)&&(dt[O.message]=!0,jt(ie),k("Failed %s type: %s",$,O.message),jt(null))}}}var Ai=Array.isArray;function fn(m){return Ai(m)}function dn(m){{var E=typeof Symbol=="function"&&Symbol.toStringTag,$=E&&m[Symbol.toStringTag]||m.constructor.name||"Object";return $}}function nr(m){try{return It(m),!1}catch{return!0}}function It(m){return""+m}function $t(m){if(nr(m))return k("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",dn(m)),It(m)}var Bt=w.ReactCurrentOwner,Pi={key:!0,ref:!0,__self:!0,__source:!0},pn,jr,Ir;Ir={};function $r(m){if(Qe.call(m,"ref")){var E=Object.getOwnPropertyDescriptor(m,"ref").get;if(E&&E.isReactWarning)return!1}return m.ref!==void 0}function Rr(m){if(Qe.call(m,"key")){var E=Object.getOwnPropertyDescriptor(m,"key").get;if(E&&E.isReactWarning)return!1}return m.key!==void 0}function bt(m,E){if(typeof m.ref=="string"&&Bt.current&&E&&Bt.current.stateNode!==E){var $=me(Bt.current.type);Ir[$]||(k('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',me(Bt.current.type),m.ref),Ir[$]=!0)}}function Wt(m,E){{var $=function(){pn||(pn=!0,k("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",E))};$.isReactWarning=!0,Object.defineProperty(m,"key",{get:$,configurable:!0})}}function hn(m,E){{var $=function(){jr||(jr=!0,k("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",E))};$.isReactWarning=!0,Object.defineProperty(m,"ref",{get:$,configurable:!0})}}var mn=function(m,E,$,W,ie,pe,ne){var O={$$typeof:t,type:m,key:E,ref:$,props:ne,_owner:pe};return O._store={},Object.defineProperty(O._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(O,"_self",{configurable:!1,enumerable:!1,writable:!1,value:W}),Object.defineProperty(O,"_source",{configurable:!1,enumerable:!1,writable:!1,value:ie}),Object.freeze&&(Object.freeze(O.props),Object.freeze(O)),O};function za(m,E,$,W,ie){{var pe,ne={},O=null,b=null;$!==void 0&&($t($),O=""+$),Rr(E)&&($t(E.key),O=""+E.key),$r(E)&&(b=E.ref,bt(E,ie));for(pe in E)Qe.call(E,pe)&&!Pi.hasOwnProperty(pe)&&(ne[pe]=E[pe]);if(m&&m.defaultProps){var S=m.defaultProps;for(pe in S)ne[pe]===void 0&&(ne[pe]=S[pe])}if(O||b){var j=typeof m=="function"?m.displayName||m.name||"Unknown":m;O&&Wt(ne,j),b&&hn(ne,j)}return mn(m,O,b,ie,W,Bt.current,ne)}}var Rt=w.ReactCurrentOwner,ki=w.ReactDebugCurrentFrame;function Ht(m){if(m){var E=m._owner,$=Ye(m.type,m._source,E?E.type:null);ki.setExtraStackFrame($)}else ki.setExtraStackFrame(null)}var we;we=!1;function Ct(m){return typeof m=="object"&&m!==null&&m.$$typeof===t}function ji(){{if(Rt.current){var m=me(Rt.current.type);if(m)return`
22
22
 
23
- Check the render method of \``+m+"`."}return""}}function Ii(m){{if(m!==void 0){var E=m.fileName.replace(/^.*[\\\/]/,""),R=m.lineNumber;return`
23
+ Check the render method of \``+m+"`."}return""}}function Ii(m){{if(m!==void 0){var E=m.fileName.replace(/^.*[\\\/]/,""),$=m.lineNumber;return`
24
24
 
25
- Check your code at `+E+":"+R+"."}return""}}var Dr={};function $i(m){{var E=ji();if(!E){var R=typeof m=="string"?m:m.displayName||m.name;R&&(E=`
25
+ Check your code at `+E+":"+$+"."}return""}}var Dr={};function $i(m){{var E=ji();if(!E){var $=typeof m=="string"?m:m.displayName||m.name;$&&(E=`
26
26
 
27
- Check the top-level render call using <`+R+">.")}return E}}function gn(m,E){{if(!m._store||m._store.validated||m.key!=null)return;m._store.validated=!0;var R=$i(E);if(Dr[R])return;Dr[R]=!0;var W="";m&&m._owner&&m._owner!==Rt.current&&(W=" It was passed a child from "+he(m._owner.type)+"."),Ht(m),j('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',R,W),Ht(null)}}function Ri(m,E){{if(typeof m!="object")return;if(fn(m))for(var R=0;R<m.length;R++){var W=m[R];Ct(W)&&gn(W,E)}else if(Ct(m))m._store&&(m._store.validated=!0);else if(m){var ne=x(m);if(typeof ne=="function"&&ne!==m.entries)for(var de=ne.call(m),re;!(re=de.next()).done;)Ct(re.value)&&gn(re.value,E)}}}function Di(m){{var E=m.type;if(E==null||typeof E=="string")return;var R;if(typeof E=="function")R=E.propTypes;else if(typeof E=="object"&&(E.$$typeof===l||E.$$typeof===f))R=E.propTypes;else return;if(R){var W=he(E);Oi(R,m.props,"prop",W,m)}else if(E.PropTypes!==void 0&&!Se){Se=!0;var ne=he(E);j("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",ne||"Unknown")}typeof E.getDefaultProps=="function"&&!E.getDefaultProps.isReactClassApproved&&j("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Mi(m){{for(var E=Object.keys(m.props),R=0;R<E.length;R++){var W=E[R];if(W!=="children"&&W!=="key"){Ht(m),j("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",W),Ht(null);break}}m.ref!==null&&(Ht(m),j("Invalid attribute `ref` supplied to `React.Fragment`."),Ht(null))}}var Ni={};function at(m,E,R,W,ne,de){{var re=Oe(m);if(!re){var O="";(m===void 0||typeof m=="object"&&m!==null&&Object.keys(m).length===0)&&(O+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var b=Ii(ne);b?O+=b:O+=ji();var S;m===null?S="null":fn(m)?S="array":m!==void 0&&m.$$typeof===t?(S="<"+(he(m.type)||"Unknown")+" />",O=" Did you accidentally export a JSX literal instead of a component?"):S=typeof m,j("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",S,O)}var I=za(m,E,R,ne,de);if(I==null)return I;if(re){var Z=E.children;if(Z!==void 0)if(W)if(fn(Z)){for(var _e=0;_e<Z.length;_e++)Ri(Z[_e],m);Object.freeze&&Object.freeze(Z)}else j("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Ri(Z,m)}if(Qe.call(E,"key")){var be=he(m),me=Object.keys(E).filter(function(Ne){return Ne!=="key"}),et=me.length>0?"{key: someKey, "+me.join(": ..., ")+": ...}":"{key: someKey}";if(!Ni[be+et]){var ir=me.length>0?"{"+me.join(": ..., ")+": ...}":"{}";j(`A props object containing a "key" prop is being spread into JSX:
27
+ Check the top-level render call using <`+$+">.")}return E}}function gn(m,E){{if(!m._store||m._store.validated||m.key!=null)return;m._store.validated=!0;var $=$i(E);if(Dr[$])return;Dr[$]=!0;var W="";m&&m._owner&&m._owner!==Rt.current&&(W=" It was passed a child from "+me(m._owner.type)+"."),Ht(m),k('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',$,W),Ht(null)}}function Ri(m,E){{if(typeof m!="object")return;if(fn(m))for(var $=0;$<m.length;$++){var W=m[$];Ct(W)&&gn(W,E)}else if(Ct(m))m._store&&(m._store.validated=!0);else if(m){var ie=x(m);if(typeof ie=="function"&&ie!==m.entries)for(var pe=ie.call(m),ne;!(ne=pe.next()).done;)Ct(ne.value)&&gn(ne.value,E)}}}function Di(m){{var E=m.type;if(E==null||typeof E=="string")return;var $;if(typeof E=="function")$=E.propTypes;else if(typeof E=="object"&&(E.$$typeof===l||E.$$typeof===c))$=E.propTypes;else return;if($){var W=me(E);Oi($,m.props,"prop",W,m)}else if(E.PropTypes!==void 0&&!we){we=!0;var ie=me(E);k("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",ie||"Unknown")}typeof E.getDefaultProps=="function"&&!E.getDefaultProps.isReactClassApproved&&k("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Mi(m){{for(var E=Object.keys(m.props),$=0;$<E.length;$++){var W=E[$];if(W!=="children"&&W!=="key"){Ht(m),k("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",W),Ht(null);break}}m.ref!==null&&(Ht(m),k("Invalid attribute `ref` supplied to `React.Fragment`."),Ht(null))}}var Ni={};function at(m,E,$,W,ie,pe){{var ne=oe(m);if(!ne){var O="";(m===void 0||typeof m=="object"&&m!==null&&Object.keys(m).length===0)&&(O+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var b=Ii(ie);b?O+=b:O+=ji();var S;m===null?S="null":fn(m)?S="array":m!==void 0&&m.$$typeof===t?(S="<"+(me(m.type)||"Unknown")+" />",O=" Did you accidentally export a JSX literal instead of a component?"):S=typeof m,k("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",S,O)}var j=za(m,E,$,ie,pe);if(j==null)return j;if(ne){var Q=E.children;if(Q!==void 0)if(W)if(fn(Q)){for(var Te=0;Te<Q.length;Te++)Ri(Q[Te],m);Object.freeze&&Object.freeze(Q)}else k("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Ri(Q,m)}if(Qe.call(E,"key")){var xe=me(m),ge=Object.keys(E).filter(function(Ne){return Ne!=="key"}),et=ge.length>0?"{key: someKey, "+ge.join(": ..., ")+": ...}":"{key: someKey}";if(!Ni[xe+et]){var ir=ge.length>0?"{"+ge.join(": ..., ")+": ...}":"{}";k(`A props object containing a "key" prop is being spread into JSX:
28
28
  let props = %s;
29
29
  <%s {...props} />
30
30
  React keys must be passed directly to JSX without using spread:
31
31
  let props = %s;
32
- <%s key={someKey} {...props} />`,et,be,ir,be),Ni[be+et]=!0}}return m===n?Mi(I):Di(I),I}}function Mr(m,E,R){return at(m,E,R,!0)}function Fi(m,E,R){return at(m,E,R,!1)}var Li=Fi,zi=Mr;Lr.Fragment=n,Lr.jsx=Li,Lr.jsxs=zi}()),Lr}process.env.NODE_ENV==="production"?Vi.exports=Fd():Vi.exports=Ld();var d=Vi.exports;function Ve({path:e,method:t,body:r=void 0,queryParams:n=void 0}){Object.entries(n||{}).forEach(([o,a])=>{(Array.isArray(a)||typeof a=="object")&&(a=JSON.stringify(a)),e.includes("?")||(e+="?"),e+=`${o}=${a}&`}),e.endsWith("&")&&(e=e.slice(0,-1));const i={method:t,mode:"cors",credentials:"include",headers:{"Content-Type":"application/json"},redirect:"follow",referrerPolicy:"no-referrer",body:r?JSON.stringify(r):null};return{fetchPath:e,options:i}}function zd(e){const t=[];if(e.length===0)return"";if(typeof e[0]!="string")throw new TypeError("Url must be a string. Received "+e[0]);e[0].match(/^[^/:]+:\/*$/)&&e.length>1&&(e[0]=e.shift()+e[0]),e[0].match(/^file:\/\/\//)?e[0]=e[0].replace(/^([^/:]+):\/*/,"$1:///"):e[0]=e[0].replace(/^([^/:]+):\/*/,"$1://");for(let i=0;i<e.length;i++){let o=e[i];if(typeof o!="string")throw new TypeError("Url must be a string. Received "+o);o!==""&&(i>0&&(o=o.replace(/^[\/]+/,"")),i<e.length-1?o=o.replace(/[\/]+$/,""):o=o.replace(/[\/]+$/,"/"),t.push(o))}let r=t.join("/");r=r.replace(/\/(\?|&|#[^!])/g,"$1");const n=r.split("?");return r=n.shift()+(n.length>0?"?":"")+n.join("&"),r}function Pe(...e){const t=Array.from(Array.isArray(e[0])?e[0]:e);return zd(t)}function yn(e,{autoInvoke:t=!0,initialLoading:r=!1,...n}){const[i,o]=T.useState(null),[a,s]=T.useState(r),[l,u]=T.useState(null),c=T.useRef(null),f=T.useCallback(()=>{if(e)return u(null),c.current&&c.current.abort(),c.current=new AbortController,s(!0),fetch(e,{signal:c.current.signal,...n}).then(async g=>{const y=await g.json();if(!g.ok)throw new Error(y.detail);return o(y),s(!1),y}).catch(g=>(g&&g.name!=="AbortError"&&(u(g),s(!1)),g))},[e]),p=T.useCallback(()=>{var g;c.current&&((g=c.current)==null||g.abort(""),s(!1))},[]);return T.useEffect(()=>(t&&f(),()=>{c.current&&c.current.abort("")}),[f,t]),{data:i,loading:a,error:l,refetch:f,abort:p}}function Ba({path:e,autoInvoke:t=!0,initialLoading:r=!0}){const{fetchPath:n,options:i}=T.useMemo(()=>Ve({path:Pe(e,"auth/user"),method:"GET"}),[e]),{data:o,loading:a,refetch:s,error:l}=yn(n,{autoInvoke:t,initialLoading:r,...i});return{user:o,loading:a,refetch:s,error:l}}function Wa({path:e,queryParams:t,autoInvoke:r=!0}){const{fetchPath:n,options:i}=T.useMemo(()=>Ve({path:Pe(e,"/"),method:"GET",queryParams:t}),[e,t]),{data:o,loading:a,refetch:s,error:l}=yn(n,{autoInvoke:r,...i});return{data:T.useMemo(()=>{if(!o)return null;const c=o.result.map((f,p)=>{const g=o.ids[p];return typeof g=="object"?{...f,...g}:{...f,id:g}});return{...o,result:c}},[o]),loading:a,refetch:s,error:l}}const Ud=async(e,t)=>{const{fetchPath:r,options:n}=Ve({path:Pe(e,"/"),method:"POST",body:t}),i=await fetch(r,n),o=await i.json();if(i.ok)return o;throw new Error(o.detail)},Vd=async(e,t)=>{const{fetchPath:r,options:n}=Ve({path:Pe(e,t.toString()),method:"DELETE"}),i=await fetch(r,n),o=await i.json();if(i.ok)return o;throw new Error(o.detail)},Bd=async(e,t)=>{const{fetchPath:r,options:n}=Ve({path:Pe(e,t.toString()),method:"GET"}),i=await fetch(r,n),o=await i.json();if(i.ok)return o;throw new Error(o.detail)},Wd=async(e,t,r)=>{const{fetchPath:n,options:i}=Ve({path:Pe(e,t.toString()),method:"PUT",body:r}),o=await fetch(n,i),a=await o.json();if(o.ok)return a;throw new Error(a.detail)},Fe=e=>e&&typeof e=="object"?JSON.stringify(e):e;function Ha(e,t){const r=e||{columns:[],filters:[],page:0,page_size:25};return t.hasOwnProperty("columns")&&(r.columns=t.columns),t.hasOwnProperty("filters")&&(r.filters=t.filters),t.hasOwnProperty("order_column")&&(r.order_column=t.order_column),t.hasOwnProperty("order_direction")&&(r.order_direction=t.order_direction),t.hasOwnProperty("page")&&(r.page=t.page),t.hasOwnProperty("page_size")&&(r.page_size=t.page_size),r}const Ga=e=>{const t={};for(const r of e)switch(r.type){case"RelatedList":t[r.name]=[];break;case"Related":t[r.name]=void 0;break;case"Boolean":t[r.name]="false";break;case"Date":case"DateTime":t[r.name]=void 0;break;case"Integer":case"Float":t[r.name]=void 0;break;default:t[r.name]=""}return t};function qt(e){this._maxSize=e,this.clear()}qt.prototype.clear=function(){this._size=0,this._values=Object.create(null)},qt.prototype.get=function(e){return this._values[e]},qt.prototype.set=function(e,t){return this._size>=this._maxSize&&this.clear(),e in this._values||this._size++,this._values[e]=t};var Hd=/[^.^\]^[]+|(?=\[\]|\.\.)/g,qa=/^\d+$/,Gd=/^\d/,qd=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,Yd=/^\s*(['"]?)(.*?)(\1)\s*$/,Bi=512,Ya=new qt(Bi),Ka=new qt(Bi),Xa=new qt(Bi),Yt={Cache:qt,split:Hi,normalizePath:Wi,setter:function(e){var t=Wi(e);return Ka.get(e)||Ka.set(e,function(n,i){for(var o=0,a=t.length,s=n;o<a-1;){var l=t[o];if(l==="__proto__"||l==="constructor"||l==="prototype")return n;s=s[t[o++]]}s[t[o]]=i})},getter:function(e,t){var r=Wi(e);return Xa.get(e)||Xa.set(e,function(i){for(var o=0,a=r.length;o<a;)if(i!=null||!t)i=i[r[o++]];else return;return i})},join:function(e){return e.reduce(function(t,r){return t+(Gi(r)||qa.test(r)?"["+r+"]":(t?".":"")+r)},"")},forEach:function(e,t,r){Kd(Array.isArray(e)?e:Hi(e),t,r)}};function Wi(e){return Ya.get(e)||Ya.set(e,Hi(e).map(function(t){return t.replace(Yd,"$2")}))}function Hi(e){return e.match(Hd)||[""]}function Kd(e,t,r){var n=e.length,i,o,a,s;for(o=0;o<n;o++)i=e[o],i&&(Zd(i)&&(i='"'+i+'"'),s=Gi(i),a=!s&&/^\d+$/.test(i),t.call(r,i,s,a,o,e))}function Gi(e){return typeof e=="string"&&e&&["'",'"'].indexOf(e.charAt(0))!==-1}function Xd(e){return e.match(Gd)&&!e.match(qa)}function Jd(e){return qd.test(e)}function Zd(e){return!Gi(e)&&(Xd(e)||Jd(e))}const Qd=/[A-Z\xc0-\xd6\xd8-\xde]?[a-z\xdf-\xf6\xf8-\xff]+(?:['’](?:d|ll|m|re|s|t|ve))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde]|$)|(?:[A-Z\xc0-\xd6\xd8-\xde]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:D|LL|M|RE|S|T|VE))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde](?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])|$)|[A-Z\xc0-\xd6\xd8-\xde]?(?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:d|ll|m|re|s|t|ve))?|[A-Z\xc0-\xd6\xd8-\xde]+(?:['’](?:D|LL|M|RE|S|T|VE))?|\d*(?:1ST|2ND|3RD|(?![123])\dTH)(?=\b|[a-z_])|\d*(?:1st|2nd|3rd|(?![123])\dth)(?=\b|[A-Z_])|\d+|(?:[\u2700-\u27bf]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?(?:\u200d(?:[^\ud800-\udfff]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?)*/g,vn=e=>e.match(Qd)||[],bn=e=>e[0].toUpperCase()+e.slice(1),qi=(e,t)=>vn(e).join(t).toLowerCase(),Ja=e=>vn(e).reduce((t,r)=>`${t}${t?r[0].toUpperCase()+r.slice(1).toLowerCase():r.toLowerCase()}`,"");var Yi={words:vn,upperFirst:bn,camelCase:Ja,pascalCase:e=>bn(Ja(e)),snakeCase:e=>qi(e,"_"),kebabCase:e=>qi(e,"-"),sentenceCase:e=>bn(qi(e," ")),titleCase:e=>vn(e).map(bn).join(" ")},Ki={exports:{}};Ki.exports=function(e){return Za(ep(e),e)},Ki.exports.array=Za;function Za(e,t){var r=e.length,n=new Array(r),i={},o=r,a=tp(t),s=rp(e);for(t.forEach(function(u){if(!s.has(u[0])||!s.has(u[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")});o--;)i[o]||l(e[o],o,new Set);return n;function l(u,c,f){if(f.has(u)){var p;try{p=", node was:"+JSON.stringify(u)}catch{p=""}throw new Error("Cyclic dependency"+p)}if(!s.has(u))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(u));if(!i[c]){i[c]=!0;var g=a.get(u)||new Set;if(g=Array.from(g),c=g.length){f.add(u);do{var y=g[--c];l(y,s.get(y),f)}while(c);f.delete(u)}n[--r]=u}}}function ep(e){for(var t=new Set,r=0,n=e.length;r<n;r++){var i=e[r];t.add(i[0]),t.add(i[1])}return Array.from(t)}function tp(e){for(var t=new Map,r=0,n=e.length;r<n;r++){var i=e[r];t.has(i[0])||t.set(i[0],new Set),t.has(i[1])||t.set(i[1],new Set),t.get(i[0]).add(i[1])}return t}function rp(e){for(var t=new Map,r=0,n=e.length;r<n;r++)t.set(e[r],r);return t}var np=Ki.exports;const ip=Ot(np),op=Object.prototype.toString,ap=Error.prototype.toString,sp=RegExp.prototype.toString,lp=typeof Symbol<"u"?Symbol.prototype.toString:()=>"",up=/^Symbol\((.*)\)(.*)$/;function cp(e){return e!=+e?"NaN":e===0&&1/e<0?"-0":""+e}function Qa(e,t=!1){if(e==null||e===!0||e===!1)return""+e;const r=typeof e;if(r==="number")return cp(e);if(r==="string")return t?`"${e}"`:e;if(r==="function")return"[Function "+(e.name||"anonymous")+"]";if(r==="symbol")return lp.call(e).replace(up,"Symbol($1)");const n=op.call(e).slice(8,-1);return n==="Date"?isNaN(e.getTime())?""+e:e.toISOString(e):n==="Error"||e instanceof Error?"["+ap.call(e)+"]":n==="RegExp"?sp.call(e):null}function xt(e,t){let r=Qa(e,t);return r!==null?r:JSON.stringify(e,function(n,i){let o=Qa(this[n],t);return o!==null?o:i},2)}function es(e){return e==null?[]:[].concat(e)}let ts,rs,ns,fp=/\$\{\s*(\w+)\s*\}/g;ts=Symbol.toStringTag;class is{constructor(t,r,n,i){this.name=void 0,this.message=void 0,this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=void 0,this.inner=void 0,this[ts]="Error",this.name="ValidationError",this.value=r,this.path=n,this.type=i,this.errors=[],this.inner=[],es(t).forEach(o=>{if(Le.isError(o)){this.errors.push(...o.errors);const a=o.inner.length?o.inner:[o];this.inner.push(...a)}else this.errors.push(o)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0]}}rs=Symbol.hasInstance,ns=Symbol.toStringTag;class Le extends Error{static formatError(t,r){const n=r.label||r.path||"this";return n!==r.path&&(r=Object.assign({},r,{path:n})),typeof t=="string"?t.replace(fp,(i,o)=>xt(r[o])):typeof t=="function"?t(r):t}static isError(t){return t&&t.name==="ValidationError"}constructor(t,r,n,i,o){const a=new is(t,r,n,i);if(o)return a;super(),this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=[],this.inner=[],this[ns]="Error",this.name=a.name,this.message=a.message,this.type=a.type,this.value=a.value,this.path=a.path,this.errors=a.errors,this.inner=a.inner,Error.captureStackTrace&&Error.captureStackTrace(this,Le)}static[rs](t){return is[Symbol.hasInstance](t)||super[Symbol.hasInstance](t)}}let _t={default:"${path} is invalid",required:"${path} is a required field",defined:"${path} must be defined",notNull:"${path} cannot be null",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:({path:e,type:t,value:r,originalValue:n})=>{const i=n!=null&&n!==r?` (cast from the value \`${xt(n,!0)}\`).`:".";return t!=="mixed"?`${e} must be a \`${t}\` type, but the final value was: \`${xt(r,!0)}\``+i:`${e} must match the configured type. The validated value was: \`${xt(r,!0)}\``+i}},Ke={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",datetime:"${path} must be a valid ISO date-time",datetime_precision:"${path} must be a valid ISO date-time with a sub-second precision of exactly ${precision} digits",datetime_offset:'${path} must be a valid ISO date-time with UTC "Z" timezone',trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},Mt={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},Xi={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},Ji={isValue:"${path} field must be ${value}"},Zi={noUnknown:"${path} field has unspecified keys: ${unknown}"},xn={min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"},os={notType:e=>{const{path:t,value:r,spec:n}=e,i=n.types.length;if(Array.isArray(r)){if(r.length<i)return`${t} tuple value has too few items, expected a length of ${i} but got ${r.length} for value: \`${xt(r,!0)}\``;if(r.length>i)return`${t} tuple value has too many items, expected a length of ${i} but got ${r.length} for value: \`${xt(r,!0)}\``}return Le.formatError(_t.notType,e)}};var as=Object.assign(Object.create(null),{mixed:_t,string:Ke,number:Mt,date:Xi,object:Zi,array:xn,boolean:Ji,tuple:os});const Kt=e=>e&&e.__isYupSchema__;class _n{static fromOptions(t,r){if(!r.then&&!r.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:n,then:i,otherwise:o}=r,a=typeof n=="function"?n:(...s)=>s.every(l=>l===n);return new _n(t,(s,l)=>{var u;let c=a(...s)?i:o;return(u=c==null?void 0:c(l))!=null?u:l})}constructor(t,r){this.fn=void 0,this.refs=t,this.refs=t,this.fn=r}resolve(t,r){let n=this.refs.map(o=>o.getValue(r==null?void 0:r.value,r==null?void 0:r.parent,r==null?void 0:r.context)),i=this.fn(n,t,r);if(i===void 0||i===t)return t;if(!Kt(i))throw new TypeError("conditions must return a schema object");return i.resolve(r)}}const Tn={context:"$",value:"."};function dp(e,t){return new Nt(e,t)}class Nt{constructor(t,r={}){if(this.key=void 0,this.isContext=void 0,this.isValue=void 0,this.isSibling=void 0,this.path=void 0,this.getter=void 0,this.map=void 0,typeof t!="string")throw new TypeError("ref must be a string, got: "+t);if(this.key=t.trim(),t==="")throw new TypeError("ref must be a non-empty string");this.isContext=this.key[0]===Tn.context,this.isValue=this.key[0]===Tn.value,this.isSibling=!this.isContext&&!this.isValue;let n=this.isContext?Tn.context:this.isValue?Tn.value:"";this.path=this.key.slice(n.length),this.getter=this.path&&Yt.getter(this.path,!0),this.map=r.map}getValue(t,r,n){let i=this.isContext?n:this.isValue?t:r;return this.getter&&(i=this.getter(i||{})),this.map&&(i=this.map(i)),i}cast(t,r){return this.getValue(t,r==null?void 0:r.parent,r==null?void 0:r.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return`Ref(${this.key})`}static isRef(t){return t&&t.__isYupRef}}Nt.prototype.__isYupRef=!0;const pt=e=>e==null;function ar(e){function t({value:r,path:n="",options:i,originalValue:o,schema:a},s,l){const{name:u,test:c,params:f,message:p,skipAbsent:g}=e;let{parent:y,context:h,abortEarly:x=a.spec.abortEarly,disableStackTrace:w=a.spec.disableStackTrace}=i;function j(U){return Nt.isRef(U)?U.getValue(r,y,h):U}function M(U={}){const se=Object.assign({value:r,originalValue:o,label:a.spec.label,path:U.path||n,spec:a.spec,disableStackTrace:U.disableStackTrace||w},f,U.params);for(const ge of Object.keys(se))se[ge]=j(se[ge]);const he=new Le(Le.formatError(U.message||p,se),r,se.path,U.type||u,se.disableStackTrace);return he.params=se,he}const F=x?s:l;let _={path:n,parent:y,type:u,from:i.from,createError:M,resolve:j,options:i,originalValue:o,schema:a};const P=U=>{Le.isError(U)?F(U):U?l(null):F(M())},D=U=>{Le.isError(U)?F(U):s(U)};if(g&&pt(r))return P(!0);let ae;try{var Oe;if(ae=c.call(_,r,_),typeof((Oe=ae)==null?void 0:Oe.then)=="function"){if(i.sync)throw new Error(`Validation test of type: "${_.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`);return Promise.resolve(ae).then(P,D)}}catch(U){D(U);return}P(ae)}return t.OPTIONS=e,t}function Qi(e,t,r,n=r){let i,o,a;return t?(Yt.forEach(t,(s,l,u)=>{let c=l?s.slice(1,s.length-1):s;e=e.resolve({context:n,parent:i,value:r});let f=e.type==="tuple",p=u?parseInt(c,10):0;if(e.innerType||f){if(f&&!u)throw new Error(`Yup.reach cannot implicitly index into a tuple type. the path part "${a}" must contain an index to the tuple element, e.g. "${a}[0]"`);if(r&&p>=r.length)throw new Error(`Yup.reach cannot resolve an array item at index: ${s}, in the path: ${t}. because there is no value at that index. `);i=r,r=r&&r[p],e=f?e.spec.types[p]:e.innerType}if(!u){if(!e.fields||!e.fields[c])throw new Error(`The schema does not contain the path: ${t}. (failed at: ${a} which is a type: "${e.type}")`);i=r,r=r&&r[c],e=e.fields[c]}o=c,a=l?"["+s+"]":"."+s}),{schema:e,parent:i,parentPath:o}):{parent:i,parentPath:t,schema:e}}function pp(e,t,r,n){return Qi(e,t,r,n).schema}class En extends Set{describe(){const t=[];for(const r of this.values())t.push(Nt.isRef(r)?r.describe():r);return t}resolveAll(t){let r=[];for(const n of this.values())r.push(t(n));return r}clone(){return new En(this.values())}merge(t,r){const n=this.clone();return t.forEach(i=>n.add(i)),r.forEach(i=>n.delete(i)),n}}function sr(e,t=new Map){if(Kt(e)||!e||typeof e!="object")return e;if(t.has(e))return t.get(e);let r;if(e instanceof Date)r=new Date(e.getTime()),t.set(e,r);else if(e instanceof RegExp)r=new RegExp(e),t.set(e,r);else if(Array.isArray(e)){r=new Array(e.length),t.set(e,r);for(let n=0;n<e.length;n++)r[n]=sr(e[n],t)}else if(e instanceof Map){r=new Map,t.set(e,r);for(const[n,i]of e.entries())r.set(n,sr(i,t))}else if(e instanceof Set){r=new Set,t.set(e,r);for(const n of e)r.add(sr(n,t))}else if(e instanceof Object){r={},t.set(e,r);for(const[n,i]of Object.entries(e))r[n]=sr(i,t)}else throw Error(`Unable to clone ${e}`);return r}class ze{constructor(t){this.type=void 0,this.deps=[],this.tests=void 0,this.transforms=void 0,this.conditions=[],this._mutate=void 0,this.internalTests={},this._whitelist=new En,this._blacklist=new En,this.exclusiveTests=Object.create(null),this._typeCheck=void 0,this.spec=void 0,this.tests=[],this.transforms=[],this.withMutation(()=>{this.typeError(_t.notType)}),this.type=t.type,this._typeCheck=t.check,this.spec=Object.assign({strip:!1,strict:!1,abortEarly:!0,recursive:!0,disableStackTrace:!1,nullable:!1,optional:!0,coerce:!0},t==null?void 0:t.spec),this.withMutation(r=>{r.nonNullable()})}get _type(){return this.type}clone(t){if(this._mutate)return t&&Object.assign(this.spec,t),this;const r=Object.create(Object.getPrototypeOf(this));return r.type=this.type,r._typeCheck=this._typeCheck,r._whitelist=this._whitelist.clone(),r._blacklist=this._blacklist.clone(),r.internalTests=Object.assign({},this.internalTests),r.exclusiveTests=Object.assign({},this.exclusiveTests),r.deps=[...this.deps],r.conditions=[...this.conditions],r.tests=[...this.tests],r.transforms=[...this.transforms],r.spec=sr(Object.assign({},this.spec,t)),r}label(t){let r=this.clone();return r.spec.label=t,r}meta(...t){if(t.length===0)return this.spec.meta;let r=this.clone();return r.spec.meta=Object.assign(r.spec.meta||{},t[0]),r}withMutation(t){let r=this._mutate;this._mutate=!0;let n=t(this);return this._mutate=r,n}concat(t){if(!t||t===this)return this;if(t.type!==this.type&&this.type!=="mixed")throw new TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${t.type}`);let r=this,n=t.clone();const i=Object.assign({},r.spec,n.spec);return n.spec=i,n.internalTests=Object.assign({},r.internalTests,n.internalTests),n._whitelist=r._whitelist.merge(t._whitelist,t._blacklist),n._blacklist=r._blacklist.merge(t._blacklist,t._whitelist),n.tests=r.tests,n.exclusiveTests=r.exclusiveTests,n.withMutation(o=>{t.tests.forEach(a=>{o.test(a.OPTIONS)})}),n.transforms=[...r.transforms,...n.transforms],n}isType(t){return t==null?!!(this.spec.nullable&&t===null||this.spec.optional&&t===void 0):this._typeCheck(t)}resolve(t){let r=this;if(r.conditions.length){let n=r.conditions;r=r.clone(),r.conditions=[],r=n.reduce((i,o)=>o.resolve(i,t),r),r=r.resolve(t)}return r}resolveOptions(t){var r,n,i,o;return Object.assign({},t,{from:t.from||[],strict:(r=t.strict)!=null?r:this.spec.strict,abortEarly:(n=t.abortEarly)!=null?n:this.spec.abortEarly,recursive:(i=t.recursive)!=null?i:this.spec.recursive,disableStackTrace:(o=t.disableStackTrace)!=null?o:this.spec.disableStackTrace})}cast(t,r={}){let n=this.resolve(Object.assign({value:t},r)),i=r.assert==="ignore-optionality",o=n._cast(t,r);if(r.assert!==!1&&!n.isType(o)){if(i&&pt(o))return o;let a=xt(t),s=xt(o);throw new TypeError(`The value of ${r.path||"field"} could not be cast to a value that satisfies the schema type: "${n.type}".
32
+ <%s key={someKey} {...props} />`,et,xe,ir,xe),Ni[xe+et]=!0}}return m===n?Mi(j):Di(j),j}}function Mr(m,E,$){return at(m,E,$,!0)}function Fi(m,E,$){return at(m,E,$,!1)}var Li=Fi,zi=Mr;Lr.Fragment=n,Lr.jsx=Li,Lr.jsxs=zi}()),Lr}process.env.NODE_ENV==="production"?Vi.exports=Fd():Vi.exports=Ld();var d=Vi.exports;function Ve({path:e,method:t,body:r=void 0,queryParams:n=void 0}){Object.entries(n||{}).forEach(([o,a])=>{(Array.isArray(a)||typeof a=="object")&&(a=JSON.stringify(a)),e.includes("?")||(e+="?"),e+=`${o}=${a}&`}),e.endsWith("&")&&(e=e.slice(0,-1));const i={method:t,mode:"cors",credentials:"include",headers:{"Content-Type":"application/json"},redirect:"follow",referrerPolicy:"no-referrer",body:r?JSON.stringify(r):null};return{fetchPath:e,options:i}}function zd(e){const t=[];if(e.length===0)return"";if(typeof e[0]!="string")throw new TypeError("Url must be a string. Received "+e[0]);e[0].match(/^[^/:]+:\/*$/)&&e.length>1&&(e[0]=e.shift()+e[0]),e[0].match(/^file:\/\/\//)?e[0]=e[0].replace(/^([^/:]+):\/*/,"$1:///"):e[0]=e[0].replace(/^([^/:]+):\/*/,"$1://");for(let i=0;i<e.length;i++){let o=e[i];if(typeof o!="string")throw new TypeError("Url must be a string. Received "+o);o!==""&&(i>0&&(o=o.replace(/^[\/]+/,"")),i<e.length-1?o=o.replace(/[\/]+$/,""):o=o.replace(/[\/]+$/,"/"),t.push(o))}let r=t.join("/");r=r.replace(/\/(\?|&|#[^!])/g,"$1");const n=r.split("?");return r=n.shift()+(n.length>0?"?":"")+n.join("&"),r}function Pe(...e){const t=Array.from(Array.isArray(e[0])?e[0]:e);return zd(t)}function yn(e,{autoInvoke:t=!0,initialLoading:r=!1,clearDataOnRefetch:n=!1,...i}){const[o,a]=T.useState(null),[s,l]=T.useState(r),[u,f]=T.useState(null),c=T.useRef(null),p=T.useCallback(()=>{if(e)return n&&a(null),f(null),c.current&&c.current.abort(),c.current=new AbortController,l(!0),fetch(e,{signal:c.current.signal,...i}).then(async g=>{const h=await g.json();if(!g.ok)throw new Error(h.detail);return a(h),l(!1),h}).catch(g=>(g&&g.name!=="AbortError"&&(f(g),l(!1)),g))},[e]),y=T.useCallback(()=>{var g;c.current&&((g=c.current)==null||g.abort(""),l(!1))},[]);return T.useEffect(()=>(t&&p(),()=>{c.current&&c.current.abort("")}),[p,t]),{data:o,loading:s,error:u,refetch:p,abort:y}}function Ba({path:e,autoInvoke:t=!0,initialLoading:r=!0}){const{fetchPath:n,options:i}=T.useMemo(()=>Ve({path:Pe(e,"auth/user"),method:"GET"}),[e]),{data:o,loading:a,refetch:s,error:l}=yn(n,{autoInvoke:t,initialLoading:r,...i});return{user:o,loading:a,refetch:s,error:l}}function Wa({path:e,queryParams:t,autoInvoke:r=!0,clearDataOnRefetch:n=!1}){const{fetchPath:i,options:o}=T.useMemo(()=>Ve({path:Pe(e,"/"),method:"GET",queryParams:t}),[e,t]),{data:a,loading:s,refetch:l,error:u}=yn(i,{autoInvoke:r,clearDataOnRefetch:n,...o});return{data:T.useMemo(()=>{if(!a)return null;const c=a.result.map((p,y)=>{const g=a.ids[y];return typeof g=="object"?{...p,...g}:{...p,id:g}});return{...a,result:c}},[a]),loading:s,refetch:l,error:u}}const Ud=async(e,t)=>{const{fetchPath:r,options:n}=Ve({path:Pe(e,"/"),method:"POST",body:t}),i=await fetch(r,n),o=await i.json();if(i.ok)return o;throw new Error(o.detail)},Vd=async(e,t)=>{const{fetchPath:r,options:n}=Ve({path:Pe(e,t.toString()),method:"DELETE"}),i=await fetch(r,n),o=await i.json();if(i.ok)return o;throw new Error(o.detail)},Bd=async(e,t)=>{const{fetchPath:r,options:n}=Ve({path:Pe(e,t.toString()),method:"GET"}),i=await fetch(r,n),o=await i.json();if(i.ok)return o;throw new Error(o.detail)},Wd=async(e,t,r)=>{const{fetchPath:n,options:i}=Ve({path:Pe(e,t.toString()),method:"PUT",body:r}),o=await fetch(n,i),a=await o.json();if(o.ok)return a;throw new Error(a.detail)},Fe=e=>e&&typeof e=="object"?JSON.stringify(e):e;function Ha(e,t){const r=e||{columns:[],filters:[],page:0,page_size:25};return t.hasOwnProperty("columns")&&(r.columns=t.columns),t.hasOwnProperty("filters")&&(r.filters=t.filters),t.hasOwnProperty("order_column")&&(r.order_column=t.order_column),t.hasOwnProperty("order_direction")&&(r.order_direction=t.order_direction),t.hasOwnProperty("page")&&(r.page=t.page),t.hasOwnProperty("page_size")&&(r.page_size=t.page_size),r}const Ga=e=>{const t={};for(const r of e)switch(r.type){case"RelatedList":t[r.name]=[];break;case"Related":t[r.name]=void 0;break;case"Boolean":t[r.name]="false";break;case"Date":case"DateTime":t[r.name]=void 0;break;case"Integer":case"Float":t[r.name]=void 0;break;default:t[r.name]=""}return t};function qt(e){this._maxSize=e,this.clear()}qt.prototype.clear=function(){this._size=0,this._values=Object.create(null)},qt.prototype.get=function(e){return this._values[e]},qt.prototype.set=function(e,t){return this._size>=this._maxSize&&this.clear(),e in this._values||this._size++,this._values[e]=t};var Hd=/[^.^\]^[]+|(?=\[\]|\.\.)/g,qa=/^\d+$/,Gd=/^\d/,qd=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,Yd=/^\s*(['"]?)(.*?)(\1)\s*$/,Bi=512,Ya=new qt(Bi),Ka=new qt(Bi),Xa=new qt(Bi),Yt={Cache:qt,split:Hi,normalizePath:Wi,setter:function(e){var t=Wi(e);return Ka.get(e)||Ka.set(e,function(n,i){for(var o=0,a=t.length,s=n;o<a-1;){var l=t[o];if(l==="__proto__"||l==="constructor"||l==="prototype")return n;s=s[t[o++]]}s[t[o]]=i})},getter:function(e,t){var r=Wi(e);return Xa.get(e)||Xa.set(e,function(i){for(var o=0,a=r.length;o<a;)if(i!=null||!t)i=i[r[o++]];else return;return i})},join:function(e){return e.reduce(function(t,r){return t+(Gi(r)||qa.test(r)?"["+r+"]":(t?".":"")+r)},"")},forEach:function(e,t,r){Kd(Array.isArray(e)?e:Hi(e),t,r)}};function Wi(e){return Ya.get(e)||Ya.set(e,Hi(e).map(function(t){return t.replace(Yd,"$2")}))}function Hi(e){return e.match(Hd)||[""]}function Kd(e,t,r){var n=e.length,i,o,a,s;for(o=0;o<n;o++)i=e[o],i&&(Zd(i)&&(i='"'+i+'"'),s=Gi(i),a=!s&&/^\d+$/.test(i),t.call(r,i,s,a,o,e))}function Gi(e){return typeof e=="string"&&e&&["'",'"'].indexOf(e.charAt(0))!==-1}function Xd(e){return e.match(Gd)&&!e.match(qa)}function Jd(e){return qd.test(e)}function Zd(e){return!Gi(e)&&(Xd(e)||Jd(e))}const Qd=/[A-Z\xc0-\xd6\xd8-\xde]?[a-z\xdf-\xf6\xf8-\xff]+(?:['’](?:d|ll|m|re|s|t|ve))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde]|$)|(?:[A-Z\xc0-\xd6\xd8-\xde]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:D|LL|M|RE|S|T|VE))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde](?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])|$)|[A-Z\xc0-\xd6\xd8-\xde]?(?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:d|ll|m|re|s|t|ve))?|[A-Z\xc0-\xd6\xd8-\xde]+(?:['’](?:D|LL|M|RE|S|T|VE))?|\d*(?:1ST|2ND|3RD|(?![123])\dTH)(?=\b|[a-z_])|\d*(?:1st|2nd|3rd|(?![123])\dth)(?=\b|[A-Z_])|\d+|(?:[\u2700-\u27bf]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?(?:\u200d(?:[^\ud800-\udfff]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?)*/g,vn=e=>e.match(Qd)||[],bn=e=>e[0].toUpperCase()+e.slice(1),qi=(e,t)=>vn(e).join(t).toLowerCase(),Ja=e=>vn(e).reduce((t,r)=>`${t}${t?r[0].toUpperCase()+r.slice(1).toLowerCase():r.toLowerCase()}`,"");var Yi={words:vn,upperFirst:bn,camelCase:Ja,pascalCase:e=>bn(Ja(e)),snakeCase:e=>qi(e,"_"),kebabCase:e=>qi(e,"-"),sentenceCase:e=>bn(qi(e," ")),titleCase:e=>vn(e).map(bn).join(" ")},Ki={exports:{}};Ki.exports=function(e){return Za(ep(e),e)},Ki.exports.array=Za;function Za(e,t){var r=e.length,n=new Array(r),i={},o=r,a=tp(t),s=rp(e);for(t.forEach(function(u){if(!s.has(u[0])||!s.has(u[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")});o--;)i[o]||l(e[o],o,new Set);return n;function l(u,f,c){if(c.has(u)){var p;try{p=", node was:"+JSON.stringify(u)}catch{p=""}throw new Error("Cyclic dependency"+p)}if(!s.has(u))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(u));if(!i[f]){i[f]=!0;var y=a.get(u)||new Set;if(y=Array.from(y),f=y.length){c.add(u);do{var g=y[--f];l(g,s.get(g),c)}while(f);c.delete(u)}n[--r]=u}}}function ep(e){for(var t=new Set,r=0,n=e.length;r<n;r++){var i=e[r];t.add(i[0]),t.add(i[1])}return Array.from(t)}function tp(e){for(var t=new Map,r=0,n=e.length;r<n;r++){var i=e[r];t.has(i[0])||t.set(i[0],new Set),t.has(i[1])||t.set(i[1],new Set),t.get(i[0]).add(i[1])}return t}function rp(e){for(var t=new Map,r=0,n=e.length;r<n;r++)t.set(e[r],r);return t}var np=Ki.exports;const ip=Ot(np),op=Object.prototype.toString,ap=Error.prototype.toString,sp=RegExp.prototype.toString,lp=typeof Symbol<"u"?Symbol.prototype.toString:()=>"",up=/^Symbol\((.*)\)(.*)$/;function cp(e){return e!=+e?"NaN":e===0&&1/e<0?"-0":""+e}function Qa(e,t=!1){if(e==null||e===!0||e===!1)return""+e;const r=typeof e;if(r==="number")return cp(e);if(r==="string")return t?`"${e}"`:e;if(r==="function")return"[Function "+(e.name||"anonymous")+"]";if(r==="symbol")return lp.call(e).replace(up,"Symbol($1)");const n=op.call(e).slice(8,-1);return n==="Date"?isNaN(e.getTime())?""+e:e.toISOString(e):n==="Error"||e instanceof Error?"["+ap.call(e)+"]":n==="RegExp"?sp.call(e):null}function xt(e,t){let r=Qa(e,t);return r!==null?r:JSON.stringify(e,function(n,i){let o=Qa(this[n],t);return o!==null?o:i},2)}function es(e){return e==null?[]:[].concat(e)}let ts,rs,ns,fp=/\$\{\s*(\w+)\s*\}/g;ts=Symbol.toStringTag;class is{constructor(t,r,n,i){this.name=void 0,this.message=void 0,this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=void 0,this.inner=void 0,this[ts]="Error",this.name="ValidationError",this.value=r,this.path=n,this.type=i,this.errors=[],this.inner=[],es(t).forEach(o=>{if(Le.isError(o)){this.errors.push(...o.errors);const a=o.inner.length?o.inner:[o];this.inner.push(...a)}else this.errors.push(o)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0]}}rs=Symbol.hasInstance,ns=Symbol.toStringTag;class Le extends Error{static formatError(t,r){const n=r.label||r.path||"this";return n!==r.path&&(r=Object.assign({},r,{path:n})),typeof t=="string"?t.replace(fp,(i,o)=>xt(r[o])):typeof t=="function"?t(r):t}static isError(t){return t&&t.name==="ValidationError"}constructor(t,r,n,i,o){const a=new is(t,r,n,i);if(o)return a;super(),this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=[],this.inner=[],this[ns]="Error",this.name=a.name,this.message=a.message,this.type=a.type,this.value=a.value,this.path=a.path,this.errors=a.errors,this.inner=a.inner,Error.captureStackTrace&&Error.captureStackTrace(this,Le)}static[rs](t){return is[Symbol.hasInstance](t)||super[Symbol.hasInstance](t)}}let _t={default:"${path} is invalid",required:"${path} is a required field",defined:"${path} must be defined",notNull:"${path} cannot be null",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:({path:e,type:t,value:r,originalValue:n})=>{const i=n!=null&&n!==r?` (cast from the value \`${xt(n,!0)}\`).`:".";return t!=="mixed"?`${e} must be a \`${t}\` type, but the final value was: \`${xt(r,!0)}\``+i:`${e} must match the configured type. The validated value was: \`${xt(r,!0)}\``+i}},Ke={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",datetime:"${path} must be a valid ISO date-time",datetime_precision:"${path} must be a valid ISO date-time with a sub-second precision of exactly ${precision} digits",datetime_offset:'${path} must be a valid ISO date-time with UTC "Z" timezone',trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},Mt={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},Xi={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},Ji={isValue:"${path} field must be ${value}"},Zi={noUnknown:"${path} field has unspecified keys: ${unknown}"},xn={min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"},os={notType:e=>{const{path:t,value:r,spec:n}=e,i=n.types.length;if(Array.isArray(r)){if(r.length<i)return`${t} tuple value has too few items, expected a length of ${i} but got ${r.length} for value: \`${xt(r,!0)}\``;if(r.length>i)return`${t} tuple value has too many items, expected a length of ${i} but got ${r.length} for value: \`${xt(r,!0)}\``}return Le.formatError(_t.notType,e)}};var as=Object.assign(Object.create(null),{mixed:_t,string:Ke,number:Mt,date:Xi,object:Zi,array:xn,boolean:Ji,tuple:os});const Kt=e=>e&&e.__isYupSchema__;class _n{static fromOptions(t,r){if(!r.then&&!r.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:n,then:i,otherwise:o}=r,a=typeof n=="function"?n:(...s)=>s.every(l=>l===n);return new _n(t,(s,l)=>{var u;let f=a(...s)?i:o;return(u=f==null?void 0:f(l))!=null?u:l})}constructor(t,r){this.fn=void 0,this.refs=t,this.refs=t,this.fn=r}resolve(t,r){let n=this.refs.map(o=>o.getValue(r==null?void 0:r.value,r==null?void 0:r.parent,r==null?void 0:r.context)),i=this.fn(n,t,r);if(i===void 0||i===t)return t;if(!Kt(i))throw new TypeError("conditions must return a schema object");return i.resolve(r)}}const Tn={context:"$",value:"."};function dp(e,t){return new Nt(e,t)}class Nt{constructor(t,r={}){if(this.key=void 0,this.isContext=void 0,this.isValue=void 0,this.isSibling=void 0,this.path=void 0,this.getter=void 0,this.map=void 0,typeof t!="string")throw new TypeError("ref must be a string, got: "+t);if(this.key=t.trim(),t==="")throw new TypeError("ref must be a non-empty string");this.isContext=this.key[0]===Tn.context,this.isValue=this.key[0]===Tn.value,this.isSibling=!this.isContext&&!this.isValue;let n=this.isContext?Tn.context:this.isValue?Tn.value:"";this.path=this.key.slice(n.length),this.getter=this.path&&Yt.getter(this.path,!0),this.map=r.map}getValue(t,r,n){let i=this.isContext?n:this.isValue?t:r;return this.getter&&(i=this.getter(i||{})),this.map&&(i=this.map(i)),i}cast(t,r){return this.getValue(t,r==null?void 0:r.parent,r==null?void 0:r.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return`Ref(${this.key})`}static isRef(t){return t&&t.__isYupRef}}Nt.prototype.__isYupRef=!0;const pt=e=>e==null;function ar(e){function t({value:r,path:n="",options:i,originalValue:o,schema:a},s,l){const{name:u,test:f,params:c,message:p,skipAbsent:y}=e;let{parent:g,context:h,abortEarly:x=a.spec.abortEarly,disableStackTrace:w=a.spec.disableStackTrace}=i;function k(z){return Nt.isRef(z)?z.getValue(r,g,h):z}function D(z={}){const le=Object.assign({value:r,originalValue:o,label:a.spec.label,path:z.path||n,spec:a.spec,disableStackTrace:z.disableStackTrace||w},c,z.params);for(const ye of Object.keys(le))le[ye]=k(le[ye]);const me=new Le(Le.formatError(z.message||p,le),r,le.path,z.type||u,le.disableStackTrace);return me.params=le,me}const N=x?s:l;let _={path:n,parent:g,type:u,from:i.from,createError:D,resolve:k,options:i,originalValue:o,schema:a};const R=z=>{Le.isError(z)?N(z):z?l(null):N(D())},F=z=>{Le.isError(z)?N(z):s(z)};if(y&&pt(r))return R(!0);let ee;try{var oe;if(ee=f.call(_,r,_),typeof((oe=ee)==null?void 0:oe.then)=="function"){if(i.sync)throw new Error(`Validation test of type: "${_.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`);return Promise.resolve(ee).then(R,F)}}catch(z){F(z);return}R(ee)}return t.OPTIONS=e,t}function Qi(e,t,r,n=r){let i,o,a;return t?(Yt.forEach(t,(s,l,u)=>{let f=l?s.slice(1,s.length-1):s;e=e.resolve({context:n,parent:i,value:r});let c=e.type==="tuple",p=u?parseInt(f,10):0;if(e.innerType||c){if(c&&!u)throw new Error(`Yup.reach cannot implicitly index into a tuple type. the path part "${a}" must contain an index to the tuple element, e.g. "${a}[0]"`);if(r&&p>=r.length)throw new Error(`Yup.reach cannot resolve an array item at index: ${s}, in the path: ${t}. because there is no value at that index. `);i=r,r=r&&r[p],e=c?e.spec.types[p]:e.innerType}if(!u){if(!e.fields||!e.fields[f])throw new Error(`The schema does not contain the path: ${t}. (failed at: ${a} which is a type: "${e.type}")`);i=r,r=r&&r[f],e=e.fields[f]}o=f,a=l?"["+s+"]":"."+s}),{schema:e,parent:i,parentPath:o}):{parent:i,parentPath:t,schema:e}}function pp(e,t,r,n){return Qi(e,t,r,n).schema}class En extends Set{describe(){const t=[];for(const r of this.values())t.push(Nt.isRef(r)?r.describe():r);return t}resolveAll(t){let r=[];for(const n of this.values())r.push(t(n));return r}clone(){return new En(this.values())}merge(t,r){const n=this.clone();return t.forEach(i=>n.add(i)),r.forEach(i=>n.delete(i)),n}}function sr(e,t=new Map){if(Kt(e)||!e||typeof e!="object")return e;if(t.has(e))return t.get(e);let r;if(e instanceof Date)r=new Date(e.getTime()),t.set(e,r);else if(e instanceof RegExp)r=new RegExp(e),t.set(e,r);else if(Array.isArray(e)){r=new Array(e.length),t.set(e,r);for(let n=0;n<e.length;n++)r[n]=sr(e[n],t)}else if(e instanceof Map){r=new Map,t.set(e,r);for(const[n,i]of e.entries())r.set(n,sr(i,t))}else if(e instanceof Set){r=new Set,t.set(e,r);for(const n of e)r.add(sr(n,t))}else if(e instanceof Object){r={},t.set(e,r);for(const[n,i]of Object.entries(e))r[n]=sr(i,t)}else throw Error(`Unable to clone ${e}`);return r}class ze{constructor(t){this.type=void 0,this.deps=[],this.tests=void 0,this.transforms=void 0,this.conditions=[],this._mutate=void 0,this.internalTests={},this._whitelist=new En,this._blacklist=new En,this.exclusiveTests=Object.create(null),this._typeCheck=void 0,this.spec=void 0,this.tests=[],this.transforms=[],this.withMutation(()=>{this.typeError(_t.notType)}),this.type=t.type,this._typeCheck=t.check,this.spec=Object.assign({strip:!1,strict:!1,abortEarly:!0,recursive:!0,disableStackTrace:!1,nullable:!1,optional:!0,coerce:!0},t==null?void 0:t.spec),this.withMutation(r=>{r.nonNullable()})}get _type(){return this.type}clone(t){if(this._mutate)return t&&Object.assign(this.spec,t),this;const r=Object.create(Object.getPrototypeOf(this));return r.type=this.type,r._typeCheck=this._typeCheck,r._whitelist=this._whitelist.clone(),r._blacklist=this._blacklist.clone(),r.internalTests=Object.assign({},this.internalTests),r.exclusiveTests=Object.assign({},this.exclusiveTests),r.deps=[...this.deps],r.conditions=[...this.conditions],r.tests=[...this.tests],r.transforms=[...this.transforms],r.spec=sr(Object.assign({},this.spec,t)),r}label(t){let r=this.clone();return r.spec.label=t,r}meta(...t){if(t.length===0)return this.spec.meta;let r=this.clone();return r.spec.meta=Object.assign(r.spec.meta||{},t[0]),r}withMutation(t){let r=this._mutate;this._mutate=!0;let n=t(this);return this._mutate=r,n}concat(t){if(!t||t===this)return this;if(t.type!==this.type&&this.type!=="mixed")throw new TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${t.type}`);let r=this,n=t.clone();const i=Object.assign({},r.spec,n.spec);return n.spec=i,n.internalTests=Object.assign({},r.internalTests,n.internalTests),n._whitelist=r._whitelist.merge(t._whitelist,t._blacklist),n._blacklist=r._blacklist.merge(t._blacklist,t._whitelist),n.tests=r.tests,n.exclusiveTests=r.exclusiveTests,n.withMutation(o=>{t.tests.forEach(a=>{o.test(a.OPTIONS)})}),n.transforms=[...r.transforms,...n.transforms],n}isType(t){return t==null?!!(this.spec.nullable&&t===null||this.spec.optional&&t===void 0):this._typeCheck(t)}resolve(t){let r=this;if(r.conditions.length){let n=r.conditions;r=r.clone(),r.conditions=[],r=n.reduce((i,o)=>o.resolve(i,t),r),r=r.resolve(t)}return r}resolveOptions(t){var r,n,i,o;return Object.assign({},t,{from:t.from||[],strict:(r=t.strict)!=null?r:this.spec.strict,abortEarly:(n=t.abortEarly)!=null?n:this.spec.abortEarly,recursive:(i=t.recursive)!=null?i:this.spec.recursive,disableStackTrace:(o=t.disableStackTrace)!=null?o:this.spec.disableStackTrace})}cast(t,r={}){let n=this.resolve(Object.assign({value:t},r)),i=r.assert==="ignore-optionality",o=n._cast(t,r);if(r.assert!==!1&&!n.isType(o)){if(i&&pt(o))return o;let a=xt(t),s=xt(o);throw new TypeError(`The value of ${r.path||"field"} could not be cast to a value that satisfies the schema type: "${n.type}".
33
33
 
34
34
  attempted value: ${a}
35
- `+(s!==a?`result of cast: ${s}`:""))}return o}_cast(t,r){let n=t===void 0?t:this.transforms.reduce((i,o)=>o.call(this,i,t,this),t);return n===void 0&&(n=this.getDefault(r)),n}_validate(t,r={},n,i){let{path:o,originalValue:a=t,strict:s=this.spec.strict}=r,l=t;s||(l=this._cast(l,Object.assign({assert:!1},r)));let u=[];for(let c of Object.values(this.internalTests))c&&u.push(c);this.runTests({path:o,value:l,originalValue:a,options:r,tests:u},n,c=>{if(c.length)return i(c,l);this.runTests({path:o,value:l,originalValue:a,options:r,tests:this.tests},n,i)})}runTests(t,r,n){let i=!1,{tests:o,value:a,originalValue:s,path:l,options:u}=t,c=h=>{i||(i=!0,r(h,a))},f=h=>{i||(i=!0,n(h,a))},p=o.length,g=[];if(!p)return f([]);let y={value:a,originalValue:s,path:l,options:u,schema:this};for(let h=0;h<o.length;h++){const x=o[h];x(y,c,function(j){j&&(Array.isArray(j)?g.push(...j):g.push(j)),--p<=0&&f(g)})}}asNestedTest({key:t,index:r,parent:n,parentPath:i,originalParent:o,options:a}){const s=t??r;if(s==null)throw TypeError("Must include `key` or `index` for nested validations");const l=typeof s=="number";let u=n[s];const c=Object.assign({},a,{strict:!0,parent:n,value:u,originalValue:o[s],key:void 0,[l?"index":"key"]:s,path:l||s.includes(".")?`${i||""}[${l?s:`"${s}"`}]`:(i?`${i}.`:"")+t});return(f,p,g)=>this.resolve(c)._validate(u,c,p,g)}validate(t,r){var n;let i=this.resolve(Object.assign({},r,{value:t})),o=(n=r==null?void 0:r.disableStackTrace)!=null?n:i.spec.disableStackTrace;return new Promise((a,s)=>i._validate(t,r,(l,u)=>{Le.isError(l)&&(l.value=u),s(l)},(l,u)=>{l.length?s(new Le(l,u,void 0,void 0,o)):a(u)}))}validateSync(t,r){var n;let i=this.resolve(Object.assign({},r,{value:t})),o,a=(n=r==null?void 0:r.disableStackTrace)!=null?n:i.spec.disableStackTrace;return i._validate(t,Object.assign({},r,{sync:!0}),(s,l)=>{throw Le.isError(s)&&(s.value=l),s},(s,l)=>{if(s.length)throw new Le(s,t,void 0,void 0,a);o=l}),o}isValid(t,r){return this.validate(t,r).then(()=>!0,n=>{if(Le.isError(n))return!1;throw n})}isValidSync(t,r){try{return this.validateSync(t,r),!0}catch(n){if(Le.isError(n))return!1;throw n}}_getDefault(t){let r=this.spec.default;return r==null?r:typeof r=="function"?r.call(this,t):sr(r)}getDefault(t){return this.resolve(t||{})._getDefault(t)}default(t){return arguments.length===0?this._getDefault():this.clone({default:t})}strict(t=!0){return this.clone({strict:t})}nullability(t,r){const n=this.clone({nullable:t});return n.internalTests.nullable=ar({message:r,name:"nullable",test(i){return i===null?this.schema.spec.nullable:!0}}),n}optionality(t,r){const n=this.clone({optional:t});return n.internalTests.optionality=ar({message:r,name:"optionality",test(i){return i===void 0?this.schema.spec.optional:!0}}),n}optional(){return this.optionality(!0)}defined(t=_t.defined){return this.optionality(!1,t)}nullable(){return this.nullability(!0)}nonNullable(t=_t.notNull){return this.nullability(!1,t)}required(t=_t.required){return this.clone().withMutation(r=>r.nonNullable(t).defined(t))}notRequired(){return this.clone().withMutation(t=>t.nullable().optional())}transform(t){let r=this.clone();return r.transforms.push(t),r}test(...t){let r;if(t.length===1?typeof t[0]=="function"?r={test:t[0]}:r=t[0]:t.length===2?r={name:t[0],test:t[1]}:r={name:t[0],message:t[1],test:t[2]},r.message===void 0&&(r.message=_t.default),typeof r.test!="function")throw new TypeError("`test` is a required parameters");let n=this.clone(),i=ar(r),o=r.exclusive||r.name&&n.exclusiveTests[r.name]===!0;if(r.exclusive&&!r.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return r.name&&(n.exclusiveTests[r.name]=!!r.exclusive),n.tests=n.tests.filter(a=>!(a.OPTIONS.name===r.name&&(o||a.OPTIONS.test===i.OPTIONS.test))),n.tests.push(i),n}when(t,r){!Array.isArray(t)&&typeof t!="string"&&(r=t,t=".");let n=this.clone(),i=es(t).map(o=>new Nt(o));return i.forEach(o=>{o.isSibling&&n.deps.push(o.key)}),n.conditions.push(typeof r=="function"?new _n(i,r):_n.fromOptions(i,r)),n}typeError(t){let r=this.clone();return r.internalTests.typeError=ar({message:t,name:"typeError",skipAbsent:!0,test(n){return this.schema._typeCheck(n)?!0:this.createError({params:{type:this.schema.type}})}}),r}oneOf(t,r=_t.oneOf){let n=this.clone();return t.forEach(i=>{n._whitelist.add(i),n._blacklist.delete(i)}),n.internalTests.whiteList=ar({message:r,name:"oneOf",skipAbsent:!0,test(i){let o=this.schema._whitelist,a=o.resolveAll(this.resolve);return a.includes(i)?!0:this.createError({params:{values:Array.from(o).join(", "),resolved:a}})}}),n}notOneOf(t,r=_t.notOneOf){let n=this.clone();return t.forEach(i=>{n._blacklist.add(i),n._whitelist.delete(i)}),n.internalTests.blacklist=ar({message:r,name:"notOneOf",test(i){let o=this.schema._blacklist,a=o.resolveAll(this.resolve);return a.includes(i)?this.createError({params:{values:Array.from(o).join(", "),resolved:a}}):!0}}),n}strip(t=!0){let r=this.clone();return r.spec.strip=t,r}describe(t){const r=(t?this.resolve(t):this).clone(),{label:n,meta:i,optional:o,nullable:a}=r.spec;return{meta:i,label:n,optional:o,nullable:a,default:r.getDefault(t),type:r.type,oneOf:r._whitelist.describe(),notOneOf:r._blacklist.describe(),tests:r.tests.map(l=>({name:l.OPTIONS.name,params:l.OPTIONS.params})).filter((l,u,c)=>c.findIndex(f=>f.name===l.name)===u)}}}ze.prototype.__isYupSchema__=!0;for(const e of["validate","validateSync"])ze.prototype[`${e}At`]=function(t,r,n={}){const{parent:i,parentPath:o,schema:a}=Qi(this,t,r,n.context);return a[e](i&&i[o],Object.assign({},n,{parent:i,path:t}))};for(const e of["equals","is"])ze.prototype[e]=ze.prototype.oneOf;for(const e of["not","nope"])ze.prototype[e]=ze.prototype.notOneOf;const hp=()=>!0;function Sn(e){return new eo(e)}class eo extends ze{constructor(t){super(typeof t=="function"?{type:"mixed",check:t}:Object.assign({type:"mixed",check:hp},t))}}Sn.prototype=eo.prototype;function to(){return new ro}class ro extends ze{constructor(){super({type:"boolean",check(t){return t instanceof Boolean&&(t=t.valueOf()),typeof t=="boolean"}}),this.withMutation(()=>{this.transform((t,r,n)=>{if(n.spec.coerce&&!n.isType(t)){if(/^(true|1)$/i.test(String(t)))return!0;if(/^(false|0)$/i.test(String(t)))return!1}return t})})}isTrue(t=Ji.isValue){return this.test({message:t,name:"is-value",exclusive:!0,params:{value:"true"},test(r){return pt(r)||r===!0}})}isFalse(t=Ji.isValue){return this.test({message:t,name:"is-value",exclusive:!0,params:{value:"false"},test(r){return pt(r)||r===!1}})}default(t){return super.default(t)}defined(t){return super.defined(t)}optional(){return super.optional()}required(t){return super.required(t)}notRequired(){return super.notRequired()}nullable(){return super.nullable()}nonNullable(t){return super.nonNullable(t)}strip(t){return super.strip(t)}}to.prototype=ro.prototype;const mp=/^(\d{4}|[+-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,.](\d{1,}))?)?(?:(Z)|([+-])(\d{2})(?::?(\d{2}))?)?)?$/;function gp(e){const t=no(e);if(!t)return Date.parse?Date.parse(e):Number.NaN;if(t.z===void 0&&t.plusMinus===void 0)return new Date(t.year,t.month,t.day,t.hour,t.minute,t.second,t.millisecond).valueOf();let r=0;return t.z!=="Z"&&t.plusMinus!==void 0&&(r=t.hourOffset*60+t.minuteOffset,t.plusMinus==="+"&&(r=0-r)),Date.UTC(t.year,t.month,t.day,t.hour,t.minute+r,t.second,t.millisecond)}function no(e){var t,r;const n=mp.exec(e);return n?{year:At(n[1]),month:At(n[2],1)-1,day:At(n[3],1),hour:At(n[4]),minute:At(n[5]),second:At(n[6]),millisecond:n[7]?At(n[7].substring(0,3)):0,precision:(t=(r=n[7])==null?void 0:r.length)!=null?t:void 0,z:n[8]||void 0,plusMinus:n[9]||void 0,hourOffset:At(n[10]),minuteOffset:At(n[11])}:null}function At(e,t=0){return Number(e)||t}let yp=/^[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])?)*$/,vp=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,bp=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,xp="^\\d{4}-\\d{2}-\\d{2}",_p="\\d{2}:\\d{2}:\\d{2}",Tp="(([+-]\\d{2}(:?\\d{2})?)|Z)",Ep=new RegExp(`${xp}T${_p}(\\.\\d+)?${Tp}$`),Sp=e=>pt(e)||e===e.trim(),wp={}.toString();function wn(){return new io}class io extends ze{constructor(){super({type:"string",check(t){return t instanceof String&&(t=t.valueOf()),typeof t=="string"}}),this.withMutation(()=>{this.transform((t,r,n)=>{if(!n.spec.coerce||n.isType(t)||Array.isArray(t))return t;const i=t!=null&&t.toString?t.toString():t;return i===wp?t:i})})}required(t){return super.required(t).withMutation(r=>r.test({message:t||_t.required,name:"required",skipAbsent:!0,test:n=>!!n.length}))}notRequired(){return super.notRequired().withMutation(t=>(t.tests=t.tests.filter(r=>r.OPTIONS.name!=="required"),t))}length(t,r=Ke.length){return this.test({message:r,name:"length",exclusive:!0,params:{length:t},skipAbsent:!0,test(n){return n.length===this.resolve(t)}})}min(t,r=Ke.min){return this.test({message:r,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(n){return n.length>=this.resolve(t)}})}max(t,r=Ke.max){return this.test({name:"max",exclusive:!0,message:r,params:{max:t},skipAbsent:!0,test(n){return n.length<=this.resolve(t)}})}matches(t,r){let n=!1,i,o;return r&&(typeof r=="object"?{excludeEmptyString:n=!1,message:i,name:o}=r:i=r),this.test({name:o||"matches",message:i||Ke.matches,params:{regex:t},skipAbsent:!0,test:a=>a===""&&n||a.search(t)!==-1})}email(t=Ke.email){return this.matches(yp,{name:"email",message:t,excludeEmptyString:!0})}url(t=Ke.url){return this.matches(vp,{name:"url",message:t,excludeEmptyString:!0})}uuid(t=Ke.uuid){return this.matches(bp,{name:"uuid",message:t,excludeEmptyString:!1})}datetime(t){let r="",n,i;return t&&(typeof t=="object"?{message:r="",allowOffset:n=!1,precision:i=void 0}=t:r=t),this.matches(Ep,{name:"datetime",message:r||Ke.datetime,excludeEmptyString:!0}).test({name:"datetime_offset",message:r||Ke.datetime_offset,params:{allowOffset:n},skipAbsent:!0,test:o=>{if(!o||n)return!0;const a=no(o);return a?!!a.z:!1}}).test({name:"datetime_precision",message:r||Ke.datetime_precision,params:{precision:i},skipAbsent:!0,test:o=>{if(!o||i==null)return!0;const a=no(o);return a?a.precision===i:!1}})}ensure(){return this.default("").transform(t=>t===null?"":t)}trim(t=Ke.trim){return this.transform(r=>r!=null?r.trim():r).test({message:t,name:"trim",test:Sp})}lowercase(t=Ke.lowercase){return this.transform(r=>pt(r)?r:r.toLowerCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:r=>pt(r)||r===r.toLowerCase()})}uppercase(t=Ke.uppercase){return this.transform(r=>pt(r)?r:r.toUpperCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:r=>pt(r)||r===r.toUpperCase()})}}wn.prototype=io.prototype;let Cp=e=>e!=+e;function ss(){return new oo}class oo extends ze{constructor(){super({type:"number",check(t){return t instanceof Number&&(t=t.valueOf()),typeof t=="number"&&!Cp(t)}}),this.withMutation(()=>{this.transform((t,r,n)=>{if(!n.spec.coerce)return t;let i=t;if(typeof i=="string"){if(i=i.replace(/\s/g,""),i==="")return NaN;i=+i}return n.isType(i)||i===null?i:parseFloat(i)})})}min(t,r=Mt.min){return this.test({message:r,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(n){return n>=this.resolve(t)}})}max(t,r=Mt.max){return this.test({message:r,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(n){return n<=this.resolve(t)}})}lessThan(t,r=Mt.lessThan){return this.test({message:r,name:"max",exclusive:!0,params:{less:t},skipAbsent:!0,test(n){return n<this.resolve(t)}})}moreThan(t,r=Mt.moreThan){return this.test({message:r,name:"min",exclusive:!0,params:{more:t},skipAbsent:!0,test(n){return n>this.resolve(t)}})}positive(t=Mt.positive){return this.moreThan(0,t)}negative(t=Mt.negative){return this.lessThan(0,t)}integer(t=Mt.integer){return this.test({name:"integer",message:t,skipAbsent:!0,test:r=>Number.isInteger(r)})}truncate(){return this.transform(t=>pt(t)?t:t|0)}round(t){var r;let n=["ceil","floor","round","trunc"];if(t=((r=t)==null?void 0:r.toLowerCase())||"round",t==="trunc")return this.truncate();if(n.indexOf(t.toLowerCase())===-1)throw new TypeError("Only valid options for round() are: "+n.join(", "));return this.transform(i=>pt(i)?i:Math[t](i))}}ss.prototype=oo.prototype;let ls=new Date(""),Op=e=>Object.prototype.toString.call(e)==="[object Date]";function ao(){return new lr}class lr extends ze{constructor(){super({type:"date",check(t){return Op(t)&&!isNaN(t.getTime())}}),this.withMutation(()=>{this.transform((t,r,n)=>!n.spec.coerce||n.isType(t)||t===null?t:(t=gp(t),isNaN(t)?lr.INVALID_DATE:new Date(t)))})}prepareParam(t,r){let n;if(Nt.isRef(t))n=t;else{let i=this.cast(t);if(!this._typeCheck(i))throw new TypeError(`\`${r}\` must be a Date or a value that can be \`cast()\` to a Date`);n=i}return n}min(t,r=Xi.min){let n=this.prepareParam(t,"min");return this.test({message:r,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(i){return i>=this.resolve(n)}})}max(t,r=Xi.max){let n=this.prepareParam(t,"max");return this.test({message:r,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(i){return i<=this.resolve(n)}})}}lr.INVALID_DATE=ls,ao.prototype=lr.prototype,ao.INVALID_DATE=ls;function Ap(e,t=[]){let r=[],n=new Set,i=new Set(t.map(([a,s])=>`${a}-${s}`));function o(a,s){let l=Yt.split(a)[0];n.add(l),i.has(`${s}-${l}`)||r.push([s,l])}for(const a of Object.keys(e)){let s=e[a];n.add(a),Nt.isRef(s)&&s.isSibling?o(s.path,a):Kt(s)&&"deps"in s&&s.deps.forEach(l=>o(l,a))}return ip.array(Array.from(n),r).reverse()}function us(e,t){let r=1/0;return e.some((n,i)=>{var o;if((o=t.path)!=null&&o.includes(n))return r=i,!0}),r}function cs(e){return(t,r)=>us(e,t)-us(e,r)}const fs=(e,t,r)=>{if(typeof e!="string")return e;let n=e;try{n=JSON.parse(e)}catch{}return r.isType(n)?n:e};function Cn(e){if("fields"in e){const t={};for(const[r,n]of Object.entries(e.fields))t[r]=Cn(n);return e.setFields(t)}if(e.type==="array"){const t=e.optional();return t.innerType&&(t.innerType=Cn(t.innerType)),t}return e.type==="tuple"?e.optional().clone({types:e.spec.types.map(Cn)}):"optional"in e?e.optional():e}const Pp=(e,t)=>{const r=[...Yt.normalizePath(t)];if(r.length===1)return r[0]in e;let n=r.pop(),i=Yt.getter(Yt.join(r),!0)(e);return!!(i&&n in i)};let ds=e=>Object.prototype.toString.call(e)==="[object Object]";function kp(e,t){let r=Object.keys(e.fields);return Object.keys(t).filter(n=>r.indexOf(n)===-1)}const jp=cs([]);function zr(e){return new so(e)}class so extends ze{constructor(t){super({type:"object",check(r){return ds(r)||typeof r=="function"}}),this.fields=Object.create(null),this._sortErrors=jp,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{t&&this.shape(t)})}_cast(t,r={}){var n;let i=super._cast(t,r);if(i===void 0)return this.getDefault(r);if(!this._typeCheck(i))return i;let o=this.fields,a=(n=r.stripUnknown)!=null?n:this.spec.noUnknown,s=[].concat(this._nodes,Object.keys(i).filter(f=>!this._nodes.includes(f))),l={},u=Object.assign({},r,{parent:l,__validating:r.__validating||!1}),c=!1;for(const f of s){let p=o[f],g=f in i;if(p){let y,h=i[f];u.path=(r.path?`${r.path}.`:"")+f,p=p.resolve({value:h,context:r.context,parent:l});let x=p instanceof ze?p.spec:void 0,w=x==null?void 0:x.strict;if(x!=null&&x.strip){c=c||f in i;continue}y=!r.__validating||!w?p.cast(i[f],u):i[f],y!==void 0&&(l[f]=y)}else g&&!a&&(l[f]=i[f]);(g!==f in l||l[f]!==i[f])&&(c=!0)}return c?l:i}_validate(t,r={},n,i){let{from:o=[],originalValue:a=t,recursive:s=this.spec.recursive}=r;r.from=[{schema:this,value:a},...o],r.__validating=!0,r.originalValue=a,super._validate(t,r,n,(l,u)=>{if(!s||!ds(u)){i(l,u);return}a=a||u;let c=[];for(let f of this._nodes){let p=this.fields[f];!p||Nt.isRef(p)||c.push(p.asNestedTest({options:r,key:f,parent:u,parentPath:r.path,originalParent:a}))}this.runTests({tests:c,value:u,originalValue:a,options:r},n,f=>{i(f.sort(this._sortErrors).concat(l),u)})})}clone(t){const r=super.clone(t);return r.fields=Object.assign({},this.fields),r._nodes=this._nodes,r._excludedEdges=this._excludedEdges,r._sortErrors=this._sortErrors,r}concat(t){let r=super.concat(t),n=r.fields;for(let[i,o]of Object.entries(this.fields)){const a=n[i];n[i]=a===void 0?o:a}return r.withMutation(i=>i.setFields(n,[...this._excludedEdges,...t._excludedEdges]))}_getDefault(t){if("default"in this.spec)return super._getDefault(t);if(!this._nodes.length)return;let r={};return this._nodes.forEach(n=>{var i;const o=this.fields[n];let a=t;(i=a)!=null&&i.value&&(a=Object.assign({},a,{parent:a.value,value:a.value[n]})),r[n]=o&&"getDefault"in o?o.getDefault(a):void 0}),r}setFields(t,r){let n=this.clone();return n.fields=t,n._nodes=Ap(t,r),n._sortErrors=cs(Object.keys(t)),r&&(n._excludedEdges=r),n}shape(t,r=[]){return this.clone().withMutation(n=>{let i=n._excludedEdges;return r.length&&(Array.isArray(r[0])||(r=[r]),i=[...n._excludedEdges,...r]),n.setFields(Object.assign(n.fields,t),i)})}partial(){const t={};for(const[r,n]of Object.entries(this.fields))t[r]="optional"in n&&n.optional instanceof Function?n.optional():n;return this.setFields(t)}deepPartial(){return Cn(this)}pick(t){const r={};for(const n of t)this.fields[n]&&(r[n]=this.fields[n]);return this.setFields(r,this._excludedEdges.filter(([n,i])=>t.includes(n)&&t.includes(i)))}omit(t){const r=[];for(const n of Object.keys(this.fields))t.includes(n)||r.push(n);return this.pick(r)}from(t,r,n){let i=Yt.getter(t,!0);return this.transform(o=>{if(!o)return o;let a=o;return Pp(o,t)&&(a=Object.assign({},o),n||delete a[t],a[r]=i(o)),a})}json(){return this.transform(fs)}noUnknown(t=!0,r=Zi.noUnknown){typeof t!="boolean"&&(r=t,t=!0);let n=this.test({name:"noUnknown",exclusive:!0,message:r,test(i){if(i==null)return!0;const o=kp(this.schema,i);return!t||o.length===0||this.createError({params:{unknown:o.join(", ")}})}});return n.spec.noUnknown=t,n}unknown(t=!0,r=Zi.noUnknown){return this.noUnknown(!t,r)}transformKeys(t){return this.transform(r=>{if(!r)return r;const n={};for(const i of Object.keys(r))n[t(i)]=r[i];return n})}camelCase(){return this.transformKeys(Yi.camelCase)}snakeCase(){return this.transformKeys(Yi.snakeCase)}constantCase(){return this.transformKeys(t=>Yi.snakeCase(t).toUpperCase())}describe(t){const r=(t?this.resolve(t):this).clone(),n=super.describe(t);n.fields={};for(const[o,a]of Object.entries(r.fields)){var i;let s=t;(i=s)!=null&&i.value&&(s=Object.assign({},s,{parent:s.value,value:s.value[o]})),n.fields[o]=a.describe(s)}return n}}zr.prototype=so.prototype;function lo(e){return new uo(e)}class uo extends ze{constructor(t){super({type:"array",spec:{types:t},check(r){return Array.isArray(r)}}),this.innerType=void 0,this.innerType=t}_cast(t,r){const n=super._cast(t,r);if(!this._typeCheck(n)||!this.innerType)return n;let i=!1;const o=n.map((a,s)=>{const l=this.innerType.cast(a,Object.assign({},r,{path:`${r.path||""}[${s}]`}));return l!==a&&(i=!0),l});return i?o:n}_validate(t,r={},n,i){var o;let a=this.innerType,s=(o=r.recursive)!=null?o:this.spec.recursive;r.originalValue!=null&&r.originalValue,super._validate(t,r,n,(l,u)=>{var c;if(!s||!a||!this._typeCheck(u)){i(l,u);return}let f=new Array(u.length);for(let g=0;g<u.length;g++){var p;f[g]=a.asNestedTest({options:r,index:g,parent:u,parentPath:r.path,originalParent:(p=r.originalValue)!=null?p:t})}this.runTests({value:u,tests:f,originalValue:(c=r.originalValue)!=null?c:t,options:r},n,g=>i(g.concat(l),u))})}clone(t){const r=super.clone(t);return r.innerType=this.innerType,r}json(){return this.transform(fs)}concat(t){let r=super.concat(t);return r.innerType=this.innerType,t.innerType&&(r.innerType=r.innerType?r.innerType.concat(t.innerType):t.innerType),r}of(t){let r=this.clone();if(!Kt(t))throw new TypeError("`array.of()` sub-schema must be a valid yup schema not: "+xt(t));return r.innerType=t,r.spec=Object.assign({},r.spec,{types:t}),r}length(t,r=xn.length){return this.test({message:r,name:"length",exclusive:!0,params:{length:t},skipAbsent:!0,test(n){return n.length===this.resolve(t)}})}min(t,r){return r=r||xn.min,this.test({message:r,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(n){return n.length>=this.resolve(t)}})}max(t,r){return r=r||xn.max,this.test({message:r,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(n){return n.length<=this.resolve(t)}})}ensure(){return this.default(()=>[]).transform((t,r)=>this._typeCheck(t)?t:r==null?[]:[].concat(r))}compact(t){let r=t?(n,i,o)=>!t(n,i,o):n=>!!n;return this.transform(n=>n!=null?n.filter(r):n)}describe(t){const r=(t?this.resolve(t):this).clone(),n=super.describe(t);if(r.innerType){var i;let o=t;(i=o)!=null&&i.value&&(o=Object.assign({},o,{parent:o.value,value:o.value[0]})),n.innerType=r.innerType.describe(o)}return n}}lo.prototype=uo.prototype;function ps(e){return new co(e)}class co extends ze{constructor(t){super({type:"tuple",spec:{types:t},check(r){const n=this.spec.types;return Array.isArray(r)&&r.length===n.length}}),this.withMutation(()=>{this.typeError(os.notType)})}_cast(t,r){const{types:n}=this.spec,i=super._cast(t,r);if(!this._typeCheck(i))return i;let o=!1;const a=n.map((s,l)=>{const u=s.cast(i[l],Object.assign({},r,{path:`${r.path||""}[${l}]`}));return u!==i[l]&&(o=!0),u});return o?a:i}_validate(t,r={},n,i){let o=this.spec.types;super._validate(t,r,n,(a,s)=>{var l;if(!this._typeCheck(s)){i(a,s);return}let u=[];for(let[f,p]of o.entries()){var c;u[f]=p.asNestedTest({options:r,index:f,parent:s,parentPath:r.path,originalParent:(c=r.originalValue)!=null?c:t})}this.runTests({value:s,tests:u,originalValue:(l=r.originalValue)!=null?l:t,options:r},n,f=>i(f.concat(a),s))})}describe(t){const r=(t?this.resolve(t):this).clone(),n=super.describe(t);return n.innerType=r.spec.types.map((i,o)=>{var a;let s=t;return(a=s)!=null&&a.value&&(s=Object.assign({},s,{parent:s.value,value:s.value[o]})),i.describe(s)}),n}}ps.prototype=co.prototype;function Ip(e){return new fo(e)}class fo{constructor(t){this.type="lazy",this.__isYupSchema__=!0,this.spec=void 0,this._resolve=(r,n={})=>{let i=this.builder(r,n);if(!Kt(i))throw new TypeError("lazy() functions must return a valid schema");return this.spec.optional&&(i=i.optional()),i.resolve(n)},this.builder=t,this.spec={meta:void 0,optional:!1}}clone(t){const r=new fo(this.builder);return r.spec=Object.assign({},this.spec,t),r}optionality(t){return this.clone({optional:t})}optional(){return this.optionality(!0)}resolve(t){return this._resolve(t.value,t)}cast(t,r){return this._resolve(t,r).cast(t,r)}asNestedTest(t){let{key:r,index:n,parent:i,options:o}=t,a=i[n??r];return this._resolve(a,Object.assign({},o,{value:a,parent:i})).asNestedTest(t)}validate(t,r){return this._resolve(t,r).validate(t,r)}validateSync(t,r){return this._resolve(t,r).validateSync(t,r)}validateAt(t,r,n){return this._resolve(r,n).validateAt(t,r,n)}validateSyncAt(t,r,n){return this._resolve(r,n).validateSyncAt(t,r,n)}isValid(t,r){return this._resolve(t,r).isValid(t,r)}isValidSync(t,r){return this._resolve(t,r).isValidSync(t,r)}describe(t){return t?this.resolve(t).describe(t):{type:"lazy",meta:this.spec.meta,label:void 0}}meta(...t){if(t.length===0)return this.spec.meta;let r=this.clone();return r.spec.meta=Object.assign(r.spec.meta||{},t[0]),r}}function $p(e){Object.keys(e).forEach(t=>{Object.keys(e[t]).forEach(r=>{as[t][r]=e[t][r]})})}function Rp(e,t,r){if(!e||!Kt(e.prototype))throw new TypeError("You must provide a yup schema constructor function");if(typeof t!="string")throw new TypeError("A Method name must be provided");if(typeof r!="function")throw new TypeError("Method function must be provided");e.prototype[t]=r}const hs=Object.freeze(Object.defineProperty({__proto__:null,ArraySchema:uo,BooleanSchema:ro,DateSchema:lr,MixedSchema:eo,NumberSchema:oo,ObjectSchema:so,Schema:ze,StringSchema:io,TupleSchema:co,ValidationError:Le,addMethod:Rp,array:lo,bool:to,boolean:to,date:ao,defaultLocale:as,getIn:Qi,isSchema:Kt,lazy:Ip,mixed:Sn,number:ss,object:zr,printValue:xt,reach:pp,ref:dp,setLocale:$p,string:wn,tuple:ps},Symbol.toStringTag,{value:"Module"})),ms=e=>{const t=e.reduce((r,n)=>{let{name:i,required:o,type:a}=n;switch(a){case"RelatedList":a="array";break;case"Related":a="object";break;case"Date":a="string";break;case"Integer":case"Float":a="number";break;default:a="string"}let s;try{o?s=hs[a]().typeError(`Field must be of type ${a}`).required("Field is required"):s=hs[a]().typeError(`Field must be of type ${a}`).nullable(!0)}catch(l){console.log(l)}return r[i]=s,r},{});return zr().shape(t)};function gs({path:e,autoInvoke:t=!0}){const{fetchPath:r,options:n}=T.useMemo(()=>Ve({path:Pe(e,"_info"),method:"GET"}),[e]),{data:i,loading:o,refetch:a,error:s}=yn(r,{autoInvoke:t,...n});return{info:T.useMemo(()=>i?{...i,add:{columns:i.add_columns,title:i.add_title,schema:ms(i.add_columns),defaultValues:Ga(i.add_columns)},edit:{columns:i.edit_columns,title:i.edit_title,schema:ms(i.edit_columns),defaultValues:Ga(i.edit_columns)}}:null,[i]),loading:o,refetch:a,error:s}}const ys={user:null,loading:!0,error:null};function Dp(e,t){switch(t.type){case"initCall":return{...ys};case"setUser":return{...e,user:t.payload,error:null};case"setError":return{...e,loading:!1,error:t.payload};case"setLoading":return{...e,loading:t.payload};default:return e}}function Mp(e){const[t,r]=T.useReducer(Dp,ys),{user:n,refetch:i,loading:o}=Ba({path:e});T.useEffect(()=>{r({type:"setLoading",payload:o})},[o]),T.useEffect(()=>{r({type:"setUser",payload:n})},[n]);const a=T.useCallback(async({username:f,password:p})=>{r({type:"initCall"});try{const g=new FormData;g.append("username",f),g.append("password",p);const{fetchPath:y,options:h}=Ve({path:Pe(e,"auth/login"),method:"POST"});(await fetch(y,{...h,headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams(g)})).ok?i():r({type:"setError",payload:"Username or password wrong."})}catch(g){console.error("signin error",g),r({type:"setError",payload:"Failed to fetch"})}},[e,i]),s=T.useCallback(async()=>{r({type:"initCall"});try{const{fetchPath:f,options:p}=Ve({path:Pe(e,"auth/logout"),method:"POST"});(await fetch(f,p)).ok?r({type:"setUser",payload:null}):r({type:"setError",payload:"Couldn't sign out user"})}catch(f){console.error("signout error",f),r({type:"setError",payload:"Failed to fetch"})}finally{r({type:"setLoading",payload:!1})}},[e]),l=T.useCallback(async f=>{r({type:"initCall"});try{const{fetchPath:p,options:g}=Ve({path:Pe(e,"auth/user"),method:"PUT",body:f});(await fetch(p,g)).ok&&i(),r({type:"setError",payload:"Couldn't update user data"})}catch(p){console.error("update error",p),r({type:"setError",payload:"Failed to post"})}},[e,i]),u=T.useCallback(async f=>{if(!n.email)return r({type:"setError",payload:"No email found"});try{const{fetchPath:p,options:g}=Ve({path:Pe(e,"auth/forgot-password"),method:"POST",body:{email:n.email}}),y=await fetch(p,g);if(!y.ok){r({type:"setError",payload:"Couldn't request token to reset password"});return}const h=await y.json(),{token:x}=h,{fetchPath:w,options:j}=Ve({path:Pe(e,"auth/reset-password"),method:"POST",body:{token:x,password:f}});if(!(await fetch(w,j)).ok){r({type:"setError",payload:"Couldn't reset password"});return}i()}catch(p){console.error("resetPassword error",p),r({type:"setError",payload:"Failed to post"})}},[e,i,n==null?void 0:n.email]),c=T.useCallback((f,p)=>{const g=Pe(e,"auth/login",f);if(p){const x=window.screenLeft+window.outerWidth/2-250,w=window.screenTop+window.outerHeight/2-500/2,j=window.open(g+"?popup=true","auth",`toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, width=500, height=500, top=${w}, left=${x}`),M=window.setInterval(function(){j.closed!==!1&&(window.clearInterval(M),i())},200);return}window.location.href=Pe(e,"auth/login",f)},[e,i]);return{user:t.user,loading:t.loading,error:t.error,signin:a,signout:s,update:l,resetPassword:u,oauth_signin:c}}function Np(e,t){const{user:r}=t,[n,i]=T.useState(null),[o,a]=T.useState(!0),[s,l]=T.useState({error:"401 Not authorized",message:"User is not logged in."});T.useEffect(()=>{r&&u(e)},[r]);const u=async c=>{a(!0);try{const{fetchPath:f,options:p}=Ve({path:Pe(c,"info/"),method:"GET"}),g=await fetch(f,p);if(g.ok){const y=await g.json();i(y)}else l({error:"404 Not Found",message:"Couldn't fetch info"})}catch{l({error:"Network error",message:"Failed to fetch"})}finally{a(!1)}};return{info:n,loading:o,error:s}}const po=T.createContext({auth:{},info:{}});function vs(){return T.useContext(po).auth}function bs(){return T.useContext(po).info}function Fp(e){const t={baseUrl:new URL(document.baseURI).pathname+"/api/v1",inheritMantineTheme:!1},{baseUrl:r,children:n}={...t,...e},i=Mp(r),o={baseUrl:r,...Np(r,i)};return d.jsx(po.Provider,{value:{auth:i,info:o},children:n})}const Lp=async(e,t,r)=>{const{fetchPath:n,options:i}=Ve({path:Pe(t,"/download"),method:"POST"}),o=await fetch(n,{...i,body:JSON.stringify(r)});if(!o.ok)throw new Error(o.statusText);const a=await o.blob(),s=document.createElement("a"),l=URL.createObjectURL(a);s.href=l,s.download=e.toLowerCase()+".csv",s.click()},xs={queryParams:null,loading:!1,error:null};function zp(e,t){switch(t.type){case"setQueryParams":return{...e,queryParams:{...t.payload}};case"setLoading":return{...e,loading:t.payload};case"setError":return{...e,error:t.payload};default:throw new Error}}function Up({path:e,initialQueryParams:t,relation:r,fetchInfo:n=!0}){const[i,o]=T.useReducer(zp,{...xs,queryParams:t?Ha(null,t):null}),a=T.useMemo(()=>r?{...i.queryParams,filters:[...i.queryParams.filters,{col:r.foreign_key,opr:r.type,value:Fe(r.id)}]}:i.queryParams,[i.queryParams,r]),s=T.useMemo(()=>a!=null,[a]),{info:l,loading:u,refetch:c,error:f}=gs({path:e,autoInvoke:n}),{data:p,loading:g,refetch:y,error:h}=Wa({path:e,queryParams:a,autoInvoke:s});T.useEffect(()=>{if(f){o({type:"setError",payload:{message:"Couldn't fetch info",originalError:f}});return}if(h){o({type:"setError",payload:{message:"Couldn't fetch list",originalError:h}});return}o({type:"setError",payload:xs.error})},[f,h]),T.useEffect(()=>{o({type:"setLoading",payload:u||g})},[g,u]);const x=T.useCallback(P=>{const D=Ha(i.queryParams,P);o({type:"setQueryParams",payload:D})},[i.queryParams]),w=T.useCallback(async P=>{try{return await Bd(e,Fe(P))}catch(D){o({type:"setError",payload:{message:`Couldn't fetch item with id ${P}`,originalError:D}})}},[e]),j=T.useCallback(async(P,D)=>{try{const te=await Ud(e,P);return D||(c(),y()),te}catch(te){o({type:"setError",payload:{message:"Couldnt add item.",originalError:te}})}},[y,c,e]),M=T.useCallback(async(P,D,te)=>{try{const ae=await Wd(e,Fe(P),D);return te||(c(),y()),ae}catch(ae){o({type:"setError",payload:{message:`Couldn't update item with id ${P}`,originalError:ae}})}},[y,c,e]),F=T.useCallback(async(P,D)=>{try{const te=await Vd(e,Fe(P));return D||(c(),y()),te}catch(te){o({type:"setError",payload:{message:`Couldn't delete item with id ${P}`,originalError:te}})}},[y,c,e]),_=T.useCallback(async P=>{try{await Lp(P,e,i.queryParams)}catch(D){o({type:"setError",payload:{message:"Couldn't download",originalError:D}})}},[e,i.queryParams]);return{path:e,data:p,info:l,queryParams:i.queryParams,loading:i.loading,error:i.error,setQueryParams:x,refetch:y,refetchInfo:c,getEntry:w,addEntry:j,updateEntry:M,deleteEntry:F,download:_}}const Vp=async(e,t,r)=>{try{const{fetchPath:n,options:i}=Ve({path:Pe(e,"/bulk",t),method:"POST",body:r}),o=await fetch(n,i);if(o.ok)return await o.json();throw new Error(o.statusText)}catch(n){throw new Error(n)}},Bp=({Api:e})=>{const[t,r]=T.useState([]),[n,i]=T.useState(null),o=T.useCallback(async(s,l)=>{try{i(null);const u=await Vp(e.path,s,t);return l?void 0:(e.refetch(),u)}catch(u){console.error(u),i({message:"Couldn't perform bulk action",originalError:u})}},[e,t]);return{bulkActions:T.useMemo(()=>({selectedIds:t,setSelectedIds:r}),[t,r]),dispatchBulkActions:o,error:n}},ho=T.createContext({Api:{path:"",data:null,info:null,queryParams:null,loading:!1,error:null,setQueryParams:e=>null,refetch:()=>null,refetchInfo:()=>null,getEntry:async e=>({}),addEntry:async(e,t)=>({}),updateEntry:async(e,t,r)=>({}),deleteEntry:async(e,t)=>({}),download:async e=>null},BulkActions:{bulkActions:{selectedIds:[],setSelectedIds:()=>{}},dispatchBulkActions:async(e,t)=>{},error:null}});function Re(){const e=T.useContext(ho);if(e===void 0)throw new Error("useApi must be used within a ApiProvider");return e.Api}function Wp(){const e=T.useContext(ho);if(e===void 0)throw new Error("useBulkActions must be used within a ApiProvider");return e.BulkActions}function _s({resource_name:e="",initialQueryParams:t,relation:r,fetchInfo:n,children:i}){const{baseUrl:o}=bs(),a=Up({path:Pe(o,e),initialQueryParams:t,relation:r,fetchInfo:n}),s=Bp({path:Pe(o,e),Api:a});return d.jsx(ho.Provider,{value:{Api:a,BulkActions:s},children:i})}function mo(e){return t=>{try{return e.validateSync(t,{abortEarly:!1}),{}}catch(r){const n={};return r instanceof Le&&r.inner.forEach(i=>{n[i.path.replaceAll("[",".").replaceAll("]","")]=i.message}),n}}}function Hp({form:e,name:t,...r}){return d.jsx(d.Fragment,{children:d.jsx(or.DateInput,{...e.getInputProps(t),onChange:n=>{if(n instanceof Date){const i=new Date(n.getTime()-n.getTimezoneOffset()*6e4);e.setFieldValue(t,i.toISOString().substring(0,10))}},value:e.getInputProps(t).value?new Date(e.getInputProps(t).value):null,...r})})}function Gp({form:e,name:t,...r}){return d.jsx(d.Fragment,{children:d.jsx(or.DateTimePicker,{...e.getInputProps(t),onChange:n=>{if(n instanceof Date){const i=new Date(n);e.setFieldValue(t,i.toISOString())}},value:e.getInputProps(t).value?new Date(e.getInputProps(t).value):null,...r})})}function qp({form:e,name:t,items:r,filter:n,...i}){var a;const o=r.map(s=>({value:String(Fe(s.id)),label:s.value}));return d.jsx(v.Select,{data:o,searchable:!0,...e.getInputProps(t),onChange:s=>{if(n){e.setFieldValue(t,s);return}const l=r.find(u=>String(Fe(u.id))===s)||null;e.setFieldValue(t,l)},value:n?e.getInputProps(t).value:String(Fe((a=e.getInputProps(t).value)==null?void 0:a.id))||"",...i})}function Yp({form:e,name:t,items:r,...n}){const i=r.map(a=>({value:String(Fe(a.id)),label:a.value})),o=Array.isArray(e.getInputProps(t).value)?e.getInputProps(t).value.map(a=>String(typeof a=="object"?Fe(a.id):a)):[];return d.jsx(v.MultiSelect,{data:i,searchable:!0,...e.getInputProps(t),value:o||[],...n})}function Kp({form:e,name:t,items:r,...n}){return d.jsx(v.Select,{data:r,searchable:!0,...e.getInputProps(t),value:String(e.getInputProps(t).value)||"",...n})}function Ts({form:e,name:t,...r}){return t==="password"?d.jsx(v.PasswordInput,{...e.getInputProps(t),...r}):d.jsx(v.TextInput,{...e.getInputProps(t),value:e.getInputProps(t).value||"",...r})}const Xp=/choices=\[([^\]]*)\]/;function Jp({form:e,name:t,items:r,...n}){const i=r[0].match(Xp)[1].replaceAll("'","").split(",").map(o=>(o=o.trim(),{label:o,value:o}));return d.jsx(v.Select,{data:i,searchable:!0,...e.getInputProps(t),...n,value:String(e.getInputProps(t).value)||""})}function go({form:e,name:t,schema:r,filter:n,...i}){if(!r.type)return null;switch(r.type){case"Boolean":return d.jsx(Kp,{form:e,name:t,items:[{label:"true",value:n?"1":"true"},{label:"false",value:n?"0":"false"}],...i});case"RelatedList":return d.jsx(Yp,{form:e,name:t,items:r.values,...i});case"Related":return d.jsx(qp,{form:e,name:t,items:r.values,filter:n,...i});case"DateTime":return d.jsx(Gp,{form:e,name:t,valueFormat:"DD.MM.YYYY HH:mm:ss",schema:r,...i});case"Date":return d.jsx(Hp,{form:e,name:t,valueFormat:"DD.MM.YYYY",schema:r,...i});case"Field":return d.jsx(Jp,{form:e,name:t,items:r.validate,...i});case"Integer":case"Float":return d.jsx(Ts,{form:e,name:t,...i});default:return d.jsx(Ts,{form:e,name:t,...i})}}function Es({opened:e,onClose:t,...r}){const{info:n,addEntry:i}=Re(),o={modal:{},stack:{},addButton:{}},{addButton:a,modal:s,stack:l}=v.useProps("AddDialog",o,r),u=Ui.useForm({initialValues:n.add.defaultValues,validate:mo(n.add.schema)}),c=async f=>{await i(f),u.reset(),t()};return T.useEffect(()=>{u.setInitialValues(n.add.defaultValues),u.reset()},[n.add.defaultValues]),d.jsx(v.Modal,{opened:e,onClose:()=>{u.reset(),t()},title:n.add.title,size:"lg",centered:!0,...s,children:d.jsx(v.Box,{component:"form",onSubmit:u.onSubmit(c),children:d.jsx(v.Stack,{spacing:"md",...l,children:d.jsxs(v.ScrollArea.Autosize,{mah:450,type:"auto",children:[n.add.columns.map((f,p)=>d.jsx(go,{form:u,name:f.name,label:f.label,description:f.description,schema:f,withAsterisk:f.required},p)),d.jsx(v.Group,{position:"right",mt:"xl",children:d.jsx(v.Button,{type:"submit",...a,children:"Add"})})]})})})})}var yo={exports:{}},On={exports:{}},le={};/** @license React v16.13.1
35
+ `+(s!==a?`result of cast: ${s}`:""))}return o}_cast(t,r){let n=t===void 0?t:this.transforms.reduce((i,o)=>o.call(this,i,t,this),t);return n===void 0&&(n=this.getDefault(r)),n}_validate(t,r={},n,i){let{path:o,originalValue:a=t,strict:s=this.spec.strict}=r,l=t;s||(l=this._cast(l,Object.assign({assert:!1},r)));let u=[];for(let f of Object.values(this.internalTests))f&&u.push(f);this.runTests({path:o,value:l,originalValue:a,options:r,tests:u},n,f=>{if(f.length)return i(f,l);this.runTests({path:o,value:l,originalValue:a,options:r,tests:this.tests},n,i)})}runTests(t,r,n){let i=!1,{tests:o,value:a,originalValue:s,path:l,options:u}=t,f=h=>{i||(i=!0,r(h,a))},c=h=>{i||(i=!0,n(h,a))},p=o.length,y=[];if(!p)return c([]);let g={value:a,originalValue:s,path:l,options:u,schema:this};for(let h=0;h<o.length;h++){const x=o[h];x(g,f,function(k){k&&(Array.isArray(k)?y.push(...k):y.push(k)),--p<=0&&c(y)})}}asNestedTest({key:t,index:r,parent:n,parentPath:i,originalParent:o,options:a}){const s=t??r;if(s==null)throw TypeError("Must include `key` or `index` for nested validations");const l=typeof s=="number";let u=n[s];const f=Object.assign({},a,{strict:!0,parent:n,value:u,originalValue:o[s],key:void 0,[l?"index":"key"]:s,path:l||s.includes(".")?`${i||""}[${l?s:`"${s}"`}]`:(i?`${i}.`:"")+t});return(c,p,y)=>this.resolve(f)._validate(u,f,p,y)}validate(t,r){var n;let i=this.resolve(Object.assign({},r,{value:t})),o=(n=r==null?void 0:r.disableStackTrace)!=null?n:i.spec.disableStackTrace;return new Promise((a,s)=>i._validate(t,r,(l,u)=>{Le.isError(l)&&(l.value=u),s(l)},(l,u)=>{l.length?s(new Le(l,u,void 0,void 0,o)):a(u)}))}validateSync(t,r){var n;let i=this.resolve(Object.assign({},r,{value:t})),o,a=(n=r==null?void 0:r.disableStackTrace)!=null?n:i.spec.disableStackTrace;return i._validate(t,Object.assign({},r,{sync:!0}),(s,l)=>{throw Le.isError(s)&&(s.value=l),s},(s,l)=>{if(s.length)throw new Le(s,t,void 0,void 0,a);o=l}),o}isValid(t,r){return this.validate(t,r).then(()=>!0,n=>{if(Le.isError(n))return!1;throw n})}isValidSync(t,r){try{return this.validateSync(t,r),!0}catch(n){if(Le.isError(n))return!1;throw n}}_getDefault(t){let r=this.spec.default;return r==null?r:typeof r=="function"?r.call(this,t):sr(r)}getDefault(t){return this.resolve(t||{})._getDefault(t)}default(t){return arguments.length===0?this._getDefault():this.clone({default:t})}strict(t=!0){return this.clone({strict:t})}nullability(t,r){const n=this.clone({nullable:t});return n.internalTests.nullable=ar({message:r,name:"nullable",test(i){return i===null?this.schema.spec.nullable:!0}}),n}optionality(t,r){const n=this.clone({optional:t});return n.internalTests.optionality=ar({message:r,name:"optionality",test(i){return i===void 0?this.schema.spec.optional:!0}}),n}optional(){return this.optionality(!0)}defined(t=_t.defined){return this.optionality(!1,t)}nullable(){return this.nullability(!0)}nonNullable(t=_t.notNull){return this.nullability(!1,t)}required(t=_t.required){return this.clone().withMutation(r=>r.nonNullable(t).defined(t))}notRequired(){return this.clone().withMutation(t=>t.nullable().optional())}transform(t){let r=this.clone();return r.transforms.push(t),r}test(...t){let r;if(t.length===1?typeof t[0]=="function"?r={test:t[0]}:r=t[0]:t.length===2?r={name:t[0],test:t[1]}:r={name:t[0],message:t[1],test:t[2]},r.message===void 0&&(r.message=_t.default),typeof r.test!="function")throw new TypeError("`test` is a required parameters");let n=this.clone(),i=ar(r),o=r.exclusive||r.name&&n.exclusiveTests[r.name]===!0;if(r.exclusive&&!r.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return r.name&&(n.exclusiveTests[r.name]=!!r.exclusive),n.tests=n.tests.filter(a=>!(a.OPTIONS.name===r.name&&(o||a.OPTIONS.test===i.OPTIONS.test))),n.tests.push(i),n}when(t,r){!Array.isArray(t)&&typeof t!="string"&&(r=t,t=".");let n=this.clone(),i=es(t).map(o=>new Nt(o));return i.forEach(o=>{o.isSibling&&n.deps.push(o.key)}),n.conditions.push(typeof r=="function"?new _n(i,r):_n.fromOptions(i,r)),n}typeError(t){let r=this.clone();return r.internalTests.typeError=ar({message:t,name:"typeError",skipAbsent:!0,test(n){return this.schema._typeCheck(n)?!0:this.createError({params:{type:this.schema.type}})}}),r}oneOf(t,r=_t.oneOf){let n=this.clone();return t.forEach(i=>{n._whitelist.add(i),n._blacklist.delete(i)}),n.internalTests.whiteList=ar({message:r,name:"oneOf",skipAbsent:!0,test(i){let o=this.schema._whitelist,a=o.resolveAll(this.resolve);return a.includes(i)?!0:this.createError({params:{values:Array.from(o).join(", "),resolved:a}})}}),n}notOneOf(t,r=_t.notOneOf){let n=this.clone();return t.forEach(i=>{n._blacklist.add(i),n._whitelist.delete(i)}),n.internalTests.blacklist=ar({message:r,name:"notOneOf",test(i){let o=this.schema._blacklist,a=o.resolveAll(this.resolve);return a.includes(i)?this.createError({params:{values:Array.from(o).join(", "),resolved:a}}):!0}}),n}strip(t=!0){let r=this.clone();return r.spec.strip=t,r}describe(t){const r=(t?this.resolve(t):this).clone(),{label:n,meta:i,optional:o,nullable:a}=r.spec;return{meta:i,label:n,optional:o,nullable:a,default:r.getDefault(t),type:r.type,oneOf:r._whitelist.describe(),notOneOf:r._blacklist.describe(),tests:r.tests.map(l=>({name:l.OPTIONS.name,params:l.OPTIONS.params})).filter((l,u,f)=>f.findIndex(c=>c.name===l.name)===u)}}}ze.prototype.__isYupSchema__=!0;for(const e of["validate","validateSync"])ze.prototype[`${e}At`]=function(t,r,n={}){const{parent:i,parentPath:o,schema:a}=Qi(this,t,r,n.context);return a[e](i&&i[o],Object.assign({},n,{parent:i,path:t}))};for(const e of["equals","is"])ze.prototype[e]=ze.prototype.oneOf;for(const e of["not","nope"])ze.prototype[e]=ze.prototype.notOneOf;const hp=()=>!0;function Sn(e){return new eo(e)}class eo extends ze{constructor(t){super(typeof t=="function"?{type:"mixed",check:t}:Object.assign({type:"mixed",check:hp},t))}}Sn.prototype=eo.prototype;function to(){return new ro}class ro extends ze{constructor(){super({type:"boolean",check(t){return t instanceof Boolean&&(t=t.valueOf()),typeof t=="boolean"}}),this.withMutation(()=>{this.transform((t,r,n)=>{if(n.spec.coerce&&!n.isType(t)){if(/^(true|1)$/i.test(String(t)))return!0;if(/^(false|0)$/i.test(String(t)))return!1}return t})})}isTrue(t=Ji.isValue){return this.test({message:t,name:"is-value",exclusive:!0,params:{value:"true"},test(r){return pt(r)||r===!0}})}isFalse(t=Ji.isValue){return this.test({message:t,name:"is-value",exclusive:!0,params:{value:"false"},test(r){return pt(r)||r===!1}})}default(t){return super.default(t)}defined(t){return super.defined(t)}optional(){return super.optional()}required(t){return super.required(t)}notRequired(){return super.notRequired()}nullable(){return super.nullable()}nonNullable(t){return super.nonNullable(t)}strip(t){return super.strip(t)}}to.prototype=ro.prototype;const mp=/^(\d{4}|[+-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,.](\d{1,}))?)?(?:(Z)|([+-])(\d{2})(?::?(\d{2}))?)?)?$/;function gp(e){const t=no(e);if(!t)return Date.parse?Date.parse(e):Number.NaN;if(t.z===void 0&&t.plusMinus===void 0)return new Date(t.year,t.month,t.day,t.hour,t.minute,t.second,t.millisecond).valueOf();let r=0;return t.z!=="Z"&&t.plusMinus!==void 0&&(r=t.hourOffset*60+t.minuteOffset,t.plusMinus==="+"&&(r=0-r)),Date.UTC(t.year,t.month,t.day,t.hour,t.minute+r,t.second,t.millisecond)}function no(e){var t,r;const n=mp.exec(e);return n?{year:At(n[1]),month:At(n[2],1)-1,day:At(n[3],1),hour:At(n[4]),minute:At(n[5]),second:At(n[6]),millisecond:n[7]?At(n[7].substring(0,3)):0,precision:(t=(r=n[7])==null?void 0:r.length)!=null?t:void 0,z:n[8]||void 0,plusMinus:n[9]||void 0,hourOffset:At(n[10]),minuteOffset:At(n[11])}:null}function At(e,t=0){return Number(e)||t}let yp=/^[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])?)*$/,vp=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,bp=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,xp="^\\d{4}-\\d{2}-\\d{2}",_p="\\d{2}:\\d{2}:\\d{2}",Tp="(([+-]\\d{2}(:?\\d{2})?)|Z)",Ep=new RegExp(`${xp}T${_p}(\\.\\d+)?${Tp}$`),Sp=e=>pt(e)||e===e.trim(),wp={}.toString();function wn(){return new io}class io extends ze{constructor(){super({type:"string",check(t){return t instanceof String&&(t=t.valueOf()),typeof t=="string"}}),this.withMutation(()=>{this.transform((t,r,n)=>{if(!n.spec.coerce||n.isType(t)||Array.isArray(t))return t;const i=t!=null&&t.toString?t.toString():t;return i===wp?t:i})})}required(t){return super.required(t).withMutation(r=>r.test({message:t||_t.required,name:"required",skipAbsent:!0,test:n=>!!n.length}))}notRequired(){return super.notRequired().withMutation(t=>(t.tests=t.tests.filter(r=>r.OPTIONS.name!=="required"),t))}length(t,r=Ke.length){return this.test({message:r,name:"length",exclusive:!0,params:{length:t},skipAbsent:!0,test(n){return n.length===this.resolve(t)}})}min(t,r=Ke.min){return this.test({message:r,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(n){return n.length>=this.resolve(t)}})}max(t,r=Ke.max){return this.test({name:"max",exclusive:!0,message:r,params:{max:t},skipAbsent:!0,test(n){return n.length<=this.resolve(t)}})}matches(t,r){let n=!1,i,o;return r&&(typeof r=="object"?{excludeEmptyString:n=!1,message:i,name:o}=r:i=r),this.test({name:o||"matches",message:i||Ke.matches,params:{regex:t},skipAbsent:!0,test:a=>a===""&&n||a.search(t)!==-1})}email(t=Ke.email){return this.matches(yp,{name:"email",message:t,excludeEmptyString:!0})}url(t=Ke.url){return this.matches(vp,{name:"url",message:t,excludeEmptyString:!0})}uuid(t=Ke.uuid){return this.matches(bp,{name:"uuid",message:t,excludeEmptyString:!1})}datetime(t){let r="",n,i;return t&&(typeof t=="object"?{message:r="",allowOffset:n=!1,precision:i=void 0}=t:r=t),this.matches(Ep,{name:"datetime",message:r||Ke.datetime,excludeEmptyString:!0}).test({name:"datetime_offset",message:r||Ke.datetime_offset,params:{allowOffset:n},skipAbsent:!0,test:o=>{if(!o||n)return!0;const a=no(o);return a?!!a.z:!1}}).test({name:"datetime_precision",message:r||Ke.datetime_precision,params:{precision:i},skipAbsent:!0,test:o=>{if(!o||i==null)return!0;const a=no(o);return a?a.precision===i:!1}})}ensure(){return this.default("").transform(t=>t===null?"":t)}trim(t=Ke.trim){return this.transform(r=>r!=null?r.trim():r).test({message:t,name:"trim",test:Sp})}lowercase(t=Ke.lowercase){return this.transform(r=>pt(r)?r:r.toLowerCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:r=>pt(r)||r===r.toLowerCase()})}uppercase(t=Ke.uppercase){return this.transform(r=>pt(r)?r:r.toUpperCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:r=>pt(r)||r===r.toUpperCase()})}}wn.prototype=io.prototype;let Cp=e=>e!=+e;function ss(){return new oo}class oo extends ze{constructor(){super({type:"number",check(t){return t instanceof Number&&(t=t.valueOf()),typeof t=="number"&&!Cp(t)}}),this.withMutation(()=>{this.transform((t,r,n)=>{if(!n.spec.coerce)return t;let i=t;if(typeof i=="string"){if(i=i.replace(/\s/g,""),i==="")return NaN;i=+i}return n.isType(i)||i===null?i:parseFloat(i)})})}min(t,r=Mt.min){return this.test({message:r,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(n){return n>=this.resolve(t)}})}max(t,r=Mt.max){return this.test({message:r,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(n){return n<=this.resolve(t)}})}lessThan(t,r=Mt.lessThan){return this.test({message:r,name:"max",exclusive:!0,params:{less:t},skipAbsent:!0,test(n){return n<this.resolve(t)}})}moreThan(t,r=Mt.moreThan){return this.test({message:r,name:"min",exclusive:!0,params:{more:t},skipAbsent:!0,test(n){return n>this.resolve(t)}})}positive(t=Mt.positive){return this.moreThan(0,t)}negative(t=Mt.negative){return this.lessThan(0,t)}integer(t=Mt.integer){return this.test({name:"integer",message:t,skipAbsent:!0,test:r=>Number.isInteger(r)})}truncate(){return this.transform(t=>pt(t)?t:t|0)}round(t){var r;let n=["ceil","floor","round","trunc"];if(t=((r=t)==null?void 0:r.toLowerCase())||"round",t==="trunc")return this.truncate();if(n.indexOf(t.toLowerCase())===-1)throw new TypeError("Only valid options for round() are: "+n.join(", "));return this.transform(i=>pt(i)?i:Math[t](i))}}ss.prototype=oo.prototype;let ls=new Date(""),Op=e=>Object.prototype.toString.call(e)==="[object Date]";function ao(){return new lr}class lr extends ze{constructor(){super({type:"date",check(t){return Op(t)&&!isNaN(t.getTime())}}),this.withMutation(()=>{this.transform((t,r,n)=>!n.spec.coerce||n.isType(t)||t===null?t:(t=gp(t),isNaN(t)?lr.INVALID_DATE:new Date(t)))})}prepareParam(t,r){let n;if(Nt.isRef(t))n=t;else{let i=this.cast(t);if(!this._typeCheck(i))throw new TypeError(`\`${r}\` must be a Date or a value that can be \`cast()\` to a Date`);n=i}return n}min(t,r=Xi.min){let n=this.prepareParam(t,"min");return this.test({message:r,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(i){return i>=this.resolve(n)}})}max(t,r=Xi.max){let n=this.prepareParam(t,"max");return this.test({message:r,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(i){return i<=this.resolve(n)}})}}lr.INVALID_DATE=ls,ao.prototype=lr.prototype,ao.INVALID_DATE=ls;function Ap(e,t=[]){let r=[],n=new Set,i=new Set(t.map(([a,s])=>`${a}-${s}`));function o(a,s){let l=Yt.split(a)[0];n.add(l),i.has(`${s}-${l}`)||r.push([s,l])}for(const a of Object.keys(e)){let s=e[a];n.add(a),Nt.isRef(s)&&s.isSibling?o(s.path,a):Kt(s)&&"deps"in s&&s.deps.forEach(l=>o(l,a))}return ip.array(Array.from(n),r).reverse()}function us(e,t){let r=1/0;return e.some((n,i)=>{var o;if((o=t.path)!=null&&o.includes(n))return r=i,!0}),r}function cs(e){return(t,r)=>us(e,t)-us(e,r)}const fs=(e,t,r)=>{if(typeof e!="string")return e;let n=e;try{n=JSON.parse(e)}catch{}return r.isType(n)?n:e};function Cn(e){if("fields"in e){const t={};for(const[r,n]of Object.entries(e.fields))t[r]=Cn(n);return e.setFields(t)}if(e.type==="array"){const t=e.optional();return t.innerType&&(t.innerType=Cn(t.innerType)),t}return e.type==="tuple"?e.optional().clone({types:e.spec.types.map(Cn)}):"optional"in e?e.optional():e}const Pp=(e,t)=>{const r=[...Yt.normalizePath(t)];if(r.length===1)return r[0]in e;let n=r.pop(),i=Yt.getter(Yt.join(r),!0)(e);return!!(i&&n in i)};let ds=e=>Object.prototype.toString.call(e)==="[object Object]";function kp(e,t){let r=Object.keys(e.fields);return Object.keys(t).filter(n=>r.indexOf(n)===-1)}const jp=cs([]);function zr(e){return new so(e)}class so extends ze{constructor(t){super({type:"object",check(r){return ds(r)||typeof r=="function"}}),this.fields=Object.create(null),this._sortErrors=jp,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{t&&this.shape(t)})}_cast(t,r={}){var n;let i=super._cast(t,r);if(i===void 0)return this.getDefault(r);if(!this._typeCheck(i))return i;let o=this.fields,a=(n=r.stripUnknown)!=null?n:this.spec.noUnknown,s=[].concat(this._nodes,Object.keys(i).filter(c=>!this._nodes.includes(c))),l={},u=Object.assign({},r,{parent:l,__validating:r.__validating||!1}),f=!1;for(const c of s){let p=o[c],y=c in i;if(p){let g,h=i[c];u.path=(r.path?`${r.path}.`:"")+c,p=p.resolve({value:h,context:r.context,parent:l});let x=p instanceof ze?p.spec:void 0,w=x==null?void 0:x.strict;if(x!=null&&x.strip){f=f||c in i;continue}g=!r.__validating||!w?p.cast(i[c],u):i[c],g!==void 0&&(l[c]=g)}else y&&!a&&(l[c]=i[c]);(y!==c in l||l[c]!==i[c])&&(f=!0)}return f?l:i}_validate(t,r={},n,i){let{from:o=[],originalValue:a=t,recursive:s=this.spec.recursive}=r;r.from=[{schema:this,value:a},...o],r.__validating=!0,r.originalValue=a,super._validate(t,r,n,(l,u)=>{if(!s||!ds(u)){i(l,u);return}a=a||u;let f=[];for(let c of this._nodes){let p=this.fields[c];!p||Nt.isRef(p)||f.push(p.asNestedTest({options:r,key:c,parent:u,parentPath:r.path,originalParent:a}))}this.runTests({tests:f,value:u,originalValue:a,options:r},n,c=>{i(c.sort(this._sortErrors).concat(l),u)})})}clone(t){const r=super.clone(t);return r.fields=Object.assign({},this.fields),r._nodes=this._nodes,r._excludedEdges=this._excludedEdges,r._sortErrors=this._sortErrors,r}concat(t){let r=super.concat(t),n=r.fields;for(let[i,o]of Object.entries(this.fields)){const a=n[i];n[i]=a===void 0?o:a}return r.withMutation(i=>i.setFields(n,[...this._excludedEdges,...t._excludedEdges]))}_getDefault(t){if("default"in this.spec)return super._getDefault(t);if(!this._nodes.length)return;let r={};return this._nodes.forEach(n=>{var i;const o=this.fields[n];let a=t;(i=a)!=null&&i.value&&(a=Object.assign({},a,{parent:a.value,value:a.value[n]})),r[n]=o&&"getDefault"in o?o.getDefault(a):void 0}),r}setFields(t,r){let n=this.clone();return n.fields=t,n._nodes=Ap(t,r),n._sortErrors=cs(Object.keys(t)),r&&(n._excludedEdges=r),n}shape(t,r=[]){return this.clone().withMutation(n=>{let i=n._excludedEdges;return r.length&&(Array.isArray(r[0])||(r=[r]),i=[...n._excludedEdges,...r]),n.setFields(Object.assign(n.fields,t),i)})}partial(){const t={};for(const[r,n]of Object.entries(this.fields))t[r]="optional"in n&&n.optional instanceof Function?n.optional():n;return this.setFields(t)}deepPartial(){return Cn(this)}pick(t){const r={};for(const n of t)this.fields[n]&&(r[n]=this.fields[n]);return this.setFields(r,this._excludedEdges.filter(([n,i])=>t.includes(n)&&t.includes(i)))}omit(t){const r=[];for(const n of Object.keys(this.fields))t.includes(n)||r.push(n);return this.pick(r)}from(t,r,n){let i=Yt.getter(t,!0);return this.transform(o=>{if(!o)return o;let a=o;return Pp(o,t)&&(a=Object.assign({},o),n||delete a[t],a[r]=i(o)),a})}json(){return this.transform(fs)}noUnknown(t=!0,r=Zi.noUnknown){typeof t!="boolean"&&(r=t,t=!0);let n=this.test({name:"noUnknown",exclusive:!0,message:r,test(i){if(i==null)return!0;const o=kp(this.schema,i);return!t||o.length===0||this.createError({params:{unknown:o.join(", ")}})}});return n.spec.noUnknown=t,n}unknown(t=!0,r=Zi.noUnknown){return this.noUnknown(!t,r)}transformKeys(t){return this.transform(r=>{if(!r)return r;const n={};for(const i of Object.keys(r))n[t(i)]=r[i];return n})}camelCase(){return this.transformKeys(Yi.camelCase)}snakeCase(){return this.transformKeys(Yi.snakeCase)}constantCase(){return this.transformKeys(t=>Yi.snakeCase(t).toUpperCase())}describe(t){const r=(t?this.resolve(t):this).clone(),n=super.describe(t);n.fields={};for(const[o,a]of Object.entries(r.fields)){var i;let s=t;(i=s)!=null&&i.value&&(s=Object.assign({},s,{parent:s.value,value:s.value[o]})),n.fields[o]=a.describe(s)}return n}}zr.prototype=so.prototype;function lo(e){return new uo(e)}class uo extends ze{constructor(t){super({type:"array",spec:{types:t},check(r){return Array.isArray(r)}}),this.innerType=void 0,this.innerType=t}_cast(t,r){const n=super._cast(t,r);if(!this._typeCheck(n)||!this.innerType)return n;let i=!1;const o=n.map((a,s)=>{const l=this.innerType.cast(a,Object.assign({},r,{path:`${r.path||""}[${s}]`}));return l!==a&&(i=!0),l});return i?o:n}_validate(t,r={},n,i){var o;let a=this.innerType,s=(o=r.recursive)!=null?o:this.spec.recursive;r.originalValue!=null&&r.originalValue,super._validate(t,r,n,(l,u)=>{var f;if(!s||!a||!this._typeCheck(u)){i(l,u);return}let c=new Array(u.length);for(let y=0;y<u.length;y++){var p;c[y]=a.asNestedTest({options:r,index:y,parent:u,parentPath:r.path,originalParent:(p=r.originalValue)!=null?p:t})}this.runTests({value:u,tests:c,originalValue:(f=r.originalValue)!=null?f:t,options:r},n,y=>i(y.concat(l),u))})}clone(t){const r=super.clone(t);return r.innerType=this.innerType,r}json(){return this.transform(fs)}concat(t){let r=super.concat(t);return r.innerType=this.innerType,t.innerType&&(r.innerType=r.innerType?r.innerType.concat(t.innerType):t.innerType),r}of(t){let r=this.clone();if(!Kt(t))throw new TypeError("`array.of()` sub-schema must be a valid yup schema not: "+xt(t));return r.innerType=t,r.spec=Object.assign({},r.spec,{types:t}),r}length(t,r=xn.length){return this.test({message:r,name:"length",exclusive:!0,params:{length:t},skipAbsent:!0,test(n){return n.length===this.resolve(t)}})}min(t,r){return r=r||xn.min,this.test({message:r,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(n){return n.length>=this.resolve(t)}})}max(t,r){return r=r||xn.max,this.test({message:r,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(n){return n.length<=this.resolve(t)}})}ensure(){return this.default(()=>[]).transform((t,r)=>this._typeCheck(t)?t:r==null?[]:[].concat(r))}compact(t){let r=t?(n,i,o)=>!t(n,i,o):n=>!!n;return this.transform(n=>n!=null?n.filter(r):n)}describe(t){const r=(t?this.resolve(t):this).clone(),n=super.describe(t);if(r.innerType){var i;let o=t;(i=o)!=null&&i.value&&(o=Object.assign({},o,{parent:o.value,value:o.value[0]})),n.innerType=r.innerType.describe(o)}return n}}lo.prototype=uo.prototype;function ps(e){return new co(e)}class co extends ze{constructor(t){super({type:"tuple",spec:{types:t},check(r){const n=this.spec.types;return Array.isArray(r)&&r.length===n.length}}),this.withMutation(()=>{this.typeError(os.notType)})}_cast(t,r){const{types:n}=this.spec,i=super._cast(t,r);if(!this._typeCheck(i))return i;let o=!1;const a=n.map((s,l)=>{const u=s.cast(i[l],Object.assign({},r,{path:`${r.path||""}[${l}]`}));return u!==i[l]&&(o=!0),u});return o?a:i}_validate(t,r={},n,i){let o=this.spec.types;super._validate(t,r,n,(a,s)=>{var l;if(!this._typeCheck(s)){i(a,s);return}let u=[];for(let[c,p]of o.entries()){var f;u[c]=p.asNestedTest({options:r,index:c,parent:s,parentPath:r.path,originalParent:(f=r.originalValue)!=null?f:t})}this.runTests({value:s,tests:u,originalValue:(l=r.originalValue)!=null?l:t,options:r},n,c=>i(c.concat(a),s))})}describe(t){const r=(t?this.resolve(t):this).clone(),n=super.describe(t);return n.innerType=r.spec.types.map((i,o)=>{var a;let s=t;return(a=s)!=null&&a.value&&(s=Object.assign({},s,{parent:s.value,value:s.value[o]})),i.describe(s)}),n}}ps.prototype=co.prototype;function Ip(e){return new fo(e)}class fo{constructor(t){this.type="lazy",this.__isYupSchema__=!0,this.spec=void 0,this._resolve=(r,n={})=>{let i=this.builder(r,n);if(!Kt(i))throw new TypeError("lazy() functions must return a valid schema");return this.spec.optional&&(i=i.optional()),i.resolve(n)},this.builder=t,this.spec={meta:void 0,optional:!1}}clone(t){const r=new fo(this.builder);return r.spec=Object.assign({},this.spec,t),r}optionality(t){return this.clone({optional:t})}optional(){return this.optionality(!0)}resolve(t){return this._resolve(t.value,t)}cast(t,r){return this._resolve(t,r).cast(t,r)}asNestedTest(t){let{key:r,index:n,parent:i,options:o}=t,a=i[n??r];return this._resolve(a,Object.assign({},o,{value:a,parent:i})).asNestedTest(t)}validate(t,r){return this._resolve(t,r).validate(t,r)}validateSync(t,r){return this._resolve(t,r).validateSync(t,r)}validateAt(t,r,n){return this._resolve(r,n).validateAt(t,r,n)}validateSyncAt(t,r,n){return this._resolve(r,n).validateSyncAt(t,r,n)}isValid(t,r){return this._resolve(t,r).isValid(t,r)}isValidSync(t,r){return this._resolve(t,r).isValidSync(t,r)}describe(t){return t?this.resolve(t).describe(t):{type:"lazy",meta:this.spec.meta,label:void 0}}meta(...t){if(t.length===0)return this.spec.meta;let r=this.clone();return r.spec.meta=Object.assign(r.spec.meta||{},t[0]),r}}function $p(e){Object.keys(e).forEach(t=>{Object.keys(e[t]).forEach(r=>{as[t][r]=e[t][r]})})}function Rp(e,t,r){if(!e||!Kt(e.prototype))throw new TypeError("You must provide a yup schema constructor function");if(typeof t!="string")throw new TypeError("A Method name must be provided");if(typeof r!="function")throw new TypeError("Method function must be provided");e.prototype[t]=r}const hs=Object.freeze(Object.defineProperty({__proto__:null,ArraySchema:uo,BooleanSchema:ro,DateSchema:lr,MixedSchema:eo,NumberSchema:oo,ObjectSchema:so,Schema:ze,StringSchema:io,TupleSchema:co,ValidationError:Le,addMethod:Rp,array:lo,bool:to,boolean:to,date:ao,defaultLocale:as,getIn:Qi,isSchema:Kt,lazy:Ip,mixed:Sn,number:ss,object:zr,printValue:xt,reach:pp,ref:dp,setLocale:$p,string:wn,tuple:ps},Symbol.toStringTag,{value:"Module"})),ms=e=>{const t=e.reduce((r,n)=>{let{name:i,required:o,type:a}=n;switch(a){case"RelatedList":a="array";break;case"Related":a="object";break;case"Date":a="string";break;case"Integer":case"Float":a="number";break;default:a="string"}let s;try{o?s=hs[a]().typeError(`Field must be of type ${a}`).required("Field is required"):s=hs[a]().typeError(`Field must be of type ${a}`).nullable(!0)}catch(l){console.log(l)}return r[i]=s,r},{});return zr().shape(t)};function gs({path:e,autoInvoke:t=!0,clearDataOnRefetch:r=!1}){const{fetchPath:n,options:i}=T.useMemo(()=>Ve({path:Pe(e,"_info"),method:"GET"}),[e]),{data:o,loading:a,refetch:s,error:l}=yn(n,{autoInvoke:t,clearDataOnRefetch:r,...i});return{info:T.useMemo(()=>o?{...o,add:{columns:o.add_columns,title:o.add_title,schema:ms(o.add_columns),defaultValues:Ga(o.add_columns)},edit:{columns:o.edit_columns,title:o.edit_title,schema:ms(o.edit_columns),defaultValues:Ga(o.edit_columns)}}:null,[o]),loading:a,refetch:s,error:l}}const ys={user:null,loading:!0,error:null};function Dp(e,t){switch(t.type){case"initCall":return{...ys};case"setUser":return{...e,user:t.payload,error:null};case"setError":return{...e,loading:!1,error:t.payload};case"setLoading":return{...e,loading:t.payload};default:return e}}function Mp(e){const[t,r]=T.useReducer(Dp,ys),{user:n,refetch:i,loading:o}=Ba({path:e});T.useEffect(()=>{r({type:"setLoading",payload:o})},[o]),T.useEffect(()=>{r({type:"setUser",payload:n})},[n]);const a=T.useCallback(async({username:c,password:p})=>{r({type:"initCall"});try{const y=new FormData;y.append("username",c),y.append("password",p);const{fetchPath:g,options:h}=Ve({path:Pe(e,"auth/login"),method:"POST"});(await fetch(g,{...h,headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams(y)})).ok?i():r({type:"setError",payload:"Username or password wrong."})}catch(y){console.error("signin error",y),r({type:"setError",payload:"Failed to fetch"})}},[e,i]),s=T.useCallback(async()=>{r({type:"initCall"});try{const{fetchPath:c,options:p}=Ve({path:Pe(e,"auth/logout"),method:"POST"});(await fetch(c,p)).ok?r({type:"setUser",payload:null}):r({type:"setError",payload:"Couldn't sign out user"})}catch(c){console.error("signout error",c),r({type:"setError",payload:"Failed to fetch"})}finally{r({type:"setLoading",payload:!1})}},[e]),l=T.useCallback(async c=>{r({type:"initCall"});try{const{fetchPath:p,options:y}=Ve({path:Pe(e,"auth/user"),method:"PUT",body:c});(await fetch(p,y)).ok&&i(),r({type:"setError",payload:"Couldn't update user data"})}catch(p){console.error("update error",p),r({type:"setError",payload:"Failed to post"})}},[e,i]),u=T.useCallback(async c=>{if(!n.email)return r({type:"setError",payload:"No email found"});try{const{fetchPath:p,options:y}=Ve({path:Pe(e,"auth/forgot-password"),method:"POST",body:{email:n.email}}),g=await fetch(p,y);if(!g.ok){r({type:"setError",payload:"Couldn't request token to reset password"});return}const h=await g.json(),{token:x}=h,{fetchPath:w,options:k}=Ve({path:Pe(e,"auth/reset-password"),method:"POST",body:{token:x,password:c}});if(!(await fetch(w,k)).ok){r({type:"setError",payload:"Couldn't reset password"});return}i()}catch(p){console.error("resetPassword error",p),r({type:"setError",payload:"Failed to post"})}},[e,i,n==null?void 0:n.email]),f=T.useCallback((c,p)=>{const y=Pe(e,"auth/login",c);if(p){const x=window.screenLeft+window.outerWidth/2-250,w=window.screenTop+window.outerHeight/2-500/2,k=window.open(y+"?popup=true","auth",`toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, width=500, height=500, top=${w}, left=${x}`),D=window.setInterval(function(){k.closed!==!1&&(window.clearInterval(D),i())},200);return}window.location.href=Pe(e,"auth/login",c)},[e,i]);return{user:t.user,loading:t.loading,error:t.error,signin:a,signout:s,update:l,resetPassword:u,oauth_signin:f}}function Np(e,t){const{user:r}=t,[n,i]=T.useState(null),[o,a]=T.useState(!0),[s,l]=T.useState({error:"401 Not authorized",message:"User is not logged in."});T.useEffect(()=>{r&&u(e)},[r]);const u=async f=>{a(!0);try{const{fetchPath:c,options:p}=Ve({path:Pe(f,"info/"),method:"GET"}),y=await fetch(c,p);if(y.ok){const g=await y.json();i(g)}else l({error:"404 Not Found",message:"Couldn't fetch info"})}catch{l({error:"Network error",message:"Failed to fetch"})}finally{a(!1)}};return{info:n,loading:o,error:s}}const po=T.createContext({auth:{user:null,loading:!1,error:null,signin:async(e,t)=>null,signout:async()=>null,update:async e=>null,resetPassword:async e=>null,oauth_signin:(e,t)=>null},info:{info:null,loading:!1,error:null}});function vs(){return T.useContext(po).auth}function bs(){return T.useContext(po).info}function Fp(e){const t={baseUrl:new URL(document.baseURI).pathname+"/api/v1",inheritMantineTheme:!1},{baseUrl:r,children:n}={...t,...e},i=Mp(r),o={baseUrl:r,...Np(r,i)};return d.jsx(po.Provider,{value:{auth:i,info:o},children:n})}const Lp=async(e,t,r)=>{const{fetchPath:n,options:i}=Ve({path:Pe(t,"/download"),method:"POST"}),o=await fetch(n,{...i,body:JSON.stringify(r)});if(!o.ok)throw new Error(o.statusText);const a=await o.blob(),s=document.createElement("a"),l=URL.createObjectURL(a);s.href=l,s.download=e.toLowerCase()+".csv",s.click()},xs={queryParams:null,loading:!1,error:null};function zp(e,t){switch(t.type){case"setQueryParams":return{...e,queryParams:{...t.payload}};case"setLoading":return{...e,loading:t.payload};case"setError":return{...e,error:t.payload};default:throw new Error}}function Up({path:e,initialQueryParams:t,relation:r,fetchInfo:n=!0,clearInfoOnRefetch:i=!1,clearDataOnRefetch:o=!1}){const[a,s]=T.useReducer(zp,{...xs,queryParams:t?Ha(null,t):null}),l=T.useMemo(()=>r?{...a.queryParams,filters:[...a.queryParams.filters,{col:r.foreign_key,opr:r.type,value:Fe(r.id)}]}:a.queryParams,[a.queryParams,r]),u=T.useMemo(()=>l!=null,[l]),{info:f,loading:c,refetch:p,error:y}=gs({path:e,autoInvoke:n,clearDataOnRefetch:i}),{data:g,loading:h,refetch:x,error:w}=Wa({path:e,queryParams:l,autoInvoke:u,clearDataOnRefetch:o});T.useEffect(()=>{if(y){s({type:"setError",payload:{message:"Couldn't fetch info",originalError:y}});return}if(w){s({type:"setError",payload:{message:"Couldn't fetch list",originalError:w}});return}s({type:"setError",payload:xs.error})},[y,w]),T.useEffect(()=>{s({type:"setLoading",payload:c||h})},[h,c]);const k=T.useCallback(J=>{const ee=Ha(a.queryParams,J);s({type:"setQueryParams",payload:ee})},[a.queryParams]),D=T.useCallback(async J=>{try{return await Bd(e,Fe(J))}catch(ee){s({type:"setError",payload:{message:`Couldn't fetch item with id ${J}`,originalError:ee}})}},[e]),N=T.useCallback(async(J,ee)=>{try{const oe=await Ud(e,J);return ee||(p(),x()),oe}catch(oe){s({type:"setError",payload:{message:"Couldnt add item.",originalError:oe}})}},[x,p,e]),_=T.useCallback(async(J,ee,oe)=>{try{const z=await Wd(e,Fe(J),ee);return oe||(p(),x()),z}catch(z){s({type:"setError",payload:{message:`Couldn't update item with id ${J}`,originalError:z}})}},[x,p,e]),R=T.useCallback(async(J,ee)=>{try{const oe=await Vd(e,Fe(J));return ee||(p(),x()),oe}catch(oe){s({type:"setError",payload:{message:`Couldn't delete item with id ${J}`,originalError:oe}})}},[x,p,e]),F=T.useCallback(async J=>{try{await Lp(J,e,a.queryParams)}catch(ee){s({type:"setError",payload:{message:"Couldn't download",originalError:ee}})}},[e,a.queryParams]);return{path:e,data:g,info:f,queryParams:a.queryParams,loading:a.loading,error:a.error,setQueryParams:k,refetch:x,refetchInfo:p,getEntry:D,addEntry:N,updateEntry:_,deleteEntry:R,download:F}}const Vp=async(e,t,r)=>{try{const{fetchPath:n,options:i}=Ve({path:Pe(e,"/bulk",t),method:"POST",body:r}),o=await fetch(n,i);if(o.ok)return await o.json();throw new Error(o.statusText)}catch(n){throw new Error(n)}},Bp=({Api:e})=>{const[t,r]=T.useState([]),[n,i]=T.useState(null),o=T.useCallback(async(s,l)=>{try{i(null);const u=await Vp(e.path,s,t);return l?void 0:(e.refetch(),u)}catch(u){console.error(u),i({message:"Couldn't perform bulk action",originalError:u})}},[e,t]);return{bulkActions:T.useMemo(()=>({selectedIds:t,setSelectedIds:r}),[t,r]),dispatchBulkActions:o,error:n}},ho=T.createContext({Api:{path:"",data:null,info:null,queryParams:null,loading:!1,error:null,setQueryParams:e=>null,refetch:()=>null,refetchInfo:()=>null,getEntry:async e=>({}),addEntry:async(e,t)=>({}),updateEntry:async(e,t,r)=>({}),deleteEntry:async(e,t)=>({}),download:async e=>null},BulkActions:{bulkActions:{selectedIds:[],setSelectedIds:()=>{}},dispatchBulkActions:async(e,t)=>{},error:null}});function Re(){const e=T.useContext(ho);if(e===void 0)throw new Error("useApi must be used within a ApiProvider");return e.Api}function Wp(){const e=T.useContext(ho);if(e===void 0)throw new Error("useBulkActions must be used within a ApiProvider");return e.BulkActions}function _s({resource_name:e="",initialQueryParams:t,relation:r,fetchInfo:n,clearInfoOnRefetch:i,clearDataOnRefetch:o,children:a}){const{baseUrl:s}=bs(),l=Up({path:Pe(s,e),initialQueryParams:t,relation:r,fetchInfo:n,clearInfoOnRefetch:i,clearDataOnRefetch:o}),u=Bp({path:Pe(s,e),Api:l});return d.jsx(ho.Provider,{value:{Api:l,BulkActions:u},children:a})}function mo(e){return t=>{try{return e.validateSync(t,{abortEarly:!1}),{}}catch(r){const n={};return r instanceof Le&&r.inner.forEach(i=>{n[i.path.replaceAll("[",".").replaceAll("]","")]=i.message}),n}}}function Hp({form:e,name:t,...r}){return d.jsx(d.Fragment,{children:d.jsx(or.DateInput,{...e.getInputProps(t),onChange:n=>{if(n instanceof Date){const i=new Date(n.getTime()-n.getTimezoneOffset()*6e4);e.setFieldValue(t,i.toISOString().substring(0,10))}},value:e.getInputProps(t).value?new Date(e.getInputProps(t).value):null,...r})})}function Gp({form:e,name:t,...r}){return d.jsx(d.Fragment,{children:d.jsx(or.DateTimePicker,{...e.getInputProps(t),onChange:n=>{if(n instanceof Date){const i=new Date(n);e.setFieldValue(t,i.toISOString())}},value:e.getInputProps(t).value?new Date(e.getInputProps(t).value):null,...r})})}function qp({form:e,name:t,items:r,filter:n,...i}){var a;const o=r.map(s=>({value:String(Fe(s.id)),label:s.value}));return d.jsx(v.Select,{data:o,searchable:!0,...e.getInputProps(t),onChange:s=>{if(n){e.setFieldValue(t,s);return}const l=r.find(u=>String(Fe(u.id))===s)||null;e.setFieldValue(t,l)},value:n?e.getInputProps(t).value:String(Fe((a=e.getInputProps(t).value)==null?void 0:a.id))||"",...i})}function Yp({form:e,name:t,items:r,...n}){const i=r.map(a=>({value:String(Fe(a.id)),label:a.value})),o=Array.isArray(e.getInputProps(t).value)?e.getInputProps(t).value.map(a=>String(typeof a=="object"?Fe(a.id):a)):[];return d.jsx(v.MultiSelect,{data:i,searchable:!0,...e.getInputProps(t),value:o||[],...n})}function Kp({form:e,name:t,items:r,...n}){return d.jsx(v.Select,{data:r,searchable:!0,...e.getInputProps(t),value:String(e.getInputProps(t).value)||"",...n})}function Ts({form:e,name:t,...r}){return t==="password"?d.jsx(v.PasswordInput,{...e.getInputProps(t),...r}):d.jsx(v.TextInput,{...e.getInputProps(t),value:e.getInputProps(t).value||"",...r})}const Xp=/choices=\[([^\]]*)\]/;function Jp({form:e,name:t,items:r,...n}){const i=r[0].match(Xp)[1].replaceAll("'","").split(",").map(o=>(o=o.trim(),{label:o,value:o}));return d.jsx(v.Select,{data:i,searchable:!0,...e.getInputProps(t),...n,value:String(e.getInputProps(t).value)||""})}function go({form:e,name:t,schema:r,filter:n,...i}){if(!r.type)return null;switch(r.type){case"Boolean":return d.jsx(Kp,{form:e,name:t,items:[{label:"true",value:n?"1":"true"},{label:"false",value:n?"0":"false"}],...i});case"RelatedList":return d.jsx(Yp,{form:e,name:t,items:r.values,...i});case"Related":return d.jsx(qp,{form:e,name:t,items:r.values,filter:n,...i});case"DateTime":return d.jsx(Gp,{form:e,name:t,valueFormat:"DD.MM.YYYY HH:mm:ss",schema:r,...i});case"Date":return d.jsx(Hp,{form:e,name:t,valueFormat:"DD.MM.YYYY",schema:r,...i});case"Field":return d.jsx(Jp,{form:e,name:t,items:r.validate,...i});case"Integer":case"Float":return d.jsx(Ts,{form:e,name:t,...i});default:return d.jsx(Ts,{form:e,name:t,...i})}}function Es({opened:e,onClose:t,...r}){const{info:n,addEntry:i}=Re(),o={modal:{},stack:{},addButton:{}},{addButton:a,modal:s,stack:l}=v.useProps("AddDialog",o,r),u=Ui.useForm({initialValues:n.add.defaultValues,validate:mo(n.add.schema)}),f=async c=>{await i(c),u.reset(),t()};return T.useEffect(()=>{u.setInitialValues(n.add.defaultValues),u.reset()},[n.add.defaultValues]),d.jsx(v.Modal,{opened:e,onClose:()=>{u.reset(),t()},title:n.add.title,size:"lg",centered:!0,...s,children:d.jsx(v.Box,{component:"form",onSubmit:u.onSubmit(f),children:d.jsx(v.Stack,{spacing:"md",...l,children:d.jsxs(v.ScrollArea.Autosize,{mah:450,type:"auto",children:[n.add.columns.map((c,p)=>d.jsx(go,{form:u,name:c.name,label:c.label,description:c.description,schema:c,withAsterisk:c.required},p)),d.jsx(v.Group,{position:"right",mt:"xl",children:d.jsx(v.Button,{type:"submit",...a,children:"Add"})})]})})})})}var yo={exports:{}},On={exports:{}},ue={};/** @license React v16.13.1
36
36
  * react-is.production.min.js
37
37
  *
38
38
  * Copyright (c) Facebook, Inc. and its affiliates.
39
39
  *
40
40
  * This source code is licensed under the MIT license found in the
41
41
  * LICENSE file in the root directory of this source tree.
42
- */var Ss;function Zp(){if(Ss)return le;Ss=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,g=e?Symbol.for("react.memo"):60115,y=e?Symbol.for("react.lazy"):60116,h=e?Symbol.for("react.block"):60121,x=e?Symbol.for("react.fundamental"):60117,w=e?Symbol.for("react.responder"):60118,j=e?Symbol.for("react.scope"):60119;function M(_){if(typeof _=="object"&&_!==null){var P=_.$$typeof;switch(P){case t:switch(_=_.type,_){case l:case u:case n:case o:case i:case f:return _;default:switch(_=_&&_.$$typeof,_){case s:case c:case y:case g:case a:return _;default:return P}}case r:return P}}}function F(_){return M(_)===u}return le.AsyncMode=l,le.ConcurrentMode=u,le.ContextConsumer=s,le.ContextProvider=a,le.Element=t,le.ForwardRef=c,le.Fragment=n,le.Lazy=y,le.Memo=g,le.Portal=r,le.Profiler=o,le.StrictMode=i,le.Suspense=f,le.isAsyncMode=function(_){return F(_)||M(_)===l},le.isConcurrentMode=F,le.isContextConsumer=function(_){return M(_)===s},le.isContextProvider=function(_){return M(_)===a},le.isElement=function(_){return typeof _=="object"&&_!==null&&_.$$typeof===t},le.isForwardRef=function(_){return M(_)===c},le.isFragment=function(_){return M(_)===n},le.isLazy=function(_){return M(_)===y},le.isMemo=function(_){return M(_)===g},le.isPortal=function(_){return M(_)===r},le.isProfiler=function(_){return M(_)===o},le.isStrictMode=function(_){return M(_)===i},le.isSuspense=function(_){return M(_)===f},le.isValidElementType=function(_){return typeof _=="string"||typeof _=="function"||_===n||_===u||_===o||_===i||_===f||_===p||typeof _=="object"&&_!==null&&(_.$$typeof===y||_.$$typeof===g||_.$$typeof===a||_.$$typeof===s||_.$$typeof===c||_.$$typeof===x||_.$$typeof===w||_.$$typeof===j||_.$$typeof===h)},le.typeOf=M,le}var ue={};/** @license React v16.13.1
42
+ */var Ss;function Zp(){if(Ss)return ue;Ss=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,f=e?Symbol.for("react.forward_ref"):60112,c=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,y=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,h=e?Symbol.for("react.block"):60121,x=e?Symbol.for("react.fundamental"):60117,w=e?Symbol.for("react.responder"):60118,k=e?Symbol.for("react.scope"):60119;function D(_){if(typeof _=="object"&&_!==null){var R=_.$$typeof;switch(R){case t:switch(_=_.type,_){case l:case u:case n:case o:case i:case c:return _;default:switch(_=_&&_.$$typeof,_){case s:case f:case g:case y:case a:return _;default:return R}}case r:return R}}}function N(_){return D(_)===u}return ue.AsyncMode=l,ue.ConcurrentMode=u,ue.ContextConsumer=s,ue.ContextProvider=a,ue.Element=t,ue.ForwardRef=f,ue.Fragment=n,ue.Lazy=g,ue.Memo=y,ue.Portal=r,ue.Profiler=o,ue.StrictMode=i,ue.Suspense=c,ue.isAsyncMode=function(_){return N(_)||D(_)===l},ue.isConcurrentMode=N,ue.isContextConsumer=function(_){return D(_)===s},ue.isContextProvider=function(_){return D(_)===a},ue.isElement=function(_){return typeof _=="object"&&_!==null&&_.$$typeof===t},ue.isForwardRef=function(_){return D(_)===f},ue.isFragment=function(_){return D(_)===n},ue.isLazy=function(_){return D(_)===g},ue.isMemo=function(_){return D(_)===y},ue.isPortal=function(_){return D(_)===r},ue.isProfiler=function(_){return D(_)===o},ue.isStrictMode=function(_){return D(_)===i},ue.isSuspense=function(_){return D(_)===c},ue.isValidElementType=function(_){return typeof _=="string"||typeof _=="function"||_===n||_===u||_===o||_===i||_===c||_===p||typeof _=="object"&&_!==null&&(_.$$typeof===g||_.$$typeof===y||_.$$typeof===a||_.$$typeof===s||_.$$typeof===f||_.$$typeof===x||_.$$typeof===w||_.$$typeof===k||_.$$typeof===h)},ue.typeOf=D,ue}var ce={};/** @license React v16.13.1
43
43
  * react-is.development.js
44
44
  *
45
45
  * Copyright (c) Facebook, Inc. and its affiliates.
46
46
  *
47
47
  * This source code is licensed under the MIT license found in the
48
48
  * LICENSE file in the root directory of this source tree.
49
- */var ws;function Qp(){return ws||(ws=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,g=e?Symbol.for("react.memo"):60115,y=e?Symbol.for("react.lazy"):60116,h=e?Symbol.for("react.block"):60121,x=e?Symbol.for("react.fundamental"):60117,w=e?Symbol.for("react.responder"):60118,j=e?Symbol.for("react.scope"):60119;function M($){return typeof $=="string"||typeof $=="function"||$===n||$===u||$===o||$===i||$===f||$===p||typeof $=="object"&&$!==null&&($.$$typeof===y||$.$$typeof===g||$.$$typeof===a||$.$$typeof===s||$.$$typeof===c||$.$$typeof===x||$.$$typeof===w||$.$$typeof===j||$.$$typeof===h)}function F($){if(typeof $=="object"&&$!==null){var $e=$.$$typeof;switch($e){case t:var N=$.type;switch(N){case l:case u:case n:case o:case i:case f:return N;default:var Ye=N&&N.$$typeof;switch(Ye){case s:case c:case y:case g:case a:return Ye;default:return $e}}case r:return $e}}}var _=l,P=u,D=s,te=a,ae=t,Oe=c,U=n,se=y,he=g,ge=r,qe=o,je=i,Ze=f,ot=!1;function vt($){return ot||(ot=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),C($)||F($)===l}function C($){return F($)===u}function k($){return F($)===s}function Y($){return F($)===a}function L($){return typeof $=="object"&&$!==null&&$.$$typeof===t}function G($){return F($)===c}function z($){return F($)===n}function B($){return F($)===y}function q($){return F($)===g}function K($){return F($)===r}function J($){return F($)===o}function X($){return F($)===i}function Ae($){return F($)===f}ue.AsyncMode=_,ue.ConcurrentMode=P,ue.ContextConsumer=D,ue.ContextProvider=te,ue.Element=ae,ue.ForwardRef=Oe,ue.Fragment=U,ue.Lazy=se,ue.Memo=he,ue.Portal=ge,ue.Profiler=qe,ue.StrictMode=je,ue.Suspense=Ze,ue.isAsyncMode=vt,ue.isConcurrentMode=C,ue.isContextConsumer=k,ue.isContextProvider=Y,ue.isElement=L,ue.isForwardRef=G,ue.isFragment=z,ue.isLazy=B,ue.isMemo=q,ue.isPortal=K,ue.isProfiler=J,ue.isStrictMode=X,ue.isSuspense=Ae,ue.isValidElementType=M,ue.typeOf=F}()),ue}var Cs;function Os(){return Cs||(Cs=1,process.env.NODE_ENV==="production"?On.exports=Zp():On.exports=Qp()),On.exports}/*
49
+ */var ws;function Qp(){return ws||(ws=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,f=e?Symbol.for("react.forward_ref"):60112,c=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,y=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,h=e?Symbol.for("react.block"):60121,x=e?Symbol.for("react.fundamental"):60117,w=e?Symbol.for("react.responder"):60118,k=e?Symbol.for("react.scope"):60119;function D(I){return typeof I=="string"||typeof I=="function"||I===n||I===u||I===o||I===i||I===c||I===p||typeof I=="object"&&I!==null&&(I.$$typeof===g||I.$$typeof===y||I.$$typeof===a||I.$$typeof===s||I.$$typeof===f||I.$$typeof===x||I.$$typeof===w||I.$$typeof===k||I.$$typeof===h)}function N(I){if(typeof I=="object"&&I!==null){var $e=I.$$typeof;switch($e){case t:var M=I.type;switch(M){case l:case u:case n:case o:case i:case c:return M;default:var Ye=M&&M.$$typeof;switch(Ye){case s:case f:case g:case y:case a:return Ye;default:return $e}}case r:return $e}}}var _=l,R=u,F=s,J=a,ee=t,oe=f,z=n,le=g,me=y,ye=r,qe=o,je=i,Ze=c,ot=!1;function vt(I){return ot||(ot=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),C(I)||N(I)===l}function C(I){return N(I)===u}function P(I){return N(I)===s}function Y(I){return N(I)===a}function L(I){return typeof I=="object"&&I!==null&&I.$$typeof===t}function G(I){return N(I)===f}function U(I){return N(I)===n}function B(I){return N(I)===g}function q(I){return N(I)===y}function K(I){return N(I)===r}function Z(I){return N(I)===o}function X(I){return N(I)===i}function Ae(I){return N(I)===c}ce.AsyncMode=_,ce.ConcurrentMode=R,ce.ContextConsumer=F,ce.ContextProvider=J,ce.Element=ee,ce.ForwardRef=oe,ce.Fragment=z,ce.Lazy=le,ce.Memo=me,ce.Portal=ye,ce.Profiler=qe,ce.StrictMode=je,ce.Suspense=Ze,ce.isAsyncMode=vt,ce.isConcurrentMode=C,ce.isContextConsumer=P,ce.isContextProvider=Y,ce.isElement=L,ce.isForwardRef=G,ce.isFragment=U,ce.isLazy=B,ce.isMemo=q,ce.isPortal=K,ce.isProfiler=Z,ce.isStrictMode=X,ce.isSuspense=Ae,ce.isValidElementType=D,ce.typeOf=N}()),ce}var Cs;function Os(){return Cs||(Cs=1,process.env.NODE_ENV==="production"?On.exports=Zp():On.exports=Qp()),On.exports}/*
50
50
  object-assign
51
51
  (c) Sindre Sorhus
52
52
  @license MIT
53
- */var vo,As;function eh(){if(As)return vo;As=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function n(o){if(o==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(o)}function i(){try{if(!Object.assign)return!1;var o=new String("abc");if(o[5]="de",Object.getOwnPropertyNames(o)[0]==="5")return!1;for(var a={},s=0;s<10;s++)a["_"+String.fromCharCode(s)]=s;var l=Object.getOwnPropertyNames(a).map(function(c){return a[c]});if(l.join("")!=="0123456789")return!1;var u={};return"abcdefghijklmnopqrst".split("").forEach(function(c){u[c]=c}),Object.keys(Object.assign({},u)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return vo=i()?Object.assign:function(o,a){for(var s,l=n(o),u,c=1;c<arguments.length;c++){s=Object(arguments[c]);for(var f in s)t.call(s,f)&&(l[f]=s[f]);if(e){u=e(s);for(var p=0;p<u.length;p++)r.call(s,u[p])&&(l[u[p]]=s[u[p]])}}return l},vo}var bo,Ps;function xo(){if(Ps)return bo;Ps=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return bo=e,bo}var _o,ks;function js(){return ks||(ks=1,_o=Function.call.bind(Object.prototype.hasOwnProperty)),_o}var To,Is;function th(){if(Is)return To;Is=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=xo(),r={},n=js();e=function(o){var a="Warning: "+o;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}}function i(o,a,s,l,u){if(process.env.NODE_ENV!=="production"){for(var c in o)if(n(o,c)){var f;try{if(typeof o[c]!="function"){var p=Error((l||"React class")+": "+s+" type `"+c+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[c]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw p.name="Invariant Violation",p}f=o[c](a,c,l,s,null,t)}catch(y){f=y}if(f&&!(f instanceof Error)&&e((l||"React class")+": type specification of "+s+" `"+c+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof f+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),f instanceof Error&&!(f.message in r)){r[f.message]=!0;var g=u?u():"";e("Failed "+s+" type: "+f.message+(g??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},To=i,To}var Eo,$s;function rh(){if($s)return Eo;$s=1;var e=Os(),t=eh(),r=xo(),n=js(),i=th(),o=function(){};process.env.NODE_ENV!=="production"&&(o=function(s){var l="Warning: "+s;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}});function a(){return null}return Eo=function(s,l){var u=typeof Symbol=="function"&&Symbol.iterator,c="@@iterator";function f(C){var k=C&&(u&&C[u]||C[c]);if(typeof k=="function")return k}var p="<<anonymous>>",g={array:w("array"),bigint:w("bigint"),bool:w("boolean"),func:w("function"),number:w("number"),object:w("object"),string:w("string"),symbol:w("symbol"),any:j(),arrayOf:M,element:F(),elementType:_(),instanceOf:P,node:Oe(),objectOf:te,oneOf:D,oneOfType:ae,shape:se,exact:he};function y(C,k){return C===k?C!==0||1/C===1/k:C!==C&&k!==k}function h(C,k){this.message=C,this.data=k&&typeof k=="object"?k:{},this.stack=""}h.prototype=Error.prototype;function x(C){if(process.env.NODE_ENV!=="production")var k={},Y=0;function L(z,B,q,K,J,X,Ae){if(K=K||p,X=X||q,Ae!==r){if(l){var $=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw $.name="Invariant Violation",$}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var $e=K+":"+q;!k[$e]&&Y<3&&(o("You are manually calling a React.PropTypes validation function for the `"+X+"` prop on `"+K+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),k[$e]=!0,Y++)}}return B[q]==null?z?B[q]===null?new h("The "+J+" `"+X+"` is marked as required "+("in `"+K+"`, but its value is `null`.")):new h("The "+J+" `"+X+"` is marked as required in "+("`"+K+"`, but its value is `undefined`.")):null:C(B,q,K,J,X)}var G=L.bind(null,!1);return G.isRequired=L.bind(null,!0),G}function w(C){function k(Y,L,G,z,B,q){var K=Y[L],J=je(K);if(J!==C){var X=Ze(K);return new h("Invalid "+z+" `"+B+"` of type "+("`"+X+"` supplied to `"+G+"`, expected ")+("`"+C+"`."),{expectedType:C})}return null}return x(k)}function j(){return x(a)}function M(C){function k(Y,L,G,z,B){if(typeof C!="function")return new h("Property `"+B+"` of component `"+G+"` has invalid PropType notation inside arrayOf.");var q=Y[L];if(!Array.isArray(q)){var K=je(q);return new h("Invalid "+z+" `"+B+"` of type "+("`"+K+"` supplied to `"+G+"`, expected an array."))}for(var J=0;J<q.length;J++){var X=C(q,J,G,z,B+"["+J+"]",r);if(X instanceof Error)return X}return null}return x(k)}function F(){function C(k,Y,L,G,z){var B=k[Y];if(!s(B)){var q=je(B);return new h("Invalid "+G+" `"+z+"` of type "+("`"+q+"` supplied to `"+L+"`, expected a single ReactElement."))}return null}return x(C)}function _(){function C(k,Y,L,G,z){var B=k[Y];if(!e.isValidElementType(B)){var q=je(B);return new h("Invalid "+G+" `"+z+"` of type "+("`"+q+"` supplied to `"+L+"`, expected a single ReactElement type."))}return null}return x(C)}function P(C){function k(Y,L,G,z,B){if(!(Y[L]instanceof C)){var q=C.name||p,K=vt(Y[L]);return new h("Invalid "+z+" `"+B+"` of type "+("`"+K+"` supplied to `"+G+"`, expected ")+("instance of `"+q+"`."))}return null}return x(k)}function D(C){if(!Array.isArray(C))return process.env.NODE_ENV!=="production"&&(arguments.length>1?o("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):o("Invalid argument supplied to oneOf, expected an array.")),a;function k(Y,L,G,z,B){for(var q=Y[L],K=0;K<C.length;K++)if(y(q,C[K]))return null;var J=JSON.stringify(C,function(Ae,$){var $e=Ze($);return $e==="symbol"?String($):$});return new h("Invalid "+z+" `"+B+"` of value `"+String(q)+"` "+("supplied to `"+G+"`, expected one of "+J+"."))}return x(k)}function te(C){function k(Y,L,G,z,B){if(typeof C!="function")return new h("Property `"+B+"` of component `"+G+"` has invalid PropType notation inside objectOf.");var q=Y[L],K=je(q);if(K!=="object")return new h("Invalid "+z+" `"+B+"` of type "+("`"+K+"` supplied to `"+G+"`, expected an object."));for(var J in q)if(n(q,J)){var X=C(q,J,G,z,B+"."+J,r);if(X instanceof Error)return X}return null}return x(k)}function ae(C){if(!Array.isArray(C))return process.env.NODE_ENV!=="production"&&o("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var k=0;k<C.length;k++){var Y=C[k];if(typeof Y!="function")return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+ot(Y)+" at index "+k+"."),a}function L(G,z,B,q,K){for(var J=[],X=0;X<C.length;X++){var Ae=C[X],$=Ae(G,z,B,q,K,r);if($==null)return null;$.data&&n($.data,"expectedType")&&J.push($.data.expectedType)}var $e=J.length>0?", expected one of type ["+J.join(", ")+"]":"";return new h("Invalid "+q+" `"+K+"` supplied to "+("`"+B+"`"+$e+"."))}return x(L)}function Oe(){function C(k,Y,L,G,z){return ge(k[Y])?null:new h("Invalid "+G+" `"+z+"` supplied to "+("`"+L+"`, expected a ReactNode."))}return x(C)}function U(C,k,Y,L,G){return new h((C||"React class")+": "+k+" type `"+Y+"."+L+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+G+"`.")}function se(C){function k(Y,L,G,z,B){var q=Y[L],K=je(q);if(K!=="object")return new h("Invalid "+z+" `"+B+"` of type `"+K+"` "+("supplied to `"+G+"`, expected `object`."));for(var J in C){var X=C[J];if(typeof X!="function")return U(G,z,B,J,Ze(X));var Ae=X(q,J,G,z,B+"."+J,r);if(Ae)return Ae}return null}return x(k)}function he(C){function k(Y,L,G,z,B){var q=Y[L],K=je(q);if(K!=="object")return new h("Invalid "+z+" `"+B+"` of type `"+K+"` "+("supplied to `"+G+"`, expected `object`."));var J=t({},Y[L],C);for(var X in J){var Ae=C[X];if(n(C,X)&&typeof Ae!="function")return U(G,z,B,X,Ze(Ae));if(!Ae)return new h("Invalid "+z+" `"+B+"` key `"+X+"` supplied to `"+G+"`.\nBad object: "+JSON.stringify(Y[L],null," ")+`
54
- Valid keys: `+JSON.stringify(Object.keys(C),null," "));var $=Ae(q,X,G,z,B+"."+X,r);if($)return $}return null}return x(k)}function ge(C){switch(typeof C){case"number":case"string":case"undefined":return!0;case"boolean":return!C;case"object":if(Array.isArray(C))return C.every(ge);if(C===null||s(C))return!0;var k=f(C);if(k){var Y=k.call(C),L;if(k!==C.entries){for(;!(L=Y.next()).done;)if(!ge(L.value))return!1}else for(;!(L=Y.next()).done;){var G=L.value;if(G&&!ge(G[1]))return!1}}else return!1;return!0;default:return!1}}function qe(C,k){return C==="symbol"?!0:k?k["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&k instanceof Symbol:!1}function je(C){var k=typeof C;return Array.isArray(C)?"array":C instanceof RegExp?"object":qe(k,C)?"symbol":k}function Ze(C){if(typeof C>"u"||C===null)return""+C;var k=je(C);if(k==="object"){if(C instanceof Date)return"date";if(C instanceof RegExp)return"regexp"}return k}function ot(C){var k=Ze(C);switch(k){case"array":case"object":return"an "+k;case"boolean":case"date":case"regexp":return"a "+k;default:return k}}function vt(C){return!C.constructor||!C.constructor.name?p:C.constructor.name}return g.checkPropTypes=i,g.resetWarningCache=i.resetWarningCache,g.PropTypes=g,g},Eo}var So,Rs;function nh(){if(Rs)return So;Rs=1;var e=xo();function t(){}function r(){}return r.resetWarningCache=t,So=function(){function n(a,s,l,u,c,f){if(f!==e){var p=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw p.name="Invariant Violation",p}}n.isRequired=n;function i(){return n}var o={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:i,element:n,elementType:n,instanceOf:i,node:n,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:r,resetWarningCache:t};return o.PropTypes=o,o},So}if(process.env.NODE_ENV!=="production"){var ih=Os(),oh=!0;yo.exports=rh()(ih.isElement,oh)}else yo.exports=nh()();var ah=yo.exports;const H=Ot(ah);var sh={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"},lh=Object.defineProperty,uh=Object.defineProperties,ch=Object.getOwnPropertyDescriptors,An=Object.getOwnPropertySymbols,Ds=Object.prototype.hasOwnProperty,Ms=Object.prototype.propertyIsEnumerable,Ns=(e,t,r)=>t in e?lh(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Fs=(e,t)=>{for(var r in t||(t={}))Ds.call(t,r)&&Ns(e,r,t[r]);if(An)for(var r of An(t))Ms.call(t,r)&&Ns(e,r,t[r]);return e},fh=(e,t)=>uh(e,ch(t)),dh=(e,t)=>{var r={};for(var n in e)Ds.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&An)for(var n of An(e))t.indexOf(n)<0&&Ms.call(e,n)&&(r[n]=e[n]);return r},Be=(e,t,r)=>{const n=T.forwardRef((i,o)=>{var a=i,{color:s="currentColor",size:l=24,stroke:u=2,children:c}=a,f=dh(a,["color","size","stroke","children"]);return T.createElement("svg",Fs(fh(Fs({ref:o},sh),{width:l,height:l,stroke:s,strokeWidth:u,className:`tabler-icon tabler-icon-${e}`}),f),[...r.map(([p,g])=>T.createElement(p,g)),...c||[]])});return n.propTypes={color:H.string,size:H.oneOfType([H.string,H.number]),stroke:H.oneOfType([H.string,H.number])},n.displayName=`${t}`,n},ph=Be("alert-circle","IconAlertCircle",[["path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0",key:"svg-0"}],["path",{d:"M12 8v4",key:"svg-1"}],["path",{d:"M12 16h.01",key:"svg-2"}]]),hh=Be("app-window","IconAppWindow",[["path",{d:"M3 5m0 2a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v10a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2z",key:"svg-0"}],["path",{d:"M6 8h.01",key:"svg-1"}],["path",{d:"M9 8h.01",key:"svg-2"}]]),wo=Be("chevron-down","IconChevronDown",[["path",{d:"M6 9l6 6l6 -6",key:"svg-0"}]]),Ls=Be("chevron-up","IconChevronUp",[["path",{d:"M6 15l6 -6l6 6",key:"svg-0"}]]),mh=Be("download","IconDownload",[["path",{d:"M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2 -2v-2",key:"svg-0"}],["path",{d:"M7 11l5 5l5 -5",key:"svg-1"}],["path",{d:"M12 4l0 12",key:"svg-2"}]]),gh=Be("exclamation-circle","IconExclamationCircle",[["path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0",key:"svg-0"}],["path",{d:"M12 9v4",key:"svg-1"}],["path",{d:"M12 16v.01",key:"svg-2"}]]),yh=Be("eye","IconEye",[["path",{d:"M10 12a2 2 0 1 0 4 0a2 2 0 0 0 -4 0",key:"svg-0"}],["path",{d:"M21 12c-2.4 4 -5.4 6 -9 6c-3.6 0 -6.6 -2 -9 -6c2.4 -4 5.4 -6 9 -6c3.6 0 6.6 2 9 6",key:"svg-1"}]]),zs=Be("filter","IconFilter",[["path",{d:"M4 4h16v2.172a2 2 0 0 1 -.586 1.414l-4.414 4.414v7l-6 2v-8.5l-4.48 -4.928a2 2 0 0 1 -.52 -1.345v-2.227z",key:"svg-0"}]]),vh=Be("id-badge-2","IconIdBadge2",[["path",{d:"M7 12h3v4h-3z",key:"svg-0"}],["path",{d:"M10 6h-6a1 1 0 0 0 -1 1v12a1 1 0 0 0 1 1h16a1 1 0 0 0 1 -1v-12a1 1 0 0 0 -1 -1h-6",key:"svg-1"}],["path",{d:"M10 3m0 1a1 1 0 0 1 1 -1h2a1 1 0 0 1 1 1v3a1 1 0 0 1 -1 1h-2a1 1 0 0 1 -1 -1z",key:"svg-2"}],["path",{d:"M14 16h2",key:"svg-3"}],["path",{d:"M14 12h4",key:"svg-4"}]]),Us=Be("lock","IconLock",[["path",{d:"M5 13a2 2 0 0 1 2 -2h10a2 2 0 0 1 2 2v6a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2v-6z",key:"svg-0"}],["path",{d:"M11 16a1 1 0 1 0 2 0a1 1 0 0 0 -2 0",key:"svg-1"}],["path",{d:"M8 11v-4a4 4 0 1 1 8 0v4",key:"svg-2"}]]),bh=Be("logout","IconLogout",[["path",{d:"M14 8v-2a2 2 0 0 0 -2 -2h-7a2 2 0 0 0 -2 2v12a2 2 0 0 0 2 2h7a2 2 0 0 0 2 -2v-2",key:"svg-0"}],["path",{d:"M9 12h12l-3 -3",key:"svg-1"}],["path",{d:"M18 15l3 -3",key:"svg-2"}]]),xh=Be("pencil","IconPencil",[["path",{d:"M4 20h4l10.5 -10.5a2.828 2.828 0 1 0 -4 -4l-10.5 10.5v4",key:"svg-0"}],["path",{d:"M13.5 6.5l4 4",key:"svg-1"}]]),Co=Be("plus","IconPlus",[["path",{d:"M12 5l0 14",key:"svg-0"}],["path",{d:"M5 12l14 0",key:"svg-1"}]]),Vs=Be("trash","IconTrash",[["path",{d:"M4 7l16 0",key:"svg-0"}],["path",{d:"M10 11l0 6",key:"svg-1"}],["path",{d:"M14 11l0 6",key:"svg-2"}],["path",{d:"M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2 -2l1 -12",key:"svg-3"}],["path",{d:"M9 7v-3a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v3",key:"svg-4"}]]),_h=Be("users","IconUsers",[["path",{d:"M9 7m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0",key:"svg-0"}],["path",{d:"M3 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2",key:"svg-1"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"svg-2"}],["path",{d:"M21 21v-2a4 4 0 0 0 -3 -3.85",key:"svg-3"}]]);function Bs(...e){const[t,r]=T.useState(!1),n={bg:"transparent",size:"sm",c:"gray"},i=v.useProps("ActionIcon",n,e);return d.jsxs(d.Fragment,{children:[d.jsx(v.Tooltip,{label:"Add Item",children:d.jsx(v.ActionIcon,{bg:i.bg,size:i.size,c:i.c,onClick:()=>{r(!0)},children:d.jsx(Co,{})})}),d.jsx(Es,{opened:t,onClose:()=>{r(!1)}})]})}function Th({form:e,name:t,items:r,onChange:n,...i}){return d.jsx(v.Select,{data:r,searchable:!0,...e.getInputProps(t),onChange:n,...i})}function Eh({form:e,name:t,items:r,onChange:n,...i}){return d.jsx(v.Select,{data:r,searchable:!0,...e.getInputProps(t),onChange:n,...i})}function Sh({form:e,name:t,...r}){const n=v.useCombobox({onDropdownClose:()=>n.resetSelectedOption(),onDropdownOpen:()=>n.updateSelectedOptionIndex("active")}),[i,o]=T.useState([]),[a,s]=T.useState(""),l=f=>{a!==""&&(i.includes(a)||o(p=>[...p,a]),s(""))},u=f=>o(p=>p.filter(g=>g!==f)),c=i.map(f=>d.jsx(v.Pill,{withRemoveButton:!0,onRemove:()=>u(f),children:f},f));return T.useEffect(()=>{if(e.getInputProps(t).value)try{const f=JSON.parse(String(e.getInputProps(t).value));o([...f])}catch(f){console.error("Error parsing JSON:",f)}else e.getInputProps(t).onChange([])},[]),T.useEffect(()=>{e.getInputProps(t).onChange(i)},[i]),d.jsxs(v.Combobox,{store:n,onOptionSubmit:l,children:[d.jsx(v.Combobox.DropdownTarget,{children:d.jsx(v.PillsInput,{onClick:()=>n.openDropdown(),children:d.jsxs(v.Pill.Group,{children:[c,d.jsx(v.Combobox.EventsTarget,{children:d.jsx(v.PillsInput.Field,{onFocus:()=>n.openDropdown(),onBlur:()=>n.closeDropdown(),value:a,placeholder:"Search values",onChange:f=>{n.updateSelectedOptionIndex(),s(f.currentTarget.value)},onKeyDown:f=>{f.key==="Backspace"&&a.length===0&&(f.preventDefault(),u(i[i.length-1]))}})})]})})}),d.jsx(v.Combobox.Dropdown,{children:d.jsx(v.Combobox.Options,{children:d.jsxs(v.Combobox.Option,{value:"$create",children:["+ Create ",a]})})})]})}function Ws({onClose:e,...t}){const{info:r,queryParams:n,setQueryParams:i,path:o}=Re(),a=Ui.useForm({initialValues:{filters:[]},validate:mo(zr({filters:lo().of(zr({col:wn().transform(f=>f||void 0).required("Field is required"),opr:wn().transform(f=>f||void 0).required("col is required"),value:Sn().when("col",{is:f=>f&&r.filters[f].schema.required,then:()=>Sn().required("Value is required")})}))}))}),s={bg:"transparent",size:"sm",c:"gray"},l=v.useProps("ActionIcon",s,t);T.useEffect(()=>{a.setValues({filters:[]}),a.reset()},[o]),T.useEffect(()=>{if(n.filters&&n.filters.length){const f=n.filters.map(p=>({...p,key:Nr.randomId()}));a.setFieldValue("filters",f)}},[n.filters]);const u=f=>{const p=f.filters.map(({key:y,...h})=>h),g=JSON.parse(JSON.stringify(p));i({filters:g,page:0}),e()},c=a.values.filters.map((f,p)=>d.jsxs(v.Box,{px:"sm",children:[d.jsxs(v.Flex,{my:"md",gap:"md",style:{whiteSpace:"nowrap"},children:[d.jsx(v.Box,{style:{width:"192px"},children:r&&r.filters&&d.jsx(Th,{form:a,name:`filters.${p}.col`,items:Object.entries(r.filters).map(([g,y])=>({label:y.label,value:String(g)})),onChange:g=>{a.setFieldValue(`filters.${p}`,{col:g,opr:"",value:"",key:Nr.randomId()})}})}),d.jsx(v.Box,{style:{width:"192px"},children:f.col?d.jsx(Eh,{form:a,name:`filters.${p}.opr`,items:r.filters[f.col].filters.map(g=>({label:g.name,value:g.operator})),onChange:g=>{a.setFieldValue(`filters.${p}`,{col:a.values.filters[p].col,opr:g,value:"",key:Nr.randomId()})}}):null}),d.jsx(v.Box,{style:{width:"192px"},children:f.col?f.opr==="in"?d.jsx(Sh,{form:a,name:`filters.${p}.value`}):d.jsx(go,{form:a,name:`filters.${p}.value`,schema:r.filters[f.col].schema,filter:!0}):null}),d.jsx(v.ActionIcon,{bg:l.bg,size:l.size,c:l.c,onClick:()=>{a.removeListItem("filters",p)},children:d.jsx(Vs,{})})]}),a.values.filters.length>1&&p<a.values.filters.length-1?d.jsx(v.Divider,{my:"md",labelPosition:"center",label:"AND"}):null]},f.key));return d.jsxs(v.Box,{component:"form",onSubmit:a.onSubmit(u),children:[c.length===0&&d.jsx(v.Box,{style:{width:"642px"},children:d.jsx(v.Text,{style:{fontStyle:"italic",padding:"7px"},size:"sm",c:"dimmed",children:"No filters selected..."})}),d.jsx(v.ScrollArea.Autosize,{mah:"40vh",mt:20,children:c}),d.jsx(v.Divider,{my:"sm"}),d.jsxs(v.Box,{style:{display:"flex",justifyContent:"space-between"},children:[d.jsx(v.Button,{variant:"subtle",leftSection:d.jsx(Co,{}),onClick:()=>{a.insertListItem("filters",{col:"",opr:"",value:"",key:Nr.randomId()})},children:"Add Filter"}),d.jsx(v.Group,{spacing:"md",children:d.jsx(v.Button,{type:"submit",children:"Apply"})})]})]})}function Hs(...e){const{queryParams:t}=Re(),r={bg:"transparent",size:"sm",c:"gray"},n=v.useProps("ActionIcon",r,e),[i,o]=T.useState(!1);return d.jsxs(v.Popover,{opened:i,position:"bottom-end",onClose:()=>o(!1),closeOnClickOutside:!1,zIndex:1,children:[d.jsx(v.Popover.Target,{children:d.jsx(v.Tooltip,{opened:i?!1:null,label:"Filter",children:t.filters.length!=0?d.jsx(v.Indicator,{zIndex:20,size:16,label:t.filters.length,children:d.jsx(v.ActionIcon,{bg:n.bg,size:n.size,c:n.c,onClick:()=>o(!0),children:d.jsx(zs,{})})}):d.jsx(v.ActionIcon,{bg:n.bg,size:n.size,c:n.c,onClick:()=>o(!0),children:d.jsx(zs,{})})})}),d.jsxs(v.Popover.Dropdown,{px:"xs",children:[d.jsx(v.Box,{style:{position:"absolute",top:4,right:4},children:d.jsx(v.CloseButton,{title:"Filters",onClick:()=>o(!1)})}),d.jsx(Ws,{onClose:()=>{o(!1)}})]})]})}function wh(...e){const[t,r]=T.useState(!1),{download:n}=Re(),i={bg:"transparent",size:"sm",c:"gray"},o=v.useProps("ActionIcon",i,e);return t?d.jsx(v.Loader,{color:o.c,size:o.size}):d.jsx(v.Tooltip,{label:"Download",children:d.jsx(v.ActionIcon,{bg:o.bg,size:o.size,c:o.c,onClick:()=>{r(!0),n("download").then(()=>r(!1))},children:d.jsx(mh,{})})})}const Gs=T.memo(({hideAdd:e,hideFilter:t,hideDownload:r,toolbarCustomizer:n})=>{const{info:i}=Re(),o=T.useMemo(()=>{const s={};return Object.entries(n).forEach(([l,u])=>{s[l]=u,typeof s[l]=="function"&&(s[l]=s[l]())}),s},[n]),a=i.permissions.includes("can_post");return d.jsxs(v.Flex,{justify:"flex-end",p:"md",gap:"sm",children:[!r&&(o.download||d.jsx(wh,{})),a&&!e?o.add||d.jsx(Bs,{}):null,t?null:o.filter||d.jsx(Hs,{})]})});Gs.displayName="Toolbar";const qs={root:"_root_1kmay_1",wrapper:"_wrapper_1kmay_7",icon:"_icon_1kmay_18"};function Oo({column:e,label:t,orderColumn:r,related:n,toggleAll:i,allChecked:o,classNames:a,styles:s,customElement:l,...u}){const{queryParams:c,setQueryParams:f,loading:p}=Re(),g={fw:700,size:"sm",color:"gray.8",hoverColor:"gray.6",selectedColor:"blue"},y=v.useStyles({name:"FieldTitle",classes:qs,classNames:a,styles:s,props:u}),h=v.useProps("FieldTitle",g,u),{hovered:x,ref:w}=Nr.useHover(),j=r&&c.order_column===r;return d.jsx(v.Table.Th,{className:qs.fieldTitleRoot,...y("root"),onClick:r&&!p?()=>f({order_column:r,order_direction:c.order_direction==="asc"?"desc":"asc"}):null,children:d.jsx(v.Box,{ref:w,...y("wrapper"),children:e==="Checkbox"?d.jsx(v.Checkbox,{pb:5,pl:2,onChange:i,checked:o}):d.jsxs(d.Fragment,{children:[d.jsx(v.Box,{w:"100%",fw:h.fw,size:"xl",c:x?h.hoverColor:j?h.selectedColor:h.color,children:l||t||e}),n?d.jsx(v.Tooltip,{label:"Related Field",children:d.jsx(v.Indicator,{label:"rel",style:{indicator:{top:"-1px !important",right:"-2px !important",padding:"4px"}},children:d.jsx(v.Box,{...y("icon"),children:j?c.order_direction==="asc"?d.jsx(wo,{size:14,strokeWidth:1.5}):d.jsx(Ls,{size:14,strokeWidth:1.5}):null})})}):d.jsx(v.Box,{...y("icon"),children:j?c.order_direction==="asc"?d.jsx(wo,{size:14,strokeWidth:1.5}):d.jsx(Ls,{size:14,strokeWidth:1.5}):null})]})})})}const Ys=T.memo(({data:e,info:t,settings:r,hideActions:n,hideCheckbox:i,allChecked:o,toggleAll:a,headerCustomizer:s})=>{const l=e.list_columns.includes("actions")?"_actions":"actions";let u=s==null?void 0:s[l];return typeof u=="function"&&(u=u()),d.jsx(v.Table.Thead,{children:d.jsxs(v.Table.Tr,{children:[i?null:d.jsx(Oo,{data:e,column:"Checkbox",allChecked:o,toggleAll:a}),n?null:d.jsx(Oo,{column:"Actions",customElement:u}),e.list_columns.map((c,f)=>{var g;let p=s==null?void 0:s[c];return typeof p=="function"&&(p=p(e.label_columns[c])),p===null?null:d.jsx(Oo,{column:c,label:e.label_columns[c],orderColumn:e.order_columns.find(y=>y===c)||e.order_columns.find(y=>y.startsWith(`${c}.`)),related:((g=t.filters[c])==null?void 0:g.schema.type)==="Nested",customElement:p},c)})]})})});Ys.displayName="Header";const Ks=(e,t)=>{const r=t.split(".").reduce((n,i)=>n[i],e);return!r&&typeof r!="boolean"&&typeof r!="number"?null:typeof r=="boolean"?r.toString():Array.isArray(r)?r.map(n=>n.name_).join(", "):typeof r=="object"?r.name_:r};function Xs(e,t){return e===!0||Array.isArray(e)?t:Object.fromEntries(Object.keys(e).map(r=>[r,Xs(e[r],t[r])]))}function Js(e,t){if(!e)return e;const r=t.values;if(!r||!r.length)return e;const n=r[0].id;if(!(n instanceof Object))return e;const o=Object.keys(n),a={};return o.forEach(s=>{a[s]=e[s]}),e.id=a,e}function Ch(e,t){const r={};return t.forEach(n=>{if(n.type==="Related"){r[n.name]=Js(e.result[n.name],n);return}if(n.type==="RelatedList"){r[n.name]=e.result[n.name].map(i=>Js(i,n));return}r[n.name]=typeof e.result[n.name]=="boolean"?String(e.result[n.name]):e.result[n.name]}),r}function Oh({relatedPath:e,...t}){const{path:r}=Re();return Pe(r?r.substring(0,r.lastIndexOf("/")):"",e.substring(0,e.lastIndexOf("/"))),d.jsx(_s,{resource_name:e.replace("/",""),relation:t,children:d.jsx(Ko,{hideToolbar:!0,hideDownload:!1})})}const Ah=T.memo(Oh);function Ph({item:e,info:t,loading:r,opened:n,onClose:i,...o}){const a={modal:{},tabs:{},tabsList:{},tabsPanel:{}},{modal:s,tabs:l,tabsList:u,tabsPanel:c}=v.useProps("ViewDialog",a,o);return d.jsxs(v.Modal,{opened:n,onClose:i,title:`${e==null?void 0:e.show_title} (#${Fe(e==null?void 0:e.id)})`,size:"lg",centered:!0,zIndex:1e3,...s,children:[d.jsx(v.LoadingOverlay,{visible:r}),!r&&e?d.jsxs(v.Tabs,{defaultValue:"details",...l,children:[d.jsxs(v.Tabs.List,{...u,children:[d.jsx(v.Tabs.Tab,{value:"details",children:"Details"}),t.relations.map((f,p)=>d.jsx(v.Tabs.Tab,{value:f.name,children:f.name},p))]}),d.jsx(v.Tabs.Panel,{pt:"xs",value:"details",...c,children:d.jsx(v.Paper,{p:"xs",withBorder:!0,children:d.jsx(v.Stack,{spacing:"md",children:d.jsx(v.ScrollArea,{h:450,type:"auto",children:e.show_columns.map((f,p)=>d.jsxs(v.Grid,{maw:500,children:[d.jsx(v.Grid.Col,{span:4,children:d.jsx(v.Text,{size:"md",children:e.label_columns[f]})}),d.jsx(v.Grid.Col,{span:1,children:d.jsx(v.Text,{size:"xs",children:":"})}),d.jsx(v.Grid.Col,{span:6,children:d.jsx(v.Text,{size:"md",children:Ks(e.result,f)})})]},p))})})})}),t.relations.map((f,p)=>d.jsx(v.Tabs.Panel,{pt:"xs",value:f.name,children:d.jsx(v.Paper,{withBorder:!0,children:d.jsx(Ah,{relatedPath:f.path,id:Fe(e.id),foreign_key:f.foreign_key,type:f.type})})},p))]}):null]})}function kh({id:e,...t}){const{info:r,getEntry:n}=Re(),i={bg:"transparent",size:"sm",c:"gray"},o=v.useProps("ActionIcon",i,t),[a,s]=T.useState(null),[l,u]=T.useState(!1),[c,f]=T.useState(!1);return d.jsxs(d.Fragment,{children:[d.jsx(v.Tooltip,{label:"Details",children:d.jsx(v.ActionIcon,{bg:o.bg,size:o.size,c:o.c,onClick:async()=>{u(!0);const p=await n(e);p&&(s(p),u(!1),f(!0))},children:d.jsx(yh,{})})}),d.jsx(Ph,{item:a,info:r,loading:l,opened:c,onClose:()=>f(!1)})]})}function jh(e,t){return new Promise(r=>{r(Ch(e,t.edit.columns))})}function Zs({item:e,info:t,opened:r,onClose:n,...i}){const{updateEntry:o}=Re(),a={modal:{},stack:{},saveButton:{}},{modal:s,stack:l,saveButton:u}=v.useProps("EditDialog",a,i),c=Ui.useForm({initialValues:t.edit.defaultValues,validate:mo(t.edit.schema)}),f=()=>{const g={};return Object.keys(c.values).forEach(y=>{c.isDirty(y)&&(g[y]=!0)}),g};T.useEffect(()=>{e&&jh(e,t).then(g=>{c.setValues(g),c.resetDirty(g)})},[e,t.edit.columns]);const p=async g=>{g=Xs(f(),g),await o(e.id,g),n()};return T.useEffect(()=>{c.setInitialValues(t.edit.defaultValues),c.reset()},[t.edit.defaultValues]),e?d.jsx(v.Modal,{opened:r,onClose:()=>{n()},title:t.edit.title,size:"lg",centered:!0,...s,children:d.jsx(v.Box,{component:"form",onSubmit:c.onSubmit(p),children:d.jsx(v.Stack,{spacing:"md",...l,children:d.jsxs(v.ScrollArea.Autosize,{mah:450,type:"auto",children:[t.edit.columns.map((g,y)=>d.jsx(go,{form:c,name:g.name,label:g.label,description:g.description,schema:g,withAsterisk:g.required},y)),d.jsx(v.Group,{position:"right",mt:"xl",children:d.jsx(v.Button,{type:"submit",...u,children:"Save"})})]})})})}):null}function Qs({id:e,...t}){const{info:r,getEntry:n}=Re(),i={bg:"transparent",size:"sm",c:"gray"},o=v.useProps("ActionIcon",i,t),[a,s]=T.useState(null),[l,u]=T.useState(!1),[c,f]=T.useState(!1);return d.jsxs(d.Fragment,{children:[d.jsx(v.Tooltip,{label:"Edit",children:d.jsx(v.ActionIcon,{bg:o.bg,size:o.size,c:o.c,onClick:async()=>{u(!0);const p=await n(e);p&&(s(p),u(!1),f(!0))},children:d.jsx(xh,{})})}),d.jsx(Zs,{item:a,info:r,opened:c,onClose:()=>f(!1)})]})}function Ih({opened:e,onClose:t,handleAccept:r,handleReject:n}){return d.jsxs(v.Modal,{opened:e,onClose:t,"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",title:"Item löschen?",centered:!0,children:["Sind Sie Sicher, dass Sie das Item löschen wollen?",d.jsxs(v.Group,{align:"right",mt:"xl",justify:"flex-end",children:[d.jsx(v.Button,{onClick:n,variant:"default",children:"Abbrechen"}),d.jsx(v.Button,{onClick:r,color:"red",children:"Löschen"})]})]})}function el({id:e,...t}){const{deleteEntry:r}=Re(),n={bg:"transparent",size:"sm",c:"gray"},i=v.useProps("ActionIcon",n,t),[o,a]=T.useState(!1),s=()=>{a(!1)},l=async()=>{r(e),a(!1)};return d.jsxs(d.Fragment,{children:[d.jsx(v.Tooltip,{label:"Delete",children:d.jsx(v.ActionIcon,{bg:i.bg,size:i.size,c:i.c,onClick:()=>{a(!0)},children:d.jsx(Vs,{})})}),d.jsx(Ih,{opened:o,onClose:s,handleAccept:l,handleReject:s})]})}function tl({id:e,selected:t}){const{info:r}=Re();return d.jsxs(v.Flex,{style:{gap:4,whiteSpace:"nowrap"},children:[r.permissions.includes("can_get")?d.jsx(kh,{id:e}):null,r.permissions.includes("can_put")?d.jsx(Qs,{id:e}):null,r.permissions.includes("can_delete")?d.jsx(el,{id:e}):null]})}var Ao={},Po={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Doctype=e.CDATA=e.Tag=e.Style=e.Script=e.Comment=e.Directive=e.Text=e.Root=e.isTag=e.ElementType=void 0;var t;(function(n){n.Root="root",n.Text="text",n.Directive="directive",n.Comment="comment",n.Script="script",n.Style="style",n.Tag="tag",n.CDATA="cdata",n.Doctype="doctype"})(t=e.ElementType||(e.ElementType={}));function r(n){return n.type===t.Tag||n.type===t.Script||n.type===t.Style}e.isTag=r,e.Root=t.Root,e.Text=t.Text,e.Directive=t.Directive,e.Comment=t.Comment,e.Script=t.Script,e.Style=t.Style,e.Tag=t.Tag,e.CDATA=t.CDATA,e.Doctype=t.Doctype})(Po);var Q={},Ft=Ie&&Ie.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),Ur=Ie&&Ie.__assign||function(){return Ur=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Ur.apply(this,arguments)};Object.defineProperty(Q,"__esModule",{value:!0}),Q.cloneNode=Q.hasChildren=Q.isDocument=Q.isDirective=Q.isComment=Q.isText=Q.isCDATA=Q.isTag=Q.Element=Q.Document=Q.CDATA=Q.NodeWithChildren=Q.ProcessingInstruction=Q.Comment=Q.Text=Q.DataNode=Q.Node=void 0;var Xe=Po,ko=function(){function e(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(e.prototype,"parentNode",{get:function(){return this.parent},set:function(t){this.parent=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){return this.prev},set:function(t){this.prev=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){return this.next},set:function(t){this.next=t},enumerable:!1,configurable:!0}),e.prototype.cloneNode=function(t){return t===void 0&&(t=!1),jo(this,t)},e}();Q.Node=ko;var Pn=function(e){Ft(t,e);function t(r){var n=e.call(this)||this;return n.data=r,n}return Object.defineProperty(t.prototype,"nodeValue",{get:function(){return this.data},set:function(r){this.data=r},enumerable:!1,configurable:!0}),t}(ko);Q.DataNode=Pn;var rl=function(e){Ft(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=Xe.ElementType.Text,r}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),t}(Pn);Q.Text=rl;var nl=function(e){Ft(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=Xe.ElementType.Comment,r}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),t}(Pn);Q.Comment=nl;var il=function(e){Ft(t,e);function t(r,n){var i=e.call(this,n)||this;return i.name=r,i.type=Xe.ElementType.Directive,i}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),t}(Pn);Q.ProcessingInstruction=il;var kn=function(e){Ft(t,e);function t(r){var n=e.call(this)||this;return n.children=r,n}return Object.defineProperty(t.prototype,"firstChild",{get:function(){var r;return(r=this.children[0])!==null&&r!==void 0?r:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(r){this.children=r},enumerable:!1,configurable:!0}),t}(ko);Q.NodeWithChildren=kn;var ol=function(e){Ft(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=Xe.ElementType.CDATA,r}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),t}(kn);Q.CDATA=ol;var al=function(e){Ft(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=Xe.ElementType.Root,r}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),t}(kn);Q.Document=al;var sl=function(e){Ft(t,e);function t(r,n,i,o){i===void 0&&(i=[]),o===void 0&&(o=r==="script"?Xe.ElementType.Script:r==="style"?Xe.ElementType.Style:Xe.ElementType.Tag);var a=e.call(this,i)||this;return a.name=r,a.attribs=n,a.type=o,a}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(r){this.name=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var r=this;return Object.keys(this.attribs).map(function(n){var i,o;return{name:n,value:r.attribs[n],namespace:(i=r["x-attribsNamespace"])===null||i===void 0?void 0:i[n],prefix:(o=r["x-attribsPrefix"])===null||o===void 0?void 0:o[n]}})},enumerable:!1,configurable:!0}),t}(kn);Q.Element=sl;function ll(e){return(0,Xe.isTag)(e)}Q.isTag=ll;function ul(e){return e.type===Xe.ElementType.CDATA}Q.isCDATA=ul;function cl(e){return e.type===Xe.ElementType.Text}Q.isText=cl;function fl(e){return e.type===Xe.ElementType.Comment}Q.isComment=fl;function dl(e){return e.type===Xe.ElementType.Directive}Q.isDirective=dl;function pl(e){return e.type===Xe.ElementType.Root}Q.isDocument=pl;function $h(e){return Object.prototype.hasOwnProperty.call(e,"children")}Q.hasChildren=$h;function jo(e,t){t===void 0&&(t=!1);var r;if(cl(e))r=new rl(e.data);else if(fl(e))r=new nl(e.data);else if(ll(e)){var n=t?Io(e.children):[],i=new sl(e.name,Ur({},e.attribs),n);n.forEach(function(l){return l.parent=i}),e.namespace!=null&&(i.namespace=e.namespace),e["x-attribsNamespace"]&&(i["x-attribsNamespace"]=Ur({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(i["x-attribsPrefix"]=Ur({},e["x-attribsPrefix"])),r=i}else if(ul(e)){var n=t?Io(e.children):[],o=new ol(n);n.forEach(function(u){return u.parent=o}),r=o}else if(pl(e)){var n=t?Io(e.children):[],a=new al(n);n.forEach(function(u){return u.parent=a}),e["x-mode"]&&(a["x-mode"]=e["x-mode"]),r=a}else if(dl(e)){var s=new il(e.name,e.data);e["x-name"]!=null&&(s["x-name"]=e["x-name"],s["x-publicId"]=e["x-publicId"],s["x-systemId"]=e["x-systemId"]),r=s}else throw new Error("Not implemented yet: ".concat(e.type));return r.startIndex=e.startIndex,r.endIndex=e.endIndex,e.sourceCodeLocation!=null&&(r.sourceCodeLocation=e.sourceCodeLocation),r}Q.cloneNode=jo;function Io(e){for(var t=e.map(function(n){return jo(n,!0)}),r=1;r<t.length;r++)t[r].prev=t[r-1],t[r-1].next=t[r];return t}(function(e){var t=Ie&&Ie.__createBinding||(Object.create?function(s,l,u,c){c===void 0&&(c=u);var f=Object.getOwnPropertyDescriptor(l,u);(!f||("get"in f?!l.__esModule:f.writable||f.configurable))&&(f={enumerable:!0,get:function(){return l[u]}}),Object.defineProperty(s,c,f)}:function(s,l,u,c){c===void 0&&(c=u),s[c]=l[u]}),r=Ie&&Ie.__exportStar||function(s,l){for(var u in s)u!=="default"&&!Object.prototype.hasOwnProperty.call(l,u)&&t(l,s,u)};Object.defineProperty(e,"__esModule",{value:!0}),e.DomHandler=void 0;var n=Po,i=Q;r(Q,e);var o={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},a=function(){function s(l,u,c){this.dom=[],this.root=new i.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof u=="function"&&(c=u,u=o),typeof l=="object"&&(u=l,l=void 0),this.callback=l??null,this.options=u??o,this.elementCB=c??null}return s.prototype.onparserinit=function(l){this.parser=l},s.prototype.onreset=function(){this.dom=[],this.root=new i.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},s.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},s.prototype.onerror=function(l){this.handleCallback(l)},s.prototype.onclosetag=function(){this.lastNode=null;var l=this.tagStack.pop();this.options.withEndIndices&&(l.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(l)},s.prototype.onopentag=function(l,u){var c=this.options.xmlMode?n.ElementType.Tag:void 0,f=new i.Element(l,u,void 0,c);this.addNode(f),this.tagStack.push(f)},s.prototype.ontext=function(l){var u=this.lastNode;if(u&&u.type===n.ElementType.Text)u.data+=l,this.options.withEndIndices&&(u.endIndex=this.parser.endIndex);else{var c=new i.Text(l);this.addNode(c),this.lastNode=c}},s.prototype.oncomment=function(l){if(this.lastNode&&this.lastNode.type===n.ElementType.Comment){this.lastNode.data+=l;return}var u=new i.Comment(l);this.addNode(u),this.lastNode=u},s.prototype.oncommentend=function(){this.lastNode=null},s.prototype.oncdatastart=function(){var l=new i.Text(""),u=new i.CDATA([l]);this.addNode(u),l.parent=u,this.lastNode=l},s.prototype.oncdataend=function(){this.lastNode=null},s.prototype.onprocessinginstruction=function(l,u){var c=new i.ProcessingInstruction(l,u);this.addNode(c)},s.prototype.handleCallback=function(l){if(typeof this.callback=="function")this.callback(l,this.dom);else if(l)throw l},s.prototype.addNode=function(l){var u=this.tagStack[this.tagStack.length-1],c=u.children[u.children.length-1];this.options.withStartIndices&&(l.startIndex=this.parser.startIndex),this.options.withEndIndices&&(l.endIndex=this.parser.endIndex),u.children.push(l),c&&(l.prev=c,c.next=l),l.parent=u,this.lastNode=null},s}();e.DomHandler=a,e.default=a})(Ao);var $o={},Ro={};Object.defineProperty(Ro,"__esModule",{value:!0});var hl="html",ml="head",jn="body",Rh=/<([a-zA-Z]+[0-9]?)/,gl=/<head[^]*>/i,yl=/<body[^]*>/i,In=function(e,t){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},Do=function(e,t){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")},vl=typeof window=="object"&&window.DOMParser;if(typeof vl=="function"){var Dh=new vl,Mh="text/html";Do=function(e,t){return t&&(e="<".concat(t,">").concat(e,"</").concat(t,">")),Dh.parseFromString(e,Mh)},In=Do}if(typeof document=="object"&&document.implementation){var $n=document.implementation.createHTMLDocument();In=function(e,t){if(t){var r=$n.documentElement.querySelector(t);return r&&(r.innerHTML=e),$n}return $n.documentElement.innerHTML=e,$n}}var Rn=typeof document=="object"&&document.createElement("template"),Mo;Rn&&Rn.content&&(Mo=function(e){return Rn.innerHTML=e,Rn.content.childNodes});function Nh(e){var t,r,n=e.match(Rh),i=n&&n[1]?n[1].toLowerCase():"";switch(i){case hl:{var o=Do(e);if(!gl.test(e)){var a=o.querySelector(ml);(t=a==null?void 0:a.parentNode)===null||t===void 0||t.removeChild(a)}if(!yl.test(e)){var a=o.querySelector(jn);(r=a==null?void 0:a.parentNode)===null||r===void 0||r.removeChild(a)}return o.querySelectorAll(hl)}case ml:case jn:{var s=In(e).querySelectorAll(i);return yl.test(e)&&gl.test(e)?s[0].parentNode.childNodes:s}default:{if(Mo)return Mo(e);var a=In(e,jn).querySelector(jn);return a.childNodes}}}Ro.default=Nh;var ur={},bl={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CASE_SENSITIVE_TAG_NAMES_MAP=e.CASE_SENSITIVE_TAG_NAMES=void 0,e.CASE_SENSITIVE_TAG_NAMES=["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"],e.CASE_SENSITIVE_TAG_NAMES_MAP=e.CASE_SENSITIVE_TAG_NAMES.reduce(function(t,r){return t[r.toLowerCase()]=r,t},{})})(bl),Object.defineProperty(ur,"__esModule",{value:!0}),ur.formatDOM=ur.formatAttributes=void 0;var Dn=Ao,Fh=bl;function Lh(e){return Fh.CASE_SENSITIVE_TAG_NAMES_MAP[e]}function xl(e){for(var t={},r=0,n=e.length;r<n;r++){var i=e[r];t[i.name]=i.value}return t}ur.formatAttributes=xl;function zh(e){e=e.toLowerCase();var t=Lh(e);return t||e}function _l(e,t,r){t===void 0&&(t=null);for(var n=[],i,o=0,a=e.length;o<a;o++){var s=e[o];switch(s.nodeType){case 1:{var l=zh(s.nodeName);i=new Dn.Element(l,xl(s.attributes)),i.children=_l(l==="template"?s.content.childNodes:s.childNodes,i);break}case 3:i=new Dn.Text(s.nodeValue);break;case 8:i=new Dn.Comment(s.nodeValue);break;default:continue}var u=n[o-1]||null;u&&(u.next=i),i.parent=t,i.prev=u,i.next=null,n.push(i)}return r&&(i=new Dn.ProcessingInstruction(r.substring(0,r.indexOf(" ")).toLowerCase(),r),i.next=n[0]||null,i.parent=t,n.unshift(i),n[1]&&(n[1].prev=n[0])),n}ur.formatDOM=_l;var Uh=Ie&&Ie.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty($o,"__esModule",{value:!0});var Vh=Uh(Ro),Bh=ur,Wh=/<(![a-zA-Z\s]+)>/;function Hh(e){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];var t=e.match(Wh),r=t?t[1]:void 0;return(0,Bh.formatDOM)((0,Vh.default)(e),null,r)}$o.default=Hh;var ht={},Mn={},Gh=0;Mn.SAME=Gh;var qh=1;Mn.CAMELCASE=qh,Mn.possibleStandardNames={accept:0,acceptCharset:1,"accept-charset":"acceptCharset",accessKey:1,action:0,allowFullScreen:1,alt:0,as:0,async:0,autoCapitalize:1,autoComplete:1,autoCorrect:1,autoFocus:1,autoPlay:1,autoSave:1,capture:0,cellPadding:1,cellSpacing:1,challenge:0,charSet:1,checked:0,children:0,cite:0,class:"className",classID:1,className:1,cols:0,colSpan:1,content:0,contentEditable:1,contextMenu:1,controls:0,controlsList:1,coords:0,crossOrigin:1,dangerouslySetInnerHTML:1,data:0,dateTime:1,default:0,defaultChecked:1,defaultValue:1,defer:0,dir:0,disabled:0,disablePictureInPicture:1,disableRemotePlayback:1,download:0,draggable:0,encType:1,enterKeyHint:1,for:"htmlFor",form:0,formMethod:1,formAction:1,formEncType:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:0,height:0,hidden:0,high:0,href:0,hrefLang:1,htmlFor:1,httpEquiv:1,"http-equiv":"httpEquiv",icon:0,id:0,innerHTML:1,inputMode:1,integrity:0,is:0,itemID:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,keyParams:1,keyType:1,kind:0,label:0,lang:0,list:0,loop:0,low:0,manifest:0,marginWidth:1,marginHeight:1,max:0,maxLength:1,media:0,mediaGroup:1,method:0,min:0,minLength:1,multiple:0,muted:0,name:0,noModule:1,nonce:0,noValidate:1,open:0,optimum:0,pattern:0,placeholder:0,playsInline:1,poster:0,preload:0,profile:0,radioGroup:1,readOnly:1,referrerPolicy:1,rel:0,required:0,reversed:0,role:0,rows:0,rowSpan:1,sandbox:0,scope:0,scoped:0,scrolling:0,seamless:0,selected:0,shape:0,size:0,sizes:0,span:0,spellCheck:1,src:0,srcDoc:1,srcLang:1,srcSet:1,start:0,step:0,style:0,summary:0,tabIndex:1,target:0,title:0,type:0,useMap:1,value:0,width:0,wmode:0,wrap:0,about:0,accentHeight:1,"accent-height":"accentHeight",accumulate:0,additive:0,alignmentBaseline:1,"alignment-baseline":"alignmentBaseline",allowReorder:1,alphabetic:0,amplitude:0,arabicForm:1,"arabic-form":"arabicForm",ascent:0,attributeName:1,attributeType:1,autoReverse:1,azimuth:0,baseFrequency:1,baselineShift:1,"baseline-shift":"baselineShift",baseProfile:1,bbox:0,begin:0,bias:0,by:0,calcMode:1,capHeight:1,"cap-height":"capHeight",clip:0,clipPath:1,"clip-path":"clipPath",clipPathUnits:1,clipRule:1,"clip-rule":"clipRule",color:0,colorInterpolation:1,"color-interpolation":"colorInterpolation",colorInterpolationFilters:1,"color-interpolation-filters":"colorInterpolationFilters",colorProfile:1,"color-profile":"colorProfile",colorRendering:1,"color-rendering":"colorRendering",contentScriptType:1,contentStyleType:1,cursor:0,cx:0,cy:0,d:0,datatype:0,decelerate:0,descent:0,diffuseConstant:1,direction:0,display:0,divisor:0,dominantBaseline:1,"dominant-baseline":"dominantBaseline",dur:0,dx:0,dy:0,edgeMode:1,elevation:0,enableBackground:1,"enable-background":"enableBackground",end:0,exponent:0,externalResourcesRequired:1,fill:0,fillOpacity:1,"fill-opacity":"fillOpacity",fillRule:1,"fill-rule":"fillRule",filter:0,filterRes:1,filterUnits:1,floodOpacity:1,"flood-opacity":"floodOpacity",floodColor:1,"flood-color":"floodColor",focusable:0,fontFamily:1,"font-family":"fontFamily",fontSize:1,"font-size":"fontSize",fontSizeAdjust:1,"font-size-adjust":"fontSizeAdjust",fontStretch:1,"font-stretch":"fontStretch",fontStyle:1,"font-style":"fontStyle",fontVariant:1,"font-variant":"fontVariant",fontWeight:1,"font-weight":"fontWeight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:1,"glyph-name":"glyphName",glyphOrientationHorizontal:1,"glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphOrientationVertical:1,"glyph-orientation-vertical":"glyphOrientationVertical",glyphRef:1,gradientTransform:1,gradientUnits:1,hanging:0,horizAdvX:1,"horiz-adv-x":"horizAdvX",horizOriginX:1,"horiz-origin-x":"horizOriginX",ideographic:0,imageRendering:1,"image-rendering":"imageRendering",in2:0,in:0,inlist:0,intercept:0,k1:0,k2:0,k3:0,k4:0,k:0,kernelMatrix:1,kernelUnitLength:1,kerning:0,keyPoints:1,keySplines:1,keyTimes:1,lengthAdjust:1,letterSpacing:1,"letter-spacing":"letterSpacing",lightingColor:1,"lighting-color":"lightingColor",limitingConeAngle:1,local:0,markerEnd:1,"marker-end":"markerEnd",markerHeight:1,markerMid:1,"marker-mid":"markerMid",markerStart:1,"marker-start":"markerStart",markerUnits:1,markerWidth:1,mask:0,maskContentUnits:1,maskUnits:1,mathematical:0,mode:0,numOctaves:1,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:1,"overline-position":"overlinePosition",overlineThickness:1,"overline-thickness":"overlineThickness",paintOrder:1,"paint-order":"paintOrder",panose1:0,"panose-1":"panose1",pathLength:1,patternContentUnits:1,patternTransform:1,patternUnits:1,pointerEvents:1,"pointer-events":"pointerEvents",points:0,pointsAtX:1,pointsAtY:1,pointsAtZ:1,prefix:0,preserveAlpha:1,preserveAspectRatio:1,primitiveUnits:1,property:0,r:0,radius:0,refX:1,refY:1,renderingIntent:1,"rendering-intent":"renderingIntent",repeatCount:1,repeatDur:1,requiredExtensions:1,requiredFeatures:1,resource:0,restart:0,result:0,results:0,rotate:0,rx:0,ry:0,scale:0,security:0,seed:0,shapeRendering:1,"shape-rendering":"shapeRendering",slope:0,spacing:0,specularConstant:1,specularExponent:1,speed:0,spreadMethod:1,startOffset:1,stdDeviation:1,stemh:0,stemv:0,stitchTiles:1,stopColor:1,"stop-color":"stopColor",stopOpacity:1,"stop-opacity":"stopOpacity",strikethroughPosition:1,"strikethrough-position":"strikethroughPosition",strikethroughThickness:1,"strikethrough-thickness":"strikethroughThickness",string:0,stroke:0,strokeDasharray:1,"stroke-dasharray":"strokeDasharray",strokeDashoffset:1,"stroke-dashoffset":"strokeDashoffset",strokeLinecap:1,"stroke-linecap":"strokeLinecap",strokeLinejoin:1,"stroke-linejoin":"strokeLinejoin",strokeMiterlimit:1,"stroke-miterlimit":"strokeMiterlimit",strokeWidth:1,"stroke-width":"strokeWidth",strokeOpacity:1,"stroke-opacity":"strokeOpacity",suppressContentEditableWarning:1,suppressHydrationWarning:1,surfaceScale:1,systemLanguage:1,tableValues:1,targetX:1,targetY:1,textAnchor:1,"text-anchor":"textAnchor",textDecoration:1,"text-decoration":"textDecoration",textLength:1,textRendering:1,"text-rendering":"textRendering",to:0,transform:0,typeof:0,u1:0,u2:0,underlinePosition:1,"underline-position":"underlinePosition",underlineThickness:1,"underline-thickness":"underlineThickness",unicode:0,unicodeBidi:1,"unicode-bidi":"unicodeBidi",unicodeRange:1,"unicode-range":"unicodeRange",unitsPerEm:1,"units-per-em":"unitsPerEm",unselectable:0,vAlphabetic:1,"v-alphabetic":"vAlphabetic",values:0,vectorEffect:1,"vector-effect":"vectorEffect",version:0,vertAdvY:1,"vert-adv-y":"vertAdvY",vertOriginX:1,"vert-origin-x":"vertOriginX",vertOriginY:1,"vert-origin-y":"vertOriginY",vHanging:1,"v-hanging":"vHanging",vIdeographic:1,"v-ideographic":"vIdeographic",viewBox:1,viewTarget:1,visibility:0,vMathematical:1,"v-mathematical":"vMathematical",vocab:0,widths:0,wordSpacing:1,"word-spacing":"wordSpacing",writingMode:1,"writing-mode":"writingMode",x1:0,x2:0,x:0,xChannelSelector:1,xHeight:1,"x-height":"xHeight",xlinkActuate:1,"xlink:actuate":"xlinkActuate",xlinkArcrole:1,"xlink:arcrole":"xlinkArcrole",xlinkHref:1,"xlink:href":"xlinkHref",xlinkRole:1,"xlink:role":"xlinkRole",xlinkShow:1,"xlink:show":"xlinkShow",xlinkTitle:1,"xlink:title":"xlinkTitle",xlinkType:1,"xlink:type":"xlinkType",xmlBase:1,"xml:base":"xmlBase",xmlLang:1,"xml:lang":"xmlLang",xmlns:0,"xml:space":"xmlSpace",xmlnsXlink:1,"xmlns:xlink":"xmlnsXlink",xmlSpace:1,y1:0,y2:0,y:0,yChannelSelector:1,z:0,zoomAndPan:1};const Tl=0,Lt=1,Nn=2,Fn=3,No=4,El=5,Sl=6;function Yh(e){return De.hasOwnProperty(e)?De[e]:null}function We(e,t,r,n,i,o,a){this.acceptsBooleans=t===Nn||t===Fn||t===No,this.attributeName=n,this.attributeNamespace=i,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}const De={};["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"].forEach(e=>{De[e]=new We(e,Tl,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(([e,t])=>{De[e]=new We(e,Lt,!1,t,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(e=>{De[e]=new We(e,Nn,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(e=>{De[e]=new We(e,Nn,!1,e,null,!1,!1)}),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach(e=>{De[e]=new We(e,Fn,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(e=>{De[e]=new We(e,Fn,!0,e,null,!1,!1)}),["capture","download"].forEach(e=>{De[e]=new We(e,No,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(e=>{De[e]=new We(e,Sl,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(e=>{De[e]=new We(e,El,!1,e.toLowerCase(),null,!1,!1)});const Fo=/[\-\:]([a-z])/g,Lo=e=>e[1].toUpperCase();["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach(e=>{const t=e.replace(Fo,Lo);De[t]=new We(t,Lt,!1,e,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(e=>{const t=e.replace(Fo,Lo);De[t]=new We(t,Lt,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(e=>{const t=e.replace(Fo,Lo);De[t]=new We(t,Lt,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(e=>{De[e]=new We(e,Lt,!1,e.toLowerCase(),null,!1,!1)});const Kh="xlinkHref";De[Kh]=new We("xlinkHref",Lt,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(e=>{De[e]=new We(e,Lt,!1,e.toLowerCase(),null,!0,!0)});const{CAMELCASE:Xh,SAME:Jh,possibleStandardNames:wl}=Mn,Zh=":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",Qh=RegExp.prototype.test.bind(new RegExp("^(data|aria)-["+Zh+"]*$")),em=Object.keys(wl).reduce((e,t)=>{const r=wl[t];return r===Jh?e[t]=t:r===Xh?e[t.toLowerCase()]=t:e[t]=r,e},{});ht.BOOLEAN=Fn,ht.BOOLEANISH_STRING=Nn,ht.NUMERIC=El,ht.OVERLOADED_BOOLEAN=No,ht.POSITIVE_NUMERIC=Sl,ht.RESERVED=Tl,ht.STRING=Lt,ht.getPropertyInfo=Yh,ht.isCustomAttribute=Qh,ht.possibleStandardNames=em;var zo={},Uo={},Cl=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,tm=/\n/g,rm=/^\s*/,nm=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,im=/^:\s*/,om=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,am=/^[;\s]*/,sm=/^\s+|\s+$/g,lm=`
55
- `,Ol="/",Al="*",Xt="",um="comment",cm="declaration",fm=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var r=1,n=1;function i(y){var h=y.match(tm);h&&(r+=h.length);var x=y.lastIndexOf(lm);n=~x?y.length-x:n+y.length}function o(){var y={line:r,column:n};return function(h){return h.position=new a(y),u(),h}}function a(y){this.start=y,this.end={line:r,column:n},this.source=t.source}a.prototype.content=e;function s(y){var h=new Error(t.source+":"+r+":"+n+": "+y);if(h.reason=y,h.filename=t.source,h.line=r,h.column=n,h.source=e,!t.silent)throw h}function l(y){var h=y.exec(e);if(h){var x=h[0];return i(x),e=e.slice(x.length),h}}function u(){l(rm)}function c(y){var h;for(y=y||[];h=f();)h!==!1&&y.push(h);return y}function f(){var y=o();if(!(Ol!=e.charAt(0)||Al!=e.charAt(1))){for(var h=2;Xt!=e.charAt(h)&&(Al!=e.charAt(h)||Ol!=e.charAt(h+1));)++h;if(h+=2,Xt===e.charAt(h-1))return s("End of comment missing");var x=e.slice(2,h-2);return n+=2,i(x),e=e.slice(h),n+=2,y({type:um,comment:x})}}function p(){var y=o(),h=l(nm);if(h){if(f(),!l(im))return s("property missing ':'");var x=l(om),w=y({type:cm,property:Pl(h[0].replace(Cl,Xt)),value:x?Pl(x[0].replace(Cl,Xt)):Xt});return l(am),w}}function g(){var y=[];c(y);for(var h;h=p();)h!==!1&&(y.push(h),c(y));return y}return u(),g()};function Pl(e){return e?e.replace(sm,Xt):Xt}var dm=Ie&&Ie.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Uo,"__esModule",{value:!0});var pm=dm(fm);function hm(e,t){var r=null;if(!e||typeof e!="string")return r;var n=(0,pm.default)(e),i=typeof t=="function";return n.forEach(function(o){if(o.type==="declaration"){var a=o.property,s=o.value;i?t(a,s,o):s&&(r=r||{},r[a]=s)}}),r}Uo.default=hm;var Ln={};Object.defineProperty(Ln,"__esModule",{value:!0}),Ln.camelCase=void 0;var mm=/^--[a-zA-Z0-9-]+$/,gm=/-([a-z])/g,ym=/^[^-]+$/,vm=/^-(webkit|moz|ms|o|khtml)-/,bm=/^-(ms)-/,xm=function(e){return!e||ym.test(e)||mm.test(e)},_m=function(e,t){return t.toUpperCase()},kl=function(e,t){return"".concat(t,"-")},Tm=function(e,t){return t===void 0&&(t={}),xm(e)?e:(e=e.toLowerCase(),t.reactCompat?e=e.replace(bm,kl):e=e.replace(vm,kl),e.replace(gm,_m))};Ln.camelCase=Tm;var Em=Ie&&Ie.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(zo,"__esModule",{value:!0});var Sm=Em(Uo),wm=Ln;function Cm(e,t){var r={};return!e||typeof e!="string"||(0,Sm.default)(e,function(n,i){n&&i&&(r[(0,wm.camelCase)(n,t)]=i)}),r}zo.default=Cm;var Om=T,Am=zo.default,Pm=new Set(["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"]);function km(e,t){return e.indexOf("-")===-1?t&&typeof t.is=="string":!Pm.has(e)}var jm={reactCompat:!0};function Im(e,t){if(e!=null)try{t.style=Am(e,jm)}catch{t.style={}}}var $m=Om.version.split(".")[0]>=16,jl=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);function Rm(e){return!jl.has(e.name)}function Dm(e){return e}var Il={PRESERVE_CUSTOM_ATTRIBUTES:$m,ELEMENTS_WITH_NO_TEXT_CHILDREN:jl,isCustomComponent:km,setStyleProp:Im,canTextBeChildOfNode:Rm,returnFirstArg:Dm},Vr=ht,$l=Il,Mm=["checked","value"],Nm=["input","select","textarea"],Fm={reset:!0,submit:!0},Rl=function(t,r){t=t||{};var n,i,o,a,s,l={},u=t.type&&Fm[t.type];for(n in t){if(o=t[n],Vr.isCustomAttribute(n)){l[n]=o;continue}if(i=n.toLowerCase(),a=Dl(i),a){switch(s=Vr.getPropertyInfo(a),Mm.indexOf(a)!==-1&&Nm.indexOf(r)!==-1&&!u&&(a=Dl("default"+i)),l[a]=o,s&&s.type){case Vr.BOOLEAN:l[a]=!0;break;case Vr.OVERLOADED_BOOLEAN:o===""&&(l[a]=!0);break}continue}$l.PRESERVE_CUSTOM_ATTRIBUTES&&(l[n]=o)}return $l.setStyleProp(t.style,l),l};function Dl(e){return Vr.possibleStandardNames[e]}var Lm=T,zm=Rl,Br=Il,Um=Br.setStyleProp,Vm=Br.canTextBeChildOfNode;function Ml(e,t){t=t||{};for(var r=t.library||Lm,n=r.cloneElement,i=r.createElement,o=r.isValidElement,a=[],s,l,u=typeof t.replace=="function",c=t.transform||Br.returnFirstArg,f,p,g,y=t.trim,h=0,x=e.length;h<x;h++){if(s=e[h],u&&(f=t.replace(s),o(f))){x>1&&(f=n(f,{key:f.key||h})),a.push(c(f,s,h));continue}if(s.type==="text"){if(l=!s.data.trim().length,l&&s.parent&&!Vm(s.parent)||y&&l)continue;a.push(c(s.data,s,h));continue}switch(p=s.attribs,Bm(s)?Um(p.style,p):p&&(p=zm(p,s.name)),g=null,s.type){case"script":case"style":s.children[0]&&(p.dangerouslySetInnerHTML={__html:s.children[0].data});break;case"tag":s.name==="textarea"&&s.children[0]?p.defaultValue=s.children[0].data:s.children&&s.children.length&&(g=Ml(s.children,t));break;default:continue}x>1&&(p.key=h),a.push(c(i(s.name,p,g),s,h))}return a.length===1?a[0]:a}function Bm(e){return Br.PRESERVE_CUSTOM_ATTRIBUTES&&e.type==="tag"&&Br.isCustomComponent(e.name,e.attribs)}var Wm=Ml,zn=Ao,cr=$o.default,Hm=Rl,Nl=Wm;cr=typeof cr.default=="function"?cr.default:cr;var Gm={lowerCaseAttributeNames:!1};function Tt(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");return e===""?[]:(t=t||{},Nl(cr(e,t.htmlparser2||Gm),t))}Tt.domToReact=Nl,Tt.htmlToDOM=cr,Tt.attributesToProps=Hm,Tt.Comment=zn.Comment,Tt.Element=zn.Element,Tt.ProcessingInstruction=zn.ProcessingInstruction,Tt.Text=zn.Text;var qm=Tt;Tt.default=Tt;const Jt=Ot(qm);Jt.domToReact,Jt.htmlToDOM,Jt.attributesToProps,Jt.Comment,Jt.Element,Jt.ProcessingInstruction,Jt.Text;/*! @license DOMPurify 3.1.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.1.6/LICENSE */const{entries:Fl,setPrototypeOf:Ll,isFrozen:Ym,getPrototypeOf:Km,getOwnPropertyDescriptor:Xm}=Object;let{freeze:He,seal:st,create:zl}=Object,{apply:Vo,construct:Bo}=typeof Reflect<"u"&&Reflect;He||(He=function(t){return t}),st||(st=function(t){return t}),Vo||(Vo=function(t,r,n){return t.apply(r,n)}),Bo||(Bo=function(t,r){return new t(...r)});const Un=rt(Array.prototype.forEach),Ul=rt(Array.prototype.pop),Wr=rt(Array.prototype.push),Vn=rt(String.prototype.toLowerCase),Wo=rt(String.prototype.toString),Vl=rt(String.prototype.match),Hr=rt(String.prototype.replace),Jm=rt(String.prototype.indexOf),Zm=rt(String.prototype.trim),mt=rt(Object.prototype.hasOwnProperty),Ge=rt(RegExp.prototype.test),Gr=Qm(TypeError);function rt(e){return function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return Vo(e,t,n)}}function Qm(e){return function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Bo(e,r)}}function ee(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Vn;Ll&&Ll(e,null);let n=t.length;for(;n--;){let i=t[n];if(typeof i=="string"){const o=r(i);o!==i&&(Ym(t)||(t[n]=o),i=o)}e[i]=!0}return e}function eg(e){for(let t=0;t<e.length;t++)mt(e,t)||(e[t]=null);return e}function Zt(e){const t=zl(null);for(const[r,n]of Fl(e))mt(e,r)&&(Array.isArray(n)?t[r]=eg(n):n&&typeof n=="object"&&n.constructor===Object?t[r]=Zt(n):t[r]=n);return t}function qr(e,t){for(;e!==null;){const n=Xm(e,t);if(n){if(n.get)return rt(n.get);if(typeof n.value=="function")return rt(n.value)}e=Km(e)}function r(){return null}return r}const Bl=He(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Ho=He(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Go=He(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),tg=He(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),qo=He(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),rg=He(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Wl=He(["#text"]),Hl=He(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),Yo=He(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Gl=He(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Bn=He(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),ng=st(/\{\{[\w\W]*|[\w\W]*\}\}/gm),ig=st(/<%[\w\W]*|[\w\W]*%>/gm),og=st(/\${[\w\W]*}/gm),ag=st(/^data-[\-\w.\u00B7-\uFFFF]/),sg=st(/^aria-[\-\w]+$/),ql=st(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),lg=st(/^(?:\w+script|data):/i),ug=st(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Yl=st(/^html$/i),cg=st(/^[a-z][.\w]*(-[.\w]+)+$/i);var Kl=Object.freeze({__proto__:null,MUSTACHE_EXPR:ng,ERB_EXPR:ig,TMPLIT_EXPR:og,DATA_ATTR:ag,ARIA_ATTR:sg,IS_ALLOWED_URI:ql,IS_SCRIPT_OR_DATA:lg,ATTR_WHITESPACE:ug,DOCTYPE_NAME:Yl,CUSTOM_ELEMENT:cg});const Yr={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},fg=function(){return typeof window>"u"?null:window},dg=function(t,r){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let n=null;const i="data-tt-policy-suffix";r&&r.hasAttribute(i)&&(n=r.getAttribute(i));const o="dompurify"+(n?"#"+n:"");try{return t.createPolicy(o,{createHTML(a){return a},createScriptURL(a){return a}})}catch{return console.warn("TrustedTypes policy "+o+" could not be created."),null}};function Xl(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:fg();const t=O=>Xl(O);if(t.version="3.1.6",t.removed=[],!e||!e.document||e.document.nodeType!==Yr.document)return t.isSupported=!1,t;let{document:r}=e;const n=r,i=n.currentScript,{DocumentFragment:o,HTMLTemplateElement:a,Node:s,Element:l,NodeFilter:u,NamedNodeMap:c=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:f,DOMParser:p,trustedTypes:g}=e,y=l.prototype,h=qr(y,"cloneNode"),x=qr(y,"remove"),w=qr(y,"nextSibling"),j=qr(y,"childNodes"),M=qr(y,"parentNode");if(typeof a=="function"){const O=r.createElement("template");O.content&&O.content.ownerDocument&&(r=O.content.ownerDocument)}let F,_="";const{implementation:P,createNodeIterator:D,createDocumentFragment:te,getElementsByTagName:ae}=r,{importNode:Oe}=n;let U={};t.isSupported=typeof Fl=="function"&&typeof M=="function"&&P&&P.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:se,ERB_EXPR:he,TMPLIT_EXPR:ge,DATA_ATTR:qe,ARIA_ATTR:je,IS_SCRIPT_OR_DATA:Ze,ATTR_WHITESPACE:ot,CUSTOM_ELEMENT:vt}=Kl;let{IS_ALLOWED_URI:C}=Kl,k=null;const Y=ee({},[...Bl,...Ho,...Go,...qo,...Wl]);let L=null;const G=ee({},[...Hl,...Yo,...Gl,...Bn]);let z=Object.seal(zl(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),B=null,q=null,K=!0,J=!0,X=!1,Ae=!0,$=!1,$e=!0,N=!1,Ye=!1,Qe=!1,dt=!1,rr=!1,jt=!1,Oi=!0,Ai=!1;const fn="user-content-";let dn=!0,nr=!1,It={},$t=null;const Bt=ee({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Pi=null;const pn=ee({},["audio","video","img","source","image","track"]);let jr=null;const Ir=ee({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),$r="http://www.w3.org/1998/Math/MathML",Rr="http://www.w3.org/2000/svg",bt="http://www.w3.org/1999/xhtml";let Wt=bt,hn=!1,mn=null;const za=ee({},[$r,Rr,bt],Wo);let Rt=null;const ki=["application/xhtml+xml","text/html"],Ht="text/html";let Se=null,Ct=null;const ji=r.createElement("form"),Ii=function(b){return b instanceof RegExp||b instanceof Function},Dr=function(){let b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Ct&&Ct===b)){if((!b||typeof b!="object")&&(b={}),b=Zt(b),Rt=ki.indexOf(b.PARSER_MEDIA_TYPE)===-1?Ht:b.PARSER_MEDIA_TYPE,Se=Rt==="application/xhtml+xml"?Wo:Vn,k=mt(b,"ALLOWED_TAGS")?ee({},b.ALLOWED_TAGS,Se):Y,L=mt(b,"ALLOWED_ATTR")?ee({},b.ALLOWED_ATTR,Se):G,mn=mt(b,"ALLOWED_NAMESPACES")?ee({},b.ALLOWED_NAMESPACES,Wo):za,jr=mt(b,"ADD_URI_SAFE_ATTR")?ee(Zt(Ir),b.ADD_URI_SAFE_ATTR,Se):Ir,Pi=mt(b,"ADD_DATA_URI_TAGS")?ee(Zt(pn),b.ADD_DATA_URI_TAGS,Se):pn,$t=mt(b,"FORBID_CONTENTS")?ee({},b.FORBID_CONTENTS,Se):Bt,B=mt(b,"FORBID_TAGS")?ee({},b.FORBID_TAGS,Se):{},q=mt(b,"FORBID_ATTR")?ee({},b.FORBID_ATTR,Se):{},It=mt(b,"USE_PROFILES")?b.USE_PROFILES:!1,K=b.ALLOW_ARIA_ATTR!==!1,J=b.ALLOW_DATA_ATTR!==!1,X=b.ALLOW_UNKNOWN_PROTOCOLS||!1,Ae=b.ALLOW_SELF_CLOSE_IN_ATTR!==!1,$=b.SAFE_FOR_TEMPLATES||!1,$e=b.SAFE_FOR_XML!==!1,N=b.WHOLE_DOCUMENT||!1,dt=b.RETURN_DOM||!1,rr=b.RETURN_DOM_FRAGMENT||!1,jt=b.RETURN_TRUSTED_TYPE||!1,Qe=b.FORCE_BODY||!1,Oi=b.SANITIZE_DOM!==!1,Ai=b.SANITIZE_NAMED_PROPS||!1,dn=b.KEEP_CONTENT!==!1,nr=b.IN_PLACE||!1,C=b.ALLOWED_URI_REGEXP||ql,Wt=b.NAMESPACE||bt,z=b.CUSTOM_ELEMENT_HANDLING||{},b.CUSTOM_ELEMENT_HANDLING&&Ii(b.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(z.tagNameCheck=b.CUSTOM_ELEMENT_HANDLING.tagNameCheck),b.CUSTOM_ELEMENT_HANDLING&&Ii(b.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(z.attributeNameCheck=b.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),b.CUSTOM_ELEMENT_HANDLING&&typeof b.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(z.allowCustomizedBuiltInElements=b.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),$&&(J=!1),rr&&(dt=!0),It&&(k=ee({},Wl),L=[],It.html===!0&&(ee(k,Bl),ee(L,Hl)),It.svg===!0&&(ee(k,Ho),ee(L,Yo),ee(L,Bn)),It.svgFilters===!0&&(ee(k,Go),ee(L,Yo),ee(L,Bn)),It.mathMl===!0&&(ee(k,qo),ee(L,Gl),ee(L,Bn))),b.ADD_TAGS&&(k===Y&&(k=Zt(k)),ee(k,b.ADD_TAGS,Se)),b.ADD_ATTR&&(L===G&&(L=Zt(L)),ee(L,b.ADD_ATTR,Se)),b.ADD_URI_SAFE_ATTR&&ee(jr,b.ADD_URI_SAFE_ATTR,Se),b.FORBID_CONTENTS&&($t===Bt&&($t=Zt($t)),ee($t,b.FORBID_CONTENTS,Se)),dn&&(k["#text"]=!0),N&&ee(k,["html","head","body"]),k.table&&(ee(k,["tbody"]),delete B.tbody),b.TRUSTED_TYPES_POLICY){if(typeof b.TRUSTED_TYPES_POLICY.createHTML!="function")throw Gr('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof b.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Gr('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');F=b.TRUSTED_TYPES_POLICY,_=F.createHTML("")}else F===void 0&&(F=dg(g,i)),F!==null&&typeof _=="string"&&(_=F.createHTML(""));He&&He(b),Ct=b}},$i=ee({},["mi","mo","mn","ms","mtext"]),gn=ee({},["foreignobject","annotation-xml"]),Ri=ee({},["title","style","font","a","script"]),Di=ee({},[...Ho,...Go,...tg]),Mi=ee({},[...qo,...rg]),Ni=function(b){let S=M(b);(!S||!S.tagName)&&(S={namespaceURI:Wt,tagName:"template"});const I=Vn(b.tagName),Z=Vn(S.tagName);return mn[b.namespaceURI]?b.namespaceURI===Rr?S.namespaceURI===bt?I==="svg":S.namespaceURI===$r?I==="svg"&&(Z==="annotation-xml"||$i[Z]):!!Di[I]:b.namespaceURI===$r?S.namespaceURI===bt?I==="math":S.namespaceURI===Rr?I==="math"&&gn[Z]:!!Mi[I]:b.namespaceURI===bt?S.namespaceURI===Rr&&!gn[Z]||S.namespaceURI===$r&&!$i[Z]?!1:!Mi[I]&&(Ri[I]||!Di[I]):!!(Rt==="application/xhtml+xml"&&mn[b.namespaceURI]):!1},at=function(b){Wr(t.removed,{element:b});try{M(b).removeChild(b)}catch{x(b)}},Mr=function(b,S){try{Wr(t.removed,{attribute:S.getAttributeNode(b),from:S})}catch{Wr(t.removed,{attribute:null,from:S})}if(S.removeAttribute(b),b==="is"&&!L[b])if(dt||rr)try{at(S)}catch{}else try{S.setAttribute(b,"")}catch{}},Fi=function(b){let S=null,I=null;if(Qe)b="<remove></remove>"+b;else{const be=Vl(b,/^[\r\n\t ]+/);I=be&&be[0]}Rt==="application/xhtml+xml"&&Wt===bt&&(b='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+b+"</body></html>");const Z=F?F.createHTML(b):b;if(Wt===bt)try{S=new p().parseFromString(Z,Rt)}catch{}if(!S||!S.documentElement){S=P.createDocument(Wt,"template",null);try{S.documentElement.innerHTML=hn?_:Z}catch{}}const _e=S.body||S.documentElement;return b&&I&&_e.insertBefore(r.createTextNode(I),_e.childNodes[0]||null),Wt===bt?ae.call(S,N?"html":"body")[0]:N?S.documentElement:_e},Li=function(b){return D.call(b.ownerDocument||b,b,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},zi=function(b){return b instanceof f&&(typeof b.nodeName!="string"||typeof b.textContent!="string"||typeof b.removeChild!="function"||!(b.attributes instanceof c)||typeof b.removeAttribute!="function"||typeof b.setAttribute!="function"||typeof b.namespaceURI!="string"||typeof b.insertBefore!="function"||typeof b.hasChildNodes!="function")},m=function(b){return typeof s=="function"&&b instanceof s},E=function(b,S,I){U[b]&&Un(U[b],Z=>{Z.call(t,S,I,Ct)})},R=function(b){let S=null;if(E("beforeSanitizeElements",b,null),zi(b))return at(b),!0;const I=Se(b.nodeName);if(E("uponSanitizeElement",b,{tagName:I,allowedTags:k}),b.hasChildNodes()&&!m(b.firstElementChild)&&Ge(/<[/\w]/g,b.innerHTML)&&Ge(/<[/\w]/g,b.textContent)||b.nodeType===Yr.progressingInstruction||$e&&b.nodeType===Yr.comment&&Ge(/<[/\w]/g,b.data))return at(b),!0;if(!k[I]||B[I]){if(!B[I]&&ne(I)&&(z.tagNameCheck instanceof RegExp&&Ge(z.tagNameCheck,I)||z.tagNameCheck instanceof Function&&z.tagNameCheck(I)))return!1;if(dn&&!$t[I]){const Z=M(b)||b.parentNode,_e=j(b)||b.childNodes;if(_e&&Z){const be=_e.length;for(let me=be-1;me>=0;--me){const et=h(_e[me],!0);et.__removalCount=(b.__removalCount||0)+1,Z.insertBefore(et,w(b))}}}return at(b),!0}return b instanceof l&&!Ni(b)||(I==="noscript"||I==="noembed"||I==="noframes")&&Ge(/<\/no(script|embed|frames)/i,b.innerHTML)?(at(b),!0):($&&b.nodeType===Yr.text&&(S=b.textContent,Un([se,he,ge],Z=>{S=Hr(S,Z," ")}),b.textContent!==S&&(Wr(t.removed,{element:b.cloneNode()}),b.textContent=S)),E("afterSanitizeElements",b,null),!1)},W=function(b,S,I){if(Oi&&(S==="id"||S==="name")&&(I in r||I in ji))return!1;if(!(J&&!q[S]&&Ge(qe,S))){if(!(K&&Ge(je,S))){if(!L[S]||q[S]){if(!(ne(b)&&(z.tagNameCheck instanceof RegExp&&Ge(z.tagNameCheck,b)||z.tagNameCheck instanceof Function&&z.tagNameCheck(b))&&(z.attributeNameCheck instanceof RegExp&&Ge(z.attributeNameCheck,S)||z.attributeNameCheck instanceof Function&&z.attributeNameCheck(S))||S==="is"&&z.allowCustomizedBuiltInElements&&(z.tagNameCheck instanceof RegExp&&Ge(z.tagNameCheck,I)||z.tagNameCheck instanceof Function&&z.tagNameCheck(I))))return!1}else if(!jr[S]){if(!Ge(C,Hr(I,ot,""))){if(!((S==="src"||S==="xlink:href"||S==="href")&&b!=="script"&&Jm(I,"data:")===0&&Pi[b])){if(!(X&&!Ge(Ze,Hr(I,ot,"")))){if(I)return!1}}}}}}return!0},ne=function(b){return b!=="annotation-xml"&&Vl(b,vt)},de=function(b){E("beforeSanitizeAttributes",b,null);const{attributes:S}=b;if(!S)return;const I={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:L};let Z=S.length;for(;Z--;){const _e=S[Z],{name:be,namespaceURI:me,value:et}=_e,ir=Se(be);let Ne=be==="value"?et:Zm(et);if(I.attrName=ir,I.attrValue=Ne,I.keepAttr=!0,I.forceKeepAttr=void 0,E("uponSanitizeAttribute",b,I),Ne=I.attrValue,$e&&Ge(/((--!?|])>)|<\/(style|title)/i,Ne)){Mr(be,b);continue}if(I.forceKeepAttr||(Mr(be,b),!I.keepAttr))continue;if(!Ae&&Ge(/\/>/i,Ne)){Mr(be,b);continue}$&&Un([se,he,ge],Rd=>{Ne=Hr(Ne,Rd," ")});const $d=Se(b.nodeName);if(W($d,ir,Ne)){if(Ai&&(ir==="id"||ir==="name")&&(Mr(be,b),Ne=fn+Ne),F&&typeof g=="object"&&typeof g.getAttributeType=="function"&&!me)switch(g.getAttributeType($d,ir)){case"TrustedHTML":{Ne=F.createHTML(Ne);break}case"TrustedScriptURL":{Ne=F.createScriptURL(Ne);break}}try{me?b.setAttributeNS(me,be,Ne):b.setAttribute(be,Ne),zi(b)?at(b):Ul(t.removed)}catch{}}}E("afterSanitizeAttributes",b,null)},re=function O(b){let S=null;const I=Li(b);for(E("beforeSanitizeShadowDOM",b,null);S=I.nextNode();)E("uponSanitizeShadowNode",S,null),!R(S)&&(S.content instanceof o&&O(S.content),de(S));E("afterSanitizeShadowDOM",b,null)};return t.sanitize=function(O){let b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},S=null,I=null,Z=null,_e=null;if(hn=!O,hn&&(O="<!-->"),typeof O!="string"&&!m(O))if(typeof O.toString=="function"){if(O=O.toString(),typeof O!="string")throw Gr("dirty is not a string, aborting")}else throw Gr("toString is not a function");if(!t.isSupported)return O;if(Ye||Dr(b),t.removed=[],typeof O=="string"&&(nr=!1),nr){if(O.nodeName){const et=Se(O.nodeName);if(!k[et]||B[et])throw Gr("root node is forbidden and cannot be sanitized in-place")}}else if(O instanceof s)S=Fi("<!---->"),I=S.ownerDocument.importNode(O,!0),I.nodeType===Yr.element&&I.nodeName==="BODY"||I.nodeName==="HTML"?S=I:S.appendChild(I);else{if(!dt&&!$&&!N&&O.indexOf("<")===-1)return F&&jt?F.createHTML(O):O;if(S=Fi(O),!S)return dt?null:jt?_:""}S&&Qe&&at(S.firstChild);const be=Li(nr?O:S);for(;Z=be.nextNode();)R(Z)||(Z.content instanceof o&&re(Z.content),de(Z));if(nr)return O;if(dt){if(rr)for(_e=te.call(S.ownerDocument);S.firstChild;)_e.appendChild(S.firstChild);else _e=S;return(L.shadowroot||L.shadowrootmode)&&(_e=Oe.call(n,_e,!0)),_e}let me=N?S.outerHTML:S.innerHTML;return N&&k["!doctype"]&&S.ownerDocument&&S.ownerDocument.doctype&&S.ownerDocument.doctype.name&&Ge(Yl,S.ownerDocument.doctype.name)&&(me="<!DOCTYPE "+S.ownerDocument.doctype.name+`>
56
- `+me),$&&Un([se,he,ge],et=>{me=Hr(me,et," ")}),F&&jt?F.createHTML(me):me},t.setConfig=function(){let O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Dr(O),Ye=!0},t.clearConfig=function(){Ct=null,Ye=!1},t.isValidAttribute=function(O,b,S){Ct||Dr({});const I=Se(O),Z=Se(b);return W(I,Z,S)},t.addHook=function(O,b){typeof b=="function"&&(U[O]=U[O]||[],Wr(U[O],b))},t.removeHook=function(O){if(U[O])return Ul(U[O])},t.removeHooks=function(O){U[O]&&(U[O]=[])},t.removeAllHooks=function(){U={}},t}var pg=Xl();const hg={field:"_field_zdaf7_1",rtl:"_rtl_zdaf7_7",borderRight:"_borderRight_zdaf7_12"},Wn=T.memo(({id:e,entry:t,loading:r,rightBorder:n,children:i,onClickEntry:o,customElement:a,sanitize:s,...l})=>{const u={text:{style:{whiteSpace:"nowrap",overflow:"ellipsis"}}},{text:c}=v.useProps("Field",u,l),f={};Object.entries(c).forEach(([y,h])=>{typeof h=="function"&&(f[y]=h(t))});let p;s&&(p=pg.sanitize(i));const g=v.useStyles({name:"Field",props:l,classes:hg});return d.jsx(v.Table.Td,{...g("field"),onClick:o?()=>o(e,t):null,...l,children:d.jsx(v.Box,{w:"100%",children:d.jsx(v.Skeleton,{visible:r,children:a||(typeof i!="object"?d.jsx(v.Text,{...c,...f,children:p||i}):p||i)})})})});Wn.displayName="Field";const Jl={row:"_row_138r2_1",selected:"_selected_138r2_5"};function mg({entry:e,selected:t,children:r}){const n=v.useStyles({name:"Row",classes:Jl}),i=v.useProps("Row",{},{});Object.entries(i).forEach(([s,l])=>{typeof l=="function"&&(i[s]=l(e))});var{className:o,style:a}=n("row");return o=`${o} ${t?Jl.selected:""}`,d.jsx(v.Table.Tr,{className:o,style:{...a},...i,children:r})}function gg({bodyCustomizer:e,actionColumn:t,id:r,entry:n}){let i=e==null?void 0:e[t];return typeof i=="function"&&(i=i({id:r,...n})),i===null?null:i||d.jsx(tl,{id:r})}function yg({data:e,loading:t,hideActions:r,hideCheckbox:n,selection:i,toggleRow:o,onClickEntry:a,bodyCustomizer:s}){const l=e.list_columns.includes("actions")?"_actions":"actions";return d.jsx(v.Table.Tbody,{children:e.result.length?e.result.map((u,c)=>{const f=e.ids[c];return d.jsxs(mg,{entry:{...u,id:f},children:[n?null:d.jsx(Wn,{loading:t,children:d.jsx(v.Checkbox,{pl:2,checked:i.includes(Fe(f)),onChange:p=>{o(Fe(f))}})},c),r?null:d.jsx(Wn,{loading:t,children:d.jsx(gg,{bodyCustomizer:s,actionColumn:l,id:Fe(f),entry:u})}),e.list_columns.map((p,g)=>{let y=s==null?void 0:s[p];return typeof y=="function"&&(y=y({id:f,...u})),y===null?null:d.jsx(Wn,{id:Fe(f),entry:u,loading:t,onClickEntry:a,customElement:y,sanitize:!0,children:Ks(u,p)},g)})]},Fe(f))}):d.jsx("tr",{children:d.jsx("td",{style:{padding:"8px"},colSpan:r?e.list_columns.length:e.list_columns.length+1,children:d.jsx(v.Text,{style:{fontStyle:"italic"},size:"sm",c:"dimmed",children:"No data available..."})})})})}const vg={scrollbar:"_scrollbar_isyo2_1"};function bg({bulkActions:e,hideActions:t,loading:r,onSelectCheckbox:n,onClickEntry:i,hideCheckbox:o,hideDownload:a,headerCustomizer:s,bodyCustomizer:l,...u}){const c=v.useMantineTheme(),f=v.Table.extend({highlightOnHover:!0,striped:!0,horizontalSpacing:"md",verticalSpacing:"sm"}),p=v.useProps("DatagridTable",f,u),{data:g,info:y}=Re(),[h,x]=T.useState([]),[w,j]=T.useState(!1),M=_=>{x(P=>P.includes(_)?P.filter(D=>D!==_):[...P,_])},F=()=>{x(_=>_.length===g.ids.length?[]:g.ids.map((P,D)=>P))};return T.useEffect(()=>{j(h.length===g.result.length&&h.length>0),n&&n(h),e==null||e.setSelectedIds(h.map(_=>_))},[h]),T.useEffect(()=>{x([]),n&&n([])},[g]),d.jsx(v.ScrollArea,{options:{className:c.colorScheme==="dark"?"os-theme-light":void 0},style:{flex:1,flexDirection:"column"},classNames:vg,children:d.jsxs(v.Table,{stickyHeader:!0,...p,children:[d.jsx(Ys,{data:g,info:y,hideActions:t,hideCheckbox:o,allChecked:w,setSelection:x,toggleAll:F,headerCustomizer:s}),d.jsx(yg,{data:g,loading:r,hideActions:t,hideCheckbox:o,selection:h,setSelection:x,toggleRow:M,onClickEntry:i,bodyCustomizer:l})]})})}const Zl=T.memo(({...e})=>{const{data:t,queryParams:r,setQueryParams:n}=Re(),i=[{value:"10",label:"10"},{value:"25",label:"25"},{value:"50",label:"50"}],o=String(r.page_size),[a,s]=T.useState(r.page);T.useEffect(()=>{s(r.page)},[r.page]);const l=c=>{s(c-1),n({page:c-1})},u=c=>{n({page_size:parseInt(c,10),page:0})};return d.jsxs(d.Fragment,{children:[d.jsx(v.Divider,{}),d.jsxs(v.Box,{style:{display:"flex",justifyContent:"space-between",alignItems:"center",height:54,border:"none",borderTopWidth:"1px",padding:"var(--mantine-spacing-md)"},children:[d.jsxs(v.Box,{style:{display:"flex",alignItems:"center",gap:"var(--mantine-spacing-sm)"},children:[d.jsx(v.Text,{children:"Rows per page:"}),d.jsx(v.Select,{value:o,defaultValue:o,onChange:c=>u(c),data:i,allowDeselect:!1,w:80,size:"xs",styles:()=>({input:{fontSize:"14px",fontWeight:"250",lineHeight:"52px",border:"1px solid #E6E8ED"},item:{"&[data-selected]":{"&, &:hover":{outline:"none !important"}}}})})]}),d.jsx(v.Pagination,{size:"sm",total:Math.ceil(t.count/o),value:a+1,onChange:l,...e})]})]})});Zl.displayName="Pagination";function xg(){const{error:e}=Re(),[t,r]=T.useState(!1);return T.useEffect(()=>{e&&r(!0)},[e]),d.jsx(v.Modal,{opened:t,onClose:()=>r(!1),title:d.jsxs(v.Group,{children:[d.jsx(ph,{size:16,color:"red"}),d.jsx(v.Text,{children:e?e.originalError.detail||e.originalError.message:"Error"})]}),centered:!0,children:e?d.jsx(v.Text,{children:e.message}):null})}const Ko=T.forwardRef((e,t)=>{const{path:r,data:n,loading:i,info:o,setQueryParams:a}=Re(),{hideToolbar:s=!1,hideFilter:l=!1,hideAdd:u=!1,hideSettings:c=!1,hideActions:f=!1,hidePagination:p=!1,hideError:g=!1,hideDownload:y=!0,onSelectCheckbox:h=null,onClickEntry:x=null,fetchOnMount:w=!0,bulkActions:j=null,styles:M,headerCustomizer:F={},bodyCustomizer:_={},toolbarCustomizer:P={}}=e;if(T.useEffect(()=>{!n&&w&&a({})},[n]),!o)return;const D=j===null;return d.jsxs(v.Paper,{ref:t,style:{position:"relative",height:"100%",display:"flex",flexDirection:"column",...M},children:[s?null:d.jsx(Gs,{hideFilter:l,hideAdd:u,hideSettings:c,hideDownload:y,toolbarCustomizer:P}),n?d.jsx(bg,{bulkActions:j,hideActions:f,loading:i,onSelectCheckbox:h,onClickEntry:x,hideCheckbox:D,hideDownload:y,headerCustomizer:F,bodyCustomizer:_}):null,!p&&n?d.jsx(Zl,{}):null,g?null:d.jsx(xg,{})]})});Ko.displayName="DataGrid";const _g=e=>{const{description:t,errors:r,data:n,handleChange:i,path:o,label:a,required:s,enabled:l}=e;return d.jsx(or.DateInput,{valueFormat:"DD.MM.YYYY",disabled:!l,label:a,description:t,error:r,required:s,value:n?new Date(n):null,onChange:u=>{if(u instanceof Date){const c=new Date(u.getTime()-u.getTimezoneOffset()*6e4);i(o,c.toISOString().substring(0,10))}}})},Ql=V.rankWith(5,V.isDateControl),eu=ye.withJsonFormsControlProps(_g),Tg=e=>{const{description:t,errors:r,data:n,handleChange:i,path:o,label:a,required:s,enabled:l}=e;return d.jsx(or.DateTimePicker,{valueFormat:"DD.MM.YYYY HH:mm",disabled:!l,label:a,description:t,error:r,required:s,value:n?new Date(n):null,onChange:u=>{if(u instanceof Date){const c=new Date(u);i(o,c.toISOString())}}})},tu=V.rankWith(5,V.isDateTimeControl),ru=ye.withJsonFormsControlProps(Tg);var Eg=Object.prototype;function Sg(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Eg;return e===r}var Hn=Sg;function wg(e,t){return function(r){return e(t(r))}}var nu=wg,Cg=nu,Og=Cg(Object.keys,Object),Ag=Og,Pg=Hn,kg=Ag,jg=Object.prototype,Ig=jg.hasOwnProperty;function $g(e){if(!Pg(e))return kg(e);var t=[];for(var r in Object(e))Ig.call(e,r)&&r!="constructor"&&t.push(r);return t}var Rg=$g,Dg=typeof Ie=="object"&&Ie&&Ie.Object===Object&&Ie,iu=Dg,Mg=iu,Ng=typeof self=="object"&&self&&self.Object===Object&&self,Fg=Mg||Ng||Function("return this")(),gt=Fg,Lg=gt,zg=Lg.Symbol,Gn=zg,ou=Gn,au=Object.prototype,Ug=au.hasOwnProperty,Vg=au.toString,Kr=ou?ou.toStringTag:void 0;function Bg(e){var t=Ug.call(e,Kr),r=e[Kr];try{e[Kr]=void 0;var n=!0}catch{}var i=Vg.call(e);return n&&(t?e[Kr]=r:delete e[Kr]),i}var Wg=Bg,Hg=Object.prototype,Gg=Hg.toString;function qg(e){return Gg.call(e)}var Yg=qg,su=Gn,Kg=Wg,Xg=Yg,Jg="[object Null]",Zg="[object Undefined]",lu=su?su.toStringTag:void 0;function Qg(e){return e==null?e===void 0?Zg:Jg:lu&&lu in Object(e)?Kg(e):Xg(e)}var fr=Qg;function ey(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Pt=ey,ty=fr,ry=Pt,ny="[object AsyncFunction]",iy="[object Function]",oy="[object GeneratorFunction]",ay="[object Proxy]";function sy(e){if(!ry(e))return!1;var t=ty(e);return t==iy||t==oy||t==ny||t==ay}var Xo=sy,ly=gt,uy=ly["__core-js_shared__"],cy=uy,Jo=cy,uu=function(){var e=/[^.]+$/.exec(Jo&&Jo.keys&&Jo.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function fy(e){return!!uu&&uu in e}var dy=fy,py=Function.prototype,hy=py.toString;function my(e){if(e!=null){try{return hy.call(e)}catch{}try{return e+""}catch{}}return""}var cu=my,gy=Xo,yy=dy,vy=Pt,by=cu,xy=/[\\^$.*+?()[\]{}|]/g,_y=/^\[object .+?Constructor\]$/,Ty=Function.prototype,Ey=Object.prototype,Sy=Ty.toString,wy=Ey.hasOwnProperty,Cy=RegExp("^"+Sy.call(wy).replace(xy,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Oy(e){if(!vy(e)||yy(e))return!1;var t=gy(e)?Cy:_y;return t.test(by(e))}var Ay=Oy;function Py(e,t){return e==null?void 0:e[t]}var ky=Py,jy=Ay,Iy=ky;function $y(e,t){var r=Iy(e,t);return jy(r)?r:void 0}var Qt=$y,Ry=Qt,Dy=gt,My=Ry(Dy,"DataView"),Ny=My,Fy=Qt,Ly=gt,zy=Fy(Ly,"Map"),Zo=zy,Uy=Qt,Vy=gt,By=Uy(Vy,"Promise"),Wy=By,Hy=Qt,Gy=gt,qy=Hy(Gy,"Set"),fu=qy,Yy=Qt,Ky=gt,Xy=Yy(Ky,"WeakMap"),Jy=Xy,Qo=Ny,ea=Zo,ta=Wy,ra=fu,na=Jy,du=fr,dr=cu,pu="[object Map]",Zy="[object Object]",hu="[object Promise]",mu="[object Set]",gu="[object WeakMap]",yu="[object DataView]",Qy=dr(Qo),e0=dr(ea),t0=dr(ta),r0=dr(ra),n0=dr(na),er=du;(Qo&&er(new Qo(new ArrayBuffer(1)))!=yu||ea&&er(new ea)!=pu||ta&&er(ta.resolve())!=hu||ra&&er(new ra)!=mu||na&&er(new na)!=gu)&&(er=function(e){var t=du(e),r=t==Zy?e.constructor:void 0,n=r?dr(r):"";if(n)switch(n){case Qy:return yu;case e0:return pu;case t0:return hu;case r0:return mu;case n0:return gu}return t});var i0=er;function o0(e){return e!=null&&typeof e=="object"}var pr=o0,a0=fr,s0=pr,l0="[object Arguments]";function u0(e){return s0(e)&&a0(e)==l0}var c0=u0,vu=c0,f0=pr,bu=Object.prototype,d0=bu.hasOwnProperty,p0=bu.propertyIsEnumerable,h0=vu(function(){return arguments}())?vu:function(e){return f0(e)&&d0.call(e,"callee")&&!p0.call(e,"callee")},qn=h0,m0=Array.isArray,Xr=m0,g0=9007199254740991;function y0(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=g0}var xu=y0,v0=Xo,b0=xu;function x0(e){return e!=null&&b0(e.length)&&!v0(e)}var Yn=x0,Kn={exports:{}};function _0(){return!1}var T0=_0;Kn.exports,function(e,t){var r=gt,n=T0,i=t&&!t.nodeType&&t,o=i&&!0&&e&&!e.nodeType&&e,a=o&&o.exports===i,s=a?r.Buffer:void 0,l=s?s.isBuffer:void 0,u=l||n;e.exports=u}(Kn,Kn.exports);var ia=Kn.exports,E0=fr,S0=xu,w0=pr,C0="[object Arguments]",O0="[object Array]",A0="[object Boolean]",P0="[object Date]",k0="[object Error]",j0="[object Function]",I0="[object Map]",$0="[object Number]",R0="[object Object]",D0="[object RegExp]",M0="[object Set]",N0="[object String]",F0="[object WeakMap]",L0="[object ArrayBuffer]",z0="[object DataView]",U0="[object Float32Array]",V0="[object Float64Array]",B0="[object Int8Array]",W0="[object Int16Array]",H0="[object Int32Array]",G0="[object Uint8Array]",q0="[object Uint8ClampedArray]",Y0="[object Uint16Array]",K0="[object Uint32Array]",ve={};ve[U0]=ve[V0]=ve[B0]=ve[W0]=ve[H0]=ve[G0]=ve[q0]=ve[Y0]=ve[K0]=!0,ve[C0]=ve[O0]=ve[L0]=ve[A0]=ve[z0]=ve[P0]=ve[k0]=ve[j0]=ve[I0]=ve[$0]=ve[R0]=ve[D0]=ve[M0]=ve[N0]=ve[F0]=!1;function X0(e){return w0(e)&&S0(e.length)&&!!ve[E0(e)]}var J0=X0;function Z0(e){return function(t){return e(t)}}var Q0=Z0,Xn={exports:{}};Xn.exports,function(e,t){var r=iu,n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===n,a=o&&r.process,s=function(){try{var l=i&&i.require&&i.require("util").types;return l||a&&a.binding&&a.binding("util")}catch{}}();e.exports=s}(Xn,Xn.exports);var ev=Xn.exports,tv=J0,rv=Q0,_u=ev,Tu=_u&&_u.isTypedArray,nv=Tu?rv(Tu):tv,oa=nv,iv=Rg,ov=i0,av=qn,sv=Xr,lv=Yn,uv=ia,cv=Hn,fv=oa,dv="[object Map]",pv="[object Set]",hv=Object.prototype,mv=hv.hasOwnProperty;function gv(e){if(e==null)return!0;if(lv(e)&&(sv(e)||typeof e=="string"||typeof e.splice=="function"||uv(e)||fv(e)||av(e)))return!e.length;var t=ov(e);if(t==dv||t==pv)return!e.size;if(cv(e))return!iv(e).length;for(var r in e)if(mv.call(e,r))return!1;return!0}var yv=gv;const Eu=Ot(yv),Su=(e,t,r,n,i,o,a)=>e.map((s,l)=>d.jsx(v.Grid.Col,{span:i==="row"?12/e.length:12,children:d.jsx(ye.JsonFormsDispatch,{uischema:s,schema:t,path:r,enabled:n,renderers:o,cells:a})},`${r}-${l}`)),vv=({elements:e,schema:t,path:r,enabled:n,direction:i,renderers:o,cells:a})=>Eu(e)?null:d.jsx(v.Grid,{spacing:i==="row"?2:0,children:Su(e,t,r,n,i,o,a)}),aa=T.memo(vv),bv=e=>function(r){const n=ye.useJsonForms(),i=V.getAjv({jsonforms:{...n}});return d.jsx(e,{...r,ajv:i})};var xv=gt,_v=function(){return xv.Date.now()},Tv=_v,Ev=/\s/;function Sv(e){for(var t=e.length;t--&&Ev.test(e.charAt(t)););return t}var wv=Sv,Cv=wv,Ov=/^\s+/;function Av(e){return e&&e.slice(0,Cv(e)+1).replace(Ov,"")}var Pv=Av,kv=fr,jv=pr,Iv="[object Symbol]";function $v(e){return typeof e=="symbol"||jv(e)&&kv(e)==Iv}var wu=$v,Rv=Pv,Cu=Pt,Dv=wu,Ou=0/0,Mv=/^[-+]0x[0-9a-f]+$/i,Nv=/^0b[01]+$/i,Fv=/^0o[0-7]+$/i,Lv=parseInt;function zv(e){if(typeof e=="number")return e;if(Dv(e))return Ou;if(Cu(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Cu(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Rv(e);var r=Nv.test(e);return r||Fv.test(e)?Lv(e.slice(2),r?2:8):Mv.test(e)?Ou:+e}var Au=zv,Uv=Pt,sa=Tv,Pu=Au,Vv="Expected a function",Bv=Math.max,Wv=Math.min;function Hv(e,t,r){var n,i,o,a,s,l,u=0,c=!1,f=!1,p=!0;if(typeof e!="function")throw new TypeError(Vv);t=Pu(t)||0,Uv(r)&&(c=!!r.leading,f="maxWait"in r,o=f?Bv(Pu(r.maxWait)||0,t):o,p="trailing"in r?!!r.trailing:p);function g(P){var D=n,te=i;return n=i=void 0,u=P,a=e.apply(te,D),a}function y(P){return u=P,s=setTimeout(w,t),c?g(P):a}function h(P){var D=P-l,te=P-u,ae=t-D;return f?Wv(ae,o-te):ae}function x(P){var D=P-l,te=P-u;return l===void 0||D>=t||D<0||f&&te>=o}function w(){var P=sa();if(x(P))return j(P);s=setTimeout(w,h(P))}function j(P){return s=void 0,p&&n?g(P):(n=i=void 0,a)}function M(){s!==void 0&&clearTimeout(s),u=0,n=l=i=s=void 0}function F(){return s===void 0?a:j(sa())}function _(){var P=sa(),D=x(P);if(n=arguments,i=this,l=P,D){if(s===void 0)return y(l);if(f)return clearTimeout(s),s=setTimeout(w,t),g(l)}return s===void 0&&(s=setTimeout(w,t)),a}return _.cancel=M,_.flush=F,_}var Gv=Hv;const qv=Ot(Gv),ku=(e,t,r,n,i,o=300)=>{const[a,s]=T.useState(r??t);T.useEffect(()=>{s(r??t)},[r]);const l=T.useCallback(qv(f=>e(n,f),o),[e,n,o]),u=T.useCallback(f=>{const p=i(f);s(p??t),l(p)},[l,i]),c=T.useCallback(()=>{s(t),e(n,void 0)},[t,e,n]);return[a,u,c]},Yv=e=>e===""?void 0:parseFloat(e),Kv=e=>Yv(e),Jn=T.memo(function(t){const{allowDecimal:r,className:n,data:i,description:o,errors:a,enabled:s,handleChange:l,label:u,path:c,required:f,hideControls:p}=t,[g,y]=ku(l,"",i,c,Kv);return d.jsx(v.NumberInput,{label:u,description:o,error:a,required:f,value:g,onChange:y,className:n,disabled:!s,allowDecimal:r,hideControls:p,w:"100%"})}),Xv=e=>d.jsx(Jn,{...e}),ju=V.rankWith(3,V.isNumberControl),Iu=ye.withJsonFormsControlProps(Xv),Jv=e=>d.jsx(Jn,{...e}),$u=V.rankWith(3,V.isIntegerControl),Ru=ye.withJsonFormsControlProps(Jv);function Zv(){this.__data__=[],this.size=0}var Qv=Zv;function eb(e,t){return e===t||e!==e&&t!==t}var Zn=eb,tb=Zn;function rb(e,t){for(var r=e.length;r--;)if(tb(e[r][0],t))return r;return-1}var Qn=rb,nb=Qn,ib=Array.prototype,ob=ib.splice;function ab(e){var t=this.__data__,r=nb(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():ob.call(t,r,1),--this.size,!0}var sb=ab,lb=Qn;function ub(e){var t=this.__data__,r=lb(t,e);return r<0?void 0:t[r][1]}var cb=ub,fb=Qn;function db(e){return fb(this.__data__,e)>-1}var pb=db,hb=Qn;function mb(e,t){var r=this.__data__,n=hb(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var gb=mb,yb=Qv,vb=sb,bb=cb,xb=pb,_b=gb;function hr(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}hr.prototype.clear=yb,hr.prototype.delete=vb,hr.prototype.get=bb,hr.prototype.has=xb,hr.prototype.set=_b;var ei=hr,Tb=ei;function Eb(){this.__data__=new Tb,this.size=0}var Sb=Eb;function wb(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var Cb=wb;function Ob(e){return this.__data__.get(e)}var Ab=Ob;function Pb(e){return this.__data__.has(e)}var kb=Pb,jb=Qt,Ib=jb(Object,"create"),ti=Ib,Du=ti;function $b(){this.__data__=Du?Du(null):{},this.size=0}var Rb=$b;function Db(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Mb=Db,Nb=ti,Fb="__lodash_hash_undefined__",Lb=Object.prototype,zb=Lb.hasOwnProperty;function Ub(e){var t=this.__data__;if(Nb){var r=t[e];return r===Fb?void 0:r}return zb.call(t,e)?t[e]:void 0}var Vb=Ub,Bb=ti,Wb=Object.prototype,Hb=Wb.hasOwnProperty;function Gb(e){var t=this.__data__;return Bb?t[e]!==void 0:Hb.call(t,e)}var qb=Gb,Yb=ti,Kb="__lodash_hash_undefined__";function Xb(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Yb&&t===void 0?Kb:t,this}var Jb=Xb,Zb=Rb,Qb=Mb,e1=Vb,t1=qb,r1=Jb;function mr(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}mr.prototype.clear=Zb,mr.prototype.delete=Qb,mr.prototype.get=e1,mr.prototype.has=t1,mr.prototype.set=r1;var n1=mr,Mu=n1,i1=ei,o1=Zo;function a1(){this.size=0,this.__data__={hash:new Mu,map:new(o1||i1),string:new Mu}}var s1=a1;function l1(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var u1=l1,c1=u1;function f1(e,t){var r=e.__data__;return c1(t)?r[typeof t=="string"?"string":"hash"]:r.map}var ri=f1,d1=ri;function p1(e){var t=d1(this,e).delete(e);return this.size-=t?1:0,t}var h1=p1,m1=ri;function g1(e){return m1(this,e).get(e)}var y1=g1,v1=ri;function b1(e){return v1(this,e).has(e)}var x1=b1,_1=ri;function T1(e,t){var r=_1(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var E1=T1,S1=s1,w1=h1,C1=y1,O1=x1,A1=E1;function gr(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}gr.prototype.clear=S1,gr.prototype.delete=w1,gr.prototype.get=C1,gr.prototype.has=O1,gr.prototype.set=A1;var Nu=gr,P1=ei,k1=Zo,j1=Nu,I1=200;function $1(e,t){var r=this.__data__;if(r instanceof P1){var n=r.__data__;if(!k1||n.length<I1-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new j1(n)}return r.set(e,t),this.size=r.size,this}var R1=$1,D1=ei,M1=Sb,N1=Cb,F1=Ab,L1=kb,z1=R1;function yr(e){var t=this.__data__=new D1(e);this.size=t.size}yr.prototype.clear=M1,yr.prototype.delete=N1,yr.prototype.get=F1,yr.prototype.has=L1,yr.prototype.set=z1;var U1=yr,V1=Qt,B1=function(){try{var e=V1(Object,"defineProperty");return e({},"",{}),e}catch{}}(),Fu=B1,Lu=Fu;function W1(e,t,r){t=="__proto__"&&Lu?Lu(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var la=W1,H1=la,G1=Zn;function q1(e,t,r){(r!==void 0&&!G1(e[t],r)||r===void 0&&!(t in e))&&H1(e,t,r)}var zu=q1;function Y1(e){return function(t,r,n){for(var i=-1,o=Object(t),a=n(t),s=a.length;s--;){var l=a[e?s:++i];if(r(o[l],l,o)===!1)break}return t}}var K1=Y1,X1=K1,J1=X1(),Z1=J1,ni={exports:{}};ni.exports,function(e,t){var r=gt,n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===n,a=o?r.Buffer:void 0,s=a?a.allocUnsafe:void 0;function l(u,c){if(c)return u.slice();var f=u.length,p=s?s(f):new u.constructor(f);return u.copy(p),p}e.exports=l}(ni,ni.exports);var Q1=ni.exports,ex=gt,tx=ex.Uint8Array,rx=tx,Uu=rx;function nx(e){var t=new e.constructor(e.byteLength);return new Uu(t).set(new Uu(e)),t}var ix=nx,ox=ix;function ax(e,t){var r=t?ox(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var sx=ax;function lx(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}var ux=lx,cx=Pt,Vu=Object.create,fx=function(){function e(){}return function(t){if(!cx(t))return{};if(Vu)return Vu(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}(),dx=fx,px=nu,hx=px(Object.getPrototypeOf,Object),Bu=hx,mx=dx,gx=Bu,yx=Hn;function vx(e){return typeof e.constructor=="function"&&!yx(e)?mx(gx(e)):{}}var bx=vx,xx=Yn,_x=pr;function Tx(e){return _x(e)&&xx(e)}var Wu=Tx,Ex=fr,Sx=Bu,wx=pr,Cx="[object Object]",Ox=Function.prototype,Ax=Object.prototype,Hu=Ox.toString,Px=Ax.hasOwnProperty,kx=Hu.call(Object);function jx(e){if(!wx(e)||Ex(e)!=Cx)return!1;var t=Sx(e);if(t===null)return!0;var r=Px.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&Hu.call(r)==kx}var Ix=jx;function $x(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var Gu=$x,Rx=la,Dx=Zn,Mx=Object.prototype,Nx=Mx.hasOwnProperty;function Fx(e,t,r){var n=e[t];(!(Nx.call(e,t)&&Dx(n,r))||r===void 0&&!(t in e))&&Rx(e,t,r)}var Lx=Fx,zx=Lx,Ux=la;function Vx(e,t,r,n){var i=!r;r||(r={});for(var o=-1,a=t.length;++o<a;){var s=t[o],l=n?n(r[s],e[s],s,r,e):void 0;l===void 0&&(l=e[s]),i?Ux(r,s,l):zx(r,s,l)}return r}var Bx=Vx;function Wx(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var Hx=Wx,Gx=9007199254740991,qx=/^(?:0|[1-9]\d*)$/;function Yx(e,t){var r=typeof e;return t=t??Gx,!!t&&(r=="number"||r!="symbol"&&qx.test(e))&&e>-1&&e%1==0&&e<t}var qu=Yx,Kx=Hx,Xx=qn,Jx=Xr,Zx=ia,Qx=qu,e_=oa,t_=Object.prototype,r_=t_.hasOwnProperty;function n_(e,t){var r=Jx(e),n=!r&&Xx(e),i=!r&&!n&&Zx(e),o=!r&&!n&&!i&&e_(e),a=r||n||i||o,s=a?Kx(e.length,String):[],l=s.length;for(var u in e)(t||r_.call(e,u))&&!(a&&(u=="length"||i&&(u=="offset"||u=="parent")||o&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||Qx(u,l)))&&s.push(u);return s}var i_=n_;function o_(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var a_=o_,s_=Pt,l_=Hn,u_=a_,c_=Object.prototype,f_=c_.hasOwnProperty;function d_(e){if(!s_(e))return u_(e);var t=l_(e),r=[];for(var n in e)n=="constructor"&&(t||!f_.call(e,n))||r.push(n);return r}var p_=d_,h_=i_,m_=p_,g_=Yn;function y_(e){return g_(e)?h_(e,!0):m_(e)}var Yu=y_,v_=Bx,b_=Yu;function x_(e){return v_(e,b_(e))}var __=x_,Ku=zu,T_=Q1,E_=sx,S_=ux,w_=bx,Xu=qn,Ju=Xr,C_=Wu,O_=ia,A_=Xo,P_=Pt,k_=Ix,j_=oa,Zu=Gu,I_=__;function $_(e,t,r,n,i,o,a){var s=Zu(e,r),l=Zu(t,r),u=a.get(l);if(u){Ku(e,r,u);return}var c=o?o(s,l,r+"",e,t,a):void 0,f=c===void 0;if(f){var p=Ju(l),g=!p&&O_(l),y=!p&&!g&&j_(l);c=l,p||g||y?Ju(s)?c=s:C_(s)?c=S_(s):g?(f=!1,c=T_(l,!0)):y?(f=!1,c=E_(l,!0)):c=[]:k_(l)||Xu(l)?(c=s,Xu(s)?c=I_(s):(!P_(s)||A_(s))&&(c=w_(l))):f=!1}f&&(a.set(l,c),i(c,l,n,o,a),a.delete(l)),Ku(e,r,c)}var R_=$_,D_=U1,M_=zu,N_=Z1,F_=R_,L_=Pt,z_=Yu,U_=Gu;function Qu(e,t,r,n,i){e!==t&&N_(t,function(o,a){if(i||(i=new D_),L_(o))F_(e,t,a,r,Qu,n,i);else{var s=n?n(U_(e,a),o,a+"",e,t,i):void 0;s===void 0&&(s=o),M_(e,a,s)}},z_)}var V_=Qu;function B_(e){return e}var ec=B_;function W_(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}var H_=W_,G_=H_,tc=Math.max;function q_(e,t,r){return t=tc(t===void 0?e.length-1:t,0),function(){for(var n=arguments,i=-1,o=tc(n.length-t,0),a=Array(o);++i<o;)a[i]=n[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=n[i];return s[t]=r(a),G_(e,this,s)}}var Y_=q_;function K_(e){return function(){return e}}var X_=K_,J_=X_,rc=Fu,Z_=ec,Q_=rc?function(e,t){return rc(e,"toString",{configurable:!0,enumerable:!1,value:J_(t),writable:!0})}:Z_,eT=Q_,tT=800,rT=16,nT=Date.now;function iT(e){var t=0,r=0;return function(){var n=nT(),i=rT-(n-r);if(r=n,i>0){if(++t>=tT)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var oT=iT,aT=eT,sT=oT,lT=sT(aT),uT=lT,cT=ec,fT=Y_,dT=uT;function pT(e,t){return dT(fT(e,t,cT),e+"")}var nc=pT,hT=Zn,mT=Yn,gT=qu,yT=Pt;function vT(e,t,r){if(!yT(r))return!1;var n=typeof t;return(n=="number"?mT(r)&&gT(t,r.length):n=="string"&&t in r)?hT(r[t],e):!1}var ic=vT,bT=nc,xT=ic;function _T(e){return bT(function(t,r){var n=-1,i=r.length,o=i>1?r[i-1]:void 0,a=i>2?r[2]:void 0;for(o=e.length>3&&typeof o=="function"?(i--,o):void 0,a&&xT(r[0],r[1],a)&&(o=i<3?void 0:o,i=1),t=Object(t);++n<i;){var s=r[n];s&&e(t,s,n,o)}return t})}var TT=_T,ET=V_,ST=TT,wT=ST(function(e,t,r){ET(e,t,r)}),CT=wT;const oc=Ot(CT),ac=T.memo(function(t){const{className:r,config:n,uischema:i,data:o,description:a,errors:s,enabled:l,path:u,handleChange:c,label:f,required:p}=t;return oc({},n,i.options).format==="password"?d.jsx(v.PasswordInput,{label:f,description:a,error:s,required:p,value:o||"",onChange:y=>{c(u,y.currentTarget.value)},className:r,disabled:!l,w:"100%"}):d.jsx(v.TextInput,{label:f,description:a,error:s,required:p,value:o||"",onChange:y=>{c(u,y.currentTarget.value)},className:r,disabled:!l,w:"100%"})}),sc=T.memo(function(t){const{className:r,data:n,description:i,enabled:o,errors:a,handleChange:s,label:l,labelPosition:u,path:c,required:f}=t;return d.jsx(v.Checkbox,{label:l,description:i,error:a,disabled:!o,className:r,labelPosition:u,required:f,data:[{label:"true",value:"true"},{label:"false",value:"false"}],value:String(n)||"",onChange:p=>{s(c,p==="true")}})}),OT=e=>d.jsx(ac,{...e}),lc=V.rankWith(3,V.isStringControl),uc=ye.withJsonFormsControlProps(OT),AT=e=>d.jsx(sc,{...e}),cc=V.rankWith(3,V.isBooleanControl),fc=ye.withJsonFormsControlProps(AT),PT=({data:e,options:t,handleChange:r,path:n,...i})=>{const{description:o,errors:a,label:s,required:l,enabled:u}=i;return d.jsx(v.Select,{disabled:!u,data:t,value:e||null,label:s,description:o,required:l,error:a,searchable:!0,onChange:c=>{r(n,c)}})},dc=V.rankWith(5,V.isEnumControl),pc=ye.withJsonFormsEnumProps(ye.withTranslateProps(T.memo(PT)),!1);function kT(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}var jT=kT,hc=Gn,IT=qn,$T=Xr,mc=hc?hc.isConcatSpreadable:void 0;function RT(e){return $T(e)||IT(e)||!!(mc&&e&&e[mc])}var DT=RT,MT=jT,NT=DT;function gc(e,t,r,n,i){var o=-1,a=e.length;for(r||(r=NT),i||(i=[]);++o<a;){var s=e[o];t>0&&r(s)?t>1?gc(s,t-1,r,n,i):MT(i,s):n||(i[i.length]=s)}return i}var FT=gc,LT="__lodash_hash_undefined__";function zT(e){return this.__data__.set(e,LT),this}var UT=zT;function VT(e){return this.__data__.has(e)}var BT=VT,WT=Nu,HT=UT,GT=BT;function ii(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new WT;++t<r;)this.add(e[t])}ii.prototype.add=ii.prototype.push=HT,ii.prototype.has=GT;var qT=ii;function YT(e,t,r,n){for(var i=e.length,o=r+(n?1:-1);n?o--:++o<i;)if(t(e[o],o,e))return o;return-1}var KT=YT;function XT(e){return e!==e}var JT=XT;function ZT(e,t,r){for(var n=r-1,i=e.length;++n<i;)if(e[n]===t)return n;return-1}var QT=ZT,eE=KT,tE=JT,rE=QT;function nE(e,t,r){return t===t?rE(e,t,r):eE(e,tE,r)}var iE=nE,oE=iE;function aE(e,t){var r=e==null?0:e.length;return!!r&&oE(e,t,0)>-1}var sE=aE;function lE(e,t,r){for(var n=-1,i=e==null?0:e.length;++n<i;)if(r(t,e[n]))return!0;return!1}var uE=lE;function cE(e,t){return e.has(t)}var fE=cE;function dE(){}var pE=dE;function hE(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var yc=hE,ua=fu,mE=pE,gE=yc,yE=1/0,vE=ua&&1/gE(new ua([,-0]))[1]==yE?function(e){return new ua(e)}:mE,bE=vE,xE=qT,_E=sE,TE=uE,EE=fE,SE=bE,wE=yc,CE=200;function OE(e,t,r){var n=-1,i=_E,o=e.length,a=!0,s=[],l=s;if(r)a=!1,i=TE;else if(o>=CE){var u=t?null:SE(e);if(u)return wE(u);a=!1,i=EE,l=new xE}else l=t?[]:s;e:for(;++n<o;){var c=e[n],f=t?t(c):c;if(c=r||c!==0?c:0,a&&f===f){for(var p=l.length;p--;)if(l[p]===f)continue e;t&&l.push(f),s.push(c)}else i(l,f,r)||(l!==s&&l.push(f),s.push(c))}return s}var AE=OE,PE=FT,kE=nc,jE=AE,IE=Wu,$E=kE(function(e){return jE(PE(e,1,IE,!0))}),RE=$E;const DE=Ot(RE);function ME(e,t,r,n){var i=-1,o=e==null?0:e.length;for(n&&o&&(r=e[++i]);++i<o;)r=t(r,e[i],i,e);return r}var NE=ME;function FE(e){return function(t){return e==null?void 0:e[t]}}var LE=FE,zE=LE,UE={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},VE=zE(UE),BE=VE;function WE(e,t){for(var r=-1,n=e==null?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}var HE=WE,vc=Gn,GE=HE,qE=Xr,YE=wu,KE=1/0,bc=vc?vc.prototype:void 0,xc=bc?bc.toString:void 0;function _c(e){if(typeof e=="string")return e;if(qE(e))return GE(e,_c)+"";if(YE(e))return xc?xc.call(e):"";var t=e+"";return t=="0"&&1/e==-KE?"-0":t}var XE=_c,JE=XE;function ZE(e){return e==null?"":JE(e)}var ca=ZE,QE=BE,eS=ca,tS=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,rS="\\u0300-\\u036f",nS="\\ufe20-\\ufe2f",iS="\\u20d0-\\u20ff",oS=rS+nS+iS,aS="["+oS+"]",sS=RegExp(aS,"g");function lS(e){return e=eS(e),e&&e.replace(tS,QE).replace(sS,"")}var uS=lS,cS=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function fS(e){return e.match(cS)||[]}var dS=fS,pS=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function hS(e){return pS.test(e)}var mS=hS,Tc="\\ud800-\\udfff",gS="\\u0300-\\u036f",yS="\\ufe20-\\ufe2f",vS="\\u20d0-\\u20ff",bS=gS+yS+vS,Ec="\\u2700-\\u27bf",Sc="a-z\\xdf-\\xf6\\xf8-\\xff",xS="\\xac\\xb1\\xd7\\xf7",_S="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",TS="\\u2000-\\u206f",ES=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",wc="A-Z\\xc0-\\xd6\\xd8-\\xde",SS="\\ufe0e\\ufe0f",Cc=xS+_S+TS+ES,Oc="['’]",Ac="["+Cc+"]",wS="["+bS+"]",Pc="\\d+",CS="["+Ec+"]",kc="["+Sc+"]",jc="[^"+Tc+Cc+Pc+Ec+Sc+wc+"]",OS="\\ud83c[\\udffb-\\udfff]",AS="(?:"+wS+"|"+OS+")",PS="[^"+Tc+"]",Ic="(?:\\ud83c[\\udde6-\\uddff]){2}",$c="[\\ud800-\\udbff][\\udc00-\\udfff]",vr="["+wc+"]",kS="\\u200d",Rc="(?:"+kc+"|"+jc+")",jS="(?:"+vr+"|"+jc+")",Dc="(?:"+Oc+"(?:d|ll|m|re|s|t|ve))?",Mc="(?:"+Oc+"(?:D|LL|M|RE|S|T|VE))?",Nc=AS+"?",Fc="["+SS+"]?",IS="(?:"+kS+"(?:"+[PS,Ic,$c].join("|")+")"+Fc+Nc+")*",$S="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",RS="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",DS=Fc+Nc+IS,MS="(?:"+[CS,Ic,$c].join("|")+")"+DS,NS=RegExp([vr+"?"+kc+"+"+Dc+"(?="+[Ac,vr,"$"].join("|")+")",jS+"+"+Mc+"(?="+[Ac,vr+Rc,"$"].join("|")+")",vr+"?"+Rc+"+"+Dc,vr+"+"+Mc,RS,$S,Pc,MS].join("|"),"g");function FS(e){return e.match(NS)||[]}var LS=FS,zS=dS,US=mS,VS=ca,BS=LS;function WS(e,t,r){return e=VS(e),t=r?void 0:t,t===void 0?US(e)?BS(e):zS(e):e.match(t)||[]}var HS=WS,GS=NE,qS=uS,YS=HS,KS="['’]",XS=RegExp(KS,"g");function JS(e){return function(t){return GS(YS(qS(t).replace(XS,"")),e,"")}}var ZS=JS;function QS(e,t,r){var n=-1,i=e.length;t<0&&(t=-t>i?0:i+t),r=r>i?i:r,r<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var o=Array(i);++n<i;)o[n]=e[n+t];return o}var ew=QS,tw=ew;function rw(e,t,r){var n=e.length;return r=r===void 0?n:r,!t&&r>=n?e:tw(e,t,r)}var nw=rw,iw="\\ud800-\\udfff",ow="\\u0300-\\u036f",aw="\\ufe20-\\ufe2f",sw="\\u20d0-\\u20ff",lw=ow+aw+sw,uw="\\ufe0e\\ufe0f",cw="\\u200d",fw=RegExp("["+cw+iw+lw+uw+"]");function dw(e){return fw.test(e)}var Lc=dw;function pw(e){return e.split("")}var hw=pw,zc="\\ud800-\\udfff",mw="\\u0300-\\u036f",gw="\\ufe20-\\ufe2f",yw="\\u20d0-\\u20ff",vw=mw+gw+yw,bw="\\ufe0e\\ufe0f",xw="["+zc+"]",fa="["+vw+"]",da="\\ud83c[\\udffb-\\udfff]",_w="(?:"+fa+"|"+da+")",Uc="[^"+zc+"]",Vc="(?:\\ud83c[\\udde6-\\uddff]){2}",Bc="[\\ud800-\\udbff][\\udc00-\\udfff]",Tw="\\u200d",Wc=_w+"?",Hc="["+bw+"]?",Ew="(?:"+Tw+"(?:"+[Uc,Vc,Bc].join("|")+")"+Hc+Wc+")*",Sw=Hc+Wc+Ew,ww="(?:"+[Uc+fa+"?",fa,Vc,Bc,xw].join("|")+")",Cw=RegExp(da+"(?="+da+")|"+ww+Sw,"g");function Ow(e){return e.match(Cw)||[]}var Aw=Ow,Pw=hw,kw=Lc,jw=Aw;function Iw(e){return kw(e)?jw(e):Pw(e)}var $w=Iw,Rw=nw,Dw=Lc,Mw=$w,Nw=ca;function Fw(e){return function(t){t=Nw(t);var r=Dw(t)?Mw(t):void 0,n=r?r[0]:t.charAt(0),i=r?Rw(r,1).join(""):t.slice(1);return n[e]()+i}}var Lw=Fw,zw=Lw,Uw=zw("toUpperCase"),Vw=Uw,Bw=ZS,Ww=Vw,Hw=Bw(function(e,t,r){return e+(r?" ":"")+Ww(t)}),Gw=Hw;const qw=Ot(Gw);var Yw=Math.ceil,Kw=Math.max;function Xw(e,t,r,n){for(var i=-1,o=Kw(Yw((t-e)/(r||1)),0),a=Array(o);o--;)a[n?o:++i]=e,e+=r;return a}var Jw=Xw,Zw=Au,Gc=1/0,Qw=17976931348623157e292;function eC(e){if(!e)return e===0?e:0;if(e=Zw(e),e===Gc||e===-Gc){var t=e<0?-1:1;return t*Qw}return e===e?e:0}var tC=eC,rC=Jw,nC=ic,pa=tC;function iC(e){return function(t,r,n){return n&&typeof n!="number"&&nC(t,r,n)&&(r=n=void 0),t=pa(t),r===void 0?(r=t,t=0):r=pa(r),n=n===void 0?t<r?1:-1:pa(n),rC(t,r,n,e)}}var oC=iC,aC=oC,sC=aC(),lC=sC;const uC=Ot(lC);function pe(){return pe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},pe.apply(null,arguments)}function zt(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function qc(e){if(!zt(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=qc(e[r])}),t}function Et(e,t,r={clone:!0}){const n=r.clone?pe({},e):e;return zt(e)&&zt(t)&&Object.keys(t).forEach(i=>{zt(t[i])&&Object.prototype.hasOwnProperty.call(e,i)&&zt(e[i])?n[i]=Et(e[i],t[i],r):r.clone?n[i]=zt(t[i])?qc(t[i]):t[i]:n[i]=t[i]}),n}const cC=Object.freeze(Object.defineProperty({__proto__:null,default:Et,isPlainObject:zt},Symbol.toStringTag,{value:"Module"}));function Jr(e){let t="https://mui.com/production-error/?code="+e;for(let r=1;r<arguments.length;r+=1)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}const fC=Object.freeze(Object.defineProperty({__proto__:null,default:Jr},Symbol.toStringTag,{value:"Module"}));var ha={exports:{}},ce={};/**
53
+ */var vo,As;function eh(){if(As)return vo;As=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function n(o){if(o==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(o)}function i(){try{if(!Object.assign)return!1;var o=new String("abc");if(o[5]="de",Object.getOwnPropertyNames(o)[0]==="5")return!1;for(var a={},s=0;s<10;s++)a["_"+String.fromCharCode(s)]=s;var l=Object.getOwnPropertyNames(a).map(function(f){return a[f]});if(l.join("")!=="0123456789")return!1;var u={};return"abcdefghijklmnopqrst".split("").forEach(function(f){u[f]=f}),Object.keys(Object.assign({},u)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return vo=i()?Object.assign:function(o,a){for(var s,l=n(o),u,f=1;f<arguments.length;f++){s=Object(arguments[f]);for(var c in s)t.call(s,c)&&(l[c]=s[c]);if(e){u=e(s);for(var p=0;p<u.length;p++)r.call(s,u[p])&&(l[u[p]]=s[u[p]])}}return l},vo}var bo,Ps;function xo(){if(Ps)return bo;Ps=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return bo=e,bo}var _o,ks;function js(){return ks||(ks=1,_o=Function.call.bind(Object.prototype.hasOwnProperty)),_o}var To,Is;function th(){if(Is)return To;Is=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=xo(),r={},n=js();e=function(o){var a="Warning: "+o;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}}function i(o,a,s,l,u){if(process.env.NODE_ENV!=="production"){for(var f in o)if(n(o,f)){var c;try{if(typeof o[f]!="function"){var p=Error((l||"React class")+": "+s+" type `"+f+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[f]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw p.name="Invariant Violation",p}c=o[f](a,f,l,s,null,t)}catch(g){c=g}if(c&&!(c instanceof Error)&&e((l||"React class")+": type specification of "+s+" `"+f+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof c+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),c instanceof Error&&!(c.message in r)){r[c.message]=!0;var y=u?u():"";e("Failed "+s+" type: "+c.message+(y??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},To=i,To}var Eo,$s;function rh(){if($s)return Eo;$s=1;var e=Os(),t=eh(),r=xo(),n=js(),i=th(),o=function(){};process.env.NODE_ENV!=="production"&&(o=function(s){var l="Warning: "+s;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}});function a(){return null}return Eo=function(s,l){var u=typeof Symbol=="function"&&Symbol.iterator,f="@@iterator";function c(C){var P=C&&(u&&C[u]||C[f]);if(typeof P=="function")return P}var p="<<anonymous>>",y={array:w("array"),bigint:w("bigint"),bool:w("boolean"),func:w("function"),number:w("number"),object:w("object"),string:w("string"),symbol:w("symbol"),any:k(),arrayOf:D,element:N(),elementType:_(),instanceOf:R,node:oe(),objectOf:J,oneOf:F,oneOfType:ee,shape:le,exact:me};function g(C,P){return C===P?C!==0||1/C===1/P:C!==C&&P!==P}function h(C,P){this.message=C,this.data=P&&typeof P=="object"?P:{},this.stack=""}h.prototype=Error.prototype;function x(C){if(process.env.NODE_ENV!=="production")var P={},Y=0;function L(U,B,q,K,Z,X,Ae){if(K=K||p,X=X||q,Ae!==r){if(l){var I=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw I.name="Invariant Violation",I}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var $e=K+":"+q;!P[$e]&&Y<3&&(o("You are manually calling a React.PropTypes validation function for the `"+X+"` prop on `"+K+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),P[$e]=!0,Y++)}}return B[q]==null?U?B[q]===null?new h("The "+Z+" `"+X+"` is marked as required "+("in `"+K+"`, but its value is `null`.")):new h("The "+Z+" `"+X+"` is marked as required in "+("`"+K+"`, but its value is `undefined`.")):null:C(B,q,K,Z,X)}var G=L.bind(null,!1);return G.isRequired=L.bind(null,!0),G}function w(C){function P(Y,L,G,U,B,q){var K=Y[L],Z=je(K);if(Z!==C){var X=Ze(K);return new h("Invalid "+U+" `"+B+"` of type "+("`"+X+"` supplied to `"+G+"`, expected ")+("`"+C+"`."),{expectedType:C})}return null}return x(P)}function k(){return x(a)}function D(C){function P(Y,L,G,U,B){if(typeof C!="function")return new h("Property `"+B+"` of component `"+G+"` has invalid PropType notation inside arrayOf.");var q=Y[L];if(!Array.isArray(q)){var K=je(q);return new h("Invalid "+U+" `"+B+"` of type "+("`"+K+"` supplied to `"+G+"`, expected an array."))}for(var Z=0;Z<q.length;Z++){var X=C(q,Z,G,U,B+"["+Z+"]",r);if(X instanceof Error)return X}return null}return x(P)}function N(){function C(P,Y,L,G,U){var B=P[Y];if(!s(B)){var q=je(B);return new h("Invalid "+G+" `"+U+"` of type "+("`"+q+"` supplied to `"+L+"`, expected a single ReactElement."))}return null}return x(C)}function _(){function C(P,Y,L,G,U){var B=P[Y];if(!e.isValidElementType(B)){var q=je(B);return new h("Invalid "+G+" `"+U+"` of type "+("`"+q+"` supplied to `"+L+"`, expected a single ReactElement type."))}return null}return x(C)}function R(C){function P(Y,L,G,U,B){if(!(Y[L]instanceof C)){var q=C.name||p,K=vt(Y[L]);return new h("Invalid "+U+" `"+B+"` of type "+("`"+K+"` supplied to `"+G+"`, expected ")+("instance of `"+q+"`."))}return null}return x(P)}function F(C){if(!Array.isArray(C))return process.env.NODE_ENV!=="production"&&(arguments.length>1?o("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):o("Invalid argument supplied to oneOf, expected an array.")),a;function P(Y,L,G,U,B){for(var q=Y[L],K=0;K<C.length;K++)if(g(q,C[K]))return null;var Z=JSON.stringify(C,function(Ae,I){var $e=Ze(I);return $e==="symbol"?String(I):I});return new h("Invalid "+U+" `"+B+"` of value `"+String(q)+"` "+("supplied to `"+G+"`, expected one of "+Z+"."))}return x(P)}function J(C){function P(Y,L,G,U,B){if(typeof C!="function")return new h("Property `"+B+"` of component `"+G+"` has invalid PropType notation inside objectOf.");var q=Y[L],K=je(q);if(K!=="object")return new h("Invalid "+U+" `"+B+"` of type "+("`"+K+"` supplied to `"+G+"`, expected an object."));for(var Z in q)if(n(q,Z)){var X=C(q,Z,G,U,B+"."+Z,r);if(X instanceof Error)return X}return null}return x(P)}function ee(C){if(!Array.isArray(C))return process.env.NODE_ENV!=="production"&&o("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var P=0;P<C.length;P++){var Y=C[P];if(typeof Y!="function")return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+ot(Y)+" at index "+P+"."),a}function L(G,U,B,q,K){for(var Z=[],X=0;X<C.length;X++){var Ae=C[X],I=Ae(G,U,B,q,K,r);if(I==null)return null;I.data&&n(I.data,"expectedType")&&Z.push(I.data.expectedType)}var $e=Z.length>0?", expected one of type ["+Z.join(", ")+"]":"";return new h("Invalid "+q+" `"+K+"` supplied to "+("`"+B+"`"+$e+"."))}return x(L)}function oe(){function C(P,Y,L,G,U){return ye(P[Y])?null:new h("Invalid "+G+" `"+U+"` supplied to "+("`"+L+"`, expected a ReactNode."))}return x(C)}function z(C,P,Y,L,G){return new h((C||"React class")+": "+P+" type `"+Y+"."+L+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+G+"`.")}function le(C){function P(Y,L,G,U,B){var q=Y[L],K=je(q);if(K!=="object")return new h("Invalid "+U+" `"+B+"` of type `"+K+"` "+("supplied to `"+G+"`, expected `object`."));for(var Z in C){var X=C[Z];if(typeof X!="function")return z(G,U,B,Z,Ze(X));var Ae=X(q,Z,G,U,B+"."+Z,r);if(Ae)return Ae}return null}return x(P)}function me(C){function P(Y,L,G,U,B){var q=Y[L],K=je(q);if(K!=="object")return new h("Invalid "+U+" `"+B+"` of type `"+K+"` "+("supplied to `"+G+"`, expected `object`."));var Z=t({},Y[L],C);for(var X in Z){var Ae=C[X];if(n(C,X)&&typeof Ae!="function")return z(G,U,B,X,Ze(Ae));if(!Ae)return new h("Invalid "+U+" `"+B+"` key `"+X+"` supplied to `"+G+"`.\nBad object: "+JSON.stringify(Y[L],null," ")+`
54
+ Valid keys: `+JSON.stringify(Object.keys(C),null," "));var I=Ae(q,X,G,U,B+"."+X,r);if(I)return I}return null}return x(P)}function ye(C){switch(typeof C){case"number":case"string":case"undefined":return!0;case"boolean":return!C;case"object":if(Array.isArray(C))return C.every(ye);if(C===null||s(C))return!0;var P=c(C);if(P){var Y=P.call(C),L;if(P!==C.entries){for(;!(L=Y.next()).done;)if(!ye(L.value))return!1}else for(;!(L=Y.next()).done;){var G=L.value;if(G&&!ye(G[1]))return!1}}else return!1;return!0;default:return!1}}function qe(C,P){return C==="symbol"?!0:P?P["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&P instanceof Symbol:!1}function je(C){var P=typeof C;return Array.isArray(C)?"array":C instanceof RegExp?"object":qe(P,C)?"symbol":P}function Ze(C){if(typeof C>"u"||C===null)return""+C;var P=je(C);if(P==="object"){if(C instanceof Date)return"date";if(C instanceof RegExp)return"regexp"}return P}function ot(C){var P=Ze(C);switch(P){case"array":case"object":return"an "+P;case"boolean":case"date":case"regexp":return"a "+P;default:return P}}function vt(C){return!C.constructor||!C.constructor.name?p:C.constructor.name}return y.checkPropTypes=i,y.resetWarningCache=i.resetWarningCache,y.PropTypes=y,y},Eo}var So,Rs;function nh(){if(Rs)return So;Rs=1;var e=xo();function t(){}function r(){}return r.resetWarningCache=t,So=function(){function n(a,s,l,u,f,c){if(c!==e){var p=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw p.name="Invariant Violation",p}}n.isRequired=n;function i(){return n}var o={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:i,element:n,elementType:n,instanceOf:i,node:n,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:r,resetWarningCache:t};return o.PropTypes=o,o},So}if(process.env.NODE_ENV!=="production"){var ih=Os(),oh=!0;yo.exports=rh()(ih.isElement,oh)}else yo.exports=nh()();var ah=yo.exports;const H=Ot(ah);var sh={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"},lh=Object.defineProperty,uh=Object.defineProperties,ch=Object.getOwnPropertyDescriptors,An=Object.getOwnPropertySymbols,Ds=Object.prototype.hasOwnProperty,Ms=Object.prototype.propertyIsEnumerable,Ns=(e,t,r)=>t in e?lh(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Fs=(e,t)=>{for(var r in t||(t={}))Ds.call(t,r)&&Ns(e,r,t[r]);if(An)for(var r of An(t))Ms.call(t,r)&&Ns(e,r,t[r]);return e},fh=(e,t)=>uh(e,ch(t)),dh=(e,t)=>{var r={};for(var n in e)Ds.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&An)for(var n of An(e))t.indexOf(n)<0&&Ms.call(e,n)&&(r[n]=e[n]);return r},Be=(e,t,r)=>{const n=T.forwardRef((i,o)=>{var a=i,{color:s="currentColor",size:l=24,stroke:u=2,children:f}=a,c=dh(a,["color","size","stroke","children"]);return T.createElement("svg",Fs(fh(Fs({ref:o},sh),{width:l,height:l,stroke:s,strokeWidth:u,className:`tabler-icon tabler-icon-${e}`}),c),[...r.map(([p,y])=>T.createElement(p,y)),...f||[]])});return n.propTypes={color:H.string,size:H.oneOfType([H.string,H.number]),stroke:H.oneOfType([H.string,H.number])},n.displayName=`${t}`,n},ph=Be("alert-circle","IconAlertCircle",[["path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0",key:"svg-0"}],["path",{d:"M12 8v4",key:"svg-1"}],["path",{d:"M12 16h.01",key:"svg-2"}]]),hh=Be("app-window","IconAppWindow",[["path",{d:"M3 5m0 2a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v10a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2z",key:"svg-0"}],["path",{d:"M6 8h.01",key:"svg-1"}],["path",{d:"M9 8h.01",key:"svg-2"}]]),wo=Be("chevron-down","IconChevronDown",[["path",{d:"M6 9l6 6l6 -6",key:"svg-0"}]]),Ls=Be("chevron-up","IconChevronUp",[["path",{d:"M6 15l6 -6l6 6",key:"svg-0"}]]),mh=Be("download","IconDownload",[["path",{d:"M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2 -2v-2",key:"svg-0"}],["path",{d:"M7 11l5 5l5 -5",key:"svg-1"}],["path",{d:"M12 4l0 12",key:"svg-2"}]]),gh=Be("exclamation-circle","IconExclamationCircle",[["path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0",key:"svg-0"}],["path",{d:"M12 9v4",key:"svg-1"}],["path",{d:"M12 16v.01",key:"svg-2"}]]),yh=Be("eye","IconEye",[["path",{d:"M10 12a2 2 0 1 0 4 0a2 2 0 0 0 -4 0",key:"svg-0"}],["path",{d:"M21 12c-2.4 4 -5.4 6 -9 6c-3.6 0 -6.6 -2 -9 -6c2.4 -4 5.4 -6 9 -6c3.6 0 6.6 2 9 6",key:"svg-1"}]]),zs=Be("filter","IconFilter",[["path",{d:"M4 4h16v2.172a2 2 0 0 1 -.586 1.414l-4.414 4.414v7l-6 2v-8.5l-4.48 -4.928a2 2 0 0 1 -.52 -1.345v-2.227z",key:"svg-0"}]]),vh=Be("id-badge-2","IconIdBadge2",[["path",{d:"M7 12h3v4h-3z",key:"svg-0"}],["path",{d:"M10 6h-6a1 1 0 0 0 -1 1v12a1 1 0 0 0 1 1h16a1 1 0 0 0 1 -1v-12a1 1 0 0 0 -1 -1h-6",key:"svg-1"}],["path",{d:"M10 3m0 1a1 1 0 0 1 1 -1h2a1 1 0 0 1 1 1v3a1 1 0 0 1 -1 1h-2a1 1 0 0 1 -1 -1z",key:"svg-2"}],["path",{d:"M14 16h2",key:"svg-3"}],["path",{d:"M14 12h4",key:"svg-4"}]]),Us=Be("lock","IconLock",[["path",{d:"M5 13a2 2 0 0 1 2 -2h10a2 2 0 0 1 2 2v6a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2v-6z",key:"svg-0"}],["path",{d:"M11 16a1 1 0 1 0 2 0a1 1 0 0 0 -2 0",key:"svg-1"}],["path",{d:"M8 11v-4a4 4 0 1 1 8 0v4",key:"svg-2"}]]),bh=Be("logout","IconLogout",[["path",{d:"M14 8v-2a2 2 0 0 0 -2 -2h-7a2 2 0 0 0 -2 2v12a2 2 0 0 0 2 2h7a2 2 0 0 0 2 -2v-2",key:"svg-0"}],["path",{d:"M9 12h12l-3 -3",key:"svg-1"}],["path",{d:"M18 15l3 -3",key:"svg-2"}]]),xh=Be("pencil","IconPencil",[["path",{d:"M4 20h4l10.5 -10.5a2.828 2.828 0 1 0 -4 -4l-10.5 10.5v4",key:"svg-0"}],["path",{d:"M13.5 6.5l4 4",key:"svg-1"}]]),Co=Be("plus","IconPlus",[["path",{d:"M12 5l0 14",key:"svg-0"}],["path",{d:"M5 12l14 0",key:"svg-1"}]]),Vs=Be("trash","IconTrash",[["path",{d:"M4 7l16 0",key:"svg-0"}],["path",{d:"M10 11l0 6",key:"svg-1"}],["path",{d:"M14 11l0 6",key:"svg-2"}],["path",{d:"M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2 -2l1 -12",key:"svg-3"}],["path",{d:"M9 7v-3a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v3",key:"svg-4"}]]),_h=Be("users","IconUsers",[["path",{d:"M9 7m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0",key:"svg-0"}],["path",{d:"M3 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2",key:"svg-1"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"svg-2"}],["path",{d:"M21 21v-2a4 4 0 0 0 -3 -3.85",key:"svg-3"}]]);function Bs(...e){const[t,r]=T.useState(!1),n={bg:"transparent",size:"sm",c:"gray"},i=v.useProps("ActionIcon",n,e);return d.jsxs(d.Fragment,{children:[d.jsx(v.Tooltip,{label:"Add Item",children:d.jsx(v.ActionIcon,{bg:i.bg,size:i.size,c:i.c,onClick:()=>{r(!0)},children:d.jsx(Co,{})})}),d.jsx(Es,{opened:t,onClose:()=>{r(!1)}})]})}function Th({form:e,name:t,items:r,onChange:n,...i}){return d.jsx(v.Select,{data:r,searchable:!0,...e.getInputProps(t),onChange:n,...i})}function Eh({form:e,name:t,items:r,onChange:n,...i}){return d.jsx(v.Select,{data:r,searchable:!0,...e.getInputProps(t),onChange:n,...i})}function Sh({form:e,name:t,...r}){const n=v.useCombobox({onDropdownClose:()=>n.resetSelectedOption(),onDropdownOpen:()=>n.updateSelectedOptionIndex("active")}),[i,o]=T.useState([]),[a,s]=T.useState(""),l=c=>{a!==""&&(i.includes(a)||o(p=>[...p,a]),s(""))},u=c=>o(p=>p.filter(y=>y!==c)),f=i.map(c=>d.jsx(v.Pill,{withRemoveButton:!0,onRemove:()=>u(c),children:c},c));return T.useEffect(()=>{if(e.getInputProps(t).value)try{const c=JSON.parse(String(e.getInputProps(t).value));o([...c])}catch(c){console.error("Error parsing JSON:",c)}else e.getInputProps(t).onChange([])},[]),T.useEffect(()=>{e.getInputProps(t).onChange(i)},[i]),d.jsxs(v.Combobox,{store:n,onOptionSubmit:l,children:[d.jsx(v.Combobox.DropdownTarget,{children:d.jsx(v.PillsInput,{onClick:()=>n.openDropdown(),children:d.jsxs(v.Pill.Group,{children:[f,d.jsx(v.Combobox.EventsTarget,{children:d.jsx(v.PillsInput.Field,{onFocus:()=>n.openDropdown(),onBlur:()=>n.closeDropdown(),value:a,placeholder:"Search values",onChange:c=>{n.updateSelectedOptionIndex(),s(c.currentTarget.value)},onKeyDown:c=>{c.key==="Backspace"&&a.length===0&&(c.preventDefault(),u(i[i.length-1]))}})})]})})}),d.jsx(v.Combobox.Dropdown,{children:d.jsx(v.Combobox.Options,{children:d.jsxs(v.Combobox.Option,{value:"$create",children:["+ Create ",a]})})})]})}function Ws({onClose:e,...t}){const{info:r,queryParams:n,setQueryParams:i,path:o}=Re(),a=Ui.useForm({initialValues:{filters:[]},validate:mo(zr({filters:lo().of(zr({col:wn().transform(c=>c||void 0).required("Field is required"),opr:wn().transform(c=>c||void 0).required("col is required"),value:Sn().when("col",{is:c=>c&&r.filters[c].schema.required,then:()=>Sn().required("Value is required")})}))}))}),s={bg:"transparent",size:"sm",c:"gray"},l=v.useProps("ActionIcon",s,t);T.useEffect(()=>{a.setValues({filters:[]}),a.reset()},[o]),T.useEffect(()=>{if(n.filters&&n.filters.length){const c=n.filters.map(p=>({...p,key:Nr.randomId()}));a.setFieldValue("filters",c)}},[n.filters]);const u=c=>{const p=c.filters.map(({key:g,...h})=>h),y=JSON.parse(JSON.stringify(p));i({filters:y,page:0}),e()},f=a.values.filters.map((c,p)=>d.jsxs(v.Box,{px:"sm",children:[d.jsxs(v.Flex,{my:"md",gap:"md",style:{whiteSpace:"nowrap"},children:[d.jsx(v.Box,{style:{width:"192px"},children:r&&r.filters&&d.jsx(Th,{form:a,name:`filters.${p}.col`,items:Object.entries(r.filters).map(([y,g])=>({label:g.label,value:String(y)})),onChange:y=>{a.setFieldValue(`filters.${p}`,{col:y,opr:"",value:"",key:Nr.randomId()})}})}),d.jsx(v.Box,{style:{width:"192px"},children:c.col?d.jsx(Eh,{form:a,name:`filters.${p}.opr`,items:r.filters[c.col].filters.map(y=>({label:y.name,value:y.operator})),onChange:y=>{a.setFieldValue(`filters.${p}`,{col:a.values.filters[p].col,opr:y,value:"",key:Nr.randomId()})}}):null}),d.jsx(v.Box,{style:{width:"192px"},children:c.col?c.opr==="in"?d.jsx(Sh,{form:a,name:`filters.${p}.value`}):d.jsx(go,{form:a,name:`filters.${p}.value`,schema:r.filters[c.col].schema,filter:!0}):null}),d.jsx(v.ActionIcon,{bg:l.bg,size:l.size,c:l.c,onClick:()=>{a.removeListItem("filters",p)},children:d.jsx(Vs,{})})]}),a.values.filters.length>1&&p<a.values.filters.length-1?d.jsx(v.Divider,{my:"md",labelPosition:"center",label:"AND"}):null]},c.key));return d.jsxs(v.Box,{component:"form",onSubmit:a.onSubmit(u),children:[f.length===0&&d.jsx(v.Box,{style:{width:"642px"},children:d.jsx(v.Text,{style:{fontStyle:"italic",padding:"7px"},size:"sm",c:"dimmed",children:"No filters selected..."})}),d.jsx(v.ScrollArea.Autosize,{mah:"40vh",mt:20,children:f}),d.jsx(v.Divider,{my:"sm"}),d.jsxs(v.Box,{style:{display:"flex",justifyContent:"space-between"},children:[d.jsx(v.Button,{variant:"subtle",leftSection:d.jsx(Co,{}),onClick:()=>{a.insertListItem("filters",{col:"",opr:"",value:"",key:Nr.randomId()})},children:"Add Filter"}),d.jsx(v.Group,{spacing:"md",children:d.jsx(v.Button,{type:"submit",children:"Apply"})})]})]})}function Hs(...e){const{queryParams:t}=Re(),r={bg:"transparent",size:"sm",c:"gray"},n=v.useProps("ActionIcon",r,e),[i,o]=T.useState(!1);return d.jsxs(v.Popover,{opened:i,position:"bottom-end",onClose:()=>o(!1),closeOnClickOutside:!1,zIndex:1,children:[d.jsx(v.Popover.Target,{children:d.jsx(v.Tooltip,{opened:i?!1:null,label:"Filter",children:t.filters.length!=0?d.jsx(v.Indicator,{zIndex:20,size:16,label:t.filters.length,children:d.jsx(v.ActionIcon,{bg:n.bg,size:n.size,c:n.c,onClick:()=>o(!0),children:d.jsx(zs,{})})}):d.jsx(v.ActionIcon,{bg:n.bg,size:n.size,c:n.c,onClick:()=>o(!0),children:d.jsx(zs,{})})})}),d.jsxs(v.Popover.Dropdown,{px:"xs",children:[d.jsx(v.Box,{style:{position:"absolute",top:4,right:4},children:d.jsx(v.CloseButton,{title:"Filters",onClick:()=>o(!1)})}),d.jsx(Ws,{onClose:()=>{o(!1)}})]})]})}function wh(...e){const[t,r]=T.useState(!1),{download:n}=Re(),i={bg:"transparent",size:"sm",c:"gray"},o=v.useProps("ActionIcon",i,e);return t?d.jsx(v.Loader,{color:o.c,size:o.size}):d.jsx(v.Tooltip,{label:"Download",children:d.jsx(v.ActionIcon,{bg:o.bg,size:o.size,c:o.c,onClick:()=>{r(!0),n("download").then(()=>r(!1))},children:d.jsx(mh,{})})})}const Gs=T.memo(({hideAdd:e,hideFilter:t,hideDownload:r,toolbarCustomizer:n})=>{const{info:i}=Re(),o=T.useMemo(()=>{const s={};return Object.entries(n).forEach(([l,u])=>{s[l]=u,typeof s[l]=="function"&&(s[l]=s[l]())}),s},[n]),a=i.permissions.includes("can_post");return d.jsxs(v.Flex,{justify:"flex-end",p:"md",gap:"sm",children:[!r&&(o.download||d.jsx(wh,{})),a&&!e?o.add||d.jsx(Bs,{}):null,t?null:o.filter||d.jsx(Hs,{})]})});Gs.displayName="Toolbar";const qs={root:"_root_1kmay_1",wrapper:"_wrapper_1kmay_7",icon:"_icon_1kmay_18"};function Oo({column:e,label:t,orderColumn:r,related:n,toggleAll:i,allChecked:o,classNames:a,styles:s,customElement:l,...u}){const{queryParams:f,setQueryParams:c,loading:p}=Re(),y={fw:700,size:"sm",color:"gray.8",hoverColor:"gray.6",selectedColor:"blue"},g=v.useStyles({name:"FieldTitle",classes:qs,classNames:a,styles:s,props:u}),h=v.useProps("FieldTitle",y,u),{hovered:x,ref:w}=Nr.useHover(),k=r&&f.order_column===r;return d.jsx(v.Table.Th,{className:qs.fieldTitleRoot,...g("root"),onClick:r&&!p?()=>c({order_column:r,order_direction:f.order_direction==="asc"?"desc":"asc"}):null,children:d.jsx(v.Box,{ref:w,...g("wrapper"),children:e==="Checkbox"?d.jsx(v.Checkbox,{pb:5,pl:2,onChange:i,checked:o}):d.jsxs(d.Fragment,{children:[d.jsx(v.Box,{w:"100%",fw:h.fw,size:"xl",c:x?h.hoverColor:k?h.selectedColor:h.color,children:l||t||e}),n?d.jsx(v.Tooltip,{label:"Related Field",children:d.jsx(v.Indicator,{label:"rel",style:{indicator:{top:"-1px !important",right:"-2px !important",padding:"4px"}},children:d.jsx(v.Box,{...g("icon"),children:k?f.order_direction==="asc"?d.jsx(wo,{size:14,strokeWidth:1.5}):d.jsx(Ls,{size:14,strokeWidth:1.5}):null})})}):d.jsx(v.Box,{...g("icon"),children:k?f.order_direction==="asc"?d.jsx(wo,{size:14,strokeWidth:1.5}):d.jsx(Ls,{size:14,strokeWidth:1.5}):null})]})})})}const Ys=T.memo(({data:e,info:t,settings:r,hideActions:n,hideCheckbox:i,allChecked:o,toggleAll:a,headerCustomizer:s})=>{const l=e.list_columns.includes("actions")?"_actions":"actions";let u=s==null?void 0:s[l];return typeof u=="function"&&(u=u()),d.jsx(v.Table.Thead,{children:d.jsxs(v.Table.Tr,{children:[i?null:d.jsx(Oo,{data:e,column:"Checkbox",allChecked:o,toggleAll:a}),n?null:d.jsx(Oo,{column:"Actions",customElement:u}),e.list_columns.map((f,c)=>{var y;let p=s==null?void 0:s[f];return typeof p=="function"&&(p=p(e.label_columns[f])),p===null?null:d.jsx(Oo,{column:f,label:e.label_columns[f],orderColumn:e.order_columns.find(g=>g===f)||e.order_columns.find(g=>g.startsWith(`${f}.`)),related:((y=t.filters[f])==null?void 0:y.schema.type)==="Nested",customElement:p},f)})]})})});Ys.displayName="Header";const Ks=(e,t)=>{const r=t.split(".").reduce((n,i)=>n[i],e);return!r&&typeof r!="boolean"&&typeof r!="number"?null:typeof r=="boolean"?r.toString():Array.isArray(r)?r.map(n=>n.name_).join(", "):typeof r=="object"?r.name_:r};function Xs(e,t){return e===!0||Array.isArray(e)?t:Object.fromEntries(Object.keys(e).map(r=>[r,Xs(e[r],t[r])]))}function Js(e,t){if(!e)return e;const r=t.values;if(!r||!r.length)return e;const n=r[0].id;if(!(n instanceof Object))return e;const o=Object.keys(n),a={};return o.forEach(s=>{a[s]=e[s]}),e.id=a,e}function Ch(e,t){const r={};return t.forEach(n=>{if(n.type==="Related"){r[n.name]=Js(e.result[n.name],n);return}if(n.type==="RelatedList"){r[n.name]=e.result[n.name].map(i=>Js(i,n));return}r[n.name]=typeof e.result[n.name]=="boolean"?String(e.result[n.name]):e.result[n.name]}),r}function Oh({relatedPath:e,...t}){const{path:r}=Re();return Pe(r?r.substring(0,r.lastIndexOf("/")):"",e.substring(0,e.lastIndexOf("/"))),d.jsx(_s,{resource_name:e.replace("/",""),relation:t,children:d.jsx(Ko,{hideToolbar:!0,hideDownload:!1})})}const Ah=T.memo(Oh);function Ph({item:e,info:t,loading:r,opened:n,onClose:i,...o}){const a={modal:{},tabs:{},tabsList:{},tabsPanel:{}},{modal:s,tabs:l,tabsList:u,tabsPanel:f}=v.useProps("ViewDialog",a,o);return d.jsxs(v.Modal,{opened:n,onClose:i,title:`${e==null?void 0:e.show_title} (#${Fe(e==null?void 0:e.id)})`,size:"lg",centered:!0,zIndex:1e3,...s,children:[d.jsx(v.LoadingOverlay,{visible:r}),!r&&e?d.jsxs(v.Tabs,{defaultValue:"details",...l,children:[d.jsxs(v.Tabs.List,{...u,children:[d.jsx(v.Tabs.Tab,{value:"details",children:"Details"}),t.relations.map((c,p)=>d.jsx(v.Tabs.Tab,{value:c.name,children:c.name},p))]}),d.jsx(v.Tabs.Panel,{pt:"xs",value:"details",...f,children:d.jsx(v.Paper,{p:"xs",withBorder:!0,children:d.jsx(v.Stack,{spacing:"md",children:d.jsx(v.ScrollArea,{h:450,type:"auto",children:e.show_columns.map((c,p)=>d.jsxs(v.Grid,{maw:500,children:[d.jsx(v.Grid.Col,{span:4,children:d.jsx(v.Text,{size:"md",children:e.label_columns[c]})}),d.jsx(v.Grid.Col,{span:1,children:d.jsx(v.Text,{size:"xs",children:":"})}),d.jsx(v.Grid.Col,{span:6,children:d.jsx(v.Text,{size:"md",children:Ks(e.result,c)})})]},p))})})})}),t.relations.map((c,p)=>d.jsx(v.Tabs.Panel,{pt:"xs",value:c.name,children:d.jsx(v.Paper,{withBorder:!0,children:d.jsx(Ah,{relatedPath:c.path,id:Fe(e.id),foreign_key:c.foreign_key,type:c.type})})},p))]}):null]})}function kh({id:e,...t}){const{info:r,getEntry:n}=Re(),i={bg:"transparent",size:"sm",c:"gray"},o=v.useProps("ActionIcon",i,t),[a,s]=T.useState(null),[l,u]=T.useState(!1),[f,c]=T.useState(!1);return d.jsxs(d.Fragment,{children:[d.jsx(v.Tooltip,{label:"Details",children:d.jsx(v.ActionIcon,{bg:o.bg,size:o.size,c:o.c,onClick:async()=>{u(!0);const p=await n(e);p&&(s(p),u(!1),c(!0))},children:d.jsx(yh,{})})}),d.jsx(Ph,{item:a,info:r,loading:l,opened:f,onClose:()=>c(!1)})]})}function jh(e,t){return new Promise(r=>{r(Ch(e,t.edit.columns))})}function Zs({item:e,info:t,opened:r,onClose:n,...i}){const{updateEntry:o}=Re(),a={modal:{},stack:{},saveButton:{}},{modal:s,stack:l,saveButton:u}=v.useProps("EditDialog",a,i),f=Ui.useForm({initialValues:t.edit.defaultValues,validate:mo(t.edit.schema)}),c=()=>{const y={};return Object.keys(f.values).forEach(g=>{f.isDirty(g)&&(y[g]=!0)}),y};T.useEffect(()=>{e&&jh(e,t).then(y=>{f.setValues(y),f.resetDirty(y)})},[e,t.edit.columns]);const p=async y=>{y=Xs(c(),y),await o(e.id,y),n()};return T.useEffect(()=>{f.setInitialValues(t.edit.defaultValues),f.reset()},[t.edit.defaultValues]),e?d.jsx(v.Modal,{opened:r,onClose:()=>{n()},title:t.edit.title,size:"lg",centered:!0,...s,children:d.jsx(v.Box,{component:"form",onSubmit:f.onSubmit(p),children:d.jsx(v.Stack,{spacing:"md",...l,children:d.jsxs(v.ScrollArea.Autosize,{mah:450,type:"auto",children:[t.edit.columns.map((y,g)=>d.jsx(go,{form:f,name:y.name,label:y.label,description:y.description,schema:y,withAsterisk:y.required},g)),d.jsx(v.Group,{position:"right",mt:"xl",children:d.jsx(v.Button,{type:"submit",...u,children:"Save"})})]})})})}):null}function Qs({id:e,...t}){const{info:r,getEntry:n}=Re(),i={bg:"transparent",size:"sm",c:"gray"},o=v.useProps("ActionIcon",i,t),[a,s]=T.useState(null),[l,u]=T.useState(!1),[f,c]=T.useState(!1);return d.jsxs(d.Fragment,{children:[d.jsx(v.Tooltip,{label:"Edit",children:d.jsx(v.ActionIcon,{bg:o.bg,size:o.size,c:o.c,onClick:async()=>{u(!0);const p=await n(e);p&&(s(p),u(!1),c(!0))},children:d.jsx(xh,{})})}),d.jsx(Zs,{item:a,info:r,opened:f,onClose:()=>c(!1)})]})}function Ih({opened:e,onClose:t,handleAccept:r,handleReject:n}){return d.jsxs(v.Modal,{opened:e,onClose:t,"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",title:"Item löschen?",centered:!0,children:["Sind Sie Sicher, dass Sie das Item löschen wollen?",d.jsxs(v.Group,{align:"right",mt:"xl",justify:"flex-end",children:[d.jsx(v.Button,{onClick:n,variant:"default",children:"Abbrechen"}),d.jsx(v.Button,{onClick:r,color:"red",children:"Löschen"})]})]})}function el({id:e,...t}){const{deleteEntry:r}=Re(),n={bg:"transparent",size:"sm",c:"gray"},i=v.useProps("ActionIcon",n,t),[o,a]=T.useState(!1),s=()=>{a(!1)},l=async()=>{r(e),a(!1)};return d.jsxs(d.Fragment,{children:[d.jsx(v.Tooltip,{label:"Delete",children:d.jsx(v.ActionIcon,{bg:i.bg,size:i.size,c:i.c,onClick:()=>{a(!0)},children:d.jsx(Vs,{})})}),d.jsx(Ih,{opened:o,onClose:s,handleAccept:l,handleReject:s})]})}function tl({id:e,selected:t}){const{info:r}=Re();return d.jsxs(v.Flex,{style:{gap:4,whiteSpace:"nowrap"},children:[r.permissions.includes("can_get")?d.jsx(kh,{id:e}):null,r.permissions.includes("can_put")?d.jsx(Qs,{id:e}):null,r.permissions.includes("can_delete")?d.jsx(el,{id:e}):null]})}var Ao={},Po={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Doctype=e.CDATA=e.Tag=e.Style=e.Script=e.Comment=e.Directive=e.Text=e.Root=e.isTag=e.ElementType=void 0;var t;(function(n){n.Root="root",n.Text="text",n.Directive="directive",n.Comment="comment",n.Script="script",n.Style="style",n.Tag="tag",n.CDATA="cdata",n.Doctype="doctype"})(t=e.ElementType||(e.ElementType={}));function r(n){return n.type===t.Tag||n.type===t.Script||n.type===t.Style}e.isTag=r,e.Root=t.Root,e.Text=t.Text,e.Directive=t.Directive,e.Comment=t.Comment,e.Script=t.Script,e.Style=t.Style,e.Tag=t.Tag,e.CDATA=t.CDATA,e.Doctype=t.Doctype})(Po);var te={},Ft=Ie&&Ie.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),Ur=Ie&&Ie.__assign||function(){return Ur=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Ur.apply(this,arguments)};Object.defineProperty(te,"__esModule",{value:!0}),te.cloneNode=te.hasChildren=te.isDocument=te.isDirective=te.isComment=te.isText=te.isCDATA=te.isTag=te.Element=te.Document=te.CDATA=te.NodeWithChildren=te.ProcessingInstruction=te.Comment=te.Text=te.DataNode=te.Node=void 0;var Xe=Po,ko=function(){function e(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(e.prototype,"parentNode",{get:function(){return this.parent},set:function(t){this.parent=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){return this.prev},set:function(t){this.prev=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){return this.next},set:function(t){this.next=t},enumerable:!1,configurable:!0}),e.prototype.cloneNode=function(t){return t===void 0&&(t=!1),jo(this,t)},e}();te.Node=ko;var Pn=function(e){Ft(t,e);function t(r){var n=e.call(this)||this;return n.data=r,n}return Object.defineProperty(t.prototype,"nodeValue",{get:function(){return this.data},set:function(r){this.data=r},enumerable:!1,configurable:!0}),t}(ko);te.DataNode=Pn;var rl=function(e){Ft(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=Xe.ElementType.Text,r}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),t}(Pn);te.Text=rl;var nl=function(e){Ft(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=Xe.ElementType.Comment,r}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),t}(Pn);te.Comment=nl;var il=function(e){Ft(t,e);function t(r,n){var i=e.call(this,n)||this;return i.name=r,i.type=Xe.ElementType.Directive,i}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),t}(Pn);te.ProcessingInstruction=il;var kn=function(e){Ft(t,e);function t(r){var n=e.call(this)||this;return n.children=r,n}return Object.defineProperty(t.prototype,"firstChild",{get:function(){var r;return(r=this.children[0])!==null&&r!==void 0?r:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(r){this.children=r},enumerable:!1,configurable:!0}),t}(ko);te.NodeWithChildren=kn;var ol=function(e){Ft(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=Xe.ElementType.CDATA,r}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),t}(kn);te.CDATA=ol;var al=function(e){Ft(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=Xe.ElementType.Root,r}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),t}(kn);te.Document=al;var sl=function(e){Ft(t,e);function t(r,n,i,o){i===void 0&&(i=[]),o===void 0&&(o=r==="script"?Xe.ElementType.Script:r==="style"?Xe.ElementType.Style:Xe.ElementType.Tag);var a=e.call(this,i)||this;return a.name=r,a.attribs=n,a.type=o,a}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(r){this.name=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var r=this;return Object.keys(this.attribs).map(function(n){var i,o;return{name:n,value:r.attribs[n],namespace:(i=r["x-attribsNamespace"])===null||i===void 0?void 0:i[n],prefix:(o=r["x-attribsPrefix"])===null||o===void 0?void 0:o[n]}})},enumerable:!1,configurable:!0}),t}(kn);te.Element=sl;function ll(e){return(0,Xe.isTag)(e)}te.isTag=ll;function ul(e){return e.type===Xe.ElementType.CDATA}te.isCDATA=ul;function cl(e){return e.type===Xe.ElementType.Text}te.isText=cl;function fl(e){return e.type===Xe.ElementType.Comment}te.isComment=fl;function dl(e){return e.type===Xe.ElementType.Directive}te.isDirective=dl;function pl(e){return e.type===Xe.ElementType.Root}te.isDocument=pl;function $h(e){return Object.prototype.hasOwnProperty.call(e,"children")}te.hasChildren=$h;function jo(e,t){t===void 0&&(t=!1);var r;if(cl(e))r=new rl(e.data);else if(fl(e))r=new nl(e.data);else if(ll(e)){var n=t?Io(e.children):[],i=new sl(e.name,Ur({},e.attribs),n);n.forEach(function(l){return l.parent=i}),e.namespace!=null&&(i.namespace=e.namespace),e["x-attribsNamespace"]&&(i["x-attribsNamespace"]=Ur({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(i["x-attribsPrefix"]=Ur({},e["x-attribsPrefix"])),r=i}else if(ul(e)){var n=t?Io(e.children):[],o=new ol(n);n.forEach(function(u){return u.parent=o}),r=o}else if(pl(e)){var n=t?Io(e.children):[],a=new al(n);n.forEach(function(u){return u.parent=a}),e["x-mode"]&&(a["x-mode"]=e["x-mode"]),r=a}else if(dl(e)){var s=new il(e.name,e.data);e["x-name"]!=null&&(s["x-name"]=e["x-name"],s["x-publicId"]=e["x-publicId"],s["x-systemId"]=e["x-systemId"]),r=s}else throw new Error("Not implemented yet: ".concat(e.type));return r.startIndex=e.startIndex,r.endIndex=e.endIndex,e.sourceCodeLocation!=null&&(r.sourceCodeLocation=e.sourceCodeLocation),r}te.cloneNode=jo;function Io(e){for(var t=e.map(function(n){return jo(n,!0)}),r=1;r<t.length;r++)t[r].prev=t[r-1],t[r-1].next=t[r];return t}(function(e){var t=Ie&&Ie.__createBinding||(Object.create?function(s,l,u,f){f===void 0&&(f=u);var c=Object.getOwnPropertyDescriptor(l,u);(!c||("get"in c?!l.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return l[u]}}),Object.defineProperty(s,f,c)}:function(s,l,u,f){f===void 0&&(f=u),s[f]=l[u]}),r=Ie&&Ie.__exportStar||function(s,l){for(var u in s)u!=="default"&&!Object.prototype.hasOwnProperty.call(l,u)&&t(l,s,u)};Object.defineProperty(e,"__esModule",{value:!0}),e.DomHandler=void 0;var n=Po,i=te;r(te,e);var o={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},a=function(){function s(l,u,f){this.dom=[],this.root=new i.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof u=="function"&&(f=u,u=o),typeof l=="object"&&(u=l,l=void 0),this.callback=l??null,this.options=u??o,this.elementCB=f??null}return s.prototype.onparserinit=function(l){this.parser=l},s.prototype.onreset=function(){this.dom=[],this.root=new i.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},s.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},s.prototype.onerror=function(l){this.handleCallback(l)},s.prototype.onclosetag=function(){this.lastNode=null;var l=this.tagStack.pop();this.options.withEndIndices&&(l.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(l)},s.prototype.onopentag=function(l,u){var f=this.options.xmlMode?n.ElementType.Tag:void 0,c=new i.Element(l,u,void 0,f);this.addNode(c),this.tagStack.push(c)},s.prototype.ontext=function(l){var u=this.lastNode;if(u&&u.type===n.ElementType.Text)u.data+=l,this.options.withEndIndices&&(u.endIndex=this.parser.endIndex);else{var f=new i.Text(l);this.addNode(f),this.lastNode=f}},s.prototype.oncomment=function(l){if(this.lastNode&&this.lastNode.type===n.ElementType.Comment){this.lastNode.data+=l;return}var u=new i.Comment(l);this.addNode(u),this.lastNode=u},s.prototype.oncommentend=function(){this.lastNode=null},s.prototype.oncdatastart=function(){var l=new i.Text(""),u=new i.CDATA([l]);this.addNode(u),l.parent=u,this.lastNode=l},s.prototype.oncdataend=function(){this.lastNode=null},s.prototype.onprocessinginstruction=function(l,u){var f=new i.ProcessingInstruction(l,u);this.addNode(f)},s.prototype.handleCallback=function(l){if(typeof this.callback=="function")this.callback(l,this.dom);else if(l)throw l},s.prototype.addNode=function(l){var u=this.tagStack[this.tagStack.length-1],f=u.children[u.children.length-1];this.options.withStartIndices&&(l.startIndex=this.parser.startIndex),this.options.withEndIndices&&(l.endIndex=this.parser.endIndex),u.children.push(l),f&&(l.prev=f,f.next=l),l.parent=u,this.lastNode=null},s}();e.DomHandler=a,e.default=a})(Ao);var $o={},Ro={};Object.defineProperty(Ro,"__esModule",{value:!0});var hl="html",ml="head",jn="body",Rh=/<([a-zA-Z]+[0-9]?)/,gl=/<head[^]*>/i,yl=/<body[^]*>/i,In=function(e,t){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},Do=function(e,t){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")},vl=typeof window=="object"&&window.DOMParser;if(typeof vl=="function"){var Dh=new vl,Mh="text/html";Do=function(e,t){return t&&(e="<".concat(t,">").concat(e,"</").concat(t,">")),Dh.parseFromString(e,Mh)},In=Do}if(typeof document=="object"&&document.implementation){var $n=document.implementation.createHTMLDocument();In=function(e,t){if(t){var r=$n.documentElement.querySelector(t);return r&&(r.innerHTML=e),$n}return $n.documentElement.innerHTML=e,$n}}var Rn=typeof document=="object"&&document.createElement("template"),Mo;Rn&&Rn.content&&(Mo=function(e){return Rn.innerHTML=e,Rn.content.childNodes});function Nh(e){var t,r,n=e.match(Rh),i=n&&n[1]?n[1].toLowerCase():"";switch(i){case hl:{var o=Do(e);if(!gl.test(e)){var a=o.querySelector(ml);(t=a==null?void 0:a.parentNode)===null||t===void 0||t.removeChild(a)}if(!yl.test(e)){var a=o.querySelector(jn);(r=a==null?void 0:a.parentNode)===null||r===void 0||r.removeChild(a)}return o.querySelectorAll(hl)}case ml:case jn:{var s=In(e).querySelectorAll(i);return yl.test(e)&&gl.test(e)?s[0].parentNode.childNodes:s}default:{if(Mo)return Mo(e);var a=In(e,jn).querySelector(jn);return a.childNodes}}}Ro.default=Nh;var ur={},bl={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CASE_SENSITIVE_TAG_NAMES_MAP=e.CASE_SENSITIVE_TAG_NAMES=void 0,e.CASE_SENSITIVE_TAG_NAMES=["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"],e.CASE_SENSITIVE_TAG_NAMES_MAP=e.CASE_SENSITIVE_TAG_NAMES.reduce(function(t,r){return t[r.toLowerCase()]=r,t},{})})(bl),Object.defineProperty(ur,"__esModule",{value:!0}),ur.formatDOM=ur.formatAttributes=void 0;var Dn=Ao,Fh=bl;function Lh(e){return Fh.CASE_SENSITIVE_TAG_NAMES_MAP[e]}function xl(e){for(var t={},r=0,n=e.length;r<n;r++){var i=e[r];t[i.name]=i.value}return t}ur.formatAttributes=xl;function zh(e){e=e.toLowerCase();var t=Lh(e);return t||e}function _l(e,t,r){t===void 0&&(t=null);for(var n=[],i,o=0,a=e.length;o<a;o++){var s=e[o];switch(s.nodeType){case 1:{var l=zh(s.nodeName);i=new Dn.Element(l,xl(s.attributes)),i.children=_l(l==="template"?s.content.childNodes:s.childNodes,i);break}case 3:i=new Dn.Text(s.nodeValue);break;case 8:i=new Dn.Comment(s.nodeValue);break;default:continue}var u=n[o-1]||null;u&&(u.next=i),i.parent=t,i.prev=u,i.next=null,n.push(i)}return r&&(i=new Dn.ProcessingInstruction(r.substring(0,r.indexOf(" ")).toLowerCase(),r),i.next=n[0]||null,i.parent=t,n.unshift(i),n[1]&&(n[1].prev=n[0])),n}ur.formatDOM=_l;var Uh=Ie&&Ie.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty($o,"__esModule",{value:!0});var Vh=Uh(Ro),Bh=ur,Wh=/<(![a-zA-Z\s]+)>/;function Hh(e){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];var t=e.match(Wh),r=t?t[1]:void 0;return(0,Bh.formatDOM)((0,Vh.default)(e),null,r)}$o.default=Hh;var ht={},Mn={},Gh=0;Mn.SAME=Gh;var qh=1;Mn.CAMELCASE=qh,Mn.possibleStandardNames={accept:0,acceptCharset:1,"accept-charset":"acceptCharset",accessKey:1,action:0,allowFullScreen:1,alt:0,as:0,async:0,autoCapitalize:1,autoComplete:1,autoCorrect:1,autoFocus:1,autoPlay:1,autoSave:1,capture:0,cellPadding:1,cellSpacing:1,challenge:0,charSet:1,checked:0,children:0,cite:0,class:"className",classID:1,className:1,cols:0,colSpan:1,content:0,contentEditable:1,contextMenu:1,controls:0,controlsList:1,coords:0,crossOrigin:1,dangerouslySetInnerHTML:1,data:0,dateTime:1,default:0,defaultChecked:1,defaultValue:1,defer:0,dir:0,disabled:0,disablePictureInPicture:1,disableRemotePlayback:1,download:0,draggable:0,encType:1,enterKeyHint:1,for:"htmlFor",form:0,formMethod:1,formAction:1,formEncType:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:0,height:0,hidden:0,high:0,href:0,hrefLang:1,htmlFor:1,httpEquiv:1,"http-equiv":"httpEquiv",icon:0,id:0,innerHTML:1,inputMode:1,integrity:0,is:0,itemID:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,keyParams:1,keyType:1,kind:0,label:0,lang:0,list:0,loop:0,low:0,manifest:0,marginWidth:1,marginHeight:1,max:0,maxLength:1,media:0,mediaGroup:1,method:0,min:0,minLength:1,multiple:0,muted:0,name:0,noModule:1,nonce:0,noValidate:1,open:0,optimum:0,pattern:0,placeholder:0,playsInline:1,poster:0,preload:0,profile:0,radioGroup:1,readOnly:1,referrerPolicy:1,rel:0,required:0,reversed:0,role:0,rows:0,rowSpan:1,sandbox:0,scope:0,scoped:0,scrolling:0,seamless:0,selected:0,shape:0,size:0,sizes:0,span:0,spellCheck:1,src:0,srcDoc:1,srcLang:1,srcSet:1,start:0,step:0,style:0,summary:0,tabIndex:1,target:0,title:0,type:0,useMap:1,value:0,width:0,wmode:0,wrap:0,about:0,accentHeight:1,"accent-height":"accentHeight",accumulate:0,additive:0,alignmentBaseline:1,"alignment-baseline":"alignmentBaseline",allowReorder:1,alphabetic:0,amplitude:0,arabicForm:1,"arabic-form":"arabicForm",ascent:0,attributeName:1,attributeType:1,autoReverse:1,azimuth:0,baseFrequency:1,baselineShift:1,"baseline-shift":"baselineShift",baseProfile:1,bbox:0,begin:0,bias:0,by:0,calcMode:1,capHeight:1,"cap-height":"capHeight",clip:0,clipPath:1,"clip-path":"clipPath",clipPathUnits:1,clipRule:1,"clip-rule":"clipRule",color:0,colorInterpolation:1,"color-interpolation":"colorInterpolation",colorInterpolationFilters:1,"color-interpolation-filters":"colorInterpolationFilters",colorProfile:1,"color-profile":"colorProfile",colorRendering:1,"color-rendering":"colorRendering",contentScriptType:1,contentStyleType:1,cursor:0,cx:0,cy:0,d:0,datatype:0,decelerate:0,descent:0,diffuseConstant:1,direction:0,display:0,divisor:0,dominantBaseline:1,"dominant-baseline":"dominantBaseline",dur:0,dx:0,dy:0,edgeMode:1,elevation:0,enableBackground:1,"enable-background":"enableBackground",end:0,exponent:0,externalResourcesRequired:1,fill:0,fillOpacity:1,"fill-opacity":"fillOpacity",fillRule:1,"fill-rule":"fillRule",filter:0,filterRes:1,filterUnits:1,floodOpacity:1,"flood-opacity":"floodOpacity",floodColor:1,"flood-color":"floodColor",focusable:0,fontFamily:1,"font-family":"fontFamily",fontSize:1,"font-size":"fontSize",fontSizeAdjust:1,"font-size-adjust":"fontSizeAdjust",fontStretch:1,"font-stretch":"fontStretch",fontStyle:1,"font-style":"fontStyle",fontVariant:1,"font-variant":"fontVariant",fontWeight:1,"font-weight":"fontWeight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:1,"glyph-name":"glyphName",glyphOrientationHorizontal:1,"glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphOrientationVertical:1,"glyph-orientation-vertical":"glyphOrientationVertical",glyphRef:1,gradientTransform:1,gradientUnits:1,hanging:0,horizAdvX:1,"horiz-adv-x":"horizAdvX",horizOriginX:1,"horiz-origin-x":"horizOriginX",ideographic:0,imageRendering:1,"image-rendering":"imageRendering",in2:0,in:0,inlist:0,intercept:0,k1:0,k2:0,k3:0,k4:0,k:0,kernelMatrix:1,kernelUnitLength:1,kerning:0,keyPoints:1,keySplines:1,keyTimes:1,lengthAdjust:1,letterSpacing:1,"letter-spacing":"letterSpacing",lightingColor:1,"lighting-color":"lightingColor",limitingConeAngle:1,local:0,markerEnd:1,"marker-end":"markerEnd",markerHeight:1,markerMid:1,"marker-mid":"markerMid",markerStart:1,"marker-start":"markerStart",markerUnits:1,markerWidth:1,mask:0,maskContentUnits:1,maskUnits:1,mathematical:0,mode:0,numOctaves:1,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:1,"overline-position":"overlinePosition",overlineThickness:1,"overline-thickness":"overlineThickness",paintOrder:1,"paint-order":"paintOrder",panose1:0,"panose-1":"panose1",pathLength:1,patternContentUnits:1,patternTransform:1,patternUnits:1,pointerEvents:1,"pointer-events":"pointerEvents",points:0,pointsAtX:1,pointsAtY:1,pointsAtZ:1,prefix:0,preserveAlpha:1,preserveAspectRatio:1,primitiveUnits:1,property:0,r:0,radius:0,refX:1,refY:1,renderingIntent:1,"rendering-intent":"renderingIntent",repeatCount:1,repeatDur:1,requiredExtensions:1,requiredFeatures:1,resource:0,restart:0,result:0,results:0,rotate:0,rx:0,ry:0,scale:0,security:0,seed:0,shapeRendering:1,"shape-rendering":"shapeRendering",slope:0,spacing:0,specularConstant:1,specularExponent:1,speed:0,spreadMethod:1,startOffset:1,stdDeviation:1,stemh:0,stemv:0,stitchTiles:1,stopColor:1,"stop-color":"stopColor",stopOpacity:1,"stop-opacity":"stopOpacity",strikethroughPosition:1,"strikethrough-position":"strikethroughPosition",strikethroughThickness:1,"strikethrough-thickness":"strikethroughThickness",string:0,stroke:0,strokeDasharray:1,"stroke-dasharray":"strokeDasharray",strokeDashoffset:1,"stroke-dashoffset":"strokeDashoffset",strokeLinecap:1,"stroke-linecap":"strokeLinecap",strokeLinejoin:1,"stroke-linejoin":"strokeLinejoin",strokeMiterlimit:1,"stroke-miterlimit":"strokeMiterlimit",strokeWidth:1,"stroke-width":"strokeWidth",strokeOpacity:1,"stroke-opacity":"strokeOpacity",suppressContentEditableWarning:1,suppressHydrationWarning:1,surfaceScale:1,systemLanguage:1,tableValues:1,targetX:1,targetY:1,textAnchor:1,"text-anchor":"textAnchor",textDecoration:1,"text-decoration":"textDecoration",textLength:1,textRendering:1,"text-rendering":"textRendering",to:0,transform:0,typeof:0,u1:0,u2:0,underlinePosition:1,"underline-position":"underlinePosition",underlineThickness:1,"underline-thickness":"underlineThickness",unicode:0,unicodeBidi:1,"unicode-bidi":"unicodeBidi",unicodeRange:1,"unicode-range":"unicodeRange",unitsPerEm:1,"units-per-em":"unitsPerEm",unselectable:0,vAlphabetic:1,"v-alphabetic":"vAlphabetic",values:0,vectorEffect:1,"vector-effect":"vectorEffect",version:0,vertAdvY:1,"vert-adv-y":"vertAdvY",vertOriginX:1,"vert-origin-x":"vertOriginX",vertOriginY:1,"vert-origin-y":"vertOriginY",vHanging:1,"v-hanging":"vHanging",vIdeographic:1,"v-ideographic":"vIdeographic",viewBox:1,viewTarget:1,visibility:0,vMathematical:1,"v-mathematical":"vMathematical",vocab:0,widths:0,wordSpacing:1,"word-spacing":"wordSpacing",writingMode:1,"writing-mode":"writingMode",x1:0,x2:0,x:0,xChannelSelector:1,xHeight:1,"x-height":"xHeight",xlinkActuate:1,"xlink:actuate":"xlinkActuate",xlinkArcrole:1,"xlink:arcrole":"xlinkArcrole",xlinkHref:1,"xlink:href":"xlinkHref",xlinkRole:1,"xlink:role":"xlinkRole",xlinkShow:1,"xlink:show":"xlinkShow",xlinkTitle:1,"xlink:title":"xlinkTitle",xlinkType:1,"xlink:type":"xlinkType",xmlBase:1,"xml:base":"xmlBase",xmlLang:1,"xml:lang":"xmlLang",xmlns:0,"xml:space":"xmlSpace",xmlnsXlink:1,"xmlns:xlink":"xmlnsXlink",xmlSpace:1,y1:0,y2:0,y:0,yChannelSelector:1,z:0,zoomAndPan:1};const Tl=0,Lt=1,Nn=2,Fn=3,No=4,El=5,Sl=6;function Yh(e){return De.hasOwnProperty(e)?De[e]:null}function We(e,t,r,n,i,o,a){this.acceptsBooleans=t===Nn||t===Fn||t===No,this.attributeName=n,this.attributeNamespace=i,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}const De={};["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"].forEach(e=>{De[e]=new We(e,Tl,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(([e,t])=>{De[e]=new We(e,Lt,!1,t,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(e=>{De[e]=new We(e,Nn,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(e=>{De[e]=new We(e,Nn,!1,e,null,!1,!1)}),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach(e=>{De[e]=new We(e,Fn,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(e=>{De[e]=new We(e,Fn,!0,e,null,!1,!1)}),["capture","download"].forEach(e=>{De[e]=new We(e,No,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(e=>{De[e]=new We(e,Sl,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(e=>{De[e]=new We(e,El,!1,e.toLowerCase(),null,!1,!1)});const Fo=/[\-\:]([a-z])/g,Lo=e=>e[1].toUpperCase();["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach(e=>{const t=e.replace(Fo,Lo);De[t]=new We(t,Lt,!1,e,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(e=>{const t=e.replace(Fo,Lo);De[t]=new We(t,Lt,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(e=>{const t=e.replace(Fo,Lo);De[t]=new We(t,Lt,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(e=>{De[e]=new We(e,Lt,!1,e.toLowerCase(),null,!1,!1)});const Kh="xlinkHref";De[Kh]=new We("xlinkHref",Lt,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(e=>{De[e]=new We(e,Lt,!1,e.toLowerCase(),null,!0,!0)});const{CAMELCASE:Xh,SAME:Jh,possibleStandardNames:wl}=Mn,Zh=":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",Qh=RegExp.prototype.test.bind(new RegExp("^(data|aria)-["+Zh+"]*$")),em=Object.keys(wl).reduce((e,t)=>{const r=wl[t];return r===Jh?e[t]=t:r===Xh?e[t.toLowerCase()]=t:e[t]=r,e},{});ht.BOOLEAN=Fn,ht.BOOLEANISH_STRING=Nn,ht.NUMERIC=El,ht.OVERLOADED_BOOLEAN=No,ht.POSITIVE_NUMERIC=Sl,ht.RESERVED=Tl,ht.STRING=Lt,ht.getPropertyInfo=Yh,ht.isCustomAttribute=Qh,ht.possibleStandardNames=em;var zo={},Uo={},Cl=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,tm=/\n/g,rm=/^\s*/,nm=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,im=/^:\s*/,om=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,am=/^[;\s]*/,sm=/^\s+|\s+$/g,lm=`
55
+ `,Ol="/",Al="*",Xt="",um="comment",cm="declaration",fm=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var r=1,n=1;function i(g){var h=g.match(tm);h&&(r+=h.length);var x=g.lastIndexOf(lm);n=~x?g.length-x:n+g.length}function o(){var g={line:r,column:n};return function(h){return h.position=new a(g),u(),h}}function a(g){this.start=g,this.end={line:r,column:n},this.source=t.source}a.prototype.content=e;function s(g){var h=new Error(t.source+":"+r+":"+n+": "+g);if(h.reason=g,h.filename=t.source,h.line=r,h.column=n,h.source=e,!t.silent)throw h}function l(g){var h=g.exec(e);if(h){var x=h[0];return i(x),e=e.slice(x.length),h}}function u(){l(rm)}function f(g){var h;for(g=g||[];h=c();)h!==!1&&g.push(h);return g}function c(){var g=o();if(!(Ol!=e.charAt(0)||Al!=e.charAt(1))){for(var h=2;Xt!=e.charAt(h)&&(Al!=e.charAt(h)||Ol!=e.charAt(h+1));)++h;if(h+=2,Xt===e.charAt(h-1))return s("End of comment missing");var x=e.slice(2,h-2);return n+=2,i(x),e=e.slice(h),n+=2,g({type:um,comment:x})}}function p(){var g=o(),h=l(nm);if(h){if(c(),!l(im))return s("property missing ':'");var x=l(om),w=g({type:cm,property:Pl(h[0].replace(Cl,Xt)),value:x?Pl(x[0].replace(Cl,Xt)):Xt});return l(am),w}}function y(){var g=[];f(g);for(var h;h=p();)h!==!1&&(g.push(h),f(g));return g}return u(),y()};function Pl(e){return e?e.replace(sm,Xt):Xt}var dm=Ie&&Ie.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Uo,"__esModule",{value:!0});var pm=dm(fm);function hm(e,t){var r=null;if(!e||typeof e!="string")return r;var n=(0,pm.default)(e),i=typeof t=="function";return n.forEach(function(o){if(o.type==="declaration"){var a=o.property,s=o.value;i?t(a,s,o):s&&(r=r||{},r[a]=s)}}),r}Uo.default=hm;var Ln={};Object.defineProperty(Ln,"__esModule",{value:!0}),Ln.camelCase=void 0;var mm=/^--[a-zA-Z0-9-]+$/,gm=/-([a-z])/g,ym=/^[^-]+$/,vm=/^-(webkit|moz|ms|o|khtml)-/,bm=/^-(ms)-/,xm=function(e){return!e||ym.test(e)||mm.test(e)},_m=function(e,t){return t.toUpperCase()},kl=function(e,t){return"".concat(t,"-")},Tm=function(e,t){return t===void 0&&(t={}),xm(e)?e:(e=e.toLowerCase(),t.reactCompat?e=e.replace(bm,kl):e=e.replace(vm,kl),e.replace(gm,_m))};Ln.camelCase=Tm;var Em=Ie&&Ie.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(zo,"__esModule",{value:!0});var Sm=Em(Uo),wm=Ln;function Cm(e,t){var r={};return!e||typeof e!="string"||(0,Sm.default)(e,function(n,i){n&&i&&(r[(0,wm.camelCase)(n,t)]=i)}),r}zo.default=Cm;var Om=T,Am=zo.default,Pm=new Set(["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"]);function km(e,t){return e.indexOf("-")===-1?t&&typeof t.is=="string":!Pm.has(e)}var jm={reactCompat:!0};function Im(e,t){if(e!=null)try{t.style=Am(e,jm)}catch{t.style={}}}var $m=Om.version.split(".")[0]>=16,jl=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);function Rm(e){return!jl.has(e.name)}function Dm(e){return e}var Il={PRESERVE_CUSTOM_ATTRIBUTES:$m,ELEMENTS_WITH_NO_TEXT_CHILDREN:jl,isCustomComponent:km,setStyleProp:Im,canTextBeChildOfNode:Rm,returnFirstArg:Dm},Vr=ht,$l=Il,Mm=["checked","value"],Nm=["input","select","textarea"],Fm={reset:!0,submit:!0},Rl=function(t,r){t=t||{};var n,i,o,a,s,l={},u=t.type&&Fm[t.type];for(n in t){if(o=t[n],Vr.isCustomAttribute(n)){l[n]=o;continue}if(i=n.toLowerCase(),a=Dl(i),a){switch(s=Vr.getPropertyInfo(a),Mm.indexOf(a)!==-1&&Nm.indexOf(r)!==-1&&!u&&(a=Dl("default"+i)),l[a]=o,s&&s.type){case Vr.BOOLEAN:l[a]=!0;break;case Vr.OVERLOADED_BOOLEAN:o===""&&(l[a]=!0);break}continue}$l.PRESERVE_CUSTOM_ATTRIBUTES&&(l[n]=o)}return $l.setStyleProp(t.style,l),l};function Dl(e){return Vr.possibleStandardNames[e]}var Lm=T,zm=Rl,Br=Il,Um=Br.setStyleProp,Vm=Br.canTextBeChildOfNode;function Ml(e,t){t=t||{};for(var r=t.library||Lm,n=r.cloneElement,i=r.createElement,o=r.isValidElement,a=[],s,l,u=typeof t.replace=="function",f=t.transform||Br.returnFirstArg,c,p,y,g=t.trim,h=0,x=e.length;h<x;h++){if(s=e[h],u&&(c=t.replace(s),o(c))){x>1&&(c=n(c,{key:c.key||h})),a.push(f(c,s,h));continue}if(s.type==="text"){if(l=!s.data.trim().length,l&&s.parent&&!Vm(s.parent)||g&&l)continue;a.push(f(s.data,s,h));continue}switch(p=s.attribs,Bm(s)?Um(p.style,p):p&&(p=zm(p,s.name)),y=null,s.type){case"script":case"style":s.children[0]&&(p.dangerouslySetInnerHTML={__html:s.children[0].data});break;case"tag":s.name==="textarea"&&s.children[0]?p.defaultValue=s.children[0].data:s.children&&s.children.length&&(y=Ml(s.children,t));break;default:continue}x>1&&(p.key=h),a.push(f(i(s.name,p,y),s,h))}return a.length===1?a[0]:a}function Bm(e){return Br.PRESERVE_CUSTOM_ATTRIBUTES&&e.type==="tag"&&Br.isCustomComponent(e.name,e.attribs)}var Wm=Ml,zn=Ao,cr=$o.default,Hm=Rl,Nl=Wm;cr=typeof cr.default=="function"?cr.default:cr;var Gm={lowerCaseAttributeNames:!1};function Tt(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");return e===""?[]:(t=t||{},Nl(cr(e,t.htmlparser2||Gm),t))}Tt.domToReact=Nl,Tt.htmlToDOM=cr,Tt.attributesToProps=Hm,Tt.Comment=zn.Comment,Tt.Element=zn.Element,Tt.ProcessingInstruction=zn.ProcessingInstruction,Tt.Text=zn.Text;var qm=Tt;Tt.default=Tt;const Jt=Ot(qm);Jt.domToReact,Jt.htmlToDOM,Jt.attributesToProps,Jt.Comment,Jt.Element,Jt.ProcessingInstruction,Jt.Text;/*! @license DOMPurify 3.1.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.1.6/LICENSE */const{entries:Fl,setPrototypeOf:Ll,isFrozen:Ym,getPrototypeOf:Km,getOwnPropertyDescriptor:Xm}=Object;let{freeze:He,seal:st,create:zl}=Object,{apply:Vo,construct:Bo}=typeof Reflect<"u"&&Reflect;He||(He=function(t){return t}),st||(st=function(t){return t}),Vo||(Vo=function(t,r,n){return t.apply(r,n)}),Bo||(Bo=function(t,r){return new t(...r)});const Un=rt(Array.prototype.forEach),Ul=rt(Array.prototype.pop),Wr=rt(Array.prototype.push),Vn=rt(String.prototype.toLowerCase),Wo=rt(String.prototype.toString),Vl=rt(String.prototype.match),Hr=rt(String.prototype.replace),Jm=rt(String.prototype.indexOf),Zm=rt(String.prototype.trim),mt=rt(Object.prototype.hasOwnProperty),Ge=rt(RegExp.prototype.test),Gr=Qm(TypeError);function rt(e){return function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return Vo(e,t,n)}}function Qm(e){return function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Bo(e,r)}}function re(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Vn;Ll&&Ll(e,null);let n=t.length;for(;n--;){let i=t[n];if(typeof i=="string"){const o=r(i);o!==i&&(Ym(t)||(t[n]=o),i=o)}e[i]=!0}return e}function eg(e){for(let t=0;t<e.length;t++)mt(e,t)||(e[t]=null);return e}function Zt(e){const t=zl(null);for(const[r,n]of Fl(e))mt(e,r)&&(Array.isArray(n)?t[r]=eg(n):n&&typeof n=="object"&&n.constructor===Object?t[r]=Zt(n):t[r]=n);return t}function qr(e,t){for(;e!==null;){const n=Xm(e,t);if(n){if(n.get)return rt(n.get);if(typeof n.value=="function")return rt(n.value)}e=Km(e)}function r(){return null}return r}const Bl=He(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Ho=He(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Go=He(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),tg=He(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),qo=He(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),rg=He(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Wl=He(["#text"]),Hl=He(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),Yo=He(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Gl=He(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Bn=He(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),ng=st(/\{\{[\w\W]*|[\w\W]*\}\}/gm),ig=st(/<%[\w\W]*|[\w\W]*%>/gm),og=st(/\${[\w\W]*}/gm),ag=st(/^data-[\-\w.\u00B7-\uFFFF]/),sg=st(/^aria-[\-\w]+$/),ql=st(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),lg=st(/^(?:\w+script|data):/i),ug=st(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Yl=st(/^html$/i),cg=st(/^[a-z][.\w]*(-[.\w]+)+$/i);var Kl=Object.freeze({__proto__:null,MUSTACHE_EXPR:ng,ERB_EXPR:ig,TMPLIT_EXPR:og,DATA_ATTR:ag,ARIA_ATTR:sg,IS_ALLOWED_URI:ql,IS_SCRIPT_OR_DATA:lg,ATTR_WHITESPACE:ug,DOCTYPE_NAME:Yl,CUSTOM_ELEMENT:cg});const Yr={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},fg=function(){return typeof window>"u"?null:window},dg=function(t,r){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let n=null;const i="data-tt-policy-suffix";r&&r.hasAttribute(i)&&(n=r.getAttribute(i));const o="dompurify"+(n?"#"+n:"");try{return t.createPolicy(o,{createHTML(a){return a},createScriptURL(a){return a}})}catch{return console.warn("TrustedTypes policy "+o+" could not be created."),null}};function Xl(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:fg();const t=O=>Xl(O);if(t.version="3.1.6",t.removed=[],!e||!e.document||e.document.nodeType!==Yr.document)return t.isSupported=!1,t;let{document:r}=e;const n=r,i=n.currentScript,{DocumentFragment:o,HTMLTemplateElement:a,Node:s,Element:l,NodeFilter:u,NamedNodeMap:f=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:c,DOMParser:p,trustedTypes:y}=e,g=l.prototype,h=qr(g,"cloneNode"),x=qr(g,"remove"),w=qr(g,"nextSibling"),k=qr(g,"childNodes"),D=qr(g,"parentNode");if(typeof a=="function"){const O=r.createElement("template");O.content&&O.content.ownerDocument&&(r=O.content.ownerDocument)}let N,_="";const{implementation:R,createNodeIterator:F,createDocumentFragment:J,getElementsByTagName:ee}=r,{importNode:oe}=n;let z={};t.isSupported=typeof Fl=="function"&&typeof D=="function"&&R&&R.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:le,ERB_EXPR:me,TMPLIT_EXPR:ye,DATA_ATTR:qe,ARIA_ATTR:je,IS_SCRIPT_OR_DATA:Ze,ATTR_WHITESPACE:ot,CUSTOM_ELEMENT:vt}=Kl;let{IS_ALLOWED_URI:C}=Kl,P=null;const Y=re({},[...Bl,...Ho,...Go,...qo,...Wl]);let L=null;const G=re({},[...Hl,...Yo,...Gl,...Bn]);let U=Object.seal(zl(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),B=null,q=null,K=!0,Z=!0,X=!1,Ae=!0,I=!1,$e=!0,M=!1,Ye=!1,Qe=!1,dt=!1,rr=!1,jt=!1,Oi=!0,Ai=!1;const fn="user-content-";let dn=!0,nr=!1,It={},$t=null;const Bt=re({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Pi=null;const pn=re({},["audio","video","img","source","image","track"]);let jr=null;const Ir=re({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),$r="http://www.w3.org/1998/Math/MathML",Rr="http://www.w3.org/2000/svg",bt="http://www.w3.org/1999/xhtml";let Wt=bt,hn=!1,mn=null;const za=re({},[$r,Rr,bt],Wo);let Rt=null;const ki=["application/xhtml+xml","text/html"],Ht="text/html";let we=null,Ct=null;const ji=r.createElement("form"),Ii=function(b){return b instanceof RegExp||b instanceof Function},Dr=function(){let b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Ct&&Ct===b)){if((!b||typeof b!="object")&&(b={}),b=Zt(b),Rt=ki.indexOf(b.PARSER_MEDIA_TYPE)===-1?Ht:b.PARSER_MEDIA_TYPE,we=Rt==="application/xhtml+xml"?Wo:Vn,P=mt(b,"ALLOWED_TAGS")?re({},b.ALLOWED_TAGS,we):Y,L=mt(b,"ALLOWED_ATTR")?re({},b.ALLOWED_ATTR,we):G,mn=mt(b,"ALLOWED_NAMESPACES")?re({},b.ALLOWED_NAMESPACES,Wo):za,jr=mt(b,"ADD_URI_SAFE_ATTR")?re(Zt(Ir),b.ADD_URI_SAFE_ATTR,we):Ir,Pi=mt(b,"ADD_DATA_URI_TAGS")?re(Zt(pn),b.ADD_DATA_URI_TAGS,we):pn,$t=mt(b,"FORBID_CONTENTS")?re({},b.FORBID_CONTENTS,we):Bt,B=mt(b,"FORBID_TAGS")?re({},b.FORBID_TAGS,we):{},q=mt(b,"FORBID_ATTR")?re({},b.FORBID_ATTR,we):{},It=mt(b,"USE_PROFILES")?b.USE_PROFILES:!1,K=b.ALLOW_ARIA_ATTR!==!1,Z=b.ALLOW_DATA_ATTR!==!1,X=b.ALLOW_UNKNOWN_PROTOCOLS||!1,Ae=b.ALLOW_SELF_CLOSE_IN_ATTR!==!1,I=b.SAFE_FOR_TEMPLATES||!1,$e=b.SAFE_FOR_XML!==!1,M=b.WHOLE_DOCUMENT||!1,dt=b.RETURN_DOM||!1,rr=b.RETURN_DOM_FRAGMENT||!1,jt=b.RETURN_TRUSTED_TYPE||!1,Qe=b.FORCE_BODY||!1,Oi=b.SANITIZE_DOM!==!1,Ai=b.SANITIZE_NAMED_PROPS||!1,dn=b.KEEP_CONTENT!==!1,nr=b.IN_PLACE||!1,C=b.ALLOWED_URI_REGEXP||ql,Wt=b.NAMESPACE||bt,U=b.CUSTOM_ELEMENT_HANDLING||{},b.CUSTOM_ELEMENT_HANDLING&&Ii(b.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(U.tagNameCheck=b.CUSTOM_ELEMENT_HANDLING.tagNameCheck),b.CUSTOM_ELEMENT_HANDLING&&Ii(b.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(U.attributeNameCheck=b.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),b.CUSTOM_ELEMENT_HANDLING&&typeof b.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(U.allowCustomizedBuiltInElements=b.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),I&&(Z=!1),rr&&(dt=!0),It&&(P=re({},Wl),L=[],It.html===!0&&(re(P,Bl),re(L,Hl)),It.svg===!0&&(re(P,Ho),re(L,Yo),re(L,Bn)),It.svgFilters===!0&&(re(P,Go),re(L,Yo),re(L,Bn)),It.mathMl===!0&&(re(P,qo),re(L,Gl),re(L,Bn))),b.ADD_TAGS&&(P===Y&&(P=Zt(P)),re(P,b.ADD_TAGS,we)),b.ADD_ATTR&&(L===G&&(L=Zt(L)),re(L,b.ADD_ATTR,we)),b.ADD_URI_SAFE_ATTR&&re(jr,b.ADD_URI_SAFE_ATTR,we),b.FORBID_CONTENTS&&($t===Bt&&($t=Zt($t)),re($t,b.FORBID_CONTENTS,we)),dn&&(P["#text"]=!0),M&&re(P,["html","head","body"]),P.table&&(re(P,["tbody"]),delete B.tbody),b.TRUSTED_TYPES_POLICY){if(typeof b.TRUSTED_TYPES_POLICY.createHTML!="function")throw Gr('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof b.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Gr('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');N=b.TRUSTED_TYPES_POLICY,_=N.createHTML("")}else N===void 0&&(N=dg(y,i)),N!==null&&typeof _=="string"&&(_=N.createHTML(""));He&&He(b),Ct=b}},$i=re({},["mi","mo","mn","ms","mtext"]),gn=re({},["foreignobject","annotation-xml"]),Ri=re({},["title","style","font","a","script"]),Di=re({},[...Ho,...Go,...tg]),Mi=re({},[...qo,...rg]),Ni=function(b){let S=D(b);(!S||!S.tagName)&&(S={namespaceURI:Wt,tagName:"template"});const j=Vn(b.tagName),Q=Vn(S.tagName);return mn[b.namespaceURI]?b.namespaceURI===Rr?S.namespaceURI===bt?j==="svg":S.namespaceURI===$r?j==="svg"&&(Q==="annotation-xml"||$i[Q]):!!Di[j]:b.namespaceURI===$r?S.namespaceURI===bt?j==="math":S.namespaceURI===Rr?j==="math"&&gn[Q]:!!Mi[j]:b.namespaceURI===bt?S.namespaceURI===Rr&&!gn[Q]||S.namespaceURI===$r&&!$i[Q]?!1:!Mi[j]&&(Ri[j]||!Di[j]):!!(Rt==="application/xhtml+xml"&&mn[b.namespaceURI]):!1},at=function(b){Wr(t.removed,{element:b});try{D(b).removeChild(b)}catch{x(b)}},Mr=function(b,S){try{Wr(t.removed,{attribute:S.getAttributeNode(b),from:S})}catch{Wr(t.removed,{attribute:null,from:S})}if(S.removeAttribute(b),b==="is"&&!L[b])if(dt||rr)try{at(S)}catch{}else try{S.setAttribute(b,"")}catch{}},Fi=function(b){let S=null,j=null;if(Qe)b="<remove></remove>"+b;else{const xe=Vl(b,/^[\r\n\t ]+/);j=xe&&xe[0]}Rt==="application/xhtml+xml"&&Wt===bt&&(b='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+b+"</body></html>");const Q=N?N.createHTML(b):b;if(Wt===bt)try{S=new p().parseFromString(Q,Rt)}catch{}if(!S||!S.documentElement){S=R.createDocument(Wt,"template",null);try{S.documentElement.innerHTML=hn?_:Q}catch{}}const Te=S.body||S.documentElement;return b&&j&&Te.insertBefore(r.createTextNode(j),Te.childNodes[0]||null),Wt===bt?ee.call(S,M?"html":"body")[0]:M?S.documentElement:Te},Li=function(b){return F.call(b.ownerDocument||b,b,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},zi=function(b){return b instanceof c&&(typeof b.nodeName!="string"||typeof b.textContent!="string"||typeof b.removeChild!="function"||!(b.attributes instanceof f)||typeof b.removeAttribute!="function"||typeof b.setAttribute!="function"||typeof b.namespaceURI!="string"||typeof b.insertBefore!="function"||typeof b.hasChildNodes!="function")},m=function(b){return typeof s=="function"&&b instanceof s},E=function(b,S,j){z[b]&&Un(z[b],Q=>{Q.call(t,S,j,Ct)})},$=function(b){let S=null;if(E("beforeSanitizeElements",b,null),zi(b))return at(b),!0;const j=we(b.nodeName);if(E("uponSanitizeElement",b,{tagName:j,allowedTags:P}),b.hasChildNodes()&&!m(b.firstElementChild)&&Ge(/<[/\w]/g,b.innerHTML)&&Ge(/<[/\w]/g,b.textContent)||b.nodeType===Yr.progressingInstruction||$e&&b.nodeType===Yr.comment&&Ge(/<[/\w]/g,b.data))return at(b),!0;if(!P[j]||B[j]){if(!B[j]&&ie(j)&&(U.tagNameCheck instanceof RegExp&&Ge(U.tagNameCheck,j)||U.tagNameCheck instanceof Function&&U.tagNameCheck(j)))return!1;if(dn&&!$t[j]){const Q=D(b)||b.parentNode,Te=k(b)||b.childNodes;if(Te&&Q){const xe=Te.length;for(let ge=xe-1;ge>=0;--ge){const et=h(Te[ge],!0);et.__removalCount=(b.__removalCount||0)+1,Q.insertBefore(et,w(b))}}}return at(b),!0}return b instanceof l&&!Ni(b)||(j==="noscript"||j==="noembed"||j==="noframes")&&Ge(/<\/no(script|embed|frames)/i,b.innerHTML)?(at(b),!0):(I&&b.nodeType===Yr.text&&(S=b.textContent,Un([le,me,ye],Q=>{S=Hr(S,Q," ")}),b.textContent!==S&&(Wr(t.removed,{element:b.cloneNode()}),b.textContent=S)),E("afterSanitizeElements",b,null),!1)},W=function(b,S,j){if(Oi&&(S==="id"||S==="name")&&(j in r||j in ji))return!1;if(!(Z&&!q[S]&&Ge(qe,S))){if(!(K&&Ge(je,S))){if(!L[S]||q[S]){if(!(ie(b)&&(U.tagNameCheck instanceof RegExp&&Ge(U.tagNameCheck,b)||U.tagNameCheck instanceof Function&&U.tagNameCheck(b))&&(U.attributeNameCheck instanceof RegExp&&Ge(U.attributeNameCheck,S)||U.attributeNameCheck instanceof Function&&U.attributeNameCheck(S))||S==="is"&&U.allowCustomizedBuiltInElements&&(U.tagNameCheck instanceof RegExp&&Ge(U.tagNameCheck,j)||U.tagNameCheck instanceof Function&&U.tagNameCheck(j))))return!1}else if(!jr[S]){if(!Ge(C,Hr(j,ot,""))){if(!((S==="src"||S==="xlink:href"||S==="href")&&b!=="script"&&Jm(j,"data:")===0&&Pi[b])){if(!(X&&!Ge(Ze,Hr(j,ot,"")))){if(j)return!1}}}}}}return!0},ie=function(b){return b!=="annotation-xml"&&Vl(b,vt)},pe=function(b){E("beforeSanitizeAttributes",b,null);const{attributes:S}=b;if(!S)return;const j={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:L};let Q=S.length;for(;Q--;){const Te=S[Q],{name:xe,namespaceURI:ge,value:et}=Te,ir=we(xe);let Ne=xe==="value"?et:Zm(et);if(j.attrName=ir,j.attrValue=Ne,j.keepAttr=!0,j.forceKeepAttr=void 0,E("uponSanitizeAttribute",b,j),Ne=j.attrValue,$e&&Ge(/((--!?|])>)|<\/(style|title)/i,Ne)){Mr(xe,b);continue}if(j.forceKeepAttr||(Mr(xe,b),!j.keepAttr))continue;if(!Ae&&Ge(/\/>/i,Ne)){Mr(xe,b);continue}I&&Un([le,me,ye],Rd=>{Ne=Hr(Ne,Rd," ")});const $d=we(b.nodeName);if(W($d,ir,Ne)){if(Ai&&(ir==="id"||ir==="name")&&(Mr(xe,b),Ne=fn+Ne),N&&typeof y=="object"&&typeof y.getAttributeType=="function"&&!ge)switch(y.getAttributeType($d,ir)){case"TrustedHTML":{Ne=N.createHTML(Ne);break}case"TrustedScriptURL":{Ne=N.createScriptURL(Ne);break}}try{ge?b.setAttributeNS(ge,xe,Ne):b.setAttribute(xe,Ne),zi(b)?at(b):Ul(t.removed)}catch{}}}E("afterSanitizeAttributes",b,null)},ne=function O(b){let S=null;const j=Li(b);for(E("beforeSanitizeShadowDOM",b,null);S=j.nextNode();)E("uponSanitizeShadowNode",S,null),!$(S)&&(S.content instanceof o&&O(S.content),pe(S));E("afterSanitizeShadowDOM",b,null)};return t.sanitize=function(O){let b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},S=null,j=null,Q=null,Te=null;if(hn=!O,hn&&(O="<!-->"),typeof O!="string"&&!m(O))if(typeof O.toString=="function"){if(O=O.toString(),typeof O!="string")throw Gr("dirty is not a string, aborting")}else throw Gr("toString is not a function");if(!t.isSupported)return O;if(Ye||Dr(b),t.removed=[],typeof O=="string"&&(nr=!1),nr){if(O.nodeName){const et=we(O.nodeName);if(!P[et]||B[et])throw Gr("root node is forbidden and cannot be sanitized in-place")}}else if(O instanceof s)S=Fi("<!---->"),j=S.ownerDocument.importNode(O,!0),j.nodeType===Yr.element&&j.nodeName==="BODY"||j.nodeName==="HTML"?S=j:S.appendChild(j);else{if(!dt&&!I&&!M&&O.indexOf("<")===-1)return N&&jt?N.createHTML(O):O;if(S=Fi(O),!S)return dt?null:jt?_:""}S&&Qe&&at(S.firstChild);const xe=Li(nr?O:S);for(;Q=xe.nextNode();)$(Q)||(Q.content instanceof o&&ne(Q.content),pe(Q));if(nr)return O;if(dt){if(rr)for(Te=J.call(S.ownerDocument);S.firstChild;)Te.appendChild(S.firstChild);else Te=S;return(L.shadowroot||L.shadowrootmode)&&(Te=oe.call(n,Te,!0)),Te}let ge=M?S.outerHTML:S.innerHTML;return M&&P["!doctype"]&&S.ownerDocument&&S.ownerDocument.doctype&&S.ownerDocument.doctype.name&&Ge(Yl,S.ownerDocument.doctype.name)&&(ge="<!DOCTYPE "+S.ownerDocument.doctype.name+`>
56
+ `+ge),I&&Un([le,me,ye],et=>{ge=Hr(ge,et," ")}),N&&jt?N.createHTML(ge):ge},t.setConfig=function(){let O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Dr(O),Ye=!0},t.clearConfig=function(){Ct=null,Ye=!1},t.isValidAttribute=function(O,b,S){Ct||Dr({});const j=we(O),Q=we(b);return W(j,Q,S)},t.addHook=function(O,b){typeof b=="function"&&(z[O]=z[O]||[],Wr(z[O],b))},t.removeHook=function(O){if(z[O])return Ul(z[O])},t.removeHooks=function(O){z[O]&&(z[O]=[])},t.removeAllHooks=function(){z={}},t}var pg=Xl();const hg={field:"_field_zdaf7_1",rtl:"_rtl_zdaf7_7",borderRight:"_borderRight_zdaf7_12"},Wn=T.memo(({id:e,entry:t,loading:r,rightBorder:n,children:i,onClickEntry:o,customElement:a,sanitize:s,...l})=>{const u={text:{style:{whiteSpace:"nowrap",overflow:"ellipsis"}}},{text:f}=v.useProps("Field",u,l),c={};Object.entries(f).forEach(([g,h])=>{typeof h=="function"&&(c[g]=h(t))});let p;s&&(p=pg.sanitize(i));const y=v.useStyles({name:"Field",props:l,classes:hg});return d.jsx(v.Table.Td,{...y("field"),onClick:o?()=>o(e,t):null,...l,children:d.jsx(v.Box,{w:"100%",children:d.jsx(v.Skeleton,{visible:r,children:a||(typeof i!="object"?d.jsx(v.Text,{...f,...c,children:p||i}):p||i)})})})});Wn.displayName="Field";const Jl={row:"_row_138r2_1",selected:"_selected_138r2_5"};function mg({entry:e,selected:t,children:r}){const n=v.useStyles({name:"Row",classes:Jl}),i=v.useProps("Row",{},{});Object.entries(i).forEach(([s,l])=>{typeof l=="function"&&(i[s]=l(e))});var{className:o,style:a}=n("row");return o=`${o} ${t?Jl.selected:""}`,d.jsx(v.Table.Tr,{className:o,style:{...a},...i,children:r})}function gg({bodyCustomizer:e,actionColumn:t,id:r,entry:n}){let i=e==null?void 0:e[t];return typeof i=="function"&&(i=i({id:r,...n})),i===null?null:i||d.jsx(tl,{id:r})}function yg({data:e,loading:t,hideActions:r,hideCheckbox:n,selection:i,toggleRow:o,onClickEntry:a,bodyCustomizer:s}){const l=e.list_columns.includes("actions")?"_actions":"actions";return d.jsx(v.Table.Tbody,{children:e.result.length?e.result.map((u,f)=>{const c=e.ids[f];return d.jsxs(mg,{entry:{...u,id:c},children:[n?null:d.jsx(Wn,{loading:t,children:d.jsx(v.Checkbox,{pl:2,checked:i.includes(Fe(c)),onChange:p=>{o(Fe(c))}})},f),r?null:d.jsx(Wn,{loading:t,children:d.jsx(gg,{bodyCustomizer:s,actionColumn:l,id:Fe(c),entry:u})}),e.list_columns.map((p,y)=>{let g=s==null?void 0:s[p];return typeof g=="function"&&(g=g({id:c,...u})),g===null?null:d.jsx(Wn,{id:Fe(c),entry:u,loading:t,onClickEntry:a,customElement:g,sanitize:!0,children:Ks(u,p)},y)})]},Fe(c))}):d.jsx("tr",{children:d.jsx("td",{style:{padding:"8px"},colSpan:r?e.list_columns.length:e.list_columns.length+1,children:d.jsx(v.Text,{style:{fontStyle:"italic"},size:"sm",c:"dimmed",children:"No data available..."})})})})}const vg={scrollbar:"_scrollbar_isyo2_1"};function bg({bulkActions:e,hideActions:t,loading:r,onSelectCheckbox:n,onClickEntry:i,hideCheckbox:o,hideDownload:a,headerCustomizer:s,bodyCustomizer:l,...u}){const f=v.useMantineTheme(),c=v.Table.extend({highlightOnHover:!0,striped:!0,horizontalSpacing:"md",verticalSpacing:"sm"}),p=v.useProps("DatagridTable",c,u),{data:y,info:g}=Re(),[h,x]=T.useState([]),[w,k]=T.useState(!1),D=_=>{x(R=>R.includes(_)?R.filter(F=>F!==_):[...R,_])},N=()=>{x(_=>_.length===y.ids.length?[]:y.ids.map((R,F)=>R))};return T.useEffect(()=>{k(h.length===y.result.length&&h.length>0),n&&n(h),e==null||e.setSelectedIds(h.map(_=>_))},[h]),T.useEffect(()=>{x([]),n&&n([])},[y]),d.jsx(v.ScrollArea,{options:{className:f.colorScheme==="dark"?"os-theme-light":void 0},style:{flex:1,flexDirection:"column"},classNames:vg,children:d.jsxs(v.Table,{stickyHeader:!0,...p,children:[d.jsx(Ys,{data:y,info:g,hideActions:t,hideCheckbox:o,allChecked:w,setSelection:x,toggleAll:N,headerCustomizer:s}),d.jsx(yg,{data:y,loading:r,hideActions:t,hideCheckbox:o,selection:h,setSelection:x,toggleRow:D,onClickEntry:i,bodyCustomizer:l})]})})}const Zl=T.memo(({...e})=>{const{data:t,queryParams:r,setQueryParams:n}=Re(),i=[{value:"10",label:"10"},{value:"25",label:"25"},{value:"50",label:"50"}],o=String(r.page_size),[a,s]=T.useState(r.page);T.useEffect(()=>{s(r.page)},[r.page]);const l=f=>{s(f-1),n({page:f-1})},u=f=>{n({page_size:parseInt(f,10),page:0})};return d.jsxs(d.Fragment,{children:[d.jsx(v.Divider,{}),d.jsxs(v.Box,{style:{display:"flex",justifyContent:"space-between",alignItems:"center",height:54,border:"none",borderTopWidth:"1px",padding:"var(--mantine-spacing-md)"},children:[d.jsxs(v.Box,{style:{display:"flex",alignItems:"center",gap:"var(--mantine-spacing-sm)"},children:[d.jsx(v.Text,{children:"Rows per page:"}),d.jsx(v.Select,{value:o,defaultValue:o,onChange:f=>u(f),data:i,allowDeselect:!1,w:80,size:"xs",styles:()=>({input:{fontSize:"14px",fontWeight:"250",lineHeight:"52px",border:"1px solid #E6E8ED"},item:{"&[data-selected]":{"&, &:hover":{outline:"none !important"}}}})})]}),d.jsx(v.Pagination,{size:"sm",total:Math.ceil(t.count/o),value:a+1,onChange:l,...e})]})]})});Zl.displayName="Pagination";function xg(){const{error:e}=Re(),[t,r]=T.useState(!1);return T.useEffect(()=>{e&&r(!0)},[e]),d.jsx(v.Modal,{opened:t,onClose:()=>r(!1),title:d.jsxs(v.Group,{children:[d.jsx(ph,{size:16,color:"red"}),d.jsx(v.Text,{children:e?e.originalError.detail||e.originalError.message:"Error"})]}),centered:!0,children:e?d.jsx(v.Text,{children:e.message}):null})}const Ko=T.forwardRef((e,t)=>{const{path:r,data:n,loading:i,info:o,setQueryParams:a}=Re(),{hideToolbar:s=!1,hideFilter:l=!1,hideAdd:u=!1,hideSettings:f=!1,hideActions:c=!1,hidePagination:p=!1,hideError:y=!1,hideDownload:g=!0,onSelectCheckbox:h=null,onClickEntry:x=null,fetchOnMount:w=!0,bulkActions:k=null,styles:D,headerCustomizer:N={},bodyCustomizer:_={},toolbarCustomizer:R={}}=e;if(T.useEffect(()=>{!n&&w&&a({})},[n]),!o)return;const F=k===null;return d.jsxs(v.Paper,{ref:t,style:{position:"relative",height:"100%",display:"flex",flexDirection:"column",...D},children:[s?null:d.jsx(Gs,{hideFilter:l,hideAdd:u,hideSettings:f,hideDownload:g,toolbarCustomizer:R}),n?d.jsx(bg,{bulkActions:k,hideActions:c,loading:i,onSelectCheckbox:h,onClickEntry:x,hideCheckbox:F,hideDownload:g,headerCustomizer:N,bodyCustomizer:_}):null,!p&&n?d.jsx(Zl,{}):null,y?null:d.jsx(xg,{})]})});Ko.displayName="DataGrid";const _g=e=>{const{description:t,errors:r,data:n,handleChange:i,path:o,label:a,required:s,enabled:l}=e;return d.jsx(or.DateInput,{valueFormat:"DD.MM.YYYY",disabled:!l,label:a,description:t,error:r,required:s,value:n?new Date(n):null,onChange:u=>{if(u instanceof Date){const f=new Date(u.getTime()-u.getTimezoneOffset()*6e4);i(o,f.toISOString().substring(0,10))}}})},Ql=V.rankWith(5,V.isDateControl),eu=ve.withJsonFormsControlProps(_g),Tg=e=>{const{description:t,errors:r,data:n,handleChange:i,path:o,label:a,required:s,enabled:l}=e;return d.jsx(or.DateTimePicker,{valueFormat:"DD.MM.YYYY HH:mm",disabled:!l,label:a,description:t,error:r,required:s,value:n?new Date(n):null,onChange:u=>{if(u instanceof Date){const f=new Date(u);i(o,f.toISOString())}}})},tu=V.rankWith(5,V.isDateTimeControl),ru=ve.withJsonFormsControlProps(Tg);var Eg=Object.prototype;function Sg(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Eg;return e===r}var Hn=Sg;function wg(e,t){return function(r){return e(t(r))}}var nu=wg,Cg=nu,Og=Cg(Object.keys,Object),Ag=Og,Pg=Hn,kg=Ag,jg=Object.prototype,Ig=jg.hasOwnProperty;function $g(e){if(!Pg(e))return kg(e);var t=[];for(var r in Object(e))Ig.call(e,r)&&r!="constructor"&&t.push(r);return t}var Rg=$g,Dg=typeof Ie=="object"&&Ie&&Ie.Object===Object&&Ie,iu=Dg,Mg=iu,Ng=typeof self=="object"&&self&&self.Object===Object&&self,Fg=Mg||Ng||Function("return this")(),gt=Fg,Lg=gt,zg=Lg.Symbol,Gn=zg,ou=Gn,au=Object.prototype,Ug=au.hasOwnProperty,Vg=au.toString,Kr=ou?ou.toStringTag:void 0;function Bg(e){var t=Ug.call(e,Kr),r=e[Kr];try{e[Kr]=void 0;var n=!0}catch{}var i=Vg.call(e);return n&&(t?e[Kr]=r:delete e[Kr]),i}var Wg=Bg,Hg=Object.prototype,Gg=Hg.toString;function qg(e){return Gg.call(e)}var Yg=qg,su=Gn,Kg=Wg,Xg=Yg,Jg="[object Null]",Zg="[object Undefined]",lu=su?su.toStringTag:void 0;function Qg(e){return e==null?e===void 0?Zg:Jg:lu&&lu in Object(e)?Kg(e):Xg(e)}var fr=Qg;function ey(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Pt=ey,ty=fr,ry=Pt,ny="[object AsyncFunction]",iy="[object Function]",oy="[object GeneratorFunction]",ay="[object Proxy]";function sy(e){if(!ry(e))return!1;var t=ty(e);return t==iy||t==oy||t==ny||t==ay}var Xo=sy,ly=gt,uy=ly["__core-js_shared__"],cy=uy,Jo=cy,uu=function(){var e=/[^.]+$/.exec(Jo&&Jo.keys&&Jo.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function fy(e){return!!uu&&uu in e}var dy=fy,py=Function.prototype,hy=py.toString;function my(e){if(e!=null){try{return hy.call(e)}catch{}try{return e+""}catch{}}return""}var cu=my,gy=Xo,yy=dy,vy=Pt,by=cu,xy=/[\\^$.*+?()[\]{}|]/g,_y=/^\[object .+?Constructor\]$/,Ty=Function.prototype,Ey=Object.prototype,Sy=Ty.toString,wy=Ey.hasOwnProperty,Cy=RegExp("^"+Sy.call(wy).replace(xy,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Oy(e){if(!vy(e)||yy(e))return!1;var t=gy(e)?Cy:_y;return t.test(by(e))}var Ay=Oy;function Py(e,t){return e==null?void 0:e[t]}var ky=Py,jy=Ay,Iy=ky;function $y(e,t){var r=Iy(e,t);return jy(r)?r:void 0}var Qt=$y,Ry=Qt,Dy=gt,My=Ry(Dy,"DataView"),Ny=My,Fy=Qt,Ly=gt,zy=Fy(Ly,"Map"),Zo=zy,Uy=Qt,Vy=gt,By=Uy(Vy,"Promise"),Wy=By,Hy=Qt,Gy=gt,qy=Hy(Gy,"Set"),fu=qy,Yy=Qt,Ky=gt,Xy=Yy(Ky,"WeakMap"),Jy=Xy,Qo=Ny,ea=Zo,ta=Wy,ra=fu,na=Jy,du=fr,dr=cu,pu="[object Map]",Zy="[object Object]",hu="[object Promise]",mu="[object Set]",gu="[object WeakMap]",yu="[object DataView]",Qy=dr(Qo),e0=dr(ea),t0=dr(ta),r0=dr(ra),n0=dr(na),er=du;(Qo&&er(new Qo(new ArrayBuffer(1)))!=yu||ea&&er(new ea)!=pu||ta&&er(ta.resolve())!=hu||ra&&er(new ra)!=mu||na&&er(new na)!=gu)&&(er=function(e){var t=du(e),r=t==Zy?e.constructor:void 0,n=r?dr(r):"";if(n)switch(n){case Qy:return yu;case e0:return pu;case t0:return hu;case r0:return mu;case n0:return gu}return t});var i0=er;function o0(e){return e!=null&&typeof e=="object"}var pr=o0,a0=fr,s0=pr,l0="[object Arguments]";function u0(e){return s0(e)&&a0(e)==l0}var c0=u0,vu=c0,f0=pr,bu=Object.prototype,d0=bu.hasOwnProperty,p0=bu.propertyIsEnumerable,h0=vu(function(){return arguments}())?vu:function(e){return f0(e)&&d0.call(e,"callee")&&!p0.call(e,"callee")},qn=h0,m0=Array.isArray,Xr=m0,g0=9007199254740991;function y0(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=g0}var xu=y0,v0=Xo,b0=xu;function x0(e){return e!=null&&b0(e.length)&&!v0(e)}var Yn=x0,Kn={exports:{}};function _0(){return!1}var T0=_0;Kn.exports,function(e,t){var r=gt,n=T0,i=t&&!t.nodeType&&t,o=i&&!0&&e&&!e.nodeType&&e,a=o&&o.exports===i,s=a?r.Buffer:void 0,l=s?s.isBuffer:void 0,u=l||n;e.exports=u}(Kn,Kn.exports);var ia=Kn.exports,E0=fr,S0=xu,w0=pr,C0="[object Arguments]",O0="[object Array]",A0="[object Boolean]",P0="[object Date]",k0="[object Error]",j0="[object Function]",I0="[object Map]",$0="[object Number]",R0="[object Object]",D0="[object RegExp]",M0="[object Set]",N0="[object String]",F0="[object WeakMap]",L0="[object ArrayBuffer]",z0="[object DataView]",U0="[object Float32Array]",V0="[object Float64Array]",B0="[object Int8Array]",W0="[object Int16Array]",H0="[object Int32Array]",G0="[object Uint8Array]",q0="[object Uint8ClampedArray]",Y0="[object Uint16Array]",K0="[object Uint32Array]",be={};be[U0]=be[V0]=be[B0]=be[W0]=be[H0]=be[G0]=be[q0]=be[Y0]=be[K0]=!0,be[C0]=be[O0]=be[L0]=be[A0]=be[z0]=be[P0]=be[k0]=be[j0]=be[I0]=be[$0]=be[R0]=be[D0]=be[M0]=be[N0]=be[F0]=!1;function X0(e){return w0(e)&&S0(e.length)&&!!be[E0(e)]}var J0=X0;function Z0(e){return function(t){return e(t)}}var Q0=Z0,Xn={exports:{}};Xn.exports,function(e,t){var r=iu,n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===n,a=o&&r.process,s=function(){try{var l=i&&i.require&&i.require("util").types;return l||a&&a.binding&&a.binding("util")}catch{}}();e.exports=s}(Xn,Xn.exports);var ev=Xn.exports,tv=J0,rv=Q0,_u=ev,Tu=_u&&_u.isTypedArray,nv=Tu?rv(Tu):tv,oa=nv,iv=Rg,ov=i0,av=qn,sv=Xr,lv=Yn,uv=ia,cv=Hn,fv=oa,dv="[object Map]",pv="[object Set]",hv=Object.prototype,mv=hv.hasOwnProperty;function gv(e){if(e==null)return!0;if(lv(e)&&(sv(e)||typeof e=="string"||typeof e.splice=="function"||uv(e)||fv(e)||av(e)))return!e.length;var t=ov(e);if(t==dv||t==pv)return!e.size;if(cv(e))return!iv(e).length;for(var r in e)if(mv.call(e,r))return!1;return!0}var yv=gv;const Eu=Ot(yv),Su=(e,t,r,n,i,o,a)=>e.map((s,l)=>d.jsx(v.Grid.Col,{span:i==="row"?12/e.length:12,children:d.jsx(ve.JsonFormsDispatch,{uischema:s,schema:t,path:r,enabled:n,renderers:o,cells:a})},`${r}-${l}`)),vv=({elements:e,schema:t,path:r,enabled:n,direction:i,renderers:o,cells:a})=>Eu(e)?null:d.jsx(v.Grid,{spacing:i==="row"?2:0,children:Su(e,t,r,n,i,o,a)}),aa=T.memo(vv),bv=e=>function(r){const n=ve.useJsonForms(),i=V.getAjv({jsonforms:{...n}});return d.jsx(e,{...r,ajv:i})};var xv=gt,_v=function(){return xv.Date.now()},Tv=_v,Ev=/\s/;function Sv(e){for(var t=e.length;t--&&Ev.test(e.charAt(t)););return t}var wv=Sv,Cv=wv,Ov=/^\s+/;function Av(e){return e&&e.slice(0,Cv(e)+1).replace(Ov,"")}var Pv=Av,kv=fr,jv=pr,Iv="[object Symbol]";function $v(e){return typeof e=="symbol"||jv(e)&&kv(e)==Iv}var wu=$v,Rv=Pv,Cu=Pt,Dv=wu,Ou=0/0,Mv=/^[-+]0x[0-9a-f]+$/i,Nv=/^0b[01]+$/i,Fv=/^0o[0-7]+$/i,Lv=parseInt;function zv(e){if(typeof e=="number")return e;if(Dv(e))return Ou;if(Cu(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Cu(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Rv(e);var r=Nv.test(e);return r||Fv.test(e)?Lv(e.slice(2),r?2:8):Mv.test(e)?Ou:+e}var Au=zv,Uv=Pt,sa=Tv,Pu=Au,Vv="Expected a function",Bv=Math.max,Wv=Math.min;function Hv(e,t,r){var n,i,o,a,s,l,u=0,f=!1,c=!1,p=!0;if(typeof e!="function")throw new TypeError(Vv);t=Pu(t)||0,Uv(r)&&(f=!!r.leading,c="maxWait"in r,o=c?Bv(Pu(r.maxWait)||0,t):o,p="trailing"in r?!!r.trailing:p);function y(R){var F=n,J=i;return n=i=void 0,u=R,a=e.apply(J,F),a}function g(R){return u=R,s=setTimeout(w,t),f?y(R):a}function h(R){var F=R-l,J=R-u,ee=t-F;return c?Wv(ee,o-J):ee}function x(R){var F=R-l,J=R-u;return l===void 0||F>=t||F<0||c&&J>=o}function w(){var R=sa();if(x(R))return k(R);s=setTimeout(w,h(R))}function k(R){return s=void 0,p&&n?y(R):(n=i=void 0,a)}function D(){s!==void 0&&clearTimeout(s),u=0,n=l=i=s=void 0}function N(){return s===void 0?a:k(sa())}function _(){var R=sa(),F=x(R);if(n=arguments,i=this,l=R,F){if(s===void 0)return g(l);if(c)return clearTimeout(s),s=setTimeout(w,t),y(l)}return s===void 0&&(s=setTimeout(w,t)),a}return _.cancel=D,_.flush=N,_}var Gv=Hv;const qv=Ot(Gv),ku=(e,t,r,n,i,o=300)=>{const[a,s]=T.useState(r??t);T.useEffect(()=>{s(r??t)},[r]);const l=T.useCallback(qv(c=>e(n,c),o),[e,n,o]),u=T.useCallback(c=>{const p=i(c);s(p??t),l(p)},[l,i]),f=T.useCallback(()=>{s(t),e(n,void 0)},[t,e,n]);return[a,u,f]},Yv=e=>e===""?void 0:parseFloat(e),Kv=e=>Yv(e),Jn=T.memo(function(t){const{allowDecimal:r,className:n,data:i,description:o,errors:a,enabled:s,handleChange:l,label:u,path:f,required:c,hideControls:p}=t,[y,g]=ku(l,"",i,f,Kv);return d.jsx(v.NumberInput,{label:u,description:o,error:a,required:c,value:y,onChange:g,className:n,disabled:!s,allowDecimal:r,hideControls:p,w:"100%"})}),Xv=e=>d.jsx(Jn,{...e}),ju=V.rankWith(3,V.isNumberControl),Iu=ve.withJsonFormsControlProps(Xv),Jv=e=>d.jsx(Jn,{...e}),$u=V.rankWith(3,V.isIntegerControl),Ru=ve.withJsonFormsControlProps(Jv);function Zv(){this.__data__=[],this.size=0}var Qv=Zv;function eb(e,t){return e===t||e!==e&&t!==t}var Zn=eb,tb=Zn;function rb(e,t){for(var r=e.length;r--;)if(tb(e[r][0],t))return r;return-1}var Qn=rb,nb=Qn,ib=Array.prototype,ob=ib.splice;function ab(e){var t=this.__data__,r=nb(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():ob.call(t,r,1),--this.size,!0}var sb=ab,lb=Qn;function ub(e){var t=this.__data__,r=lb(t,e);return r<0?void 0:t[r][1]}var cb=ub,fb=Qn;function db(e){return fb(this.__data__,e)>-1}var pb=db,hb=Qn;function mb(e,t){var r=this.__data__,n=hb(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var gb=mb,yb=Qv,vb=sb,bb=cb,xb=pb,_b=gb;function hr(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}hr.prototype.clear=yb,hr.prototype.delete=vb,hr.prototype.get=bb,hr.prototype.has=xb,hr.prototype.set=_b;var ei=hr,Tb=ei;function Eb(){this.__data__=new Tb,this.size=0}var Sb=Eb;function wb(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var Cb=wb;function Ob(e){return this.__data__.get(e)}var Ab=Ob;function Pb(e){return this.__data__.has(e)}var kb=Pb,jb=Qt,Ib=jb(Object,"create"),ti=Ib,Du=ti;function $b(){this.__data__=Du?Du(null):{},this.size=0}var Rb=$b;function Db(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Mb=Db,Nb=ti,Fb="__lodash_hash_undefined__",Lb=Object.prototype,zb=Lb.hasOwnProperty;function Ub(e){var t=this.__data__;if(Nb){var r=t[e];return r===Fb?void 0:r}return zb.call(t,e)?t[e]:void 0}var Vb=Ub,Bb=ti,Wb=Object.prototype,Hb=Wb.hasOwnProperty;function Gb(e){var t=this.__data__;return Bb?t[e]!==void 0:Hb.call(t,e)}var qb=Gb,Yb=ti,Kb="__lodash_hash_undefined__";function Xb(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Yb&&t===void 0?Kb:t,this}var Jb=Xb,Zb=Rb,Qb=Mb,e1=Vb,t1=qb,r1=Jb;function mr(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}mr.prototype.clear=Zb,mr.prototype.delete=Qb,mr.prototype.get=e1,mr.prototype.has=t1,mr.prototype.set=r1;var n1=mr,Mu=n1,i1=ei,o1=Zo;function a1(){this.size=0,this.__data__={hash:new Mu,map:new(o1||i1),string:new Mu}}var s1=a1;function l1(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var u1=l1,c1=u1;function f1(e,t){var r=e.__data__;return c1(t)?r[typeof t=="string"?"string":"hash"]:r.map}var ri=f1,d1=ri;function p1(e){var t=d1(this,e).delete(e);return this.size-=t?1:0,t}var h1=p1,m1=ri;function g1(e){return m1(this,e).get(e)}var y1=g1,v1=ri;function b1(e){return v1(this,e).has(e)}var x1=b1,_1=ri;function T1(e,t){var r=_1(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var E1=T1,S1=s1,w1=h1,C1=y1,O1=x1,A1=E1;function gr(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}gr.prototype.clear=S1,gr.prototype.delete=w1,gr.prototype.get=C1,gr.prototype.has=O1,gr.prototype.set=A1;var Nu=gr,P1=ei,k1=Zo,j1=Nu,I1=200;function $1(e,t){var r=this.__data__;if(r instanceof P1){var n=r.__data__;if(!k1||n.length<I1-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new j1(n)}return r.set(e,t),this.size=r.size,this}var R1=$1,D1=ei,M1=Sb,N1=Cb,F1=Ab,L1=kb,z1=R1;function yr(e){var t=this.__data__=new D1(e);this.size=t.size}yr.prototype.clear=M1,yr.prototype.delete=N1,yr.prototype.get=F1,yr.prototype.has=L1,yr.prototype.set=z1;var U1=yr,V1=Qt,B1=function(){try{var e=V1(Object,"defineProperty");return e({},"",{}),e}catch{}}(),Fu=B1,Lu=Fu;function W1(e,t,r){t=="__proto__"&&Lu?Lu(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var la=W1,H1=la,G1=Zn;function q1(e,t,r){(r!==void 0&&!G1(e[t],r)||r===void 0&&!(t in e))&&H1(e,t,r)}var zu=q1;function Y1(e){return function(t,r,n){for(var i=-1,o=Object(t),a=n(t),s=a.length;s--;){var l=a[e?s:++i];if(r(o[l],l,o)===!1)break}return t}}var K1=Y1,X1=K1,J1=X1(),Z1=J1,ni={exports:{}};ni.exports,function(e,t){var r=gt,n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===n,a=o?r.Buffer:void 0,s=a?a.allocUnsafe:void 0;function l(u,f){if(f)return u.slice();var c=u.length,p=s?s(c):new u.constructor(c);return u.copy(p),p}e.exports=l}(ni,ni.exports);var Q1=ni.exports,ex=gt,tx=ex.Uint8Array,rx=tx,Uu=rx;function nx(e){var t=new e.constructor(e.byteLength);return new Uu(t).set(new Uu(e)),t}var ix=nx,ox=ix;function ax(e,t){var r=t?ox(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var sx=ax;function lx(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}var ux=lx,cx=Pt,Vu=Object.create,fx=function(){function e(){}return function(t){if(!cx(t))return{};if(Vu)return Vu(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}(),dx=fx,px=nu,hx=px(Object.getPrototypeOf,Object),Bu=hx,mx=dx,gx=Bu,yx=Hn;function vx(e){return typeof e.constructor=="function"&&!yx(e)?mx(gx(e)):{}}var bx=vx,xx=Yn,_x=pr;function Tx(e){return _x(e)&&xx(e)}var Wu=Tx,Ex=fr,Sx=Bu,wx=pr,Cx="[object Object]",Ox=Function.prototype,Ax=Object.prototype,Hu=Ox.toString,Px=Ax.hasOwnProperty,kx=Hu.call(Object);function jx(e){if(!wx(e)||Ex(e)!=Cx)return!1;var t=Sx(e);if(t===null)return!0;var r=Px.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&Hu.call(r)==kx}var Ix=jx;function $x(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var Gu=$x,Rx=la,Dx=Zn,Mx=Object.prototype,Nx=Mx.hasOwnProperty;function Fx(e,t,r){var n=e[t];(!(Nx.call(e,t)&&Dx(n,r))||r===void 0&&!(t in e))&&Rx(e,t,r)}var Lx=Fx,zx=Lx,Ux=la;function Vx(e,t,r,n){var i=!r;r||(r={});for(var o=-1,a=t.length;++o<a;){var s=t[o],l=n?n(r[s],e[s],s,r,e):void 0;l===void 0&&(l=e[s]),i?Ux(r,s,l):zx(r,s,l)}return r}var Bx=Vx;function Wx(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var Hx=Wx,Gx=9007199254740991,qx=/^(?:0|[1-9]\d*)$/;function Yx(e,t){var r=typeof e;return t=t??Gx,!!t&&(r=="number"||r!="symbol"&&qx.test(e))&&e>-1&&e%1==0&&e<t}var qu=Yx,Kx=Hx,Xx=qn,Jx=Xr,Zx=ia,Qx=qu,e_=oa,t_=Object.prototype,r_=t_.hasOwnProperty;function n_(e,t){var r=Jx(e),n=!r&&Xx(e),i=!r&&!n&&Zx(e),o=!r&&!n&&!i&&e_(e),a=r||n||i||o,s=a?Kx(e.length,String):[],l=s.length;for(var u in e)(t||r_.call(e,u))&&!(a&&(u=="length"||i&&(u=="offset"||u=="parent")||o&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||Qx(u,l)))&&s.push(u);return s}var i_=n_;function o_(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var a_=o_,s_=Pt,l_=Hn,u_=a_,c_=Object.prototype,f_=c_.hasOwnProperty;function d_(e){if(!s_(e))return u_(e);var t=l_(e),r=[];for(var n in e)n=="constructor"&&(t||!f_.call(e,n))||r.push(n);return r}var p_=d_,h_=i_,m_=p_,g_=Yn;function y_(e){return g_(e)?h_(e,!0):m_(e)}var Yu=y_,v_=Bx,b_=Yu;function x_(e){return v_(e,b_(e))}var __=x_,Ku=zu,T_=Q1,E_=sx,S_=ux,w_=bx,Xu=qn,Ju=Xr,C_=Wu,O_=ia,A_=Xo,P_=Pt,k_=Ix,j_=oa,Zu=Gu,I_=__;function $_(e,t,r,n,i,o,a){var s=Zu(e,r),l=Zu(t,r),u=a.get(l);if(u){Ku(e,r,u);return}var f=o?o(s,l,r+"",e,t,a):void 0,c=f===void 0;if(c){var p=Ju(l),y=!p&&O_(l),g=!p&&!y&&j_(l);f=l,p||y||g?Ju(s)?f=s:C_(s)?f=S_(s):y?(c=!1,f=T_(l,!0)):g?(c=!1,f=E_(l,!0)):f=[]:k_(l)||Xu(l)?(f=s,Xu(s)?f=I_(s):(!P_(s)||A_(s))&&(f=w_(l))):c=!1}c&&(a.set(l,f),i(f,l,n,o,a),a.delete(l)),Ku(e,r,f)}var R_=$_,D_=U1,M_=zu,N_=Z1,F_=R_,L_=Pt,z_=Yu,U_=Gu;function Qu(e,t,r,n,i){e!==t&&N_(t,function(o,a){if(i||(i=new D_),L_(o))F_(e,t,a,r,Qu,n,i);else{var s=n?n(U_(e,a),o,a+"",e,t,i):void 0;s===void 0&&(s=o),M_(e,a,s)}},z_)}var V_=Qu;function B_(e){return e}var ec=B_;function W_(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}var H_=W_,G_=H_,tc=Math.max;function q_(e,t,r){return t=tc(t===void 0?e.length-1:t,0),function(){for(var n=arguments,i=-1,o=tc(n.length-t,0),a=Array(o);++i<o;)a[i]=n[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=n[i];return s[t]=r(a),G_(e,this,s)}}var Y_=q_;function K_(e){return function(){return e}}var X_=K_,J_=X_,rc=Fu,Z_=ec,Q_=rc?function(e,t){return rc(e,"toString",{configurable:!0,enumerable:!1,value:J_(t),writable:!0})}:Z_,eT=Q_,tT=800,rT=16,nT=Date.now;function iT(e){var t=0,r=0;return function(){var n=nT(),i=rT-(n-r);if(r=n,i>0){if(++t>=tT)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var oT=iT,aT=eT,sT=oT,lT=sT(aT),uT=lT,cT=ec,fT=Y_,dT=uT;function pT(e,t){return dT(fT(e,t,cT),e+"")}var nc=pT,hT=Zn,mT=Yn,gT=qu,yT=Pt;function vT(e,t,r){if(!yT(r))return!1;var n=typeof t;return(n=="number"?mT(r)&&gT(t,r.length):n=="string"&&t in r)?hT(r[t],e):!1}var ic=vT,bT=nc,xT=ic;function _T(e){return bT(function(t,r){var n=-1,i=r.length,o=i>1?r[i-1]:void 0,a=i>2?r[2]:void 0;for(o=e.length>3&&typeof o=="function"?(i--,o):void 0,a&&xT(r[0],r[1],a)&&(o=i<3?void 0:o,i=1),t=Object(t);++n<i;){var s=r[n];s&&e(t,s,n,o)}return t})}var TT=_T,ET=V_,ST=TT,wT=ST(function(e,t,r){ET(e,t,r)}),CT=wT;const oc=Ot(CT),ac=T.memo(function(t){const{className:r,config:n,uischema:i,data:o,description:a,errors:s,enabled:l,path:u,handleChange:f,label:c,required:p}=t;return oc({},n,i.options).format==="password"?d.jsx(v.PasswordInput,{label:c,description:a,error:s,required:p,value:o||"",onChange:g=>{f(u,g.currentTarget.value)},className:r,disabled:!l,w:"100%"}):d.jsx(v.TextInput,{label:c,description:a,error:s,required:p,value:o||"",onChange:g=>{f(u,g.currentTarget.value)},className:r,disabled:!l,w:"100%"})}),sc=T.memo(function(t){const{className:r,data:n,description:i,enabled:o,errors:a,handleChange:s,label:l,labelPosition:u,path:f,required:c}=t;return d.jsx(v.Checkbox,{label:l,description:i,error:a,disabled:!o,className:r,labelPosition:u,required:c,data:[{label:"true",value:"true"},{label:"false",value:"false"}],value:String(n)||"",onChange:p=>{s(f,p==="true")}})}),OT=e=>d.jsx(ac,{...e}),lc=V.rankWith(3,V.isStringControl),uc=ve.withJsonFormsControlProps(OT),AT=e=>d.jsx(sc,{...e}),cc=V.rankWith(3,V.isBooleanControl),fc=ve.withJsonFormsControlProps(AT),PT=({data:e,options:t,handleChange:r,path:n,...i})=>{const{description:o,errors:a,label:s,required:l,enabled:u}=i;return d.jsx(v.Select,{disabled:!u,data:t,value:e||null,label:s,description:o,required:l,error:a,searchable:!0,onChange:f=>{r(n,f)}})},dc=V.rankWith(5,V.isEnumControl),pc=ve.withJsonFormsEnumProps(ve.withTranslateProps(T.memo(PT)),!1);function kT(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}var jT=kT,hc=Gn,IT=qn,$T=Xr,mc=hc?hc.isConcatSpreadable:void 0;function RT(e){return $T(e)||IT(e)||!!(mc&&e&&e[mc])}var DT=RT,MT=jT,NT=DT;function gc(e,t,r,n,i){var o=-1,a=e.length;for(r||(r=NT),i||(i=[]);++o<a;){var s=e[o];t>0&&r(s)?t>1?gc(s,t-1,r,n,i):MT(i,s):n||(i[i.length]=s)}return i}var FT=gc,LT="__lodash_hash_undefined__";function zT(e){return this.__data__.set(e,LT),this}var UT=zT;function VT(e){return this.__data__.has(e)}var BT=VT,WT=Nu,HT=UT,GT=BT;function ii(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new WT;++t<r;)this.add(e[t])}ii.prototype.add=ii.prototype.push=HT,ii.prototype.has=GT;var qT=ii;function YT(e,t,r,n){for(var i=e.length,o=r+(n?1:-1);n?o--:++o<i;)if(t(e[o],o,e))return o;return-1}var KT=YT;function XT(e){return e!==e}var JT=XT;function ZT(e,t,r){for(var n=r-1,i=e.length;++n<i;)if(e[n]===t)return n;return-1}var QT=ZT,eE=KT,tE=JT,rE=QT;function nE(e,t,r){return t===t?rE(e,t,r):eE(e,tE,r)}var iE=nE,oE=iE;function aE(e,t){var r=e==null?0:e.length;return!!r&&oE(e,t,0)>-1}var sE=aE;function lE(e,t,r){for(var n=-1,i=e==null?0:e.length;++n<i;)if(r(t,e[n]))return!0;return!1}var uE=lE;function cE(e,t){return e.has(t)}var fE=cE;function dE(){}var pE=dE;function hE(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var yc=hE,ua=fu,mE=pE,gE=yc,yE=1/0,vE=ua&&1/gE(new ua([,-0]))[1]==yE?function(e){return new ua(e)}:mE,bE=vE,xE=qT,_E=sE,TE=uE,EE=fE,SE=bE,wE=yc,CE=200;function OE(e,t,r){var n=-1,i=_E,o=e.length,a=!0,s=[],l=s;if(r)a=!1,i=TE;else if(o>=CE){var u=t?null:SE(e);if(u)return wE(u);a=!1,i=EE,l=new xE}else l=t?[]:s;e:for(;++n<o;){var f=e[n],c=t?t(f):f;if(f=r||f!==0?f:0,a&&c===c){for(var p=l.length;p--;)if(l[p]===c)continue e;t&&l.push(c),s.push(f)}else i(l,c,r)||(l!==s&&l.push(c),s.push(f))}return s}var AE=OE,PE=FT,kE=nc,jE=AE,IE=Wu,$E=kE(function(e){return jE(PE(e,1,IE,!0))}),RE=$E;const DE=Ot(RE);function ME(e,t,r,n){var i=-1,o=e==null?0:e.length;for(n&&o&&(r=e[++i]);++i<o;)r=t(r,e[i],i,e);return r}var NE=ME;function FE(e){return function(t){return e==null?void 0:e[t]}}var LE=FE,zE=LE,UE={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},VE=zE(UE),BE=VE;function WE(e,t){for(var r=-1,n=e==null?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}var HE=WE,vc=Gn,GE=HE,qE=Xr,YE=wu,KE=1/0,bc=vc?vc.prototype:void 0,xc=bc?bc.toString:void 0;function _c(e){if(typeof e=="string")return e;if(qE(e))return GE(e,_c)+"";if(YE(e))return xc?xc.call(e):"";var t=e+"";return t=="0"&&1/e==-KE?"-0":t}var XE=_c,JE=XE;function ZE(e){return e==null?"":JE(e)}var ca=ZE,QE=BE,eS=ca,tS=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,rS="\\u0300-\\u036f",nS="\\ufe20-\\ufe2f",iS="\\u20d0-\\u20ff",oS=rS+nS+iS,aS="["+oS+"]",sS=RegExp(aS,"g");function lS(e){return e=eS(e),e&&e.replace(tS,QE).replace(sS,"")}var uS=lS,cS=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function fS(e){return e.match(cS)||[]}var dS=fS,pS=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function hS(e){return pS.test(e)}var mS=hS,Tc="\\ud800-\\udfff",gS="\\u0300-\\u036f",yS="\\ufe20-\\ufe2f",vS="\\u20d0-\\u20ff",bS=gS+yS+vS,Ec="\\u2700-\\u27bf",Sc="a-z\\xdf-\\xf6\\xf8-\\xff",xS="\\xac\\xb1\\xd7\\xf7",_S="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",TS="\\u2000-\\u206f",ES=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",wc="A-Z\\xc0-\\xd6\\xd8-\\xde",SS="\\ufe0e\\ufe0f",Cc=xS+_S+TS+ES,Oc="['’]",Ac="["+Cc+"]",wS="["+bS+"]",Pc="\\d+",CS="["+Ec+"]",kc="["+Sc+"]",jc="[^"+Tc+Cc+Pc+Ec+Sc+wc+"]",OS="\\ud83c[\\udffb-\\udfff]",AS="(?:"+wS+"|"+OS+")",PS="[^"+Tc+"]",Ic="(?:\\ud83c[\\udde6-\\uddff]){2}",$c="[\\ud800-\\udbff][\\udc00-\\udfff]",vr="["+wc+"]",kS="\\u200d",Rc="(?:"+kc+"|"+jc+")",jS="(?:"+vr+"|"+jc+")",Dc="(?:"+Oc+"(?:d|ll|m|re|s|t|ve))?",Mc="(?:"+Oc+"(?:D|LL|M|RE|S|T|VE))?",Nc=AS+"?",Fc="["+SS+"]?",IS="(?:"+kS+"(?:"+[PS,Ic,$c].join("|")+")"+Fc+Nc+")*",$S="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",RS="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",DS=Fc+Nc+IS,MS="(?:"+[CS,Ic,$c].join("|")+")"+DS,NS=RegExp([vr+"?"+kc+"+"+Dc+"(?="+[Ac,vr,"$"].join("|")+")",jS+"+"+Mc+"(?="+[Ac,vr+Rc,"$"].join("|")+")",vr+"?"+Rc+"+"+Dc,vr+"+"+Mc,RS,$S,Pc,MS].join("|"),"g");function FS(e){return e.match(NS)||[]}var LS=FS,zS=dS,US=mS,VS=ca,BS=LS;function WS(e,t,r){return e=VS(e),t=r?void 0:t,t===void 0?US(e)?BS(e):zS(e):e.match(t)||[]}var HS=WS,GS=NE,qS=uS,YS=HS,KS="['’]",XS=RegExp(KS,"g");function JS(e){return function(t){return GS(YS(qS(t).replace(XS,"")),e,"")}}var ZS=JS;function QS(e,t,r){var n=-1,i=e.length;t<0&&(t=-t>i?0:i+t),r=r>i?i:r,r<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var o=Array(i);++n<i;)o[n]=e[n+t];return o}var ew=QS,tw=ew;function rw(e,t,r){var n=e.length;return r=r===void 0?n:r,!t&&r>=n?e:tw(e,t,r)}var nw=rw,iw="\\ud800-\\udfff",ow="\\u0300-\\u036f",aw="\\ufe20-\\ufe2f",sw="\\u20d0-\\u20ff",lw=ow+aw+sw,uw="\\ufe0e\\ufe0f",cw="\\u200d",fw=RegExp("["+cw+iw+lw+uw+"]");function dw(e){return fw.test(e)}var Lc=dw;function pw(e){return e.split("")}var hw=pw,zc="\\ud800-\\udfff",mw="\\u0300-\\u036f",gw="\\ufe20-\\ufe2f",yw="\\u20d0-\\u20ff",vw=mw+gw+yw,bw="\\ufe0e\\ufe0f",xw="["+zc+"]",fa="["+vw+"]",da="\\ud83c[\\udffb-\\udfff]",_w="(?:"+fa+"|"+da+")",Uc="[^"+zc+"]",Vc="(?:\\ud83c[\\udde6-\\uddff]){2}",Bc="[\\ud800-\\udbff][\\udc00-\\udfff]",Tw="\\u200d",Wc=_w+"?",Hc="["+bw+"]?",Ew="(?:"+Tw+"(?:"+[Uc,Vc,Bc].join("|")+")"+Hc+Wc+")*",Sw=Hc+Wc+Ew,ww="(?:"+[Uc+fa+"?",fa,Vc,Bc,xw].join("|")+")",Cw=RegExp(da+"(?="+da+")|"+ww+Sw,"g");function Ow(e){return e.match(Cw)||[]}var Aw=Ow,Pw=hw,kw=Lc,jw=Aw;function Iw(e){return kw(e)?jw(e):Pw(e)}var $w=Iw,Rw=nw,Dw=Lc,Mw=$w,Nw=ca;function Fw(e){return function(t){t=Nw(t);var r=Dw(t)?Mw(t):void 0,n=r?r[0]:t.charAt(0),i=r?Rw(r,1).join(""):t.slice(1);return n[e]()+i}}var Lw=Fw,zw=Lw,Uw=zw("toUpperCase"),Vw=Uw,Bw=ZS,Ww=Vw,Hw=Bw(function(e,t,r){return e+(r?" ":"")+Ww(t)}),Gw=Hw;const qw=Ot(Gw);var Yw=Math.ceil,Kw=Math.max;function Xw(e,t,r,n){for(var i=-1,o=Kw(Yw((t-e)/(r||1)),0),a=Array(o);o--;)a[n?o:++i]=e,e+=r;return a}var Jw=Xw,Zw=Au,Gc=1/0,Qw=17976931348623157e292;function eC(e){if(!e)return e===0?e:0;if(e=Zw(e),e===Gc||e===-Gc){var t=e<0?-1:1;return t*Qw}return e===e?e:0}var tC=eC,rC=Jw,nC=ic,pa=tC;function iC(e){return function(t,r,n){return n&&typeof n!="number"&&nC(t,r,n)&&(r=n=void 0),t=pa(t),r===void 0?(r=t,t=0):r=pa(r),n=n===void 0?t<r?1:-1:pa(n),rC(t,r,n,e)}}var oC=iC,aC=oC,sC=aC(),lC=sC;const uC=Ot(lC);function he(){return he=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},he.apply(null,arguments)}function zt(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function qc(e){if(!zt(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=qc(e[r])}),t}function Et(e,t,r={clone:!0}){const n=r.clone?he({},e):e;return zt(e)&&zt(t)&&Object.keys(t).forEach(i=>{zt(t[i])&&Object.prototype.hasOwnProperty.call(e,i)&&zt(e[i])?n[i]=Et(e[i],t[i],r):r.clone?n[i]=zt(t[i])?qc(t[i]):t[i]:n[i]=t[i]}),n}const cC=Object.freeze(Object.defineProperty({__proto__:null,default:Et,isPlainObject:zt},Symbol.toStringTag,{value:"Module"}));function Jr(e){let t="https://mui.com/production-error/?code="+e;for(let r=1;r<arguments.length;r+=1)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}const fC=Object.freeze(Object.defineProperty({__proto__:null,default:Jr},Symbol.toStringTag,{value:"Module"}));var ha={exports:{}},fe={};/**
57
57
  * @license React
58
58
  * react-is.production.min.js
59
59
  *
@@ -61,7 +61,7 @@ Valid keys: `+JSON.stringify(Object.keys(C),null," "));var $=Ae(q,X,G,z,B+"."+X
61
61
  *
62
62
  * This source code is licensed under the MIT license found in the
63
63
  * LICENSE file in the root directory of this source tree.
64
- */var Yc;function dC(){if(Yc)return ce;Yc=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),a=Symbol.for("react.context"),s=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen"),y;y=Symbol.for("react.module.reference");function h(x){if(typeof x=="object"&&x!==null){var w=x.$$typeof;switch(w){case e:switch(x=x.type,x){case r:case i:case n:case u:case c:return x;default:switch(x=x&&x.$$typeof,x){case s:case a:case l:case p:case f:case o:return x;default:return w}}case t:return w}}}return ce.ContextConsumer=a,ce.ContextProvider=o,ce.Element=e,ce.ForwardRef=l,ce.Fragment=r,ce.Lazy=p,ce.Memo=f,ce.Portal=t,ce.Profiler=i,ce.StrictMode=n,ce.Suspense=u,ce.SuspenseList=c,ce.isAsyncMode=function(){return!1},ce.isConcurrentMode=function(){return!1},ce.isContextConsumer=function(x){return h(x)===a},ce.isContextProvider=function(x){return h(x)===o},ce.isElement=function(x){return typeof x=="object"&&x!==null&&x.$$typeof===e},ce.isForwardRef=function(x){return h(x)===l},ce.isFragment=function(x){return h(x)===r},ce.isLazy=function(x){return h(x)===p},ce.isMemo=function(x){return h(x)===f},ce.isPortal=function(x){return h(x)===t},ce.isProfiler=function(x){return h(x)===i},ce.isStrictMode=function(x){return h(x)===n},ce.isSuspense=function(x){return h(x)===u},ce.isSuspenseList=function(x){return h(x)===c},ce.isValidElementType=function(x){return typeof x=="string"||typeof x=="function"||x===r||x===i||x===n||x===u||x===c||x===g||typeof x=="object"&&x!==null&&(x.$$typeof===p||x.$$typeof===f||x.$$typeof===o||x.$$typeof===a||x.$$typeof===l||x.$$typeof===y||x.getModuleId!==void 0)},ce.typeOf=h,ce}var fe={};/**
64
+ */var Yc;function dC(){if(Yc)return fe;Yc=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),a=Symbol.for("react.context"),s=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),c=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),y=Symbol.for("react.offscreen"),g;g=Symbol.for("react.module.reference");function h(x){if(typeof x=="object"&&x!==null){var w=x.$$typeof;switch(w){case e:switch(x=x.type,x){case r:case i:case n:case u:case f:return x;default:switch(x=x&&x.$$typeof,x){case s:case a:case l:case p:case c:case o:return x;default:return w}}case t:return w}}}return fe.ContextConsumer=a,fe.ContextProvider=o,fe.Element=e,fe.ForwardRef=l,fe.Fragment=r,fe.Lazy=p,fe.Memo=c,fe.Portal=t,fe.Profiler=i,fe.StrictMode=n,fe.Suspense=u,fe.SuspenseList=f,fe.isAsyncMode=function(){return!1},fe.isConcurrentMode=function(){return!1},fe.isContextConsumer=function(x){return h(x)===a},fe.isContextProvider=function(x){return h(x)===o},fe.isElement=function(x){return typeof x=="object"&&x!==null&&x.$$typeof===e},fe.isForwardRef=function(x){return h(x)===l},fe.isFragment=function(x){return h(x)===r},fe.isLazy=function(x){return h(x)===p},fe.isMemo=function(x){return h(x)===c},fe.isPortal=function(x){return h(x)===t},fe.isProfiler=function(x){return h(x)===i},fe.isStrictMode=function(x){return h(x)===n},fe.isSuspense=function(x){return h(x)===u},fe.isSuspenseList=function(x){return h(x)===f},fe.isValidElementType=function(x){return typeof x=="string"||typeof x=="function"||x===r||x===i||x===n||x===u||x===f||x===y||typeof x=="object"&&x!==null&&(x.$$typeof===p||x.$$typeof===c||x.$$typeof===o||x.$$typeof===a||x.$$typeof===l||x.$$typeof===g||x.getModuleId!==void 0)},fe.typeOf=h,fe}var de={};/**
65
65
  * @license React
66
66
  * react-is.development.js
67
67
  *
@@ -69,34 +69,34 @@ Valid keys: `+JSON.stringify(Object.keys(C),null," "));var $=Ae(q,X,G,z,B+"."+X
69
69
  *
70
70
  * This source code is licensed under the MIT license found in the
71
71
  * LICENSE file in the root directory of this source tree.
72
- */var Kc;function pC(){return Kc||(Kc=1,process.env.NODE_ENV!=="production"&&function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),a=Symbol.for("react.context"),s=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen"),y=!1,h=!1,x=!1,w=!1,j=!1,M;M=Symbol.for("react.module.reference");function F(N){return!!(typeof N=="string"||typeof N=="function"||N===r||N===i||j||N===n||N===u||N===c||w||N===g||y||h||x||typeof N=="object"&&N!==null&&(N.$$typeof===p||N.$$typeof===f||N.$$typeof===o||N.$$typeof===a||N.$$typeof===l||N.$$typeof===M||N.getModuleId!==void 0))}function _(N){if(typeof N=="object"&&N!==null){var Ye=N.$$typeof;switch(Ye){case e:var Qe=N.type;switch(Qe){case r:case i:case n:case u:case c:return Qe;default:var dt=Qe&&Qe.$$typeof;switch(dt){case s:case a:case l:case p:case f:case o:return dt;default:return Ye}}case t:return Ye}}}var P=a,D=o,te=e,ae=l,Oe=r,U=p,se=f,he=t,ge=i,qe=n,je=u,Ze=c,ot=!1,vt=!1;function C(N){return ot||(ot=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function k(N){return vt||(vt=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function Y(N){return _(N)===a}function L(N){return _(N)===o}function G(N){return typeof N=="object"&&N!==null&&N.$$typeof===e}function z(N){return _(N)===l}function B(N){return _(N)===r}function q(N){return _(N)===p}function K(N){return _(N)===f}function J(N){return _(N)===t}function X(N){return _(N)===i}function Ae(N){return _(N)===n}function $(N){return _(N)===u}function $e(N){return _(N)===c}fe.ContextConsumer=P,fe.ContextProvider=D,fe.Element=te,fe.ForwardRef=ae,fe.Fragment=Oe,fe.Lazy=U,fe.Memo=se,fe.Portal=he,fe.Profiler=ge,fe.StrictMode=qe,fe.Suspense=je,fe.SuspenseList=Ze,fe.isAsyncMode=C,fe.isConcurrentMode=k,fe.isContextConsumer=Y,fe.isContextProvider=L,fe.isElement=G,fe.isForwardRef=z,fe.isFragment=B,fe.isLazy=q,fe.isMemo=K,fe.isPortal=J,fe.isProfiler=X,fe.isStrictMode=Ae,fe.isSuspense=$,fe.isSuspenseList=$e,fe.isValidElementType=F,fe.typeOf=_}()),fe}process.env.NODE_ENV==="production"?ha.exports=dC():ha.exports=pC();var Xc=ha.exports;const hC=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Jc(e){const t=`${e}`.match(hC);return t&&t[1]||""}function Zc(e,t=""){return e.displayName||e.name||Jc(e)||t}function Qc(e,t,r){const n=Zc(t);return e.displayName||(n!==""?`${r}(${n})`:r)}function mC(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return Zc(e,"Component");if(typeof e=="object")switch(e.$$typeof){case Xc.ForwardRef:return Qc(e,e.render,"ForwardRef");case Xc.Memo:return Qc(e,e.type,"memo");default:return}}}const gC=Object.freeze(Object.defineProperty({__proto__:null,default:mC,getFunctionName:Jc},Symbol.toStringTag,{value:"Module"}));function tr(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":Jr(7));return e.charAt(0).toUpperCase()+e.slice(1)}const yC=Object.freeze(Object.defineProperty({__proto__:null,default:tr},Symbol.toStringTag,{value:"Module"}));function ma(e,t){const r=pe({},t);return Object.keys(e).forEach(n=>{if(n.toString().match(/^(components|slots)$/))r[n]=pe({},e[n],r[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const i=e[n]||{},o=t[n];r[n]={},!o||!Object.keys(o)?r[n]=i:!i||!Object.keys(i)?r[n]=o:(r[n]=pe({},o),Object.keys(i).forEach(a=>{r[n][a]=ma(i[a],o[a])}))}else r[n]===void 0&&(r[n]=e[n])}),r}function vC(e,t,r=void 0){const n={};return Object.keys(e).forEach(i=>{n[i]=e[i].reduce((o,a)=>{if(a){const s=t(a);s!==""&&o.push(s),r&&r[a]&&o.push(r[a])}return o},[]).join(" ")}),n}const ef=e=>e,bC=(()=>{let e=ef;return{configure(t){e=t},generate(t){return e(t)},reset(){e=ef}}})(),xC={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function ga(e,t,r="Mui"){const n=xC[t];return n?`${r}-${n}`:`${bC.generate(e)}-${t}`}function _C(e,t,r="Mui"){const n={};return t.forEach(i=>{n[i]=ga(e,i,r)}),n}function TC(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}const EC=Object.freeze(Object.defineProperty({__proto__:null,default:TC},Symbol.toStringTag,{value:"Module"}));function Ut(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r}function tf(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(r=tf(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function SC(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=tf(e))&&(n&&(n+=" "),n+=t);return n}const wC=tt.createContext(void 0);process.env.NODE_ENV!=="production"&&(H.node,H.object);function CC(e){const{theme:t,name:r,props:n}=e;if(!t||!t.components||!t.components[r])return n;const i=t.components[r];return i.defaultProps?ma(i.defaultProps,n):!i.styleOverrides&&!i.variants?ma(i,n):n}function OC({props:e,name:t}){const r=tt.useContext(wC);return CC({props:e,name:t,theme:{components:r}})}process.env.NODE_ENV!=="production"&&(H.node,H.object.isRequired);function AC(e){return OC(e)}var Zr={},rf={exports:{}};(function(e){function t(r){return r&&r.__esModule?r:{default:r}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(rf);var nf=rf.exports,ya={exports:{}},of;function PC(){return of||(of=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(r){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var o in i)({}).hasOwnProperty.call(i,o)&&(r[o]=i[o])}return r},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(ya)),ya.exports}var va={exports:{}},af;function kC(){return af||(af=1,function(e){function t(r,n){if(r==null)return{};var i={};for(var o in r)if({}.hasOwnProperty.call(r,o)){if(n.includes(o))continue;i[o]=r[o]}return i}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(va)),va.exports}function sf(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var jC=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,IC=sf(function(e){return jC.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),$C=!0;function RC(e,t,r){var n="";return r.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):n+=i+" "}),n}var lf=function(t,r,n){var i=t.key+"-"+r.name;(n===!1||$C===!1)&&t.registered[i]===void 0&&(t.registered[i]=r.styles)},DC=function(t,r,n){lf(t,r,n);var i=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var o=r;do t.insert(r===o?"."+i:"",o,t.sheet,!0),o=o.next;while(o!==void 0)}};function MC(e){for(var t=0,r,n=0,i=e.length;i>=4;++n,i-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var NC={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},uf=`You have illegal escape sequence in your template literal, most likely inside content's property value.
72
+ */var Kc;function pC(){return Kc||(Kc=1,process.env.NODE_ENV!=="production"&&function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),a=Symbol.for("react.context"),s=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),c=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),y=Symbol.for("react.offscreen"),g=!1,h=!1,x=!1,w=!1,k=!1,D;D=Symbol.for("react.module.reference");function N(M){return!!(typeof M=="string"||typeof M=="function"||M===r||M===i||k||M===n||M===u||M===f||w||M===y||g||h||x||typeof M=="object"&&M!==null&&(M.$$typeof===p||M.$$typeof===c||M.$$typeof===o||M.$$typeof===a||M.$$typeof===l||M.$$typeof===D||M.getModuleId!==void 0))}function _(M){if(typeof M=="object"&&M!==null){var Ye=M.$$typeof;switch(Ye){case e:var Qe=M.type;switch(Qe){case r:case i:case n:case u:case f:return Qe;default:var dt=Qe&&Qe.$$typeof;switch(dt){case s:case a:case l:case p:case c:case o:return dt;default:return Ye}}case t:return Ye}}}var R=a,F=o,J=e,ee=l,oe=r,z=p,le=c,me=t,ye=i,qe=n,je=u,Ze=f,ot=!1,vt=!1;function C(M){return ot||(ot=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function P(M){return vt||(vt=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function Y(M){return _(M)===a}function L(M){return _(M)===o}function G(M){return typeof M=="object"&&M!==null&&M.$$typeof===e}function U(M){return _(M)===l}function B(M){return _(M)===r}function q(M){return _(M)===p}function K(M){return _(M)===c}function Z(M){return _(M)===t}function X(M){return _(M)===i}function Ae(M){return _(M)===n}function I(M){return _(M)===u}function $e(M){return _(M)===f}de.ContextConsumer=R,de.ContextProvider=F,de.Element=J,de.ForwardRef=ee,de.Fragment=oe,de.Lazy=z,de.Memo=le,de.Portal=me,de.Profiler=ye,de.StrictMode=qe,de.Suspense=je,de.SuspenseList=Ze,de.isAsyncMode=C,de.isConcurrentMode=P,de.isContextConsumer=Y,de.isContextProvider=L,de.isElement=G,de.isForwardRef=U,de.isFragment=B,de.isLazy=q,de.isMemo=K,de.isPortal=Z,de.isProfiler=X,de.isStrictMode=Ae,de.isSuspense=I,de.isSuspenseList=$e,de.isValidElementType=N,de.typeOf=_}()),de}process.env.NODE_ENV==="production"?ha.exports=dC():ha.exports=pC();var Xc=ha.exports;const hC=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Jc(e){const t=`${e}`.match(hC);return t&&t[1]||""}function Zc(e,t=""){return e.displayName||e.name||Jc(e)||t}function Qc(e,t,r){const n=Zc(t);return e.displayName||(n!==""?`${r}(${n})`:r)}function mC(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return Zc(e,"Component");if(typeof e=="object")switch(e.$$typeof){case Xc.ForwardRef:return Qc(e,e.render,"ForwardRef");case Xc.Memo:return Qc(e,e.type,"memo");default:return}}}const gC=Object.freeze(Object.defineProperty({__proto__:null,default:mC,getFunctionName:Jc},Symbol.toStringTag,{value:"Module"}));function tr(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":Jr(7));return e.charAt(0).toUpperCase()+e.slice(1)}const yC=Object.freeze(Object.defineProperty({__proto__:null,default:tr},Symbol.toStringTag,{value:"Module"}));function ma(e,t){const r=he({},t);return Object.keys(e).forEach(n=>{if(n.toString().match(/^(components|slots)$/))r[n]=he({},e[n],r[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const i=e[n]||{},o=t[n];r[n]={},!o||!Object.keys(o)?r[n]=i:!i||!Object.keys(i)?r[n]=o:(r[n]=he({},o),Object.keys(i).forEach(a=>{r[n][a]=ma(i[a],o[a])}))}else r[n]===void 0&&(r[n]=e[n])}),r}function vC(e,t,r=void 0){const n={};return Object.keys(e).forEach(i=>{n[i]=e[i].reduce((o,a)=>{if(a){const s=t(a);s!==""&&o.push(s),r&&r[a]&&o.push(r[a])}return o},[]).join(" ")}),n}const ef=e=>e,bC=(()=>{let e=ef;return{configure(t){e=t},generate(t){return e(t)},reset(){e=ef}}})(),xC={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function ga(e,t,r="Mui"){const n=xC[t];return n?`${r}-${n}`:`${bC.generate(e)}-${t}`}function _C(e,t,r="Mui"){const n={};return t.forEach(i=>{n[i]=ga(e,i,r)}),n}function TC(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}const EC=Object.freeze(Object.defineProperty({__proto__:null,default:TC},Symbol.toStringTag,{value:"Module"}));function Ut(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r}function tf(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(r=tf(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function SC(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=tf(e))&&(n&&(n+=" "),n+=t);return n}const wC=tt.createContext(void 0);process.env.NODE_ENV!=="production"&&(H.node,H.object);function CC(e){const{theme:t,name:r,props:n}=e;if(!t||!t.components||!t.components[r])return n;const i=t.components[r];return i.defaultProps?ma(i.defaultProps,n):!i.styleOverrides&&!i.variants?ma(i,n):n}function OC({props:e,name:t}){const r=tt.useContext(wC);return CC({props:e,name:t,theme:{components:r}})}process.env.NODE_ENV!=="production"&&(H.node,H.object.isRequired);function AC(e){return OC(e)}var Zr={},rf={exports:{}};(function(e){function t(r){return r&&r.__esModule?r:{default:r}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(rf);var nf=rf.exports,ya={exports:{}},of;function PC(){return of||(of=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(r){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var o in i)({}).hasOwnProperty.call(i,o)&&(r[o]=i[o])}return r},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(ya)),ya.exports}var va={exports:{}},af;function kC(){return af||(af=1,function(e){function t(r,n){if(r==null)return{};var i={};for(var o in r)if({}.hasOwnProperty.call(r,o)){if(n.includes(o))continue;i[o]=r[o]}return i}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(va)),va.exports}function sf(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var jC=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,IC=sf(function(e){return jC.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),$C=!0;function RC(e,t,r){var n="";return r.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):n+=i+" "}),n}var lf=function(t,r,n){var i=t.key+"-"+r.name;(n===!1||$C===!1)&&t.registered[i]===void 0&&(t.registered[i]=r.styles)},DC=function(t,r,n){lf(t,r,n);var i=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var o=r;do t.insert(r===o?"."+i:"",o,t.sheet,!0),o=o.next;while(o!==void 0)}};function MC(e){for(var t=0,r,n=0,i=e.length;i>=4;++n,i-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var NC={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},uf=`You have illegal escape sequence in your template literal, most likely inside content's property value.
73
73
  Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';".
74
74
  You can read more about this here:
75
- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,FC="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",LC=/[A-Z]|^ms/g,cf=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ba=function(t){return t.charCodeAt(1)===45},ff=function(t){return t!=null&&typeof t!="boolean"},xa=sf(function(e){return ba(e)?e:e.replace(LC,"-$&").toLowerCase()}),oi=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(cf,function(n,i,o){return yt={name:i,styles:o,next:yt},i})}return NC[t]!==1&&!ba(t)&&typeof r=="number"&&r!==0?r+"px":r};if(process.env.NODE_ENV!=="production"){var zC=/(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,UC=["normal","none","initial","inherit","unset"],VC=oi,BC=/^-ms-/,WC=/-(.)/g,df={};oi=function(t,r){if(t==="content"&&(typeof r!="string"||UC.indexOf(r)===-1&&!zC.test(r)&&(r.charAt(0)!==r.charAt(r.length-1)||r.charAt(0)!=='"'&&r.charAt(0)!=="'")))throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\""+r+"\"'`");var n=VC(t,r);return n!==""&&!ba(t)&&t.indexOf("-")!==-1&&df[t]===void 0&&(df[t]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+t.replace(BC,"ms-").replace(WC,function(i,o){return o.toUpperCase()})+"?")),n}}var pf="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Qr(e,t,r){if(r==null)return"";if(r.__emotion_styles!==void 0){if(process.env.NODE_ENV!=="production"&&r.toString()==="NO_COMPONENT_SELECTOR")throw new Error(pf);return r}switch(typeof r){case"boolean":return"";case"object":{if(r.anim===1)return yt={name:r.name,styles:r.styles,next:yt},r.name;if(r.styles!==void 0){var n=r.next;if(n!==void 0)for(;n!==void 0;)yt={name:n.name,styles:n.styles,next:yt},n=n.next;var i=r.styles+";";return process.env.NODE_ENV!=="production"&&r.map!==void 0&&(i+=r.map),i}return HC(e,t,r)}case"function":{if(e!==void 0){var o=yt,a=r(e);return yt=o,Qr(e,t,a)}else process.env.NODE_ENV!=="production"&&console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");break}case"string":if(process.env.NODE_ENV!=="production"){var s=[],l=r.replace(cf,function(c,f,p){var g="animation"+s.length;return s.push("const "+g+" = keyframes`"+p.replace(/^@keyframes animation-\w+/,"")+"`"),"${"+g+"}"});s.length&&console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n"+[].concat(s,["`"+l+"`"]).join(`
75
+ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,FC="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",LC=/[A-Z]|^ms/g,cf=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ba=function(t){return t.charCodeAt(1)===45},ff=function(t){return t!=null&&typeof t!="boolean"},xa=sf(function(e){return ba(e)?e:e.replace(LC,"-$&").toLowerCase()}),oi=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(cf,function(n,i,o){return yt={name:i,styles:o,next:yt},i})}return NC[t]!==1&&!ba(t)&&typeof r=="number"&&r!==0?r+"px":r};if(process.env.NODE_ENV!=="production"){var zC=/(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,UC=["normal","none","initial","inherit","unset"],VC=oi,BC=/^-ms-/,WC=/-(.)/g,df={};oi=function(t,r){if(t==="content"&&(typeof r!="string"||UC.indexOf(r)===-1&&!zC.test(r)&&(r.charAt(0)!==r.charAt(r.length-1)||r.charAt(0)!=='"'&&r.charAt(0)!=="'")))throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\""+r+"\"'`");var n=VC(t,r);return n!==""&&!ba(t)&&t.indexOf("-")!==-1&&df[t]===void 0&&(df[t]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+t.replace(BC,"ms-").replace(WC,function(i,o){return o.toUpperCase()})+"?")),n}}var pf="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Qr(e,t,r){if(r==null)return"";if(r.__emotion_styles!==void 0){if(process.env.NODE_ENV!=="production"&&r.toString()==="NO_COMPONENT_SELECTOR")throw new Error(pf);return r}switch(typeof r){case"boolean":return"";case"object":{if(r.anim===1)return yt={name:r.name,styles:r.styles,next:yt},r.name;if(r.styles!==void 0){var n=r.next;if(n!==void 0)for(;n!==void 0;)yt={name:n.name,styles:n.styles,next:yt},n=n.next;var i=r.styles+";";return process.env.NODE_ENV!=="production"&&r.map!==void 0&&(i+=r.map),i}return HC(e,t,r)}case"function":{if(e!==void 0){var o=yt,a=r(e);return yt=o,Qr(e,t,a)}else process.env.NODE_ENV!=="production"&&console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");break}case"string":if(process.env.NODE_ENV!=="production"){var s=[],l=r.replace(cf,function(f,c,p){var y="animation"+s.length;return s.push("const "+y+" = keyframes`"+p.replace(/^@keyframes animation-\w+/,"")+"`"),"${"+y+"}"});s.length&&console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n"+[].concat(s,["`"+l+"`"]).join(`
76
76
  `)+`
77
77
 
78
78
  You should wrap it with \`css\` like this:
79
79
 
80
- `+("css`"+l+"`"))}break}if(t==null)return r;var u=t[r];return u!==void 0?u:r}function HC(e,t,r){var n="";if(Array.isArray(r))for(var i=0;i<r.length;i++)n+=Qr(e,t,r[i])+";";else for(var o in r){var a=r[o];if(typeof a!="object")t!=null&&t[a]!==void 0?n+=o+"{"+t[a]+"}":ff(a)&&(n+=xa(o)+":"+oi(o,a)+";");else{if(o==="NO_COMPONENT_SELECTOR"&&process.env.NODE_ENV!=="production")throw new Error(pf);if(Array.isArray(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var s=0;s<a.length;s++)ff(a[s])&&(n+=xa(o)+":"+oi(o,a[s])+";");else{var l=Qr(e,t,a);switch(o){case"animation":case"animationName":{n+=xa(o)+":"+l+";";break}default:process.env.NODE_ENV!=="production"&&o==="undefined"&&console.error(FC),n+=o+"{"+l+"}"}}}}return n}var hf=/label:\s*([^\s;\n{]+)\s*(;|$)/g,mf;process.env.NODE_ENV!=="production"&&(mf=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g);var yt,GC=function(t,r,n){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var i=!0,o="";yt=void 0;var a=t[0];a==null||a.raw===void 0?(i=!1,o+=Qr(n,r,a)):(process.env.NODE_ENV!=="production"&&a[0]===void 0&&console.error(uf),o+=a[0]);for(var s=1;s<t.length;s++)o+=Qr(n,r,t[s]),i&&(process.env.NODE_ENV!=="production"&&a[s]===void 0&&console.error(uf),o+=a[s]);var l;process.env.NODE_ENV!=="production"&&(o=o.replace(mf,function(p){return l=p,""})),hf.lastIndex=0;for(var u="",c;(c=hf.exec(o))!==null;)u+="-"+c[1];var f=MC(o)+u;return process.env.NODE_ENV!=="production"?{name:f,styles:o,map:l,next:yt,toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}}:{name:f,styles:o,next:yt}},qC=function(t){return t()},YC=tt["useInsertionEffect"]?tt["useInsertionEffect"]:!1,KC=YC||qC,XC=IC,JC=function(t){return t!=="theme"},gf=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?XC:JC},yf=function(t,r,n){var i;if(r){var o=r.shouldForwardProp;i=t.__emotion_forwardProp&&o?function(a){return t.__emotion_forwardProp(a)&&o(a)}:o}return typeof i!="function"&&n&&(i=t.__emotion_forwardProp),i},vf=`You have illegal escape sequence in your template literal, most likely inside content's property value.
80
+ `+("css`"+l+"`"))}break}if(t==null)return r;var u=t[r];return u!==void 0?u:r}function HC(e,t,r){var n="";if(Array.isArray(r))for(var i=0;i<r.length;i++)n+=Qr(e,t,r[i])+";";else for(var o in r){var a=r[o];if(typeof a!="object")t!=null&&t[a]!==void 0?n+=o+"{"+t[a]+"}":ff(a)&&(n+=xa(o)+":"+oi(o,a)+";");else{if(o==="NO_COMPONENT_SELECTOR"&&process.env.NODE_ENV!=="production")throw new Error(pf);if(Array.isArray(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var s=0;s<a.length;s++)ff(a[s])&&(n+=xa(o)+":"+oi(o,a[s])+";");else{var l=Qr(e,t,a);switch(o){case"animation":case"animationName":{n+=xa(o)+":"+l+";";break}default:process.env.NODE_ENV!=="production"&&o==="undefined"&&console.error(FC),n+=o+"{"+l+"}"}}}}return n}var hf=/label:\s*([^\s;\n{]+)\s*(;|$)/g,mf;process.env.NODE_ENV!=="production"&&(mf=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g);var yt,GC=function(t,r,n){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var i=!0,o="";yt=void 0;var a=t[0];a==null||a.raw===void 0?(i=!1,o+=Qr(n,r,a)):(process.env.NODE_ENV!=="production"&&a[0]===void 0&&console.error(uf),o+=a[0]);for(var s=1;s<t.length;s++)o+=Qr(n,r,t[s]),i&&(process.env.NODE_ENV!=="production"&&a[s]===void 0&&console.error(uf),o+=a[s]);var l;process.env.NODE_ENV!=="production"&&(o=o.replace(mf,function(p){return l=p,""})),hf.lastIndex=0;for(var u="",f;(f=hf.exec(o))!==null;)u+="-"+f[1];var c=MC(o)+u;return process.env.NODE_ENV!=="production"?{name:c,styles:o,map:l,next:yt,toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}}:{name:c,styles:o,next:yt}},qC=function(t){return t()},YC=tt["useInsertionEffect"]?tt["useInsertionEffect"]:!1,KC=YC||qC,XC=IC,JC=function(t){return t!=="theme"},gf=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?XC:JC},yf=function(t,r,n){var i;if(r){var o=r.shouldForwardProp;i=t.__emotion_forwardProp&&o?function(a){return t.__emotion_forwardProp(a)&&o(a)}:o}return typeof i!="function"&&n&&(i=t.__emotion_forwardProp),i},vf=`You have illegal escape sequence in your template literal, most likely inside content's property value.
81
81
  Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';".
82
82
  You can read more about this here:
83
83
  https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,ZC=function(t){var r=t.cache,n=t.serialized,i=t.isStringTag;return lf(r,n,i),KC(function(){return DC(r,n,i)}),null},QC=function e(t,r){if(process.env.NODE_ENV!=="production"&&t===void 0)throw new Error(`You are trying to create a styled element with an undefined component.
84
- You may have forgotten to import it.`);var n=t.__emotion_real===t,i=n&&t.__emotion_base||t,o,a;r!==void 0&&(o=r.label,a=r.target);var s=yf(t,r,n),l=s||gf(i),u=!l("as");return function(){var c=arguments,f=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(o!==void 0&&f.push("label:"+o+";"),c[0]==null||c[0].raw===void 0)f.push.apply(f,c);else{process.env.NODE_ENV!=="production"&&c[0][0]===void 0&&console.error(vf),f.push(c[0][0]);for(var p=c.length,g=1;g<p;g++)process.env.NODE_ENV!=="production"&&c[0][g]===void 0&&console.error(vf),f.push(c[g],c[0][g])}var y=Gt.withEmotionCache(function(h,x,w){var j=u&&h.as||i,M="",F=[],_=h;if(h.theme==null){_={};for(var P in h)_[P]=h[P];_.theme=tt.useContext(Gt.ThemeContext)}typeof h.className=="string"?M=RC(x.registered,F,h.className):h.className!=null&&(M=h.className+" ");var D=GC(f.concat(F),x.registered,_);M+=x.key+"-"+D.name,a!==void 0&&(M+=" "+a);var te=u&&s===void 0?gf(j):l,ae={};for(var Oe in h)u&&Oe==="as"||te(Oe)&&(ae[Oe]=h[Oe]);return ae.className=M,ae.ref=w,tt.createElement(tt.Fragment,null,tt.createElement(ZC,{cache:x,serialized:D,isStringTag:typeof j=="string"}),tt.createElement(j,ae))});return y.displayName=o!==void 0?o:"Styled("+(typeof i=="string"?i:i.displayName||i.name||"Component")+")",y.defaultProps=t.defaultProps,y.__emotion_real=y,y.__emotion_base=i,y.__emotion_styles=f,y.__emotion_forwardProp=s,Object.defineProperty(y,"toString",{value:function(){return a===void 0&&process.env.NODE_ENV!=="production"?"NO_COMPONENT_SELECTOR":"."+a}}),y.withComponent=function(h,x){return e(h,pe({},r,x,{shouldForwardProp:yf(y,x,!0)})).apply(void 0,f)},y}},eO=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],_a=QC.bind();eO.forEach(function(e){_a[e]=_a(e)});function tO(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function rO(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var nO=function(){function e(r){var n=this;this._insertTag=function(i){var o;n.tags.length===0?n.insertionPoint?o=n.insertionPoint.nextSibling:n.prepend?o=n.container.firstChild:o=n.before:o=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(i,o),n.tags.push(i)},this.isSpeedy=r.speedy===void 0?process.env.NODE_ENV==="production":r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(n){n.forEach(this._insertTag)},t.insert=function(n){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(rO(this));var i=this.tags[this.tags.length-1];if(process.env.NODE_ENV!=="production"){var o=n.charCodeAt(0)===64&&n.charCodeAt(1)===105;o&&this._alreadyInsertedOrderInsensitiveRule&&console.error(`You're attempting to insert the following rule:
85
- `+n+"\n\n`@import` rules must be before all other types of rules in a stylesheet but other rules have already been inserted. Please ensure that `@import` rules are before all other rules."),this._alreadyInsertedOrderInsensitiveRule=this._alreadyInsertedOrderInsensitiveRule||!o}if(this.isSpeedy){var a=tO(i);try{a.insertRule(n,a.cssRules.length)}catch(s){process.env.NODE_ENV!=="production"&&!/:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear|-ms-expand|-ms-reveal){/.test(n)&&console.error('There was a problem inserting the following rule: "'+n+'"',s)}}else i.appendChild(document.createTextNode(n));this.ctr++},t.flush=function(){this.tags.forEach(function(n){return n.parentNode&&n.parentNode.removeChild(n)}),this.tags=[],this.ctr=0,process.env.NODE_ENV!=="production"&&(this._alreadyInsertedOrderInsensitiveRule=!1)},e}(),Ue="-ms-",ai="-moz-",ie="-webkit-",Ta="comm",Ea="rule",Sa="decl",iO="@import",bf="@keyframes",oO="@layer",aO=Math.abs,si=String.fromCharCode,sO=Object.assign;function lO(e,t){return Me(e,0)^45?(((t<<2^Me(e,0))<<2^Me(e,1))<<2^Me(e,2))<<2^Me(e,3):0}function xf(e){return e.trim()}function uO(e,t){return(e=t.exec(e))?e[0]:e}function oe(e,t,r){return e.replace(t,r)}function wa(e,t){return e.indexOf(t)}function Me(e,t){return e.charCodeAt(t)|0}function en(e,t,r){return e.slice(t,r)}function St(e){return e.length}function Ca(e){return e.length}function li(e,t){return t.push(e),e}function cO(e,t){return e.map(t).join("")}var ui=1,br=1,_f=0,Je=0,ke=0,xr="";function ci(e,t,r,n,i,o,a){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:ui,column:br,length:a,return:""}}function tn(e,t){return sO(ci("",null,null,"",null,null,0),e,{length:-e.length},t)}function fO(){return ke}function dO(){return ke=Je>0?Me(xr,--Je):0,br--,ke===10&&(br=1,ui--),ke}function nt(){return ke=Je<_f?Me(xr,Je++):0,br++,ke===10&&(br=1,ui++),ke}function wt(){return Me(xr,Je)}function fi(){return Je}function rn(e,t){return en(xr,e,t)}function nn(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Tf(e){return ui=br=1,_f=St(xr=e),Je=0,[]}function Ef(e){return xr="",e}function di(e){return xf(rn(Je-1,Oa(e===91?e+2:e===40?e+1:e)))}function pO(e){for(;(ke=wt())&&ke<33;)nt();return nn(e)>2||nn(ke)>3?"":" "}function hO(e,t){for(;--t&&nt()&&!(ke<48||ke>102||ke>57&&ke<65||ke>70&&ke<97););return rn(e,fi()+(t<6&&wt()==32&&nt()==32))}function Oa(e){for(;nt();)switch(ke){case e:return Je;case 34:case 39:e!==34&&e!==39&&Oa(ke);break;case 40:e===41&&Oa(e);break;case 92:nt();break}return Je}function mO(e,t){for(;nt()&&e+ke!==47+10;)if(e+ke===42+42&&wt()===47)break;return"/*"+rn(t,Je-1)+"*"+si(e===47?e:nt())}function gO(e){for(;!nn(wt());)nt();return rn(e,Je)}function yO(e){return Ef(pi("",null,null,null,[""],e=Tf(e),0,[0],e))}function pi(e,t,r,n,i,o,a,s,l){for(var u=0,c=0,f=a,p=0,g=0,y=0,h=1,x=1,w=1,j=0,M="",F=i,_=o,P=n,D=M;x;)switch(y=j,j=nt()){case 40:if(y!=108&&Me(D,f-1)==58){wa(D+=oe(di(j),"&","&\f"),"&\f")!=-1&&(w=-1);break}case 34:case 39:case 91:D+=di(j);break;case 9:case 10:case 13:case 32:D+=pO(y);break;case 92:D+=hO(fi()-1,7);continue;case 47:switch(wt()){case 42:case 47:li(vO(mO(nt(),fi()),t,r),l);break;default:D+="/"}break;case 123*h:s[u++]=St(D)*w;case 125*h:case 59:case 0:switch(j){case 0:case 125:x=0;case 59+c:w==-1&&(D=oe(D,/\f/g,"")),g>0&&St(D)-f&&li(g>32?wf(D+";",n,r,f-1):wf(oe(D," ","")+";",n,r,f-2),l);break;case 59:D+=";";default:if(li(P=Sf(D,t,r,u,c,i,s,M,F=[],_=[],f),o),j===123)if(c===0)pi(D,t,P,P,F,o,f,s,_);else switch(p===99&&Me(D,3)===110?100:p){case 100:case 108:case 109:case 115:pi(e,P,P,n&&li(Sf(e,P,P,0,0,i,s,M,i,F=[],f),_),i,_,f,s,n?F:_);break;default:pi(D,P,P,P,[""],_,0,s,_)}}u=c=g=0,h=w=1,M=D="",f=a;break;case 58:f=1+St(D),g=y;default:if(h<1){if(j==123)--h;else if(j==125&&h++==0&&dO()==125)continue}switch(D+=si(j),j*h){case 38:w=c>0?1:(D+="\f",-1);break;case 44:s[u++]=(St(D)-1)*w,w=1;break;case 64:wt()===45&&(D+=di(nt())),p=wt(),c=f=St(M=D+=gO(fi())),j++;break;case 45:y===45&&St(D)==2&&(h=0)}}return o}function Sf(e,t,r,n,i,o,a,s,l,u,c){for(var f=i-1,p=i===0?o:[""],g=Ca(p),y=0,h=0,x=0;y<n;++y)for(var w=0,j=en(e,f+1,f=aO(h=a[y])),M=e;w<g;++w)(M=xf(h>0?p[w]+" "+j:oe(j,/&\f/g,p[w])))&&(l[x++]=M);return ci(e,t,r,i===0?Ea:s,l,u,c)}function vO(e,t,r){return ci(e,t,r,Ta,si(fO()),en(e,2,-2),0)}function wf(e,t,r,n){return ci(e,t,r,Sa,en(e,0,n),en(e,n+1,-1),n)}function _r(e,t){for(var r="",n=Ca(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function bO(e,t,r,n){switch(e.type){case oO:if(e.children.length)break;case iO:case Sa:return e.return=e.return||e.value;case Ta:return"";case bf:return e.return=e.value+"{"+_r(e.children,n)+"}";case Ea:e.value=e.props.join(",")}return St(r=_r(e.children,n))?e.return=e.value+"{"+r+"}":""}function xO(e){var t=Ca(e);return function(r,n,i,o){for(var a="",s=0;s<t;s++)a+=e[s](r,n,i,o)||"";return a}}function _O(e){return function(t){t.root||(t=t.return)&&e(t)}}var TO=function(t,r,n){for(var i=0,o=0;i=o,o=wt(),i===38&&o===12&&(r[n]=1),!nn(o);)nt();return rn(t,Je)},EO=function(t,r){var n=-1,i=44;do switch(nn(i)){case 0:i===38&&wt()===12&&(r[n]=1),t[n]+=TO(Je-1,r,n);break;case 2:t[n]+=di(i);break;case 4:if(i===44){t[++n]=wt()===58?"&\f":"",r[n]=t[n].length;break}default:t[n]+=si(i)}while(i=nt());return t},SO=function(t,r){return Ef(EO(Tf(t),r))},Cf=new WeakMap,wO=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var r=t.value,n=t.parent,i=t.column===n.column&&t.line===n.line;n.type!=="rule";)if(n=n.parent,!n)return;if(!(t.props.length===1&&r.charCodeAt(0)!==58&&!Cf.get(n))&&!i){Cf.set(t,!0);for(var o=[],a=SO(r,o),s=n.props,l=0,u=0;l<a.length;l++)for(var c=0;c<s.length;c++,u++)t.props[u]=o[l]?a[l].replace(/&\f/g,s[c]):s[c]+" "+a[l]}}},CO=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}},OO="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",AO=function(t){return t.type==="comm"&&t.children.indexOf(OO)>-1},PO=function(t){return function(r,n,i){if(!(r.type!=="rule"||t.compat)){var o=r.value.match(/(:first|:nth|:nth-last)-child/g);if(o){for(var a=!!r.parent,s=a?r.parent.children:i,l=s.length-1;l>=0;l--){var u=s[l];if(u.line<r.line)break;if(u.column<r.column){if(AO(u))return;break}}o.forEach(function(c){console.error('The pseudo class "'+c+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+c.split("-child")[0]+'-of-type".')})}}}},Of=function(t){return t.type.charCodeAt(1)===105&&t.type.charCodeAt(0)===64},kO=function(t,r){for(var n=t-1;n>=0;n--)if(!Of(r[n]))return!0;return!1},Af=function(t){t.type="",t.value="",t.return="",t.children="",t.props=""},jO=function(t,r,n){Of(t)&&(t.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),Af(t)):kO(r,n)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),Af(t)))};function Pf(e,t){switch(lO(e,t)){case 5103:return ie+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return ie+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return ie+e+ai+e+Ue+e+e;case 6828:case 4268:return ie+e+Ue+e+e;case 6165:return ie+e+Ue+"flex-"+e+e;case 5187:return ie+e+oe(e,/(\w+).+(:[^]+)/,ie+"box-$1$2"+Ue+"flex-$1$2")+e;case 5443:return ie+e+Ue+"flex-item-"+oe(e,/flex-|-self/,"")+e;case 4675:return ie+e+Ue+"flex-line-pack"+oe(e,/align-content|flex-|-self/,"")+e;case 5548:return ie+e+Ue+oe(e,"shrink","negative")+e;case 5292:return ie+e+Ue+oe(e,"basis","preferred-size")+e;case 6060:return ie+"box-"+oe(e,"-grow","")+ie+e+Ue+oe(e,"grow","positive")+e;case 4554:return ie+oe(e,/([^-])(transform)/g,"$1"+ie+"$2")+e;case 6187:return oe(oe(oe(e,/(zoom-|grab)/,ie+"$1"),/(image-set)/,ie+"$1"),e,"")+e;case 5495:case 3959:return oe(e,/(image-set\([^]*)/,ie+"$1$`$1");case 4968:return oe(oe(e,/(.+:)(flex-)?(.*)/,ie+"box-pack:$3"+Ue+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ie+e+e;case 4095:case 3583:case 4068:case 2532:return oe(e,/(.+)-inline(.+)/,ie+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(St(e)-1-t>6)switch(Me(e,t+1)){case 109:if(Me(e,t+4)!==45)break;case 102:return oe(e,/(.+:)(.+)-([^]+)/,"$1"+ie+"$2-$3$1"+ai+(Me(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~wa(e,"stretch")?Pf(oe(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Me(e,t+1)!==115)break;case 6444:switch(Me(e,St(e)-3-(~wa(e,"!important")&&10))){case 107:return oe(e,":",":"+ie)+e;case 101:return oe(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ie+(Me(e,14)===45?"inline-":"")+"box$3$1"+ie+"$2$3$1"+Ue+"$2box$3")+e}break;case 5936:switch(Me(e,t+11)){case 114:return ie+e+Ue+oe(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ie+e+Ue+oe(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ie+e+Ue+oe(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ie+e+Ue+e+e}return e}var IO=function(t,r,n,i){if(t.length>-1&&!t.return)switch(t.type){case Sa:t.return=Pf(t.value,t.length);break;case bf:return _r([tn(t,{value:oe(t.value,"@","@"+ie)})],i);case Ea:if(t.length)return cO(t.props,function(o){switch(uO(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return _r([tn(t,{props:[oe(o,/:(read-\w+)/,":"+ai+"$1")]})],i);case"::placeholder":return _r([tn(t,{props:[oe(o,/:(plac\w+)/,":"+ie+"input-$1")]}),tn(t,{props:[oe(o,/:(plac\w+)/,":"+ai+"$1")]}),tn(t,{props:[oe(o,/:(plac\w+)/,Ue+"input-$1")]})],i)}return""})}},$O=[IO],RO=function(t){var r=t.key;if(process.env.NODE_ENV!=="production"&&!r)throw new Error(`You have to configure \`key\` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.
86
- If multiple caches share the same key they might "fight" for each other's style elements.`);if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(h){var x=h.getAttribute("data-emotion");x.indexOf(" ")!==-1&&(document.head.appendChild(h),h.setAttribute("data-s",""))})}var i=t.stylisPlugins||$O;if(process.env.NODE_ENV!=="production"&&/[^a-z-]/.test(r))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+r+'" was passed');var o={},a,s=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(h){for(var x=h.getAttribute("data-emotion").split(" "),w=1;w<x.length;w++)o[x[w]]=!0;s.push(h)});var l,u=[wO,CO];process.env.NODE_ENV!=="production"&&u.push(PO({get compat(){return y.compat}}),jO);{var c,f=[bO,process.env.NODE_ENV!=="production"?function(h){h.root||(h.return?c.insert(h.return):h.value&&h.type!==Ta&&c.insert(h.value+"{}"))}:_O(function(h){c.insert(h)})],p=xO(u.concat(i,f)),g=function(x){return _r(yO(x),p)};l=function(x,w,j,M){c=j,process.env.NODE_ENV!=="production"&&w.map!==void 0&&(c={insert:function(_){j.insert(_+w.map)}}),g(x?x+"{"+w.styles+"}":w.styles),M&&(y.inserted[w.name]=!0)}}var y={key:r,sheet:new nO({key:r,container:a,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:o,registered:{},insert:l};return y.sheet.hydrate(s),y};let Aa;typeof document=="object"&&(Aa=RO({key:"css",prepend:!0}));function kf(e){const{injectFirst:t,children:r}=e;return t&&Aa?d.jsx(Gt.CacheProvider,{value:Aa,children:r}):r}process.env.NODE_ENV!=="production"&&(kf.propTypes={children:H.node,injectFirst:H.bool});function DO(e){return e==null||Object.keys(e).length===0}function jf(e){const{styles:t,defaultTheme:r={}}=e,n=typeof t=="function"?i=>t(DO(i)?r:i):t;return d.jsx(Gt.Global,{styles:n})}process.env.NODE_ENV!=="production"&&(jf.propTypes={defaultTheme:H.object,styles:H.oneOfType([H.array,H.string,H.object,H.func])});/**
84
+ You may have forgotten to import it.`);var n=t.__emotion_real===t,i=n&&t.__emotion_base||t,o,a;r!==void 0&&(o=r.label,a=r.target);var s=yf(t,r,n),l=s||gf(i),u=!l("as");return function(){var f=arguments,c=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(o!==void 0&&c.push("label:"+o+";"),f[0]==null||f[0].raw===void 0)c.push.apply(c,f);else{process.env.NODE_ENV!=="production"&&f[0][0]===void 0&&console.error(vf),c.push(f[0][0]);for(var p=f.length,y=1;y<p;y++)process.env.NODE_ENV!=="production"&&f[0][y]===void 0&&console.error(vf),c.push(f[y],f[0][y])}var g=Gt.withEmotionCache(function(h,x,w){var k=u&&h.as||i,D="",N=[],_=h;if(h.theme==null){_={};for(var R in h)_[R]=h[R];_.theme=tt.useContext(Gt.ThemeContext)}typeof h.className=="string"?D=RC(x.registered,N,h.className):h.className!=null&&(D=h.className+" ");var F=GC(c.concat(N),x.registered,_);D+=x.key+"-"+F.name,a!==void 0&&(D+=" "+a);var J=u&&s===void 0?gf(k):l,ee={};for(var oe in h)u&&oe==="as"||J(oe)&&(ee[oe]=h[oe]);return ee.className=D,ee.ref=w,tt.createElement(tt.Fragment,null,tt.createElement(ZC,{cache:x,serialized:F,isStringTag:typeof k=="string"}),tt.createElement(k,ee))});return g.displayName=o!==void 0?o:"Styled("+(typeof i=="string"?i:i.displayName||i.name||"Component")+")",g.defaultProps=t.defaultProps,g.__emotion_real=g,g.__emotion_base=i,g.__emotion_styles=c,g.__emotion_forwardProp=s,Object.defineProperty(g,"toString",{value:function(){return a===void 0&&process.env.NODE_ENV!=="production"?"NO_COMPONENT_SELECTOR":"."+a}}),g.withComponent=function(h,x){return e(h,he({},r,x,{shouldForwardProp:yf(g,x,!0)})).apply(void 0,c)},g}},eO=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],_a=QC.bind();eO.forEach(function(e){_a[e]=_a(e)});function tO(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function rO(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var nO=function(){function e(r){var n=this;this._insertTag=function(i){var o;n.tags.length===0?n.insertionPoint?o=n.insertionPoint.nextSibling:n.prepend?o=n.container.firstChild:o=n.before:o=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(i,o),n.tags.push(i)},this.isSpeedy=r.speedy===void 0?process.env.NODE_ENV==="production":r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(n){n.forEach(this._insertTag)},t.insert=function(n){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(rO(this));var i=this.tags[this.tags.length-1];if(process.env.NODE_ENV!=="production"){var o=n.charCodeAt(0)===64&&n.charCodeAt(1)===105;o&&this._alreadyInsertedOrderInsensitiveRule&&console.error(`You're attempting to insert the following rule:
85
+ `+n+"\n\n`@import` rules must be before all other types of rules in a stylesheet but other rules have already been inserted. Please ensure that `@import` rules are before all other rules."),this._alreadyInsertedOrderInsensitiveRule=this._alreadyInsertedOrderInsensitiveRule||!o}if(this.isSpeedy){var a=tO(i);try{a.insertRule(n,a.cssRules.length)}catch(s){process.env.NODE_ENV!=="production"&&!/:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear|-ms-expand|-ms-reveal){/.test(n)&&console.error('There was a problem inserting the following rule: "'+n+'"',s)}}else i.appendChild(document.createTextNode(n));this.ctr++},t.flush=function(){this.tags.forEach(function(n){return n.parentNode&&n.parentNode.removeChild(n)}),this.tags=[],this.ctr=0,process.env.NODE_ENV!=="production"&&(this._alreadyInsertedOrderInsensitiveRule=!1)},e}(),Ue="-ms-",ai="-moz-",ae="-webkit-",Ta="comm",Ea="rule",Sa="decl",iO="@import",bf="@keyframes",oO="@layer",aO=Math.abs,si=String.fromCharCode,sO=Object.assign;function lO(e,t){return Me(e,0)^45?(((t<<2^Me(e,0))<<2^Me(e,1))<<2^Me(e,2))<<2^Me(e,3):0}function xf(e){return e.trim()}function uO(e,t){return(e=t.exec(e))?e[0]:e}function se(e,t,r){return e.replace(t,r)}function wa(e,t){return e.indexOf(t)}function Me(e,t){return e.charCodeAt(t)|0}function en(e,t,r){return e.slice(t,r)}function St(e){return e.length}function Ca(e){return e.length}function li(e,t){return t.push(e),e}function cO(e,t){return e.map(t).join("")}var ui=1,br=1,_f=0,Je=0,ke=0,xr="";function ci(e,t,r,n,i,o,a){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:ui,column:br,length:a,return:""}}function tn(e,t){return sO(ci("",null,null,"",null,null,0),e,{length:-e.length},t)}function fO(){return ke}function dO(){return ke=Je>0?Me(xr,--Je):0,br--,ke===10&&(br=1,ui--),ke}function nt(){return ke=Je<_f?Me(xr,Je++):0,br++,ke===10&&(br=1,ui++),ke}function wt(){return Me(xr,Je)}function fi(){return Je}function rn(e,t){return en(xr,e,t)}function nn(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Tf(e){return ui=br=1,_f=St(xr=e),Je=0,[]}function Ef(e){return xr="",e}function di(e){return xf(rn(Je-1,Oa(e===91?e+2:e===40?e+1:e)))}function pO(e){for(;(ke=wt())&&ke<33;)nt();return nn(e)>2||nn(ke)>3?"":" "}function hO(e,t){for(;--t&&nt()&&!(ke<48||ke>102||ke>57&&ke<65||ke>70&&ke<97););return rn(e,fi()+(t<6&&wt()==32&&nt()==32))}function Oa(e){for(;nt();)switch(ke){case e:return Je;case 34:case 39:e!==34&&e!==39&&Oa(ke);break;case 40:e===41&&Oa(e);break;case 92:nt();break}return Je}function mO(e,t){for(;nt()&&e+ke!==47+10;)if(e+ke===42+42&&wt()===47)break;return"/*"+rn(t,Je-1)+"*"+si(e===47?e:nt())}function gO(e){for(;!nn(wt());)nt();return rn(e,Je)}function yO(e){return Ef(pi("",null,null,null,[""],e=Tf(e),0,[0],e))}function pi(e,t,r,n,i,o,a,s,l){for(var u=0,f=0,c=a,p=0,y=0,g=0,h=1,x=1,w=1,k=0,D="",N=i,_=o,R=n,F=D;x;)switch(g=k,k=nt()){case 40:if(g!=108&&Me(F,c-1)==58){wa(F+=se(di(k),"&","&\f"),"&\f")!=-1&&(w=-1);break}case 34:case 39:case 91:F+=di(k);break;case 9:case 10:case 13:case 32:F+=pO(g);break;case 92:F+=hO(fi()-1,7);continue;case 47:switch(wt()){case 42:case 47:li(vO(mO(nt(),fi()),t,r),l);break;default:F+="/"}break;case 123*h:s[u++]=St(F)*w;case 125*h:case 59:case 0:switch(k){case 0:case 125:x=0;case 59+f:w==-1&&(F=se(F,/\f/g,"")),y>0&&St(F)-c&&li(y>32?wf(F+";",n,r,c-1):wf(se(F," ","")+";",n,r,c-2),l);break;case 59:F+=";";default:if(li(R=Sf(F,t,r,u,f,i,s,D,N=[],_=[],c),o),k===123)if(f===0)pi(F,t,R,R,N,o,c,s,_);else switch(p===99&&Me(F,3)===110?100:p){case 100:case 108:case 109:case 115:pi(e,R,R,n&&li(Sf(e,R,R,0,0,i,s,D,i,N=[],c),_),i,_,c,s,n?N:_);break;default:pi(F,R,R,R,[""],_,0,s,_)}}u=f=y=0,h=w=1,D=F="",c=a;break;case 58:c=1+St(F),y=g;default:if(h<1){if(k==123)--h;else if(k==125&&h++==0&&dO()==125)continue}switch(F+=si(k),k*h){case 38:w=f>0?1:(F+="\f",-1);break;case 44:s[u++]=(St(F)-1)*w,w=1;break;case 64:wt()===45&&(F+=di(nt())),p=wt(),f=c=St(D=F+=gO(fi())),k++;break;case 45:g===45&&St(F)==2&&(h=0)}}return o}function Sf(e,t,r,n,i,o,a,s,l,u,f){for(var c=i-1,p=i===0?o:[""],y=Ca(p),g=0,h=0,x=0;g<n;++g)for(var w=0,k=en(e,c+1,c=aO(h=a[g])),D=e;w<y;++w)(D=xf(h>0?p[w]+" "+k:se(k,/&\f/g,p[w])))&&(l[x++]=D);return ci(e,t,r,i===0?Ea:s,l,u,f)}function vO(e,t,r){return ci(e,t,r,Ta,si(fO()),en(e,2,-2),0)}function wf(e,t,r,n){return ci(e,t,r,Sa,en(e,0,n),en(e,n+1,-1),n)}function _r(e,t){for(var r="",n=Ca(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function bO(e,t,r,n){switch(e.type){case oO:if(e.children.length)break;case iO:case Sa:return e.return=e.return||e.value;case Ta:return"";case bf:return e.return=e.value+"{"+_r(e.children,n)+"}";case Ea:e.value=e.props.join(",")}return St(r=_r(e.children,n))?e.return=e.value+"{"+r+"}":""}function xO(e){var t=Ca(e);return function(r,n,i,o){for(var a="",s=0;s<t;s++)a+=e[s](r,n,i,o)||"";return a}}function _O(e){return function(t){t.root||(t=t.return)&&e(t)}}var TO=function(t,r,n){for(var i=0,o=0;i=o,o=wt(),i===38&&o===12&&(r[n]=1),!nn(o);)nt();return rn(t,Je)},EO=function(t,r){var n=-1,i=44;do switch(nn(i)){case 0:i===38&&wt()===12&&(r[n]=1),t[n]+=TO(Je-1,r,n);break;case 2:t[n]+=di(i);break;case 4:if(i===44){t[++n]=wt()===58?"&\f":"",r[n]=t[n].length;break}default:t[n]+=si(i)}while(i=nt());return t},SO=function(t,r){return Ef(EO(Tf(t),r))},Cf=new WeakMap,wO=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var r=t.value,n=t.parent,i=t.column===n.column&&t.line===n.line;n.type!=="rule";)if(n=n.parent,!n)return;if(!(t.props.length===1&&r.charCodeAt(0)!==58&&!Cf.get(n))&&!i){Cf.set(t,!0);for(var o=[],a=SO(r,o),s=n.props,l=0,u=0;l<a.length;l++)for(var f=0;f<s.length;f++,u++)t.props[u]=o[l]?a[l].replace(/&\f/g,s[f]):s[f]+" "+a[l]}}},CO=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}},OO="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",AO=function(t){return t.type==="comm"&&t.children.indexOf(OO)>-1},PO=function(t){return function(r,n,i){if(!(r.type!=="rule"||t.compat)){var o=r.value.match(/(:first|:nth|:nth-last)-child/g);if(o){for(var a=!!r.parent,s=a?r.parent.children:i,l=s.length-1;l>=0;l--){var u=s[l];if(u.line<r.line)break;if(u.column<r.column){if(AO(u))return;break}}o.forEach(function(f){console.error('The pseudo class "'+f+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+f.split("-child")[0]+'-of-type".')})}}}},Of=function(t){return t.type.charCodeAt(1)===105&&t.type.charCodeAt(0)===64},kO=function(t,r){for(var n=t-1;n>=0;n--)if(!Of(r[n]))return!0;return!1},Af=function(t){t.type="",t.value="",t.return="",t.children="",t.props=""},jO=function(t,r,n){Of(t)&&(t.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),Af(t)):kO(r,n)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),Af(t)))};function Pf(e,t){switch(lO(e,t)){case 5103:return ae+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return ae+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return ae+e+ai+e+Ue+e+e;case 6828:case 4268:return ae+e+Ue+e+e;case 6165:return ae+e+Ue+"flex-"+e+e;case 5187:return ae+e+se(e,/(\w+).+(:[^]+)/,ae+"box-$1$2"+Ue+"flex-$1$2")+e;case 5443:return ae+e+Ue+"flex-item-"+se(e,/flex-|-self/,"")+e;case 4675:return ae+e+Ue+"flex-line-pack"+se(e,/align-content|flex-|-self/,"")+e;case 5548:return ae+e+Ue+se(e,"shrink","negative")+e;case 5292:return ae+e+Ue+se(e,"basis","preferred-size")+e;case 6060:return ae+"box-"+se(e,"-grow","")+ae+e+Ue+se(e,"grow","positive")+e;case 4554:return ae+se(e,/([^-])(transform)/g,"$1"+ae+"$2")+e;case 6187:return se(se(se(e,/(zoom-|grab)/,ae+"$1"),/(image-set)/,ae+"$1"),e,"")+e;case 5495:case 3959:return se(e,/(image-set\([^]*)/,ae+"$1$`$1");case 4968:return se(se(e,/(.+:)(flex-)?(.*)/,ae+"box-pack:$3"+Ue+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ae+e+e;case 4095:case 3583:case 4068:case 2532:return se(e,/(.+)-inline(.+)/,ae+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(St(e)-1-t>6)switch(Me(e,t+1)){case 109:if(Me(e,t+4)!==45)break;case 102:return se(e,/(.+:)(.+)-([^]+)/,"$1"+ae+"$2-$3$1"+ai+(Me(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~wa(e,"stretch")?Pf(se(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Me(e,t+1)!==115)break;case 6444:switch(Me(e,St(e)-3-(~wa(e,"!important")&&10))){case 107:return se(e,":",":"+ae)+e;case 101:return se(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ae+(Me(e,14)===45?"inline-":"")+"box$3$1"+ae+"$2$3$1"+Ue+"$2box$3")+e}break;case 5936:switch(Me(e,t+11)){case 114:return ae+e+Ue+se(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ae+e+Ue+se(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ae+e+Ue+se(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ae+e+Ue+e+e}return e}var IO=function(t,r,n,i){if(t.length>-1&&!t.return)switch(t.type){case Sa:t.return=Pf(t.value,t.length);break;case bf:return _r([tn(t,{value:se(t.value,"@","@"+ae)})],i);case Ea:if(t.length)return cO(t.props,function(o){switch(uO(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return _r([tn(t,{props:[se(o,/:(read-\w+)/,":"+ai+"$1")]})],i);case"::placeholder":return _r([tn(t,{props:[se(o,/:(plac\w+)/,":"+ae+"input-$1")]}),tn(t,{props:[se(o,/:(plac\w+)/,":"+ai+"$1")]}),tn(t,{props:[se(o,/:(plac\w+)/,Ue+"input-$1")]})],i)}return""})}},$O=[IO],RO=function(t){var r=t.key;if(process.env.NODE_ENV!=="production"&&!r)throw new Error(`You have to configure \`key\` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.
86
+ If multiple caches share the same key they might "fight" for each other's style elements.`);if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(h){var x=h.getAttribute("data-emotion");x.indexOf(" ")!==-1&&(document.head.appendChild(h),h.setAttribute("data-s",""))})}var i=t.stylisPlugins||$O;if(process.env.NODE_ENV!=="production"&&/[^a-z-]/.test(r))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+r+'" was passed');var o={},a,s=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(h){for(var x=h.getAttribute("data-emotion").split(" "),w=1;w<x.length;w++)o[x[w]]=!0;s.push(h)});var l,u=[wO,CO];process.env.NODE_ENV!=="production"&&u.push(PO({get compat(){return g.compat}}),jO);{var f,c=[bO,process.env.NODE_ENV!=="production"?function(h){h.root||(h.return?f.insert(h.return):h.value&&h.type!==Ta&&f.insert(h.value+"{}"))}:_O(function(h){f.insert(h)})],p=xO(u.concat(i,c)),y=function(x){return _r(yO(x),p)};l=function(x,w,k,D){f=k,process.env.NODE_ENV!=="production"&&w.map!==void 0&&(f={insert:function(_){k.insert(_+w.map)}}),y(x?x+"{"+w.styles+"}":w.styles),D&&(g.inserted[w.name]=!0)}}var g={key:r,sheet:new nO({key:r,container:a,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:o,registered:{},insert:l};return g.sheet.hydrate(s),g};let Aa;typeof document=="object"&&(Aa=RO({key:"css",prepend:!0}));function kf(e){const{injectFirst:t,children:r}=e;return t&&Aa?d.jsx(Gt.CacheProvider,{value:Aa,children:r}):r}process.env.NODE_ENV!=="production"&&(kf.propTypes={children:H.node,injectFirst:H.bool});function DO(e){return e==null||Object.keys(e).length===0}function jf(e){const{styles:t,defaultTheme:r={}}=e,n=typeof t=="function"?i=>t(DO(i)?r:i):t;return d.jsx(Gt.Global,{styles:n})}process.env.NODE_ENV!=="production"&&(jf.propTypes={defaultTheme:H.object,styles:H.oneOfType([H.array,H.string,H.object,H.func])});/**
87
87
  * @mui/styled-engine v5.16.4
88
88
  *
89
89
  * @license MIT
90
90
  * This source code is licensed under the MIT license found in the
91
91
  * LICENSE file in the root directory of this source tree.
92
92
  */function MO(e,t){const r=_a(e,t);return process.env.NODE_ENV!=="production"?(...n)=>{const i=typeof e=="string"?`"${e}"`:"component";return n.length===0?console.error([`MUI: Seems like you called \`styled(${i})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
93
- `)):n.some(o=>o===void 0)&&console.error(`MUI: the styled(${i})(...args) API requires all its args to be defined.`),r(...n)}:r}const NO=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},FO=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:jf,StyledEngineProvider:kf,ThemeContext:Gt.ThemeContext,css:Gt.css,default:MO,internal_processStyles:NO,keyframes:Gt.keyframes},Symbol.toStringTag,{value:"Module"})),LO=Dt(FO),zO=Dt(cC),UO=Dt(yC),VO=Dt(gC),BO=["values","unit","step"],WO=e=>{const t=Object.keys(e).map(r=>({key:r,val:e[r]}))||[];return t.sort((r,n)=>r.val-n.val),t.reduce((r,n)=>pe({},r,{[n.key]:n.val}),{})};function If(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,i=Ut(e,BO),o=WO(t),a=Object.keys(o);function s(p){return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${r})`}function l(p){return`@media (max-width:${(typeof t[p]=="number"?t[p]:p)-n/100}${r})`}function u(p,g){const y=a.indexOf(g);return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${r}) and (max-width:${(y!==-1&&typeof t[a[y]]=="number"?t[a[y]]:g)-n/100}${r})`}function c(p){return a.indexOf(p)+1<a.length?u(p,a[a.indexOf(p)+1]):s(p)}function f(p){const g=a.indexOf(p);return g===0?s(a[1]):g===a.length-1?l(a[g]):u(p,a[a.indexOf(p)+1]).replace("@media","@media not all and")}return pe({keys:a,values:o,up:s,down:l,between:u,only:c,not:f,unit:r},i)}const HO={borderRadius:4},Vt=process.env.NODE_ENV!=="production"?H.oneOfType([H.number,H.string,H.object,H.array]):{};function on(e,t){return t?Et(e,t,{clone:!1}):e}const Pa={xs:0,sm:600,md:900,lg:1200,xl:1536},$f={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Pa[e]}px)`};function kt(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const o=n.breakpoints||$f;return t.reduce((a,s,l)=>(a[o.up(o.keys[l])]=r(t[l]),a),{})}if(typeof t=="object"){const o=n.breakpoints||$f;return Object.keys(t).reduce((a,s)=>{if(Object.keys(o.values||Pa).indexOf(s)!==-1){const l=o.up(s);a[l]=r(t[s],s)}else{const l=s;a[l]=t[l]}return a},{})}return r(t)}function GO(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((n,i)=>{const o=e.up(i);return n[o]={},n},{}))||{}}function qO(e,t){return e.reduce((r,n)=>{const i=r[n];return(!i||Object.keys(i).length===0)&&delete r[n],r},t)}function hi(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const n=`vars.${t}`.split(".").reduce((i,o)=>i&&i[o]?i[o]:null,e);if(n!=null)return n}return t.split(".").reduce((n,i)=>n&&n[i]!=null?n[i]:null,e)}function mi(e,t,r,n=r){let i;return typeof e=="function"?i=e(r):Array.isArray(e)?i=e[r]||n:i=hi(e,r)||n,t&&(i=t(i,n,e)),i}function we(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:i}=e,o=a=>{if(a[t]==null)return null;const s=a[t],l=a.theme,u=hi(l,n)||{};return kt(a,s,f=>{let p=mi(u,i,f);return f===p&&typeof f=="string"&&(p=mi(u,i,`${t}${f==="default"?"":tr(f)}`,f)),r===!1?p:{[r]:p}})};return o.propTypes=process.env.NODE_ENV!=="production"?{[t]:Vt}:{},o.filterProps=[t],o}function YO(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const KO={m:"margin",p:"padding"},XO={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Rf={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},JO=YO(e=>{if(e.length>2)if(Rf[e])e=Rf[e];else return[e];const[t,r]=e.split(""),n=KO[t],i=XO[r]||"";return Array.isArray(i)?i.map(o=>n+o):[n+i]}),gi=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],yi=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],ZO=[...gi,...yi];function an(e,t,r,n){var i;const o=(i=hi(e,t,!1))!=null?i:r;return typeof o=="number"?a=>typeof a=="string"?a:(process.env.NODE_ENV!=="production"&&typeof a!="number"&&console.error(`MUI: Expected ${n} argument to be a number or a string, got ${a}.`),o*a):Array.isArray(o)?a=>typeof a=="string"?a:(process.env.NODE_ENV!=="production"&&(Number.isInteger(a)?a>o.length-1&&console.error([`MUI: The value provided (${a}) overflows.`,`The supported values are: ${JSON.stringify(o)}.`,`${a} > ${o.length-1}, you need to add the missing values.`].join(`
93
+ `)):n.some(o=>o===void 0)&&console.error(`MUI: the styled(${i})(...args) API requires all its args to be defined.`),r(...n)}:r}const NO=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},FO=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:jf,StyledEngineProvider:kf,ThemeContext:Gt.ThemeContext,css:Gt.css,default:MO,internal_processStyles:NO,keyframes:Gt.keyframes},Symbol.toStringTag,{value:"Module"})),LO=Dt(FO),zO=Dt(cC),UO=Dt(yC),VO=Dt(gC),BO=["values","unit","step"],WO=e=>{const t=Object.keys(e).map(r=>({key:r,val:e[r]}))||[];return t.sort((r,n)=>r.val-n.val),t.reduce((r,n)=>he({},r,{[n.key]:n.val}),{})};function If(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,i=Ut(e,BO),o=WO(t),a=Object.keys(o);function s(p){return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${r})`}function l(p){return`@media (max-width:${(typeof t[p]=="number"?t[p]:p)-n/100}${r})`}function u(p,y){const g=a.indexOf(y);return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${r}) and (max-width:${(g!==-1&&typeof t[a[g]]=="number"?t[a[g]]:y)-n/100}${r})`}function f(p){return a.indexOf(p)+1<a.length?u(p,a[a.indexOf(p)+1]):s(p)}function c(p){const y=a.indexOf(p);return y===0?s(a[1]):y===a.length-1?l(a[y]):u(p,a[a.indexOf(p)+1]).replace("@media","@media not all and")}return he({keys:a,values:o,up:s,down:l,between:u,only:f,not:c,unit:r},i)}const HO={borderRadius:4},Vt=process.env.NODE_ENV!=="production"?H.oneOfType([H.number,H.string,H.object,H.array]):{};function on(e,t){return t?Et(e,t,{clone:!1}):e}const Pa={xs:0,sm:600,md:900,lg:1200,xl:1536},$f={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Pa[e]}px)`};function kt(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const o=n.breakpoints||$f;return t.reduce((a,s,l)=>(a[o.up(o.keys[l])]=r(t[l]),a),{})}if(typeof t=="object"){const o=n.breakpoints||$f;return Object.keys(t).reduce((a,s)=>{if(Object.keys(o.values||Pa).indexOf(s)!==-1){const l=o.up(s);a[l]=r(t[s],s)}else{const l=s;a[l]=t[l]}return a},{})}return r(t)}function GO(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((n,i)=>{const o=e.up(i);return n[o]={},n},{}))||{}}function qO(e,t){return e.reduce((r,n)=>{const i=r[n];return(!i||Object.keys(i).length===0)&&delete r[n],r},t)}function hi(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const n=`vars.${t}`.split(".").reduce((i,o)=>i&&i[o]?i[o]:null,e);if(n!=null)return n}return t.split(".").reduce((n,i)=>n&&n[i]!=null?n[i]:null,e)}function mi(e,t,r,n=r){let i;return typeof e=="function"?i=e(r):Array.isArray(e)?i=e[r]||n:i=hi(e,r)||n,t&&(i=t(i,n,e)),i}function Ce(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:i}=e,o=a=>{if(a[t]==null)return null;const s=a[t],l=a.theme,u=hi(l,n)||{};return kt(a,s,c=>{let p=mi(u,i,c);return c===p&&typeof c=="string"&&(p=mi(u,i,`${t}${c==="default"?"":tr(c)}`,c)),r===!1?p:{[r]:p}})};return o.propTypes=process.env.NODE_ENV!=="production"?{[t]:Vt}:{},o.filterProps=[t],o}function YO(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const KO={m:"margin",p:"padding"},XO={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Rf={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},JO=YO(e=>{if(e.length>2)if(Rf[e])e=Rf[e];else return[e];const[t,r]=e.split(""),n=KO[t],i=XO[r]||"";return Array.isArray(i)?i.map(o=>n+o):[n+i]}),gi=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],yi=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],ZO=[...gi,...yi];function an(e,t,r,n){var i;const o=(i=hi(e,t,!1))!=null?i:r;return typeof o=="number"?a=>typeof a=="string"?a:(process.env.NODE_ENV!=="production"&&typeof a!="number"&&console.error(`MUI: Expected ${n} argument to be a number or a string, got ${a}.`),o*a):Array.isArray(o)?a=>typeof a=="string"?a:(process.env.NODE_ENV!=="production"&&(Number.isInteger(a)?a>o.length-1&&console.error([`MUI: The value provided (${a}) overflows.`,`The supported values are: ${JSON.stringify(o)}.`,`${a} > ${o.length-1}, you need to add the missing values.`].join(`
94
94
  `)):console.error([`MUI: The \`theme.${t}\` array type cannot be combined with non integer values.You should either use an integer value that can be used as index, or define the \`theme.${t}\` as a number.`].join(`
95
95
  `))),o[a]):typeof o=="function"?o:(process.env.NODE_ENV!=="production"&&console.error([`MUI: The \`theme.${t}\` value (${o}) is invalid.`,"It should be a number, an array or a function."].join(`
96
- `)),()=>{})}function Df(e){return an(e,"spacing",8,"spacing")}function sn(e,t){if(typeof t=="string"||t==null)return t;const r=Math.abs(t),n=e(r);return t>=0?n:typeof n=="number"?-n:`-${n}`}function QO(e,t){return r=>e.reduce((n,i)=>(n[i]=sn(t,r),n),{})}function eA(e,t,r,n){if(t.indexOf(r)===-1)return null;const i=JO(r),o=QO(i,n),a=e[r];return kt(e,a,o)}function Mf(e,t){const r=Df(e.theme);return Object.keys(e).map(n=>eA(e,t,n,r)).reduce(on,{})}function Te(e){return Mf(e,gi)}Te.propTypes=process.env.NODE_ENV!=="production"?gi.reduce((e,t)=>(e[t]=Vt,e),{}):{},Te.filterProps=gi;function Ee(e){return Mf(e,yi)}Ee.propTypes=process.env.NODE_ENV!=="production"?yi.reduce((e,t)=>(e[t]=Vt,e),{}):{},Ee.filterProps=yi,process.env.NODE_ENV!=="production"&&ZO.reduce((e,t)=>(e[t]=Vt,e),{});function tA(e=8){if(e.mui)return e;const t=Df({spacing:e}),r=(...n)=>(process.env.NODE_ENV!=="production"&&(n.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${n.length}`)),(n.length===0?[1]:n).map(o=>{const a=t(o);return typeof a=="number"?`${a}px`:a}).join(" "));return r.mui=!0,r}function vi(...e){const t=e.reduce((n,i)=>(i.filterProps.forEach(o=>{n[o]=i}),n),{}),r=n=>Object.keys(n).reduce((i,o)=>t[o]?on(i,t[o](n)):i,{});return r.propTypes=process.env.NODE_ENV!=="production"?e.reduce((n,i)=>Object.assign(n,i.propTypes),{}):{},r.filterProps=e.reduce((n,i)=>n.concat(i.filterProps),[]),r}function lt(e){return typeof e!="number"?e:`${e}px solid`}function ut(e,t){return we({prop:e,themeKey:"borders",transform:t})}const rA=ut("border",lt),nA=ut("borderTop",lt),iA=ut("borderRight",lt),oA=ut("borderBottom",lt),aA=ut("borderLeft",lt),sA=ut("borderColor"),lA=ut("borderTopColor"),uA=ut("borderRightColor"),cA=ut("borderBottomColor"),fA=ut("borderLeftColor"),dA=ut("outline",lt),pA=ut("outlineColor"),bi=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=an(e.theme,"shape.borderRadius",4,"borderRadius"),r=n=>({borderRadius:sn(t,n)});return kt(e,e.borderRadius,r)}return null};bi.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:Vt}:{},bi.filterProps=["borderRadius"],vi(rA,nA,iA,oA,aA,sA,lA,uA,cA,fA,bi,dA,pA);const xi=e=>{if(e.gap!==void 0&&e.gap!==null){const t=an(e.theme,"spacing",8,"gap"),r=n=>({gap:sn(t,n)});return kt(e,e.gap,r)}return null};xi.propTypes=process.env.NODE_ENV!=="production"?{gap:Vt}:{},xi.filterProps=["gap"];const _i=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=an(e.theme,"spacing",8,"columnGap"),r=n=>({columnGap:sn(t,n)});return kt(e,e.columnGap,r)}return null};_i.propTypes=process.env.NODE_ENV!=="production"?{columnGap:Vt}:{},_i.filterProps=["columnGap"];const Ti=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=an(e.theme,"spacing",8,"rowGap"),r=n=>({rowGap:sn(t,n)});return kt(e,e.rowGap,r)}return null};Ti.propTypes=process.env.NODE_ENV!=="production"?{rowGap:Vt}:{},Ti.filterProps=["rowGap"];const hA=we({prop:"gridColumn"}),mA=we({prop:"gridRow"}),gA=we({prop:"gridAutoFlow"}),yA=we({prop:"gridAutoColumns"}),vA=we({prop:"gridAutoRows"}),bA=we({prop:"gridTemplateColumns"}),xA=we({prop:"gridTemplateRows"}),_A=we({prop:"gridTemplateAreas"}),TA=we({prop:"gridArea"});vi(xi,_i,Ti,hA,mA,gA,yA,vA,bA,xA,_A,TA);function Tr(e,t){return t==="grey"?t:e}const EA=we({prop:"color",themeKey:"palette",transform:Tr}),SA=we({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Tr}),wA=we({prop:"backgroundColor",themeKey:"palette",transform:Tr});vi(EA,SA,wA);function it(e){return e<=1&&e!==0?`${e*100}%`:e}const CA=we({prop:"width",transform:it}),ka=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{var n,i;const o=((n=e.theme)==null||(n=n.breakpoints)==null||(n=n.values)==null?void 0:n[r])||Pa[r];return o?((i=e.theme)==null||(i=i.breakpoints)==null?void 0:i.unit)!=="px"?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:it(r)}};return kt(e,e.maxWidth,t)}return null};ka.filterProps=["maxWidth"];const OA=we({prop:"minWidth",transform:it}),AA=we({prop:"height",transform:it}),PA=we({prop:"maxHeight",transform:it}),kA=we({prop:"minHeight",transform:it});we({prop:"size",cssProperty:"width",transform:it}),we({prop:"size",cssProperty:"height",transform:it});const jA=we({prop:"boxSizing"});vi(CA,ka,OA,AA,PA,kA,jA);const ln={border:{themeKey:"borders",transform:lt},borderTop:{themeKey:"borders",transform:lt},borderRight:{themeKey:"borders",transform:lt},borderBottom:{themeKey:"borders",transform:lt},borderLeft:{themeKey:"borders",transform:lt},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:lt},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:bi},color:{themeKey:"palette",transform:Tr},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Tr},backgroundColor:{themeKey:"palette",transform:Tr},p:{style:Ee},pt:{style:Ee},pr:{style:Ee},pb:{style:Ee},pl:{style:Ee},px:{style:Ee},py:{style:Ee},padding:{style:Ee},paddingTop:{style:Ee},paddingRight:{style:Ee},paddingBottom:{style:Ee},paddingLeft:{style:Ee},paddingX:{style:Ee},paddingY:{style:Ee},paddingInline:{style:Ee},paddingInlineStart:{style:Ee},paddingInlineEnd:{style:Ee},paddingBlock:{style:Ee},paddingBlockStart:{style:Ee},paddingBlockEnd:{style:Ee},m:{style:Te},mt:{style:Te},mr:{style:Te},mb:{style:Te},ml:{style:Te},mx:{style:Te},my:{style:Te},margin:{style:Te},marginTop:{style:Te},marginRight:{style:Te},marginBottom:{style:Te},marginLeft:{style:Te},marginX:{style:Te},marginY:{style:Te},marginInline:{style:Te},marginInlineStart:{style:Te},marginInlineEnd:{style:Te},marginBlock:{style:Te},marginBlockStart:{style:Te},marginBlockEnd:{style:Te},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:xi},rowGap:{style:Ti},columnGap:{style:_i},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:it},maxWidth:{style:ka},minWidth:{transform:it},height:{transform:it},maxHeight:{transform:it},minHeight:{transform:it},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function IA(...e){const t=e.reduce((n,i)=>n.concat(Object.keys(i)),[]),r=new Set(t);return e.every(n=>r.size===Object.keys(n).length)}function $A(e,t){return typeof e=="function"?e(t):e}function Nf(){function e(r,n,i,o){const a={[r]:n,theme:i},s=o[r];if(!s)return{[r]:n};const{cssProperty:l=r,themeKey:u,transform:c,style:f}=s;if(n==null)return null;if(u==="typography"&&n==="inherit")return{[r]:n};const p=hi(i,u)||{};return f?f(a):kt(a,n,y=>{let h=mi(p,c,y);return y===h&&typeof y=="string"&&(h=mi(p,c,`${r}${y==="default"?"":tr(y)}`,y)),l===!1?h:{[l]:h}})}function t(r){var n;const{sx:i,theme:o={}}=r||{};if(!i)return null;const a=(n=o.unstable_sxConfig)!=null?n:ln;function s(l){let u=l;if(typeof l=="function")u=l(o);else if(typeof l!="object")return l;if(!u)return null;const c=GO(o.breakpoints),f=Object.keys(c);let p=c;return Object.keys(u).forEach(g=>{const y=$A(u[g],o);if(y!=null)if(typeof y=="object")if(a[g])p=on(p,e(g,y,o,a));else{const h=kt({theme:o},y,x=>({[g]:x}));IA(h,y)?p[g]=t({sx:y,theme:o}):p=on(p,h)}else p=on(p,e(g,y,o,a))}),qO(f,p)}return Array.isArray(i)?i.map(s):s(i)}return t}const Ff=Nf();Ff.filterProps=["sx"];const ja=Ff;function Lf(e,t){const r=this;return r.vars&&typeof r.getColorSchemeSelector=="function"?{[r.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:r.palette.mode===e?t:{}}const RA=["breakpoints","palette","spacing","shape"];function zf(e={},...t){const{breakpoints:r={},palette:n={},spacing:i,shape:o={}}=e,a=Ut(e,RA),s=If(r),l=tA(i);let u=Et({breakpoints:s,direction:"ltr",components:{},palette:pe({mode:"light"},n),spacing:l,shape:pe({},HO,o)},a);return u.applyStyles=Lf,u=t.reduce((c,f)=>Et(c,f),u),u.unstable_sxConfig=pe({},ln,a==null?void 0:a.unstable_sxConfig),u.unstable_sx=function(f){return ja({sx:f,theme:this})},u}const DA=Dt(Object.freeze(Object.defineProperty({__proto__:null,default:zf,private_createBreakpoints:If,unstable_applyStyles:Lf},Symbol.toStringTag,{value:"Module"}))),MA=["sx"],NA=e=>{var t,r;const n={systemProps:{},otherProps:{}},i=(t=e==null||(r=e.theme)==null?void 0:r.unstable_sxConfig)!=null?t:ln;return Object.keys(e).forEach(o=>{i[o]?n.systemProps[o]=e[o]:n.otherProps[o]=e[o]}),n};function FA(e){const{sx:t}=e,r=Ut(e,MA),{systemProps:n,otherProps:i}=NA(r);let o;return Array.isArray(t)?o=[n,...t]:typeof t=="function"?o=(...a)=>{const s=t(...a);return zt(s)?pe({},n,s):n}:o=pe({},n,t),pe({},i,{sx:o})}const LA=Dt(Object.freeze(Object.defineProperty({__proto__:null,default:ja,extendSxProp:FA,unstable_createStyleFunctionSx:Nf,unstable_defaultSxConfig:ln},Symbol.toStringTag,{value:"Module"})));var Er=nf;Object.defineProperty(Zr,"__esModule",{value:!0});var zA=Zr.default=eP;Zr.shouldForwardProp=Ei,Zr.systemDefaultTheme=void 0;var ct=Er(PC()),Ia=Er(kC()),Uf=KA(LO),UA=zO,VA=Er(UO),BA=Er(VO),WA=Er(DA),HA=Er(LA);const GA=["ownerState"],qA=["variants"],YA=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Vf(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(Vf=function(n){return n?r:t})(e)}function KA(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=Vf(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(o!=="default"&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}return n.default=e,r&&r.set(e,n),n}function XA(e){return Object.keys(e).length===0}function JA(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Ei(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const ZA=Zr.systemDefaultTheme=(0,WA.default)(),Bf=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Si({defaultTheme:e,theme:t,themeId:r}){return XA(t)?e:t[r]||t}function QA(e){return e?(t,r)=>r[e]:null}function wi(e,t){let{ownerState:r}=t,n=(0,Ia.default)(t,GA);const i=typeof e=="function"?e((0,ct.default)({ownerState:r},n)):e;if(Array.isArray(i))return i.flatMap(o=>wi(o,(0,ct.default)({ownerState:r},n)));if(i&&typeof i=="object"&&Array.isArray(i.variants)){const{variants:o=[]}=i;let s=(0,Ia.default)(i,qA);return o.forEach(l=>{let u=!0;typeof l.props=="function"?u=l.props((0,ct.default)({ownerState:r},n,r)):Object.keys(l.props).forEach(c=>{(r==null?void 0:r[c])!==l.props[c]&&n[c]!==l.props[c]&&(u=!1)}),u&&(Array.isArray(s)||(s=[s]),s.push(typeof l.style=="function"?l.style((0,ct.default)({ownerState:r},n,r)):l.style))}),s}return i}function eP(e={}){const{themeId:t,defaultTheme:r=ZA,rootShouldForwardProp:n=Ei,slotShouldForwardProp:i=Ei}=e,o=a=>(0,HA.default)((0,ct.default)({},a,{theme:Si((0,ct.default)({},a,{defaultTheme:r,themeId:t}))}));return o.__mui_systemSx=!0,(a,s={})=>{(0,Uf.internal_processStyles)(a,_=>_.filter(P=>!(P!=null&&P.__mui_systemSx)));const{name:l,slot:u,skipVariantsResolver:c,skipSx:f,overridesResolver:p=QA(Bf(u))}=s,g=(0,Ia.default)(s,YA),y=c!==void 0?c:u&&u!=="Root"&&u!=="root"||!1,h=f||!1;let x;process.env.NODE_ENV!=="production"&&l&&(x=`${l}-${Bf(u||"Root")}`);let w=Ei;u==="Root"||u==="root"?w=n:u?w=i:JA(a)&&(w=void 0);const j=(0,Uf.default)(a,(0,ct.default)({shouldForwardProp:w,label:x},g)),M=_=>typeof _=="function"&&_.__emotion_real!==_||(0,UA.isPlainObject)(_)?P=>wi(_,(0,ct.default)({},P,{theme:Si({theme:P.theme,defaultTheme:r,themeId:t})})):_,F=(_,...P)=>{let D=M(_);const te=P?P.map(M):[];l&&p&&te.push(U=>{const se=Si((0,ct.default)({},U,{defaultTheme:r,themeId:t}));if(!se.components||!se.components[l]||!se.components[l].styleOverrides)return null;const he=se.components[l].styleOverrides,ge={};return Object.entries(he).forEach(([qe,je])=>{ge[qe]=wi(je,(0,ct.default)({},U,{theme:se}))}),p(U,ge)}),l&&!y&&te.push(U=>{var se;const he=Si((0,ct.default)({},U,{defaultTheme:r,themeId:t})),ge=he==null||(se=he.components)==null||(se=se[l])==null?void 0:se.variants;return wi({variants:ge},(0,ct.default)({},U,{theme:he}))}),h||te.push(o);const ae=te.length-P.length;if(Array.isArray(_)&&ae>0){const U=new Array(ae).fill("");D=[..._,...U],D.raw=[..._.raw,...U]}const Oe=j(D,...te);if(process.env.NODE_ENV!=="production"){let U;l&&(U=`${l}${(0,VA.default)(u||"")}`),U===void 0&&(U=`Styled(${(0,BA.default)(a)})`),Oe.displayName=U}return a.muiName&&(Oe.muiName=a.muiName),Oe};return j.withConfig&&(F.withConfig=j.withConfig),F}}function tP(e,t){return pe({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var Ce={};const rP=Dt(fC),nP=Dt(EC);var Wf=nf;Object.defineProperty(Ce,"__esModule",{value:!0}),Ce.alpha=Xf,Ce.blend=mP,Ce.colorChannel=void 0;var iP=Ce.darken=Ra;Ce.decomposeColor=ft,Ce.emphasize=Jf;var Hf=Ce.getContrastRatio=cP;Ce.getLuminance=Ci,Ce.hexToRgb=qf,Ce.hslToRgb=Kf;var oP=Ce.lighten=Da;Ce.private_safeAlpha=fP,Ce.private_safeColorChannel=void 0,Ce.private_safeDarken=dP,Ce.private_safeEmphasize=hP,Ce.private_safeLighten=pP,Ce.recomposeColor=Sr,Ce.rgbToHex=uP;var Gf=Wf(rP),aP=Wf(nP);function $a(e,t=0,r=1){return process.env.NODE_ENV!=="production"&&(e<t||e>r)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${r}].`),(0,aP.default)(e,t,r)}function qf(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&r[0].length===1&&(r=r.map(n=>n+n)),r?`rgb${r.length===4?"a":""}(${r.map((n,i)=>i<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function sP(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function ft(e){if(e.type)return e;if(e.charAt(0)==="#")return ft(qf(e));const t=e.indexOf("("),r=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(r)===-1)throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${e}\` color.
96
+ `)),()=>{})}function Df(e){return an(e,"spacing",8,"spacing")}function sn(e,t){if(typeof t=="string"||t==null)return t;const r=Math.abs(t),n=e(r);return t>=0?n:typeof n=="number"?-n:`-${n}`}function QO(e,t){return r=>e.reduce((n,i)=>(n[i]=sn(t,r),n),{})}function eA(e,t,r,n){if(t.indexOf(r)===-1)return null;const i=JO(r),o=QO(i,n),a=e[r];return kt(e,a,o)}function Mf(e,t){const r=Df(e.theme);return Object.keys(e).map(n=>eA(e,t,n,r)).reduce(on,{})}function Ee(e){return Mf(e,gi)}Ee.propTypes=process.env.NODE_ENV!=="production"?gi.reduce((e,t)=>(e[t]=Vt,e),{}):{},Ee.filterProps=gi;function Se(e){return Mf(e,yi)}Se.propTypes=process.env.NODE_ENV!=="production"?yi.reduce((e,t)=>(e[t]=Vt,e),{}):{},Se.filterProps=yi,process.env.NODE_ENV!=="production"&&ZO.reduce((e,t)=>(e[t]=Vt,e),{});function tA(e=8){if(e.mui)return e;const t=Df({spacing:e}),r=(...n)=>(process.env.NODE_ENV!=="production"&&(n.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${n.length}`)),(n.length===0?[1]:n).map(o=>{const a=t(o);return typeof a=="number"?`${a}px`:a}).join(" "));return r.mui=!0,r}function vi(...e){const t=e.reduce((n,i)=>(i.filterProps.forEach(o=>{n[o]=i}),n),{}),r=n=>Object.keys(n).reduce((i,o)=>t[o]?on(i,t[o](n)):i,{});return r.propTypes=process.env.NODE_ENV!=="production"?e.reduce((n,i)=>Object.assign(n,i.propTypes),{}):{},r.filterProps=e.reduce((n,i)=>n.concat(i.filterProps),[]),r}function lt(e){return typeof e!="number"?e:`${e}px solid`}function ut(e,t){return Ce({prop:e,themeKey:"borders",transform:t})}const rA=ut("border",lt),nA=ut("borderTop",lt),iA=ut("borderRight",lt),oA=ut("borderBottom",lt),aA=ut("borderLeft",lt),sA=ut("borderColor"),lA=ut("borderTopColor"),uA=ut("borderRightColor"),cA=ut("borderBottomColor"),fA=ut("borderLeftColor"),dA=ut("outline",lt),pA=ut("outlineColor"),bi=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=an(e.theme,"shape.borderRadius",4,"borderRadius"),r=n=>({borderRadius:sn(t,n)});return kt(e,e.borderRadius,r)}return null};bi.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:Vt}:{},bi.filterProps=["borderRadius"],vi(rA,nA,iA,oA,aA,sA,lA,uA,cA,fA,bi,dA,pA);const xi=e=>{if(e.gap!==void 0&&e.gap!==null){const t=an(e.theme,"spacing",8,"gap"),r=n=>({gap:sn(t,n)});return kt(e,e.gap,r)}return null};xi.propTypes=process.env.NODE_ENV!=="production"?{gap:Vt}:{},xi.filterProps=["gap"];const _i=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=an(e.theme,"spacing",8,"columnGap"),r=n=>({columnGap:sn(t,n)});return kt(e,e.columnGap,r)}return null};_i.propTypes=process.env.NODE_ENV!=="production"?{columnGap:Vt}:{},_i.filterProps=["columnGap"];const Ti=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=an(e.theme,"spacing",8,"rowGap"),r=n=>({rowGap:sn(t,n)});return kt(e,e.rowGap,r)}return null};Ti.propTypes=process.env.NODE_ENV!=="production"?{rowGap:Vt}:{},Ti.filterProps=["rowGap"];const hA=Ce({prop:"gridColumn"}),mA=Ce({prop:"gridRow"}),gA=Ce({prop:"gridAutoFlow"}),yA=Ce({prop:"gridAutoColumns"}),vA=Ce({prop:"gridAutoRows"}),bA=Ce({prop:"gridTemplateColumns"}),xA=Ce({prop:"gridTemplateRows"}),_A=Ce({prop:"gridTemplateAreas"}),TA=Ce({prop:"gridArea"});vi(xi,_i,Ti,hA,mA,gA,yA,vA,bA,xA,_A,TA);function Tr(e,t){return t==="grey"?t:e}const EA=Ce({prop:"color",themeKey:"palette",transform:Tr}),SA=Ce({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Tr}),wA=Ce({prop:"backgroundColor",themeKey:"palette",transform:Tr});vi(EA,SA,wA);function it(e){return e<=1&&e!==0?`${e*100}%`:e}const CA=Ce({prop:"width",transform:it}),ka=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{var n,i;const o=((n=e.theme)==null||(n=n.breakpoints)==null||(n=n.values)==null?void 0:n[r])||Pa[r];return o?((i=e.theme)==null||(i=i.breakpoints)==null?void 0:i.unit)!=="px"?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:it(r)}};return kt(e,e.maxWidth,t)}return null};ka.filterProps=["maxWidth"];const OA=Ce({prop:"minWidth",transform:it}),AA=Ce({prop:"height",transform:it}),PA=Ce({prop:"maxHeight",transform:it}),kA=Ce({prop:"minHeight",transform:it});Ce({prop:"size",cssProperty:"width",transform:it}),Ce({prop:"size",cssProperty:"height",transform:it});const jA=Ce({prop:"boxSizing"});vi(CA,ka,OA,AA,PA,kA,jA);const ln={border:{themeKey:"borders",transform:lt},borderTop:{themeKey:"borders",transform:lt},borderRight:{themeKey:"borders",transform:lt},borderBottom:{themeKey:"borders",transform:lt},borderLeft:{themeKey:"borders",transform:lt},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:lt},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:bi},color:{themeKey:"palette",transform:Tr},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Tr},backgroundColor:{themeKey:"palette",transform:Tr},p:{style:Se},pt:{style:Se},pr:{style:Se},pb:{style:Se},pl:{style:Se},px:{style:Se},py:{style:Se},padding:{style:Se},paddingTop:{style:Se},paddingRight:{style:Se},paddingBottom:{style:Se},paddingLeft:{style:Se},paddingX:{style:Se},paddingY:{style:Se},paddingInline:{style:Se},paddingInlineStart:{style:Se},paddingInlineEnd:{style:Se},paddingBlock:{style:Se},paddingBlockStart:{style:Se},paddingBlockEnd:{style:Se},m:{style:Ee},mt:{style:Ee},mr:{style:Ee},mb:{style:Ee},ml:{style:Ee},mx:{style:Ee},my:{style:Ee},margin:{style:Ee},marginTop:{style:Ee},marginRight:{style:Ee},marginBottom:{style:Ee},marginLeft:{style:Ee},marginX:{style:Ee},marginY:{style:Ee},marginInline:{style:Ee},marginInlineStart:{style:Ee},marginInlineEnd:{style:Ee},marginBlock:{style:Ee},marginBlockStart:{style:Ee},marginBlockEnd:{style:Ee},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:xi},rowGap:{style:Ti},columnGap:{style:_i},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:it},maxWidth:{style:ka},minWidth:{transform:it},height:{transform:it},maxHeight:{transform:it},minHeight:{transform:it},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function IA(...e){const t=e.reduce((n,i)=>n.concat(Object.keys(i)),[]),r=new Set(t);return e.every(n=>r.size===Object.keys(n).length)}function $A(e,t){return typeof e=="function"?e(t):e}function Nf(){function e(r,n,i,o){const a={[r]:n,theme:i},s=o[r];if(!s)return{[r]:n};const{cssProperty:l=r,themeKey:u,transform:f,style:c}=s;if(n==null)return null;if(u==="typography"&&n==="inherit")return{[r]:n};const p=hi(i,u)||{};return c?c(a):kt(a,n,g=>{let h=mi(p,f,g);return g===h&&typeof g=="string"&&(h=mi(p,f,`${r}${g==="default"?"":tr(g)}`,g)),l===!1?h:{[l]:h}})}function t(r){var n;const{sx:i,theme:o={}}=r||{};if(!i)return null;const a=(n=o.unstable_sxConfig)!=null?n:ln;function s(l){let u=l;if(typeof l=="function")u=l(o);else if(typeof l!="object")return l;if(!u)return null;const f=GO(o.breakpoints),c=Object.keys(f);let p=f;return Object.keys(u).forEach(y=>{const g=$A(u[y],o);if(g!=null)if(typeof g=="object")if(a[y])p=on(p,e(y,g,o,a));else{const h=kt({theme:o},g,x=>({[y]:x}));IA(h,g)?p[y]=t({sx:g,theme:o}):p=on(p,h)}else p=on(p,e(y,g,o,a))}),qO(c,p)}return Array.isArray(i)?i.map(s):s(i)}return t}const Ff=Nf();Ff.filterProps=["sx"];const ja=Ff;function Lf(e,t){const r=this;return r.vars&&typeof r.getColorSchemeSelector=="function"?{[r.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:r.palette.mode===e?t:{}}const RA=["breakpoints","palette","spacing","shape"];function zf(e={},...t){const{breakpoints:r={},palette:n={},spacing:i,shape:o={}}=e,a=Ut(e,RA),s=If(r),l=tA(i);let u=Et({breakpoints:s,direction:"ltr",components:{},palette:he({mode:"light"},n),spacing:l,shape:he({},HO,o)},a);return u.applyStyles=Lf,u=t.reduce((f,c)=>Et(f,c),u),u.unstable_sxConfig=he({},ln,a==null?void 0:a.unstable_sxConfig),u.unstable_sx=function(c){return ja({sx:c,theme:this})},u}const DA=Dt(Object.freeze(Object.defineProperty({__proto__:null,default:zf,private_createBreakpoints:If,unstable_applyStyles:Lf},Symbol.toStringTag,{value:"Module"}))),MA=["sx"],NA=e=>{var t,r;const n={systemProps:{},otherProps:{}},i=(t=e==null||(r=e.theme)==null?void 0:r.unstable_sxConfig)!=null?t:ln;return Object.keys(e).forEach(o=>{i[o]?n.systemProps[o]=e[o]:n.otherProps[o]=e[o]}),n};function FA(e){const{sx:t}=e,r=Ut(e,MA),{systemProps:n,otherProps:i}=NA(r);let o;return Array.isArray(t)?o=[n,...t]:typeof t=="function"?o=(...a)=>{const s=t(...a);return zt(s)?he({},n,s):n}:o=he({},n,t),he({},i,{sx:o})}const LA=Dt(Object.freeze(Object.defineProperty({__proto__:null,default:ja,extendSxProp:FA,unstable_createStyleFunctionSx:Nf,unstable_defaultSxConfig:ln},Symbol.toStringTag,{value:"Module"})));var Er=nf;Object.defineProperty(Zr,"__esModule",{value:!0});var zA=Zr.default=eP;Zr.shouldForwardProp=Ei,Zr.systemDefaultTheme=void 0;var ct=Er(PC()),Ia=Er(kC()),Uf=KA(LO),UA=zO,VA=Er(UO),BA=Er(VO),WA=Er(DA),HA=Er(LA);const GA=["ownerState"],qA=["variants"],YA=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Vf(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(Vf=function(n){return n?r:t})(e)}function KA(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=Vf(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(o!=="default"&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}return n.default=e,r&&r.set(e,n),n}function XA(e){return Object.keys(e).length===0}function JA(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Ei(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const ZA=Zr.systemDefaultTheme=(0,WA.default)(),Bf=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Si({defaultTheme:e,theme:t,themeId:r}){return XA(t)?e:t[r]||t}function QA(e){return e?(t,r)=>r[e]:null}function wi(e,t){let{ownerState:r}=t,n=(0,Ia.default)(t,GA);const i=typeof e=="function"?e((0,ct.default)({ownerState:r},n)):e;if(Array.isArray(i))return i.flatMap(o=>wi(o,(0,ct.default)({ownerState:r},n)));if(i&&typeof i=="object"&&Array.isArray(i.variants)){const{variants:o=[]}=i;let s=(0,Ia.default)(i,qA);return o.forEach(l=>{let u=!0;typeof l.props=="function"?u=l.props((0,ct.default)({ownerState:r},n,r)):Object.keys(l.props).forEach(f=>{(r==null?void 0:r[f])!==l.props[f]&&n[f]!==l.props[f]&&(u=!1)}),u&&(Array.isArray(s)||(s=[s]),s.push(typeof l.style=="function"?l.style((0,ct.default)({ownerState:r},n,r)):l.style))}),s}return i}function eP(e={}){const{themeId:t,defaultTheme:r=ZA,rootShouldForwardProp:n=Ei,slotShouldForwardProp:i=Ei}=e,o=a=>(0,HA.default)((0,ct.default)({},a,{theme:Si((0,ct.default)({},a,{defaultTheme:r,themeId:t}))}));return o.__mui_systemSx=!0,(a,s={})=>{(0,Uf.internal_processStyles)(a,_=>_.filter(R=>!(R!=null&&R.__mui_systemSx)));const{name:l,slot:u,skipVariantsResolver:f,skipSx:c,overridesResolver:p=QA(Bf(u))}=s,y=(0,Ia.default)(s,YA),g=f!==void 0?f:u&&u!=="Root"&&u!=="root"||!1,h=c||!1;let x;process.env.NODE_ENV!=="production"&&l&&(x=`${l}-${Bf(u||"Root")}`);let w=Ei;u==="Root"||u==="root"?w=n:u?w=i:JA(a)&&(w=void 0);const k=(0,Uf.default)(a,(0,ct.default)({shouldForwardProp:w,label:x},y)),D=_=>typeof _=="function"&&_.__emotion_real!==_||(0,UA.isPlainObject)(_)?R=>wi(_,(0,ct.default)({},R,{theme:Si({theme:R.theme,defaultTheme:r,themeId:t})})):_,N=(_,...R)=>{let F=D(_);const J=R?R.map(D):[];l&&p&&J.push(z=>{const le=Si((0,ct.default)({},z,{defaultTheme:r,themeId:t}));if(!le.components||!le.components[l]||!le.components[l].styleOverrides)return null;const me=le.components[l].styleOverrides,ye={};return Object.entries(me).forEach(([qe,je])=>{ye[qe]=wi(je,(0,ct.default)({},z,{theme:le}))}),p(z,ye)}),l&&!g&&J.push(z=>{var le;const me=Si((0,ct.default)({},z,{defaultTheme:r,themeId:t})),ye=me==null||(le=me.components)==null||(le=le[l])==null?void 0:le.variants;return wi({variants:ye},(0,ct.default)({},z,{theme:me}))}),h||J.push(o);const ee=J.length-R.length;if(Array.isArray(_)&&ee>0){const z=new Array(ee).fill("");F=[..._,...z],F.raw=[..._.raw,...z]}const oe=k(F,...J);if(process.env.NODE_ENV!=="production"){let z;l&&(z=`${l}${(0,VA.default)(u||"")}`),z===void 0&&(z=`Styled(${(0,BA.default)(a)})`),oe.displayName=z}return a.muiName&&(oe.muiName=a.muiName),oe};return k.withConfig&&(N.withConfig=k.withConfig),N}}function tP(e,t){return he({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var Oe={};const rP=Dt(fC),nP=Dt(EC);var Wf=nf;Object.defineProperty(Oe,"__esModule",{value:!0}),Oe.alpha=Xf,Oe.blend=mP,Oe.colorChannel=void 0;var iP=Oe.darken=Ra;Oe.decomposeColor=ft,Oe.emphasize=Jf;var Hf=Oe.getContrastRatio=cP;Oe.getLuminance=Ci,Oe.hexToRgb=qf,Oe.hslToRgb=Kf;var oP=Oe.lighten=Da;Oe.private_safeAlpha=fP,Oe.private_safeColorChannel=void 0,Oe.private_safeDarken=dP,Oe.private_safeEmphasize=hP,Oe.private_safeLighten=pP,Oe.recomposeColor=Sr,Oe.rgbToHex=uP;var Gf=Wf(rP),aP=Wf(nP);function $a(e,t=0,r=1){return process.env.NODE_ENV!=="production"&&(e<t||e>r)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${r}].`),(0,aP.default)(e,t,r)}function qf(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&r[0].length===1&&(r=r.map(n=>n+n)),r?`rgb${r.length===4?"a":""}(${r.map((n,i)=>i<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function sP(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function ft(e){if(e.type)return e;if(e.charAt(0)==="#")return ft(qf(e));const t=e.indexOf("("),r=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(r)===-1)throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${e}\` color.
97
97
  The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:(0,Gf.default)(9,e));let n=e.substring(t+1,e.length-1),i;if(r==="color"){if(n=n.split(" "),i=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(i)===-1)throw new Error(process.env.NODE_ENV!=="production"?`MUI: unsupported \`${i}\` color space.
98
- The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:(0,Gf.default)(10,i))}else n=n.split(",");return n=n.map(o=>parseFloat(o)),{type:r,values:n,colorSpace:i}}const Yf=e=>{const t=ft(e);return t.values.slice(0,3).map((r,n)=>t.type.indexOf("hsl")!==-1&&n!==0?`${r}%`:r).join(" ")};Ce.colorChannel=Yf;const lP=(e,t)=>{try{return Yf(e)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};Ce.private_safeColorChannel=lP;function Sr(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return t.indexOf("rgb")!==-1?n=n.map((i,o)=>o<3?parseInt(i,10):i):t.indexOf("hsl")!==-1&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),t.indexOf("color")!==-1?n=`${r} ${n.join(" ")}`:n=`${n.join(", ")}`,`${t}(${n})`}function uP(e){if(e.indexOf("#")===0)return e;const{values:t}=ft(e);return`#${t.map((r,n)=>sP(n===3?Math.round(255*r):r)).join("")}`}function Kf(e){e=ft(e);const{values:t}=e,r=t[0],n=t[1]/100,i=t[2]/100,o=n*Math.min(i,1-i),a=(u,c=(u+r/30)%12)=>i-o*Math.max(Math.min(c-3,9-c,1),-1);let s="rgb";const l=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return e.type==="hsla"&&(s+="a",l.push(t[3])),Sr({type:s,values:l})}function Ci(e){e=ft(e);let t=e.type==="hsl"||e.type==="hsla"?ft(Kf(e)).values:e.values;return t=t.map(r=>(e.type!=="color"&&(r/=255),r<=.03928?r/12.92:((r+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function cP(e,t){const r=Ci(e),n=Ci(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function Xf(e,t){return e=ft(e),t=$a(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Sr(e)}function fP(e,t,r){try{return Xf(e,t)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function Ra(e,t){if(e=ft(e),t=$a(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]*=1-t;return Sr(e)}function dP(e,t,r){try{return Ra(e,t)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function Da(e,t){if(e=ft(e),t=$a(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return Sr(e)}function pP(e,t,r){try{return Da(e,t)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function Jf(e,t=.15){return Ci(e)>.5?Ra(e,t):Da(e,t)}function hP(e,t,r){try{return Jf(e,t)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function mP(e,t,r,n=1){const i=(l,u)=>Math.round((l**(1/n)*(1-r)+u**(1/n)*r)**n),o=ft(e),a=ft(t),s=[i(o.values[0],a.values[0]),i(o.values[1],a.values[1]),i(o.values[2],a.values[2])];return Sr({type:"rgb",values:s})}const un={black:"#000",white:"#fff"},gP={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},wr={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},Cr={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},cn={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},Or={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},Ar={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},Pr={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},yP=["mode","contrastThreshold","tonalOffset"],Zf={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:un.white,default:un.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},Ma={text:{primary:un.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:un.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function Qf(e,t,r,n){const i=n.light||n,o=n.dark||n*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t==="light"?e.light=oP(e.main,i):t==="dark"&&(e.dark=iP(e.main,o)))}function vP(e="light"){return e==="dark"?{main:Or[200],light:Or[50],dark:Or[400]}:{main:Or[700],light:Or[400],dark:Or[800]}}function bP(e="light"){return e==="dark"?{main:wr[200],light:wr[50],dark:wr[400]}:{main:wr[500],light:wr[300],dark:wr[700]}}function xP(e="light"){return e==="dark"?{main:Cr[500],light:Cr[300],dark:Cr[700]}:{main:Cr[700],light:Cr[400],dark:Cr[800]}}function _P(e="light"){return e==="dark"?{main:Ar[400],light:Ar[300],dark:Ar[700]}:{main:Ar[700],light:Ar[500],dark:Ar[900]}}function TP(e="light"){return e==="dark"?{main:Pr[400],light:Pr[300],dark:Pr[700]}:{main:Pr[800],light:Pr[500],dark:Pr[900]}}function EP(e="light"){return e==="dark"?{main:cn[400],light:cn[300],dark:cn[700]}:{main:"#ed6c02",light:cn[500],dark:cn[900]}}function SP(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,i=Ut(e,yP),o=e.primary||vP(t),a=e.secondary||bP(t),s=e.error||xP(t),l=e.info||_P(t),u=e.success||TP(t),c=e.warning||EP(t);function f(h){const x=Hf(h,Ma.text.primary)>=r?Ma.text.primary:Zf.text.primary;if(process.env.NODE_ENV!=="production"){const w=Hf(h,x);w<3&&console.error([`MUI: The contrast ratio of ${w}:1 for ${x} on ${h}`,"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.","https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(`
99
- `))}return x}const p=({color:h,name:x,mainShade:w=500,lightShade:j=300,darkShade:M=700})=>{if(h=pe({},h),!h.main&&h[w]&&(h.main=h[w]),!h.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${x?` (${x})`:""} provided to augmentColor(color) is invalid.
98
+ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:(0,Gf.default)(10,i))}else n=n.split(",");return n=n.map(o=>parseFloat(o)),{type:r,values:n,colorSpace:i}}const Yf=e=>{const t=ft(e);return t.values.slice(0,3).map((r,n)=>t.type.indexOf("hsl")!==-1&&n!==0?`${r}%`:r).join(" ")};Oe.colorChannel=Yf;const lP=(e,t)=>{try{return Yf(e)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};Oe.private_safeColorChannel=lP;function Sr(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return t.indexOf("rgb")!==-1?n=n.map((i,o)=>o<3?parseInt(i,10):i):t.indexOf("hsl")!==-1&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),t.indexOf("color")!==-1?n=`${r} ${n.join(" ")}`:n=`${n.join(", ")}`,`${t}(${n})`}function uP(e){if(e.indexOf("#")===0)return e;const{values:t}=ft(e);return`#${t.map((r,n)=>sP(n===3?Math.round(255*r):r)).join("")}`}function Kf(e){e=ft(e);const{values:t}=e,r=t[0],n=t[1]/100,i=t[2]/100,o=n*Math.min(i,1-i),a=(u,f=(u+r/30)%12)=>i-o*Math.max(Math.min(f-3,9-f,1),-1);let s="rgb";const l=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return e.type==="hsla"&&(s+="a",l.push(t[3])),Sr({type:s,values:l})}function Ci(e){e=ft(e);let t=e.type==="hsl"||e.type==="hsla"?ft(Kf(e)).values:e.values;return t=t.map(r=>(e.type!=="color"&&(r/=255),r<=.03928?r/12.92:((r+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function cP(e,t){const r=Ci(e),n=Ci(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function Xf(e,t){return e=ft(e),t=$a(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Sr(e)}function fP(e,t,r){try{return Xf(e,t)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function Ra(e,t){if(e=ft(e),t=$a(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]*=1-t;return Sr(e)}function dP(e,t,r){try{return Ra(e,t)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function Da(e,t){if(e=ft(e),t=$a(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return Sr(e)}function pP(e,t,r){try{return Da(e,t)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function Jf(e,t=.15){return Ci(e)>.5?Ra(e,t):Da(e,t)}function hP(e,t,r){try{return Jf(e,t)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function mP(e,t,r,n=1){const i=(l,u)=>Math.round((l**(1/n)*(1-r)+u**(1/n)*r)**n),o=ft(e),a=ft(t),s=[i(o.values[0],a.values[0]),i(o.values[1],a.values[1]),i(o.values[2],a.values[2])];return Sr({type:"rgb",values:s})}const un={black:"#000",white:"#fff"},gP={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},wr={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},Cr={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},cn={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},Or={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},Ar={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},Pr={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},yP=["mode","contrastThreshold","tonalOffset"],Zf={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:un.white,default:un.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},Ma={text:{primary:un.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:un.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function Qf(e,t,r,n){const i=n.light||n,o=n.dark||n*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t==="light"?e.light=oP(e.main,i):t==="dark"&&(e.dark=iP(e.main,o)))}function vP(e="light"){return e==="dark"?{main:Or[200],light:Or[50],dark:Or[400]}:{main:Or[700],light:Or[400],dark:Or[800]}}function bP(e="light"){return e==="dark"?{main:wr[200],light:wr[50],dark:wr[400]}:{main:wr[500],light:wr[300],dark:wr[700]}}function xP(e="light"){return e==="dark"?{main:Cr[500],light:Cr[300],dark:Cr[700]}:{main:Cr[700],light:Cr[400],dark:Cr[800]}}function _P(e="light"){return e==="dark"?{main:Ar[400],light:Ar[300],dark:Ar[700]}:{main:Ar[700],light:Ar[500],dark:Ar[900]}}function TP(e="light"){return e==="dark"?{main:Pr[400],light:Pr[300],dark:Pr[700]}:{main:Pr[800],light:Pr[500],dark:Pr[900]}}function EP(e="light"){return e==="dark"?{main:cn[400],light:cn[300],dark:cn[700]}:{main:"#ed6c02",light:cn[500],dark:cn[900]}}function SP(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,i=Ut(e,yP),o=e.primary||vP(t),a=e.secondary||bP(t),s=e.error||xP(t),l=e.info||_P(t),u=e.success||TP(t),f=e.warning||EP(t);function c(h){const x=Hf(h,Ma.text.primary)>=r?Ma.text.primary:Zf.text.primary;if(process.env.NODE_ENV!=="production"){const w=Hf(h,x);w<3&&console.error([`MUI: The contrast ratio of ${w}:1 for ${x} on ${h}`,"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.","https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(`
99
+ `))}return x}const p=({color:h,name:x,mainShade:w=500,lightShade:k=300,darkShade:D=700})=>{if(h=he({},h),!h.main&&h[w]&&(h.main=h[w]),!h.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${x?` (${x})`:""} provided to augmentColor(color) is invalid.
100
100
  The color object needs to have a \`main\` property or a \`${w}\` property.`:Jr(11,x?` (${x})`:"",w));if(typeof h.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${x?` (${x})`:""} provided to augmentColor(color) is invalid.
101
101
  \`color.main\` should be a string, but \`${JSON.stringify(h.main)}\` was provided instead.
102
102
 
@@ -110,7 +110,7 @@ const theme1 = createTheme({ palette: {
110
110
 
111
111
  const theme2 = createTheme({ palette: {
112
112
  primary: { main: green[500] },
113
- } });`:Jr(12,x?` (${x})`:"",JSON.stringify(h.main)));return Qf(h,"light",j,n),Qf(h,"dark",M,n),h.contrastText||(h.contrastText=f(h.main)),h},g={dark:Ma,light:Zf};return process.env.NODE_ENV!=="production"&&(g[t]||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),Et(pe({common:pe({},un),mode:t,primary:p({color:o,name:"primary"}),secondary:p({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:s,name:"error"}),warning:p({color:c,name:"warning"}),info:p({color:l,name:"info"}),success:p({color:u,name:"success"}),grey:gP,contrastThreshold:r,getContrastText:f,augmentColor:p,tonalOffset:n},g[t]),i)}const wP=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function CP(e){return Math.round(e*1e5)/1e5}const ed={textTransform:"uppercase"},td='"Roboto", "Helvetica", "Arial", sans-serif';function OP(e,t){const r=typeof t=="function"?t(e):t,{fontFamily:n=td,fontSize:i=14,fontWeightLight:o=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:c,pxToRem:f}=r,p=Ut(r,wP);process.env.NODE_ENV!=="production"&&(typeof i!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof u!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const g=i/14,y=f||(w=>`${w/u*g}rem`),h=(w,j,M,F,_)=>pe({fontFamily:n,fontWeight:w,fontSize:y(j),lineHeight:M},n===td?{letterSpacing:`${CP(F/j)}em`}:{},_,c),x={h1:h(o,96,1.167,-1.5),h2:h(o,60,1.2,-.5),h3:h(a,48,1.167,0),h4:h(a,34,1.235,.25),h5:h(a,24,1.334,0),h6:h(s,20,1.6,.15),subtitle1:h(a,16,1.75,.15),subtitle2:h(s,14,1.57,.1),body1:h(a,16,1.5,.15),body2:h(a,14,1.43,.15),button:h(s,14,1.75,.4,ed),caption:h(a,12,1.66,.4),overline:h(a,12,2.66,1,ed),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Et(pe({htmlFontSize:u,pxToRem:y,fontFamily:n,fontSize:i,fontWeightLight:o,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},x),p,{clone:!1})}const AP=.2,PP=.14,kP=.12;function xe(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${AP})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${PP})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${kP})`].join(",")}const jP=["none",xe(0,2,1,-1,0,1,1,0,0,1,3,0),xe(0,3,1,-2,0,2,2,0,0,1,5,0),xe(0,3,3,-2,0,3,4,0,0,1,8,0),xe(0,2,4,-1,0,4,5,0,0,1,10,0),xe(0,3,5,-1,0,5,8,0,0,1,14,0),xe(0,3,5,-1,0,6,10,0,0,1,18,0),xe(0,4,5,-2,0,7,10,1,0,2,16,1),xe(0,5,5,-3,0,8,10,1,0,3,14,2),xe(0,5,6,-3,0,9,12,1,0,3,16,2),xe(0,6,6,-3,0,10,14,1,0,4,18,3),xe(0,6,7,-4,0,11,15,1,0,4,20,3),xe(0,7,8,-4,0,12,17,2,0,5,22,4),xe(0,7,8,-4,0,13,19,2,0,5,24,4),xe(0,7,9,-4,0,14,21,2,0,5,26,4),xe(0,8,9,-5,0,15,22,2,0,6,28,5),xe(0,8,10,-5,0,16,24,2,0,6,30,5),xe(0,8,11,-5,0,17,26,2,0,6,32,5),xe(0,9,11,-5,0,18,28,2,0,7,34,6),xe(0,9,12,-6,0,19,29,2,0,7,36,6),xe(0,10,13,-6,0,20,31,3,0,8,38,7),xe(0,10,13,-6,0,21,33,3,0,8,40,7),xe(0,10,14,-6,0,22,35,3,0,8,42,7),xe(0,11,14,-7,0,23,36,3,0,9,44,8),xe(0,11,15,-7,0,24,38,3,0,9,46,8)],IP=["duration","easing","delay"],$P={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},RP={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function rd(e){return`${Math.round(e)}ms`}function DP(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function MP(e){const t=pe({},$P,e.easing),r=pe({},RP,e.duration);return pe({getAutoHeightDuration:DP,create:(i=["all"],o={})=>{const{duration:a=r.standard,easing:s=t.easeInOut,delay:l=0}=o,u=Ut(o,IP);if(process.env.NODE_ENV!=="production"){const c=p=>typeof p=="string",f=p=>!isNaN(parseFloat(p));!c(i)&&!Array.isArray(i)&&console.error('MUI: Argument "props" must be a string or Array.'),!f(a)&&!c(a)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${a}.`),c(s)||console.error('MUI: Argument "easing" must be a string.'),!f(l)&&!c(l)&&console.error('MUI: Argument "delay" must be a number or a string.'),typeof o!="object"&&console.error(["MUI: Secong argument of transition.create must be an object.","Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join(`
114
- `)),Object.keys(u).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(u).join(",")}].`)}return(Array.isArray(i)?i:[i]).map(c=>`${c} ${typeof a=="string"?a:rd(a)} ${s} ${typeof l=="string"?l:rd(l)}`).join(",")}},e,{easing:t,duration:r})}const NP={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},FP=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function LP(e={},...t){const{mixins:r={},palette:n={},transitions:i={},typography:o={}}=e,a=Ut(e,FP);if(e.vars)throw new Error(process.env.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name.":Jr(18));const s=SP(n),l=zf(e);let u=Et(l,{mixins:tP(l.breakpoints,r),palette:s,shadows:jP.slice(),typography:OP(s,o),transitions:MP(i),zIndex:pe({},NP)});if(u=Et(u,a),u=t.reduce((c,f)=>Et(c,f),u),process.env.NODE_ENV!=="production"){const c=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],f=(p,g)=>{let y;for(y in p){const h=p[y];if(c.indexOf(y)!==-1&&Object.keys(h).length>0){if(process.env.NODE_ENV!=="production"){const x=ga("",y);console.error([`MUI: The \`${g}\` component increases the CSS specificity of the \`${y}\` internal state.`,"You can not override it like this: ",JSON.stringify(p,null,2),"",`Instead, you need to use the '&.${x}' syntax:`,JSON.stringify({root:{[`&.${x}`]:h}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
115
- `))}p[y]={}}}};Object.keys(u.components).forEach(p=>{const g=u.components[p].styleOverrides;g&&p.indexOf("Mui")===0&&f(g,p)})}return u.unstable_sxConfig=pe({},ln,a==null?void 0:a.unstable_sxConfig),u.unstable_sx=function(f){return ja({sx:f,theme:this})},u}const zP=LP(),UP="$$material";function VP(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const BP=zA({themeId:UP,defaultTheme:zP,rootShouldForwardProp:e=>VP(e)&&e!=="classes"});function WP(e){return ga("MuiSvgIcon",e)}_C("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const HP=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],GP=e=>{const{color:t,fontSize:r,classes:n}=e,i={root:["root",t!=="inherit"&&`color${tr(t)}`,`fontSize${tr(r)}`]};return vC(i,WP,n)},qP=BP("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${tr(r.color)}`],t[`fontSize${tr(r.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var r,n,i,o,a,s,l,u,c,f,p,g,y;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(r=e.transitions)==null||(n=r.create)==null?void 0:n.call(r,"fill",{duration:(i=e.transitions)==null||(i=i.duration)==null?void 0:i.shorter}),fontSize:{inherit:"inherit",small:((o=e.typography)==null||(a=o.pxToRem)==null?void 0:a.call(o,20))||"1.25rem",medium:((s=e.typography)==null||(l=s.pxToRem)==null?void 0:l.call(s,24))||"1.5rem",large:((u=e.typography)==null||(c=u.pxToRem)==null?void 0:c.call(u,35))||"2.1875rem"}[t.fontSize],color:(f=(p=(e.vars||e).palette)==null||(p=p[t.color])==null?void 0:p.main)!=null?f:{action:(g=(e.vars||e).palette)==null||(g=g.action)==null?void 0:g.active,disabled:(y=(e.vars||e).palette)==null||(y=y.action)==null?void 0:y.disabled,inherit:void 0}[t.color]}}),Na=tt.forwardRef(function(t,r){const n=AC({props:t,name:"MuiSvgIcon"}),{children:i,className:o,color:a="inherit",component:s="svg",fontSize:l="medium",htmlColor:u,inheritViewBox:c=!1,titleAccess:f,viewBox:p="0 0 24 24"}=n,g=Ut(n,HP),y=tt.isValidElement(i)&&i.type==="svg",h=pe({},n,{color:a,component:s,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:c,viewBox:p,hasSvgAsChild:y}),x={};c||(x.viewBox=p);const w=GP(h);return d.jsxs(qP,pe({as:s,className:SC(w.root,o),focusable:"false",color:u,"aria-hidden":f?void 0:!0,role:f?"img":void 0,ref:r},x,g,y&&i.props,{ownerState:h,children:[y?i.props.children:i,f?d.jsx("title",{children:f}):null]}))});process.env.NODE_ENV!=="production"&&(Na.propTypes={children:H.node,classes:H.object,className:H.string,color:H.oneOfType([H.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),H.string]),component:H.elementType,fontSize:H.oneOfType([H.oneOf(["inherit","large","medium","small"]),H.string]),htmlColor:H.string,inheritViewBox:H.bool,shapeRendering:H.string,sx:H.oneOfType([H.arrayOf(H.oneOfType([H.func,H.object,H.bool])),H.func,H.object]),titleAccess:H.string,viewBox:H.string}),Na.muiName="SvgIcon";const nd=Na;function Fa(e,t){function r(n,i){return d.jsx(nd,pe({"data-testid":`${t}Icon`,ref:i},n,{children:e}))}return process.env.NODE_ENV!=="production"&&(r.displayName=`${t}Icon`),r.muiName=nd.muiName,tt.memo(tt.forwardRef(r))}const YP=Fa(d.jsx("path",{d:"m20 12-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8z"}),"ArrowDownward"),KP=Fa(d.jsx("path",{d:"m4 12 1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8z"}),"ArrowUpward"),XP=Fa(d.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"}),"Delete"),kr=({children:e,...t})=>d.jsx(v.Table.Td,{...t,children:e}),JP=({errorMessages:e,id:t})=>d.jsx(v.Tooltip,{id:t,title:e,children:d.jsx(v.Indicator,{label:e.split(`
116
- `).length,children:d.jsx(gh,{})})}),ZP={paddingLeft:0,paddingRight:0},QP=T.memo(function({numColumns:t,errors:r,label:n,description:i,path:o,addItem:a,schema:s,enabled:l,translations:u,rootSchema:c}){const f={bg:"transparent",size:"sm",c:"gray"},p=v.useProps("ActionIcon",f,{});return d.jsxs(v.Table.Tr,{children:[d.jsx(kr,{colSpan:t,children:d.jsxs(v.Stack,{children:[d.jsxs(v.Grid,{justify:"flex-start",align:"center",gutter:"sm",children:[d.jsx(v.Grid.Col,{span:"content",children:d.jsx(v.Text,{children:n})}),d.jsx(v.Grid.Col,{span:"content",children:r.length!==0?d.jsx(v.Grid.Col,{span:"content",children:d.jsx(JP,{id:"tooltip-validation",errorMessages:r})}):null})]}),i&&d.jsx(v.Text,{size:"sm",children:i})]})}),l?d.jsx(kr,{align:"right",style:ZP,children:d.jsx(v.Tooltip,{id:"tooltip-add",title:u.addTooltip,position:"bottom",children:d.jsx(v.ActionIcon,{bg:p.bg,size:p.size,c:p.c,onClick:a(o,V.createDefaultValue(s,c)),children:d.jsx(Co,{})})})}):null]})}),id={fixedCell:{width:"150px",height:"50px",paddingLeft:0,paddingRight:0,textAlign:"center"},fixedCellSmall:{width:"50px",height:"50px",paddingLeft:0,paddingRight:0,textAlign:"center"}},od=(e,t,r,n,i)=>{if(t.type==="object")return ad(t).map(o=>{var l,u;const a=V.Paths.compose(r,o),s={propName:o,schema:t,title:((u=(l=t.properties)==null?void 0:l[o])==null?void 0:u.title)??qw(o),rowPath:r,cellPath:a,enabled:n,cells:i};return d.jsx(e,{...s},a)});{const o={schema:t,rowPath:r,cellPath:r,enabled:n};return d.jsx(e,{...o},r)}},ad=e=>e.type==="object"&&typeof e.properties=="object"?Object.keys(e.properties).filter(t=>e.properties[t].type!=="array"):[""],ek=({numColumns:e,translations:t})=>d.jsx(v.Table.Tr,{children:d.jsx(kr,{colSpan:e,children:d.jsx(v.Text,{align:"center",children:t.noDataMessage})})}),tk=T.memo(function({title:t}){return d.jsx(v.Table.Th,{children:t})}),rk=(e,t)=>{const r=t.rowPath+(t.schema.type==="object"?"."+t.propName:""),n=V.formatErrorMessage(DE(V.errorsAt(r,t.schema,i=>i===r)(e.core.errors).map(i=>i.message)));return{rowPath:t.rowPath,propName:t.propName,schema:t.schema,rootSchema:e.core.schema,errors:n,path:r,enabled:t.enabled,cells:t.cells||e.cells,renderers:t.renderers||e.renderers}},sd=e=>({type:"Control",scope:e,label:!1}),nk=T.memo(function({path:t,propName:r,schema:n,rootSchema:i,errors:o,enabled:a,renderers:s,cells:l,isValid:u}){return d.jsxs(kr,{children:[n.properties?d.jsx(ye.DispatchCell,{schema:V.Resolve.schema(n,`#/properties/${V.encode(r)}`,i),uischema:sd(`#/properties/${V.encode(r)}`),path:t,enabled:a,renderers:s,cells:l}):d.jsx(ye.DispatchCell,{schema:n,uischema:sd("#"),path:t,enabled:a,renderers:s,cells:l}),d.jsx(v.Text,{size:"xs",children:u?"":o})]})}),ik=e=>{const t=ye.useJsonForms(),r=rk(t,e),n=Eu(r.errors);return d.jsx(nk,{...r,isValid:n})},ok=({childPath:e,schema:t,rowIndex:r,openDeleteDialog:n,moveUpCreator:i,moveDownCreator:o,enableUp:a,enableDown:s,showSortButtons:l,enabled:u,cells:c,path:f,translations:p})=>{const g={bg:"transparent",size:"sm",c:"gray"},y=v.useProps("ActionIcon",g,{}),h=T.useMemo(()=>i(f,r),[i,f,r]),x=T.useMemo(()=>o(f,r),[o,f,r]);return d.jsxs(v.Table.Tr,{children:[od(ik,t,e,u,c),u?d.jsx(kr,{style:l?id.fixedCell:id.fixedCellSmall,children:d.jsxs(v.Grid,{justify:"flex-end",align:"center",children:[l?d.jsxs(T.Fragment,{children:[d.jsx(v.Grid.Col,{span:"content",children:d.jsx(v.Tooltip,{id:"tooltip-up",title:p.up,position:"bottom",opened:a?void 0:!1,children:d.jsx(v.ActionIcon,{bg:y.bg,size:y.size,c:y.c,"aria-label":p.upAriaLabel,onClick:h,disabled:!a,children:d.jsx(KP,{})})})}),d.jsx(v.Grid.Col,{span:"content",children:d.jsx(v.Tooltip,{id:"tooltip-down",title:p.down,position:"bottom",opened:s?void 0:!1,children:d.jsx(v.ActionIcon,{bg:y.bg,size:y.size,c:y.c,"aria-label":p.downAriaLabel,onClick:x,disabled:!s,children:d.jsx(YP,{})})})})]}):null,d.jsx(v.Grid.Col,{span:"content",children:d.jsx(v.Tooltip,{id:"tooltip-remove",title:p.removeTooltip,position:"bottom",children:d.jsx(v.ActionIcon,{bg:y.bg,size:y.size,c:y.c,"aria-label":p.removeAriaLabel,onClick:()=>n(e,r),children:d.jsx(XP,{})})})})]})}):null]},e)},ld=T.memo(ok),ak=({data:e,path:t,schema:r,openDeleteDialog:n,moveUp:i,moveDown:o,uischema:a,config:s,enabled:l,cells:u,translations:c})=>{if(e===0)return d.jsx(ek,{numColumns:ad(r).length+1,translations:c});const p=oc({},s,a.options);return d.jsx(T.Fragment,{children:uC(e).map(g=>{const y=V.Paths.compose(t,`${g}`);return d.jsx(ld,{childPath:y,rowIndex:g,schema:r,openDeleteDialog:n,moveUpCreator:i,moveDownCreator:o,enableUp:g!==0,enableDown:g!==e-1,showSortButtons:p.showSortButtons||p.showArrayTableSortButtons,enabled:l,cells:u,path:t,translations:c},y)})})};class ud extends T.Component{constructor(){super(...arguments);Dd(this,"addItem",(r,n)=>this.props.addItem(r,n))}render(){const{label:r,description:n,path:i,schema:o,rootSchema:a,uischema:s,errors:l,openDeleteDialog:u,visible:c,enabled:f,cells:p,translations:g}=this.props,y=s,h=o.type==="object",x=h?od(tk,o,i,f,p):void 0;return c?d.jsxs(v.Table,{children:[d.jsxs(v.Table.Thead,{children:[d.jsx(QP,{errors:l,label:r,description:n,addItem:this.addItem,numColumns:h?x.length:1,path:i,uischema:y,schema:o,rootSchema:a,enabled:f,translations:g}),h&&d.jsxs(v.Table.Tr,{children:[x,f?d.jsx(v.Table.Th,{}):null]})]}),d.jsx(v.Table.Tbody,{children:d.jsx(ak,{openDeleteDialog:u,translations:g,...this.props})})]}):null}}const cd=T.memo(function({open:t,onClose:r,onConfirm:n,onCancel:i,title:o,message:a,acceptText:s,declineText:l}){return d.jsxs(v.Modal,{opened:t,withCloseButton:!1,centered:!0,title:o,keepMounted:!0,onClose:r,children:[a,d.jsxs(v.Flex,{justify:"flex-end",align:"center",gap:"sm",children:[d.jsx(v.Button,{onClick:i,children:l}),d.jsx(v.Button,{onClick:n,children:s})]})]})}),sk=e=>{const[t,r]=T.useState(!1),[n,i]=T.useState(void 0),[o,a]=T.useState(void 0),{removeItems:s,visible:l}=e,u=T.useCallback((g,y)=>{r(!0),i(g),a(y)},[r,i,a]),c=T.useCallback(()=>r(!1),[r]),f=T.useCallback(()=>{const g=n.substring(0,n.lastIndexOf("."));s(g,[o])(),r(!1)},[r,n,o]),p=T.useCallback(()=>r(!1),[r]);return l?d.jsxs(d.Fragment,{children:[d.jsx(ud,{...e,openDeleteDialog:u}),d.jsx(cd,{open:t,onCancel:c,onConfirm:f,onClose:p,acceptText:e.translations.deleteDialogAccept,declineText:e.translations.deleteDialogDecline,title:e.translations.deleteDialogTitle,message:e.translations.deleteDialogMessage})]}):null},fd=V.rankWith(3,V.or(V.isObjectArrayControl,V.isPrimitiveArrayControl)),dd=ye.withJsonFormsArrayLayoutProps(sk),lk=({errors:e,description:t,label:r,required:n,path:i,options:o,data:a,enabled:s,handleChange:l})=>d.jsx(v.MultiSelect,{disabled:!s,data:o,defaultValue:a,label:r,description:t,required:n,error:e,onChange:u=>{l(i,u)}}),uk=e=>e.oneOf!==void 0&&e.oneOf.length>0&&e.oneOf.every(t=>t.const!==void 0),ck=e=>e.type==="string"&&e.enum!==void 0,pd=V.rankWith(6,V.and(V.uiTypeIs("Control"),V.and(V.schemaMatches(e=>V.hasType(e,"array")&&!Array.isArray(e.items)&&e.uniqueItems===!0),V.schemaSubPathMatches("items",(e,t)=>{const r=e.$ref?V.resolveSchema(t,e.$ref,t):e;return uk(r)||ck(r)})))),hd=ye.withJsonFormsMultiEnumProps(lk),md=V.rankWith(5,V.uiTypeIs("HorizontalLayout")),fk=({uischema:e,renderers:t,cells:r,schema:n,path:i,enabled:o})=>{const s={elements:e.elements,schema:n,path:i,enabled:o,direction:"row"};return d.jsx(aa,{...s,renderers:t,cells:r})},gd=ye.withJsonFormsLayoutProps(fk),yd=V.rankWith(5,V.uiTypeIs("VerticalLayout")),dk=({uischema:e,schema:t,path:r,enabled:n,renderers:i,cells:o})=>{const s={elements:e.elements,schema:t,path:r,enabled:n,direction:"column"};return d.jsx(aa,{...s,renderers:i,cells:o})},vd=ye.withJsonFormsLayoutProps(dk),pk=e=>d.jsx(Jn,{...e}),bd=V.rankWith(4,V.isNumberControl),xd=ye.withJsonFormsCellProps(pk),hk=e=>d.jsx(Jn,{...e}),_d=V.rankWith(3,V.isIntegerControl),Td=ye.withJsonFormsCellProps(hk),mk=e=>d.jsx(ac,{...e}),Ed=V.rankWith(2,V.isStringControl),Sd=ye.withJsonFormsCellProps(mk),gk=e=>d.jsx(sc,{...e}),wd=V.rankWith(3,V.isBooleanControl),Cd=ye.withJsonFormsCellProps(gk),yk=e=>{const{data:t,className:r,enabled:n,path:i,handleChange:o,description:a,errors:s,label:l,required:u}=e;return d.jsx(or.DateInput,{valueFormat:"DD.MM.YYYY",label:l,description:a,error:s,required:u,value:t?new Date(t):null,onChange:c=>{if(c instanceof Date){const f=new Date(c.getTime()-c.getTimezoneOffset()*6e4);o(i,f.toISOString().substring(0,10))}},className:r,disabled:!n,w:"100%"})},Od=V.rankWith(2,V.isDateControl),Ad=ye.withJsonFormsCellProps(yk),vk=e=>{const{description:t,className:r,enabled:n,path:i,handleChange:o,data:a,errors:s,label:l,required:u}=e;return d.jsx(or.DateInput,{valueFormat:"DD.MM.YYYY",className:r,disabled:!n,label:l,description:t,error:s,required:u,value:a?new Date(a):null,onChange:c=>{if(c instanceof Date){const f=new Date(c.getTime()-c.getTimezoneOffset()*6e4);o(i,f.toISOString().substring(0,10))}},w:"100%"})},Pd=V.rankWith(5,V.isDateTimeControl),kd=ye.withJsonFormsControlProps(vk),bk=e=>{const{description:t,data:r,options:n,enabled:i,handleChange:o,className:a,errors:s,label:l,required:u}=e;return d.jsx(v.Select,{data:n,defaultValue:r,label:l,description:t,required:u,error:s,disabled:!i,searchable:!0,onChange:c=>{o(path,c)},className:a,w:"100%"})},jd=V.rankWith(5,V.isEnumControl),Id=ye.withJsonFormsEnumProps(ye.withTranslateProps(T.memo(bk)),!1),xk=[{tester:Ql,renderer:eu},{tester:tu,renderer:ru},{tester:ju,renderer:Iu},{tester:$u,renderer:Ru},{tester:lc,renderer:uc},{tester:cc,renderer:fc},{tester:dc,renderer:pc},{tester:fd,renderer:dd},{tester:pd,renderer:hd},{tester:md,renderer:gd},{tester:yd,renderer:vd}],_k=[{tester:Ed,cell:Sd},{tester:bd,cell:xd},{tester:_d,cell:Td},{tester:wd,cell:Cd},{tester:Od,cell:Ad},{tester:Pd,cell:kd},{tester:jd,cell:Id}],La={iconSmall:"_iconSmall_sxv3z_1",iconLarge:"_iconLarge_sxv3z_6",btn:"_btn_sxv3z_17"};function Tk({basePath:e="/security",Target:t,children:r}){const n=Md.useNavigate(),{user:i,signout:o}=vs(),[a,s]=T.useState(!1),u=[{resource_name:e+"/users",label:"Users",name:"UsersApi",Icon:_h},{resource_name:e+"/roles",label:"Roles",name:"RolesApi",Icon:vh},{resource_name:e+"/permissions",label:"Base Permissions",name:"PermissionsApi",Icon:Us},{resource_name:e+"/permissionviews",label:"Permission on Views",name:"PermissionViewApi",Icon:Us},{resource_name:e+"/viewsmenus",label:"Views/Menus",name:"ViewsMenusApi",Icon:hh}].filter(c=>i.permissions.includes(c.name));return d.jsxs(v.Menu,{width:260,position:"bottom-end",transition:"pop-top-right",withinPortal:!0,opened:a,onClose:()=>s(!1),onOpen:()=>s(!0),children:[d.jsx(v.Menu.Target,{children:t||d.jsx(v.UnstyledButton,{className:La.btn,style:{borderRadius:4},p:"xs",children:d.jsxs(v.Group,{style:{flexWrap:"nowrap"},spacing:7,children:[d.jsx(v.Text,{weight:500,size:"sm",style:{lineHeight:1,whiteSpace:"nowrap"},mr:3,children:`${i.first_name} ${i.last_name}`}),d.jsx(wo,{size:12})]})})}),d.jsxs(v.Menu.Dropdown,{children:[u.length?d.jsxs(d.Fragment,{children:[d.jsx(v.Menu.Label,{children:"Security"}),u.map((c,f)=>d.jsx(v.Menu.Item,{p:12,leftSection:d.jsx(c.Icon,{className:La.iconSmall}),onClick:()=>n(c.resource_name),children:c.label},f)),d.jsx(v.Menu.Divider,{})]}):null,r,d.jsx(v.Menu.Item,{leftSection:d.jsx(bh,{p:12,className:La.iconSmall}),onClick:o,children:"Logout"})]})]})}A.Actions=tl,A.Add=Bs,A.AddDialog=Es,A.ApiProvider=_s,A.DataGrid=Ko,A.Delete=el,A.DeleteDialog=cd,A.Edit=Qs,A.EditDialog=Zs,A.Filter=Hs,A.FilterMenu=Ws,A.MantineArrayControlRenderer=dd,A.MantineBooleanCell=Cd,A.MantineBooleanControl=fc,A.MantineDateCell=Ad,A.MantineDateControl=eu,A.MantineDateTimeCell=kd,A.MantineDateTimeControl=ru,A.MantineEnumArrayRenderer=hd,A.MantineEnumCell=Id,A.MantineEnumControl=pc,A.MantineHorizontalLayoutRenderer=gd,A.MantineIntegerCell=Td,A.MantineIntegerControl=Ru,A.MantineLayoutRenderer=aa,A.MantineNumberCell=xd,A.MantineNumberControl=Iu,A.MantineTableControl=ud,A.MantineTextCell=Sd,A.MantineTextControl=uc,A.MantineVerticalLayoutRenderer=vd,A.NoBorderTableCell=kr,A.NonEmptyRow=ld,A.Provider=Fp,A.UserMenu=Tk,A.mantineArrayControlTester=fd,A.mantineBooleanCellTester=wd,A.mantineBooleanControlTester=cc,A.mantineCells=_k,A.mantineDateCellTester=Od,A.mantineDateControlTester=Ql,A.mantineDateTimeCellTester=Pd,A.mantineDateTimeControlTester=tu,A.mantineEnumArrayRendererTester=pd,A.mantineEnumCellTester=jd,A.mantineEnumControlTester=dc,A.mantineHorizontalLayoutTester=md,A.mantineIntegerCellTester=_d,A.mantineIntegerControlTester=$u,A.mantineNumberCellTester=bd,A.mantineNumberControlTester=ju,A.mantineRenderers=xk,A.mantineTextCellTester=Ed,A.mantineTextControlTester=lc,A.mantineVerticalLayoutTester=yd,A.renderLayoutElements=Su,A.useApi=Re,A.useAuth=vs,A.useAuthenticate=Ba,A.useBulkActions=Wp,A.useCustomFetch=yn,A.useDebouncedChange=ku,A.useGetList=Wa,A.useInfo=bs,A.useInfo_=gs,A.withAjvProps=bv,Object.defineProperty(A,Symbol.toStringTag,{value:"Module"})});
113
+ } });`:Jr(12,x?` (${x})`:"",JSON.stringify(h.main)));return Qf(h,"light",k,n),Qf(h,"dark",D,n),h.contrastText||(h.contrastText=c(h.main)),h},y={dark:Ma,light:Zf};return process.env.NODE_ENV!=="production"&&(y[t]||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),Et(he({common:he({},un),mode:t,primary:p({color:o,name:"primary"}),secondary:p({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:s,name:"error"}),warning:p({color:f,name:"warning"}),info:p({color:l,name:"info"}),success:p({color:u,name:"success"}),grey:gP,contrastThreshold:r,getContrastText:c,augmentColor:p,tonalOffset:n},y[t]),i)}const wP=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function CP(e){return Math.round(e*1e5)/1e5}const ed={textTransform:"uppercase"},td='"Roboto", "Helvetica", "Arial", sans-serif';function OP(e,t){const r=typeof t=="function"?t(e):t,{fontFamily:n=td,fontSize:i=14,fontWeightLight:o=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:f,pxToRem:c}=r,p=Ut(r,wP);process.env.NODE_ENV!=="production"&&(typeof i!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof u!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const y=i/14,g=c||(w=>`${w/u*y}rem`),h=(w,k,D,N,_)=>he({fontFamily:n,fontWeight:w,fontSize:g(k),lineHeight:D},n===td?{letterSpacing:`${CP(N/k)}em`}:{},_,f),x={h1:h(o,96,1.167,-1.5),h2:h(o,60,1.2,-.5),h3:h(a,48,1.167,0),h4:h(a,34,1.235,.25),h5:h(a,24,1.334,0),h6:h(s,20,1.6,.15),subtitle1:h(a,16,1.75,.15),subtitle2:h(s,14,1.57,.1),body1:h(a,16,1.5,.15),body2:h(a,14,1.43,.15),button:h(s,14,1.75,.4,ed),caption:h(a,12,1.66,.4),overline:h(a,12,2.66,1,ed),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Et(he({htmlFontSize:u,pxToRem:g,fontFamily:n,fontSize:i,fontWeightLight:o,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},x),p,{clone:!1})}const AP=.2,PP=.14,kP=.12;function _e(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${AP})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${PP})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${kP})`].join(",")}const jP=["none",_e(0,2,1,-1,0,1,1,0,0,1,3,0),_e(0,3,1,-2,0,2,2,0,0,1,5,0),_e(0,3,3,-2,0,3,4,0,0,1,8,0),_e(0,2,4,-1,0,4,5,0,0,1,10,0),_e(0,3,5,-1,0,5,8,0,0,1,14,0),_e(0,3,5,-1,0,6,10,0,0,1,18,0),_e(0,4,5,-2,0,7,10,1,0,2,16,1),_e(0,5,5,-3,0,8,10,1,0,3,14,2),_e(0,5,6,-3,0,9,12,1,0,3,16,2),_e(0,6,6,-3,0,10,14,1,0,4,18,3),_e(0,6,7,-4,0,11,15,1,0,4,20,3),_e(0,7,8,-4,0,12,17,2,0,5,22,4),_e(0,7,8,-4,0,13,19,2,0,5,24,4),_e(0,7,9,-4,0,14,21,2,0,5,26,4),_e(0,8,9,-5,0,15,22,2,0,6,28,5),_e(0,8,10,-5,0,16,24,2,0,6,30,5),_e(0,8,11,-5,0,17,26,2,0,6,32,5),_e(0,9,11,-5,0,18,28,2,0,7,34,6),_e(0,9,12,-6,0,19,29,2,0,7,36,6),_e(0,10,13,-6,0,20,31,3,0,8,38,7),_e(0,10,13,-6,0,21,33,3,0,8,40,7),_e(0,10,14,-6,0,22,35,3,0,8,42,7),_e(0,11,14,-7,0,23,36,3,0,9,44,8),_e(0,11,15,-7,0,24,38,3,0,9,46,8)],IP=["duration","easing","delay"],$P={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},RP={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function rd(e){return`${Math.round(e)}ms`}function DP(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function MP(e){const t=he({},$P,e.easing),r=he({},RP,e.duration);return he({getAutoHeightDuration:DP,create:(i=["all"],o={})=>{const{duration:a=r.standard,easing:s=t.easeInOut,delay:l=0}=o,u=Ut(o,IP);if(process.env.NODE_ENV!=="production"){const f=p=>typeof p=="string",c=p=>!isNaN(parseFloat(p));!f(i)&&!Array.isArray(i)&&console.error('MUI: Argument "props" must be a string or Array.'),!c(a)&&!f(a)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${a}.`),f(s)||console.error('MUI: Argument "easing" must be a string.'),!c(l)&&!f(l)&&console.error('MUI: Argument "delay" must be a number or a string.'),typeof o!="object"&&console.error(["MUI: Secong argument of transition.create must be an object.","Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join(`
114
+ `)),Object.keys(u).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(u).join(",")}].`)}return(Array.isArray(i)?i:[i]).map(f=>`${f} ${typeof a=="string"?a:rd(a)} ${s} ${typeof l=="string"?l:rd(l)}`).join(",")}},e,{easing:t,duration:r})}const NP={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},FP=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function LP(e={},...t){const{mixins:r={},palette:n={},transitions:i={},typography:o={}}=e,a=Ut(e,FP);if(e.vars)throw new Error(process.env.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name.":Jr(18));const s=SP(n),l=zf(e);let u=Et(l,{mixins:tP(l.breakpoints,r),palette:s,shadows:jP.slice(),typography:OP(s,o),transitions:MP(i),zIndex:he({},NP)});if(u=Et(u,a),u=t.reduce((f,c)=>Et(f,c),u),process.env.NODE_ENV!=="production"){const f=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],c=(p,y)=>{let g;for(g in p){const h=p[g];if(f.indexOf(g)!==-1&&Object.keys(h).length>0){if(process.env.NODE_ENV!=="production"){const x=ga("",g);console.error([`MUI: The \`${y}\` component increases the CSS specificity of the \`${g}\` internal state.`,"You can not override it like this: ",JSON.stringify(p,null,2),"",`Instead, you need to use the '&.${x}' syntax:`,JSON.stringify({root:{[`&.${x}`]:h}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
115
+ `))}p[g]={}}}};Object.keys(u.components).forEach(p=>{const y=u.components[p].styleOverrides;y&&p.indexOf("Mui")===0&&c(y,p)})}return u.unstable_sxConfig=he({},ln,a==null?void 0:a.unstable_sxConfig),u.unstable_sx=function(c){return ja({sx:c,theme:this})},u}const zP=LP(),UP="$$material";function VP(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const BP=zA({themeId:UP,defaultTheme:zP,rootShouldForwardProp:e=>VP(e)&&e!=="classes"});function WP(e){return ga("MuiSvgIcon",e)}_C("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const HP=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],GP=e=>{const{color:t,fontSize:r,classes:n}=e,i={root:["root",t!=="inherit"&&`color${tr(t)}`,`fontSize${tr(r)}`]};return vC(i,WP,n)},qP=BP("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${tr(r.color)}`],t[`fontSize${tr(r.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var r,n,i,o,a,s,l,u,f,c,p,y,g;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(r=e.transitions)==null||(n=r.create)==null?void 0:n.call(r,"fill",{duration:(i=e.transitions)==null||(i=i.duration)==null?void 0:i.shorter}),fontSize:{inherit:"inherit",small:((o=e.typography)==null||(a=o.pxToRem)==null?void 0:a.call(o,20))||"1.25rem",medium:((s=e.typography)==null||(l=s.pxToRem)==null?void 0:l.call(s,24))||"1.5rem",large:((u=e.typography)==null||(f=u.pxToRem)==null?void 0:f.call(u,35))||"2.1875rem"}[t.fontSize],color:(c=(p=(e.vars||e).palette)==null||(p=p[t.color])==null?void 0:p.main)!=null?c:{action:(y=(e.vars||e).palette)==null||(y=y.action)==null?void 0:y.active,disabled:(g=(e.vars||e).palette)==null||(g=g.action)==null?void 0:g.disabled,inherit:void 0}[t.color]}}),Na=tt.forwardRef(function(t,r){const n=AC({props:t,name:"MuiSvgIcon"}),{children:i,className:o,color:a="inherit",component:s="svg",fontSize:l="medium",htmlColor:u,inheritViewBox:f=!1,titleAccess:c,viewBox:p="0 0 24 24"}=n,y=Ut(n,HP),g=tt.isValidElement(i)&&i.type==="svg",h=he({},n,{color:a,component:s,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:f,viewBox:p,hasSvgAsChild:g}),x={};f||(x.viewBox=p);const w=GP(h);return d.jsxs(qP,he({as:s,className:SC(w.root,o),focusable:"false",color:u,"aria-hidden":c?void 0:!0,role:c?"img":void 0,ref:r},x,y,g&&i.props,{ownerState:h,children:[g?i.props.children:i,c?d.jsx("title",{children:c}):null]}))});process.env.NODE_ENV!=="production"&&(Na.propTypes={children:H.node,classes:H.object,className:H.string,color:H.oneOfType([H.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),H.string]),component:H.elementType,fontSize:H.oneOfType([H.oneOf(["inherit","large","medium","small"]),H.string]),htmlColor:H.string,inheritViewBox:H.bool,shapeRendering:H.string,sx:H.oneOfType([H.arrayOf(H.oneOfType([H.func,H.object,H.bool])),H.func,H.object]),titleAccess:H.string,viewBox:H.string}),Na.muiName="SvgIcon";const nd=Na;function Fa(e,t){function r(n,i){return d.jsx(nd,he({"data-testid":`${t}Icon`,ref:i},n,{children:e}))}return process.env.NODE_ENV!=="production"&&(r.displayName=`${t}Icon`),r.muiName=nd.muiName,tt.memo(tt.forwardRef(r))}const YP=Fa(d.jsx("path",{d:"m20 12-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8z"}),"ArrowDownward"),KP=Fa(d.jsx("path",{d:"m4 12 1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8z"}),"ArrowUpward"),XP=Fa(d.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"}),"Delete"),kr=({children:e,...t})=>d.jsx(v.Table.Td,{...t,children:e}),JP=({errorMessages:e,id:t})=>d.jsx(v.Tooltip,{id:t,title:e,children:d.jsx(v.Indicator,{label:e.split(`
116
+ `).length,children:d.jsx(gh,{})})}),ZP={paddingLeft:0,paddingRight:0},QP=T.memo(function({numColumns:t,errors:r,label:n,description:i,path:o,addItem:a,schema:s,enabled:l,translations:u,rootSchema:f}){const c={bg:"transparent",size:"sm",c:"gray"},p=v.useProps("ActionIcon",c,{});return d.jsxs(v.Table.Tr,{children:[d.jsx(kr,{colSpan:t,children:d.jsxs(v.Stack,{children:[d.jsxs(v.Grid,{justify:"flex-start",align:"center",gutter:"sm",children:[d.jsx(v.Grid.Col,{span:"content",children:d.jsx(v.Text,{children:n})}),d.jsx(v.Grid.Col,{span:"content",children:r.length!==0?d.jsx(v.Grid.Col,{span:"content",children:d.jsx(JP,{id:"tooltip-validation",errorMessages:r})}):null})]}),i&&d.jsx(v.Text,{size:"sm",children:i})]})}),l?d.jsx(kr,{align:"right",style:ZP,children:d.jsx(v.Tooltip,{id:"tooltip-add",title:u.addTooltip,position:"bottom",children:d.jsx(v.ActionIcon,{bg:p.bg,size:p.size,c:p.c,onClick:a(o,V.createDefaultValue(s,f)),children:d.jsx(Co,{})})})}):null]})}),id={fixedCell:{width:"150px",height:"50px",paddingLeft:0,paddingRight:0,textAlign:"center"},fixedCellSmall:{width:"50px",height:"50px",paddingLeft:0,paddingRight:0,textAlign:"center"}},od=(e,t,r,n,i)=>{if(t.type==="object")return ad(t).map(o=>{var l,u;const a=V.Paths.compose(r,o),s={propName:o,schema:t,title:((u=(l=t.properties)==null?void 0:l[o])==null?void 0:u.title)??qw(o),rowPath:r,cellPath:a,enabled:n,cells:i};return d.jsx(e,{...s},a)});{const o={schema:t,rowPath:r,cellPath:r,enabled:n};return d.jsx(e,{...o},r)}},ad=e=>e.type==="object"&&typeof e.properties=="object"?Object.keys(e.properties).filter(t=>e.properties[t].type!=="array"):[""],ek=({numColumns:e,translations:t})=>d.jsx(v.Table.Tr,{children:d.jsx(kr,{colSpan:e,children:d.jsx(v.Text,{align:"center",children:t.noDataMessage})})}),tk=T.memo(function({title:t}){return d.jsx(v.Table.Th,{children:t})}),rk=(e,t)=>{const r=t.rowPath+(t.schema.type==="object"?"."+t.propName:""),n=V.formatErrorMessage(DE(V.errorsAt(r,t.schema,i=>i===r)(e.core.errors).map(i=>i.message)));return{rowPath:t.rowPath,propName:t.propName,schema:t.schema,rootSchema:e.core.schema,errors:n,path:r,enabled:t.enabled,cells:t.cells||e.cells,renderers:t.renderers||e.renderers}},sd=e=>({type:"Control",scope:e,label:!1}),nk=T.memo(function({path:t,propName:r,schema:n,rootSchema:i,errors:o,enabled:a,renderers:s,cells:l,isValid:u}){return d.jsxs(kr,{children:[n.properties?d.jsx(ve.DispatchCell,{schema:V.Resolve.schema(n,`#/properties/${V.encode(r)}`,i),uischema:sd(`#/properties/${V.encode(r)}`),path:t,enabled:a,renderers:s,cells:l}):d.jsx(ve.DispatchCell,{schema:n,uischema:sd("#"),path:t,enabled:a,renderers:s,cells:l}),d.jsx(v.Text,{size:"xs",children:u?"":o})]})}),ik=e=>{const t=ve.useJsonForms(),r=rk(t,e),n=Eu(r.errors);return d.jsx(nk,{...r,isValid:n})},ok=({childPath:e,schema:t,rowIndex:r,openDeleteDialog:n,moveUpCreator:i,moveDownCreator:o,enableUp:a,enableDown:s,showSortButtons:l,enabled:u,cells:f,path:c,translations:p})=>{const y={bg:"transparent",size:"sm",c:"gray"},g=v.useProps("ActionIcon",y,{}),h=T.useMemo(()=>i(c,r),[i,c,r]),x=T.useMemo(()=>o(c,r),[o,c,r]);return d.jsxs(v.Table.Tr,{children:[od(ik,t,e,u,f),u?d.jsx(kr,{style:l?id.fixedCell:id.fixedCellSmall,children:d.jsxs(v.Grid,{justify:"flex-end",align:"center",children:[l?d.jsxs(T.Fragment,{children:[d.jsx(v.Grid.Col,{span:"content",children:d.jsx(v.Tooltip,{id:"tooltip-up",title:p.up,position:"bottom",opened:a?void 0:!1,children:d.jsx(v.ActionIcon,{bg:g.bg,size:g.size,c:g.c,"aria-label":p.upAriaLabel,onClick:h,disabled:!a,children:d.jsx(KP,{})})})}),d.jsx(v.Grid.Col,{span:"content",children:d.jsx(v.Tooltip,{id:"tooltip-down",title:p.down,position:"bottom",opened:s?void 0:!1,children:d.jsx(v.ActionIcon,{bg:g.bg,size:g.size,c:g.c,"aria-label":p.downAriaLabel,onClick:x,disabled:!s,children:d.jsx(YP,{})})})})]}):null,d.jsx(v.Grid.Col,{span:"content",children:d.jsx(v.Tooltip,{id:"tooltip-remove",title:p.removeTooltip,position:"bottom",children:d.jsx(v.ActionIcon,{bg:g.bg,size:g.size,c:g.c,"aria-label":p.removeAriaLabel,onClick:()=>n(e,r),children:d.jsx(XP,{})})})})]})}):null]},e)},ld=T.memo(ok),ak=({data:e,path:t,schema:r,openDeleteDialog:n,moveUp:i,moveDown:o,uischema:a,config:s,enabled:l,cells:u,translations:f})=>{if(e===0)return d.jsx(ek,{numColumns:ad(r).length+1,translations:f});const p=oc({},s,a.options);return d.jsx(T.Fragment,{children:uC(e).map(y=>{const g=V.Paths.compose(t,`${y}`);return d.jsx(ld,{childPath:g,rowIndex:y,schema:r,openDeleteDialog:n,moveUpCreator:i,moveDownCreator:o,enableUp:y!==0,enableDown:y!==e-1,showSortButtons:p.showSortButtons||p.showArrayTableSortButtons,enabled:l,cells:u,path:t,translations:f},g)})})};class ud extends T.Component{constructor(){super(...arguments);Dd(this,"addItem",(r,n)=>this.props.addItem(r,n))}render(){const{label:r,description:n,path:i,schema:o,rootSchema:a,uischema:s,errors:l,openDeleteDialog:u,visible:f,enabled:c,cells:p,translations:y}=this.props,g=s,h=o.type==="object",x=h?od(tk,o,i,c,p):void 0;return f?d.jsxs(v.Table,{children:[d.jsxs(v.Table.Thead,{children:[d.jsx(QP,{errors:l,label:r,description:n,addItem:this.addItem,numColumns:h?x.length:1,path:i,uischema:g,schema:o,rootSchema:a,enabled:c,translations:y}),h&&d.jsxs(v.Table.Tr,{children:[x,c?d.jsx(v.Table.Th,{}):null]})]}),d.jsx(v.Table.Tbody,{children:d.jsx(ak,{openDeleteDialog:u,translations:y,...this.props})})]}):null}}const cd=T.memo(function({open:t,onClose:r,onConfirm:n,onCancel:i,title:o,message:a,acceptText:s,declineText:l}){return d.jsxs(v.Modal,{opened:t,withCloseButton:!1,centered:!0,title:o,keepMounted:!0,onClose:r,children:[a,d.jsxs(v.Flex,{justify:"flex-end",align:"center",gap:"sm",children:[d.jsx(v.Button,{onClick:i,children:l}),d.jsx(v.Button,{onClick:n,children:s})]})]})}),sk=e=>{const[t,r]=T.useState(!1),[n,i]=T.useState(void 0),[o,a]=T.useState(void 0),{removeItems:s,visible:l}=e,u=T.useCallback((y,g)=>{r(!0),i(y),a(g)},[r,i,a]),f=T.useCallback(()=>r(!1),[r]),c=T.useCallback(()=>{const y=n.substring(0,n.lastIndexOf("."));s(y,[o])(),r(!1)},[r,n,o]),p=T.useCallback(()=>r(!1),[r]);return l?d.jsxs(d.Fragment,{children:[d.jsx(ud,{...e,openDeleteDialog:u}),d.jsx(cd,{open:t,onCancel:f,onConfirm:c,onClose:p,acceptText:e.translations.deleteDialogAccept,declineText:e.translations.deleteDialogDecline,title:e.translations.deleteDialogTitle,message:e.translations.deleteDialogMessage})]}):null},fd=V.rankWith(3,V.or(V.isObjectArrayControl,V.isPrimitiveArrayControl)),dd=ve.withJsonFormsArrayLayoutProps(sk),lk=({errors:e,description:t,label:r,required:n,path:i,options:o,data:a,enabled:s,handleChange:l})=>d.jsx(v.MultiSelect,{disabled:!s,data:o,defaultValue:a,label:r,description:t,required:n,error:e,onChange:u=>{l(i,u)}}),uk=e=>e.oneOf!==void 0&&e.oneOf.length>0&&e.oneOf.every(t=>t.const!==void 0),ck=e=>e.type==="string"&&e.enum!==void 0,pd=V.rankWith(6,V.and(V.uiTypeIs("Control"),V.and(V.schemaMatches(e=>V.hasType(e,"array")&&!Array.isArray(e.items)&&e.uniqueItems===!0),V.schemaSubPathMatches("items",(e,t)=>{const r=e.$ref?V.resolveSchema(t,e.$ref,t):e;return uk(r)||ck(r)})))),hd=ve.withJsonFormsMultiEnumProps(lk),md=V.rankWith(5,V.uiTypeIs("HorizontalLayout")),fk=({uischema:e,renderers:t,cells:r,schema:n,path:i,enabled:o})=>{const s={elements:e.elements,schema:n,path:i,enabled:o,direction:"row"};return d.jsx(aa,{...s,renderers:t,cells:r})},gd=ve.withJsonFormsLayoutProps(fk),yd=V.rankWith(5,V.uiTypeIs("VerticalLayout")),dk=({uischema:e,schema:t,path:r,enabled:n,renderers:i,cells:o})=>{const s={elements:e.elements,schema:t,path:r,enabled:n,direction:"column"};return d.jsx(aa,{...s,renderers:i,cells:o})},vd=ve.withJsonFormsLayoutProps(dk),pk=e=>d.jsx(Jn,{...e}),bd=V.rankWith(4,V.isNumberControl),xd=ve.withJsonFormsCellProps(pk),hk=e=>d.jsx(Jn,{...e}),_d=V.rankWith(3,V.isIntegerControl),Td=ve.withJsonFormsCellProps(hk),mk=e=>d.jsx(ac,{...e}),Ed=V.rankWith(2,V.isStringControl),Sd=ve.withJsonFormsCellProps(mk),gk=e=>d.jsx(sc,{...e}),wd=V.rankWith(3,V.isBooleanControl),Cd=ve.withJsonFormsCellProps(gk),yk=e=>{const{data:t,className:r,enabled:n,path:i,handleChange:o,description:a,errors:s,label:l,required:u}=e;return d.jsx(or.DateInput,{valueFormat:"DD.MM.YYYY",label:l,description:a,error:s,required:u,value:t?new Date(t):null,onChange:f=>{if(f instanceof Date){const c=new Date(f.getTime()-f.getTimezoneOffset()*6e4);o(i,c.toISOString().substring(0,10))}},className:r,disabled:!n,w:"100%"})},Od=V.rankWith(2,V.isDateControl),Ad=ve.withJsonFormsCellProps(yk),vk=e=>{const{description:t,className:r,enabled:n,path:i,handleChange:o,data:a,errors:s,label:l,required:u}=e;return d.jsx(or.DateInput,{valueFormat:"DD.MM.YYYY",className:r,disabled:!n,label:l,description:t,error:s,required:u,value:a?new Date(a):null,onChange:f=>{if(f instanceof Date){const c=new Date(f.getTime()-f.getTimezoneOffset()*6e4);o(i,c.toISOString().substring(0,10))}},w:"100%"})},Pd=V.rankWith(5,V.isDateTimeControl),kd=ve.withJsonFormsControlProps(vk),bk=e=>{const{description:t,data:r,options:n,enabled:i,handleChange:o,className:a,errors:s,label:l,required:u}=e;return d.jsx(v.Select,{data:n,defaultValue:r,label:l,description:t,required:u,error:s,disabled:!i,searchable:!0,onChange:f=>{o(path,f)},className:a,w:"100%"})},jd=V.rankWith(5,V.isEnumControl),Id=ve.withJsonFormsEnumProps(ve.withTranslateProps(T.memo(bk)),!1),xk=[{tester:Ql,renderer:eu},{tester:tu,renderer:ru},{tester:ju,renderer:Iu},{tester:$u,renderer:Ru},{tester:lc,renderer:uc},{tester:cc,renderer:fc},{tester:dc,renderer:pc},{tester:fd,renderer:dd},{tester:pd,renderer:hd},{tester:md,renderer:gd},{tester:yd,renderer:vd}],_k=[{tester:Ed,cell:Sd},{tester:bd,cell:xd},{tester:_d,cell:Td},{tester:wd,cell:Cd},{tester:Od,cell:Ad},{tester:Pd,cell:kd},{tester:jd,cell:Id}],La={iconSmall:"_iconSmall_sxv3z_1",iconLarge:"_iconLarge_sxv3z_6",btn:"_btn_sxv3z_17"};function Tk({basePath:e="/security",Target:t,children:r}){const n=Md.useNavigate(),{user:i,signout:o}=vs(),[a,s]=T.useState(!1),u=[{resource_name:e+"/users",label:"Users",name:"UsersApi",Icon:_h},{resource_name:e+"/roles",label:"Roles",name:"RolesApi",Icon:vh},{resource_name:e+"/permissions",label:"Base Permissions",name:"PermissionsApi",Icon:Us},{resource_name:e+"/permissionviews",label:"Permission on Views",name:"PermissionViewApi",Icon:Us},{resource_name:e+"/viewsmenus",label:"Views/Menus",name:"ViewsMenusApi",Icon:hh}].filter(f=>i.permissions.includes(f.name));return d.jsxs(v.Menu,{width:260,position:"bottom-end",transition:"pop-top-right",withinPortal:!0,opened:a,onClose:()=>s(!1),onOpen:()=>s(!0),children:[d.jsx(v.Menu.Target,{children:t||d.jsx(v.UnstyledButton,{className:La.btn,style:{borderRadius:4},p:"xs",children:d.jsxs(v.Group,{style:{flexWrap:"nowrap"},spacing:7,children:[d.jsx(v.Text,{weight:500,size:"sm",style:{lineHeight:1,whiteSpace:"nowrap"},mr:3,children:`${i.first_name} ${i.last_name}`}),d.jsx(wo,{size:12})]})})}),d.jsxs(v.Menu.Dropdown,{children:[u.length?d.jsxs(d.Fragment,{children:[d.jsx(v.Menu.Label,{children:"Security"}),u.map((f,c)=>d.jsx(v.Menu.Item,{p:12,leftSection:d.jsx(f.Icon,{className:La.iconSmall}),onClick:()=>n(f.resource_name),children:f.label},c)),d.jsx(v.Menu.Divider,{})]}):null,r,d.jsx(v.Menu.Item,{leftSection:d.jsx(bh,{p:12,className:La.iconSmall}),onClick:o,children:"Logout"})]})]})}A.Actions=tl,A.Add=Bs,A.AddDialog=Es,A.ApiProvider=_s,A.DataGrid=Ko,A.Delete=el,A.DeleteDialog=cd,A.Edit=Qs,A.EditDialog=Zs,A.Filter=Hs,A.FilterMenu=Ws,A.MantineArrayControlRenderer=dd,A.MantineBooleanCell=Cd,A.MantineBooleanControl=fc,A.MantineDateCell=Ad,A.MantineDateControl=eu,A.MantineDateTimeCell=kd,A.MantineDateTimeControl=ru,A.MantineEnumArrayRenderer=hd,A.MantineEnumCell=Id,A.MantineEnumControl=pc,A.MantineHorizontalLayoutRenderer=gd,A.MantineIntegerCell=Td,A.MantineIntegerControl=Ru,A.MantineLayoutRenderer=aa,A.MantineNumberCell=xd,A.MantineNumberControl=Iu,A.MantineTableControl=ud,A.MantineTextCell=Sd,A.MantineTextControl=uc,A.MantineVerticalLayoutRenderer=vd,A.NoBorderTableCell=kr,A.NonEmptyRow=ld,A.Provider=Fp,A.UserMenu=Tk,A.mantineArrayControlTester=fd,A.mantineBooleanCellTester=wd,A.mantineBooleanControlTester=cc,A.mantineCells=_k,A.mantineDateCellTester=Od,A.mantineDateControlTester=Ql,A.mantineDateTimeCellTester=Pd,A.mantineDateTimeControlTester=tu,A.mantineEnumArrayRendererTester=pd,A.mantineEnumCellTester=jd,A.mantineEnumControlTester=dc,A.mantineHorizontalLayoutTester=md,A.mantineIntegerCellTester=_d,A.mantineIntegerControlTester=$u,A.mantineNumberCellTester=bd,A.mantineNumberControlTester=ju,A.mantineRenderers=xk,A.mantineTextCellTester=Ed,A.mantineTextControlTester=lc,A.mantineVerticalLayoutTester=yd,A.renderLayoutElements=Su,A.useApi=Re,A.useAuth=vs,A.useAuthenticate=Ba,A.useBulkActions=Wp,A.useCustomFetch=yn,A.useDebouncedChange=ku,A.useGetList=Wa,A.useInfo=bs,A.useInfo_=gs,A.withAjvProps=bv,Object.defineProperty(A,Symbol.toStringTag,{value:"Module"})});