fastapi-rtk 0.0.13 → 0.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/fastapi-rtk.es.js +4633 -4596
- package/dist/fastapi-rtk.umd.js +38 -38
- package/package.json +1 -1
package/dist/fastapi-rtk.umd.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(
|
|
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 wk=Object.defineProperty;var Ck=(A,T,v)=>T in A?wk(A,T,{enumerable:!0,configurable:!0,writable:!0,value:v}):A[T]=v;var Dd=(A,T,v)=>(Ck(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
|
|
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={};/**
|
|
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
|
|
18
|
-
`+q+m}}var J=!1,X;{var Ae=typeof WeakMap=="function"?WeakMap:Map;X=new Ae}function
|
|
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];F("error",m,R)}}function F(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 N=!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||N||_||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(`
|
|
19
19
|
`),b=W.stack.split(`
|
|
20
|
-
`),
|
|
21
|
-
`+
|
|
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 M(m){var E=m.prototype;return!!(E&&E.isReactComponent)}function Ye(m,E,R){if(m==null)return"";if(typeof m=="function")return $(m,M(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`
|
|
22
22
|
|
|
23
|
-
Check the render method of \``+m+"`."}return""}}function
|
|
23
|
+
Check the render method of \``+m+"`."}return""}}function Ii(m){{if(m!==void 0){var E=m.fileName.replace(/^.*[\\\/]/,""),R=m.lineNumber;return`
|
|
24
24
|
|
|
25
|
-
Check your code at `+
|
|
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=`
|
|
26
26
|
|
|
27
|
-
Check the top-level render call using <`+
|
|
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:
|
|
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,ve,ir,ve),Ni[ve+et]=!0}}return m===n?Mi(k):Di(k),k}}function Nr(m,T,I){return ot(m,T,I,!0)}function Fi(m,T,I){return ot(m,T,I,!1)}var Li=Fi,zi=Nr;zr.Fragment=n,zr.jsx=Li,zr.jsxs=zi}()),zr}process.env.NODE_ENV==="production"?Vi.exports=Id():Vi.exports=Rd();var d=Vi.exports;function Ve({path:e,method:t,body:r=void 0,queryParams:n=void 0}){Object.entries(n||{}).forEach(([a,o])=>{(Array.isArray(o)||typeof o=="object")&&(o=JSON.stringify(o)),e.includes("?")||(e+="?"),e+=`${a}=${o}&`}),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 Dd(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 a=e[i];if(typeof a!="string")throw new TypeError("Url must be a string. Received "+a);a!==""&&(i>0&&(a=a.replace(/^[\/]+/,"")),i<e.length-1?a=a.replace(/[\/]+$/,""):a=a.replace(/[\/]+$/,"/"),t.push(a))}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 Dd(t)}const Md={user:null,loading:!0};function Nd(e,t){switch(t.type){case"initCall":return{...e,loading:!0,error:null};case"setUser":return{...e,user:t.payload,loading:!1,error:!1};case"setError":return{...e,user:null,loading:!1,error:t.payload};case"setLoading":return{...e,loading:t.payload};default:return e}}function Fd(e){const[t,r]=S.useReducer(Nd,Md);S.useEffect(()=>{n()},[]);async function n(){r({type:"initCall"});try{const{fetchPath:u,options:f}=Ve({path:Pe(e,"auth/user"),method:"GET"}),c=await fetch(u,f);if(c.ok){const p=await c.json();return r({payload:p,type:"setUser"}),p}throw new Error(c.statusText)}catch{r({payload:!1,type:"setLoading"})}}async function i({username:u,password:f}){r({type:"initCall"});try{const c=new FormData;c.append("username",u),c.append("password",f);const{fetchPath:p,options:g}=Ve({path:Pe(e,"auth/login"),method:"POST"});(await fetch(p,{...g,headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams(c)})).ok?n():r({payload:"Username or password wrong.",type:"setError"})}catch(c){console.error("signin error",c),r({payload:"Failed to fetch",type:"setError"})}}async function a(){r({type:"initCall"});try{const{fetchPath:u,options:f}=Ve({path:Pe(e,"auth/logout"),method:"POST"});(await fetch(u,f)).ok?r({payload:null,type:"setUser"}):r({payload:"Couldn't sign out user",type:"setError"})}catch(u){console.error("signout error",u),r({payload:"Failed to fetch",type:"setError"})}}async function o(u){r({type:"initCall"});try{const{fetchPath:f,options:c}=Ve({path:Pe(e,"auth/user"),method:"PUT",body:u}),p=await fetch(f,c);if(p.ok){const g=await p.json();r({payload:g,type:"setUser"})}r({payload:"Couldn't update user data",type:"setError"})}catch(f){console.error("update error",f),r({payload:"Failed to post",type:"setError"})}}async function s(u){try{const{fetchPath:f,options:c}=Ve({path:Pe(e,"auth/forgot-password"),method:"POST",body:{email:t.user.email}}),p=await fetch(f,c);if(!p.ok){r({payload:"Couldn't request token to reset password",type:"setError"});return}const g=await p.json(),{token:y}=g,{fetchPath:h,options:x}=Ve({path:Pe(e,"auth/reset-password"),method:"POST",body:{token:y,password:u}});if(!(await fetch(h,x)).ok){r({payload:"Couldn't reset password",type:"setError"});return}r({payload:{...t.user},type:"setUser"})}catch(f){console.error("resetPassword error",f),r({payload:"Failed to post",type:"setError"})}}function l(u,f){const c=Pe(e,"auth/login",u);if(f){const y=window.screenLeft+window.outerWidth/2-250,h=window.screenTop+window.outerHeight/2-500/2,x=window.open(c+"?popup=true","auth",`toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, width=500, height=500, top=${h}, left=${y}`),O=window.setInterval(function(){x.closed!==!1&&(window.clearInterval(O),n())},200);return}window.location.href=Pe(e,"auth/login",u)}return{user:t.user,loading:t.loading,error:t.error,signin:i,signout:a,update:o,resetPassword:s,oauth_signin:l}}function Ld(e,t){const{user:r}=t,[n,i]=S.useState(null),[a,o]=S.useState(!0),[s,l]=S.useState({error:"401 Not authorized",message:"User is not logged in."});S.useEffect(()=>{r&&u(e)},[r]);const u=async f=>{o(!0);try{const{fetchPath:c,options:p}=Ve({path:Pe(f,"info/"),method:"GET"}),g=await fetch(c,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{o(!1)}};return{info:n,loading:a,error:s}}const Bi=S.createContext({auth:{},info:{}});function Wo(){return S.useContext(Bi).auth}function Ho(){return S.useContext(Bi).info}function zd(e){const t={baseUrl:new URL(document.baseURI).pathname+"/api/v1",inheritMantineTheme:!1},{baseUrl:r,children:n}={...t,...e},i=Fd(r),a={baseUrl:r,...Ld(r,i)};return d.jsx(Bi.Provider,{value:{auth:i,info:a},children:n})}const Ud=async(e,t)=>{try{const{fetchPath:r,options:n}=Ve({path:Pe(e,"/"),method:"POST",body:t}),i=await fetch(r,n),a=await i.json();if(i.ok)return a;throw new Error(a.detail)}catch(r){throw new Error(r)}},Vd=async(e,t)=>{try{const{fetchPath:r,options:n}=Ve({path:Pe(e,t.toString()),method:"DELETE"}),i=await fetch(r,n),a=await i.json();if(i.ok)return a;throw new Error(a.detail)}catch(r){throw new Error(r)}},Bd=async(e,t)=>{try{const{fetchPath:r,options:n}=Ve({path:Pe(e,t.toString()),method:"GET"}),i=await fetch(r,n),a=await i.json();if(i.ok)return a;throw new Error(a.detail)}catch(r){throw new Error(r)}};let or=null;const Wd=async(e,t)=>{or=new AbortController;const r=or.signal;try{const{fetchPath:n,options:i}=Ve({path:Pe(e,"/"),method:"GET",queryParams:t}),a=await fetch(n,{...i,signal:r});if(a.ok)return await a.json();throw new Error(a.statusText)}catch(n){if(n instanceof AbortSignal)return;throw new Error(n)}},Hd=async e=>{try{const{fetchPath:t,options:r}=Ve({path:Pe(e,"_info"),method:"GET"}),n=await fetch(t,r),i=await n.json();if(n.ok)return i;throw new Error(i.detail)}catch(t){throw new Error(t)}},Gd=async(e,t,r)=>{try{const{fetchPath:n,options:i}=Ve({path:Pe(e,t.toString()),method:"PUT",body:r}),a=await fetch(n,i),o=await a.json();if(a.ok)return o;throw new Error(o.detail)}catch(n){throw new Error(n)}},Fe=e=>e&&typeof e=="object"?JSON.stringify(e):e;function Wi(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 Go=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 qd=/[^.^\]^[]+|(?=\[\]|\.\.)/g,qo=/^\d+$/,Yd=/^\d/,Kd=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,Xd=/^\s*(['"]?)(.*?)(\1)\s*$/,Hi=512,Yo=new qt(Hi),Ko=new qt(Hi),Xo=new qt(Hi),Yt={Cache:qt,split:qi,normalizePath:Gi,setter:function(e){var t=Gi(e);return Ko.get(e)||Ko.set(e,function(n,i){for(var a=0,o=t.length,s=n;a<o-1;){var l=t[a];if(l==="__proto__"||l==="constructor"||l==="prototype")return n;s=s[t[a++]]}s[t[a]]=i})},getter:function(e,t){var r=Gi(e);return Xo.get(e)||Xo.set(e,function(i){for(var a=0,o=r.length;a<o;)if(i!=null||!t)i=i[r[a++]];else return;return i})},join:function(e){return e.reduce(function(t,r){return t+(Yi(r)||qo.test(r)?"["+r+"]":(t?".":"")+r)},"")},forEach:function(e,t,r){Jd(Array.isArray(e)?e:qi(e),t,r)}};function Gi(e){return Yo.get(e)||Yo.set(e,qi(e).map(function(t){return t.replace(Xd,"$2")}))}function qi(e){return e.match(qd)||[""]}function Jd(e,t,r){var n=e.length,i,a,o,s;for(a=0;a<n;a++)i=e[a],i&&(ep(i)&&(i='"'+i+'"'),s=Yi(i),o=!s&&/^\d+$/.test(i),t.call(r,i,s,o,a,e))}function Yi(e){return typeof e=="string"&&e&&["'",'"'].indexOf(e.charAt(0))!==-1}function Zd(e){return e.match(Yd)&&!e.match(qo)}function Qd(e){return Kd.test(e)}function ep(e){return!Yi(e)&&(Zd(e)||Qd(e))}const tp=/[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(tp)||[],bn=e=>e[0].toUpperCase()+e.slice(1),Ki=(e,t)=>vn(e).join(t).toLowerCase(),Jo=e=>vn(e).reduce((t,r)=>`${t}${t?r[0].toUpperCase()+r.slice(1).toLowerCase():r.toLowerCase()}`,"");var Xi={words:vn,upperFirst:bn,camelCase:Jo,pascalCase:e=>bn(Jo(e)),snakeCase:e=>Ki(e,"_"),kebabCase:e=>Ki(e,"-"),sentenceCase:e=>bn(Ki(e," ")),titleCase:e=>vn(e).map(bn).join(" ")},Ji={exports:{}};Ji.exports=function(e){return Zo(rp(e),e)},Ji.exports.array=Zo;function Zo(e,t){var r=e.length,n=new Array(r),i={},a=r,o=np(t),s=ip(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.")});a--;)i[a]||l(e[a],a,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 g=o.get(u)||new Set;if(g=Array.from(g),f=g.length){c.add(u);do{var y=g[--f];l(y,s.get(y),c)}while(f);c.delete(u)}n[--r]=u}}}function rp(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 np(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 ip(e){for(var t=new Map,r=0,n=e.length;r<n;r++)t.set(e[r],r);return t}var ap=Ji.exports;const op=Ot(ap),sp=Object.prototype.toString,lp=Error.prototype.toString,up=RegExp.prototype.toString,cp=typeof Symbol<"u"?Symbol.prototype.toString:()=>"",fp=/^Symbol\((.*)\)(.*)$/;function dp(e){return e!=+e?"NaN":e===0&&1/e<0?"-0":""+e}function Qo(e,t=!1){if(e==null||e===!0||e===!1)return""+e;const r=typeof e;if(r==="number")return dp(e);if(r==="string")return t?`"${e}"`:e;if(r==="function")return"[Function "+(e.name||"anonymous")+"]";if(r==="symbol")return cp.call(e).replace(fp,"Symbol($1)");const n=sp.call(e).slice(8,-1);return n==="Date"?isNaN(e.getTime())?""+e:e.toISOString(e):n==="Error"||e instanceof Error?"["+lp.call(e)+"]":n==="RegExp"?up.call(e):null}function xt(e,t){let r=Qo(e,t);return r!==null?r:JSON.stringify(e,function(n,i){let a=Qo(this[n],t);return a!==null?a:i},2)}function es(e){return e==null?[]:[].concat(e)}let ts,rs,ns,pp=/\$\{\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(a=>{if(Le.isError(a)){this.errors.push(...a.errors);const o=a.inner.length?a.inner:[a];this.inner.push(...o)}else this.errors.push(a)}),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(pp,(i,a)=>xt(r[a])):typeof t=="function"?t(r):t}static isError(t){return t&&t.name==="ValidationError"}constructor(t,r,n,i,a){const o=new is(t,r,n,i);if(a)return o;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=o.name,this.message=o.message,this.type=o.type,this.value=o.value,this.path=o.path,this.errors=o.errors,this.inner=o.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"},Zi={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},Qi={isValue:"${path} field must be ${value}"},ea={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"},as={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 os=Object.assign(Object.create(null),{mixed:_t,string:Ke,number:Mt,date:Zi,object:ea,array:xn,boolean:Qi,tuple:as});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:a}=r,o=typeof n=="function"?n:(...s)=>s.every(l=>l===n);return new _n(t,(s,l)=>{var u;let f=o(...s)?i:a;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(a=>a.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 hp(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 sr(e){function t({value:r,path:n="",options:i,originalValue:a,schema:o},s,l){const{name:u,test:f,params:c,message:p,skipAbsent:g}=e;let{parent:y,context:h,abortEarly:x=o.spec.abortEarly,disableStackTrace:O=o.spec.disableStackTrace}=i;function $(U){return Nt.isRef(U)?U.getValue(r,y,h):U}function N(U={}){const ae=Object.assign({value:r,originalValue:a,label:o.spec.label,path:U.path||n,spec:o.spec,disableStackTrace:U.disableStackTrace||O},c,U.params);for(const he of Object.keys(ae))ae[he]=$(ae[he]);const de=new Le(Le.formatError(U.message||p,ae),r,ae.path,U.type||u,ae.disableStackTrace);return de.params=ae,de}const M=x?s:l;let _={path:n,parent:y,type:u,from:i.from,createError:N,resolve:$,options:i,originalValue:a,schema:o};const R=U=>{Le.isError(U)?M(U):U?l(null):M(N())},L=U=>{Le.isError(U)?M(U):s(U)};if(g&&pt(r))return R(!0);let me;try{var Oe;if(me=f.call(_,r,_),typeof((Oe=me)==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(me).then(R,L)}}catch(U){L(U);return}R(me)}return t.OPTIONS=e,t}function ta(e,t,r,n=r){let i,a,o;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 "${o}" must contain an index to the tuple element, e.g. "${o}[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: ${o} which is a type: "${e.type}")`);i=r,r=r&&r[f],e=e.fields[f]}a=f,o=l?"["+s+"]":"."+s}),{schema:e,parent:i,parentPath:a}):{parent:i,parentPath:t,schema:e}}function mp(e,t,r,n){return ta(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 lr(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]=lr(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,lr(i,t))}else if(e instanceof Set){r=new Set,t.set(e,r);for(const n of e)r.add(lr(n,t))}else if(e instanceof Object){r={},t.set(e,r);for(const[n,i]of Object.entries(e))r[n]=lr(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=lr(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(a=>{t.tests.forEach(o=>{a.test(o.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,a)=>a.resolve(i,t),r),r=r.resolve(t)}return r}resolveOptions(t){var r,n,i,a;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:(a=t.disableStackTrace)!=null?a:this.spec.disableStackTrace})}cast(t,r={}){let n=this.resolve(Object.assign({value:t},r)),i=r.assert==="ignore-optionality",a=n._cast(t,r);if(r.assert!==!1&&!n.isType(a)){if(i&&pt(a))return a;let o=xt(t),s=xt(a);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,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,...r}){const[n,i]=T.useState(null),[o,a]=T.useState(!1),[s,l]=T.useState(null),u=T.useRef(null),c=T.useCallback(()=>{if(e)return l(null),u.current&&u.current.abort(),u.current=new AbortController,a(!0),fetch(e,{signal:u.current.signal,...r}).then(async p=>{const g=await p.json();if(!p.ok)throw new Error(g.detail);return i(g),g}).catch(p=>(p.name!=="AbortError"&&l(p),p)).finally(()=>{a(!1)})},[e]),f=T.useCallback(()=>{var p;u.current&&((p=u.current)==null||p.abort(""))},[]);return T.useEffect(()=>(t&&c(),()=>{u.current&&u.current.abort("")}),[c,t]),{data:n,loading:o,error:s,refetch:c,abort:f}}function Ba({path:e,autoInvoke:t=!0}){const{fetchPath:r,options:n}=T.useMemo(()=>Ve({path:Pe(e,"auth/user"),method:"GET"}),[e]),{data:i,loading:o,refetch:a,error:s}=yn(r,{autoInvoke:t,...n});return{user:i,loading:o,refetch:a,error:s}}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)=>{try{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)}catch(r){throw new Error(r)}},Vd=async(e,t)=>{try{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)}catch(r){throw new Error(r)}},Bd=async(e,t)=>{try{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)}catch(r){throw new Error(r)}},Wd=async(e,t,r)=>{try{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)}catch(n){throw new Error(n)}},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 F(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 N=x?s:l;let _={path:n,parent:y,type:u,from:i.from,createError:F,resolve:j,options:i,originalValue:o,schema:a};const P=U=>{Le.isError(U)?N(U):U?l(null):N(F())},D=U=>{Le.isError(U)?N(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}".
|
|
33
33
|
|
|
34
|
-
attempted value: ${
|
|
35
|
-
`+(s!==o?`result of cast: ${s}`:""))}return a}_cast(t,r){let n=t===void 0?t:this.transforms.reduce((i,a)=>a.call(this,i,t,this),t);return n===void 0&&(n=this.getDefault(r)),n}_validate(t,r={},n,i){let{path:a,originalValue:o=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:a,value:l,originalValue:o,options:r,tests:u},n,f=>{if(f.length)return i(f,l);this.runTests({path:a,value:l,originalValue:o,options:r,tests:this.tests},n,i)})}runTests(t,r,n){let i=!1,{tests:a,value:o,originalValue:s,path:l,options:u}=t,f=h=>{i||(i=!0,r(h,o))},c=h=>{i||(i=!0,n(h,o))},p=a.length,g=[];if(!p)return c([]);let y={value:o,originalValue:s,path:l,options:u,schema:this};for(let h=0;h<a.length;h++){const x=a[h];x(y,f,function($){$&&(Array.isArray($)?g.push(...$):g.push($)),--p<=0&&c(g)})}}asNestedTest({key:t,index:r,parent:n,parentPath:i,originalParent:a,options:o}){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({},o,{strict:!0,parent:n,value:u,originalValue:a[s],key:void 0,[l?"index":"key"]:s,path:l||s.includes(".")?`${i||""}[${l?s:`"${s}"`}]`:(i?`${i}.`:"")+t});return(c,p,g)=>this.resolve(f)._validate(u,f,p,g)}validate(t,r){var n;let i=this.resolve(Object.assign({},r,{value:t})),a=(n=r==null?void 0:r.disableStackTrace)!=null?n:i.spec.disableStackTrace;return new Promise((o,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,a)):o(u)}))}validateSync(t,r){var n;let i=this.resolve(Object.assign({},r,{value:t})),a,o=(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,o);a=l}),a}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):lr(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=sr({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=sr({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=sr(r),a=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(o=>!(o.OPTIONS.name===r.name&&(a||o.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(a=>new Nt(a));return i.forEach(a=>{a.isSibling&&n.deps.push(a.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=sr({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=sr({message:r,name:"oneOf",skipAbsent:!0,test(i){let a=this.schema._whitelist,o=a.resolveAll(this.resolve);return o.includes(i)?!0:this.createError({params:{values:Array.from(a).join(", "),resolved:o}})}}),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=sr({message:r,name:"notOneOf",test(i){let a=this.schema._blacklist,o=a.resolveAll(this.resolve);return o.includes(i)?this.createError({params:{values:Array.from(a).join(", "),resolved:o}}):!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:a,nullable:o}=r.spec;return{meta:i,label:n,optional:a,nullable:o,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:a,schema:o}=ta(this,t,r,n.context);return o[e](i&&i[a],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 gp=()=>!0;function Sn(e){return new ra(e)}class ra extends ze{constructor(t){super(typeof t=="function"?{type:"mixed",check:t}:Object.assign({type:"mixed",check:gp},t))}}Sn.prototype=ra.prototype;function na(){return new ia}class ia 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=Qi.isValue){return this.test({message:t,name:"is-value",exclusive:!0,params:{value:"true"},test(r){return pt(r)||r===!0}})}isFalse(t=Qi.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)}}na.prototype=ia.prototype;const yp=/^(\d{4}|[+-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,.](\d{1,}))?)?(?:(Z)|([+-])(\d{2})(?::?(\d{2}))?)?)?$/;function vp(e){const t=aa(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 aa(e){var t,r;const n=yp.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 bp=/^[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])?)*$/,xp=/^((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,_p=/^(?:[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,Tp="^\\d{4}-\\d{2}-\\d{2}",Ep="\\d{2}:\\d{2}:\\d{2}",Sp="(([+-]\\d{2}(:?\\d{2})?)|Z)",wp=new RegExp(`${Tp}T${Ep}(\\.\\d+)?${Sp}$`),Cp=e=>pt(e)||e===e.trim(),Op={}.toString();function wn(){return new oa}class oa 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===Op?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,a;return r&&(typeof r=="object"?{excludeEmptyString:n=!1,message:i,name:a}=r:i=r),this.test({name:a||"matches",message:i||Ke.matches,params:{regex:t},skipAbsent:!0,test:o=>o===""&&n||o.search(t)!==-1})}email(t=Ke.email){return this.matches(bp,{name:"email",message:t,excludeEmptyString:!0})}url(t=Ke.url){return this.matches(xp,{name:"url",message:t,excludeEmptyString:!0})}uuid(t=Ke.uuid){return this.matches(_p,{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(wp,{name:"datetime",message:r||Ke.datetime,excludeEmptyString:!0}).test({name:"datetime_offset",message:r||Ke.datetime_offset,params:{allowOffset:n},skipAbsent:!0,test:a=>{if(!a||n)return!0;const o=aa(a);return o?!!o.z:!1}}).test({name:"datetime_precision",message:r||Ke.datetime_precision,params:{precision:i},skipAbsent:!0,test:a=>{if(!a||i==null)return!0;const o=aa(a);return o?o.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:Cp})}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=oa.prototype;let Ap=e=>e!=+e;function ss(){return new sa}class sa extends ze{constructor(){super({type:"number",check(t){return t instanceof Number&&(t=t.valueOf()),typeof t=="number"&&!Ap(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=sa.prototype;let ls=new Date(""),Pp=e=>Object.prototype.toString.call(e)==="[object Date]";function la(){return new ur}class ur extends ze{constructor(){super({type:"date",check(t){return Pp(t)&&!isNaN(t.getTime())}}),this.withMutation(()=>{this.transform((t,r,n)=>!n.spec.coerce||n.isType(t)||t===null?t:(t=vp(t),isNaN(t)?ur.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=Zi.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=Zi.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)}})}}ur.INVALID_DATE=ls,la.prototype=ur.prototype,la.INVALID_DATE=ls;function kp(e,t=[]){let r=[],n=new Set,i=new Set(t.map(([o,s])=>`${o}-${s}`));function a(o,s){let l=Yt.split(o)[0];n.add(l),i.has(`${s}-${l}`)||r.push([s,l])}for(const o of Object.keys(e)){let s=e[o];n.add(o),Nt.isRef(s)&&s.isSibling?a(s.path,o):Kt(s)&&"deps"in s&&s.deps.forEach(l=>a(l,o))}return op.array(Array.from(n),r).reverse()}function us(e,t){let r=1/0;return e.some((n,i)=>{var a;if((a=t.path)!=null&&a.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 jp=(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 $p(e,t){let r=Object.keys(e.fields);return Object.keys(t).filter(n=>r.indexOf(n)===-1)}const Ip=cs([]);function Ur(e){return new ua(e)}class ua extends ze{constructor(t){super({type:"object",check(r){return ds(r)||typeof r=="function"}}),this.fields=Object.create(null),this._sortErrors=Ip,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 a=this.fields,o=(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=a[c],g=c in i;if(p){let y,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,O=x==null?void 0:x.strict;if(x!=null&&x.strip){f=f||c in i;continue}y=!r.__validating||!O?p.cast(i[c],u):i[c],y!==void 0&&(l[c]=y)}else g&&!o&&(l[c]=i[c]);(g!==c in l||l[c]!==i[c])&&(f=!0)}return f?l:i}_validate(t,r={},n,i){let{from:a=[],originalValue:o=t,recursive:s=this.spec.recursive}=r;r.from=[{schema:this,value:o},...a],r.__validating=!0,r.originalValue=o,super._validate(t,r,n,(l,u)=>{if(!s||!ds(u)){i(l,u);return}o=o||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:o}))}this.runTests({tests:f,value:u,originalValue:o,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,a]of Object.entries(this.fields)){const o=n[i];n[i]=o===void 0?a:o}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 a=this.fields[n];let o=t;(i=o)!=null&&i.value&&(o=Object.assign({},o,{parent:o.value,value:o.value[n]})),r[n]=a&&"getDefault"in a?a.getDefault(o):void 0}),r}setFields(t,r){let n=this.clone();return n.fields=t,n._nodes=kp(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(a=>{if(!a)return a;let o=a;return jp(a,t)&&(o=Object.assign({},a),n||delete o[t],o[r]=i(a)),o})}json(){return this.transform(fs)}noUnknown(t=!0,r=ea.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 a=$p(this.schema,i);return!t||a.length===0||this.createError({params:{unknown:a.join(", ")}})}});return n.spec.noUnknown=t,n}unknown(t=!0,r=ea.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(Xi.camelCase)}snakeCase(){return this.transformKeys(Xi.snakeCase)}constantCase(){return this.transformKeys(t=>Xi.snakeCase(t).toUpperCase())}describe(t){const r=(t?this.resolve(t):this).clone(),n=super.describe(t);n.fields={};for(const[a,o]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[a]})),n.fields[a]=o.describe(s)}return n}}Ur.prototype=ua.prototype;function ca(e){return new fa(e)}class fa 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 a=n.map((o,s)=>{const l=this.innerType.cast(o,Object.assign({},r,{path:`${r.path||""}[${s}]`}));return l!==o&&(i=!0),l});return i?a:n}_validate(t,r={},n,i){var a;let o=this.innerType,s=(a=r.recursive)!=null?a:this.spec.recursive;r.originalValue!=null&&r.originalValue,super._validate(t,r,n,(l,u)=>{var f;if(!s||!o||!this._typeCheck(u)){i(l,u);return}let c=new Array(u.length);for(let g=0;g<u.length;g++){var p;c[g]=o.asNestedTest({options:r,index:g,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,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,a)=>!t(n,i,a):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 a=t;(i=a)!=null&&i.value&&(a=Object.assign({},a,{parent:a.value,value:a.value[0]})),n.innerType=r.innerType.describe(a)}return n}}ca.prototype=fa.prototype;function ps(e){return new da(e)}class da 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(as.notType)})}_cast(t,r){const{types:n}=this.spec,i=super._cast(t,r);if(!this._typeCheck(i))return i;let a=!1;const o=n.map((s,l)=>{const u=s.cast(i[l],Object.assign({},r,{path:`${r.path||""}[${l}]`}));return u!==i[l]&&(a=!0),u});return a?o:i}_validate(t,r={},n,i){let a=this.spec.types;super._validate(t,r,n,(o,s)=>{var l;if(!this._typeCheck(s)){i(o,s);return}let u=[];for(let[c,p]of a.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(o),s))})}describe(t){const r=(t?this.resolve(t):this).clone(),n=super.describe(t);return n.innerType=r.spec.types.map((i,a)=>{var o;let s=t;return(o=s)!=null&&o.value&&(s=Object.assign({},s,{parent:s.value,value:s.value[a]})),i.describe(s)}),n}}ps.prototype=da.prototype;function Rp(e){return new pa(e)}class pa{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 pa(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:a}=t,o=i[n??r];return this._resolve(o,Object.assign({},a,{value:o,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 Dp(e){Object.keys(e).forEach(t=>{Object.keys(e[t]).forEach(r=>{os[t][r]=e[t][r]})})}function Mp(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:fa,BooleanSchema:ia,DateSchema:ur,MixedSchema:ra,NumberSchema:sa,ObjectSchema:ua,Schema:ze,StringSchema:oa,TupleSchema:da,ValidationError:Le,addMethod:Mp,array:ca,bool:na,boolean:na,date:la,defaultLocale:os,getIn:ta,isSchema:Kt,lazy:Rp,mixed:Sn,number:ss,object:Ur,printValue:xt,reach:mp,ref:hp,setLocale:Dp,string:wn,tuple:ps},Symbol.toStringTag,{value:"Module"})),ms=e=>{const t=e.reduce((r,n)=>{let{name:i,required:a,type:o}=n;switch(o){case"RelatedList":o="array";break;case"Related":o="object";break;case"Date":o="string";break;case"Integer":case"Float":o="number";break;default:o="string"}let s;try{a?s=hs[o]().typeError(`Field must be of type ${o}`).required("Field is required"):s=hs[o]().typeError(`Field must be of type ${o}`).nullable(!0)}catch(l){console.log(l)}return r[i]=s,r},{});return Ur().shape(t)},Np=async(e,t,r)=>{try{const{fetchPath:n,options:i}=Ve({path:Pe(t,"/download"),method:"POST"}),a=await fetch(n,{...i,body:JSON.stringify(r)});if(!a.ok)throw new Error(a.statusText);const o=await a.blob(),s=document.createElement("a"),l=URL.createObjectURL(o);s.href=l,s.download=e.toLowerCase()+".csv",s.click()}catch(n){throw new Error(n)}},Fp={data:null,info:null,queryParams:null,infoLoading:!1,dataLoading:!1,error:null};function Lp(e,t){switch(t.type){case"setData":return{...e,data:t.payload,dataLoading:!1,error:null};case"setInfo":return{...e,info:t.payload,infoLoading:!1};case"setQueryParams":return{...e,queryParams:{...t.payload}};case"setInfoLoading":return{...e,infoLoading:t.payload};case"setDataLoading":return{...e,dataLoading:t.payload};case"setError":return{...e,error:t.payload,infoLoading:!1,dataLoading:!1};default:throw new Error}}function zp(e){const[t,r]=S.useReducer(Lp,{...Fp,queryParams:e.initialQueryParams?Wi(null,e.initialQueryParams):null});S.useEffect(()=>{r({type:"setInfo",payload:null}),a(),t.data&&r({type:"setQueryParams",payload:Wi(null,{})})},[e.path]),S.useEffect(()=>{t.queryParams&&i()},[t.queryParams]);const n=c=>{const p=Wi(t.queryParams,c);r({type:"setQueryParams",payload:p})},i=async()=>{try{r({type:"setDataLoading",payload:!0});const c=e.relation?{...t.queryParams,filters:[...t.queryParams.filters,{col:e.relation.foreign_key,opr:e.relation.type,value:Fe(e.relation.id)}]}:t.queryParams;let p=await Wd(e.path,c);return p&&(p.result=p.result.map((g,y)=>({...g,id:p.ids[y]})),r({type:"setData",payload:p})),p}catch(c){r({type:"setError",payload:{message:"Couldn't fetch list",originalError:c}})}},a=async()=>{try{r({type:"setInfoLoading",payload:!0});const c=await Hd(e.path),p={...c,add:{columns:c.add_columns,title:c.add_title,schema:ms(c.add_columns),defaultValues:Go(c.add_columns)},edit:{columns:c.edit_columns,title:c.edit_title,schema:ms(c.edit_columns),defaultValues:Go(c.edit_columns)}};return await r({type:"setInfo",payload:p}),p}catch(c){r({type:"setError",payload:{message:"Couldn't fetch list info",originalError:c}})}},o=async c=>{try{return await Bd(e.path,Fe(c))}catch(p){r({type:"setError",payload:{message:`Couldn't fetch item with id ${c}`,originalError:p}})}},s=async(c,p)=>{try{const g=await Ud(e.path,c);return p||(a(),i()),g}catch(g){r({type:"setError",payload:{message:"Couldnt add item.",originalError:g}})}},l=async(c,p,g)=>{try{const y=await Gd(e.path,Fe(c),p);return g||(a(),i()),y}catch(y){r({type:"setError",payload:{message:`Couldn't update item with id ${c}`,originalError:y}})}},u=async(c,p)=>{try{const g=await Vd(e.path,Fe(c));return p||(a(),i()),g}catch(g){r({type:"setError",payload:{message:`Couldn't delete item with id ${c}`,originalError:g}})}},f=async c=>{try{await Np(c,e.path,t.queryParams)}catch(p){r({type:"setError",payload:{message:"Couldn't download",originalError:p}})}};return{path:e.path,data:t.data,info:t.info,queryParams:t.queryParams,loading:t.infoLoading||t.dataLoading,error:t.error,setQueryParams:n,getEntry:o,addEntry:s,updateEntry:l,deleteEntry:u,download:f}}const Up=async(e,t,r)=>{try{const{fetchPath:n,options:i}=Ve({path:Pe(e,"/bulk",t),method:"POST",body:r}),a=await fetch(n,i);if(a.ok)return await a.json();throw new Error(a.statusText)}catch(n){throw new Error(n)}},Vp={selectedIds:[]},Bp=(e,t)=>{switch(t.type){case"SET_SELECTED_IDS":return{...e,selectedIds:t.payload};default:return e}},Wp=e=>{const[t,r]=S.useReducer(Bp,Vp),n=S.useCallback(a=>{r({type:"SET_SELECTED_IDS",payload:a})},[]),i=async(a,o)=>{const{selectedIds:s}=t;try{const l=await Up(e.path,a,s);if(o)return;e.Api.setQueryParams(e.Api.queryParams)}catch(l){console.log(l)}};return{bulkActions:{selectedIds:t.selectedIds,setSelectedIds:n},dispatchBulkActions:i}},ha=S.createContext({Api:{},BulkActions:{}});function Re(){const e=S.useContext(ha);if(e===void 0)throw new Error("useApi must be used within a ApiProvider");return e.Api}function Hp(){const e=S.useContext(ha);if(e===void 0)throw new Error("useBulkActions must be used within a ApiProvider");return e.BulkActions}function gs({resource_name:e="",initialQueryParams:t,relation:r,children:n}){const{baseUrl:i}=Ho(),a=zp({path:Pe(i,e),initialQueryParams:t,relation:r}),o=Wp({path:Pe(i,e),Api:a});return d.jsx(ha.Provider,{value:{Api:a,BulkActions:o},children:n})}function ma(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 Gp({form:e,name:t,...r}){return d.jsx(d.Fragment,{children:d.jsx(ar.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 qp({form:e,name:t,...r}){return d.jsx(d.Fragment,{children:d.jsx(ar.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 Yp({form:e,name:t,items:r,filter:n,...i}){var o;const a=r.map(s=>({value:String(Fe(s.id)),label:s.value}));return d.jsx(v.Select,{data:a,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((o=e.getInputProps(t).value)==null?void 0:o.id))||"",...i})}function Kp({form:e,name:t,items:r,...n}){const i=r.map(o=>({value:String(Fe(o.id)),label:o.value})),a=Array.isArray(e.getInputProps(t).value)?e.getInputProps(t).value.map(o=>String(typeof o=="object"?Fe(o.id):o)):[];return d.jsx(v.MultiSelect,{data:i,searchable:!0,...e.getInputProps(t),value:a||[],...n})}function Xp({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 ys({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 Jp=/choices=\[([^\]]*)\]/;function Zp({form:e,name:t,items:r,...n}){const i=r[0].match(Jp)[1].replaceAll("'","").split(",").map(a=>(a=a.trim(),{label:a,value:a}));return d.jsx(v.Select,{data:i,searchable:!0,...e.getInputProps(t),...n,value:String(e.getInputProps(t).value)||""})}function ga({form:e,name:t,schema:r,filter:n,...i}){if(!r.type)return null;switch(r.type){case"Boolean":return d.jsx(Xp,{form:e,name:t,items:[{label:"true",value:n?"1":"true"},{label:"false",value:n?"0":"false"}],...i});case"RelatedList":return d.jsx(Kp,{form:e,name:t,items:r.values,...i});case"Related":return d.jsx(Yp,{form:e,name:t,items:r.values,filter:n,...i});case"DateTime":return d.jsx(qp,{form:e,name:t,valueFormat:"DD.MM.YYYY HH:mm:ss",schema:r,...i});case"Date":return d.jsx(Gp,{form:e,name:t,valueFormat:"DD.MM.YYYY",schema:r,...i});case"Field":return d.jsx(Zp,{form:e,name:t,items:r.validate,...i});case"Integer":case"Float":return d.jsx(ys,{form:e,name:t,...i});default:return d.jsx(ys,{form:e,name:t,...i})}}function vs({opened:e,onClose:t,...r}){const{info:n,addEntry:i}=Re(),a={modal:{},stack:{},addButton:{}},{addButton:o,modal:s,stack:l}=v.useProps("AddDialog",a,r),u=Ui.useForm({initialValues:n.add.defaultValues,validate:ma(n.add.schema)}),f=async c=>{await i(c),u.reset(),t()};return S.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(ga,{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",...o,children:"Add"})})]})})})})}var ya={exports:{}},On={exports:{}},oe={};/** @license React v16.13.1
|
|
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,loading:!1,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}=Ba({path:e});T.useEffect(()=>{r({type:"setUser",payload:n})},[n]);const o=T.useCallback(async({username:c,password:f})=>{r({type:"initCall"});try{const p=new FormData;p.append("username",c),p.append("password",f);const{fetchPath:g,options:y}=Ve({path:Pe(e,"auth/login"),method:"POST"});(await fetch(g,{...y,headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams(p)})).ok?i():r({type:"setError",payload:"Username or password wrong."})}catch(p){console.error("signin error",p),r({type:"setError",payload:"Failed to fetch"})}},[e,i]),a=T.useCallback(async()=>{r({type:"initCall"});try{const{fetchPath:c,options:f}=Ve({path:Pe(e,"auth/logout"),method:"POST"});(await fetch(c,f)).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"})}},[e]),s=T.useCallback(async c=>{r({type:"initCall"});try{const{fetchPath:f,options:p}=Ve({path:Pe(e,"auth/user"),method:"PUT",body:c});(await fetch(f,p)).ok&&i(),r({type:"setError",payload:"Couldn't update user data"})}catch(f){console.error("update error",f),r({type:"setError",payload:"Failed to post"})}},[e,i]),l=T.useCallback(async c=>{if(!n.email)return r({type:"setError",payload:"No email found"});try{const{fetchPath:f,options:p}=Ve({path:Pe(e,"auth/forgot-password"),method:"POST",body:{email:n.email}}),g=await fetch(f,p);if(!g.ok){r({type:"setError",payload:"Couldn't request token to reset password"});return}const y=await g.json(),{token:h}=y,{fetchPath:x,options:w}=Ve({path:Pe(e,"auth/reset-password"),method:"POST",body:{token:h,password:c}});if(!(await fetch(x,w)).ok){r({type:"setError",payload:"Couldn't reset password"});return}i()}catch(f){console.error("resetPassword error",f),r({type:"setError",payload:"Failed to post"})}},[e,i,n==null?void 0:n.email]),u=T.useCallback((c,f)=>{const p=Pe(e,"auth/login",c);if(f){const h=window.screenLeft+window.outerWidth/2-250,x=window.screenTop+window.outerHeight/2-500/2,w=window.open(p+"?popup=true","auth",`toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, width=500, height=500, top=${x}, left=${h}`),j=window.setInterval(function(){w.closed!==!1&&(window.clearInterval(j),i())},200);return}window.location.href=Pe(e,"auth/login",c)},[e,i]);return{user:t.user,loading:t.loading,error:t.error,signin:o,signout:a,update:s,resetPassword:l,oauth_signin:u}}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)=>{try{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()}catch(n){throw new Error(n)}},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]),F=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]),N=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,getEntry:w,addEntry:j,updateEntry:F,deleteEntry:N,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={selectedIds:[]},Wp=(e,t)=>{switch(t.type){case"SET_SELECTED_IDS":return{...e,selectedIds:t.payload};default:return e}},Hp=e=>{const[t,r]=T.useReducer(Wp,Bp),n=T.useCallback(o=>{r({type:"SET_SELECTED_IDS",payload:o})},[]),i=async(o,a)=>{const{selectedIds:s}=t;try{const l=await Vp(e.path,o,s);if(a)return;e.Api.setQueryParams(e.Api.queryParams)}catch(l){console.log(l)}};return{bulkActions:{selectedIds:t.selectedIds,setSelectedIds:n},dispatchBulkActions:i}},ho=T.createContext({Api:{},BulkActions:{}});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 Gp(){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=Hp({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 qp({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 Yp({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 Kp({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 Xp({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 Jp({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 Zp=/choices=\[([^\]]*)\]/;function Qp({form:e,name:t,items:r,...n}){const i=r[0].match(Zp)[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(Jp,{form:e,name:t,items:[{label:"true",value:n?"1":"true"},{label:"false",value:n?"0":"false"}],...i});case"RelatedList":return d.jsx(Xp,{form:e,name:t,items:r.values,...i});case"Related":return d.jsx(Kp,{form:e,name:t,items:r.values,filter:n,...i});case"DateTime":return d.jsx(Yp,{form:e,name:t,valueFormat:"DD.MM.YYYY HH:mm:ss",schema:r,...i});case"Date":return d.jsx(qp,{form:e,name:t,valueFormat:"DD.MM.YYYY",schema:r,...i});case"Field":return d.jsx(Qp,{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
|
|
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
|
|
42
|
+
*/var Ss;function eh(){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 F(_){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 N(_){return F(_)===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 N(_)||F(_)===l},le.isConcurrentMode=N,le.isContextConsumer=function(_){return F(_)===s},le.isContextProvider=function(_){return F(_)===a},le.isElement=function(_){return typeof _=="object"&&_!==null&&_.$$typeof===t},le.isForwardRef=function(_){return F(_)===c},le.isFragment=function(_){return F(_)===n},le.isLazy=function(_){return F(_)===y},le.isMemo=function(_){return F(_)===g},le.isPortal=function(_){return F(_)===r},le.isProfiler=function(_){return F(_)===o},le.isStrictMode=function(_){return F(_)===i},le.isSuspense=function(_){return F(_)===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=F,le}var ue={};/** @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
|
|
49
|
+
*/var ws;function th(){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 F($){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 N($){if(typeof $=="object"&&$!==null){var $e=$.$$typeof;switch($e){case t:var M=$.type;switch(M){case l:case u:case n:case o:case i:case f:return M;default:var Ye=M&&M.$$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($)||N($)===l}function C($){return N($)===u}function k($){return N($)===s}function Y($){return N($)===a}function L($){return typeof $=="object"&&$!==null&&$.$$typeof===t}function G($){return N($)===c}function z($){return N($)===n}function B($){return N($)===y}function q($){return N($)===g}function K($){return N($)===r}function J($){return N($)===o}function X($){return N($)===i}function Ae($){return N($)===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=F,ue.typeOf=N}()),ue}var Cs;function Os(){return Cs||(Cs=1,process.env.NODE_ENV==="production"?On.exports=eh():On.exports=th()),On.exports}/*
|
|
50
50
|
object-assign
|
|
51
51
|
(c) Sindre Sorhus
|
|
52
52
|
@license MIT
|
|
53
|
-
*/var
|
|
54
|
-
Valid keys: `+JSON.stringify(Object.keys(w),null," "));var j=Ae(q,X,G,z,B+"."+X,r);if(j)return j}return null}return x(A)}function he(w){switch(typeof w){case"number":case"string":case"undefined":return!0;case"boolean":return!w;case"object":if(Array.isArray(w))return w.every(he);if(w===null||s(w))return!0;var A=c(w);if(A){var Y=A.call(w),F;if(A!==w.entries){for(;!(F=Y.next()).done;)if(!he(F.value))return!1}else for(;!(F=Y.next()).done;){var G=F.value;if(G&&!he(G[1]))return!1}}else return!1;return!0;default:return!1}}function qe(w,A){return w==="symbol"?!0:A?A["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&A instanceof Symbol:!1}function je(w){var A=typeof w;return Array.isArray(w)?"array":w instanceof RegExp?"object":qe(A,w)?"symbol":A}function Ze(w){if(typeof w>"u"||w===null)return""+w;var A=je(w);if(A==="object"){if(w instanceof Date)return"date";if(w instanceof RegExp)return"regexp"}return A}function at(w){var A=Ze(w);switch(A){case"array":case"object":return"an "+A;case"boolean":case"date":case"regexp":return"a "+A;default:return A}}function vt(w){return!w.constructor||!w.constructor.name?p:w.constructor.name}return g.checkPropTypes=i,g.resetWarningCache=i.resetWarningCache,g.PropTypes=g,g},Ea}var Sa,Ps;function ih(){if(Ps)return Sa;Ps=1;var e=xa();function t(){}function r(){}return r.resetWarningCache=t,Sa=function(){function n(o,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 a={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 a.PropTypes=a,a},Sa}if(process.env.NODE_ENV!=="production"){var ah=Ts(),oh=!0;ya.exports=nh()(ah.isElement,oh)}else ya.exports=ih()();var sh=ya.exports;const H=Ot(sh);var lh={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"},uh=Object.defineProperty,ch=Object.defineProperties,fh=Object.getOwnPropertyDescriptors,An=Object.getOwnPropertySymbols,ks=Object.prototype.hasOwnProperty,js=Object.prototype.propertyIsEnumerable,$s=(e,t,r)=>t in e?uh(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Is=(e,t)=>{for(var r in t||(t={}))ks.call(t,r)&&$s(e,r,t[r]);if(An)for(var r of An(t))js.call(t,r)&&$s(e,r,t[r]);return e},dh=(e,t)=>ch(e,fh(t)),ph=(e,t)=>{var r={};for(var n in e)ks.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&&js.call(e,n)&&(r[n]=e[n]);return r},Be=(e,t,r)=>{const n=S.forwardRef((i,a)=>{var o=i,{color:s="currentColor",size:l=24,stroke:u=2,children:f}=o,c=ph(o,["color","size","stroke","children"]);return S.createElement("svg",Is(dh(Is({ref:a},lh),{width:l,height:l,stroke:s,strokeWidth:u,className:`tabler-icon tabler-icon-${e}`}),c),[...r.map(([p,g])=>S.createElement(p,g)),...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},hh=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"}]]),mh=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"}]]),wa=Be("chevron-down","IconChevronDown",[["path",{d:"M6 9l6 6l6 -6",key:"svg-0"}]]),Rs=Be("chevron-up","IconChevronUp",[["path",{d:"M6 15l6 -6l6 6",key:"svg-0"}]]),gh=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"}]]),yh=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"}]]),vh=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"}]]),Ds=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"}]]),bh=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"}]]),Ms=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"}]]),xh=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"}]]),_h=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"}]]),Ca=Be("plus","IconPlus",[["path",{d:"M12 5l0 14",key:"svg-0"}],["path",{d:"M5 12l14 0",key:"svg-1"}]]),Ns=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"}]]),Th=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 Fs(...e){const[t,r]=S.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(Ca,{})})}),d.jsx(vs,{opened:t,onClose:()=>{r(!1)}})]})}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,items:r,onChange:n,...i}){return d.jsx(v.Select,{data:r,searchable:!0,...e.getInputProps(t),onChange:n,...i})}function wh({form:e,name:t,...r}){const n=v.useCombobox({onDropdownClose:()=>n.resetSelectedOption(),onDropdownOpen:()=>n.updateSelectedOptionIndex("active")}),[i,a]=S.useState([]),[o,s]=S.useState(""),l=c=>{o!==""&&(i.includes(o)||a(p=>[...p,o]),s(""))},u=c=>a(p=>p.filter(g=>g!==c)),f=i.map(c=>d.jsx(v.Pill,{withRemoveButton:!0,onRemove:()=>u(c),children:c},c));return S.useEffect(()=>{if(e.getInputProps(t).value)try{const c=JSON.parse(String(e.getInputProps(t).value));a([...c])}catch(c){console.error("Error parsing JSON:",c)}else e.getInputProps(t).onChange([])},[]),S.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:o,placeholder:"Search values",onChange:c=>{n.updateSelectedOptionIndex(),s(c.currentTarget.value)},onKeyDown:c=>{c.key==="Backspace"&&o.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 ",o]})})})]})}function Ls({onClose:e,...t}){const{info:r,queryParams:n,setQueryParams:i,path:a}=Re(),o=Ui.useForm({initialValues:{filters:[]},validate:ma(Ur({filters:ca().of(Ur({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);S.useEffect(()=>{o.setValues({filters:[]}),o.reset()},[a]),S.useEffect(()=>{if(n.filters&&n.filters.length){const c=n.filters.map(p=>({...p,key:Fr.randomId()}));o.setFieldValue("filters",c)}},[n.filters]);const u=c=>{const p=c.filters.map(({key:y,...h})=>h),g=JSON.parse(JSON.stringify(p));i({filters:g,page:0}),e()},f=o.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(Eh,{form:o,name:`filters.${p}.col`,items:Object.entries(r.filters).map(([g,y])=>({label:y.label,value:String(g)})),onChange:g=>{o.setFieldValue(`filters.${p}`,{col:g,opr:"",value:"",key:Fr.randomId()})}})}),d.jsx(v.Box,{style:{width:"192px"},children:c.col?d.jsx(Sh,{form:o,name:`filters.${p}.opr`,items:r.filters[c.col].filters.map(g=>({label:g.name,value:g.operator})),onChange:g=>{o.setFieldValue(`filters.${p}`,{col:o.values.filters[p].col,opr:g,value:"",key:Fr.randomId()})}}):null}),d.jsx(v.Box,{style:{width:"192px"},children:c.col?c.opr==="in"?d.jsx(wh,{form:o,name:`filters.${p}.value`}):d.jsx(ga,{form:o,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:()=>{o.removeListItem("filters",p)},children:d.jsx(Ns,{})})]}),o.values.filters.length>1&&p<o.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:o.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(Ca,{}),onClick:()=>{o.insertListItem("filters",{col:"",opr:"",value:"",key:Fr.randomId()})},children:"Add Filter"}),d.jsx(v.Group,{spacing:"md",children:d.jsx(v.Button,{type:"submit",children:"Apply"})})]})]})}function zs(...e){const{queryParams:t}=Re(),r={bg:"transparent",size:"sm",c:"gray"},n=v.useProps("ActionIcon",r,e),[i,a]=S.useState(!1);return d.jsxs(v.Popover,{opened:i,position:"bottom-end",onClose:()=>a(!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:()=>a(!0),children:d.jsx(Ds,{})})}):d.jsx(v.ActionIcon,{bg:n.bg,size:n.size,c:n.c,onClick:()=>a(!0),children:d.jsx(Ds,{})})})}),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:()=>a(!1)})}),d.jsx(Ls,{onClose:()=>{a(!1)}})]})]})}function Ch(...e){const[t,r]=S.useState(!1),{download:n}=Re(),i={bg:"transparent",size:"sm",c:"gray"},a=v.useProps("ActionIcon",i,e);return t?d.jsx(v.Loader,{color:a.c,size:a.size}):d.jsx(v.Tooltip,{label:"Download",children:d.jsx(v.ActionIcon,{bg:a.bg,size:a.size,c:a.c,onClick:()=>{r(!0),n("download").then(()=>r(!1))},children:d.jsx(gh,{})})})}const Us=S.memo(({hideAdd:e,hideFilter:t,hideDownload:r,toolbarCustomizer:n})=>{const{info:i}=Re(),a=S.useMemo(()=>{const s={};return Object.entries(n).forEach(([l,u])=>{s[l]=u,typeof s[l]=="function"&&(s[l]=s[l]())}),s},[n]),o=i.permissions.includes("can_post");return d.jsxs(v.Flex,{justify:"flex-end",p:"md",gap:"sm",children:[!r&&(a.download||d.jsx(Ch,{})),o&&!e?a.add||d.jsx(Fs,{}):null,t?null:a.filter||d.jsx(zs,{})]})});Us.displayName="Toolbar";const Vs={root:"_root_1kmay_1",wrapper:"_wrapper_1kmay_7",icon:"_icon_1kmay_18"};function Oa({column:e,label:t,orderColumn:r,related:n,toggleAll:i,allChecked:a,classNames:o,styles:s,customElement:l,...u}){const{queryParams:f,setQueryParams:c,loading:p}=Re(),g={fw:700,size:"sm",color:"gray.8",hoverColor:"gray.6",selectedColor:"blue"},y=v.useStyles({name:"FieldTitle",classes:Vs,classNames:o,styles:s,props:u}),h=v.useProps("FieldTitle",g,u),{hovered:x,ref:O}=Fr.useHover(),$=r&&f.order_column===r;return d.jsx(v.Table.Th,{className:Vs.fieldTitleRoot,...y("root"),onClick:r&&!p?()=>c({order_column:r,order_direction:f.order_direction==="asc"?"desc":"asc"}):null,children:d.jsx(v.Box,{ref:O,...y("wrapper"),children:e==="Checkbox"?d.jsx(v.Checkbox,{pb:5,pl:2,onChange:i,checked:a}):d.jsxs(d.Fragment,{children:[d.jsx(v.Box,{w:"100%",fw:h.fw,size:"xl",c:x?h.hoverColor:$?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:$?f.order_direction==="asc"?d.jsx(wa,{size:14,strokeWidth:1.5}):d.jsx(Rs,{size:14,strokeWidth:1.5}):null})})}):d.jsx(v.Box,{...y("icon"),children:$?f.order_direction==="asc"?d.jsx(wa,{size:14,strokeWidth:1.5}):d.jsx(Rs,{size:14,strokeWidth:1.5}):null})]})})})}const Bs=S.memo(({data:e,info:t,settings:r,hideActions:n,hideCheckbox:i,allChecked:a,toggleAll:o,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(Oa,{data:e,column:"Checkbox",allChecked:a,toggleAll:o}),n?null:d.jsx(Oa,{column:"Actions",customElement:u}),e.list_columns.map((f,c)=>{var g;let p=s==null?void 0:s[f];return typeof p=="function"&&(p=p(e.label_columns[f])),p===null?null:d.jsx(Oa,{column:f,label:e.label_columns[f],orderColumn:e.order_columns.find(y=>y===f)||e.order_columns.find(y=>y.startsWith(`${f}.`)),related:((g=t.filters[f])==null?void 0:g.schema.type)==="Nested",customElement:p},f)})]})})});Bs.displayName="Header";const Ws=(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 Hs(e,t){return e===!0||Array.isArray(e)?t:Object.fromEntries(Object.keys(e).map(r=>[r,Hs(e[r],t[r])]))}function Gs(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 a=Object.keys(n),o={};return a.forEach(s=>{o[s]=e[s]}),e.id=o,e}function Oh(e,t){const r={};return t.forEach(n=>{if(n.type==="Related"){r[n.name]=Gs(e.result[n.name],n);return}if(n.type==="RelatedList"){r[n.name]=e.result[n.name].map(i=>Gs(i,n));return}r[n.name]=typeof e.result[n.name]=="boolean"?String(e.result[n.name]):e.result[n.name]}),r}function Ah({relatedPath:e,...t}){const{path:r}=Re();return Pe(r?r.substring(0,r.lastIndexOf("/")):"",e.substring(0,e.lastIndexOf("/"))),d.jsx(gs,{resource_name:e.replace("/",""),relation:t,children:d.jsx(Ka,{hideToolbar:!0,hideDownload:!1})})}const Ph=S.memo(Ah);function kh({item:e,info:t,loading:r,opened:n,onClose:i,...a}){const o={modal:{},tabs:{},tabsList:{},tabsPanel:{}},{modal:s,tabs:l,tabsList:u,tabsPanel:f}=v.useProps("ViewDialog",o,a);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:Ws(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(Ph,{relatedPath:c.path,id:Fe(e.id),foreign_key:c.foreign_key,type:c.type})})},p))]}):null]})}function jh({id:e,...t}){const{info:r,getEntry:n}=Re(),i={bg:"transparent",size:"sm",c:"gray"},a=v.useProps("ActionIcon",i,t),[o,s]=S.useState(null),[l,u]=S.useState(!1),[f,c]=S.useState(!1);return d.jsxs(d.Fragment,{children:[d.jsx(v.Tooltip,{label:"Details",children:d.jsx(v.ActionIcon,{bg:a.bg,size:a.size,c:a.c,onClick:async()=>{u(!0);const p=await n(e);p&&(s(p),u(!1),c(!0))},children:d.jsx(vh,{})})}),d.jsx(kh,{item:o,info:r,loading:l,opened:f,onClose:()=>c(!1)})]})}function $h(e,t){return new Promise(r=>{r(Oh(e,t.edit.columns))})}function qs({item:e,info:t,opened:r,onClose:n,...i}){const{updateEntry:a}=Re(),o={modal:{},stack:{},saveButton:{}},{modal:s,stack:l,saveButton:u}=v.useProps("EditDialog",o,i),f=Ui.useForm({initialValues:t.edit.defaultValues,validate:ma(t.edit.schema)}),c=()=>{const g={};return Object.keys(f.values).forEach(y=>{f.isDirty(y)&&(g[y]=!0)}),g};S.useEffect(()=>{e&&$h(e,t).then(g=>{f.setValues(g),f.resetDirty(g)})},[e,t.edit.columns]);const p=async g=>{g=Hs(c(),g),await a(e.id,g),n()};return S.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((g,y)=>d.jsx(ga,{form:f,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 Ys({id:e,...t}){const{info:r,getEntry:n}=Re(),i={bg:"transparent",size:"sm",c:"gray"},a=v.useProps("ActionIcon",i,t),[o,s]=S.useState(null),[l,u]=S.useState(!1),[f,c]=S.useState(!1);return d.jsxs(d.Fragment,{children:[d.jsx(v.Tooltip,{label:"Edit",children:d.jsx(v.ActionIcon,{bg:a.bg,size:a.size,c:a.c,onClick:async()=>{u(!0);const p=await n(e);p&&(s(p),u(!1),c(!0))},children:d.jsx(_h,{})})}),d.jsx(qs,{item:o,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 Ks({id:e,...t}){const{deleteEntry:r}=Re(),n={bg:"transparent",size:"sm",c:"gray"},i=v.useProps("ActionIcon",n,t),[a,o]=S.useState(!1),s=()=>{o(!1)},l=async()=>{r(e),o(!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:()=>{o(!0)},children:d.jsx(Ns,{})})}),d.jsx(Ih,{opened:a,onClose:s,handleAccept:l,handleReject:s})]})}function Xs({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(jh,{id:e}):null,r.permissions.includes("can_put")?d.jsx(Ys,{id:e}):null,r.permissions.includes("can_delete")?d.jsx(Ks,{id:e}):null]})}var Aa={},Pa={};(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})(Pa);var Q={},Ft=$e&&$e.__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 a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},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)}}(),Vr=$e&&$e.__assign||function(){return Vr=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},Vr.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=Pa,ka=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),ja(this,t)},e}();Q.Node=ka;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}(ka);Q.DataNode=Pn;var Js=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=Js;var Zs=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=Zs;var Qs=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=Qs;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}(ka);Q.NodeWithChildren=kn;var el=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=el;var tl=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=tl;var rl=function(e){Ft(t,e);function t(r,n,i,a){i===void 0&&(i=[]),a===void 0&&(a=r==="script"?Xe.ElementType.Script:r==="style"?Xe.ElementType.Style:Xe.ElementType.Tag);var o=e.call(this,i)||this;return o.name=r,o.attribs=n,o.type=a,o}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,a;return{name:n,value:r.attribs[n],namespace:(i=r["x-attribsNamespace"])===null||i===void 0?void 0:i[n],prefix:(a=r["x-attribsPrefix"])===null||a===void 0?void 0:a[n]}})},enumerable:!1,configurable:!0}),t}(kn);Q.Element=rl;function nl(e){return(0,Xe.isTag)(e)}Q.isTag=nl;function il(e){return e.type===Xe.ElementType.CDATA}Q.isCDATA=il;function al(e){return e.type===Xe.ElementType.Text}Q.isText=al;function ol(e){return e.type===Xe.ElementType.Comment}Q.isComment=ol;function sl(e){return e.type===Xe.ElementType.Directive}Q.isDirective=sl;function ll(e){return e.type===Xe.ElementType.Root}Q.isDocument=ll;function Rh(e){return Object.prototype.hasOwnProperty.call(e,"children")}Q.hasChildren=Rh;function ja(e,t){t===void 0&&(t=!1);var r;if(al(e))r=new Js(e.data);else if(ol(e))r=new Zs(e.data);else if(nl(e)){var n=t?$a(e.children):[],i=new rl(e.name,Vr({},e.attribs),n);n.forEach(function(l){return l.parent=i}),e.namespace!=null&&(i.namespace=e.namespace),e["x-attribsNamespace"]&&(i["x-attribsNamespace"]=Vr({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(i["x-attribsPrefix"]=Vr({},e["x-attribsPrefix"])),r=i}else if(il(e)){var n=t?$a(e.children):[],a=new el(n);n.forEach(function(u){return u.parent=a}),r=a}else if(ll(e)){var n=t?$a(e.children):[],o=new tl(n);n.forEach(function(u){return u.parent=o}),e["x-mode"]&&(o["x-mode"]=e["x-mode"]),r=o}else if(sl(e)){var s=new Qs(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=ja;function $a(e){for(var t=e.map(function(n){return ja(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=$e&&$e.__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=$e&&$e.__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=Pa,i=Q;r(Q,e);var a={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},o=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=a),typeof l=="object"&&(u=l,l=void 0),this.callback=l??null,this.options=u??a,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=o,e.default=o})(Aa);var Ia={},Ra={};Object.defineProperty(Ra,"__esModule",{value:!0});var ul="html",cl="head",jn="body",Dh=/<([a-zA-Z]+[0-9]?)/,fl=/<head[^]*>/i,dl=/<body[^]*>/i,$n=function(e,t){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},Da=function(e,t){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")},pl=typeof window=="object"&&window.DOMParser;if(typeof pl=="function"){var Mh=new pl,Nh="text/html";Da=function(e,t){return t&&(e="<".concat(t,">").concat(e,"</").concat(t,">")),Mh.parseFromString(e,Nh)},$n=Da}if(typeof document=="object"&&document.implementation){var In=document.implementation.createHTMLDocument();$n=function(e,t){if(t){var r=In.documentElement.querySelector(t);return r&&(r.innerHTML=e),In}return In.documentElement.innerHTML=e,In}}var Rn=typeof document=="object"&&document.createElement("template"),Ma;Rn&&Rn.content&&(Ma=function(e){return Rn.innerHTML=e,Rn.content.childNodes});function Fh(e){var t,r,n=e.match(Dh),i=n&&n[1]?n[1].toLowerCase():"";switch(i){case ul:{var a=Da(e);if(!fl.test(e)){var o=a.querySelector(cl);(t=o==null?void 0:o.parentNode)===null||t===void 0||t.removeChild(o)}if(!dl.test(e)){var o=a.querySelector(jn);(r=o==null?void 0:o.parentNode)===null||r===void 0||r.removeChild(o)}return a.querySelectorAll(ul)}case cl:case jn:{var s=$n(e).querySelectorAll(i);return dl.test(e)&&fl.test(e)?s[0].parentNode.childNodes:s}default:{if(Ma)return Ma(e);var o=$n(e,jn).querySelector(jn);return o.childNodes}}}Ra.default=Fh;var cr={},hl={};(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},{})})(hl),Object.defineProperty(cr,"__esModule",{value:!0}),cr.formatDOM=cr.formatAttributes=void 0;var Dn=Aa,Lh=hl;function zh(e){return Lh.CASE_SENSITIVE_TAG_NAMES_MAP[e]}function ml(e){for(var t={},r=0,n=e.length;r<n;r++){var i=e[r];t[i.name]=i.value}return t}cr.formatAttributes=ml;function Uh(e){e=e.toLowerCase();var t=zh(e);return t||e}function gl(e,t,r){t===void 0&&(t=null);for(var n=[],i,a=0,o=e.length;a<o;a++){var s=e[a];switch(s.nodeType){case 1:{var l=Uh(s.nodeName);i=new Dn.Element(l,ml(s.attributes)),i.children=gl(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[a-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}cr.formatDOM=gl;var Vh=$e&&$e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ia,"__esModule",{value:!0});var Bh=Vh(Ra),Wh=cr,Hh=/<(![a-zA-Z\s]+)>/;function Gh(e){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];var t=e.match(Hh),r=t?t[1]:void 0;return(0,Wh.formatDOM)((0,Bh.default)(e),null,r)}Ia.default=Gh;var ht={},Mn={},qh=0;Mn.SAME=qh;var Yh=1;Mn.CAMELCASE=Yh,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 yl=0,Lt=1,Nn=2,Fn=3,Na=4,vl=5,bl=6;function Kh(e){return De.hasOwnProperty(e)?De[e]:null}function We(e,t,r,n,i,a,o){this.acceptsBooleans=t===Nn||t===Fn||t===Na,this.attributeName=n,this.attributeNamespace=i,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=o}const De={};["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"].forEach(e=>{De[e]=new We(e,yl,!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,Na,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(e=>{De[e]=new We(e,bl,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(e=>{De[e]=new We(e,vl,!1,e.toLowerCase(),null,!1,!1)});const Fa=/[\-\:]([a-z])/g,La=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(Fa,La);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(Fa,La);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(Fa,La);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 Xh="xlinkHref";De[Xh]=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:Jh,SAME:Zh,possibleStandardNames:xl}=Mn,Qh=":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",em=RegExp.prototype.test.bind(new RegExp("^(data|aria)-["+Qh+"]*$")),tm=Object.keys(xl).reduce((e,t)=>{const r=xl[t];return r===Zh?e[t]=t:r===Jh?e[t.toLowerCase()]=t:e[t]=r,e},{});ht.BOOLEAN=Fn,ht.BOOLEANISH_STRING=Nn,ht.NUMERIC=vl,ht.OVERLOADED_BOOLEAN=Na,ht.POSITIVE_NUMERIC=bl,ht.RESERVED=yl,ht.STRING=Lt,ht.getPropertyInfo=Kh,ht.isCustomAttribute=em,ht.possibleStandardNames=tm;var za={},Ua={},_l=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,rm=/\n/g,nm=/^\s*/,im=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,am=/^:\s*/,om=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,sm=/^[;\s]*/,lm=/^\s+|\s+$/g,um=`
|
|
55
|
-
`,Tl="/",El="*",Xt="",cm="comment",fm="declaration",dm=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(rm);h&&(r+=h.length);var x=y.lastIndexOf(um);n=~x?y.length-x:n+y.length}function a(){var y={line:r,column:n};return function(h){return h.position=new o(y),u(),h}}function o(y){this.start=y,this.end={line:r,column:n},this.source=t.source}o.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(nm)}function f(y){var h;for(y=y||[];h=c();)h!==!1&&y.push(h);return y}function c(){var y=a();if(!(Tl!=e.charAt(0)||El!=e.charAt(1))){for(var h=2;Xt!=e.charAt(h)&&(El!=e.charAt(h)||Tl!=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:cm,comment:x})}}function p(){var y=a(),h=l(im);if(h){if(c(),!l(am))return s("property missing ':'");var x=l(om),O=y({type:fm,property:Sl(h[0].replace(_l,Xt)),value:x?Sl(x[0].replace(_l,Xt)):Xt});return l(sm),O}}function g(){var y=[];f(y);for(var h;h=p();)h!==!1&&(y.push(h),f(y));return y}return u(),g()};function Sl(e){return e?e.replace(lm,Xt):Xt}var pm=$e&&$e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ua,"__esModule",{value:!0});var hm=pm(dm);function mm(e,t){var r=null;if(!e||typeof e!="string")return r;var n=(0,hm.default)(e),i=typeof t=="function";return n.forEach(function(a){if(a.type==="declaration"){var o=a.property,s=a.value;i?t(o,s,a):s&&(r=r||{},r[o]=s)}}),r}Ua.default=mm;var Ln={};Object.defineProperty(Ln,"__esModule",{value:!0}),Ln.camelCase=void 0;var gm=/^--[a-zA-Z0-9-]+$/,ym=/-([a-z])/g,vm=/^[^-]+$/,bm=/^-(webkit|moz|ms|o|khtml)-/,xm=/^-(ms)-/,_m=function(e){return!e||vm.test(e)||gm.test(e)},Tm=function(e,t){return t.toUpperCase()},wl=function(e,t){return"".concat(t,"-")},Em=function(e,t){return t===void 0&&(t={}),_m(e)?e:(e=e.toLowerCase(),t.reactCompat?e=e.replace(xm,wl):e=e.replace(bm,wl),e.replace(ym,Tm))};Ln.camelCase=Em;var Sm=$e&&$e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(za,"__esModule",{value:!0});var wm=Sm(Ua),Cm=Ln;function Om(e,t){var r={};return!e||typeof e!="string"||(0,wm.default)(e,function(n,i){n&&i&&(r[(0,Cm.camelCase)(n,t)]=i)}),r}za.default=Om;var Am=S,Pm=za.default,km=new Set(["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"]);function jm(e,t){return e.indexOf("-")===-1?t&&typeof t.is=="string":!km.has(e)}var $m={reactCompat:!0};function Im(e,t){if(e!=null)try{t.style=Pm(e,$m)}catch{t.style={}}}var Rm=Am.version.split(".")[0]>=16,Cl=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);function Dm(e){return!Cl.has(e.name)}function Mm(e){return e}var Ol={PRESERVE_CUSTOM_ATTRIBUTES:Rm,ELEMENTS_WITH_NO_TEXT_CHILDREN:Cl,isCustomComponent:jm,setStyleProp:Im,canTextBeChildOfNode:Dm,returnFirstArg:Mm},Br=ht,Al=Ol,Nm=["checked","value"],Fm=["input","select","textarea"],Lm={reset:!0,submit:!0},Pl=function(t,r){t=t||{};var n,i,a,o,s,l={},u=t.type&&Lm[t.type];for(n in t){if(a=t[n],Br.isCustomAttribute(n)){l[n]=a;continue}if(i=n.toLowerCase(),o=kl(i),o){switch(s=Br.getPropertyInfo(o),Nm.indexOf(o)!==-1&&Fm.indexOf(r)!==-1&&!u&&(o=kl("default"+i)),l[o]=a,s&&s.type){case Br.BOOLEAN:l[o]=!0;break;case Br.OVERLOADED_BOOLEAN:a===""&&(l[o]=!0);break}continue}Al.PRESERVE_CUSTOM_ATTRIBUTES&&(l[n]=a)}return Al.setStyleProp(t.style,l),l};function kl(e){return Br.possibleStandardNames[e]}var zm=S,Um=Pl,Wr=Ol,Vm=Wr.setStyleProp,Bm=Wr.canTextBeChildOfNode;function jl(e,t){t=t||{};for(var r=t.library||zm,n=r.cloneElement,i=r.createElement,a=r.isValidElement,o=[],s,l,u=typeof t.replace=="function",f=t.transform||Wr.returnFirstArg,c,p,g,y=t.trim,h=0,x=e.length;h<x;h++){if(s=e[h],u&&(c=t.replace(s),a(c))){x>1&&(c=n(c,{key:c.key||h})),o.push(f(c,s,h));continue}if(s.type==="text"){if(l=!s.data.trim().length,l&&s.parent&&!Bm(s.parent)||y&&l)continue;o.push(f(s.data,s,h));continue}switch(p=s.attribs,Wm(s)?Vm(p.style,p):p&&(p=Um(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=jl(s.children,t));break;default:continue}x>1&&(p.key=h),o.push(f(i(s.name,p,g),s,h))}return o.length===1?o[0]:o}function Wm(e){return Wr.PRESERVE_CUSTOM_ATTRIBUTES&&e.type==="tag"&&Wr.isCustomComponent(e.name,e.attribs)}var Hm=jl,zn=Aa,fr=Ia.default,Gm=Pl,$l=Hm;fr=typeof fr.default=="function"?fr.default:fr;var qm={lowerCaseAttributeNames:!1};function Tt(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");return e===""?[]:(t=t||{},$l(fr(e,t.htmlparser2||qm),t))}Tt.domToReact=$l,Tt.htmlToDOM=fr,Tt.attributesToProps=Gm,Tt.Comment=zn.Comment,Tt.Element=zn.Element,Tt.ProcessingInstruction=zn.ProcessingInstruction,Tt.Text=zn.Text;var Ym=Tt;Tt.default=Tt;const Jt=Ot(Ym);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:Il,setPrototypeOf:Rl,isFrozen:Km,getPrototypeOf:Xm,getOwnPropertyDescriptor:Jm}=Object;let{freeze:He,seal:st,create:Dl}=Object,{apply:Va,construct:Ba}=typeof Reflect<"u"&&Reflect;He||(He=function(t){return t}),st||(st=function(t){return t}),Va||(Va=function(t,r,n){return t.apply(r,n)}),Ba||(Ba=function(t,r){return new t(...r)});const Un=rt(Array.prototype.forEach),Ml=rt(Array.prototype.pop),Hr=rt(Array.prototype.push),Vn=rt(String.prototype.toLowerCase),Wa=rt(String.prototype.toString),Nl=rt(String.prototype.match),Gr=rt(String.prototype.replace),Zm=rt(String.prototype.indexOf),Qm=rt(String.prototype.trim),mt=rt(Object.prototype.hasOwnProperty),Ge=rt(RegExp.prototype.test),qr=eg(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 Va(e,t,n)}}function eg(e){return function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Ba(e,r)}}function ee(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Vn;Rl&&Rl(e,null);let n=t.length;for(;n--;){let i=t[n];if(typeof i=="string"){const a=r(i);a!==i&&(Km(t)||(t[n]=a),i=a)}e[i]=!0}return e}function tg(e){for(let t=0;t<e.length;t++)mt(e,t)||(e[t]=null);return e}function Zt(e){const t=Dl(null);for(const[r,n]of Il(e))mt(e,r)&&(Array.isArray(n)?t[r]=tg(n):n&&typeof n=="object"&&n.constructor===Object?t[r]=Zt(n):t[r]=n);return t}function Yr(e,t){for(;e!==null;){const n=Jm(e,t);if(n){if(n.get)return rt(n.get);if(typeof n.value=="function")return rt(n.value)}e=Xm(e)}function r(){return null}return r}const Fl=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"]),Ha=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"]),Ga=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"]),rg=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"]),qa=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"]),ng=He(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Ll=He(["#text"]),zl=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"]),Ya=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"]),Ul=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"]),ig=st(/\{\{[\w\W]*|[\w\W]*\}\}/gm),ag=st(/<%[\w\W]*|[\w\W]*%>/gm),og=st(/\${[\w\W]*}/gm),sg=st(/^data-[\-\w.\u00B7-\uFFFF]/),lg=st(/^aria-[\-\w]+$/),Vl=st(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),ug=st(/^(?:\w+script|data):/i),cg=st(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Bl=st(/^html$/i),fg=st(/^[a-z][.\w]*(-[.\w]+)+$/i);var Wl=Object.freeze({__proto__:null,MUSTACHE_EXPR:ig,ERB_EXPR:ag,TMPLIT_EXPR:og,DATA_ATTR:sg,ARIA_ATTR:lg,IS_ALLOWED_URI:Vl,IS_SCRIPT_OR_DATA:ug,ATTR_WHITESPACE:cg,DOCTYPE_NAME:Bl,CUSTOM_ELEMENT:fg});const Kr={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},dg=function(){return typeof window>"u"?null:window},pg=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 a="dompurify"+(n?"#"+n:"");try{return t.createPolicy(a,{createHTML(o){return o},createScriptURL(o){return o}})}catch{return console.warn("TrustedTypes policy "+a+" could not be created."),null}};function Hl(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:dg();const t=C=>Hl(C);if(t.version="3.1.6",t.removed=[],!e||!e.document||e.document.nodeType!==Kr.document)return t.isSupported=!1,t;let{document:r}=e;const n=r,i=n.currentScript,{DocumentFragment:a,HTMLTemplateElement:o,Node:s,Element:l,NodeFilter:u,NamedNodeMap:f=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:c,DOMParser:p,trustedTypes:g}=e,y=l.prototype,h=Yr(y,"cloneNode"),x=Yr(y,"remove"),O=Yr(y,"nextSibling"),$=Yr(y,"childNodes"),N=Yr(y,"parentNode");if(typeof o=="function"){const C=r.createElement("template");C.content&&C.content.ownerDocument&&(r=C.content.ownerDocument)}let M,_="";const{implementation:R,createNodeIterator:L,createDocumentFragment:xe,getElementsByTagName:me}=r,{importNode:Oe}=n;let U={};t.isSupported=typeof Il=="function"&&typeof N=="function"&&R&&R.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:ae,ERB_EXPR:de,TMPLIT_EXPR:he,DATA_ATTR:qe,ARIA_ATTR:je,IS_SCRIPT_OR_DATA:Ze,ATTR_WHITESPACE:at,CUSTOM_ELEMENT:vt}=Wl;let{IS_ALLOWED_URI:w}=Wl,A=null;const Y=ee({},[...Fl,...Ha,...Ga,...qa,...Ll]);let F=null;const G=ee({},[...zl,...Ya,...Ul,...Bn]);let z=Object.seal(Dl(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,j=!1,Ie=!0,D=!1,Ye=!1,Qe=!1,dt=!1,rr=!1,jt=!1,Oi=!0,Ai=!1;const dn="user-content-";let pn=!0,nr=!1,$t={},It=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 hn=ee({},["audio","video","img","source","image","track"]);let $r=null;const Ir=ee({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Rr="http://www.w3.org/1998/Math/MathML",Dr="http://www.w3.org/2000/svg",bt="http://www.w3.org/1999/xhtml";let Wt=bt,mn=!1,gn=null;const Uo=ee({},[Rr,Dr,bt],Wa);let Rt=null;const ki=["application/xhtml+xml","text/html"],Ht="text/html";let Se=null,Ct=null;const ji=r.createElement("form"),$i=function(b){return b instanceof RegExp||b instanceof Function},Mr=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"?Wa:Vn,A=mt(b,"ALLOWED_TAGS")?ee({},b.ALLOWED_TAGS,Se):Y,F=mt(b,"ALLOWED_ATTR")?ee({},b.ALLOWED_ATTR,Se):G,gn=mt(b,"ALLOWED_NAMESPACES")?ee({},b.ALLOWED_NAMESPACES,Wa):Uo,$r=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(hn),b.ADD_DATA_URI_TAGS,Se):hn,It=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):{},$t=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,j=b.SAFE_FOR_TEMPLATES||!1,Ie=b.SAFE_FOR_XML!==!1,D=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,pn=b.KEEP_CONTENT!==!1,nr=b.IN_PLACE||!1,w=b.ALLOWED_URI_REGEXP||Vl,Wt=b.NAMESPACE||bt,z=b.CUSTOM_ELEMENT_HANDLING||{},b.CUSTOM_ELEMENT_HANDLING&&$i(b.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(z.tagNameCheck=b.CUSTOM_ELEMENT_HANDLING.tagNameCheck),b.CUSTOM_ELEMENT_HANDLING&&$i(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&&(J=!1),rr&&(dt=!0),$t&&(A=ee({},Ll),F=[],$t.html===!0&&(ee(A,Fl),ee(F,zl)),$t.svg===!0&&(ee(A,Ha),ee(F,Ya),ee(F,Bn)),$t.svgFilters===!0&&(ee(A,Ga),ee(F,Ya),ee(F,Bn)),$t.mathMl===!0&&(ee(A,qa),ee(F,Ul),ee(F,Bn))),b.ADD_TAGS&&(A===Y&&(A=Zt(A)),ee(A,b.ADD_TAGS,Se)),b.ADD_ATTR&&(F===G&&(F=Zt(F)),ee(F,b.ADD_ATTR,Se)),b.ADD_URI_SAFE_ATTR&&ee($r,b.ADD_URI_SAFE_ATTR,Se),b.FORBID_CONTENTS&&(It===Bt&&(It=Zt(It)),ee(It,b.FORBID_CONTENTS,Se)),pn&&(A["#text"]=!0),D&&ee(A,["html","head","body"]),A.table&&(ee(A,["tbody"]),delete B.tbody),b.TRUSTED_TYPES_POLICY){if(typeof b.TRUSTED_TYPES_POLICY.createHTML!="function")throw qr('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof b.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw qr('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');M=b.TRUSTED_TYPES_POLICY,_=M.createHTML("")}else M===void 0&&(M=pg(g,i)),M!==null&&typeof _=="string"&&(_=M.createHTML(""));He&&He(b),Ct=b}},Ii=ee({},["mi","mo","mn","ms","mtext"]),yn=ee({},["foreignobject","annotation-xml"]),Ri=ee({},["title","style","font","a","script"]),Di=ee({},[...Ha,...Ga,...rg]),Mi=ee({},[...qa,...ng]),Ni=function(b){let E=N(b);(!E||!E.tagName)&&(E={namespaceURI:Wt,tagName:"template"});const k=Vn(b.tagName),Z=Vn(E.tagName);return gn[b.namespaceURI]?b.namespaceURI===Dr?E.namespaceURI===bt?k==="svg":E.namespaceURI===Rr?k==="svg"&&(Z==="annotation-xml"||Ii[Z]):!!Di[k]:b.namespaceURI===Rr?E.namespaceURI===bt?k==="math":E.namespaceURI===Dr?k==="math"&&yn[Z]:!!Mi[k]:b.namespaceURI===bt?E.namespaceURI===Dr&&!yn[Z]||E.namespaceURI===Rr&&!Ii[Z]?!1:!Mi[k]&&(Ri[k]||!Di[k]):!!(Rt==="application/xhtml+xml"&&gn[b.namespaceURI]):!1},ot=function(b){Hr(t.removed,{element:b});try{N(b).removeChild(b)}catch{x(b)}},Nr=function(b,E){try{Hr(t.removed,{attribute:E.getAttributeNode(b),from:E})}catch{Hr(t.removed,{attribute:null,from:E})}if(E.removeAttribute(b),b==="is"&&!F[b])if(dt||rr)try{ot(E)}catch{}else try{E.setAttribute(b,"")}catch{}},Fi=function(b){let E=null,k=null;if(Qe)b="<remove></remove>"+b;else{const ve=Nl(b,/^[\r\n\t ]+/);k=ve&&ve[0]}Rt==="application/xhtml+xml"&&Wt===bt&&(b='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+b+"</body></html>");const Z=M?M.createHTML(b):b;if(Wt===bt)try{E=new p().parseFromString(Z,Rt)}catch{}if(!E||!E.documentElement){E=R.createDocument(Wt,"template",null);try{E.documentElement.innerHTML=mn?_:Z}catch{}}const _e=E.body||E.documentElement;return b&&k&&_e.insertBefore(r.createTextNode(k),_e.childNodes[0]||null),Wt===bt?me.call(E,D?"html":"body")[0]:D?E.documentElement:_e},Li=function(b){return L.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},T=function(b,E,k){U[b]&&Un(U[b],Z=>{Z.call(t,E,k,Ct)})},I=function(b){let E=null;if(T("beforeSanitizeElements",b,null),zi(b))return ot(b),!0;const k=Se(b.nodeName);if(T("uponSanitizeElement",b,{tagName:k,allowedTags:A}),b.hasChildNodes()&&!m(b.firstElementChild)&&Ge(/<[/\w]/g,b.innerHTML)&&Ge(/<[/\w]/g,b.textContent)||b.nodeType===Kr.progressingInstruction||Ie&&b.nodeType===Kr.comment&&Ge(/<[/\w]/g,b.data))return ot(b),!0;if(!A[k]||B[k]){if(!B[k]&&re(k)&&(z.tagNameCheck instanceof RegExp&&Ge(z.tagNameCheck,k)||z.tagNameCheck instanceof Function&&z.tagNameCheck(k)))return!1;if(pn&&!It[k]){const Z=N(b)||b.parentNode,_e=$(b)||b.childNodes;if(_e&&Z){const ve=_e.length;for(let pe=ve-1;pe>=0;--pe){const et=h(_e[pe],!0);et.__removalCount=(b.__removalCount||0)+1,Z.insertBefore(et,O(b))}}}return ot(b),!0}return b instanceof l&&!Ni(b)||(k==="noscript"||k==="noembed"||k==="noframes")&&Ge(/<\/no(script|embed|frames)/i,b.innerHTML)?(ot(b),!0):(j&&b.nodeType===Kr.text&&(E=b.textContent,Un([ae,de,he],Z=>{E=Gr(E,Z," ")}),b.textContent!==E&&(Hr(t.removed,{element:b.cloneNode()}),b.textContent=E)),T("afterSanitizeElements",b,null),!1)},W=function(b,E,k){if(Oi&&(E==="id"||E==="name")&&(k in r||k in ji))return!1;if(!(J&&!q[E]&&Ge(qe,E))){if(!(K&&Ge(je,E))){if(!F[E]||q[E]){if(!(re(b)&&(z.tagNameCheck instanceof RegExp&&Ge(z.tagNameCheck,b)||z.tagNameCheck instanceof Function&&z.tagNameCheck(b))&&(z.attributeNameCheck instanceof RegExp&&Ge(z.attributeNameCheck,E)||z.attributeNameCheck instanceof Function&&z.attributeNameCheck(E))||E==="is"&&z.allowCustomizedBuiltInElements&&(z.tagNameCheck instanceof RegExp&&Ge(z.tagNameCheck,k)||z.tagNameCheck instanceof Function&&z.tagNameCheck(k))))return!1}else if(!$r[E]){if(!Ge(w,Gr(k,at,""))){if(!((E==="src"||E==="xlink:href"||E==="href")&&b!=="script"&&Zm(k,"data:")===0&&Pi[b])){if(!(X&&!Ge(Ze,Gr(k,at,"")))){if(k)return!1}}}}}}return!0},re=function(b){return b!=="annotation-xml"&&Nl(b,vt)},ce=function(b){T("beforeSanitizeAttributes",b,null);const{attributes:E}=b;if(!E)return;const k={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:F};let Z=E.length;for(;Z--;){const _e=E[Z],{name:ve,namespaceURI:pe,value:et}=_e,ir=Se(ve);let Ne=ve==="value"?et:Qm(et);if(k.attrName=ir,k.attrValue=Ne,k.keepAttr=!0,k.forceKeepAttr=void 0,T("uponSanitizeAttribute",b,k),Ne=k.attrValue,Ie&&Ge(/((--!?|])>)|<\/(style|title)/i,Ne)){Nr(ve,b);continue}if(k.forceKeepAttr||(Nr(ve,b),!k.keepAttr))continue;if(!Ae&&Ge(/\/>/i,Ne)){Nr(ve,b);continue}j&&Un([ae,de,he],Pd=>{Ne=Gr(Ne,Pd," ")});const Ad=Se(b.nodeName);if(W(Ad,ir,Ne)){if(Ai&&(ir==="id"||ir==="name")&&(Nr(ve,b),Ne=dn+Ne),M&&typeof g=="object"&&typeof g.getAttributeType=="function"&&!pe)switch(g.getAttributeType(Ad,ir)){case"TrustedHTML":{Ne=M.createHTML(Ne);break}case"TrustedScriptURL":{Ne=M.createScriptURL(Ne);break}}try{pe?b.setAttributeNS(pe,ve,Ne):b.setAttribute(ve,Ne),zi(b)?ot(b):Ml(t.removed)}catch{}}}T("afterSanitizeAttributes",b,null)},te=function C(b){let E=null;const k=Li(b);for(T("beforeSanitizeShadowDOM",b,null);E=k.nextNode();)T("uponSanitizeShadowNode",E,null),!I(E)&&(E.content instanceof a&&C(E.content),ce(E));T("afterSanitizeShadowDOM",b,null)};return t.sanitize=function(C){let b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},E=null,k=null,Z=null,_e=null;if(mn=!C,mn&&(C="<!-->"),typeof C!="string"&&!m(C))if(typeof C.toString=="function"){if(C=C.toString(),typeof C!="string")throw qr("dirty is not a string, aborting")}else throw qr("toString is not a function");if(!t.isSupported)return C;if(Ye||Mr(b),t.removed=[],typeof C=="string"&&(nr=!1),nr){if(C.nodeName){const et=Se(C.nodeName);if(!A[et]||B[et])throw qr("root node is forbidden and cannot be sanitized in-place")}}else if(C instanceof s)E=Fi("<!---->"),k=E.ownerDocument.importNode(C,!0),k.nodeType===Kr.element&&k.nodeName==="BODY"||k.nodeName==="HTML"?E=k:E.appendChild(k);else{if(!dt&&!j&&!D&&C.indexOf("<")===-1)return M&&jt?M.createHTML(C):C;if(E=Fi(C),!E)return dt?null:jt?_:""}E&&Qe&&ot(E.firstChild);const ve=Li(nr?C:E);for(;Z=ve.nextNode();)I(Z)||(Z.content instanceof a&&te(Z.content),ce(Z));if(nr)return C;if(dt){if(rr)for(_e=xe.call(E.ownerDocument);E.firstChild;)_e.appendChild(E.firstChild);else _e=E;return(F.shadowroot||F.shadowrootmode)&&(_e=Oe.call(n,_e,!0)),_e}let pe=D?E.outerHTML:E.innerHTML;return D&&A["!doctype"]&&E.ownerDocument&&E.ownerDocument.doctype&&E.ownerDocument.doctype.name&&Ge(Bl,E.ownerDocument.doctype.name)&&(pe="<!DOCTYPE "+E.ownerDocument.doctype.name+`>
|
|
56
|
-
`+pe),j&&Un([ae,de,he],et=>{pe=Gr(pe,et," ")}),M&&jt?M.createHTML(pe):pe},t.setConfig=function(){let C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Mr(C),Ye=!0},t.clearConfig=function(){Ct=null,Ye=!1},t.isValidAttribute=function(C,b,E){Ct||Mr({});const k=Se(C),Z=Se(b);return W(k,Z,E)},t.addHook=function(C,b){typeof b=="function"&&(U[C]=U[C]||[],Hr(U[C],b))},t.removeHook=function(C){if(U[C])return Ml(U[C])},t.removeHooks=function(C){U[C]&&(U[C]=[])},t.removeAllHooks=function(){U={}},t}var hg=Hl();const mg={field:"_field_zdaf7_1",rtl:"_rtl_zdaf7_7",borderRight:"_borderRight_zdaf7_12"},Wn=S.memo(({id:e,entry:t,loading:r,rightBorder:n,children:i,onClickEntry:a,customElement:o,sanitize:s,...l})=>{const u={text:{style:{whiteSpace:"nowrap",overflow:"ellipsis"}}},{text:f}=v.useProps("Field",u,l),c={};Object.entries(f).forEach(([y,h])=>{typeof h=="function"&&(c[y]=h(t))});let p;s&&(p=hg.sanitize(i));const g=v.useStyles({name:"Field",props:l,classes:mg});return d.jsx(v.Table.Td,{...g("field"),onClick:a?()=>a(e,t):null,...l,children:d.jsx(v.Box,{w:"100%",children:d.jsx(v.Skeleton,{visible:r,children:o||(typeof i!="object"?d.jsx(v.Text,{...f,...c,children:p||i}):p||i)})})})});Wn.displayName="Field";const Gl={row:"_row_138r2_1",selected:"_selected_138r2_5"};function gg({entry:e,selected:t,children:r}){const n=v.useStyles({name:"Row",classes:Gl}),i=v.useProps("Row",{},{});Object.entries(i).forEach(([s,l])=>{typeof l=="function"&&(i[s]=l(e))});var{className:a,style:o}=n("row");return a=`${a} ${t?Gl.selected:""}`,d.jsx(v.Table.Tr,{className:a,style:{...o},...i,children:r})}function yg({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(Xs,{id:r})}function vg({data:e,loading:t,hideActions:r,hideCheckbox:n,selection:i,toggleRow:a,onClickEntry:o,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(gg,{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=>{a(Fe(c))}})},f),r?null:d.jsx(Wn,{loading:t,children:d.jsx(yg,{bodyCustomizer:s,actionColumn:l,id:Fe(c),entry:u})}),e.list_columns.map((p,g)=>{let y=s==null?void 0:s[p];return typeof y=="function"&&(y=y({id:c,...u})),y===null?null:d.jsx(Wn,{id:Fe(c),entry:u,loading:t,onClickEntry:o,customElement:y,sanitize:!0,children:Ws(u,p)},g)})]},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 bg={scrollbar:"_scrollbar_isyo2_1"};function xg({bulkActions:e,hideActions:t,loading:r,onSelectCheckbox:n,onClickEntry:i,hideCheckbox:a,hideDownload:o,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:g,info:y}=Re(),[h,x]=S.useState([]),[O,$]=S.useState(!1),N=_=>{x(R=>R.includes(_)?R.filter(L=>L!==_):[...R,_])},M=()=>{x(_=>_.length===g.ids.length?[]:g.ids.map((R,L)=>R))};return S.useEffect(()=>{$(h.length===g.result.length&&h.length>0),n&&n(h),e==null||e.setSelectedIds(h.map(_=>_))},[h]),S.useEffect(()=>{x([]),n&&n([])},[g]),d.jsx(v.ScrollArea,{options:{className:f.colorScheme==="dark"?"os-theme-light":void 0},style:{flex:1,flexDirection:"column"},classNames:bg,children:d.jsxs(v.Table,{stickyHeader:!0,...p,children:[d.jsx(Bs,{data:g,info:y,hideActions:t,hideCheckbox:a,allChecked:O,setSelection:x,toggleAll:M,headerCustomizer:s}),d.jsx(vg,{data:g,loading:r,hideActions:t,hideCheckbox:a,selection:h,setSelection:x,toggleRow:N,onClickEntry:i,bodyCustomizer:l})]})})}const ql=S.memo(({...e})=>{const{data:t,queryParams:r,setQueryParams:n}=Re(),i=[{value:"10",label:"10"},{value:"25",label:"25"},{value:"50",label:"50"}],a=String(r.page_size),[o,s]=S.useState(r.page);S.useEffect(()=>{s(r.page)},[r.page]);const l=f=>{or&&or.abort(),s(f-1),n({page:f-1})},u=f=>{or&&or.abort(),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:a,defaultValue:a,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/a),value:o+1,onChange:l,...e})]})]})});ql.displayName="Pagination";function _g(){const{error:e}=Re(),[t,r]=S.useState(!1);return S.useEffect(()=>{e&&r(!0)},[e]),d.jsx(v.Modal,{opened:t,onClose:()=>r(!1),title:d.jsxs(v.Group,{children:[d.jsx(hh,{size:16,color:"red"}),d.jsx(v.Text,{children:e?e.originalError.detail:"Error"})]}),centered:!0,children:e?d.jsx(v.Text,{children:e.detail}):null})}const Ka=S.forwardRef((e,t)=>{const{path:r,data:n,loading:i,info:a,setQueryParams:o}=Re(),{hideToolbar:s=!1,hideFilter:l=!1,hideAdd:u=!1,hideSettings:f=!1,hideActions:c=!1,hidePagination:p=!1,hideError:g=!1,hideDownload:y=!0,onSelectCheckbox:h=null,onClickEntry:x=null,fetchOnMount:O=!0,bulkActions:$=null,styles:N,headerCustomizer:M={},bodyCustomizer:_={},toolbarCustomizer:R={}}=e;if(S.useEffect(()=>{!n&&O&&o({})},[n]),!a)return;const L=$===null;return d.jsxs(v.Paper,{ref:t,style:{position:"relative",height:"100%",display:"flex",flexDirection:"column",...N},children:[s?null:d.jsx(Us,{hideFilter:l,hideAdd:u,hideSettings:f,hideDownload:y,toolbarCustomizer:R}),n?d.jsx(xg,{bulkActions:$,hideActions:c,loading:i,onSelectCheckbox:h,onClickEntry:x,hideCheckbox:L,hideDownload:y,headerCustomizer:M,bodyCustomizer:_}):null,!p&&n?d.jsx(ql,{}):null,g?null:d.jsx(_g,{})]})});Ka.displayName="DataGrid";const Xa={iconSmall:"_iconSmall_sxv3z_1",iconLarge:"_iconLarge_sxv3z_6",btn:"_btn_sxv3z_17"};function Tg({basePath:e="/security",Target:t,children:r}){const n=jd.useNavigate(),{user:i,signout:a}=Wo(),[o,s]=S.useState(!1),u=[{resource_name:e+"/users",label:"Users",name:"UsersApi",Icon:Th},{resource_name:e+"/roles",label:"Roles",name:"RolesApi",Icon:bh},{resource_name:e+"/permissions",label:"Base Permissions",name:"PermissionsApi",Icon:Ms},{resource_name:e+"/permissionviews",label:"Permission on Views",name:"PermissionViewApi",Icon:Ms},{resource_name:e+"/viewsmenus",label:"Views/Menus",name:"ViewsMenusApi",Icon:mh}].filter(f=>i.permissions.includes(f.name));return d.jsxs(v.Menu,{width:260,position:"bottom-end",transition:"pop-top-right",withinPortal:!0,opened:o,onClose:()=>s(!1),onOpen:()=>s(!0),children:[d.jsx(v.Menu.Target,{children:t||d.jsx(v.UnstyledButton,{className:Xa.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(wa,{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:Xa.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(xh,{p:12,className:Xa.iconSmall}),onClick:a,children:"Logout"})]})]})}const Eg=e=>{const{description:t,errors:r,data:n,handleChange:i,path:a,label:o,required:s,enabled:l}=e;return d.jsx(ar.DateInput,{valueFormat:"DD.MM.YYYY",disabled:!l,label:o,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(a,f.toISOString().substring(0,10))}}})},Yl=V.rankWith(5,V.isDateControl),Kl=ge.withJsonFormsControlProps(Eg),Sg=e=>{const{description:t,errors:r,data:n,handleChange:i,path:a,label:o,required:s,enabled:l}=e;return d.jsx(ar.DateTimePicker,{valueFormat:"DD.MM.YYYY HH:mm",disabled:!l,label:o,description:t,error:r,required:s,value:n?new Date(n):null,onChange:u=>{if(u instanceof Date){const f=new Date(u);i(a,f.toISOString())}}})},Xl=V.rankWith(5,V.isDateTimeControl),Jl=ge.withJsonFormsControlProps(Sg);var wg=Object.prototype;function Cg(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||wg;return e===r}var Hn=Cg;function Og(e,t){return function(r){return e(t(r))}}var Zl=Og,Ag=Zl,Pg=Ag(Object.keys,Object),kg=Pg,jg=Hn,$g=kg,Ig=Object.prototype,Rg=Ig.hasOwnProperty;function Dg(e){if(!jg(e))return $g(e);var t=[];for(var r in Object(e))Rg.call(e,r)&&r!="constructor"&&t.push(r);return t}var Mg=Dg,Ng=typeof $e=="object"&&$e&&$e.Object===Object&&$e,Ql=Ng,Fg=Ql,Lg=typeof self=="object"&&self&&self.Object===Object&&self,zg=Fg||Lg||Function("return this")(),gt=zg,Ug=gt,Vg=Ug.Symbol,Gn=Vg,eu=Gn,tu=Object.prototype,Bg=tu.hasOwnProperty,Wg=tu.toString,Xr=eu?eu.toStringTag:void 0;function Hg(e){var t=Bg.call(e,Xr),r=e[Xr];try{e[Xr]=void 0;var n=!0}catch{}var i=Wg.call(e);return n&&(t?e[Xr]=r:delete e[Xr]),i}var Gg=Hg,qg=Object.prototype,Yg=qg.toString;function Kg(e){return Yg.call(e)}var Xg=Kg,ru=Gn,Jg=Gg,Zg=Xg,Qg="[object Null]",ey="[object Undefined]",nu=ru?ru.toStringTag:void 0;function ty(e){return e==null?e===void 0?ey:Qg:nu&&nu in Object(e)?Jg(e):Zg(e)}var dr=ty;function ry(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Pt=ry,ny=dr,iy=Pt,ay="[object AsyncFunction]",oy="[object Function]",sy="[object GeneratorFunction]",ly="[object Proxy]";function uy(e){if(!iy(e))return!1;var t=ny(e);return t==oy||t==sy||t==ay||t==ly}var Ja=uy,cy=gt,fy=cy["__core-js_shared__"],dy=fy,Za=dy,iu=function(){var e=/[^.]+$/.exec(Za&&Za.keys&&Za.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function py(e){return!!iu&&iu in e}var hy=py,my=Function.prototype,gy=my.toString;function yy(e){if(e!=null){try{return gy.call(e)}catch{}try{return e+""}catch{}}return""}var au=yy,vy=Ja,by=hy,xy=Pt,_y=au,Ty=/[\\^$.*+?()[\]{}|]/g,Ey=/^\[object .+?Constructor\]$/,Sy=Function.prototype,wy=Object.prototype,Cy=Sy.toString,Oy=wy.hasOwnProperty,Ay=RegExp("^"+Cy.call(Oy).replace(Ty,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Py(e){if(!xy(e)||by(e))return!1;var t=vy(e)?Ay:Ey;return t.test(_y(e))}var ky=Py;function jy(e,t){return e==null?void 0:e[t]}var $y=jy,Iy=ky,Ry=$y;function Dy(e,t){var r=Ry(e,t);return Iy(r)?r:void 0}var Qt=Dy,My=Qt,Ny=gt,Fy=My(Ny,"DataView"),Ly=Fy,zy=Qt,Uy=gt,Vy=zy(Uy,"Map"),Qa=Vy,By=Qt,Wy=gt,Hy=By(Wy,"Promise"),Gy=Hy,qy=Qt,Yy=gt,Ky=qy(Yy,"Set"),ou=Ky,Xy=Qt,Jy=gt,Zy=Xy(Jy,"WeakMap"),Qy=Zy,eo=Ly,to=Qa,ro=Gy,no=ou,io=Qy,su=dr,pr=au,lu="[object Map]",e0="[object Object]",uu="[object Promise]",cu="[object Set]",fu="[object WeakMap]",du="[object DataView]",t0=pr(eo),r0=pr(to),n0=pr(ro),i0=pr(no),a0=pr(io),er=su;(eo&&er(new eo(new ArrayBuffer(1)))!=du||to&&er(new to)!=lu||ro&&er(ro.resolve())!=uu||no&&er(new no)!=cu||io&&er(new io)!=fu)&&(er=function(e){var t=su(e),r=t==e0?e.constructor:void 0,n=r?pr(r):"";if(n)switch(n){case t0:return du;case r0:return lu;case n0:return uu;case i0:return cu;case a0:return fu}return t});var o0=er;function s0(e){return e!=null&&typeof e=="object"}var hr=s0,l0=dr,u0=hr,c0="[object Arguments]";function f0(e){return u0(e)&&l0(e)==c0}var d0=f0,pu=d0,p0=hr,hu=Object.prototype,h0=hu.hasOwnProperty,m0=hu.propertyIsEnumerable,g0=pu(function(){return arguments}())?pu:function(e){return p0(e)&&h0.call(e,"callee")&&!m0.call(e,"callee")},qn=g0,y0=Array.isArray,Jr=y0,v0=9007199254740991;function b0(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=v0}var mu=b0,x0=Ja,_0=mu;function T0(e){return e!=null&&_0(e.length)&&!x0(e)}var Yn=T0,Kn={exports:{}};function E0(){return!1}var S0=E0;Kn.exports,function(e,t){var r=gt,n=S0,i=t&&!t.nodeType&&t,a=i&&!0&&e&&!e.nodeType&&e,o=a&&a.exports===i,s=o?r.Buffer:void 0,l=s?s.isBuffer:void 0,u=l||n;e.exports=u}(Kn,Kn.exports);var ao=Kn.exports,w0=dr,C0=mu,O0=hr,A0="[object Arguments]",P0="[object Array]",k0="[object Boolean]",j0="[object Date]",$0="[object Error]",I0="[object Function]",R0="[object Map]",D0="[object Number]",M0="[object Object]",N0="[object RegExp]",F0="[object Set]",L0="[object String]",z0="[object WeakMap]",U0="[object ArrayBuffer]",V0="[object DataView]",B0="[object Float32Array]",W0="[object Float64Array]",H0="[object Int8Array]",G0="[object Int16Array]",q0="[object Int32Array]",Y0="[object Uint8Array]",K0="[object Uint8ClampedArray]",X0="[object Uint16Array]",J0="[object Uint32Array]",ye={};ye[B0]=ye[W0]=ye[H0]=ye[G0]=ye[q0]=ye[Y0]=ye[K0]=ye[X0]=ye[J0]=!0,ye[A0]=ye[P0]=ye[U0]=ye[k0]=ye[V0]=ye[j0]=ye[$0]=ye[I0]=ye[R0]=ye[D0]=ye[M0]=ye[N0]=ye[F0]=ye[L0]=ye[z0]=!1;function Z0(e){return O0(e)&&C0(e.length)&&!!ye[w0(e)]}var Q0=Z0;function ev(e){return function(t){return e(t)}}var tv=ev,Xn={exports:{}};Xn.exports,function(e,t){var r=Ql,n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===n,o=a&&r.process,s=function(){try{var l=i&&i.require&&i.require("util").types;return l||o&&o.binding&&o.binding("util")}catch{}}();e.exports=s}(Xn,Xn.exports);var rv=Xn.exports,nv=Q0,iv=tv,gu=rv,yu=gu&&gu.isTypedArray,av=yu?iv(yu):nv,oo=av,ov=Mg,sv=o0,lv=qn,uv=Jr,cv=Yn,fv=ao,dv=Hn,pv=oo,hv="[object Map]",mv="[object Set]",gv=Object.prototype,yv=gv.hasOwnProperty;function vv(e){if(e==null)return!0;if(cv(e)&&(uv(e)||typeof e=="string"||typeof e.splice=="function"||fv(e)||pv(e)||lv(e)))return!e.length;var t=sv(e);if(t==hv||t==mv)return!e.size;if(dv(e))return!ov(e).length;for(var r in e)if(yv.call(e,r))return!1;return!0}var bv=vv;const vu=Ot(bv),bu=(e,t,r,n,i,a,o)=>e.map((s,l)=>d.jsx(v.Grid.Col,{span:i==="row"?12/e.length:12,children:d.jsx(ge.JsonFormsDispatch,{uischema:s,schema:t,path:r,enabled:n,renderers:a,cells:o})},`${r}-${l}`)),xv=({elements:e,schema:t,path:r,enabled:n,direction:i,renderers:a,cells:o})=>vu(e)?null:d.jsx(v.Grid,{spacing:i==="row"?2:0,children:bu(e,t,r,n,i,a,o)}),so=S.memo(xv),_v=e=>function(r){const n=ge.useJsonForms(),i=V.getAjv({jsonforms:{...n}});return d.jsx(e,{...r,ajv:i})};var Tv=gt,Ev=function(){return Tv.Date.now()},Sv=Ev,wv=/\s/;function Cv(e){for(var t=e.length;t--&&wv.test(e.charAt(t)););return t}var Ov=Cv,Av=Ov,Pv=/^\s+/;function kv(e){return e&&e.slice(0,Av(e)+1).replace(Pv,"")}var jv=kv,$v=dr,Iv=hr,Rv="[object Symbol]";function Dv(e){return typeof e=="symbol"||Iv(e)&&$v(e)==Rv}var xu=Dv,Mv=jv,_u=Pt,Nv=xu,Tu=0/0,Fv=/^[-+]0x[0-9a-f]+$/i,Lv=/^0b[01]+$/i,zv=/^0o[0-7]+$/i,Uv=parseInt;function Vv(e){if(typeof e=="number")return e;if(Nv(e))return Tu;if(_u(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=_u(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Mv(e);var r=Lv.test(e);return r||zv.test(e)?Uv(e.slice(2),r?2:8):Fv.test(e)?Tu:+e}var Eu=Vv,Bv=Pt,lo=Sv,Su=Eu,Wv="Expected a function",Hv=Math.max,Gv=Math.min;function qv(e,t,r){var n,i,a,o,s,l,u=0,f=!1,c=!1,p=!0;if(typeof e!="function")throw new TypeError(Wv);t=Su(t)||0,Bv(r)&&(f=!!r.leading,c="maxWait"in r,a=c?Hv(Su(r.maxWait)||0,t):a,p="trailing"in r?!!r.trailing:p);function g(R){var L=n,xe=i;return n=i=void 0,u=R,o=e.apply(xe,L),o}function y(R){return u=R,s=setTimeout(O,t),f?g(R):o}function h(R){var L=R-l,xe=R-u,me=t-L;return c?Gv(me,a-xe):me}function x(R){var L=R-l,xe=R-u;return l===void 0||L>=t||L<0||c&&xe>=a}function O(){var R=lo();if(x(R))return $(R);s=setTimeout(O,h(R))}function $(R){return s=void 0,p&&n?g(R):(n=i=void 0,o)}function N(){s!==void 0&&clearTimeout(s),u=0,n=l=i=s=void 0}function M(){return s===void 0?o:$(lo())}function _(){var R=lo(),L=x(R);if(n=arguments,i=this,l=R,L){if(s===void 0)return y(l);if(c)return clearTimeout(s),s=setTimeout(O,t),g(l)}return s===void 0&&(s=setTimeout(O,t)),o}return _.cancel=N,_.flush=M,_}var Yv=qv;const Kv=Ot(Yv),wu=(e,t,r,n,i,a=300)=>{const[o,s]=S.useState(r??t);S.useEffect(()=>{s(r??t)},[r]);const l=S.useCallback(Kv(c=>e(n,c),a),[e,n,a]),u=S.useCallback(c=>{const p=i(c);s(p??t),l(p)},[l,i]),f=S.useCallback(()=>{s(t),e(n,void 0)},[t,e,n]);return[o,u,f]},Xv=e=>e===""?void 0:parseFloat(e),Jv=e=>Xv(e),Jn=S.memo(function(t){const{allowDecimal:r,className:n,data:i,description:a,errors:o,enabled:s,handleChange:l,label:u,path:f,required:c,hideControls:p}=t,[g,y]=wu(l,"",i,f,Jv);return d.jsx(v.NumberInput,{label:u,description:a,error:o,required:c,value:g,onChange:y,className:n,disabled:!s,allowDecimal:r,hideControls:p,w:"100%"})}),Zv=e=>d.jsx(Jn,{...e}),Cu=V.rankWith(3,V.isNumberControl),Ou=ge.withJsonFormsControlProps(Zv),Qv=e=>d.jsx(Jn,{...e}),Au=V.rankWith(3,V.isIntegerControl),Pu=ge.withJsonFormsControlProps(Qv);function eb(){this.__data__=[],this.size=0}var tb=eb;function rb(e,t){return e===t||e!==e&&t!==t}var Zn=rb,nb=Zn;function ib(e,t){for(var r=e.length;r--;)if(nb(e[r][0],t))return r;return-1}var Qn=ib,ab=Qn,ob=Array.prototype,sb=ob.splice;function lb(e){var t=this.__data__,r=ab(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():sb.call(t,r,1),--this.size,!0}var ub=lb,cb=Qn;function fb(e){var t=this.__data__,r=cb(t,e);return r<0?void 0:t[r][1]}var db=fb,pb=Qn;function hb(e){return pb(this.__data__,e)>-1}var mb=hb,gb=Qn;function yb(e,t){var r=this.__data__,n=gb(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var vb=yb,bb=tb,xb=ub,_b=db,Tb=mb,Eb=vb;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=bb,mr.prototype.delete=xb,mr.prototype.get=_b,mr.prototype.has=Tb,mr.prototype.set=Eb;var ei=mr,Sb=ei;function wb(){this.__data__=new Sb,this.size=0}var Cb=wb;function Ob(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var Ab=Ob;function Pb(e){return this.__data__.get(e)}var kb=Pb;function jb(e){return this.__data__.has(e)}var $b=jb,Ib=Qt,Rb=Ib(Object,"create"),ti=Rb,ku=ti;function Db(){this.__data__=ku?ku(null):{},this.size=0}var Mb=Db;function Nb(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Fb=Nb,Lb=ti,zb="__lodash_hash_undefined__",Ub=Object.prototype,Vb=Ub.hasOwnProperty;function Bb(e){var t=this.__data__;if(Lb){var r=t[e];return r===zb?void 0:r}return Vb.call(t,e)?t[e]:void 0}var Wb=Bb,Hb=ti,Gb=Object.prototype,qb=Gb.hasOwnProperty;function Yb(e){var t=this.__data__;return Hb?t[e]!==void 0:qb.call(t,e)}var Kb=Yb,Xb=ti,Jb="__lodash_hash_undefined__";function Zb(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Xb&&t===void 0?Jb:t,this}var Qb=Zb,e1=Mb,t1=Fb,r1=Wb,n1=Kb,i1=Qb;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=e1,gr.prototype.delete=t1,gr.prototype.get=r1,gr.prototype.has=n1,gr.prototype.set=i1;var a1=gr,ju=a1,o1=ei,s1=Qa;function l1(){this.size=0,this.__data__={hash:new ju,map:new(s1||o1),string:new ju}}var u1=l1;function c1(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var f1=c1,d1=f1;function p1(e,t){var r=e.__data__;return d1(t)?r[typeof t=="string"?"string":"hash"]:r.map}var ri=p1,h1=ri;function m1(e){var t=h1(this,e).delete(e);return this.size-=t?1:0,t}var g1=m1,y1=ri;function v1(e){return y1(this,e).get(e)}var b1=v1,x1=ri;function _1(e){return x1(this,e).has(e)}var T1=_1,E1=ri;function S1(e,t){var r=E1(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var w1=S1,C1=u1,O1=g1,A1=b1,P1=T1,k1=w1;function yr(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])}}yr.prototype.clear=C1,yr.prototype.delete=O1,yr.prototype.get=A1,yr.prototype.has=P1,yr.prototype.set=k1;var $u=yr,j1=ei,$1=Qa,I1=$u,R1=200;function D1(e,t){var r=this.__data__;if(r instanceof j1){var n=r.__data__;if(!$1||n.length<R1-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new I1(n)}return r.set(e,t),this.size=r.size,this}var M1=D1,N1=ei,F1=Cb,L1=Ab,z1=kb,U1=$b,V1=M1;function vr(e){var t=this.__data__=new N1(e);this.size=t.size}vr.prototype.clear=F1,vr.prototype.delete=L1,vr.prototype.get=z1,vr.prototype.has=U1,vr.prototype.set=V1;var B1=vr,W1=Qt,H1=function(){try{var e=W1(Object,"defineProperty");return e({},"",{}),e}catch{}}(),Iu=H1,Ru=Iu;function G1(e,t,r){t=="__proto__"&&Ru?Ru(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var uo=G1,q1=uo,Y1=Zn;function K1(e,t,r){(r!==void 0&&!Y1(e[t],r)||r===void 0&&!(t in e))&&q1(e,t,r)}var Du=K1;function X1(e){return function(t,r,n){for(var i=-1,a=Object(t),o=n(t),s=o.length;s--;){var l=o[e?s:++i];if(r(a[l],l,a)===!1)break}return t}}var J1=X1,Z1=J1,Q1=Z1(),ex=Q1,ni={exports:{}};ni.exports,function(e,t){var r=gt,n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===n,o=a?r.Buffer:void 0,s=o?o.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 tx=ni.exports,rx=gt,nx=rx.Uint8Array,ix=nx,Mu=ix;function ax(e){var t=new e.constructor(e.byteLength);return new Mu(t).set(new Mu(e)),t}var ox=ax,sx=ox;function lx(e,t){var r=t?sx(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var ux=lx;function cx(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}var fx=cx,dx=Pt,Nu=Object.create,px=function(){function e(){}return function(t){if(!dx(t))return{};if(Nu)return Nu(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}(),hx=px,mx=Zl,gx=mx(Object.getPrototypeOf,Object),Fu=gx,yx=hx,vx=Fu,bx=Hn;function xx(e){return typeof e.constructor=="function"&&!bx(e)?yx(vx(e)):{}}var _x=xx,Tx=Yn,Ex=hr;function Sx(e){return Ex(e)&&Tx(e)}var Lu=Sx,wx=dr,Cx=Fu,Ox=hr,Ax="[object Object]",Px=Function.prototype,kx=Object.prototype,zu=Px.toString,jx=kx.hasOwnProperty,$x=zu.call(Object);function Ix(e){if(!Ox(e)||wx(e)!=Ax)return!1;var t=Cx(e);if(t===null)return!0;var r=jx.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&zu.call(r)==$x}var Rx=Ix;function Dx(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var Uu=Dx,Mx=uo,Nx=Zn,Fx=Object.prototype,Lx=Fx.hasOwnProperty;function zx(e,t,r){var n=e[t];(!(Lx.call(e,t)&&Nx(n,r))||r===void 0&&!(t in e))&&Mx(e,t,r)}var Ux=zx,Vx=Ux,Bx=uo;function Wx(e,t,r,n){var i=!r;r||(r={});for(var a=-1,o=t.length;++a<o;){var s=t[a],l=n?n(r[s],e[s],s,r,e):void 0;l===void 0&&(l=e[s]),i?Bx(r,s,l):Vx(r,s,l)}return r}var Hx=Wx;function Gx(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var qx=Gx,Yx=9007199254740991,Kx=/^(?:0|[1-9]\d*)$/;function Xx(e,t){var r=typeof e;return t=t??Yx,!!t&&(r=="number"||r!="symbol"&&Kx.test(e))&&e>-1&&e%1==0&&e<t}var Vu=Xx,Jx=qx,Zx=qn,Qx=Jr,e_=ao,t_=Vu,r_=oo,n_=Object.prototype,i_=n_.hasOwnProperty;function a_(e,t){var r=Qx(e),n=!r&&Zx(e),i=!r&&!n&&e_(e),a=!r&&!n&&!i&&r_(e),o=r||n||i||a,s=o?Jx(e.length,String):[],l=s.length;for(var u in e)(t||i_.call(e,u))&&!(o&&(u=="length"||i&&(u=="offset"||u=="parent")||a&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||t_(u,l)))&&s.push(u);return s}var o_=a_;function s_(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var l_=s_,u_=Pt,c_=Hn,f_=l_,d_=Object.prototype,p_=d_.hasOwnProperty;function h_(e){if(!u_(e))return f_(e);var t=c_(e),r=[];for(var n in e)n=="constructor"&&(t||!p_.call(e,n))||r.push(n);return r}var m_=h_,g_=o_,y_=m_,v_=Yn;function b_(e){return v_(e)?g_(e,!0):y_(e)}var Bu=b_,x_=Hx,__=Bu;function T_(e){return x_(e,__(e))}var E_=T_,Wu=Du,S_=tx,w_=ux,C_=fx,O_=_x,Hu=qn,Gu=Jr,A_=Lu,P_=ao,k_=Ja,j_=Pt,$_=Rx,I_=oo,qu=Uu,R_=E_;function D_(e,t,r,n,i,a,o){var s=qu(e,r),l=qu(t,r),u=o.get(l);if(u){Wu(e,r,u);return}var f=a?a(s,l,r+"",e,t,o):void 0,c=f===void 0;if(c){var p=Gu(l),g=!p&&P_(l),y=!p&&!g&&I_(l);f=l,p||g||y?Gu(s)?f=s:A_(s)?f=C_(s):g?(c=!1,f=S_(l,!0)):y?(c=!1,f=w_(l,!0)):f=[]:$_(l)||Hu(l)?(f=s,Hu(s)?f=R_(s):(!j_(s)||k_(s))&&(f=O_(l))):c=!1}c&&(o.set(l,f),i(f,l,n,a,o),o.delete(l)),Wu(e,r,f)}var M_=D_,N_=B1,F_=Du,L_=ex,z_=M_,U_=Pt,V_=Bu,B_=Uu;function Yu(e,t,r,n,i){e!==t&&L_(t,function(a,o){if(i||(i=new N_),U_(a))z_(e,t,o,r,Yu,n,i);else{var s=n?n(B_(e,o),a,o+"",e,t,i):void 0;s===void 0&&(s=a),F_(e,o,s)}},V_)}var W_=Yu;function H_(e){return e}var Ku=H_;function G_(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 q_=G_,Y_=q_,Xu=Math.max;function K_(e,t,r){return t=Xu(t===void 0?e.length-1:t,0),function(){for(var n=arguments,i=-1,a=Xu(n.length-t,0),o=Array(a);++i<a;)o[i]=n[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=n[i];return s[t]=r(o),Y_(e,this,s)}}var X_=K_;function J_(e){return function(){return e}}var Z_=J_,Q_=Z_,Ju=Iu,eT=Ku,tT=Ju?function(e,t){return Ju(e,"toString",{configurable:!0,enumerable:!1,value:Q_(t),writable:!0})}:eT,rT=tT,nT=800,iT=16,aT=Date.now;function oT(e){var t=0,r=0;return function(){var n=aT(),i=iT-(n-r);if(r=n,i>0){if(++t>=nT)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var sT=oT,lT=rT,uT=sT,cT=uT(lT),fT=cT,dT=Ku,pT=X_,hT=fT;function mT(e,t){return hT(pT(e,t,dT),e+"")}var Zu=mT,gT=Zn,yT=Yn,vT=Vu,bT=Pt;function xT(e,t,r){if(!bT(r))return!1;var n=typeof t;return(n=="number"?yT(r)&&vT(t,r.length):n=="string"&&t in r)?gT(r[t],e):!1}var Qu=xT,_T=Zu,TT=Qu;function ET(e){return _T(function(t,r){var n=-1,i=r.length,a=i>1?r[i-1]:void 0,o=i>2?r[2]:void 0;for(a=e.length>3&&typeof a=="function"?(i--,a):void 0,o&&TT(r[0],r[1],o)&&(a=i<3?void 0:a,i=1),t=Object(t);++n<i;){var s=r[n];s&&e(t,s,n,a)}return t})}var ST=ET,wT=W_,CT=ST,OT=CT(function(e,t,r){wT(e,t,r)}),AT=OT;const ec=Ot(AT),tc=S.memo(function(t){const{className:r,config:n,uischema:i,data:a,description:o,errors:s,enabled:l,path:u,handleChange:f,label:c,required:p}=t;return ec({},n,i.options).format==="password"?d.jsx(v.PasswordInput,{label:c,description:o,error:s,required:p,value:a||"",onChange:y=>{f(u,y.currentTarget.value)},className:r,disabled:!l,w:"100%"}):d.jsx(v.TextInput,{label:c,description:o,error:s,required:p,value:a||"",onChange:y=>{f(u,y.currentTarget.value)},className:r,disabled:!l,w:"100%"})}),rc=S.memo(function(t){const{className:r,data:n,description:i,enabled:a,errors:o,handleChange:s,label:l,labelPosition:u,path:f,required:c}=t;return d.jsx(v.Checkbox,{label:l,description:i,error:o,disabled:!a,className:r,labelPosition:u,required:c,data:[{label:"true",value:"true"},{label:"false",value:"false"}],value:String(n)||"",onChange:p=>{s(f,p==="true")}})}),PT=e=>d.jsx(tc,{...e}),nc=V.rankWith(3,V.isStringControl),ic=ge.withJsonFormsControlProps(PT),kT=e=>d.jsx(rc,{...e}),ac=V.rankWith(3,V.isBooleanControl),oc=ge.withJsonFormsControlProps(kT),jT=({data:e,options:t,handleChange:r,path:n,...i})=>{const{description:a,errors:o,label:s,required:l,enabled:u}=i;return d.jsx(v.Select,{disabled:!u,data:t,value:e||null,label:s,description:a,required:l,error:o,searchable:!0,onChange:f=>{r(n,f)}})},sc=V.rankWith(5,V.isEnumControl),lc=ge.withJsonFormsEnumProps(ge.withTranslateProps(S.memo(jT)),!1);function $T(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}var IT=$T,uc=Gn,RT=qn,DT=Jr,cc=uc?uc.isConcatSpreadable:void 0;function MT(e){return DT(e)||RT(e)||!!(cc&&e&&e[cc])}var NT=MT,FT=IT,LT=NT;function fc(e,t,r,n,i){var a=-1,o=e.length;for(r||(r=LT),i||(i=[]);++a<o;){var s=e[a];t>0&&r(s)?t>1?fc(s,t-1,r,n,i):FT(i,s):n||(i[i.length]=s)}return i}var zT=fc,UT="__lodash_hash_undefined__";function VT(e){return this.__data__.set(e,UT),this}var BT=VT;function WT(e){return this.__data__.has(e)}var HT=WT,GT=$u,qT=BT,YT=HT;function ii(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new GT;++t<r;)this.add(e[t])}ii.prototype.add=ii.prototype.push=qT,ii.prototype.has=YT;var KT=ii;function XT(e,t,r,n){for(var i=e.length,a=r+(n?1:-1);n?a--:++a<i;)if(t(e[a],a,e))return a;return-1}var JT=XT;function ZT(e){return e!==e}var QT=ZT;function eE(e,t,r){for(var n=r-1,i=e.length;++n<i;)if(e[n]===t)return n;return-1}var tE=eE,rE=JT,nE=QT,iE=tE;function aE(e,t,r){return t===t?iE(e,t,r):rE(e,nE,r)}var oE=aE,sE=oE;function lE(e,t){var r=e==null?0:e.length;return!!r&&sE(e,t,0)>-1}var uE=lE;function cE(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 fE=cE;function dE(e,t){return e.has(t)}var pE=dE;function hE(){}var mE=hE;function gE(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var dc=gE,co=ou,yE=mE,vE=dc,bE=1/0,xE=co&&1/vE(new co([,-0]))[1]==bE?function(e){return new co(e)}:yE,_E=xE,TE=KT,EE=uE,SE=fE,wE=pE,CE=_E,OE=dc,AE=200;function PE(e,t,r){var n=-1,i=EE,a=e.length,o=!0,s=[],l=s;if(r)o=!1,i=SE;else if(a>=AE){var u=t?null:CE(e);if(u)return OE(u);o=!1,i=wE,l=new TE}else l=t?[]:s;e:for(;++n<a;){var f=e[n],c=t?t(f):f;if(f=r||f!==0?f:0,o&&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 kE=PE,jE=zT,$E=Zu,IE=kE,RE=Lu,DE=$E(function(e){return IE(jE(e,1,RE,!0))}),ME=DE;const NE=Ot(ME);function FE(e,t,r,n){var i=-1,a=e==null?0:e.length;for(n&&a&&(r=e[++i]);++i<a;)r=t(r,e[i],i,e);return r}var LE=FE;function zE(e){return function(t){return e==null?void 0:e[t]}}var UE=zE,VE=UE,BE={À:"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"},WE=VE(BE),HE=WE;function GE(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 qE=GE,pc=Gn,YE=qE,KE=Jr,XE=xu,JE=1/0,hc=pc?pc.prototype:void 0,mc=hc?hc.toString:void 0;function gc(e){if(typeof e=="string")return e;if(KE(e))return YE(e,gc)+"";if(XE(e))return mc?mc.call(e):"";var t=e+"";return t=="0"&&1/e==-JE?"-0":t}var ZE=gc,QE=ZE;function eS(e){return e==null?"":QE(e)}var fo=eS,tS=HE,rS=fo,nS=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,iS="\\u0300-\\u036f",aS="\\ufe20-\\ufe2f",oS="\\u20d0-\\u20ff",sS=iS+aS+oS,lS="["+sS+"]",uS=RegExp(lS,"g");function cS(e){return e=rS(e),e&&e.replace(nS,tS).replace(uS,"")}var fS=cS,dS=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function pS(e){return e.match(dS)||[]}var hS=pS,mS=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function gS(e){return mS.test(e)}var yS=gS,yc="\\ud800-\\udfff",vS="\\u0300-\\u036f",bS="\\ufe20-\\ufe2f",xS="\\u20d0-\\u20ff",_S=vS+bS+xS,vc="\\u2700-\\u27bf",bc="a-z\\xdf-\\xf6\\xf8-\\xff",TS="\\xac\\xb1\\xd7\\xf7",ES="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",SS="\\u2000-\\u206f",wS=" \\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",xc="A-Z\\xc0-\\xd6\\xd8-\\xde",CS="\\ufe0e\\ufe0f",_c=TS+ES+SS+wS,Tc="['’]",Ec="["+_c+"]",OS="["+_S+"]",Sc="\\d+",AS="["+vc+"]",wc="["+bc+"]",Cc="[^"+yc+_c+Sc+vc+bc+xc+"]",PS="\\ud83c[\\udffb-\\udfff]",kS="(?:"+OS+"|"+PS+")",jS="[^"+yc+"]",Oc="(?:\\ud83c[\\udde6-\\uddff]){2}",Ac="[\\ud800-\\udbff][\\udc00-\\udfff]",br="["+xc+"]",$S="\\u200d",Pc="(?:"+wc+"|"+Cc+")",IS="(?:"+br+"|"+Cc+")",kc="(?:"+Tc+"(?:d|ll|m|re|s|t|ve))?",jc="(?:"+Tc+"(?:D|LL|M|RE|S|T|VE))?",$c=kS+"?",Ic="["+CS+"]?",RS="(?:"+$S+"(?:"+[jS,Oc,Ac].join("|")+")"+Ic+$c+")*",DS="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",MS="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",NS=Ic+$c+RS,FS="(?:"+[AS,Oc,Ac].join("|")+")"+NS,LS=RegExp([br+"?"+wc+"+"+kc+"(?="+[Ec,br,"$"].join("|")+")",IS+"+"+jc+"(?="+[Ec,br+Pc,"$"].join("|")+")",br+"?"+Pc+"+"+kc,br+"+"+jc,MS,DS,Sc,FS].join("|"),"g");function zS(e){return e.match(LS)||[]}var US=zS,VS=hS,BS=yS,WS=fo,HS=US;function GS(e,t,r){return e=WS(e),t=r?void 0:t,t===void 0?BS(e)?HS(e):VS(e):e.match(t)||[]}var qS=GS,YS=LE,KS=fS,XS=qS,JS="['’]",ZS=RegExp(JS,"g");function QS(e){return function(t){return YS(XS(KS(t).replace(ZS,"")),e,"")}}var ew=QS;function tw(e,t,r){var n=-1,i=e.length;t<0&&(t=-t>i?0:i+t),r=r>i?i:r,r<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var a=Array(i);++n<i;)a[n]=e[n+t];return a}var rw=tw,nw=rw;function iw(e,t,r){var n=e.length;return r=r===void 0?n:r,!t&&r>=n?e:nw(e,t,r)}var aw=iw,ow="\\ud800-\\udfff",sw="\\u0300-\\u036f",lw="\\ufe20-\\ufe2f",uw="\\u20d0-\\u20ff",cw=sw+lw+uw,fw="\\ufe0e\\ufe0f",dw="\\u200d",pw=RegExp("["+dw+ow+cw+fw+"]");function hw(e){return pw.test(e)}var Rc=hw;function mw(e){return e.split("")}var gw=mw,Dc="\\ud800-\\udfff",yw="\\u0300-\\u036f",vw="\\ufe20-\\ufe2f",bw="\\u20d0-\\u20ff",xw=yw+vw+bw,_w="\\ufe0e\\ufe0f",Tw="["+Dc+"]",po="["+xw+"]",ho="\\ud83c[\\udffb-\\udfff]",Ew="(?:"+po+"|"+ho+")",Mc="[^"+Dc+"]",Nc="(?:\\ud83c[\\udde6-\\uddff]){2}",Fc="[\\ud800-\\udbff][\\udc00-\\udfff]",Sw="\\u200d",Lc=Ew+"?",zc="["+_w+"]?",ww="(?:"+Sw+"(?:"+[Mc,Nc,Fc].join("|")+")"+zc+Lc+")*",Cw=zc+Lc+ww,Ow="(?:"+[Mc+po+"?",po,Nc,Fc,Tw].join("|")+")",Aw=RegExp(ho+"(?="+ho+")|"+Ow+Cw,"g");function Pw(e){return e.match(Aw)||[]}var kw=Pw,jw=gw,$w=Rc,Iw=kw;function Rw(e){return $w(e)?Iw(e):jw(e)}var Dw=Rw,Mw=aw,Nw=Rc,Fw=Dw,Lw=fo;function zw(e){return function(t){t=Lw(t);var r=Nw(t)?Fw(t):void 0,n=r?r[0]:t.charAt(0),i=r?Mw(r,1).join(""):t.slice(1);return n[e]()+i}}var Uw=zw,Vw=Uw,Bw=Vw("toUpperCase"),Ww=Bw,Hw=ew,Gw=Ww,qw=Hw(function(e,t,r){return e+(r?" ":"")+Gw(t)}),Yw=qw;const Kw=Ot(Yw);var Xw=Math.ceil,Jw=Math.max;function Zw(e,t,r,n){for(var i=-1,a=Jw(Xw((t-e)/(r||1)),0),o=Array(a);a--;)o[n?a:++i]=e,e+=r;return o}var Qw=Zw,eC=Eu,Uc=1/0,tC=17976931348623157e292;function rC(e){if(!e)return e===0?e:0;if(e=eC(e),e===Uc||e===-Uc){var t=e<0?-1:1;return t*tC}return e===e?e:0}var nC=rC,iC=Qw,aC=Qu,mo=nC;function oC(e){return function(t,r,n){return n&&typeof n!="number"&&aC(t,r,n)&&(r=n=void 0),t=mo(t),r===void 0?(r=t,t=0):r=mo(r),n=n===void 0?t<r?1:-1:mo(n),iC(t,r,n,e)}}var sC=oC,lC=sC,uC=lC(),cC=uC;const fC=Ot(cC);function fe(){return fe=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},fe.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 Vc(e){if(!zt(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=Vc(e[r])}),t}function Et(e,t,r={clone:!0}){const n=r.clone?fe({},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])?Vc(t[i]):t[i]:n[i]=t[i]}),n}const dC=Object.freeze(Object.defineProperty({__proto__:null,default:Et,isPlainObject:zt},Symbol.toStringTag,{value:"Module"}));function Zr(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 pC=Object.freeze(Object.defineProperty({__proto__:null,default:Zr},Symbol.toStringTag,{value:"Module"}));var go={exports:{}},le={};/**
|
|
53
|
+
*/var vo,As;function rh(){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 nh(){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 ih(){if($s)return Eo;$s=1;var e=Os(),t=rh(),r=xo(),n=js(),i=nh(),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:F,element:N(),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 F(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 N(){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 oh(){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 ah=Os(),sh=!0;yo.exports=ih()(ah.isElement,sh)}else yo.exports=oh()();var lh=yo.exports;const H=Ot(lh);var uh={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"},ch=Object.defineProperty,fh=Object.defineProperties,dh=Object.getOwnPropertyDescriptors,An=Object.getOwnPropertySymbols,Ds=Object.prototype.hasOwnProperty,Ms=Object.prototype.propertyIsEnumerable,Ns=(e,t,r)=>t in e?ch(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},ph=(e,t)=>fh(e,dh(t)),hh=(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=hh(a,["color","size","stroke","children"]);return T.createElement("svg",Fs(ph(Fs({ref:o},uh),{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},mh=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"}]]),gh=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"}]]),yh=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"}]]),vh=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"}]]),bh=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"}]]),xh=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"}]]),_h=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"}]]),Th=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"}]]),Eh=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 Sh({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 wh({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 Ch({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(Sh,{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(wh,{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(Ch,{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 Oh(...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(yh,{})})})}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(Oh,{})),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 Ah(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 Ph({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 kh=T.memo(Ph);function jh({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(kh,{relatedPath:f.path,id:Fe(e.id),foreign_key:f.foreign_key,type:f.type})})},p))]}):null]})}function Ih({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(bh,{})})}),d.jsx(jh,{item:a,info:r,loading:l,opened:c,onClose:()=>f(!1)})]})}function $h(e,t){return new Promise(r=>{r(Ah(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&&$h(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(Th,{})})}),d.jsx(Zs,{item:a,info:r,opened:c,onClose:()=>f(!1)})]})}function Rh({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(Rh,{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(Ih,{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 Dh(e){return Object.prototype.hasOwnProperty.call(e,"children")}Q.hasChildren=Dh;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",Mh=/<([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 Nh=new vl,Fh="text/html";Do=function(e,t){return t&&(e="<".concat(t,">").concat(e,"</").concat(t,">")),Nh.parseFromString(e,Fh)},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 Lh(e){var t,r,n=e.match(Mh),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=Lh;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,zh=bl;function Uh(e){return zh.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 Vh(e){e=e.toLowerCase();var t=Uh(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=Vh(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 Bh=Ie&&Ie.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty($o,"__esModule",{value:!0});var Wh=Bh(Ro),Hh=ur,Gh=/<(![a-zA-Z\s]+)>/;function qh(e){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];var t=e.match(Gh),r=t?t[1]:void 0;return(0,Hh.formatDOM)((0,Wh.default)(e),null,r)}$o.default=qh;var ht={},Mn={},Yh=0;Mn.SAME=Yh;var Kh=1;Mn.CAMELCASE=Kh,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 Xh(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 Jh="xlinkHref";De[Jh]=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:Zh,SAME:Qh,possibleStandardNames:wl}=Mn,em=":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",tm=RegExp.prototype.test.bind(new RegExp("^(data|aria)-["+em+"]*$")),rm=Object.keys(wl).reduce((e,t)=>{const r=wl[t];return r===Qh?e[t]=t:r===Zh?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=Xh,ht.isCustomAttribute=tm,ht.possibleStandardNames=rm;var zo={},Uo={},Cl=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,nm=/\n/g,im=/^\s*/,om=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,am=/^:\s*/,sm=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,lm=/^[;\s]*/,um=/^\s+|\s+$/g,cm=`
|
|
55
|
+
`,Ol="/",Al="*",Xt="",fm="comment",dm="declaration",pm=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(nm);h&&(r+=h.length);var x=y.lastIndexOf(cm);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(im)}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:fm,comment:x})}}function p(){var y=o(),h=l(om);if(h){if(f(),!l(am))return s("property missing ':'");var x=l(sm),w=y({type:dm,property:Pl(h[0].replace(Cl,Xt)),value:x?Pl(x[0].replace(Cl,Xt)):Xt});return l(lm),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(um,Xt):Xt}var hm=Ie&&Ie.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Uo,"__esModule",{value:!0});var mm=hm(pm);function gm(e,t){var r=null;if(!e||typeof e!="string")return r;var n=(0,mm.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=gm;var Ln={};Object.defineProperty(Ln,"__esModule",{value:!0}),Ln.camelCase=void 0;var ym=/^--[a-zA-Z0-9-]+$/,vm=/-([a-z])/g,bm=/^[^-]+$/,xm=/^-(webkit|moz|ms|o|khtml)-/,_m=/^-(ms)-/,Tm=function(e){return!e||bm.test(e)||ym.test(e)},Em=function(e,t){return t.toUpperCase()},kl=function(e,t){return"".concat(t,"-")},Sm=function(e,t){return t===void 0&&(t={}),Tm(e)?e:(e=e.toLowerCase(),t.reactCompat?e=e.replace(_m,kl):e=e.replace(xm,kl),e.replace(vm,Em))};Ln.camelCase=Sm;var wm=Ie&&Ie.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(zo,"__esModule",{value:!0});var Cm=wm(Uo),Om=Ln;function Am(e,t){var r={};return!e||typeof e!="string"||(0,Cm.default)(e,function(n,i){n&&i&&(r[(0,Om.camelCase)(n,t)]=i)}),r}zo.default=Am;var Pm=T,km=zo.default,jm=new Set(["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"]);function Im(e,t){return e.indexOf("-")===-1?t&&typeof t.is=="string":!jm.has(e)}var $m={reactCompat:!0};function Rm(e,t){if(e!=null)try{t.style=km(e,$m)}catch{t.style={}}}var Dm=Pm.version.split(".")[0]>=16,jl=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);function Mm(e){return!jl.has(e.name)}function Nm(e){return e}var Il={PRESERVE_CUSTOM_ATTRIBUTES:Dm,ELEMENTS_WITH_NO_TEXT_CHILDREN:jl,isCustomComponent:Im,setStyleProp:Rm,canTextBeChildOfNode:Mm,returnFirstArg:Nm},Vr=ht,$l=Il,Fm=["checked","value"],Lm=["input","select","textarea"],zm={reset:!0,submit:!0},Rl=function(t,r){t=t||{};var n,i,o,a,s,l={},u=t.type&&zm[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),Fm.indexOf(a)!==-1&&Lm.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 Um=T,Vm=Rl,Br=Il,Bm=Br.setStyleProp,Wm=Br.canTextBeChildOfNode;function Ml(e,t){t=t||{};for(var r=t.library||Um,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&&!Wm(s.parent)||y&&l)continue;a.push(c(s.data,s,h));continue}switch(p=s.attribs,Hm(s)?Bm(p.style,p):p&&(p=Vm(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 Hm(e){return Br.PRESERVE_CUSTOM_ATTRIBUTES&&e.type==="tag"&&Br.isCustomComponent(e.name,e.attribs)}var Gm=Ml,zn=Ao,cr=$o.default,qm=Rl,Nl=Gm;cr=typeof cr.default=="function"?cr.default:cr;var Ym={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||Ym),t))}Tt.domToReact=Nl,Tt.htmlToDOM=cr,Tt.attributesToProps=qm,Tt.Comment=zn.Comment,Tt.Element=zn.Element,Tt.ProcessingInstruction=zn.ProcessingInstruction,Tt.Text=zn.Text;var Km=Tt;Tt.default=Tt;const Jt=Ot(Km);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:Xm,getPrototypeOf:Jm,getOwnPropertyDescriptor:Zm}=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),Qm=rt(String.prototype.indexOf),eg=rt(String.prototype.trim),mt=rt(Object.prototype.hasOwnProperty),Ge=rt(RegExp.prototype.test),Gr=tg(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 tg(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&&(Xm(t)||(t[n]=o),i=o)}e[i]=!0}return e}function rg(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]=rg(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=Zm(e,t);if(n){if(n.get)return rt(n.get);if(typeof n.value=="function")return rt(n.value)}e=Jm(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"]),ng=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"]),ig=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"]),og=st(/\{\{[\w\W]*|[\w\W]*\}\}/gm),ag=st(/<%[\w\W]*|[\w\W]*%>/gm),sg=st(/\${[\w\W]*}/gm),lg=st(/^data-[\-\w.\u00B7-\uFFFF]/),ug=st(/^aria-[\-\w]+$/),ql=st(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),cg=st(/^(?:\w+script|data):/i),fg=st(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Yl=st(/^html$/i),dg=st(/^[a-z][.\w]*(-[.\w]+)+$/i);var Kl=Object.freeze({__proto__:null,MUSTACHE_EXPR:og,ERB_EXPR:ag,TMPLIT_EXPR:sg,DATA_ATTR:lg,ARIA_ATTR:ug,IS_ALLOWED_URI:ql,IS_SCRIPT_OR_DATA:cg,ATTR_WHITESPACE:fg,DOCTYPE_NAME:Yl,CUSTOM_ELEMENT:dg});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},pg=function(){return typeof window>"u"?null:window},hg=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]:pg();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"),F=qr(y,"parentNode");if(typeof a=="function"){const O=r.createElement("template");O.content&&O.content.ownerDocument&&(r=O.content.ownerDocument)}let N,_="";const{implementation:P,createNodeIterator:D,createDocumentFragment:te,getElementsByTagName:ae}=r,{importNode:Oe}=n;let U={};t.isSupported=typeof Fl=="function"&&typeof F=="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,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=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,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,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),M&&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.');N=b.TRUSTED_TYPES_POLICY,_=N.createHTML("")}else N===void 0&&(N=hg(g,i)),N!==null&&typeof _=="string"&&(_=N.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,...ng]),Mi=ee({},[...qo,...ig]),Ni=function(b){let S=F(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{F(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=N?N.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,M?"html":"body")[0]:M?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=F(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"&&Qm(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:eg(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),N&&typeof g=="object"&&typeof g.getAttributeType=="function"&&!me)switch(g.getAttributeType($d,ir)){case"TrustedHTML":{Ne=N.createHTML(Ne);break}case"TrustedScriptURL":{Ne=N.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&&!$&&!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 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=M?S.outerHTML:S.innerHTML;return M&&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," ")}),N&&jt?N.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 mg=Xl();const gg={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=mg.sanitize(i));const g=v.useStyles({name:"Field",props:l,classes:gg});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 yg({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 vg({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 bg({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(yg,{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(vg,{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 xg={scrollbar:"_scrollbar_isyo2_1"};function _g({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),F=_=>{x(P=>P.includes(_)?P.filter(D=>D!==_):[...P,_])},N=()=>{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:xg,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:N,headerCustomizer:s}),d.jsx(bg,{data:g,loading:r,hideActions:t,hideCheckbox:o,selection:h,setSelection:x,toggleRow:F,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 Tg(){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(mh,{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:F,headerCustomizer:N={},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",...F},children:[s?null:d.jsx(Gs,{hideFilter:l,hideAdd:u,hideSettings:c,hideDownload:y,toolbarCustomizer:P}),n?d.jsx(_g,{bulkActions:j,hideActions:f,loading:i,onSelectCheckbox:h,onClickEntry:x,hideCheckbox:D,hideDownload:y,headerCustomizer:N,bodyCustomizer:_}):null,!p&&n?d.jsx(Zl,{}):null,g?null:d.jsx(Tg,{})]})});Ko.displayName="DataGrid";const Eg=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(Eg),Sg=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(Sg);var wg=Object.prototype;function Cg(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||wg;return e===r}var Hn=Cg;function Og(e,t){return function(r){return e(t(r))}}var nu=Og,Ag=nu,Pg=Ag(Object.keys,Object),kg=Pg,jg=Hn,Ig=kg,$g=Object.prototype,Rg=$g.hasOwnProperty;function Dg(e){if(!jg(e))return Ig(e);var t=[];for(var r in Object(e))Rg.call(e,r)&&r!="constructor"&&t.push(r);return t}var Mg=Dg,Ng=typeof Ie=="object"&&Ie&&Ie.Object===Object&&Ie,iu=Ng,Fg=iu,Lg=typeof self=="object"&&self&&self.Object===Object&&self,zg=Fg||Lg||Function("return this")(),gt=zg,Ug=gt,Vg=Ug.Symbol,Gn=Vg,ou=Gn,au=Object.prototype,Bg=au.hasOwnProperty,Wg=au.toString,Kr=ou?ou.toStringTag:void 0;function Hg(e){var t=Bg.call(e,Kr),r=e[Kr];try{e[Kr]=void 0;var n=!0}catch{}var i=Wg.call(e);return n&&(t?e[Kr]=r:delete e[Kr]),i}var Gg=Hg,qg=Object.prototype,Yg=qg.toString;function Kg(e){return Yg.call(e)}var Xg=Kg,su=Gn,Jg=Gg,Zg=Xg,Qg="[object Null]",ey="[object Undefined]",lu=su?su.toStringTag:void 0;function ty(e){return e==null?e===void 0?ey:Qg:lu&&lu in Object(e)?Jg(e):Zg(e)}var fr=ty;function ry(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Pt=ry,ny=fr,iy=Pt,oy="[object AsyncFunction]",ay="[object Function]",sy="[object GeneratorFunction]",ly="[object Proxy]";function uy(e){if(!iy(e))return!1;var t=ny(e);return t==ay||t==sy||t==oy||t==ly}var Xo=uy,cy=gt,fy=cy["__core-js_shared__"],dy=fy,Jo=dy,uu=function(){var e=/[^.]+$/.exec(Jo&&Jo.keys&&Jo.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function py(e){return!!uu&&uu in e}var hy=py,my=Function.prototype,gy=my.toString;function yy(e){if(e!=null){try{return gy.call(e)}catch{}try{return e+""}catch{}}return""}var cu=yy,vy=Xo,by=hy,xy=Pt,_y=cu,Ty=/[\\^$.*+?()[\]{}|]/g,Ey=/^\[object .+?Constructor\]$/,Sy=Function.prototype,wy=Object.prototype,Cy=Sy.toString,Oy=wy.hasOwnProperty,Ay=RegExp("^"+Cy.call(Oy).replace(Ty,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Py(e){if(!xy(e)||by(e))return!1;var t=vy(e)?Ay:Ey;return t.test(_y(e))}var ky=Py;function jy(e,t){return e==null?void 0:e[t]}var Iy=jy,$y=ky,Ry=Iy;function Dy(e,t){var r=Ry(e,t);return $y(r)?r:void 0}var Qt=Dy,My=Qt,Ny=gt,Fy=My(Ny,"DataView"),Ly=Fy,zy=Qt,Uy=gt,Vy=zy(Uy,"Map"),Zo=Vy,By=Qt,Wy=gt,Hy=By(Wy,"Promise"),Gy=Hy,qy=Qt,Yy=gt,Ky=qy(Yy,"Set"),fu=Ky,Xy=Qt,Jy=gt,Zy=Xy(Jy,"WeakMap"),Qy=Zy,Qo=Ly,ea=Zo,ta=Gy,ra=fu,na=Qy,du=fr,dr=cu,pu="[object Map]",e0="[object Object]",hu="[object Promise]",mu="[object Set]",gu="[object WeakMap]",yu="[object DataView]",t0=dr(Qo),r0=dr(ea),n0=dr(ta),i0=dr(ra),o0=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==e0?e.constructor:void 0,n=r?dr(r):"";if(n)switch(n){case t0:return yu;case r0:return pu;case n0:return hu;case i0:return mu;case o0:return gu}return t});var a0=er;function s0(e){return e!=null&&typeof e=="object"}var pr=s0,l0=fr,u0=pr,c0="[object Arguments]";function f0(e){return u0(e)&&l0(e)==c0}var d0=f0,vu=d0,p0=pr,bu=Object.prototype,h0=bu.hasOwnProperty,m0=bu.propertyIsEnumerable,g0=vu(function(){return arguments}())?vu:function(e){return p0(e)&&h0.call(e,"callee")&&!m0.call(e,"callee")},qn=g0,y0=Array.isArray,Xr=y0,v0=9007199254740991;function b0(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=v0}var xu=b0,x0=Xo,_0=xu;function T0(e){return e!=null&&_0(e.length)&&!x0(e)}var Yn=T0,Kn={exports:{}};function E0(){return!1}var S0=E0;Kn.exports,function(e,t){var r=gt,n=S0,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,w0=fr,C0=xu,O0=pr,A0="[object Arguments]",P0="[object Array]",k0="[object Boolean]",j0="[object Date]",I0="[object Error]",$0="[object Function]",R0="[object Map]",D0="[object Number]",M0="[object Object]",N0="[object RegExp]",F0="[object Set]",L0="[object String]",z0="[object WeakMap]",U0="[object ArrayBuffer]",V0="[object DataView]",B0="[object Float32Array]",W0="[object Float64Array]",H0="[object Int8Array]",G0="[object Int16Array]",q0="[object Int32Array]",Y0="[object Uint8Array]",K0="[object Uint8ClampedArray]",X0="[object Uint16Array]",J0="[object Uint32Array]",ve={};ve[B0]=ve[W0]=ve[H0]=ve[G0]=ve[q0]=ve[Y0]=ve[K0]=ve[X0]=ve[J0]=!0,ve[A0]=ve[P0]=ve[U0]=ve[k0]=ve[V0]=ve[j0]=ve[I0]=ve[$0]=ve[R0]=ve[D0]=ve[M0]=ve[N0]=ve[F0]=ve[L0]=ve[z0]=!1;function Z0(e){return O0(e)&&C0(e.length)&&!!ve[w0(e)]}var Q0=Z0;function ev(e){return function(t){return e(t)}}var tv=ev,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 rv=Xn.exports,nv=Q0,iv=tv,_u=rv,Tu=_u&&_u.isTypedArray,ov=Tu?iv(Tu):nv,oa=ov,av=Mg,sv=a0,lv=qn,uv=Xr,cv=Yn,fv=ia,dv=Hn,pv=oa,hv="[object Map]",mv="[object Set]",gv=Object.prototype,yv=gv.hasOwnProperty;function vv(e){if(e==null)return!0;if(cv(e)&&(uv(e)||typeof e=="string"||typeof e.splice=="function"||fv(e)||pv(e)||lv(e)))return!e.length;var t=sv(e);if(t==hv||t==mv)return!e.size;if(dv(e))return!av(e).length;for(var r in e)if(yv.call(e,r))return!1;return!0}var bv=vv;const Eu=Ot(bv),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}`)),xv=({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(xv),_v=e=>function(r){const n=ye.useJsonForms(),i=V.getAjv({jsonforms:{...n}});return d.jsx(e,{...r,ajv:i})};var Tv=gt,Ev=function(){return Tv.Date.now()},Sv=Ev,wv=/\s/;function Cv(e){for(var t=e.length;t--&&wv.test(e.charAt(t)););return t}var Ov=Cv,Av=Ov,Pv=/^\s+/;function kv(e){return e&&e.slice(0,Av(e)+1).replace(Pv,"")}var jv=kv,Iv=fr,$v=pr,Rv="[object Symbol]";function Dv(e){return typeof e=="symbol"||$v(e)&&Iv(e)==Rv}var wu=Dv,Mv=jv,Cu=Pt,Nv=wu,Ou=0/0,Fv=/^[-+]0x[0-9a-f]+$/i,Lv=/^0b[01]+$/i,zv=/^0o[0-7]+$/i,Uv=parseInt;function Vv(e){if(typeof e=="number")return e;if(Nv(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=Mv(e);var r=Lv.test(e);return r||zv.test(e)?Uv(e.slice(2),r?2:8):Fv.test(e)?Ou:+e}var Au=Vv,Bv=Pt,sa=Sv,Pu=Au,Wv="Expected a function",Hv=Math.max,Gv=Math.min;function qv(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(Wv);t=Pu(t)||0,Bv(r)&&(c=!!r.leading,f="maxWait"in r,o=f?Hv(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?Gv(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 F(){s!==void 0&&clearTimeout(s),u=0,n=l=i=s=void 0}function N(){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=F,_.flush=N,_}var Yv=qv;const Kv=Ot(Yv),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(Kv(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]},Xv=e=>e===""?void 0:parseFloat(e),Jv=e=>Xv(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,Jv);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%"})}),Zv=e=>d.jsx(Jn,{...e}),ju=V.rankWith(3,V.isNumberControl),Iu=ye.withJsonFormsControlProps(Zv),Qv=e=>d.jsx(Jn,{...e}),$u=V.rankWith(3,V.isIntegerControl),Ru=ye.withJsonFormsControlProps(Qv);function eb(){this.__data__=[],this.size=0}var tb=eb;function rb(e,t){return e===t||e!==e&&t!==t}var Zn=rb,nb=Zn;function ib(e,t){for(var r=e.length;r--;)if(nb(e[r][0],t))return r;return-1}var Qn=ib,ob=Qn,ab=Array.prototype,sb=ab.splice;function lb(e){var t=this.__data__,r=ob(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():sb.call(t,r,1),--this.size,!0}var ub=lb,cb=Qn;function fb(e){var t=this.__data__,r=cb(t,e);return r<0?void 0:t[r][1]}var db=fb,pb=Qn;function hb(e){return pb(this.__data__,e)>-1}var mb=hb,gb=Qn;function yb(e,t){var r=this.__data__,n=gb(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var vb=yb,bb=tb,xb=ub,_b=db,Tb=mb,Eb=vb;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=bb,hr.prototype.delete=xb,hr.prototype.get=_b,hr.prototype.has=Tb,hr.prototype.set=Eb;var ei=hr,Sb=ei;function wb(){this.__data__=new Sb,this.size=0}var Cb=wb;function Ob(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var Ab=Ob;function Pb(e){return this.__data__.get(e)}var kb=Pb;function jb(e){return this.__data__.has(e)}var Ib=jb,$b=Qt,Rb=$b(Object,"create"),ti=Rb,Du=ti;function Db(){this.__data__=Du?Du(null):{},this.size=0}var Mb=Db;function Nb(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Fb=Nb,Lb=ti,zb="__lodash_hash_undefined__",Ub=Object.prototype,Vb=Ub.hasOwnProperty;function Bb(e){var t=this.__data__;if(Lb){var r=t[e];return r===zb?void 0:r}return Vb.call(t,e)?t[e]:void 0}var Wb=Bb,Hb=ti,Gb=Object.prototype,qb=Gb.hasOwnProperty;function Yb(e){var t=this.__data__;return Hb?t[e]!==void 0:qb.call(t,e)}var Kb=Yb,Xb=ti,Jb="__lodash_hash_undefined__";function Zb(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Xb&&t===void 0?Jb:t,this}var Qb=Zb,e1=Mb,t1=Fb,r1=Wb,n1=Kb,i1=Qb;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=e1,mr.prototype.delete=t1,mr.prototype.get=r1,mr.prototype.has=n1,mr.prototype.set=i1;var o1=mr,Mu=o1,a1=ei,s1=Zo;function l1(){this.size=0,this.__data__={hash:new Mu,map:new(s1||a1),string:new Mu}}var u1=l1;function c1(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var f1=c1,d1=f1;function p1(e,t){var r=e.__data__;return d1(t)?r[typeof t=="string"?"string":"hash"]:r.map}var ri=p1,h1=ri;function m1(e){var t=h1(this,e).delete(e);return this.size-=t?1:0,t}var g1=m1,y1=ri;function v1(e){return y1(this,e).get(e)}var b1=v1,x1=ri;function _1(e){return x1(this,e).has(e)}var T1=_1,E1=ri;function S1(e,t){var r=E1(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var w1=S1,C1=u1,O1=g1,A1=b1,P1=T1,k1=w1;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=C1,gr.prototype.delete=O1,gr.prototype.get=A1,gr.prototype.has=P1,gr.prototype.set=k1;var Nu=gr,j1=ei,I1=Zo,$1=Nu,R1=200;function D1(e,t){var r=this.__data__;if(r instanceof j1){var n=r.__data__;if(!I1||n.length<R1-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new $1(n)}return r.set(e,t),this.size=r.size,this}var M1=D1,N1=ei,F1=Cb,L1=Ab,z1=kb,U1=Ib,V1=M1;function yr(e){var t=this.__data__=new N1(e);this.size=t.size}yr.prototype.clear=F1,yr.prototype.delete=L1,yr.prototype.get=z1,yr.prototype.has=U1,yr.prototype.set=V1;var B1=yr,W1=Qt,H1=function(){try{var e=W1(Object,"defineProperty");return e({},"",{}),e}catch{}}(),Fu=H1,Lu=Fu;function G1(e,t,r){t=="__proto__"&&Lu?Lu(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var la=G1,q1=la,Y1=Zn;function K1(e,t,r){(r!==void 0&&!Y1(e[t],r)||r===void 0&&!(t in e))&&q1(e,t,r)}var zu=K1;function X1(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 J1=X1,Z1=J1,Q1=Z1(),ex=Q1,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 tx=ni.exports,rx=gt,nx=rx.Uint8Array,ix=nx,Uu=ix;function ox(e){var t=new e.constructor(e.byteLength);return new Uu(t).set(new Uu(e)),t}var ax=ox,sx=ax;function lx(e,t){var r=t?sx(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var ux=lx;function cx(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}var fx=cx,dx=Pt,Vu=Object.create,px=function(){function e(){}return function(t){if(!dx(t))return{};if(Vu)return Vu(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}(),hx=px,mx=nu,gx=mx(Object.getPrototypeOf,Object),Bu=gx,yx=hx,vx=Bu,bx=Hn;function xx(e){return typeof e.constructor=="function"&&!bx(e)?yx(vx(e)):{}}var _x=xx,Tx=Yn,Ex=pr;function Sx(e){return Ex(e)&&Tx(e)}var Wu=Sx,wx=fr,Cx=Bu,Ox=pr,Ax="[object Object]",Px=Function.prototype,kx=Object.prototype,Hu=Px.toString,jx=kx.hasOwnProperty,Ix=Hu.call(Object);function $x(e){if(!Ox(e)||wx(e)!=Ax)return!1;var t=Cx(e);if(t===null)return!0;var r=jx.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&Hu.call(r)==Ix}var Rx=$x;function Dx(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var Gu=Dx,Mx=la,Nx=Zn,Fx=Object.prototype,Lx=Fx.hasOwnProperty;function zx(e,t,r){var n=e[t];(!(Lx.call(e,t)&&Nx(n,r))||r===void 0&&!(t in e))&&Mx(e,t,r)}var Ux=zx,Vx=Ux,Bx=la;function Wx(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?Bx(r,s,l):Vx(r,s,l)}return r}var Hx=Wx;function Gx(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var qx=Gx,Yx=9007199254740991,Kx=/^(?:0|[1-9]\d*)$/;function Xx(e,t){var r=typeof e;return t=t??Yx,!!t&&(r=="number"||r!="symbol"&&Kx.test(e))&&e>-1&&e%1==0&&e<t}var qu=Xx,Jx=qx,Zx=qn,Qx=Xr,e_=ia,t_=qu,r_=oa,n_=Object.prototype,i_=n_.hasOwnProperty;function o_(e,t){var r=Qx(e),n=!r&&Zx(e),i=!r&&!n&&e_(e),o=!r&&!n&&!i&&r_(e),a=r||n||i||o,s=a?Jx(e.length,String):[],l=s.length;for(var u in e)(t||i_.call(e,u))&&!(a&&(u=="length"||i&&(u=="offset"||u=="parent")||o&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||t_(u,l)))&&s.push(u);return s}var a_=o_;function s_(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var l_=s_,u_=Pt,c_=Hn,f_=l_,d_=Object.prototype,p_=d_.hasOwnProperty;function h_(e){if(!u_(e))return f_(e);var t=c_(e),r=[];for(var n in e)n=="constructor"&&(t||!p_.call(e,n))||r.push(n);return r}var m_=h_,g_=a_,y_=m_,v_=Yn;function b_(e){return v_(e)?g_(e,!0):y_(e)}var Yu=b_,x_=Hx,__=Yu;function T_(e){return x_(e,__(e))}var E_=T_,Ku=zu,S_=tx,w_=ux,C_=fx,O_=_x,Xu=qn,Ju=Xr,A_=Wu,P_=ia,k_=Xo,j_=Pt,I_=Rx,$_=oa,Zu=Gu,R_=E_;function D_(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&&P_(l),y=!p&&!g&&$_(l);c=l,p||g||y?Ju(s)?c=s:A_(s)?c=C_(s):g?(f=!1,c=S_(l,!0)):y?(f=!1,c=w_(l,!0)):c=[]:I_(l)||Xu(l)?(c=s,Xu(s)?c=R_(s):(!j_(s)||k_(s))&&(c=O_(l))):f=!1}f&&(a.set(l,c),i(c,l,n,o,a),a.delete(l)),Ku(e,r,c)}var M_=D_,N_=B1,F_=zu,L_=ex,z_=M_,U_=Pt,V_=Yu,B_=Gu;function Qu(e,t,r,n,i){e!==t&&L_(t,function(o,a){if(i||(i=new N_),U_(o))z_(e,t,a,r,Qu,n,i);else{var s=n?n(B_(e,a),o,a+"",e,t,i):void 0;s===void 0&&(s=o),F_(e,a,s)}},V_)}var W_=Qu;function H_(e){return e}var ec=H_;function G_(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 q_=G_,Y_=q_,tc=Math.max;function K_(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),Y_(e,this,s)}}var X_=K_;function J_(e){return function(){return e}}var Z_=J_,Q_=Z_,rc=Fu,eT=ec,tT=rc?function(e,t){return rc(e,"toString",{configurable:!0,enumerable:!1,value:Q_(t),writable:!0})}:eT,rT=tT,nT=800,iT=16,oT=Date.now;function aT(e){var t=0,r=0;return function(){var n=oT(),i=iT-(n-r);if(r=n,i>0){if(++t>=nT)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var sT=aT,lT=rT,uT=sT,cT=uT(lT),fT=cT,dT=ec,pT=X_,hT=fT;function mT(e,t){return hT(pT(e,t,dT),e+"")}var nc=mT,gT=Zn,yT=Yn,vT=qu,bT=Pt;function xT(e,t,r){if(!bT(r))return!1;var n=typeof t;return(n=="number"?yT(r)&&vT(t,r.length):n=="string"&&t in r)?gT(r[t],e):!1}var ic=xT,_T=nc,TT=ic;function ET(e){return _T(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&&TT(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 ST=ET,wT=W_,CT=ST,OT=CT(function(e,t,r){wT(e,t,r)}),AT=OT;const oc=Ot(AT),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")}})}),PT=e=>d.jsx(ac,{...e}),lc=V.rankWith(3,V.isStringControl),uc=ye.withJsonFormsControlProps(PT),kT=e=>d.jsx(sc,{...e}),cc=V.rankWith(3,V.isBooleanControl),fc=ye.withJsonFormsControlProps(kT),jT=({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(jT)),!1);function IT(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}var $T=IT,hc=Gn,RT=qn,DT=Xr,mc=hc?hc.isConcatSpreadable:void 0;function MT(e){return DT(e)||RT(e)||!!(mc&&e&&e[mc])}var NT=MT,FT=$T,LT=NT;function gc(e,t,r,n,i){var o=-1,a=e.length;for(r||(r=LT),i||(i=[]);++o<a;){var s=e[o];t>0&&r(s)?t>1?gc(s,t-1,r,n,i):FT(i,s):n||(i[i.length]=s)}return i}var zT=gc,UT="__lodash_hash_undefined__";function VT(e){return this.__data__.set(e,UT),this}var BT=VT;function WT(e){return this.__data__.has(e)}var HT=WT,GT=Nu,qT=BT,YT=HT;function ii(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new GT;++t<r;)this.add(e[t])}ii.prototype.add=ii.prototype.push=qT,ii.prototype.has=YT;var KT=ii;function XT(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 JT=XT;function ZT(e){return e!==e}var QT=ZT;function eE(e,t,r){for(var n=r-1,i=e.length;++n<i;)if(e[n]===t)return n;return-1}var tE=eE,rE=JT,nE=QT,iE=tE;function oE(e,t,r){return t===t?iE(e,t,r):rE(e,nE,r)}var aE=oE,sE=aE;function lE(e,t){var r=e==null?0:e.length;return!!r&&sE(e,t,0)>-1}var uE=lE;function cE(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 fE=cE;function dE(e,t){return e.has(t)}var pE=dE;function hE(){}var mE=hE;function gE(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var yc=gE,ua=fu,yE=mE,vE=yc,bE=1/0,xE=ua&&1/vE(new ua([,-0]))[1]==bE?function(e){return new ua(e)}:yE,_E=xE,TE=KT,EE=uE,SE=fE,wE=pE,CE=_E,OE=yc,AE=200;function PE(e,t,r){var n=-1,i=EE,o=e.length,a=!0,s=[],l=s;if(r)a=!1,i=SE;else if(o>=AE){var u=t?null:CE(e);if(u)return OE(u);a=!1,i=wE,l=new TE}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 kE=PE,jE=zT,IE=nc,$E=kE,RE=Wu,DE=IE(function(e){return $E(jE(e,1,RE,!0))}),ME=DE;const NE=Ot(ME);function FE(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 LE=FE;function zE(e){return function(t){return e==null?void 0:e[t]}}var UE=zE,VE=UE,BE={À:"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"},WE=VE(BE),HE=WE;function GE(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 qE=GE,vc=Gn,YE=qE,KE=Xr,XE=wu,JE=1/0,bc=vc?vc.prototype:void 0,xc=bc?bc.toString:void 0;function _c(e){if(typeof e=="string")return e;if(KE(e))return YE(e,_c)+"";if(XE(e))return xc?xc.call(e):"";var t=e+"";return t=="0"&&1/e==-JE?"-0":t}var ZE=_c,QE=ZE;function eS(e){return e==null?"":QE(e)}var ca=eS,tS=HE,rS=ca,nS=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,iS="\\u0300-\\u036f",oS="\\ufe20-\\ufe2f",aS="\\u20d0-\\u20ff",sS=iS+oS+aS,lS="["+sS+"]",uS=RegExp(lS,"g");function cS(e){return e=rS(e),e&&e.replace(nS,tS).replace(uS,"")}var fS=cS,dS=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function pS(e){return e.match(dS)||[]}var hS=pS,mS=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function gS(e){return mS.test(e)}var yS=gS,Tc="\\ud800-\\udfff",vS="\\u0300-\\u036f",bS="\\ufe20-\\ufe2f",xS="\\u20d0-\\u20ff",_S=vS+bS+xS,Ec="\\u2700-\\u27bf",Sc="a-z\\xdf-\\xf6\\xf8-\\xff",TS="\\xac\\xb1\\xd7\\xf7",ES="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",SS="\\u2000-\\u206f",wS=" \\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",CS="\\ufe0e\\ufe0f",Cc=TS+ES+SS+wS,Oc="['’]",Ac="["+Cc+"]",OS="["+_S+"]",Pc="\\d+",AS="["+Ec+"]",kc="["+Sc+"]",jc="[^"+Tc+Cc+Pc+Ec+Sc+wc+"]",PS="\\ud83c[\\udffb-\\udfff]",kS="(?:"+OS+"|"+PS+")",jS="[^"+Tc+"]",Ic="(?:\\ud83c[\\udde6-\\uddff]){2}",$c="[\\ud800-\\udbff][\\udc00-\\udfff]",vr="["+wc+"]",IS="\\u200d",Rc="(?:"+kc+"|"+jc+")",$S="(?:"+vr+"|"+jc+")",Dc="(?:"+Oc+"(?:d|ll|m|re|s|t|ve))?",Mc="(?:"+Oc+"(?:D|LL|M|RE|S|T|VE))?",Nc=kS+"?",Fc="["+CS+"]?",RS="(?:"+IS+"(?:"+[jS,Ic,$c].join("|")+")"+Fc+Nc+")*",DS="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",MS="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",NS=Fc+Nc+RS,FS="(?:"+[AS,Ic,$c].join("|")+")"+NS,LS=RegExp([vr+"?"+kc+"+"+Dc+"(?="+[Ac,vr,"$"].join("|")+")",$S+"+"+Mc+"(?="+[Ac,vr+Rc,"$"].join("|")+")",vr+"?"+Rc+"+"+Dc,vr+"+"+Mc,MS,DS,Pc,FS].join("|"),"g");function zS(e){return e.match(LS)||[]}var US=zS,VS=hS,BS=yS,WS=ca,HS=US;function GS(e,t,r){return e=WS(e),t=r?void 0:t,t===void 0?BS(e)?HS(e):VS(e):e.match(t)||[]}var qS=GS,YS=LE,KS=fS,XS=qS,JS="['’]",ZS=RegExp(JS,"g");function QS(e){return function(t){return YS(XS(KS(t).replace(ZS,"")),e,"")}}var ew=QS;function tw(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 rw=tw,nw=rw;function iw(e,t,r){var n=e.length;return r=r===void 0?n:r,!t&&r>=n?e:nw(e,t,r)}var ow=iw,aw="\\ud800-\\udfff",sw="\\u0300-\\u036f",lw="\\ufe20-\\ufe2f",uw="\\u20d0-\\u20ff",cw=sw+lw+uw,fw="\\ufe0e\\ufe0f",dw="\\u200d",pw=RegExp("["+dw+aw+cw+fw+"]");function hw(e){return pw.test(e)}var Lc=hw;function mw(e){return e.split("")}var gw=mw,zc="\\ud800-\\udfff",yw="\\u0300-\\u036f",vw="\\ufe20-\\ufe2f",bw="\\u20d0-\\u20ff",xw=yw+vw+bw,_w="\\ufe0e\\ufe0f",Tw="["+zc+"]",fa="["+xw+"]",da="\\ud83c[\\udffb-\\udfff]",Ew="(?:"+fa+"|"+da+")",Uc="[^"+zc+"]",Vc="(?:\\ud83c[\\udde6-\\uddff]){2}",Bc="[\\ud800-\\udbff][\\udc00-\\udfff]",Sw="\\u200d",Wc=Ew+"?",Hc="["+_w+"]?",ww="(?:"+Sw+"(?:"+[Uc,Vc,Bc].join("|")+")"+Hc+Wc+")*",Cw=Hc+Wc+ww,Ow="(?:"+[Uc+fa+"?",fa,Vc,Bc,Tw].join("|")+")",Aw=RegExp(da+"(?="+da+")|"+Ow+Cw,"g");function Pw(e){return e.match(Aw)||[]}var kw=Pw,jw=gw,Iw=Lc,$w=kw;function Rw(e){return Iw(e)?$w(e):jw(e)}var Dw=Rw,Mw=ow,Nw=Lc,Fw=Dw,Lw=ca;function zw(e){return function(t){t=Lw(t);var r=Nw(t)?Fw(t):void 0,n=r?r[0]:t.charAt(0),i=r?Mw(r,1).join(""):t.slice(1);return n[e]()+i}}var Uw=zw,Vw=Uw,Bw=Vw("toUpperCase"),Ww=Bw,Hw=ew,Gw=Ww,qw=Hw(function(e,t,r){return e+(r?" ":"")+Gw(t)}),Yw=qw;const Kw=Ot(Yw);var Xw=Math.ceil,Jw=Math.max;function Zw(e,t,r,n){for(var i=-1,o=Jw(Xw((t-e)/(r||1)),0),a=Array(o);o--;)a[n?o:++i]=e,e+=r;return a}var Qw=Zw,eC=Au,Gc=1/0,tC=17976931348623157e292;function rC(e){if(!e)return e===0?e:0;if(e=eC(e),e===Gc||e===-Gc){var t=e<0?-1:1;return t*tC}return e===e?e:0}var nC=rC,iC=Qw,oC=ic,pa=nC;function aC(e){return function(t,r,n){return n&&typeof n!="number"&&oC(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),iC(t,r,n,e)}}var sC=aC,lC=sC,uC=lC(),cC=uC;const fC=Ot(cC);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 dC=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 pC=Object.freeze(Object.defineProperty({__proto__:null,default:Jr},Symbol.toStringTag,{value:"Module"}));var ha={exports:{}},ce={};/**
|
|
57
57
|
* @license React
|
|
58
58
|
* react-is.production.min.js
|
|
59
59
|
*
|
|
@@ -61,7 +61,7 @@ Valid keys: `+JSON.stringify(Object.keys(w),null," "));var j=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
|
|
64
|
+
*/var Yc;function hC(){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={};/**
|
|
65
65
|
* @license React
|
|
66
66
|
* react-is.development.js
|
|
67
67
|
*
|
|
@@ -69,35 +69,35 @@ Valid keys: `+JSON.stringify(Object.keys(w),null," "));var j=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 Wc;function mC(){return Wc||(Wc=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"),a=Symbol.for("react.provider"),o=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"),g=Symbol.for("react.offscreen"),y=!1,h=!1,x=!1,O=!1,$=!1,N;N=Symbol.for("react.module.reference");function M(D){return!!(typeof D=="string"||typeof D=="function"||D===r||D===i||$||D===n||D===u||D===f||O||D===g||y||h||x||typeof D=="object"&&D!==null&&(D.$$typeof===p||D.$$typeof===c||D.$$typeof===a||D.$$typeof===o||D.$$typeof===l||D.$$typeof===N||D.getModuleId!==void 0))}function _(D){if(typeof D=="object"&&D!==null){var Ye=D.$$typeof;switch(Ye){case e:var Qe=D.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 o:case l:case p:case c:case a:return dt;default:return Ye}}case t:return Ye}}}var R=o,L=a,xe=e,me=l,Oe=r,U=p,ae=c,de=t,he=i,qe=n,je=u,Ze=f,at=!1,vt=!1;function w(D){return at||(at=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function A(D){return vt||(vt=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function Y(D){return _(D)===o}function F(D){return _(D)===a}function G(D){return typeof D=="object"&&D!==null&&D.$$typeof===e}function z(D){return _(D)===l}function B(D){return _(D)===r}function q(D){return _(D)===p}function K(D){return _(D)===c}function J(D){return _(D)===t}function X(D){return _(D)===i}function Ae(D){return _(D)===n}function j(D){return _(D)===u}function Ie(D){return _(D)===f}ue.ContextConsumer=R,ue.ContextProvider=L,ue.Element=xe,ue.ForwardRef=me,ue.Fragment=Oe,ue.Lazy=U,ue.Memo=ae,ue.Portal=de,ue.Profiler=he,ue.StrictMode=qe,ue.Suspense=je,ue.SuspenseList=Ze,ue.isAsyncMode=w,ue.isConcurrentMode=A,ue.isContextConsumer=Y,ue.isContextProvider=F,ue.isElement=G,ue.isForwardRef=z,ue.isFragment=B,ue.isLazy=q,ue.isMemo=K,ue.isPortal=J,ue.isProfiler=X,ue.isStrictMode=Ae,ue.isSuspense=j,ue.isSuspenseList=Ie,ue.isValidElementType=M,ue.typeOf=_}()),ue}process.env.NODE_ENV==="production"?go.exports=hC():go.exports=mC();var Hc=go.exports;const gC=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Gc(e){const t=`${e}`.match(gC);return t&&t[1]||""}function qc(e,t=""){return e.displayName||e.name||Gc(e)||t}function Yc(e,t,r){const n=qc(t);return e.displayName||(n!==""?`${r}(${n})`:r)}function yC(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return qc(e,"Component");if(typeof e=="object")switch(e.$$typeof){case Hc.ForwardRef:return Yc(e,e.render,"ForwardRef");case Hc.Memo:return Yc(e,e.type,"memo");default:return}}}const vC=Object.freeze(Object.defineProperty({__proto__:null,default:yC,getFunctionName:Gc},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.":Zr(7));return e.charAt(0).toUpperCase()+e.slice(1)}const bC=Object.freeze(Object.defineProperty({__proto__:null,default:tr},Symbol.toStringTag,{value:"Module"}));function yo(e,t){const r=fe({},t);return Object.keys(e).forEach(n=>{if(n.toString().match(/^(components|slots)$/))r[n]=fe({},e[n],r[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const i=e[n]||{},a=t[n];r[n]={},!a||!Object.keys(a)?r[n]=i:!i||!Object.keys(i)?r[n]=a:(r[n]=fe({},a),Object.keys(i).forEach(o=>{r[n][o]=yo(i[o],a[o])}))}else r[n]===void 0&&(r[n]=e[n])}),r}function xC(e,t,r=void 0){const n={};return Object.keys(e).forEach(i=>{n[i]=e[i].reduce((a,o)=>{if(o){const s=t(o);s!==""&&a.push(s),r&&r[o]&&a.push(r[o])}return a},[]).join(" ")}),n}const Kc=e=>e,_C=(()=>{let e=Kc;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Kc}}})(),TC={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 vo(e,t,r="Mui"){const n=TC[t];return n?`${r}-${n}`:`${_C.generate(e)}-${t}`}function EC(e,t,r="Mui"){const n={};return t.forEach(i=>{n[i]=vo(e,i,r)}),n}function SC(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}const wC=Object.freeze(Object.defineProperty({__proto__:null,default:SC},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.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Xc(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=Xc(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function CC(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=Xc(e))&&(n&&(n+=" "),n+=t);return n}const OC=tt.createContext(void 0);process.env.NODE_ENV!=="production"&&(H.node,H.object);function AC(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?yo(i.defaultProps,n):!i.styleOverrides&&!i.variants?yo(i,n):n}function PC({props:e,name:t}){const r=tt.useContext(OC);return AC({props:e,name:t,theme:{components:r}})}process.env.NODE_ENV!=="production"&&(H.node,H.object.isRequired);function kC(e){return PC(e)}var Qr={},Jc={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})(Jc);var Zc=Jc.exports,bo={exports:{}},Qc;function jC(){return Qc||(Qc=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 a in i)({}).hasOwnProperty.call(i,a)&&(r[a]=i[a])}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}(bo)),bo.exports}var xo={exports:{}},ef;function $C(){return ef||(ef=1,function(e){function t(r,n){if(r==null)return{};var i={};for(var a in r)if({}.hasOwnProperty.call(r,a)){if(n.indexOf(a)>=0)continue;i[a]=r[a]}return i}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(xo)),xo.exports}function tf(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var IC=/^((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)-.*))$/,RC=tf(function(e){return IC.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),DC=!0;function MC(e,t,r){var n="";return r.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):n+=i+" "}),n}var rf=function(t,r,n){var i=t.key+"-"+r.name;(n===!1||DC===!1)&&t.registered[i]===void 0&&(t.registered[i]=r.styles)},NC=function(t,r,n){rf(t,r,n);var i=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var a=r;do t.insert(r===a?"."+i:"",a,t.sheet,!0),a=a.next;while(a!==void 0)}};function FC(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 LC={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},nf=`You have illegal escape sequence in your template literal, most likely inside content's property value.
|
|
72
|
+
*/var Kc;function mC(){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,F;F=Symbol.for("react.module.reference");function N(M){return!!(typeof M=="string"||typeof M=="function"||M===r||M===i||j||M===n||M===u||M===c||w||M===g||y||h||x||typeof M=="object"&&M!==null&&(M.$$typeof===p||M.$$typeof===f||M.$$typeof===o||M.$$typeof===a||M.$$typeof===l||M.$$typeof===F||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 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(M){return ot||(ot=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function k(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 z(M){return _(M)===l}function B(M){return _(M)===r}function q(M){return _(M)===p}function K(M){return _(M)===f}function J(M){return _(M)===t}function X(M){return _(M)===i}function Ae(M){return _(M)===n}function $(M){return _(M)===u}function $e(M){return _(M)===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=N,fe.typeOf=_}()),fe}process.env.NODE_ENV==="production"?ha.exports=hC():ha.exports=mC();var Xc=ha.exports;const gC=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Jc(e){const t=`${e}`.match(gC);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 yC(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 vC=Object.freeze(Object.defineProperty({__proto__:null,default:yC,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 bC=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 xC(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,_C=(()=>{let e=ef;return{configure(t){e=t},generate(t){return e(t)},reset(){e=ef}}})(),TC={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=TC[t];return n?`${r}-${n}`:`${_C.generate(e)}-${t}`}function EC(e,t,r="Mui"){const n={};return t.forEach(i=>{n[i]=ga(e,i,r)}),n}function SC(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}const wC=Object.freeze(Object.defineProperty({__proto__:null,default:SC},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.indexOf(n)>=0)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 CC(){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 OC=tt.createContext(void 0);process.env.NODE_ENV!=="production"&&(H.node,H.object);function AC(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 PC({props:e,name:t}){const r=tt.useContext(OC);return AC({props:e,name:t,theme:{components:r}})}process.env.NODE_ENV!=="production"&&(H.node,H.object.isRequired);function kC(e){return PC(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 jC(){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 IC(){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.indexOf(o)>=0)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 $C=/^((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)-.*))$/,RC=sf(function(e){return $C.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),DC=!0;function MC(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||DC===!1)&&t.registered[i]===void 0&&(t.registered[i]=r.styles)},NC=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 FC(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 LC={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`,zC="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",UC=/[A-Z]|^ms/g,
|
|
75
|
+
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,zC="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",UC=/[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(UC,"-$&").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 LC[t]!==1&&!ba(t)&&typeof r=="number"&&r!==0?r+"px":r};if(process.env.NODE_ENV!=="production"){var VC=/(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,BC=["normal","none","initial","inherit","unset"],WC=oi,HC=/^-ms-/,GC=/-(.)/g,df={};oi=function(t,r){if(t==="content"&&(typeof r!="string"||BC.indexOf(r)===-1&&!VC.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=WC(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(HC,"ms-").replace(GC,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 qC(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(`
|
|
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 qC(e,t,r){var n="";if(Array.isArray(r))for(var i=0;i<r.length;i++)n+=
|
|
80
|
+
`+("css`"+l+"`"))}break}if(t==null)return r;var u=t[r];return u!==void 0?u:r}function qC(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(zC),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,YC=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=FC(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}},KC=function(t){return t()},XC=tt["useInsertionEffect"]?tt["useInsertionEffect"]:!1,JC=XC||KC,ZC=RC,QC=function(t){return t!=="theme"},gf=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?ZC:QC},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
|
-
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,eO=function(t){var r=t.cache,n=t.serialized,i=t.isStringTag;return
|
|
84
|
-
You may have forgotten to import it.`);var n=t.__emotion_real===t,i=n&&t.__emotion_base||t,a
|
|
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||!a}if(this.isSpeedy){var o=nO(i);try{o.insertRule(n,o.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-",oi="-moz-",ne="-webkit-",So="comm",wo="rule",Co="decl",oO="@import",hf="@keyframes",sO="@layer",lO=Math.abs,si=String.fromCharCode,uO=Object.assign;function cO(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 mf(e){return e.trim()}function fO(e,t){return(e=t.exec(e))?e[0]:e}function ie(e,t,r){return e.replace(t,r)}function Oo(e,t){return e.indexOf(t)}function Me(e,t){return e.charCodeAt(t)|0}function tn(e,t,r){return e.slice(t,r)}function St(e){return e.length}function Ao(e){return e.length}function li(e,t){return t.push(e),e}function dO(e,t){return e.map(t).join("")}var ui=1,xr=1,gf=0,Je=0,ke=0,_r="";function ci(e,t,r,n,i,a,o){return{value:e,root:t,parent:r,type:n,props:i,children:a,line:ui,column:xr,length:o,return:""}}function rn(e,t){return uO(ci("",null,null,"",null,null,0),e,{length:-e.length},t)}function pO(){return ke}function hO(){return ke=Je>0?Me(_r,--Je):0,xr--,ke===10&&(xr=1,ui--),ke}function nt(){return ke=Je<gf?Me(_r,Je++):0,xr++,ke===10&&(xr=1,ui++),ke}function wt(){return Me(_r,Je)}function fi(){return Je}function nn(e,t){return tn(_r,e,t)}function an(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 yf(e){return ui=xr=1,gf=St(_r=e),Je=0,[]}function vf(e){return _r="",e}function di(e){return mf(nn(Je-1,Po(e===91?e+2:e===40?e+1:e)))}function mO(e){for(;(ke=wt())&&ke<33;)nt();return an(e)>2||an(ke)>3?"":" "}function gO(e,t){for(;--t&&nt()&&!(ke<48||ke>102||ke>57&&ke<65||ke>70&&ke<97););return nn(e,fi()+(t<6&&wt()==32&&nt()==32))}function Po(e){for(;nt();)switch(ke){case e:return Je;case 34:case 39:e!==34&&e!==39&&Po(ke);break;case 40:e===41&&Po(e);break;case 92:nt();break}return Je}function yO(e,t){for(;nt()&&e+ke!==47+10;)if(e+ke===42+42&&wt()===47)break;return"/*"+nn(t,Je-1)+"*"+si(e===47?e:nt())}function vO(e){for(;!an(wt());)nt();return nn(e,Je)}function bO(e){return vf(pi("",null,null,null,[""],e=yf(e),0,[0],e))}function pi(e,t,r,n,i,a,o,s,l){for(var u=0,f=0,c=o,p=0,g=0,y=0,h=1,x=1,O=1,$=0,N="",M=i,_=a,R=n,L=N;x;)switch(y=$,$=nt()){case 40:if(y!=108&&Me(L,c-1)==58){Oo(L+=ie(di($),"&","&\f"),"&\f")!=-1&&(O=-1);break}case 34:case 39:case 91:L+=di($);break;case 9:case 10:case 13:case 32:L+=mO(y);break;case 92:L+=gO(fi()-1,7);continue;case 47:switch(wt()){case 42:case 47:li(xO(yO(nt(),fi()),t,r),l);break;default:L+="/"}break;case 123*h:s[u++]=St(L)*O;case 125*h:case 59:case 0:switch($){case 0:case 125:x=0;case 59+f:O==-1&&(L=ie(L,/\f/g,"")),g>0&&St(L)-c&&li(g>32?xf(L+";",n,r,c-1):xf(ie(L," ","")+";",n,r,c-2),l);break;case 59:L+=";";default:if(li(R=bf(L,t,r,u,f,i,s,N,M=[],_=[],c),a),$===123)if(f===0)pi(L,t,R,R,M,a,c,s,_);else switch(p===99&&Me(L,3)===110?100:p){case 100:case 108:case 109:case 115:pi(e,R,R,n&&li(bf(e,R,R,0,0,i,s,N,i,M=[],c),_),i,_,c,s,n?M:_);break;default:pi(L,R,R,R,[""],_,0,s,_)}}u=f=g=0,h=O=1,N=L="",c=o;break;case 58:c=1+St(L),g=y;default:if(h<1){if($==123)--h;else if($==125&&h++==0&&hO()==125)continue}switch(L+=si($),$*h){case 38:O=f>0?1:(L+="\f",-1);break;case 44:s[u++]=(St(L)-1)*O,O=1;break;case 64:wt()===45&&(L+=di(nt())),p=wt(),f=c=St(N=L+=vO(fi())),$++;break;case 45:y===45&&St(L)==2&&(h=0)}}return a}function bf(e,t,r,n,i,a,o,s,l,u,f){for(var c=i-1,p=i===0?a:[""],g=Ao(p),y=0,h=0,x=0;y<n;++y)for(var O=0,$=tn(e,c+1,c=lO(h=o[y])),N=e;O<g;++O)(N=mf(h>0?p[O]+" "+$:ie($,/&\f/g,p[O])))&&(l[x++]=N);return ci(e,t,r,i===0?wo:s,l,u,f)}function xO(e,t,r){return ci(e,t,r,So,si(pO()),tn(e,2,-2),0)}function xf(e,t,r,n){return ci(e,t,r,Co,tn(e,0,n),tn(e,n+1,-1),n)}function Tr(e,t){for(var r="",n=Ao(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function _O(e,t,r,n){switch(e.type){case sO:if(e.children.length)break;case oO:case Co:return e.return=e.return||e.value;case So:return"";case hf:return e.return=e.value+"{"+Tr(e.children,n)+"}";case wo:e.value=e.props.join(",")}return St(r=Tr(e.children,n))?e.return=e.value+"{"+r+"}":""}function TO(e){var t=Ao(e);return function(r,n,i,a){for(var o="",s=0;s<t;s++)o+=e[s](r,n,i,a)||"";return o}}function EO(e){return function(t){t.root||(t=t.return)&&e(t)}}var SO=function(t,r,n){for(var i=0,a=0;i=a,a=wt(),i===38&&a===12&&(r[n]=1),!an(a);)nt();return nn(t,Je)},wO=function(t,r){var n=-1,i=44;do switch(an(i)){case 0:i===38&&wt()===12&&(r[n]=1),t[n]+=SO(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},CO=function(t,r){return vf(wO(yf(t),r))},_f=new WeakMap,OO=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&&!_f.get(n))&&!i){_f.set(t,!0);for(var a=[],o=CO(r,a),s=n.props,l=0,u=0;l<o.length;l++)for(var f=0;f<s.length;f++,u++)t.props[u]=a[l]?o[l].replace(/&\f/g,s[f]):s[f]+" "+o[l]}}},AO=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}},PO="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",kO=function(t){return t.type==="comm"&&t.children.indexOf(PO)>-1},jO=function(t){return function(r,n,i){if(!(r.type!=="rule"||t.compat)){var a=r.value.match(/(:first|:nth|:nth-last)-child/g);if(a){for(var o=!!r.parent,s=o?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(kO(u))return;break}}a.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".')})}}}},Tf=function(t){return t.type.charCodeAt(1)===105&&t.type.charCodeAt(0)===64},$O=function(t,r){for(var n=t-1;n>=0;n--)if(!Tf(r[n]))return!0;return!1},Ef=function(t){t.type="",t.value="",t.return="",t.children="",t.props=""},IO=function(t,r,n){Tf(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."),Ef(t)):$O(r,n)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),Ef(t)))};function Sf(e,t){switch(cO(e,t)){case 5103:return ne+"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 ne+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return ne+e+oi+e+Ue+e+e;case 6828:case 4268:return ne+e+Ue+e+e;case 6165:return ne+e+Ue+"flex-"+e+e;case 5187:return ne+e+ie(e,/(\w+).+(:[^]+)/,ne+"box-$1$2"+Ue+"flex-$1$2")+e;case 5443:return ne+e+Ue+"flex-item-"+ie(e,/flex-|-self/,"")+e;case 4675:return ne+e+Ue+"flex-line-pack"+ie(e,/align-content|flex-|-self/,"")+e;case 5548:return ne+e+Ue+ie(e,"shrink","negative")+e;case 5292:return ne+e+Ue+ie(e,"basis","preferred-size")+e;case 6060:return ne+"box-"+ie(e,"-grow","")+ne+e+Ue+ie(e,"grow","positive")+e;case 4554:return ne+ie(e,/([^-])(transform)/g,"$1"+ne+"$2")+e;case 6187:return ie(ie(ie(e,/(zoom-|grab)/,ne+"$1"),/(image-set)/,ne+"$1"),e,"")+e;case 5495:case 3959:return ie(e,/(image-set\([^]*)/,ne+"$1$`$1");case 4968:return ie(ie(e,/(.+:)(flex-)?(.*)/,ne+"box-pack:$3"+Ue+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ne+e+e;case 4095:case 3583:case 4068:case 2532:return ie(e,/(.+)-inline(.+)/,ne+"$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 ie(e,/(.+:)(.+)-([^]+)/,"$1"+ne+"$2-$3$1"+oi+(Me(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Oo(e,"stretch")?Sf(ie(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-(~Oo(e,"!important")&&10))){case 107:return ie(e,":",":"+ne)+e;case 101:return ie(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ne+(Me(e,14)===45?"inline-":"")+"box$3$1"+ne+"$2$3$1"+Ue+"$2box$3")+e}break;case 5936:switch(Me(e,t+11)){case 114:return ne+e+Ue+ie(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ne+e+Ue+ie(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ne+e+Ue+ie(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ne+e+Ue+e+e}return e}var RO=function(t,r,n,i){if(t.length>-1&&!t.return)switch(t.type){case Co:t.return=Sf(t.value,t.length);break;case hf:return Tr([rn(t,{value:ie(t.value,"@","@"+ne)})],i);case wo:if(t.length)return dO(t.props,function(a){switch(fO(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Tr([rn(t,{props:[ie(a,/:(read-\w+)/,":"+oi+"$1")]})],i);case"::placeholder":return Tr([rn(t,{props:[ie(a,/:(plac\w+)/,":"+ne+"input-$1")]}),rn(t,{props:[ie(a,/:(plac\w+)/,":"+oi+"$1")]}),rn(t,{props:[ie(a,/:(plac\w+)/,Ue+"input-$1")]})],i)}return""})}},DO=[RO],MO=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||DO;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
|
|
83
|
+
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,eO=function(t){var r=t.cache,n=t.serialized,i=t.isStringTag;return lf(r,n,i),JC(function(){return NC(r,n,i)}),null},tO=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,F="",N=[],_=h;if(h.theme==null){_={};for(var P in h)_[P]=h[P];_.theme=tt.useContext(Gt.ThemeContext)}typeof h.className=="string"?F=MC(x.registered,N,h.className):h.className!=null&&(F=h.className+" ");var D=YC(f.concat(N),x.registered,_);F+=x.key+"-"+D.name,a!==void 0&&(F+=" "+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=F,ae.ref=w,tt.createElement(tt.Fragment,null,tt.createElement(eO,{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}},rO=["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=tO.bind();rO.forEach(function(e){_a[e]=_a(e)});function nO(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 iO(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 oO=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(iO(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=nO(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",aO="@import",bf="@keyframes",sO="@layer",lO=Math.abs,si=String.fromCharCode,uO=Object.assign;function cO(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 fO(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 dO(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 uO(ci("",null,null,"",null,null,0),e,{length:-e.length},t)}function pO(){return ke}function hO(){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 mO(e){for(;(ke=wt())&&ke<33;)nt();return nn(e)>2||nn(ke)>3?"":" "}function gO(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 yO(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 vO(e){for(;!nn(wt());)nt();return rn(e,Je)}function bO(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,F="",N=i,_=o,P=n,D=F;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+=mO(y);break;case 92:D+=gO(fi()-1,7);continue;case 47:switch(wt()){case 42:case 47:li(xO(yO(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,F,N=[],_=[],f),o),j===123)if(c===0)pi(D,t,P,P,N,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,F,i,N=[],f),_),i,_,f,s,n?N:_);break;default:pi(D,P,P,P,[""],_,0,s,_)}}u=c=g=0,h=w=1,F=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&&hO()==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(F=D+=vO(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=lO(h=a[y])),F=e;w<g;++w)(F=xf(h>0?p[w]+" "+j:oe(j,/&\f/g,p[w])))&&(l[x++]=F);return ci(e,t,r,i===0?Ea:s,l,u,c)}function xO(e,t,r){return ci(e,t,r,Ta,si(pO()),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 _O(e,t,r,n){switch(e.type){case sO:if(e.children.length)break;case aO: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 TO(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 EO(e){return function(t){t.root||(t=t.return)&&e(t)}}var SO=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)},wO=function(t,r){var n=-1,i=44;do switch(nn(i)){case 0:i===38&&wt()===12&&(r[n]=1),t[n]+=SO(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},CO=function(t,r){return Ef(wO(Tf(t),r))},Cf=new WeakMap,OO=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=CO(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]}}},AO=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}},PO="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",kO=function(t){return t.type==="comm"&&t.children.indexOf(PO)>-1},jO=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(kO(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},IO=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=""},$O=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)):IO(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(cO(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 RO=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 dO(t.props,function(o){switch(fO(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""})}},DO=[RO],MO=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||DO;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=[OO,AO];process.env.NODE_ENV!=="production"&&u.push(jO({get compat(){return y.compat}}),$O);{var c,f=[_O,process.env.NODE_ENV!=="production"?function(h){h.root||(h.return?c.insert(h.return):h.value&&h.type!==Ta&&c.insert(h.value+"{}"))}:EO(function(h){c.insert(h)})],p=TO(u.concat(i,f)),g=function(x){return _r(bO(x),p)};l=function(x,w,j,F){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),F&&(y.inserted[w.name]=!0)}}var y={key:r,sheet:new oO({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=MO({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 NO(e){return e==null||Object.keys(e).length===0}function jf(e){const{styles:t,defaultTheme:r={}}=e,n=typeof t=="function"?i=>t(NO(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.15.14
|
|
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
|
-
*/function FO(e,t){const r=
|
|
93
|
-
`)):n.some(
|
|
92
|
+
*/function FO(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 LO=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},zO=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:jf,StyledEngineProvider:kf,ThemeContext:Gt.ThemeContext,css:Gt.css,default:FO,internal_processStyles:LO,keyframes:Gt.keyframes},Symbol.toStringTag,{value:"Module"})),UO=Dt(zO),VO=Dt(dC),BO=Dt(bC),WO=Dt(vC),HO=["values","unit","step"],GO=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,HO),o=GO(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 qO={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 YO(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((n,i)=>{const o=e.up(i);return n[o]={},n},{}))||{}}function KO(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 XO(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const JO={m:"margin",p:"padding"},ZO={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Rf={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},QO=XO(e=>{if(e.length>2)if(Rf[e])e=Rf[e];else return[e];const[t,r]=e.split(""),n=JO[t],i=ZO[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"],eA=[...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
|
-
`))),a
|
|
96
|
-
`)),()=>{})}function kf(e){return sn(e,"spacing",8,"spacing")}function ln(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 tA(e,t){return r=>e.reduce((n,i)=>(n[i]=ln(t,r),n),{})}function rA(e,t,r,n){if(t.indexOf(r)===-1)return null;const i=QO(r),a=tA(i,n),o=e[r];return kt(e,o,a)}function jf(e,t){const r=kf(e.theme);return Object.keys(e).map(n=>rA(e,t,n,r)).reduce(on,{})}function Te(e){return jf(e,gi)}Te.propTypes=process.env.NODE_ENV!=="production"?gi.reduce((e,t)=>(e[t]=Vt,e),{}):{},Te.filterProps=gi;function Ee(e){return jf(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"&&eA.reduce((e,t)=>(e[t]=Vt,e),{});function nA(e=8){if(e.mui)return e;const t=kf({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(a=>{const o=t(a);return typeof o=="number"?`${o}px`:o}).join(" "));return r.mui=!0,r}function vi(...e){const t=e.reduce((n,i)=>(i.filterProps.forEach(a=>{n[a]=i}),n),{}),r=n=>Object.keys(n).reduce((i,a)=>t[a]?on(i,t[a](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 iA=ut("border",lt),aA=ut("borderTop",lt),oA=ut("borderRight",lt),sA=ut("borderBottom",lt),lA=ut("borderLeft",lt),uA=ut("borderColor"),cA=ut("borderTopColor"),fA=ut("borderRightColor"),dA=ut("borderBottomColor"),pA=ut("borderLeftColor"),hA=ut("outline",lt),mA=ut("outlineColor"),bi=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=sn(e.theme,"shape.borderRadius",4,"borderRadius"),r=n=>({borderRadius:ln(t,n)});return kt(e,e.borderRadius,r)}return null};bi.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:Vt}:{},bi.filterProps=["borderRadius"],vi(iA,aA,oA,sA,lA,uA,cA,fA,dA,pA,bi,hA,mA);const xi=e=>{if(e.gap!==void 0&&e.gap!==null){const t=sn(e.theme,"spacing",8,"gap"),r=n=>({gap:ln(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=sn(e.theme,"spacing",8,"columnGap"),r=n=>({columnGap:ln(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=sn(e.theme,"spacing",8,"rowGap"),r=n=>({rowGap:ln(t,n)});return kt(e,e.rowGap,r)}return null};Ti.propTypes=process.env.NODE_ENV!=="production"?{rowGap:Vt}:{},Ti.filterProps=["rowGap"];const gA=we({prop:"gridColumn"}),yA=we({prop:"gridRow"}),vA=we({prop:"gridAutoFlow"}),bA=we({prop:"gridAutoColumns"}),xA=we({prop:"gridAutoRows"}),_A=we({prop:"gridTemplateColumns"}),TA=we({prop:"gridTemplateRows"}),EA=we({prop:"gridTemplateAreas"}),SA=we({prop:"gridArea"});vi(xi,_i,Ti,gA,yA,vA,bA,xA,_A,TA,EA,SA);function Er(e,t){return t==="grey"?t:e}const wA=we({prop:"color",themeKey:"palette",transform:Er}),CA=we({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Er}),OA=we({prop:"backgroundColor",themeKey:"palette",transform:Er});vi(wA,CA,OA);function it(e){return e<=1&&e!==0?`${e*100}%`:e}const AA=we({prop:"width",transform:it}),$o=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{var n,i;const a=((n=e.theme)==null||(n=n.breakpoints)==null||(n=n.values)==null?void 0:n[r])||jo[r];return a?((i=e.theme)==null||(i=i.breakpoints)==null?void 0:i.unit)!=="px"?{maxWidth:`${a}${e.theme.breakpoints.unit}`}:{maxWidth:a}:{maxWidth:it(r)}};return kt(e,e.maxWidth,t)}return null};$o.filterProps=["maxWidth"];const PA=we({prop:"minWidth",transform:it}),kA=we({prop:"height",transform:it}),jA=we({prop:"maxHeight",transform:it}),$A=we({prop:"minHeight",transform:it});we({prop:"size",cssProperty:"width",transform:it}),we({prop:"size",cssProperty:"height",transform:it});const IA=we({prop:"boxSizing"});vi(AA,$o,PA,kA,jA,$A,IA);const un={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:Er},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Er},backgroundColor:{themeKey:"palette",transform:Er},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:$o},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 RA(...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 DA(e,t){return typeof e=="function"?e(t):e}function $f(){function e(r,n,i,a){const o={[r]:n,theme:i},s=a[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(o):kt(o,n,y=>{let h=mi(p,f,y);return y===h&&typeof y=="string"&&(h=mi(p,f,`${r}${y==="default"?"":tr(y)}`,y)),l===!1?h:{[l]:h}})}function t(r){var n;const{sx:i,theme:a={}}=r||{};if(!i)return null;const o=(n=a.unstable_sxConfig)!=null?n:un;function s(l){let u=l;if(typeof l=="function")u=l(a);else if(typeof l!="object")return l;if(!u)return null;const f=YO(a.breakpoints),c=Object.keys(f);let p=f;return Object.keys(u).forEach(g=>{const y=DA(u[g],a);if(y!=null)if(typeof y=="object")if(o[g])p=on(p,e(g,y,a,o));else{const h=kt({theme:a},y,x=>({[g]:x}));RA(h,y)?p[g]=t({sx:y,theme:a}):p=on(p,h)}else p=on(p,e(g,y,a,o))}),KO(c,p)}return Array.isArray(i)?i.map(s):s(i)}return t}const If=$f();If.filterProps=["sx"];const Io=If;function Rf(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 MA=["breakpoints","palette","spacing","shape"];function Df(e={},...t){const{breakpoints:r={},palette:n={},spacing:i,shape:a={}}=e,o=Ut(e,MA),s=Of(r),l=nA(i);let u=Et({breakpoints:s,direction:"ltr",components:{},palette:fe({mode:"light"},n),spacing:l,shape:fe({},qO,a)},o);return u.applyStyles=Rf,u=t.reduce((f,c)=>Et(f,c),u),u.unstable_sxConfig=fe({},un,o==null?void 0:o.unstable_sxConfig),u.unstable_sx=function(c){return Io({sx:c,theme:this})},u}const NA=Dt(Object.freeze(Object.defineProperty({__proto__:null,default:Df,private_createBreakpoints:Of,unstable_applyStyles:Rf},Symbol.toStringTag,{value:"Module"}))),FA=["sx"],LA=e=>{var t,r;const n={systemProps:{},otherProps:{}},i=(t=e==null||(r=e.theme)==null?void 0:r.unstable_sxConfig)!=null?t:un;return Object.keys(e).forEach(a=>{i[a]?n.systemProps[a]=e[a]:n.otherProps[a]=e[a]}),n};function zA(e){const{sx:t}=e,r=Ut(e,FA),{systemProps:n,otherProps:i}=LA(r);let a;return Array.isArray(t)?a=[n,...t]:typeof t=="function"?a=(...o)=>{const s=t(...o);return zt(s)?fe({},n,s):n}:a=fe({},n,t),fe({},i,{sx:a})}const UA=Dt(Object.freeze(Object.defineProperty({__proto__:null,default:Io,extendSxProp:zA,unstable_createStyleFunctionSx:$f,unstable_defaultSxConfig:un},Symbol.toStringTag,{value:"Module"})));var Sr=Zc;Object.defineProperty(Qr,"__esModule",{value:!0});var VA=Qr.default=rP;Qr.shouldForwardProp=Ei,Qr.systemDefaultTheme=void 0;var ct=Sr(jC()),Ro=Sr($C()),Mf=JA(UO),BA=VO,WA=Sr(BO),HA=Sr(WO),GA=Sr(NA),qA=Sr(UA);const YA=["ownerState"],KA=["variants"],XA=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Nf(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(Nf=function(n){return n?r:t})(e)}function JA(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=Nf(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(a!=="default"&&Object.prototype.hasOwnProperty.call(e,a)){var o=i?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(n,a,o):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n}function ZA(e){return Object.keys(e).length===0}function QA(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Ei(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const eP=Qr.systemDefaultTheme=(0,GA.default)(),Ff=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Si({defaultTheme:e,theme:t,themeId:r}){return ZA(t)?e:t[r]||t}function tP(e){return e?(t,r)=>r[e]:null}function wi(e,t){let{ownerState:r}=t,n=(0,Ro.default)(t,YA);const i=typeof e=="function"?e((0,ct.default)({ownerState:r},n)):e;if(Array.isArray(i))return i.flatMap(a=>wi(a,(0,ct.default)({ownerState:r},n)));if(i&&typeof i=="object"&&Array.isArray(i.variants)){const{variants:a=[]}=i;let s=(0,Ro.default)(i,KA);return a.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 rP(e={}){const{themeId:t,defaultTheme:r=eP,rootShouldForwardProp:n=Ei,slotShouldForwardProp:i=Ei}=e,a=o=>(0,qA.default)((0,ct.default)({},o,{theme:Si((0,ct.default)({},o,{defaultTheme:r,themeId:t}))}));return a.__mui_systemSx=!0,(o,s={})=>{(0,Mf.internal_processStyles)(o,_=>_.filter(R=>!(R!=null&&R.__mui_systemSx)));const{name:l,slot:u,skipVariantsResolver:f,skipSx:c,overridesResolver:p=tP(Ff(u))}=s,g=(0,Ro.default)(s,XA),y=f!==void 0?f:u&&u!=="Root"&&u!=="root"||!1,h=c||!1;let x;process.env.NODE_ENV!=="production"&&l&&(x=`${l}-${Ff(u||"Root")}`);let O=Ei;u==="Root"||u==="root"?O=n:u?O=i:QA(o)&&(O=void 0);const $=(0,Mf.default)(o,(0,ct.default)({shouldForwardProp:O,label:x},g)),N=_=>typeof _=="function"&&_.__emotion_real!==_||(0,BA.isPlainObject)(_)?R=>wi(_,(0,ct.default)({},R,{theme:Si({theme:R.theme,defaultTheme:r,themeId:t})})):_,M=(_,...R)=>{let L=N(_);const xe=R?R.map(N):[];l&&p&&xe.push(U=>{const ae=Si((0,ct.default)({},U,{defaultTheme:r,themeId:t}));if(!ae.components||!ae.components[l]||!ae.components[l].styleOverrides)return null;const de=ae.components[l].styleOverrides,he={};return Object.entries(de).forEach(([qe,je])=>{he[qe]=wi(je,(0,ct.default)({},U,{theme:ae}))}),p(U,he)}),l&&!y&&xe.push(U=>{var ae;const de=Si((0,ct.default)({},U,{defaultTheme:r,themeId:t})),he=de==null||(ae=de.components)==null||(ae=ae[l])==null?void 0:ae.variants;return wi({variants:he},(0,ct.default)({},U,{theme:de}))}),h||xe.push(a);const me=xe.length-R.length;if(Array.isArray(_)&&me>0){const U=new Array(me).fill("");L=[..._,...U],L.raw=[..._.raw,...U]}const Oe=$(L,...xe);if(process.env.NODE_ENV!=="production"){let U;l&&(U=`${l}${(0,WA.default)(u||"")}`),U===void 0&&(U=`Styled(${(0,HA.default)(o)})`),Oe.displayName=U}return o.muiName&&(Oe.muiName=o.muiName),Oe};return $.withConfig&&(M.withConfig=$.withConfig),M}}function nP(e,t){return fe({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var Ce={};const iP=Dt(pC),aP=Dt(wC);var Lf=Zc;Object.defineProperty(Ce,"__esModule",{value:!0}),Ce.alpha=Hf,Ce.blend=yP,Ce.colorChannel=void 0;var oP=Ce.darken=Mo;Ce.decomposeColor=ft,Ce.emphasize=Gf;var zf=Ce.getContrastRatio=dP;Ce.getLuminance=Ci,Ce.hexToRgb=Vf,Ce.hslToRgb=Wf;var sP=Ce.lighten=No;Ce.private_safeAlpha=pP,Ce.private_safeColorChannel=void 0,Ce.private_safeDarken=hP,Ce.private_safeEmphasize=gP,Ce.private_safeLighten=mP,Ce.recomposeColor=wr,Ce.rgbToHex=fP;var Uf=Lf(iP),lP=Lf(aP);function Do(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,lP.default)(e,t,r)}function Vf(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 uP(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(Vf(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
|
-
The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:(0,
|
|
98
|
-
The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:(0,
|
|
99
|
-
`))}return x}const p=({color:h,name:x,mainShade:
|
|
100
|
-
The color object needs to have a \`main\` property or a \`${
|
|
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 tA(e,t){return r=>e.reduce((n,i)=>(n[i]=sn(t,r),n),{})}function rA(e,t,r,n){if(t.indexOf(r)===-1)return null;const i=QO(r),o=tA(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=>rA(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"&&eA.reduce((e,t)=>(e[t]=Vt,e),{});function nA(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 iA=ut("border",lt),oA=ut("borderTop",lt),aA=ut("borderRight",lt),sA=ut("borderBottom",lt),lA=ut("borderLeft",lt),uA=ut("borderColor"),cA=ut("borderTopColor"),fA=ut("borderRightColor"),dA=ut("borderBottomColor"),pA=ut("borderLeftColor"),hA=ut("outline",lt),mA=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(iA,oA,aA,sA,lA,uA,cA,fA,dA,pA,bi,hA,mA);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 gA=we({prop:"gridColumn"}),yA=we({prop:"gridRow"}),vA=we({prop:"gridAutoFlow"}),bA=we({prop:"gridAutoColumns"}),xA=we({prop:"gridAutoRows"}),_A=we({prop:"gridTemplateColumns"}),TA=we({prop:"gridTemplateRows"}),EA=we({prop:"gridTemplateAreas"}),SA=we({prop:"gridArea"});vi(xi,_i,Ti,gA,yA,vA,bA,xA,_A,TA,EA,SA);function Tr(e,t){return t==="grey"?t:e}const wA=we({prop:"color",themeKey:"palette",transform:Tr}),CA=we({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Tr}),OA=we({prop:"backgroundColor",themeKey:"palette",transform:Tr});vi(wA,CA,OA);function it(e){return e<=1&&e!==0?`${e*100}%`:e}const AA=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 PA=we({prop:"minWidth",transform:it}),kA=we({prop:"height",transform:it}),jA=we({prop:"maxHeight",transform:it}),IA=we({prop:"minHeight",transform:it});we({prop:"size",cssProperty:"width",transform:it}),we({prop:"size",cssProperty:"height",transform:it});const $A=we({prop:"boxSizing"});vi(AA,ka,PA,kA,jA,IA,$A);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 RA(...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 DA(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=YO(o.breakpoints),f=Object.keys(c);let p=c;return Object.keys(u).forEach(g=>{const y=DA(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}));RA(h,y)?p[g]=t({sx:y,theme:o}):p=on(p,h)}else p=on(p,e(g,y,o,a))}),KO(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 MA=["breakpoints","palette","spacing","shape"];function zf(e={},...t){const{breakpoints:r={},palette:n={},spacing:i,shape:o={}}=e,a=Ut(e,MA),s=If(r),l=nA(i);let u=Et({breakpoints:s,direction:"ltr",components:{},palette:pe({mode:"light"},n),spacing:l,shape:pe({},qO,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 NA=Dt(Object.freeze(Object.defineProperty({__proto__:null,default:zf,private_createBreakpoints:If,unstable_applyStyles:Lf},Symbol.toStringTag,{value:"Module"}))),FA=["sx"],LA=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 zA(e){const{sx:t}=e,r=Ut(e,FA),{systemProps:n,otherProps:i}=LA(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 UA=Dt(Object.freeze(Object.defineProperty({__proto__:null,default:ja,extendSxProp:zA,unstable_createStyleFunctionSx:Nf,unstable_defaultSxConfig:ln},Symbol.toStringTag,{value:"Module"})));var Er=nf;Object.defineProperty(Zr,"__esModule",{value:!0});var VA=Zr.default=rP;Zr.shouldForwardProp=Ei,Zr.systemDefaultTheme=void 0;var ct=Er(jC()),Ia=Er(IC()),Uf=JA(UO),BA=VO,WA=Er(BO),HA=Er(WO),GA=Er(NA),qA=Er(UA);const YA=["ownerState"],KA=["variants"],XA=["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 JA(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 ZA(e){return Object.keys(e).length===0}function QA(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Ei(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const eP=Zr.systemDefaultTheme=(0,GA.default)(),Bf=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Si({defaultTheme:e,theme:t,themeId:r}){return ZA(t)?e:t[r]||t}function tP(e){return e?(t,r)=>r[e]:null}function wi(e,t){let{ownerState:r}=t,n=(0,Ia.default)(t,YA);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,KA);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 rP(e={}){const{themeId:t,defaultTheme:r=eP,rootShouldForwardProp:n=Ei,slotShouldForwardProp:i=Ei}=e,o=a=>(0,qA.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=tP(Bf(u))}=s,g=(0,Ia.default)(s,XA),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:QA(a)&&(w=void 0);const j=(0,Uf.default)(a,(0,ct.default)({shouldForwardProp:w,label:x},g)),F=_=>typeof _=="function"&&_.__emotion_real!==_||(0,BA.isPlainObject)(_)?P=>wi(_,(0,ct.default)({},P,{theme:Si({theme:P.theme,defaultTheme:r,themeId:t})})):_,N=(_,...P)=>{let D=F(_);const te=P?P.map(F):[];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,WA.default)(u||"")}`),U===void 0&&(U=`Styled(${(0,HA.default)(a)})`),Oe.displayName=U}return a.muiName&&(Oe.muiName=a.muiName),Oe};return j.withConfig&&(N.withConfig=j.withConfig),N}}function nP(e,t){return pe({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var Ce={};const iP=Dt(pC),oP=Dt(wC);var Wf=nf;Object.defineProperty(Ce,"__esModule",{value:!0}),Ce.alpha=Xf,Ce.blend=yP,Ce.colorChannel=void 0;var aP=Ce.darken=Ra;Ce.decomposeColor=ft,Ce.emphasize=Jf;var Hf=Ce.getContrastRatio=dP;Ce.getLuminance=Ci,Ce.hexToRgb=qf,Ce.hslToRgb=Kf;var sP=Ce.lighten=Da;Ce.private_safeAlpha=pP,Ce.private_safeColorChannel=void 0,Ce.private_safeDarken=hP,Ce.private_safeEmphasize=gP,Ce.private_safeLighten=mP,Ce.recomposeColor=Sr,Ce.rgbToHex=fP;var Gf=Wf(iP),lP=Wf(oP);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,lP.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 uP(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
|
+
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 cP=(e,t)=>{try{return Yf(e)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};Ce.private_safeColorChannel=cP;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 fP(e){if(e.indexOf("#")===0)return e;const{values:t}=ft(e);return`#${t.map((r,n)=>uP(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 dP(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 pP(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 hP(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 mP(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 gP(e,t,r){try{return Jf(e,t)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function yP(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"},vP={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"},bP=["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=sP(e.main,i):t==="dark"&&(e.dark=aP(e.main,o)))}function xP(e="light"){return e==="dark"?{main:Or[200],light:Or[50],dark:Or[400]}:{main:Or[700],light:Or[400],dark:Or[800]}}function _P(e="light"){return e==="dark"?{main:wr[200],light:wr[50],dark:wr[400]}:{main:wr[500],light:wr[300],dark:wr[700]}}function TP(e="light"){return e==="dark"?{main:Cr[500],light:Cr[300],dark:Cr[700]}:{main:Cr[700],light:Cr[400],dark:Cr[800]}}function EP(e="light"){return e==="dark"?{main:Ar[400],light:Ar[300],dark:Ar[700]}:{main:Ar[700],light:Ar[500],dark:Ar[900]}}function SP(e="light"){return e==="dark"?{main:Pr[400],light:Pr[300],dark:Pr[700]}:{main:Pr[800],light:Pr[500],dark:Pr[900]}}function wP(e="light"){return e==="dark"?{main:cn[400],light:cn[300],dark:cn[700]}:{main:"#ed6c02",light:cn[500],dark:cn[900]}}function CP(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,i=Ut(e,bP),o=e.primary||xP(t),a=e.secondary||_P(t),s=e.error||TP(t),l=e.info||EP(t),u=e.success||SP(t),c=e.warning||wP(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:F=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.
|
|
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
|
|
|
103
103
|
Did you intend to use one of the following approaches?
|
|
@@ -110,7 +110,7 @@ const theme1 = createTheme({ palette: {
|
|
|
110
110
|
|
|
111
111
|
const theme2 = createTheme({ palette: {
|
|
112
112
|
primary: { main: green[500] },
|
|
113
|
-
} });`:
|
|
114
|
-
`)),Object.keys(u).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(u).join(",")}].`)}return(Array.isArray(i)?i:[i]).map(
|
|
115
|
-
`))}p[y]={}}}};Object.keys(u.components).forEach(p=>{const g=u.components[p].styleOverrides;g&&p.indexOf("Mui")===0&&
|
|
116
|
-
`).length,children:d.jsx(yh,{})})}),ek={paddingLeft:0,paddingRight:0},tk=S.memo(function({numColumns:t,errors:r,label:n,description:i,path:a,addItem:o,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(jr,{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(QP,{id:"tooltip-validation",errorMessages:r})}):null})]}),i&&d.jsx(v.Text,{size:"sm",children:i})]})}),l?d.jsx(jr,{align:"right",style:ek,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:o(a,V.createDefaultValue(s,f)),children:d.jsx(Ca,{})})})}):null]})}),Qf={fixedCell:{width:"150px",height:"50px",paddingLeft:0,paddingRight:0,textAlign:"center"},fixedCellSmall:{width:"50px",height:"50px",paddingLeft:0,paddingRight:0,textAlign:"center"}},ed=(e,t,r,n,i)=>{if(t.type==="object")return td(t).map(a=>{var l,u;const o=V.Paths.compose(r,a),s={propName:a,schema:t,title:((u=(l=t.properties)==null?void 0:l[a])==null?void 0:u.title)??Kw(a),rowPath:r,cellPath:o,enabled:n,cells:i};return d.jsx(e,{...s},o)});{const a={schema:t,rowPath:r,cellPath:r,enabled:n};return d.jsx(e,{...a},r)}},td=e=>e.type==="object"&&typeof e.properties=="object"?Object.keys(e.properties).filter(t=>e.properties[t].type!=="array"):[""],rk=({numColumns:e,translations:t})=>d.jsx(v.Table.Tr,{children:d.jsx(jr,{colSpan:e,children:d.jsx(v.Text,{align:"center",children:t.noDataMessage})})}),nk=S.memo(function({title:t}){return d.jsx(v.Table.Th,{children:t})}),ik=(e,t)=>{const r=t.rowPath+(t.schema.type==="object"?"."+t.propName:""),n=V.formatErrorMessage(NE(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}},rd=e=>({type:"Control",scope:e,label:!1}),ak=S.memo(function({path:t,propName:r,schema:n,rootSchema:i,errors:a,enabled:o,renderers:s,cells:l,isValid:u}){return d.jsxs(jr,{children:[n.properties?d.jsx(ge.DispatchCell,{schema:V.Resolve.schema(n,`#/properties/${V.encode(r)}`,i),uischema:rd(`#/properties/${V.encode(r)}`),path:t,enabled:o,renderers:s,cells:l}):d.jsx(ge.DispatchCell,{schema:n,uischema:rd("#"),path:t,enabled:o,renderers:s,cells:l}),d.jsx(v.Text,{size:"xs",children:u?"":a})]})}),ok=e=>{const t=ge.useJsonForms(),r=ik(t,e),n=vu(r.errors);return d.jsx(ak,{...r,isValid:n})},sk=({childPath:e,schema:t,rowIndex:r,openDeleteDialog:n,moveUpCreator:i,moveDownCreator:a,enableUp:o,enableDown:s,showSortButtons:l,enabled:u,cells:f,path:c,translations:p})=>{const g={bg:"transparent",size:"sm",c:"gray"},y=v.useProps("ActionIcon",g,{}),h=S.useMemo(()=>i(c,r),[i,c,r]),x=S.useMemo(()=>a(c,r),[a,c,r]);return d.jsxs(v.Table.Tr,{children:[ed(ok,t,e,u,f),u?d.jsx(jr,{style:l?Qf.fixedCell:Qf.fixedCellSmall,children:d.jsxs(v.Grid,{justify:"flex-end",align:"center",children:[l?d.jsxs(S.Fragment,{children:[d.jsx(v.Grid.Col,{span:"content",children:d.jsx(v.Tooltip,{id:"tooltip-up",title:p.up,position:"bottom",opened:o?void 0:!1,children:d.jsx(v.ActionIcon,{bg:y.bg,size:y.size,c:y.c,"aria-label":p.upAriaLabel,onClick:h,disabled:!o,children:d.jsx(JP,{})})})}),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(XP,{})})})})]}):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(ZP,{})})})})]})}):null]},e)},nd=S.memo(sk),lk=({data:e,path:t,schema:r,openDeleteDialog:n,moveUp:i,moveDown:a,uischema:o,config:s,enabled:l,cells:u,translations:f})=>{if(e===0)return d.jsx(rk,{numColumns:td(r).length+1,translations:f});const p=ec({},s,o.options);return d.jsx(S.Fragment,{children:fC(e).map(g=>{const y=V.Paths.compose(t,`${g}`);return d.jsx(nd,{childPath:y,rowIndex:g,schema:r,openDeleteDialog:n,moveUpCreator:i,moveDownCreator:a,enableUp:g!==0,enableDown:g!==e-1,showSortButtons:p.showSortButtons||p.showArrayTableSortButtons,enabled:l,cells:u,path:t,translations:f},y)})})};class id extends S.Component{constructor(){super(...arguments);kd(this,"addItem",(r,n)=>this.props.addItem(r,n))}render(){const{label:r,description:n,path:i,schema:a,rootSchema:o,uischema:s,errors:l,openDeleteDialog:u,visible:f,enabled:c,cells:p,translations:g}=this.props,y=s,h=a.type==="object",x=h?ed(nk,a,i,c,p):void 0;return f?d.jsxs(v.Table,{children:[d.jsxs(v.Table.Thead,{children:[d.jsx(tk,{errors:l,label:r,description:n,addItem:this.addItem,numColumns:h?x.length:1,path:i,uischema:y,schema:a,rootSchema:o,enabled:c,translations:g}),h&&d.jsxs(v.Table.Tr,{children:[x,c?d.jsx(v.Table.Th,{}):null]})]}),d.jsx(v.Table.Tbody,{children:d.jsx(lk,{openDeleteDialog:u,translations:g,...this.props})})]}):null}}const ad=S.memo(function({open:t,onClose:r,onConfirm:n,onCancel:i,title:a,message:o,acceptText:s,declineText:l}){return d.jsxs(v.Modal,{opened:t,withCloseButton:!1,centered:!0,title:a,keepMounted:!0,onClose:r,children:[o,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})]})]})}),uk=e=>{const[t,r]=S.useState(!1),[n,i]=S.useState(void 0),[a,o]=S.useState(void 0),{removeItems:s,visible:l}=e,u=S.useCallback((g,y)=>{r(!0),i(g),o(y)},[r,i,o]),f=S.useCallback(()=>r(!1),[r]),c=S.useCallback(()=>{const g=n.substring(0,n.lastIndexOf("."));s(g,[a])(),r(!1)},[r,n,a]),p=S.useCallback(()=>r(!1),[r]);return l?d.jsxs(d.Fragment,{children:[d.jsx(id,{...e,openDeleteDialog:u}),d.jsx(ad,{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},od=V.rankWith(3,V.or(V.isObjectArrayControl,V.isPrimitiveArrayControl)),sd=ge.withJsonFormsArrayLayoutProps(uk),ck=({errors:e,description:t,label:r,required:n,path:i,options:a,data:o,enabled:s,handleChange:l})=>d.jsx(v.MultiSelect,{disabled:!s,data:a,defaultValue:o,label:r,description:t,required:n,error:e,onChange:u=>{l(i,u)}}),fk=e=>e.oneOf!==void 0&&e.oneOf.length>0&&e.oneOf.every(t=>t.const!==void 0),dk=e=>e.type==="string"&&e.enum!==void 0,ld=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 fk(r)||dk(r)})))),ud=ge.withJsonFormsMultiEnumProps(ck),cd=V.rankWith(5,V.uiTypeIs("HorizontalLayout")),pk=({uischema:e,renderers:t,cells:r,schema:n,path:i,enabled:a})=>{const s={elements:e.elements,schema:n,path:i,enabled:a,direction:"row"};return d.jsx(so,{...s,renderers:t,cells:r})},fd=ge.withJsonFormsLayoutProps(pk),dd=V.rankWith(5,V.uiTypeIs("VerticalLayout")),hk=({uischema:e,schema:t,path:r,enabled:n,renderers:i,cells:a})=>{const s={elements:e.elements,schema:t,path:r,enabled:n,direction:"column"};return d.jsx(so,{...s,renderers:i,cells:a})},pd=ge.withJsonFormsLayoutProps(hk),mk=e=>d.jsx(Jn,{...e}),hd=V.rankWith(4,V.isNumberControl),md=ge.withJsonFormsCellProps(mk),gk=e=>d.jsx(Jn,{...e}),gd=V.rankWith(3,V.isIntegerControl),yd=ge.withJsonFormsCellProps(gk),yk=e=>d.jsx(tc,{...e}),vd=V.rankWith(2,V.isStringControl),bd=ge.withJsonFormsCellProps(yk),vk=e=>d.jsx(rc,{...e}),xd=V.rankWith(3,V.isBooleanControl),_d=ge.withJsonFormsCellProps(vk),bk=e=>{const{data:t,className:r,enabled:n,path:i,handleChange:a,description:o,errors:s,label:l,required:u}=e;return d.jsx(ar.DateInput,{valueFormat:"DD.MM.YYYY",label:l,description:o,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);a(i,c.toISOString().substring(0,10))}},className:r,disabled:!n,w:"100%"})},Td=V.rankWith(2,V.isDateControl),Ed=ge.withJsonFormsCellProps(bk),xk=e=>{const{description:t,className:r,enabled:n,path:i,handleChange:a,data:o,errors:s,label:l,required:u}=e;return d.jsx(ar.DateInput,{valueFormat:"DD.MM.YYYY",className:r,disabled:!n,label:l,description:t,error:s,required:u,value:o?new Date(o):null,onChange:f=>{if(f instanceof Date){const c=new Date(f.getTime()-f.getTimezoneOffset()*6e4);a(i,c.toISOString().substring(0,10))}},w:"100%"})},Sd=V.rankWith(5,V.isDateTimeControl),wd=ge.withJsonFormsControlProps(xk),_k=e=>{const{description:t,data:r,options:n,enabled:i,handleChange:a,className:o,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=>{a(path,f)},className:o,w:"100%"})},Cd=V.rankWith(5,V.isEnumControl),Od=ge.withJsonFormsEnumProps(ge.withTranslateProps(S.memo(_k)),!1),Tk=[{tester:Yl,renderer:Kl},{tester:Xl,renderer:Jl},{tester:Cu,renderer:Ou},{tester:Au,renderer:Pu},{tester:nc,renderer:ic},{tester:ac,renderer:oc},{tester:sc,renderer:lc},{tester:od,renderer:sd},{tester:ld,renderer:ud},{tester:cd,renderer:fd},{tester:dd,renderer:pd}],Ek=[{tester:vd,cell:bd},{tester:hd,cell:md},{tester:gd,cell:yd},{tester:xd,cell:_d},{tester:Td,cell:Ed},{tester:Sd,cell:wd},{tester:Cd,cell:Od}];P.Actions=Xs,P.Add=Fs,P.AddDialog=vs,P.ApiProvider=gs,P.DataGrid=Ka,P.Delete=Ks,P.DeleteDialog=ad,P.Edit=Ys,P.EditDialog=qs,P.Filter=zs,P.FilterMenu=Ls,P.MantineArrayControlRenderer=sd,P.MantineBooleanCell=_d,P.MantineBooleanControl=oc,P.MantineDateCell=Ed,P.MantineDateControl=Kl,P.MantineDateTimeCell=wd,P.MantineDateTimeControl=Jl,P.MantineEnumArrayRenderer=ud,P.MantineEnumCell=Od,P.MantineEnumControl=lc,P.MantineHorizontalLayoutRenderer=fd,P.MantineIntegerCell=yd,P.MantineIntegerControl=Pu,P.MantineLayoutRenderer=so,P.MantineNumberCell=md,P.MantineNumberControl=Ou,P.MantineTableControl=id,P.MantineTextCell=bd,P.MantineTextControl=ic,P.MantineVerticalLayoutRenderer=pd,P.NoBorderTableCell=jr,P.NonEmptyRow=nd,P.Provider=zd,P.UserMenu=Tg,P.mantineArrayControlTester=od,P.mantineBooleanCellTester=xd,P.mantineBooleanControlTester=ac,P.mantineCells=Ek,P.mantineDateCellTester=Td,P.mantineDateControlTester=Yl,P.mantineDateTimeCellTester=Sd,P.mantineDateTimeControlTester=Xl,P.mantineEnumArrayRendererTester=ld,P.mantineEnumCellTester=Cd,P.mantineEnumControlTester=sc,P.mantineHorizontalLayoutTester=cd,P.mantineIntegerCellTester=gd,P.mantineIntegerControlTester=Au,P.mantineNumberCellTester=hd,P.mantineNumberControlTester=Cu,P.mantineRenderers=Tk,P.mantineTextCellTester=vd,P.mantineTextControlTester=nc,P.mantineVerticalLayoutTester=dd,P.renderLayoutElements=bu,P.useApi=Re,P.useAuth=Wo,P.useBulkActions=Hp,P.useDebouncedChange=wu,P.useInfo=Ho,P.withAjvProps=_v,Object.defineProperty(P,Symbol.toStringTag,{value:"Module"})});
|
|
113
|
+
} });`:Jr(12,x?` (${x})`:"",JSON.stringify(h.main)));return Qf(h,"light",j,n),Qf(h,"dark",F,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:vP,contrastThreshold:r,getContrastText:f,augmentColor:p,tonalOffset:n},g[t]),i)}const OP=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function AP(e){return Math.round(e*1e5)/1e5}const ed={textTransform:"uppercase"},td='"Roboto", "Helvetica", "Arial", sans-serif';function PP(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,OP);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,F,N,_)=>pe({fontFamily:n,fontWeight:w,fontSize:y(j),lineHeight:F},n===td?{letterSpacing:`${AP(N/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 kP=.2,jP=.14,IP=.12;function xe(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${kP})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${jP})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${IP})`].join(",")}const $P=["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)],RP=["duration","easing","delay"],DP={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)"},MP={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function rd(e){return`${Math.round(e)}ms`}function NP(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function FP(e){const t=pe({},DP,e.easing),r=pe({},MP,e.duration);return pe({getAutoHeightDuration:NP,create:(i=["all"],o={})=>{const{duration:a=r.standard,easing:s=t.easeInOut,delay:l=0}=o,u=Ut(o,RP);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 LP={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},zP=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function UP(e={},...t){const{mixins:r={},palette:n={},transitions:i={},typography:o={}}=e,a=Ut(e,zP);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=CP(n),l=zf(e);let u=Et(l,{mixins:nP(l.breakpoints,r),palette:s,shadows:$P.slice(),typography:PP(s,o),transitions:FP(i),zIndex:pe({},LP)});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 VP=UP(),BP="$$material";function WP(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const HP=VA({themeId:BP,defaultTheme:VP,rootShouldForwardProp:e=>WP(e)&&e!=="classes"});function GP(e){return ga("MuiSvgIcon",e)}EC("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const qP=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],YP=e=>{const{color:t,fontSize:r,classes:n}=e,i={root:["root",t!=="inherit"&&`color${tr(t)}`,`fontSize${tr(r)}`]};return xC(i,GP,n)},KP=HP("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=kC({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,qP),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=YP(h);return d.jsxs(KP,pe({as:s,className:CC(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 XP=Fa(d.jsx("path",{d:"m20 12-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8z"}),"ArrowDownward"),JP=Fa(d.jsx("path",{d:"m4 12 1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8z"}),"ArrowUpward"),ZP=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}),QP=({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(vh,{})})}),ek={paddingLeft:0,paddingRight:0},tk=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(QP,{id:"tooltip-validation",errorMessages:r})}):null})]}),i&&d.jsx(v.Text,{size:"sm",children:i})]})}),l?d.jsx(kr,{align:"right",style:ek,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)??Kw(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"):[""],rk=({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})})}),nk=T.memo(function({title:t}){return d.jsx(v.Table.Th,{children:t})}),ik=(e,t)=>{const r=t.rowPath+(t.schema.type==="object"?"."+t.propName:""),n=V.formatErrorMessage(NE(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}),ok=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})]})}),ak=e=>{const t=ye.useJsonForms(),r=ik(t,e),n=Eu(r.errors);return d.jsx(ok,{...r,isValid:n})},sk=({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(ak,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(JP,{})})})}),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(XP,{})})})})]}):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(ZP,{})})})})]})}):null]},e)},ld=T.memo(sk),lk=({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(rk,{numColumns:ad(r).length+1,translations:c});const p=oc({},s,a.options);return d.jsx(T.Fragment,{children:fC(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(nk,o,i,f,p):void 0;return c?d.jsxs(v.Table,{children:[d.jsxs(v.Table.Thead,{children:[d.jsx(tk,{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(lk,{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})]})]})}),uk=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(uk),ck=({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)}}),fk=e=>e.oneOf!==void 0&&e.oneOf.length>0&&e.oneOf.every(t=>t.const!==void 0),dk=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 fk(r)||dk(r)})))),hd=ye.withJsonFormsMultiEnumProps(ck),md=V.rankWith(5,V.uiTypeIs("HorizontalLayout")),pk=({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(pk),yd=V.rankWith(5,V.uiTypeIs("VerticalLayout")),hk=({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(hk),mk=e=>d.jsx(Jn,{...e}),bd=V.rankWith(4,V.isNumberControl),xd=ye.withJsonFormsCellProps(mk),gk=e=>d.jsx(Jn,{...e}),_d=V.rankWith(3,V.isIntegerControl),Td=ye.withJsonFormsCellProps(gk),yk=e=>d.jsx(ac,{...e}),Ed=V.rankWith(2,V.isStringControl),Sd=ye.withJsonFormsCellProps(yk),vk=e=>d.jsx(sc,{...e}),wd=V.rankWith(3,V.isBooleanControl),Cd=ye.withJsonFormsCellProps(vk),bk=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(bk),xk=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(xk),_k=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(_k)),!1),Tk=[{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}],Ek=[{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 Sk({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:Eh},{resource_name:e+"/roles",label:"Roles",name:"RolesApi",Icon:xh},{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:gh}].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(_h,{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=Sk,A.mantineArrayControlTester=fd,A.mantineBooleanCellTester=wd,A.mantineBooleanControlTester=cc,A.mantineCells=Ek,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=Tk,A.mantineTextCellTester=Ed,A.mantineTextControlTester=lc,A.mantineVerticalLayoutTester=yd,A.renderLayoutElements=Su,A.useApi=Re,A.useAuth=vs,A.useAuthenticate=Ba,A.useBulkActions=Gp,A.useCustomFetch=yn,A.useDebouncedChange=ku,A.useGetList=Wa,A.useInfo=bs,A.useInfo_=gs,A.withAjvProps=_v,Object.defineProperty(A,Symbol.toStringTag,{value:"Module"})});
|