verion which did not include the handling in RTService wth creating the

Json file
This commit is contained in:
yocto committed 2024-06-25 20:50:29 +02:00
1 parent 2650679989
commit 5285f8b26e
215 files changed
+26816 -219

No files matched your search

-6
View File
@@ -1,6 +0,0 @@
/vrpmdvdata.cpython-310.pyc
/vrpmdvmonitoring.cpython-310.pyc
/vrpmdvmonitoringschema.cpython-310.pyc
/vrpmdvmonreq.cpython-310.pyc
/vrpmdvmonreqschema.cpython-310.pyc
/vrpmdvmonitoringState.cpython-310.pyc
Binary file not shown.
+451
View File
@@ -0,0 +1,451 @@
var c3=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var x4e=c3((Ra,Ta)=>{function d3(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in e)){const i=Object.getOwnPropertyDescriptor(r,o);i&&Object.defineProperty(e,o,i.get?i:{enumerable:!0,get:()=>r[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();var we=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ta(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Go(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var e_={exports:{}},Fv={},t_={exports:{}},ht={};/**
* @license React
* react.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var Tp=Symbol.for("react.element"),f3=Symbol.for("react.portal"),p3=Symbol.for("react.fragment"),m3=Symbol.for("react.strict_mode"),h3=Symbol.for("react.profiler"),g3=Symbol.for("react.provider"),v3=Symbol.for("react.context"),y3=Symbol.for("react.forward_ref"),b3=Symbol.for("react.suspense"),x3=Symbol.for("react.memo"),w3=Symbol.for("react.lazy"),Yk=Symbol.iterator;function C3(e){return e===null||typeof e!="object"?null:(e=Yk&&e[Yk]||e["@@iterator"],typeof e=="function"?e:null)}var n_={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},r_=Object.assign,o_={};function rd(e,t,n){this.props=e,this.context=t,this.refs=o_,this.updater=n||n_}rd.prototype.isReactComponent={};rd.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};rd.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function i_(){}i_.prototype=rd.prototype;function SC(e,t,n){this.props=e,this.context=t,this.refs=o_,this.updater=n||n_}var EC=SC.prototype=new i_;EC.constructor=SC;r_(EC,rd.prototype);EC.isPureReactComponent=!0;var Xk=Array.isArray,a_=Object.prototype.hasOwnProperty,PC={current:null},l_={key:!0,ref:!0,__self:!0,__source:!0};function s_(e,t,n){var r,o={},i=null,a=null;if(t!=null)for(r in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(i=""+t.key),t)a_.call(t,r)&&!l_.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(l===1)o.children=n;else if(1<l){for(var s=Array(l),u=0;u<l;u++)s[u]=arguments[u+2];o.children=s}if(e&&e.defaultProps)for(r in l=e.defaultProps,l)o[r]===void 0&&(o[r]=l[r]);return{$$typeof:Tp,type:e,key:i,ref:a,props:o,_owner:PC.current}}function S3(e,t){return{$$typeof:Tp,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function kC(e){return typeof e=="object"&&e!==null&&e.$$typeof===Tp}function E3(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Zk=/\/+/g;function J0(e,t){return typeof e=="object"&&e!==null&&e.key!=null?E3(""+e.key):t.toString(36)}function Fh(e,t,n,r,o){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var a=!1;if(e===null)a=!0;else switch(i){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case Tp:case f3:a=!0}}if(a)return a=e,o=o(a),e=r===""?"."+J0(a,0):r,Xk(o)?(n="",e!=null&&(n=e.replace(Zk,"$&/")+"/"),Fh(o,t,n,"",function(u){return u})):o!=null&&(kC(o)&&(o=S3(o,n+(!o.key||a&&a.key===o.key?"":(""+o.key).replace(Zk,"$&/")+"/")+e)),t.push(o)),1;if(a=0,r=r===""?".":r+":",Xk(e))for(var l=0;l<e.length;l++){i=e[l];var s=r+J0(i,l);a+=Fh(i,t,n,s,o)}else if(s=C3(e),typeof s=="function")for(e=s.call(e),l=0;!(i=e.next()).done;)i=i.value,s=r+J0(i,l++),a+=Fh(i,t,n,s,o);else if(i==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return a}function Tm(e,t,n){if(e==null)return e;var r=[],o=0;return Fh(e,r,"","",function(i){return t.call(n,i,o++)}),r}function P3(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Ir={current:null},Ah={transition:null},k3={ReactCurrentDispatcher:Ir,ReactCurrentBatchConfig:Ah,ReactCurrentOwner:PC};ht.Children={map:Tm,forEach:function(e,t,n){Tm(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Tm(e,function(){t++}),t},toArray:function(e){return Tm(e,function(t){return t})||[]},only:function(e){if(!kC(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};ht.Component=rd;ht.Fragment=p3;ht.Profiler=h3;ht.PureComponent=SC;ht.StrictMode=m3;ht.Suspense=b3;ht.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=k3;ht.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=r_({},e.props),o=e.key,i=e.ref,a=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,a=PC.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(s in t)a_.call(t,s)&&!l_.hasOwnProperty(s)&&(r[s]=t[s]===void 0&&l!==void 0?l[s]:t[s])}var s=arguments.length-2;if(s===1)r.children=n;else if(1<s){l=Array(s);for(var u=0;u<s;u++)l[u]=arguments[u+2];r.children=l}return{$$typeof:Tp,type:e.type,key:o,ref:i,props:r,_owner:a}};ht.createContext=function(e){return e={$$typeof:v3,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:g3,_conLine truncated
* @license React
* react-jsx-runtime.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var $3=v,I3=Symbol.for("react.element"),O3=Symbol.for("react.fragment"),M3=Object.prototype.hasOwnProperty,R3=$3.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,T3={key:!0,ref:!0,__self:!0,__source:!0};function u_(e,t,n){var r,o={},i=null,a=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(a=t.ref);for(r in t)M3.call(t,r)&&!T3.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:I3,type:e,key:i,ref:a,props:o,_owner:R3.current}}Fv.Fragment=O3;Fv.jsx=u_;Fv.jsxs=u_;e_.exports=Fv;var j=e_.exports,c_={exports:{}},po={},d_={exports:{}},f_={};/**
* @license React
* scheduler.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/(function(e){function t(L,z){var B=L.length;L.push(z);e:for(;0<B;){var A=B-1>>>1,H=L[A];if(0<o(H,z))L[A]=z,L[B]=H,B=A;else break e}}function n(L){return L.length===0?null:L[0]}function r(L){if(L.length===0)return null;var z=L[0],B=L.pop();if(B!==z){L[0]=B;e:for(var A=0,H=L.length,q=H>>>1;A<q;){var U=2*(A+1)-1,G=L[U],Y=U+1,re=L[Y];if(0>o(G,B))Y<H&&0>o(re,G)?(L[A]=re,L[Y]=B,A=Y):(L[A]=G,L[U]=B,A=U);else if(Y<H&&0>o(re,B))L[A]=re,L[Y]=B,A=Y;else break e}}return z}function o(L,z){var B=L.sortIndex-z.sortIndex;return B!==0?B:L.id-z.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,l=a.now();e.unstable_now=function(){return a.now()-l}}var s=[],u=[],c=1,d=null,f=3,m=!1,p=!1,h=!1,y=typeof setTimeout=="function"?setTimeout:null,b=typeof clearTimeout=="function"?clearTimeout:null,g=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function x(L){for(var z=n(u);z!==null;){if(z.callback===null)r(u);else if(z.startTime<=L)r(u),z.sortIndex=z.expirationTime,t(s,z);else break;z=n(u)}}function w(L){if(h=!1,x(L),!p)if(n(s)!==null)p=!0,N(P);else{var z=n(u);z!==null&&$(w,z.startTime-L)}}function P(L,z){p=!1,h&&(h=!1,b(S),S=-1),m=!0;var B=f;try{for(x(z),d=n(s);d!==null&&(!(d.expirationTime>z)||L&&!R());){var A=d.callback;if(typeof A=="function"){d.callback=null,f=d.priorityLevel;var H=A(d.expirationTime<=z);z=e.unstable_now(),typeof H=="function"?d.callback=H:d===n(s)&&r(s),x(z)}else r(s);d=n(s)}if(d!==null)var q=!0;else{var U=n(u);U!==null&&$(w,U.startTime-z),q=!1}return q}finally{d=null,f=B,m=!1}}var C=!1,E=null,S=-1,M=5,I=-1;function R(){return!(e.unstable_now()-I<M)}function _(){if(E!==null){var L=e.unstable_now();I=L;var z=!0;try{z=E(!0,L)}finally{z?D():(C=!1,E=null)}}else C=!1}var D;if(typeof g=="function")D=function(){g(_)};else if(typeof MessageChannel<"u"){var T=new MessageChannel,F=T.port2;T.port1.onmessage=_,D=function(){F.postMessage(null)}}else D=function(){y(_,0)};function N(L){E=L,C||(C=!0,D())}function $(L,z){S=y(function(){L(e.unstable_now())},z)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(L){L.callback=null},e.unstable_continueExecution=function(){p||m||(p=!0,N(P))},e.unstable_forceFrameRate=function(L){0>L||125<L?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):M=0<L?Math.floor(1e3/L):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(s)},e.unstable_next=function(L){switch(f){case 1:case 2:case 3:var z=3;break;default:z=f}var B=f;f=z;try{return L()}finally{f=B}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(L,z){switch(L){case 1:case 2:case 3:case 4:case 5:break;default:L=3}var B=f;f=L;try{return z()}finally{f=B}},e.unstable_scheduleCallback=function(L,z,B){var A=e.unstable_now();switch(typeof B=="object"&&B!==null?(B=B.delay,B=typeof B=="number"&&0<B?A+B:A):B=A,L){case 1:var H=-1;break;case 2:H=250;break;case 5:H=1073741823;break;case 4:H=1e4;break;default:H=5e3}return H=B+H,L={id:c++,callback:z,priorityLevel:L,startTime:B,expirationTime:H,sortIndex:-1},B>A?(L.sortIndex=B,t(u,L),n(s)===null&&L===n(u)&&(h?(b(S),S=-1):h=!0,$(w,B-A))):(L.sortIndex=H,t(s,L),p||m||(p=!0,N(P))),L},e.unstable_shouldYield=R,e.unstable_wrapCallback=function(L){var z=f;return function(){var B=f;f=z;try{return L.apply(this,arguments)}finally{f=B}}}})(f_);d_.exports=f_;var _3=d_.exports;/**
* @license React
* react-dom.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var p_=v,uo=_3;function Me(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var m_=new Set,Uf={};function mu(e,t){Rc(e,t),Rc(e+"Capture",t)}function Rc(e,t){for(Uf[e]=t,e=0;e<t.length;e++)m_.add(t[e])}var Na=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ix=Object.prototype.hasOwnProperty,F3=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Jk={},e$={};function A3(e){return ix.call(e$,e)?!0:ix.call(Jk,e)?!1:F3.test(e)?e$[e]=!0:(Jk[e]=!0,!1)}function L3(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function D3(e,t,n,r){if(t===null||typeof t>"u"||L3(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Or(e,t,n,r,o,i,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var rr={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){rr[e]=new Or(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];rr[t]=new Or(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){rr[e]=new Or(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){rr[e]=new Or(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){rr[e]=new Or(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){rr[e]=new Or(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){rr[e]=new Or(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){rr[e]=new Or(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){rr[e]=new Or(e,5,!1,e.toLowerCase(),null,!1,!1)});var $C=/[\-:]([a-z])/g;function IC(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace($C,IC);rr[t]=new Or(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace($C,IC);rr[t]=new Or(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace($C,IC);rr[t]=new Or(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){rr[e]=new Or(e,1,!1,e.toLowerCase(),null,!1,!1)});rr.xlinkHref=new Or("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){rr[e]=new Or(e,1,!1,e.toLowerCase(),null,!0,!0)});function OC(e,t,n,r){var o=rr.hasOwnProperty(t)?rr[t]:null;(o!==null?o.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!== Line truncated
`+eb+e}var tb=!1;function nb(e,t){if(!e||tb)return"";tb=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var o=u.stack.split(`
`),i=r.stack.split(`
`),a=o.length-1,l=i.length-1;1<=a&&0<=l&&o[a]!==i[l];)l--;for(;1<=a&&0<=l;a--,l--)if(o[a]!==i[l]){if(a!==1||l!==1)do if(a--,l--,0>l||o[a]!==i[l]){var s=`
`+o[a].replace(" at new "," at ");return e.displayName&&s.includes("<anonymous>")&&(s=s.replace("<anonymous>",e.displayName)),s}while(1<=a&&0<=l);break}}}finally{tb=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?cf(e):""}function N3(e){switch(e.tag){case 5:return cf(e.type);case 16:return cf("Lazy");case 13:return cf("Suspense");case 19:return cf("SuspenseList");case 0:case 2:case 15:return e=nb(e.type,!1),e;case 11:return e=nb(e.type.render,!1),e;case 1:return e=nb(e.type,!0),e;default:return""}}function ux(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case ec:return"Fragment";case Ju:return"Portal";case ax:return"Profiler";case MC:return"StrictMode";case lx:return"Suspense";case sx:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case g_:return(e.displayName||"Context")+".Consumer";case h_:return(e._context.displayName||"Context")+".Provider";case RC:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case TC:return t=e.displayName||null,t!==null?t:ux(e.type)||"Memo";case bl:t=e._payload,e=e._init;try{return ux(e(t))}catch{}}return null}function j3(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ux(t);case 8:return t===MC?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Xl(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function y_(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function z3(e){var t=y_(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(a){r=""+a,i.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Fm(e){e._valueTracker||(e._valueTracker=z3(e))}function b_(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=y_(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function gg(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function cx(e,t){var n=t.checked;return un({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function n$(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Xl(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function x_(e,t){t=t.checked,t!=null&&OC(e,"checked",t,!1)}function dx(e,t){x_(e,t);var n=Xl(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?fx(e,t.type,n):t.hasOwnProperty("defaultValue")&&fx(e,t.type,Xl(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function r$(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function fx(e,t,n){(t!=="number"||gg(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var df=Array.isArray;function gc(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Xl(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,r&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function px(e,t){if(t.dan Line truncated
`).replace(YH,"")}function Hm(e,t,n){if(t=k$(t),k$(e)!==t&&n)throw Error(Me(425))}function Eg(){}var kx=null,$x=null;function Ix(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Ox=typeof setTimeout=="function"?setTimeout:void 0,XH=typeof clearTimeout=="function"?clearTimeout:void 0,$$=typeof Promise=="function"?Promise:void 0,ZH=typeof queueMicrotask=="function"?queueMicrotask:typeof $$<"u"?function(e){return $$.resolve(null).then(e).catch(JH)}:Ox;function JH(e){setTimeout(function(){throw e})}function hb(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"){if(r===0){e.removeChild(o),Qf(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);Qf(t)}function Bl(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function I$(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var id=Math.random().toString(36).slice(2),Ni="__reactFiber$"+id,ep="__reactProps$"+id,ja="__reactContainer$"+id,Mx="__reactEvents$"+id,e6="__reactListeners$"+id,t6="__reactHandles$"+id;function Rs(e){var t=e[Ni];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ja]||n[Ni]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=I$(e);e!==null;){if(n=e[Ni])return n;e=I$(e)}return t}e=n,n=e.parentNode}return null}function Ap(e){return e=e[Ni]||e[ja],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function oc(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(Me(33))}function jv(e){return e[ep]||null}var Rx=[],ic=-1;function rs(e){return{current:e}}function Xt(e){0>ic||(e.current=Rx[ic],Rx[ic]=null,ic--)}function Vt(e,t){ic++,Rx[ic]=e.current,e.current=t}var Zl={},dr=rs(Zl),Nr=rs(!1),Ys=Zl;function Tc(e,t){var n=e.type.contextTypes;if(!n)return Zl;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function jr(e){return e=e.childContextTypes,e!=null}function Pg(){Xt(Nr),Xt(dr)}function O$(e,t,n){if(dr.current!==Zl)throw Error(Me(168));Vt(dr,t),Vt(Nr,n)}function sF(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(Me(108,j3(e)||"Unknown",o));return un({},n,r)}function kg(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Zl,Ys=dr.current,Vt(dr,e),Vt(Nr,Nr.current),!0}function M$(e,t,n){var r=e.stateNode;if(!r)throw Error(Me(169));n?(e=sF(e,t,Ys),r.__reactInternalMemoizedMergedChildContext=e,Xt(Nr),Xt(dr),Vt(dr,e)):Xt(Nr),Vt(Nr,n)}var Pa=null,zv=!1,gb=!1;function uF(e){Pa===null?Pa=[e]:Pa.push(e)}function n6(e){zv=!0,uF(e)}function os(){if(!gb&&Pa!==null){gb=!0;var e=0,t=_t;try{var n=Pa;for(_t=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Pa=null,zv=!1}catch(o){throw Pa!==null&&(Pa=Pa.slice(e+1)),F_(FC,os),o}finally{_t=t,gb=!1}}return null}var ac=[],lc=0,$g=null,Ig=0,Oo=[],Mo=0,Xs=null,$a=1,Ia="";function xs(e,t){ac[lc++]=Ig,ac[lc++]=$g,$g=e,Ig=t}function cF(e,t,n){Oo[Mo++]=$a,Oo[Mo++]=Ia,Oo[Mo++]=Xs,Xs=e;var r=$a;e=Ia;var o=32-hi(r)-1;r&=~(1<<o),n+=1;var i=32-hi(t)+o;if(30<i){var a=o-o%5;i=(r&(1<<a)-1).toString(32),r>>=a,o-=a,$a=1<<32-hi(t)+o|n<<o|r,Ia=i+e}else $a=1<<i|n<<o|r,Ia=e}function VC(e){e.return!==null&&(xs(e,1),cF(e,1,0))}function UC(e){for(;e===$g;)$g=ac[--lc],ac[lc]=null,Ig=ac[--lc],ac[lc]=null;for(;e===Xs;)Xs=Oo[--Mo],Oo[Mo]=null,Ia=Oo[--Mo],Oo[Mo]=null,$a=Oo[--Mo],Oo[Mo]=null}var ao=null,io=null,rn=!1,ci=null;function dF(e,t){var n=Fo(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function R$(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,ao=e,io=Bl(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,ao=e,io=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Xs!==null?{id:$a,overflow:Ia}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Fo(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,ao=e,io=null,!0):!1;default:return!1}}function Tx(e){return(e.mode&1)!==0&&(e.flags&128)===0}function _x(e){if(rn){var t=io;if(t){var n=t;if(!R$(e,t)){if(Tx(e))throw Error(Me(418));t=Bl(n.nextSibling);var r=ao;t&&R$(e,t)?dF(r,n):(e.flags=e.flags&-4097|2,rn=!1,ao=e)}}else{if(Tx(e))throw Error(Me(418));e.flags=e.flags&-4097|2,rn=!1,ao=e}}}function T$(e){ Line truncated
Error generating stack: `+i.message+`
`+i.stack}return{value:e,source:t,stack:o,digest:null}}function wb(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Dx(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var d6=typeof WeakMap=="function"?WeakMap:Map;function jF(e,t,n){n=_a(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Lg||(Lg=!0,qx=r),Dx(e,t)},n}function zF(e,t,n){n=_a(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){Dx(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){Dx(e,t),typeof r!="function"&&(Vl===null?Vl=new Set([this]):Vl.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}function z$(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new d6;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=P6.bind(null,e,t,n),t.then(e,e))}function B$(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function H$(e,t,n,r,o){return e.mode&1?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=_a(-1,1),t.tag=2,Hl(n,t,1))),n.lanes|=1),e)}var f6=Qa.ReactCurrentOwner,Dr=!1;function yr(e,t,n,r){t.child=e===null?yF(t,null,n,r):Fc(t,e.child,n,r)}function V$(e,t,n,r,o){n=n.render;var i=t.ref;return xc(t,o),r=tS(e,t,n,r,i,o),n=nS(),e!==null&&!Dr?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Ba(e,t,o)):(rn&&n&&VC(t),t.flags|=1,yr(e,t,r,o),t.child)}function U$(e,t,n,r,o){if(e===null){var i=n.type;return typeof i=="function"&&!fS(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,BF(e,t,i,r,o)):(e=Wh(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&o)){var a=i.memoizedProps;if(n=n.compare,n=n!==null?n:Xf,n(a,r)&&e.ref===t.ref)return Ba(e,t,o)}return t.flags|=1,e=Wl(i,r),e.ref=t.ref,e.return=t,t.child=e}function BF(e,t,n,r,o){if(e!==null){var i=e.memoizedProps;if(Xf(i,r)&&e.ref===t.ref)if(Dr=!1,t.pendingProps=r=i,(e.lanes&o)!==0)e.flags&131072&&(Dr=!0);else return t.lanes=e.lanes,Ba(e,t,o)}return Nx(e,t,n,r,o)}function HF(e,t,n){var r=t.pendingProps,o=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Vt(cc,Jr),Jr|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Vt(cc,Jr),Jr|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,Vt(cc,Jr),Jr|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,Vt(cc,Jr),Jr|=r;return yr(e,t,o,n),t.child}function VF(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Nx(e,t,n,r,o){var i=jr(n)?Ys:dr.current;return i=Tc(t,i),xc(t,o),n=tS(e,t,n,r,i,o),r=nS(),e!==null&&!Dr?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Ba(e,t,o)):(rn&&r&&VC(t),t.flags|=1,yr(e,t,n,o),t.child)}function W$(e,t,n,r,o){if(jr(n)){var i=!0;kg(t)}else i=!1;if(xc(t,o),t.stateNode===null)Hh(e,t),gF(t,n,r),Lx(t,n,r,o),r=!0;else if(e===null){var a=t.stateNode,l=t.memoizedProps;a.props=l;var s=a.context,u=n.contextType;typeof u=="object"&&u!==null?u=zo(u):(u=jr(n)?Ys:dr.current,u=Tc(t,u));var c=n.getDerivedStateFromProps,d=typeof c=="function"||typeof a.getSnapshotBeforeUpdate=="function";d||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(l!==r||s!==u)&&L$(t,a,r,u),xl=!1;var f=t.memoizedState;a.state=f,Rg(t,r,a,o),s=t.memoizedState,l!==r||f!==s||Nr.current||xl?(typeof c=="function"&&(Ax(t,n,c,r),s=t.memoizedState),(l=xl||A$(t,n,l,r,f,s,u))?(d||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(t.flags|=4194308)):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),a.props=r,a.state=s,a.context=u,r=l):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,mF(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:ai(t.type,l),a.props=u,d=t.pendingProps,f=a.context,s=n.contextType,typeof s=="object"&&s!==null?s=zo(s):(s=jr(n)?Ys:dr.current,s=Tc(t,s));var m=n.getDerivedStateFromProps;(c=typeof m=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(l!==d||f!==s)&&L$(t,a,r,s),xl=!1,f=t.memoizedState,a.state=f,Rg(t,r,a,o);var p=t.memoizedS Line truncated
* @license React
* use-sync-external-store-shim.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var Nc=v;function eV(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var tV=typeof Object.is=="function"?Object.is:eV,nV=Nc.useState,rV=Nc.useEffect,oV=Nc.useLayoutEffect,iV=Nc.useDebugValue;function aV(e,t){var n=t(),r=nV({inst:{value:n,getSnapshot:t}}),o=r[0].inst,i=r[1];return oV(function(){o.value=n,o.getSnapshot=t,Pb(o)&&i({inst:o})},[e,n,t]),rV(function(){return Pb(o)&&i({inst:o}),e(function(){Pb(o)&&i({inst:o})})},[e]),iV(n),n}function Pb(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!tV(e,n)}catch{return!0}}function lV(e,t){return t()}var sV=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?lV:aV;PA.useSyncExternalStore=Nc.useSyncExternalStore!==void 0?Nc.useSyncExternalStore:sV;EA.exports=PA;var uV=EA.exports;const kA=uV.useSyncExternalStore,mI=v.createContext(void 0),$A=v.createContext(!1);function IA(e,t){return e||(t&&typeof window<"u"?(window.ReactQueryClientContext||(window.ReactQueryClientContext=mI),window.ReactQueryClientContext):mI)}const na=({context:e}={})=>{const t=v.useContext(IA(e,v.useContext($A)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},cV=({client:e,children:t,context:n,contextSharing:r=!1})=>{v.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]);const o=IA(n,r);return v.createElement($A.Provider,{value:!n&&r},v.createElement(o.Provider,{value:e},t))},OA=v.createContext(!1),dV=()=>v.useContext(OA);OA.Provider;function fV(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}const pV=v.createContext(fV()),mV=()=>v.useContext(pV);function MA(e,t){return typeof e=="function"?e(...t):!!e}const hV=(e,t)=>{(e.suspense||e.useErrorBoundary)&&(t.isReset()||(e.retryOnMount=!1))},gV=e=>{v.useEffect(()=>{e.clearReset()},[e])},vV=({result:e,errorResetBoundary:t,useErrorBoundary:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&MA(n,[e.error,r]),yV=e=>{e.suspense&&typeof e.staleTime!="number"&&(e.staleTime=1e3)},bV=(e,t)=>e.isLoading&&e.isFetching&&!t,xV=(e,t,n)=>(e==null?void 0:e.suspense)&&bV(t,n),wV=(e,t,n)=>t.fetchOptimistic(e).then(({data:r})=>{e.onSuccess==null||e.onSuccess(r),e.onSettled==null||e.onSettled(r,null)}).catch(r=>{n.clearReset(),e.onError==null||e.onError(r),e.onSettled==null||e.onSettled(void 0,r)});function RA(e,t){const n=na({context:e.context}),r=dV(),o=mV(),i=n.defaultQueryOptions(e);i._optimisticResults=r?"isRestoring":"optimistic",i.onError&&(i.onError=hn.batchCalls(i.onError)),i.onSuccess&&(i.onSuccess=hn.batchCalls(i.onSuccess)),i.onSettled&&(i.onSettled=hn.batchCalls(i.onSettled)),yV(i),hV(i,o),gV(o);const[a]=v.useState(()=>new t(n,i)),l=a.getOptimisticResult(i);if(kA(v.useCallback(s=>{const u=r?()=>{}:a.subscribe(hn.batchCalls(s));return a.updateResult(),u},[a,r]),()=>a.getCurrentResult(),()=>a.getCurrentResult()),v.useEffect(()=>{a.setOptions(i,{listeners:!1})},[i,a]),xV(i,l,r))throw wV(i,a,o);if(vV({result:l,errorResetBoundary:o,useErrorBoundary:i.useErrorBoundary,query:a.getCurrentQuery()}))throw l.error;return i.notifyOnChangeProps?l:a.trackResult(l)}function Ho(e,t,n){const r=dc(e,t,n);return RA(r,SA)}function wn(e,t,n){const r=D6(e,t,n),o=na({context:r.context}),[i]=v.useState(()=>new J6(o,r));v.useEffect(()=>{i.setOptions(r)},[i,r]);const a=kA(v.useCallback(s=>i.subscribe(hn.batchCalls(s)),[i]),()=>i.getCurrentResult(),()=>i.getCurrentResult()),l=v.useCallback((s,u)=>{i.mutate(s,u).catch(CV)},[i]);if(a.error&&MA(i.options.useErrorBoundary,[a.error]))throw a.error;return{...a,mutate:l,mutateAsync:a.mutate}}function CV(){}function SV(e,t,n){const r=dc(e,t,n);return RA(r,Z6)}var EV={exports:{}},kb={exports:{}},hI;function PV(){return hI||(hI=1,function(e,t){(function(n,r){e.exports=r()})(we,function(){function n(h){return!isNaN(parseFloat(h))&&isFinite(h)}function r(h){return h.charAt(0).toUpperCase()+h.substring(1)}function o(h){return function(){return this[h]}}var i=["isConstructor","isEval","isNative","isToplevel"],a=["columnNumber","lineNumber"],l=["fileName","functionName","source"],s=["args"],u=["evalOrigin"],c=i.concat(a,l,s,u);function d(h){if(h)for(var y=0;y<c.length;y++)h[c[y]]!==void 0&&this["set"+r(c[y])](h[c[y]])}d.prototype={getArgs:function(){return this.args},setArgs:function(h){if(Object.prototype.toString.call(h)!=="[object Array]")throw new TypeError("Args must be an Array");this.args=h},getEvalOrigin:function(){return this.evalOrigin},setEvalOrigin:function(h){if(h instanceof d)this.evalOrigin=h;else if(h instanceof Object)this.evalOrigin=new d(h);else throw new TypeError("Eval Origin must be an Object or StackFrame")},toString:function(){var h=this.getFileName()||"",y=this.getLineNumber()||"",b=this.getColumnNumber()||"",g=this.getFunctionName()||"";return this.getIsEval()?h?"[eval] ("+h+":"+y+":"+b+")":"[eval]:"+y+":"+b:g?g+" ("+h+":"+y+":"+b+")":h+":"+y+":"+b}},d.fromString=function(y){var b=y.indexOf("("),g=y.lastIndexOf(")"),x=y.substring(0,b),w=y.substring(b+1,g).split(","),P=y.substring(g+1);if(P.indexOf("@")===0)vaLine truncated
`).filter(function(c){return!!c.match(i)},this);return u.map(function(c){c.indexOf("(eval ")>-1&&(c=c.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(,.*$)/g,""));var d=c.replace(/^\s+/,"").replace(/\(eval code/g,"(").replace(/^.*?\s+/,""),f=d.match(/ (\(.+\)$)/);d=f?d.replace(f[0],""):d;var m=this.extractLocation(f?f[1]:d),p=f&&d||void 0,h=["eval","<anonymous>"].indexOf(m[0])>-1?void 0:m[0];return new r({functionName:p,fileName:h,lineNumber:m[1],columnNumber:m[2],source:c})},this)},parseFFOrSafari:function(s){var u=s.stack.split(`
`).filter(function(c){return!c.match(a)},this);return u.map(function(c){if(c.indexOf(" > eval")>-1&&(c=c.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),c.indexOf("@")===-1&&c.indexOf(":")===-1)return new r({functionName:c});var d=/((.*".+"[^@]*)?[^@]*)(?:@)/,f=c.match(d),m=f&&f[1]?f[1]:void 0,p=this.extractLocation(c.replace(d,""));return new r({functionName:m,fileName:p[0],lineNumber:p[1],columnNumber:p[2],source:c})},this)},parseOpera:function(s){return!s.stacktrace||s.message.indexOf(`
`)>-1&&s.message.split(`
`).length>s.stacktrace.split(`
`).length?this.parseOpera9(s):s.stack?this.parseOpera11(s):this.parseOpera10(s)},parseOpera9:function(s){for(var u=/Line (\d+).*script (?:in )?(\S+)/i,c=s.message.split(`
`),d=[],f=2,m=c.length;f<m;f+=2){var p=u.exec(c[f]);p&&d.push(new r({fileName:p[2],lineNumber:p[1],source:c[f]}))}return d},parseOpera10:function(s){for(var u=/Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i,c=s.stacktrace.split(`
`),d=[],f=0,m=c.length;f<m;f+=2){var p=u.exec(c[f]);p&&d.push(new r({functionName:p[3]||void 0,fileName:p[2],lineNumber:p[1],source:c[f]}))}return d},parseOpera11:function(s){var u=s.stack.split(`
`).filter(function(c){return!!c.match(o)&&!c.match(/^Error created at/)},this);return u.map(function(c){var d=c.split("@"),f=this.extractLocation(d.pop()),m=d.shift()||"",p=m.replace(/<anonymous function(: (\w+))?>/,"$2").replace(/\([^)]*\)/g,"")||void 0,h;m.match(/\(([^)]*)\)/)&&(h=m.replace(/^[^(]+\(([^)]*)\)$/,"$1"));var y=h===void 0||h==="[arguments not available]"?void 0:h.split(",");return new r({functionName:p,args:y,fileName:f[0],lineNumber:f[1],columnNumber:f[2],source:c})},this)}}})})(EV);function bt(e,t){return{hookName:"",trace:[],resourcePath:null,legacyKey:!1}}var kV=Error,$V=EvalError,IV=RangeError,OV=ReferenceError,TA=SyntaxError,Np=TypeError,MV=URIError,RV=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},n=Symbol("test"),r=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(r)!=="[object Symbol]")return!1;var o=42;t[n]=o;for(n in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var i=Object.getOwnPropertySymbols(t);if(i.length!==1||i[0]!==n||!Object.prototype.propertyIsEnumerable.call(t,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var a=Object.getOwnPropertyDescriptor(t,n);if(a.value!==o||a.enumerable!==!0)return!1}return!0},gI=typeof Symbol<"u"&&Symbol,TV=RV,_V=function(){return typeof gI!="function"||typeof Symbol!="function"||typeof gI("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:TV()},$b={__proto__:null,foo:{}},FV=Object,AV=function(){return{__proto__:$b}.foo===$b.foo&&!($b instanceof FV)},LV="Function.prototype.bind called on incompatible ",DV=Object.prototype.toString,NV=Math.max,jV="[object Function]",vI=function(t,n){for(var r=[],o=0;o<t.length;o+=1)r[o]=t[o];for(var i=0;i<n.length;i+=1)r[i+t.length]=n[i];return r},zV=function(t,n){for(var r=[],o=n||0,i=0;o<t.length;o+=1,i+=1)r[i]=t[o];return r},BV=function(e,t){for(var n="",r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n},HV=function(t){var n=this;if(typeof n!="function"||DV.apply(n)!==jV)throw new TypeError(LV+n);for(var r=zV(arguments,1),o,i=function(){if(this instanceof o){var c=n.apply(this,vI(r,arguments));return Object(c)===c?c:this}return n.apply(t,vI(r,arguments))},a=NV(0,n.length-r.length),l=[],s=0;s<a;s++)l[s]="$"+s;if(o=Function("binder","return function ("+BV(l,",")+"){ return binder.apply(this,arguments); }")(i),n.prototype){var u=function(){};u.prototype=n.prototype,o.prototype=new u,u.prototype=null}return o},VV=HV,xS=Function.prototype.bind||VV,UV=Function.prototype.call,WV=Object.prototype.hasOwnProperty,GV=xS,qV=GV.call(UV,WV),mt,KV=kV,QV=$V,YV=IV,XV=OV,jc=TA,Cc=Np,ZV=MV,_A=Function,Ib=function(e){try{return _A('"use strict"; return ('+e+").constructor;")()}catch{}},Bs=Object.getOwnPropertyDescriptor;if(Bs)try{Bs({},"")}catch{Bs=null}var Ob=function(){throw new Cc},JV=Bs?function(){try{return arguments.callee,Ob}catch{try{return Bs(arguments,"callee").get}catch{return Ob}}}():Ob,Iu=_V(),eU=AV(),Hn=Object.getPrototypeOf||(eU?function(e){return e.__proto__}:null),qu={},tU=typeof Uint8Array>"u"||!Hn?mt:Hn(Uint8Array),Hs={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?mt:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?mt:ArrayBuffer,"%ArrayIteratorPrototype%":Iu&&Hn?Hn([][Symbol.iterator]()):mt,"%AsyncFromSyncIteratorPrototype%":mt,"%AsyncFunction%":qu,"%AsyncGenerator%":qu,"%AsyncGeneratorFunction%":qu,"%AsyncIteratorPrototype%":qu,"%Atomics%":typeof Atomics>"u"?mt:Atomics,"%BigInt%":typeof BigInt>"u"?mt:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?mt:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?mt:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?mt:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":KV,"%eval%":eval,"%EvalError%":QV,"%Float32Array%":typeof Float32Array>"u"?mt:Float32Array,"%Float64Array%":typeof Float64Array>"u"?mt:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?mt:FinalizationRegistry,"%Function%":_A,"%GeneratorFunction%":qu,"%Int8Array%":typeof Int8Array>"u"?mt:Int8Array,"%Int16Array%":typeof Int16Array>"u"?mt:Int16Array,"%Int32Array%":typeof Int32Array>"u"?mt:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Iu&&Hn?Hn(Hn([][Symbol.iterator]())):mt,"%JSON%":typeof JSON=="object"?JSON:mt,"%Map%":typeof Map>"u"?mt:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Iu||!Hn?mt:Hn(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?mt:Promise,"%Proxy%":typeof Proxy>"u"?mt:Proxy,"%RangeError%":YV,"%ReferenceError%":XV,"%Reflect%":typeof Reflect>"u"?mt:Re Line truncated
`)>=0)return!1;return!0}function ZU(e,t){var n;if(e.indent===" ")n=" ";else if(typeof e.indent=="number"&&e.indent>0)n=Fi.call(Array(e.indent+1)," ");else return null;return{base:n,prev:Fi.call(Array(t+1),n)}}function sw(e,t){if(e.length===0)return"";var n=`
`+t.prev+t.base;return n+Fi.call(e,","+n)+`
`+t.prev}function Ym(e,t){var n=lw(e),r=[];if(n){r.length=e.length;for(var o=0;o<e.length;o++)r[o]=Cl(e,o)?t(e[o],e):""}var i=typeof _b=="function"?_b(e):[],a;if(zc){a={};for(var l=0;l<i.length;l++)a["$"+i[l]]=i[l]}for(var s in e)Cl(e,s)&&(n&&String(Number(s))===s&&s<e.length||zc&&a["$"+s]instanceof Symbol||(jA.call(/[^\w$]/,s)?r.push(t(s,e)+": "+t(e[s],e)):r.push(s+": "+t(e[s],e))));if(typeof _b=="function")for(var u=0;u<i.length;u++)zA.call(e,i[u])&&r.push("["+t(i[u])+"]: "+t(e[i[u]],e));return r}var WA=ld,sd=wU,JU=FU,e8=Np,Xm=WA("%WeakMap%",!0),Zm=WA("%Map%",!0),t8=sd("WeakMap.prototype.get",!0),n8=sd("WeakMap.prototype.set",!0),r8=sd("WeakMap.prototype.has",!0),o8=sd("Map.prototype.get",!0),i8=sd("Map.prototype.set",!0),a8=sd("Map.prototype.has",!0),PS=function(e,t){for(var n=e,r;(r=n.next)!==null;n=r)if(r.key===t)return n.next=r.next,r.next=e.next,e.next=r,r},l8=function(e,t){var n=PS(e,t);return n&&n.value},s8=function(e,t,n){var r=PS(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}},u8=function(e,t){return!!PS(e,t)},c8=function(){var t,n,r,o={assert:function(i){if(!o.has(i))throw new e8("Side channel does not contain "+JU(i))},get:function(i){if(Xm&&i&&(typeof i=="object"||typeof i=="function")){if(t)return t8(t,i)}else if(Zm){if(n)return o8(n,i)}else if(r)return l8(r,i)},has:function(i){if(Xm&&i&&(typeof i=="object"||typeof i=="function")){if(t)return r8(t,i)}else if(Zm){if(n)return a8(n,i)}else if(r)return u8(r,i);return!1},set:function(i,a){Xm&&i&&(typeof i=="object"||typeof i=="function")?(t||(t=new Xm),n8(t,i,a)):Zm?(n||(n=new Zm),i8(n,i,a)):(r||(r={key:{},next:null}),s8(r,i,a))}};return o},d8=String.prototype.replace,f8=/%20/g,Ab={RFC1738:"RFC1738",RFC3986:"RFC3986"},kS={default:Ab.RFC3986,formatters:{RFC1738:function(e){return d8.call(e,f8,"+")},RFC3986:function(e){return String(e)}},RFC1738:Ab.RFC1738,RFC3986:Ab.RFC3986},p8=kS,Lb=Object.prototype.hasOwnProperty,$s=Array.isArray,$i=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),m8=function(t){for(;t.length>1;){var n=t.pop(),r=n.obj[n.prop];if($s(r)){for(var o=[],i=0;i<r.length;++i)typeof r[i]<"u"&&o.push(r[i]);n.obj[n.prop]=o}}},GA=function(t,n){for(var r=n&&n.plainObjects?Object.create(null):{},o=0;o<t.length;++o)typeof t[o]<"u"&&(r[o]=t[o]);return r},h8=function e(t,n,r){if(!n)return t;if(typeof n!="object"){if($s(t))t.push(n);else if(t&&typeof t=="object")(r&&(r.plainObjects||r.allowPrototypes)||!Lb.call(Object.prototype,n))&&(t[n]=!0);else return[t,n];return t}if(!t||typeof t!="object")return[t].concat(n);var o=t;return $s(t)&&!$s(n)&&(o=GA(t,r)),$s(t)&&$s(n)?(n.forEach(function(i,a){if(Lb.call(t,a)){var l=t[a];l&&typeof l=="object"&&i&&typeof i=="object"?t[a]=e(l,i,r):t.push(i)}else t[a]=i}),t):Object.keys(n).reduce(function(i,a){var l=n[a];return Lb.call(i,a)?i[a]=e(i[a],l,r):i[a]=l,i},o)},g8=function(t,n){return Object.keys(n).reduce(function(r,o){return r[o]=n[o],r},t)},v8=function(e,t,n){var r=e.replace(/\+/g," ");if(n==="iso-8859-1")return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch{return r}},y8=function(t,n,r,o,i){if(t.length===0)return t;var a=t;if(typeof t=="symbol"?a=Symbol.prototype.toString.call(t):typeof t!="string"&&(a=String(t)),r==="iso-8859-1")return escape(a).replace(/%u[0-9a-f]{4}/gi,function(c){return"%26%23"+parseInt(c.slice(2),16)+"%3B"});for(var l="",s=0;s<a.length;++s){var u=a.charCodeAt(s);if(u===45||u===46||u===95||u===126||u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122||i===p8.RFC1738&&(u===40||u===41)){l+=a.charAt(s);continue}if(u<128){l=l+$i[u];continue}if(u<2048){l=l+($i[192|u>>6]+$i[128|u&63]);continue}if(u<55296||u>=57344){l=l+($i[224|u>>12]+$i[128|u>>6&63]+$i[128|u&63]);continue}s+=1,u=65536+((u&1023)<<10|a.charCodeAt(s)&1023),l+=$i[240|u>>18]+$i[128|u>>12&63]+$i[128|u>>6&63]+$i[128|u&63]}return l},b8=function(t){for(var n=[{obj:{o:t},prop:"o"}],r=[],o=0;o<n.length;++o)for(var i=n[o],a=i.obj[i.prop],l=Object.keys(a),s=0;s<l.length;++s){var u=l[s],c=a[u];typeof c=="object"&&c!==null&&r.indexOf(c)===-1&&(n.push({obj:a,prop:u}),r.push(c))}return m8(n),t},x8=function(t){return Object.prototype.toString.call(t)==="[object RegExp]"},w8=function(t){return!t||typeof t!="object"?!1:!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},C8=function(t,n){return[].concat(t,n)},S8=function(t,n){if($s(t)){for(var r=[],o=0;o<t.length;o+=1)r.push(n(t[o]));return r}return n(t)},qA={arrayToObject:GA,assign:g8,combine:C8,compact:b8,decode:v8,encode:y8,isBuffer:w8,isRegExp:x8,maybeMap:S8,merge:h8},KA=c8,Kh=qA,Mf=kS,E8=Object.prototype.hasOwnProperty,QA={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,n){return t+"["+n+"]"},repeat:function(t){return t}},_i=Array.isArray,P8=Array.prototype.push,YA=function(e,t){P8.apply(e,_i(t)?t:[t])},k8=Date.prototype.toISOString,NI=Mf.default,Fn={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,delimiter:"&", Line truncated
Papa Parse
v5.4.1
https://github.com/mholt/PapaParse
License: MIT
*/(function(e,t){(function(n,r){e.exports=r()})(we,function n(){var r=typeof self<"u"?self:typeof window<"u"?window:r!==void 0?r:{},o=!r.document&&!!r.postMessage,i=r.IS_PAPA_WORKER||!1,a={},l=0,s={parse:function(S,M){var I=(M=M||{}).dynamicTyping||!1;if(E(I)&&(M.dynamicTypingFunction=I,I={}),M.dynamicTyping=I,M.transform=!!E(M.transform)&&M.transform,M.worker&&s.WORKERS_SUPPORTED){var R=function(){if(!s.WORKERS_SUPPORTED)return!1;var D=(F=r.URL||r.webkitURL||null,N=n.toString(),s.BLOB_URL||(s.BLOB_URL=F.createObjectURL(new Blob(["var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; ","(",N,")();"],{type:"text/javascript"})))),T=new r.Worker(D),F,N;return T.onmessage=g,T.id=l++,a[T.id]=T}();return R.userStep=M.step,R.userChunk=M.chunk,R.userComplete=M.complete,R.userError=M.error,M.step=E(M.step),M.chunk=E(M.chunk),M.complete=E(M.complete),M.error=E(M.error),delete M.worker,void R.postMessage({input:S,config:M,workerId:R.id})}var _=null;return s.NODE_STREAM_INPUT,typeof S=="string"?(S=function(D){return D.charCodeAt(0)===65279?D.slice(1):D}(S),_=M.download?new d(M):new m(M)):S.readable===!0&&E(S.read)&&E(S.on)?_=new p(M):(r.File&&S instanceof File||S instanceof Object)&&(_=new f(M)),_.stream(S)},unparse:function(S,M){var I=!1,R=!0,_=",",D=`\r
`,T='"',F=T+T,N=!1,$=null,L=!1;(function(){if(typeof M=="object"){if(typeof M.delimiter!="string"||s.BAD_DELIMITERS.filter(function(H){return M.delimiter.indexOf(H)!==-1}).length||(_=M.delimiter),(typeof M.quotes=="boolean"||typeof M.quotes=="function"||Array.isArray(M.quotes))&&(I=M.quotes),typeof M.skipEmptyLines!="boolean"&&typeof M.skipEmptyLines!="string"||(N=M.skipEmptyLines),typeof M.newline=="string"&&(D=M.newline),typeof M.quoteChar=="string"&&(T=M.quoteChar),typeof M.header=="boolean"&&(R=M.header),Array.isArray(M.columns)){if(M.columns.length===0)throw new Error("Option columns is empty");$=M.columns}M.escapeChar!==void 0&&(F=M.escapeChar+T),(typeof M.escapeFormulae=="boolean"||M.escapeFormulae instanceof RegExp)&&(L=M.escapeFormulae instanceof RegExp?M.escapeFormulae:/^[=+\-@\t\r].*$/)}})();var z=new RegExp(y(T),"g");if(typeof S=="string"&&(S=JSON.parse(S)),Array.isArray(S)){if(!S.length||Array.isArray(S[0]))return B(null,S,N);if(typeof S[0]=="object")return B($||Object.keys(S[0]),S,N)}else if(typeof S=="object")return typeof S.data=="string"&&(S.data=JSON.parse(S.data)),Array.isArray(S.data)&&(S.fields||(S.fields=S.meta&&S.meta.fields||$),S.fields||(S.fields=Array.isArray(S.data[0])?S.fields:typeof S.data[0]=="object"?Object.keys(S.data[0]):[]),Array.isArray(S.data[0])||typeof S.data[0]=="object"||(S.data=[S.data])),B(S.fields||[],S.data||[],N);throw new Error("Unable to serialize unrecognized input");function B(H,q,U){var G="";typeof H=="string"&&(H=JSON.parse(H)),typeof q=="string"&&(q=JSON.parse(q));var Y=Array.isArray(H)&&0<H.length,re=!Array.isArray(q[0]);if(Y&&R){for(var le=0;le<H.length;le++)0<le&&(G+=_),G+=A(H[le],le);0<q.length&&(G+=D)}for(var J=0;J<q.length;J++){var oe=Y?H.length:q[J].length,ce=!1,ge=Y?Object.keys(q[J]).length===0:q[J].length===0;if(U&&!Y&&(ce=U==="greedy"?q[J].join("").trim()==="":q[J].length===1&&q[J][0].length===0),U==="greedy"&&Y){for(var me=[],ke=0;ke<oe;ke++){var be=re?H[ke]:ke;me.push(q[J][be])}ce=me.join("").trim()===""}if(!ce){for(var ie=0;ie<oe;ie++){0<ie&&!ge&&(G+=_);var ye=Y&&re?H[ie]:ie;G+=A(q[J][ye],ie)}J<q.length-1&&(!U||0<oe&&!ge)&&(G+=D)}}return G}function A(H,q){if(H==null)return"";if(H.constructor===Date)return JSON.stringify(H).slice(1,25);var U=!1;L&&typeof H=="string"&&L.test(H)&&(H="'"+H,U=!0);var G=H.toString().replace(z,F);return(U=U||I===!0||typeof I=="function"&&I(H,q)||Array.isArray(I)&&I[q]||function(Y,re){for(var le=0;le<re.length;le++)if(-1<Y.indexOf(re[le]))return!0;return!1}(G,s.BAD_DELIMITERS)||-1<G.indexOf(_)||G.charAt(0)===" "||G.charAt(G.length-1)===" ")?T+G+T:G}}};if(s.RECORD_SEP=String.fromCharCode(30),s.UNIT_SEP=String.fromCharCode(31),s.BYTE_ORDER_MARK="\uFEFF",s.BAD_DELIMITERS=["\r",`
`,'"',s.BYTE_ORDER_MARK],s.WORKERS_SUPPORTED=!o&&!!r.Worker,s.NODE_STREAM_INPUT=1,s.LocalChunkSize=10485760,s.RemoteChunkSize=5242880,s.DefaultDelimiter=",",s.Parser=b,s.ParserHandle=h,s.NetworkStreamer=d,s.FileStreamer=f,s.StringStreamer=m,s.ReadableStreamStreamer=p,r.jQuery){var u=r.jQuery;u.fn.parse=function(S){var M=S.config||{},I=[];return this.each(function(D){if(!(u(this).prop("tagName").toUpperCase()==="INPUT"&&u(this).attr("type").toLowerCase()==="file"&&r.FileReader)||!this.files||this.files.length===0)return!0;for(var T=0;T<this.files.length;T++)I.push({file:this.files[T],inputElem:this,instanceConfig:u.extend({},M)})}),R(),this;function R(){if(I.length!==0){var D,T,F,N,$=I[0];if(E(S.before)){var L=S.before($.file,$.inputElem);if(typeof L=="object"){if(L.action==="abort")return D="AbortError",T=$.file,F=$.inputElem,N=L.reason,void(E(S.error)&&S.error({name:D},T,F,N));if(L.action==="skip")return void _();typeof L.config=="object"&&($.instanceConfig=u.extend($.instanceConfig,L.config))}else if(L==="skip")return void _()}var z=$.instanceConfig.complete;$.instanceConfig.complete=function(B){E(z)&&z(B,$.file,$.inputElem),_()},s.parse($.file,$.instanceConfig)}else E(S.complete)&&S.complete()}function _(){I.splice(0,1),R()}}}function c(S){this._handle=null,this._finished=!1,this._completed=!1,this._halted=!1,this._input=null,this._baseIndex=0,this._partialLine="",this._rowCount=0,this._start=0,this._nextChunk=null,this.isFirstChunk=!0,this._completeResults={data:[],errors:[],meta:{}},(function(M){var I=P(M);I.chunkSize=parseInt(I.chunkSize),M.step||M.chunk||(I.chunkSize=null),this._handle=new h(I),(this._handle.streamer=this)._config=I}).call(this,S),this.parseChunk=function(M,I){if(this.isFirstChunk&&E(this._config.beforeFirstChunk)){var R=this._config.beforeFirstChunk(M);R!==void 0&&(M=R)}this.isFirstChunk=!1,this._halted=!1;var _=this._partialLine+M;this._partialLine="";var D=this._handle.parse(_,this._baseIndex,!this._finished);if(!this._handle.paused()&&!this._handle.aborted()){var T=D.meta.cursor;this._finished||(this._partialLine=_.substring(T-this._baseIndex),this._baseIndex=T),D&&D.data&&(this._rowCount+=D.data.length);var F=this._finished||this._config.preview&&this._rowCount>=this._config.preview;if(i)r.postMessage({results:D,workerId:s.WORKER_ID,finished:F});else if(E(this._config.chunk)&&!I){if(this._config.chunk(D,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);D=void 0,this._completeResults=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(D.data),this._completeResults.errors=this._completeResults.errors.concat(D.errors),this._completeResults.meta=D.meta),this._completed||!F||!E(this._config.complete)||D&&D.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),F||D&&D.meta.paused||this._nextChunk(),D}this._halted=!0},this._sendError=function(M){E(this._config.error)?this._config.error(M):i&&this._config.error&&r.postMessage({workerId:s.WORKER_ID,error:M,finished:!1})}}function d(S){var M;(S=S||{}).chunkSize||(S.chunkSize=s.RemoteChunkSize),c.call(this,S),this._nextChunk=o?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(I){this._input=I,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(M=new XMLHttpRequest,this._config.withCredentials&&(M.withCredentials=this._config.withCredentials),o||(M.onload=C(this._chunkLoaded,this),M.onerror=C(this._chunkError,this)),M.open(this._config.downloadRequestBody?"POST":"GET",this._input,!o),this._config.downloadRequestHeaders){var I=this._config.downloadRequestHeaders;for(var R in I)M.setRequestHeader(R,I[R])}if(this._config.chunkSize){var _=this._start+this._config.chunkSize-1;M.setRequestHeader("Range","bytes="+this._start+"-"+_)}try{M.send(this._config.downloadRequestBody)}catch(D){this._chunkError(D.message)}o&&M.status===0&&this._chunkError()}},this._chunkLoaded=function(){M.readyState===4&&(M.status<200||400<=M.status?this._chunkError():(this._start+=this._config.chunkSize?this._config.chunkSize:M.responseText.length,this._finished=!this._config.chunkSize||this._start>=function(I){var R=I.getResponseHeader("Content-Range");return R===null?-1:parseInt(R.substring(R.lastIndexOf("/")+1))}(M),this.parseChunk(M.responseText)))},this._chunkError=function(I){var R=M.statusText||I;this._sendError(new Error(R))}}function f(S){var M,I;(S=S||{}).chunkSize||(S.chunkSize=s.LocalChunkSize),c.call(this,S);var R=typeof FileReader<"u";this.stream=function(_){this._input=_,I=_.slice||_.webkitSlice||_.mozSlice,R?((M=new FileReader).onload=C(this._chunkLoaded,this),M.onerror=C(this._chunkError,this)):M=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount<this._config.preview)||this._readChunk()},this._readChunk=function(){var _=this._input;if(this._config.chunkSize){v Line truncated
`),Z=1<Q.length&&Q[0].length<V[0].length;if(V.length===1||Z)return`
`;for(var ae=0,te=0;te<V.length;te++)V[te][0]===`
`&&ae++;return ae>=V.length/2?`\r
`:"\r"}(J,ge)),R=!1,S.delimiter)E(S.delimiter)&&(S.delimiter=S.delimiter(J),H.meta.delimiter=S.delimiter);else{var me=function(be,ie,ye,V,Q){var Z,ae,te,K;Q=Q||[","," ","|",";",s.RECORD_SEP,s.UNIT_SEP];for(var ee=0;ee<Q.length;ee++){var se=Q[ee],Ce=0,_e=0,$e=0;te=void 0;for(var X=new b({comments:V,delimiter:se,newline:ie,preview:10}).parse(be),Ee=0;Ee<X.data.length;Ee++)if(ye&&U(X.data[Ee]))$e++;else{var De=X.data[Ee].length;_e+=De,te!==void 0?0<De&&(Ce+=Math.abs(De-te),te=De):te=De}0<X.data.length&&(_e/=X.data.length-$e),(ae===void 0||Ce<=ae)&&(K===void 0||K<_e)&&1.99<_e&&(ae=Ce,Z=se,K=_e)}return{successful:!!(S.delimiter=Z),bestDelimiter:Z}}(J,S.newline,S.skipEmptyLines,S.comments,S.delimitersToGuess);me.successful?S.delimiter=me.bestDelimiter:(R=!0,S.delimiter=s.DefaultDelimiter),H.meta.delimiter=S.delimiter}var ke=P(S);return S.preview&&S.header&&ke.preview++,M=J,I=new b(ke),H=I.parse(M,oe,ce),G(),z?{meta:{paused:!0}}:H||{meta:{paused:!1}}},this.paused=function(){return z},this.pause=function(){z=!0,I.abort(),M=E(S.chunk)?"":M.substring(I.getCharIndex())},this.resume=function(){N.streamer._halted?(z=!1,N.streamer.parseChunk(M,!0)):setTimeout(N.resume,3)},this.aborted=function(){return B},this.abort=function(){B=!0,I.abort(),H.meta.aborted=!0,E(S.complete)&&S.complete(H),M=""}}function y(S){return S.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function b(S){var M,I=(S=S||{}).delimiter,R=S.newline,_=S.comments,D=S.step,T=S.preview,F=S.fastMode,N=M=S.quoteChar===void 0||S.quoteChar===null?'"':S.quoteChar;if(S.escapeChar!==void 0&&(N=S.escapeChar),(typeof I!="string"||-1<s.BAD_DELIMITERS.indexOf(I))&&(I=","),_===I)throw new Error("Comment character same as delimiter");_===!0?_="#":(typeof _!="string"||-1<s.BAD_DELIMITERS.indexOf(_))&&(_=!1),R!==`
`&&R!=="\r"&&R!==`\r
`&&(R=`
`);var $=0,L=!1;this.parse=function(z,B,A){if(typeof z!="string")throw new Error("Input must be a string");var H=z.length,q=I.length,U=R.length,G=_.length,Y=E(D),re=[],le=[],J=[],oe=$=0;if(!z)return Te();if(S.header&&!B){var ce=z.split(R)[0].split(I),ge=[],me={},ke=!1;for(var be in ce){var ie=ce[be];E(S.transformHeader)&&(ie=S.transformHeader(ie,be));var ye=ie,V=me[ie]||0;for(0<V&&(ke=!0,ye=ie+"_"+V),me[ie]=V+1;ge.includes(ye);)ye=ye+"_"+V;ge.push(ye)}if(ke){var Q=z.split(R);Q[0]=ge.join(I),z=Q.join(R)}}if(F||F!==!1&&z.indexOf(M)===-1){for(var Z=z.split(R),ae=0;ae<Z.length;ae++){if(J=Z[ae],$+=J.length,ae!==Z.length-1)$+=R.length;else if(A)return Te();if(!_||J.substring(0,G)!==_){if(Y){if(re=[],$e(J.split(I)),Pe(),L)return Te()}else $e(J.split(I));if(T&&T<=ae)return re=re.slice(0,T),Te(!0)}}return Te()}for(var te=z.indexOf(I,$),K=z.indexOf(R,$),ee=new RegExp(y(N)+y(M),"g"),se=z.indexOf(M,$);;)if(z[$]!==M)if(_&&J.length===0&&z.substring($,$+G)===_){if(K===-1)return Te();$=K+U,K=z.indexOf(R,$),te=z.indexOf(I,$)}else if(te!==-1&&(te<K||K===-1))J.push(z.substring($,te)),$=te+q,te=z.indexOf(I,$);else{if(K===-1)break;if(J.push(z.substring($,K)),De(K+U),Y&&(Pe(),L))return Te();if(T&&re.length>=T)return Te(!0)}else for(se=$,$++;;){if((se=z.indexOf(M,se+1))===-1)return A||le.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:re.length,index:$}),Ee();if(se===H-1)return Ee(z.substring($,se).replace(ee,M));if(M!==N||z[se+1]!==N){if(M===N||se===0||z[se-1]!==N){te!==-1&&te<se+1&&(te=z.indexOf(I,se+1)),K!==-1&&K<se+1&&(K=z.indexOf(R,se+1));var Ce=X(K===-1?te:Math.min(te,K));if(z.substr(se+1+Ce,q)===I){J.push(z.substring($,se).replace(ee,M)),z[$=se+1+Ce+q]!==M&&(se=z.indexOf(M,$)),te=z.indexOf(I,$),K=z.indexOf(R,$);break}var _e=X(K);if(z.substring(se+1+_e,se+1+_e+U)===R){if(J.push(z.substring($,se).replace(ee,M)),De(se+1+_e+U),te=z.indexOf(I,$),se=z.indexOf(M,$),Y&&(Pe(),L))return Te();if(T&&re.length>=T)return Te(!0);break}le.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:re.length,index:$}),se++}}else se++}return Ee();function $e(Re){re.push(Re),oe=$}function X(Re){var We=0;if(Re!==-1){var it=z.substring(se+1,Re);it&&it.trim()===""&&(We=it.length)}return We}function Ee(Re){return A||(Re===void 0&&(Re=z.substring($)),J.push(Re),$=H,$e(J),Y&&Pe()),Te()}function De(Re){$=Re,$e(J),J=[],K=z.indexOf(R,$)}function Te(Re){return{data:re,errors:le,meta:{delimiter:I,linebreak:R,aborted:L,truncated:!!Re,cursor:oe+(B||0)}}}function Pe(){D(Te()),re=[],le=[]}},this.abort=function(){L=!0},this.getCharIndex=function(){return $}}function g(S){var M=S.data,I=a[M.workerId],R=!1;if(M.error)I.userError(M.error,M.file);else if(M.results&&M.results.data){var _={abort:function(){R=!0,x(M.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:w,resume:w};if(E(I.userStep)){for(var D=0;D<M.results.data.length&&(I.userStep({data:M.results.data[D],errors:M.results.errors,meta:M.results.meta},_),!R);D++);delete M.results}else E(I.userChunk)&&(I.userChunk(M.results,_,M.file),delete M.results)}M.finished&&!R&&x(M.workerId,M.results)}function x(S,M){var I=a[S];E(I.userComplete)&&I.userComplete(M),I.terminate(),delete a[S]}function w(){throw new Error("Not implemented.")}function P(S){if(typeof S!="object"||S===null)return S;var M=Array.isArray(S)?[]:{};for(var I in S)M[I]=P(S[I]);return M}function C(S,M){return function(){S.apply(M,arguments)}}function E(S){return typeof S=="function"}return i&&(r.onmessage=function(S){var M=S.data;if(s.WORKER_ID===void 0&&M&&(s.WORKER_ID=M.workerId),typeof M.input=="string")r.postMessage({workerId:s.WORKER_ID,results:s.parse(M.input,M.config),finished:!0});else if(r.File&&M.input instanceof File||M.input instanceof Object){var I=s.parse(M.input,M.config);I&&r.postMessage({workerId:s.WORKER_ID,results:I,finished:!0})}}),(d.prototype=Object.create(c.prototype)).constructor=d,(f.prototype=Object.create(c.prototype)).constructor=f,(m.prototype=Object.create(m.prototype)).constructor=m,(p.prototype=Object.create(c.prototype)).constructor=p,s})})(vL);var yL=vL.exports,bG=function(){return ra.Date.now()};const Bb=bG;var xG=/\s/;function wG(e){for(var t=e.length;t--&&xG.test(e.charAt(t)););return t}var CG=/^\s+/;function SG(e){return e&&e.slice(0,wG(e)+1).replace(CG,"")}var EG="[object Symbol]";function ey(e){return typeof e=="symbol"||nu(e)&&ud(e)==EG}var sO=0/0,PG=/^[-+]0x[0-9a-f]+$/i,kG=/^0b[01]+$/i,$G=/^0o[0-7]+$/i,IG=parseInt;function mw(e){if(typeof e=="number")return e;if(ey(e))return sO;if(ru(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=ru(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=SG(e);var n=kG.test(e);return n||$G.test(e)?IG(e.slice(2),n?2:8):PG.test(e)?sO:+e}var OG="Expected a function",MG=Math.max,RG=Math.min;function bL(e,t,n){var r,o,i,a,l,s,u=0,c=!1,d=!1,f=!0;if(typeof e!="function")throw new TypeError(OG);t=mw(t)||0,ru(n)&&(c=!!n.leading,d="maxWait"in n,i=d?MG(mw(n.maxWait)||0,t):i,f="trailing"in n?!!n.trailing Line truncated
For more information, see https://refine.dev/docs/advanced-tutorials/data-provider/handling-filters/#top-level-multiple-conditional-filters-usage`),LS(e,t,n,qL).filter(r=>r.value!==void 0&&r.value!==null&&(r.operator!=="or"||r.operator==="or"&&r.value.length!==0)&&(r.operator!=="and"||r.operator==="and"&&r.value.length!==0))),"unionFilters"),gO=W((e,t)=>LS(e,t,KL).filter(n=>n.order!==void 0&&n.order!==null),"unionSorters"),vO=W((e,t)=>[..._l(t,e,qL),...e],"setInitialFilters"),yO=W((e,t)=>[..._l(t,e,KL),...e],"setInitialSorters");W((e,t)=>{if(!t)return;let n=t.find(r=>r.field===e);if(n)return n.order},"getDefaultSortOrder");W((e,t,n="eq")=>{let r=t==null?void 0:t.find(o=>{if(o.operator!=="or"&&o.operator!=="and"&&"field"in o){let{operator:i,field:a}=o;return a===e&&i===n}});if(r)return r.value||[]},"getDefaultFilter");W(e=>new Promise((t,n)=>{let r=new FileReader,o=W(()=>{r.result&&(r.removeEventListener("load",o,!1),t(r.result))},"resultHandler");r.addEventListener("load",o,!1),r.readAsDataURL(e.originFileObj),r.onerror=i=>(r.removeEventListener("load",o,!1),n(i))}),"file2Base64");var Ut=W(()=>{let{options:{useNewQueryKeys:e}}=cn();return{keys:Ss,preferLegacyKeys:!e}},"useKeys");function Lq({v3LegacyAuthProviderCompatible:e=!1,options:t,params:n}={}){let{getPermissions:r}=qo(),{getPermissions:o}=xi(),{keys:i,preferLegacyKeys:a}=Ut(),l=Ho({queryKey:i().auth().action("permissions").get(a),queryFn:o?()=>o(n):()=>Promise.resolve(void 0),enabled:!e&&!!o,...e?{}:t,meta:{...e?{}:t==null?void 0:t.meta,...bt()}}),s=Ho({queryKey:[...i().auth().action("permissions").get(a),"v3LegacyAuthProviderCompatible"],queryFn:r?()=>r(n):()=>Promise.resolve(void 0),enabled:e&&!!r,...e?t:{},meta:{...e?t==null?void 0:t.meta:{},...bt()}});return e?s:l}W(Lq,"usePermissions");function cd({v3LegacyAuthProviderCompatible:e=!1,queryOptions:t}={}){let{getUserIdentity:n}=qo(),{getIdentity:r}=xi(),{keys:o,preferLegacyKeys:i}=Ut(),a=Ho({queryKey:o().auth().action("identity").get(i),queryFn:r??(()=>Promise.resolve({})),enabled:!e&&!!r,retry:!1,...e===!0?{}:t,meta:{...e===!0?{}:t==null?void 0:t.meta,...bt()}}),l=Ho({queryKey:[...o().auth().action("identity").get(i),"v3LegacyAuthProviderCompatible"],queryFn:n??(()=>Promise.resolve({})),enabled:e&&!!n,retry:!1,...e?t:{},meta:{...e?t==null?void 0:t.meta:{},...bt()}});return e?l:a}W(cd,"useGetIdentity");var VS=W(()=>{let e=na(),{keys:t,preferLegacyKeys:n}=Ut();return W(async()=>{await Promise.all(["check","identity","permissions"].map(r=>e.invalidateQueries(t().auth().action(r).get(n))))},"invalidate")},"useInvalidateAuthStore");function Uc({v3LegacyAuthProviderCompatible:e,mutationOptions:t}={}){let n=VS(),r=st(),o=mr(),{push:i}=Cn(),{open:a,close:l}=bu(),{logout:s}=qo(),{logout:u}=xi(),{keys:c,preferLegacyKeys:d}=Ut(),f=wn({mutationKey:c().auth().action("logout").get(d),mutationFn:u,onSuccess:async(p,h)=>{let{success:y,error:b,redirectTo:g,successNotification:x}=p,{redirectPath:w}=h??{},P=w??g;y&&(l==null||l("useLogout-error"),x&&(a==null||a(Dq(x)))),(b||!y)&&(a==null||a(Ub(b))),P!==!1&&(r==="legacy"?i(P??"/login"):P&&o({to:P})),await n()},onError:p=>{a==null||a(Ub(p))},...e===!0?{}:t,meta:{...e===!0?{}:t==null?void 0:t.meta,...bt()}}),m=wn({mutationKey:[...c().auth().action("logout").get(d),"v3LegacyAuthProviderCompatible"],mutationFn:s,onSuccess:async(p,h)=>{let y=(h==null?void 0:h.redirectPath)??p;if(y!==!1){if(y){r==="legacy"?i(y):o({to:y});return}r==="legacy"?i("/login"):o({to:"/login"}),await n()}},onError:p=>{a==null||a(Ub(p))},...e?t:{},meta:{...e?t==null?void 0:t.meta:{},...bt()}});return e?m:f}W(Uc,"useLogout");var Ub=W(e=>({key:"useLogout-error",type:"error",message:(e==null?void 0:e.name)||"Logout Error",description:(e==null?void 0:e.message)||"Something went wrong during logout"}),"buildNotification"),Dq=W(e=>({message:e.message,description:e.description,key:"logout-success",type:"success"}),"buildSuccessNotification");function zp({v3LegacyAuthProviderCompatible:e,mutationOptions:t}={}){let n=VS(),r=st(),o=mr(),{replace:i}=Cn(),a=Qo(),{useLocation:l}=zt(),{search:s}=l(),{close:u,open:c}=bu(),{login:d}=qo(),{login:f}=xi(),{keys:m,preferLegacyKeys:p}=Ut(),h=k.useMemo(()=>{var g;return r==="legacy"?tu.parse(s,{ignoreQueryPrefix:!0}).to:(g=a.params)==null?void 0:g.to},[r,a.params,s]),y=wn({mutationKey:m().auth().action("login").get(p),mutationFn:f,onSuccess:async({success:g,redirectTo:x,error:w,successNotification:P})=>{g&&(u==null||u("login-error"),P&&(c==null||c(Nq(P)))),(w||!g)&&(c==null||c(Wb(w))),h&&g?r==="legacy"?i(h):o({to:h,type:"replace"}):x?r==="legacy"?i(x):o({to:x,type:"replace"}):r==="legacy"&&i("/"),await n()},onError:g=>{c==null||c(Wb(g))},...e===!0?{}:t,meta:{...e===!0?{}:t==null?void 0:t.meta,...bt()}}),b=wn({mutationKey:[...m().auth().action("login").get(p),"v3LegacyAuthProviderCompatible"],mutationFn:d,onSuccess:async g=>{h&&i(h),g!==!1&&!h&&(typeof g=="string"?r==="legacy"?i(g):o({to:g,type:"replace"}):r==="legacy"?i("/"):o({to:"/",type:"replace"})),await n(),u==null Line truncated
Both \`unparseConfig\` and \`exportOptions\` are set, \`unparseConfig\` will take precedence`);let D={filename:C,useKeysAsHeaders:!0,useBom:!0,title:"My Generated Report",quoteStrings:'"',...s};iu((s==null?void 0:s.decimalSeparator)!==void 0,`[useExport]: resource: "${P}"
Use of \`decimalSeparator\` no longer supported, please use \`mapData\` instead.
See https://refine.dev/docs/api-reference/core/hooks/import-export/useExport/`),_?u={quotes:!0,...u}:u={columns:D.useKeysAsHeaders?void 0:D.headers,delimiter:D.fieldSeparator,header:D.showLabels||D.useKeysAsHeaders,quoteChar:D.quoteStrings,quotes:!0};let T=yL.unparse(M.map(l),u);if(D.showTitle&&(T=`${D.title}\r
${T}`),typeof window<"u"&&T.length>0&&(p??!0)){let F=D.useTextFile?".txt":".csv",N=`text/${D.useTextFile?"plain":"csv"};charset=utf8;`,$=`${(D.filename??"download").replace(/ /g,"_")}${F}`;Aq($,`${D!=null&&D.useBom?"\uFEFF":""}${T}`,N)}return y(!1),T},"triggerExport")}},"useExport");var oK=W(({resource:e,action:t,id:n,onMutationSuccess:r,onMutationError:o,redirect:i,successNotification:a,errorNotification:l,meta:s,metaData:u,queryMeta:c,mutationMeta:d,mutationMode:f,liveMode:m,onLiveEvent:p,liveParams:h,undoableTimeout:y,dataProviderName:b,invalidates:g,queryOptions:x,createMutationOptions:w,updateMutationOptions:P,overtimeOptions:C,autoSave:E,optimisticUpdateMap:S}={})=>{let M=ia(),{options:I}=cn(),R=qn(),{resource:_,id:D,action:T,identifier:F}=Je(e),{identifier:N}=Je(),$=W(()=>e&&e!==N?n:n??D,"getDefaultId")(),[L,z]=k.useState($);k.useEffect(()=>{z($)},[$]);let B=W(()=>t||(T==="edit"||T==="clone"?T:"create"),"getAction")(),A=R({resource:_,meta:Ae(s,u)}),{mutationMode:H}=yu(),q=f??H,U=B==="create",G=B==="edit",Y=B==="clone";iu((Y||G)&&!!e&&!n&&(x==null?void 0:x.enabled)!==!1,`[useForm]: action: "${B}", resource: "${F}", id: ${L}
If you don't use the \`setId\` method to set the \`id\`, you should pass the \`id\` prop to \`useForm\`. Otherwise, \`useForm\` will not be able to infer the \`id\` from the current URL.
See https://refine.dev/docs/api-reference/core/hooks/useForm/#resource`);let re=Eq({redirectFromProps:i,action:B,redirectOptions:I.redirect}),le=XL({resource:F,id:L??"",queryOptions:{enabled:L!==void 0&&(G||Y),...x},liveMode:m,onLiveEvent:p,liveParams:h,meta:{...A,...c},metaData:{...A,...c},dataProviderName:b}),{isFetching:J}=le,oe=JL({mutationOptions:w}),{mutate:ce,isLoading:ge}=oe,me=Xg({mutationOptions:P}),{mutate:ke,isLoading:be}=me,ie=Xg({}),{setWarnWhen:ye}=Ja(),V=iK(),Q=W(async ee=>{ye(!1);let se=W(Ce=>{V({redirect:re,resource:_,id:Ce,meta:Ae(s,u)})},"onSuccess");return q!=="pessimistic"&&setTimeout(()=>{se()}),new Promise((Ce,_e)=>{if(q!=="pessimistic"&&Ce(),!!_)return ce({values:ee,resource:F??_.name,successNotification:a,errorNotification:l,meta:{...A,...d},metaData:{...A,...d},dataProviderName:b,invalidates:g},{onSuccess:($e,X,Ee)=>{var De;r&&r($e,ee,Ee);let Te=(De=$e==null?void 0:$e.data)==null?void 0:De.id;se(Te),Ce($e)},onError:($e,X,Ee)=>{if(o)return o($e,ee,Ee);_e()}})})},"onFinishCreate");k.useEffect(()=>()=>{E!=null&&E.invalidateOnUnmount&&ie.status==="success"&&M({id:L,invalidates:g||["list","many","detail"],dataProviderName:b,resource:F})},[E==null?void 0:E.invalidateOnUnmount,ie.status]);let Z=W(ee=>{if(!_||!G)return;let se={id:L??"",values:ee,resource:F??_.name,successNotification:!1,errorNotification:!1,meta:{...A,...d},metaData:{...A,...d},dataProviderName:b,invalidates:[],mutationMode:"pessimistic"};return ie.mutate(se,{onSuccess:(Ce,_e,$e)=>{r&&r(Ce,ee,$e,!0)},onError:(Ce,_e,$e)=>{if(o)return o(Ce,ee,$e,!0)}})},"onFinishAutoSaveMutation"),ae=bL(ee=>Z(ee),(E==null?void 0:E.debounce)||1e3),te=U||Y?{formLoading:J||ge,mutationResult:oe,onFinish:Q}:{formLoading:J||be,mutationResult:me,onFinish:W(async ee=>{if(ye(!1),!_)return;let se={id:L??"",values:ee,resource:F??_.name,mutationMode:q,undoableTimeout:y,successNotification:a,errorNotification:l,meta:{...A,...d},metaData:{...A,...d},dataProviderName:b,invalidates:g,optimisticUpdateMap:S},Ce=W(()=>{V({redirect:re,resource:_,id:L,meta:Ae(s,u)})},"onSuccess");return q!=="pessimistic"&&setTimeout(()=>{Ce()}),new Promise((_e,$e)=>(q!=="pessimistic"&&_e(),setTimeout(()=>{ke(se,{onSuccess:(X,Ee,De)=>{r&&r(X,ee,De),q==="pessimistic"&&Ce(),_e(X)},onError:(X,Ee,De)=>{if(o)return o(X,ee,De);$e()}})})))},"onFinishUpdate")},{elapsedTime:K}=pr({isLoading:te.mutationResult.isLoading||le.isFetching,interval:C==null?void 0:C.interval,onInterval:C==null?void 0:C.onInterval});return{...te,queryResult:le,onFinishAutoSave:ae,autoSaveProps:{status:ie.status,data:ie.data,error:ie.error},id:L,setId:z,redirect:(ee,se)=>{V({redirect:ee!==void 0?ee:G?"list":"edit",resource:_,id:se??L,meta:Ae(s,u)})},overtime:{elapsedTime:K}}},"useForm"),iK=W(()=>{let{show:e,edit:t,list:n,create:r}=Cn();return v.useCallback(({redirect:o,resource:i,id:a,meta:l={}})=>{if(o&&i)return i.show&&o==="show"&&a?e(i,a,void 0,l):i.edit&&o==="edit"&&a?t(i,a,void 0,l):i.create&&o==="create"?r(i,void 0,l):n(i,"push",l)},[])},"useRedirectionAfterSubmission"),Wp=W(()=>{let e=st(),{resource:t,resources:n}=Je(),r=Qo();return k.useCallback(({resource:o,action:i,meta:a})=>{var l;let s=o||t;if(!s)return;let u=(l=Zr(s,n,e==="legacy").find(c=>c.action===i))==null?void 0:l.route;return u?wo(u,s==null?void 0:s.meta,r,a):void 0},[n,t,r])},"useGetToPath"),mr=W(()=>{let e=v.useContext(Vp),{select:t}=Je(),n=Wp(),r=k.useMemo(()=>(e==null?void 0:e.go)??(()=>()=>{}),[e==null?void 0:e.go])();return v.useCallback(o=>{if(typeof o.to!="object")return r({...o,to:o.to});let{resource:i}=t(o.to.resource);aK(o.to,i);let a=n({resource:i,action:o.to.action,meta:{id:o.to.id,...o.to.meta}});return r({...o,to:a})},[t,r])},"useGo"),aK=W((e,t)=>{if(!(e!=null&&e.action)||!(e!=null&&e.resource))throw new Error('[useGo]: "action" or "resource" is required.');if(["edit","show","clone"].includes(e==null?void 0:e.action)&&!e.id)throw new Error(`[useGo]: [action: ${e.action}] requires an "id" for resource [resource: ${e.resource}]`);if(!t[e.action])throw new Error(`[useGo]: [action: ${e.action}] is not defined for [resource: ${e.resource}]`)},"handleResourceErrors"),ay=W(()=>{let e=v.useContext(Vp);return k.useMemo(()=>(e==null?void 0:e.back)??(()=>()=>{}),[e==null?void 0:e.back])()},"useBack"),Cn=W(()=>{let{resources:e}=Je(),t=st(),{useHistory:n}=zt(),r=n(),o=Qo(),i=mr(),a=ay(),l=W((m,p="push")=>{t==="legacy"?r[p](m):i({to:m,type:p})},"handleUrl"),s=W((m,p={})=>{var h;if(t==="legacy"){let g=typeof m=="string"?ur(m,e,!0)??{name:m,route:m}:m,x=Zr(g,e,!0).find(w=>w.action==="create");return x?wo(x.route,g==null?void 0:g.meta,o,p):""}let y=typeof m=="string"?ur(m,e)??{name:m}:m,b=(h=Zr(y,e).find(g=>g.action==="create"))==null?void 0:h.route;return b?i({to:wo(b,y==null?void 0:y.meta,o,p),type:"path"}):""},"createUrl"),u=W((m,p,h={})=>{var y;let b=encodeURIComponent(p);if(t==="legacy"){let w=typeof m=="string"?ur(m,e,!0)??{name:m,route:m}:m,P=Zr(w,e,!0).find(C=>C.action==="edit");return P?wo(P.route,w==null?void 0:w.meta,o,{...h,id:b}):""} Line truncated
If you don't use the \`setShowId\` method to set the \`showId\`, you should pass the \`id\` prop to \`useShow\`. Otherwise, \`useShow\` will not be able to infer the \`id\` from the current URL.
See https://refine.dev/docs/api-reference/core/hooks/show/useShow/#resource`);let w=XL({resource:m,id:b??"",queryOptions:{enabled:b!==void 0,...u},successNotification:n,errorNotification:r,meta:x,metaData:x,liveMode:a,onLiveEvent:l,dataProviderName:s}),{elapsedTime:P}=pr({isLoading:w.isFetching,interval:c==null?void 0:c.interval,onInterval:c==null?void 0:c.onInterval});return{queryResult:w,showId:b,setShowId:g,overtime:{elapsedTime:P}}},"useShow");W(({resourceName:e,resource:t,mapData:n=W(c=>c,"mapData"),paparseOptions:r,batchSize:o=Number.MAX_SAFE_INTEGER,onFinish:i,meta:a,metaData:l,onProgress:s,dataProviderName:u}={})=>{let[c,d]=v.useState(0),[f,m]=v.useState(0),[p,h]=v.useState(!1),{resource:y,identifier:b}=Je(t??e),g=qn(),x=Gq(),w=JL(),P=g({resource:y,meta:Ae(a,l)}),C;o===1?C=w:C=x;let E=W(()=>{m(0),d(0),h(!1)},"handleCleanup"),S=W(I=>{let R={succeeded:I.filter(_=>_.type==="success"),errored:I.filter(_=>_.type==="error")};i==null||i(R),h(!1)},"handleFinish");v.useEffect(()=>{s==null||s({totalAmount:f,processedAmount:c})},[f,c]);let M=W(({file:I})=>(E(),new Promise(R=>{h(!0),yL.parse(I,{complete:async({data:_})=>{let D=pq(_,n);if(m(D.length),o===1){let T=D.map(N=>W(async()=>({response:await w.mutateAsync({resource:b??"",values:N,successNotification:!1,errorNotification:!1,dataProviderName:u,meta:P,metaData:P}),value:N}),"fn")),F=await fO(T,({response:N,value:$})=>(d(L=>L+1),{response:[N.data],type:"success",request:[$]}),(N,$)=>({response:[N],type:"error",request:[D[$]]}));R(F)}else{let T=jG(D,o),F=T.map($=>W(async()=>({response:await x.mutateAsync({resource:b??"",values:$,successNotification:!1,errorNotification:!1,dataProviderName:u,meta:P,metaData:P}),value:$,currentBatchLength:$.length}),"fn")),N=await fO(F,({response:$,currentBatchLength:L,value:z})=>(d(B=>B+L),{response:$.data,type:"success",request:z}),($,L)=>({response:[$],type:"error",request:T[L]}));R(N)}},...r})}).then(R=>(S(R),R))),"handleChange");return{inputProps:{type:"file",accept:".csv",onChange:I=>{I.target.files&&I.target.files.length>0&&M({file:I.target.files[0]})}},mutationResult:C,isLoading:p,handleChange:M}},"useImport");var lK=W(({defaultVisible:e=!1}={})=>{let[t,n]=v.useState(e),r=v.useCallback(()=>n(!0),[t]),o=v.useCallback(()=>n(!1),[t]);return{visible:t,show:r,close:o}},"useModal"),iD=W(({resource:e,action:t,meta:n,legacy:r})=>Wp()({resource:e,action:t,meta:n,legacy:r}),"useToPath"),Gn=W(()=>{let e=v.useContext(Vp);return e!=null&&e.Link?e.Link:W(({to:t,...n})=>k.createElement("a",{href:t,...n}),"FallbackLink")},"useLink"),Sl={useHistory:()=>!1,useLocation:()=>!1,useParams:()=>({}),Prompt:()=>null,Link:()=>null},sK=k.createContext(Sl),QS=sK,uK=W(({children:e,useHistory:t,useLocation:n,useParams:r,Prompt:o,Link:i,routes:a})=>k.createElement(QS.Provider,{value:{useHistory:t??Sl.useHistory,useLocation:n??Sl.useLocation,useParams:r??Sl.useParams,Prompt:o??Sl.Prompt,Link:i??Sl.Link,routes:a??Sl.routes}},e),"LegacyRouterContextProvider"),zt=W(()=>{let e=v.useContext(QS),{useHistory:t,useLocation:n,useParams:r,Prompt:o,Link:i,routes:a}=e??Sl;return{useHistory:t,useLocation:n,useParams:r,Prompt:o,Link:i,routes:a}},"useRouterContext"),aa=k.createContext({options:{buttons:{enableAccessControl:!0,hideIfUnauthorized:!1}}}),cK=W(({can:e,children:t,options:n})=>k.createElement(aa.Provider,{value:{can:e,options:n?{...n,buttons:{enableAccessControl:!0,hideIfUnauthorized:!1,...n.buttons}}:{buttons:{enableAccessControl:!0,hideIfUnauthorized:!1},queryOptions:void 0}}},t),"AccessControlContextProvider"),YS=W(e=>{if(!e)return;let{icon:t,list:n,edit:r,create:o,show:i,clone:a,children:l,meta:s,options:u,...c}=e,{icon:d,...f}=s??{},{icon:m,...p}=u??{};return{...c,...s?{meta:f}:{},...u?{options:p}:{}}},"sanitizeResource"),xu=W(({action:e,resource:t,params:n,queryOptions:r})=>{let{can:o,options:i}=v.useContext(aa),{keys:a,preferLegacyKeys:l}=Ut(),{queryOptions:s}=i||{},u={...s,...r},{resource:c,...d}=n??{},f=YS(c),m=Ho({queryKey:a().access().resource(t).action(e).params({params:{...d,resource:f},enabled:u==null?void 0:u.enabled}).get(l),queryFn:()=>(o==null?void 0:o({action:e,resource:t,params:{...d,resource:f}}))??Promise.resolve({can:!0}),enabled:typeof o<"u",...u,meta:{...u==null?void 0:u.meta,...bt()},retry:!1});return typeof o>"u"?{data:{can:!0}}:m},"useCan"),dK=W(()=>{let{can:e}=k.useContext(aa);return{can:k.useMemo(()=>e?W(async({params:t,...n})=>{let r=t!=null&&t.resource?YS(t.resource):void 0;return e({...n,...t?{params:{...t,resource:r}}:{}})},"canWithSanitizedResource"):void 0,[e])}},"useCanWithoutCache"),fK=W(e=>{let[t,n]=v.useState([]),[r,o]=v.useState([]),[i,a]=v.useState([]),{resource:l,sort:s,sorters:u,filters:c=[],optionLabel:d="title",optionValue:f="id",searchField:m=typeof d=="string"?d:"title",debounce:p=300,successNotification:h,errorNotification:y,defaultValueQueryOptions:b,queryOptions:g,fetchSize:x,pagination:w,hasPagination:P=!1,liveMode:C,defaultValue:E=[],onLiveEvent:S,onSearch:M,liveParams:I,meta:R,metaData:_,dataProviderN Line truncated
For more information, see https://refine.dev/docs/api-reference/core/hooks/useBreadcrumb/#i18n-support`),u.push({label:o(`buttons.${l}`,s.humanize(l))})):u.push({label:o(d,s.humanize(l))})}return{breadcrumbs:u}},"useBreadcrumb"),Yh=W((e,t,n=!1)=>{let r=[],o=Jl(e,t);for(;o;)r.push(o),o=Jl(o,t);return r.reverse(),`/${[...r,e].map(i=>Ha((n?i.route:void 0)??i.identifier??i.name)).join("/").replace(/^\//,"")}`},"createResourceKey"),hK=W((e,t=!1)=>{let n={item:{name:"__root__"},children:{}};e.forEach(o=>{let i=[],a=Jl(o,e);for(;a;)i.push(a),a=Jl(a,e);i.reverse();let l=n;i.forEach(u=>{let c=(t?u.route:void 0)??u.identifier??u.name;l.children[c]||(l.children[c]={item:u,children:{}}),l=l.children[c]});let s=(t?o.route:void 0)??o.identifier??o.name;l.children[s]||(l.children[s]={item:o,children:{}})});let r=W(o=>{let i=[];return Object.keys(o.children).forEach(a=>{let l=Yh(o.children[a].item,e,t),s={...o.children[a].item,key:l,children:r(o.children[a])};i.push(s)}),i},"flatten");return r(n)},"createTree"),wO=W(e=>e.split("?")[0].split("#")[0].replace(/(.+)(\/$)/,"$1"),"getCleanPath"),XS=W(({meta:e,hideOnMissingParameter:t}={hideOnMissingParameter:!0})=>{let n=Qe(),r=Wp(),o=st(),{resource:i,resources:a}=Je(),{pathname:l}=Qo(),{useLocation:s}=zt(),{pathname:u}=s(),c=oa(),d=`/${((o==="legacy"?wO(u):l?wO(l):void 0)??"").replace(/^\//,"")}`,f=i?Yh(i,a,o==="legacy"):d??"",m=k.useMemo(()=>{if(!i)return[];let y=Jl(i,a),b=[Yh(i,a)];for(;y;)b.push(Yh(y,a)),y=Jl(y,a);return b},[]),p=k.useCallback(y=>{var b,g,x,w,P,C;if((((b=y==null?void 0:y.meta)==null?void 0:b.hide)??((g=y==null?void 0:y.options)==null?void 0:g.hide))||!(y!=null&&y.list)&&y.children.length===0)return;let E=y.list?r({resource:y,action:"list",legacy:o==="legacy",meta:e}):void 0;if(!(t&&E&&E.match(/(\/|^):(.+?)(\/|$){1}/)))return{...y,route:E,icon:Ae((x=y.meta)==null?void 0:x.icon,(w=y.options)==null?void 0:w.icon,y.icon),label:Ae((P=y==null?void 0:y.meta)==null?void 0:P.label,(C=y==null?void 0:y.options)==null?void 0:C.label)??n(`${y.name}.${y.name}`,c(y.name,"plural"))}},[o,e,r,n,t]),h=k.useMemo(()=>{let y=hK(a,o==="legacy"),b=W(g=>g.flatMap(x=>{let w=b(x.children),P=p({...x,children:w});return P?[P]:[]}),"prepare");return b(y)},[a,o,p]);return{defaultOpenKeys:m,selectedKey:f,menuItems:h}},"useMenu"),qn=W(()=>{let{params:e}=Qo();return W(({resource:t,meta:n}={})=>{let{meta:r}=YS(t)??{meta:{}},{filters:o,sorters:i,current:a,pageSize:l,...s}=e??{};return{...r,...s,...n}},"getMetaFn")},"useMeta");W(()=>{let[e,t]=v.useState(),n=Qe(),{push:r}=Cn(),o=mr(),i=st(),{resource:a,action:l}=Je();return v.useEffect(()=>{a&&l&&t(n("pages.error.info",{action:l,resource:a.name},`You may have forgotten to add the "${l}" component to "${a.name}" resource.`))},[a,l]),k.createElement(k.Fragment,null,k.createElement("h1",null,n("pages.error.404",void 0,"Sorry, the page you visited does not exist.")),e&&k.createElement("p",null,e),k.createElement("button",{onClick:()=>{i==="legacy"?r("/"):o({to:"/"})}},n("pages.error.backHome",void 0,"Back Home")))},"ErrorComponent");var gK=W(()=>{let[e,t]=v.useState(""),[n,r]=v.useState(""),o=Qe(),i=jt(),{mutate:a}=zp({v3LegacyAuthProviderCompatible:!!(i!=null&&i.isLegacy)});return k.createElement(k.Fragment,null,k.createElement("h1",null,o("pages.login.title","Sign in your account")),k.createElement("form",{onSubmit:l=>{l.preventDefault(),a({username:e,password:n})}},k.createElement("table",null,k.createElement("tbody",null,k.createElement("tr",null,k.createElement("td",null,o("pages.login.username",void 0,"username"),":"),k.createElement("td",null,k.createElement("input",{type:"text",size:20,autoCorrect:"off",spellCheck:!1,autoCapitalize:"off",autoFocus:!0,required:!0,value:e,onChange:l=>t(l.target.value)}))),k.createElement("tr",null,k.createElement("td",null,o("pages.login.password",void 0,"password"),":"),k.createElement("td",null,k.createElement("input",{type:"password",required:!0,size:20,value:n,onChange:l=>r(l.target.value)}))))),k.createElement("br",null),k.createElement("input",{type:"submit",value:"login"})))},"LoginPage"),vK=W(({providers:e,registerLink:t,forgotPasswordLink:n,rememberMe:r,contentProps:o,wrapperProps:i,renderContent:a,formProps:l,title:s=void 0,hideForm:u})=>{let c=st(),d=Gn(),{Link:f}=zt(),m=c==="legacy"?f:d,[p,h]=v.useState(""),[y,b]=v.useState(""),[g,x]=v.useState(!1),w=Qe(),P=jt(),{mutate:C}=zp({v3LegacyAuthProviderCompatible:!!(P!=null&&P.isLegacy)}),E=W((I,R)=>k.createElement(m,{to:I},R),"renderLink"),S=W(()=>e?e.map(I=>k.createElement("div",{key:I.name,style:{display:"flex",alignItems:"center",justifyContent:"center",marginBottom:"1rem"}},k.createElement("button",{onClick:()=>C({providerName:I.name}),style:{display:"flex",alignItems:"center"}},I==null?void 0:I.icon,I.label??k.createElement("label",null,I.label)))):null,"renderProviders"),M=k.createElement("div",{...o},k.createElement("h1",{style:{textAlign:"center"}},w("pages.login.title","Sign in to your account")),S(),!u&&k.createElement(k.Fragment,null,k.creat Line truncated
`,`
`,k.createElement("span",{style:{color:"#FF7B72"}},"export")," ",k.createElement("span",{style:{color:"#FF7B72"}},"default")," ",k.createElement("span",null,k.createElement("span",{style:{color:"#FF7B72"}},"function")," ",k.createElement("span",{style:{color:"#FFA657"}},"App"),"(",k.createElement("span",{style:{color:"rgb(222, 147, 95)"}}),")"," "),"{",`
`," ",k.createElement("span",{style:{color:"#FF7B72"}},"return")," (",`
`," ",k.createElement("span",null,k.createElement("span",{style:{color:"#79C0FF"}},"<",k.createElement("span",{style:{color:"#79C0FF"}},"Refine"),`
`," ",k.createElement("span",{style:{color:"#E5ECF2",opacity:.6}},"// ",k.createElement("span",null,"...")),`
`," ",">"),`
`," ",k.createElement("span",{style:{opacity:.6}},"{","/* ... */","}"),`
`," ",k.createElement("span",{style:{color:"#79C0FF"}},"<",k.createElement("span",{style:{color:"#79C0FF"}},"WelcomePage")," />"),`
`," ",k.createElement("span",{style:{opacity:.6}},"{","/* ... */","}"),`
`," ",k.createElement("span",{style:{color:"#79C0FF"}},"</",k.createElement("span",{style:{color:"#79C0FF"}},"Refine"),">")),`
`," ",");",`
`,"}"),"ExampleImplementation"),$K=W(e=>k.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:204,height:56,viewBox:"0 0 204 56",fill:"none",...e},k.createElement("path",{fill:"url(#welcome-page-error-gradient-a)",d:"M12 0H0v12L12 0Z"}),k.createElement("path",{fill:"url(#welcome-page-error-gradient-b)",d:"M28 0h-8L0 20v8L28 0Z"}),k.createElement("path",{fill:"url(#welcome-page-error-gradient-c)",d:"M36 0h8L0 44v-8L36 0Z"}),k.createElement("path",{fill:"url(#welcome-page-error-gradient-d)",d:"M60 0h-8L0 52v4h4L60 0Z"}),k.createElement("path",{fill:"url(#welcome-page-error-gradient-e)",d:"M68 0h8L20 56h-8L68 0Z"}),k.createElement("path",{fill:"url(#welcome-page-error-gradient-f)",d:"M92 0h-8L28 56h8L92 0Z"}),k.createElement("path",{fill:"url(#welcome-page-error-gradient-g)",d:"M100 0h8L52 56h-8l56-56Z"}),k.createElement("path",{fill:"url(#welcome-page-error-gradient-h)",d:"M124 0h-8L60 56h8l56-56Z"}),k.createElement("path",{fill:"url(#welcome-page-error-gradient-i)",d:"M140 0h-8L76 56h8l56-56Z"}),k.createElement("path",{fill:"url(#welcome-page-error-gradient-j)",d:"M132 0h8L84 56h-8l56-56Z"}),k.createElement("path",{fill:"url(#welcome-page-error-gradient-k)",d:"M156 0h-8L92 56h8l56-56Z"}),k.createElement("path",{fill:"url(#welcome-page-error-gradient-l)",d:"M164 0h8l-56 56h-8l56-56Z"}),k.createElement("path",{fill:"url(#welcome-page-error-gradient-m)",d:"M188 0h-8l-56 56h8l56-56Z"}),k.createElement("path",{fill:"url(#welcome-page-error-gradient-n)",d:"M204 0h-8l-56 56h8l56-56Z"}),k.createElement("defs",null,k.createElement("radialGradient",{id:"welcome-page-error-gradient-a",cx:0,cy:0,r:1,gradientTransform:"scale(124)",gradientUnits:"userSpaceOnUse"},k.createElement("stop",{stopColor:"#FF4C4D",stopOpacity:.1}),k.createElement("stop",{offset:1,stopColor:"#FF4C4D",stopOpacity:0})),k.createElement("radialGradient",{id:"welcome-page-error-gradient-b",cx:0,cy:0,r:1,gradientTransform:"scale(124)",gradientUnits:"userSpaceOnUse"},k.createElement("stop",{stopColor:"#FF4C4D",stopOpacity:.1}),k.createElement("stop",{offset:1,stopColor:"#FF4C4D",stopOpacity:0})),k.createElement("radialGradient",{id:"welcome-page-error-gradient-c",cx:0,cy:0,r:1,gradientTransform:"scale(124)",gradientUnits:"userSpaceOnUse"},k.createElement("stop",{stopColor:"#FF4C4D",stopOpacity:.1}),k.createElement("stop",{offset:1,stopColor:"#FF4C4D",stopOpacity:0})),k.createElement("radialGradient",{id:"welcome-page-error-gradient-d",cx:0,cy:0,r:1,gradientTransform:"scale(124)",gradientUnits:"userSpaceOnUse"},k.createElement("stop",{stopColor:"#FF4C4D",stopOpacity:.1}),k.createElement("stop",{offset:1,stopColor:"#FF4C4D",stopOpacity:0})),k.createElement("radialGradient",{id:"welcome-page-error-gradient-e",cx:0,cy:0,r:1,gradientTransform:"scale(124)",gradientUnits:"userSpaceOnUse"},k.createElement("stop",{stopColor:"#FF4C4D",stopOpacity:.1}),k.createElement("stop",{offset:1,stopColor:"#FF4C4D",stopOpacity:0})),k.createElement("radialGradient",{id:"welcome-page-error-gradient-f",cx:0,cy:0,r:1,gradientTransform:"scale(124)",gradientUnits:"userSpaceOnUse"},k.createElement("stop",{stopColor:"#FF4C4D",stopOpacity:.1}),k.createElement("stop",{offset:1,stopColor:"#FF4C4D",stopOpacity:0})),k.createElement("radialGradient",{id:"welcome-page-error-gradient-g",cx:0,cy:0,r:1,gradientTransform:"scale(124)",gradientUnits:"userSpaceOnUse"},k.createElement("stop",{stopColor:"#FF4C4D",stopOpacity:.1}),k.createElement("stop",{offset:1,stopColor:"#FF4C4D",stopOpacity:0})),k.createElement("radialGradient",{id:"welcome-page-error-gradient-h",cx:0,cy:0,r:1,gradientTransform:"scale(124)",gradientUnits:"userSpaceOnUse"},k.createElement("stop",{stopColor:"#FF4C4D",stopOpacity:.1}),k.createElement("stop",{offset:1,stopColor:"#FF4C4D",stopOpacity:0})),k.createElement("radialGradient",{id:"welcome-page-error-gradient-i",cx:0,cy:0,r:1,gradientTransform:"scale(124)",gradientUnits:"userSpaceOnUse"},k.createElement("stop",{stopColor:"#FF4C4D",stopOpacity:.1}),k.createElement("stop",{offset:1,stopColor:"#FF4C4D",stopOpacity:0})),k.createElement("radialGradient",{id:"welcome-page-error-gradient-j",cx:0,cy:0,r:1,gradientTransform:"scale(124)",gradientUnits:"userSpaceOnUse"},k.createElement("stop",{stopColor:"#FF4C4D",stopOpacity:.1}),k.createElement("stop",{offset:1,stopColor:"#FF4C4D",stopOpacity:0})),k.createElement("radialGradient",{id:"welcome-page-error-gradient-k",cx:0,cy:0,r:1,gradientTransform:"scale(124)",gradientUnits:"userSpaceOnUse"},k.createElement("stop",{stopColor:"#FF4C4D",stopOpacity:.1}),k.createElement("stop",{offset:1,stopColor:"#FF4C4D",stopOpacity:0})),k.createElement("radialGradient",{id:"welcome-page-error-gradient-l",cx:0,cy:0,r:1,gradientTransform:"scale(124)",gradientUnits:"userSpaceOnUse"},k.createElement("stop",{stopColor:"#FF4C4D",stopOpacity:.1}),k.createElement("stop",{offset:1,stopColor:"#FF4C4D",stopOpacity:0})),k.createElement("radialGradient",{id:"welcome-page-error-gradient-m",cx:0,cy:0,r:1,gradientTransform:"scale(124)",gradientUnits:"userS Line truncated
.bg-top-announcement {
border-bottom: 1px solid rgba(71, 235, 235, 0.15);
background: radial-gradient(
218.19% 111.8% at 0% 0%,
rgba(71, 235, 235, 0.1) 0%,
rgba(71, 235, 235, 0.2) 100%
),
#14141f;
}
`,`
.top-announcement-mask {
mask-image: url(https://refine.ams3.cdn.digitaloceanspaces.com/website/static/assets/hexagon.svg);
-webkit-mask-image: url(https://refine.ams3.cdn.digitaloceanspaces.com/website/static/assets/hexagon.svg);
mask-repeat: repeat;
-webkit-mask-repeat: repeat;
background: rgba(71, 235, 235, 0.25);
}
`,`
.banner {
display: flex;
@media (max-width: 1000px) {
display: none;
}
}`,`
.gh-link, .gh-link:hover, .gh-link:active, .gh-link:visited, .gh-link:focus {
text-decoration: none;
z-index: 9;
}
`,`
@keyframes top-announcement-glow {
0% {
opacity: 1;
}
100% {
opacity: 0;
}
}
`],GK="If you find Refine useful, you can contribute to its growth by giving it a star on GitHub";W(()=>(v.useEffect(()=>{let e=document.createElement("style");document.head.appendChild(e),WK.forEach(t=>{var n;return(n=e.sheet)==null?void 0:n.insertRule(t,e.sheet.cssRules.length)})},[]),k.createElement("div",{className:"banner bg-top-announcement",style:{width:"100%",height:"48px"}},k.createElement("div",{style:{position:"relative",display:"flex",justifyContent:"center",alignItems:"center",paddingLeft:"200px",width:"100%",maxWidth:"100vw",height:"100%",borderBottom:"1px solid #47ebeb26"}},k.createElement("div",{className:"top-announcement-mask",style:{position:"absolute",left:0,top:0,width:"100%",height:"100%",borderBottom:"1px solid #47ebeb26"}},k.createElement("div",{style:{position:"relative",width:"960px",height:"100%",display:"flex",justifyContent:"space-between",margin:"0 auto"}},k.createElement("div",{style:{width:"calc(50% - 300px)",height:"100%",position:"relative"}},k.createElement(th,{style:{animationDelay:"1.5s",position:"absolute",top:"2px",right:"220px"},id:"1"}),k.createElement(th,{style:{animationDelay:"1s",position:"absolute",top:"8px",right:"100px",transform:"rotate(180deg)"},id:"2"}),k.createElement(CO,{style:{position:"absolute",right:"10px"},id:"3"})),k.createElement("div",{style:{width:"calc(50% - 300px)",height:"100%",position:"relative"}},k.createElement(th,{style:{animationDelay:"2s",position:"absolute",top:"6px",right:"180px",transform:"rotate(180deg)"},id:"4"}),k.createElement(th,{style:{animationDelay:"0.5s",transitionDelay:"1.3s",position:"absolute",top:"2px",right:"40px"},id:"5"}),k.createElement(CO,{style:{position:"absolute",right:"-70px"},id:"6"})))),k.createElement(qK,{text:GK})))),"GitHubBanner");var qK=W(({text:e})=>k.createElement("a",{className:"gh-link",href:"https://s.refine.dev/github-support",target:"_blank",rel:"noreferrer",style:{position:"absolute",height:"100%",padding:"0 60px",display:"flex",flexWrap:"nowrap",whiteSpace:"nowrap",justifyContent:"center",alignItems:"center",backgroundImage:"linear-gradient(90deg, rgba(31, 63, 72, 0.00) 0%, #1F3F48 10%, #1F3F48 90%, rgba(31, 63, 72, 0.00) 100%)"}},k.createElement("div",{style:{color:"#fff",display:"flex",flexDirection:"row",gap:"8px"}},k.createElement("span",{style:{display:"flex",flexDirection:"row",justifyContent:"center",alignItems:"center"}},"⭐️"),k.createElement("span",{className:"text",style:{fontSize:"16px",lineHeight:"24px"}},e),k.createElement("span",{style:{display:"flex",flexDirection:"row",justifyContent:"center",alignItems:"center"}},"⭐️"))),"Text"),th=W(({style:e,...t})=>k.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:80,height:40,fill:"none",style:{opacity:1,animation:"top-announcement-glow 1s ease-in-out infinite alternate",...e}},k.createElement("circle",{cx:40,r:40,fill:`url(#${t.id}-a)`,fillOpacity:.5}),k.createElement("defs",null,k.createElement("radialGradient",{id:`${t.id}-a`,cx:0,cy:0,r:1,gradientTransform:"matrix(0 40 -40 0 40 0)",gradientUnits:"userSpaceOnUse"},k.createElement("stop",{stopColor:"#47EBEB"}),k.createElement("stop",{offset:1,stopColor:"#47EBEB",stopOpacity:0})))),"GlowSmall"),CO=W(({style:e,...t})=>k.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:120,height:48,fill:"none",...t,style:{opacity:1,animation:"top-announcement-glow 1s ease-in-out infinite alternate",...e}},k.createElement("circle",{cx:60,cy:24,r:60,fill:`url(#${t.id}-a)`,fillOpacity:.5}),k.createElement("defs",null,k.createElement("radialGradient",{id:`${t.id}-a`,cx:0,cy:0,r:1,gradientTransform:"matrix(0 60 -60 0 60 24)",gradientUnits:"userSpaceOnUse"},k.createElement("stop",{stopColor:"#47EBEB"}),k.createElement("stop",{offset:1,stopColor:"#47EBEB",stopOpacity:0})))),"GlowBig"),KK=W(({status:e,elements:{success:t=k.createElement(nh,{key:"autoSave.success",defaultMessage:"saved"}),error:n=k.createElement(nh,{key:"autoSave.error",defaultMessage:"auto save failure"}),loading:r=k.createElement(nh,{key:"autoSave.loading",defaultMessage:"saving..."}),idle:o=k.createElement(nh,{key:"autoSave.idle",defaultMessage:"waiting for changes"})}={}})=>{switch(e){case"success":return k.createElement(k.Fragment,null,t);case"error":return k.createElement(k.Fragment,null,n);case"loading":return k.createElement(k.Fragment,null,r);default:return k.createElement(k.Fragment,null,o)}},"AutoSaveIndicator"),nh=W(({key:e,defaultMessage:t})=>{let n=Qe();return k.createElement("span",null,n(e,t))},"Message"),Zn={},kt={},gw=we&&we.__assign||function(){return gw=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},gw.apply(this,arguments)},QK=we&&we.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),YK=we&&we.__setModuleDefault||(Object.create?function(e,t){O Line truncated
* react-is.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var Kn=typeof Symbol=="function"&&Symbol.for,lE=Kn?Symbol.for("react.element"):60103,sE=Kn?Symbol.for("react.portal"):60106,xy=Kn?Symbol.for("react.fragment"):60107,wy=Kn?Symbol.for("react.strict_mode"):60108,Cy=Kn?Symbol.for("react.profiler"):60114,Sy=Kn?Symbol.for("react.provider"):60109,Ey=Kn?Symbol.for("react.context"):60110,uE=Kn?Symbol.for("react.async_mode"):60111,Py=Kn?Symbol.for("react.concurrent_mode"):60111,ky=Kn?Symbol.for("react.forward_ref"):60112,$y=Kn?Symbol.for("react.suspense"):60113,kZ=Kn?Symbol.for("react.suspense_list"):60120,Iy=Kn?Symbol.for("react.memo"):60115,Oy=Kn?Symbol.for("react.lazy"):60116,$Z=Kn?Symbol.for("react.block"):60121,IZ=Kn?Symbol.for("react.fundamental"):60117,OZ=Kn?Symbol.for("react.responder"):60118,MZ=Kn?Symbol.for("react.scope"):60119;function ho(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case lE:switch(e=e.type,e){case uE:case Py:case xy:case Cy:case wy:case $y:return e;default:switch(e=e&&e.$$typeof,e){case Ey:case ky:case Oy:case Iy:case Sy:return e;default:return t}}case sE:return t}}}function KD(e){return ho(e)===Py}At.AsyncMode=uE;At.ConcurrentMode=Py;At.ContextConsumer=Ey;At.ContextProvider=Sy;At.Element=lE;At.ForwardRef=ky;At.Fragment=xy;At.Lazy=Oy;At.Memo=Iy;At.Portal=sE;At.Profiler=Cy;At.StrictMode=wy;At.Suspense=$y;At.isAsyncMode=function(e){return KD(e)||ho(e)===uE};At.isConcurrentMode=KD;At.isContextConsumer=function(e){return ho(e)===Ey};At.isContextProvider=function(e){return ho(e)===Sy};At.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===lE};At.isForwardRef=function(e){return ho(e)===ky};At.isFragment=function(e){return ho(e)===xy};At.isLazy=function(e){return ho(e)===Oy};At.isMemo=function(e){return ho(e)===Iy};At.isPortal=function(e){return ho(e)===sE};At.isProfiler=function(e){return ho(e)===Cy};At.isStrictMode=function(e){return ho(e)===wy};At.isSuspense=function(e){return ho(e)===$y};At.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===xy||e===Py||e===Cy||e===wy||e===$y||e===kZ||typeof e=="object"&&e!==null&&(e.$$typeof===Oy||e.$$typeof===Iy||e.$$typeof===Sy||e.$$typeof===Ey||e.$$typeof===ky||e.$$typeof===IZ||e.$$typeof===OZ||e.$$typeof===MZ||e.$$typeof===$Z)};At.typeOf=ho;qD.exports=At;var RZ=qD.exports,QD=RZ,TZ={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},_Z={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},YD={};YD[QD.ForwardRef]=TZ;YD[QD.Memo]=_Z;var FZ=!0;function AZ(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):r+=o+" "}),r}var XD=function(t,n,r){var o=t.key+"-"+n.name;(r===!1||FZ===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles)},ZD=function(t,n,r){XD(t,n,r);var o=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var i=n;do t.insert(n===i?"."+o:"",i,t.sheet,!0),i=i.next;while(i!==void 0)}};function LZ(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&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 DZ={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},NZ=/[A-Z]|^ms/g,jZ=/_EMO_([^_]+?)_([^]*?)_EMO_/g,JD=function(t){return t.charCodeAt(1)===45},zO=function(t){return t!=null&&typeof t!="boolean"},Xb=ND(function(e){return JD(e)?e:e.replace(NZ,"-$&").toLowerCase()}),BO=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(jZ,function(r,o,i){return Li={name:o,styles:i,next:Li},o})}return DZ[t]!==1&&!JD(t)&&typeof n=="number"&&n!==0?n+"px":n};function hp(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return Li={name:n.name,styles:n.styles,next:Li},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)Li={name:r.name,styles:r.styles,next:Li},r=r.next;var o=n.styles+";";return o}return zZ(e,t,n)}case"function":{if(e!==void 0){var i=Li,a=n(e);return Li=i,hp(e,t,a)}break}}if(t==null)return n;Line truncated
* @mui/styled-engine v5.15.11
*
* @license MIT
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/function dE(e,t){return Mw(e,t)}const oN=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},ZZ=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:rN,StyledEngineProvider:YZ,ThemeContext:Qp,css:qc,default:dE,internal_processStyles:oN,keyframes:cs},Symbol.toStringTag,{value:"Module"}));function ka(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 iN(e){if(!ka(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=iN(e[n])}),t}function kr(e,t,n={clone:!0}){const r=n.clone?O({},e):e;return ka(e)&&ka(t)&&Object.keys(t).forEach(o=>{o!=="__proto__"&&(ka(t[o])&&o in e&&ka(e[o])?r[o]=kr(e[o],t[o],n):n.clone?r[o]=ka(t[o])?iN(t[o]):t[o]:r[o]=t[o])}),r}const JZ=Object.freeze(Object.defineProperty({__proto__:null,default:kr,isPlainObject:ka},Symbol.toStringTag,{value:"Module"})),eJ=["values","unit","step"],tJ=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>O({},n,{[r.key]:r.val}),{})};function aN(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=ue(e,eJ),i=tJ(t),a=Object.keys(i);function l(f){return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n})`}function s(f){return`@media (max-width:${(typeof t[f]=="number"?t[f]:f)-r/100}${n})`}function u(f,m){const p=a.indexOf(m);return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n}) and (max-width:${(p!==-1&&typeof t[a[p]]=="number"?t[a[p]]:m)-r/100}${n})`}function c(f){return a.indexOf(f)+1<a.length?u(f,a[a.indexOf(f)+1]):l(f)}function d(f){const m=a.indexOf(f);return m===0?l(a[1]):m===a.length-1?s(a[m]):u(f,a[a.indexOf(f)+1]).replace("@media","@media not all and")}return O({keys:a,values:i,up:l,down:s,between:u,only:c,not:d,unit:n},o)}const nJ={borderRadius:4},rJ=nJ;function Ff(e,t){return t?kr(e,t,{clone:!1}):e}const fE={xs:0,sm:600,md:900,lg:1200,xl:1536},GO={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${fE[e]}px)`};function Wr(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const i=r.breakpoints||GO;return t.reduce((a,l,s)=>(a[i.up(i.keys[s])]=n(t[s]),a),{})}if(typeof t=="object"){const i=r.breakpoints||GO;return Object.keys(t).reduce((a,l)=>{if(Object.keys(i.values||fE).indexOf(l)!==-1){const s=i.up(l);a[s]=n(t[l],l)}else{const s=l;a[s]=t[s]}return a},{})}return n(t)}function lN(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,o)=>{const i=e.up(o);return r[i]={},r},{}))||{}}function sN(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function oJ(e,...t){const n=lN(e),r=[n,...t].reduce((o,i)=>kr(o,i),{});return sN(Object.keys(n),r)}function iJ(e,t){if(typeof e!="object")return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((o,i)=>{i<e.length&&(n[o]=!0)}):r.forEach(o=>{e[o]!=null&&(n[o]=!0)}),n}function Vs({values:e,breakpoints:t,base:n}){const r=n||iJ(e,t),o=Object.keys(r);if(o.length===0)return e;let i;return o.reduce((a,l,s)=>(Array.isArray(e)?(a[l]=e[s]!=null?e[s]:e[i],i=s):typeof e=="object"?(a[l]=e[l]!=null?e[l]:e[i],i=l):a[l]=e,a),{})}function pe(e){if(typeof e!="string")throw new Error(Ua(7));return e.charAt(0).toUpperCase()+e.slice(1)}const aJ=Object.freeze(Object.defineProperty({__proto__:null,default:pe},Symbol.toStringTag,{value:"Module"}));function Kc(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,i)=>o&&o[i]?o[i]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function rv(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=Kc(e,n)||r,t&&(o=t(o,r,e)),o}function Sn(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=a=>{if(a[t]==null)return null;const l=a[t],s=a.theme,u=Kc(s,r)||{};return Wr(a,l,d=>{let f=rv(u,o,d);return d===f&&typeof d=="string"&&(f=rv(u,o,`${t}${d==="default"?"":pe(d)}`,d)),n===!1?f:{[n]:f}})};return i.propTypes={},i.filterProps=[t],i}function lJ(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const sJ={m:"margin",p:"padding"},uJ={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},qO={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},cJ=lJ(e=>{if(e.length>2)if(qO[e])e=qO[e];else return[e];const[t,n]=e.split(""),r=sJ[t],o=uJ[n]||"";return Array.isArray(o)?o.map(i=>r+i):[r+o]}),pE=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],mE=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...pE,...mE];function Yp(e,t,n,Line truncated
* @license React
* react-is.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var yE=Symbol.for("react.element"),bE=Symbol.for("react.portal"),Ly=Symbol.for("react.fragment"),Dy=Symbol.for("react.strict_mode"),Ny=Symbol.for("react.profiler"),jy=Symbol.for("react.provider"),zy=Symbol.for("react.context"),iee=Symbol.for("react.server_context"),By=Symbol.for("react.forward_ref"),Hy=Symbol.for("react.suspense"),Vy=Symbol.for("react.suspense_list"),Uy=Symbol.for("react.memo"),Wy=Symbol.for("react.lazy"),aee=Symbol.for("react.offscreen"),vN;vN=Symbol.for("react.module.reference");function Zo(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case yE:switch(e=e.type,e){case Ly:case Ny:case Dy:case Hy:case Vy:return e;default:switch(e=e&&e.$$typeof,e){case iee:case zy:case By:case Wy:case Uy:case jy:return e;default:return t}}case bE:return t}}}Lt.ContextConsumer=zy;Lt.ContextProvider=jy;Lt.Element=yE;Lt.ForwardRef=By;Lt.Fragment=Ly;Lt.Lazy=Wy;Lt.Memo=Uy;Lt.Portal=bE;Lt.Profiler=Ny;Lt.StrictMode=Dy;Lt.Suspense=Hy;Lt.SuspenseList=Vy;Lt.isAsyncMode=function(){return!1};Lt.isConcurrentMode=function(){return!1};Lt.isContextConsumer=function(e){return Zo(e)===zy};Lt.isContextProvider=function(e){return Zo(e)===jy};Lt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===yE};Lt.isForwardRef=function(e){return Zo(e)===By};Lt.isFragment=function(e){return Zo(e)===Ly};Lt.isLazy=function(e){return Zo(e)===Wy};Lt.isMemo=function(e){return Zo(e)===Uy};Lt.isPortal=function(e){return Zo(e)===bE};Lt.isProfiler=function(e){return Zo(e)===Ny};Lt.isStrictMode=function(e){return Zo(e)===Dy};Lt.isSuspense=function(e){return Zo(e)===Hy};Lt.isSuspenseList=function(e){return Zo(e)===Vy};Lt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Ly||e===Ny||e===Dy||e===Hy||e===Vy||e===aee||typeof e=="object"&&e!==null&&(e.$$typeof===Wy||e.$$typeof===Uy||e.$$typeof===jy||e.$$typeof===zy||e.$$typeof===By||e.$$typeof===vN||e.getModuleId!==void 0)};Lt.typeOf=Zo;gN.exports=Lt;var QO=gN.exports;const lee=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function yN(e){const t=`${e}`.match(lee);return t&&t[1]||""}function bN(e,t=""){return e.displayName||e.name||yN(e)||t}function YO(e,t,n){const r=bN(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function see(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return bN(e,"Component");if(typeof e=="object")switch(e.$$typeof){case QO.ForwardRef:return YO(e,e.render,"ForwardRef");case QO.Memo:return YO(e,e.type,"memo");default:return}}}const uee=Object.freeze(Object.defineProperty({__proto__:null,default:see,getFunctionName:yN},Symbol.toStringTag,{value:"Module"})),cee=["ownerState"],dee=["variants"],fee=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function pee(e){return Object.keys(e).length===0}function mee(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Zb(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const hee=vd(),gee=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function ah({defaultTheme:e,theme:t,themeId:n}){return pee(t)?e:t[n]||t}function vee(e){return e?(t,n)=>n[e]:null}function eg(e,t){let{ownerState:n}=t,r=ue(t,cee);const o=typeof e=="function"?e(O({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap(i=>eg(i,O({ownerState:n},r)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:i=[]}=o;let l=ue(o,dee);return i.forEach(s=>{let u=!0;typeof s.props=="function"?u=s.props(O({ownerState:n},r,n)):Object.keys(s.props).forEach(c=>{(n==null?void 0:n[c])!==s.props[c]&&r[c]!==s.props[c]&&(u=!1)}),u&&(Array.isArray(l)||(l=[l]),l.push(typeof s.style=="function"?s.style(O({ownerState:n},r,n)):s.style))}),l}return o}function yee(e={}){const{themeId:t,defaultTheme:n=hee,rootShouldForwardProp:r=Zb,slotShouldForwardProp:o=Zb}=e,i=a=>Zp(O({},a,{theme:ah(O({},a,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(a,l={})=>{oN(a,P=>P.filter(C=>!(C!=null&&C.__mui_systemSx)));const{name:s,slot:u,skipVariantsResolver:c,skipSx:d,overridesResolver:f=vee(gee(u))}=l,m=ue(l,fee),p=c!==void 0?c:u&&u!=="Root"&&u!=="root"||!1,h=d||!1;let y,b=Zb;u==="Root"||u==="root"?b=r:u?b=o:mee(a)&&(b=void 0);const g=dE(a,O({shouldForwardProp:b,label:y},m)),x=P=>typeof P=="function"&&P.__emotion_real!==P||ka(P)?C=>eg(P,O({},C,{theme:ah({theme:C.theme,defaultTheme:n,themeId:t})})):P,w=(P,...C)=>{let E=x(P);const S=C?C.map(x):[];s&&f&&S.push(R=>{const _=ah(O({},R,{defaultTheme:n,themeId:t}));if(!_.components||!_.components[s]||!_.components[s].styleOverrides)return null;const D=_.components[s].styleOverrides,T={};return Object.entries(D).forEach(([F,N])=>{T[F]=eg(N,O({},R,{theme:_}))}),f(R,T)}),s&&!p&&S.push(R=>{var _;const D=ah(O({},R,{defaultTheme:n,themeId:t})),T=D==null||(_=D.components)==null||(_=_[s])==null?void 0:_.variants;return eg({variants:T},O({},R,{theme:D}))}),h||S.push(i);const M=S.length-C.length;if(Array.isArray(P)&&M>0){const R=new Array(M).fill("");E=[...P,...R],E.raw=[...P.raw,...R]}const I=g(E,...S);return a.muiName&&(I.muiName=a.muiLine truncated
10.59L10 14.17L17.59 6.58L19 8L10 17Z`}))},ire=function(t){return k.createElement(ts,Object.assign({},t),k.createElement("path",{d:"M13,14H11V10H13M13,18H11V16H13M1,21H23L12,2L1,21Z"}))},are=function(t){return k.createElement(ts,Object.assign({},t),k.createElement("path",{d:`M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,
6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,
13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z`}))},lre=function(t){return k.createElement(ts,Object.assign({},t),k.createElement("path",{d:`M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,
0 22,12A10,10 0 0,0 12,2Z`}))},ch={fontSize:20,marginInlineEnd:8},sre={default:void 0,success:k.createElement(ore,{style:ch}),warning:k.createElement(ire,{style:ch}),error:k.createElement(are,{style:ch}),info:k.createElement(lre,{style:ch})};function Df(e,t){return e.reduce(function(n,r){return r==null?n:function(){for(var i=arguments.length,a=new Array(i),l=0;l<i;l++)a[l]=arguments[l];var s=[].concat(a);t&&s.indexOf(t)===-1&&s.push(t),n.apply(this,s),r.apply(this,s)}},function(){})}var ure=typeof window<"u"?v.useLayoutEffect:v.useEffect;function vM(e){var t=v.useRef(e);return ure(function(){t.current=e}),v.useCallback(function(){return t.current.apply(void 0,arguments)},[])}var cre=v.forwardRef(function(e,t){var n=e.children,r=e.autoHideDuration,o=e.ClickAwayListenerProps,i=e.disableWindowBlurListener,a=i===void 0?!1:i,l=e.onClose,s=e.onMouseEnter,u=e.onMouseLeave,c=e.open,d=e.resumeHideDuration,f=Kl(e,["children","autoHideDuration","ClickAwayListenerProps","disableWindowBlurListener","onClose","onMouseEnter","onMouseLeave","open","resumeHideDuration"]),m=v.useRef(),p=vM(function(){l&&l.apply(void 0,arguments)}),h=vM(function(P){!l||P==null||(clearTimeout(m.current),m.current=setTimeout(function(){p(null,Il.TIMEOUT)},P))});v.useEffect(function(){return c&&h(r),function(){clearTimeout(m.current)}},[c,r,h]);var y=function(){clearTimeout(m.current)},b=v.useCallback(function(){r!=null&&h(d??r*.5)},[r,d,h]),g=function(C){s&&s(C),y()},x=function(C){u&&u(C),b()},w=function(C){l&&l(C,Il.CLICKAWAY)};return v.useEffect(function(){if(!a&&c)return window.addEventListener("focus",b),window.addEventListener("blur",y),function(){window.removeEventListener("focus",b),window.removeEventListener("blur",y)}},[a,b,c]),v.createElement(ME,Yt({onClickAway:w},o),v.createElement("div",Yt({onMouseEnter:g,onMouseLeave:x,ref:t},f),n))}),va="SnackbarItem",br={contentRoot:va+"-contentRoot",lessPadding:va+"-lessPadding",variantSuccess:va+"-variantSuccess",variantError:va+"-variantError",variantInfo:va+"-variantInfo",variantWarning:va+"-variantWarning",message:va+"-message",action:va+"-action",wrappedRoot:va+"-wrappedRoot"},dre=fe(cre)(function(e){var t,n=e.theme,r=n.palette.mode||n.palette.type,o=kee(n.palette.background.default,r==="light"?.8:.98);return t={},t["&."+br.wrappedRoot]={position:"relative",transform:"translateX(0)",top:0,right:0,bottom:0,left:0},t["."+br.contentRoot]=Yt({},n.typography.body2,{backgroundColor:o,color:n.palette.getContrastText(o),alignItems:"center",padding:"6px 16px",borderRadius:"4px",boxShadow:"0px 3px 5px -1px rgba(0,0,0,0.2),0px 6px 10px 0px rgba(0,0,0,0.14),0px 1px 18px 0px rgba(0,0,0,0.12)"}),t["."+br.lessPadding]={paddingLeft:8*2.5},t["."+br.variantSuccess]={backgroundColor:"#43a047",color:"#fff"},t["."+br.variantError]={backgroundColor:"#d32f2f",color:"#fff"},t["."+br.variantInfo]={backgroundColor:"#2196f3",color:"#fff"},t["."+br.variantWarning]={backgroundColor:"#ff9800",color:"#fff"},t["."+br.message]={display:"flex",alignItems:"center",padding:"8px 0"},t["."+br.action]={display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8},t}),fre=function(t){var n=t.classes,r=Kl(t,["classes"]),o=v.useRef(),i=v.useState(!0),a=i[0],l=i[1];v.useEffect(function(){return function(){o.current&&clearTimeout(o.current)}},[]);var s=Df([r.snack.onClose,r.onClose],r.snack.key),u=function(){r.snack.requestClose&&s(null,Il.INSTRCUTED)},c=function(){o.current=setTimeout(function(){l(!a)},125)},d=r.style,f=r.ariaAttributes,m=r.className,p=r.hideIconVariant,h=r.iconVariant,y=r.snack,b=r.action,g=r.content,x=r.TransitionComponent,w=r.TransitionProps,P=r.transitionDuration,C=Kl(r,["style","dense","ariaAttributes","className","hideIconVariant","iconVariant","snack","action","content","TransitionComponent","TransitionProps","transitionDuration","onEnter","onEntered","onEntering","onExit","onExited","onExiting"]),E=y.key,S=y.open,M=y.className,I=y.variant,R=y.content,_=y.action,D=y.ariaAttributes,T=y.anchorOrigin,F=y.message,N=y.TransitionComponent,$=y.TransitionProps,L=y.transitionDuration,z=Kl(y,["persist","key","open","entered","requestClose","className","variant","content","action","ariaAttributes","anchorOrigin","message","TransitionComponent","TransitionProps","transitionDuration","onEnter","onEntered","onEntering","onExit","onExited","onExiting"]),B=Yt({},sre,{},h)[I],A=Yt({"aria-describedby":"notistack-snackbar"},n1(D,f)),H=N||x||Ds.TransitionComponent,q=n1(L,P,Ds.transitionDuration),U=Yt({direction:rre(T)},n1($,w)),G=_||b;typeof G=="function"&&(G=G(E));var Y=R||g;typeof Y=="function"&&(Y=Y(E,y.message));var re=["onEnter","onEntering","onEntered","onExit","onExiting","onExited"].reduce(function(le,J){var oe;return Yt({},le,(oe={},oe[J]=Df([r.snack[J],r[J]],r.snack.key),oe))},{});return k.createElement(Xy,{unmountOnExit:!0,timeout:175,in:a,onExited:re.onExited},k.createElement(dre,Object.assign({},C,z,{open:S,className:dp(n.root,br.wrappedRoot,n[og.toAnchorOrigin(T)]),onClose:s}),k.creat Line truncated
0% {
transform: scale(0);
opacity: 0.1;
}
100% {
transform: scale(1);
opacity: 0.3;
}
`)),$oe=cs(SM||(SM=Zy`
0% {
opacity: 1;
}
100% {
opacity: 0;
}
`)),Ioe=cs(EM||(EM=Zy`
0% {
transform: scale(1);
}
50% {
transform: scale(0.92);
}
100% {
transform: scale(1);
}
`)),Ooe=fe("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),Moe=fe(Coe,{name:"MuiTouchRipple",slot:"Ripple"})(PM||(PM=Zy`
opacity: 0;
position: absolute;
&.${0} {
opacity: 0.3;
transform: scale(1);
animation-name: ${0};
animation-duration: ${0}ms;
animation-timing-function: ${0};
}
&.${0} {
animation-duration: ${0}ms;
}
& .${0} {
opacity: 1;
display: block;
width: 100%;
height: 100%;
border-radius: 50%;
background-color: currentColor;
}
& .${0} {
opacity: 0;
animation-name: ${0};
animation-duration: ${0}ms;
animation-timing-function: ${0};
}
& .${0} {
position: absolute;
/* @noflip */
left: 0px;
top: 0;
animation-name: ${0};
animation-duration: 2500ms;
animation-timing-function: ${0};
animation-iteration-count: infinite;
animation-delay: 200ms;
}
`),$o.rippleVisible,koe,Aw,({theme:e})=>e.transitions.easing.easeInOut,$o.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,$o.child,$o.childLeaving,$oe,Aw,({theme:e})=>e.transitions.easing.easeInOut,$o.childPulsate,Ioe,({theme:e})=>e.transitions.easing.easeInOut),Roe=v.forwardRef(function(t,n){const r=qe({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:a}=r,l=ue(r,Eoe),[s,u]=v.useState([]),c=v.useRef(0),d=v.useRef(null);v.useEffect(()=>{d.current&&(d.current(),d.current=null)},[s]);const f=v.useRef(!1),m=Ls(),p=v.useRef(null),h=v.useRef(null),y=v.useCallback(w=>{const{pulsate:P,rippleX:C,rippleY:E,rippleSize:S,cb:M}=w;u(I=>[...I,j.jsx(Moe,{classes:{ripple:ve(i.ripple,$o.ripple),rippleVisible:ve(i.rippleVisible,$o.rippleVisible),ripplePulsate:ve(i.ripplePulsate,$o.ripplePulsate),child:ve(i.child,$o.child),childLeaving:ve(i.childLeaving,$o.childLeaving),childPulsate:ve(i.childPulsate,$o.childPulsate)},timeout:Aw,pulsate:P,rippleX:C,rippleY:E,rippleSize:S},c.current)]),c.current+=1,d.current=M},[i]),b=v.useCallback((w={},P={},C=()=>{})=>{const{pulsate:E=!1,center:S=o||P.pulsate,fakeElement:M=!1}=P;if((w==null?void 0:w.type)==="mousedown"&&f.current){f.current=!1;return}(w==null?void 0:w.type)==="touchstart"&&(f.current=!0);const I=M?null:h.current,R=I?I.getBoundingClientRect():{width:0,height:0,left:0,top:0};let _,D,T;if(S||w===void 0||w.clientX===0&&w.clientY===0||!w.clientX&&!w.touches)_=Math.round(R.width/2),D=Math.round(R.height/2);else{const{clientX:F,clientY:N}=w.touches&&w.touches.length>0?w.touches[0]:w;_=Math.round(F-R.left),D=Math.round(N-R.top)}if(S)T=Math.sqrt((2*R.width**2+R.height**2)/3),T%2===0&&(T+=1);else{const F=Math.max(Math.abs((I?I.clientWidth:0)-_),_)*2+2,N=Math.max(Math.abs((I?I.clientHeight:0)-D),D)*2+2;T=Math.sqrt(F**2+N**2)}w!=null&&w.touches?p.current===null&&(p.current=()=>{y({pulsate:E,rippleX:_,rippleY:D,rippleSize:T,cb:C})},m.start(Poe,()=>{p.current&&(p.current(),p.current=null)})):y({pulsate:E,rippleX:_,rippleY:D,rippleSize:T,cb:C})},[o,y,m]),g=v.useCallback(()=>{b({},{pulsate:!0})},[b]),x=v.useCallback((w,P)=>{if(m.clear(),(w==null?void 0:w.type)==="touchend"&&p.current){p.current(),p.current=null,m.start(0,()=>{x(w,P)});return}p.current=null,u(C=>C.length>0?C.slice(1):C),d.current=P},[m]);return v.useImperativeHandle(n,()=>({pulsate:g,start:b,stop:x}),[g,b,x]),j.jsx(Ooe,O({className:ve($o.root,i.root,a),ref:h},l,{children:j.jsx(qX,{component:null,exit:!0,children:s})}))}),Toe=Roe;function _oe(e){return Ve("MuiButtonBase",e)}const Foe=Ue("MuiButtonBase",["root","disabled","focusVisible"]),Aoe=Foe,Loe=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],Doe=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,a=Oe({root:["root",t&&"disabled",n&&"focusVisible"]},_oe,o);return n&&r&&(a.root+=` ${r}`),a},Noe=fe("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${Aoe.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),joe=v.forwardRef(function(t,n){const r=qe({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:a,className:l,component:s="button",disabled:u=!1,disableRipple:c=!1,disableTouchRipple:d=!1,focusRipple:f=!1,LinkComponent:m="a",onBlur:p,onClick:h,onContextMenu:y,onDragLeave:b,onFocus:g,onFocusVisible:x,onKeyDown:w,onKeyUp:P,onMouseDown:C,onMouseLeave:E,onMouseUp:S,onTouchEnd:M,onTouchMove:I,onTouchStart:R,tabIndex:_=0,TouchRippleProps:D,touchRippleRef:T,type:F}=r,N=ue(r,Loe),$=v.useRef(null),L=v.useRef(null),z=xt(L,T),{isFocusVisibleRef:B,onFocus:A,onBlur:H,ref:q}=Ky(),[U,G]=v.useState(!1);u&&U&&G(!1),v.useImperativeHandle(o,()=>({focusVisible:()=>{G(!0),$.current.focus()}}),[]);const[Y,re]=v.useState(!1);v.useEffect(()=>{re(!0)},[]);const le=Y&&!c&&!u;v.useEffect(()=>{U&&f&&!c&&Y&&L.current.pulsate()},[c,f,U,Y]);function J(X,Ee,De=d){return Zt(Te=>(Ee&&Ee(Te),!De&&L.current&&L.current[X](Te),!0))}const oe=J("start",C),ce=J("stop",y),ge=J("stop",b),me=J("stop",S),ke=J("stop",X=>{U&&X.preventDefault(),E&&E(X)}),be=J("start",R),ie=J("stop",M),ye=J("stop",I),V=J("stop",X=>{H(X),B.current===!1&&G(!1),p&&p(X)},!1),Q=Zt(X=>{$.current||($.current=X.currentTarget),A(X),B.current===!0&&(G(!0),x&&x(X)), Line truncated
`));return e}const y4=v.createContext(void 0),He=()=>{const e=v.useContext(y4);if(!e)throw new Error("MUI: useGridRootProps should only be used inside the DataGrid, DataGridPro or DataGridPremium component.");return e},b4=v.createContext(void 0);function fs(){const e=v.useContext(b4);if(e===void 0)throw new Error(["MUI: Could not find the data grid private context.","It looks like you rendered your component outside of a DataGrid, DataGridPro or DataGridPremium parent component.","This can also happen if you are bundling multiple versions of the data grid."].join(`
`));return e}const jM={};function ZE(e,t){const n=v.useRef(jM);return n.current===jM&&(n.current=e(t)),n}const Cse=[];function x4(e){v.useEffect(e,Cse)}const la=(e,t="warning")=>{let n=!1;const r=Array.isArray(e)?e.join(`
`):e;return()=>{n||(n=!0,t==="error"?console.error(r):console.warn(r))}},Sse=Object.is;function w4(e,t){if(e===t)return!0;if(!(e instanceof Object)||!(t instanceof Object))return!1;let n=0,r=0;for(const o in e)if(n+=1,!Sse(e[o],t[o])||!(o in t))return!1;for(const o in t)r+=1;return n===r}la(["MUI: `useGridSelector` has been called before the initialization of the state.","This hook can only be used inside the context of the grid."]);function Ese(e){return e.acceptsApiRef}function zM(e,t){return Ese(t)?t(e):t(e.current.state)}const Pse=Object.is,JE=w4,kse=()=>({state:null,equals:null,selector:null}),Ne=(e,t,n=Pse)=>{const r=ZE(kse),o=r.current.selector!==null,[i,a]=v.useState(o?null:zM(e,t));return r.current.state=i,r.current.equals=n,r.current.selector=t,x4(()=>e.current.store.subscribe(()=>{const l=zM(e,r.current.selector);r.current.equals(r.current.state,l)||(r.current.state=l,a(l))})),i};function ft(e){return Ve("MuiDataGrid",e)}const ne=Ue("MuiDataGrid",["actionsCell","aggregationColumnHeader","aggregationColumnHeader--alignLeft","aggregationColumnHeader--alignCenter","aggregationColumnHeader--alignRight","aggregationColumnHeaderLabel","autoHeight","autosizing","booleanCell","cell--editable","cell--editing","cell--textCenter","cell--textLeft","cell--textRight","cell--withRenderer","cell--rangeTop","cell--rangeBottom","cell--rangeLeft","cell--rangeRight","cell--selectionMode","cell","cellContent","cellCheckbox","cellSkeleton","checkboxInput","columnHeader--alignCenter","columnHeader--alignLeft","columnHeader--alignRight","columnHeader--dragging","columnHeader--moving","columnHeader--numeric","columnHeader--sortable","columnHeader--sorted","columnHeader--filtered","columnHeader","columnHeaderCheckbox","columnHeaderDraggableContainer","columnHeaderDropZone","columnHeaderTitle","columnHeaderTitleContainer","columnHeaderTitleContainerContent","columnGroupHeader","columnHeader--filledGroup","columnHeader--emptyGroup","columnHeader--showColumnBorder","columnHeaders","columnHeadersInner","columnHeadersInner--scrollable","columnSeparator--resizable","columnSeparator--resizing","columnSeparator--sideLeft","columnSeparator--sideRight","columnSeparator","columnsPanel","columnsPanelRow","detailPanel","detailPanels","detailPanelToggleCell","detailPanelToggleCell--expanded","footerCell","panel","panelHeader","panelWrapper","panelContent","panelFooter","paper","editBooleanCell","editInputCell","filterForm","filterFormDeleteIcon","filterFormLogicOperatorInput","filterFormColumnInput","filterFormOperatorInput","filterFormValueInput","filterIcon","footerContainer","headerFilterRow","iconButtonContainer","iconSeparator","main","menu","menuIcon","menuIconButton","menuOpen","menuList","overlay","overlayWrapper","overlayWrapperInner","root","root--densityStandard","root--densityComfortable","root--densityCompact","root--disableUserSelection","row","row--editable","row--editing","row--lastVisible","row--dragging","row--dynamicHeight","row--detailPanelExpanded","rowReorderCellPlaceholder","rowCount","rowReorderCellContainer","rowReorderCell","rowReorderCell--draggable","scrollArea--left","scrollArea--right","scrollArea","selectedRowCount","sortIcon","toolbarContainer","toolbarFilterList","virtualScroller","virtualScrollerContent","virtualScrollerContent--overflowed","virtualScrollerRenderZone","pinnedColumns","pinnedColumns--left","pinnedColumns--right","pinnedColumnHeaders","pinnedColumnHeaders--left","pinnedColumnHeaders--right","withBorderColor","cell--withRightBorder","columnHeader--withRightBorder","treeDataGroupingCell","treeDataGroupingCellToggle","groupingCriteriaCell","groupingCriteriaCellToggle","pinnedRows","pinnedRows--top","pinnedRows--bottom","pinnedRowsRenderZone"]);var sv="NOT_FOUND";function $se(e){var t;return{get:function(r){return t&&e(t.key,r)?t.value:sv},put:function(r,o){t={key:r,value:o}},getEntries:function(){return t?[t]:[]},clear:function(){t=void 0}}}function Ise(e,t){var n=[];function r(l){var s=n.findIndex(function(c){return t(l,c.key)});if(s>-1){var u=n[s];return s>0&&(n.splice(s,1),n.unshift(u)),u.value}return sv}function o(l,s){r(l)===sv&&(n.unshift({key:l,value:s}),n.length>e&&n.pop())}function i(){return n}function a(){n=[]}return{get:r,put:o,getEntries:i,clear:a}}var Ose=function(t,n){return t===n};function Mse(e){return function(n,r){if(n===null||r===null||n.length!==r.length)return!1;for(var o=n.length,i=0;i<o;i++)if(!e(n[i],r[i]))return!1;return!0}}function l0(e,t){var n=typeof t=="object"?t:{equalityCheck:t},r=n.equalityCheck,o=r===void 0?Ose:r,i=n.maxSize,a=i===void 0?1:i,l=n.resultEqualityCheck,s=Mse(o),u=a===1?$se(s):Ise(a,s);function c(){var d=u.get(arguments);if(d===sv){if(d=e.apply(null,arguments),l){var f=u.getEntries(),m=f.find(function(p){return l(p.value,d)});m&&(d=m.value)}u.put(arguments,d)}return d}return c.clearCache=function(){return u.clear()},c}function Rse(e){var t=Array.isArray(e[0])?e[0]:e;if(!t.every(function(r){return typeof r=="function"})){var n=t.map(function(r){ Line truncated
`))}const fv=(e,t,n)=>{const r=t?t(e):e.id;return oue(r,e,n),r},ag=({rows:e,getRowId:t,loading:n,rowCount:r})=>{const o={type:"full",rows:[]},i={},a={};for(let l=0;l<e.length;l+=1){const s=e[l],u=fv(s,t);i[u]=s,a[u]=u,o.rows.push(u)}return{rowsBeforePartialUpdates:e,loadingPropBeforePartialUpdates:n,rowCountPropBeforePartialUpdates:r,updates:o,dataRowIdToIdLookup:a,dataRowIdToModelLookup:i}},M4=({tree:e,rowCountProp:t=0})=>{const n=e[Sr];return Math.max(t,n.children.length+(n.footerId==null?0:1))},R4=({apiRef:e,rowCountProp:t=0,loadingProp:n,previousTree:r,previousTreeDepths:o})=>{const i=e.current.caches.rows,{tree:a,treeDepths:l,dataRowIds:s,groupingName:u}=e.current.applyStrategyProcessor("rowTreeCreation",{previousTree:r,previousTreeDepths:o,updates:i.updates,dataRowIdToIdLookup:i.dataRowIdToIdLookup,dataRowIdToModelLookup:i.dataRowIdToModelLookup}),c=e.current.unstable_applyPipeProcessors("hydrateRows",{tree:a,treeDepths:l,dataRowIdToIdLookup:i.dataRowIdToIdLookup,dataRowIds:s,dataRowIdToModelLookup:i.dataRowIdToModelLookup});return e.current.caches.rows.updates={type:"partial",actions:{insert:[],modify:[],remove:[]},idToActionLookup:{}},O({},c,{totalRowCount:Math.max(t,c.dataRowIds.length),totalTopLevelRowCount:M4({tree:c.tree,rowCountProp:t}),groupingName:u,loading:n})},Cp=e=>e.type==="skeletonRow"||e.type==="footer"||e.type==="group"&&e.isAutoGenerated||e.type==="pinnedRow"&&e.isAutoGenerated,iP=(e,t,n)=>{const r=e[t];if(r.type!=="group")return[];const o=[];for(let i=0;i<r.children.length;i+=1){const a=r.children[i];(!n||!Cp(e[a]))&&o.push(a);const l=iP(e,a,n);for(let s=0;s<l.length;s+=1)o.push(l[s])}return!n&&r.footerId!=null&&o.push(r.footerId),o},iue=({previousCache:e,getRowId:t,updates:n})=>{var r,o,i;if(e.updates.type==="full")throw new Error("MUI: Unable to prepare a partial update if a full update is not applied yet");const a=new Map;n.forEach(f=>{const m=fv(f,t,"A row was provided without id when calling updateRows():");a.has(m)?a.set(m,O({},a.get(m),f)):a.set(m,f)});const l={type:"partial",actions:{insert:[...(r=e.updates.actions.insert)!=null?r:[]],modify:[...(o=e.updates.actions.modify)!=null?o:[]],remove:[...(i=e.updates.actions.remove)!=null?i:[]]},idToActionLookup:O({},e.updates.idToActionLookup)},s=O({},e.dataRowIdToModelLookup),u=O({},e.dataRowIdToIdLookup),c={insert:{},modify:{},remove:{}};a.forEach((f,m)=>{const p=l.idToActionLookup[m];if(f._action==="delete"){if(p==="remove"||!s[m])return;p!=null&&(c[p][m]=!0),l.actions.remove.push(m),delete s[m],delete u[m];return}const h=s[m];if(h){p==="remove"?(c.remove[m]=!0,l.actions.modify.push(m)):p==null&&l.actions.modify.push(m),s[m]=O({},h,f);return}p==="remove"?(c.remove[m]=!0,l.actions.insert.push(m)):p==null&&l.actions.insert.push(m),s[m]=f,u[m]=m});const d=Object.keys(c);for(let f=0;f<d.length;f+=1){const m=d[f],p=c[m];Object.keys(p).length>0&&(l.actions[m]=l.actions[m].filter(h=>!p[h]))}return{dataRowIdToModelLookup:s,dataRowIdToIdLookup:u,updates:l,rowsBeforePartialUpdates:e.rowsBeforePartialUpdates,loadingPropBeforePartialUpdates:e.loadingPropBeforePartialUpdates,rowCountPropBeforePartialUpdates:e.rowCountPropBeforePartialUpdates}};function T4(e){var t,n;const r=wd(e),o=(r==null||(t=r.top)==null?void 0:t.reduce((a,l)=>(a+=e.current.unstable_getRowHeight(l.id),a),0))||0,i=(r==null||(n=r.bottom)==null?void 0:n.reduce((a,l)=>(a+=e.current.unstable_getRowHeight(l.id),a),0))||0;return{top:o,bottom:i}}function _4(e,t){const n=Cd(e);return`var(--DataGrid-overlayHeight, ${2*Math.floor(t*n)}px)`}const aue=jn("div",{name:"MuiDataGrid",slot:"OverlayWrapper",shouldForwardProp:e=>e!=="overlayType",overridesResolver:(e,t)=>t.overlayWrapper})(({overlayType:e})=>({position:"sticky",top:0,left:0,width:0,height:0,zIndex:e==="loadingOverlay"?5:4})),lue=jn("div",{name:"MuiDataGrid",slot:"OverlayWrapperInner",shouldForwardProp:e=>e!=="overlayType",overridesResolver:(e,t)=>t.overlayWrapperInner})({}),sue=e=>{const{classes:t}=e;return Oe({root:["overlayWrapper"],inner:["overlayWrapperInner"]},ft,t)};function uue(e){var t,n;const r=dt(),o=He(),[i,a]=v.useState(()=>{var c,d;return(c=(d=r.current.getRootDimensions())==null?void 0:d.viewportInnerSize)!=null?c:null}),l=v.useCallback(()=>{var c,d;a((c=(d=r.current.getRootDimensions())==null?void 0:d.viewportInnerSize)!=null?c:null)},[r]);Ft(()=>r.current.subscribeEvent("viewportInnerSizeChange",l),[r,l]);let s=(t=i==null?void 0:i.height)!=null?t:0;o.autoHeight&&s===0&&(s=_4(r,o.rowHeight));const u=sue(O({},e,{classes:o.classes}));return i?j.jsx(aue,{className:ve(u.root),overlayType:e.overlayType,children:j.jsx(lue,O({className:ve(u.inner),style:{height:s,width:(n=i==null?void 0:i.width)!=null?n:0}},e))}):null}function cue(){const e=dt(),t=He(),n=Ne(e,c0),r=Ne(e,I4),o=Ne(e,Nse),i=!o&&n===0,a=!o&&n>0&&r===0;let l=null,s="";if(i){var u;l=j.jsx(t.slots.noRowsOverlay,O({},(u=t.slotProps)==null?void 0:u.noRowsOverlay)),s="noRowsOverlay"}if(a){var c;l=j.jsx(t.slots.noResultsOverlay,O({},(c=t.slotProps)==null?void 0 Line truncated
`&&(x.value+=" ");const w=g.boxSizing,P=gh(g.paddingBottom)+gh(g.paddingTop),C=gh(g.borderBottomWidth)+gh(g.borderTopWidth),E=x.scrollHeight;x.value="x";const S=x.scrollHeight;let M=E;i&&(M=Math.max(Number(i)*S,M)),o&&(M=Math.min(Number(o)*S,M)),M=Math.max(M,S);const I=M+(w==="border-box"?P+C:0),R=Math.abs(M-E)<=1;return{outerHeightStyle:I,overflowing:R}},[o,i,t.placeholder]),p=v.useCallback(()=>{const y=m();if(Due(y))return;const b=c.current;b.style.height=`${y.outerHeightStyle}px`,b.style.overflow=y.overflowing?"hidden":""},[m]);Ft(()=>{const y=()=>{p()};let b;const g=hd(y),x=c.current,w=bi(x);w.addEventListener("resize",g);let P;return typeof ResizeObserver<"u"&&(P=new ResizeObserver(y),P.observe(x)),()=>{g.clear(),cancelAnimationFrame(b),w.removeEventListener("resize",g),P&&P.disconnect()}},[m,p]),Ft(()=>{p()});const h=y=>{u||p(),r&&r(y)};return j.jsxs(v.Fragment,{children:[j.jsx("textarea",O({value:l,onChange:h,ref:d,rows:i,style:a},s)),j.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:f,tabIndex:-1,style:O({},Lue.shadow,a,{paddingTop:0,paddingBottom:0})})]})});function HM(e){return typeof e.normalize<"u"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function L4(e={}){const{ignoreAccents:t=!0,ignoreCase:n=!0,limit:r,matchFrom:o="any",stringify:i,trim:a=!1}=e;return(l,{inputValue:s,getOptionLabel:u})=>{let c=a?s.trim():s;n&&(c=c.toLowerCase()),t&&(c=HM(c));const d=c?l.filter(f=>{let m=(i||u)(f);return n&&(m=m.toLowerCase()),t&&(m=HM(m)),o==="start"?m.indexOf(c)===0:m.indexOf(c)>-1}):l;return typeof r=="number"?d.slice(0,r):d}}function vh(e,t){for(let n=0;n<e.length;n+=1)if(t(e[n]))return n;return-1}const jue=L4(),VM=5,zue=e=>{var t;return e.current!==null&&((t=e.current.parentElement)==null?void 0:t.contains(document.activeElement))};function Bue(e){const{unstable_isActiveElementInListbox:t=zue,unstable_classNamePrefix:n="Mui",autoComplete:r=!1,autoHighlight:o=!1,autoSelect:i=!1,blurOnSelect:a=!1,clearOnBlur:l=!e.freeSolo,clearOnEscape:s=!1,componentName:u="useAutocomplete",defaultValue:c=e.multiple?[]:null,disableClearable:d=!1,disableCloseOnSelect:f=!1,disabled:m,disabledItemsFocusable:p=!1,disableListWrap:h=!1,filterOptions:y=jue,filterSelectedOptions:b=!1,freeSolo:g=!1,getOptionDisabled:x,getOptionKey:w,getOptionLabel:P=xe=>{var he;return(he=xe.label)!=null?he:xe},groupBy:C,handleHomeEndKeys:E=!e.freeSolo,id:S,includeInputInList:M=!1,inputValue:I,isOptionEqualToValue:R=(xe,he)=>xe===he,multiple:_=!1,onChange:D,onClose:T,onHighlightChange:F,onInputChange:N,onOpen:$,open:L,openOnFocus:z=!1,options:B,readOnly:A=!1,selectOnFocus:H=!e.freeSolo,value:q}=e,U=Tt(S);let G=P;G=xe=>{const he=P(xe);return typeof he!="string"?String(he):he};const Y=v.useRef(!1),re=v.useRef(!0),le=v.useRef(null),J=v.useRef(null),[oe,ce]=v.useState(null),[ge,me]=v.useState(-1),ke=o?0:-1,be=v.useRef(ke),[ie,ye]=ql({controlled:q,default:c,name:u}),[V,Q]=ql({controlled:I,default:"",name:u,state:"inputValue"}),[Z,ae]=v.useState(!1),te=v.useCallback((xe,he)=>{if(!(_?ie.length<he.length:he!==null)&&!l)return;let Fe;if(_)Fe="";else if(he==null)Fe="";else{const Ze=G(he);Fe=typeof Ze=="string"?Ze:""}V!==Fe&&(Q(Fe),N&&N(xe,Fe,"reset"))},[G,V,_,N,Q,l,ie]),[K,ee]=ql({controlled:L,default:!1,name:u,state:"open"}),[se,Ce]=v.useState(!0),_e=!_&&ie!=null&&V===G(ie),$e=K&&!A,X=$e?y(B.filter(xe=>!(b&&(_?ie:[ie]).some(he=>he!==null&&R(xe,he)))),{inputValue:_e&&se?"":V,getOptionLabel:G}):[],Ee=SE({filteredOptions:X,value:ie,inputValue:V});v.useEffect(()=>{const xe=ie!==Ee.value;Z&&!xe||g&&!xe||te(null,ie)},[ie,te,Z,Ee.value,g]);const De=K&&X.length>0&&!A,Te=Zt(xe=>{xe===-1?le.current.focus():oe.querySelector(`[data-tag-index="${xe}"]`).focus()});v.useEffect(()=>{_&&ge>ie.length-1&&(me(-1),Te(-1))},[ie,_,ge,Te]);function Pe(xe,he){if(!J.current||xe<0||xe>=X.length)return-1;let je=xe;for(;;){const Fe=J.current.querySelector(`[data-option-index="${je}"]`),Ze=p?!1:!Fe||Fe.disabled||Fe.getAttribute("aria-disabled")==="true";if(Fe&&Fe.hasAttribute("tabindex")&&!Ze)return je;if(he==="next"?je=(je+1)%X.length:je=(je-1+X.length)%X.length,je===xe)return-1}}const Re=Zt(({event:xe,index:he,reason:je="auto"})=>{if(be.current=he,he===-1?le.current.removeAttribute("aria-activedescendant"):le.current.setAttribute("aria-activedescendant",`${U}-option-${he}`),F&&F(xe,he===-1?null:X[he],je),!J.current)return;const Fe=J.current.querySelector(`[role="option"].${n}-focused`);Fe&&(Fe.classList.remove(`${n}-focused`),Fe.classList.remove(`${n}-focusVisible`));let Ze=J.current;if(J.current.getAttribute("role")!=="listbox"&&(Ze=J.current.parentElement.querySelector('[role="listbox"]')),!Ze)return;if(he===-1){Ze.scrollTop=0;return}const Be=J.current.querySelector(`[data-option-index="${he}"]`);if(Be&&(Be.classList.add(`${n}-focused`),je==="keyboard"&&Be.classList.add(`${n}-focusVisible`),Ze.scrollHeight>Ze.clientHeight&&je!=="mouse"&&je!=="touch")){const gt=Be,Pi=Ze.clientHeight+Ze.scrollTop,Qk=gt.offsetTop+gt.offsetHeight;Qk>Pi?Ze.scrollTop=Qk-Ze. Line truncated
0% {
opacity: 1;
}
50% {
opacity: 0.4;
}
100% {
opacity: 1;
}
`)),Vce=cs(KM||(KM=vv`
0% {
transform: translateX(-100%);
}
50% {
/* +0.5s of delay between each loop */
transform: translateX(100%);
}
100% {
transform: translateX(100%);
}
`)),Uce=fe("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.animation!==!1&&t[n.animation],n.hasChildren&&t.withChildren,n.hasChildren&&!n.width&&t.fitContent,n.hasChildren&&!n.height&&t.heightAuto]}})(({theme:e,ownerState:t})=>{const n=Lne(e.shape.borderRadius)||"px",r=Dne(e.shape.borderRadius);return O({display:"block",backgroundColor:e.vars?e.vars.palette.Skeleton.bg:xr(e.palette.text.primary,e.palette.mode==="light"?.11:.13),height:"1.2em"},t.variant==="text"&&{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:`${r}${n}/${Math.round(r/.6*10)/10}${n}`,"&:empty:before":{content:'"\\00a0"'}},t.variant==="circular"&&{borderRadius:"50%"},t.variant==="rounded"&&{borderRadius:(e.vars||e).shape.borderRadius},t.hasChildren&&{"& > *":{visibility:"hidden"}},t.hasChildren&&!t.width&&{maxWidth:"fit-content"},t.hasChildren&&!t.height&&{height:"auto"})},({ownerState:e})=>e.animation==="pulse"&&qc(QM||(QM=vv`
animation: ${0} 2s ease-in-out 0.5s infinite;
`),Hce),({ownerState:e,theme:t})=>e.animation==="wave"&&qc(YM||(YM=vv`
position: relative;
overflow: hidden;
/* Fix bug in Safari https://bugs.webkit.org/show_bug.cgi?id=68196 */
-webkit-mask-image: -webkit-radial-gradient(white, black);
&::after {
animation: ${0} 2s linear 0.5s infinite;
background: linear-gradient(
90deg,
transparent,
${0},
transparent
);
content: '';
position: absolute;
transform: translateX(-100%); /* Avoid flash during server-side hydration */
bottom: 0;
left: 0;
right: 0;
top: 0;
}
`),Vce,(t.vars||t).palette.action.hover)),Wce=v.forwardRef(function(t,n){const r=qe({props:t,name:"MuiSkeleton"}),{animation:o="pulse",className:i,component:a="span",height:l,style:s,variant:u="text",width:c}=r,d=ue(r,zce),f=O({},r,{animation:o,component:a,variant:u,hasChildren:!!d.children}),m=Bce(f);return j.jsx(Uce,O({as:a,ref:n,className:ve(m.root,i),ownerState:f},d,{style:O({width:c,height:l},s)}))}),Gce=Wce,qce=["field","align","width","contentWidth"],Kce=e=>{const{align:t,classes:n}=e,r={root:["cell","cellSkeleton",`cell--text${pe(t)}`,"withBorderColor"]};return Oe(r,ft,n)};function Qce(e){const{align:t,width:n,contentWidth:r}=e,o=ue(e,qce),a={classes:He().classes,align:t},l=Kce(a);return j.jsx("div",O({className:l.root,style:{width:n}},o,{children:j.jsx(Gce,{width:`${r}%`})}))}function Yce(e){return e.vars?e.vars.palette.TableCell.border:e.palette.mode==="light"?wN(xr(e.palette.divider,1),.88):Af(xr(e.palette.divider,1),.68)}const XM={[`.${ne.columnSeparator}, .${ne["columnSeparator--resizing"]}`]:{visibility:"visible",width:"auto"}},ZM={[`& .${ne.iconButtonContainer}`]:{visibility:"visible",width:"auto"},[`& .${ne.menuIcon}`]:{width:"auto",visibility:"visible"}},Xce=fe("div",{name:"MuiDataGrid",slot:"Root",overridesResolver:(e,t)=>[{[`&.${ne.autoHeight}`]:t.autoHeight},{[`&.${ne.aggregationColumnHeader}`]:t.aggregationColumnHeader},{[`&.${ne["aggregationColumnHeader--alignLeft"]}`]:t["aggregationColumnHeader--alignLeft"]},{[`&.${ne["aggregationColumnHeader--alignCenter"]}`]:t["aggregationColumnHeader--alignCenter"]},{[`&.${ne["aggregationColumnHeader--alignRight"]}`]:t["aggregationColumnHeader--alignRight"]},{[`&.${ne.aggregationColumnHeaderLabel}`]:t.aggregationColumnHeaderLabel},{[`&.${ne["root--disableUserSelection"]} .${ne.cell}`]:t["root--disableUserSelection"]},{[`&.${ne.autosizing}`]:t.autosizing},{[`& .${ne.editBooleanCell}`]:t.editBooleanCell},{[`& .${ne["cell--editing"]}`]:t["cell--editing"]},{[`& .${ne["cell--textCenter"]}`]:t["cell--textCenter"]},{[`& .${ne["cell--textLeft"]}`]:t["cell--textLeft"]},{[`& .${ne["cell--textRight"]}`]:t["cell--textRight"]},{[`& .${ne["cell--withRenderer"]}`]:t["cell--withRenderer"]},{[`& .${ne.cell}`]:t.cell},{[`& .${ne["cell--rangeTop"]}`]:t["cell--rangeTop"]},{[`& .${ne["cell--rangeBottom"]}`]:t["cell--rangeBottom"]},{[`& .${ne["cell--rangeLeft"]}`]:t["cell--rangeLeft"]},{[`& .${ne["cell--rangeRight"]}`]:t["cell--rangeRight"]},{[`& .${ne["cell--withRightBorder"]}`]:t["cell--withRightBorder"]},{[`& .${ne.cellContent}`]:t.cellContent},{[`& .${ne.cellCheckbox}`]:t.cellCheckbox},{[`& .${ne.cellSkeleton}`]:t.cellSkeleton},{[`& .${ne.checkboxInput}`]:t.checkboxInput},{[`& .${ne["columnHeader--alignCenter"]}`]:t["columnHeader--alignCenter"]},{[`& .${ne["columnHeader--alignLeft"]}`]:t["columnHeader--alignLeft"]},{[`& .${ne["columnHeader--alignRight"]}`]:t["columnHeader--alignRight"]},{[`& .${ne["columnHeader--dragging"]}`]:t["columnHeader--dragging"]},{[`& .${ne["columnHeader--moving"]}`]:t["columnHeader--moving"]},{[`& .${ne["columnHeader--numeric"]}`]:t["columnHeader--numeric"]},{[`& .${ne["columnHeader--sortable"]}`]:t["columnHeader--sortable"]},{[`& .${ne["columnHeader--sorted"]}`]:t["columnHeader--sorted"]},{[`& .${ne["columnHeader--withRightBorder"]}`]:t["columnHeader--withRightBorder"]},{[`& .${ne.columnHeader}`]:t.columnHeader},{[`& .${ne.headerFilterRow}`]:t.headerFilterRow},{[`& .${ne.columnHeaderCheckbox}`]:t.columnHeaderCheckbox},{[`& .${ne.columnHeaderDraggableContainer}`]:t.columnHeaderDraggableContainer},{[`& .${ne.columnHeaderTitleContainer}`]:t.columnHeaderTitleContainer},{[`& .${ne["columnSeparator--resizable"]}`]:t["columnSeparator--resizable"]},{[`& .${ne["columnSeparator--resizing"]}`]:t["columnSeparator--resizing"]},{[`& .${ne.columnSeparator}`]:t.columnSeparator},{[`& .${ne.filterIcon}`]:t.filterIcon},{[`& .${ne.iconSeparator}`]:t.iconSeparator},{[`& .${ne.menuIcon}`]:t.menuIcon},{[`& .${ne.menuIconButton}`]:t.menuIconButton},{[`& .${ne.menuOpen}`]:t.menuOpen},{[`& .${ne.menuList}`]:t.menuList},{[`& .${ne["row--editable"]}`]:t["row--editable"]},{[`& .${ne["row--editing"]}`]:t["row--editing"]},{[`& .${ne["row--dragging"]}`]:t["row--dragging"]},{[`& .${ne.row}`]:t.row},{[`& .${ne.rowReorderCellPlaceholder}`]:t.rowReorderCellPlaceholder},{[`& .${ne.rowReorderCell}`]:t.rowReorderCell},{[`& .${ne["rowReorderCell--draggable"]}`]:t["rowReorderCell--draggable"]},{[`& .${ne.sortIcon}`]:t.sortIcon},{[`& .${ne.withBorderColor}`]:t.withBorderColor},{[`& .${ne.treeDataGroupingCell}`]:t.treeDataGroupingCell},{[`& .${ne.treeDataGroupingCellToggle}`]:t.treeDataGroupingCellToggle},{[`& .${ne.detailPanelToggleCell}`]:t.detailPanelToggleCell},{[`& .${ne["detailPanelToggleCell--expanded"]}`]:t["detailPanelToggleCell--expanded"]},t.root]})(({theme:e})=>{const t=Yce(e),n=e.shape.borderRadius;return O({"--unstable_DataGrid-radius":typeof n=="number"?`${n}px`:n,"--unstable_DataGrid-headWeight":e.typography.fontWeightMedium,"--unstable_DataGrid-overlayBackgrou Line truncated
${e.vars.palette.action.selectedOpacity} +
${e.vars.palette.action.hoverOpacity}
))`:xr(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:xr(e.palette.primary.main,e.palette.action.selectedOpacity)}}}},[`& .${ne.cell}`]:{display:"flex",alignItems:"center",borderBottom:"1px solid","&.Mui-selected":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:xr(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover, &.Mui-hovered":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity+e.palette.action.hoverOpacity})`:xr(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:xr(e.palette.primary.main,e.palette.action.selectedOpacity)}}}},[`&.${ne["root--disableUserSelection"]} .${ne.cell}`]:{userSelect:"none"},[`& .${ne.row}:not(.${ne["row--dynamicHeight"]}) > .${ne.cell}`]:{overflow:"hidden",whiteSpace:"nowrap"},[`& .${ne.cellContent}`]:{overflow:"hidden",textOverflow:"ellipsis"},[`& .${ne.cell}.${ne["cell--selectionMode"]}`]:{cursor:"default"},[`& .${ne.cell}.${ne["cell--editing"]}`]:{padding:1,display:"flex",boxShadow:e.shadows[2],backgroundColor:(e.vars||e).palette.background.paper,"&:focus-within":{outline:`solid ${(e.vars||e).palette.primary.main} 1px`,outlineOffset:"-1px"}},[`& .${ne["row--editing"]}`]:{boxShadow:e.shadows[2]},[`& .${ne["row--editing"]} .${ne.cell}`]:{boxShadow:e.shadows[0],backgroundColor:(e.vars||e).palette.background.paper},[`& .${ne.editBooleanCell}`]:{display:"flex",height:"100%",width:"100%",alignItems:"center",justifyContent:"center"},[`& .${ne.booleanCell}[data-value="true"]`]:{color:(e.vars||e).palette.text.secondary},[`& .${ne.booleanCell}[data-value="false"]`]:{color:(e.vars||e).palette.text.disabled},[`& .${ne.actionsCell}`]:{display:"inline-flex",alignItems:"center",gridGap:e.spacing(1)},[`& .${ne.rowReorderCell}`]:{display:"inline-flex",flex:1,alignItems:"center",justifyContent:"center",opacity:(e.vars||e).palette.action.disabledOpacity},[`& .${ne["rowReorderCell--draggable"]}`]:{cursor:"move",opacity:1},[`& .${ne.rowReorderCellContainer}`]:{padding:0,alignItems:"stretch"},[`.${ne.withBorderColor}`]:{borderColor:t},[`& .${ne["cell--withRightBorder"]}`]:{borderRightWidth:"1px",borderRightStyle:"solid"},[`& .${ne["columnHeader--withRightBorder"]}`]:{borderRightWidth:"1px",borderRightStyle:"solid"},[`& .${ne["cell--textLeft"]}`]:{justifyContent:"flex-start"},[`& .${ne["cell--textRight"]}`]:{justifyContent:"flex-end"},[`& .${ne["cell--textCenter"]}`]:{justifyContent:"center"},[`& .${ne.columnHeaderDraggableContainer}`]:{display:"flex",width:"100%",height:"100%"},[`& .${ne.rowReorderCellPlaceholder}`]:{display:"none"},[`& .${ne["columnHeader--dragging"]}, & .${ne["row--dragging"]}`]:{background:(e.vars||e).palette.background.paper,padding:"0 12px",borderRadius:"var(--unstable_DataGrid-radius)",opacity:(e.vars||e).palette.action.disabledOpacity},[`& .${ne["row--dragging"]}`]:{background:(e.vars||e).palette.background.paper,padding:"0 12px",borderRadius:"var(--unstable_DataGrid-radius)",opacity:(e.vars||e).palette.action.disabledOpacity,[`& .${ne.rowReorderCellPlaceholder}`]:{display:"flex"}},[`& .${ne.treeDataGroupingCell}`]:{display:"flex",alignItems:"center",width:"100%"},[`& .${ne.treeDataGroupingCellToggle}`]:{flex:"0 0 28px",alignSelf:"stretch",marginRight:e.spacing(2)},[`& .${ne.groupingCriteriaCell}`]:{display:"flex",alignItems:"center",width:"100%"},[`& .${ne.groupingCriteriaCellToggle}`]:{flex:"0 0 28px",alignSelf:"stretch",marginRight:e.spacing(2)}})}),Zce=["children","className"],Jce=e=>{const{autoHeight:t,density:n,classes:r}=e,o={root:["root",t&&"autoHeight",`root--density${pe(n)}`,"withBorderColor"]};return Oe(o,ft,r)},ede=v.forwardRef(function(t,n){var r;const o=He(),{children:i,className:a}=t,l=ue(t,Zce),s=fs(),u=Ne(s,eue),c=v.useRef(null),d=xt(c,n),f=(r=o.experimentalFeatures)!=null&&r.ariaV7?null:E4,m=typeof f=="function"?f():null,p=O({},o,{density:u}),h=Jce(p);s.current.register("public",{rootElementRef:c});const[y,b]=v.useState(!1);return Ft(()=>{b(!0)},[]),y?j.jsx(Xce,O({ref:d,className:ve(a,h.root),ownerState:p},m,l,{children:i})):null}),tde=["className"],nde=e=>{const{classes:t}=e;return Oe({root:["footerContainer","withBorderColor"]},ft,t)},rde=jn("div",{name:"MuiDataGrid",slot:"FooterContainer",overridesResolver:(e,t)=>t.footerContainer})({display:"flex",justifyContent:"space-between",alignItems:"center",minHeight:52,borderTop:"1px solid"}),ode=v.forwardRef(function(t,n){const{className:r}=t,o=ue(t,tde),i=He(),a=nde(i);return j.jsx(rde,O({ref:n,className:ve(a.root,r),ownerState:i},o))}),ide=["className"],ade=e=>{const{classes:t}=e;return Oe({root:["overlay"]},ft,t)},ld Line truncated
`))},J4=e=>e.pagination,Io=tt(J4,e=>e.paginationModel),Zde=tt(Io,e=>e.page),Jde=tt(Io,e=>e.pageSize);tt(Io,f0,(e,t)=>Y4(t,e.pageSize));const fP=Jt(Io,di,d0,ps,$4,(e,t,n,r,o)=>{const i=o.length,a=Math.min(e.pageSize*e.page,i-1),l=Math.min(a+e.pageSize-1,i-1);if(a===-1||l===-1)return null;if(n<2)return{firstRowIndex:a,lastRowIndex:l};const s=o[a],u=l-a+1,c=r.findIndex(p=>p.id===s.id);let d=c,f=0;for(;d<r.length&&f<=u;){var m;const p=r[d],h=(m=t[p.id])==null?void 0:m.depth;h===void 0?d+=1:((f<u||h>0)&&(d+=1),h===0&&(f+=1))}return{firstRowIndex:c,lastRowIndex:d-1}}),efe=Jt(ps,fP,(e,t)=>t?e.slice(t.firstRowIndex,t.lastRowIndex+1):[]),ej=Jt(Bf,fP,(e,t)=>t?e.slice(t.firstRowIndex,t.lastRowIndex+1):[]),Ep=e=>e.preferencePanel;var fu=function(e){return e.filters="filters",e.columns="columns",e}(fu||{});const Pp=e=>e.rowsMeta,Po=e=>e.rowSelection,tfe=tt(Po,e=>e.length),nfe=Jt(Po,Ma,(e,t)=>new Map(e.map(n=>[n,t[n]]))),yv=Jt(Po,e=>e.reduce((t,n)=>(t[n]=n,t),{})),rfe=la(["MUI: The `sortModel` can only contain a single item when the `disableMultipleColumnsSorting` prop is set to `true`.","If you are using the community version of the `DataGrid`, this prop is always `true`."],"error"),tj=(e,t)=>t&&e.length>1?(rfe(),[e[0]]):e,eR=(e,t)=>n=>O({},n,{sorting:O({},n.sorting,{sortModel:tj(e,t)})}),ofe=e=>e==="desc",ife=(e,t)=>{const n=t.current.getColumn(e.field);if(!n)return null;const r=ofe(e.sort)?(...i)=>-1*n.sortComparator(...i):n.sortComparator;return{getSortCellParams:i=>({id:i,field:n.field,rowNode:t.current.getRowNode(i),value:t.current.getCellValue(i,n.field),api:t.current}),comparator:r}},afe=(e,t,n)=>e.reduce((r,o,i)=>{if(r!==0)return r;const a=t.params[i],l=n.params[i];return r=o.comparator(a.value,l.value,a,l),r},0),lfe=(e,t)=>{const n=e.map(r=>ife(r,t)).filter(r=>!!r);return n.length===0?null:r=>r.map(o=>({node:o,params:n.map(i=>i.getSortCellParams(o.id))})).sort((o,i)=>afe(n,o,i)).map(o=>o.node.id)},tR=(e,t)=>{const n=e.indexOf(t);return!t||n===-1||n+1===e.length?e[0]:e[n+1]},pP=(e,t)=>e==null&&t!=null?-1:t==null&&e!=null?1:e==null&&t==null?0:null,sfe=new Intl.Collator,ufe=(e,t)=>{const n=pP(e,t);return n!==null?n:typeof e=="string"?sfe.compare(e.toString(),t.toString()):e-t},nj=(e,t)=>{const n=pP(e,t);return n!==null?n:Number(e)-Number(t)},rj=(e,t)=>{const n=pP(e,t);return n!==null?n:e>t?1:e<t?-1:0},oj=e=>e.headerFiltering,cfe=tt(oj,e=>e.editing),dfe=tt(oj,e=>e.menuOpen),ffe=(e,t)=>{const n={enabled:!t.disableVirtualization,enabledForColumns:!0};return O({},e,{virtualization:n})};function pfe(e,t){const n=i=>{e.current.setState(a=>O({},a,{virtualization:O({},a.virtualization,{enabled:i})}))};ot(e,{unstable_setVirtualization:n,unstable_setColumnVirtualization:i=>{e.current.setState(a=>O({},a,{virtualization:O({},a.virtualization,{enabledForColumns:i})}))}},"public"),v.useEffect(()=>{n(!t.disableVirtualization)},[t.disableVirtualization])}const ij=e=>e.virtualization,mfe=tt(ij,e=>e.enabled),aj=tt(ij,e=>e.enabledForColumns),hfe=e=>{const{classes:t}=e;return Oe({icon:["filterIcon"]},ft,t)};function gfe(e){var t,n;const{counter:r,field:o,onClick:i}=e,a=dt(),l=He(),s=O({},e,{classes:l.classes}),u=hfe(s),c=Ne(a,Ep),d=Tt(),f=Tt(),m=v.useCallback(y=>{y.preventDefault(),y.stopPropagation();const{open:b,openedPanelValue:g}=Ep(a.current.state);b&&g===fu.filters?a.current.hideFilterPanel():a.current.showFilterPanel(void 0,f,d),i&&i(a.current.getColumnHeaderParams(o),y)},[a,o,i,f,d]);if(!r)return null;const p=c.open&&c.labelId===d,h=j.jsx(l.slots.baseIconButton,O({id:d,onClick:m,color:"default","aria-label":a.current.getLocaleText("columnHeaderFiltersLabel"),size:"small",tabIndex:-1,"aria-haspopup":"menu","aria-expanded":p,"aria-controls":p?f:void 0},(t=l.slotProps)==null?void 0:t.baseIconButton,{children:j.jsx(l.slots.columnFilteredIcon,{className:u.icon,fontSize:"small"})}));return j.jsx(l.slots.baseTooltip,O({title:a.current.getLocaleText("columnHeaderFiltersTooltipActive")(r),enterDelay:1e3},(n=l.slotProps)==null?void 0:n.baseTooltip,{children:j.jsxs(W4,{children:[r>1&&j.jsx(U4,{badgeContent:r,color:"default",children:h}),r===1&&h]})}))}const vfe=["field","id","value","formattedValue","row","rowNode","colDef","isEditable","cellMode","hasFocus","tabIndex","api"],yfe=e=>{const{classes:t}=e;return Oe({root:["checkboxInput"]},ft,t)},bfe=v.forwardRef(function(t,n){var r;const{field:o,id:i,value:a,rowNode:l,hasFocus:s,tabIndex:u}=t,c=ue(t,vfe),d=dt(),f=He(),m={classes:f.classes},p=yfe(m),h=v.useRef(null),y=v.useRef(null),b=xt(h,n),g=d.current.getCellElement(i,o),x=E=>{const S={value:E.target.checked,id:i};d.current.publishEvent("rowSelectionCheckboxChange",S,E)};v.useLayoutEffect(()=>{u===0&&g&&(g.tabIndex=-1)},[g,u]),v.useEffect(()=>{if(s){var E;const S=(E=h.current)==null?void 0:E.querySelector("input");S==null||S.focus({preventScroll:!0})}else y.current&&y.current.stop({})},[s]);const w=v.useCallback(E=>{j4(E.key)&&E.stopPropagation()},[]);if(l.type==="footer"||l.type==="pinnedRow")return null;const P=d.current.isRowSelecta Line truncated
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
`)),rve=cs(PR||(PR=C0`
0% {
stroke-dasharray: 1px, 200px;
stroke-dashoffset: 0;
}
50% {
stroke-dasharray: 100px, 200px;
stroke-dashoffset: -15px;
}
100% {
stroke-dasharray: 100px, 200px;
stroke-dashoffset: -125px;
}
`)),ove=e=>{const{classes:t,variant:n,color:r,disableShrink:o}=e,i={root:["root",n,`color${pe(r)}`],svg:["svg"],circle:["circle",`circle${pe(n)}`,o&&"circleDisableShrink"]};return Oe(i,eve,t)},ive=fe("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${pe(n.color)}`]]}})(({ownerState:e,theme:t})=>O({display:"inline-block"},e.variant==="determinate"&&{transition:t.transitions.create("transform")},e.color!=="inherit"&&{color:(t.vars||t).palette[e.color].main}),({ownerState:e})=>e.variant==="indeterminate"&&qc(kR||(kR=C0`
animation: ${0} 1.4s linear infinite;
`),nve)),ave=fe("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),lve=fe("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${pe(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(({ownerState:e,theme:t})=>O({stroke:"currentColor"},e.variant==="determinate"&&{transition:t.transitions.create("stroke-dashoffset")},e.variant==="indeterminate"&&{strokeDasharray:"80px, 200px",strokeDashoffset:0}),({ownerState:e})=>e.variant==="indeterminate"&&!e.disableShrink&&qc($R||($R=C0`
animation: ${0} 1.4s ease-in-out infinite;
`),rve)),sve=v.forwardRef(function(t,n){const r=qe({props:t,name:"MuiCircularProgress"}),{className:o,color:i="primary",disableShrink:a=!1,size:l=40,style:s,thickness:u=3.6,value:c=0,variant:d="indeterminate"}=r,f=ue(r,tve),m=O({},r,{color:i,disableShrink:a,size:l,thickness:u,value:c,variant:d}),p=ove(m),h={},y={},b={};if(d==="determinate"){const g=2*Math.PI*((ml-u)/2);h.strokeDasharray=g.toFixed(3),b["aria-valuenow"]=Math.round(c),h.strokeDashoffset=`${((100-c)/100*g).toFixed(3)}px`,y.transform="rotate(-90deg)"}return j.jsx(ive,O({className:ve(p.root,o),style:O({width:l,height:l},y,s),ownerState:m,ref:n,role:"progressbar"},b,f,{children:j.jsx(ave,{className:p.svg,ownerState:m,viewBox:`${ml/2} ${ml/2} ${ml} ${ml}`,children:j.jsx(lve,{className:p.circle,style:h,ownerState:m,cx:ml,cy:ml,r:(ml-u)/2,fill:"none",strokeWidth:u})})}))}),wP=sve,uve=v.forwardRef(function(t,n){return j.jsx(cP,O({ref:n},t,{children:j.jsx(wP,{})}))}),cve=v.forwardRef(function(t,n){const o=dt().current.getLocaleText("noRowsLabel");return j.jsx(cP,O({ref:n},t,{children:o}))}),dve=v.createContext(),fve=dve,pve=v.createContext(),mve=pve;function hve(e){return Ve("MuiTableCell",e)}const gve=Ue("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),vve=gve,yve=["align","className","component","padding","scope","size","sortDirection","variant"],bve=e=>{const{classes:t,variant:n,align:r,padding:o,size:i,stickyHeader:a}=e,l={root:["root",n,a&&"stickyHeader",r!=="inherit"&&`align${pe(r)}`,o!=="normal"&&`padding${pe(o)}`,`size${pe(i)}`]};return Oe(l,hve,t)},xve=fe("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${pe(n.size)}`],n.padding!=="normal"&&t[`padding${pe(n.padding)}`],n.align!=="inherit"&&t[`align${pe(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>O({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid
${e.palette.mode==="light"?PE(lt(e.palette.divider,1),.88):EE(lt(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},t.variant==="head"&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},t.variant==="body"&&{color:(e.vars||e).palette.text.primary},t.variant==="footer"&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},t.size==="small"&&{padding:"6px 16px",[`&.${vve.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},t.padding==="checkbox"&&{width:48,padding:"0 0 0 4px"},t.padding==="none"&&{padding:0},t.align==="left"&&{textAlign:"left"},t.align==="center"&&{textAlign:"center"},t.align==="right"&&{textAlign:"right",flexDirection:"row-reverse"},t.align==="justify"&&{textAlign:"justify"},t.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default})),wve=v.forwardRef(function(t,n){const r=qe({props:t,name:"MuiTableCell"}),{align:o="inherit",className:i,component:a,padding:l,scope:s,size:u,sortDirection:c,variant:d}=r,f=ue(r,yve),m=v.useContext(fve),p=v.useContext(mve),h=p&&p.variant==="head";let y;a?y=a:y=h?"th":"td";let b=s;y==="td"?b=void 0:!b&&h&&(b="col");const g=d||p&&p.variant,x=O({},r,{align:o,component:y,padding:l||(m&&m.padding?m.padding:"normal"),size:u||(m&&m.size?m.size:"medium"),sortDirection:c,stickyHeader:g==="head"&&m&&m.stickyHeader,variant:g}),w=bve(x);let P=null;return c&&(P=c==="asc"?"ascending":"descending"),j.jsx(xve,O({as:y,ref:n,className:ve(w.root,i),"aria-sort":P,scope:b,ownerState:x},f))}),Vw=wve,Cve=rt(j.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),Sve=rt(j.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight"),Eve=rt(j.jsx("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage"),Pve=rt(j.jsx("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),kve=["backIconButtonProps","count","disabled","getItemAriaLabel","nextIconButtonProps","onPageChange","page","rowsPerPage","showFirstButton","showLastButton","slots","slotProps"],$ve=v.forwardRef(function(t,n){var r,o,i,a,l,s,u,c;const{backIconButtonProps:d,count:f,disabled:m=!1,getItemAriaLabel:p,nextIconButtonProps:h,onPageChange:y,page:b,rowsPerPage:g,showFirstButton:x,showLastButton:w,slots:P={},slotProps:C={}}=t,E=ue(t,kve),S=Qy(),M=J=>{y(J,0)},I=J=>{y(J,b-1)},R=J=>{y(J,b+1)},_=J=>{y(J,Math.max(0,Math.ceil(f/g)-1))},D=(r=P.firstButton)!=null?r:Dn,T=(o=P.lastButton)!=null?o:Dn,F=(i=P.nextButton)!=null?i:Dn,N=(a=P.previousButton)!=null?a:Dn,$=(l=P.firstButtonIcon)!=null?l:Pve,L=(s=P.lastButtonIcon)!=null?s:Eve,z=(u=P.nextButtonIcon)!=null?u:Sve,B=(c=P.previousButtonIcon)!=null?c:Cve,A=S?T:D,H=S?F:N,q=S?N:F,U=S?D:T,G=S?C.lastButton:C.firstButton,Y=S?C.nextButton:C.previousButton,re=S?C.previousButton:C.nextButton,le=S?C.firstButton:C.lastButton;return j.jsxs("div",O({ref:n},E,{children:[x&&j.jsx(A,O({onClick:M,disabled:m||b===0,"aria-label":p("first",b),title:p("first",b)},G,{children:S?j.jsx(L,O({},C.lastButtonIcon)):j.jsx($,O({},C.firstButtonIcon))})),j.jsx(H,O({onClick:I,disabled:m||b===0,color:"inherit","aria-label":p("previous",b),title:p("previous",b)},Y??d,{children:S?j.jsx(z,O({},C.nextButtonIcon)):j.jsx(B,O({},C.previousButtonIcon))})),j.jsx(q,O({onClick:R,disabled:m||(f!==-1?b>=Math.ceil(f/g)-1:!1),color:"inherit","aria-label":p("next",b),title:p("next",b)},re??h,{children:S?j.jsx(B,O({},C.previousButtonIcon)):j.jsx(z,O({},C.nextButtonIcon))})),w&&j.jsx(U,O({onClick:_,disabled:m||b>=Math.ceil(f/g)-1,"aria-label":p("last",b),title:p("last",b)},le,{children:S?j.jsx($,O({},C.firstButtonIcon)):j.jsx(L,O({},C.lastButtonIcon))}))]}))}),Ive=$ve;function Ove(e){return Ve("MuiTablePagination",e)}const Mve=Ue("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]),Ks=Mve;var IR;const Rve=["ActionsComponent","backIconButtonProps","className","colSpan","component","count","disabled","getItemAriaLabel","labelDisplayedRows","labelRowsPerPage","nextIconButtonProps","onPageChange","onRowsPerPageChange","page","rowsPerPage","rowsPerPageOptions","SelectProps","showFirstButton","showLastButton","slotProps","slots"],Tve=fe(Vw,{name:"MuiTablePagination",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({overflow:"auto",color:(e.vars||e).palette.text.primary,fontSize:e.typography.pxToRem(14),"&:last-child":{padding:0}})),_ve=fe(im,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(e,t)=>O({[`& .${Ks.actions}`]:t.actions},t.toolbar)})(({theme:e})=>({minHeight:52,paddingRight:2,[`${e.breakpoints.up("xs")} and (orientation: landscape)`]:{minHeight:52},[e.breakpoints.up("sm")]:{minHeight:52,paddingRight:2},[`& .${Ks.actions}`]:{flexShrink:0,marginLeft:20}})),Fve=fe("div",{name:"MuiTablePagination",slot:"Spac Line truncated
${o.map((l,s)=>`const shouldApply${s} = !shouldApplyFilter || shouldApplyFilter(${JSON.stringify(l.item.field)});`).join(`
`)}
const result$$ = {
${o.map((l,s)=>` ${JSON.stringify(String(l.item.id))}: !shouldApply${s}
? false
: ${l.v7?`appliers[${s}].fn(row)`:`appliers[${s}].fn(getRowId(row))`},`).join(`
`)}
};
return result$$;`.replaceAll("$$",String(MR)));return MR+=1,(l,s)=>i(t.current.getRowId,o,l,s)},nye=(e,t)=>{var n,r,o;const i=(n=(r=e.quickFilterValues)==null?void 0:r.filter(Boolean))!=null?n:[];if(i.length===0)return null;const l=((o=e.quickFilterExcludeHiddenColumns)!=null?o:!1)?s0(t):La(t),s=[],{ignoreDiacritics:u}=t.current.rootProps,c=Ij(t);return l.forEach(d=>{const f=t.current.getColumn(d),m=f==null?void 0:f.getApplyQuickFilterFn,p=f==null?void 0:f.getApplyQuickFilterFnV7,h=!xv(m),y=!xv(p);p&&!(h&&!y)?s.push({column:f,appliers:i.map(b=>{const g=u?Al(b):b;return{v7:!0,fn:p(g,f,c)}})}):m&&s.push({column:f,appliers:i.map(b=>{const g=u?Al(b):b;return{v7:!1,fn:m(g,f,c)}})})}),function(f,m){const p={},h={};e:for(let b=0;b<i.length;b+=1){const g=i[b];for(let x=0;x<s.length;x+=1){const{column:w,appliers:P}=s[x],{field:C}=w;if(m&&!m(C))continue;const E=P[b];let S=t.current.getRowValue(f,w);if(E.fn!==null)if(E.v7){if(u&&(S=Al(S)),E.fn(S,f,w,c)){p[g]=!0;continue e}}else{var y;const M=(y=h[C])!=null?y:t.current.getCellParams(t.current.getRowId(f),C);if(u&&(M.value=Al(M.value)),h[C]=M,E.fn(M)){p[g]=!0;continue e}}}p[g]=!1}return p}},rye=(e,t,n)=>{const r=tye(e,t,n),o=nye(e,t);return function(a,l,s){var u,c;s.passingFilterItems=(u=r==null?void 0:r(a,l))!=null?u:null,s.passingQuickFilterValues=(c=o==null?void 0:o(a,l))!=null?c:null}},RR=e=>e!=null,oye=(e,t,n)=>(e.cleanedFilterItems||(e.cleanedFilterItems=n.filter(r=>Mj(r,t)!==null)),e.cleanedFilterItems),iye=(e,t,n,r,o)=>{const i=oye(o,r,n.items),a=e.filter(RR),l=t.filter(RR);if(a.length>0){var s;const c=f=>a.some(m=>m[f.id]);if(((s=n.logicOperator)!=null?s:Sp().logicOperator)===er.And){if(!i.every(c))return!1}else if(!i.some(c))return!1}if(l.length>0&&n.quickFilterValues!=null){var u;const c=f=>l.some(m=>m[f]);if(((u=n.quickFilterLogicOperator)!=null?u:Sp().quickFilterLogicOperator)===er.And){if(!n.quickFilterValues.every(c))return!1}else if(!n.quickFilterValues.some(c))return!1}return!0},TR=um(e=>{if(!e)return null;const t=new RegExp(lg(e),"i");return(n,r,o,i)=>{let a=i.current.getRowFormattedValue(r,o);return i.current.ignoreDiacritics&&(a=Al(a)),a!=null?t.test(a.toString()):!1}}),aye=(e=!1)=>cm([{value:"contains",getApplyFilterFnV7:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new RegExp(lg(n),"i");return o=>o!=null?r.test(String(o)):!1},InputComponent:Di},{value:"equals",getApplyFilterFnV7:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new Intl.Collator(void 0,{sensitivity:"base",usage:"search"});return o=>o!=null?r.compare(n,o.toString())===0:!1},InputComponent:Di},{value:"startsWith",getApplyFilterFnV7:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new RegExp(`^${lg(n)}.*$`,"i");return o=>o!=null?r.test(o.toString()):!1},InputComponent:Di},{value:"endsWith",getApplyFilterFnV7:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new RegExp(`.*${lg(n)}$`,"i");return o=>o!=null?r.test(o.toString()):!1},InputComponent:Di},{value:"isEmpty",getApplyFilterFnV7:()=>t=>t===""||t==null,requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFnV7:()=>t=>t!==""&&t!=null,requiresFilterValue:!1},{value:"isAnyOf",getApplyFilterFnV7:t=>{if(!Array.isArray(t.value)||t.value.length===0)return null;const n=e?t.value:t.value.map(o=>o.trim()),r=new Intl.Collator(void 0,{sensitivity:"base",usage:"search"});return o=>o!=null?n.some(i=>r.compare(i,o.toString()||"")===0):!1},InputComponent:mj}]),vi={width:100,minWidth:50,maxWidth:1/0,hideable:!0,sortable:!0,resizable:!0,filterable:!0,groupable:!0,pinnable:!0,aggregable:!0,editable:!1,sortComparator:ufe,type:"string",align:"left",filterOperators:aye(),renderEditCell:oce,getApplyQuickFilterFn:$j(TR),getApplyQuickFilterFnV7:TR},lye=()=>cm([{value:"is",getApplyFilterFnV7:e=>{if(!e.value)return null;const t=e.value==="true";return n=>!!n===t},InputComponent:Sme}]);function sye({value:e,api:t}){return e?t.getLocaleText("booleanCellTrueLabel"):t.getLocaleText("booleanCellFalseLabel")}const uye=e=>{switch(e.toLowerCase().trim()){case"true":case"yes":case"1":return!0;case"false":case"no":case"0":case"null":case"undefined":return!1;default:return}},Rj=O({},vi,{type:"boolean",align:"center",headerAlign:"center",renderCell:Oue,renderEditCell:_ue,sortComparator:nj,valueFormatter:sye,filterOperators:lye(),getApplyQuickFilterFn:void 0,getApplyQuickFilterFnV7:void 0,aggregable:!1,pastedValueParser:e=>uye(e)}),yl="__check__",Ed=O({},Rj,{field:yl,type:"checkboxSelection",width:50,resizable:!1,sortable:!1,filterable:!1,aggregable:!1,disableColumnMenu:!0,disableReorder:!0,disableExport:!0,getApplyQuickFilterFn:void 0,getApplyQuickFilterFnV7:void 0,valueGetter:e=>yv(e.api.state,e.api.instanceId)[e.id]!==void 0,renderHeader:e=>j.jsx(Sfe,O({},e)),renderCell:e=>j.jsx(xfe,O({},e))}),S0="actions",cye=O({},vi,{sortable:!1,filterable:!1,aggregable:!1,width:100,align:"center",headerAlign:"center",headerName:"",disableColumnMenu:!0,disableExport:!0,renderCell:Pce,getApplyQuickFilterFn:void 0,getApplyQ Line truncated
`))}function Tye({value:e,field:t,id:n}){return e?(Fj({value:e,columnType:"date",rowId:n,field:t}),e.toLocaleDateString()):""}function _ye({value:e,field:t,id:n}){return e?(Fj({value:e,columnType:"dateTime",rowId:n,field:t}),e.toLocaleString()):""}const Fye=O({},vi,{type:"date",sortComparator:rj,valueFormatter:Tye,filterOperators:_j(),renderEditCell:D4,pastedValueParser:e=>new Date(e)}),Aye=O({},vi,{type:"dateTime",sortComparator:rj,valueFormatter:_ye,filterOperators:_j(!0),renderEditCell:D4,pastedValueParser:e=>new Date(e)}),El=e=>e==null?null:Number(e),DR=um(e=>e==null||Number.isNaN(e)||e===""?null:t=>El(t)===El(e)),Lye=()=>cm([{value:"=",getApplyFilterFnV7:e=>e.value==null||Number.isNaN(e.value)?null:t=>El(t)===e.value,InputComponent:Di,InputComponentProps:{type:"number"}},{value:"!=",getApplyFilterFnV7:e=>e.value==null||Number.isNaN(e.value)?null:t=>El(t)!==e.value,InputComponent:Di,InputComponentProps:{type:"number"}},{value:">",getApplyFilterFnV7:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:El(t)>e.value,InputComponent:Di,InputComponentProps:{type:"number"}},{value:">=",getApplyFilterFnV7:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:El(t)>=e.value,InputComponent:Di,InputComponentProps:{type:"number"}},{value:"<",getApplyFilterFnV7:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:El(t)<e.value,InputComponent:Di,InputComponentProps:{type:"number"}},{value:"<=",getApplyFilterFnV7:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:El(t)<=e.value,InputComponent:Di,InputComponentProps:{type:"number"}},{value:"isEmpty",getApplyFilterFnV7:()=>e=>e==null,requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFnV7:()=>e=>e!=null,requiresFilterValue:!1},{value:"isAnyOf",getApplyFilterFnV7:e=>!Array.isArray(e.value)||e.value.length===0?null:t=>t!=null&&e.value.includes(Number(t)),InputComponent:mj,InputComponentProps:{type:"number"}}]),Dye=O({},vi,{type:"number",align:"right",headerAlign:"right",sortComparator:nj,valueParser:e=>e===""?null:Number(e),valueFormatter:({value:e})=>Ude(e)?e.toLocaleString():e||"",filterOperators:Lye(),getApplyQuickFilterFn:$j(DR),getApplyQuickFilterFnV7:DR}),Nu=e=>e==null||!dP(e)?e:e.value,Nye=()=>cm([{value:"is",getApplyFilterFnV7:e=>e.value==null||e.value===""?null:t=>Nu(t)===Nu(e.value),InputComponent:dR},{value:"not",getApplyFilterFnV7:e=>e.value==null||e.value===""?null:t=>Nu(t)!==Nu(e.value),InputComponent:dR},{value:"isAnyOf",getApplyFilterFnV7:e=>{if(!Array.isArray(e.value)||e.value.length===0)return null;const t=e.value.map(Nu);return n=>t.includes(Nu(n))},InputComponent:fhe}]),jye=e=>typeof e[0]=="object",zye=e=>dP(e)?e.value:e,Bye=e=>dP(e)?e.label:String(e),Hye=O({},vi,{type:"singleSelect",getOptionLabel:Bye,getOptionValue:zye,valueFormatter(e){const{id:t,field:n,value:r,api:o}=e,i=e.api.getColumn(n);if(!Gs(i))return"";let a;if(typeof i.valueOptions=="function"?a=i.valueOptions({id:t,row:t?o.getRow(t):null,field:n}):a=i.valueOptions,r==null)return"";if(!a)return r;if(!jye(a))return i.getOptionLabel(r);const l=a.find(s=>i.getOptionValue(s)===r);return l?i.getOptionLabel(l):""},renderEditCell:hce,filterOperators:Nye(),pastedValueParser:(e,t)=>{const n=t.colDef,r=n.valueOptions,o=typeof r=="function"?r({field:n.field}):r||[],i=n.getOptionValue;if(o.find(l=>i(l)===e))return e}}),Aj="__default__",Vye=()=>({string:vi,number:Dye,date:Fye,dateTime:Aye,boolean:Rj,singleSelect:Hye,[S0]:cye,[Aj]:vi});function Gw(e,t){return typeof e=="string"&&[t,`
`,"\r",'"'].some(n=>e.includes(n))?`"${e.replace(/"/g,'""')}"`:e}const Lj=(e,t)=>{const{delimiterCharacter:n,ignoreValueFormatter:r}=t;let o;if(r){var i;const l=e.colDef.type;if(l==="number")o=String(e.value);else if(l==="date"||l==="dateTime"){var a;o=(a=e.value)==null?void 0:a.toISOString()}else typeof((i=e.value)==null?void 0:i.toString)=="function"?o=e.value.toString():o=e.value}else o=e.formattedValue;return Gw(o,n)};la(["MUI: When the value of a field is an object or a `renderCell` is provided, the CSV export might not display the value correctly.","You can provide a `valueFormatter` with a string representation to be used."]);class qw{constructor(t){this.options=void 0,this.rowString="",this.isEmpty=!0,this.options=t}addValue(t){this.isEmpty||(this.rowString+=this.options.delimiterCharacter),t==null?this.rowString+="":typeof this.options.sanitizeCellValue=="function"?this.rowString+=this.options.sanitizeCellValue(t,this.options.delimiterCharacter):this.rowString+=t,this.isEmpty=!1}getRowString(){return this.rowString}}const Uye=({id:e,columns:t,getCellParams:n,delimiterCharacter:r,ignoreValueFormatter:o})=>{const i=new qw({delimiterCharacter:r});return t.forEach(a=>{const l=n(e,a.field);i.addValue(Lj(l,{delimiterCharacter:r,ignoreValueFormatter:o}))}),i.getRowString()};function Wye(e){const{columns:t,rowIds:n,delimiterCharacter:r,includeHeaders:o,includeColumnGroupsHeaders:i,ignoreValueFormatter:a,apiRef:l}=e,s=n.reduce((m,p)=>`${m}${Uye({id:p,columns:t,getCellParams:l.current.getCellParams,delimiterCharacter:r,ignoreValueFormatter:a})}\r
`,"").trim();if(!o)return s;const u=t.filter(m=>m.field!==Ed.field),c=[];if(i){const m=l.current.unstable_getAllGroupDetails();let p=0;const h=u.reduce((y,b)=>{const g=l.current.unstable_getColumnGroupPath(b.field);return y[b.field]=g,p=Math.max(p,g.length),y},{});for(let y=0;y<p;y+=1){const b=new qw({delimiterCharacter:r,sanitizeCellValue:Gw});c.push(b),u.forEach(g=>{const x=(h[g.field]||[])[y],w=m[x];b.addValue(w?w.headerName||w.groupId:"")})}}const d=new qw({delimiterCharacter:r,sanitizeCellValue:Gw});return u.forEach(m=>{d.addValue(m.headerName||m.field)}),c.push(d),`${`${c.map(m=>m.getRowString()).join(`\r
`)}\r
`}${s}`.trim()}function NR(e){const t=document.createElement("span");t.style.whiteSpace="pre",t.style.userSelect="all",t.style.opacity="0px",t.textContent=e,document.body.appendChild(t);const n=document.createRange();n.selectNode(t);const r=window.getSelection();r.removeAllRanges(),r.addRange(n);try{document.execCommand("copy")}finally{document.body.removeChild(t)}}function Gye(e){navigator.clipboard?navigator.clipboard.writeText(e).catch(()=>{NR(e)}):NR(e)}function qye(e){var t;return!!((t=window.getSelection())!=null&&t.toString()||e&&(e.selectionEnd||0)-(e.selectionStart||0)>0)}const Kye=(e,t)=>{const n=t.unstable_ignoreValueFormatterDuringExport,r=(typeof n=="object"?n==null?void 0:n.clipboardExport:n)||!1,o=t.clipboardCopyCellDelimiter,i=v.useCallback(a=>{if(!((a.ctrlKey||a.metaKey)&&a.key==="c")||qye(a.target))return;let l="";if(e.current.getSelectedRows().size>0)l=e.current.getDataAsCsv({includeHeaders:!1,delimiter:o});else{const u=eo(e);if(u){const c=e.current.getCellParams(u.id,u.field);l=Lj(c,{delimiterCharacter:o,ignoreValueFormatter:r})}}l=e.current.unstable_applyPipeProcessors("clipboardCopy",l),l&&(Gye(l),e.current.publishEvent("clipboardCopy",l))},[e,r,o]);Kde(e,e.current.rootElementRef,"keydown",i),Kt(e,"clipboardCopy",t.onClipboardCopy)},Qye=e=>O({},e,{columnMenu:{open:!1}}),Yye=e=>{const t=gr(e,"useGridColumnMenu"),n=v.useCallback(a=>{e.current.setState(s=>s.columnMenu.open&&s.columnMenu.field===a?s:(t.debug("Opening Column Menu"),O({},s,{columnMenu:{open:!0,field:a}})))&&(e.current.hidePreferences(),e.current.forceUpdate())},[e,t]),r=v.useCallback(()=>{const a=zw(e.current.state);if(a.field){const s=xd(e),u=mi(e),c=La(e);let d=a.field;if(s[d]||(d=c[0]),u[d]===!1){const f=c.filter(p=>p===d?!0:u[p]!==!1),m=f.indexOf(d);d=f[m+1]||f[m-1]}e.current.setColumnHeaderFocus(d)}e.current.setState(s=>!s.columnMenu.open&&s.columnMenu.field===void 0?s:(t.debug("Hiding Column Menu"),O({},s,{columnMenu:O({},s.columnMenu,{open:!1,field:void 0})})))&&e.current.forceUpdate()},[e,t]),o=v.useCallback(a=>{t.debug("Toggle Column Menu");const l=zw(e.current.state);!l.open||l.field!==a?n(a):r()},[e,t,n,r]);ot(e,{showColumnMenu:n,hideColumnMenu:r,toggleColumnMenu:o},"public"),Ge(e,"columnResizeStart",r),Ge(e,"virtualScrollerWheel",e.current.hideColumnMenu),Ge(e,"virtualScrollerTouchMove",e.current.hideColumnMenu)},Dj=["maxWidth","minWidth","width","flex"];function Xye({initialFreeSpace:e,totalFlexUnits:t,flexColumns:n}){const r=new Set(n.map(a=>a.field)),o={all:{},frozenFields:[],freeze:a=>{const l=o.all[a];l&&l.frozen!==!0&&(o.all[a].frozen=!0,o.frozenFields.push(a))}};function i(){if(o.frozenFields.length===r.size)return;const a={min:{},max:{}};let l=e,s=t,u=0;o.frozenFields.forEach(c=>{l-=o.all[c].computedWidth,s-=o.all[c].flex});for(let c=0;c<n.length;c+=1){const d=n[c];if(o.all[d.field]&&o.all[d.field].frozen===!0)continue;let m=l/s*d.flex;m<d.minWidth?(u+=d.minWidth-m,m=d.minWidth,a.min[d.field]=!0):m>d.maxWidth&&(u+=d.maxWidth-m,m=d.maxWidth,a.max[d.field]=!0),o.all[d.field]={frozen:!1,computedWidth:m,flex:d.flex}}u<0?Object.keys(a.max).forEach(c=>{o.freeze(c)}):u>0?Object.keys(a.min).forEach(c=>{o.freeze(c)}):n.forEach(({field:c})=>{o.freeze(c)}),i()}return i(),o.all}const Kw=(e,t)=>{const n={};let r=0,o=0;const i=[];e.orderedFields.forEach(l=>{const s=O({},e.lookup[l]);if(e.columnVisibilityModel[l]===!1)s.computedWidth=0;else{let u;s.flex&&s.flex>0?(r+=s.flex,u=0,i.push(s)):u=td(s.width||vi.width,s.minWidth||vi.minWidth,s.maxWidth||vi.maxWidth),o+=u,s.computedWidth=u}n[l]=s});const a=Math.max(t-o,0);if(r>0&&t>0){const l=Xye({initialFreeSpace:a,totalFlexUnits:r,flexColumns:i});Object.keys(l).forEach(s=>{n[s].computedWidth=l[s].computedWidth})}return O({},e,{lookup:n})},Zye=(e,t)=>{if(!t)return e;const{orderedFields:n=[],dimensions:r={}}=t,o=Object.keys(r);if(o.length===0&&n.length===0)return e;const i={},a=[];for(let c=0;c<n.length;c+=1){const d=n[c];e.lookup[d]&&(i[d]=!0,a.push(d))}const l=a.length===0?e.orderedFields:[...a,...e.orderedFields.filter(c=>!i[c])],s=O({},e.lookup);for(let c=0;c<o.length;c+=1){const d=o[c],f=O({},s[d],{hasBeenResized:!0});Object.entries(r[d]).forEach(([m,p])=>{f[m]=p===-1?1/0:p}),s[d]=f}return O({},e,{orderedFields:l,lookup:s})};function jR(e,t){let n=e[Aj];return t&&e[t]&&(n=e[t]),n}const Xu=({apiRef:e,columnsToUpsert:t,initialState:n,columnTypes:r,columnVisibilityModel:o=mi(e),keepOnlyColumnsToUpsert:i=!1})=>{var a,l,s;const u=!e.current.state.columns;let c;if(u)c={orderedFields:[],lookup:{},columnVisibilityModel:o};else{const p=Ws(e.current.state);c={orderedFields:i?[]:[...p.orderedFields],lookup:O({},p.lookup),columnVisibilityModel:o}}let d={};i&&!u&&(d=Object.keys(c.lookup).reduce((p,h)=>O({},p,{[h]:!1}),{})),t.forEach(p=>{const{field:h}=p;d[h]=!0;let y=c.lookup[h];y==null?(y=O({},jR(r,p.type),{field:h,hasBeenResized:!1}),c.orderedFields.push(h)):i&&c.orderedFields.push(h),y&&y.type!==p.type&&(y=O({},jR(r,p.type),{field:h}));let b=y.hasBeenResized;Dj.forEach(g=>{p[g]!==vLine truncated
`);q.appendChild(x.createTextNode(G)),x.head.appendChild(q)}}else if(H.getAttribute("href")){const q=x.createElement(H.tagName);for(let U=0;U<H.attributes.length;U+=1){const G=H.attributes[U];G&&q.setAttribute(G.nodeName,G.nodeValue||"")}$.push(new Promise(U=>{q.addEventListener("load",()=>U())})),x.head.appendChild(q)}}}Promise.all($).then(()=>{p.contentWindow.print()})},[e,r,t.columnHeaderHeight]),c=v.useCallback(p=>{var h;r.current.body.removeChild(p),e.current.restoreState(o.current||{}),(h=o.current)!=null&&(h=h.columns)!=null&&h.columnVisibilityModel||e.current.setColumnVisibilityModel(i.current),e.current.unstable_setVirtualization(!0),e.current.setRows(a.current),o.current=null,i.current={},a.current=[]},[e]),f={exportDataAsPrint:v.useCallback(async p=>{if(n.debug("Export data as Print"),!e.current.rootElementRef.current)throw new Error("MUI: No grid root element available.");o.current=e.current.exportState(),i.current=mi(e);const h=Ma(e);if(a.current=hf(e).map(b=>h[b]),t.pagination){const b=I4(e),g={page:0,pageSize:b};e.current.updateControlState("pagination",sg(b,"DataGridPro",g)),e.current.forceUpdate()}await l(p==null?void 0:p.fields,p==null?void 0:p.allColumns,p==null?void 0:p.includeCheckboxes),p!=null&&p.getRowsToExport&&s(p.getRowsToExport),e.current.unstable_setVirtualization(!1),await d0e();const y=f0e(p==null?void 0:p.fileName);y.onload=()=>{u(y,p),y.contentWindow.matchMedia("print").addEventListener("change",g=>{g.matches===!1&&c(y)})},r.current.body.appendChild(y)},[t,n,e,u,c,l,s])};ot(e,f,"public");const m=v.useCallback((p,h)=>{var y;return(y=h.printOptions)!=null&&y.disableToolbarButton?p:[...p,{component:j.jsx(ghe,{options:h.printOptions}),componentName:"printExport"}]},[]);Nn(e,"exportMenu",m)},m0e=(e,t,n)=>{var r,o,i;const a=(r=(o=t.filterModel)!=null?o:(i=t.initialState)==null||(i=i.filter)==null?void 0:i.filterModel)!=null?r:Sp();return O({},e,{filter:{filterModel:Oj(a,t.disableMultipleColumnsFiltering,n),filteredRowsLookup:{},filteredDescendantCountLookup:{}},visibleRowsLookup:{}})},h0e=e=>e.filteredRowsLookup;function BR(e,t){return e.current.applyStrategyProcessor("visibleRowsLookupCreation",{tree:t.rows.tree,filteredRowsLookup:t.filter.filteredRowsLookup})}function g0e(){return l0(Object.values)}const v0e=(e,t)=>{var n,r;const o=gr(e,"useGridFilter");e.current.registerControlState({stateId:"filter",propModel:t.filterModel,propOnChange:t.onFilterModelChange,stateSelector:Xn,changeEvent:"filterModelChange"});const i=v.useCallback(()=>{e.current.setState(I=>{const R=Xn(I,e.current.instanceId),_=t.filterMode==="client"?rye(R,e,t.disableEval):null,D=e.current.applyStrategyProcessor("filtering",{isRowMatchingFilters:_,filterModel:R??Sp()}),T=O({},I,{filter:O({},I.filter,D)}),F=BR(e,T);return O({},T,{visibleRowsLookup:F})}),e.current.publishEvent("filteredRowsSet")},[e,t.filterMode,t.disableEval]),a=v.useCallback((I,R)=>R==null||R.filterable===!1||t.disableColumnFilter?I:[...I,"columnMenuFilterItem"],[t.disableColumnFilter]),l=v.useCallback(()=>{i(),e.current.forceUpdate()},[e,i]),s=v.useCallback(I=>{const R=Xn(e),_=[...R.items],D=_.findIndex(T=>T.id===I.id);D===-1?_.push(I):_[D]=I,e.current.setFilterModel(O({},R,{items:_}),"upsertFilterItem")},[e]),u=v.useCallback(I=>{const R=Xn(e),_=[...R.items];I.forEach(D=>{const T=I.findIndex(F=>F.id===D.id);T===-1?_.push(D):_[T]=D}),e.current.setFilterModel(O({},R,{items:I}),"upsertFilterItems")},[e]),c=v.useCallback(I=>{const R=Xn(e),_=R.items.filter(D=>D.id!==I.id);_.length!==R.items.length&&e.current.setFilterModel(O({},R,{items:_}),"deleteFilterItem")},[e]),d=v.useCallback((I,R,_)=>{if(o.debug("Displaying filter panel"),I){const D=Xn(e),T=D.items.filter(L=>{var z;if(L.value!==void 0)return!(Array.isArray(L.value)&&L.value.length===0);const A=(z=e.current.getColumn(L.field).filterOperators)==null?void 0:z.find(q=>q.value===L.operator);return!(typeof(A==null?void 0:A.requiresFilterValue)>"u"?!0:A==null?void 0:A.requiresFilterValue)});let F;const N=T.find(L=>L.field===I),$=e.current.getColumn(I);N?F=T:t.disableMultipleColumnsFiltering?F=[Ww({field:I,operator:$.filterOperators[0].value},e)]:F=[...T,Ww({field:I,operator:$.filterOperators[0].value},e)],e.current.setFilterModel(O({},D,{items:F}))}e.current.showPreferences(fu.filters,R,_)},[e,o,t.disableMultipleColumnsFiltering]),f=v.useCallback(()=>{o.debug("Hiding filter panel"),e.current.hidePreferences()},[e,o]),m=v.useCallback(I=>{const R=Xn(e);R.logicOperator!==I&&e.current.setFilterModel(O({},R,{logicOperator:I}),"changeLogicOperator")},[e]),p=v.useCallback(I=>{const R=Xn(e);qs(R.quickFilterValues,I)||e.current.setFilterModel(O({},R,{quickFilterValues:[...I]}))},[e]),h=v.useCallback((I,R)=>{Xn(e)!==I&&(o.debug("Setting filter model"),e.current.updateControlState("filter",OR(I,t.disableMultipleColumnsFiltering,e),R),e.current.unstable_applyFilters())},[e,o,t.disableMultipleColumnsFiltering]),y={setFilterLogicOperator:m,unstable_applyFilters:l,deleteFilterItem:c,upsertFilterItem:s,upsertFilt Line truncated
`));const T=[];D.forEach(N=>{const $=fv(N,t.getRowId,"A row was provided without id when calling updateRows():"),L=e.current.getRowNode($);if((L==null?void 0:L.type)==="pinnedRow"){const z=e.current.caches.pinnedRows,B=z.idLookup[$];B&&(z.idLookup[$]=O({},B,N))}else T.push(N)});const F=iue({updates:T,getRowId:t.getRowId,previousCache:e.current.caches.rows});c({cache:F,throttle:!0})},[t.signature,t.getRowId,c,e]),m=v.useCallback(()=>{const D=hf(e),T=Ma(e);return new Map(D.map(F=>{var N;return[F,(N=T[F])!=null?N:{}]}))},[e]),p=v.useCallback(()=>c0(e),[e]),h=v.useCallback(()=>hf(e),[e]),y=v.useCallback(D=>u[D],[u]),b=v.useCallback((D,T)=>{const F=e.current.getRowNode(D);if(!F)throw new Error(`MUI: No row with id #${D} found`);if(F.type!=="group")throw new Error("MUI: Only group nodes can be expanded or collapsed");const N=O({},F,{childrenExpanded:T});e.current.setState($=>O({},$,{rows:O({},$.rows,{tree:O({},$.rows.tree,{[D]:N})})})),e.current.forceUpdate(),e.current.publishEvent("rowExpansionChange",N)},[e]),g=v.useCallback(D=>{var T;return(T=di(e)[D])!=null?T:null},[e]),x=v.useCallback(({skipAutoGeneratedRows:D=!0,groupId:T,applySorting:F,applyFiltering:N})=>{const $=di(e);let L;if(F){const z=$[T];if(!z)return[];const B=tP(e);L=[];const A=B.findIndex(H=>H===T)+1;for(let H=A;H<B.length&&$[B[H]].depth>z.depth;H+=1){const q=B[H];(!D||!Cp($[q]))&&L.push(q)}}else L=iP($,T,D);if(N){const z=k4(e);L=L.filter(B=>z[B]!==!1)}return L},[e]),w=v.useCallback((D,T)=>{const F=e.current.getRowNode(D);if(!F)throw new Error(`MUI: No row with id #${D} found`);if(F.parent!==Sr)throw new Error("MUI: The row reordering do not support reordering of grouped rows yet");if(F.type!=="leaf")throw new Error("MUI: The row reordering do not support reordering of footer or grouping rows");e.current.setState(N=>{const $=di(N,e.current.instanceId)[Sr],L=$.children,z=L.findIndex(A=>A===D);if(z===-1||z===T)return N;n.debug(`Moving row ${D} to index ${T}`);const B=[...L];return B.splice(T,0,B.splice(z,1)[0]),O({},N,{rows:O({},N.rows,{tree:O({},N.rows.tree,{[Sr]:O({},$,{children:B})})})})}),e.current.publishEvent("rowsSet")},[e,n]),P=v.useCallback((D,T)=>{if(t.signature===qi.DataGrid&&T.length>1)throw new Error(["MUI: You can't replace rows using `apiRef.current.unstable_replaceRows` on the DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock this feature."].join(`
`));if(T.length===0)return;if(d0(e)>1)throw new Error("`apiRef.current.unstable_replaceRows` is not compatible with tree data and row grouping");const N=O({},di(e)),$=O({},Ma(e)),L=O({},uv(e)),z=N[Sr],B=[...z.children],A=new Set;for(let q=0;q<T.length;q+=1){const U=T[q],G=fv(U,t.getRowId,"A row was provided without id when calling replaceRows()."),[Y]=B.splice(D+q,1,G);A.has(Y)||(delete $[Y],delete L[Y],delete N[Y]);const re={id:G,depth:0,parent:Sr,type:"leaf",groupingKey:null};$[G]=U,L[G]=G,N[G]=re,A.add(G)}N[Sr]=O({},z,{children:B});const H=B.filter(q=>N[q].type==="leaf");e.current.caches.rows.dataRowIdToModelLookup=$,e.current.caches.rows.dataRowIdToIdLookup=L,e.current.setState(q=>O({},q,{rows:O({},q.rows,{dataRowIdToModelLookup:$,dataRowIdToIdLookup:L,dataRowIds:H,tree:N})})),e.current.publishEvent("rowsSet")},[e,t.signature,t.getRowId]),C={getRow:a,getRowId:s,getRowModels:m,getRowsCount:p,getAllRowIds:h,setRows:d,updateRows:f,getRowNode:g,getRowIndexRelativeToVisibleRows:y,unstable_replaceRows:P},E={setRowIndex:w,setRowChildrenExpansion:b,getRowGroupChildren:x},S=v.useCallback(()=>{n.info("Row grouping pre-processing have changed, regenerating the row tree");let D;e.current.caches.rows.rowsBeforePartialUpdates===t.rows?D=O({},e.current.caches.rows,{updates:{type:"full",rows:hf(e)}}):D=ag({rows:t.rows,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),c({cache:D,throttle:!1})},[n,e,t.rows,t.getRowId,t.loading,t.rowCount,c]),M=v.useCallback(D=>{D==="rowTreeCreation"&&S()},[S]),I=v.useCallback(()=>{e.current.getActiveStrategy("rowTree")!==zse(e)&&S()},[e,S]);Ge(e,"activeStrategyProcessorChange",M),Ge(e,"strategyAvailabilityChange",I);const R=v.useCallback(()=>{e.current.setState(D=>{const T=e.current.unstable_applyPipeProcessors("hydrateRows",{tree:di(D,e.current.instanceId),treeDepths:BM(D,e.current.instanceId),dataRowIds:hf(D,e.current.instanceId),dataRowIdToModelLookup:Ma(D,e.current.instanceId),dataRowIdToIdLookup:uv(D,e.current.instanceId)});return O({},D,{rows:O({},D.rows,T,{totalTopLevelRowCount:M4({tree:T.tree,rowCountProp:t.rowCount})})})}),e.current.publishEvent("rowsSet"),e.current.forceUpdate()},[e,t.rowCount]);EP(e,"hydrateRows",R),ot(e,C,"public"),ot(e,E,t.signature===qi.DataGrid?"private":"public");const _=v.useRef(!0);v.useEffect(()=>{if(_.current){_.current=!1;return}const D=e.current.caches.rows.rowsBeforePartialUpdates===t.rows,T=e.current.caches.rows.loadingPropBeforePartialUpdates===t.loading,F=e.current.caches.rows.rowCountPropBeforePartialUpdates===t.rowCount;if(D){T||(e.current.setState(N=>O({},N,{rows:O({},N.rows,{loading:t.loading})})),e.current.caches.rows.loadingPropBeforePartialUpdates=t.loading,e.current.forceUpdate()),F||(e.current.setState(N=>O({},N,{rows:O({},N.rows,{totalRowCount:Math.max(t.rowCount||0,N.rows.totalRowCount),totalTopLevelRowCount:Math.max(t.rowCount||0,N.rows.totalTopLevelRowCount)})})),e.current.caches.rows.rowCountPropBeforePartialUpdates=t.rowCount,e.current.forceUpdate());return}n.debug(`Updating all rows, new length ${t.rows.length}`),c({cache:ag({rows:t.rows,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),throttle:!1})},[t.rows,t.rowCount,t.getRowId,t.loading,n,c,e])},L0e=e=>{const t={[Sr]:O({},rue(),{children:e})};for(let n=0;n<e.length;n+=1){const r=e[n];t[r]={id:r,depth:0,parent:Sr,type:"leaf",groupingKey:null}}return{groupingName:pu,tree:t,treeDepths:{0:e.length},dataRowIds:e}},D0e=({previousTree:e,actions:t})=>{const n=O({},e),r={};for(let a=0;a<t.remove.length;a+=1){const l=t.remove[a];r[l]=!0,delete n[l]}for(let a=0;a<t.insert.length;a+=1){const l=t.insert[a];n[l]={id:l,depth:0,parent:Sr,type:"leaf",groupingKey:null}}const o=n[Sr];let i=[...o.children,...t.insert];return Object.values(r).length&&(i=i.filter(a=>!r[a])),n[Sr]=O({},o,{children:i}),{groupingName:pu,tree:n,treeDepths:{0:i.length},dataRowIds:i}},N0e=e=>e.updates.type==="full"?L0e(e.updates.rows):D0e({previousTree:e.previousTree,actions:e.updates.actions}),j0e=e=>{wv(e,pu,"rowTreeCreation",N0e)},Bj=(e,t)=>e==null||Array.isArray(e)?e:t&&t[0]===e?t:[e],z0e=(e,t)=>{var n;return O({},e,{rowSelection:t.rowSelection?(n=Bj(t.rowSelectionModel))!=null?n:[]:[]})},B0e=(e,t)=>{const n=gr(e,"useGridSelection"),r=T=>(...F)=>{t.rowSelection&&T(...F)},o=v.useMemo(()=>Bj(t.rowSelectionModel,Po(e.current.state)),[e,t.rowSelectionModel]),i=v.useRef(null);e.current.registerControlState({stateId:"rowSelection",propModel:o,propOnChange:t.onRowSelectionModelChange,stateSelector:Po,changeEvent:"rowSelectionChange"});const{checkboxSelection:a,disableMultipleRowSelection:l,disableRowSelectionOnClick:s,isRowSelectable:u}=t,c=!l||a,d=Eu(e,t),f=v.useCallback(T=>{var F;let N=T;const $=(F=i.current)!=null?F:T,L=e.current.isRowSelected(T);if(L){const z=Bf(e),B=z.findIndex(H=>H===$),A=z.findIndex(H=>H===N);if(B===A)return;B>A?N=z[A+1]:N=z[A-1]}i.current=T,e.current.selectRowRange({startId:$,endId:N},!L)},[e]),m=v.useCallback(T=>{if(t.signature===qi.DataGrid&&!t.checkboxSelection&&Array.isArra Line truncated
`));Po(e.current.state)!==T&&(n.debug("Setting selection model"),e.current.setState(N=>O({},N,{rowSelection:t.rowSelection?T:[]})),e.current.forceUpdate())},[e,n,t.rowSelection,t.signature,t.checkboxSelection]),p=v.useCallback(T=>Po(e.current.state).includes(T),[e]),h=v.useCallback(T=>{if(u&&!u(e.current.getRowParams(T)))return!1;const F=e.current.getRowNode(T);return!((F==null?void 0:F.type)==="footer"||(F==null?void 0:F.type)==="pinnedRow")},[e,u]),y=v.useCallback(()=>nfe(e),[e]),b=v.useCallback((T,F=!0,N=!1)=>{if(e.current.isRowSelectable(T))if(i.current=T,N)n.debug(`Setting selection for row ${T}`),e.current.setRowSelectionModel(F?[T]:[]);else{n.debug(`Toggling selection for row ${T}`);const L=Po(e.current.state).filter(B=>B!==T);F&&L.push(T),(L.length<2||c)&&e.current.setRowSelectionModel(L)}},[e,n,c]),g=v.useCallback((T,F=!0,N=!1)=>{n.debug("Setting selection for several rows");const $=T.filter(B=>e.current.isRowSelectable(B));let L;if(N)L=F?$:[];else{const B=O({},yv(e));$.forEach(A=>{F?B[A]=A:delete B[A]}),L=Object.values(B)}(L.length<2||c)&&e.current.setRowSelectionModel(L)},[e,n,c]),x=v.useCallback(({startId:T,endId:F},N=!0,$=!1)=>{if(!e.current.getRow(T)||!e.current.getRow(F))return;n.debug(`Expanding selection from row ${T} to row ${F}`);const L=Bf(e),z=L.indexOf(T),B=L.indexOf(F),[A,H]=z>B?[B,z]:[z,B],q=L.slice(A,H+1);e.current.selectRows(q,N,$)},[e,n]),w={selectRow:b,setRowSelectionModel:m,getSelectedRows:y,isRowSelected:p,isRowSelectable:h},P={selectRows:g,selectRowRange:x};ot(e,w,"public"),ot(e,P,t.signature===qi.DataGrid?"private":"public");const C=v.useCallback(()=>{if(t.keepNonExistentRowsSelected)return;const T=Po(e.current.state),F=Ma(e),N=O({},yv(e));let $=!1;T.forEach(L=>{F[L]||(delete N[L],$=!0)}),$&&e.current.setRowSelectionModel(Object.values(N))},[e,t.keepNonExistentRowsSelected]),E=v.useCallback((T,F)=>{const N=F.metaKey||F.ctrlKey,$=!a&&!N&&!uce(F),L=!c||$,z=e.current.isRowSelected(T);L?e.current.selectRow(T,$?!0:!z,!0):e.current.selectRow(T,!z,!1)},[e,c,a]),S=v.useCallback((T,F)=>{var N;if(s)return;const $=(N=F.target.closest(`.${ne.cell}`))==null?void 0:N.getAttribute("data-field");if($===Ed.field||$===CP)return;if($){const z=e.current.getColumn($);if((z==null?void 0:z.type)===S0)return}e.current.getRowNode(T.id).type!=="pinnedRow"&&(F.shiftKey&&(c||a)?f(T.id):E(T.id,F))},[s,c,a,e,f,E]),M=v.useCallback((T,F)=>{if(c&&F.shiftKey){var N;(N=window.getSelection())==null||N.removeAllRanges()}},[c]),I=v.useCallback((T,F)=>{F.nativeEvent.shiftKey?f(T.id):e.current.selectRow(T.id,T.value)},[e,f]),R=v.useCallback(T=>{const N=t.checkboxSelectionVisibleOnly&&t.pagination?ej(e):Bf(e);e.current.selectRows(N,T.value)},[e,t.checkboxSelectionVisibleOnly,t.pagination]),_=v.useCallback((T,F)=>{if(e.current.getCellMode(T.id,T.field)!==Rt.Edit&&!lm(F)){if(gv(F.key)&&F.shiftKey){const N=eo(e);if(N&&N.id!==T.id){F.preventDefault();const $=e.current.isRowSelected(N.id);if(!c){e.current.selectRow(N.id,!$,!0);return}const L=e.current.getRowIndexRelativeToVisibleRows(N.id),z=e.current.getRowIndexRelativeToVisibleRows(T.id);let B,A;L>z?$?(B=z,A=L-1):(B=z,A=L):$?(B=L+1,A=z):(B=L,A=z);const H=d.rows.slice(B,A+1).map(q=>q.id);e.current.selectRows(H,!$);return}}if(F.key===" "&&F.shiftKey){F.preventDefault(),E(T.id,F);return}F.key==="a"&&(F.ctrlKey||F.metaKey)&&(F.preventDefault(),g(e.current.getAllRowIds(),!0))}},[e,E,g,d.rows,c]);Ge(e,"sortedRowsSet",r(C)),Ge(e,"rowClick",r(S)),Ge(e,"rowSelectionCheckboxChange",r(I)),Ge(e,"headerSelectionCheckboxChange",R),Ge(e,"cellMouseDown",r(M)),Ge(e,"cellKeyDown",r(_)),v.useEffect(()=>{o!==void 0&&e.current.setRowSelectionModel(o)},[e,o,t.rowSelection]),v.useEffect(()=>{t.rowSelection||e.current.setRowSelectionModel([])},[e,t.rowSelection]);const D=o!=null;v.useEffect(()=>{if(D||!t.rowSelection)return;const T=Po(e.current.state);if(h){const F=T.filter(N=>h(N));F.length<T.length&&e.current.setRowSelectionModel(F)}},[e,h,D,t.rowSelection]),v.useEffect(()=>{if(!t.rowSelection||D)return;const T=Po(e.current.state);!c&&T.length>1&&e.current.setRowSelectionModel([])},[e,c,a,D,t.rowSelection])},H0e={noRowsLabel:"No rows",noResultsOverlayLabel:"No results found.",toolbarDensity:"Density",toolbarDensityLabel:"Density",toolbarDensityCompact:"Compact",toolbarDensityStandard:"Standard",toolbarDensityComfortable:"Comfortable",toolbarColumns:"Columns",toolbarColumnsLabel:"Select columns",toolbarFilters:"Filters",toolbarFiltersLabel:"Show filters",toolbarFiltersTooltipHide:"Hide filters",toolbarFiltersTooltipShow:"Show filters",toolbarFiltersTooltipActive:e=>e!==1?`${e} active filters`:`${e} active filter`,toolbarQuickFilterPlaceholder:"Search…",toolbarQuickFilterLabel:"Search",toolbarQuickFilterDeleteIconLabel:"Clear",toolbarExport:"Export",toolbarExportLabel:"Export",toolbarExportCSV:"Download as CSV",toolbarExportPrint:"Print",toolbarExportExcel:"Download as Excel",columnsPanelTextFieldLabel:"Find column",columnsPanelTextFieldPlaceholder:"Column title",columnsPanelDragIconLabel: Line truncated
`)),r.current=!0),E.width===0&&!r.current&&!S&&(n.error(["The parent DOM element of the data grid has an empty width.","Please make sure that this element has an intrinsic width.","The grid displays with a width of 0px.","","More details: https://mui.com/r/x-data-grid-no-dimensions."].join(`
`)),r.current=!0),P.current){f(E),P.current=!1;return}m(E)},[t.autoHeight,m,n]);Ft(()=>c(),[c]),Kt(e,"sortedRowsSet",c),Kt(e,"paginationModelChange",c),Kt(e,"columnsChange",c),Ge(e,"resize",C),Kt(e,"debouncedResize",t.onResize)}const X0e=["style"],Z0e=["style"];function $c(e,t,n=0,r=t.length){if(t.length<=0)return-1;if(n>=r)return n;const o=n+Math.floor((r-n)/2),i=t[o];return e<=i?$c(e,t,n,o):$c(e,t,o+1,r)}function J0e(e,t,n){let r=1;for(;n<t.length&&Math.abs(t[n])<e;)n+=r,r*=2;return $c(e,t,Math.floor(n/2),Math.min(n,t.length))}const Pl=({firstIndex:e,lastIndex:t,buffer:n,minFirstIndex:r,maxLastIndex:o})=>[td(e-n,r,o),td(t+n,r,o)],Hj=(e,t)=>e===t?!0:e.firstRowIndex===t.firstRowIndex&&e.lastRowIndex===t.lastRowIndex&&e.firstColumnIndex===t.firstColumnIndex&&e.lastColumnIndex===t.lastColumnIndex,ebe={maxSize:3},tbe=e=>{var t,n;const r=fs(),o=He(),i=Ne(r,tr),a=Ne(r,mfe),l=Ne(r,aj),{ref:s,onRenderZonePositioning:u,renderZoneMinColumnIndex:c=0,renderZoneMaxColumnIndex:d=i.length,getRowProps:f}=e,m=Mr(),p=Ne(r,ed),h=Ne(r,eP),y=Ne(r,eo),b=Ne(r,dv),g=Ne(r,Pp),x=Ne(r,yv),w=Eu(r,o),P=v.useRef(null),C=v.useRef(null),E=xt(s,C),[S,M]=v.useState(null),I=v.useRef(S),R=v.useRef({top:0,left:0}),[_,D]=v.useState({width:null,height:null}),T=v.useRef(h),[F,N]=v.useState(null),$=v.useRef(Object.create(null)),L=v.useRef(),z=v.useRef(),B=v.useRef(l0((ie,ye,V,Q,Z,ae)=>{let te;const K=ie.slice(ye,V);return ae>-1&&(ye>ae&&ae>=Q||V<ae&&ae<Z)&&(te=ae),{focusedCellColumnIndexNotInRange:te,renderedColumns:K}},ebe)),A=v.useMemo(()=>y!==null?i.findIndex(ie=>ie.field===y.field):-1,[y,i]),H=v.useCallback(ie=>{var ye,V;const Q=r.current.getLastMeasuredRowIndex();let Z=Q===1/0;(ye=w.range)!=null&&ye.lastRowIndex&&!Z&&(Z=Q>=w.range.lastRowIndex);const ae=td(Q-(((V=w.range)==null?void 0:V.firstRowIndex)||0),0,g.positions.length);return Z||g.positions[ae]>=ie?$c(ie,g.positions):J0e(ie,g.positions,ae)},[r,(t=w.range)==null?void 0:t.firstRowIndex,(n=w.range)==null?void 0:n.lastRowIndex,g.positions]),q=v.useCallback(()=>{if(!a)return{firstRowIndex:0,lastRowIndex:w.rows.length,firstColumnIndex:0,lastColumnIndex:i.length};const{top:ie,left:ye}=R.current,V=Math.min(H(ie),g.positions.length-1),Q=o.autoHeight?V+w.rows.length:H(ie+_.height);let Z=0,ae=p.length;if(l){let te=!1;const[K,ee]=Pl({firstIndex:V,lastIndex:Q,minFirstIndex:0,maxLastIndex:w.rows.length,buffer:o.rowBuffer});for(let se=K;se<ee&&!te;se+=1){const Ce=w.rows[se];te=r.current.rowHasAutoHeight(Ce.id)}te||(Z=$c(Math.abs(ye),p),ae=$c(Math.abs(ye)+_.width,p))}return{firstRowIndex:V,lastRowIndex:Q,firstColumnIndex:Z,lastColumnIndex:ae}},[a,l,H,g.positions.length,o.autoHeight,o.rowBuffer,w.rows,p,i.length,r,_]);Ft(()=>{a?(C.current.scrollLeft=0,C.current.scrollTop=0):P.current.style.transform="translate3d(0px, 0px, 0px)"},[a]),Ft(()=>{D({width:C.current.clientWidth,height:C.current.clientHeight})},[g.currentPageTotalHeight]);const U=v.useCallback(()=>{C.current&&D({width:C.current.clientWidth,height:C.current.clientHeight})},[]);Ge(r,"debouncedResize",U);const G=v.useCallback(ie=>{const[ye,V]=Pl({firstIndex:ie.firstRowIndex,lastIndex:ie.lastRowIndex,minFirstIndex:0,maxLastIndex:w.rows.length,buffer:o.rowBuffer}),[Q]=Pl({firstIndex:ie.firstColumnIndex,lastIndex:ie.lastColumnIndex,minFirstIndex:c,maxLastIndex:d,buffer:o.columnBuffer}),Z=Qw({firstColumnToRender:Q,apiRef:r,firstRowToRender:ye,lastRowToRender:V,visibleRows:w.rows}),ae=m.direction==="ltr"?1:-1,te=Pp(r.current.state).positions[ye],K=ae*ed(r)[Z];P.current.style.transform=`translate3d(${K}px, ${te}px, 0px)`,typeof u=="function"&&u({top:te,left:K})},[r,w.rows,u,c,d,o.columnBuffer,o.rowBuffer,m.direction]),Y=v.useCallback(()=>I.current,[]),re=v.useCallback(ie=>{if(I.current&&Hj(ie,I.current)){G(ie);return}M(ie),G(ie);const[ye,V]=Pl({firstIndex:ie.firstRowIndex,lastIndex:ie.lastRowIndex,minFirstIndex:0,maxLastIndex:w.rows.length,buffer:o.rowBuffer});r.current.publishEvent("renderedRowsIntervalChange",{firstRowToRender:ye,lastRowToRender:V}),I.current=ie},[r,M,I,w.rows.length,o.rowBuffer,G]);Ft(()=>{if(_.width==null)return;const ie=q();re(ie);const{top:ye,left:V}=R.current,Q={top:ye,left:V,renderContext:ie};r.current.publishEvent("scrollPositionChange",Q)},[r,q,_.width,re]);const le=Zt(ie=>{const{scrollTop:ye,scrollLeft:V}=ie.currentTarget;if(R.current.top=ye,R.current.left=V,!I.current||ye<0||m.direction==="ltr"&&V<0||m.direction==="rtl"&&V>0)return;const Q=a?q():I.current,Z=Math.abs(Q.firstRowIndex-I.current.firstRowIndex),ae=Math.abs(Q.lastRowIndex-I.current.lastRowIndex),te=Math.abs(Q.firstColumnIndex-I.current.firstColumnIndex),K=Math.abs(Q.lastColumnIndex-I.current.lastColumnIndex),ee=Z>=o.rowThreshold||ae>=o.rowThreshold||te>=o.columnThreshold||K>=o.columnThreshold||T.current!==h;r.current.publishEvent("scrollPositionChange",{top:ye,left:V,renderContext:ee?Q:I.current},ie),ee&&(is.flushSync(()=>{re(Q)}),T.current=h)}),J=Zt(ie=>{r.current.publishEvent("virtualScrollerWheel",{},ie)}),oe=Zt(ie=>{r.current.publishEvent("virtualScroller Line truncated
`));n[e.field]=t;return}const{groupId:r,children:o}=e;o.forEach(i=>{Uj(i,[...t,r],n)})},Yw=e=>{if(!e)return{};const t={};return e.forEach(n=>{Uj(n,[],t)}),t},Xw=(e,t,n)=>{const r=s=>{var u;return(u=t[s])!=null?u:[]},o=[],i=Math.max(...e.map(s=>r(s).length)),a=(s,u,c)=>qs(r(s).slice(0,c+1),r(u).slice(0,c+1)),l=(s,u)=>!!(n!=null&&n.left&&n.left.includes(s)&&!n.left.includes(u)||n!=null&&n.right&&!n.right.includes(s)&&n.right.includes(u));for(let s=0;s<i;s+=1){const u=e.reduce((c,d)=>{var f;const m=(f=r(d)[s])!=null?f:null;if(c.length===0)return[{columnFields:[d],groupId:m}];const p=c[c.length-1],h=p.columnFields[p.columnFields.length-1];return p.groupId!==m||!a(h,d,s)||l(h,d)?[...c,{columnFields:[d],groupId:m}]:[...c.slice(0,c.length-1),{columnFields:[...p.columnFields,d],groupId:m}]},[]);o.push(u)}return o},n1e=["groupId","children"],$P=e=>{let t={};return e.forEach(n=>{if(F4(n))return;const{groupId:r,children:o}=n,i=ue(n,n1e);if(!r)throw new Error("MUI: An element of the columnGroupingModel does not have either `field` or `groupId`.");o||console.warn(`MUI: group groupId=${r} has no children.`);const a=O({},i,{groupId:r}),l=$P(o);if(l[r]!==void 0||t[r]!==void 0)throw new Error(`MUI: The groupId ${r} is used multiple times in the columnGroupingModel.`);t=O({},t,l,{[r]:a})}),O({},t)},r1e=(e,t,n)=>{var r,o,i,a;if(!((r=t.experimentalFeatures)!=null&&r.columnGrouping))return e;const l=La(n),s=s0(n),u=$P((o=t.columnGroupingModel)!=null?o:[]),c=Yw((i=t.columnGroupingModel)!=null?i:[]),d=Xw(l,c,(a=n.current.state.pinnedColumns)!=null?a:{}),f=s.length===0?0:Math.max(...s.map(m=>{var p,h;return(p=(h=c[m])==null?void 0:h.length)!=null?p:0}));return O({},e,{columnGrouping:{lookup:u,unwrappedGroupingModel:c,headerStructure:d,maxDepth:f}})},o1e=(e,t)=>{var n;const r=v.useCallback(s=>{var u;return(u=Lse(e)[s])!=null?u:[]},[e]),o=v.useCallback(()=>S4(e),[e]);ot(e,{unstable_getColumnGroupPath:r,unstable_getAllGroupDetails:o},"public");const a=v.useCallback(()=>{var s;const u=Yw((s=t.columnGroupingModel)!=null?s:[]);e.current.setState(c=>{var d,f,m;const p=(d=(f=c.columns)==null?void 0:f.orderedFields)!=null?d:[],h=(m=c.pinnedColumns)!=null?m:{},y=Xw(p,u,h);return O({},c,{columnGrouping:O({},c.columnGrouping,{headerStructure:y})})})},[e,t.columnGroupingModel]),l=v.useCallback(s=>{var u,c,d,f;if(!((u=t.experimentalFeatures)!=null&&u.columnGrouping))return;const m=(c=(d=(f=e.current).getPinnedColumns)==null?void 0:d.call(f))!=null?c:{},p=La(e),h=s0(e),y=$P(s??[]),b=Yw(s??[]),g=Xw(p,b,m),x=h.length===0?0:Math.max(...h.map(w=>{var P,C;return(P=(C=b[w])==null?void 0:C.length)!=null?P:0}));e.current.setState(w=>O({},w,{columnGrouping:{lookup:y,unwrappedGroupingModel:b,headerStructure:g,maxDepth:x}}))},[e,(n=t.experimentalFeatures)==null?void 0:n.columnGrouping]);Ge(e,"columnIndexChange",a),Ge(e,"columnsChange",()=>{l(t.columnGroupingModel)}),Ge(e,"columnVisibilityModelChange",()=>{l(t.columnGroupingModel)}),v.useEffect(()=>{l(t.columnGroupingModel)},[l,t.columnGroupingModel])},i1e=(e,t)=>{const n=Oye(e,t);return U0e(n,t),j0e(n),Tr(z0e,n,t),Tr(e0e,n,t),Tr(F0e,n,t),Tr(T0e,n,t),Tr(y0e,n,t),Tr(W0e,n,t),Tr(C0e,n,t),Tr(m0e,n,t),Tr(o0e,n,t),Tr(u0e,n,t),Tr(Zbe,n,t),Tr(Qye,n,t),Tr(r1e,n,t),Tr(ffe,n,t),w0e(n,t),B0e(n,t),t0e(n,t),A0e(n,t),vue(n,t),t1e(n),o1e(n,t),_0e(n,t),b0e(n,t),S0e(n,t),v0e(n,t),G0e(n,t),i0e(n,t),c0e(n,t),Jbe(n,t),q0e(n,t),Yye(n),s0e(n,t),p0e(n,t),Kye(n,t),Y0e(n,t),K0e(n,t),e1e(n),pfe(n,t),n},a1e=e=>{const{classes:t}=e;return Oe({root:["virtualScroller"]},ft,t)},l1e=jn("div",{name:"MuiDataGrid",slot:"VirtualScroller",overridesResolver:(e,t)=>t.virtualScroller})({overflow:"auto",height:"100%",position:"relative","@media print":{overflow:"hidden"},zIndex:0}),s1e=v.forwardRef(function(t,n){const r=He(),o=a1e(r);return j.jsx(l1e,O({ref:n},t,{className:ve(o.root,t.className),ownerState:r}))}),u1e=(e,t)=>{const{classes:n}=e;return Oe({root:["virtualScrollerContent",t&&"virtualScrollerContent--overflowed"]},ft,n)},c1e=jn("div",{name:"MuiDataGrid",slot:"VirtualScrollerContent",overridesResolver:(e,t)=>t.virtualScrollerContent})({}),d1e=v.forwardRef(function(t,n){var r;const o=He(),i=!o.autoHeight&&((r=t.style)==null?void 0:r.minHeight)==="auto",a=u1e(o,i);return j.jsx(c1e,O({ref:n},t,{ownerState:o,className:ve(a.root,t.className)}))}),f1e=["className"],p1e=e=>{const{classes:t}=e;return Oe({root:["virtualScrollerRenderZone"]},ft,t)},m1e=jn("div",{name:"MuiDataGrid",slot:"VirtualScrollerRenderZone",overridesResolver:(e,t)=>t.virtualScrollerRenderZone})({position:"absolute",display:"flex",flexDirection:"column"}),h1e=v.forwardRef(function(t,n){const{className:r}=t,o=ue(t,f1e),i=He(),a=p1e(i);return j.jsx(m1e,O({ref:n,className:ve(a.root,r),ownerState:i},o))}),g1e=["className"],v1e=v.forwardRef(function(t,n){const{className:r}=t,o=ue(t,g1e),{getRootProps:i,getContentProps:a,getRenderZoneProps:l,getRows:s}=tbe({ref:n});return j.jsxs(s1e,O({className:r},i(o),{children:[j.jsx(cue,{}),j.jsx(d1e,O({},a(),{children:j.jsx(h1e,O({},l(),{chil Line truncated
`)):null,paginationMode:de.oneOf(["client","server"]),paginationModel:de.shape({page:de.number.isRequired,pageSize:de.number.isRequired}),processRowUpdate:de.func,rowBuffer:de.number,rowCount:de.number,rowHeight:de.number,rowModesModel:de.object,rowPositionsDebounceMs:de.number,rows:de.arrayOf(de.object).isRequired,rowSelection:de.bool,rowSelectionModel:de.oneOfType([de.arrayOf(de.oneOfType([de.number,de.string]).isRequired),de.number,de.string]),rowSpacingType:de.oneOf(["border","margin"]),rowThreshold:de.number,scrollbarSize:de.number,showCellVerticalBorder:de.bool,showColumnVerticalBorder:de.bool,slotProps:de.object,slots:de.object,sortingMode:de.oneOf(["client","server"]),sortingOrder:de.arrayOf(de.oneOf(["asc","desc"])),sortModel:de.arrayOf(de.shape({field:de.string.isRequired,sort:de.oneOf(["asc","desc"])})),sx:de.oneOfType([de.arrayOf(de.oneOfType([de.func,de.object,de.bool])),de.func,de.object]),unstable_ignoreValueFormatterDuringExport:de.oneOfType([de.shape({clipboardExport:de.bool,csvExport:de.bool}),de.bool])};var b1e=Object.prototype,x1e=b1e.hasOwnProperty;function w1e(e,t){return e!=null&&x1e.call(e,t)}function C1e(e,t){return e!=null&&PL(e,t,w1e)}var dm=e=>e.type==="checkbox",mc=e=>e instanceof Date,wr=e=>e==null;const Gj=e=>typeof e=="object";var Rn=e=>!wr(e)&&!Array.isArray(e)&&Gj(e)&&!mc(e),qj=e=>Rn(e)&&e.target?dm(e.target)?e.target.checked:e.target.value:e,S1e=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,Kj=(e,t)=>e.has(S1e(t)),E1e=e=>{const t=e.constructor&&e.constructor.prototype;return Rn(t)&&t.hasOwnProperty("isPrototypeOf")},IP=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Ar(e){let t;const n=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(IP&&(e instanceof Blob||e instanceof FileList))&&(n||Rn(e)))if(t=n?[]:{},!n&&!E1e(e))t=e;else for(const r in e)e.hasOwnProperty(r)&&(t[r]=Ar(e[r]));else return e;return t}var fm=e=>Array.isArray(e)?e.filter(Boolean):[],mn=e=>e===void 0,Le=(e,t,n)=>{if(!t||!Rn(e))return n;const r=fm(t.split(/[,[\].]+?/)).reduce((o,i)=>wr(o)?o:o[i],e);return mn(r)||r===e?mn(e[t])?n:e[t]:r},fi=e=>typeof e=="boolean";const Cv={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},pi={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},ya={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},Qj=k.createContext(null),OP=()=>k.useContext(Qj),P1e=e=>{const{children:t,...n}=e;return k.createElement(Qj.Provider,{value:n},t)};var Yj=(e,t,n,r=!0)=>{const o={defaultValues:t._defaultValues};for(const i in e)Object.defineProperty(o,i,{get:()=>{const a=i;return t._proxyFormState[a]!==pi.all&&(t._proxyFormState[a]=!r||pi.all),n&&(n[a]=!0),e[a]}});return o},ko=e=>Rn(e)&&!Object.keys(e).length,Xj=(e,t,n,r)=>{n(e);const{name:o,...i}=e;return ko(i)||Object.keys(i).length>=Object.keys(t).length||Object.keys(i).find(a=>t[a]===(!r||pi.all))},ug=e=>Array.isArray(e)?e:[e],Zj=(e,t,n)=>!e||!t||e===t||ug(e).some(r=>r&&(n?r===t:r.startsWith(t)||t.startsWith(r)));function MP(e){const t=k.useRef(e);t.current=e,k.useEffect(()=>{const n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}},[e.disabled])}function k1e(e){const t=OP(),{control:n=t.control,disabled:r,name:o,exact:i}=e||{},[a,l]=k.useState(n._formState),s=k.useRef(!0),u=k.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),c=k.useRef(o);return c.current=o,MP({disabled:r,next:d=>s.current&&Zj(c.current,d.name,i)&&Xj(d,u.current,n._updateFormState)&&l({...n._formState,...d}),subject:n._subjects.state}),k.useEffect(()=>(s.current=!0,u.current.isValid&&n._updateValid(!0),()=>{s.current=!1}),[n]),Yj(a,n,u.current,!1)}var zi=e=>typeof e=="string",Jj=(e,t,n,r,o)=>zi(e)?(r&&t.watch.add(e),Le(n,e,o)):Array.isArray(e)?e.map(i=>(r&&t.watch.add(i),Le(n,i))):(r&&(t.watchAll=!0),n);function $1e(e){const t=OP(),{control:n=t.control,name:r,defaultValue:o,disabled:i,exact:a}=e||{},l=k.useRef(r);l.current=r,MP({disabled:i,subject:n._subjects.values,next:c=>{Zj(l.current,c.name,a)&&u(Ar(Jj(l.current,n._names,c.values||n._formValues,!1,o)))}});const[s,u]=k.useState(n._getWatch(r,o));return k.useEffect(()=>n._removeUnmounted()),s}var RP=e=>/^\w*$/.test(e),ez=e=>fm(e.replace(/["|']|\]/g,"").split(/\.|\[/)),Nt=(e,t,n)=>{let r=-1;const o=RP(t)?[t]:ez(t),i=o.length,a=i-1;for(;++r<i;){const l=o[r];let s=n;if(r!==a){const u=e[l];s=Rn(u)||Array.isArray(u)?u:isNaN(+o[r+1])?{}:[]}e[l]=s,e=e[l]}return e};function I1e(e){const t=OP(),{name:n,disabled:r,control:o=t.control,shouldUnregister:i}=e,a=Kj(o._names.array,n),l=$1e({control:o,name:n,defaultValue:Le(o._formValues,n,Le(o._defaultValues,n,e.defaultValue)),exact:!0}),s=k1e({control:o,name:n}),u=k.useRef(o.register(n,{...e.rules,value:l,...fi(e.disabled)?{disabled:e.disabled}:{}}));return k.useEffect Line truncated
* Determine if an object is a Buffer
*
* @author Feross Aboukhadijeh <https://feross.org>
* @license MIT
*/var tCe=function(t){return t!=null&&t.constructor!=null&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)},Ji=Pd,nCe=gz,rCe=tCe,oCe=Ka,iCe={}.hasOwnProperty,w1=["history","path","basename","stem","extname","dirname"];Ka.prototype.toString=gCe;Object.defineProperty(Ka.prototype,"path",{get:aCe,set:lCe});Object.defineProperty(Ka.prototype,"dirname",{get:sCe,set:uCe});Object.defineProperty(Ka.prototype,"basename",{get:cCe,set:dCe});Object.defineProperty(Ka.prototype,"extname",{get:fCe,set:pCe});Object.defineProperty(Ka.prototype,"stem",{get:mCe,set:hCe});function Ka(e){var t,n;if(!e)e={};else if(typeof e=="string"||rCe(e))e={contents:e};else if("message"in e&&"messages"in e)return e;if(!(this instanceof Ka))return new Ka(e);for(this.data={},this.messages=[],this.history=[],this.cwd=nCe.cwd(),n=-1;++n<w1.length;)t=w1[n],iCe.call(e,t)&&(this[t]=e[t]);for(t in e)w1.indexOf(t)<0&&(this[t]=e[t])}function aCe(){return this.history[this.history.length-1]}function lCe(e){QP(e,"path"),this.path!==e&&this.history.push(e)}function sCe(){return typeof this.path=="string"?Ji.dirname(this.path):void 0}function uCe(e){vz(this.path,"dirname"),this.path=Ji.join(e||"",this.basename)}function cCe(){return typeof this.path=="string"?Ji.basename(this.path):void 0}function dCe(e){QP(e,"basename"),KP(e,"basename"),this.path=Ji.join(this.dirname||"",e)}function fCe(){return typeof this.path=="string"?Ji.extname(this.path):void 0}function pCe(e){if(KP(e,"extname"),vz(this.path,"extname"),e){if(e.charCodeAt(0)!==46)throw new Error("`extname` must start with `.`");if(e.indexOf(".",1)>-1)throw new Error("`extname` cannot contain multiple dots")}this.path=Ji.join(this.dirname,this.stem+(e||""))}function mCe(){return typeof this.path=="string"?Ji.basename(this.path,this.extname):void 0}function hCe(e){QP(e,"stem"),KP(e,"stem"),this.path=Ji.join(this.dirname||"",e+(this.extname||""))}function gCe(e){return(this.contents||"").toString(e)}function KP(e,t){if(e&&e.indexOf(Ji.sep)>-1)throw new Error("`"+t+"` cannot be a path: did not expect `"+Ji.sep+"`")}function QP(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function vz(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}var vCe=Gwe,I0=oCe,yCe=I0;I0.prototype.message=bCe;I0.prototype.info=wCe;I0.prototype.fail=xCe;function bCe(e,t,n){var r=new vCe(e,t,n);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}function xCe(){var e=this.message.apply(this,arguments);throw e.fatal=!0,e}function wCe(){var e=this.message.apply(this,arguments);return e.fatal=null,e}var yz=yCe,CCe=SCe;function SCe(e){if(e)throw e}/*!
* Determine if an object is a Buffer
*
* @author Feross Aboukhadijeh <https://feross.org>
* @license MIT
*/var ECe=function(t){return t!=null&&t.constructor!=null&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)},dg=Object.prototype.hasOwnProperty,bz=Object.prototype.toString,i2=Object.defineProperty,a2=Object.getOwnPropertyDescriptor,l2=function(t){return typeof Array.isArray=="function"?Array.isArray(t):bz.call(t)==="[object Array]"},s2=function(t){if(!t||bz.call(t)!=="[object Object]")return!1;var n=dg.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&dg.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var o;for(o in t);return typeof o>"u"||dg.call(t,o)},u2=function(t,n){i2&&n.name==="__proto__"?i2(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},c2=function(t,n){if(n==="__proto__")if(dg.call(t,n)){if(a2)return a2(t,n).value}else return;return t[n]},PCe=function e(){var t,n,r,o,i,a,l=arguments[0],s=1,u=arguments.length,c=!1;for(typeof l=="boolean"&&(c=l,l=arguments[1]||{},s=2),(l==null||typeof l!="object"&&typeof l!="function")&&(l={});s<u;++s)if(t=arguments[s],t!=null)for(n in t)r=c2(l,n),o=c2(t,n),l!==o&&(c&&o&&(s2(o)||(i=l2(o)))?(i?(i=!1,a=r&&l2(r)?r:[]):a=r&&s2(r)?r:{},u2(l,{name:n,newValue:e(c,a,o)})):typeof o<"u"&&u2(l,{name:n,newValue:o}));return l},kCe=e=>{if(Object.prototype.toString.call(e)!=="[object Object]")return!1;const t=Object.getPrototypeOf(e);return t===null||t===Object.prototype},$Ce=[].slice,ICe=OCe;function OCe(e,t){var n;return r;function r(){var a=$Ce.call(arguments,0),l=e.length>a.length,s;l&&a.push(o);try{s=e.apply(null,a)}catch(u){if(l&&n)throw u;return o(u)}l||(s&&typeof s.then=="function"?s.then(i,o):s instanceof Error?o(s):i(s))}function o(){n||(n=!0,t.apply(null,arguments))}function i(a){o(null,a)}}var xz=ICe,MCe=wz;wz.wrap=xz;var d2=[].slice;function wz(){var e=[],t={};return t.run=n,t.use=r,t;function n(){var o=-1,i=d2.call(arguments,0,-1),a=arguments[arguments.length-1];if(typeof a!="function")throw new Error("Expected function as last argument, not "+a);l.apply(null,[null].concat(i));function l(s){var u=e[++o],c=d2.call(arguments,0),d=c.slice(1),f=i.length,m=-1;if(s){a(s);return}for(;++m<f;)(d[m]===null||d[m]===void 0)&&(d[m]=i[m]);i=d,u?xz(u,l).apply(null,i):a.apply(null,[null].concat(i))}}function r(o){if(typeof o!="function")throw new Error("Expected `fn` to be a function, not "+o);return e.push(o),t}}var f2=CCe,RCe=ECe,bh=PCe,p2=kCe,Cz=MCe,rf=yz,TCe=Sz().freeze(),_Ce=[].slice,FCe={}.hasOwnProperty,ACe=Cz().use(LCe).use(DCe).use(NCe);function LCe(e,t){t.tree=e.parse(t.file)}function DCe(e,t,n){e.run(t.tree,t.file,r);function r(o,i,a){o?n(o):(t.tree=i,t.file=a,n())}}function NCe(e,t){var n=e.stringify(t.tree,t.file);n==null||(typeof n=="string"||RCe(n)?("value"in t.file&&(t.file.value=n),t.file.contents=n):t.file.result=n)}function Sz(){var e=[],t=Cz(),n={},r=-1,o;return i.data=l,i.freeze=a,i.attachers=e,i.use=s,i.parse=c,i.stringify=m,i.run=d,i.runSync=f,i.process=p,i.processSync=h,i;function i(){for(var y=Sz(),b=-1;++b<e.length;)y.use.apply(null,e[b]);return y.data(bh(!0,{},n)),y}function a(){var y,b;if(o)return i;for(;++r<e.length;)y=e[r],y[1]!==!1&&(y[1]===!0&&(y[1]=void 0),b=y[0].apply(i,y.slice(1)),typeof b=="function"&&t.use(b));return o=!0,r=1/0,i}function l(y,b){return typeof y=="string"?arguments.length===2?(E1("data",o),n[y]=b,i):FCe.call(n,y)&&n[y]||null:y?(E1("data",o),n=y,i):n}function s(y){var b;if(E1("use",o),y!=null)if(typeof y=="function")P.apply(null,arguments);else if(typeof y=="object")"length"in y?w(y):g(y);else throw new Error("Expected usable value, not `"+y+"`");return b&&(n.settings=bh(n.settings||{},b)),i;function g(C){w(C.plugins),C.settings&&(b=bh(b||{},C.settings))}function x(C){if(typeof C=="function")P(C);else if(typeof C=="object")"length"in C?P.apply(null,C):g(C);else throw new Error("Expected usable value, not `"+C+"`")}function w(C){var E=-1;if(C!=null)if(typeof C=="object"&&"length"in C)for(;++E<C.length;)x(C[E]);else throw new Error("Expected a list of plugins, not `"+C+"`")}function P(C,E){var S=u(C);S?(p2(S[1])&&p2(E)&&(E=bh(!0,S[1],E)),S[1]=E):e.push(_Ce.call(arguments))}}function u(y){for(var b=-1;++b<e.length;)if(e[b][0]===y)return e[b]}function c(y){var b=rf(y),g;return a(),g=i.Parser,C1("parse",g),m2(g,"parse")?new g(String(b),b).parse():g(String(b),b)}function d(y,b,g){if(h2(y),a(),!g&&typeof b=="function"&&(g=b,b=null),!g)return new Promise(x);x(null,g);function x(w,P){t.run(y,rf(b),C);function C(E,S,M){S=S||y,E?P(E):w?w(S):g(null,S,M)}}}function f(y,b){var g,x;return d(y,b,w),g2("runSync","run",x),g;function w(P,C){x=!0,g=C,f2(P)}}function m(y,b){var g=rf(b),x;return a(),x=i.Compiler,S1("stringify",x),h2(y),m2(x,"compile")?new x(y,g).compile():x(y,g)}function p(y,b){if(a(),C1("process",i.Parser),S1("process",i.Compiler),!b)return new Promise(g);g(null,b);function g(x,w){var P=rf(y);ACe.run(i,{file:P},C);function C(E){E?w(E):x?x(P):b(null,P)}}}function h(y){var b,g;return a(),C1("processSync",i.Parser),S1("processSLine truncated
`;else if(r===-3)o=`\r
`;else if(r===-2)o=" ";else if(r===-1){if(i)continue;o=" "}else o=ZSe(r);i=r===-2,n.push(o)}return n.join("")}var eEe=JSe;function tEe(e,t){var n=t.start._index,r=t.start._bufferIndex,o=t.end._index,i=t.end._bufferIndex,a;return n===o?a=[e[n].slice(r,i)]:(a=e.slice(n,o),r>-1&&(a[0]=a[0].slice(r)),i>0&&a.push(e[o].slice(0,i))),a}var nEe=tEe,rEe=gm,oEe=_n,iEe=tk,aEe=al,$1=ek,lEe=R0,sEe=eEe,w2=Pu,uEe=nEe;function cEe(e,t,n){var r=n?w2(n):{line:1,column:1,offset:0},o={},i=[],a=[],l=[],s={consume:g,enter:x,exit:w,attempt:E(P),check:E(C),interrupt:E(C,{interrupt:!0}),lazy:E(C,{lazy:!0})},u={previous:null,events:[],parser:e,sliceStream:m,sliceSerialize:f,now:p,defineSkip:h,write:d},c=t.tokenize.call(u,s);return t.resolveAll&&i.push(t),r._index=0,r._bufferIndex=-1,u;function d(R){return a=iEe(a,R),y(),a[a.length-1]!==null?[]:(S(t,0),u.events=lEe(i,u.events,u),u.events)}function f(R){return sEe(m(R))}function m(R){return uEe(a,R)}function p(){return w2(r)}function h(R){o[R.line]=R.column,I()}function y(){for(var R,_;r._index<a.length;)if(_=a[r._index],typeof _=="string")for(R=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===R&&r._bufferIndex<_.length;)b(_.charCodeAt(r._bufferIndex));else b(_)}function b(R){c=c(R)}function g(R){oEe(R)?(r.line++,r.column=1,r.offset+=R===-3?2:1,I()):R!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===a[r._index].length&&(r._bufferIndex=-1,r._index++)),u.previous=R}function x(R,_){var D=_||{};return D.type=R,D.start=p(),u.events.push(["enter",D,u]),l.push(D),D}function w(R){var _=l.pop();return _.end=p(),u.events.push(["exit",_,u]),_}function P(R,_){S(R,_.from)}function C(R,_){_.restore()}function E(R,_){return D;function D(T,F,N){var $,L,z,B;return T.tokenize||"length"in T?H($1(T)):A;function A(Y){return Y in T||null in T?H(T.null?$1(T[Y]).concat($1(T.null)):T[Y])(Y):N(Y)}function H(Y){return $=Y,L=0,q(Y[L])}function q(Y){return re;function re(le){return B=M(),z=Y,Y.partial||(u.currentConstruct=Y),Y.name&&u.parser.constructs.disable.null.indexOf(Y.name)>-1?G():Y.tokenize.call(_?rEe({},u,_):u,s,U,G)(le)}}function U(Y){return R(z,B),F}function G(Y){return B.restore(),++L<$.length?q($[L]):N}}}function S(R,_){R.resolveAll&&i.indexOf(R)<0&&i.push(R),R.resolve&&aEe(u.events,_,u.events.length-_,R.resolve(u.events.slice(_),u)),R.resolveTo&&(u.events=R.resolveTo(u.events,u))}function M(){var R=p(),_=u.previous,D=u.currentConstruct,T=u.events.length,F=Array.from(l);return{restore:N,from:T};function N(){r=R,u.previous=_,u.currentConstruct=D,u.events.length=T,l=F,I()}}function I(){r.line in o&&r.column<2&&(r.column=o[r.line],r.offset+=o[r.line]-1)}}var dEe=cEe,ua={};function fEe(e){return e<0||e===32}var ll=fEe,pEe=/[!-\/:-@\[-`\{-~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/,mEe=pEe,hEe=O0;function gEe(e){return t;function t(n){return e.test(hEe(n))}}var hs=gEe,vEe=mEe,yEe=hs,bEe=yEe(vEe),nk=bEe,xEe=hs,wEe=xEe(/\s/),rk=wEe,CEe=ll,SEe=nk,EEe=rk;function PEe(e){if(e===null||CEe(e)||EEe(e))return 1;if(SEe(e))return 2}var Fz=PEe;function kEe(e,t){return e.column+=t,e.offset+=t,e._bufferIndex+=t,e}var $Ee=kEe,of=tk,IEe=al,C2=Fz,S2=$Ee,OEe=R0,Oi=Pu,MEe={name:"attention",tokenize:TEe,resolveAll:REe};function REe(e,t){for(var n=-1,r,o,i,a,l,s,u,c;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;s=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1,a={type:s>1Line truncated
`));++r<o;)r&&n.push(N1("text",`
`)),n.push(e[r]);return t&&e.length>0&&n.push(N1("text",`
`)),n}var c5=qIe,WIe=bm,GIe=qr();function qIe(e,t){var n={},r=t.ordered?"ol":"ul",o,i=-1,a;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start),o=GIe(e,t),a=o.length;++i<a;)if(o[i].properties.className&&o[i].properties.className.indexOf("task-list-item")!==-1){n.className=["contains-task-list"];break}return e(t,r,n,WIe(o,!0))}var KIe=ZIe,QIe=u5,YIe=c5,XIe=bm;function ZIe(e){for(var t=e.footnoteById,n=e.footnoteOrder,r=n.length,o=-1,i=[],a,l,s,u;++o<r;)a=t[n[o].toUpperCase()],a&&(s=a.children.concat(),u=s[s.length-1],l={type:"link",url:"#fnref-"+a.identifier,data:{hProperties:{className:["footnote-backref"]}},children:[{type:"text",value:"↩"}]},(!u||u.type!=="paragraph")&&(u={type:"paragraph",children:[]},s.push(u)),u.children.push(l),i.push({type:"listItem",data:{hProperties:{id:"fn-"+a.identifier}},children:s,position:a.position}));return i.length===0?null:e(null,"div",{className:["footnotes"]},XIe([QIe(e),YIe(e,{type:"list",ordered:!0,children:i})],!0))}var JIe=nOe,eOe=bm,tOe=qr();function nOe(e,t){return e(t,"blockquote",eOe(tOe(e,t),!0))}var rOe=iOe,oOe=ei;function iOe(e,t){return[e(t,"br"),oOe("text",`
`)]}var aOe=sOe,lOe=ei;function sOe(e,t){var n=t.value?t.value+`
`:"",r=t.lang&&t.lang.match(/^[^ \t]+(?=[ \t]|$)/),o={},i;return r&&(o.className=["language-"+r]),i=e(t,"code",o,[lOe("text",n)]),t.meta&&(i.data={meta:t.meta}),e(t.position,"pre",[i])}var uOe=dOe,cOe=qr();function dOe(e,t){return e(t,"del",cOe(e,t))}var fOe=mOe,pOe=qr();function mOe(e,t){return e(t,"em",pOe(e,t))}var d5=gOe,hOe=ei;function gOe(e,t){var n=e.footnoteOrder,r=String(t.identifier);return n.indexOf(r)===-1&&n.push(r),e(t.position,"sup",{id:"fnref-"+r},[e(t,"a",{href:"#fn-"+r,className:["footnote-ref"]},[hOe("text",t.label||r)])])}var vOe=bOe,yOe=d5;function bOe(e,t){for(var n=e.footnoteById,r=e.footnoteOrder,o=1;o in n;)o++;return o=String(o),r.push(o),n[o]={type:"footnoteDefinition",identifier:o,children:[{type:"paragraph",children:t.children}],position:t.position},yOe(e,{type:"footnoteReference",identifier:o,position:t.position})}var xOe=COe,wOe=qr();function COe(e,t){return e(t,"h"+t.depth,wOe(e,t))}var SOe=POe,EOe=ei;function POe(e,t){return e.dangerous?e.augment(t,EOe("raw",t.value)):null}var U2={};function kOe(e){var t,n,r=U2[e];if(r)return r;for(r=U2[e]=[],t=0;t<128;t++)n=String.fromCharCode(t),/^[0-9a-z]$/i.test(n)?r.push(n):r.push("%"+("0"+t.toString(16).toUpperCase()).slice(-2));for(t=0;t<e.length;t++)r[e.charCodeAt(t)]=e[t];return r}function L0(e,t,n){var r,o,i,a,l,s="";for(typeof t!="string"&&(n=t,t=L0.defaultChars),typeof n>"u"&&(n=!0),l=kOe(t),r=0,o=e.length;r<o;r++){if(i=e.charCodeAt(r),n&&i===37&&r+2<o&&/^[0-9a-f]{2}$/i.test(e.slice(r+1,r+3))){s+=e.slice(r,r+3),r+=2;continue}if(i<128){s+=l[i];continue}if(i>=55296&&i<=57343){if(i>=55296&&i<=56319&&r+1<o&&(a=e.charCodeAt(r+1),a>=56320&&a<=57343)){s+=encodeURIComponent(e[r]+e[r+1]),r++;continue}s+="%EF%BF%BD";continue}s+=encodeURIComponent(e[r])}return s}L0.defaultChars=";/?:@&=+$,-_.!~*'()#";L0.componentChars="-_.!~*'()";var D0=L0,f5=IOe,j1=ei,$Oe=qr();function IOe(e,t){var n=t.referenceType,r="]",o,i,a;return n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference"?j1("text","!["+t.alt+r):(o=$Oe(e,t),i=o[0],i&&i.type==="text"?i.value="["+i.value:o.unshift(j1("text","[")),a=o[o.length-1],a&&a.type==="text"?a.value+=r:o.push(j1("text",r)),o)}var OOe=TOe,MOe=D0,ROe=f5;function TOe(e,t){var n=e.definition(t.identifier),r;return n?(r={src:MOe(n.url||""),alt:t.alt},n.title!==null&&n.title!==void 0&&(r.title=n.title),e(t,"img",r)):ROe(e,t)}var _Oe=D0,FOe=AOe;function AOe(e,t){var n={src:_Oe(t.url),alt:t.alt};return t.title!==null&&t.title!==void 0&&(n.title=t.title),e(t,"img",n)}var LOe=NOe,DOe=ei;function NOe(e,t){var n=t.value.replace(/\r?\n|\r/g," ");return e(t,"code",[DOe("text",n)])}var jOe=VOe,zOe=D0,BOe=f5,HOe=qr();function VOe(e,t){var n=e.definition(t.identifier),r;return n?(r={href:zOe(n.url||"")},n.title!==null&&n.title!==void 0&&(r.title=n.title),e(t,"a",r,HOe(e,t))):BOe(e,t)}var UOe=D0,WOe=qr(),GOe=qOe;function qOe(e,t){var n={href:UOe(t.url)};return t.title!==null&&t.title!==void 0&&(n.title=t.title),e(t,"a",n,WOe(e,t))}var KOe=YOe,z1=ei,QOe=qr();function YOe(e,t,n){var r=QOe(e,t),o=r[0],i=n?XOe(n):p5(t),a={},l=[],s,u,c;for(typeof t.checked=="boolean"&&((!o||o.tagName!=="p")&&(o=e(null,"p",[]),r.unshift(o)),o.children.length>0&&o.children.unshift(z1("text"," ")),o.children.unshift(e(null,"input",{type:"checkbox",checked:t.checked,disabled:!0})),a.className=["task-list-item"]),s=r.length,u=-1;++u<s;)c=r[u],(i||u!==0||c.tagName!=="p")&&l.push(z1("text",`
`)),c.tagName==="p"&&!i?l=l.concat(c.children):l.push(c);return s&&(i||c.tagName!=="p")&&l.push(z1("text",`
`)),e(t,"li",a,l)}function XOe(e){for(var t=e.spread,n=e.children,r=n.length,o=-1;!t&&++o<r;)t=p5(n[o]);return t}function p5(e){var t=e.spread;return t??e.children.length>1}var ZOe=eMe,JOe=qr();function eMe(e,t){return e(t,"p",JOe(e,t))}var tMe=iMe,nMe=ei,rMe=bm,oMe=qr();function iMe(e,t){return e.augment(t,nMe("root",rMe(oMe(e,t))))}var aMe=sMe,lMe=qr();function sMe(e,t){return e(t,"strong",lMe(e,t))}var uMe=dMe,W2=o5,kh=bm,cMe=qr();function dMe(e,t){for(var n=t.children,r=n.length,o=t.align||[],i=o.length,a=[],l,s,u,c,d;r--;){for(s=n[r].children,c=r===0?"th":"td",l=i||s.length,u=[];l--;)d=s[l],u[l]=e(d,c,{align:o[l]},d?cMe(e,d):[]);a[r]=e(n[r],"tr",kh(u,!0))}return e(t,"table",kh([e(a[0].position,"thead",kh([a[0]],!0))].concat(a[1]?e({start:W2.start(a[1]),end:W2.end(a[a.length-1])},"tbody",kh(a.slice(1),!0)):[]),!0))}var fMe=mMe,pMe=ei;function mMe(e,t){return e.augment(t,pMe("text",String(t.value).replace(/[ \t]*(\r?\n|\r)[ \t]*/g,"$1")))}var hMe={blockquote:JIe,break:rOe,code:aOe,delete:uOe,emphasis:fOe,footnoteReference:d5,footnote:vOe,heading:xOe,html:SOe,imageReference:OOe,image:FOe,inlineCode:LOe,linkReference:jOe,link:GOe,listItem:KOe,list:c5,paragraph:ZOe,root:tMe,strong:aMe,table:uMe,text:fMe,thematicBreak:u5,toml:$h,yaml:$h,definition:$h,footnoteDefinition:$h};function $h(){return null}var gMe=kMe,vMe=ei,yMe=sk,G2=o5,bMe=LIe,xMe=jIe,wMe=s5(),CMe=KIe,SMe=hMe,EMe={}.hasOwnProperty,q2=!1;function PMe(e,t){var n=t||{};n.allowDangerousHTML!==void 0&&!q2&&(q2=!0,console.warn("mdast-util-to-hast: deprecation: `allowDangerousHTML` is nonstandard, use `allowDangerousHtml` instead"));var r=n.allowDangerousHtml||n.allowDangerousHTML,o={};return a.dangerous=r,a.definition=xMe(e),a.footnoteById=o,a.footnoteOrder=[],a.augment=i,a.handlers=Object.assign({},SMe,n.handlers),a.unknownHandler=n.unknownHandler,a.passThrough=n.passThrough,yMe(e,"footnoteDefinition",l),a;function i(s,u){var c,d;return s&&s.data&&(c=s.data,c.hName&&(u.type!=="element"&&(u={type:"element",tagName:"",properties:{},children:[]}),u.tagName=c.hName),u.type==="element"&&c.hProperties&&(u.properties=Object.assign({},u.properties,c.hProperties)),u.children&&c.hChildren&&(u.children=c.hChildren)),d=s&&s.position?s:{position:s},bMe(d)||(u.position={start:G2.start(d),end:G2.end(d)}),u}function a(s,u,c,d){return d==null&&typeof c=="object"&&"length"in c&&(d=c,c={}),i(s,{type:"element",tagName:u,properties:c||{},children:d||[]})}function l(s){var u=String(s.identifier).toUpperCase();EMe.call(o,u)||(o[u]=s)}}function kMe(e,t){var n=PMe(e,t),r=wMe(n,e),o=CMe(n);return o&&(r.children=r.children.concat(vMe("text",`
`),o)),r}var $Me=gMe,m5=$Me,IMe=OMe;function OMe(e,t){return e&&!e.process&&(t=e,e=null),e?MMe(e,t):RMe(t)}function MMe(e,t){return n;function n(r,o,i){e.run(m5(r,t),o,a);function a(l){i(l)}}}function RMe(e){return t;function t(n){return m5(n,e)}}var TMe=FMe,_Me=Object.prototype.hasOwnProperty;function FMe(){for(var e={},t=0;t<arguments.length;t++){var n=arguments[t];for(var r in n)_Me.call(n,r)&&(e[r]=n[r])}return e}var h5=g5,ck=g5.prototype;ck.space=null;ck.normal={};ck.property={};function g5(e,t,n){this.property=e,this.normal=t,n&&(this.space=n)}var K2=TMe,AMe=h5,v5=LMe;function LMe(e){for(var t=e.length,n=[],r=[],o=-1,i,a;++o<t;)i=e[o],n.push(i.property),r.push(i.normal),a=i.space;return new AMe(K2.apply(null,n),K2.apply(null,r),a)}var y5=DMe;function DMe(e){return e.toLowerCase()}var b5=x5,ti=x5.prototype;ti.space=null;ti.attribute=null;ti.property=null;ti.boolean=!1;ti.booleanish=!1;ti.overloadedBoolean=!1;ti.number=!1;ti.commaSeparated=!1;ti.spaceSeparated=!1;ti.commaOrSpaceSeparated=!1;ti.mustUseProperty=!1;ti.defined=!1;function x5(e,t){this.property=e,this.attribute=t}var Ci={},NMe=0;Ci.boolean=ku();Ci.booleanish=ku();Ci.overloadedBoolean=ku();Ci.number=ku();Ci.spaceSeparated=ku();Ci.commaSeparated=ku();Ci.commaOrSpaceSeparated=ku();function ku(){return Math.pow(2,++NMe)}var w5=b5,Q2=Ci,C5=dk;dk.prototype=new w5;dk.prototype.defined=!0;var S5=["boolean","booleanish","overloadedBoolean","number","commaSeparated","spaceSeparated","commaOrSpaceSeparated"],jMe=S5.length;function dk(e,t,n,r){var o=-1,i;for(Y2(this,"space",r),w5.call(this,e,t);++o<jMe;)i=S5[o],Y2(this,i,(n&Q2[i])===Q2[i])}function Y2(e,t,n){n&&(e[t]=n)}var X2=y5,zMe=h5,BMe=C5,$d=HMe;function HMe(e){var t=e.space,n=e.mustUseProperty||[],r=e.attributes||{},o=e.properties,i=e.transform,a={},l={},s,u;for(s in o)u=new BMe(s,i(r,s),o[s],t),n.indexOf(s)!==-1&&(u.mustUseProperty=!0),a[s]=u,l[X2(s)]=s,l[X2(u.attribute)]=s;return new zMe(a,l,t)}var VMe=$d,E5=VMe({space:"xlink",transform:UMe,properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}});function UMe(e,t){return"xlink:"+t.slice(5).toLowerCase()}var WMe=$d,P5=WMe({space:"xml",transform:GMe,properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function GMe(e,t){return"xml:"+t.slice(3).toLowerCase()}var k5=qMe;function qMe(e,t){return t in e?e[t]:t}var KMe=k5,$5=QMe;function QMe(e,t){return KMe(e,t.toLowerCase())}var YMe=$d,XMe=$5,I5=YMe({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:XMe,properties:{xmlns:null,xmlnsXLink:null}}),fk=Ci,ZMe=$d,_r=fk.booleanish,yo=fk.number,vs=fk.spaceSeparated,O5=ZMe({transform:JMe,properties:{ariaActiveDescendant:null,ariaAtomic:_r,ariaAutoComplete:null,ariaBusy:_r,ariaChecked:_r,ariaColCount:yo,ariaColIndex:yo,ariaColSpan:yo,ariaControls:vs,ariaCurrent:null,ariaDescribedBy:vs,ariaDetails:null,ariaDisabled:_r,ariaDropEffect:vs,ariaErrorMessage:null,ariaExpanded:_r,ariaFlowTo:vs,ariaGrabbed:_r,ariaHasPopup:null,ariaHidden:_r,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:vs,ariaLevel:yo,ariaLive:null,ariaModal:_r,ariaMultiLine:_r,ariaMultiSelectable:_r,ariaOrientation:null,ariaOwns:vs,ariaPlaceholder:null,ariaPosInSet:yo,ariaPressed:_r,ariaReadOnly:_r,ariaRelevant:null,ariaRequired:_r,ariaRoleDescription:vs,ariaRowCount:yo,ariaRowIndex:yo,ariaRowSpan:yo,ariaSelected:_r,ariaSetSize:yo,ariaSort:null,ariaValueMax:yo,ariaValueMin:yo,ariaValueNow:yo,ariaValueText:null,role:null}});function JMe(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}var Id=Ci,eRe=$d,tRe=$5,at=Id.boolean,nRe=Id.overloadedBoolean,sf=Id.booleanish,Gt=Id.number,vr=Id.spaceSeparated,Ih=Id.commaSeparated,rRe=eRe({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:tRe,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Ih,acceptCharset:vr,accessKey:vr,action:null,allow:null,allowFullScreen:at,allowPaymentRequest:at,allowUserMedia:at,alt:null,as:null,async:at,autoCapitalize:null,autoComplete:vr,autoFocus:at,autoPlay:at,capture:at,charSet:null,checked:at,cite:null,className:vr,cols:Gt,colSpan:null,content:null,contentEditable:sf,controls:at,controlsList:vr,coords:Gt|Ih,crossOrigin:null,data:null,dateTime:null,decoding:null,default:at,defer:at,dir:null,dirName:null,disabled:at,download:nRe,draggable:sf,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:at,formTarget:null,headers:vr,height:Gt,hidden:at,high:Gt,href:null,hrefLang:null,htmlFor:vr,httpEquiv:vr,id:null,imageSizes:null,imageSrcSet:Ih,inputMode:null,integrity:null,is:null,isMap:at,itemId:null,itemProp:vr,itemRef:vr,itemScope:at,itemType:vr,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:at,low:Gt,manifest:null,max:null,maxLength:Gt,media:null,method:null,min:null,minLength:Gt,multiple:at,muted:at,name:null,nonce:null,noModule:at,noValidate Line truncated
* react-is.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var N0=60103,j0=60106,xm=60107,wm=60108,Cm=60114,Sm=60109,Em=60110,Pm=60112,km=60113,mk=60120,$m=60115,Im=60116,R5=60121,T5=60122,_5=60117,F5=60129,A5=60131;if(typeof Symbol=="function"&&Symbol.for){var Qn=Symbol.for;N0=Qn("react.element"),j0=Qn("react.portal"),xm=Qn("react.fragment"),wm=Qn("react.strict_mode"),Cm=Qn("react.profiler"),Sm=Qn("react.provider"),Em=Qn("react.context"),Pm=Qn("react.forward_ref"),km=Qn("react.suspense"),mk=Qn("react.suspense_list"),$m=Qn("react.memo"),Im=Qn("react.lazy"),R5=Qn("react.block"),T5=Qn("react.server.block"),_5=Qn("react.fundamental"),F5=Qn("react.debug_trace_mode"),A5=Qn("react.legacy_hidden")}function Si(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case N0:switch(e=e.type,e){case xm:case Cm:case wm:case km:case mk:return e;default:switch(e=e&&e.$$typeof,e){case Em:case Pm:case Im:case $m:case Sm:return e;default:return t}}case j0:return t}}}var gRe=Sm,vRe=N0,yRe=Pm,bRe=xm,xRe=Im,wRe=$m,CRe=j0,SRe=Cm,ERe=wm,PRe=km;Bt.ContextConsumer=Em;Bt.ContextProvider=gRe;Bt.Element=vRe;Bt.ForwardRef=yRe;Bt.Fragment=bRe;Bt.Lazy=xRe;Bt.Memo=wRe;Bt.Portal=CRe;Bt.Profiler=SRe;Bt.StrictMode=ERe;Bt.Suspense=PRe;Bt.isAsyncMode=function(){return!1};Bt.isConcurrentMode=function(){return!1};Bt.isContextConsumer=function(e){return Si(e)===Em};Bt.isContextProvider=function(e){return Si(e)===Sm};Bt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===N0};Bt.isForwardRef=function(e){return Si(e)===Pm};Bt.isFragment=function(e){return Si(e)===xm};Bt.isLazy=function(e){return Si(e)===Im};Bt.isMemo=function(e){return Si(e)===$m};Bt.isPortal=function(e){return Si(e)===j0};Bt.isProfiler=function(e){return Si(e)===Cm};Bt.isStrictMode=function(e){return Si(e)===wm};Bt.isSuspense=function(e){return Si(e)===km};Bt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===xm||e===Cm||e===F5||e===wm||e===km||e===mk||e===A5||typeof e=="object"&&e!==null&&(e.$$typeof===Im||e.$$typeof===$m||e.$$typeof===Sm||e.$$typeof===Em||e.$$typeof===Pm||e.$$typeof===_5||e.$$typeof===R5||e[0]===T5)};Bt.typeOf=Si;M5.exports=Bt;var kRe=M5.exports,Om=Ci,$Re=$d,IRe=k5,ORe=Om.boolean,Ye=Om.number,J2=Om.spaceSeparated,B1=Om.commaSeparated,bo=Om.commaOrSpaceSeparated,MRe=$Re({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPLine truncated
`,rT="/",oT="*",Ms="",$2e="comment",I2e="declaration",O2e=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function o(p){var h=p.match(b2e);h&&(n+=h.length);var y=p.lastIndexOf(k2e);r=~y?p.length-y:r+p.length}function i(){var p={line:n,column:r};return function(h){return h.position=new a(p),u(),h}}function a(p){this.start=p,this.end={line:n,column:r},this.source=t.source}a.prototype.content=e;function l(p){var h=new Error(t.source+":"+n+":"+r+": "+p);if(h.reason=p,h.filename=t.source,h.line=n,h.column=r,h.source=e,!t.silent)throw h}function s(p){var h=p.exec(e);if(h){var y=h[0];return o(y),e=e.slice(y.length),h}}function u(){s(x2e)}function c(p){var h;for(p=p||[];h=d();)h!==!1&&p.push(h);return p}function d(){var p=i();if(!(rT!=e.charAt(0)||oT!=e.charAt(1))){for(var h=2;Ms!=e.charAt(h)&&(oT!=e.charAt(h)||rT!=e.charAt(h+1));)++h;if(h+=2,Ms===e.charAt(h-1))return l("End of comment missing");var y=e.slice(2,h-2);return r+=2,o(y),e=e.slice(h),r+=2,p({type:$2e,comment:y})}}function f(){var p=i(),h=s(w2e);if(h){if(d(),!s(C2e))return l("property missing ':'");var y=s(S2e),b=p({type:I2e,property:iT(h[0].replace(nT,Ms)),value:y?iT(y[0].replace(nT,Ms)):Ms});return s(E2e),b}}function m(){var p=[];c(p);for(var h;h=f();)h!==!1&&(p.push(h),c(p));return p}return u(),m()};function iT(e){return e?e.replace(P2e,Ms):Ms}var M2e=O2e;function R2e(e,t){var n=null;if(!e||typeof e!="string")return n;for(var r,o=M2e(e),i=typeof t=="function",a,l,s=0,u=o.length;s<u;s++)r=o[s],a=r.property,l=r.value,i?t(a,l,r):l&&(n||(n={}),n[a]=l);return n}var T2e=R2e;const H1=v,_2e=kRe,F2e=DRe,A2e=BRe,aT=f2e,L2e=gk,D2e=vk,N2e=T2e;pk.hastToReact=N5;pk.hastChildrenToReact=D5;const uC={}.hasOwnProperty,j2e=new Set(["table","thead","tbody","tfoot","tr"]);function D5(e,t){const n=[];let r=-1,o;for(;++r<t.children.length;)o=t.children[r],o.type==="element"?n.push(N5(e,o,r,t)):o.type==="text"?(t.type!=="element"||!j2e.has(t.tagName)||o.value!==`
`)&&n.push(o.value):o.type==="raw"&&!e.options.skipHtml&&n.push(o.value);return n}function N5(e,t,n,r){const o=e.options,i=e.schema,a=t.tagName,l={};let s=i,u;if(i.space==="html"&&a==="svg"&&(s=F2e,e.schema=s),t.properties)for(u in t.properties)uC.call(t.properties,u)&&B2e(l,u,t.properties[u],e);(a==="ol"||a==="ul")&&e.listDepth++;const c=D5(e,t);(a==="ol"||a==="ul")&&e.listDepth--,e.schema=i;const d=t.position||{start:{line:null,column:null,offset:null},end:{line:null,column:null,offset:null}},f=o.components&&uC.call(o.components,a)?o.components[a]:a,m=typeof f=="string"||f===H1.Fragment;if(!_2e.isValidElementType(f))throw new TypeError(`Component for name \`${a}\` not defined or is not renderable`);if(l.key=[a,d.start.line,d.start.column,n].join("-"),a==="a"&&o.linkTarget&&(l.target=typeof o.linkTarget=="function"?o.linkTarget(l.href,t.children,l.title):o.linkTarget),a==="a"&&o.transformLinkUri&&(l.href=o.transformLinkUri(l.href,t.children,l.title)),!m&&a==="code"&&r.type==="element"&&r.tagName!=="pre"&&(l.inline=!0),!m&&(a==="h1"||a==="h2"||a==="h3"||a==="h4"||a==="h5"||a==="h6")&&(l.level=parseInt(a.charAt(1),10)),a==="img"&&o.transformImageUri&&(l.src=o.transformImageUri(l.src,l.alt,l.title)),!m&&a==="li"&&r.type==="element"){const p=z2e(t);l.checked=p&&p.properties?!!p.properties.checked:null,l.index=V1(r,t),l.ordered=r.tagName==="ol"}return!m&&(a==="ol"||a==="ul")&&(l.ordered=a==="ol",l.depth=e.listDepth),(a==="td"||a==="th")&&(l.align&&(l.style||(l.style={}),l.style.textAlign=l.align,delete l.align),m||(l.isHeader=a==="th")),!m&&a==="tr"&&r.type==="element"&&(l.isHeader=r.tagName==="thead"),o.sourcePos&&(l["data-sourcepos"]=U2e(d)),!m&&o.rawSourcePos&&(l.sourcePosition=t.position),!m&&o.includeElementIndex&&(l.index=V1(r,t),l.siblingCount=V1(r)),m||(l.node=t),c.length>0?H1.createElement(f,l,c):H1.createElement(f,l)}function z2e(e){let t=-1;for(;++t<e.children.length;){const n=e.children[t];if(n.type==="element"&&n.tagName==="input")return n}return null}function V1(e,t){let n=-1,r=0;for(;++n<e.children.length&&e.children[n]!==t;)e.children[n].type==="element"&&r++;return r}function B2e(e,t,n,r){const o=A2e(r.schema,t);let i=n;i==null||i!==i||(i&&typeof i=="object"&&"length"in i&&(i=(o.commaSeparated?D2e:L2e).stringify(i)),o.property==="style"&&typeof i=="string"&&(i=H2e(i)),o.space&&o.property?e[uC.call(aT,o.property)?aT[o.property]:o.property]=i:o.attribute&&(e[o.attribute]=i))}function H2e(e){const t={};try{N2e(e,n)}catch{}return t;function n(r,o){const i=r.slice(0,4)==="-ms-"?`ms-${r.slice(4)}`:r;t[i.replace(/-([a-z])/g,V2e)]=o}}function V2e(e,t){return t.toUpperCase()}function U2e(e){return[e.start.line,":",e.start.column,"-",e.end.line,":",e.end.column].map(t=>String(t)).join("")}const U1=v,lT=yz,W2e=TCe,G2e=xIe,q2e=IMe,pt=LD,K2e=cRe,Q2e=fRe,j5=mRe,Y2e=pk.hastChildrenToReact;var X2e=z0;const sT={}.hasOwnProperty,Z2e="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Oh={renderers:{to:"components",id:"change-renderers-to-components"},astPlugins:{id:"remove-buggy-html-in-markdown-parser"},allowDangerousHtml:{id:"remove-buggy-html-in-markdown-parser"},escapeHtml:{id:"remove-buggy-html-in-markdown-parser"},source:{to:"children",id:"change-source-to-children"},allowNode:{to:"allowElement",id:"replace-allownode-allowedtypes-and-disallowedtypes"},allowedTypes:{to:"allowedElements",id:"replace-allownode-allowedtypes-and-disallowedtypes"},disallowedTypes:{to:"disallowedElements",id:"replace-allownode-allowedtypes-and-disallowedtypes"},includeNodeIndex:{to:"includeElementIndex",id:"change-includenodeindex-to-includeelementindex"}};function z0(e){for(const i in Oh)if(sT.call(Oh,i)&&sT.call(e,i)){const a=Oh[i];console.warn(`[react-markdown] Warning: please ${a.to?`use \`${a.to}\` instead of`:"remove"} \`${i}\` (see <${Z2e}#${a.id}> for more info)`),delete Oh[i]}const t=W2e().use(G2e).use(e.remarkPlugins||e.plugins||[]).use(q2e,{allowDangerousHtml:!0}).use(e.rehypePlugins||[]).use(Q2e,e);let n;typeof e.children=="string"?n=lT(e.children):(e.children!==void 0&&e.children!==null&&console.warn(`[react-markdown] Warning: please pass a string as \`children\` (not: \`${e.children}\`)`),n=lT());const r=t.runSync(t.parse(n),n);if(r.type!=="root")throw new TypeError("Expected a `root` node");let o=U1.createElement(U1.Fragment,{},Y2e({options:e,schema:K2e,listDepth:0},r));return e.className&&(o=U1.createElement("div",{className:e.className},o)),o}z0.defaultProps={transformLinkUri:j5};z0.propTypes={children:pt.string,className:pt.string,allowElement:pt.func,allowedElements:pt.arrayOf(pt.string),disallowedElements:pt.arrayOf(pt.string),unwrapDisallowed:pt.bool,remarkPlugins:pt.arrayOf(pt.oneOfType([pt.object,pt.func,pt.arrayOf(pt.oneOfType([pt.object,pt.func]))])),rehypePlugins:pt.arrayOf(pt.oneOfType([pt.object,pt.func,pt.arrayOf(pt.oneOfType([pt.object,pt.func]))])),sourcePos:pt.bool,rawSourcePos:pt.bool,skipHtml:pt.bool,includeElementIndex:pt.bool,transformLinkUri:pt.oneOfType([pt.func,pt.bool]),linLine truncated
`)&&u.type==="html"&&(o[o.length-1]=o[o.length-1].replace(/(\r?\n|\r)$/," "),a=" "),o.push(t.handle(u,e,t,{before:a,after:l})),a=o[o.length-1].slice(-1);return o.join("")}var w_e=iB;Ck.unsafe=[{character:"~",inConstruct:"phrasing"}];Ck.handlers={delete:aB};aB.peek=C_e;function aB(e,t,n){var r=n.enter("emphasis"),o=w_e(e,n,{before:"~",after:"~"});return r(),"~~"+o+"~~"}function C_e(){return"~"}var S_e=E_e;function E_e(e){var t,n;return e._compiled||(t=e.before?"(?:"+e.before+")":"",n=e.after?"(?:"+e.after+")":"",e.atBreak&&(t="[\\r\\n][\\t ]*"+t),e._compiled=new RegExp((t?"("+t+")":"")+(/[|\\{}()[\]^$+*?.-]/.test(e.character)?"\\":"")+e.character+(n||""),"g")),e._compiled}var P_e=lB;lB.peek=$_e;var k_e=S_e;function lB(e,t,n){for(var r=e.value||"",o="`",i=-1,a,l,s,u;new RegExp("(^|[^`])"+o+"([^`]|$)").test(r);)o+="`";for(/[^ \r\n]/.test(r)&&(/[ \r\n`]/.test(r.charAt(0))||/[ \r\n`]/.test(r.charAt(r.length-1)))&&(r=" "+r+" ");++i<n.unsafe.length;)if(a=n.unsafe[i],!!a.atBreak)for(l=k_e(a);s=l.exec(r);)u=s.index,r.charCodeAt(u)===10&&r.charCodeAt(u-1)===13&&u--,r=r.slice(0,u)+" "+r.slice(s.index+1);return o+r+o}function $_e(){return"`"}/*!
* repeat-string <https://github.com/jonschlinkert/repeat-string>
*
* Copyright (c) 2014-2015, Jon Schlinkert.
* Licensed under the MIT License.
*/var wa="",X1,Sk=I_e;function I_e(e,t){if(typeof e!="string")throw new TypeError("expected a string");if(t===1)return e;if(t===2)return e+e;var n=e.length*t;if(X1!==e||typeof X1>"u")X1=e,wa="";else if(wa.length>=n)return wa.substr(0,n);for(;n>wa.length&&t>1;)t&1&&(wa+=e),t>>=1,e+=e;return wa+=e,wa=wa.substr(0,n),wa}var Gu=Sk,O_e=L_e,M_e=/ +$/,bs=" ",R_e=`
`,T_e="-",Rh=":",yT="|",bT=0,__e=67,F_e=76,A_e=82,Iv=99,cC=108,Ov=114;function L_e(e,t){for(var n=t||{},r=n.padding!==!1,o=n.delimiterStart!==!1,i=n.delimiterEnd!==!1,a=(n.align||[]).concat(),l=n.alignDelimiters!==!1,s=[],u=n.stringLength||N_e,c=-1,d=e.length,f=[],m=[],p=[],h=[],y=[],b=0,g,x,w,P,C,E,S,M,I,R,_;++c<d;){for(g=e[c],x=-1,w=g.length,p=[],h=[],w>b&&(b=w);++x<w;)E=D_e(g[x]),l===!0&&(C=u(E),h[x]=C,P=y[x],(P===void 0||C>P)&&(y[x]=C)),p.push(E);f[c]=p,m[c]=h}if(x=-1,w=b,typeof a=="object"&&"length"in a)for(;++x<w;)s[x]=xT(a[x]);else for(_=xT(a);++x<w;)s[x]=_;for(x=-1,w=b,p=[],h=[];++x<w;)_=s[x],I="",R="",_===cC?I=Rh:_===Ov?R=Rh:_===Iv&&(I=Rh,R=Rh),C=l?Math.max(1,y[x]-I.length-R.length):1,E=I+Gu(T_e,C)+R,l===!0&&(C=I.length+C+R.length,C>y[x]&&(y[x]=C),h[x]=C),p[x]=E;for(f.splice(1,0,p),m.splice(1,0,h),c=-1,d=f.length,S=[];++c<d;){for(p=f[c],h=m[c],x=-1,w=b,M=[];++x<w;)E=p[x]||"",I="",R="",l===!0&&(C=y[x]-(h[x]||0),_=s[x],_===Ov?I=Gu(bs,C):_===Iv?C%2===0?(I=Gu(bs,C/2),R=I):(I=Gu(bs,C/2+.5),R=Gu(bs,C/2-.5)):R=Gu(bs,C)),o===!0&&x===0&&M.push(yT),r===!0&&!(l===!1&&E==="")&&(o===!0||x!==0)&&M.push(bs),l===!0&&M.push(I),M.push(E),l===!0&&M.push(R),r===!0&&M.push(bs),(i===!0||x!==w-1)&&M.push(yT);M=M.join(""),i===!1&&(M=M.replace(M_e,"")),S.push(M)}return S.join(R_e)}function D_e(e){return e==null?"":String(e)}function N_e(e){return e.length}function xT(e){var t=typeof e=="string"?e.charCodeAt(0):bT;return t===F_e||t===cC?cC:t===A_e||t===Ov?Ov:t===__e||t===Iv?Iv:bT}var j_e=iB,z_e=P_e,B_e=O_e,H_e=V_e;function V_e(e){var t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,o=t.stringLength,i=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{table:a,tableRow:l,tableCell:s,inlineCode:f}};function a(m,p,h){return u(c(m,h),m.align)}function l(m,p,h){var y=d(m,h),b=u([y]);return b.slice(0,b.indexOf(`
`))}function s(m,p,h){var y=h.enter("tableCell"),b=j_e(m,h,{before:i,after:i});return y(),b}function u(m,p){return B_e(m,{align:p,alignDelimiters:r,padding:n,stringLength:o})}function c(m,p){for(var h=m.children,y=-1,b=h.length,g=[],x=p.enter("table");++y<b;)g[y]=d(h[y],p);return x(),g}function d(m,p){for(var h=m.children,y=-1,b=h.length,g=[],x=p.enter("tableRow");++y<b;)g[y]=s(h[y],m,p);return x(),g}function f(m,p,h){var y=z_e(m,p,h);return h.stack.indexOf("tableCell")!==-1&&(y=y.replace(/\|/g,"\\$&")),y}}var Ek={},U_e=W_e;function W_e(e){var t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}var G_e=q_e;function q_e(e){var t=e.options.listItemIndent||"tab";if(t===1||t==="1")return"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}var K_e=Y_e,Q_e=Sk;function Y_e(e,t){for(var n=e.children||[],r=[],o=-1,i;++o<n.length;)i=n[o],r.push(t.handle(i,e,t,{before:`
`,after:`
`})),o+1<n.length&&r.push(a(i,n[o+1]));return r.join("");function a(l,s){for(var u=-1,c;++u<t.join.length&&(c=t.join[u](l,s,e,t),!(c===!0||c===1));){if(typeof c=="number")return Q_e(`
`,1+Number(c));if(c===!1)return`
<!---->
`}return`
`}}var X_e=J_e,Z_e=/\r?\n|\r/g;function J_e(e,t){for(var n=[],r=0,o=0,i;i=Z_e.exec(e);)a(e.slice(r,i.index)),n.push(i[0]),r=i.index+i[0].length,o++;return a(e.slice(r)),n.join("");function a(l){n.push(t(l,o,!l))}}var eFe=iFe,wT=Sk,tFe=U_e,nFe=G_e,rFe=K_e,oFe=X_e;function iFe(e,t,n){var r=tFe(n),o=nFe(n),i,a,l;return t&&t.ordered&&(r=(t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+"."),i=r.length+1,(o==="tab"||o==="mixed"&&(t&&t.spread||e.spread))&&(i=Math.ceil(i/4)*4),l=n.enter("listItem"),a=oFe(rFe(e,n),s),l(),a;function s(u,c,d){return c?(d?"":wT(" ",i))+u:(d?r:r+wT(" ",i-r.length))+u}}var aFe=eFe;Ek.unsafe=[{atBreak:!0,character:"-",after:"[:|-]"}];Ek.handlers={listItem:lFe};function lFe(e,t,n){var r=aFe(e,t,n),o=e.children[0];return typeof e.checked=="boolean"&&o&&o.type==="paragraph"&&(r=r.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,i)),r;function i(a){return a+"["+(e.checked?"x":" ")+"] "}}var sFe=sB;function sB(e,t){var n=-1,r;if(t.extensions)for(;++n<t.extensions.length;)sB(e,t.extensions[n]);for(r in t)r==="extensions"||(r==="unsafe"||r==="join"?e[r]=e[r].concat(t[r]||[]):r==="handlers"?e[r]=Object.assign(e[r],t[r]||{}):e.options[r]=t[r]);return e}var uFe=oB,cFe=Ck,dFe=H_e,fFe=Ek,pFe=sFe,mFe=hFe;function hFe(e){var t=pFe({handlers:{},join:[],unsafe:[],options:{}},{extensions:[uFe,cFe,dFe(e),fFe]});return Object.assign(t.options,{handlers:t.handlers,join:t.join,unsafe:t.unsafe})}var gFe=FTe,vFe=v_e,yFe=mFe,CT,bFe=xFe;function xFe(e){var t=this.data();!CT&&(this.Parser&&this.Parser.prototype&&this.Parser.prototype.blockTokenizers||this.Compiler&&this.Compiler.prototype&&this.Compiler.prototype.visitors)&&(CT=!0,console.warn("[remark-gfm] Warning: please upgrade to remark 13 to use this plugin")),n("micromarkExtensions",gFe(e)),n("fromMarkdownExtensions",vFe),n("toMarkdownExtensions",yFe(e));function n(r,o){t[r]?t[r].push(o):t[r]=[o]}}const wFe=ta(bFe),CFe=rt(j.jsx("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreHoriz"),SFe=["slots","slotProps"],EFe=fe(Wa)(({theme:e})=>O({display:"flex",marginLeft:`calc(${e.spacing(1)} * 0.5)`,marginRight:`calc(${e.spacing(1)} * 0.5)`},e.palette.mode==="light"?{backgroundColor:e.palette.grey[100],color:e.palette.grey[700]}:{backgroundColor:e.palette.grey[700],color:e.palette.grey[100]},{borderRadius:2,"&:hover, &:focus":O({},e.palette.mode==="light"?{backgroundColor:e.palette.grey[200]}:{backgroundColor:e.palette.grey[600]}),"&:active":O({boxShadow:e.shadows[0]},e.palette.mode==="light"?{backgroundColor:nM(e.palette.grey[200],.12)}:{backgroundColor:nM(e.palette.grey[600],.12)})})),PFe=fe(CFe)({width:24,height:16});function kFe(e){const{slots:t={},slotProps:n={}}=e,r=ue(e,SFe),o=e;return j.jsx("li",{children:j.jsx(EFe,O({focusRipple:!0},r,{ownerState:o,children:j.jsx(PFe,O({as:t.CollapsedIcon,ownerState:o},n.collapsedIcon))}))})}function $Fe(e){return Ve("MuiBreadcrumbs",e)}const IFe=Ue("MuiBreadcrumbs",["root","ol","li","separator"]),OFe=IFe,MFe=["children","className","component","slots","slotProps","expandText","itemsAfterCollapse","itemsBeforeCollapse","maxItems","separator"],RFe=e=>{const{classes:t}=e;return Oe({root:["root"],li:["li"],ol:["ol"],separator:["separator"]},$Fe,t)},TFe=fe(Xe,{name:"MuiBreadcrumbs",slot:"Root",overridesResolver:(e,t)=>[{[`& .${OFe.li}`]:t.li},t.root]})({}),_Fe=fe("ol",{name:"MuiBreadcrumbs",slot:"Ol",overridesResolver:(e,t)=>t.ol})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"}),FFe=fe("li",{name:"MuiBreadcrumbs",slot:"Separator",overridesResolver:(e,t)=>t.separator})({display:"flex",userSelect:"none",marginLeft:8,marginRight:8});function AFe(e,t,n,r){return e.reduce((o,i,a)=>(a<e.length-1?o=o.concat(i,j.jsx(FFe,{"aria-hidden":!0,className:t,ownerState:r,children:n},`separator-${a}`)):o.push(i),o),[])}const LFe=v.forwardRef(function(t,n){const r=qe({props:t,name:"MuiBreadcrumbs"}),{children:o,className:i,component:a="nav",slots:l={},slotProps:s={},expandText:u="Show path",itemsAfterCollapse:c=1,itemsBeforeCollapse:d=1,maxItems:f=8,separator:m="/"}=r,p=ue(r,MFe),[h,y]=v.useState(!1),b=O({},r,{component:a,expanded:h,expandText:u,itemsAfterCollapse:c,itemsBeforeCollapse:d,maxItems:f,separator:m}),g=RFe(b),x=Yi({elementType:l.CollapsedIcon,externalSlotProps:s.collapsedIcon,ownerState:b}),w=v.useRef(null),P=E=>{const S=()=>{y(!0);const M=w.current.querySelector("a[href],button,[tabindex]");M&&M.focus()};return d+c>=E.length?E:[...E.slice(0,d),j.jsx(kFe,{"aria-label":u,slots:{CollapsedIcon:l.CollapsedIcon},slotProps:{collapsedIcon:x},onClick:S},"ellipsis"),...E.slice(E.length-c,E.length)]},C=v.Children.toArray(o).filter(E=>v.isValidElement(E)).map((E,S)=>j.jsx("li",{className:g.li,children:E},`child-${S}`));return j.jsx(TFe,O({ref:n,component:a,color:"text.secondary",className:ve(g.root,i),ownerState:b},p,{children:j.jsx(_Fe,{className:g.ol,ref:w,ow Line truncated
&.SnackbarItem-contentRoot {
background-color: ${e=>e.theme.palette.background.default};
color: ${e=>e.theme.palette.primary.main};
}
&.SnackbarItem-variantSuccess {
background-color: ${e=>e.theme.palette.success.main};
color: ${e=>e.theme.palette.success.contrastText};
}
&.SnackbarItem-variantError {
background-color: ${e=>e.theme.palette.error.main};
color: ${e=>e.theme.palette.error.contrastText};
}
&.SnackbarItem-variantInfo {
background-color: ${e=>e.theme.palette.info.main};
color: ${e=>e.theme.palette.info.contrastText};
}
&.SnackbarItem-variantWarning {
background-color: ${e=>e.theme.palette.warning.main};
color: ${e=>e.theme.palette.warning.contrastText};
}
`;const HAe=(e,t)=>O({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),VAe=e=>O({color:(e.vars||e).palette.text.primary},e.typography.body1,{backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),UAe=(e,t=!1)=>{var n;const r={};t&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([a,l])=>{var s;r[e.getColorSchemeSelector(a).replace(/\s*&/,"")]={colorScheme:(s=l.palette)==null?void 0:s.mode}});let o=O({html:HAe(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:O({margin:0},VAe(e),{"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}})},r);const i=(n=e.components)==null||(n=n.MuiCssBaseline)==null?void 0:n.styleOverrides;return i&&(o=[o,i]),o};function WAe(e){const t=qe({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return j.jsxs(v.Fragment,{children:[j.jsx(lP,{styles:o=>UAe(o,r)}),n]})}/**
* @remix-run/router v1.15.3
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/function Op(){return Op=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Op.apply(this,arguments)}var Dl;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Dl||(Dl={}));const $T="popstate";function GAe(e){e===void 0&&(e={});function t(r,o){let{pathname:i,search:a,hash:l}=r.location;return dC("",{pathname:i,search:a,hash:l},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function n(r,o){return typeof o=="string"?o:Mv(o)}return KAe(t,n,null,e)}function xn(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function EB(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function qAe(){return Math.random().toString(36).substr(2,8)}function IT(e,t){return{usr:e.state,key:e.key,idx:t}}function dC(e,t,n,r){return n===void 0&&(n=null),Op({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Od(t):t,{state:n,key:t&&t.key||r||qAe()})}function Mv(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Od(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function KAe(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,a=o.history,l=Dl.Pop,s=null,u=c();u==null&&(u=0,a.replaceState(Op({},a.state,{idx:u}),""));function c(){return(a.state||{idx:null}).idx}function d(){l=Dl.Pop;let y=c(),b=y==null?null:y-u;u=y,s&&s({action:l,location:h.location,delta:b})}function f(y,b){l=Dl.Push;let g=dC(h.location,y,b);n&&n(g,y),u=c()+1;let x=IT(g,u),w=h.createHref(g);try{a.pushState(x,"",w)}catch(P){if(P instanceof DOMException&&P.name==="DataCloneError")throw P;o.location.assign(w)}i&&s&&s({action:l,location:h.location,delta:1})}function m(y,b){l=Dl.Replace;let g=dC(h.location,y,b);n&&n(g,y),u=c();let x=IT(g,u),w=h.createHref(g);a.replaceState(x,"",w),i&&s&&s({action:l,location:h.location,delta:0})}function p(y){let b=o.location.origin!=="null"?o.location.origin:o.location.href,g=typeof y=="string"?y:Mv(y);return g=g.replace(/ $/,"%20"),xn(b,"No window.location.(origin|href) available to create URL for href: "+g),new URL(g,b)}let h={get action(){return l},get location(){return e(o,a)},listen(y){if(s)throw new Error("A history only accepts one active listener");return o.addEventListener($T,d),s=y,()=>{o.removeEventListener($T,d),s=null}},createHref(y){return t(o,y)},createURL:p,encodeLocation(y){let b=p(y);return{pathname:b.pathname,search:b.search,hash:b.hash}},push:f,replace:m,go(y){return a.go(y)}};return h}var OT;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(OT||(OT={}));function QAe(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?Od(t):t,o=Fk(r.pathname||"/",n);if(o==null)return null;let i=PB(e);YAe(i);let a=null;for(let l=0;a==null&&l<i.length;++l){let s=lLe(o);a=iLe(i[l],s)}return a}function PB(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let o=(i,a,l)=>{let s={relativePath:l===void 0?i.path||"":l,caseSensitive:i.caseSensitive===!0,childrenIndex:a,route:i};s.relativePath.startsWith("/")&&(xn(s.relativePath.startsWith(r),'Absolute route path "'+s.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),s.relativePath=s.relativePath.slice(r.length));let u=Yl([r,s.relativePath]),c=n.concat(s);i.children&&i.children.length>0&&(xn(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),PB(i.children,t,c,u)),!(i.path==null&&!i.index)&&t.push({path:u,score:rLe(u,i.index),routesMeta:c})};return e.forEach((i,a)=>{var l;if(i.path===""||!((l=i.path)!=null&&l.includes("?")))o(i,a);else for(let s of kB(i.path))o(i,a,s)}),t}function kB(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let a=kB(r.join("/")),l=[];return l.push(...a.map(s=>s===""?i:[i,s].join("/"))),o&&l.push(...a),l.map(s=>e.startsWith("/")&&s===""?"/":s)}function YAe(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:oLe(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const XAe=/^:[\w-]+$/,ZAe=3,JAe=2,eLe=1,tLe=10,nLe=-2,MT=e=>e==="*";function rLe(e,t){let n=e.split("/"),r=n.length;return n.some(MT)&&(r+=nLe),t&&(r+=JAe),n.filter(o=>!MT(o)).reduce((o,i)=>o+(XAe.test(i)?ZAe:i===""?eLe:tLe),r)}function oLe(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function iLe(e,t){let{routesMeta:n}=e,r={},o="/",i=[];for(let a=0;a<n.length;++a){let l=n[a],s=a===n.length-1,u=o==="/"?t:t.slice(o.length)||"/",c=$B({path:l.relativePath,caseSensitive:lLine truncated
* React Router v6.22.3
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/function Mp(){return Mp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Mp.apply(this,arguments)}const Dk=v.createContext(null),gLe=v.createContext(null),cl=v.createContext(null),G0=v.createContext(null),da=v.createContext({outlet:null,matches:[],isDataRoute:!1}),OB=v.createContext(null);function vLe(e,t){let{relative:n}=t===void 0?{}:t;Md()||xn(!1);let{basename:r,navigator:o}=v.useContext(cl),{hash:i,pathname:a,search:l}=RB(e,{relative:n}),s=a;return r!=="/"&&(s=a==="/"?r:Yl([r,a])),o.createHref({pathname:s,search:l,hash:i})}function Md(){return v.useContext(G0)!=null}function ea(){return Md()||xn(!1),v.useContext(G0).location}function MB(e){v.useContext(cl).static||v.useLayoutEffect(e)}function Rv(){let{isDataRoute:e}=v.useContext(da);return e?_Le():yLe()}function yLe(){Md()||xn(!1);let e=v.useContext(Dk),{basename:t,future:n,navigator:r}=v.useContext(cl),{matches:o}=v.useContext(da),{pathname:i}=ea(),a=JSON.stringify(Ak(o,n.v7_relativeSplatPath)),l=v.useRef(!1);return MB(()=>{l.current=!0}),v.useCallback(function(u,c){if(c===void 0&&(c={}),!l.current)return;if(typeof u=="number"){r.go(u);return}let d=Lk(u,JSON.parse(a),i,c.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:Yl([t,d.pathname])),(c.replace?r.replace:r.push)(d,c.state,c)},[t,r,a,i,e])}const bLe=v.createContext(null);function xLe(e){let t=v.useContext(da).outlet;return t&&v.createElement(bLe.Provider,{value:e},t)}function wLe(){let{matches:e}=v.useContext(da),t=e[e.length-1];return t?t.params:{}}function RB(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=v.useContext(cl),{matches:o}=v.useContext(da),{pathname:i}=ea(),a=JSON.stringify(Ak(o,r.v7_relativeSplatPath));return v.useMemo(()=>Lk(e,JSON.parse(a),i,n==="path"),[e,a,i,n])}function CLe(e,t){return SLe(e,t)}function SLe(e,t,n,r){Md()||xn(!1);let{navigator:o}=v.useContext(cl),{matches:i}=v.useContext(da),a=i[i.length-1],l=a?a.params:{};a&&a.pathname;let s=a?a.pathnameBase:"/";a&&a.route;let u=ea(),c;if(t){var d;let y=typeof t=="string"?Od(t):t;s==="/"||(d=y.pathname)!=null&&d.startsWith(s)||xn(!1),c=y}else c=u;let f=c.pathname||"/",m=f;if(s!=="/"){let y=s.replace(/^\//,"").split("/");m="/"+f.replace(/^\//,"").split("/").slice(y.length).join("/")}let p=QAe(e,{pathname:m}),h=ILe(p&&p.map(y=>Object.assign({},y,{params:Object.assign({},l,y.params),pathname:Yl([s,o.encodeLocation?o.encodeLocation(y.pathname).pathname:y.pathname]),pathnameBase:y.pathnameBase==="/"?s:Yl([s,o.encodeLocation?o.encodeLocation(y.pathnameBase).pathname:y.pathnameBase])})),i,n,r);return t&&h?v.createElement(G0.Provider,{value:{location:Mp({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:Dl.Pop}},h):h}function ELe(){let e=TLe(),t=mLe(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},i=null;return v.createElement(v.Fragment,null,v.createElement("h2",null,"Unexpected Application Error!"),v.createElement("h3",{style:{fontStyle:"italic"}},t),n?v.createElement("pre",{style:o},n):null,i)}const PLe=v.createElement(ELe,null);class kLe extends v.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?v.createElement(da.Provider,{value:this.props.routeContext},v.createElement(OB.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function $Le(e){let{routeContext:t,match:n,children:r}=e,o=v.useContext(Dk);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),v.createElement(da.Provider,{value:t},r)}function ILe(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if((i=n)!=null&&i.errors)e=n.matches;else return null}let a=e,l=(o=n)==null?void 0:o.errors;if(l!=null){let c=a.findIndex(d=>d.route.id&&(l==null?void 0:l[d.route.id]));c>=0||xn(!1),a=a.slice(0,Math.min(a.length,c+1))}let s=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let c=0;c<a.length;c++){let d=a[c];if((d.route.HydrateFallback||d.route.hydrateFallbackElement)&&(u=c),d.route.id){let{loaderData:f,errors:m}=n,p=d.route.loader&&f[d.route.id]===void 0&&(!m||m[d.route.id]===void 0);if(d.route.lazy||p){s=!0,u>=0?a=a.slice(0,u+1):a=[a[0]];break}}}return a.reduceRight((c,d,f)=>{let m,p=!1,h=null,y=null;Line truncated
* React Router DOM v6.22.3
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/function pC(){return pC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pC.apply(this,arguments)}function DLe(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function NLe(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function jLe(e,t){return e.button===0&&(!t||t==="_self")&&!NLe(e)}const zLe=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],BLe="6";try{window.__reactRouterVersion=BLe}catch{}const HLe="startTransition",_T=hg[HLe];function VLe(e){let{basename:t,children:n,future:r,window:o}=e,i=v.useRef();i.current==null&&(i.current=GAe({window:o,v5Compat:!0}));let a=i.current,[l,s]=v.useState({action:a.action,location:a.location}),{v7_startTransition:u}=r||{},c=v.useCallback(d=>{u&&_T?_T(()=>s(d)):s(d)},[s,u]);return v.useLayoutEffect(()=>a.listen(c),[a,c]),v.createElement(ALe,{basename:t,children:n,location:l.location,navigationType:l.action,navigator:a,future:r})}const ULe=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",WLe=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,GLe=v.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:i,replace:a,state:l,target:s,to:u,preventScrollReset:c,unstable_viewTransition:d}=t,f=DLe(t,zLe),{basename:m}=v.useContext(cl),p,h=!1;if(typeof u=="string"&&WLe.test(u)&&(p=u,ULe))try{let x=new URL(window.location.href),w=u.startsWith("//")?new URL(x.protocol+u):new URL(u),P=Fk(w.pathname,m);w.origin===x.origin&&P!=null?u=P+w.search+w.hash:h=!0}catch{}let y=vLe(u,{relative:o}),b=qLe(u,{replace:a,state:l,target:s,preventScrollReset:c,relative:o,unstable_viewTransition:d});function g(x){r&&r(x),x.defaultPrevented||b(x)}return v.createElement("a",pC({},f,{href:p||y,onClick:h||i?r:g,ref:n,target:s}))});var FT;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(FT||(FT={}));var AT;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(AT||(AT={}));function qLe(e,t){let{target:n,replace:r,state:o,preventScrollReset:i,relative:a,unstable_viewTransition:l}=t===void 0?{}:t,s=Rv(),u=ea(),c=RB(e,{relative:a});return v.useCallback(d=>{if(jLe(d,n)){d.preventDefault();let f=r!==void 0?r:Mv(u)===Mv(c);s(e,{replace:f,state:o,preventScrollReset:i,relative:a,unstable_viewTransition:l})}},[u,s,c,r,o,n,e,i,a,l])}var LT=e=>{if(typeof e>"u")return e;let t=Number(e);return`${t}`===e?t:e},KLe={addQueryPrefix:!0,skipNulls:!0,arrayFormat:"indices",encode:!1,encodeValuesOnly:!0},QLe={go:()=>{let{search:e,hash:t}=ea(),n=Rv();return v.useCallback(({to:r,type:o,query:i,hash:a,options:{keepQuery:l,keepHash:s}={}})=>{let u={...l&&e&&Qh.parse(e,{ignoreQueryPrefix:!0}),...i};u.to&&(u.to=encodeURIComponent(`${u.to}`));let c=Object.keys(u).length>0,d=`#${(a||s&&t||"").replace(/^#/,"")}`,f=d.length>1,m=`${r||""}${c?Qh.stringify(u,KLe):""}${f?d:""}`;return o==="path"?m:n(m,{replace:o==="replace"})},[t,e,n])},back:()=>{let e=Rv();return v.useCallback(()=>{e(-1)},[e])},parse:()=>{var e;let t=wLe(),{pathname:n,search:r}=ea(),{resources:o}=v.useContext(Hp),{resource:i,action:a,matchedRoute:l}=k.useMemo(()=>NL(n,o),[o,n]);return Object.entries(t).length===0&&l&&(t=((e=$B(l,n))==null?void 0:e.params)||{}),v.useCallback(()=>{let s=Qh.parse(r,{ignoreQueryPrefix:!0}),u={...t,...s};return{...i&&{resource:i},...a&&{action:a},...(t==null?void 0:t.id)&&{id:decodeURIComponent(t.id)},pathname:n,params:{...u,current:LT(u.current),pageSize:LT(u.pageSize),to:u.to?decodeURIComponent(u.to):void 0}}},[n,r,t,i,a])},Link:k.forwardRef(function(e,t){return k.createElement(GLe,{...e,ref:t})})},DT=({resource:e,meta:t})=>{let n=Wp(),{resource:r,resources:o}=Je(e),i=r||o.find(a=>a.list);if(i){let a=n({resource:i,action:"list",meta:t});return a?k.createElement(FB,{to:a}):(console.warn("No resource is found to navigate to."),null)}return console.warn("No resource is found to navigate to."),null};function YLe(e,t=!0){let{navigator:n}=k.useContext(cl);k.useEffect(()=>{if(!t)return;let r=n.go,o=n.push;return n.push=(...i)=>{e()!==!1&&o(...i)},n.go=(...i)=>{e()!==!1&&r(...i)},()=>{n.push=o,n.go=r}},[n,e,t])}function XLe(e,t=!0,n,r=!1){let o=k.useCallback(a=>(a.preventDefault(),a.returnValue=e,a.returnValue),[e]);k.useEffect(()=>(t&&!r&&window.addEventListener("beforeunload",o),()=>{window.removeEventListener("beforeunload",o)}),[o,t,r]);let i=k.useCallback(()=>{let a=window.confirm(e);return a&&n&&n(),a},[e]);YLe(i,t)}var ZLe=({translationKey:e="warnWhenUnsavedChanges",message:t="Are you sure you want to leave? You have unsaved changes."})=>{let n=Qe(),{pathname:r}=ea(),{warnWhen:o,setWarnWhen:i}=Ja();k.useEffect(()=>()=>i==nLine truncated
`).forEach(function(a){o=a.indexOf(":"),n=a.substring(0,o).trim().toLowerCase(),r=a.substring(o+1).trim(),!(!n||t[n]&&oNe[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},qT=Symbol("internals");function uf(e){return e&&String(e).trim().toLowerCase()}function pg(e){return e===!1||e==null?e:Se.isArray(e)?e.map(pg):String(e)}function aNe(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const lNe=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function tx(e,t,n,r,o){if(Se.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!Se.isString(t)){if(Se.isString(r))return t.indexOf(r)!==-1;if(Se.isRegExp(r))return r.test(t)}}function sNe(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function uNe(e,t){const n=Se.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,i,a){return this[r].call(this,t,o,i,a)},configurable:!0})})}class X0{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function i(l,s,u){const c=uf(s);if(!c)throw new Error("header name must be a non-empty string");const d=Se.findKey(o,c);(!d||o[d]===void 0||u===!0||u===void 0&&o[d]!==!1)&&(o[d||s]=pg(l))}const a=(l,s)=>Se.forEach(l,(u,c)=>i(u,c,s));return Se.isPlainObject(t)||t instanceof this.constructor?a(t,n):Se.isString(t)&&(t=t.trim())&&!lNe(t)?a(iNe(t),n):t!=null&&i(n,t,r),this}get(t,n){if(t=uf(t),t){const r=Se.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return aNe(o);if(Se.isFunction(n))return n.call(this,o,r);if(Se.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=uf(t),t){const r=Se.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||tx(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function i(a){if(a=uf(a),a){const l=Se.findKey(r,a);l&&(!n||tx(r,r[l],l,n))&&(delete r[l],o=!0)}}return Se.isArray(t)?t.forEach(i):i(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const i=n[r];(!t||tx(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const n=this,r={};return Se.forEach(this,(o,i)=>{const a=Se.findKey(r,i);if(a){n[a]=pg(o),delete n[i];return}const l=t?sNe(i):String(i).trim();l!==i&&delete n[i],n[l]=pg(o),r[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return Se.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&Se.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[qT]=this[qT]={accessors:{}}).accessors,o=this.prototype;function i(a){const l=uf(a);r[l]||(uNe(o,a),r[l]=!0)}return Se.isArray(t)?t.forEach(i):i(t),this}}X0.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);Se.reduceDescriptors(X0.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});Se.freezeMethods(X0);const Da=X0;function nx(e,t){const n=this||Bk,r=t||n,o=Da.from(r.headers);let i=r.data;return Se.forEach(e,function(l){i=l.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function ZB(e){return!!(e&&e.__CANCEL__)}function Rm(e,t,n){vt.call(this,e??"canceled",vt.ERR_CANCELED,t,n),this.name="CanceledError"}Se.inherits(Rm,vt,{__CANCEL__:!0});function cNe(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new vt("Request failed with status code "+n.status,[vt.ERR_BAD_REQUEST,vt.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const dNe=Bi.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const a=[e+"="+encodeURIComponent(t)];Se.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),Se.isString(r)&&a.push("path="+r),Se.isString(o)&&a.push("domain="+o),i===!0&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function fNe(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function pNe(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function JB(e,t){return e&&!fNe(t)?pNe(e,t):t}const mNe=Bi.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function o(i){let a=i;return t&&(n.setAttribute("href",a),a=n.href),n.setAttribute("href",a),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=o(window.location.href),function(a){const l=Se.isString(a)?o(a):a;return l.protocol===r.protocol&&l.host===r.host}}():function(){return function(){return!0}}();function hNe(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function gNe(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,i=0,a;return t=t!==void 0?t:1e3,function(s){const u=Date.now(),c=r[i];a||(a=u),n[o]=s,r[o]=u;let d=i,f=0;for(;d!==o;)f+=n[d++],d=d%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),u-a<t)return;const m=c&&u-c;return m?Math.round(f*1e3/m):void 0}}function KT(e,t){let n=0;const r=gNe(50,250);return o=>{const i=o.loaded,a=o.lengthComputable?o.total:void 0,l=i-n,s=r(l),u=i<=a;n=i;const c={loaded:i,total:a,progress:a?i/a:void 0,bytes:l,rate:s||void 0,estimated:s&&a&&u?(a-i)/s:void 0,event:o};c[t?"download":"upload"]=!0,e(c)}}const vNe=typeof XMLHttpRequest<"u",yNe=vNe&&function(e){return new Promise(function(n,r){let o=e.data;const i=Da.from(e.headers).normalize();let{responseType:a,withXSRFToken:l}=e,s;function u(){e.cancelToken&&e.cancelToken.unsubscribe(s),e.signal&&e.signal.removeEventListener("abort",s)}let c;if(Se.isFormData(o)){if(Bi.hasStandardBrowserEnv||Bi.hasStandardBrowserWebWorkerEnv)i.setContentType(!1);else if((c=i.getContentType())!==!1){const[h,...y]=c?c.split(";").map(b=>b.trim()).filter(Boolean):[];i.setContentType([h||"multipart/form-data",...y].join("; "))}}let d=new XMLHttpRequest;if(e.auth){const h=e.auth.username||"",y=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(h+":"+y))}const f=JB(e.baseURL,e.url);d.open(e.method.toUpperCase(),KB(f,e.params,e.paramsSerializer),!0),d.timeout=e.timeout;function m(){if(!d)return;const h=Da.from("getAllResponseHeaders"in d&&d.getAllResponseHeaders()),b={data:!a||a==="text"||a==="json"?d.responseText:d.response,status:d.status,statusText:d.statusText,headers:h,config:e,request:d};cNe(function(x){n(x),u()},function(x){r(x),u()},b),d=null}if("onloadend"in d?d.onloadend=m:d.onreadystatechange=function(){!d||d.readyState!==4||d.status===0&&!(d.responseURL&&d.responseURL.indexOf("file:")===0)||setTimeout(m)},d.onabort=function(){d&&(r(new vt("Request aborted",vt.ECONNABORTED,e,d)),d=null)},d.onerror=function(){r(new vt("Network Error",vt.ERR_NETWORK,e,d)),d=null},d.ontimeout=function(){let y=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const b=e.transitional||QB;e.timeoutErrorMessage&&(y=e.timeoutErrorMessage),r(new vt(y,b.clarifyTimeoutError?vt.ETIMEDOUT:vt.ECONNABORTED,e,d)),d=null},Bi.hasStandardBrowserEnv&&(l&&Se.isFunction(l)&&(l=l(e)),l||l!==!1&&mNe(f))){const h=e.xsrfHeaderName&&e. Line truncated
`+i.map(QT).join(`
`):" "+QT(i[0]):"as no adapter specified";throw new vt("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return r},adapters:vC};function rx(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Rm(null,e)}function YT(e){return rx(e),e.headers=Da.from(e.headers),e.data=nx.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),e3.getAdapter(e.adapter||Bk.adapter)(e).then(function(r){return rx(e),r.data=nx.call(e,e.transformResponse,r),r.headers=Da.from(r.headers),r},function(r){return ZB(r)||(rx(e),r&&r.response&&(r.response.data=nx.call(e,e.transformResponse,r.response),r.response.headers=Da.from(r.response.headers))),Promise.reject(r)})}const XT=e=>e instanceof Da?e.toJSON():e;function nd(e,t){t=t||{};const n={};function r(u,c,d){return Se.isPlainObject(u)&&Se.isPlainObject(c)?Se.merge.call({caseless:d},u,c):Se.isPlainObject(c)?Se.merge({},c):Se.isArray(c)?c.slice():c}function o(u,c,d){if(Se.isUndefined(c)){if(!Se.isUndefined(u))return r(void 0,u,d)}else return r(u,c,d)}function i(u,c){if(!Se.isUndefined(c))return r(void 0,c)}function a(u,c){if(Se.isUndefined(c)){if(!Se.isUndefined(u))return r(void 0,u)}else return r(void 0,c)}function l(u,c,d){if(d in t)return r(u,c);if(d in e)return r(void 0,u)}const s={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:l,headers:(u,c)=>o(XT(u),XT(c),!0)};return Se.forEach(Object.keys(Object.assign({},e,t)),function(c){const d=s[c]||o,f=d(e[c],t[c],c);Se.isUndefined(f)&&d!==l||(n[c]=f)}),n}const t3="1.6.7",Hk={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Hk[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const ZT={};Hk.transitional=function(t,n,r){function o(i,a){return"[Axios v"+t3+"] Transitional option '"+i+"'"+a+(r?". "+r:"")}return(i,a,l)=>{if(t===!1)throw new vt(o(a," has been removed"+(n?" in "+n:"")),vt.ERR_DEPRECATED);return n&&!ZT[a]&&(ZT[a]=!0,console.warn(o(a," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,a,l):!0}};function xNe(e,t,n){if(typeof e!="object")throw new vt("options must be an object",vt.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],a=t[i];if(a){const l=e[i],s=l===void 0||a(l,i,e);if(s!==!0)throw new vt("option "+i+" must be "+s,vt.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new vt("Unknown option "+i,vt.ERR_BAD_OPTION)}}const yC={assertOptions:xNe,validators:Hk},hl=yC.validators;class _v{constructor(t){this.defaults=t,this.interceptors={request:new GT,response:new GT}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let o;Error.captureStackTrace?Error.captureStackTrace(o={}):o=new Error;const i=o.stack?o.stack.replace(/^.+\n/,""):"";r.stack?i&&!String(r.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(r.stack+=`
`+i):r.stack=i}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=nd(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:i}=n;r!==void 0&&yC.assertOptions(r,{silentJSONParsing:hl.transitional(hl.boolean),forcedJSONParsing:hl.transitional(hl.boolean),clarifyTimeoutError:hl.transitional(hl.boolean)},!1),o!=null&&(Se.isFunction(o)?n.paramsSerializer={serialize:o}:yC.assertOptions(o,{encode:hl.function,serialize:hl.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=i&&Se.merge(i.common,i[n.method]);i&&Se.forEach(["delete","get","head","post","put","patch","common"],p=>{delete i[p]}),n.headers=Da.concat(a,i);const l=[];let s=!0;this.interceptors.request.forEach(function(h){typeof h.runWhen=="function"&&h.runWhen(n)===!1||(s=s&&h.synchronous,l.unshift(h.fulfilled,h.rejected))});const u=[];this.interceptors.response.forEach(function(h){u.push(h.fulfilled,h.rejected)});let c,d=0,f;if(!s){const p=[YT.bind(this),void 0];for(p.unshift.apply(p,l),p.push.apply(p,u),f=p.length,c=Promise.resolve(n);d<f;)c=c.then(p[d++],p[d++]);return c}f=l.length;let m=n;for(d=0;d<f;){const p=l[d++],h=l[d++];try{m=p(m)}catch(y){h.call(this,y);break}}try{c=YT.call(this,m)}catch(p){return Promise.reject(p)}for(d=0,f=u.length;d<f;)c=c.then(u[d++],u[d++]);return c}getUri(t){t=nd(this.defaults,t);const n=JB(t.baseURL,t.url);return KB(n,t.params,t.paramsSerializer)}}Se.forEach(["delete","get","head","options"],function(t){_v.prototype[t]=function(n,r){return this.request(nd(r||{},{method:t,url:n,data:(r||{}).data}))}});Se.forEach(["post","put","patch"],function(t){function n(r){return function(i,a,l){return this.request(nd(l||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:i,data:a}))}}_v.prototype[t]=n(),_v.prototype[t+"Form"]=n(!0)});const mg=_v;class Vk{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const r=this;this.promise.then(o=>{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](o);r._listeners=null}),this.promise.then=o=>{let i;const a=new Promise(l=>{r.subscribe(l),i=l}).then(o);return a.cancel=function(){r.unsubscribe(i)},a},t(function(i,a,l){r.reason||(r.reason=new Rm(i,a,l),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new Vk(function(o){t=o}),cancel:t}}}const wNe=Vk;function CNe(e){return function(n){return e.apply(null,n)}}function SNe(e){return Se.isObject(e)&&e.isAxiosError===!0}const bC={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(bC).forEach(([e,t])=>{bC[t]=e});const ENe=bC;function n3(e){const t=new mg(e),n=LB(mg.prototype.request,t);return Se.extend(n,mg.prototype,t,{allOwnKeys:!0}),Se.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return n3(nd(e,o))},n}const Tn=n3(Bk);Tn.Axios=mg;Tn.CanceledError=Rm;Tn.CancelToken=wNe;Tn.isCancel=ZB;Tn.VERSION=t3;Tn.toFormData=Y0;Tn.AxiosError=vt;Tn.Cancel=Tn.CanceledError;Tn.all=function(t){return Promise.all(t)};Tn.spread=CNe;Tn.isAxiosError=SNe;Tn.mergeConfig=nd;Tn.AxiosHeaders=Da;Tn.formToJSON=e=>XB(Se.isHTMLForm(e)?new FormData(e):e);Tn.getAdapter=e3.getAdapter;Tn.HttpStatusCode=ENe;Tn.default=Tn;const PNe=Tn,r3=PNe.create();r3.interceptors.response.use(e=>e,e=>{var n,r,o;const t={...e,message:(r=(n=e.response)==null?void 0:n.data)==null?void 0:r.message,statusCode:(o=e.response)==null?void 0:o.status};return Promise.reject(t)});const JT=(e,t=r3)=>({getList:async({resource:n,pagination:r,filters:o,sorters:i,meta:a})=>{const l=`${e}/${n}`,{current:s=1,pageSi Line truncated
Binary file not shown.

After

Width:  |  Height:  |  Size: 99 KiB

+42
View File
@@ -0,0 +1,42 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="icon" href="/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<meta
name="description"
content="Markus Lehr | VR Predictive Maintenance Device."
/>
<meta
data-rh="true"
property="og:image"
content="https://refine.dev/img/refine_social.png"
/>
<meta
data-rh="true"
name="twitter:image"
content="https://refine.dev/img/refine_social.png"
/>
<title>
Markus Lehr | VR Predictive Maintenance Device.
</title>
<script type="module" crossorigin src="/assets/index-40b528e3.js"></script>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
<!--
This HTML file is a template.
If you open it directly in the browser, you will see an empty page.
You can add webfonts, meta tags, or analytics to this file.
The build step will place the bundled scripts into the <body> tag.
To begin the development, run `npm dev` or `yarn start`.
To create a production bundle, use `npm run build` or `yarn build`.
-->
</body>
</html>
Binary file not shown.
+77
View File
@@ -0,0 +1,77 @@
# ========================= eCAL LICENSE =================================
#
# Copyright (C) 2016 - 2019 Continental Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# ========================= eCAL LICENSE =================================
project(core_pb)
find_package(Protobuf REQUIRED)
set(ProtoFiles
${CMAKE_CURRENT_SOURCE_DIR}/src/ecal/core/pb/ecal.proto
${CMAKE_CURRENT_SOURCE_DIR}/src/ecal/core/pb/host.proto
${CMAKE_CURRENT_SOURCE_DIR}/src/ecal/core/pb/layer.proto
${CMAKE_CURRENT_SOURCE_DIR}/src/ecal/core/pb/monitoring.proto
${CMAKE_CURRENT_SOURCE_DIR}/src/ecal/core/pb/process.proto
${CMAKE_CURRENT_SOURCE_DIR}/src/ecal/core/pb/service.proto
${CMAKE_CURRENT_SOURCE_DIR}/src/ecal/core/pb/topic.proto
)
# Compile statically on Windows and shared for all other systems.
#
# We compile shared on Linux etc., as we must only load the proto descriptors
# once; otherwise, protobuf would throw an exception on runtime. A shared object
# achieves that, as it is only loaded into memory once, even when being linked
# against from different libraries.
# We don't have to do that on Windows, as we compile against protobuf statically
# and therefore each .dll has it's own descriptor pool. Having a static lib here
# also has the advantage that we need to export the symbols, which is default
# disabled on Windows.
#
# TODO: Having code like that probably isn't the best solution ever. We should
# maybe always link against protobuf statically. Currently the reason why we
# don't do that is, that the default Ubuntu libprotobuf.a doesn't contain
# position independent code and can therefore not be statically compiled into a
# shared object library.
if (WIN32)
ecal_add_static_library(${PROJECT_NAME} src/core_pb.cpp)
else()
ecal_add_shared_library(${PROJECT_NAME} src/core_pb.cpp)
endif()
add_library(eCAL::${PROJECT_NAME} ALIAS ${PROJECT_NAME})
protobuf_target_cpp(${PROJECT_NAME} ${CMAKE_CURRENT_SOURCE_DIR}/src INSTALL_FOLDER include ${ProtoFiles})
target_compile_options(${PROJECT_NAME}
PRIVATE
$<$<CXX_COMPILER_ID:MSVC>:/wd4505 /wd4592 /wd4189>
$<$<CXX_COMPILER_ID:GNU>:-Wno-unused-parameter>)
set_property(TARGET ${PROJECT_NAME} PROPERTY POSITION_INDEPENDENT_CODE ON)
target_link_libraries(${PROJECT_NAME} protobuf::libprotobuf)
target_compile_features(${PROJECT_NAME} PUBLIC cxx_std_14)
ecal_install_library(${PROJECT_NAME})
if(BUILD_PY_BINDING)
protobuf_generate_python_ext(python_sources ${PYTHON_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/src ${ProtoFiles})
target_sources(${PROJECT_NAME} PRIVATE ${python_sources})
set_source_files_properties(${python_sources} PROPERTIES HEADER_FILE_ONLY TRUE)
endif()
set_property(TARGET ${PROJECT_NAME} PROPERTY FOLDER ecal/core_pb)
+1
View File
@@ -0,0 +1 @@
// dummy file to force VS to create a library
@@ -0,0 +1,71 @@
/* ========================= eCAL LICENSE =================================
*
* Copyright (C) 2016 - 2019 Continental Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* ========================= eCAL LICENSE =================================
*/
syntax = "proto3";
import "ecal/core/pb/host.proto";
import "ecal/core/pb/process.proto";
import "ecal/core/pb/service.proto";
import "ecal/core/pb/topic.proto";
package eCAL.pb;
message Content // topic content
{
int64 id = 1; // sample id
int64 clock = 2; // internal used clock
int64 time = 3; // time the content was updated
bytes payload = 4; // octet stream
int32 size = 6; // size (redundant for compatibility)
int64 hash = 7; // unique hash for that sample
}
enum eCmdType // command type
{
bct_none = 0; // undefined command
bct_set_sample = 1; // set sample content
bct_reg_publisher = 2; // register publisher
bct_reg_subscriber = 3; // register subscriber
bct_reg_process = 4; // register process
bct_reg_service = 5; // register service
bct_reg_client = 6; // register client
bct_unreg_publisher = 12; // unregister publisher
bct_unreg_subscriber = 13; // unregister subscriber
bct_unreg_process = 14; // unregister process
bct_unreg_service = 15; // unregister service
bct_unreg_client = 16; // unregister client
}
message Sample // a sample is a topic, it's descriptions and it's content
{
eCmdType cmd_type = 1; // sample command type
Host host = 2; // host information
Process process = 3; // process information
Service service = 4; // service information
Client client = 7; // client information
Topic topic = 5; // topic information
Content content = 6; // topic content
bytes padding = 8; // padding to artificially increase the size of the message. This is a workaround for TCP topics, to get the actual user-payload 8-byte-aligned. REMOVE ME IN ECAL6
}
message SampleList
{
repeated Sample samples = 1;
}
@@ -0,0 +1,33 @@
/* ========================= eCAL LICENSE =================================
*
* Copyright (C) 2016 - 2019 Continental Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* ========================= eCAL LICENSE =================================
*/
syntax = "proto3";
package eCAL.pb;
message OSInfo // operating system details
{
string osname = 1; // name
}
message Host // eCAL host
{
string hname = 1; // host name
OSInfo os = 2; // operating system details
}
@@ -0,0 +1,77 @@
/* ========================= eCAL LICENSE =================================
*
* Copyright (C) 2016 - 2019 Continental Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* ========================= eCAL LICENSE =================================
*/
syntax = "proto3";
package eCAL.pb;
message LayerParUdpMC
{
}
message LayerParShm
{
repeated string memory_file_list = 1; // list of memory file names
}
message LayerParInproc
{
}
message LayerParTcp
{
int32 port = 1; // tcp writers port number
}
message ConnnectionPar // connection parameter for reader / writer
{
LayerParUdpMC layer_par_udpmc = 1; // parameter for ecal udp multicast
LayerParShm layer_par_shm = 2; // parameter for ecal shared memory
LayerParInproc layer_par_inproc = 3; // parameter for ecal inner process
LayerParTcp layer_par_tcp = 4; // parameter for ecal tcp
}
enum eTLayerType // transport layer
{
tl_none = 0; // undefined
tl_ecal_udp_mc = 1; // ecal udp multicast
// 2 = ecal udp unicast (not supported anymore)
// 3 = ecal udp metal (not supported anymore)
tl_ecal_shm = 4; // ecal shared memory
tl_ecal_tcp = 5; // ecal tcp
tl_inproc = 42; // inproc (inner process)
tl_all = 255; // all layer
}
message TLayer
{
eTLayerType type = 1; // transport layer type
int32 version = 2; // transport layer version
bool confirmed = 3; // transport layer used ?
// ----------------------------------------------------------------------
// REMOVE ME IN ECAL6
// ----------------------------------------------------------------------
bytes par_shm = 4; // transport layer parameter (shm only, deprecated)
// ----------------------------------------------------------------------
// REMOVE ME IN ECAL6
// ----------------------------------------------------------------------
ConnnectionPar par_layer = 5; // transport layer parameter
}
@@ -0,0 +1,52 @@
/* ========================= eCAL LICENSE =================================
*
* Copyright (C) 2016 - 2019 Continental Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* ========================= eCAL LICENSE =================================
*/
syntax = "proto3";
import "ecal/core/pb/host.proto";
import "ecal/core/pb/process.proto";
import "ecal/core/pb/service.proto";
import "ecal/core/pb/topic.proto";
package eCAL.pb;
message LogMessage // eCAL monitoring log message
{
int64 time = 1; // time
string hname = 2; // host name
int32 pid = 3; // process id
string pname = 4; // process name
string uname = 5; // unit name
int32 level = 6; // message level
string content = 7; // message content
}
message Monitoring // eCAL monitoring information
{
repeated Host hosts = 1; // hosts
repeated Process processes = 2; // processes
repeated Service services = 3; // services
repeated Client clients = 5; // clients
repeated Topic topics = 4; // topics
}
message Logging // eCAL logging information
{
repeated LogMessage logs = 1; // log messages
}
@@ -0,0 +1,77 @@
/* ========================= eCAL LICENSE =================================
*
* Copyright (C) 2016 - 2019 Continental Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* ========================= eCAL LICENSE =================================
*/
syntax = "proto3";
package eCAL.pb;
enum eProcessSeverity // process severity
{
proc_sev_unknown = 0; // condition unknown
proc_sev_healthy = 1; // process healthy
proc_sev_warning = 2; // process warning level
proc_sev_critical = 3; // process critical
proc_sev_failed = 4; // process failed
}
enum eProcessSeverityLevel // process severity level
{
proc_sev_level_unknown = 0; // condition unknown
proc_sev_level1 = 1; // default severity level 1
proc_sev_level2 = 2; // severity level 2
proc_sev_level3 = 3; // severity level 3
proc_sev_level4 = 4; // severity level 4
proc_sev_level5 = 5; // severity level 5
}
message ProcessState // process state
{
eProcessSeverity severity = 1; // severity
eProcessSeverityLevel severity_level = 3; // severity level
string info = 2; // info string
}
enum eTSyncState // time synchronisation
{
tsync_none = 0; // not synchronized
tsync_realtime = 1; // real time sync mode
tsync_replay = 2; // replay time sync mode
}
message Process // process
{
int32 rclock = 1; // registration clock
string hname = 2; // host name
string hgname = 18; // host group name
int32 pid = 3; // process id
string pname = 4; // process name
string uname = 5; // unit name
string pparam = 6; // process parameter
int64 pmemory = 7; // process memory
float pcpu = 8; // process cpu usage
float usrptime = 9; // process user time
int64 datawrite = 10; // data write bytes per sec
int64 dataread = 11; // data read bytes per sec
ProcessState state = 12; // process state info
eTSyncState tsync_state = 13; // time synchronization state
string tsync_mod_name = 14; // time synchronization module name
int32 component_init_state = 15; // eCAL component initialization state (eCAL::Initialize(..))
string component_init_info = 16; // like comp_init_state as human readable string (pub|sub|srv|mon|log|time|proc)
string ecal_runtime_version = 17; // loaded / runtime eCAL version of a component
}
@@ -0,0 +1,94 @@
/* ========================= eCAL LICENSE =================================
*
* Copyright (C) 2016 - 2019 Continental Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* ========================= eCAL LICENSE =================================
*/
syntax = "proto3";
package eCAL.pb;
message ServiceHeader
{
enum eCallState
{
none = 0;
executed = 1;
failed = 2;
}
string hname = 1; // host name
string sname = 2; // service name
string sid = 7; // service id
string mname = 3; // method name
string error = 4; // error message
int32 id = 5; // session id
eCallState state = 6; // method call state
}
message Request // client request
{
ServiceHeader header = 1; // common service header
bytes request = 2; // request payload
}
message Response // server response
{
ServiceHeader header = 1; // common service header
bytes response = 2; // response payload
int64 ret_state = 3; // callback return state
}
message Method // method
{
string mname = 1; // method name
string req_type = 2; // request type
bytes req_desc = 5; // request descriptor
string resp_type = 3; // response type
bytes resp_desc = 6; // response descriptor
int64 call_count = 4; // call counter
}
message Service // service
{
int32 rclock = 1; // registration clock
string hname = 2; // host name
string pname = 3; // process name
string uname = 4; // unit name
int32 pid = 5; // process id
string sname = 6; // service name
string sid = 9; // service id
repeated Method methods = 8; // list of methods
// transport specific parameter (for internal use)
uint32 version = 10; // service protocol version
uint32 tcp_port_v0 = 7; // the tcp port used for that service
uint32 tcp_port_v1 = 11; // the tcp port used for that service
}
message Client // client
{
int32 rclock = 1; // registration clock
string hname = 2; // host name
string pname = 3; // process name
string uname = 4; // unit name
int32 pid = 5; // process id
string sname = 6; // service name
string sid = 7; // service id
// transport specific parameter (for internal use)
uint32 version = 8; // client protocol version
}
@@ -0,0 +1,82 @@
/* ========================= eCAL LICENSE =================================
*
* Copyright (C) 2016 - 2019 Continental Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* ========================= eCAL LICENSE =================================
*/
syntax = "proto3";
import "ecal/core/pb/layer.proto";
package eCAL.pb;
message QOS // quality of service
{
enum eQOSPolicy_Reliability
{
best_effort_reliability_qos = 0; // best effort reliability (default for Subscribers)
reliable_reliability_qos = 1; // reliable reliability (default for Publishers)
}
enum eQOSPolicy_HistoryKind
{
keep_last_history_qos = 0; // keep only a number of samples, default value
keep_all_history_qos = 1; // keep all samples until the ResourceLimitsQosPolicy are exhausted
}
eQOSPolicy_Reliability reliability = 1; // qos reliability (reliable / best effort)
eQOSPolicy_HistoryKind history = 2; // qos history kind (keep last / all)
int32 history_depth = 3; // number of samples for history kind "keep last"
}
message DataTypeInformation
{
string name = 1; // name of the datatype
string encoding = 2; // encoding of the datatype (e.g. protobuf, flatbuffers, capnproto)
bytes desc = 3; // descriptor information of the datatype (necessary for reflection)
}
message Topic // eCAL topic
{
int32 rclock = 1; // registration clock (heart beat)
int32 hid = 26; // host id
string hname = 2; // host name
string hgname = 28; // host group name
int32 pid = 3; // process id
string pname = 4; // process name
string uname = 5; // unit name
string tid = 6; // topic id
string tname = 7; // topic name
string direction = 8; // direction (publisher, subscriber)
string ttype = 9; // topic type + topic encoding (deprecated)
bytes tdesc = 10; // topic description (protocol descriptor) (deprecated)
DataTypeInformation tdatatype = 30; // topic datatype information (encoding & type & description)
QOS tqos = 11; // topic quality of service
repeated TLayer tlayer = 12; // active topic transport layers and it's specific parameter
int32 tsize = 13; // topic size
int32 connections_loc = 16; // number of local connected entities
int32 connections_ext = 17; // number of external connected entities
int32 message_drops = 18; // dropped messages
int64 did = 19; // data send id (publisher setid)
int64 dclock = 20; // data clock (send / receive action)
int32 dfreq = 21; // data frequency (send / receive samples per second) [mHz]
map<string, string> attr = 27; // generic topic description
}
Binary file not shown.
+1 -1
View File
@@ -1 +1 @@
[{"id": "7c7a3fd8-0951-491c-bcf2-dc917058f60e", "created_at": "03/31/2024, 13:39", "name": "MM56", "samplerate": 3000, "sampleperiod": 2, "downtime": 7, "owner": "ML1", "status": "off"}, {"id": "4c17fd91-e273-4c1b-8561-5d2506c0f8b0", "created_at": "03/31/2024, 13:39", "name": "MM2", "samplerate": 7000, "sampleperiod": 1, "downtime": 5, "owner": "ML1", "status": "off"}, {"id": "13277d6a-4654-4448-8162-c057e8e03eac", "created_at": "03/31/2024, 13:48", "name": "MM1", "samplerate": 10000, "sampleperiod": 1, "downtime": 0, "owner": "ML1", "status": "stopped"}, {"id": "a412c952-cff7-4a4d-a064-214f4edbaac8", "created_at": "03/31/2024, 13:48", "name": "MM30", "samplerate": 3000, "sampleperiod": 2, "downtime": 30, "owner": "ML3", "status": "started"}, {"id": "a0d2fe83-f507-41c6-a833-283cf3ad69cf", "created_at": "03/31/2024, 13:48", "name": "MM37", "samplerate": 3000, "sampleperiod": 2, "downtime": 4, "owner": "ML35", "status": "started"}]
[{"no": 0, "id": "cb842c0d-51fc-433f-baf4-0f45af0fc0c5", "created_at": "06/14/2024, 16:30", "name": "MM1", "samplerate": 500, "sampleperiod": 1, "downtime": 10, "owner": "ML", "status": "stopped"}]
@@ -0,0 +1,74 @@
/* ========================= LICENSE =================================
*
* Copyright (C) 2024 Markus Lehr
*
+ closed License property of Markus Lehr
*
* ========================= LICENSE =================================
*/
syntax = "proto3";
option py_generic_services = true;
package proto_messages;
///////////////////////////////////////////////////////
// RT Service
///////////////////////////////////////////////////////
message SCreateIn
{
string name = 1;
string id = 2;
int64 samplerate = 3;
int64 sampleperiod = 4;
int64 downtime = 5;
string status = 6;
}
message SDeleteIn
{
string id = 1;
}
message SMonStateIn
{
string id = 1;
}
message SMonStatesIn
{
string query = 1;
}
message SSetMonStateIn
{
string id = 1;
string status = 2;
}
message SResult
{
bool result = 1;
}
message SStateResult
{
repeated string result = 1;
}
service RTService
{
rpc CreateMonitoring(SCreateIn) returns (SResult);
rpc DeleteMonitoring (SDeleteIn) returns (SResult);
rpc GetMonitoringState (SMonStateIn) returns (SResult);
rpc GetMonitoringStates (SMonStatesIn) returns (SStateResult);
rpc SetMonitoringState (SSetMonStateIn) returns (SResult);
}
@@ -0,0 +1,42 @@
# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: RTService.proto
# Protobuf Python Version: 5.26.1
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import descriptor_pool as _descriptor_pool
from google.protobuf import symbol_database as _symbol_database
from google.protobuf.internal import builder as _builder
# @@protoc_insertion_point(imports)
_sym_db = _symbol_database.Default()
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0fRTService.proto\x12\x0eproto_messages\"q\n\tSCreateIn\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\n\n\x02id\x18\x02 \x01(\t\x12\x12\n\nsamplerate\x18\x03 \x01(\x03\x12\x14\n\x0csampleperiod\x18\x04 \x01(\x03\x12\x10\n\x08\x64owntime\x18\x05 \x01(\x03\x12\x0e\n\x06status\x18\x06 \x01(\t\"\x17\n\tSDeleteIn\x12\n\n\x02id\x18\x01 \x01(\t\"\x19\n\x0bSMonStateIn\x12\n\n\x02id\x18\x01 \x01(\t\"\x1d\n\x0cSMonStatesIn\x12\r\n\x05query\x18\x01 \x01(\t\",\n\x0eSSetMonStateIn\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0e\n\x06status\x18\x02 \x01(\t\"\x19\n\x07SResult\x12\x0e\n\x06result\x18\x01 \x01(\x08\"\x1e\n\x0cSStateResult\x12\x0e\n\x06result\x18\x01 \x03(\t2\x89\x03\n\tRTService\x12\x46\n\x10\x43reateMonitoring\x12\x19.proto_messages.SCreateIn\x1a\x17.proto_messages.SResult\x12\x46\n\x10\x44\x65leteMonitoring\x12\x19.proto_messages.SDeleteIn\x1a\x17.proto_messages.SResult\x12J\n\x12GetMonitoringState\x12\x1b.proto_messages.SMonStateIn\x1a\x17.proto_messages.SResult\x12Q\n\x13GetMonitoringStates\x12\x1c.proto_messages.SMonStatesIn\x1a\x1c.proto_messages.SStateResult\x12M\n\x12SetMonitoringState\x12\x1e.proto_messages.SSetMonStateIn\x1a\x17.proto_messages.SResultB\x03\x90\x01\x01\x62\x06proto3')
_globals = globals()
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'RTService_pb2', _globals)
if not _descriptor._USE_C_DESCRIPTORS:
_globals['DESCRIPTOR']._loaded_options = None
_globals['DESCRIPTOR']._serialized_options = b'\220\001\001'
_globals['_SCREATEIN']._serialized_start=35
_globals['_SCREATEIN']._serialized_end=148
_globals['_SDELETEIN']._serialized_start=150
_globals['_SDELETEIN']._serialized_end=173
_globals['_SMONSTATEIN']._serialized_start=175
_globals['_SMONSTATEIN']._serialized_end=200
_globals['_SMONSTATESIN']._serialized_start=202
_globals['_SMONSTATESIN']._serialized_end=231
_globals['_SSETMONSTATEIN']._serialized_start=233
_globals['_SSETMONSTATEIN']._serialized_end=277
_globals['_SRESULT']._serialized_start=279
_globals['_SRESULT']._serialized_end=304
_globals['_SSTATERESULT']._serialized_start=306
_globals['_SSTATERESULT']._serialized_end=336
_globals['_RTSERVICE']._serialized_start=339
_globals['_RTSERVICE']._serialized_end=732
_builder.BuildServices(DESCRIPTOR, 'RTService_pb2', _globals)
# @@protoc_insertion_point(module_scope)
+35
View File
@@ -0,0 +1,35 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<SchemaVersion>2.0</SchemaVersion>
<ProjectHome>.</ProjectHome>
<StartupFile>ecalhdf5_protobuf_rw.py</StartupFile>
<SearchPath>..\..\..\lang\python\src</SearchPath>
<WorkingDirectory>.</WorkingDirectory>
<OutputPath>.</OutputPath>
<Name>ecalhdf5_protobuf_rw</Name>
<RootNamespace>measurement_read</RootNamespace>
<ProjectGuid>{3b37f456-c807-3a24-9ba7-d4757cf4ca23}</ProjectGuid>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
<DebugSymbols>true</DebugSymbols>
<EnableUnmanagedDebugging>false</EnableUnmanagedDebugging>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
<DebugSymbols>true</DebugSymbols>
<EnableUnmanagedDebugging>false</EnableUnmanagedDebugging>
</PropertyGroup>
<ItemGroup>
<Compile Include="ecalhdf5_protobuf_rw.py" />
</ItemGroup>
<PropertyGroup>
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">10.0</VisualStudioVersion>
</PropertyGroup>
<Target Name="CoreCompile" />
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\Python Tools\Microsoft.PythonTools.targets" />
</Project>
@@ -1,13 +1,6 @@
cmake_minimum_required(VERSION 3.5)
set(CMAKE_SYSTEM_NAME Linux)
set(CMAKE_SYSTEM_PROCESSOR armv7-a)
set(TOOLCHAIN_PREFIX home/markus/STM32MPU_workspace/STM32MP1-Ecosystem-V6.1.0/Distribution-Package-VRDevice/SDK/sysroots/x86_64-ostl_sdk-linux/usr/bin/arm-ostl-linux/)
set(CMAKE_C_COMPILER ${TOOLCHAIN_PREFIX}gcc)
set(CMAKE_CXX_COMPILER ${TOOLCHAIN_PREFIX}g++)
#set(CMAKE_TRY_COMPILE_TARGET_TYPE "STATIC_LIBRARY")
project(rt_service)
# Find python and Boost - both are required dependencies
@@ -31,7 +24,7 @@ add_library(rt_service MODULE rt_service.cpp)
target_link_libraries(rt_service ${Boost_LIBRARIES} ${PYTHON_LIBRARIES})
target_include_directories(rt_service PRIVATE ${PYTHON_INCLUDE_DIRS})
set(MY_RESOURCE_FILE rt_service.so)
#set(MY_RESOURCE_FILE rt_service.so)
#set_directory_properties(MY_EXTENSION_LIB /home/markus/git/vrpmwvweb/vrpmdvserver/extensions/)
#file(COPY ${CMAKE_CURRENT_BINARY_DIR}/${MY_RESOURCE_FILE}
# DESTINATION /home/markus/git/vrpmdvweb/vrpmdvserver/extensions/rt_service)
-69
View File
@@ -1,69 +0,0 @@
#include <boost/python.hpp>
#include <boost/python/list.hpp>
#include <boost/python/extract.hpp>
#include <string>
//#include <sstream>
//#include <vector>
struct RTService
{
// private:
// /* data */
// public:
// RT_Service(/* args */) {}
// ~RT_Service() {}
bool createMonitoring(std::string id) {
//TODO ML: add this to the M4Core
return true;
}
bool deleteMonitoring(std::string id) {
//TODO ML: add this to the M4Core
return true;
}
std::string getMonitoringState(std::string id) {
//TODO ask the M4Core for the Monitpring Status
return "Start";
}
boost::python::list getMonitoringStates() {
//TODO ask the M4Core for the Monitpring Status
boost::python::list list;
return list;
}
bool setMonitoringStatus(std::string id, std::string status) {
//set the Status
return true;
}
};
using namespace boost::python;
BOOST_PYTHON_MODULE(rt_service)
{
class_<RTService>("RT_Service")
.def("createMonitoring", &RTService::createMonitoring)
.def("getMonitoringStatus", &RTService::getMonitoringState)
.def("getAllMonitoringStat", &RTService::getMonitoringStates)
.def("setMonitoringStatus", &RTService::setMonitoringStatus)
;
};
//examples
// long l = len(msgs);
// std::stringstream ss;
// for (long i = 0; i<l; ++i) {
// if (i>0) ss << ", ";
// std::string s = boost::python::extract<std::string>(msgs[i]);
// ss << s;
// }
// mMsg = ss.str();
+119
View File
@@ -0,0 +1,119 @@
#include <boost/python.hpp>
#include <boost/python/list.hpp>
#include <boost/python/extract.hpp>
#include <string>
#include <list>
#include <iostream>
#include <boost/property_tree/ptree.hpp>
#include <boost/property_tree/json_parser.hpp>
#include <boost/interprocess/ipc/message_queue.hpp>
//#include <sstream>
//#include <vector>
struct RTService
{
private:
/* data */
const std::string RTSCOMMANDQUEUE = "RTSSERVICECOMMANDQUEUE";
const int MAXMSGSIZE = 250;
const int MAXMSGCOUNT = 25;
boost::interprocess::message_queue m_mq;
public:
RTService(/* args */) :
m_mq(boost::interprocess::open_or_create, RTSCOMMANDQUEUE.c_str(), MAXMSGCOUNT, MAXMSGSIZE)
{
}
~RTService() {}
bool createMonitoring(std::string id, int samplerate, int sampleperiod, int downtime, std::string status) {
//TODO ML: add this to the M4Core
boost::property_tree::ptree pt;
pt.put("id", id);
pt.put("samplerate", samplerate);
pt.put("sampleperiod", sampleperiod);
pt.put("downtime", downtime);
pt.put("status", status);
return executeCmd(pt);
}
bool deleteMonitoring(std::string id) {
//TODO ML: add this to the M4Core
return true;
}
std::string getMonitoringState(std::string id) {
//TODO ask the M4Core for the Monitpring Status
return "Start";
}
boost::python::list getMonitoringStates() {
//TODO ask the M4Core for the Monitpring Status
boost::python::list list;
return list;
}
bool setMonitoringStatus(std::string id, std::string status) {
//set the Status
return true;
}
private:
bool executeCmd(boost::property_tree::ptree pt) {
BOOST_TRY{
bool bCmdQueueRun = true;
unsigned int priority;
boost::interprocess::message_queue::size_type recvd_size;
while (bCmdQueueRun) {
char rtsCmdbuffer [MAXMSGSIZE];
boost::property_tree::write_json(rtsCmdbuffer,pt);
m_mq.send(rtsCmdbuffer, MAXMSGSIZE, 0);
m_mq.receive(rtsCmdbuffer, sizeof(rtsCmdbuffer), recvd_size, priority);
//read json and go to cmd execution
boost::property_tree::read_json(rtsCmdbuffer,pt);
}
// //Send 100 numbers
// for(int i = 0; i < 100; ++i){
// mq.send(&i, sizeof(i), 0);
// }
}
BOOST_CATCH(interprocess_exception &ex){
std::cout << ex.what() << std::endl;
} BOOST_CATCH_END
}
};
using namespace boost::python;
BOOST_PYTHON_MODULE(rt_service)
{
class_<RTService>("RT_Service")
.def("createMonitoring", &RTService::createMonitoring)
.def("getMonitoringStatus", &RTService::getMonitoringState)
.def("getAllMonitoringStat", &RTService::getMonitoringStates)
.def("setMonitoringStatus", &RTService::setMonitoringStatus)
;
};
//examples
// long l = len(msgs);
// std::stringstream ss;
// for (long i = 0; i<l; ++i) {
// if (i>0) ss << ", ";
// std::string s = boost::python::extract<std::string>(msgs[i]);
// ss << s;
// }
// mMsg = ss.str();
Binary file not shown.
+11
View File
@@ -0,0 +1,11 @@
class VRPMDV_CreateMonCmd:
def __init__(self, samplerate, sampleperiod, downtime) :
self.cmdid = 1
self.samplerate = samplerate
self.sampleperiod = sampleperiod
self.downtime = downtime
+50
View File
@@ -0,0 +1,50 @@
import uuid
import datetime as dt
from marshmallow import Schema, fields, post_load, post_dump
from vrpmdvcreatemoncmd import VRPMDV_CreateMonCmd
# class VRPMDV_CreateMonSchema(Schema):
# cmdid = fields.Integer()
# id = fields.UUID()
# samplerate = fields.Integer()
# sampleperiod = fields.Integer()
# downtime = fields.Integer()
# status = fields.String()
# #monstate = fields.Enum(VRPMDVMonitoringState)
# # def get_envelope_key(self, many):
# # """Helper to get the envelope key."""
# # key = self.__envelope__["many"] if many else self.__envelope__["single"]
# # assert key is not None, "Envelope key undefined"
# # return key
# # @post_dump(pass_many=True)
# # def wrap_with_envelope(self, data, many, **kwargs):
# # key = self.get_envelope_key(many)
# # return {key: data}
# @post_load
# def make_vrpmdv_Monitoring(self, data, **kwargs):
# mon = VRPMDV_Monitoring(**data)
# return mon
class VRPMDV_CreateMonSchema(Schema):
cmdid = fields.Integer()
samplerate = fields.Integer()
sampleperiod = fields.Integer()
downtime = fields.Integer()
@post_load
def make_vrpmdv_CreateMonitoring(self, data, **kwargs):
mon = VRPMDV_CreateMonCmd(**data)
return mon
+335
View File
@@ -0,0 +1,335 @@
from uuid import uuid4
import uuid
from flask import jsonify
import json
#import ecal.core.core as ecal_core
#from proto_messages.RTService_pb2 import RTService as rts1
#import proto_messages.RTService_pb2 as RTServicepb
from vrpmdvdeletemoncmd import VRPMDV_DeleteMonCmd
from vrpmdvdeletemonschema import VRPMDV_DeleteMonSchema
from vrpmdvntlink import trySend
# from vrpmdvmonitoringschema import VRPMDV_MonitoringSchema
# from vrpmdvmonitoring import VRPMDV_Monitoring
from vrpmdvmonitoringschema import VRPMDV_MonitoringSchema
from vrpmdvmonitoring import VRPMDV_Monitoring
from vrpmdvmonreqschema import VRPMDV_MonReqSchema
from vrpmdvcreatemoncmd import VRPMDV_CreateMonCmd
from vrpmdvcreatemonschema import VRPMDV_CreateMonSchema
from extensions.rt_service import rt_service as rts
from vrpmdvmonitoringState import VRPMDVMonitoringState
from vrpmdvlogging import createCoproLoggingTask
import logging
class VRPMDV_Data:
def __init__(self):
#self.loaded = False
format = "%(asctime)s: %(message)s"
logging.basicConfig(format=format, level=logging.INFO, datefmt="%H:%M:%S")
self.mons:list = []
self.rtservice = rts.RT_Service()
self.rtservice.initCoproFW("home/root/elffile","zephyr_openamp_rsc_table.elf")
self.logTask = createCoproLoggingTask()
self.loaded = self.loadFile()
#start the monitorings
self.startMons();
def loadFile(self):
try:
with open('./mons.json', 'r') as f:
fmons = f.read()
if not fmons:
# return no Item
return True
else:
# data = json.loads(fmons)
schema = VRPMDV_MonitoringSchema(many=True)
#res = schema.loads(fmons) # data
self.mons = schema.loads(fmons) # .append(res)
return True
except:
#nothing todo ML we should create a file later the database
print("file not found")
def saveFile(self):
try:
with open('./mons.json', 'w') as f:
schema = VRPMDV_MonitoringSchema()
result = schema.dumps(self.mons, many=True)
f.write(result)
return True
except:
#nothing todo
print("could not write file")
def startMons(self):
try:
for i, val in enumerate(self.mons):
if val.status :
self.rtservice.startMonitoring(val.samplerate,val.sampleperiod, val.downtime)
except:
print("could not start monitorings")
def findMon(mon):
return mon
def getMonitorings(self):
# 1st time read file
# if not self.loaded :
# self.loaded = self.loadFile()
schema = VRPMDV_MonitoringSchema()
result = schema.dumps(self.mons, many=True)
return result
def getMonitoring(self, vrpmid):
try:
matched_obj = next(x for x in self.mons if str(x.id) == vrpmid)
except:
return "no Item found"
# we find it and we return it
schema = VRPMDV_MonitoringSchema()
return schema.dumps(matched_obj)
def setMonitoring(self, id, request):
try:
matched_obj = next(x for x in self.mons if str(x.id) == id)
except:
return "no Item found"
if 'name' in request : matched_obj.name = request['name']
if 'samplerate' in request : matched_obj.samplerate = request['samplerate']
if 'sampleperiod' in request : matched_obj.sampleperiod = request['sampleperiod']
if 'downtime' in request : matched_obj.downtime = request['downtime']
if 'status' in request :
matched_obj.setStatus(request['status'])
if (request['status'] == 'started'):
logging.info("MainThread: started %s", matched_obj.id)
matched_obj.setStatus(self._startMonitoring(matched_obj))
else :
logging.info("MainThread: stopped %s", matched_obj.id)
matched_obj.setStatus(self._stopMonitoring(matched_obj))
self.saveFile()
# we find it and we return it
schema = VRPMDV_MonitoringSchema()
return schema.dumps(matched_obj)
def createMonitoring(self, request):
id = uuid.uuid4()
createjson = request.get_json()
vrpmreq = VRPMDV_MonReqSchema().load(createjson)
mon = VRPMDV_Monitoring(id, vrpmreq.name, vrpmreq.samplerate, vrpmreq.sampleperiod, vrpmreq.downtime, vrpmreq.status, vrpmreq.owner)
logging.info("Monitoring %s: starting", str(id))
# create Monitoring on the realtime side
if (vrpmreq.status == 'started'):
mon.setStatus(self._createMonOnDevice(mon))
self.mons.append(mon)
#save to file
self.saveFile()
#create result Object in json
schema = VRPMDV_MonitoringSchema()
return schema.dumps(mon)
def deleteMonitoring(self, vrpmid):
# if not self.loaded :
# self.loaded = self.loadFile()
# find monitoring with uuid
#result = filter(lambda mon: str(mon.uuid) == vrpmid["uuid"], self.mons)
try:
matched_obj = next(x for x in self.mons if str(x.id) == vrpmid)
except:
return "no Item found"
# we find it, delete on realtime side and now remove from list
#matched_obj.deleteMonitoring()
self.mons.remove(matched_obj)
#save the list
self.saveFile()
#make result
schema = VRPMDV_MonitoringSchema()
return schema.dump(matched_obj)
# internal helper function
def _createMonOnDevice(self, monitoring):
#call the start API of the c++ driver
try:
vrpmdCreateCmd = VRPMDV_CreateMonCmd(1, monitoring.no , monitoring.samplerate, monitoring.sampleperiod, monitoring.downtime, monitoring.status)
schemaCreateCmd = VRPMDV_CreateMonSchema()
trySend(schemaCreateCmd.dumps(vrpmdCreateCmd))
monitoring.startMonitoring()
# set status if we have a success TODO
except:
return "stopped"
return "started"
def _stopMonitoring(self, monitoring):
#call the stop API of the c++ driver
try:
logging.info("MainThread: stop monitoring")
vrpmdDeleteCmd = VRPMDV_DeleteMonCmd(2, monitoring.id)
schemaDeleteCmd = VRPMDV_DeleteMonSchema()
trySend(schemaDeleteCmd.dumps(vrpmdDeleteCmd))
monitoring.stopMonitoring()
logging.info("MainThread: stop monitoring done")
except:
return "no Item found"
return monitoring.status
# old impl ML
#
# def createMonitoring(self, request):
# id = uuid.uuid4()
# createjson = request.get_json()
# vrpmreq = VRPMDV_MonReqSchema().load(createjson)
# vrpmdCreateCmd = VRPMDV_CreateMonCmd(1, id , vrpmreq.samplerate, vrpmreq.sampleperiod, vrpmreq.downtime, vrpmreq.status)
# schemaCreateCmd = VRPMDV_CreateMonSchema()
# valstr = schemaCreateCmd.dumps(vrpmdCreateCmd)
# trySend(schemaCreateCmd.dumps(vrpmdCreateCmd))
# mon = VRPMDV_Monitoring(id, vrpmreq.name, vrpmreq.samplerate, vrpmreq.sampleperiod, vrpmreq.downtime, vrpmreq.status, vrpmreq.owner)
# logging.info("Monitoring %s: starting", str(id))
# mon.startMonitoring()
# self.mons.append(mon)
# #save to file
# self.saveFile()
# #create result Object in json
# schema = VRPMDV_MonitoringSchema()
# return schema.dumps(mon)
# def createMonitoring(self, request):
# id = uuid.uuid4()
# createjson = request.get_json()
# vrpmreq = VRPMDV_MonReqSchema().load(createjson)
# vrpmdCreateCmd = VRPMDV_CreateMonCmd(1, id , vrpmreq.samplerate, vrpmreq.sampleperiod, vrpmreq.downtime, vrpmreq.status)
# schemaCreateCmd = VRPMDV_CreateMonSchema()
# valstr = schemaCreateCmd.dumps(vrpmdCreateCmd)
# trySend(schemaCreateCmd.dumps(vrpmdCreateCmd))
# mon = VRPMDV_Monitoring(id, vrpmreq.name, vrpmreq.samplerate, vrpmreq.sampleperiod, vrpmreq.downtime, vrpmreq.status, vrpmreq.owner)
# logging.info("Monitoring %s: starting", str(id))
# mon.startMonitoring()
# self.mons.append(mon)
# #save to file
# self.saveFile()
# #create result Object in json
# schema = VRPMDV_MonitoringSchema()
# return schema.dumps(mon)
# def deleteMonitoring(self, vrpmid):
# # if not self.loaded :
# # self.loaded = self.loadFile()
# # find monitoring with uuid
# #result = filter(lambda mon: str(mon.uuid) == vrpmid["uuid"], self.mons)
# try:
# matched_obj = next(x for x in self.mons if str(x.id) == vrpmid)
# except:
# return "no Item found"
# # we find it, delete on realtime side and now remove from list
# #matched_obj.deleteMonitoring()
# self.mons.remove(matched_obj)
# #save the list
# self.saveFile()
# #make result
# schema = VRPMDV_MonitoringSchema()
# return schema.dump(matched_obj)
# def startMonitoring(self, vrpmid):
# # if not self.loaded :
# # self.loaded = self.loadFile()
# #call the start API of the c++ driver
# try:
# matched_obj = next(x for x in self.mons if str(x.id) == vrpmid)
# except:
# return "no Item found"
# if matched_obj.startMonitoring() :
# #TODO ML return the state
# return "started"
# return "created"
# def stopMonitoring(self, vrpmid):
# # if not self.loaded :
# # self.loaded = self.loadFile()
# #call the stop API of the c++ driver
# try:
# matched_obj = next(x for x in self.mons if str(x.id) == vrpmid)
# logging.info("MainThread: stop monitoring starting")
# vrpmdDeleteCmd = VRPMDV_DeleteMonCmd(2, matched_obj.id)
# schemaDeleteCmd = VRPMDV_DeleteMonSchema()
# valstr = schemaDeleteCmd.dumps(vrpmdDeleteCmd)
# trySend(schemaDeleteCmd.dumps(vrpmdDeleteCmd))
# logging.info("MainThread: stop monitoring done")
# except:
# return "no Item found"
# matched_obj.stopMonitoring()
# return matched_obj.monstate.name
def setStatus(self, id, vrpmStatus):
if 'status' in vrpmStatus :
# matched_obj = self.findMonitoring(id)
#call the start API of the c++ driver
if (vrpmStatus['status'] == 'started'):
return self.startMonitoring(id)
else :
return self.stopMonitoring(id)
# return matched_obj.status
# return ""
def findMonitoring(self, id):
try:
return next(x for x in self.mons if str(x.id) == id)
except:
return "no Item found"
+214 -62
View File
@@ -1,22 +1,39 @@
import time
from uuid import uuid4
import uuid
from flask import jsonify
import json
from extensions.rt_service import rt_service as rts
# from vrpmdvmonitoringschema import VRPMDV_MonitoringSchema
# from vrpmdvmonitoring import VRPMDV_Monitoring
from vrpmdvmonitoringschema import VRPMDV_MonitoringSchema
#from vrpmdvcreatemoncmd import VRPMDV_CreateMonCmd
#from vrpmdvcreatemonschema import VRPMDV_CreateMonSchema
#from vrpmdvdeletemoncmd import VRPMDV_DeleteMonCmd
#from vrpmdvdeletemonschema import VRPMDV_DeleteMonSchema
from vrpmdvmonitoring import VRPMDV_Monitoring
from vrpmdvmonitoringschema import VRPMDV_MonitoringSchema
from vrpmdvmonreqschema import VRPMDV_MonReqSchema
from vrpmdvntlink import trySend
from extensions.rt_service import rt_service as rts
from vrpmdvmonitoringState import VRPMDVMonitoringState
#from vrpmdvlogging import createCoproLoggingTask
import logging
class VRPMDV_Data:
def __init__(self):
#self.loaded = False
format = "%(asctime)s: %(message)s"
logging.basicConfig(format=format, level=logging.INFO, datefmt="%H:%M:%S")
self.mons:list = []
self.loaded = self.loadFile()
self.rtservice = rts.RT_Service()
self.rtservice.initCoproFW("home/root/elffile","zephyr_openamp_rsc_table.elf")
self.logTask = None #createCoproLoggingTask()
self.loaded = self.loadFile()
#start the monitorings
time.sleep(1)
self.startMons();
def loadFile(self):
try:
@@ -47,6 +64,17 @@ class VRPMDV_Data:
#nothing todo
print("could not write file")
def startMons(self):
try:
logging.info("MainThread: startMons")
# for i, val in enumerate(self.mons):
# if (val.status == 'started') :
# val.startMonitoring()
except:
print("could not start monitorings")
def findMon(mon):
return mon
@@ -68,7 +96,9 @@ class VRPMDV_Data:
# we find it and we return it
schema = VRPMDV_MonitoringSchema()
return schema.dumps(matched_obj)
def setMonitoring(self, id, request):
try:
matched_obj = next(x for x in self.mons if str(x.id) == id)
@@ -79,7 +109,16 @@ class VRPMDV_Data:
if 'samplerate' in request : matched_obj.samplerate = request['samplerate']
if 'sampleperiod' in request : matched_obj.sampleperiod = request['sampleperiod']
if 'downtime' in request : matched_obj.downtime = request['downtime']
if 'status' in request : matched_obj.setStatus(request['status'])
if 'status' in request :
if (request['status'] == 'started'):
if (matched_obj.status == VRPMDVMonitoringState.STOPPED):
logging.info("MainThread: started %s", matched_obj.id)
matched_obj.startMonitoring()
# matched_obj.setStatus(self.createMonOnDevice(matched_obj))
elif (matched_obj.status == 'started') :
logging.info("MainThread: stopped %s", matched_obj.id)
# matched_obj.setStatus(self._stopMonitoring(matched_obj))
matched_obj.stopMonitoring()
self.saveFile()
# we find it and we return it
@@ -87,34 +126,22 @@ class VRPMDV_Data:
return schema.dumps(matched_obj)
# try:
# matched_obj = next(x for x in self.mons if str(x.id) == vrpmid)
# matched_obj.name = request.name
# matched_obj.samplerate = request.samplerate
# matched_obj.sampleperiod = request.sampleperiod
# matched_obj.downtime = request.downtime
# self.saveFile()
# except:
# return "no Item found"
# # we find it and we return it
# schema = VRPMDV_MonitoringSchema()
# return schema.dumps(matched_obj)
def createMonitoring(self, request):
#mon = VRPMDV_Monitoring(request["name"], request["samplerate"], request["sampleperiod"], request["downtime"], request["owner"])
id = uuid.uuid4()
mon = VRPMDV_Monitoring(id, request.name, request.samplerate, request.sampleperiod, request.downtime, request.status, request.owner)
iscreated = mon.createMonitoring()
#iscreated = self.rtservice.createMonitoring(str(id))
createjson = request.get_json()
vrpmreq = VRPMDV_MonReqSchema().load(createjson)
mon = VRPMDV_Monitoring(0, id, vrpmreq.name, vrpmreq.samplerate, vrpmreq.sampleperiod, vrpmreq.downtime, vrpmreq.status, vrpmreq.owner)
logging.info("Monitoring %s: creating", str(id))
# create Monitoring on the realtime side
if (vrpmreq.status == 'started'):
logging.info("Monitoring %s: createMonOnDevice", str(id))
mon.startMonitoring()
# status = self.createMonOnDevice(mon)
# logging.info("Monitoring %s: _start executed. status:%s", str(id), str(status))
# mon.status = status
# if not self.loaded :
# self.loaded = self.loadFile()
# create monitoring
self.mons.append(mon)
#save to file
self.saveFile()
@@ -122,6 +149,7 @@ class VRPMDV_Data:
schema = VRPMDV_MonitoringSchema()
return schema.dumps(mon)
def deleteMonitoring(self, vrpmid):
# if not self.loaded :
# self.loaded = self.loadFile()
@@ -135,7 +163,7 @@ class VRPMDV_Data:
# we find it, delete on realtime side and now remove from list
matched_obj.deleteMonitoring()
matched_obj.stopMonitoring()
self.mons.remove(matched_obj)
#save the list
self.saveFile()
@@ -144,48 +172,172 @@ class VRPMDV_Data:
return schema.dump(matched_obj)
def startMonitoring(self, vrpmid):
# if not self.loaded :
# self.loaded = self.loadFile()
# internal helper function
#call the start API of the c++ driver
try:
matched_obj = next(x for x in self.mons if str(x.id) == vrpmid)
except:
return "no Item found"
# ML: transfer to Monitoring class
# def createMonOnDevice(self, monitoring):
# #call the start API of the c++ driver
# try:
# logging.info("MainThread: createMonOnDevice => before vrpmdCreateCmd samplerate:%d, samplerate:%d, samplerate:%d", monitoring.samplerate, monitoring.sampleperiod, monitoring.downtime)
# vrpmdCreateCmd = VRPMDV_CreateMonCmd(monitoring.samplerate, monitoring.sampleperiod, monitoring.downtime)
# logging.info("MainThread: createMonOnDevice => before schemaCreateCmd")
# schemaCreateCmd = VRPMDV_CreateMonSchema()
# logging.info("MainThread: try send start monitoring starting %s", schemaCreateCmd.dumps(vrpmdCreateCmd))
# #res = trySend(schemaCreateCmd.dumps(vrpmdCreateCmd))
# #logging.info("MainThread: try send start monitoring done %s", res)
# self.status = "started"
# # set status if we have a success TODO
# except:
# self.status = "stopped"
# return "stopped"
# return "started"
if matched_obj.startMonitoring() :
#TODO ML return the state
return "started"
return "created"
# def _stopMonitoring(self, monitoring):
# #call the stop API of the c++ driver
# try:
# logging.info("MainThread: stop monitoring")
# vrpmdDeleteCmd = VRPMDV_DeleteMonCmd(2, monitoring.id)
# schemaDeleteCmd = VRPMDV_DeleteMonSchema()
# #trySend(schemaDeleteCmd.dumps(vrpmdDeleteCmd))
# self.status = "stopped"
# logging.info("MainThread: stop monitoring done")
def stopMonitoring(self, vrpmid):
# if not self.loaded :
# self.loaded = self.loadFile()
# except:
# self.status = "started"
# return "started"
#call the start API of the c++ driver
try:
matched_obj = next(x for x in self.mons if str(x.id) == vrpmid)
except:
return "no Item found"
# return monitoring.status
matched_obj.startMonitoring()
return matched_obj.monstate.name
# old impl ML
#
# def createMonitoring(self, request):
# id = uuid.uuid4()
# createjson = request.get_json()
# vrpmreq = VRPMDV_MonReqSchema().load(createjson)
# vrpmdCreateCmd = VRPMDV_CreateMonCmd(1, id , vrpmreq.samplerate, vrpmreq.sampleperiod, vrpmreq.downtime, vrpmreq.status)
# schemaCreateCmd = VRPMDV_CreateMonSchema()
# valstr = schemaCreateCmd.dumps(vrpmdCreateCmd)
# trySend(schemaCreateCmd.dumps(vrpmdCreateCmd))
# mon = VRPMDV_Monitoring(id, vrpmreq.name, vrpmreq.samplerate, vrpmreq.sampleperiod, vrpmreq.downtime, vrpmreq.status, vrpmreq.owner)
# logging.info("Monitoring %s: starting", str(id))
# mon.startMonitoring()
# self.mons.append(mon)
# #save to file
# self.saveFile()
# #create result Object in json
# schema = VRPMDV_MonitoringSchema()
# return schema.dumps(mon)
# def createMonitoring(self, request):
# id = uuid.uuid4()
# createjson = request.get_json()
# vrpmreq = VRPMDV_MonReqSchema().load(createjson)
# vrpmdCreateCmd = VRPMDV_CreateMonCmd(1, id , vrpmreq.samplerate, vrpmreq.sampleperiod, vrpmreq.downtime, vrpmreq.status)
# schemaCreateCmd = VRPMDV_CreateMonSchema()
# valstr = schemaCreateCmd.dumps(vrpmdCreateCmd)
# trySend(schemaCreateCmd.dumps(vrpmdCreateCmd))
# mon = VRPMDV_Monitoring(id, vrpmreq.name, vrpmreq.samplerate, vrpmreq.sampleperiod, vrpmreq.downtime, vrpmreq.status, vrpmreq.owner)
# logging.info("Monitoring %s: starting", str(id))
# mon.startMonitoring()
# self.mons.append(mon)
# #save to file
# self.saveFile()
# #create result Object in json
# schema = VRPMDV_MonitoringSchema()
# return schema.dumps(mon)
# def deleteMonitoring(self, vrpmid):
# # if not self.loaded :
# # self.loaded = self.loadFile()
# # find monitoring with uuid
# #result = filter(lambda mon: str(mon.uuid) == vrpmid["uuid"], self.mons)
# try:
# matched_obj = next(x for x in self.mons if str(x.id) == vrpmid)
# except:
# return "no Item found"
# # we find it, delete on realtime side and now remove from list
# #matched_obj.deleteMonitoring()
# self.mons.remove(matched_obj)
# #save the list
# self.saveFile()
# #make result
# schema = VRPMDV_MonitoringSchema()
# return schema.dump(matched_obj)
# def startMonitoring(self, vrpmid):
# # if not self.loaded :
# # self.loaded = self.loadFile()
# #call the start API of the c++ driver
# try:
# matched_obj = next(x for x in self.mons if str(x.id) == vrpmid)
# except:
# return "no Item found"
# if matched_obj.startMonitoring() :
# #TODO ML return the state
# return "started"
# return "created"
# def stopMonitoring(self, vrpmid):
# # if not self.loaded :
# # self.loaded = self.loadFile()
# #call the stop API of the c++ driver
# try:
# matched_obj = next(x for x in self.mons if str(x.id) == vrpmid)
# logging.info("MainThread: stop monitoring starting")
# vrpmdDeleteCmd = VRPMDV_DeleteMonCmd(2, matched_obj.id)
# schemaDeleteCmd = VRPMDV_DeleteMonSchema()
# valstr = schemaDeleteCmd.dumps(vrpmdDeleteCmd)
# trySend(schemaDeleteCmd.dumps(vrpmdDeleteCmd))
# logging.info("MainThread: stop monitoring done")
# except:
# return "no Item found"
# matched_obj.stopMonitoring()
# return matched_obj.monstate.name
def setStatus(self, id, vrpmStatus):
if 'status' in vrpmStatus :
matched_obj = self.findMonitoring(id)
# matched_obj = self.findMonitoring(id)
#call the start API of the c++ driver
matched_obj.setStatus(vrpmStatus['status'])
return matched_obj.status
if (vrpmStatus['status'] == 'started'):
return self.startMonitoring(id)
else :
return self.stopMonitoring(id)
# return matched_obj.status
return ""
# return ""
def findMonitoring(self, id):
try:
return next(x for x in self.mons if str(x.id) == id)
except:
return "no Item found"
+10
View File
@@ -0,0 +1,10 @@
import datetime as dt
class VRPMDV_DeleteMonCmd:
def __init__(self, id ) :
self.cmdid = 2
self.id = id
+23
View File
@@ -0,0 +1,23 @@
import uuid
import datetime as dt
from marshmallow import Schema, fields, post_load, post_dump
from vrpmdvdeletemoncmd import VRPMDV_DeleteMonCmd
class VRPMDV_DeleteMonSchema(Schema):
cmdid = fields.Integer()
id = fields.UUID()
@post_load
def make_vrpmdv_DeleteMonitoring(self, data, **kwargs):
mon = VRPMDV_DeleteMonCmd(**data)
return mon
+10
View File
@@ -0,0 +1,10 @@
import datetime as dt
# generic command for delete, start, stop of the monitoring
class VRPMDV_GenericMonCmd:
def __init__(self, id , cmdId) :
self.id = id
self.cmdId = cmdId
+34
View File
@@ -0,0 +1,34 @@
from extensions.rt_service import rt_service as rts
import logging
import threading
import time
def thread_function(name):
logging.info("Thread %s: starting", name)
rtserv = rts.RT_Service()
isok = rtserv.initLogChannel()
if (not isok):
logging.info("Thread %s: could not open the logport", name)
while (isok):
msg = rtserv.readLogChannel()
logging.info(msg)
if (msg == 'noResult'):
break
logging.info("Thread %s: finishing", name)
def createCoproLoggingTask():
format = "%(asctime)s: %(message)s"
logging.basicConfig(format=format, level=logging.INFO, datefmt="%H:%M:%S")
x = threading.Thread(target=thread_function, args=(1,))
x.start()
return x
+35
View File
@@ -0,0 +1,35 @@
from extensions.rt_service import rt_service as rts
import logging
import threading
import time
def thread_function(name):
logging.info("MonThread %s: starting", name)
rtserv = rts.RT_Service()
isok = rtserv.openDataChannel('/dev/mon-datafile')
if (not isok):
logging.info("MonThread %s: could not open the logport", name)
while (isok):
msg = rtserv.readDataChannel()
logging.info(msg)
if (msg == 'noResult'):
break
logging.info("MonThread %s: finishing", name)
rtserv.closeDataChannel()
def createCoproLoggingTask():
format = "%(asctime)s: %(message)s"
logging.basicConfig(format=format, level=logging.INFO, datefmt="%H:%M:%S")
x = threading.Thread(target=thread_function, args=(1,))
x.start()
return x
+174 -40
View File
@@ -2,58 +2,192 @@ import uuid
import datetime as dt
from marshmallow import Schema, fields, post_load
from vrpmdvcreatemoncmd import VRPMDV_CreateMonCmd
from vrpmdvcreatemonschema import VRPMDV_CreateMonSchema
from vrpmdvdeletemoncmd import VRPMDV_DeleteMonCmd
from vrpmdvdeletemonschema import VRPMDV_DeleteMonSchema
from vrpmdvmonreq import VRPMDV_MonReq
from extensions.rt_service import rt_service as rts
from vrpmdvmonitoringState import VRPMDVMonitoringState
from vrpmdvmondata import createCoproLoggingTask
from vrpmdvntlink import trySend
import logging
import threading
import time
import io
import fcntl
import mmap
from vrpmdvstatusmoncmd import VRPMDV_StatusMonCmd
from vrpmdvstatusmonschema import VRPMDV_StatusMonSchema
# def thread_function(name):
# logging.info("MonThread %s: starting", name)
# fdesc = -1
# rtMon = rts.RTSMonitoringTask()
# fdesc = rtMon.openChannel('/dev/mon-datafile')
# # write loginfos to Buffer
# msg = rtMon.getLogMsg()
# for msgstr in msg:
# logging.info(str(msgstr))
# while ((fdesc >= 0) && ()):
# msg = rtMon.readChannel(fdesc)
# # write loginfos to Buffer
# logmsg = rtMon.getLogMsg()
# for msgstr in logmsg:
# logging.info(str(msgstr))
# logging.info(msg)
# if (msg == 'noResult'):
# break
# logging.info("MonThread %s: finishing", name)
# rtMon.closeChannel(fdesc)
# if (res):
# props = res.getMsg()
# #props = res.getProps()
# if (res.getResCode() == 'error'):
# try:
# logging.info(props)
# # for key, value in props.items():
# # logging.info(key+" "+ str(value))
# except:
# logging.info("MonThread %s: could not open the channel", name)
# else:
# try:
# logging.info(props)
# # for key, value in props.items():
# # logging.info(key+" "+ str(value))
# except:
# logging.info("MonThread %s: could read fdesc of the channel", name)
# else :
# logging.info("MonThread %s: result = None", name)
# class VRPMDV_MonReq:
# def __init__(self, name , samplerate, sampleperiod, downtime, owner) :
# self.name = name
# self.samplerate = samplerate
# self.sampleperiod = sampleperiod
# self.downtime = downtime
# self.owner = owner
class VRPMDV_Monitoring(VRPMDV_MonReq):
def __init__(self, id, name , samplerate, sampleperiod, downtime, status, owner="None", created_at=dt.datetime.now()) :
def __init__(self, no, id, name , samplerate, sampleperiod, downtime, status, owner="None", created_at=dt.datetime.now()) :
self.no = no
self.id = id
self.created_at = created_at
self.rtservice = rts.RT_Service()
self.rtMon = rts.RTSMonitoringTask()
self.monTask = None
self.run_thread = False
self.fdesc = -1
super().__init__(name, samplerate, sampleperiod, downtime, owner, status)
def createMonitoring(self) :
if self.status != VRPMDVMonitoringState.OFF:
iscreated = self.rtservice.createMonitoring(str(self.id))
if not iscreated :
self.status = VRPMDVMonitoringState.OFF
return True
return False
def deleteMonitoring(self) :
isdeleted = self.rtservice.deleteMonitoring(str(self.id))
if (isdeleted) :
self.monstate = VRPMDVMonitoringState.OFF
return True
return False
def startMonitoring(self) :
isstarted = self.rtservice.setMonitoringState(str(self.id), VRPMDVMonitoringState.started)
if (isstarted) :
self.monstate = VRPMDVMonitoringState.STARTED
return True
return False
#send create command to M4
try :
logging.basicConfig(format=format, level=logging.INFO, datefmt="%H:%M:%S")
logging.info("MainThread: createMonOnDevice => before vrpmdCreateCmd samplerate:%d, samplerate:%d, samplerate:%d", self.samplerate, self.sampleperiod, self.downtime)
vrpmdCreateCmd = VRPMDV_CreateMonCmd(self.samplerate, self.sampleperiod, self.downtime)
logging.info("MainThread: createMonOnDevice => before schemaCreateCmd")
schemaCreateCmd = VRPMDV_CreateMonSchema()
logging.info("MainThread: try send start monitoring starting %s", schemaCreateCmd.dumps(vrpmdCreateCmd))
res = trySend(schemaCreateCmd.dumps(vrpmdCreateCmd))
logging.info("MainThread: try send start monitoring done %s", res)
# start the receiving thread
logging.info("MainThread %s: open", str(self.id))
# self.fdesc = self.rtMon.openChannel('/dev/mon-datafile')
# self.run_thread = True
# self.monTask = threading.Thread(target=self.run, args=())
# self.monTask.start()
# logging.info("MainThread: strated Mon Thread %s started", self.id)
self.status = 'started'
return self.status
except :
self.status = "stopped"
return self.status
def stopMonitoring(self) :
isstopped = self.rtservice.setMonitoringState(str(self.id), VRPMDVMonitoringState.stopped)
if (isstopped) :
self.monstate = VRPMDVMonitoringState.STOPPED
return True
return False
# isstopped = self.rtservice.setMonitoringState(str(self.id), VRPMDVMonitoringState.stopped)
logging.basicConfig(format=format, level=logging.INFO, datefmt="%H:%M:%S")#
logging.info("MainThread: stopping Mon Thread %s ", self.id)
#send delete cmd to M4
logging.info("MainThread: stop monitoring")
if (self.monTask != None) :
# set the value Runthread to fals that the thread terminate
self.run_thread = False
self.monTask.join(None)
self.monTask = None
logging.info("MonThread %s: closing fdesc=%s", str(self.id), str(self.fdesc))
self.rtMon.closeChannel(self.fdesc)
logging.info("MonThread %s: closed fdesc=%s", str(self.id), str(self.fdesc))
logging.info("MainThread: stopped Mon Thread %s ", self.id)
vrpmdDeleteCmd = VRPMDV_DeleteMonCmd(self.no)
schemaDeleteCmd = VRPMDV_DeleteMonSchema()
res = trySend(schemaDeleteCmd.dumps(vrpmdDeleteCmd))
logging.info("MainThread: try send stop monitoring done %s", res)
# if (isstopped) :
self.status = 'stopped'
return self.status
def setStatus(self, status) :
isStatusSet = self.rtservice.setMonitoringStatus(str(self.id), status)
if (isStatusSet) :
self.status = status
return True
return False
# def setStatus(self, status) :
# # isStatusSet = self.rtservice.setMonitoringStatus(str(self.id), status)
# logging.info("MainThread: set status ")
# return True
def run(self):
# logging.info("MonThread %s: starting", str(self.id))
# fdesc = -1
# rtMon = rts.RTSMonitoringTask()
# fdesc = rtMon.openChannel('/dev/mon-datafile')
# write loginfos to Buffer
# msg = rtMon.getLogMsg()
# for msgstr in msg:
# logging.info(str(msgstr))
count = 0;
if (self.fdesc >= 0) :
while (self.run_thread):
# check if the thread is running
# if (count == 50):
# vrpmdStatusCmd = VRPMDV_StatusMonCmd(self.no)
# schemaStatusCmd = VRPMDV_StatusMonSchema()
# res = trySend(schemaStatusCmd.dumps(vrpmdStatusCmd))
# logging.info("MainThread: try send stop monitoring done %s", res)
# count = 0
#count = count +1
msg = self.rtMon.readChannel(self.fdesc)
logging.info("MonThread %s: running", str(self.id))
logging.info("Result: %s", msg)
#time.sleep(1)
# write loginfos to Buffer
# logmsg = rtMon.getLogMsg()
# for msgstr in logmsg:
# logging.info(str(msgstr))
# logging.info(msg)
# if (msg == 'noResult'):
# break
# logging.info("MonThread %s: finishing", str(self.id))
# rtMon.closeChannel(fdesc)
logging.info("MonThread %s: finished", str(self.id))
# msg = rtMon.getLogMsg()
# for msgstr in msg:
# logging.info(str(msgstr))
else:
logging.info("MonThread %s: opening failed fdesc <= 0", str(self.id))
+11 -12
View File
@@ -5,21 +5,20 @@ from marshmallow import Schema, fields, post_load
class VRPMDVMonitoringState():
OFF = "off"
CREATED = "created"
STARTED = "started"
STOPPED = "stopped"
STARTED = 'started'
STOPPED = 'stopped'
def __init__(self, state = OFF):
NCREATE = 0
NDELETE = 1
def __init__(self, state = STOPPED):
self.state = state
class VRPMDVMonitoringStateSchema(Schema):
monstate = fields.String()
@post_load
def make_vrpmdv_MonitoringState(self, data, **kwargs):
return VRPMDVMonitoringState(**data)
def get(self) :
if (self.state == self.STARTED) :
return self.NCREATE
else :
return self.NDELETE
@@ -0,0 +1,31 @@
#from enum import Enum
from marshmallow import Schema, fields, post_load
class VRPMDVMonitoringState():
OFF = "off"
CREATED = "created"
STARTED = "started"
STOPPED = "stopped"
def __init__(self, state = OFF):
self.state = state
class VRPMDVMonitoringStateSchema(Schema):
monstate = fields.String()
@post_load
def make_vrpmdv_MonitoringState(self, data, **kwargs):
return VRPMDVMonitoringState(**data)
# class VRPMDVMonitoringState(Enum):
# off = 1
# created = 2
# started = 3
# stopped = 4
+2 -15
View File
@@ -2,11 +2,11 @@ import uuid
import datetime as dt
from marshmallow import Schema, fields, post_load, post_dump
from vrpmdvmonitoring import VRPMDV_Monitoring
from vrpmdvmonitoringState import VRPMDVMonitoringStateSchema
class VRPMDV_MonitoringSchema(Schema):
no = fields.Integer()
id = fields.UUID()
created_at = fields.DateTime("%m/%d/%Y, %H:%M")
name = fields.String()
@@ -16,24 +16,11 @@ class VRPMDV_MonitoringSchema(Schema):
owner = fields.String()
status = fields.String()
#monstate = fields.Enum(VRPMDVMonitoringState)
# def get_envelope_key(self, many):
# """Helper to get the envelope key."""
# key = self.__envelope__["many"] if many else self.__envelope__["single"]
# assert key is not None, "Envelope key undefined"
# return key
# @post_dump(pass_many=True)
# def wrap_with_envelope(self, data, many, **kwargs):
# key = self.get_envelope_key(many)
# return {key: data}
@post_load
def make_vrpmdv_Monitoring(self, data, **kwargs):
mon = VRPMDV_Monitoring(**data)
#create the monitoring on the realtime side
mon.createMonitoring()
# mon.createMonitoring()
return mon
+53
View File
@@ -0,0 +1,53 @@
#!/usr/bin/env python3
import traceback
from pyroute2.netlink import NLM_F_REQUEST
from pyroute2.netlink import genlmsg
from pyroute2.netlink.generic import GenericNetlinkSocket
import sys
RLINK_CMD_UNSPEC = 0
RLINK_CMD_REQ = 1
class rcmd(genlmsg):
'''
Message class that will be used to communicate
with the kernel module
'''
nla_map = (
('RLINK_ATTR_UNSPEC', 'none'),
('RLINK_ATTR_DATA', 'asciiz'),
)
class Rlink(GenericNetlinkSocket):
def send_data(self, data):
msg = rcmd()
msg['cmd'] = RLINK_CMD_REQ
msg['version'] = 1
msg['attrs'] = [('RLINK_ATTR_DATA', data)]
ret = self.nlm_request(msg, self.prid, msg_flags=NLM_F_REQUEST)[0]
return ret.get_attr('RLINK_ATTR_DATA')
def trySend(data):
# if __name__ == '__main__':
try:
# create protocol instance
rlink = Rlink()
rlink.bind('gnl-vrpmdv-mcmd', rcmd)
#rlink.send_data(data)
# request a method
res = rlink.send_data(data)
if res :
print(res, file=sys.stdout)
sys.stdout.flush()
except:
# if there was an error, log it to the console
traceback.print_exc()
finally:
# finally -- release the instance
rlink.close()
return res
+47 -3
View File
@@ -5,6 +5,9 @@ from flask import Flask, request , send_from_directory , Response
from flask_cors import CORS
from vrpmdvdata import VRPMDV_Data
from vrpmdvmonreqschema import VRPMDV_MonReqSchema
# import ecal.core.core as ecal_core
# from proto_messages.RTService_pb2 import _RTSERVICE as rtservice
app = Flask(__name__, static_url_path='', static_folder='./build')
CORS(app) #comment this on deployment
@@ -39,8 +42,9 @@ def set_monitoring(id):
@app.route('/vrpmdvapi/1_0/monitorings', methods=['POST'])
def create_monitoring():
vrpmreq = VRPMDV_MonReqSchema().load(request.get_json())
data = vrpmdvdata.createMonitoring(vrpmreq)
#vrpmreq = VRPMDV_MonReqSchema().load(request.get_json())
#data = vrpmdvdata.createMonitoring(vrpmreq)
data = vrpmdvdata.createMonitoring(request)
resp = Response(data, status=200, mimetype='application/json')
return resp
@@ -78,5 +82,45 @@ def setStatus(id):
if __name__ == "__main__":
app.run()
# initialize eCAL API. The name of our Process will be
# "Python Protobuf Subscriber"
#ecal_core.initialize(sys.argv, "Python Protobuf Subscriber")
app.run()
# if __name__ == "__main__":
# # Create a Protobuf Publisher that publishes on the topic
# # "hello_world_python_protobuf_topic". The second parameter tells eCAL which
# # datatype we are expecting to receive on that topic.
# sub = ProtoSubscriber("hello_world_python_protobuf_topic"
# , hello_world_pb2.HelloWorld)
# # Set the Callback
# sub.set_callback(callback)
# # Just don't exit
# while ecal_core.ok():
# time.sleep(0.5)
# # finalize eCAL API
# ecal_core.finalize()
+10
View File
@@ -0,0 +1,10 @@
import datetime as dt
class VRPMDV_StatusMonCmd:
def __init__(self, id ) :
self.cmdid = 3
self.id = id
+23
View File
@@ -0,0 +1,23 @@
import uuid
import datetime as dt
from marshmallow import Schema, fields, post_load, post_dump
from vrpmdvstatusmoncmd import VRPMDV_StatusMonCmd
class VRPMDV_StatusMonSchema(Schema):
cmdid = fields.Integer()
id = fields.UUID()
@post_load
def make_vrpmdv_StatusMonitoring(self, data, **kwargs):
mon = VRPMDV_StatusMonCmd(**data)
return mon