@digital-realty/ui-mfe-reports 11.0.2 → 11.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6,7 +6,7 @@ var lN=Object.defineProperty;var uN=(e,t,n)=>t in e?lN(e,t,{enumerable:!0,config
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var vN=Ct,bN=Symbol.for("react.element"),yN=Symbol.for("react.fragment"),CN=Object.prototype.hasOwnProperty,wN=vN.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,xN={key:!0,ref:!0,__self:!0,__source:!0};function XP(e,t,n){var r,o={},i=null,s=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)CN.call(t,r)&&!xN.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:bN,type:e,key:i,ref:s,props:o,_owner:wN.current}}sh.Fragment=yN;sh.jsx=XP;sh.jsxs=XP;KP.exports=sh;var R=KP.exports;function fp(e,t){return fp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},fp(e,t)}function Na(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,fp(e,t)}var id=function(){function e(){this.listeners=[]}var t=e.prototype;return t.subscribe=function(r){var o=this,i=r||function(){};return this.listeners.push(i),this.onSubscribe(),function(){o.listeners=o.listeners.filter(function(s){return s!==i}),o.onUnsubscribe()}},t.hasListeners=function(){return this.listeners.length>0},t.onSubscribe=function(){},t.onUnsubscribe=function(){},e}();function y(){return y=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},y.apply(null,arguments)}const SN=Object.freeze(Object.defineProperty({__proto__:null,get default(){return y}},Symbol.toStringTag,{value:"Module"}));var pp=typeof window>"u";function $r(){}function EN(e,t){return typeof e=="function"?e(t):e}function Uv(e){return typeof e=="number"&&e>=0&&e!==1/0}function hp(e){return Array.isArray(e)?e:[e]}function QP(e,t){return Math.max(e+(t||0)-Date.now(),0)}function qf(e,t,n){return ah(e)?typeof t=="function"?y({},n,{queryKey:e,queryFn:t}):y({},t,{queryKey:e}):e}function xs(e,t,n){return ah(e)?[y({},t,{queryKey:e}),n]:[e||{},t]}function PN(e,t){if(e===!0&&t===!0||e==null&&t==null)return"all";if(e===!1&&t===!1)return"none";var n=e??!t;return n?"active":"inactive"}function xx(e,t){var n=e.active,r=e.exact,o=e.fetching,i=e.inactive,s=e.predicate,l=e.queryKey,u=e.stale;if(ah(l)){if(r){if(t.queryHash!==Vb(l,t.options))return!1}else if(!gp(t.queryKey,l))return!1}var c=PN(n,i);if(c==="none")return!1;if(c!=="all"){var f=t.isActive();if(c==="active"&&!f||c==="inactive"&&f)return!1}return!(typeof u=="boolean"&&t.isStale()!==u||typeof o=="boolean"&&t.isFetching()!==o||s&&!s(t))}function Sx(e,t){var n=e.exact,r=e.fetching,o=e.predicate,i=e.mutationKey;if(ah(i)){if(!t.options.mutationKey)return!1;if(n){if(ma(t.options.mutationKey)!==ma(i))return!1}else if(!gp(t.options.mutationKey,i))return!1}return!(typeof r=="boolean"&&t.state.status==="loading"!==r||o&&!o(t))}function Vb(e,t){var n=(t==null?void 0:t.queryKeyHashFn)||ma;return n(e)}function ma(e){var t=hp(e);return TN(t)}function TN(e){return JSON.stringify(e,function(t,n){return jv(n)?Object.keys(n).sort().reduce(function(r,o){return r[o]=n[o],r},{}):n})}function gp(e,t){return JP(hp(e),hp(t))}function JP(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(function(n){return!JP(e[n],t[n])}):!1}function mp(e,t){if(e===t)return e;var n=Array.isArray(e)&&Array.isArray(t);if(n||jv(e)&&jv(t)){for(var r=n?e.length:Object.keys(e).length,o=n?t:Object.keys(t),i=o.length,s=n?[]:{},l=0,u=0;u<i;u++){var c=n?u:o[u];s[c]=mp(e[c],t[c]),s[c]===e[c]&&l++}return r===i&&l===r?e:s}return t}function IN(e,t){if(e&&!t||t&&!e)return!1;for(var n in e)if(e[n]!==t[n])return!1;return!0}function jv(e){if(!Ex(e))return!1;var t=e.constructor;if(typeof t>"u")return!0;var n=t.prototype;return!(!Ex(n)||!n.hasOwnProperty("isPrototypeOf"))}function Ex(e){return Object.prototype.toString.call(e)==="[object Object]"}function ah(e){return typeof e=="string"||Array.isArray(e)}function RN(e){return new Promise(function(t){setTimeout(t,e)})}function Px(e){Promise.resolve().then(e).catch(function(t){return setTimeout(function(){throw t})})}function ZP(){if(typeof AbortController=="function")return new AbortController}var _N=function(e){Na(t,e);function t(){var r;return r=e.call(this)||this,r.setup=function(o){var i;if(!pp&&((i=window)!=null&&i.addEventListener)){var s=function(){return o()};return window.addEventListener("visibilitychange",s,!1),window.addEventListener("focus",s,!1),function(){window.removeEventListener("visibilitychange",s),window.removeEventListener("focus",s)}}},r}var n=t.prototype;return n.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},n.onUnsubscribe=function(){if(!this.hasListeners()){var o;(o=this.cleanup)==null||o.call(this),this.cleanup=void 0}},n.setEventListener=function(o){var i,s=this;this.setup=o,(i=this.cleanup)==null||i.call(this),this.cleanup=o(function(l){typeof l=="boolean"?s.setFocused(l):s.onFocus()})},n.setFocused=function(o){this.focused=o,o&&this.onFocus()},n.onFocus=function(){this.listeners.forEach(function(o){o()})},n.isFocused=function(){return typeof this.focused=="boolean"?this.focused:typeof document>"u"?!0:[void 0,"visible","prerender"].includes(document.visibilityState)},t}(id),vc=new _N,ON=function(e){Na(t,e);function t(){var r;return r=e.call(this)||this,r.setup=function(o){var i;if(!pp&&((i=window)!=null&&i.addEventListener)){var s=function(){return o()};return window.addEventListener("online",s,!1),window.addEventListener("offline",s,!1),function(){window.removeEventListener("online",s),window.removeEventListener("offline",s)}}},r}var n=t.prototype;return n.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},n.onUnsubscribe=function(){if(!this.hasListeners()){var o;(o=this.cleanup)==null||o.call(this),this.cleanup=void 0}},n.setEventListener=function(o){var i,s=this;this.setup=o,(i=this.cleanup)==null||i.call(this),this.cleanup=o(function(l){typeof l=="boolean"?s.setOnline(l):s.onOnline()})},n.setOnline=function(o){this.online=o,o&&this.onOnline()},n.onOnline=function(){this.listeners.forEach(function(o){o()})},n.isOnline=function(){return typeof this.online=="boolean"?this.online:typeof navigator>"u"||typeof navigator.onLine>"u"?!0:navigator.onLine},t}(id),Kf=new ON;function MN(e){return Math.min(1e3*Math.pow(2,e),3e4)}function vp(e){return typeof(e==null?void 0:e.cancel)=="function"}var YP=function(t){this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent};function Xf(e){return e instanceof YP}var eT=function(t){var n=this,r=!1,o,i,s,l;this.abort=t.abort,this.cancel=function(h){return o==null?void 0:o(h)},this.cancelRetry=function(){r=!0},this.continueRetry=function(){r=!1},this.continue=function(){return i==null?void 0:i()},this.failureCount=0,this.isPaused=!1,this.isResolved=!1,this.isTransportCancelable=!1,this.promise=new Promise(function(h,m){s=h,l=m});var u=function(m){n.isResolved||(n.isResolved=!0,t.onSuccess==null||t.onSuccess(m),i==null||i(),s(m))},c=function(m){n.isResolved||(n.isResolved=!0,t.onError==null||t.onError(m),i==null||i(),l(m))},f=function(){return new Promise(function(m){i=m,n.isPaused=!0,t.onPause==null||t.onPause()}).then(function(){i=void 0,n.isPaused=!1,t.onContinue==null||t.onContinue()})},p=function h(){if(!n.isResolved){var m;try{m=t.fn()}catch(C){m=Promise.reject(C)}o=function(b){if(!n.isResolved&&(c(new YP(b)),n.abort==null||n.abort(),vp(m)))try{m.cancel()}catch{}},n.isTransportCancelable=vp(m),Promise.resolve(m).then(u).catch(function(C){var b,S;if(!n.isResolved){var T=(b=t.retry)!=null?b:3,P=(S=t.retryDelay)!=null?S:MN,E=typeof P=="function"?P(n.failureCount,C):P,w=T===!0||typeof T=="number"&&n.failureCount<T||typeof T=="function"&&T(n.failureCount,C);if(r||!w){c(C);return}n.failureCount++,t.onFail==null||t.onFail(n.failureCount,C),RN(E).then(function(){if(!vc.isFocused()||!Kf.isOnline())return f()}).then(function(){r?c(C):h()})}})}};p()},LN=function(){function e(){this.queue=[],this.transactions=0,this.notifyFn=function(n){n()},this.batchNotifyFn=function(n){n()}}var t=e.prototype;return t.batch=function(r){var o;this.transactions++;try{o=r()}finally{this.transactions--,this.transactions||this.flush()}return o},t.schedule=function(r){var o=this;this.transactions?this.queue.push(r):Px(function(){o.notifyFn(r)})},t.batchCalls=function(r){var o=this;return function(){for(var i=arguments.length,s=new Array(i),l=0;l<i;l++)s[l]=arguments[l];o.schedule(function(){r.apply(void 0,s)})}},t.flush=function(){var r=this,o=this.queue;this.queue=[],o.length&&Px(function(){r.batchNotifyFn(function(){o.forEach(function(i){r.notifyFn(i)})})})},t.setNotifyFunction=function(r){this.notifyFn=r},t.setBatchNotifyFunction=function(r){this.batchNotifyFn=r},e}(),Vn=new LN,tT=console;function bp(){return tT}function AN(e){tT=e}var DN=function(){function e(n){this.abortSignalConsumed=!1,this.hadObservers=!1,this.defaultOptions=n.defaultOptions,this.setOptions(n.options),this.observers=[],this.cache=n.cache,this.queryKey=n.queryKey,this.queryHash=n.queryHash,this.initialState=n.state||this.getDefaultState(this.options),this.state=this.initialState,this.meta=n.meta,this.scheduleGc()}var t=e.prototype;return t.setOptions=function(r){var o;this.options=y({},this.defaultOptions,r),this.meta=r==null?void 0:r.meta,this.cacheTime=Math.max(this.cacheTime||0,(o=this.options.cacheTime)!=null?o:5*60*1e3)},t.setDefaultOptions=function(r){this.defaultOptions=r},t.scheduleGc=function(){var r=this;this.clearGcTimeout(),Uv(this.cacheTime)&&(this.gcTimeout=setTimeout(function(){r.optionalRemove()},this.cacheTime))},t.clearGcTimeout=function(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)},t.optionalRemove=function(){this.observers.length||(this.state.isFetching?this.hadObservers&&this.scheduleGc():this.cache.remove(this))},t.setData=function(r,o){var i,s,l=this.state.data,u=EN(r,l);return(i=(s=this.options).isDataEqual)!=null&&i.call(s,l,u)?u=l:this.options.structuralSharing!==!1&&(u=mp(l,u)),this.dispatch({data:u,type:"success",dataUpdatedAt:o==null?void 0:o.updatedAt}),u},t.setState=function(r,o){this.dispatch({type:"setState",state:r,setStateOptions:o})},t.cancel=function(r){var o,i=this.promise;return(o=this.retryer)==null||o.cancel(r),i?i.then($r).catch($r):Promise.resolve()},t.destroy=function(){this.clearGcTimeout(),this.cancel({silent:!0})},t.reset=function(){this.destroy(),this.setState(this.initialState)},t.isActive=function(){return this.observers.some(function(r){return r.options.enabled!==!1})},t.isFetching=function(){return this.state.isFetching},t.isStale=function(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(function(r){return r.getCurrentResult().isStale})},t.isStaleByTime=function(r){return r===void 0&&(r=0),this.state.isInvalidated||!this.state.dataUpdatedAt||!QP(this.state.dataUpdatedAt,r)},t.onFocus=function(){var r,o=this.observers.find(function(i){return i.shouldFetchOnWindowFocus()});o&&o.refetch(),(r=this.retryer)==null||r.continue()},t.onOnline=function(){var r,o=this.observers.find(function(i){return i.shouldFetchOnReconnect()});o&&o.refetch(),(r=this.retryer)==null||r.continue()},t.addObserver=function(r){this.observers.indexOf(r)===-1&&(this.observers.push(r),this.hadObservers=!0,this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:r}))},t.removeObserver=function(r){this.observers.indexOf(r)!==-1&&(this.observers=this.observers.filter(function(o){return o!==r}),this.observers.length||(this.retryer&&(this.retryer.isTransportCancelable||this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.cacheTime?this.scheduleGc():this.cache.remove(this)),this.cache.notify({type:"observerRemoved",query:this,observer:r}))},t.getObserversCount=function(){return this.observers.length},t.invalidate=function(){this.state.isInvalidated||this.dispatch({type:"invalidate"})},t.fetch=function(r,o){var i=this,s,l,u;if(this.state.isFetching){if(this.state.dataUpdatedAt&&(o!=null&&o.cancelRefetch))this.cancel({silent:!0});else if(this.promise){var c;return(c=this.retryer)==null||c.continueRetry(),this.promise}}if(r&&this.setOptions(r),!this.options.queryFn){var f=this.observers.find(function(P){return P.options.queryFn});f&&this.setOptions(f.options)}var p=hp(this.queryKey),h=ZP(),m={queryKey:p,pageParam:void 0,meta:this.meta};Object.defineProperty(m,"signal",{enumerable:!0,get:function(){if(h)return i.abortSignalConsumed=!0,h.signal}});var C=function(){return i.options.queryFn?(i.abortSignalConsumed=!1,i.options.queryFn(m)):Promise.reject("Missing queryFn")},b={fetchOptions:o,options:this.options,queryKey:p,state:this.state,fetchFn:C,meta:this.meta};if((s=this.options.behavior)!=null&&s.onFetch){var S;(S=this.options.behavior)==null||S.onFetch(b)}if(this.revertState=this.state,!this.state.isFetching||this.state.fetchMeta!==((l=b.fetchOptions)==null?void 0:l.meta)){var T;this.dispatch({type:"fetch",meta:(T=b.fetchOptions)==null?void 0:T.meta})}return this.retryer=new eT({fn:b.fetchFn,abort:h==null||(u=h.abort)==null?void 0:u.bind(h),onSuccess:function(E){i.setData(E),i.cache.config.onSuccess==null||i.cache.config.onSuccess(E,i),i.cacheTime===0&&i.optionalRemove()},onError:function(E){Xf(E)&&E.silent||i.dispatch({type:"error",error:E}),Xf(E)||(i.cache.config.onError==null||i.cache.config.onError(E,i),bp().error(E)),i.cacheTime===0&&i.optionalRemove()},onFail:function(){i.dispatch({type:"failed"})},onPause:function(){i.dispatch({type:"pause"})},onContinue:function(){i.dispatch({type:"continue"})},retry:b.options.retry,retryDelay:b.options.retryDelay}),this.promise=this.retryer.promise,this.promise},t.dispatch=function(r){var o=this;this.state=this.reducer(this.state,r),Vn.batch(function(){o.observers.forEach(function(i){i.onQueryUpdate(r)}),o.cache.notify({query:o,type:"queryUpdated",action:r})})},t.getDefaultState=function(r){var o=typeof r.initialData=="function"?r.initialData():r.initialData,i=typeof r.initialData<"u",s=i?typeof r.initialDataUpdatedAt=="function"?r.initialDataUpdatedAt():r.initialDataUpdatedAt:0,l=typeof o<"u";return{data:o,dataUpdateCount:0,dataUpdatedAt:l?s??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchMeta:null,isFetching:!1,isInvalidated:!1,isPaused:!1,status:l?"success":"idle"}},t.reducer=function(r,o){var i,s;switch(o.type){case"failed":return y({},r,{fetchFailureCount:r.fetchFailureCount+1});case"pause":return y({},r,{isPaused:!0});case"continue":return y({},r,{isPaused:!1});case"fetch":return y({},r,{fetchFailureCount:0,fetchMeta:(i=o.meta)!=null?i:null,isFetching:!0,isPaused:!1},!r.dataUpdatedAt&&{error:null,status:"loading"});case"success":return y({},r,{data:o.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:(s=o.dataUpdatedAt)!=null?s:Date.now(),error:null,fetchFailureCount:0,isFetching:!1,isInvalidated:!1,isPaused:!1,status:"success"});case"error":var l=o.error;return Xf(l)&&l.revert&&this.revertState?y({},this.revertState):y({},r,{error:l,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,isFetching:!1,isPaused:!1,status:"error"});case"invalidate":return y({},r,{isInvalidated:!0});case"setState":return y({},r,o.state);default:return r}},e}(),$N=function(e){Na(t,e);function t(r){var o;return o=e.call(this)||this,o.config=r||{},o.queries=[],o.queriesMap={},o}var n=t.prototype;return n.build=function(o,i,s){var l,u=i.queryKey,c=(l=i.queryHash)!=null?l:Vb(u,i),f=this.get(c);return f||(f=new DN({cache:this,queryKey:u,queryHash:c,options:o.defaultQueryOptions(i),state:s,defaultOptions:o.getQueryDefaults(u),meta:i.meta}),this.add(f)),f},n.add=function(o){this.queriesMap[o.queryHash]||(this.queriesMap[o.queryHash]=o,this.queries.push(o),this.notify({type:"queryAdded",query:o}))},n.remove=function(o){var i=this.queriesMap[o.queryHash];i&&(o.destroy(),this.queries=this.queries.filter(function(s){return s!==o}),i===o&&delete this.queriesMap[o.queryHash],this.notify({type:"queryRemoved",query:o}))},n.clear=function(){var o=this;Vn.batch(function(){o.queries.forEach(function(i){o.remove(i)})})},n.get=function(o){return this.queriesMap[o]},n.getAll=function(){return this.queries},n.find=function(o,i){var s=xs(o,i),l=s[0];return typeof l.exact>"u"&&(l.exact=!0),this.queries.find(function(u){return xx(l,u)})},n.findAll=function(o,i){var s=xs(o,i),l=s[0];return Object.keys(l).length>0?this.queries.filter(function(u){return xx(l,u)}):this.queries},n.notify=function(o){var i=this;Vn.batch(function(){i.listeners.forEach(function(s){s(o)})})},n.onFocus=function(){var o=this;Vn.batch(function(){o.queries.forEach(function(i){i.onFocus()})})},n.onOnline=function(){var o=this;Vn.batch(function(){o.queries.forEach(function(i){i.onOnline()})})},t}(id),kN=function(){function e(n){this.options=y({},n.defaultOptions,n.options),this.mutationId=n.mutationId,this.mutationCache=n.mutationCache,this.observers=[],this.state=n.state||FN(),this.meta=n.meta}var t=e.prototype;return t.setState=function(r){this.dispatch({type:"setState",state:r})},t.addObserver=function(r){this.observers.indexOf(r)===-1&&this.observers.push(r)},t.removeObserver=function(r){this.observers=this.observers.filter(function(o){return o!==r})},t.cancel=function(){return this.retryer?(this.retryer.cancel(),this.retryer.promise.then($r).catch($r)):Promise.resolve()},t.continue=function(){return this.retryer?(this.retryer.continue(),this.retryer.promise):this.execute()},t.execute=function(){var r=this,o,i=this.state.status==="loading",s=Promise.resolve();return i||(this.dispatch({type:"loading",variables:this.options.variables}),s=s.then(function(){r.mutationCache.config.onMutate==null||r.mutationCache.config.onMutate(r.state.variables,r)}).then(function(){return r.options.onMutate==null?void 0:r.options.onMutate(r.state.variables)}).then(function(l){l!==r.state.context&&r.dispatch({type:"loading",context:l,variables:r.state.variables})})),s.then(function(){return r.executeMutation()}).then(function(l){o=l,r.mutationCache.config.onSuccess==null||r.mutationCache.config.onSuccess(o,r.state.variables,r.state.context,r)}).then(function(){return r.options.onSuccess==null?void 0:r.options.onSuccess(o,r.state.variables,r.state.context)}).then(function(){return r.options.onSettled==null?void 0:r.options.onSettled(o,null,r.state.variables,r.state.context)}).then(function(){return r.dispatch({type:"success",data:o}),o}).catch(function(l){return r.mutationCache.config.onError==null||r.mutationCache.config.onError(l,r.state.variables,r.state.context,r),bp().error(l),Promise.resolve().then(function(){return r.options.onError==null?void 0:r.options.onError(l,r.state.variables,r.state.context)}).then(function(){return r.options.onSettled==null?void 0:r.options.onSettled(void 0,l,r.state.variables,r.state.context)}).then(function(){throw r.dispatch({type:"error",error:l}),l})})},t.executeMutation=function(){var r=this,o;return this.retryer=new eT({fn:function(){return r.options.mutationFn?r.options.mutationFn(r.state.variables):Promise.reject("No mutationFn found")},onFail:function(){r.dispatch({type:"failed"})},onPause:function(){r.dispatch({type:"pause"})},onContinue:function(){r.dispatch({type:"continue"})},retry:(o=this.options.retry)!=null?o:0,retryDelay:this.options.retryDelay}),this.retryer.promise},t.dispatch=function(r){var o=this;this.state=NN(this.state,r),Vn.batch(function(){o.observers.forEach(function(i){i.onMutationUpdate(r)}),o.mutationCache.notify(o)})},e}();function FN(){return{context:void 0,data:void 0,error:null,failureCount:0,isPaused:!1,status:"idle",variables:void 0}}function NN(e,t){switch(t.type){case"failed":return y({},e,{failureCount:e.failureCount+1});case"pause":return y({},e,{isPaused:!0});case"continue":return y({},e,{isPaused:!1});case"loading":return y({},e,{context:t.context,data:void 0,error:null,isPaused:!1,status:"loading",variables:t.variables});case"success":return y({},e,{data:t.data,error:null,status:"success",isPaused:!1});case"error":return y({},e,{data:void 0,error:t.error,failureCount:e.failureCount+1,isPaused:!1,status:"error"});case"setState":return y({},e,t.state);default:return e}}var HN=function(e){Na(t,e);function t(r){var o;return o=e.call(this)||this,o.config=r||{},o.mutations=[],o.mutationId=0,o}var n=t.prototype;return n.build=function(o,i,s){var l=new kN({mutationCache:this,mutationId:++this.mutationId,options:o.defaultMutationOptions(i),state:s,defaultOptions:i.mutationKey?o.getMutationDefaults(i.mutationKey):void 0,meta:i.meta});return this.add(l),l},n.add=function(o){this.mutations.push(o),this.notify(o)},n.remove=function(o){this.mutations=this.mutations.filter(function(i){return i!==o}),o.cancel(),this.notify(o)},n.clear=function(){var o=this;Vn.batch(function(){o.mutations.forEach(function(i){o.remove(i)})})},n.getAll=function(){return this.mutations},n.find=function(o){return typeof o.exact>"u"&&(o.exact=!0),this.mutations.find(function(i){return Sx(o,i)})},n.findAll=function(o){return this.mutations.filter(function(i){return Sx(o,i)})},n.notify=function(o){var i=this;Vn.batch(function(){i.listeners.forEach(function(s){s(o)})})},n.onFocus=function(){this.resumePausedMutations()},n.onOnline=function(){this.resumePausedMutations()},n.resumePausedMutations=function(){var o=this.mutations.filter(function(i){return i.state.isPaused});return Vn.batch(function(){return o.reduce(function(i,s){return i.then(function(){return s.continue().catch($r)})},Promise.resolve())})},t}(id);function BN(){return{onFetch:function(t){t.fetchFn=function(){var n,r,o,i,s,l,u=(n=t.fetchOptions)==null||(r=n.meta)==null?void 0:r.refetchPage,c=(o=t.fetchOptions)==null||(i=o.meta)==null?void 0:i.fetchMore,f=c==null?void 0:c.pageParam,p=(c==null?void 0:c.direction)==="forward",h=(c==null?void 0:c.direction)==="backward",m=((s=t.state.data)==null?void 0:s.pages)||[],C=((l=t.state.data)==null?void 0:l.pageParams)||[],b=ZP(),S=b==null?void 0:b.signal,T=C,P=!1,E=t.options.queryFn||function(){return Promise.reject("Missing queryFn")},w=function(k,$,U,V){return T=V?[$].concat(T):[].concat(T,[$]),V?[U].concat(k):[].concat(k,[U])},M=function(k,$,U,V){if(P)return Promise.reject("Cancelled");if(typeof U>"u"&&!$&&k.length)return Promise.resolve(k);var N={queryKey:t.queryKey,signal:S,pageParam:U,meta:t.meta},j=E(N),W=Promise.resolve(j).then(function(ie){return w(k,U,ie,V)});if(vp(j)){var oe=W;oe.cancel=j.cancel}return W},I;if(!m.length)I=M([]);else if(p){var x=typeof f<"u",_=x?f:Tx(t.options,m);I=M(m,x,_)}else if(h){var L=typeof f<"u",A=L?f:UN(t.options,m);I=M(m,L,A,!0)}else(function(){T=[];var B=typeof t.options.getNextPageParam>"u",k=u&&m[0]?u(m[0],0,m):!0;I=k?M([],B,C[0]):Promise.resolve(w([],C[0],m[0]));for(var $=function(N){I=I.then(function(j){var W=u&&m[N]?u(m[N],N,m):!0;if(W){var oe=B?C[N]:Tx(t.options,j);return M(j,B,oe)}return Promise.resolve(w(j,C[N],m[N]))})},U=1;U<m.length;U++)$(U)})();var D=I.then(function(B){return{pages:B,pageParams:T}}),H=D;return H.cancel=function(){P=!0,b==null||b.abort(),vp(I)&&I.cancel()},D}}}}function Tx(e,t){return e.getNextPageParam==null?void 0:e.getNextPageParam(t[t.length-1],t)}function UN(e,t){return e.getPreviousPageParam==null?void 0:e.getPreviousPageParam(t[0],t)}var jN=function(){function e(n){n===void 0&&(n={}),this.queryCache=n.queryCache||new $N,this.mutationCache=n.mutationCache||new HN,this.defaultOptions=n.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[]}var t=e.prototype;return t.mount=function(){var r=this;this.unsubscribeFocus=vc.subscribe(function(){vc.isFocused()&&Kf.isOnline()&&(r.mutationCache.onFocus(),r.queryCache.onFocus())}),this.unsubscribeOnline=Kf.subscribe(function(){vc.isFocused()&&Kf.isOnline()&&(r.mutationCache.onOnline(),r.queryCache.onOnline())})},t.unmount=function(){var r,o;(r=this.unsubscribeFocus)==null||r.call(this),(o=this.unsubscribeOnline)==null||o.call(this)},t.isFetching=function(r,o){var i=xs(r,o),s=i[0];return s.fetching=!0,this.queryCache.findAll(s).length},t.isMutating=function(r){return this.mutationCache.findAll(y({},r,{fetching:!0})).length},t.getQueryData=function(r,o){var i;return(i=this.queryCache.find(r,o))==null?void 0:i.state.data},t.getQueriesData=function(r){return this.getQueryCache().findAll(r).map(function(o){var i=o.queryKey,s=o.state,l=s.data;return[i,l]})},t.setQueryData=function(r,o,i){var s=qf(r),l=this.defaultQueryOptions(s);return this.queryCache.build(this,l).setData(o,i)},t.setQueriesData=function(r,o,i){var s=this;return Vn.batch(function(){return s.getQueryCache().findAll(r).map(function(l){var u=l.queryKey;return[u,s.setQueryData(u,o,i)]})})},t.getQueryState=function(r,o){var i;return(i=this.queryCache.find(r,o))==null?void 0:i.state},t.removeQueries=function(r,o){var i=xs(r,o),s=i[0],l=this.queryCache;Vn.batch(function(){l.findAll(s).forEach(function(u){l.remove(u)})})},t.resetQueries=function(r,o,i){var s=this,l=xs(r,o,i),u=l[0],c=l[1],f=this.queryCache,p=y({},u,{active:!0});return Vn.batch(function(){return f.findAll(u).forEach(function(h){h.reset()}),s.refetchQueries(p,c)})},t.cancelQueries=function(r,o,i){var s=this,l=xs(r,o,i),u=l[0],c=l[1],f=c===void 0?{}:c;typeof f.revert>"u"&&(f.revert=!0);var p=Vn.batch(function(){return s.queryCache.findAll(u).map(function(h){return h.cancel(f)})});return Promise.all(p).then($r).catch($r)},t.invalidateQueries=function(r,o,i){var s,l,u,c=this,f=xs(r,o,i),p=f[0],h=f[1],m=y({},p,{active:(s=(l=p.refetchActive)!=null?l:p.active)!=null?s:!0,inactive:(u=p.refetchInactive)!=null?u:!1});return Vn.batch(function(){return c.queryCache.findAll(p).forEach(function(C){C.invalidate()}),c.refetchQueries(m,h)})},t.refetchQueries=function(r,o,i){var s=this,l=xs(r,o,i),u=l[0],c=l[1],f=Vn.batch(function(){return s.queryCache.findAll(u).map(function(h){return h.fetch(void 0,y({},c,{meta:{refetchPage:u==null?void 0:u.refetchPage}}))})}),p=Promise.all(f).then($r);return c!=null&&c.throwOnError||(p=p.catch($r)),p},t.fetchQuery=function(r,o,i){var s=qf(r,o,i),l=this.defaultQueryOptions(s);typeof l.retry>"u"&&(l.retry=!1);var u=this.queryCache.build(this,l);return u.isStaleByTime(l.staleTime)?u.fetch(l):Promise.resolve(u.state.data)},t.prefetchQuery=function(r,o,i){return this.fetchQuery(r,o,i).then($r).catch($r)},t.fetchInfiniteQuery=function(r,o,i){var s=qf(r,o,i);return s.behavior=BN(),this.fetchQuery(s)},t.prefetchInfiniteQuery=function(r,o,i){return this.fetchInfiniteQuery(r,o,i).then($r).catch($r)},t.cancelMutations=function(){var r=this,o=Vn.batch(function(){return r.mutationCache.getAll().map(function(i){return i.cancel()})});return Promise.all(o).then($r).catch($r)},t.resumePausedMutations=function(){return this.getMutationCache().resumePausedMutations()},t.executeMutation=function(r){return this.mutationCache.build(this,r).execute()},t.getQueryCache=function(){return this.queryCache},t.getMutationCache=function(){return this.mutationCache},t.getDefaultOptions=function(){return this.defaultOptions},t.setDefaultOptions=function(r){this.defaultOptions=r},t.setQueryDefaults=function(r,o){var i=this.queryDefaults.find(function(s){return ma(r)===ma(s.queryKey)});i?i.defaultOptions=o:this.queryDefaults.push({queryKey:r,defaultOptions:o})},t.getQueryDefaults=function(r){var o;return r?(o=this.queryDefaults.find(function(i){return gp(r,i.queryKey)}))==null?void 0:o.defaultOptions:void 0},t.setMutationDefaults=function(r,o){var i=this.mutationDefaults.find(function(s){return ma(r)===ma(s.mutationKey)});i?i.defaultOptions=o:this.mutationDefaults.push({mutationKey:r,defaultOptions:o})},t.getMutationDefaults=function(r){var o;return r?(o=this.mutationDefaults.find(function(i){return gp(r,i.mutationKey)}))==null?void 0:o.defaultOptions:void 0},t.defaultQueryOptions=function(r){if(r!=null&&r._defaulted)return r;var o=y({},this.defaultOptions.queries,this.getQueryDefaults(r==null?void 0:r.queryKey),r,{_defaulted:!0});return!o.queryHash&&o.queryKey&&(o.queryHash=Vb(o.queryKey,o)),o},t.defaultQueryObserverOptions=function(r){return this.defaultQueryOptions(r)},t.defaultMutationOptions=function(r){return r!=null&&r._defaulted?r:y({},this.defaultOptions.mutations,this.getMutationDefaults(r==null?void 0:r.mutationKey),r,{_defaulted:!0})},t.clear=function(){this.queryCache.clear(),this.mutationCache.clear()},e}(),zN=function(e){Na(t,e);function t(r,o){var i;return i=e.call(this)||this,i.client=r,i.options=o,i.trackedProps=[],i.selectError=null,i.bindMethods(),i.setOptions(o),i}var n=t.prototype;return n.bindMethods=function(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)},n.onSubscribe=function(){this.listeners.length===1&&(this.currentQuery.addObserver(this),Ix(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())},n.onUnsubscribe=function(){this.listeners.length||this.destroy()},n.shouldFetchOnReconnect=function(){return zv(this.currentQuery,this.options,this.options.refetchOnReconnect)},n.shouldFetchOnWindowFocus=function(){return zv(this.currentQuery,this.options,this.options.refetchOnWindowFocus)},n.destroy=function(){this.listeners=[],this.clearTimers(),this.currentQuery.removeObserver(this)},n.setOptions=function(o,i){var s=this.options,l=this.currentQuery;if(this.options=this.client.defaultQueryObserverOptions(o),typeof this.options.enabled<"u"&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=s.queryKey),this.updateQuery();var u=this.hasListeners();u&&Rx(this.currentQuery,l,this.options,s)&&this.executeFetch(),this.updateResult(i),u&&(this.currentQuery!==l||this.options.enabled!==s.enabled||this.options.staleTime!==s.staleTime)&&this.updateStaleTimeout();var c=this.computeRefetchInterval();u&&(this.currentQuery!==l||this.options.enabled!==s.enabled||c!==this.currentRefetchInterval)&&this.updateRefetchInterval(c)},n.getOptimisticResult=function(o){var i=this.client.defaultQueryObserverOptions(o),s=this.client.getQueryCache().build(this.client,i);return this.createResult(s,i)},n.getCurrentResult=function(){return this.currentResult},n.trackResult=function(o,i){var s=this,l={},u=function(f){s.trackedProps.includes(f)||s.trackedProps.push(f)};return Object.keys(o).forEach(function(c){Object.defineProperty(l,c,{configurable:!1,enumerable:!0,get:function(){return u(c),o[c]}})}),(i.useErrorBoundary||i.suspense)&&u("error"),l},n.getNextResult=function(o){var i=this;return new Promise(function(s,l){var u=i.subscribe(function(c){c.isFetching||(u(),c.isError&&(o!=null&&o.throwOnError)?l(c.error):s(c))})})},n.getCurrentQuery=function(){return this.currentQuery},n.remove=function(){this.client.getQueryCache().remove(this.currentQuery)},n.refetch=function(o){return this.fetch(y({},o,{meta:{refetchPage:o==null?void 0:o.refetchPage}}))},n.fetchOptimistic=function(o){var i=this,s=this.client.defaultQueryObserverOptions(o),l=this.client.getQueryCache().build(this.client,s);return l.fetch().then(function(){return i.createResult(l,s)})},n.fetch=function(o){var i=this;return this.executeFetch(o).then(function(){return i.updateResult(),i.currentResult})},n.executeFetch=function(o){this.updateQuery();var i=this.currentQuery.fetch(this.options,o);return o!=null&&o.throwOnError||(i=i.catch($r)),i},n.updateStaleTimeout=function(){var o=this;if(this.clearStaleTimeout(),!(pp||this.currentResult.isStale||!Uv(this.options.staleTime))){var i=QP(this.currentResult.dataUpdatedAt,this.options.staleTime),s=i+1;this.staleTimeoutId=setTimeout(function(){o.currentResult.isStale||o.updateResult()},s)}},n.computeRefetchInterval=function(){var o;return typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.currentResult.data,this.currentQuery):(o=this.options.refetchInterval)!=null?o:!1},n.updateRefetchInterval=function(o){var i=this;this.clearRefetchInterval(),this.currentRefetchInterval=o,!(pp||this.options.enabled===!1||!Uv(this.currentRefetchInterval)||this.currentRefetchInterval===0)&&(this.refetchIntervalId=setInterval(function(){(i.options.refetchIntervalInBackground||vc.isFocused())&&i.executeFetch()},this.currentRefetchInterval))},n.updateTimers=function(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())},n.clearTimers=function(){this.clearStaleTimeout(),this.clearRefetchInterval()},n.clearStaleTimeout=function(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)},n.clearRefetchInterval=function(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)},n.createResult=function(o,i){var s=this.currentQuery,l=this.options,u=this.currentResult,c=this.currentResultState,f=this.currentResultOptions,p=o!==s,h=p?o.state:this.currentQueryInitialState,m=p?this.currentResult:this.previousQueryResult,C=o.state,b=C.dataUpdatedAt,S=C.error,T=C.errorUpdatedAt,P=C.isFetching,E=C.status,w=!1,M=!1,I;if(i.optimisticResults){var x=this.hasListeners(),_=!x&&Ix(o,i),L=x&&Rx(o,s,i,l);(_||L)&&(P=!0,b||(E="loading"))}if(i.keepPreviousData&&!C.dataUpdateCount&&(m!=null&&m.isSuccess)&&E!=="error")I=m.data,b=m.dataUpdatedAt,E=m.status,w=!0;else if(i.select&&typeof C.data<"u")if(u&&C.data===(c==null?void 0:c.data)&&i.select===this.selectFn)I=this.selectResult;else try{this.selectFn=i.select,I=i.select(C.data),i.structuralSharing!==!1&&(I=mp(u==null?void 0:u.data,I)),this.selectResult=I,this.selectError=null}catch(H){bp().error(H),this.selectError=H}else I=C.data;if(typeof i.placeholderData<"u"&&typeof I>"u"&&(E==="loading"||E==="idle")){var A;if(u!=null&&u.isPlaceholderData&&i.placeholderData===(f==null?void 0:f.placeholderData))A=u.data;else if(A=typeof i.placeholderData=="function"?i.placeholderData():i.placeholderData,i.select&&typeof A<"u")try{A=i.select(A),i.structuralSharing!==!1&&(A=mp(u==null?void 0:u.data,A)),this.selectError=null}catch(H){bp().error(H),this.selectError=H}typeof A<"u"&&(E="success",I=A,M=!0)}this.selectError&&(S=this.selectError,I=this.selectResult,T=Date.now(),E="error");var D={status:E,isLoading:E==="loading",isSuccess:E==="success",isError:E==="error",isIdle:E==="idle",data:I,dataUpdatedAt:b,error:S,errorUpdatedAt:T,failureCount:C.fetchFailureCount,errorUpdateCount:C.errorUpdateCount,isFetched:C.dataUpdateCount>0||C.errorUpdateCount>0,isFetchedAfterMount:C.dataUpdateCount>h.dataUpdateCount||C.errorUpdateCount>h.errorUpdateCount,isFetching:P,isRefetching:P&&E!=="loading",isLoadingError:E==="error"&&C.dataUpdatedAt===0,isPlaceholderData:M,isPreviousData:w,isRefetchError:E==="error"&&C.dataUpdatedAt!==0,isStale:Wb(o,i),refetch:this.refetch,remove:this.remove};return D},n.shouldNotifyListeners=function(o,i){if(!i)return!0;var s=this.options,l=s.notifyOnChangeProps,u=s.notifyOnChangePropsExclusions;if(!l&&!u||l==="tracked"&&!this.trackedProps.length)return!0;var c=l==="tracked"?this.trackedProps:l;return Object.keys(o).some(function(f){var p=f,h=o[p]!==i[p],m=c==null?void 0:c.some(function(b){return b===f}),C=u==null?void 0:u.some(function(b){return b===f});return h&&!C&&(!c||m)})},n.updateResult=function(o){var i=this.currentResult;if(this.currentResult=this.createResult(this.currentQuery,this.options),this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,!IN(this.currentResult,i)){var s={cache:!0};(o==null?void 0:o.listeners)!==!1&&this.shouldNotifyListeners(this.currentResult,i)&&(s.listeners=!0),this.notify(y({},s,o))}},n.updateQuery=function(){var o=this.client.getQueryCache().build(this.client,this.options);if(o!==this.currentQuery){var i=this.currentQuery;this.currentQuery=o,this.currentQueryInitialState=o.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(i==null||i.removeObserver(this),o.addObserver(this))}},n.onQueryUpdate=function(o){var i={};o.type==="success"?i.onSuccess=!0:o.type==="error"&&!Xf(o.error)&&(i.onError=!0),this.updateResult(i),this.hasListeners()&&this.updateTimers()},n.notify=function(o){var i=this;Vn.batch(function(){o.onSuccess?(i.options.onSuccess==null||i.options.onSuccess(i.currentResult.data),i.options.onSettled==null||i.options.onSettled(i.currentResult.data,null)):o.onError&&(i.options.onError==null||i.options.onError(i.currentResult.error),i.options.onSettled==null||i.options.onSettled(void 0,i.currentResult.error)),o.listeners&&i.listeners.forEach(function(s){s(i.currentResult)}),o.cache&&i.client.getQueryCache().notify({query:i.currentQuery,type:"observerResultsUpdated"})})},t}(id);function GN(e,t){return t.enabled!==!1&&!e.state.dataUpdatedAt&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Ix(e,t){return GN(e,t)||e.state.dataUpdatedAt>0&&zv(e,t,t.refetchOnMount)}function zv(e,t,n){if(t.enabled!==!1){var r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&Wb(e,t)}return!1}function Rx(e,t,n,r){return n.enabled!==!1&&(e!==t||r.enabled===!1)&&(!n.suspense||e.state.status!=="error")&&Wb(e,n)}function Wb(e,t){return e.isStaleByTime(t.staleTime)}var VN=sc.unstable_batchedUpdates;Vn.setBatchNotifyFunction(VN);var WN=console;AN(WN);var _x=Ct.createContext(void 0),nT=Ct.createContext(!1);function rT(e){return e&&typeof window<"u"?(window.ReactQueryClientContext||(window.ReactQueryClientContext=_x),window.ReactQueryClientContext):_x}var qN=function(){var t=Ct.useContext(rT(Ct.useContext(nT)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Ude=function(t){var n=t.client,r=t.contextSharing,o=r===void 0?!1:r,i=t.children;Ct.useEffect(function(){return n.mount(),function(){n.unmount()}},[n]);var s=rT(o);return Ct.createElement(nT.Provider,{value:o},Ct.createElement(s.Provider,{value:n},i))};function KN(){var e=!1;return{clearReset:function(){e=!1},reset:function(){e=!0},isReset:function(){return e}}}var XN=Ct.createContext(KN()),QN=function(){return Ct.useContext(XN)};function JN(e,t,n){return typeof t=="function"?t.apply(void 0,n):typeof t=="boolean"?t:!!e}function ZN(e,t){var n=Ct.useRef(!1),r=Ct.useState(0),o=r[1],i=qN(),s=QN(),l=i.defaultQueryObserverOptions(e);l.optimisticResults=!0,l.onError&&(l.onError=Vn.batchCalls(l.onError)),l.onSuccess&&(l.onSuccess=Vn.batchCalls(l.onSuccess)),l.onSettled&&(l.onSettled=Vn.batchCalls(l.onSettled)),l.suspense&&(typeof l.staleTime!="number"&&(l.staleTime=1e3),l.cacheTime===0&&(l.cacheTime=1)),(l.suspense||l.useErrorBoundary)&&(s.isReset()||(l.retryOnMount=!1));var u=Ct.useState(function(){return new t(i,l)}),c=u[0],f=c.getOptimisticResult(l);if(Ct.useEffect(function(){n.current=!0,s.clearReset();var p=c.subscribe(Vn.batchCalls(function(){n.current&&o(function(h){return h+1})}));return c.updateResult(),function(){n.current=!1,p()}},[s,c]),Ct.useEffect(function(){c.setOptions(l,{listeners:!1})},[l,c]),l.suspense&&f.isLoading)throw c.fetchOptimistic(l).then(function(p){var h=p.data;l.onSuccess==null||l.onSuccess(h),l.onSettled==null||l.onSettled(h,null)}).catch(function(p){s.clearReset(),l.onError==null||l.onError(p),l.onSettled==null||l.onSettled(void 0,p)});if(f.isError&&!s.isReset()&&!f.isFetching&&JN(l.suspense,l.useErrorBoundary,[f.error,c.getCurrentQuery()]))throw f.error;return l.notifyOnChangeProps==="tracked"&&(f=c.trackResult(f,l)),f}function qb(e,t,n){var r=qf(e,t,n);return ZN(r,zN)}/**
9
+ */var vN=Ct,bN=Symbol.for("react.element"),yN=Symbol.for("react.fragment"),CN=Object.prototype.hasOwnProperty,wN=vN.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,xN={key:!0,ref:!0,__self:!0,__source:!0};function XP(e,t,n){var r,o={},i=null,s=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)CN.call(t,r)&&!xN.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:bN,type:e,key:i,ref:s,props:o,_owner:wN.current}}sh.Fragment=yN;sh.jsx=XP;sh.jsxs=XP;KP.exports=sh;var R=KP.exports;function fp(e,t){return fp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},fp(e,t)}function Na(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,fp(e,t)}var id=function(){function e(){this.listeners=[]}var t=e.prototype;return t.subscribe=function(r){var o=this,i=r||function(){};return this.listeners.push(i),this.onSubscribe(),function(){o.listeners=o.listeners.filter(function(s){return s!==i}),o.onUnsubscribe()}},t.hasListeners=function(){return this.listeners.length>0},t.onSubscribe=function(){},t.onUnsubscribe=function(){},e}();function y(){return y=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},y.apply(null,arguments)}const SN=Object.freeze(Object.defineProperty({__proto__:null,get default(){return y}},Symbol.toStringTag,{value:"Module"}));var pp=typeof window>"u";function $r(){}function EN(e,t){return typeof e=="function"?e(t):e}function Uv(e){return typeof e=="number"&&e>=0&&e!==1/0}function hp(e){return Array.isArray(e)?e:[e]}function QP(e,t){return Math.max(e+(t||0)-Date.now(),0)}function qf(e,t,n){return ah(e)?typeof t=="function"?y({},n,{queryKey:e,queryFn:t}):y({},t,{queryKey:e}):e}function xs(e,t,n){return ah(e)?[y({},t,{queryKey:e}),n]:[e||{},t]}function PN(e,t){if(e===!0&&t===!0||e==null&&t==null)return"all";if(e===!1&&t===!1)return"none";var n=e??!t;return n?"active":"inactive"}function xx(e,t){var n=e.active,r=e.exact,o=e.fetching,i=e.inactive,s=e.predicate,l=e.queryKey,u=e.stale;if(ah(l)){if(r){if(t.queryHash!==Vb(l,t.options))return!1}else if(!gp(t.queryKey,l))return!1}var c=PN(n,i);if(c==="none")return!1;if(c!=="all"){var f=t.isActive();if(c==="active"&&!f||c==="inactive"&&f)return!1}return!(typeof u=="boolean"&&t.isStale()!==u||typeof o=="boolean"&&t.isFetching()!==o||s&&!s(t))}function Sx(e,t){var n=e.exact,r=e.fetching,o=e.predicate,i=e.mutationKey;if(ah(i)){if(!t.options.mutationKey)return!1;if(n){if(ma(t.options.mutationKey)!==ma(i))return!1}else if(!gp(t.options.mutationKey,i))return!1}return!(typeof r=="boolean"&&t.state.status==="loading"!==r||o&&!o(t))}function Vb(e,t){var n=(t==null?void 0:t.queryKeyHashFn)||ma;return n(e)}function ma(e){var t=hp(e);return TN(t)}function TN(e){return JSON.stringify(e,function(t,n){return jv(n)?Object.keys(n).sort().reduce(function(r,o){return r[o]=n[o],r},{}):n})}function gp(e,t){return JP(hp(e),hp(t))}function JP(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(function(n){return!JP(e[n],t[n])}):!1}function mp(e,t){if(e===t)return e;var n=Array.isArray(e)&&Array.isArray(t);if(n||jv(e)&&jv(t)){for(var r=n?e.length:Object.keys(e).length,o=n?t:Object.keys(t),i=o.length,s=n?[]:{},l=0,u=0;u<i;u++){var c=n?u:o[u];s[c]=mp(e[c],t[c]),s[c]===e[c]&&l++}return r===i&&l===r?e:s}return t}function IN(e,t){if(e&&!t||t&&!e)return!1;for(var n in e)if(e[n]!==t[n])return!1;return!0}function jv(e){if(!Ex(e))return!1;var t=e.constructor;if(typeof t>"u")return!0;var n=t.prototype;return!(!Ex(n)||!n.hasOwnProperty("isPrototypeOf"))}function Ex(e){return Object.prototype.toString.call(e)==="[object Object]"}function ah(e){return typeof e=="string"||Array.isArray(e)}function RN(e){return new Promise(function(t){setTimeout(t,e)})}function Px(e){Promise.resolve().then(e).catch(function(t){return setTimeout(function(){throw t})})}function ZP(){if(typeof AbortController=="function")return new AbortController}var _N=function(e){Na(t,e);function t(){var r;return r=e.call(this)||this,r.setup=function(o){var i;if(!pp&&((i=window)!=null&&i.addEventListener)){var s=function(){return o()};return window.addEventListener("visibilitychange",s,!1),window.addEventListener("focus",s,!1),function(){window.removeEventListener("visibilitychange",s),window.removeEventListener("focus",s)}}},r}var n=t.prototype;return n.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},n.onUnsubscribe=function(){if(!this.hasListeners()){var o;(o=this.cleanup)==null||o.call(this),this.cleanup=void 0}},n.setEventListener=function(o){var i,s=this;this.setup=o,(i=this.cleanup)==null||i.call(this),this.cleanup=o(function(l){typeof l=="boolean"?s.setFocused(l):s.onFocus()})},n.setFocused=function(o){this.focused=o,o&&this.onFocus()},n.onFocus=function(){this.listeners.forEach(function(o){o()})},n.isFocused=function(){return typeof this.focused=="boolean"?this.focused:typeof document>"u"?!0:[void 0,"visible","prerender"].includes(document.visibilityState)},t}(id),vc=new _N,ON=function(e){Na(t,e);function t(){var r;return r=e.call(this)||this,r.setup=function(o){var i;if(!pp&&((i=window)!=null&&i.addEventListener)){var s=function(){return o()};return window.addEventListener("online",s,!1),window.addEventListener("offline",s,!1),function(){window.removeEventListener("online",s),window.removeEventListener("offline",s)}}},r}var n=t.prototype;return n.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},n.onUnsubscribe=function(){if(!this.hasListeners()){var o;(o=this.cleanup)==null||o.call(this),this.cleanup=void 0}},n.setEventListener=function(o){var i,s=this;this.setup=o,(i=this.cleanup)==null||i.call(this),this.cleanup=o(function(l){typeof l=="boolean"?s.setOnline(l):s.onOnline()})},n.setOnline=function(o){this.online=o,o&&this.onOnline()},n.onOnline=function(){this.listeners.forEach(function(o){o()})},n.isOnline=function(){return typeof this.online=="boolean"?this.online:typeof navigator>"u"||typeof navigator.onLine>"u"?!0:navigator.onLine},t}(id),Kf=new ON;function MN(e){return Math.min(1e3*Math.pow(2,e),3e4)}function vp(e){return typeof(e==null?void 0:e.cancel)=="function"}var YP=function(t){this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent};function Xf(e){return e instanceof YP}var eT=function(t){var n=this,r=!1,o,i,s,l;this.abort=t.abort,this.cancel=function(h){return o==null?void 0:o(h)},this.cancelRetry=function(){r=!0},this.continueRetry=function(){r=!1},this.continue=function(){return i==null?void 0:i()},this.failureCount=0,this.isPaused=!1,this.isResolved=!1,this.isTransportCancelable=!1,this.promise=new Promise(function(h,m){s=h,l=m});var u=function(m){n.isResolved||(n.isResolved=!0,t.onSuccess==null||t.onSuccess(m),i==null||i(),s(m))},c=function(m){n.isResolved||(n.isResolved=!0,t.onError==null||t.onError(m),i==null||i(),l(m))},f=function(){return new Promise(function(m){i=m,n.isPaused=!0,t.onPause==null||t.onPause()}).then(function(){i=void 0,n.isPaused=!1,t.onContinue==null||t.onContinue()})},p=function h(){if(!n.isResolved){var m;try{m=t.fn()}catch(C){m=Promise.reject(C)}o=function(b){if(!n.isResolved&&(c(new YP(b)),n.abort==null||n.abort(),vp(m)))try{m.cancel()}catch{}},n.isTransportCancelable=vp(m),Promise.resolve(m).then(u).catch(function(C){var b,S;if(!n.isResolved){var T=(b=t.retry)!=null?b:3,P=(S=t.retryDelay)!=null?S:MN,E=typeof P=="function"?P(n.failureCount,C):P,w=T===!0||typeof T=="number"&&n.failureCount<T||typeof T=="function"&&T(n.failureCount,C);if(r||!w){c(C);return}n.failureCount++,t.onFail==null||t.onFail(n.failureCount,C),RN(E).then(function(){if(!vc.isFocused()||!Kf.isOnline())return f()}).then(function(){r?c(C):h()})}})}};p()},LN=function(){function e(){this.queue=[],this.transactions=0,this.notifyFn=function(n){n()},this.batchNotifyFn=function(n){n()}}var t=e.prototype;return t.batch=function(r){var o;this.transactions++;try{o=r()}finally{this.transactions--,this.transactions||this.flush()}return o},t.schedule=function(r){var o=this;this.transactions?this.queue.push(r):Px(function(){o.notifyFn(r)})},t.batchCalls=function(r){var o=this;return function(){for(var i=arguments.length,s=new Array(i),l=0;l<i;l++)s[l]=arguments[l];o.schedule(function(){r.apply(void 0,s)})}},t.flush=function(){var r=this,o=this.queue;this.queue=[],o.length&&Px(function(){r.batchNotifyFn(function(){o.forEach(function(i){r.notifyFn(i)})})})},t.setNotifyFunction=function(r){this.notifyFn=r},t.setBatchNotifyFunction=function(r){this.batchNotifyFn=r},e}(),Vn=new LN,tT=console;function bp(){return tT}function AN(e){tT=e}var DN=function(){function e(n){this.abortSignalConsumed=!1,this.hadObservers=!1,this.defaultOptions=n.defaultOptions,this.setOptions(n.options),this.observers=[],this.cache=n.cache,this.queryKey=n.queryKey,this.queryHash=n.queryHash,this.initialState=n.state||this.getDefaultState(this.options),this.state=this.initialState,this.meta=n.meta,this.scheduleGc()}var t=e.prototype;return t.setOptions=function(r){var o;this.options=y({},this.defaultOptions,r),this.meta=r==null?void 0:r.meta,this.cacheTime=Math.max(this.cacheTime||0,(o=this.options.cacheTime)!=null?o:5*60*1e3)},t.setDefaultOptions=function(r){this.defaultOptions=r},t.scheduleGc=function(){var r=this;this.clearGcTimeout(),Uv(this.cacheTime)&&(this.gcTimeout=setTimeout(function(){r.optionalRemove()},this.cacheTime))},t.clearGcTimeout=function(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)},t.optionalRemove=function(){this.observers.length||(this.state.isFetching?this.hadObservers&&this.scheduleGc():this.cache.remove(this))},t.setData=function(r,o){var i,s,l=this.state.data,u=EN(r,l);return(i=(s=this.options).isDataEqual)!=null&&i.call(s,l,u)?u=l:this.options.structuralSharing!==!1&&(u=mp(l,u)),this.dispatch({data:u,type:"success",dataUpdatedAt:o==null?void 0:o.updatedAt}),u},t.setState=function(r,o){this.dispatch({type:"setState",state:r,setStateOptions:o})},t.cancel=function(r){var o,i=this.promise;return(o=this.retryer)==null||o.cancel(r),i?i.then($r).catch($r):Promise.resolve()},t.destroy=function(){this.clearGcTimeout(),this.cancel({silent:!0})},t.reset=function(){this.destroy(),this.setState(this.initialState)},t.isActive=function(){return this.observers.some(function(r){return r.options.enabled!==!1})},t.isFetching=function(){return this.state.isFetching},t.isStale=function(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(function(r){return r.getCurrentResult().isStale})},t.isStaleByTime=function(r){return r===void 0&&(r=0),this.state.isInvalidated||!this.state.dataUpdatedAt||!QP(this.state.dataUpdatedAt,r)},t.onFocus=function(){var r,o=this.observers.find(function(i){return i.shouldFetchOnWindowFocus()});o&&o.refetch(),(r=this.retryer)==null||r.continue()},t.onOnline=function(){var r,o=this.observers.find(function(i){return i.shouldFetchOnReconnect()});o&&o.refetch(),(r=this.retryer)==null||r.continue()},t.addObserver=function(r){this.observers.indexOf(r)===-1&&(this.observers.push(r),this.hadObservers=!0,this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:r}))},t.removeObserver=function(r){this.observers.indexOf(r)!==-1&&(this.observers=this.observers.filter(function(o){return o!==r}),this.observers.length||(this.retryer&&(this.retryer.isTransportCancelable||this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.cacheTime?this.scheduleGc():this.cache.remove(this)),this.cache.notify({type:"observerRemoved",query:this,observer:r}))},t.getObserversCount=function(){return this.observers.length},t.invalidate=function(){this.state.isInvalidated||this.dispatch({type:"invalidate"})},t.fetch=function(r,o){var i=this,s,l,u;if(this.state.isFetching){if(this.state.dataUpdatedAt&&(o!=null&&o.cancelRefetch))this.cancel({silent:!0});else if(this.promise){var c;return(c=this.retryer)==null||c.continueRetry(),this.promise}}if(r&&this.setOptions(r),!this.options.queryFn){var f=this.observers.find(function(P){return P.options.queryFn});f&&this.setOptions(f.options)}var p=hp(this.queryKey),h=ZP(),m={queryKey:p,pageParam:void 0,meta:this.meta};Object.defineProperty(m,"signal",{enumerable:!0,get:function(){if(h)return i.abortSignalConsumed=!0,h.signal}});var C=function(){return i.options.queryFn?(i.abortSignalConsumed=!1,i.options.queryFn(m)):Promise.reject("Missing queryFn")},b={fetchOptions:o,options:this.options,queryKey:p,state:this.state,fetchFn:C,meta:this.meta};if((s=this.options.behavior)!=null&&s.onFetch){var S;(S=this.options.behavior)==null||S.onFetch(b)}if(this.revertState=this.state,!this.state.isFetching||this.state.fetchMeta!==((l=b.fetchOptions)==null?void 0:l.meta)){var T;this.dispatch({type:"fetch",meta:(T=b.fetchOptions)==null?void 0:T.meta})}return this.retryer=new eT({fn:b.fetchFn,abort:h==null||(u=h.abort)==null?void 0:u.bind(h),onSuccess:function(E){i.setData(E),i.cache.config.onSuccess==null||i.cache.config.onSuccess(E,i),i.cacheTime===0&&i.optionalRemove()},onError:function(E){Xf(E)&&E.silent||i.dispatch({type:"error",error:E}),Xf(E)||(i.cache.config.onError==null||i.cache.config.onError(E,i),bp().error(E)),i.cacheTime===0&&i.optionalRemove()},onFail:function(){i.dispatch({type:"failed"})},onPause:function(){i.dispatch({type:"pause"})},onContinue:function(){i.dispatch({type:"continue"})},retry:b.options.retry,retryDelay:b.options.retryDelay}),this.promise=this.retryer.promise,this.promise},t.dispatch=function(r){var o=this;this.state=this.reducer(this.state,r),Vn.batch(function(){o.observers.forEach(function(i){i.onQueryUpdate(r)}),o.cache.notify({query:o,type:"queryUpdated",action:r})})},t.getDefaultState=function(r){var o=typeof r.initialData=="function"?r.initialData():r.initialData,i=typeof r.initialData<"u",s=i?typeof r.initialDataUpdatedAt=="function"?r.initialDataUpdatedAt():r.initialDataUpdatedAt:0,l=typeof o<"u";return{data:o,dataUpdateCount:0,dataUpdatedAt:l?s??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchMeta:null,isFetching:!1,isInvalidated:!1,isPaused:!1,status:l?"success":"idle"}},t.reducer=function(r,o){var i,s;switch(o.type){case"failed":return y({},r,{fetchFailureCount:r.fetchFailureCount+1});case"pause":return y({},r,{isPaused:!0});case"continue":return y({},r,{isPaused:!1});case"fetch":return y({},r,{fetchFailureCount:0,fetchMeta:(i=o.meta)!=null?i:null,isFetching:!0,isPaused:!1},!r.dataUpdatedAt&&{error:null,status:"loading"});case"success":return y({},r,{data:o.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:(s=o.dataUpdatedAt)!=null?s:Date.now(),error:null,fetchFailureCount:0,isFetching:!1,isInvalidated:!1,isPaused:!1,status:"success"});case"error":var l=o.error;return Xf(l)&&l.revert&&this.revertState?y({},this.revertState):y({},r,{error:l,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,isFetching:!1,isPaused:!1,status:"error"});case"invalidate":return y({},r,{isInvalidated:!0});case"setState":return y({},r,o.state);default:return r}},e}(),$N=function(e){Na(t,e);function t(r){var o;return o=e.call(this)||this,o.config=r||{},o.queries=[],o.queriesMap={},o}var n=t.prototype;return n.build=function(o,i,s){var l,u=i.queryKey,c=(l=i.queryHash)!=null?l:Vb(u,i),f=this.get(c);return f||(f=new DN({cache:this,queryKey:u,queryHash:c,options:o.defaultQueryOptions(i),state:s,defaultOptions:o.getQueryDefaults(u),meta:i.meta}),this.add(f)),f},n.add=function(o){this.queriesMap[o.queryHash]||(this.queriesMap[o.queryHash]=o,this.queries.push(o),this.notify({type:"queryAdded",query:o}))},n.remove=function(o){var i=this.queriesMap[o.queryHash];i&&(o.destroy(),this.queries=this.queries.filter(function(s){return s!==o}),i===o&&delete this.queriesMap[o.queryHash],this.notify({type:"queryRemoved",query:o}))},n.clear=function(){var o=this;Vn.batch(function(){o.queries.forEach(function(i){o.remove(i)})})},n.get=function(o){return this.queriesMap[o]},n.getAll=function(){return this.queries},n.find=function(o,i){var s=xs(o,i),l=s[0];return typeof l.exact>"u"&&(l.exact=!0),this.queries.find(function(u){return xx(l,u)})},n.findAll=function(o,i){var s=xs(o,i),l=s[0];return Object.keys(l).length>0?this.queries.filter(function(u){return xx(l,u)}):this.queries},n.notify=function(o){var i=this;Vn.batch(function(){i.listeners.forEach(function(s){s(o)})})},n.onFocus=function(){var o=this;Vn.batch(function(){o.queries.forEach(function(i){i.onFocus()})})},n.onOnline=function(){var o=this;Vn.batch(function(){o.queries.forEach(function(i){i.onOnline()})})},t}(id),kN=function(){function e(n){this.options=y({},n.defaultOptions,n.options),this.mutationId=n.mutationId,this.mutationCache=n.mutationCache,this.observers=[],this.state=n.state||FN(),this.meta=n.meta}var t=e.prototype;return t.setState=function(r){this.dispatch({type:"setState",state:r})},t.addObserver=function(r){this.observers.indexOf(r)===-1&&this.observers.push(r)},t.removeObserver=function(r){this.observers=this.observers.filter(function(o){return o!==r})},t.cancel=function(){return this.retryer?(this.retryer.cancel(),this.retryer.promise.then($r).catch($r)):Promise.resolve()},t.continue=function(){return this.retryer?(this.retryer.continue(),this.retryer.promise):this.execute()},t.execute=function(){var r=this,o,i=this.state.status==="loading",s=Promise.resolve();return i||(this.dispatch({type:"loading",variables:this.options.variables}),s=s.then(function(){r.mutationCache.config.onMutate==null||r.mutationCache.config.onMutate(r.state.variables,r)}).then(function(){return r.options.onMutate==null?void 0:r.options.onMutate(r.state.variables)}).then(function(l){l!==r.state.context&&r.dispatch({type:"loading",context:l,variables:r.state.variables})})),s.then(function(){return r.executeMutation()}).then(function(l){o=l,r.mutationCache.config.onSuccess==null||r.mutationCache.config.onSuccess(o,r.state.variables,r.state.context,r)}).then(function(){return r.options.onSuccess==null?void 0:r.options.onSuccess(o,r.state.variables,r.state.context)}).then(function(){return r.options.onSettled==null?void 0:r.options.onSettled(o,null,r.state.variables,r.state.context)}).then(function(){return r.dispatch({type:"success",data:o}),o}).catch(function(l){return r.mutationCache.config.onError==null||r.mutationCache.config.onError(l,r.state.variables,r.state.context,r),bp().error(l),Promise.resolve().then(function(){return r.options.onError==null?void 0:r.options.onError(l,r.state.variables,r.state.context)}).then(function(){return r.options.onSettled==null?void 0:r.options.onSettled(void 0,l,r.state.variables,r.state.context)}).then(function(){throw r.dispatch({type:"error",error:l}),l})})},t.executeMutation=function(){var r=this,o;return this.retryer=new eT({fn:function(){return r.options.mutationFn?r.options.mutationFn(r.state.variables):Promise.reject("No mutationFn found")},onFail:function(){r.dispatch({type:"failed"})},onPause:function(){r.dispatch({type:"pause"})},onContinue:function(){r.dispatch({type:"continue"})},retry:(o=this.options.retry)!=null?o:0,retryDelay:this.options.retryDelay}),this.retryer.promise},t.dispatch=function(r){var o=this;this.state=NN(this.state,r),Vn.batch(function(){o.observers.forEach(function(i){i.onMutationUpdate(r)}),o.mutationCache.notify(o)})},e}();function FN(){return{context:void 0,data:void 0,error:null,failureCount:0,isPaused:!1,status:"idle",variables:void 0}}function NN(e,t){switch(t.type){case"failed":return y({},e,{failureCount:e.failureCount+1});case"pause":return y({},e,{isPaused:!0});case"continue":return y({},e,{isPaused:!1});case"loading":return y({},e,{context:t.context,data:void 0,error:null,isPaused:!1,status:"loading",variables:t.variables});case"success":return y({},e,{data:t.data,error:null,status:"success",isPaused:!1});case"error":return y({},e,{data:void 0,error:t.error,failureCount:e.failureCount+1,isPaused:!1,status:"error"});case"setState":return y({},e,t.state);default:return e}}var HN=function(e){Na(t,e);function t(r){var o;return o=e.call(this)||this,o.config=r||{},o.mutations=[],o.mutationId=0,o}var n=t.prototype;return n.build=function(o,i,s){var l=new kN({mutationCache:this,mutationId:++this.mutationId,options:o.defaultMutationOptions(i),state:s,defaultOptions:i.mutationKey?o.getMutationDefaults(i.mutationKey):void 0,meta:i.meta});return this.add(l),l},n.add=function(o){this.mutations.push(o),this.notify(o)},n.remove=function(o){this.mutations=this.mutations.filter(function(i){return i!==o}),o.cancel(),this.notify(o)},n.clear=function(){var o=this;Vn.batch(function(){o.mutations.forEach(function(i){o.remove(i)})})},n.getAll=function(){return this.mutations},n.find=function(o){return typeof o.exact>"u"&&(o.exact=!0),this.mutations.find(function(i){return Sx(o,i)})},n.findAll=function(o){return this.mutations.filter(function(i){return Sx(o,i)})},n.notify=function(o){var i=this;Vn.batch(function(){i.listeners.forEach(function(s){s(o)})})},n.onFocus=function(){this.resumePausedMutations()},n.onOnline=function(){this.resumePausedMutations()},n.resumePausedMutations=function(){var o=this.mutations.filter(function(i){return i.state.isPaused});return Vn.batch(function(){return o.reduce(function(i,s){return i.then(function(){return s.continue().catch($r)})},Promise.resolve())})},t}(id);function BN(){return{onFetch:function(t){t.fetchFn=function(){var n,r,o,i,s,l,u=(n=t.fetchOptions)==null||(r=n.meta)==null?void 0:r.refetchPage,c=(o=t.fetchOptions)==null||(i=o.meta)==null?void 0:i.fetchMore,f=c==null?void 0:c.pageParam,p=(c==null?void 0:c.direction)==="forward",h=(c==null?void 0:c.direction)==="backward",m=((s=t.state.data)==null?void 0:s.pages)||[],C=((l=t.state.data)==null?void 0:l.pageParams)||[],b=ZP(),S=b==null?void 0:b.signal,T=C,P=!1,E=t.options.queryFn||function(){return Promise.reject("Missing queryFn")},w=function(k,$,U,V){return T=V?[$].concat(T):[].concat(T,[$]),V?[U].concat(k):[].concat(k,[U])},M=function(k,$,U,V){if(P)return Promise.reject("Cancelled");if(typeof U>"u"&&!$&&k.length)return Promise.resolve(k);var N={queryKey:t.queryKey,signal:S,pageParam:U,meta:t.meta},j=E(N),W=Promise.resolve(j).then(function(ie){return w(k,U,ie,V)});if(vp(j)){var oe=W;oe.cancel=j.cancel}return W},I;if(!m.length)I=M([]);else if(p){var x=typeof f<"u",_=x?f:Tx(t.options,m);I=M(m,x,_)}else if(h){var L=typeof f<"u",A=L?f:UN(t.options,m);I=M(m,L,A,!0)}else(function(){T=[];var B=typeof t.options.getNextPageParam>"u",k=u&&m[0]?u(m[0],0,m):!0;I=k?M([],B,C[0]):Promise.resolve(w([],C[0],m[0]));for(var $=function(N){I=I.then(function(j){var W=u&&m[N]?u(m[N],N,m):!0;if(W){var oe=B?C[N]:Tx(t.options,j);return M(j,B,oe)}return Promise.resolve(w(j,C[N],m[N]))})},U=1;U<m.length;U++)$(U)})();var D=I.then(function(B){return{pages:B,pageParams:T}}),H=D;return H.cancel=function(){P=!0,b==null||b.abort(),vp(I)&&I.cancel()},D}}}}function Tx(e,t){return e.getNextPageParam==null?void 0:e.getNextPageParam(t[t.length-1],t)}function UN(e,t){return e.getPreviousPageParam==null?void 0:e.getPreviousPageParam(t[0],t)}var jN=function(){function e(n){n===void 0&&(n={}),this.queryCache=n.queryCache||new $N,this.mutationCache=n.mutationCache||new HN,this.defaultOptions=n.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[]}var t=e.prototype;return t.mount=function(){var r=this;this.unsubscribeFocus=vc.subscribe(function(){vc.isFocused()&&Kf.isOnline()&&(r.mutationCache.onFocus(),r.queryCache.onFocus())}),this.unsubscribeOnline=Kf.subscribe(function(){vc.isFocused()&&Kf.isOnline()&&(r.mutationCache.onOnline(),r.queryCache.onOnline())})},t.unmount=function(){var r,o;(r=this.unsubscribeFocus)==null||r.call(this),(o=this.unsubscribeOnline)==null||o.call(this)},t.isFetching=function(r,o){var i=xs(r,o),s=i[0];return s.fetching=!0,this.queryCache.findAll(s).length},t.isMutating=function(r){return this.mutationCache.findAll(y({},r,{fetching:!0})).length},t.getQueryData=function(r,o){var i;return(i=this.queryCache.find(r,o))==null?void 0:i.state.data},t.getQueriesData=function(r){return this.getQueryCache().findAll(r).map(function(o){var i=o.queryKey,s=o.state,l=s.data;return[i,l]})},t.setQueryData=function(r,o,i){var s=qf(r),l=this.defaultQueryOptions(s);return this.queryCache.build(this,l).setData(o,i)},t.setQueriesData=function(r,o,i){var s=this;return Vn.batch(function(){return s.getQueryCache().findAll(r).map(function(l){var u=l.queryKey;return[u,s.setQueryData(u,o,i)]})})},t.getQueryState=function(r,o){var i;return(i=this.queryCache.find(r,o))==null?void 0:i.state},t.removeQueries=function(r,o){var i=xs(r,o),s=i[0],l=this.queryCache;Vn.batch(function(){l.findAll(s).forEach(function(u){l.remove(u)})})},t.resetQueries=function(r,o,i){var s=this,l=xs(r,o,i),u=l[0],c=l[1],f=this.queryCache,p=y({},u,{active:!0});return Vn.batch(function(){return f.findAll(u).forEach(function(h){h.reset()}),s.refetchQueries(p,c)})},t.cancelQueries=function(r,o,i){var s=this,l=xs(r,o,i),u=l[0],c=l[1],f=c===void 0?{}:c;typeof f.revert>"u"&&(f.revert=!0);var p=Vn.batch(function(){return s.queryCache.findAll(u).map(function(h){return h.cancel(f)})});return Promise.all(p).then($r).catch($r)},t.invalidateQueries=function(r,o,i){var s,l,u,c=this,f=xs(r,o,i),p=f[0],h=f[1],m=y({},p,{active:(s=(l=p.refetchActive)!=null?l:p.active)!=null?s:!0,inactive:(u=p.refetchInactive)!=null?u:!1});return Vn.batch(function(){return c.queryCache.findAll(p).forEach(function(C){C.invalidate()}),c.refetchQueries(m,h)})},t.refetchQueries=function(r,o,i){var s=this,l=xs(r,o,i),u=l[0],c=l[1],f=Vn.batch(function(){return s.queryCache.findAll(u).map(function(h){return h.fetch(void 0,y({},c,{meta:{refetchPage:u==null?void 0:u.refetchPage}}))})}),p=Promise.all(f).then($r);return c!=null&&c.throwOnError||(p=p.catch($r)),p},t.fetchQuery=function(r,o,i){var s=qf(r,o,i),l=this.defaultQueryOptions(s);typeof l.retry>"u"&&(l.retry=!1);var u=this.queryCache.build(this,l);return u.isStaleByTime(l.staleTime)?u.fetch(l):Promise.resolve(u.state.data)},t.prefetchQuery=function(r,o,i){return this.fetchQuery(r,o,i).then($r).catch($r)},t.fetchInfiniteQuery=function(r,o,i){var s=qf(r,o,i);return s.behavior=BN(),this.fetchQuery(s)},t.prefetchInfiniteQuery=function(r,o,i){return this.fetchInfiniteQuery(r,o,i).then($r).catch($r)},t.cancelMutations=function(){var r=this,o=Vn.batch(function(){return r.mutationCache.getAll().map(function(i){return i.cancel()})});return Promise.all(o).then($r).catch($r)},t.resumePausedMutations=function(){return this.getMutationCache().resumePausedMutations()},t.executeMutation=function(r){return this.mutationCache.build(this,r).execute()},t.getQueryCache=function(){return this.queryCache},t.getMutationCache=function(){return this.mutationCache},t.getDefaultOptions=function(){return this.defaultOptions},t.setDefaultOptions=function(r){this.defaultOptions=r},t.setQueryDefaults=function(r,o){var i=this.queryDefaults.find(function(s){return ma(r)===ma(s.queryKey)});i?i.defaultOptions=o:this.queryDefaults.push({queryKey:r,defaultOptions:o})},t.getQueryDefaults=function(r){var o;return r?(o=this.queryDefaults.find(function(i){return gp(r,i.queryKey)}))==null?void 0:o.defaultOptions:void 0},t.setMutationDefaults=function(r,o){var i=this.mutationDefaults.find(function(s){return ma(r)===ma(s.mutationKey)});i?i.defaultOptions=o:this.mutationDefaults.push({mutationKey:r,defaultOptions:o})},t.getMutationDefaults=function(r){var o;return r?(o=this.mutationDefaults.find(function(i){return gp(r,i.mutationKey)}))==null?void 0:o.defaultOptions:void 0},t.defaultQueryOptions=function(r){if(r!=null&&r._defaulted)return r;var o=y({},this.defaultOptions.queries,this.getQueryDefaults(r==null?void 0:r.queryKey),r,{_defaulted:!0});return!o.queryHash&&o.queryKey&&(o.queryHash=Vb(o.queryKey,o)),o},t.defaultQueryObserverOptions=function(r){return this.defaultQueryOptions(r)},t.defaultMutationOptions=function(r){return r!=null&&r._defaulted?r:y({},this.defaultOptions.mutations,this.getMutationDefaults(r==null?void 0:r.mutationKey),r,{_defaulted:!0})},t.clear=function(){this.queryCache.clear(),this.mutationCache.clear()},e}(),zN=function(e){Na(t,e);function t(r,o){var i;return i=e.call(this)||this,i.client=r,i.options=o,i.trackedProps=[],i.selectError=null,i.bindMethods(),i.setOptions(o),i}var n=t.prototype;return n.bindMethods=function(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)},n.onSubscribe=function(){this.listeners.length===1&&(this.currentQuery.addObserver(this),Ix(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())},n.onUnsubscribe=function(){this.listeners.length||this.destroy()},n.shouldFetchOnReconnect=function(){return zv(this.currentQuery,this.options,this.options.refetchOnReconnect)},n.shouldFetchOnWindowFocus=function(){return zv(this.currentQuery,this.options,this.options.refetchOnWindowFocus)},n.destroy=function(){this.listeners=[],this.clearTimers(),this.currentQuery.removeObserver(this)},n.setOptions=function(o,i){var s=this.options,l=this.currentQuery;if(this.options=this.client.defaultQueryObserverOptions(o),typeof this.options.enabled<"u"&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=s.queryKey),this.updateQuery();var u=this.hasListeners();u&&Rx(this.currentQuery,l,this.options,s)&&this.executeFetch(),this.updateResult(i),u&&(this.currentQuery!==l||this.options.enabled!==s.enabled||this.options.staleTime!==s.staleTime)&&this.updateStaleTimeout();var c=this.computeRefetchInterval();u&&(this.currentQuery!==l||this.options.enabled!==s.enabled||c!==this.currentRefetchInterval)&&this.updateRefetchInterval(c)},n.getOptimisticResult=function(o){var i=this.client.defaultQueryObserverOptions(o),s=this.client.getQueryCache().build(this.client,i);return this.createResult(s,i)},n.getCurrentResult=function(){return this.currentResult},n.trackResult=function(o,i){var s=this,l={},u=function(f){s.trackedProps.includes(f)||s.trackedProps.push(f)};return Object.keys(o).forEach(function(c){Object.defineProperty(l,c,{configurable:!1,enumerable:!0,get:function(){return u(c),o[c]}})}),(i.useErrorBoundary||i.suspense)&&u("error"),l},n.getNextResult=function(o){var i=this;return new Promise(function(s,l){var u=i.subscribe(function(c){c.isFetching||(u(),c.isError&&(o!=null&&o.throwOnError)?l(c.error):s(c))})})},n.getCurrentQuery=function(){return this.currentQuery},n.remove=function(){this.client.getQueryCache().remove(this.currentQuery)},n.refetch=function(o){return this.fetch(y({},o,{meta:{refetchPage:o==null?void 0:o.refetchPage}}))},n.fetchOptimistic=function(o){var i=this,s=this.client.defaultQueryObserverOptions(o),l=this.client.getQueryCache().build(this.client,s);return l.fetch().then(function(){return i.createResult(l,s)})},n.fetch=function(o){var i=this;return this.executeFetch(o).then(function(){return i.updateResult(),i.currentResult})},n.executeFetch=function(o){this.updateQuery();var i=this.currentQuery.fetch(this.options,o);return o!=null&&o.throwOnError||(i=i.catch($r)),i},n.updateStaleTimeout=function(){var o=this;if(this.clearStaleTimeout(),!(pp||this.currentResult.isStale||!Uv(this.options.staleTime))){var i=QP(this.currentResult.dataUpdatedAt,this.options.staleTime),s=i+1;this.staleTimeoutId=setTimeout(function(){o.currentResult.isStale||o.updateResult()},s)}},n.computeRefetchInterval=function(){var o;return typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.currentResult.data,this.currentQuery):(o=this.options.refetchInterval)!=null?o:!1},n.updateRefetchInterval=function(o){var i=this;this.clearRefetchInterval(),this.currentRefetchInterval=o,!(pp||this.options.enabled===!1||!Uv(this.currentRefetchInterval)||this.currentRefetchInterval===0)&&(this.refetchIntervalId=setInterval(function(){(i.options.refetchIntervalInBackground||vc.isFocused())&&i.executeFetch()},this.currentRefetchInterval))},n.updateTimers=function(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())},n.clearTimers=function(){this.clearStaleTimeout(),this.clearRefetchInterval()},n.clearStaleTimeout=function(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)},n.clearRefetchInterval=function(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)},n.createResult=function(o,i){var s=this.currentQuery,l=this.options,u=this.currentResult,c=this.currentResultState,f=this.currentResultOptions,p=o!==s,h=p?o.state:this.currentQueryInitialState,m=p?this.currentResult:this.previousQueryResult,C=o.state,b=C.dataUpdatedAt,S=C.error,T=C.errorUpdatedAt,P=C.isFetching,E=C.status,w=!1,M=!1,I;if(i.optimisticResults){var x=this.hasListeners(),_=!x&&Ix(o,i),L=x&&Rx(o,s,i,l);(_||L)&&(P=!0,b||(E="loading"))}if(i.keepPreviousData&&!C.dataUpdateCount&&(m!=null&&m.isSuccess)&&E!=="error")I=m.data,b=m.dataUpdatedAt,E=m.status,w=!0;else if(i.select&&typeof C.data<"u")if(u&&C.data===(c==null?void 0:c.data)&&i.select===this.selectFn)I=this.selectResult;else try{this.selectFn=i.select,I=i.select(C.data),i.structuralSharing!==!1&&(I=mp(u==null?void 0:u.data,I)),this.selectResult=I,this.selectError=null}catch(H){bp().error(H),this.selectError=H}else I=C.data;if(typeof i.placeholderData<"u"&&typeof I>"u"&&(E==="loading"||E==="idle")){var A;if(u!=null&&u.isPlaceholderData&&i.placeholderData===(f==null?void 0:f.placeholderData))A=u.data;else if(A=typeof i.placeholderData=="function"?i.placeholderData():i.placeholderData,i.select&&typeof A<"u")try{A=i.select(A),i.structuralSharing!==!1&&(A=mp(u==null?void 0:u.data,A)),this.selectError=null}catch(H){bp().error(H),this.selectError=H}typeof A<"u"&&(E="success",I=A,M=!0)}this.selectError&&(S=this.selectError,I=this.selectResult,T=Date.now(),E="error");var D={status:E,isLoading:E==="loading",isSuccess:E==="success",isError:E==="error",isIdle:E==="idle",data:I,dataUpdatedAt:b,error:S,errorUpdatedAt:T,failureCount:C.fetchFailureCount,errorUpdateCount:C.errorUpdateCount,isFetched:C.dataUpdateCount>0||C.errorUpdateCount>0,isFetchedAfterMount:C.dataUpdateCount>h.dataUpdateCount||C.errorUpdateCount>h.errorUpdateCount,isFetching:P,isRefetching:P&&E!=="loading",isLoadingError:E==="error"&&C.dataUpdatedAt===0,isPlaceholderData:M,isPreviousData:w,isRefetchError:E==="error"&&C.dataUpdatedAt!==0,isStale:Wb(o,i),refetch:this.refetch,remove:this.remove};return D},n.shouldNotifyListeners=function(o,i){if(!i)return!0;var s=this.options,l=s.notifyOnChangeProps,u=s.notifyOnChangePropsExclusions;if(!l&&!u||l==="tracked"&&!this.trackedProps.length)return!0;var c=l==="tracked"?this.trackedProps:l;return Object.keys(o).some(function(f){var p=f,h=o[p]!==i[p],m=c==null?void 0:c.some(function(b){return b===f}),C=u==null?void 0:u.some(function(b){return b===f});return h&&!C&&(!c||m)})},n.updateResult=function(o){var i=this.currentResult;if(this.currentResult=this.createResult(this.currentQuery,this.options),this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,!IN(this.currentResult,i)){var s={cache:!0};(o==null?void 0:o.listeners)!==!1&&this.shouldNotifyListeners(this.currentResult,i)&&(s.listeners=!0),this.notify(y({},s,o))}},n.updateQuery=function(){var o=this.client.getQueryCache().build(this.client,this.options);if(o!==this.currentQuery){var i=this.currentQuery;this.currentQuery=o,this.currentQueryInitialState=o.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(i==null||i.removeObserver(this),o.addObserver(this))}},n.onQueryUpdate=function(o){var i={};o.type==="success"?i.onSuccess=!0:o.type==="error"&&!Xf(o.error)&&(i.onError=!0),this.updateResult(i),this.hasListeners()&&this.updateTimers()},n.notify=function(o){var i=this;Vn.batch(function(){o.onSuccess?(i.options.onSuccess==null||i.options.onSuccess(i.currentResult.data),i.options.onSettled==null||i.options.onSettled(i.currentResult.data,null)):o.onError&&(i.options.onError==null||i.options.onError(i.currentResult.error),i.options.onSettled==null||i.options.onSettled(void 0,i.currentResult.error)),o.listeners&&i.listeners.forEach(function(s){s(i.currentResult)}),o.cache&&i.client.getQueryCache().notify({query:i.currentQuery,type:"observerResultsUpdated"})})},t}(id);function GN(e,t){return t.enabled!==!1&&!e.state.dataUpdatedAt&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Ix(e,t){return GN(e,t)||e.state.dataUpdatedAt>0&&zv(e,t,t.refetchOnMount)}function zv(e,t,n){if(t.enabled!==!1){var r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&Wb(e,t)}return!1}function Rx(e,t,n,r){return n.enabled!==!1&&(e!==t||r.enabled===!1)&&(!n.suspense||e.state.status!=="error")&&Wb(e,n)}function Wb(e,t){return e.isStaleByTime(t.staleTime)}var VN=sc.unstable_batchedUpdates;Vn.setBatchNotifyFunction(VN);var WN=console;AN(WN);var _x=Ct.createContext(void 0),nT=Ct.createContext(!1);function rT(e){return e&&typeof window<"u"?(window.ReactQueryClientContext||(window.ReactQueryClientContext=_x),window.ReactQueryClientContext):_x}var qN=function(){var t=Ct.useContext(rT(Ct.useContext(nT)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Hde=function(t){var n=t.client,r=t.contextSharing,o=r===void 0?!1:r,i=t.children;Ct.useEffect(function(){return n.mount(),function(){n.unmount()}},[n]);var s=rT(o);return Ct.createElement(nT.Provider,{value:o},Ct.createElement(s.Provider,{value:n},i))};function KN(){var e=!1;return{clearReset:function(){e=!1},reset:function(){e=!0},isReset:function(){return e}}}var XN=Ct.createContext(KN()),QN=function(){return Ct.useContext(XN)};function JN(e,t,n){return typeof t=="function"?t.apply(void 0,n):typeof t=="boolean"?t:!!e}function ZN(e,t){var n=Ct.useRef(!1),r=Ct.useState(0),o=r[1],i=qN(),s=QN(),l=i.defaultQueryObserverOptions(e);l.optimisticResults=!0,l.onError&&(l.onError=Vn.batchCalls(l.onError)),l.onSuccess&&(l.onSuccess=Vn.batchCalls(l.onSuccess)),l.onSettled&&(l.onSettled=Vn.batchCalls(l.onSettled)),l.suspense&&(typeof l.staleTime!="number"&&(l.staleTime=1e3),l.cacheTime===0&&(l.cacheTime=1)),(l.suspense||l.useErrorBoundary)&&(s.isReset()||(l.retryOnMount=!1));var u=Ct.useState(function(){return new t(i,l)}),c=u[0],f=c.getOptimisticResult(l);if(Ct.useEffect(function(){n.current=!0,s.clearReset();var p=c.subscribe(Vn.batchCalls(function(){n.current&&o(function(h){return h+1})}));return c.updateResult(),function(){n.current=!1,p()}},[s,c]),Ct.useEffect(function(){c.setOptions(l,{listeners:!1})},[l,c]),l.suspense&&f.isLoading)throw c.fetchOptimistic(l).then(function(p){var h=p.data;l.onSuccess==null||l.onSuccess(h),l.onSettled==null||l.onSettled(h,null)}).catch(function(p){s.clearReset(),l.onError==null||l.onError(p),l.onSettled==null||l.onSettled(void 0,p)});if(f.isError&&!s.isReset()&&!f.isFetching&&JN(l.suspense,l.useErrorBoundary,[f.error,c.getCurrentQuery()]))throw f.error;return l.notifyOnChangeProps==="tracked"&&(f=c.trackResult(f,l)),f}function qb(e,t,n){var r=qf(e,t,n);return ZN(r,zN)}/**
10
10
  * @remix-run/router v1.23.2
11
11
  *
12
12
  * Copyright (c) Remix Software Inc.
@@ -34,7 +34,7 @@ var lN=Object.defineProperty;var uN=(e,t,n)=>t in e?lN(e,t,{enumerable:!0,config
34
34
  * LICENSE.md file in the root directory of this source tree.
35
35
  *
36
36
  * @license MIT
37
- */function kc(){return kc=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},kc.apply(this,arguments)}function hH(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 gH(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function mH(e,t){return e.button===0&&(!t||t==="_self")&&!gH(e)}function qv(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(o=>[n,o]):[[n,r]])},[]))}function vH(e,t){let n=qv(e);return t&&t.forEach((r,o)=>{n.has(o)||t.getAll(o).forEach(i=>{n.append(o,i)})}),n}const bH=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],yH="6";try{window.__reactRouterVersion=yH}catch{}function jde(e,t){return O2({basename:t==null?void 0:t.basename,future:kc({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:YN({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||CH(),routes:e,mapRouteProperties:pH,dataStrategy:t==null?void 0:t.dataStrategy,patchRoutesOnNavigation:t==null?void 0:t.patchRoutesOnNavigation,window:t==null?void 0:t.window}).initialize()}function CH(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=kc({},t,{errors:wH(t.errors)})),t}function wH(e){if(!e)return null;let t=Object.entries(e),n={};for(let[r,o]of t)if(o&&o.__type==="RouteErrorResponse")n[r]=new Cp(o.status,o.statusText,o.data,o.internal===!0);else if(o&&o.__type==="Error"){if(o.__subType){let i=window[o.__subType];if(typeof i=="function")try{let s=new i(o.message);s.stack="",n[r]=s}catch{}}if(n[r]==null){let i=new Error(o.message);i.stack="",n[r]=i}}else n[r]=o;return n}const xH=g.createContext({isTransitioning:!1}),SH=g.createContext(new Map),EH="startTransition",Xx=g[EH],PH="flushSync",Qx=ih[PH];function TH(e){Xx?Xx(e):e()}function Uu(e){Qx?Qx(e):e()}class IH{constructor(){this.status="pending",this.promise=new Promise((t,n)=>{this.resolve=r=>{this.status==="pending"&&(this.status="resolved",t(r))},this.reject=r=>{this.status==="pending"&&(this.status="rejected",n(r))}})}}function zde(e){let{fallbackElement:t,router:n,future:r}=e,[o,i]=g.useState(n.state),[s,l]=g.useState(),[u,c]=g.useState({isTransitioning:!1}),[f,p]=g.useState(),[h,m]=g.useState(),[C,b]=g.useState(),S=g.useRef(new Map),{v7_startTransition:T}=r||{},P=g.useCallback(_=>{T?TH(_):_()},[T]),E=g.useCallback((_,L)=>{let{deletedFetchers:A,flushSync:D,viewTransitionOpts:H}=L;_.fetchers.forEach((k,$)=>{k.data!==void 0&&S.current.set($,k.data)}),A.forEach(k=>S.current.delete(k));let B=n.window==null||n.window.document==null||typeof n.window.document.startViewTransition!="function";if(!H||B){D?Uu(()=>i(_)):P(()=>i(_));return}if(D){Uu(()=>{h&&(f&&f.resolve(),h.skipTransition()),c({isTransitioning:!0,flushSync:!0,currentLocation:H.currentLocation,nextLocation:H.nextLocation})});let k=n.window.document.startViewTransition(()=>{Uu(()=>i(_))});k.finished.finally(()=>{Uu(()=>{p(void 0),m(void 0),l(void 0),c({isTransitioning:!1})})}),Uu(()=>m(k));return}h?(f&&f.resolve(),h.skipTransition(),b({state:_,currentLocation:H.currentLocation,nextLocation:H.nextLocation})):(l(_),c({isTransitioning:!0,flushSync:!1,currentLocation:H.currentLocation,nextLocation:H.nextLocation}))},[n.window,h,f,S,P]);g.useLayoutEffect(()=>n.subscribe(E),[n,E]),g.useEffect(()=>{u.isTransitioning&&!u.flushSync&&p(new IH)},[u]),g.useEffect(()=>{if(f&&s&&n.window){let _=s,L=f.promise,A=n.window.document.startViewTransition(async()=>{P(()=>i(_)),await L});A.finished.finally(()=>{p(void 0),m(void 0),l(void 0),c({isTransitioning:!1})}),m(A)}},[P,s,f,n.window]),g.useEffect(()=>{f&&s&&o.location.key===s.location.key&&f.resolve()},[f,h,o.location,s]),g.useEffect(()=>{!u.isTransitioning&&C&&(l(C.state),c({isTransitioning:!0,flushSync:!1,currentLocation:C.currentLocation,nextLocation:C.nextLocation}),b(void 0))},[u.isTransitioning,C]),g.useEffect(()=>{},[]);let w=g.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:_=>n.navigate(_),push:(_,L,A)=>n.navigate(_,{state:L,preventScrollReset:A==null?void 0:A.preventScrollReset}),replace:(_,L,A)=>n.navigate(_,{replace:!0,state:L,preventScrollReset:A==null?void 0:A.preventScrollReset})}),[n]),M=n.basename||"/",I=g.useMemo(()=>({router:n,navigator:w,static:!1,basename:M}),[n,w,M]),x=g.useMemo(()=>({v7_relativeSplatPath:n.future.v7_relativeSplatPath}),[n.future.v7_relativeSplatPath]);return g.useEffect(()=>cH(r,n.future),[r,n.future]),g.createElement(g.Fragment,null,g.createElement(ch.Provider,{value:I},g.createElement(pT.Provider,{value:o},g.createElement(SH.Provider,{value:S.current},g.createElement(xH.Provider,{value:u},g.createElement(fH,{basename:M,location:o.location,navigationType:o.historyAction,navigator:w,future:x},o.initialized||n.future.v7_partialHydration?g.createElement(RH,{routes:n.routes,future:n.future,state:o}):t))))),null)}const RH=g.memo(_H);function _H(e){let{routes:t,future:n,state:r}=e;return Z2(t,void 0,r,n)}const OH=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",MH=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Kv=g.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:i,replace:s,state:l,target:u,to:c,preventScrollReset:f,viewTransition:p}=t,h=hH(t,bH),{basename:m}=g.useContext(Ns),C,b=!1;if(typeof c=="string"&&MH.test(c)&&(C=c,OH))try{let E=new URL(window.location.href),w=c.startsWith("//")?new URL(E.protocol+c):new URL(c),M=tu(w.pathname,m);w.origin===E.origin&&M!=null?c=M+w.search+w.hash:b=!0}catch{}let S=Q2(c,{relative:o}),T=LH(c,{replace:s,state:l,target:u,preventScrollReset:f,relative:o,viewTransition:p});function P(E){r&&r(E),E.defaultPrevented||T(E)}return g.createElement("a",kc({},h,{href:C||S,onClick:b||i?r:P,ref:n,target:u}))});var Jx;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Jx||(Jx={}));var Zx;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Zx||(Zx={}));function LH(e,t){let{target:n,replace:r,state:o,preventScrollReset:i,relative:s,viewTransition:l}=t===void 0?{}:t,u=sd(),c=No(),f=mT(e,{relative:s});return g.useCallback(p=>{if(mH(p,n)){p.preventDefault();let h=r!==void 0?r:Ra(c)===Ra(f);u(e,{replace:h,state:o,preventScrollReset:i,relative:s,viewTransition:l})}},[c,u,f,r,o,n,e,i,s,l])}function CT(e){let t=g.useRef(qv(e)),n=g.useRef(!1),r=No(),o=g.useMemo(()=>vH(r.search,n.current?null:t.current),[r.search]),i=sd(),s=g.useCallback((l,u)=>{const c=qv(typeof l=="function"?l(o):l);n.current=!0,i("?"+c,u)},[i,o]);return[o,s]}const sl=new Map;function AH(e,t){const n=t==null?void 0:t.serializer,[r]=Nn(t==null?void 0:t.defaultValue),[o]=Nn(t==null?void 0:t.defaultServerValue);return DH(e,r,o,t==null?void 0:t.storageSync,n==null?void 0:n.parse,n==null?void 0:n.stringify)}function DH(e,t,n,r=!0,o=$H,i=JSON.stringify){const s=Ut({string:null,parsed:void 0}),l=VP(gn(f=>{const p=h=>{e===h&&f()};return Xv.add(p),()=>{Xv.delete(p)}},[e]),()=>{const f=xf(()=>localStorage.getItem(e))??null;if(sl.has(e))s.current.parsed=sl.get(e);else if(f!==s.current.string){let p;try{p=f===null?t:o(f)}catch{p=t}s.current.parsed=p}return s.current.string=f,t!==void 0&&f===null&&xf(()=>{const p=i(t);localStorage.setItem(e,p),s.current={string:p,parsed:t}}),s.current.parsed},()=>n??t),u=gn(f=>{const p=f instanceof Function?f(s.current.parsed):f;try{localStorage.setItem(e,i(p)),sl.delete(e)}catch{sl.set(e,p)}Dm(e)},[e,i]),c=gn(()=>{xf(()=>localStorage.removeItem(e)),sl.delete(e),Dm(e)},[e]);return Dt(()=>{if(!r)return;const f=p=>{p.key===e&&p.storageArea===xf(()=>localStorage)&&Dm(e)};return window.addEventListener("storage",f),()=>window.removeEventListener("storage",f)},[e,r]),It(()=>[l,u,{isPersistent:l===t||!sl.has(e),removeItem:c}],[e,u,l,t,c])}const Xv=new Set;function Dm(e){for(const t of[...Xv])t(e)}function $H(e){return e==="undefined"?void 0:JSON.parse(e)}function xf(e){try{return e()}catch{}}function kH(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function FH(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var NH=function(){function e(n){var r=this;this._insertTag=function(o){var i;r.tags.length===0?r.insertionPoint?i=r.insertionPoint.nextSibling:r.prepend?i=r.container.firstChild:i=r.before:i=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(o,i),r.tags.push(o)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(FH(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var i=kH(o);try{i.insertRule(r,i.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var o;return(o=r.parentNode)==null?void 0:o.removeChild(r)}),this.tags=[],this.ctr=0},e}(),Ar="-ms-",xp="-moz-",rn="-webkit-",wT="comm",Zb="rule",Yb="decl",HH="@import",xT="@keyframes",BH="@layer",UH=Math.abs,dh=String.fromCharCode,jH=Object.assign;function zH(e,t){return Tr(e,0)^45?(((t<<2^Tr(e,0))<<2^Tr(e,1))<<2^Tr(e,2))<<2^Tr(e,3):0}function ST(e){return e.trim()}function GH(e,t){return(e=t.exec(e))?e[0]:e}function on(e,t,n){return e.replace(t,n)}function Qv(e,t){return e.indexOf(t)}function Tr(e,t){return e.charCodeAt(t)|0}function Fc(e,t,n){return e.slice(t,n)}function pi(e){return e.length}function ey(e){return e.length}function Sf(e,t){return t.push(e),e}function VH(e,t){return e.map(t).join("")}var fh=1,jl=1,ET=0,eo=0,ar=0,ru="";function ph(e,t,n,r,o,i,s){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:fh,column:jl,length:s,return:""}}function ju(e,t){return jH(ph("",null,null,"",null,null,0),e,{length:-e.length},t)}function WH(){return ar}function qH(){return ar=eo>0?Tr(ru,--eo):0,jl--,ar===10&&(jl=1,fh--),ar}function go(){return ar=eo<ET?Tr(ru,eo++):0,jl++,ar===10&&(jl=1,fh++),ar}function wi(){return Tr(ru,eo)}function Jf(){return eo}function ad(e,t){return Fc(ru,e,t)}function Nc(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function PT(e){return fh=jl=1,ET=pi(ru=e),eo=0,[]}function TT(e){return ru="",e}function Zf(e){return ST(ad(eo-1,Jv(e===91?e+2:e===40?e+1:e)))}function KH(e){for(;(ar=wi())&&ar<33;)go();return Nc(e)>2||Nc(ar)>3?"":" "}function XH(e,t){for(;--t&&go()&&!(ar<48||ar>102||ar>57&&ar<65||ar>70&&ar<97););return ad(e,Jf()+(t<6&&wi()==32&&go()==32))}function Jv(e){for(;go();)switch(ar){case e:return eo;case 34:case 39:e!==34&&e!==39&&Jv(ar);break;case 40:e===41&&Jv(e);break;case 92:go();break}return eo}function QH(e,t){for(;go()&&e+ar!==57;)if(e+ar===84&&wi()===47)break;return"/*"+ad(t,eo-1)+"*"+dh(e===47?e:go())}function JH(e){for(;!Nc(wi());)go();return ad(e,eo)}function ZH(e){return TT(Yf("",null,null,null,[""],e=PT(e),0,[0],e))}function Yf(e,t,n,r,o,i,s,l,u){for(var c=0,f=0,p=s,h=0,m=0,C=0,b=1,S=1,T=1,P=0,E="",w=o,M=i,I=r,x=E;S;)switch(C=P,P=go()){case 40:if(C!=108&&Tr(x,p-1)==58){Qv(x+=on(Zf(P),"&","&\f"),"&\f")!=-1&&(T=-1);break}case 34:case 39:case 91:x+=Zf(P);break;case 9:case 10:case 13:case 32:x+=KH(C);break;case 92:x+=XH(Jf()-1,7);continue;case 47:switch(wi()){case 42:case 47:Sf(YH(QH(go(),Jf()),t,n),u);break;default:x+="/"}break;case 123*b:l[c++]=pi(x)*T;case 125*b:case 59:case 0:switch(P){case 0:case 125:S=0;case 59+f:T==-1&&(x=on(x,/\f/g,"")),m>0&&pi(x)-p&&Sf(m>32?eS(x+";",r,n,p-1):eS(on(x," ","")+";",r,n,p-2),u);break;case 59:x+=";";default:if(Sf(I=Yx(x,t,n,c,f,o,l,E,w=[],M=[],p),i),P===123)if(f===0)Yf(x,t,I,I,w,i,p,l,M);else switch(h===99&&Tr(x,3)===110?100:h){case 100:case 108:case 109:case 115:Yf(e,I,I,r&&Sf(Yx(e,I,I,0,0,o,l,E,o,w=[],p),M),o,M,p,l,r?w:M);break;default:Yf(x,I,I,I,[""],M,0,l,M)}}c=f=m=0,b=T=1,E=x="",p=s;break;case 58:p=1+pi(x),m=C;default:if(b<1){if(P==123)--b;else if(P==125&&b++==0&&qH()==125)continue}switch(x+=dh(P),P*b){case 38:T=f>0?1:(x+="\f",-1);break;case 44:l[c++]=(pi(x)-1)*T,T=1;break;case 64:wi()===45&&(x+=Zf(go())),h=wi(),f=p=pi(E=x+=JH(Jf())),P++;break;case 45:C===45&&pi(x)==2&&(b=0)}}return i}function Yx(e,t,n,r,o,i,s,l,u,c,f){for(var p=o-1,h=o===0?i:[""],m=ey(h),C=0,b=0,S=0;C<r;++C)for(var T=0,P=Fc(e,p+1,p=UH(b=s[C])),E=e;T<m;++T)(E=ST(b>0?h[T]+" "+P:on(P,/&\f/g,h[T])))&&(u[S++]=E);return ph(e,t,n,o===0?Zb:l,u,c,f)}function YH(e,t,n){return ph(e,t,n,wT,dh(WH()),Fc(e,2,-2),0)}function eS(e,t,n,r){return ph(e,t,n,Yb,Fc(e,0,r),Fc(e,r+1,-1),r)}function Dl(e,t){for(var n="",r=ey(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function eB(e,t,n,r){switch(e.type){case BH:if(e.children.length)break;case HH:case Yb:return e.return=e.return||e.value;case wT:return"";case xT:return e.return=e.value+"{"+Dl(e.children,r)+"}";case Zb:e.value=e.props.join(",")}return pi(n=Dl(e.children,r))?e.return=e.value+"{"+n+"}":""}function tB(e){var t=ey(e);return function(n,r,o,i){for(var s="",l=0;l<t;l++)s+=e[l](n,r,o,i)||"";return s}}function nB(e){return function(t){t.root||(t=t.return)&&e(t)}}function IT(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var rB=function(t,n,r){for(var o=0,i=0;o=i,i=wi(),o===38&&i===12&&(n[r]=1),!Nc(i);)go();return ad(t,eo)},oB=function(t,n){var r=-1,o=44;do switch(Nc(o)){case 0:o===38&&wi()===12&&(n[r]=1),t[r]+=rB(eo-1,n,r);break;case 2:t[r]+=Zf(o);break;case 4:if(o===44){t[++r]=wi()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=dh(o)}while(o=go());return t},iB=function(t,n){return TT(oB(PT(t),n))},tS=new WeakMap,sB=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,o=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!tS.get(r))&&!o){tS.set(t,!0);for(var i=[],s=iB(n,i),l=r.props,u=0,c=0;u<s.length;u++)for(var f=0;f<l.length;f++,c++)t.props[c]=i[u]?s[u].replace(/&\f/g,l[f]):l[f]+" "+s[u]}}},aB=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function RT(e,t){switch(zH(e,t)){case 5103:return rn+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return rn+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return rn+e+xp+e+Ar+e+e;case 6828:case 4268:return rn+e+Ar+e+e;case 6165:return rn+e+Ar+"flex-"+e+e;case 5187:return rn+e+on(e,/(\w+).+(:[^]+)/,rn+"box-$1$2"+Ar+"flex-$1$2")+e;case 5443:return rn+e+Ar+"flex-item-"+on(e,/flex-|-self/,"")+e;case 4675:return rn+e+Ar+"flex-line-pack"+on(e,/align-content|flex-|-self/,"")+e;case 5548:return rn+e+Ar+on(e,"shrink","negative")+e;case 5292:return rn+e+Ar+on(e,"basis","preferred-size")+e;case 6060:return rn+"box-"+on(e,"-grow","")+rn+e+Ar+on(e,"grow","positive")+e;case 4554:return rn+on(e,/([^-])(transform)/g,"$1"+rn+"$2")+e;case 6187:return on(on(on(e,/(zoom-|grab)/,rn+"$1"),/(image-set)/,rn+"$1"),e,"")+e;case 5495:case 3959:return on(e,/(image-set\([^]*)/,rn+"$1$`$1");case 4968:return on(on(e,/(.+:)(flex-)?(.*)/,rn+"box-pack:$3"+Ar+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+rn+e+e;case 4095:case 3583:case 4068:case 2532:return on(e,/(.+)-inline(.+)/,rn+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(pi(e)-1-t>6)switch(Tr(e,t+1)){case 109:if(Tr(e,t+4)!==45)break;case 102:return on(e,/(.+:)(.+)-([^]+)/,"$1"+rn+"$2-$3$1"+xp+(Tr(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Qv(e,"stretch")?RT(on(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Tr(e,t+1)!==115)break;case 6444:switch(Tr(e,pi(e)-3-(~Qv(e,"!important")&&10))){case 107:return on(e,":",":"+rn)+e;case 101:return on(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+rn+(Tr(e,14)===45?"inline-":"")+"box$3$1"+rn+"$2$3$1"+Ar+"$2box$3")+e}break;case 5936:switch(Tr(e,t+11)){case 114:return rn+e+Ar+on(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return rn+e+Ar+on(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return rn+e+Ar+on(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return rn+e+Ar+e+e}return e}var lB=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case Yb:t.return=RT(t.value,t.length);break;case xT:return Dl([ju(t,{value:on(t.value,"@","@"+rn)})],o);case Zb:if(t.length)return VH(t.props,function(i){switch(GH(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Dl([ju(t,{props:[on(i,/:(read-\w+)/,":"+xp+"$1")]})],o);case"::placeholder":return Dl([ju(t,{props:[on(i,/:(plac\w+)/,":"+rn+"input-$1")]}),ju(t,{props:[on(i,/:(plac\w+)/,":"+xp+"$1")]}),ju(t,{props:[on(i,/:(plac\w+)/,Ar+"input-$1")]})],o)}return""})}},uB=[lB],_T=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(b){var S=b.getAttribute("data-emotion");S.indexOf(" ")!==-1&&(document.head.appendChild(b),b.setAttribute("data-s",""))})}var o=t.stylisPlugins||uB,i={},s,l=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(b){for(var S=b.getAttribute("data-emotion").split(" "),T=1;T<S.length;T++)i[S[T]]=!0;l.push(b)});var u,c=[sB,aB];{var f,p=[eB,nB(function(b){f.insert(b)})],h=tB(c.concat(o,p)),m=function(S){return Dl(ZH(S),h)};u=function(S,T,P,E){f=P,m(S?S+"{"+T.styles+"}":T.styles),E&&(C.inserted[T.name]=!0)}}var C={key:n,sheet:new NH({key:n,container:s,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:i,registered:{},insert:u};return C.sheet.hydrate(l),C},OT={exports:{}},mn={};/** @license React v16.13.1
37
+ */function kc(){return kc=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},kc.apply(this,arguments)}function hH(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 gH(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function mH(e,t){return e.button===0&&(!t||t==="_self")&&!gH(e)}function qv(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(o=>[n,o]):[[n,r]])},[]))}function vH(e,t){let n=qv(e);return t&&t.forEach((r,o)=>{n.has(o)||t.getAll(o).forEach(i=>{n.append(o,i)})}),n}const bH=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],yH="6";try{window.__reactRouterVersion=yH}catch{}function Bde(e,t){return O2({basename:t==null?void 0:t.basename,future:kc({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:YN({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||CH(),routes:e,mapRouteProperties:pH,dataStrategy:t==null?void 0:t.dataStrategy,patchRoutesOnNavigation:t==null?void 0:t.patchRoutesOnNavigation,window:t==null?void 0:t.window}).initialize()}function CH(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=kc({},t,{errors:wH(t.errors)})),t}function wH(e){if(!e)return null;let t=Object.entries(e),n={};for(let[r,o]of t)if(o&&o.__type==="RouteErrorResponse")n[r]=new Cp(o.status,o.statusText,o.data,o.internal===!0);else if(o&&o.__type==="Error"){if(o.__subType){let i=window[o.__subType];if(typeof i=="function")try{let s=new i(o.message);s.stack="",n[r]=s}catch{}}if(n[r]==null){let i=new Error(o.message);i.stack="",n[r]=i}}else n[r]=o;return n}const xH=g.createContext({isTransitioning:!1}),SH=g.createContext(new Map),EH="startTransition",Xx=g[EH],PH="flushSync",Qx=ih[PH];function TH(e){Xx?Xx(e):e()}function Uu(e){Qx?Qx(e):e()}class IH{constructor(){this.status="pending",this.promise=new Promise((t,n)=>{this.resolve=r=>{this.status==="pending"&&(this.status="resolved",t(r))},this.reject=r=>{this.status==="pending"&&(this.status="rejected",n(r))}})}}function Ude(e){let{fallbackElement:t,router:n,future:r}=e,[o,i]=g.useState(n.state),[s,l]=g.useState(),[u,c]=g.useState({isTransitioning:!1}),[f,p]=g.useState(),[h,m]=g.useState(),[C,b]=g.useState(),S=g.useRef(new Map),{v7_startTransition:T}=r||{},P=g.useCallback(_=>{T?TH(_):_()},[T]),E=g.useCallback((_,L)=>{let{deletedFetchers:A,flushSync:D,viewTransitionOpts:H}=L;_.fetchers.forEach((k,$)=>{k.data!==void 0&&S.current.set($,k.data)}),A.forEach(k=>S.current.delete(k));let B=n.window==null||n.window.document==null||typeof n.window.document.startViewTransition!="function";if(!H||B){D?Uu(()=>i(_)):P(()=>i(_));return}if(D){Uu(()=>{h&&(f&&f.resolve(),h.skipTransition()),c({isTransitioning:!0,flushSync:!0,currentLocation:H.currentLocation,nextLocation:H.nextLocation})});let k=n.window.document.startViewTransition(()=>{Uu(()=>i(_))});k.finished.finally(()=>{Uu(()=>{p(void 0),m(void 0),l(void 0),c({isTransitioning:!1})})}),Uu(()=>m(k));return}h?(f&&f.resolve(),h.skipTransition(),b({state:_,currentLocation:H.currentLocation,nextLocation:H.nextLocation})):(l(_),c({isTransitioning:!0,flushSync:!1,currentLocation:H.currentLocation,nextLocation:H.nextLocation}))},[n.window,h,f,S,P]);g.useLayoutEffect(()=>n.subscribe(E),[n,E]),g.useEffect(()=>{u.isTransitioning&&!u.flushSync&&p(new IH)},[u]),g.useEffect(()=>{if(f&&s&&n.window){let _=s,L=f.promise,A=n.window.document.startViewTransition(async()=>{P(()=>i(_)),await L});A.finished.finally(()=>{p(void 0),m(void 0),l(void 0),c({isTransitioning:!1})}),m(A)}},[P,s,f,n.window]),g.useEffect(()=>{f&&s&&o.location.key===s.location.key&&f.resolve()},[f,h,o.location,s]),g.useEffect(()=>{!u.isTransitioning&&C&&(l(C.state),c({isTransitioning:!0,flushSync:!1,currentLocation:C.currentLocation,nextLocation:C.nextLocation}),b(void 0))},[u.isTransitioning,C]),g.useEffect(()=>{},[]);let w=g.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:_=>n.navigate(_),push:(_,L,A)=>n.navigate(_,{state:L,preventScrollReset:A==null?void 0:A.preventScrollReset}),replace:(_,L,A)=>n.navigate(_,{replace:!0,state:L,preventScrollReset:A==null?void 0:A.preventScrollReset})}),[n]),M=n.basename||"/",I=g.useMemo(()=>({router:n,navigator:w,static:!1,basename:M}),[n,w,M]),x=g.useMemo(()=>({v7_relativeSplatPath:n.future.v7_relativeSplatPath}),[n.future.v7_relativeSplatPath]);return g.useEffect(()=>cH(r,n.future),[r,n.future]),g.createElement(g.Fragment,null,g.createElement(ch.Provider,{value:I},g.createElement(pT.Provider,{value:o},g.createElement(SH.Provider,{value:S.current},g.createElement(xH.Provider,{value:u},g.createElement(fH,{basename:M,location:o.location,navigationType:o.historyAction,navigator:w,future:x},o.initialized||n.future.v7_partialHydration?g.createElement(RH,{routes:n.routes,future:n.future,state:o}):t))))),null)}const RH=g.memo(_H);function _H(e){let{routes:t,future:n,state:r}=e;return Z2(t,void 0,r,n)}const OH=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",MH=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Kv=g.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:i,replace:s,state:l,target:u,to:c,preventScrollReset:f,viewTransition:p}=t,h=hH(t,bH),{basename:m}=g.useContext(Ns),C,b=!1;if(typeof c=="string"&&MH.test(c)&&(C=c,OH))try{let E=new URL(window.location.href),w=c.startsWith("//")?new URL(E.protocol+c):new URL(c),M=tu(w.pathname,m);w.origin===E.origin&&M!=null?c=M+w.search+w.hash:b=!0}catch{}let S=Q2(c,{relative:o}),T=LH(c,{replace:s,state:l,target:u,preventScrollReset:f,relative:o,viewTransition:p});function P(E){r&&r(E),E.defaultPrevented||T(E)}return g.createElement("a",kc({},h,{href:C||S,onClick:b||i?r:P,ref:n,target:u}))});var Jx;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Jx||(Jx={}));var Zx;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Zx||(Zx={}));function LH(e,t){let{target:n,replace:r,state:o,preventScrollReset:i,relative:s,viewTransition:l}=t===void 0?{}:t,u=sd(),c=No(),f=mT(e,{relative:s});return g.useCallback(p=>{if(mH(p,n)){p.preventDefault();let h=r!==void 0?r:Ra(c)===Ra(f);u(e,{replace:h,state:o,preventScrollReset:i,relative:s,viewTransition:l})}},[c,u,f,r,o,n,e,i,s,l])}function CT(e){let t=g.useRef(qv(e)),n=g.useRef(!1),r=No(),o=g.useMemo(()=>vH(r.search,n.current?null:t.current),[r.search]),i=sd(),s=g.useCallback((l,u)=>{const c=qv(typeof l=="function"?l(o):l);n.current=!0,i("?"+c,u)},[i,o]);return[o,s]}const sl=new Map;function AH(e,t){const n=t==null?void 0:t.serializer,[r]=Nn(t==null?void 0:t.defaultValue),[o]=Nn(t==null?void 0:t.defaultServerValue);return DH(e,r,o,t==null?void 0:t.storageSync,n==null?void 0:n.parse,n==null?void 0:n.stringify)}function DH(e,t,n,r=!0,o=$H,i=JSON.stringify){const s=Ut({string:null,parsed:void 0}),l=VP(gn(f=>{const p=h=>{e===h&&f()};return Xv.add(p),()=>{Xv.delete(p)}},[e]),()=>{const f=xf(()=>localStorage.getItem(e))??null;if(sl.has(e))s.current.parsed=sl.get(e);else if(f!==s.current.string){let p;try{p=f===null?t:o(f)}catch{p=t}s.current.parsed=p}return s.current.string=f,t!==void 0&&f===null&&xf(()=>{const p=i(t);localStorage.setItem(e,p),s.current={string:p,parsed:t}}),s.current.parsed},()=>n??t),u=gn(f=>{const p=f instanceof Function?f(s.current.parsed):f;try{localStorage.setItem(e,i(p)),sl.delete(e)}catch{sl.set(e,p)}Dm(e)},[e,i]),c=gn(()=>{xf(()=>localStorage.removeItem(e)),sl.delete(e),Dm(e)},[e]);return Dt(()=>{if(!r)return;const f=p=>{p.key===e&&p.storageArea===xf(()=>localStorage)&&Dm(e)};return window.addEventListener("storage",f),()=>window.removeEventListener("storage",f)},[e,r]),It(()=>[l,u,{isPersistent:l===t||!sl.has(e),removeItem:c}],[e,u,l,t,c])}const Xv=new Set;function Dm(e){for(const t of[...Xv])t(e)}function $H(e){return e==="undefined"?void 0:JSON.parse(e)}function xf(e){try{return e()}catch{}}function kH(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function FH(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var NH=function(){function e(n){var r=this;this._insertTag=function(o){var i;r.tags.length===0?r.insertionPoint?i=r.insertionPoint.nextSibling:r.prepend?i=r.container.firstChild:i=r.before:i=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(o,i),r.tags.push(o)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(FH(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var i=kH(o);try{i.insertRule(r,i.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var o;return(o=r.parentNode)==null?void 0:o.removeChild(r)}),this.tags=[],this.ctr=0},e}(),Ar="-ms-",xp="-moz-",rn="-webkit-",wT="comm",Zb="rule",Yb="decl",HH="@import",xT="@keyframes",BH="@layer",UH=Math.abs,dh=String.fromCharCode,jH=Object.assign;function zH(e,t){return Tr(e,0)^45?(((t<<2^Tr(e,0))<<2^Tr(e,1))<<2^Tr(e,2))<<2^Tr(e,3):0}function ST(e){return e.trim()}function GH(e,t){return(e=t.exec(e))?e[0]:e}function on(e,t,n){return e.replace(t,n)}function Qv(e,t){return e.indexOf(t)}function Tr(e,t){return e.charCodeAt(t)|0}function Fc(e,t,n){return e.slice(t,n)}function pi(e){return e.length}function ey(e){return e.length}function Sf(e,t){return t.push(e),e}function VH(e,t){return e.map(t).join("")}var fh=1,jl=1,ET=0,eo=0,ar=0,ru="";function ph(e,t,n,r,o,i,s){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:fh,column:jl,length:s,return:""}}function ju(e,t){return jH(ph("",null,null,"",null,null,0),e,{length:-e.length},t)}function WH(){return ar}function qH(){return ar=eo>0?Tr(ru,--eo):0,jl--,ar===10&&(jl=1,fh--),ar}function go(){return ar=eo<ET?Tr(ru,eo++):0,jl++,ar===10&&(jl=1,fh++),ar}function wi(){return Tr(ru,eo)}function Jf(){return eo}function ad(e,t){return Fc(ru,e,t)}function Nc(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function PT(e){return fh=jl=1,ET=pi(ru=e),eo=0,[]}function TT(e){return ru="",e}function Zf(e){return ST(ad(eo-1,Jv(e===91?e+2:e===40?e+1:e)))}function KH(e){for(;(ar=wi())&&ar<33;)go();return Nc(e)>2||Nc(ar)>3?"":" "}function XH(e,t){for(;--t&&go()&&!(ar<48||ar>102||ar>57&&ar<65||ar>70&&ar<97););return ad(e,Jf()+(t<6&&wi()==32&&go()==32))}function Jv(e){for(;go();)switch(ar){case e:return eo;case 34:case 39:e!==34&&e!==39&&Jv(ar);break;case 40:e===41&&Jv(e);break;case 92:go();break}return eo}function QH(e,t){for(;go()&&e+ar!==57;)if(e+ar===84&&wi()===47)break;return"/*"+ad(t,eo-1)+"*"+dh(e===47?e:go())}function JH(e){for(;!Nc(wi());)go();return ad(e,eo)}function ZH(e){return TT(Yf("",null,null,null,[""],e=PT(e),0,[0],e))}function Yf(e,t,n,r,o,i,s,l,u){for(var c=0,f=0,p=s,h=0,m=0,C=0,b=1,S=1,T=1,P=0,E="",w=o,M=i,I=r,x=E;S;)switch(C=P,P=go()){case 40:if(C!=108&&Tr(x,p-1)==58){Qv(x+=on(Zf(P),"&","&\f"),"&\f")!=-1&&(T=-1);break}case 34:case 39:case 91:x+=Zf(P);break;case 9:case 10:case 13:case 32:x+=KH(C);break;case 92:x+=XH(Jf()-1,7);continue;case 47:switch(wi()){case 42:case 47:Sf(YH(QH(go(),Jf()),t,n),u);break;default:x+="/"}break;case 123*b:l[c++]=pi(x)*T;case 125*b:case 59:case 0:switch(P){case 0:case 125:S=0;case 59+f:T==-1&&(x=on(x,/\f/g,"")),m>0&&pi(x)-p&&Sf(m>32?eS(x+";",r,n,p-1):eS(on(x," ","")+";",r,n,p-2),u);break;case 59:x+=";";default:if(Sf(I=Yx(x,t,n,c,f,o,l,E,w=[],M=[],p),i),P===123)if(f===0)Yf(x,t,I,I,w,i,p,l,M);else switch(h===99&&Tr(x,3)===110?100:h){case 100:case 108:case 109:case 115:Yf(e,I,I,r&&Sf(Yx(e,I,I,0,0,o,l,E,o,w=[],p),M),o,M,p,l,r?w:M);break;default:Yf(x,I,I,I,[""],M,0,l,M)}}c=f=m=0,b=T=1,E=x="",p=s;break;case 58:p=1+pi(x),m=C;default:if(b<1){if(P==123)--b;else if(P==125&&b++==0&&qH()==125)continue}switch(x+=dh(P),P*b){case 38:T=f>0?1:(x+="\f",-1);break;case 44:l[c++]=(pi(x)-1)*T,T=1;break;case 64:wi()===45&&(x+=Zf(go())),h=wi(),f=p=pi(E=x+=JH(Jf())),P++;break;case 45:C===45&&pi(x)==2&&(b=0)}}return i}function Yx(e,t,n,r,o,i,s,l,u,c,f){for(var p=o-1,h=o===0?i:[""],m=ey(h),C=0,b=0,S=0;C<r;++C)for(var T=0,P=Fc(e,p+1,p=UH(b=s[C])),E=e;T<m;++T)(E=ST(b>0?h[T]+" "+P:on(P,/&\f/g,h[T])))&&(u[S++]=E);return ph(e,t,n,o===0?Zb:l,u,c,f)}function YH(e,t,n){return ph(e,t,n,wT,dh(WH()),Fc(e,2,-2),0)}function eS(e,t,n,r){return ph(e,t,n,Yb,Fc(e,0,r),Fc(e,r+1,-1),r)}function Dl(e,t){for(var n="",r=ey(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function eB(e,t,n,r){switch(e.type){case BH:if(e.children.length)break;case HH:case Yb:return e.return=e.return||e.value;case wT:return"";case xT:return e.return=e.value+"{"+Dl(e.children,r)+"}";case Zb:e.value=e.props.join(",")}return pi(n=Dl(e.children,r))?e.return=e.value+"{"+n+"}":""}function tB(e){var t=ey(e);return function(n,r,o,i){for(var s="",l=0;l<t;l++)s+=e[l](n,r,o,i)||"";return s}}function nB(e){return function(t){t.root||(t=t.return)&&e(t)}}function IT(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var rB=function(t,n,r){for(var o=0,i=0;o=i,i=wi(),o===38&&i===12&&(n[r]=1),!Nc(i);)go();return ad(t,eo)},oB=function(t,n){var r=-1,o=44;do switch(Nc(o)){case 0:o===38&&wi()===12&&(n[r]=1),t[r]+=rB(eo-1,n,r);break;case 2:t[r]+=Zf(o);break;case 4:if(o===44){t[++r]=wi()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=dh(o)}while(o=go());return t},iB=function(t,n){return TT(oB(PT(t),n))},tS=new WeakMap,sB=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,o=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!tS.get(r))&&!o){tS.set(t,!0);for(var i=[],s=iB(n,i),l=r.props,u=0,c=0;u<s.length;u++)for(var f=0;f<l.length;f++,c++)t.props[c]=i[u]?s[u].replace(/&\f/g,l[f]):l[f]+" "+s[u]}}},aB=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function RT(e,t){switch(zH(e,t)){case 5103:return rn+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return rn+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return rn+e+xp+e+Ar+e+e;case 6828:case 4268:return rn+e+Ar+e+e;case 6165:return rn+e+Ar+"flex-"+e+e;case 5187:return rn+e+on(e,/(\w+).+(:[^]+)/,rn+"box-$1$2"+Ar+"flex-$1$2")+e;case 5443:return rn+e+Ar+"flex-item-"+on(e,/flex-|-self/,"")+e;case 4675:return rn+e+Ar+"flex-line-pack"+on(e,/align-content|flex-|-self/,"")+e;case 5548:return rn+e+Ar+on(e,"shrink","negative")+e;case 5292:return rn+e+Ar+on(e,"basis","preferred-size")+e;case 6060:return rn+"box-"+on(e,"-grow","")+rn+e+Ar+on(e,"grow","positive")+e;case 4554:return rn+on(e,/([^-])(transform)/g,"$1"+rn+"$2")+e;case 6187:return on(on(on(e,/(zoom-|grab)/,rn+"$1"),/(image-set)/,rn+"$1"),e,"")+e;case 5495:case 3959:return on(e,/(image-set\([^]*)/,rn+"$1$`$1");case 4968:return on(on(e,/(.+:)(flex-)?(.*)/,rn+"box-pack:$3"+Ar+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+rn+e+e;case 4095:case 3583:case 4068:case 2532:return on(e,/(.+)-inline(.+)/,rn+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(pi(e)-1-t>6)switch(Tr(e,t+1)){case 109:if(Tr(e,t+4)!==45)break;case 102:return on(e,/(.+:)(.+)-([^]+)/,"$1"+rn+"$2-$3$1"+xp+(Tr(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Qv(e,"stretch")?RT(on(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Tr(e,t+1)!==115)break;case 6444:switch(Tr(e,pi(e)-3-(~Qv(e,"!important")&&10))){case 107:return on(e,":",":"+rn)+e;case 101:return on(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+rn+(Tr(e,14)===45?"inline-":"")+"box$3$1"+rn+"$2$3$1"+Ar+"$2box$3")+e}break;case 5936:switch(Tr(e,t+11)){case 114:return rn+e+Ar+on(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return rn+e+Ar+on(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return rn+e+Ar+on(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return rn+e+Ar+e+e}return e}var lB=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case Yb:t.return=RT(t.value,t.length);break;case xT:return Dl([ju(t,{value:on(t.value,"@","@"+rn)})],o);case Zb:if(t.length)return VH(t.props,function(i){switch(GH(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Dl([ju(t,{props:[on(i,/:(read-\w+)/,":"+xp+"$1")]})],o);case"::placeholder":return Dl([ju(t,{props:[on(i,/:(plac\w+)/,":"+rn+"input-$1")]}),ju(t,{props:[on(i,/:(plac\w+)/,":"+xp+"$1")]}),ju(t,{props:[on(i,/:(plac\w+)/,Ar+"input-$1")]})],o)}return""})}},uB=[lB],_T=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(b){var S=b.getAttribute("data-emotion");S.indexOf(" ")!==-1&&(document.head.appendChild(b),b.setAttribute("data-s",""))})}var o=t.stylisPlugins||uB,i={},s,l=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(b){for(var S=b.getAttribute("data-emotion").split(" "),T=1;T<S.length;T++)i[S[T]]=!0;l.push(b)});var u,c=[sB,aB];{var f,p=[eB,nB(function(b){f.insert(b)})],h=tB(c.concat(o,p)),m=function(S){return Dl(ZH(S),h)};u=function(S,T,P,E){f=P,m(S?S+"{"+T.styles+"}":T.styles),E&&(C.inserted[T.name]=!0)}}var C={key:n,sheet:new NH({key:n,container:s,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:i,registered:{},insert:u};return C.sheet.hydrate(l),C},OT={exports:{}},mn={};/** @license React v16.13.1
38
38
  * react-is.production.min.js
39
39
  *
40
40
  * Copyright (c) Facebook, Inc. and its affiliates.
@@ -328,31 +328,31 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
328
328
  margin-top: 2px;
329
329
  float: right;
330
330
  color: ${({theme:e})=>e.palette.primary.main};
331
- `;var jC={},ole=Uo;Object.defineProperty(jC,"__esModule",{value:!0});var UO=jC.default=void 0,ile=ole(Ii()),sle=R;UO=jC.default=(0,ile.default)((0,sle.jsx)("path",{d:"m20 12-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8z"}),"ArrowDownward");var zC={},ale=Uo;Object.defineProperty(zC,"__esModule",{value:!0});var jO=zC.default=void 0,lle=ale(Ii()),ule=R;jO=zC.default=(0,lle.default)((0,ule.jsx)("path",{d:"m4 12 1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8z"}),"ArrowUpward");const cle="11.0.2",dle={version:cle},fle="https://asc-uat-gapi-gateway-service.uat-api.digitalrealty.com",ple="21ad812489be02d595c9619843a3f28dTz01OTU0OSxFPTE3MDc1OTE3Nzk4NjIsUz1wcm8sTE09c3Vic2NyaXB0aW9uLEtWPTI=",hle="https://api-a1.interxion.com",GC=()=>({appVersion:dle.version,globalApiUrl:fle,muiXProLicense:ple,i18nLoadPath:"/locales/{{lng}}/{{ns}}.json",globalPortalBaseUrl:hle}),gle=ne("div")`
331
+ `;var jC={},ole=Uo;Object.defineProperty(jC,"__esModule",{value:!0});var UO=jC.default=void 0,ile=ole(Ii()),sle=R;UO=jC.default=(0,ile.default)((0,sle.jsx)("path",{d:"m20 12-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8z"}),"ArrowDownward");var zC={},ale=Uo;Object.defineProperty(zC,"__esModule",{value:!0});var jO=zC.default=void 0,lle=ale(Ii()),ule=R;jO=zC.default=(0,lle.default)((0,ule.jsx)("path",{d:"m4 12 1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8z"}),"ArrowUpward");const cle="11.0.3",dle={version:cle},fle=()=>{var t;const e=(t=window.gpConfig)==null?void 0:t["ui-mfe-reports"];if(!e)throw new Error("ui-mfe-reports config not loaded. Ensure config.json is fetched before app bootstrap.");return e},GC=()=>{const{mfeReportsUi:e,ApiBaseUrl:t}=fle();return{appVersion:dle.version,globalApiUrl:e.globalApiUrl,muiXProLicense:e.muiXProLicense,i18nLoadPath:e.isDev?"/locales/{{lng}}/{{ns}}.json":"/src/lib/locales/{{lng}}/{{ns}}.json",globalPortalBaseUrl:t}},ple=ne("div")`
332
332
  font-size: 48px;
333
333
  color: ${({theme:e})=>e.palette.primary.light};
334
- `,mle=ne("div")`
334
+ `,hle=ne("div")`
335
335
  display: flex;
336
336
  flex-direction: column;
337
337
  align-items: center;
338
338
  justify-content: start;
339
339
  margin: 24px;
340
- `,vle=ne("div")`
340
+ `,gle=ne("div")`
341
341
  display: flex;
342
342
  flex-direction: column;
343
343
  gap: 8px;
344
344
  margin-top: 24px;
345
- `,ble=ne("div")`
345
+ `,mle=ne("div")`
346
346
  margin-top: 12px;
347
347
  display: flex;
348
348
  flex-direction: column;
349
349
  gap: 16px;
350
- `,yle=({title:e,details:t,mainActionButtonProps:n,secondaryActionButtonProps:r})=>{const{t:o}=Vs("common");return R.jsxs(mle,{children:[R.jsx(gle,{children:R.jsx(rle,{fontSize:"inherit"})}),R.jsxs(vle,{children:[R.jsx(Or,{variant:"h6",component:"h3","data-testid":"reports-no-rows",children:e||o("datagrid-no-rows")}),t&&R.jsx(Or,{children:t})]}),(n||r)&&R.jsxs(ble,{children:[n&&R.jsx(Vc,{...n}),r&&R.jsx(Vc,{variant:"text",...r})]})]})};var VC={},Cle=Uo;Object.defineProperty(VC,"__esModule",{value:!0});var zO=VC.default=void 0,wle=Cle(Ii()),xle=R;zO=VC.default=(0,wle.default)((0,xle.jsx)("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"}),"ErrorOutline");const Sle=ne(Pd)`
350
+ `,vle=({title:e,details:t,mainActionButtonProps:n,secondaryActionButtonProps:r})=>{const{t:o}=Vs("common");return R.jsxs(hle,{children:[R.jsx(ple,{children:R.jsx(rle,{fontSize:"inherit"})}),R.jsxs(gle,{children:[R.jsx(Or,{variant:"h6",component:"h3","data-testid":"reports-no-rows",children:e||o("datagrid-no-rows")}),t&&R.jsx(Or,{children:t})]}),(n||r)&&R.jsxs(mle,{children:[n&&R.jsx(Vc,{...n}),r&&R.jsx(Vc,{variant:"text",...r})]})]})};var VC={},ble=Uo;Object.defineProperty(VC,"__esModule",{value:!0});var zO=VC.default=void 0,yle=ble(Ii()),Cle=R;zO=VC.default=(0,yle.default)((0,Cle.jsx)("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"}),"ErrorOutline");const wle=ne(Pd)`
351
351
  height: auto !important;
352
352
  width: calc(100% - 2px) !important;
353
353
  top: 50px !important;
354
354
  left: 1px !important;
355
- `,Ele=ne(zO)(({theme:e})=>({color:e.palette.warning.main,width:"48px",height:"48px"})),Bb=({title:e,details:t,mainActionButtonProps:n,secondaryActionButtonProps:r,isError:o=!1,errorMessage:i})=>R.jsx(Sle,{children:o?R.jsxs(Uy,{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",height:"100%",children:[R.jsx(Ele,{}),R.jsx(Or,{variant:"h5",align:"center",sx:{fontWeight:"bold",marginTop:"8px"},"data-testid":"reports-no-rows-message",children:i})]}):R.jsx(yle,{title:e,details:t,mainActionButtonProps:n,secondaryActionButtonProps:r})}),Ple=(e,t)=>t==="en"?void 0:{toolbarFilters:e("datagrid.toolbarFilters"),toolbarFiltersLabel:e("datagrid.toolbarFiltersLabel"),toolbarFiltersTooltipHide:e("datagrid.toolbarFiltersTooltipHide"),toolbarColumns:e("datagrid.toolbarColumns"),noRowsLabel:e("datagrid.noRowsLabel"),noResultsOverlayLabel:e("datagrid.noResultsOverlayLabel"),errorOverlayDefaultLabel:e("datagrid.errorOverlayDefaultLabel"),filterPanelAddFilter:e("datagrid.filterPanelAddFilter"),columnHeaderSortIconLabel:e("datagrid.columnHeaderSortIconLabel"),filterPanelDeleteIconLabel:e("datagrid.filterPanelDeleteIconLabel"),filterPanelOperators:e("datagrid.filterPanelOperators"),filterPanelOperatorAnd:e("datagrid.filterPanelOperatorAnd"),filterPanelOperatorOr:e("datagrid.filterPanelOperatorOr"),filterPanelColumns:e("datagrid.filterPanelColumns"),filterPanelInputLabel:e("datagrid.filterPanelInputLabel"),filterPanelInputPlaceholder:e("datagrid.filterPanelInputPlaceholder"),filterOperatorContains:e("datagrid.filterOperatorContains"),filterOperatorEquals:e("datagrid.filterOperatorEquals"),filterOperatorStartsWith:e("datagrid.filterOperatorStartsWith"),filterOperatorEndsWith:e("datagrid.filterOperatorEndsWith"),filterOperatorIs:e("datagrid.filterOperatorIs"),filterOperatorNot:e("datagrid.filterOperatorNot"),filterOperatorAfter:e("datagrid.filterOperatorAfter"),filterOperatorOnOrAfter:e("datagrid.filterOperatorOnOrAfter"),filterOperatorBefore:e("datagrid.filterOperatorBefore"),filterOperatorOnOrBefore:e("datagrid.filterOperatorOnOrBefore"),filterOperatorIsEmpty:e("datagrid.filterOperatorIsEmpty"),filterOperatorIsNotEmpty:e("datagrid.filterOperatorIsNotEmpty"),filterOperatorIsAnyOf:e("datagrid.filterOperatorIsAnyOf"),MuiTablePagination:{labelRowsPerPage:e("datagrid.pagination.labelRowsPerPage")}},Tle={shouldForwardProp:e=>!["$minHeight"].includes(e)},Ile=ne(js,Tle)`
355
+ `,xle=ne(zO)(({theme:e})=>({color:e.palette.warning.main,width:"48px",height:"48px"})),Bb=({title:e,details:t,mainActionButtonProps:n,secondaryActionButtonProps:r,isError:o=!1,errorMessage:i})=>R.jsx(wle,{children:o?R.jsxs(Uy,{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",height:"100%",children:[R.jsx(xle,{}),R.jsx(Or,{variant:"h5",align:"center",sx:{fontWeight:"bold",marginTop:"8px"},"data-testid":"reports-no-rows-message",children:i})]}):R.jsx(vle,{title:e,details:t,mainActionButtonProps:n,secondaryActionButtonProps:r})}),Sle=(e,t)=>t==="en"?void 0:{toolbarFilters:e("datagrid.toolbarFilters"),toolbarFiltersLabel:e("datagrid.toolbarFiltersLabel"),toolbarFiltersTooltipHide:e("datagrid.toolbarFiltersTooltipHide"),toolbarColumns:e("datagrid.toolbarColumns"),noRowsLabel:e("datagrid.noRowsLabel"),noResultsOverlayLabel:e("datagrid.noResultsOverlayLabel"),errorOverlayDefaultLabel:e("datagrid.errorOverlayDefaultLabel"),filterPanelAddFilter:e("datagrid.filterPanelAddFilter"),columnHeaderSortIconLabel:e("datagrid.columnHeaderSortIconLabel"),filterPanelDeleteIconLabel:e("datagrid.filterPanelDeleteIconLabel"),filterPanelOperators:e("datagrid.filterPanelOperators"),filterPanelOperatorAnd:e("datagrid.filterPanelOperatorAnd"),filterPanelOperatorOr:e("datagrid.filterPanelOperatorOr"),filterPanelColumns:e("datagrid.filterPanelColumns"),filterPanelInputLabel:e("datagrid.filterPanelInputLabel"),filterPanelInputPlaceholder:e("datagrid.filterPanelInputPlaceholder"),filterOperatorContains:e("datagrid.filterOperatorContains"),filterOperatorEquals:e("datagrid.filterOperatorEquals"),filterOperatorStartsWith:e("datagrid.filterOperatorStartsWith"),filterOperatorEndsWith:e("datagrid.filterOperatorEndsWith"),filterOperatorIs:e("datagrid.filterOperatorIs"),filterOperatorNot:e("datagrid.filterOperatorNot"),filterOperatorAfter:e("datagrid.filterOperatorAfter"),filterOperatorOnOrAfter:e("datagrid.filterOperatorOnOrAfter"),filterOperatorBefore:e("datagrid.filterOperatorBefore"),filterOperatorOnOrBefore:e("datagrid.filterOperatorOnOrBefore"),filterOperatorIsEmpty:e("datagrid.filterOperatorIsEmpty"),filterOperatorIsNotEmpty:e("datagrid.filterOperatorIsNotEmpty"),filterOperatorIsAnyOf:e("datagrid.filterOperatorIsAnyOf"),MuiTablePagination:{labelRowsPerPage:e("datagrid.pagination.labelRowsPerPage")}},Ele={shouldForwardProp:e=>!["$minHeight"].includes(e)},Ple=ne(js,Ele)`
356
356
  border: none;
357
357
  border-radius: 8px;
358
358
 
@@ -460,8 +460,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
460
460
  .MuiDataGrid-virtualScrollerContent {
461
461
  min-height: ${({$minHeight:e})=>e?`${e}px`:"auto"} !important;
462
462
  }
463
- `,{muiXProLicense:Rle=""}=GC();Qc.setLicenseKey(Rle);const _le=({page:e,rows:t,rowCount:n=0,onPageChange:r,autoHeight:o=!0,components:i,rowHeight:s=52,pageSize:l=20,...u})=>{const{t:c,i18n:{language:f}}=Vs("common"),p=(C,b)=>{r(C+1,b)},h=It(()=>Ple(c,f),[c,f]),m=It(()=>n?void 0:200,[n]);return R.jsx(Ile,{variant:"outlined",$minHeight:m,children:R.jsx(cne,{disableDensitySelector:!0,disableColumnMenu:!0,disableSelectionOnClick:!0,disableColumnReorder:!0,disableMultipleColumnsSorting:!0,components:{ColumnSelectorIcon:Dp,ColumnSortedAscendingIcon:UO,ColumnSortedDescendingIcon:jO,NoRowsOverlay:Bb,NoResultsOverlay:Bb,LoadingOverlay:ZI,...i},componentsProps:{filterPanel:{linkOperators:[_r.And],filterFormProps:{operatorInputProps:{sx:{marginLeft:"8px",marginRight:"8px"}}},sx:{"& .MuiInputBase-input":{paddingTop:"4px",paddingBottom:"4px"},"& .MuiButton-root":{backgroundColor:"unset",color:"#1456E0"},"& .MuiButton-root:hover":{backgroundColor:"unset",color:"#1456E0"}}},pagination:{SelectProps:{inputProps:{"aria-labelledby":"datagrid-select-rows-per-page"},id:"datagrid-select-rows-per-page"}},panel:{placement:"bottom-end",sx:{"& .MuiPaper-root":{position:"relative",bottom:"70px"}}}},filterMode:"server",sortingMode:"server",paginationMode:"server",rowsPerPageOptions:[10,20,50,100],page:e-1,pageSize:l,onPageChange:p,rows:t,rowCount:n,rowHeight:s,autoHeight:o,localeText:{...h,MuiTablePagination:{labelDisplayedRows:({from:C,to:b,count:S})=>`${C.toLocaleString()} - ${b.toLocaleString()} ${c("of")} ${S.toLocaleString()}`}},...u})})};function Mv(e){return e==null?"":`${e}`}function Ole(e={}){const{separator:t,decimals:n}=e;return t?n?r=>r.toFixed(n).replace(".",t):r=>`${r}`.replace(".",t):n?r=>r.toFixed(n):r=>`${r}`}function WC(e={}){const t=typeof e.quote=="string"?e.quote:'"',n=typeof e.escapedQuote=="string"?e.escapedQuote:`${t}${t}`;if(!t||t===n)return o=>o;const r=new RegExp(t,"g");return o=>(o.includes(t)&&(o=o.replace(r,n)),`${t}${o}${t}`)}function Mle(e={stringFormatter:WC()}){return t=>e.stringFormatter(t.toString().slice(7,-1))}function Lle(e={stringFormatter:WC()}){return t=>{if(t===null)return"";let n=JSON.stringify(t);return n===void 0?"":(n[0]==='"'&&(n=n.replace(/^"(.+)"$/,"$1")),e.stringFormatter(n))}}const Ale=RegExp(`[^.[\\]]+|\\[(?:([^"'][^[]*)|(["'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))`,"g");function Dle(e){var t,n,r;const o=[];let i;for(;i=Ale.exec(e);)o.push((r=(t=i[3])!==null&&t!==void 0?t:(n=i[1])===null||n===void 0?void 0:n.trim())!==null&&r!==void 0?r:i[0]);return o}function bP(e,t,n){if(t in e){const i=e[t];return i===void 0?n:i}const r=Array.isArray(t)?t:Dle(t);let o=e;for(const i of r)if(o=o==null?void 0:o[i],o===void 0)return n;return o}function GO(e,t){try{return Array.isArray(t)?e.push(...t):e.push(t),e}catch{return e.concat(t)}}function Ub(e,t){let n=!0;return e.reduce((r,o)=>(o==null&&(o=""),n?(n=!1,`${o}`):`${r}${t}${o}`),"")}var yP;(function(e){e.header="header",e.undefined="undefined",e.boolean="boolean",e.number="number",e.bigint="bigint",e.string="string",e.symbol="symbol",e.function="function",e.object="object"})(yP||(yP={}));class $le{constructor(t){this.opts=this.preprocessOpts(t)}preprocessOpts(t){const n=Object.assign({},t);n.fields&&(n.fields=this.preprocessFieldsInfo(n.fields,n.defaultValue)),n.transforms=n.transforms||[];const r=n.formatters&&n.formatters.string||WC(),o=Lle({stringFormatter:r}),i={header:r,undefined:Mv,boolean:Mv,number:Ole(),bigint:Mv,string:r,symbol:Mle({stringFormatter:r}),function:o,object:o};return n.formatters=Object.assign(Object.assign({},i),n.formatters),n.delimiter=n.delimiter||",",n.eol=n.eol||`
464
- `,n.header=n.header!==!1,n.includeEmptyRows=n.includeEmptyRows||!1,n.withBOM=n.withBOM||!1,n}preprocessFieldsInfo(t,n){return t.map(r=>{if(typeof r=="string")return{label:r,value:o=>bP(o,r,n)};if(typeof r=="object"){const o="default"in r?r.default:n;if(typeof r.value=="string"){const i=r.value;return{label:r.label||r.value,value:s=>bP(s,i,o)}}if(typeof r.value=="function"){const i=r.label||r.value.name||"",s={label:i,default:o},l=r.value;return{label:i,value(u){const c=l(u,s);return c===void 0?o:c}}}}throw new Error("Invalid field info option. "+JSON.stringify(r))})}getHeader(){return Ub(this.opts.fields.map(t=>this.opts.formatters.header(t.label)),this.opts.delimiter)}preprocessRow(t){return this.opts.transforms.reduce((n,r)=>n.map(o=>r(o)).reduce(GO,[]),[t])}processRow(t){if(!t)return;const n=this.opts.fields.map(r=>this.processCell(t,r));if(!(!this.opts.includeEmptyRows&&n.every(r=>r==="")))return Ub(n,this.opts.delimiter)}processCell(t,n){return this.processValue(n.value(t))}processValue(t){const n=this.opts.formatters[typeof t];return n(t)}}class kle extends $le{constructor(t){super(t)}parse(t){const n=this.preprocessData(t);this.opts.fields=this.opts.fields||this.preprocessFieldsInfo(n.reduce((s,l)=>(Object.keys(l).forEach(u=>{s.includes(u)||s.push(u)}),s),[]),this.opts.defaultValue);const r=this.opts.header?this.getHeader():"",o=this.processData(n);return(this.opts.withBOM?"\uFEFF":"")+r+(r&&o?this.opts.eol:"")+o}preprocessData(t){const n=Array.isArray(t)?t:[t];if(!this.opts.fields){if(t==null||n.length===0)throw new Error('Data should not be empty or the "fields" option should be included');if(typeof n[0]!="object")throw new Error('Data items should be objects or the "fields" option should be included')}return this.opts.transforms.length===0?n:n.map(r=>this.preprocessRow(r)).reduce(GO,[])}processData(t){return Ub(t.map(n=>this.processRow(n)).filter(n=>n),this.opts.eol)}}var yr;(function(e){e[e.BACKSPACE=8]="BACKSPACE",e[e.FORM_FEED=12]="FORM_FEED",e[e.NEWLINE=10]="NEWLINE",e[e.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",e[e.TAB=9]="TAB",e[e.SPACE=32]="SPACE",e[e.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",e[e.QUOTATION_MARK=34]="QUOTATION_MARK",e[e.NUMBER_SIGN=35]="NUMBER_SIGN",e[e.DOLLAR_SIGN=36]="DOLLAR_SIGN",e[e.PERCENT_SIGN=37]="PERCENT_SIGN",e[e.AMPERSAND=38]="AMPERSAND",e[e.APOSTROPHE=39]="APOSTROPHE",e[e.LEFT_PARENTHESIS=40]="LEFT_PARENTHESIS",e[e.RIGHT_PARENTHESIS=41]="RIGHT_PARENTHESIS",e[e.ASTERISK=42]="ASTERISK",e[e.PLUS_SIGN=43]="PLUS_SIGN",e[e.COMMA=44]="COMMA",e[e.HYPHEN_MINUS=45]="HYPHEN_MINUS",e[e.FULL_STOP=46]="FULL_STOP",e[e.SOLIDUS=47]="SOLIDUS",e[e.DIGIT_ZERO=48]="DIGIT_ZERO",e[e.DIGIT_ONE=49]="DIGIT_ONE",e[e.DIGIT_TWO=50]="DIGIT_TWO",e[e.DIGIT_THREE=51]="DIGIT_THREE",e[e.DIGIT_FOUR=52]="DIGIT_FOUR",e[e.DIGIT_FIVE=53]="DIGIT_FIVE",e[e.DIGIT_SIX=54]="DIGIT_SIX",e[e.DIGIT_SEVEN=55]="DIGIT_SEVEN",e[e.DIGIT_EIGHT=56]="DIGIT_EIGHT",e[e.DIGIT_NINE=57]="DIGIT_NINE",e[e.COLON=58]="COLON",e[e.SEMICOLON=59]="SEMICOLON",e[e.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",e[e.EQUALS_SIGN=61]="EQUALS_SIGN",e[e.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",e[e.QUESTION_MARK=63]="QUESTION_MARK",e[e.COMMERCIAL_AT=64]="COMMERCIAL_AT",e[e.LATIN_CAPITAL_LETTER_A=65]="LATIN_CAPITAL_LETTER_A",e[e.LATIN_CAPITAL_LETTER_B=66]="LATIN_CAPITAL_LETTER_B",e[e.LATIN_CAPITAL_LETTER_C=67]="LATIN_CAPITAL_LETTER_C",e[e.LATIN_CAPITAL_LETTER_D=68]="LATIN_CAPITAL_LETTER_D",e[e.LATIN_CAPITAL_LETTER_E=69]="LATIN_CAPITAL_LETTER_E",e[e.LATIN_CAPITAL_LETTER_F=70]="LATIN_CAPITAL_LETTER_F",e[e.LATIN_CAPITAL_LETTER_G=71]="LATIN_CAPITAL_LETTER_G",e[e.LATIN_CAPITAL_LETTER_H=72]="LATIN_CAPITAL_LETTER_H",e[e.LATIN_CAPITAL_LETTER_I=73]="LATIN_CAPITAL_LETTER_I",e[e.LATIN_CAPITAL_LETTER_J=74]="LATIN_CAPITAL_LETTER_J",e[e.LATIN_CAPITAL_LETTER_K=75]="LATIN_CAPITAL_LETTER_K",e[e.LATIN_CAPITAL_LETTER_L=76]="LATIN_CAPITAL_LETTER_L",e[e.LATIN_CAPITAL_LETTER_M=77]="LATIN_CAPITAL_LETTER_M",e[e.LATIN_CAPITAL_LETTER_N=78]="LATIN_CAPITAL_LETTER_N",e[e.LATIN_CAPITAL_LETTER_O=79]="LATIN_CAPITAL_LETTER_O",e[e.LATIN_CAPITAL_LETTER_P=80]="LATIN_CAPITAL_LETTER_P",e[e.LATIN_CAPITAL_LETTER_Q=81]="LATIN_CAPITAL_LETTER_Q",e[e.LATIN_CAPITAL_LETTER_R=82]="LATIN_CAPITAL_LETTER_R",e[e.LATIN_CAPITAL_LETTER_S=83]="LATIN_CAPITAL_LETTER_S",e[e.LATIN_CAPITAL_LETTER_T=84]="LATIN_CAPITAL_LETTER_T",e[e.LATIN_CAPITAL_LETTER_U=85]="LATIN_CAPITAL_LETTER_U",e[e.LATIN_CAPITAL_LETTER_V=86]="LATIN_CAPITAL_LETTER_V",e[e.LATIN_CAPITAL_LETTER_W=87]="LATIN_CAPITAL_LETTER_W",e[e.LATIN_CAPITAL_LETTER_X=88]="LATIN_CAPITAL_LETTER_X",e[e.LATIN_CAPITAL_LETTER_Y=89]="LATIN_CAPITAL_LETTER_Y",e[e.LATIN_CAPITAL_LETTER_Z=90]="LATIN_CAPITAL_LETTER_Z",e[e.LEFT_SQUARE_BRACKET=91]="LEFT_SQUARE_BRACKET",e[e.REVERSE_SOLIDUS=92]="REVERSE_SOLIDUS",e[e.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",e[e.CIRCUMFLEX_ACCENT=94]="CIRCUMFLEX_ACCENT",e[e.LOW_LINE=95]="LOW_LINE",e[e.GRAVE_ACCENT=96]="GRAVE_ACCENT",e[e.LATIN_SMALL_LETTER_A=97]="LATIN_SMALL_LETTER_A",e[e.LATIN_SMALL_LETTER_B=98]="LATIN_SMALL_LETTER_B",e[e.LATIN_SMALL_LETTER_C=99]="LATIN_SMALL_LETTER_C",e[e.LATIN_SMALL_LETTER_D=100]="LATIN_SMALL_LETTER_D",e[e.LATIN_SMALL_LETTER_E=101]="LATIN_SMALL_LETTER_E",e[e.LATIN_SMALL_LETTER_F=102]="LATIN_SMALL_LETTER_F",e[e.LATIN_SMALL_LETTER_G=103]="LATIN_SMALL_LETTER_G",e[e.LATIN_SMALL_LETTER_H=104]="LATIN_SMALL_LETTER_H",e[e.LATIN_SMALL_LETTER_I=105]="LATIN_SMALL_LETTER_I",e[e.LATIN_SMALL_LETTER_J=106]="LATIN_SMALL_LETTER_J",e[e.LATIN_SMALL_LETTER_K=107]="LATIN_SMALL_LETTER_K",e[e.LATIN_SMALL_LETTER_L=108]="LATIN_SMALL_LETTER_L",e[e.LATIN_SMALL_LETTER_M=109]="LATIN_SMALL_LETTER_M",e[e.LATIN_SMALL_LETTER_N=110]="LATIN_SMALL_LETTER_N",e[e.LATIN_SMALL_LETTER_O=111]="LATIN_SMALL_LETTER_O",e[e.LATIN_SMALL_LETTER_P=112]="LATIN_SMALL_LETTER_P",e[e.LATIN_SMALL_LETTER_Q=113]="LATIN_SMALL_LETTER_Q",e[e.LATIN_SMALL_LETTER_R=114]="LATIN_SMALL_LETTER_R",e[e.LATIN_SMALL_LETTER_S=115]="LATIN_SMALL_LETTER_S",e[e.LATIN_SMALL_LETTER_T=116]="LATIN_SMALL_LETTER_T",e[e.LATIN_SMALL_LETTER_U=117]="LATIN_SMALL_LETTER_U",e[e.LATIN_SMALL_LETTER_V=118]="LATIN_SMALL_LETTER_V",e[e.LATIN_SMALL_LETTER_W=119]="LATIN_SMALL_LETTER_W",e[e.LATIN_SMALL_LETTER_X=120]="LATIN_SMALL_LETTER_X",e[e.LATIN_SMALL_LETTER_Y=121]="LATIN_SMALL_LETTER_Y",e[e.LATIN_SMALL_LETTER_Z=122]="LATIN_SMALL_LETTER_Z",e[e.LEFT_CURLY_BRACKET=123]="LEFT_CURLY_BRACKET",e[e.VERTICAL_LINE=124]="VERTICAL_LINE",e[e.RIGHT_CURLY_BRACKET=125]="RIGHT_CURLY_BRACKET",e[e.TILDE=126]="TILDE"})(yr||(yr={}));yr.QUOTATION_MARK+"",yr.QUOTATION_MARK,yr.REVERSE_SOLIDUS+"",yr.REVERSE_SOLIDUS,yr.SOLIDUS+"",yr.SOLIDUS,yr.LATIN_SMALL_LETTER_B+"",yr.BACKSPACE,yr.LATIN_SMALL_LETTER_F+"",yr.FORM_FEED,yr.LATIN_SMALL_LETTER_N+"",yr.NEWLINE,yr.LATIN_SMALL_LETTER_R+"",yr.CARRIAGE_RETURN,yr.LATIN_SMALL_LETTER_T+"",yr.TAB;var CP;(function(e){e[e.LEFT_BRACE=0]="LEFT_BRACE",e[e.RIGHT_BRACE=1]="RIGHT_BRACE",e[e.LEFT_BRACKET=2]="LEFT_BRACKET",e[e.RIGHT_BRACKET=3]="RIGHT_BRACKET",e[e.COLON=4]="COLON",e[e.COMMA=5]="COMMA",e[e.TRUE=6]="TRUE",e[e.FALSE=7]="FALSE",e[e.NULL=8]="NULL",e[e.STRING=9]="STRING",e[e.NUMBER=10]="NUMBER",e[e.SEPARATOR=11]="SEPARATOR"})(CP||(CP={}));var wP;(function(e){e[e.START=0]="START",e[e.ENDED=1]="ENDED",e[e.ERROR=2]="ERROR",e[e.TRUE1=3]="TRUE1",e[e.TRUE2=4]="TRUE2",e[e.TRUE3=5]="TRUE3",e[e.FALSE1=6]="FALSE1",e[e.FALSE2=7]="FALSE2",e[e.FALSE3=8]="FALSE3",e[e.FALSE4=9]="FALSE4",e[e.NULL1=10]="NULL1",e[e.NULL2=11]="NULL2",e[e.NULL3=12]="NULL3",e[e.STRING_DEFAULT=13]="STRING_DEFAULT",e[e.STRING_AFTER_BACKSLASH=14]="STRING_AFTER_BACKSLASH",e[e.STRING_UNICODE_DIGIT_1=15]="STRING_UNICODE_DIGIT_1",e[e.STRING_UNICODE_DIGIT_2=16]="STRING_UNICODE_DIGIT_2",e[e.STRING_UNICODE_DIGIT_3=17]="STRING_UNICODE_DIGIT_3",e[e.STRING_UNICODE_DIGIT_4=18]="STRING_UNICODE_DIGIT_4",e[e.STRING_INCOMPLETE_CHAR=19]="STRING_INCOMPLETE_CHAR",e[e.NUMBER_AFTER_INITIAL_MINUS=20]="NUMBER_AFTER_INITIAL_MINUS",e[e.NUMBER_AFTER_INITIAL_ZERO=21]="NUMBER_AFTER_INITIAL_ZERO",e[e.NUMBER_AFTER_INITIAL_NON_ZERO=22]="NUMBER_AFTER_INITIAL_NON_ZERO",e[e.NUMBER_AFTER_FULL_STOP=23]="NUMBER_AFTER_FULL_STOP",e[e.NUMBER_AFTER_DECIMAL=24]="NUMBER_AFTER_DECIMAL",e[e.NUMBER_AFTER_E=25]="NUMBER_AFTER_E",e[e.NUMBER_AFTER_E_AND_SIGN=26]="NUMBER_AFTER_E_AND_SIGN",e[e.NUMBER_AFTER_E_AND_DIGIT=27]="NUMBER_AFTER_E_AND_DIGIT",e[e.SEPARATOR=28]="SEPARATOR",e[e.BOM_OR_START=29]="BOM_OR_START",e[e.BOM=30]="BOM"})(wP||(wP={}));var xP;(function(e){e[e.OBJECT=0]="OBJECT",e[e.ARRAY=1]="ARRAY"})(xP||(xP={}));var SP;(function(e){e[e.VALUE=0]="VALUE",e[e.KEY=1]="KEY",e[e.COLON=2]="COLON",e[e.COMMA=3]="COMMA",e[e.ENDED=4]="ENDED",e[e.ERROR=5]="ERROR",e[e.SEPARATOR=6]="SEPARATOR"})(SP||(SP={}));const Fle=e=>Ao.chain(e).entries().filter(([t,n])=>n).mapValues(([t])=>t).toArray().value(),Nle=(e,t,n,r)=>{let o=Fle(t);return r&&(r instanceof Array?o=Ao.difference(o,r||[]):Object.entries(r).forEach(([i,s])=>{const l=o.indexOf(i);l>-1&&o.splice(l,1,s)})),new kle({fields:o.map(i=>{const s=e==null?void 0:e.find(u=>u.field===i);let l=(s==null?void 0:s.headerName)||i;return n&&(l=n(l)),{value:i,label:l}})})};ne("div")`
463
+ `,{muiXProLicense:Tle=""}=GC();Qc.setLicenseKey(Tle);const Ile=({page:e,rows:t,rowCount:n=0,onPageChange:r,autoHeight:o=!0,components:i,rowHeight:s=52,pageSize:l=20,...u})=>{const{t:c,i18n:{language:f}}=Vs("common"),p=(C,b)=>{r(C+1,b)},h=It(()=>Sle(c,f),[c,f]),m=It(()=>n?void 0:200,[n]);return R.jsx(Ple,{variant:"outlined",$minHeight:m,children:R.jsx(cne,{disableDensitySelector:!0,disableColumnMenu:!0,disableSelectionOnClick:!0,disableColumnReorder:!0,disableMultipleColumnsSorting:!0,components:{ColumnSelectorIcon:Dp,ColumnSortedAscendingIcon:UO,ColumnSortedDescendingIcon:jO,NoRowsOverlay:Bb,NoResultsOverlay:Bb,LoadingOverlay:ZI,...i},componentsProps:{filterPanel:{linkOperators:[_r.And],filterFormProps:{operatorInputProps:{sx:{marginLeft:"8px",marginRight:"8px"}}},sx:{"& .MuiInputBase-input":{paddingTop:"4px",paddingBottom:"4px"},"& .MuiButton-root":{backgroundColor:"unset",color:"#1456E0"},"& .MuiButton-root:hover":{backgroundColor:"unset",color:"#1456E0"}}},pagination:{SelectProps:{inputProps:{"aria-labelledby":"datagrid-select-rows-per-page"},id:"datagrid-select-rows-per-page"}},panel:{placement:"bottom-end",sx:{"& .MuiPaper-root":{position:"relative",bottom:"70px"}}}},filterMode:"server",sortingMode:"server",paginationMode:"server",rowsPerPageOptions:[10,20,50,100],page:e-1,pageSize:l,onPageChange:p,rows:t,rowCount:n,rowHeight:s,autoHeight:o,localeText:{...h,MuiTablePagination:{labelDisplayedRows:({from:C,to:b,count:S})=>`${C.toLocaleString()} - ${b.toLocaleString()} ${c("of")} ${S.toLocaleString()}`}},...u})})};function Mv(e){return e==null?"":`${e}`}function Rle(e={}){const{separator:t,decimals:n}=e;return t?n?r=>r.toFixed(n).replace(".",t):r=>`${r}`.replace(".",t):n?r=>r.toFixed(n):r=>`${r}`}function WC(e={}){const t=typeof e.quote=="string"?e.quote:'"',n=typeof e.escapedQuote=="string"?e.escapedQuote:`${t}${t}`;if(!t||t===n)return o=>o;const r=new RegExp(t,"g");return o=>(o.includes(t)&&(o=o.replace(r,n)),`${t}${o}${t}`)}function _le(e={stringFormatter:WC()}){return t=>e.stringFormatter(t.toString().slice(7,-1))}function Ole(e={stringFormatter:WC()}){return t=>{if(t===null)return"";let n=JSON.stringify(t);return n===void 0?"":(n[0]==='"'&&(n=n.replace(/^"(.+)"$/,"$1")),e.stringFormatter(n))}}const Mle=RegExp(`[^.[\\]]+|\\[(?:([^"'][^[]*)|(["'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))`,"g");function Lle(e){var t,n,r;const o=[];let i;for(;i=Mle.exec(e);)o.push((r=(t=i[3])!==null&&t!==void 0?t:(n=i[1])===null||n===void 0?void 0:n.trim())!==null&&r!==void 0?r:i[0]);return o}function bP(e,t,n){if(t in e){const i=e[t];return i===void 0?n:i}const r=Array.isArray(t)?t:Lle(t);let o=e;for(const i of r)if(o=o==null?void 0:o[i],o===void 0)return n;return o}function GO(e,t){try{return Array.isArray(t)?e.push(...t):e.push(t),e}catch{return e.concat(t)}}function Ub(e,t){let n=!0;return e.reduce((r,o)=>(o==null&&(o=""),n?(n=!1,`${o}`):`${r}${t}${o}`),"")}var yP;(function(e){e.header="header",e.undefined="undefined",e.boolean="boolean",e.number="number",e.bigint="bigint",e.string="string",e.symbol="symbol",e.function="function",e.object="object"})(yP||(yP={}));class Ale{constructor(t){this.opts=this.preprocessOpts(t)}preprocessOpts(t){const n=Object.assign({},t);n.fields&&(n.fields=this.preprocessFieldsInfo(n.fields,n.defaultValue)),n.transforms=n.transforms||[];const r=n.formatters&&n.formatters.string||WC(),o=Ole({stringFormatter:r}),i={header:r,undefined:Mv,boolean:Mv,number:Rle(),bigint:Mv,string:r,symbol:_le({stringFormatter:r}),function:o,object:o};return n.formatters=Object.assign(Object.assign({},i),n.formatters),n.delimiter=n.delimiter||",",n.eol=n.eol||`
464
+ `,n.header=n.header!==!1,n.includeEmptyRows=n.includeEmptyRows||!1,n.withBOM=n.withBOM||!1,n}preprocessFieldsInfo(t,n){return t.map(r=>{if(typeof r=="string")return{label:r,value:o=>bP(o,r,n)};if(typeof r=="object"){const o="default"in r?r.default:n;if(typeof r.value=="string"){const i=r.value;return{label:r.label||r.value,value:s=>bP(s,i,o)}}if(typeof r.value=="function"){const i=r.label||r.value.name||"",s={label:i,default:o},l=r.value;return{label:i,value(u){const c=l(u,s);return c===void 0?o:c}}}}throw new Error("Invalid field info option. "+JSON.stringify(r))})}getHeader(){return Ub(this.opts.fields.map(t=>this.opts.formatters.header(t.label)),this.opts.delimiter)}preprocessRow(t){return this.opts.transforms.reduce((n,r)=>n.map(o=>r(o)).reduce(GO,[]),[t])}processRow(t){if(!t)return;const n=this.opts.fields.map(r=>this.processCell(t,r));if(!(!this.opts.includeEmptyRows&&n.every(r=>r==="")))return Ub(n,this.opts.delimiter)}processCell(t,n){return this.processValue(n.value(t))}processValue(t){const n=this.opts.formatters[typeof t];return n(t)}}class Dle extends Ale{constructor(t){super(t)}parse(t){const n=this.preprocessData(t);this.opts.fields=this.opts.fields||this.preprocessFieldsInfo(n.reduce((s,l)=>(Object.keys(l).forEach(u=>{s.includes(u)||s.push(u)}),s),[]),this.opts.defaultValue);const r=this.opts.header?this.getHeader():"",o=this.processData(n);return(this.opts.withBOM?"\uFEFF":"")+r+(r&&o?this.opts.eol:"")+o}preprocessData(t){const n=Array.isArray(t)?t:[t];if(!this.opts.fields){if(t==null||n.length===0)throw new Error('Data should not be empty or the "fields" option should be included');if(typeof n[0]!="object")throw new Error('Data items should be objects or the "fields" option should be included')}return this.opts.transforms.length===0?n:n.map(r=>this.preprocessRow(r)).reduce(GO,[])}processData(t){return Ub(t.map(n=>this.processRow(n)).filter(n=>n),this.opts.eol)}}var yr;(function(e){e[e.BACKSPACE=8]="BACKSPACE",e[e.FORM_FEED=12]="FORM_FEED",e[e.NEWLINE=10]="NEWLINE",e[e.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",e[e.TAB=9]="TAB",e[e.SPACE=32]="SPACE",e[e.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",e[e.QUOTATION_MARK=34]="QUOTATION_MARK",e[e.NUMBER_SIGN=35]="NUMBER_SIGN",e[e.DOLLAR_SIGN=36]="DOLLAR_SIGN",e[e.PERCENT_SIGN=37]="PERCENT_SIGN",e[e.AMPERSAND=38]="AMPERSAND",e[e.APOSTROPHE=39]="APOSTROPHE",e[e.LEFT_PARENTHESIS=40]="LEFT_PARENTHESIS",e[e.RIGHT_PARENTHESIS=41]="RIGHT_PARENTHESIS",e[e.ASTERISK=42]="ASTERISK",e[e.PLUS_SIGN=43]="PLUS_SIGN",e[e.COMMA=44]="COMMA",e[e.HYPHEN_MINUS=45]="HYPHEN_MINUS",e[e.FULL_STOP=46]="FULL_STOP",e[e.SOLIDUS=47]="SOLIDUS",e[e.DIGIT_ZERO=48]="DIGIT_ZERO",e[e.DIGIT_ONE=49]="DIGIT_ONE",e[e.DIGIT_TWO=50]="DIGIT_TWO",e[e.DIGIT_THREE=51]="DIGIT_THREE",e[e.DIGIT_FOUR=52]="DIGIT_FOUR",e[e.DIGIT_FIVE=53]="DIGIT_FIVE",e[e.DIGIT_SIX=54]="DIGIT_SIX",e[e.DIGIT_SEVEN=55]="DIGIT_SEVEN",e[e.DIGIT_EIGHT=56]="DIGIT_EIGHT",e[e.DIGIT_NINE=57]="DIGIT_NINE",e[e.COLON=58]="COLON",e[e.SEMICOLON=59]="SEMICOLON",e[e.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",e[e.EQUALS_SIGN=61]="EQUALS_SIGN",e[e.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",e[e.QUESTION_MARK=63]="QUESTION_MARK",e[e.COMMERCIAL_AT=64]="COMMERCIAL_AT",e[e.LATIN_CAPITAL_LETTER_A=65]="LATIN_CAPITAL_LETTER_A",e[e.LATIN_CAPITAL_LETTER_B=66]="LATIN_CAPITAL_LETTER_B",e[e.LATIN_CAPITAL_LETTER_C=67]="LATIN_CAPITAL_LETTER_C",e[e.LATIN_CAPITAL_LETTER_D=68]="LATIN_CAPITAL_LETTER_D",e[e.LATIN_CAPITAL_LETTER_E=69]="LATIN_CAPITAL_LETTER_E",e[e.LATIN_CAPITAL_LETTER_F=70]="LATIN_CAPITAL_LETTER_F",e[e.LATIN_CAPITAL_LETTER_G=71]="LATIN_CAPITAL_LETTER_G",e[e.LATIN_CAPITAL_LETTER_H=72]="LATIN_CAPITAL_LETTER_H",e[e.LATIN_CAPITAL_LETTER_I=73]="LATIN_CAPITAL_LETTER_I",e[e.LATIN_CAPITAL_LETTER_J=74]="LATIN_CAPITAL_LETTER_J",e[e.LATIN_CAPITAL_LETTER_K=75]="LATIN_CAPITAL_LETTER_K",e[e.LATIN_CAPITAL_LETTER_L=76]="LATIN_CAPITAL_LETTER_L",e[e.LATIN_CAPITAL_LETTER_M=77]="LATIN_CAPITAL_LETTER_M",e[e.LATIN_CAPITAL_LETTER_N=78]="LATIN_CAPITAL_LETTER_N",e[e.LATIN_CAPITAL_LETTER_O=79]="LATIN_CAPITAL_LETTER_O",e[e.LATIN_CAPITAL_LETTER_P=80]="LATIN_CAPITAL_LETTER_P",e[e.LATIN_CAPITAL_LETTER_Q=81]="LATIN_CAPITAL_LETTER_Q",e[e.LATIN_CAPITAL_LETTER_R=82]="LATIN_CAPITAL_LETTER_R",e[e.LATIN_CAPITAL_LETTER_S=83]="LATIN_CAPITAL_LETTER_S",e[e.LATIN_CAPITAL_LETTER_T=84]="LATIN_CAPITAL_LETTER_T",e[e.LATIN_CAPITAL_LETTER_U=85]="LATIN_CAPITAL_LETTER_U",e[e.LATIN_CAPITAL_LETTER_V=86]="LATIN_CAPITAL_LETTER_V",e[e.LATIN_CAPITAL_LETTER_W=87]="LATIN_CAPITAL_LETTER_W",e[e.LATIN_CAPITAL_LETTER_X=88]="LATIN_CAPITAL_LETTER_X",e[e.LATIN_CAPITAL_LETTER_Y=89]="LATIN_CAPITAL_LETTER_Y",e[e.LATIN_CAPITAL_LETTER_Z=90]="LATIN_CAPITAL_LETTER_Z",e[e.LEFT_SQUARE_BRACKET=91]="LEFT_SQUARE_BRACKET",e[e.REVERSE_SOLIDUS=92]="REVERSE_SOLIDUS",e[e.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",e[e.CIRCUMFLEX_ACCENT=94]="CIRCUMFLEX_ACCENT",e[e.LOW_LINE=95]="LOW_LINE",e[e.GRAVE_ACCENT=96]="GRAVE_ACCENT",e[e.LATIN_SMALL_LETTER_A=97]="LATIN_SMALL_LETTER_A",e[e.LATIN_SMALL_LETTER_B=98]="LATIN_SMALL_LETTER_B",e[e.LATIN_SMALL_LETTER_C=99]="LATIN_SMALL_LETTER_C",e[e.LATIN_SMALL_LETTER_D=100]="LATIN_SMALL_LETTER_D",e[e.LATIN_SMALL_LETTER_E=101]="LATIN_SMALL_LETTER_E",e[e.LATIN_SMALL_LETTER_F=102]="LATIN_SMALL_LETTER_F",e[e.LATIN_SMALL_LETTER_G=103]="LATIN_SMALL_LETTER_G",e[e.LATIN_SMALL_LETTER_H=104]="LATIN_SMALL_LETTER_H",e[e.LATIN_SMALL_LETTER_I=105]="LATIN_SMALL_LETTER_I",e[e.LATIN_SMALL_LETTER_J=106]="LATIN_SMALL_LETTER_J",e[e.LATIN_SMALL_LETTER_K=107]="LATIN_SMALL_LETTER_K",e[e.LATIN_SMALL_LETTER_L=108]="LATIN_SMALL_LETTER_L",e[e.LATIN_SMALL_LETTER_M=109]="LATIN_SMALL_LETTER_M",e[e.LATIN_SMALL_LETTER_N=110]="LATIN_SMALL_LETTER_N",e[e.LATIN_SMALL_LETTER_O=111]="LATIN_SMALL_LETTER_O",e[e.LATIN_SMALL_LETTER_P=112]="LATIN_SMALL_LETTER_P",e[e.LATIN_SMALL_LETTER_Q=113]="LATIN_SMALL_LETTER_Q",e[e.LATIN_SMALL_LETTER_R=114]="LATIN_SMALL_LETTER_R",e[e.LATIN_SMALL_LETTER_S=115]="LATIN_SMALL_LETTER_S",e[e.LATIN_SMALL_LETTER_T=116]="LATIN_SMALL_LETTER_T",e[e.LATIN_SMALL_LETTER_U=117]="LATIN_SMALL_LETTER_U",e[e.LATIN_SMALL_LETTER_V=118]="LATIN_SMALL_LETTER_V",e[e.LATIN_SMALL_LETTER_W=119]="LATIN_SMALL_LETTER_W",e[e.LATIN_SMALL_LETTER_X=120]="LATIN_SMALL_LETTER_X",e[e.LATIN_SMALL_LETTER_Y=121]="LATIN_SMALL_LETTER_Y",e[e.LATIN_SMALL_LETTER_Z=122]="LATIN_SMALL_LETTER_Z",e[e.LEFT_CURLY_BRACKET=123]="LEFT_CURLY_BRACKET",e[e.VERTICAL_LINE=124]="VERTICAL_LINE",e[e.RIGHT_CURLY_BRACKET=125]="RIGHT_CURLY_BRACKET",e[e.TILDE=126]="TILDE"})(yr||(yr={}));yr.QUOTATION_MARK+"",yr.QUOTATION_MARK,yr.REVERSE_SOLIDUS+"",yr.REVERSE_SOLIDUS,yr.SOLIDUS+"",yr.SOLIDUS,yr.LATIN_SMALL_LETTER_B+"",yr.BACKSPACE,yr.LATIN_SMALL_LETTER_F+"",yr.FORM_FEED,yr.LATIN_SMALL_LETTER_N+"",yr.NEWLINE,yr.LATIN_SMALL_LETTER_R+"",yr.CARRIAGE_RETURN,yr.LATIN_SMALL_LETTER_T+"",yr.TAB;var CP;(function(e){e[e.LEFT_BRACE=0]="LEFT_BRACE",e[e.RIGHT_BRACE=1]="RIGHT_BRACE",e[e.LEFT_BRACKET=2]="LEFT_BRACKET",e[e.RIGHT_BRACKET=3]="RIGHT_BRACKET",e[e.COLON=4]="COLON",e[e.COMMA=5]="COMMA",e[e.TRUE=6]="TRUE",e[e.FALSE=7]="FALSE",e[e.NULL=8]="NULL",e[e.STRING=9]="STRING",e[e.NUMBER=10]="NUMBER",e[e.SEPARATOR=11]="SEPARATOR"})(CP||(CP={}));var wP;(function(e){e[e.START=0]="START",e[e.ENDED=1]="ENDED",e[e.ERROR=2]="ERROR",e[e.TRUE1=3]="TRUE1",e[e.TRUE2=4]="TRUE2",e[e.TRUE3=5]="TRUE3",e[e.FALSE1=6]="FALSE1",e[e.FALSE2=7]="FALSE2",e[e.FALSE3=8]="FALSE3",e[e.FALSE4=9]="FALSE4",e[e.NULL1=10]="NULL1",e[e.NULL2=11]="NULL2",e[e.NULL3=12]="NULL3",e[e.STRING_DEFAULT=13]="STRING_DEFAULT",e[e.STRING_AFTER_BACKSLASH=14]="STRING_AFTER_BACKSLASH",e[e.STRING_UNICODE_DIGIT_1=15]="STRING_UNICODE_DIGIT_1",e[e.STRING_UNICODE_DIGIT_2=16]="STRING_UNICODE_DIGIT_2",e[e.STRING_UNICODE_DIGIT_3=17]="STRING_UNICODE_DIGIT_3",e[e.STRING_UNICODE_DIGIT_4=18]="STRING_UNICODE_DIGIT_4",e[e.STRING_INCOMPLETE_CHAR=19]="STRING_INCOMPLETE_CHAR",e[e.NUMBER_AFTER_INITIAL_MINUS=20]="NUMBER_AFTER_INITIAL_MINUS",e[e.NUMBER_AFTER_INITIAL_ZERO=21]="NUMBER_AFTER_INITIAL_ZERO",e[e.NUMBER_AFTER_INITIAL_NON_ZERO=22]="NUMBER_AFTER_INITIAL_NON_ZERO",e[e.NUMBER_AFTER_FULL_STOP=23]="NUMBER_AFTER_FULL_STOP",e[e.NUMBER_AFTER_DECIMAL=24]="NUMBER_AFTER_DECIMAL",e[e.NUMBER_AFTER_E=25]="NUMBER_AFTER_E",e[e.NUMBER_AFTER_E_AND_SIGN=26]="NUMBER_AFTER_E_AND_SIGN",e[e.NUMBER_AFTER_E_AND_DIGIT=27]="NUMBER_AFTER_E_AND_DIGIT",e[e.SEPARATOR=28]="SEPARATOR",e[e.BOM_OR_START=29]="BOM_OR_START",e[e.BOM=30]="BOM"})(wP||(wP={}));var xP;(function(e){e[e.OBJECT=0]="OBJECT",e[e.ARRAY=1]="ARRAY"})(xP||(xP={}));var SP;(function(e){e[e.VALUE=0]="VALUE",e[e.KEY=1]="KEY",e[e.COLON=2]="COLON",e[e.COMMA=3]="COMMA",e[e.ENDED=4]="ENDED",e[e.ERROR=5]="ERROR",e[e.SEPARATOR=6]="SEPARATOR"})(SP||(SP={}));const $le=e=>Ao.chain(e).entries().filter(([t,n])=>n).mapValues(([t])=>t).toArray().value(),kle=(e,t,n,r)=>{let o=$le(t);return r&&(r instanceof Array?o=Ao.difference(o,r||[]):Object.entries(r).forEach(([i,s])=>{const l=o.indexOf(i);l>-1&&o.splice(l,1,s)})),new Dle({fields:o.map(i=>{const s=e==null?void 0:e.find(u=>u.field===i);let l=(s==null?void 0:s.headerName)||i;return n&&(l=n(l)),{value:i,label:l}})})};ne("div")`
465
465
  height: 100%;
466
466
  padding: 32px 40px;
467
467
 
@@ -510,7 +510,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
510
510
  `;ne(Jn)`
511
511
  margin-left: 13px;
512
512
  margin-right: -7px;
513
- `;function VO(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=VO(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function gg(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=VO(e))&&(r&&(r+=" "),r+=t);return r}let Hle={data:""},Ble=e=>{if(typeof window=="object"){let t=(e?e.querySelector("#_goober"):window._goober)||Object.assign(document.createElement("style"),{innerHTML:" ",id:"_goober"});return t.nonce=window.__nonce__,t.parentNode||(e||document.head).appendChild(t),t.firstChild}return e||Hle},Ule=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,jle=/\/\*[^]*?\*\/| +/g,EP=/\n+/g,ga=(e,t)=>{let n="",r="",o="";for(let i in e){let s=e[i];i[0]=="@"?i[1]=="i"?n=i+" "+s+";":r+=i[1]=="f"?ga(s,i):i+"{"+ga(s,i[1]=="k"?"":t)+"}":typeof s=="object"?r+=ga(s,t?t.replace(/([^,])+/g,l=>i.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,u=>/&/.test(u)?u.replace(/&/g,l):l?l+" "+u:u)):i):s!=null&&(i=/^--/.test(i)?i:i.replace(/[A-Z]/g,"-$&").toLowerCase(),o+=ga.p?ga.p(i,s):i+":"+s+";")}return n+(t&&o?t+"{"+o+"}":o)+r},Ni={},WO=e=>{if(typeof e=="object"){let t="";for(let n in e)t+=n+WO(e[n]);return t}return e},zle=(e,t,n,r,o)=>{let i=WO(e),s=Ni[i]||(Ni[i]=(u=>{let c=0,f=11;for(;c<u.length;)f=101*f+u.charCodeAt(c++)>>>0;return"go"+f})(i));if(!Ni[s]){let u=i!==e?e:(c=>{let f,p,h=[{}];for(;f=Ule.exec(c.replace(jle,""));)f[4]?h.shift():f[3]?(p=f[3].replace(EP," ").trim(),h.unshift(h[0][p]=h[0][p]||{})):h[0][f[1]]=f[2].replace(EP," ").trim();return h[0]})(e);Ni[s]=ga(o?{["@keyframes "+s]:u}:u,n?"":"."+s)}let l=n&&Ni.g?Ni.g:null;return n&&(Ni.g=Ni[s]),((u,c,f,p)=>{p?c.data=c.data.replace(p,u):c.data.indexOf(u)===-1&&(c.data=f?u+c.data:c.data+u)})(Ni[s],t,r,l),s},Gle=(e,t,n)=>e.reduce((r,o,i)=>{let s=t[i];if(s&&s.call){let l=s(n),u=l&&l.props&&l.props.className||/^go/.test(l)&&l;s=u?"."+u:l&&typeof l=="object"?l.props?"":ga(l,""):l===!1?"":l}return r+o+(s??"")},"");function qC(e){let t=this||{},n=e.call?e(t.p):e;return zle(n.unshift?n.raw?Gle(n,[].slice.call(arguments,1),t.p):n.reduce((r,o)=>Object.assign(r,o&&o.call?o(t.p):o),{}):n,Ble(t.target),t.g,t.o,t.k)}qC.bind({g:1});qC.bind({k:1});function Vle(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Wle(e,t,n){return t&&Vle(e.prototype,t),e}function Ls(){return Ls=Object.assign||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},Ls.apply(this,arguments)}function qle(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function KC(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}var PP=function(){return""},Kle=Ct.createContext({enqueueSnackbar:PP,closeSnackbar:PP}),ua={downXs:"@media (max-width:599.95px)",upSm:"@media (min-width:600px)"},Bf="unmounted",Cl="exited",wl="entering",tc="entered",TP="exiting",XC=function(e){qle(t,e);function t(r){var o;o=e.call(this,r)||this;var i=r.appear,s;return o.appearStatus=null,r.in?i?(s=Cl,o.appearStatus=wl):s=tc:r.unmountOnExit||r.mountOnEnter?s=Bf:s=Cl,o.state={status:s},o.nextCallback=null,o}t.getDerivedStateFromProps=function(o,i){var s=o.in;return s&&i.status===Bf?{status:Cl}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var i=null;if(o!==this.props){var s=this.state.status;this.props.in?s!==wl&&s!==tc&&(i=wl):(s===wl||s===tc)&&(i=TP)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,i=o,s=o;return o!=null&&typeof o!="number"&&typeof o!="string"&&(s=o.exit,i=o.enter),{exit:s,enter:i}},n.updateStatus=function(o,i){o===void 0&&(o=!1),i!==null?(this.cancelNextCallback(),i===wl?this.performEnter(o):this.performExit()):this.props.unmountOnExit&&this.state.status===Cl&&this.setState({status:Bf})},n.performEnter=function(o){var i=this,s=this.props.enter,l=o,u=this.getTimeouts();if(!o&&!s){this.safeSetState({status:tc},function(){i.props.onEntered&&i.props.onEntered(i.node,l)});return}this.props.onEnter&&this.props.onEnter(this.node,l),this.safeSetState({status:wl},function(){i.props.onEntering&&i.props.onEntering(i.node,l),i.onTransitionEnd(u.enter,function(){i.safeSetState({status:tc},function(){i.props.onEntered&&i.props.onEntered(i.node,l)})})})},n.performExit=function(){var o=this,i=this.props.exit,s=this.getTimeouts();if(!i){this.safeSetState({status:Cl},function(){o.props.onExited&&o.props.onExited(o.node)});return}this.props.onExit&&this.props.onExit(this.node),this.safeSetState({status:TP},function(){o.props.onExiting&&o.props.onExiting(o.node),o.onTransitionEnd(s.exit,function(){o.safeSetState({status:Cl},function(){o.props.onExited&&o.props.onExited(o.node)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&this.nextCallback.cancel&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,i){i=this.setNextCallback(i),this.setState(o,i)},n.setNextCallback=function(o){var i=this,s=!0;return this.nextCallback=function(){s&&(s=!1,i.nextCallback=null,o())},this.nextCallback.cancel=function(){s=!1},this.nextCallback},n.onTransitionEnd=function(o,i){this.setNextCallback(i);var s=o==null&&!this.props.addEndListener;if(!this.node||s){setTimeout(this.nextCallback,0);return}this.props.addEndListener&&this.props.addEndListener(this.node,this.nextCallback),o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===Bf)return null;var i=this.props,s=i.children,l=KC(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return s(o,l)},Wle(t,[{key:"node",get:function(){var o,i=(o=this.props.nodeRef)===null||o===void 0?void 0:o.current;if(!i)throw new Error("notistack - Custom snackbar is not refForwarding");return i}}]),t}(Ct.Component);function xl(){}XC.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:xl,onEntering:xl,onEntered:xl,onExit:xl,onExiting:xl,onExited:xl};function IP(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function jb(e,t){return It(function(){return e==null&&t==null?null:function(n){IP(e,n),IP(t,n)}},[e,t])}function eh(e){var t=e.timeout,n=e.style,r=n===void 0?{}:n,o=e.mode;return{duration:typeof t=="object"?t[o]||0:t,easing:r.transitionTimingFunction,delay:r.transitionDelay}}var zb={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},qO=function(t){t.scrollTop=t.scrollTop},RP=function(t){return Math.round(t)+"ms"};function Ll(e,t){e===void 0&&(e=["all"]);var n=t||{},r=n.duration,o=r===void 0?300:r,i=n.easing,s=i===void 0?zb.easeInOut:i,l=n.delay,u=l===void 0?0:l,c=Array.isArray(e)?e:[e];return c.map(function(f){var p=typeof o=="string"?o:RP(o),h=typeof u=="string"?u:RP(u);return f+" "+p+" "+s+" "+h}).join(",")}function Xle(e){return e&&e.ownerDocument||document}function KO(e){var t=Xle(e);return t.defaultView||window}function Qle(e,t){t===void 0&&(t=166);var n;function r(){for(var o=this,i=arguments.length,s=new Array(i),l=0;l<i;l++)s[l]=arguments[l];var u=function(){e.apply(o,s)};clearTimeout(n),n=setTimeout(u,t)}return r.clear=function(){clearTimeout(n)},r}function Jle(e,t){var n=t.getBoundingClientRect(),r=KO(t),o;if(t.fakeTransform)o=t.fakeTransform;else{var i=r.getComputedStyle(t);o=i.getPropertyValue("-webkit-transform")||i.getPropertyValue("transform")}var s=0,l=0;if(o&&o!=="none"&&typeof o=="string"){var u=o.split("(")[1].split(")")[0].split(",");s=parseInt(u[4],10),l=parseInt(u[5],10)}switch(e){case"left":return"translateX("+(r.innerWidth+s-n.left)+"px)";case"right":return"translateX(-"+(n.left+n.width-s)+"px)";case"up":return"translateY("+(r.innerHeight+l-n.top)+"px)";default:return"translateY(-"+(n.top+n.height-l)+"px)"}}function Uf(e,t){if(t){var n=Jle(e,t);n&&(t.style.webkitTransform=n,t.style.transform=n)}}var Zle=eu(function(e,t){var n=e.children,r=e.direction,o=r===void 0?"down":r,i=e.in,s=e.style,l=e.timeout,u=l===void 0?0:l,c=e.onEnter,f=e.onEntered,p=e.onExit,h=e.onExited,m=KC(e,["children","direction","in","style","timeout","onEnter","onEntered","onExit","onExited"]),C=Ut(null),b=jb(n.ref,C),S=jb(b,t),T=function(x,_){Uf(o,x),qO(x),c&&c(x,_)},P=function(x){var _=(s==null?void 0:s.transitionTimingFunction)||zb.easeOut,L=eh({timeout:u,mode:"enter",style:Ls({},s,{transitionTimingFunction:_})});x.style.webkitTransition=Ll("-webkit-transform",L),x.style.transition=Ll("transform",L),x.style.webkitTransform="none",x.style.transform="none"},E=function(x){var _=(s==null?void 0:s.transitionTimingFunction)||zb.sharp,L=eh({timeout:u,mode:"exit",style:Ls({},s,{transitionTimingFunction:_})});x.style.webkitTransition=Ll("-webkit-transform",L),x.style.transition=Ll("transform",L),Uf(o,x),p&&p(x)},w=function(x){x.style.webkitTransition="",x.style.transition="",h&&h(x)},M=gn(function(){C.current&&Uf(o,C.current)},[o]);return Dt(function(){if(!(i||o==="down"||o==="right")){var I=Qle(function(){C.current&&Uf(o,C.current)}),x=KO(C.current);return x.addEventListener("resize",I),function(){I.clear(),x.removeEventListener("resize",I)}}},[o,i]),Dt(function(){i||M()},[i,M]),Al(XC,Object.assign({appear:!0,nodeRef:C,onEnter:T,onEntered:f,onEntering:P,onExit:E,onExited:w,in:i,timeout:u},m),function(I,x){return mc(n,Ls({ref:S,style:Ls({visibility:I==="exited"&&!i?"hidden":void 0},s,{},n.props.style)},x))})});Zle.displayName="Slide";function mg(e){return Object.entries(e).reduce(function(t,n){var r,o=n[0],i=n[1];return Ls({},t,(r={},r[o]=qC(i),r))},{})}var rd={SnackbarContainer:"notistack-SnackbarContainer",Snackbar:"notistack-Snackbar",CollapseWrapper:"notistack-CollapseWrapper",MuiContent:"notistack-MuiContent",MuiContentVariant:function(t){return"notistack-MuiContent-"+t}},_P=mg({root:{height:0},entered:{height:"auto"}}),Lv="0px",Av=175,Yle=eu(function(e,t){var n=e.children,r=e.in,o=e.onExited,i=Ut(null),s=Ut(null),l=jb(t,s),u=function(){return i.current?i.current.clientHeight:0},c=function(b){b.style.height=Lv},f=function(b){var S=u(),T=eh({timeout:Av,mode:"enter"}),P=T.duration,E=T.easing;b.style.transitionDuration=typeof P=="string"?P:P+"ms",b.style.height=S+"px",b.style.transitionTimingFunction=E||""},p=function(b){b.style.height="auto"},h=function(b){b.style.height=u()+"px"},m=function(b){qO(b);var S=eh({timeout:Av,mode:"exit"}),T=S.duration,P=S.easing;b.style.transitionDuration=typeof T=="string"?T:T+"ms",b.style.height=Lv,b.style.transitionTimingFunction=P||""};return Al(XC,{in:r,unmountOnExit:!0,onEnter:c,onEntered:p,onEntering:f,onExit:h,onExited:o,onExiting:m,nodeRef:s,timeout:Av},function(C,b){return Al("div",Object.assign({ref:l,className:gg(_P.root,C==="entered"&&_P.entered),style:Ls({pointerEvents:"all",overflow:"hidden",minHeight:Lv,transition:Ll("height")},C==="entered"&&{overflow:"visible"},{},C==="exited"&&!r&&{visibility:"hidden"})},b),Al("div",{ref:i,className:rd.CollapseWrapper,style:{display:"flex",width:"100%"}},n))})});Yle.displayName="Collapse";var eue=typeof window<"u"?WP:Dt;function OP(e){var t=Ut(e);return eue(function(){t.current=e}),gn(function(){return t.current.apply(void 0,arguments)},[])}var tue=eu(function(e,t){var n=e.children,r=e.className,o=e.autoHideDuration,i=e.disableWindowBlurListener,s=i===void 0?!1:i,l=e.onClose,u=e.id,c=e.open,f=e.SnackbarProps,p=f===void 0?{}:f,h=Ut(),m=OP(function(){l&&l.apply(void 0,arguments)}),C=OP(function(E){!l||E==null||(h.current&&clearTimeout(h.current),h.current=setTimeout(function(){m(null,"timeout",u)},E))});Dt(function(){return c&&C(o),function(){h.current&&clearTimeout(h.current)}},[c,o,C]);var b=function(){h.current&&clearTimeout(h.current)},S=gn(function(){o!=null&&C(o*.5)},[o,C]),T=function(w){p.onMouseEnter&&p.onMouseEnter(w),b()},P=function(w){p.onMouseLeave&&p.onMouseLeave(w),S()};return Dt(function(){if(!s&&c)return window.addEventListener("focus",S),window.addEventListener("blur",b),function(){window.removeEventListener("focus",S),window.removeEventListener("blur",b)}},[s,S,c]),Al("div",Object.assign({ref:t},p,{className:gg(rd.Snackbar,r),onMouseEnter:T,onMouseLeave:P}),n)});tue.displayName="Snackbar";var Dv,nue=mg({root:(Dv={display:"flex",flexWrap:"wrap",flexGrow:1},Dv[ua.upSm]={flexGrow:"initial",minWidth:"288px"},Dv)}),XO=eu(function(e,t){var n=e.className,r=KC(e,["className"]);return Ct.createElement("div",Object.assign({ref:t,className:gg(nue.root,n)},r))});XO.displayName="SnackbarContent";var nc=mg({root:{backgroundColor:"#313131",fontSize:"0.875rem",lineHeight:1.43,letterSpacing:"0.01071em",color:"#fff",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)"},lessPadding:{paddingLeft:8*2.5+"px"},default:{backgroundColor:"#313131"},success:{backgroundColor:"#43a047"},error:{backgroundColor:"#d32f2f"},warning:{backgroundColor:"#ff9800"},info:{backgroundColor:"#2196f3"},message:{display:"flex",alignItems:"center",padding:"8px 0"},action:{display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:"16px",marginRight:"-8px"}}),MP="notistack-snackbar",rue=eu(function(e,t){var n=e.id,r=e.message,o=e.action,i=e.iconVariant,s=e.variant,l=e.hideIconVariant,u=e.style,c=e.className,f=i[s],p=o;return typeof p=="function"&&(p=p(n)),Ct.createElement(XO,{ref:t,role:"alert","aria-describedby":MP,style:u,className:gg(rd.MuiContent,rd.MuiContentVariant(s),nc.root,nc[s],c,!l&&f&&nc.lessPadding)},Ct.createElement("div",{id:MP,className:nc.message},l?null:f,r),p&&Ct.createElement("div",{className:nc.action},p))});rue.displayName="MaterialDesignContent";var rc,$v,jf,zf,kv,Hi={view:{default:20},snackbar:{default:6,dense:2}},LP="."+rd.CollapseWrapper,Fv=16;rc={boxSizing:"border-box",display:"flex",maxHeight:"100%",position:"fixed",zIndex:1400,height:"auto",width:"auto",transition:Ll(["top","right","bottom","left","max-width"],{duration:300,easing:"ease"}),pointerEvents:"none"},rc[LP]={padding:Hi.snackbar.default+"px 0px",transition:"padding 300ms ease 0ms"},rc.maxWidth="calc(100% - "+Hi.view.default*2+"px)",rc[ua.downXs]={width:"100%",maxWidth:"calc(100% - "+Fv*2+"px)"},$v={},$v[LP]={padding:Hi.snackbar.dense+"px 0px"},Hi.view.default-Hi.snackbar.default+"",Hi.view.default-Hi.snackbar.default+"",jf={left:Hi.view.default+"px"},jf[ua.upSm]={alignItems:"flex-start"},jf[ua.downXs]={left:Fv+"px"},zf={right:Hi.view.default+"px"},zf[ua.upSm]={alignItems:"flex-end"},zf[ua.downXs]={right:Fv+"px"},kv={left:"50%",transform:"translateX(-50%)"},kv[ua.upSm]={alignItems:"center"};var oue=function(){return mo(Kle)},QC=(e=>(e.ACTIVE_ACCOUNT="activeAccount",e.X_AUTH="x-auth",e))(QC||{});const AP="application/json",Nv={Accept:"Accept",Authorization:"Authorization",ContentType:"Content-Type"},QO=e=>e.replace(/([^:]\/)\/+/g,"$1"),Ld=({pathname:e,searchParams:t})=>{const{globalApiUrl:n}=GC(),r=new URL(n);return r.pathname+=e,r.href=QO(r.href),t&&Object.entries(t).forEach(([o,i])=>{!AC(i)&&i!==""&&(Array.isArray(i)?i.forEach(s=>r.searchParams.append(o,String(s))):r.searchParams.append(o,String(i)))}),r},iue=({pathname:e,searchParams:t})=>{const{globalPortalBaseUrl:n}=GC(),r=new URL(n);return r.pathname+=e,r.href=QO(r.href),t&&Object.entries(t).forEach(([o,i])=>{!AC(i)&&i!==""&&(Array.isArray(i)?i.forEach(s=>r.searchParams.append(o,String(s))):r.searchParams.append(o,String(i)))}),r},JC=()=>{const e=new Headers,t=uue();return e.set(Nv.Authorization,`Bearer ${t}`),e.set(Nv.Accept,AP),e.set(Nv.ContentType,AP),e},JO=async(e,t)=>{const n=e.toString(),r=await fetch(n,{mode:"cors",...t});return await Sie(r),r},vg=async(e,t,n)=>{const r=await JO(e,t);if(n)return r;try{return await r.json()}catch{return r.ok||console.error("The response is not valid JSON"),""}},sue=(e,t)=>{const n=JC();return vg(e,{method:"GET",headers:n},t)},aue=(e,t,n)=>{const r=JC();return vg(e,{method:"POST",headers:r,body:n?t:JSON.stringify(t)})},lue=(e,t)=>{const n=JC();return vg(e,{method:"PUT",headers:n,body:JSON.stringify(t)})};function uue(){const e=JSON.parse(localStorage.getItem(QC.X_AUTH));if(!e){const t="cannot read x-auth token from local storage";throw console.error(t),new Error(t)}return e.access_token}const cue=async(e,t,n,r,o)=>{const i=h=>{const m=Ld({pathname:t,searchParams:h});return e(m,o)};n.size=r;const s=[],l=[],u=await i(n),{totalPages:c}=u;if(c>1){let h=1;for(;h<c;)s.push(i({...n,page:h})),h++}const f=await Promise.all(s);l.push(...f);const p=u;return l.forEach(h=>{p.content.push(...h.content)}),p.numberOfElements=p.size=p.totalElements,p.first=!1,p.last=!0,p},Ta={baseFetch:JO,get:sue,handleFetch:vg,pagedRequest:cue,post:aue,put:lue};var bg=(e=>(e.ACCOUNT="ACCOUNT",e.ACCOUNT_CONTACTS="ACCOUNT_CONTACTS",e.ACCOUNT_ROLES="ACCOUNT_ROLES",e.ACCOUNT_USERS="ACCOUNT_USERS",e.ACCOUNTS="ACCOUNTS",e.ACTIVE_ACCOUNT="ACTIVE_ACCOUNT",e.ALERTS="alerts",e.ASSETS="ASSETS",e.ASSETS_TREE="ASSETS_TREE",e.ATTACHMENTS="ATTACHMENTS",e.ATTACHMENT_CONTENT="ATTACHMENT_CONTENT",e.CANCEL_CS_TICKET="CANCEL_CS_TICKET",e.CANCEL_FA_TICKET="CANCEL_FA_TICKET",e.CANCEL_RH_TICKET="CANCEL_RH_TICKET",e.CANCEL_SR_TICKET="CANCEL_SR_TICKET",e.CATEGORIES="CATEGORIES",e.COMPANIES="COMPANIES",e.CITIES="CITIES",e.CLIENT_SERVICES_TICKET="CLIENT_SERVICES_TICKET",e.CLIENT_SERVICES_TICKETS="CLIENT_SERVICES_TICKETS",e.COOKIES_PREFERENCE="COOKIES_PREFERENCE",e.COURIER_COMPANIES="COURIER_COMPANIES",e.CREATE_ACCOUNT_ROLE="create_account_role",e.CREATE_CUSTOMER_SUPPORT_TICKET="CREATE_CUSTOMER_SUPPORT_TICKET",e.CREATE_NOTIFICATION="CREATE_NOTIFICATION",e.CREATE_PERMISSION_GROUP="create_permission_group",e.CREATE_RELEASE="CREATE_RELEASE",e.CREATE_REMOTE_HANDS_TICKET="CREATE_REMOTE_HANDS_TICKET",e.CREATE_ROLE="CREATE_ROLE",e.CREATE_ROLE_ASSET_PERMISSION="CREATE_ROLE_ASSET_PERMISSION",e.CREATE_ROLE_PERMISSION="CREATE_ROLE_PERMISSION",e.CREATE_ROLE_PERMISSION_GROUP="CREATE_ROLE_PERMISSION_GROUP",e.CUSTOMER_SUPPORT_CONTACTS="CUSTOMER_SUPPORT_CONTACTS",e.CUSTOMER_SUPPORT_TICKETS="CUSTOMER_SUPPORT_TICKETS",e.DATE_FORMAT="DATE_FORMAT",e.DEFAULT_ACCOUNT="DEFAULT_ACCOUNT",e.DELETE_ROLE="DELETE_ROLE",e.DELETE_GROUP_PERMISSION="DELETE_GROUP_PERMISSION",e.DELETE_PERMISSION="DELETE_PERMISSION",e.DELETE_PERMISSION_GROUP="DELETE_PERMISSION_GROUP",e.DCIM_ALERTS="DCIM_ALERTS",e.DCIM_ALERT_INSTANCES="DCIM_ALERT_INSTANCES",e.DCIM_ALERT_INSTANCE_DETAILS="DCIM_ALERT_INSTANCE_DETAILS",e.DCIM_CHART_DATA="DCIM_CHART_DATA",e.DCIM_CHART_DATA_GROUP="DCIM_CHART_DATA_GROUP",e.DCIM_CHART_METADATA="DCIM_CHART_METADATA",e.DCIM_ENABLED_LOCATIONS="DCIM_ENABLED_LOCATIONS",e.DCIM_HISTORICAL_ALERTS="DCIM_HISTORICAL_ALERTS",e.DCIM_HISTORICAL_ALERT_INSTANCE_DETAILS="DCIM_HISTORICAL_ALERT_INSTANCE_DETAILS",e.DCIM_LOCATIONS="DCIM_LOCATIONS",e.DOWNLOAD_USERS="DOWNLOAD_USERS",e.EDIT_ACCOUNT="EDIT_ACCOUNT",e.EDIT_NOTIFICATION="EDIT_NOTIFICATION",e.EDIT_PERMISSION_GROUP="EDIT_PERMISSION_GROUP",e.EDIT_PRIVILEGE="EDIT_PRIVILEGE",e.EDIT_ROLE="EDIT_ROLE",e.EDIT_ROLE_PERMISSION="EDIT_ROLE_PERMISSION",e.EDIT_USER_PERMISSIONS="EDIT_USER_PERMISSIONS",e.EDIT_USER_PREFERENCES="EDIT_USER_PREFERENCES",e.EDIT_USER_PROFILE="EDIT_USER_PROFILE",e.ELEGIBLE_REPORTS="ELEGIBLE_REPORTS",e.FA_TICKET_APPROVE_OR_DENY="FA_TICKET_APPROVE_OR_DENY",e.FACILITY_ACCESS="FACILITY_ACCESS",e.FACILITY_ACCESS_CONTACT_ACCESS="FACILTY_ACCESS_CONTACT_ACCESS",e.FACILITY_ACCESS_CONTACTS="FACILTY_ACCESS_CONTACTS",e.FACILITY_ACCESS_TICKETS="FACILTY_ACCESS_TICKETS",e.LOCATIONS="LOCATIONS",e.LOCATIONS_PAGED="LOCATIONS_PAGED",e.POP_POES_LOCATIONS="POP_POES_LOCATIONS",e.METRICS_FIRST_TIME_LOGIN="METRICS_FIRST_TIME_LOGIN",e.METRICS_LOGIN="metrics_login",e.METRICS_LOGOUT="metrics_logout",e.METROS="metros",e.MODIFY_BADGE="MODIFY_BADGE",e.NOTIFICATION="NOTIFICATION",e.NOTIFICATIONS="NOTIFICATIONS",e.PERMISSION_GROUP_PERMISSIONS="PERMISSION_GROUP_PERMISSIONS",e.PERMISSION_GROUPS="PERMISSION_GROUPS",e.PERMISSIONS="PERMISSIONS",e.PERMISSIONS_PRIVILEGES="PERMISSIONS_PRIVILEGES",e.PERMISSIONS_AVAILABLE="PERMISSIONS_AVAILABLE",e.PLANNED_SITE_MAINTENANCE="PLANNED_SITE_MAINTENANCE",e.PORTAL_ROLES="PORTAL_ROLES",e.POSITIONS="POSITIONS",e.REGIONS="REGIONS",e.RELEASE="RELEASE",e.RELEASE_INFO="RELEASE_INFO",e.REMOVE_ACCOUNT="REMOVE_ACCOUNT",e.REMOVE_ACCOUNT_ROLE="REMOVE_ACCOUNT_ROLE",e.REMOTE_HANDS_TICKET="REMOTE_HANDS_TICKET",e.REMOTE_HANDS_CATEGORIES="REMOTE_HANDS_CATEGORIES",e.REPORT_FILE_DOWNLOAD="REPORT_FILE_DOWNLOAD",e.REPORTS="REPORTS",e.REQUEST_TYPES="REQUEST_TYPES",e.ROLE="ROLE",e.ROLE_ACCESS_PERMISSIONS="ROLE_ACCESS_PERMISSIONS",e.ROLE_ASSET_PERMISSIONS="ROLE_ASSET_PERMISSIONS",e.ROLE_NAMES="ROLE_NAMES",e.ROLE_PERMISSIONS="ROLE_PERMISSIONS",e.ROLE_PERMISSIONS_PRIVILEGES="ROLE_PERMISSIONS_PRIVILEGES",e.ROLE_PERMISSION_GROUP="ROLE_PERMISSION_GROUP",e.ROLES="ROLES",e.SERVICE_TICKETS="SERVICE_TICKETS",e.SERVICE_TICKETS_CANCELLATATION_REASONS="SERVICE_TICKETS_CANCELLATATION_REASONS",e.SET_ACTIVE_USER_ACCOUNT="SET_ACTIVE_USER_ACCOUNT",e.SHIPMENTS_TICKET="SHIPMENTS_TICKET",e.SHIPMENTS_TICKETS="SHIPMENTS_TICKETS",e.SITES="SITES",e.SITES_PAGED="SITES_PAGED",e.SITES_TREE="SITES_TREE",e.SUPPORT_DOWNLOAD="SUPPORT_DOWNLOAD",e.SUPPORT_TICKETS="SUPPORT_TICKETS",e.SUPPORT_TICKET="SUPPORT_TICKET",e.SUPPORT_TICKET_MESSAGES="SUPPORT_TICKET_MESSAGES",e.UNITS="UNITS",e.UNREAD_NOTIFICATIONS="UNREAD_NOTIFICATIONS",e.UPDATE_CUSTOMER_SUPPORT_TICKET="UPDATE_CUSTOMER_SUPPORT_TICKET",e.UPDATE_FA_TICKET="UPDATE_FA_TICKET",e.UPDATE_RELEASE="UPDATE_RELEASE",e.UPDATE_REMOTE_HANDS_TICKET="UPDATE_REMOTE_HANDS_TICKET",e.UPDATE_SHIPMENTS_TICKET="UPDATE_SHIPMENTS_TICKET",e.USER="USER",e.USER_ACCOUNT_CREATORS="USER_ACCOUNT_CREATORS",e.USER_ACCOUNTS="USER_ACCOUNTS",e.USER_ACCOUNT_APPROVALS="USER_ACCOUNT_APPROVALS",e.USER_ACCOUNT_STATUS="USER_ACCOUNT_STATUS",e.USER_ASSIGNMENTS="USER_ASSIGNMENTS",e.USER_BY_EMAIL="USER_BY_EMAIL",e.USER_CREATE="USER_CREATE",e.USER_DETAILS="USER_DETAILS",e.USER_EDIT="USER_EDIT",e.USER_ID="USER_ID",e.USER_INTERNAL_DOMAINS="USER_INTERNAL_DOMAINS",e.USER_IS_ON_BEHALF_OF="USER_IS_ON_BEHALF_OF",e.USER_LOGOUT="USER_LOGOUT",e.USER_ON_BEHALF_OF="USER_ON_BEHALF_OF",e.USER_PREFERENCES="USER_PREFERENCES",e.USER_PROFILE="USER_PROFILE",e.USER_RELEASE="USER_RELEASE",e.USER_UPDATE="USER_UPDATE",e.USERS_CONTACTS="USERS_CONTACTS",e.USERS_LOCATIONS="USERS_LOCATIONS",e.TECHNICAL_SUPPORT_CONTACTS="TECHNICAL_SUPPORT_CONTACTS",e.TIME_ZONE="TIME_ZONE",e.TIME_ZONE_WINDOWS_IANA="TIME_ZONE_WINDOWS_IANA",e.UPLOAD_ATTACHMENTS="UPLOAD_ATTACHMENTS",e.VALIDATE_ROLE="VALIDATE_ROLE",e.WORK_ORDER_DETAILS="WORK_ORDER_DETAILS",e.WORK_ORDERS="WORK_ORDERS",e.CONTACT_US="CONTACT_US",e))(bg||{});const due={shouldForwardProp:e=>!["$isDisabled","$isRequired"].includes(e)};ne("div",due)`
513
+ `;function VO(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=VO(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function gg(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=VO(e))&&(r&&(r+=" "),r+=t);return r}let Fle={data:""},Nle=e=>{if(typeof window=="object"){let t=(e?e.querySelector("#_goober"):window._goober)||Object.assign(document.createElement("style"),{innerHTML:" ",id:"_goober"});return t.nonce=window.__nonce__,t.parentNode||(e||document.head).appendChild(t),t.firstChild}return e||Fle},Hle=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,Ble=/\/\*[^]*?\*\/| +/g,EP=/\n+/g,ga=(e,t)=>{let n="",r="",o="";for(let i in e){let s=e[i];i[0]=="@"?i[1]=="i"?n=i+" "+s+";":r+=i[1]=="f"?ga(s,i):i+"{"+ga(s,i[1]=="k"?"":t)+"}":typeof s=="object"?r+=ga(s,t?t.replace(/([^,])+/g,l=>i.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,u=>/&/.test(u)?u.replace(/&/g,l):l?l+" "+u:u)):i):s!=null&&(i=/^--/.test(i)?i:i.replace(/[A-Z]/g,"-$&").toLowerCase(),o+=ga.p?ga.p(i,s):i+":"+s+";")}return n+(t&&o?t+"{"+o+"}":o)+r},Ni={},WO=e=>{if(typeof e=="object"){let t="";for(let n in e)t+=n+WO(e[n]);return t}return e},Ule=(e,t,n,r,o)=>{let i=WO(e),s=Ni[i]||(Ni[i]=(u=>{let c=0,f=11;for(;c<u.length;)f=101*f+u.charCodeAt(c++)>>>0;return"go"+f})(i));if(!Ni[s]){let u=i!==e?e:(c=>{let f,p,h=[{}];for(;f=Hle.exec(c.replace(Ble,""));)f[4]?h.shift():f[3]?(p=f[3].replace(EP," ").trim(),h.unshift(h[0][p]=h[0][p]||{})):h[0][f[1]]=f[2].replace(EP," ").trim();return h[0]})(e);Ni[s]=ga(o?{["@keyframes "+s]:u}:u,n?"":"."+s)}let l=n&&Ni.g?Ni.g:null;return n&&(Ni.g=Ni[s]),((u,c,f,p)=>{p?c.data=c.data.replace(p,u):c.data.indexOf(u)===-1&&(c.data=f?u+c.data:c.data+u)})(Ni[s],t,r,l),s},jle=(e,t,n)=>e.reduce((r,o,i)=>{let s=t[i];if(s&&s.call){let l=s(n),u=l&&l.props&&l.props.className||/^go/.test(l)&&l;s=u?"."+u:l&&typeof l=="object"?l.props?"":ga(l,""):l===!1?"":l}return r+o+(s??"")},"");function qC(e){let t=this||{},n=e.call?e(t.p):e;return Ule(n.unshift?n.raw?jle(n,[].slice.call(arguments,1),t.p):n.reduce((r,o)=>Object.assign(r,o&&o.call?o(t.p):o),{}):n,Nle(t.target),t.g,t.o,t.k)}qC.bind({g:1});qC.bind({k:1});function zle(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Gle(e,t,n){return t&&zle(e.prototype,t),e}function Ls(){return Ls=Object.assign||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},Ls.apply(this,arguments)}function Vle(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function KC(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}var PP=function(){return""},Wle=Ct.createContext({enqueueSnackbar:PP,closeSnackbar:PP}),ua={downXs:"@media (max-width:599.95px)",upSm:"@media (min-width:600px)"},Bf="unmounted",Cl="exited",wl="entering",tc="entered",TP="exiting",XC=function(e){Vle(t,e);function t(r){var o;o=e.call(this,r)||this;var i=r.appear,s;return o.appearStatus=null,r.in?i?(s=Cl,o.appearStatus=wl):s=tc:r.unmountOnExit||r.mountOnEnter?s=Bf:s=Cl,o.state={status:s},o.nextCallback=null,o}t.getDerivedStateFromProps=function(o,i){var s=o.in;return s&&i.status===Bf?{status:Cl}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var i=null;if(o!==this.props){var s=this.state.status;this.props.in?s!==wl&&s!==tc&&(i=wl):(s===wl||s===tc)&&(i=TP)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,i=o,s=o;return o!=null&&typeof o!="number"&&typeof o!="string"&&(s=o.exit,i=o.enter),{exit:s,enter:i}},n.updateStatus=function(o,i){o===void 0&&(o=!1),i!==null?(this.cancelNextCallback(),i===wl?this.performEnter(o):this.performExit()):this.props.unmountOnExit&&this.state.status===Cl&&this.setState({status:Bf})},n.performEnter=function(o){var i=this,s=this.props.enter,l=o,u=this.getTimeouts();if(!o&&!s){this.safeSetState({status:tc},function(){i.props.onEntered&&i.props.onEntered(i.node,l)});return}this.props.onEnter&&this.props.onEnter(this.node,l),this.safeSetState({status:wl},function(){i.props.onEntering&&i.props.onEntering(i.node,l),i.onTransitionEnd(u.enter,function(){i.safeSetState({status:tc},function(){i.props.onEntered&&i.props.onEntered(i.node,l)})})})},n.performExit=function(){var o=this,i=this.props.exit,s=this.getTimeouts();if(!i){this.safeSetState({status:Cl},function(){o.props.onExited&&o.props.onExited(o.node)});return}this.props.onExit&&this.props.onExit(this.node),this.safeSetState({status:TP},function(){o.props.onExiting&&o.props.onExiting(o.node),o.onTransitionEnd(s.exit,function(){o.safeSetState({status:Cl},function(){o.props.onExited&&o.props.onExited(o.node)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&this.nextCallback.cancel&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,i){i=this.setNextCallback(i),this.setState(o,i)},n.setNextCallback=function(o){var i=this,s=!0;return this.nextCallback=function(){s&&(s=!1,i.nextCallback=null,o())},this.nextCallback.cancel=function(){s=!1},this.nextCallback},n.onTransitionEnd=function(o,i){this.setNextCallback(i);var s=o==null&&!this.props.addEndListener;if(!this.node||s){setTimeout(this.nextCallback,0);return}this.props.addEndListener&&this.props.addEndListener(this.node,this.nextCallback),o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===Bf)return null;var i=this.props,s=i.children,l=KC(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return s(o,l)},Gle(t,[{key:"node",get:function(){var o,i=(o=this.props.nodeRef)===null||o===void 0?void 0:o.current;if(!i)throw new Error("notistack - Custom snackbar is not refForwarding");return i}}]),t}(Ct.Component);function xl(){}XC.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:xl,onEntering:xl,onEntered:xl,onExit:xl,onExiting:xl,onExited:xl};function IP(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function jb(e,t){return It(function(){return e==null&&t==null?null:function(n){IP(e,n),IP(t,n)}},[e,t])}function eh(e){var t=e.timeout,n=e.style,r=n===void 0?{}:n,o=e.mode;return{duration:typeof t=="object"?t[o]||0:t,easing:r.transitionTimingFunction,delay:r.transitionDelay}}var zb={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},qO=function(t){t.scrollTop=t.scrollTop},RP=function(t){return Math.round(t)+"ms"};function Ll(e,t){e===void 0&&(e=["all"]);var n=t||{},r=n.duration,o=r===void 0?300:r,i=n.easing,s=i===void 0?zb.easeInOut:i,l=n.delay,u=l===void 0?0:l,c=Array.isArray(e)?e:[e];return c.map(function(f){var p=typeof o=="string"?o:RP(o),h=typeof u=="string"?u:RP(u);return f+" "+p+" "+s+" "+h}).join(",")}function qle(e){return e&&e.ownerDocument||document}function KO(e){var t=qle(e);return t.defaultView||window}function Kle(e,t){t===void 0&&(t=166);var n;function r(){for(var o=this,i=arguments.length,s=new Array(i),l=0;l<i;l++)s[l]=arguments[l];var u=function(){e.apply(o,s)};clearTimeout(n),n=setTimeout(u,t)}return r.clear=function(){clearTimeout(n)},r}function Xle(e,t){var n=t.getBoundingClientRect(),r=KO(t),o;if(t.fakeTransform)o=t.fakeTransform;else{var i=r.getComputedStyle(t);o=i.getPropertyValue("-webkit-transform")||i.getPropertyValue("transform")}var s=0,l=0;if(o&&o!=="none"&&typeof o=="string"){var u=o.split("(")[1].split(")")[0].split(",");s=parseInt(u[4],10),l=parseInt(u[5],10)}switch(e){case"left":return"translateX("+(r.innerWidth+s-n.left)+"px)";case"right":return"translateX(-"+(n.left+n.width-s)+"px)";case"up":return"translateY("+(r.innerHeight+l-n.top)+"px)";default:return"translateY(-"+(n.top+n.height-l)+"px)"}}function Uf(e,t){if(t){var n=Xle(e,t);n&&(t.style.webkitTransform=n,t.style.transform=n)}}var Qle=eu(function(e,t){var n=e.children,r=e.direction,o=r===void 0?"down":r,i=e.in,s=e.style,l=e.timeout,u=l===void 0?0:l,c=e.onEnter,f=e.onEntered,p=e.onExit,h=e.onExited,m=KC(e,["children","direction","in","style","timeout","onEnter","onEntered","onExit","onExited"]),C=Ut(null),b=jb(n.ref,C),S=jb(b,t),T=function(x,_){Uf(o,x),qO(x),c&&c(x,_)},P=function(x){var _=(s==null?void 0:s.transitionTimingFunction)||zb.easeOut,L=eh({timeout:u,mode:"enter",style:Ls({},s,{transitionTimingFunction:_})});x.style.webkitTransition=Ll("-webkit-transform",L),x.style.transition=Ll("transform",L),x.style.webkitTransform="none",x.style.transform="none"},E=function(x){var _=(s==null?void 0:s.transitionTimingFunction)||zb.sharp,L=eh({timeout:u,mode:"exit",style:Ls({},s,{transitionTimingFunction:_})});x.style.webkitTransition=Ll("-webkit-transform",L),x.style.transition=Ll("transform",L),Uf(o,x),p&&p(x)},w=function(x){x.style.webkitTransition="",x.style.transition="",h&&h(x)},M=gn(function(){C.current&&Uf(o,C.current)},[o]);return Dt(function(){if(!(i||o==="down"||o==="right")){var I=Kle(function(){C.current&&Uf(o,C.current)}),x=KO(C.current);return x.addEventListener("resize",I),function(){I.clear(),x.removeEventListener("resize",I)}}},[o,i]),Dt(function(){i||M()},[i,M]),Al(XC,Object.assign({appear:!0,nodeRef:C,onEnter:T,onEntered:f,onEntering:P,onExit:E,onExited:w,in:i,timeout:u},m),function(I,x){return mc(n,Ls({ref:S,style:Ls({visibility:I==="exited"&&!i?"hidden":void 0},s,{},n.props.style)},x))})});Qle.displayName="Slide";function mg(e){return Object.entries(e).reduce(function(t,n){var r,o=n[0],i=n[1];return Ls({},t,(r={},r[o]=qC(i),r))},{})}var rd={SnackbarContainer:"notistack-SnackbarContainer",Snackbar:"notistack-Snackbar",CollapseWrapper:"notistack-CollapseWrapper",MuiContent:"notistack-MuiContent",MuiContentVariant:function(t){return"notistack-MuiContent-"+t}},_P=mg({root:{height:0},entered:{height:"auto"}}),Lv="0px",Av=175,Jle=eu(function(e,t){var n=e.children,r=e.in,o=e.onExited,i=Ut(null),s=Ut(null),l=jb(t,s),u=function(){return i.current?i.current.clientHeight:0},c=function(b){b.style.height=Lv},f=function(b){var S=u(),T=eh({timeout:Av,mode:"enter"}),P=T.duration,E=T.easing;b.style.transitionDuration=typeof P=="string"?P:P+"ms",b.style.height=S+"px",b.style.transitionTimingFunction=E||""},p=function(b){b.style.height="auto"},h=function(b){b.style.height=u()+"px"},m=function(b){qO(b);var S=eh({timeout:Av,mode:"exit"}),T=S.duration,P=S.easing;b.style.transitionDuration=typeof T=="string"?T:T+"ms",b.style.height=Lv,b.style.transitionTimingFunction=P||""};return Al(XC,{in:r,unmountOnExit:!0,onEnter:c,onEntered:p,onEntering:f,onExit:h,onExited:o,onExiting:m,nodeRef:s,timeout:Av},function(C,b){return Al("div",Object.assign({ref:l,className:gg(_P.root,C==="entered"&&_P.entered),style:Ls({pointerEvents:"all",overflow:"hidden",minHeight:Lv,transition:Ll("height")},C==="entered"&&{overflow:"visible"},{},C==="exited"&&!r&&{visibility:"hidden"})},b),Al("div",{ref:i,className:rd.CollapseWrapper,style:{display:"flex",width:"100%"}},n))})});Jle.displayName="Collapse";var Zle=typeof window<"u"?WP:Dt;function OP(e){var t=Ut(e);return Zle(function(){t.current=e}),gn(function(){return t.current.apply(void 0,arguments)},[])}var Yle=eu(function(e,t){var n=e.children,r=e.className,o=e.autoHideDuration,i=e.disableWindowBlurListener,s=i===void 0?!1:i,l=e.onClose,u=e.id,c=e.open,f=e.SnackbarProps,p=f===void 0?{}:f,h=Ut(),m=OP(function(){l&&l.apply(void 0,arguments)}),C=OP(function(E){!l||E==null||(h.current&&clearTimeout(h.current),h.current=setTimeout(function(){m(null,"timeout",u)},E))});Dt(function(){return c&&C(o),function(){h.current&&clearTimeout(h.current)}},[c,o,C]);var b=function(){h.current&&clearTimeout(h.current)},S=gn(function(){o!=null&&C(o*.5)},[o,C]),T=function(w){p.onMouseEnter&&p.onMouseEnter(w),b()},P=function(w){p.onMouseLeave&&p.onMouseLeave(w),S()};return Dt(function(){if(!s&&c)return window.addEventListener("focus",S),window.addEventListener("blur",b),function(){window.removeEventListener("focus",S),window.removeEventListener("blur",b)}},[s,S,c]),Al("div",Object.assign({ref:t},p,{className:gg(rd.Snackbar,r),onMouseEnter:T,onMouseLeave:P}),n)});Yle.displayName="Snackbar";var Dv,eue=mg({root:(Dv={display:"flex",flexWrap:"wrap",flexGrow:1},Dv[ua.upSm]={flexGrow:"initial",minWidth:"288px"},Dv)}),XO=eu(function(e,t){var n=e.className,r=KC(e,["className"]);return Ct.createElement("div",Object.assign({ref:t,className:gg(eue.root,n)},r))});XO.displayName="SnackbarContent";var nc=mg({root:{backgroundColor:"#313131",fontSize:"0.875rem",lineHeight:1.43,letterSpacing:"0.01071em",color:"#fff",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)"},lessPadding:{paddingLeft:8*2.5+"px"},default:{backgroundColor:"#313131"},success:{backgroundColor:"#43a047"},error:{backgroundColor:"#d32f2f"},warning:{backgroundColor:"#ff9800"},info:{backgroundColor:"#2196f3"},message:{display:"flex",alignItems:"center",padding:"8px 0"},action:{display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:"16px",marginRight:"-8px"}}),MP="notistack-snackbar",tue=eu(function(e,t){var n=e.id,r=e.message,o=e.action,i=e.iconVariant,s=e.variant,l=e.hideIconVariant,u=e.style,c=e.className,f=i[s],p=o;return typeof p=="function"&&(p=p(n)),Ct.createElement(XO,{ref:t,role:"alert","aria-describedby":MP,style:u,className:gg(rd.MuiContent,rd.MuiContentVariant(s),nc.root,nc[s],c,!l&&f&&nc.lessPadding)},Ct.createElement("div",{id:MP,className:nc.message},l?null:f,r),p&&Ct.createElement("div",{className:nc.action},p))});tue.displayName="MaterialDesignContent";var rc,$v,jf,zf,kv,Hi={view:{default:20},snackbar:{default:6,dense:2}},LP="."+rd.CollapseWrapper,Fv=16;rc={boxSizing:"border-box",display:"flex",maxHeight:"100%",position:"fixed",zIndex:1400,height:"auto",width:"auto",transition:Ll(["top","right","bottom","left","max-width"],{duration:300,easing:"ease"}),pointerEvents:"none"},rc[LP]={padding:Hi.snackbar.default+"px 0px",transition:"padding 300ms ease 0ms"},rc.maxWidth="calc(100% - "+Hi.view.default*2+"px)",rc[ua.downXs]={width:"100%",maxWidth:"calc(100% - "+Fv*2+"px)"},$v={},$v[LP]={padding:Hi.snackbar.dense+"px 0px"},Hi.view.default-Hi.snackbar.default+"",Hi.view.default-Hi.snackbar.default+"",jf={left:Hi.view.default+"px"},jf[ua.upSm]={alignItems:"flex-start"},jf[ua.downXs]={left:Fv+"px"},zf={right:Hi.view.default+"px"},zf[ua.upSm]={alignItems:"flex-end"},zf[ua.downXs]={right:Fv+"px"},kv={left:"50%",transform:"translateX(-50%)"},kv[ua.upSm]={alignItems:"center"};var nue=function(){return mo(Wle)},QC=(e=>(e.ACTIVE_ACCOUNT="activeAccount",e.X_AUTH="x-auth",e))(QC||{});const AP="application/json",Nv={Accept:"Accept",Authorization:"Authorization",ContentType:"Content-Type"},QO=e=>e.replace(/([^:]\/)\/+/g,"$1"),Ld=({pathname:e,searchParams:t})=>{const{globalApiUrl:n}=GC(),r=new URL(n);return r.pathname+=e,r.href=QO(r.href),t&&Object.entries(t).forEach(([o,i])=>{!AC(i)&&i!==""&&(Array.isArray(i)?i.forEach(s=>r.searchParams.append(o,String(s))):r.searchParams.append(o,String(i)))}),r},rue=({pathname:e,searchParams:t})=>{const{globalPortalBaseUrl:n}=GC(),r=new URL(n);return r.pathname+=e,r.href=QO(r.href),t&&Object.entries(t).forEach(([o,i])=>{!AC(i)&&i!==""&&(Array.isArray(i)?i.forEach(s=>r.searchParams.append(o,String(s))):r.searchParams.append(o,String(i)))}),r},JC=()=>{const e=new Headers,t=aue();return e.set(Nv.Authorization,`Bearer ${t}`),e.set(Nv.Accept,AP),e.set(Nv.ContentType,AP),e},JO=async(e,t)=>{const n=e.toString(),r=await fetch(n,{mode:"cors",...t});return await Sie(r),r},vg=async(e,t,n)=>{const r=await JO(e,t);if(n)return r;try{return await r.json()}catch{return r.ok||console.error("The response is not valid JSON"),""}},oue=(e,t)=>{const n=JC();return vg(e,{method:"GET",headers:n},t)},iue=(e,t,n)=>{const r=JC();return vg(e,{method:"POST",headers:r,body:n?t:JSON.stringify(t)})},sue=(e,t)=>{const n=JC();return vg(e,{method:"PUT",headers:n,body:JSON.stringify(t)})};function aue(){const e=JSON.parse(localStorage.getItem(QC.X_AUTH));if(!e){const t="cannot read x-auth token from local storage";throw console.error(t),new Error(t)}return e.access_token}const lue=async(e,t,n,r,o)=>{const i=h=>{const m=Ld({pathname:t,searchParams:h});return e(m,o)};n.size=r;const s=[],l=[],u=await i(n),{totalPages:c}=u;if(c>1){let h=1;for(;h<c;)s.push(i({...n,page:h})),h++}const f=await Promise.all(s);l.push(...f);const p=u;return l.forEach(h=>{p.content.push(...h.content)}),p.numberOfElements=p.size=p.totalElements,p.first=!1,p.last=!0,p},Ta={baseFetch:JO,get:oue,handleFetch:vg,pagedRequest:lue,post:iue,put:sue};var bg=(e=>(e.ACCOUNT="ACCOUNT",e.ACCOUNT_CONTACTS="ACCOUNT_CONTACTS",e.ACCOUNT_ROLES="ACCOUNT_ROLES",e.ACCOUNT_USERS="ACCOUNT_USERS",e.ACCOUNTS="ACCOUNTS",e.ACTIVE_ACCOUNT="ACTIVE_ACCOUNT",e.ALERTS="alerts",e.ASSETS="ASSETS",e.ASSETS_TREE="ASSETS_TREE",e.ATTACHMENTS="ATTACHMENTS",e.ATTACHMENT_CONTENT="ATTACHMENT_CONTENT",e.CANCEL_CS_TICKET="CANCEL_CS_TICKET",e.CANCEL_FA_TICKET="CANCEL_FA_TICKET",e.CANCEL_RH_TICKET="CANCEL_RH_TICKET",e.CANCEL_SR_TICKET="CANCEL_SR_TICKET",e.CATEGORIES="CATEGORIES",e.COMPANIES="COMPANIES",e.CITIES="CITIES",e.CLIENT_SERVICES_TICKET="CLIENT_SERVICES_TICKET",e.CLIENT_SERVICES_TICKETS="CLIENT_SERVICES_TICKETS",e.COOKIES_PREFERENCE="COOKIES_PREFERENCE",e.COURIER_COMPANIES="COURIER_COMPANIES",e.CREATE_ACCOUNT_ROLE="create_account_role",e.CREATE_CUSTOMER_SUPPORT_TICKET="CREATE_CUSTOMER_SUPPORT_TICKET",e.CREATE_NOTIFICATION="CREATE_NOTIFICATION",e.CREATE_PERMISSION_GROUP="create_permission_group",e.CREATE_RELEASE="CREATE_RELEASE",e.CREATE_REMOTE_HANDS_TICKET="CREATE_REMOTE_HANDS_TICKET",e.CREATE_ROLE="CREATE_ROLE",e.CREATE_ROLE_ASSET_PERMISSION="CREATE_ROLE_ASSET_PERMISSION",e.CREATE_ROLE_PERMISSION="CREATE_ROLE_PERMISSION",e.CREATE_ROLE_PERMISSION_GROUP="CREATE_ROLE_PERMISSION_GROUP",e.CUSTOMER_SUPPORT_CONTACTS="CUSTOMER_SUPPORT_CONTACTS",e.CUSTOMER_SUPPORT_TICKETS="CUSTOMER_SUPPORT_TICKETS",e.DATE_FORMAT="DATE_FORMAT",e.DEFAULT_ACCOUNT="DEFAULT_ACCOUNT",e.DELETE_ROLE="DELETE_ROLE",e.DELETE_GROUP_PERMISSION="DELETE_GROUP_PERMISSION",e.DELETE_PERMISSION="DELETE_PERMISSION",e.DELETE_PERMISSION_GROUP="DELETE_PERMISSION_GROUP",e.DCIM_ALERTS="DCIM_ALERTS",e.DCIM_ALERT_INSTANCES="DCIM_ALERT_INSTANCES",e.DCIM_ALERT_INSTANCE_DETAILS="DCIM_ALERT_INSTANCE_DETAILS",e.DCIM_CHART_DATA="DCIM_CHART_DATA",e.DCIM_CHART_DATA_GROUP="DCIM_CHART_DATA_GROUP",e.DCIM_CHART_METADATA="DCIM_CHART_METADATA",e.DCIM_ENABLED_LOCATIONS="DCIM_ENABLED_LOCATIONS",e.DCIM_HISTORICAL_ALERTS="DCIM_HISTORICAL_ALERTS",e.DCIM_HISTORICAL_ALERT_INSTANCE_DETAILS="DCIM_HISTORICAL_ALERT_INSTANCE_DETAILS",e.DCIM_LOCATIONS="DCIM_LOCATIONS",e.DOWNLOAD_USERS="DOWNLOAD_USERS",e.EDIT_ACCOUNT="EDIT_ACCOUNT",e.EDIT_NOTIFICATION="EDIT_NOTIFICATION",e.EDIT_PERMISSION_GROUP="EDIT_PERMISSION_GROUP",e.EDIT_PRIVILEGE="EDIT_PRIVILEGE",e.EDIT_ROLE="EDIT_ROLE",e.EDIT_ROLE_PERMISSION="EDIT_ROLE_PERMISSION",e.EDIT_USER_PERMISSIONS="EDIT_USER_PERMISSIONS",e.EDIT_USER_PREFERENCES="EDIT_USER_PREFERENCES",e.EDIT_USER_PROFILE="EDIT_USER_PROFILE",e.ELEGIBLE_REPORTS="ELEGIBLE_REPORTS",e.FA_TICKET_APPROVE_OR_DENY="FA_TICKET_APPROVE_OR_DENY",e.FACILITY_ACCESS="FACILITY_ACCESS",e.FACILITY_ACCESS_CONTACT_ACCESS="FACILTY_ACCESS_CONTACT_ACCESS",e.FACILITY_ACCESS_CONTACTS="FACILTY_ACCESS_CONTACTS",e.FACILITY_ACCESS_TICKETS="FACILTY_ACCESS_TICKETS",e.LOCATIONS="LOCATIONS",e.LOCATIONS_PAGED="LOCATIONS_PAGED",e.POP_POES_LOCATIONS="POP_POES_LOCATIONS",e.METRICS_FIRST_TIME_LOGIN="METRICS_FIRST_TIME_LOGIN",e.METRICS_LOGIN="metrics_login",e.METRICS_LOGOUT="metrics_logout",e.METROS="metros",e.MODIFY_BADGE="MODIFY_BADGE",e.NOTIFICATION="NOTIFICATION",e.NOTIFICATIONS="NOTIFICATIONS",e.PERMISSION_GROUP_PERMISSIONS="PERMISSION_GROUP_PERMISSIONS",e.PERMISSION_GROUPS="PERMISSION_GROUPS",e.PERMISSIONS="PERMISSIONS",e.PERMISSIONS_PRIVILEGES="PERMISSIONS_PRIVILEGES",e.PERMISSIONS_AVAILABLE="PERMISSIONS_AVAILABLE",e.PLANNED_SITE_MAINTENANCE="PLANNED_SITE_MAINTENANCE",e.PORTAL_ROLES="PORTAL_ROLES",e.POSITIONS="POSITIONS",e.REGIONS="REGIONS",e.RELEASE="RELEASE",e.RELEASE_INFO="RELEASE_INFO",e.REMOVE_ACCOUNT="REMOVE_ACCOUNT",e.REMOVE_ACCOUNT_ROLE="REMOVE_ACCOUNT_ROLE",e.REMOTE_HANDS_TICKET="REMOTE_HANDS_TICKET",e.REMOTE_HANDS_CATEGORIES="REMOTE_HANDS_CATEGORIES",e.REPORT_FILE_DOWNLOAD="REPORT_FILE_DOWNLOAD",e.REPORTS="REPORTS",e.REQUEST_TYPES="REQUEST_TYPES",e.ROLE="ROLE",e.ROLE_ACCESS_PERMISSIONS="ROLE_ACCESS_PERMISSIONS",e.ROLE_ASSET_PERMISSIONS="ROLE_ASSET_PERMISSIONS",e.ROLE_NAMES="ROLE_NAMES",e.ROLE_PERMISSIONS="ROLE_PERMISSIONS",e.ROLE_PERMISSIONS_PRIVILEGES="ROLE_PERMISSIONS_PRIVILEGES",e.ROLE_PERMISSION_GROUP="ROLE_PERMISSION_GROUP",e.ROLES="ROLES",e.SERVICE_TICKETS="SERVICE_TICKETS",e.SERVICE_TICKETS_CANCELLATATION_REASONS="SERVICE_TICKETS_CANCELLATATION_REASONS",e.SET_ACTIVE_USER_ACCOUNT="SET_ACTIVE_USER_ACCOUNT",e.SHIPMENTS_TICKET="SHIPMENTS_TICKET",e.SHIPMENTS_TICKETS="SHIPMENTS_TICKETS",e.SITES="SITES",e.SITES_PAGED="SITES_PAGED",e.SITES_TREE="SITES_TREE",e.SUPPORT_DOWNLOAD="SUPPORT_DOWNLOAD",e.SUPPORT_TICKETS="SUPPORT_TICKETS",e.SUPPORT_TICKET="SUPPORT_TICKET",e.SUPPORT_TICKET_MESSAGES="SUPPORT_TICKET_MESSAGES",e.UNITS="UNITS",e.UNREAD_NOTIFICATIONS="UNREAD_NOTIFICATIONS",e.UPDATE_CUSTOMER_SUPPORT_TICKET="UPDATE_CUSTOMER_SUPPORT_TICKET",e.UPDATE_FA_TICKET="UPDATE_FA_TICKET",e.UPDATE_RELEASE="UPDATE_RELEASE",e.UPDATE_REMOTE_HANDS_TICKET="UPDATE_REMOTE_HANDS_TICKET",e.UPDATE_SHIPMENTS_TICKET="UPDATE_SHIPMENTS_TICKET",e.USER="USER",e.USER_ACCOUNT_CREATORS="USER_ACCOUNT_CREATORS",e.USER_ACCOUNTS="USER_ACCOUNTS",e.USER_ACCOUNT_APPROVALS="USER_ACCOUNT_APPROVALS",e.USER_ACCOUNT_STATUS="USER_ACCOUNT_STATUS",e.USER_ASSIGNMENTS="USER_ASSIGNMENTS",e.USER_BY_EMAIL="USER_BY_EMAIL",e.USER_CREATE="USER_CREATE",e.USER_DETAILS="USER_DETAILS",e.USER_EDIT="USER_EDIT",e.USER_ID="USER_ID",e.USER_INTERNAL_DOMAINS="USER_INTERNAL_DOMAINS",e.USER_IS_ON_BEHALF_OF="USER_IS_ON_BEHALF_OF",e.USER_LOGOUT="USER_LOGOUT",e.USER_ON_BEHALF_OF="USER_ON_BEHALF_OF",e.USER_PREFERENCES="USER_PREFERENCES",e.USER_PROFILE="USER_PROFILE",e.USER_RELEASE="USER_RELEASE",e.USER_UPDATE="USER_UPDATE",e.USERS_CONTACTS="USERS_CONTACTS",e.USERS_LOCATIONS="USERS_LOCATIONS",e.TECHNICAL_SUPPORT_CONTACTS="TECHNICAL_SUPPORT_CONTACTS",e.TIME_ZONE="TIME_ZONE",e.TIME_ZONE_WINDOWS_IANA="TIME_ZONE_WINDOWS_IANA",e.UPLOAD_ATTACHMENTS="UPLOAD_ATTACHMENTS",e.VALIDATE_ROLE="VALIDATE_ROLE",e.WORK_ORDER_DETAILS="WORK_ORDER_DETAILS",e.WORK_ORDERS="WORK_ORDERS",e.CONTACT_US="CONTACT_US",e))(bg||{});const uue={shouldForwardProp:e=>!["$isDisabled","$isRequired"].includes(e)};ne("div",uue)`
514
514
  display: flex;
515
515
  flex-direction: column;
516
516
  align-items: center;
@@ -580,17 +580,17 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
580
580
  font-size: 12px;
581
581
  `;ne(Or)`
582
582
  margin-bottom: 24px;
583
- `;var ZC={},fue=Uo;Object.defineProperty(ZC,"__esModule",{value:!0});var ZO=ZC.default=void 0,pue=fue(Ii()),hue=R;ZO=ZC.default=(0,pue.default)((0,hue.jsx)("path",{d:"M19 9h-4V3H9v6H5l7 7zM5 18v2h14v-2z"}),"GetApp");const gue=({menuItems:e,t,customColor:n,disabled:r=!1})=>{const[o,i]=Nn(null),s=f=>{i(f.currentTarget)},l=()=>{i(null)},u=f=>{f(),l()},c={color:n||"#1456E0",opacity:1};return R.jsxs(R.Fragment,{children:[R.jsx(Jn,{onClick:s,size:"small","aria-label":t("assets.download.button"),disabled:r,children:R.jsx(ZO,{style:c})}),R.jsx(Ky,{anchorEl:o,keepMounted:!0,open:!!o,onClose:l,children:e==null?void 0:e.map(f=>R.jsx(lr,{onClick:()=>u(f.action),disabled:f.disabled,children:t?t(f.name):f.name},f.name))})]})};var YC={},mue=Uo;Object.defineProperty(YC,"__esModule",{value:!0});var YO=YC.default=void 0,vue=mue(Ii()),bue=R;YO=YC.default=(0,vue.default)((0,bue.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-2h2zm0-4h-2V7h2z"}),"Error");const eM={shouldForwardProp:e=>e!=="$direction"},yue=ne("div")`
583
+ `;var ZC={},cue=Uo;Object.defineProperty(ZC,"__esModule",{value:!0});var ZO=ZC.default=void 0,due=cue(Ii()),fue=R;ZO=ZC.default=(0,due.default)((0,fue.jsx)("path",{d:"M19 9h-4V3H9v6H5l7 7zM5 18v2h14v-2z"}),"GetApp");const pue=({menuItems:e,t,customColor:n,disabled:r=!1})=>{const[o,i]=Nn(null),s=f=>{i(f.currentTarget)},l=()=>{i(null)},u=f=>{f(),l()},c={color:n||"#1456E0",opacity:1};return R.jsxs(R.Fragment,{children:[R.jsx(Jn,{onClick:s,size:"small","aria-label":t("assets.download.button"),disabled:r,children:R.jsx(ZO,{style:c})}),R.jsx(Ky,{anchorEl:o,keepMounted:!0,open:!!o,onClose:l,children:e==null?void 0:e.map(f=>R.jsx(lr,{onClick:()=>u(f.action),disabled:f.disabled,children:t?t(f.name):f.name},f.name))})]})};var YC={},hue=Uo;Object.defineProperty(YC,"__esModule",{value:!0});var YO=YC.default=void 0,gue=hue(Ii()),mue=R;YO=YC.default=(0,gue.default)((0,mue.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-2h2zm0-4h-2V7h2z"}),"Error");const eM={shouldForwardProp:e=>e!=="$direction"},vue=ne("div")`
584
584
  display: flex;
585
585
  flex-direction: column;
586
586
  align-items: center;
587
587
  gap: 8px;
588
588
  padding: 24px;
589
- `,Cue=ne("div")`
589
+ `,bue=ne("div")`
590
590
  display: block;
591
591
  width: 100%;
592
592
  padding: 16px 24px;
593
- `,wue=ne("div",eM)`
593
+ `,yue=ne("div",eM)`
594
594
  display: flex;
595
595
  align-items: center;
596
596
  gap: 16px;
@@ -601,9 +601,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
601
601
  `:Rr`
602
602
  flex-direction: row;
603
603
  `};
604
- `,xue=ne(YO)`
604
+ `,Cue=ne(YO)`
605
605
  color: ${({theme:e})=>e.palette.error.main};
606
- `,Sue=ne("div",eM)`
606
+ `,wue=ne("div",eM)`
607
607
  display: flex;
608
608
  flex-direction: column;
609
609
  gap: 8px;
@@ -611,15 +611,15 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
611
611
  ${({$direction:e})=>{if(e==="vertical")return Rr`
612
612
  text-align: center;
613
613
  `}};
614
- `,Eue="|",Pue=({error:e,title:t,message:n,direction:r="horizontal"})=>{const{t:o}=Vs(["reports","common"]),i=sd(),s=No();n=(e==null?void 0:e.message)||n||o("common:error-message");const l=n.split(Eue),u=()=>l.map((f,p)=>R.jsx(Or,{display:"block",variant:"body2","data-testid":"common-error-msg-description",children:f},p)),c=()=>{const p=(h=>{const m=h.lastIndexOf("/");return h.substring(m+1)})(s.pathname);return R.jsx(Cue,{children:R.jsx(gN,{buttons:[{path:"/reports/security",text:o("tabs.security"),selected:p==="security",onClick:()=>i("/reports/security")},{path:"/reports/dcim",text:o("tabs.dcim"),selected:p==="dcim",onClick:()=>i("/reports/dcim")},{path:"/service-management/reports",text:o("tabs.maintenance")}]})})};return R.jsxs(wue,{$direction:r,"data-testid":"common-error-msg",children:[c(),R.jsx(xue,{}),R.jsxs(Sue,{$direction:r,children:[R.jsx(Or,{variant:"subtitle1","data-testid":"common-error-msg-title",component:"p",children:t||o("common:error-title")}),u()]})]})},Tue=()=>R.jsx(yue,{children:R.jsx(Pue,{direction:"vertical"})});class Vde extends pN{constructor(t){super(t),this.state={hasError:!1}}static getDerivedStateFromError(t){return{hasError:!0}}componentDidCatch(t){console.error("Client side error",{error:t})}render(){return this.state.hasError?R.jsx(Tue,{}):this.props.children}}const Iue=ne("div")`
614
+ `,xue="|",Sue=({error:e,title:t,message:n,direction:r="horizontal"})=>{const{t:o}=Vs(["reports","common"]),i=sd(),s=No();n=(e==null?void 0:e.message)||n||o("common:error-message");const l=n.split(xue),u=()=>l.map((f,p)=>R.jsx(Or,{display:"block",variant:"body2","data-testid":"common-error-msg-description",children:f},p)),c=()=>{const p=(h=>{const m=h.lastIndexOf("/");return h.substring(m+1)})(s.pathname);return R.jsx(bue,{children:R.jsx(gN,{buttons:[{path:"/reports/security",text:o("tabs.security"),selected:p==="security",onClick:()=>i("/reports/security")},{path:"/reports/dcim",text:o("tabs.dcim"),selected:p==="dcim",onClick:()=>i("/reports/dcim")},{path:"/service-management/reports",text:o("tabs.maintenance")}]})})};return R.jsxs(yue,{$direction:r,"data-testid":"common-error-msg",children:[c(),R.jsx(Cue,{}),R.jsxs(wue,{$direction:r,children:[R.jsx(Or,{variant:"subtitle1","data-testid":"common-error-msg-title",component:"p",children:t||o("common:error-title")}),u()]})]})},Eue=()=>R.jsx(vue,{children:R.jsx(Sue,{direction:"vertical"})});class zde extends pN{constructor(t){super(t),this.state={hasError:!1}}static getDerivedStateFromError(t){return{hasError:!0}}componentDidCatch(t){console.error("Client side error",{error:t})}render(){return this.state.hasError?R.jsx(Eue,{}):this.props.children}}const Pue=ne("div")`
615
615
  display: flex;
616
616
  align-items: center;
617
617
  justify-content: center;
618
- `,Rue=({linear:e,...t})=>e?R.jsx(ZI,{role:"progressbar","aria-label":"Loading...","aria-busy":"true","data-testid":"linear-progress",...t}):R.jsx(Iue,{children:R.jsx(jy,{role:"progressbar","aria-label":"Loading...","aria-busy":"true","data-testid":"circular-progress",...t})}),_ue=ne("div")`
618
+ `,Tue=({linear:e,...t})=>e?R.jsx(ZI,{role:"progressbar","aria-label":"Loading...","aria-busy":"true","data-testid":"linear-progress",...t}):R.jsx(Pue,{children:R.jsx(jy,{role:"progressbar","aria-label":"Loading...","aria-busy":"true","data-testid":"circular-progress",...t})}),Iue=ne("div")`
619
619
  white-space: nowrap;
620
620
  overflow: hidden;
621
621
  text-overflow: ellipsis;
622
- `,oc=({children:e})=>{var i,s;const t=hN(),[n,r]=Nn(!1),o=Ut(null);return Dt(()=>{var l,u;r((((l=o==null?void 0:o.current)==null?void 0:l.scrollWidth)??0)>(((u=o==null?void 0:o.current)==null?void 0:u.clientWidth)??0))},[(i=o==null?void 0:o.current)==null?void 0:i.scrollWidth,(s=o==null?void 0:o.current)==null?void 0:s.clientWidth]),R.jsx(rR,{title:e||t,disableHoverListener:!n,children:R.jsx(_ue,{ref:o,children:e})})},Oue=ne("div")`
622
+ `,oc=({children:e})=>{var i,s;const t=hN(),[n,r]=Nn(!1),o=Ut(null);return Dt(()=>{var l,u;r((((l=o==null?void 0:o.current)==null?void 0:l.scrollWidth)??0)>(((u=o==null?void 0:o.current)==null?void 0:u.clientWidth)??0))},[(i=o==null?void 0:o.current)==null?void 0:i.scrollWidth,(s=o==null?void 0:o.current)==null?void 0:s.clientWidth]),R.jsx(rR,{title:e||t,disableHoverListener:!n,children:R.jsx(Iue,{ref:o,children:e})})},Rue=ne("div")`
623
623
  display: flex;
624
624
  flex-direction: column;
625
625
  height: 100%;
@@ -630,7 +630,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
630
630
  @-moz-document url-prefix() {
631
631
  overflow: auto;
632
632
  }
633
- `,Mue=({children:e,className:t})=>R.jsx(Oue,{className:t,children:e});ne("div")`
633
+ `,_ue=({children:e,className:t})=>R.jsx(Rue,{className:t,children:e});ne("div")`
634
634
  display: flex;
635
635
  flex-direction: column;
636
636
  `;ne("div")`
@@ -663,7 +663,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
663
663
  ${({theme:e})=>e.breakpoints.down("sm")} {
664
664
  padding-bottom: 50px;
665
665
  }
666
- `;const Lue=ne(i3)`
666
+ `;const Oue=ne(i3)`
667
667
  .MuiDrawer-paper {
668
668
  width: 100%;
669
669
 
@@ -673,7 +673,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
673
673
  border-bottom-left-radius: 16px;
674
674
  }
675
675
  }
676
- `,tM=({children:e,onClose:t,open:n,...r})=>R.jsx(Lue,{anchor:"right",open:n,onClose:t,...r,children:e}),St=e=>typeof e=="string",ic=()=>{let e,t;const n=new Promise((r,o)=>{e=r,t=o});return n.resolve=e,n.reject=t,n},DP=e=>e==null?"":""+e,Aue=(e,t,n)=>{e.forEach(r=>{t[r]&&(n[r]=t[r])})},Due=/###/g,$P=e=>e&&e.indexOf("###")>-1?e.replace(Due,"."):e,kP=e=>!e||St(e),Ac=(e,t,n)=>{const r=St(t)?t.split("."):t;let o=0;for(;o<r.length-1;){if(kP(e))return{};const i=$P(r[o]);!e[i]&&n&&(e[i]=new n),Object.prototype.hasOwnProperty.call(e,i)?e=e[i]:e={},++o}return kP(e)?{}:{obj:e,k:$P(r[o])}},FP=(e,t,n)=>{const{obj:r,k:o}=Ac(e,t,Object);if(r!==void 0||t.length===1){r[o]=n;return}let i=t[t.length-1],s=t.slice(0,t.length-1),l=Ac(e,s,Object);for(;l.obj===void 0&&s.length;)i=`${s[s.length-1]}.${i}`,s=s.slice(0,s.length-1),l=Ac(e,s,Object),l&&l.obj&&typeof l.obj[`${l.k}.${i}`]<"u"&&(l.obj=void 0);l.obj[`${l.k}.${i}`]=n},$ue=(e,t,n,r)=>{const{obj:o,k:i}=Ac(e,t,Object);o[i]=o[i]||[],o[i].push(n)},th=(e,t)=>{const{obj:n,k:r}=Ac(e,t);if(n)return n[r]},kue=(e,t,n)=>{const r=th(e,n);return r!==void 0?r:th(t,n)},nM=(e,t,n)=>{for(const r in t)r!=="__proto__"&&r!=="constructor"&&(r in e?St(e[r])||e[r]instanceof String||St(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):nM(e[r],t[r],n):e[r]=t[r]);return e},Sl=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var Fue={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};const Nue=e=>St(e)?e.replace(/[&<>"'\/]/g,t=>Fue[t]):e;class Hue{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const n=this.regExpMap.get(t);if(n!==void 0)return n;const r=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,r),this.regExpQueue.push(t),r}}const Bue=[" ",",","?","!",";"],Uue=new Hue(20),jue=(e,t,n)=>{t=t||"",n=n||"";const r=Bue.filter(s=>t.indexOf(s)<0&&n.indexOf(s)<0);if(r.length===0)return!0;const o=Uue.getRegExp(`(${r.map(s=>s==="?"?"\\?":s).join("|")})`);let i=!o.test(e);if(!i){const s=e.indexOf(n);s>0&&!o.test(e.substring(0,s))&&(i=!0)}return i},Gb=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[t])return e[t];const r=t.split(n);let o=e;for(let i=0;i<r.length;){if(!o||typeof o!="object")return;let s,l="";for(let u=i;u<r.length;++u)if(u!==i&&(l+=n),l+=r[u],s=o[l],s!==void 0){if(["string","number","boolean"].indexOf(typeof s)>-1&&u<r.length-1)continue;i+=u-i+1;break}o=s}return o},nh=e=>e&&e.replace("_","-"),zue={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class rh{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(t,n)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=t||zue,this.options=n,this.debug=n.debug}log(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"log","",!0)}warn(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","",!0)}error(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"error","")}deprecate(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}forward(t,n,r,o){return o&&!this.debug?null:(St(t[0])&&(t[0]=`${r}${this.prefix} ${t[0]}`),this.logger[n](t))}create(t){return new rh(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new rh(this.logger,t)}}var Ci=new rh;class yg{constructor(){this.observers={}}on(t,n){return t.split(" ").forEach(r=>{this.observers[r]||(this.observers[r]=new Map);const o=this.observers[r].get(n)||0;this.observers[r].set(n,o+1)}),this}off(t,n){if(this.observers[t]){if(!n){delete this.observers[t];return}this.observers[t].delete(n)}}emit(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];this.observers[t]&&Array.from(this.observers[t].entries()).forEach(s=>{let[l,u]=s;for(let c=0;c<u;c++)l(...r)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(s=>{let[l,u]=s;for(let c=0;c<u;c++)l.apply(l,[t,...r])})}}class NP extends yg{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const n=this.options.ns.indexOf(t);n>-1&&this.options.ns.splice(n,1)}getResource(t,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const i=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,s=o.ignoreJSONStructure!==void 0?o.ignoreJSONStructure:this.options.ignoreJSONStructure;let l;t.indexOf(".")>-1?l=t.split("."):(l=[t,n],r&&(Array.isArray(r)?l.push(...r):St(r)&&i?l.push(...r.split(i)):l.push(r)));const u=th(this.data,l);return!u&&!n&&!r&&t.indexOf(".")>-1&&(t=l[0],n=l[1],r=l.slice(2).join(".")),u||!s||!St(r)?u:Gb(this.data&&this.data[t]&&this.data[t][n],r,i)}addResource(t,n,r,o){let i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const s=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator;let l=[t,n];r&&(l=l.concat(s?r.split(s):r)),t.indexOf(".")>-1&&(l=t.split("."),o=n,n=l[1]),this.addNamespaces(n),FP(this.data,l,o),i.silent||this.emit("added",t,n,r,o)}addResources(t,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const i in r)(St(r[i])||Array.isArray(r[i]))&&this.addResource(t,n,i,r[i],{silent:!0});o.silent||this.emit("added",t,n,r)}addResourceBundle(t,n,r,o,i){let s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},l=[t,n];t.indexOf(".")>-1&&(l=t.split("."),o=r,r=n,n=l[1]),this.addNamespaces(n);let u=th(this.data,l)||{};s.skipCopy||(r=JSON.parse(JSON.stringify(r))),o?nM(u,r,i):u={...u,...r},FP(this.data,l,u),s.silent||this.emit("added",t,n,r)}removeResourceBundle(t,n){this.hasResourceBundle(t,n)&&delete this.data[t][n],this.removeNamespaces(n),this.emit("removed",t,n)}hasResourceBundle(t,n){return this.getResource(t,n)!==void 0}getResourceBundle(t,n){return n||(n=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(t,n)}:this.getResource(t,n)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const n=this.getDataByLanguage(t);return!!(n&&Object.keys(n)||[]).find(o=>n[o]&&Object.keys(n[o]).length>0)}toJSON(){return this.data}}var rM={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,o){return e.forEach(i=>{this.processors[i]&&(t=this.processors[i].process(t,n,r,o))}),t}};const HP={};class oh extends yg{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),Aue(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Ci.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(t==null)return!1;const r=this.resolve(t,n);return r&&r.res!==void 0}extractFromKey(t,n){let r=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const o=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let i=n.ns||this.options.defaultNS||[];const s=r&&t.indexOf(r)>-1,l=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!jue(t,r,o);if(s&&!l){const u=t.match(this.interpolator.nestingRegexp);if(u&&u.length>0)return{key:t,namespaces:St(i)?[i]:i};const c=t.split(r);(r!==o||r===o&&this.options.ns.indexOf(c[0])>-1)&&(i=c.shift()),t=c.join(o)}return{key:t,namespaces:St(i)?[i]:i}}translate(t,n,r){if(typeof n!="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),typeof n=="object"&&(n={...n}),n||(n={}),t==null)return"";Array.isArray(t)||(t=[String(t)]);const o=n.returnDetails!==void 0?n.returnDetails:this.options.returnDetails,i=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,{key:s,namespaces:l}=this.extractFromKey(t[t.length-1],n),u=l[l.length-1],c=n.lng||this.language,f=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(c&&c.toLowerCase()==="cimode"){if(f){const w=n.nsSeparator||this.options.nsSeparator;return o?{res:`${u}${w}${s}`,usedKey:s,exactUsedKey:s,usedLng:c,usedNS:u,usedParams:this.getUsedParamsDetails(n)}:`${u}${w}${s}`}return o?{res:s,usedKey:s,exactUsedKey:s,usedLng:c,usedNS:u,usedParams:this.getUsedParamsDetails(n)}:s}const p=this.resolve(t,n);let h=p&&p.res;const m=p&&p.usedKey||s,C=p&&p.exactUsedKey||s,b=Object.prototype.toString.apply(h),S=["[object Number]","[object Function]","[object RegExp]"],T=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,P=!this.i18nFormat||this.i18nFormat.handleAsObject,E=!St(h)&&typeof h!="boolean"&&typeof h!="number";if(P&&h&&E&&S.indexOf(b)<0&&!(St(T)&&Array.isArray(h))){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const w=this.options.returnedObjectHandler?this.options.returnedObjectHandler(m,h,{...n,ns:l}):`key '${s} (${this.language})' returned an object instead of string.`;return o?(p.res=w,p.usedParams=this.getUsedParamsDetails(n),p):w}if(i){const w=Array.isArray(h),M=w?[]:{},I=w?C:m;for(const x in h)if(Object.prototype.hasOwnProperty.call(h,x)){const _=`${I}${i}${x}`;M[x]=this.translate(_,{...n,joinArrays:!1,ns:l}),M[x]===_&&(M[x]=h[x])}h=M}}else if(P&&St(T)&&Array.isArray(h))h=h.join(T),h&&(h=this.extendTranslation(h,t,n,r));else{let w=!1,M=!1;const I=n.count!==void 0&&!St(n.count),x=oh.hasDefaultValue(n),_=I?this.pluralResolver.getSuffix(c,n.count,n):"",L=n.ordinal&&I?this.pluralResolver.getSuffix(c,n.count,{ordinal:!1}):"",A=I&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),D=A&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${_}`]||n[`defaultValue${L}`]||n.defaultValue;!this.isValidLookup(h)&&x&&(w=!0,h=D),this.isValidLookup(h)||(M=!0,h=s);const B=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&M?void 0:h,k=x&&D!==h&&this.options.updateMissing;if(M||w||k){if(this.logger.log(k?"updateKey":"missingKey",c,u,s,k?D:h),i){const N=this.resolve(s,{...n,keySeparator:!1});N&&N.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let $=[];const U=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&U&&U[0])for(let N=0;N<U.length;N++)$.push(U[N]);else this.options.saveMissingTo==="all"?$=this.languageUtils.toResolveHierarchy(n.lng||this.language):$.push(n.lng||this.language);const V=(N,j,W)=>{const oe=x&&W!==h?W:B;this.options.missingKeyHandler?this.options.missingKeyHandler(N,u,j,oe,k,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(N,u,j,oe,k,n),this.emit("missingKey",N,u,j,h)};this.options.saveMissing&&(this.options.saveMissingPlurals&&I?$.forEach(N=>{const j=this.pluralResolver.getSuffixes(N,n);A&&n[`defaultValue${this.options.pluralSeparator}zero`]&&j.indexOf(`${this.options.pluralSeparator}zero`)<0&&j.push(`${this.options.pluralSeparator}zero`),j.forEach(W=>{V([N],s+W,n[`defaultValue${W}`]||D)})}):V($,s,D))}h=this.extendTranslation(h,t,n,p,r),M&&h===s&&this.options.appendNamespaceToMissingKey&&(h=`${u}:${s}`),(M||w)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?h=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${u}:${s}`:s,w?h:void 0):h=this.options.parseMissingKeyHandler(h))}return o?(p.res=h,p.usedParams=this.getUsedParamsDetails(n),p):h}extendTranslation(t,n,r,o,i){var s=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||o.usedLng,o.usedNS,o.usedKey,{resolved:o});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const c=St(t)&&(r&&r.interpolation&&r.interpolation.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let f;if(c){const h=t.match(this.interpolator.nestingRegexp);f=h&&h.length}let p=r.replace&&!St(r.replace)?r.replace:r;if(this.options.interpolation.defaultVariables&&(p={...this.options.interpolation.defaultVariables,...p}),t=this.interpolator.interpolate(t,p,r.lng||this.language||o.usedLng,r),c){const h=t.match(this.interpolator.nestingRegexp),m=h&&h.length;f<m&&(r.nest=!1)}!r.lng&&this.options.compatibilityAPI!=="v1"&&o&&o.res&&(r.lng=this.language||o.usedLng),r.nest!==!1&&(t=this.interpolator.nest(t,function(){for(var h=arguments.length,m=new Array(h),C=0;C<h;C++)m[C]=arguments[C];return i&&i[0]===m[0]&&!r.context?(s.logger.warn(`It seems you are nesting recursively key: ${m[0]} in key: ${n[0]}`),null):s.translate(...m,n)},r)),r.interpolation&&this.interpolator.reset()}const l=r.postProcess||this.options.postProcess,u=St(l)?[l]:l;return t!=null&&u&&u.length&&r.applyPostProcessor!==!1&&(t=rM.handle(u,t,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...o,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),t}resolve(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r,o,i,s,l;return St(t)&&(t=[t]),t.forEach(u=>{if(this.isValidLookup(r))return;const c=this.extractFromKey(u,n),f=c.key;o=f;let p=c.namespaces;this.options.fallbackNS&&(p=p.concat(this.options.fallbackNS));const h=n.count!==void 0&&!St(n.count),m=h&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),C=n.context!==void 0&&(St(n.context)||typeof n.context=="number")&&n.context!=="",b=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);p.forEach(S=>{this.isValidLookup(r)||(l=S,!HP[`${b[0]}-${S}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(l)&&(HP[`${b[0]}-${S}`]=!0,this.logger.warn(`key "${o}" for languages "${b.join(", ")}" won't get resolved as namespace "${l}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),b.forEach(T=>{if(this.isValidLookup(r))return;s=T;const P=[f];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(P,f,T,S,n);else{let w;h&&(w=this.pluralResolver.getSuffix(T,n.count,n));const M=`${this.options.pluralSeparator}zero`,I=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(h&&(P.push(f+w),n.ordinal&&w.indexOf(I)===0&&P.push(f+w.replace(I,this.options.pluralSeparator)),m&&P.push(f+M)),C){const x=`${f}${this.options.contextSeparator}${n.context}`;P.push(x),h&&(P.push(x+w),n.ordinal&&w.indexOf(I)===0&&P.push(x+w.replace(I,this.options.pluralSeparator)),m&&P.push(x+M))}}let E;for(;E=P.pop();)this.isValidLookup(r)||(i=E,r=this.getResource(T,S,E,n))}))})}),{res:r,usedKey:o,exactUsedKey:i,usedLng:s,usedNS:l}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,n,r,o):this.resourceStore.getResource(t,n,r,o)}getUsedParamsDetails(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=t.replace&&!St(t.replace);let o=r?t.replace:t;if(r&&typeof t.count<"u"&&(o.count=t.count),this.options.interpolation.defaultVariables&&(o={...this.options.interpolation.defaultVariables,...o}),!r){o={...o};for(const i of n)delete o[i]}return o}static hasDefaultValue(t){const n="defaultValue";for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&n===r.substring(0,n.length)&&t[r]!==void 0)return!0;return!1}}const Hv=e=>e.charAt(0).toUpperCase()+e.slice(1);class BP{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Ci.create("languageUtils")}getScriptPartFromCode(t){if(t=nh(t),!t||t.indexOf("-")<0)return null;const n=t.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(t){if(t=nh(t),!t||t.indexOf("-")<0)return t;const n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(St(t)&&t.indexOf("-")>-1){if(typeof Intl<"u"&&typeof Intl.getCanonicalLocales<"u")try{let o=Intl.getCanonicalLocales(t)[0];if(o&&this.options.lowerCaseLng&&(o=o.toLowerCase()),o)return o}catch{}const n=["hans","hant","latn","cyrl","cans","mong","arab"];let r=t.split("-");return this.options.lowerCaseLng?r=r.map(o=>o.toLowerCase()):r.length===2?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=Hv(r[1].toLowerCase()))):r.length===3&&(r[0]=r[0].toLowerCase(),r[1].length===2&&(r[1]=r[1].toUpperCase()),r[0]!=="sgn"&&r[2].length===2&&(r[2]=r[2].toUpperCase()),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=Hv(r[1].toLowerCase())),n.indexOf(r[2].toLowerCase())>-1&&(r[2]=Hv(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let n;return t.forEach(r=>{if(n)return;const o=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(o))&&(n=o)}),!n&&this.options.supportedLngs&&t.forEach(r=>{if(n)return;const o=this.getLanguagePartFromCode(r);if(this.isSupportedCode(o))return n=o;n=this.options.supportedLngs.find(i=>{if(i===o)return i;if(!(i.indexOf("-")<0&&o.indexOf("-")<0)&&(i.indexOf("-")>0&&o.indexOf("-")<0&&i.substring(0,i.indexOf("-"))===o||i.indexOf(o)===0&&o.length>1))return i})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),St(t)&&(t=[t]),Array.isArray(t))return t;if(!n)return t.default||[];let r=t[n];return r||(r=t[this.getScriptPartFromCode(n)]),r||(r=t[this.formatLanguageCode(n)]),r||(r=t[this.getLanguagePartFromCode(n)]),r||(r=t.default),r||[]}toResolveHierarchy(t,n){const r=this.getFallbackCodes(n||this.options.fallbackLng||[],t),o=[],i=s=>{s&&(this.isSupportedCode(s)?o.push(s):this.logger.warn(`rejecting language code not found in supportedLngs: ${s}`))};return St(t)&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&i(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&i(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&i(this.getLanguagePartFromCode(t))):St(t)&&i(this.formatLanguageCode(t)),r.forEach(s=>{o.indexOf(s)<0&&i(this.formatLanguageCode(s))}),o}}let Gue=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],Vue={1:e=>+(e>1),2:e=>+(e!=1),3:e=>0,4:e=>e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2,5:e=>e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5,6:e=>e==1?0:e>=2&&e<=4?1:2,7:e=>e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2,8:e=>e==1?0:e==2?1:e!=8&&e!=11?2:3,9:e=>+(e>=2),10:e=>e==1?0:e==2?1:e<7?2:e<11?3:4,11:e=>e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3,12:e=>+(e%10!=1||e%100==11),13:e=>+(e!==0),14:e=>e==1?0:e==2?1:e==3?2:3,15:e=>e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2,16:e=>e%10==1&&e%100!=11?0:e!==0?1:2,17:e=>e==1||e%10==1&&e%100!=11?0:1,18:e=>e==0?0:e==1?1:2,19:e=>e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3,20:e=>e==1?0:e==0||e%100>0&&e%100<20?1:2,21:e=>e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0,22:e=>e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3};const Wue=["v1","v2","v3"],que=["v4"],UP={zero:0,one:1,two:2,few:3,many:4,other:5},Kue=()=>{const e={};return Gue.forEach(t=>{t.lngs.forEach(n=>{e[n]={numbers:t.nr,plurals:Vue[t.fc]}})}),e};class Xue{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=n,this.logger=Ci.create("pluralResolver"),(!this.options.compatibilityJSON||que.includes(this.options.compatibilityJSON))&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=Kue(),this.pluralRulesCache={}}addRule(t,n){this.rules[t]=n}clearCache(){this.pluralRulesCache={}}getRule(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi()){const r=nh(t==="dev"?"en":t),o=n.ordinal?"ordinal":"cardinal",i=JSON.stringify({cleanedCode:r,type:o});if(i in this.pluralRulesCache)return this.pluralRulesCache[i];let s;try{s=new Intl.PluralRules(r,{type:o})}catch{if(!t.match(/-|_/))return;const u=this.languageUtils.getLanguagePartFromCode(t);s=this.getRule(u,n)}return this.pluralRulesCache[i]=s,s}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}needsPlural(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(t,n);return this.shouldUseIntlApi()?r&&r.resolvedOptions().pluralCategories.length>1:r&&r.numbers.length>1}getPluralFormsOfKey(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(t,r).map(o=>`${n}${o}`)}getSuffixes(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(t,n);return r?this.shouldUseIntlApi()?r.resolvedOptions().pluralCategories.sort((o,i)=>UP[o]-UP[i]).map(o=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${o}`):r.numbers.map(o=>this.getSuffix(t,o,n)):[]}getSuffix(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const o=this.getRule(t,r);return o?this.shouldUseIntlApi()?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${o.select(n)}`:this.getSuffixRetroCompatible(o,n):(this.logger.warn(`no plural rule found for: ${t}`),"")}getSuffixRetroCompatible(t,n){const r=t.noAbs?t.plurals(n):t.plurals(Math.abs(n));let o=t.numbers[r];this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1&&(o===2?o="plural":o===1&&(o=""));const i=()=>this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString();return this.options.compatibilityJSON==="v1"?o===1?"":typeof o=="number"?`_plural_${o.toString()}`:i():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1?i():this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString()}shouldUseIntlApi(){return!Wue.includes(this.options.compatibilityJSON)}}const jP=function(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,i=kue(e,t,n);return!i&&o&&St(n)&&(i=Gb(e,n,r),i===void 0&&(i=Gb(t,n,r))),i},Bv=e=>e.replace(/\$/g,"$$$$");class Que{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Ci.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||(n=>n),this.init(t)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});const{escape:n,escapeValue:r,useRawValueToEscape:o,prefix:i,prefixEscaped:s,suffix:l,suffixEscaped:u,formatSeparator:c,unescapeSuffix:f,unescapePrefix:p,nestingPrefix:h,nestingPrefixEscaped:m,nestingSuffix:C,nestingSuffixEscaped:b,nestingOptionsSeparator:S,maxReplaces:T,alwaysFormat:P}=t.interpolation;this.escape=n!==void 0?n:Nue,this.escapeValue=r!==void 0?r:!0,this.useRawValueToEscape=o!==void 0?o:!1,this.prefix=i?Sl(i):s||"{{",this.suffix=l?Sl(l):u||"}}",this.formatSeparator=c||",",this.unescapePrefix=f?"":p||"-",this.unescapeSuffix=this.unescapePrefix?"":f||"",this.nestingPrefix=h?Sl(h):m||Sl("$t("),this.nestingSuffix=C?Sl(C):b||Sl(")"),this.nestingOptionsSeparator=S||",",this.maxReplaces=T||1e3,this.alwaysFormat=P!==void 0?P:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(n,r)=>n&&n.source===r?(n.lastIndex=0,n):new RegExp(r,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(t,n,r,o){let i,s,l;const u=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},c=m=>{if(m.indexOf(this.formatSeparator)<0){const T=jP(n,u,m,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(T,void 0,r,{...o,...n,interpolationkey:m}):T}const C=m.split(this.formatSeparator),b=C.shift().trim(),S=C.join(this.formatSeparator).trim();return this.format(jP(n,u,b,this.options.keySeparator,this.options.ignoreJSONStructure),S,r,{...o,...n,interpolationkey:b})};this.resetRegExp();const f=o&&o.missingInterpolationHandler||this.options.missingInterpolationHandler,p=o&&o.interpolation&&o.interpolation.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:m=>Bv(m)},{regex:this.regexp,safeValue:m=>this.escapeValue?Bv(this.escape(m)):Bv(m)}].forEach(m=>{for(l=0;i=m.regex.exec(t);){const C=i[1].trim();if(s=c(C),s===void 0)if(typeof f=="function"){const S=f(t,i,o);s=St(S)?S:""}else if(o&&Object.prototype.hasOwnProperty.call(o,C))s="";else if(p){s=i[0];continue}else this.logger.warn(`missed to pass in variable ${C} for interpolating ${t}`),s="";else!St(s)&&!this.useRawValueToEscape&&(s=DP(s));const b=m.safeValue(s);if(t=t.replace(i[0],b),p?(m.regex.lastIndex+=s.length,m.regex.lastIndex-=i[0].length):m.regex.lastIndex=0,l++,l>=this.maxReplaces)break}}),t}nest(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o,i,s;const l=(u,c)=>{const f=this.nestingOptionsSeparator;if(u.indexOf(f)<0)return u;const p=u.split(new RegExp(`${f}[ ]*{`));let h=`{${p[1]}`;u=p[0],h=this.interpolate(h,s);const m=h.match(/'/g),C=h.match(/"/g);(m&&m.length%2===0&&!C||C.length%2!==0)&&(h=h.replace(/'/g,'"'));try{s=JSON.parse(h),c&&(s={...c,...s})}catch(b){return this.logger.warn(`failed parsing options string in nesting for key ${u}`,b),`${u}${f}${h}`}return s.defaultValue&&s.defaultValue.indexOf(this.prefix)>-1&&delete s.defaultValue,u};for(;o=this.nestingRegexp.exec(t);){let u=[];s={...r},s=s.replace&&!St(s.replace)?s.replace:s,s.applyPostProcessor=!1,delete s.defaultValue;let c=!1;if(o[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(o[1])){const f=o[1].split(this.formatSeparator).map(p=>p.trim());o[1]=f.shift(),u=f,c=!0}if(i=n(l.call(this,o[1].trim(),s),s),i&&o[0]===t&&!St(i))return i;St(i)||(i=DP(i)),i||(this.logger.warn(`missed to resolve ${o[1]} for nesting ${t}`),i=""),c&&(i=u.reduce((f,p)=>this.format(f,p,r.lng,{...r,interpolationkey:o[1].trim()}),i.trim())),t=t.replace(o[0],i),this.regexp.lastIndex=0}return t}}const Jue=e=>{let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const r=e.split("(");t=r[0].toLowerCase().trim();const o=r[1].substring(0,r[1].length-1);t==="currency"&&o.indexOf(":")<0?n.currency||(n.currency=o.trim()):t==="relativetime"&&o.indexOf(":")<0?n.range||(n.range=o.trim()):o.split(";").forEach(s=>{if(s){const[l,...u]=s.split(":"),c=u.join(":").trim().replace(/^'+|'+$/g,""),f=l.trim();n[f]||(n[f]=c),c==="false"&&(n[f]=!1),c==="true"&&(n[f]=!0),isNaN(c)||(n[f]=parseInt(c,10))}})}return{formatName:t,formatOptions:n}},El=e=>{const t={};return(n,r,o)=>{let i=o;o&&o.interpolationkey&&o.formatParams&&o.formatParams[o.interpolationkey]&&o[o.interpolationkey]&&(i={...i,[o.interpolationkey]:void 0});const s=r+JSON.stringify(i);let l=t[s];return l||(l=e(nh(r),o),t[s]=l),l(n)}};class Zue{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Ci.create("formatter"),this.options=t,this.formats={number:El((n,r)=>{const o=new Intl.NumberFormat(n,{...r});return i=>o.format(i)}),currency:El((n,r)=>{const o=new Intl.NumberFormat(n,{...r,style:"currency"});return i=>o.format(i)}),datetime:El((n,r)=>{const o=new Intl.DateTimeFormat(n,{...r});return i=>o.format(i)}),relativetime:El((n,r)=>{const o=new Intl.RelativeTimeFormat(n,{...r});return i=>o.format(i,r.range||"day")}),list:El((n,r)=>{const o=new Intl.ListFormat(n,{...r});return i=>o.format(i)})},this.init(t)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};this.formatSeparator=n.interpolation.formatSeparator||","}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=El(n)}format(t,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const i=n.split(this.formatSeparator);if(i.length>1&&i[0].indexOf("(")>1&&i[0].indexOf(")")<0&&i.find(l=>l.indexOf(")")>-1)){const l=i.findIndex(u=>u.indexOf(")")>-1);i[0]=[i[0],...i.splice(1,l)].join(this.formatSeparator)}return i.reduce((l,u)=>{const{formatName:c,formatOptions:f}=Jue(u);if(this.formats[c]){let p=l;try{const h=o&&o.formatParams&&o.formatParams[o.interpolationkey]||{},m=h.locale||h.lng||o.locale||o.lng||r;p=this.formats[c](l,m,{...f,...o,...h})}catch(h){this.logger.warn(h)}return p}else this.logger.warn(`there was no format function for ${c}`);return l},t)}}const Yue=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)};class ece extends yg{constructor(t,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=t,this.store=n,this.services=r,this.languageUtils=r.languageUtils,this.options=o,this.logger=Ci.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=o.maxParallelReads||10,this.readingCalls=0,this.maxRetries=o.maxRetries>=0?o.maxRetries:5,this.retryTimeout=o.retryTimeout>=1?o.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(r,o.backend,o)}queueLoad(t,n,r,o){const i={},s={},l={},u={};return t.forEach(c=>{let f=!0;n.forEach(p=>{const h=`${c}|${p}`;!r.reload&&this.store.hasResourceBundle(c,p)?this.state[h]=2:this.state[h]<0||(this.state[h]===1?s[h]===void 0&&(s[h]=!0):(this.state[h]=1,f=!1,s[h]===void 0&&(s[h]=!0),i[h]===void 0&&(i[h]=!0),u[p]===void 0&&(u[p]=!0)))}),f||(l[c]=!0)}),(Object.keys(i).length||Object.keys(s).length)&&this.queue.push({pending:s,pendingCount:Object.keys(s).length,loaded:{},errors:[],callback:o}),{toLoad:Object.keys(i),pending:Object.keys(s),toLoadLanguages:Object.keys(l),toLoadNamespaces:Object.keys(u)}}loaded(t,n,r){const o=t.split("|"),i=o[0],s=o[1];n&&this.emit("failedLoading",i,s,n),!n&&r&&this.store.addResourceBundle(i,s,r,void 0,void 0,{skipCopy:!0}),this.state[t]=n?-1:2,n&&r&&(this.state[t]=0);const l={};this.queue.forEach(u=>{$ue(u.loaded,[i],s),Yue(u,t),n&&u.errors.push(n),u.pendingCount===0&&!u.done&&(Object.keys(u.loaded).forEach(c=>{l[c]||(l[c]={});const f=u.loaded[c];f.length&&f.forEach(p=>{l[c][p]===void 0&&(l[c][p]=!0)})}),u.done=!0,u.errors.length?u.callback(u.errors):u.callback())}),this.emit("loaded",l),this.queue=this.queue.filter(u=>!u.done)}read(t,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,s=arguments.length>5?arguments[5]:void 0;if(!t.length)return s(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:n,fcName:r,tried:o,wait:i,callback:s});return}this.readingCalls++;const l=(c,f)=>{if(this.readingCalls--,this.waitingReads.length>0){const p=this.waitingReads.shift();this.read(p.lng,p.ns,p.fcName,p.tried,p.wait,p.callback)}if(c&&f&&o<this.maxRetries){setTimeout(()=>{this.read.call(this,t,n,r,o+1,i*2,s)},i);return}s(c,f)},u=this.backend[r].bind(this.backend);if(u.length===2){try{const c=u(t,n);c&&typeof c.then=="function"?c.then(f=>l(null,f)).catch(l):l(null,c)}catch(c){l(c)}return}return u(t,n,l)}prepareLoading(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();St(t)&&(t=this.languageUtils.toResolveHierarchy(t)),St(n)&&(n=[n]);const i=this.queueLoad(t,n,r,o);if(!i.toLoad.length)return i.pending.length||o(),null;i.toLoad.forEach(s=>{this.loadOne(s)})}load(t,n,r){this.prepareLoading(t,n,{},r)}reload(t,n,r){this.prepareLoading(t,n,{reload:!0},r)}loadOne(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const r=t.split("|"),o=r[0],i=r[1];this.read(o,i,"read",void 0,void 0,(s,l)=>{s&&this.logger.warn(`${n}loading namespace ${i} for language ${o} failed`,s),!s&&l&&this.logger.log(`${n}loaded namespace ${i} for language ${o}`,l),this.loaded(t,s,l)})}saveMissing(t,n,r,o,i){let s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},l=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(n)){this.logger.warn(`did not save key "${r}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(r==null||r==="")){if(this.backend&&this.backend.create){const u={...s,isUpdate:i},c=this.backend.create.bind(this.backend);if(c.length<6)try{let f;c.length===5?f=c(t,n,r,o,u):f=c(t,n,r,o),f&&typeof f.then=="function"?f.then(p=>l(null,p)).catch(l):l(null,f)}catch(f){l(f)}else c(t,n,r,o,l,u)}!t||!t[0]||this.store.addResource(t[0],n,r,o)}}}const zP=()=>({debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),St(e[1])&&(t.defaultValue=e[1]),St(e[2])&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){const n=e[3]||e[2];Object.keys(n).forEach(r=>{t[r]=n[r]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),GP=e=>(St(e.ns)&&(e.ns=[e.ns]),St(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),St(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),Gf=()=>{},tce=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})};class od extends yg{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=GP(t),this.services={},this.logger=Ci,this.modules={external:[]},tce(this),n&&!this.isInitialized&&!t.isClone){if(!this.options.initImmediate)return this.init(t,n),this;setTimeout(()=>{this.init(t,n)},0)}}init(){var t=this;let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof n=="function"&&(r=n,n={}),!n.defaultNS&&n.defaultNS!==!1&&n.ns&&(St(n.ns)?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));const o=zP();this.options={...o,...this.options,...GP(n)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...o.interpolation,...this.options.interpolation}),n.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=n.keySeparator),n.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=n.nsSeparator);const i=f=>f?typeof f=="function"?new f:f:null;if(!this.options.isClone){this.modules.logger?Ci.init(i(this.modules.logger),this.options):Ci.init(null,this.options);let f;this.modules.formatter?f=this.modules.formatter:typeof Intl<"u"&&(f=Zue);const p=new BP(this.options);this.store=new NP(this.options.resources,this.options);const h=this.services;h.logger=Ci,h.resourceStore=this.store,h.languageUtils=p,h.pluralResolver=new Xue(p,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),f&&(!this.options.interpolation.format||this.options.interpolation.format===o.interpolation.format)&&(h.formatter=i(f),h.formatter.init(h,this.options),this.options.interpolation.format=h.formatter.format.bind(h.formatter)),h.interpolator=new Que(this.options),h.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},h.backendConnector=new ece(i(this.modules.backend),h.resourceStore,h,this.options),h.backendConnector.on("*",function(m){for(var C=arguments.length,b=new Array(C>1?C-1:0),S=1;S<C;S++)b[S-1]=arguments[S];t.emit(m,...b)}),this.modules.languageDetector&&(h.languageDetector=i(this.modules.languageDetector),h.languageDetector.init&&h.languageDetector.init(h,this.options.detection,this.options)),this.modules.i18nFormat&&(h.i18nFormat=i(this.modules.i18nFormat),h.i18nFormat.init&&h.i18nFormat.init(this)),this.translator=new oh(this.services,this.options),this.translator.on("*",function(m){for(var C=arguments.length,b=new Array(C>1?C-1:0),S=1;S<C;S++)b[S-1]=arguments[S];t.emit(m,...b)}),this.modules.external.forEach(m=>{m.init&&m.init(this)})}if(this.format=this.options.interpolation.format,r||(r=Gf),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const f=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);f.length>0&&f[0]!=="dev"&&(this.options.lng=f[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(f=>{this[f]=function(){return t.store[f](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(f=>{this[f]=function(){return t.store[f](...arguments),t}});const u=ic(),c=()=>{const f=(p,h)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),u.resolve(h),r(p,h)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return f(null,this.t.bind(this));this.changeLanguage(this.options.lng,f)};return this.options.resources||!this.options.initImmediate?c():setTimeout(c,0),u}loadResources(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Gf;const o=St(t)?t:this.language;if(typeof t=="function"&&(r=t),!this.options.resources||this.options.partialBundledLanguages){if(o&&o.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const i=[],s=l=>{if(!l||l==="cimode")return;this.services.languageUtils.toResolveHierarchy(l).forEach(c=>{c!=="cimode"&&i.indexOf(c)<0&&i.push(c)})};o?s(o):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(u=>s(u)),this.options.preload&&this.options.preload.forEach(l=>s(l)),this.services.backendConnector.load(i,this.options.ns,l=>{!l&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(l)})}else r(null)}reloadResources(t,n,r){const o=ic();return typeof t=="function"&&(r=t,t=void 0),typeof n=="function"&&(r=n,n=void 0),t||(t=this.languages),n||(n=this.options.ns),r||(r=Gf),this.services.backendConnector.reload(t,n,i=>{o.resolve(),r(i)}),o}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&rM.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1))for(let n=0;n<this.languages.length;n++){const r=this.languages[n];if(!(["cimode","dev"].indexOf(r)>-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}}changeLanguage(t,n){var r=this;this.isLanguageChangingTo=t;const o=ic();this.emit("languageChanging",t);const i=u=>{this.language=u,this.languages=this.services.languageUtils.toResolveHierarchy(u),this.resolvedLanguage=void 0,this.setResolvedLanguage(u)},s=(u,c)=>{c?(i(c),this.translator.changeLanguage(c),this.isLanguageChangingTo=void 0,this.emit("languageChanged",c),this.logger.log("languageChanged",c)):this.isLanguageChangingTo=void 0,o.resolve(function(){return r.t(...arguments)}),n&&n(u,function(){return r.t(...arguments)})},l=u=>{!t&&!u&&this.services.languageDetector&&(u=[]);const c=St(u)?u:this.services.languageUtils.getBestMatchFromCodes(u);c&&(this.language||i(c),this.translator.language||this.translator.changeLanguage(c),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(c)),this.loadResources(c,f=>{s(f,c)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?l(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(l):this.services.languageDetector.detect(l):l(t),o}getFixedT(t,n,r){var o=this;const i=function(s,l){let u;if(typeof l!="object"){for(var c=arguments.length,f=new Array(c>2?c-2:0),p=2;p<c;p++)f[p-2]=arguments[p];u=o.options.overloadTranslationOptionHandler([s,l].concat(f))}else u={...l};u.lng=u.lng||i.lng,u.lngs=u.lngs||i.lngs,u.ns=u.ns||i.ns,u.keyPrefix!==""&&(u.keyPrefix=u.keyPrefix||r||i.keyPrefix);const h=o.options.keySeparator||".";let m;return u.keyPrefix&&Array.isArray(s)?m=s.map(C=>`${u.keyPrefix}${h}${C}`):m=u.keyPrefix?`${u.keyPrefix}${h}${s}`:s,o.t(m,u)};return St(t)?i.lng=t:i.lngs=t,i.ns=n,i.keyPrefix=r,i}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const r=n.lng||this.resolvedLanguage||this.languages[0],o=this.options?this.options.fallbackLng:!1,i=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const s=(l,u)=>{const c=this.services.backendConnector.state[`${l}|${u}`];return c===-1||c===0||c===2};if(n.precheck){const l=n.precheck(this,s);if(l!==void 0)return l}return!!(this.hasResourceBundle(r,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||s(r,t)&&(!o||s(i,t)))}loadNamespaces(t,n){const r=ic();return this.options.ns?(St(t)&&(t=[t]),t.forEach(o=>{this.options.ns.indexOf(o)<0&&this.options.ns.push(o)}),this.loadResources(o=>{r.resolve(),n&&n(o)}),r):(n&&n(),Promise.resolve())}loadLanguages(t,n){const r=ic();St(t)&&(t=[t]);const o=this.options.preload||[],i=t.filter(s=>o.indexOf(s)<0&&this.services.languageUtils.isSupportedCode(s));return i.length?(this.options.preload=o.concat(i),this.loadResources(s=>{r.resolve(),n&&n(s)}),r):(n&&n(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!t)return"rtl";const n=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],r=this.services&&this.services.languageUtils||new BP(zP());return n.indexOf(r.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new od(t,n)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Gf;const r=t.forkResourceStore;r&&delete t.forkResourceStore;const o={...this.options,...t,isClone:!0},i=new od(o);return(t.debug!==void 0||t.prefix!==void 0)&&(i.logger=i.logger.clone(t)),["store","services","language"].forEach(l=>{i[l]=this[l]}),i.services={...this.services},i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},r&&(i.store=new NP(this.store.data,o),i.services.resourceStore=i.store),i.translator=new oh(i.services,o),i.translator.on("*",function(l){for(var u=arguments.length,c=new Array(u>1?u-1:0),f=1;f<u;f++)c[f-1]=arguments[f];i.emit(l,...c)}),i.init(o,n),i.translator.options=o,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const Nr=od.createInstance();Nr.createInstance=od.createInstance;Nr.createInstance;Nr.dir;Nr.init;Nr.loadResources;Nr.reloadResources;Nr.use;Nr.changeLanguage;Nr.getFixedT;Nr.t;Nr.exists;Nr.setDefaultNamespace;Nr.hasLoadedNamespace;Nr.loadNamespaces;Nr.loadLanguages;const nce="Approve",rce="Approved",oce="Copy",ice="Deny",sce="Denied",ace="Expand",lce="Retry",uce="Start",cce="Yes",dce="No",fce="and",pce="Hide",hce="Back",gce="Forward",mce="Close",vce="Next",bce="Cancel",yce="Yes, Submit",Cce="Dismiss",wce="Save",xce="Search",Sce="Loading",Ece={completed:"Authentication completed","signing-in":"Signing in...","signing-out":"Signing out...",unauthorized:"You're not authorized to access this page."},Pce={attachments:"Attachments",label:"Click here to browse your PC or drop files to upload","created-by-on-time":"by {{createdBy}} on {{date}}","files-too-large":"The following files exceed the maximum size of {{maxSize}}: {{files}}","max-size-label":"Max file size is 10MB with accepted file formats of: JPG (JPEG), PNG, PDF, GIF, DOC/X, XLS/X, CSV"},Tce={disclaimer:"Draft","create-user-title":"Add New User","create-ticket-title":"Support Ticket"},Ice={"assets-counter":"{{assets}} locations","select-assets":"Select Locations","select-all":"Select All","assets-search-placeholder":"Search by Site or Asset Name...","no-assets-description":"This site contains no assets, click NEXT to continue.","asset-item":"Asset item","view-ticket":"View Ticket"},Rce="Active",_ce="Phone",Oce="Email",Mce="Account",Lce="Accounts",Ace="Role",Dce="Roles",$ce="Option",kce="Options",Fce="From",Nce="To",Hce="More",Bce="Logout",Uce="Refresh",jce={404:{title:"This Page could not be found.",detail:"The page you are after doesn't exist, or no longer exists. Check out the homepage instead.",button:"go to homepage"},approve:nce,approved:rce,copy:oce,deny:ice,denied:sce,expand:ace,"approve-all":"Approve All","deny-all":"Deny All",retry:lce,start:uce,yes:cce,no:dce,and:fce,"error-title":"Error:","reports-error-message":"No data to display","error-message":"No DCIM data available for this account context.|If you expect to see DCIM data please navigate to the specific account in the Account Switcher.","enhanced-error-message":"We are unable to display the relevant ticket information. For further assistance, please share the below details with us via <1>GlobalPortal@digitalrealty.com</1>","error-api":"API is not responding",hide:pce,"edit-details":"Edit Details",back:hce,"go-back":"Go Back",forward:gce,close:mce,next:vce,cancel:bce,submit:yce,dismiss:Cce,"sort-by":"Sort by",save:wce,"save-changes":"Save Changes","changes-saved":"Changes Saved","changes-not-saved":"Changes Can not Be Saved","try-again":"Try again","request-error-message":"We are unable to process your request. Please, try again or reach out to us for further assistance. We apologize for the inconvenience. Your Digital Realty Team",search:xce,"close-button":"Close Button","open-button":"Open Button",loading:Sce,"app-loading":"Loading...","redirect-soon":"You will be redirected soon.",auth:Ece,dropzone:Pce,draft:Tce,"cancel-dialog":{title:"Are you sure do you want to cancel?",text:"All the details provided will be lost.",dismiss:"Dismiss",cancel:{"add-user":"Cancel Adding User","create-ticket":"Request Cancellation"},"cancel-ticket-creation":{title:"Are you sure you want to proceed? All details provided will be lost.",yes:"Yes",no:"No"}},tickets:Ice,"view-all":"View all","view-attachment-button":"view attachment button","download-attachment-button":"download attachment button","hide-button":"hide button","close-buton":"close buton","previous-button":"previous button","next-button":"next button",active:Rce,"notifications-button":"Notifications Button","expand-navbar-button":"Expand Navbar Button","search-field":"Search Field","search-icon":"Search Icon","search-button":"Search Button",phone:_ce,email:Oce,"datagrid-no-rows":"No data to display","no-attachments":"No attachments",account_one:Mce,account_other:Lce,role_one:Ace,role_other:Dce,"last-update":"Last Update","no-comments":"No Comments",option_one:$ce,option_other:kce,from:Fce,to:Nce,"email-helper-text":"Enter email addresses separated by a comma, semicolon or the Enter key.","master-account":"Master Account","master-account-label":"Open the Account Selector","unsaved-changes-title":"Attention","unsaved-changes-message":"There are unsaved changes on this page, save or discard them before leaving.",more:Hce,"not-implemented":"Not Implemented",logout:Bce,refresh:Uce,"record-version":{"record-has-been-updated":"Record has been updated","refresh-page":"Refresh the page to see the latest record."},"view-list":"View List"},zce="Reports",Gce={dcim:"DCIM Reports",security:"Security Reports",maintenance:"Planned Maintenance",incidents:"Incidents"},Vce="{{sites}} Reports",Wce={clear:"Clear Filters","show-my-location-only":"Show My Locations Only","filter-by":"Filter By",region:"Region",value:"Value"},qce={id:"ID",name:"Name",executionDate:"Execution Date",startDate:"Start Date",endDate:"End Date",type:"Type",site:"Site",leasedSpace:"Leased Space",location:"Location",attachment:"Download",description:"Short Description",status:"Status",activityType:"Activity Type",attachments:"Attachments"},Kce={"all-sites":"Download All Locations","my-sites":"Download My Locations","filtered-sites":"Download Current View"},Xce="Search…",Qce="Rows Per Page:",Jce="of",Zce={space:"{{space}} Spaces",filters:{status:"All Statuses","show-enrolled-spaces-only":"Show Enrolled Spaces Only"},table:{leasedSpace:"Leased Space",leasedKw:"Leased kW",itLoad:"IT Load",load:"Load %",spaceTemp:"Space Temp",status:"Alert Status"},download:{button:"Download button","all-spaces":"Download All Spaces","filtered-spaces":"Download Current View"},chart:{yAxisMetric:"Y-Axis Metric",metric:"Metric",showAlertData:"Show Alert Data",resetZoom:"Reset Zoom"}},Yce={"dcim-alert-title":"DCIM Alert",id:"Work Order ID",site:"Affected Site",location:"Affected Location(s)",category:"Category",activityType:"Activity Type",activitySubType:"Activity Subtype",activityCategory:"Activity Category",approvalStatus:"Approval Status",status:"State",serviceType:"Service Type",riskLevel:"Risk Level",schedule:"Schedule",startDate:"Start Date",endDate:"End Date",shortDescription:"Short Description",highLevelSummary:"High-level summary",attachments:"Method of Procedure (attachments)",alertNumber:"Alert Number",totalLoad:"Total Load",affectedCI:"Affected CI",alertTimelineSummary:"Alert Generated On",thresholdValue:"Threshold Value",description:"Description"},ede={title:zce,tabs:Gce,sites:Vce,filters:Wce,table:qce,download:Kce,search:Xce,rows:Qce,of:Jce,"no-data-found":"Data not found",assets:Zce,reportDetails:Yce,"download-all-reports":"Download All Reports","download-current-view":"Download Current View"};Nr.use(E9).init({resources:{en:{common:jce,reports:ede}},interpolation:{escapeValue:!1},lng:"en"});const Pr={black:"rgba(0, 0, 0, 1)",gray:"#6d758c",primaryHover:"rgba(20, 86, 224, 0.1)",secondaryHover:"#378ACA1a",textDark:"rgba(9, 34, 65, 1)",textDark2:"rgba(9, 34, 65, 0.7)",textDarkDisabled:"rgba(9, 34, 65, 0.3)",textLight:"rgba(255, 255, 255, 1)",textLight2:"rgba(255, 255, 255, 0.6)",textLightDisabled:"rgba(255, 255, 255, 0.38)",divider:"rgba(9, 34, 65, 0.12)",divider2:"rgba(9, 34, 65, 0.08)",background:"rgba(245, 247, 255, 1)",backgroundAlternative:"#FFFFFF",surface:"rgba(255, 255, 255)",modalOverlay:"rgba(9, 34, 65, 0.9)",overlayOnPrimary:"rgba(255, 255, 255, 0.24)",pageHeader:{background:"rgba(245, 247, 255, 0.85)"},navbar:{background:"linear-gradient(180deg, #1456E0 20.5%, #0D2497 113.5%)",selected:"rgba(255, 255, 255, 0.16)"},topbar:{background:"linear-gradient(90.27deg, #1456E0 0%, #0D2497 99.23%)"}},tde={primary:{light:"#5585ff",main:"#1456E0",dark:"#071454"},secondary:{light:"#72bafd",main:"#378aca",dark:"#005d99"},error:{light:"#f83b3a",main:"#db0028",dark:"#a80505",contrastText:"#ffffff"},warning:{light:"#ffb74d",main:"rgba(255, 152, 0, 1)",dark:"#f57c00"},info:{light:"#64b5f6",main:"#2196f3",dark:"#1976d2"},success:{light:"#81c784",main:"#4caf50",dark:"#388e3c",contrastText:"#ffffff"},text:{primary:Pr.textDark,secondary:Pr.textDark2,disabled:Pr.textDarkDisabled}},Vf={h1:{fontFamily:"'Red Hat Display', sans-serif",fontStyle:"normal",fontWeight:500,fontSize:"96px",lineHeight:"127px",letterSpacing:"-1.5px"},h2:{fontFamily:"'Red Hat Display', sans-serif",fontStyle:"normal",fontWeight:"normal",fontSize:"60px",lineHeight:"71px",letterSpacing:"-0.5px"},h3:{fontFamily:"'Red Hat Display', sans-serif",fontStyle:"normal",fontWeight:"normal",fontSize:"48px",lineHeight:"57px"},h4:{fontFamily:"'Red Hat Display', sans-serif",fontStyle:"normal",fontWeight:"bold",fontSize:"34px",lineHeight:"40px",letterSpacing:"0.35px"},h5:{fontFamily:"'Red Hat Display', sans-serif",fontStyle:"normal",fontWeight:"normal",fontSize:"24px",lineHeight:"32px"},h6:{fontFamily:"'Red Hat Display', sans-serif",fontStyle:"normal",fontWeight:"bold",fontSize:"20px",lineHeight:"24px",letterSpacing:"0.15px"},subtitle1:{fontFamily:"'Open Sans', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"16px",lineHeight:"20px",letterSpacing:"0.15px"},subtitle2:{fontFamily:"'Open Sans', sans-serif",fontStyle:"normal",fontWeight:700,fontSize:"14px",lineHeight:"24px",letterSpacing:"0.1px"},body1:{fontFamily:"'Open Sans', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"16px",lineHeight:"28px",letterSpacing:"0.44px"},body2:{fontFamily:"'Open Sans', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"14px",lineHeight:"24px",letterSpacing:"0.25px"},button:{fontFamily:"'Red Hat Display', sans-serif",fontWeight:700,fontStyle:"normal",fontSize:"14px",lineHeight:"18.52px",letterSpacing:"1.25px",textTransform:"uppercase"},caption:{fontFamily:"'Open Sans', sans-serif",fontWeight:400,fontStyle:"normal",fontSize:"12px",lineHeight:"16px",letterSpacing:"0.4px"},overline:{fontFamily:"'Red Hat Display', sans-serif",fontWeight:700,fontStyle:"normal",fontSize:"10px",lineHeight:"16px",letterSpacing:"1.25px",textTransform:"uppercase"},allVariants:{color:Pr.textDark}},nde={badge:{fontFamily:"'Open Sans', sans-serif",fontStyle:"normal",fontWeight:700,fontSize:"8px",lineHeight:"11px",letterSpacing:"0.42px"}},rde=e=>{const t={palette:tde,components:{MuiCssBaseline:{styleOverrides:{body:{backgroundColor:Pr.background},".customScrollbar *::-webkit-scrollbar":{maxWidth:8,backgroundColor:"#002274"},".customScrollbar *::-webkit-scrollbar-thumb":{backgroundColor:"#5B73D6",borderRadius:100,maxHeight:183,maxWidth:6,border:"1px solid #002274"}}},MuiAlert:{defaultProps:{variant:"outlined"},styleOverrides:{root:{alignItems:"center",padding:"7px 14px"},icon:{padding:0,marginRight:8},message:{...Vf.caption,fontWeight:700,padding:0}}},MuiAutocomplete:{styleOverrides:{inputRoot:{paddingTop:"5px",paddingBottom:"5px"}}},MuiAvatar:{styleOverrides:{colorDefault:{backgroundColor:Pr.background,color:Pr.textDark2}}},MuiButton:{defaultProps:{variant:"contained",disableElevation:!0},styleOverrides:{root:{minHeight:"36px",borderRadius:"100px",padding:"8.5px 20px"},outlined:{padding:"7.5px 20px"},text:{padding:"8.5px 20px"},outlinedPrimary:({theme:n})=>({borderColor:n.palette.primary.main}),contained:({ownerState:n,theme:r})=>{const o={};return n.color==="success"&&(o.color=r.palette.common.white),o}}},MuiChip:{styleOverrides:{root:({ownerState:n,theme:r})=>{const o={};return n.color==="warning"&&(o.color=r.palette.common.white,o.backgroundColor="#ED6C02"),o["&.Mui-disabled"]={opacity:1,backgroundColor:Pr.textDarkDisabled},o},icon:{marginLeft:7,fontSize:"1.375rem"},deleteIcon:{marginRight:7}}},MuiDialog:{styleOverrides:{paperWidthSm:{maxWidth:1200},paper:({theme:n})=>({[n.breakpoints.up("sm")]:{minWidth:500}})}},MuiDialogContent:{styleOverrides:{root:{paddingTop:"8px"}}},MuiDialogContentText:{styleOverrides:{root:{...Vf.body1,color:Pr.textDark2}}},MuiDivider:{styleOverrides:{root:{borderColor:Pr.textDark,opacity:.12}}},MuiDrawer:{styleOverrides:{paperAnchorDockedLeft:{borderRight:"none"}}},MuiFormControlLabel:{styleOverrides:{root:{"& .MuiCheckbox-root":{marginRight:"5px"}}}},MuiFormHelperText:{styleOverrides:{root:{color:Pr.textDark2,marginTop:"2px"}}},MuiFormLabel:{styleOverrides:{root:{color:Pr.textDark},filled:{color:Pr.textDark}}},MuiIconButton:{styleOverrides:{sizeSmall:{padding:2}}},MuiInputBase:{styleOverrides:{root:{color:Pr.textDark},input:{paddingTop:"12.5px",paddingBottom:"12.5px"},multiline:{paddingTop:"12.5px",paddingBottom:"12.5px"}}},MuiInputLabel:{styleOverrides:{outlined:{top:-3,color:Pr.textDark}}},MuiOutlinedInput:{styleOverrides:{root:({theme:n})=>({borderRadius:"4px",backgroundColor:n.palette.common.white}),notchedOutline:{borderColor:Pr.textDark},input:{paddingTop:"12.5px",paddingBottom:"12.5px"},inputMultiline:{padding:0},multiline:{paddingTop:"12.5px",paddingBottom:"12.5px"}}},MuiTab:{styleOverrides:{root:({theme:n})=>({height:"43px",minHeight:"43px",padding:"12px 16px",minWidth:0,[n.breakpoints.up("sm")]:{minWidth:0}})}},MuiTabs:{styleOverrides:{root:{height:"43px",minHeight:"43px"}}},MuiTextField:{defaultProps:{fullWidth:!0}},MuiTooltip:{styleOverrides:{tooltip:({theme:n})=>({borderRadius:"3px",backgroundColor:n.palette.primary.dark,padding:"5px 8px",...Vf.caption})}},MuiToggleButton:{styleOverrides:{root:{padding:"8px 12px 8px 12px",gap:4,borderRadius:4}}}},typography:Vf,shape:{borderRadius:12},extraColors:Pr,extraTypography:nde,layout:{pageHeader:{height:100,heightSmall:60},topbar:{height:72},sidebar:{openWidth:256,openWidthSmall:251,closedWidth:80}},customShadows:["0px 12px 20px -12px rgba(0, 0, 0, 0.12), inset 0px 0px 0px 1px #e1e4e8"]};if(e){const n=document.createElement("div");e.appendChild(n),t.components={...t.components,MuiPopover:{defaultProps:{container:n}},MuiPopper:{defaultProps:{container:n}}}}return Py(t)},ode=rde(null),Wde=({children:e,customTheme:t})=>{const n=t||ode;return R.jsx(jT,{injectFirst:!0,children:R.jsxs(Qz,{theme:n,children:[R.jsx(w4,{}),e]})})},ide={defaultOptions:{queries:{refetchOnWindowFocus:!1,retry:!1}}},qde=new jN(ide),sde=()=>{const{t:e}=Vs("reports");return R.jsxs("ul",{children:[R.jsx("li",{children:R.jsxs(Kv,{to:"/reports/dcim",children:[e("tabs.dcim")," "]})}),R.jsx("li",{children:R.jsxs(Kv,{to:"/reports/security",children:[e("tabs.security")," "]})})]})};var e0={},ade=Uo;Object.defineProperty(e0,"__esModule",{value:!0});var oM=e0.default=void 0,lde=ade(Ii()),ude=R;oM=e0.default=(0,lde.default)((0,ude.jsx)("path",{d:"M19 3h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1m0 15-5-5h3V9h4v4h3z"}),"AssignmentReturned");const cde=async({page:e,sort:t,order:n,size:r,id:o,reportName:i,reportStartDate:s,reportEndDate:l,reportType:u,site:c,location:f,allTickets:p},h)=>{const m={id:o,reportName:i,reportStartDate:s,reportEndDate:l,reportType:u,site:c,location:f,size:r,page:e};if(e&&(m.page=e-1),m.sort=t?[t,n].filter(Boolean).join(","):void 0,p)return await Ta.pagedRequest(Ta.post,"/reports",m,100,h);{const C=Ld({pathname:"reports",searchParams:m});return Ta.post(C,h)}},dde=async e=>{const t=Ld({pathname:`/reports/${e}/download`});return await(await Ta.get(t,!0)).blob()},fde=async()=>{const e=Ld({pathname:"/reports/request"});return await Ta.get(e)},pde=e=>qb([bg.ELEGIBLE_REPORTS],()=>fde(),{...e,refetchOnWindowFocus:!1});var iM=(e=>(e.CRITICAL_ENROLLMENT_OPERATOR_AND_THRESHOLD_EMPTY="CRITICAL_ENROLLMENT_OPERATOR_AND_THRESHOLD_EMPTY",e.DUPLICATE_RECORD="DUPLICATE_RECORD",e.MISSING_ASSET_DATA="MISSING_ASSET_DATA",e.OPTIMISTIC_LOCKING="OPTIMISTIC_LOCKING",e.ROLE_NOTFOUND="ROLE_NOTFOUND",e.SITE_CODE_INVALID="SITE_CODE_INVALID",e.THRESHOLD_VALIDATION_ERROR="THRESHOLD_VALIDATION_ERROR",e.USER_EXISTS="USER_EXISTS",e))(iM||{});const hde=e=>({content:[],pageable:{sort:{empty:!1,sorted:!0,unsorted:!1},offset:0,pageNumber:0,pageSize:e??20,paged:!0,unpaged:!1},last:!0,totalElements:0,totalPages:0,size:e??20,number:0,sort:{empty:!1,sorted:!0,unsorted:!1},first:!0,numberOfElements:0,empty:!1}),gde=async({page:e,sort:t,order:n,size:r,id:o,reportName:i,reportStartDate:s,reportEndDate:l,reportType:u,site:c,location:f},p)=>{const h={id:o,reportName:i,reportStartDate:s,reportEndDate:l,reportType:u,site:c,location:f,size:r,page:e};e&&(h.page=e-1),h.sort=t?[t,n].filter(Boolean).join(","):void 0;const m=Ld({pathname:"reports",searchParams:h});try{return await Ta.post(m,p)}catch(C){if((C==null?void 0:C.message)===iM.SITE_CODE_INVALID)return hde(r);throw C}},mde=(e,t,n)=>qb([bg.REPORTS,e],()=>gde(e,t),{...n,keepPreviousData:!0,refetchOnWindowFocus:!1}),vde=(e,t)=>async()=>{const n=await dde(e.trim());xie(n,t.trim())},sM=[{field:"id",headerName:"table.id",filterable:!1,width:110,renderCell:({row:e})=>R.jsx(oc,{children:e.id})},{field:"name",headerName:"table.name",renderCell:({row:e})=>R.jsx(oc,{children:e.name}),width:400},{field:"executionDate",headerName:"table.executionDate",filterable:!1,width:200,renderCell:({row:e})=>R.jsx(_v,{type:"date",value:e.executionDate})},{field:"startDate",headerName:"table.startDate",filterable:!1,width:200,renderCell:({row:e})=>R.jsx(_v,{type:"date",value:e.startDate})},{field:"endDate",headerName:"table.endDate",filterable:!1,width:200,renderCell:({row:e})=>R.jsx(_v,{type:"date",value:e.endDate})},{field:"type",headerName:"table.type",filterable:!1,sortable:!1,width:160,renderCell:({row:e})=>R.jsx(oc,{children:e.type})},{field:"site",headerName:"table.site",width:160,renderCell:({row:e})=>R.jsx(oc,{children:e.site})},{field:"location",headerName:"table.location",width:250,renderCell:({row:e})=>R.jsx(oc,{children:e.location})},{field:"attachment",headerName:"table.attachment",filterable:!1,sortable:!1,width:160,renderCell:({row:e})=>R.jsx(Jn,{onClick:vde(e.id,e.name),"aria-label":"select columns",size:"small",children:R.jsx(oM,{color:"primary"})})}],bde=async(e=!1,t=!1)=>{const n=iue({pathname:"/usermanagement/my-permissions",searchParams:{exclude_siblings:e,exclude_parents:t}});return Ta.get(n)},yde=(e,t=!1,n=!1)=>qb([bg.PERMISSIONS_PRIVILEGES],()=>bde(t,n),e),Cde=({children:e})=>{const t=localStorage.getItem(QC.X_AUTH),n=t?JSON.parse(t):null,r=It(()=>new Map,[]),o={enabled:!!(n!=null&&n.access_token),refetchOnWindowFocus:!1},{data:i,isLoading:s,isError:l}=yde(o,!0);It(()=>{i&&(r.clear(),i.forEach(f=>{r.set(f.permission_name,f.privilege)}))},[i,r]);const u=(f,p=Ko.READ,h=!0)=>{const m=C=>{const b=r.get(C);return b?c(b,p):!1};return h?f.every(m):f.some(m)},c=(f,p)=>{const h={[Ko.READ]:1,[Ko.UPDATE]:2,[Ko.DELETE]:4,[Ko.CREATE]:8,[Ko.APPROVE]:16};return h[p]<=h[f]};return R.jsx(DO.Provider,{value:{email:n==null?void 0:n.email,checkAccess:u,isError:l,permissionsPrivileges:i,ready:!s},children:e})},wde=Gt(R.jsx("path",{d:"M10 18h4v-2h-4zM3 6v2h18V6zm3 7h12v-2H6z"}),"FilterList"),xde=()=>{const e=Bs(),t=sI(e.breakpoints.down("sm")),n=()=>{var r;(r=document.getElementById("btn-open-filter"))==null||r.click()};return t?R.jsxs(R.Fragment,{children:[R.jsx(Jn,{onClick:n,size:"small",color:"primary",children:R.jsx(wde,{})}),R.jsx(aE,{componentsProps:{button:{id:"btn-open-filter"}},style:{display:"none"},placeholder:void 0,onPointerEnterCapture:void 0,onPointerLeaveCapture:void 0,onResize:void 0,onResizeCapture:void 0})]}):R.jsx(aE,{componentsProps:{button:{variant:"text",size:"small",style:{padding:4}}},placeholder:void 0,onPointerEnterCapture:void 0,onPointerLeaveCapture:void 0,onResize:void 0,onResizeCapture:void 0})},aM=ns({disableMenu:!1,downloadMenuItems:[]}),Sde=ne("div")`
676
+ `,tM=({children:e,onClose:t,open:n,...r})=>R.jsx(Oue,{anchor:"right",open:n,onClose:t,...r,children:e}),St=e=>typeof e=="string",ic=()=>{let e,t;const n=new Promise((r,o)=>{e=r,t=o});return n.resolve=e,n.reject=t,n},DP=e=>e==null?"":""+e,Mue=(e,t,n)=>{e.forEach(r=>{t[r]&&(n[r]=t[r])})},Lue=/###/g,$P=e=>e&&e.indexOf("###")>-1?e.replace(Lue,"."):e,kP=e=>!e||St(e),Ac=(e,t,n)=>{const r=St(t)?t.split("."):t;let o=0;for(;o<r.length-1;){if(kP(e))return{};const i=$P(r[o]);!e[i]&&n&&(e[i]=new n),Object.prototype.hasOwnProperty.call(e,i)?e=e[i]:e={},++o}return kP(e)?{}:{obj:e,k:$P(r[o])}},FP=(e,t,n)=>{const{obj:r,k:o}=Ac(e,t,Object);if(r!==void 0||t.length===1){r[o]=n;return}let i=t[t.length-1],s=t.slice(0,t.length-1),l=Ac(e,s,Object);for(;l.obj===void 0&&s.length;)i=`${s[s.length-1]}.${i}`,s=s.slice(0,s.length-1),l=Ac(e,s,Object),l&&l.obj&&typeof l.obj[`${l.k}.${i}`]<"u"&&(l.obj=void 0);l.obj[`${l.k}.${i}`]=n},Aue=(e,t,n,r)=>{const{obj:o,k:i}=Ac(e,t,Object);o[i]=o[i]||[],o[i].push(n)},th=(e,t)=>{const{obj:n,k:r}=Ac(e,t);if(n)return n[r]},Due=(e,t,n)=>{const r=th(e,n);return r!==void 0?r:th(t,n)},nM=(e,t,n)=>{for(const r in t)r!=="__proto__"&&r!=="constructor"&&(r in e?St(e[r])||e[r]instanceof String||St(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):nM(e[r],t[r],n):e[r]=t[r]);return e},Sl=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var $ue={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};const kue=e=>St(e)?e.replace(/[&<>"'\/]/g,t=>$ue[t]):e;class Fue{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const n=this.regExpMap.get(t);if(n!==void 0)return n;const r=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,r),this.regExpQueue.push(t),r}}const Nue=[" ",",","?","!",";"],Hue=new Fue(20),Bue=(e,t,n)=>{t=t||"",n=n||"";const r=Nue.filter(s=>t.indexOf(s)<0&&n.indexOf(s)<0);if(r.length===0)return!0;const o=Hue.getRegExp(`(${r.map(s=>s==="?"?"\\?":s).join("|")})`);let i=!o.test(e);if(!i){const s=e.indexOf(n);s>0&&!o.test(e.substring(0,s))&&(i=!0)}return i},Gb=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[t])return e[t];const r=t.split(n);let o=e;for(let i=0;i<r.length;){if(!o||typeof o!="object")return;let s,l="";for(let u=i;u<r.length;++u)if(u!==i&&(l+=n),l+=r[u],s=o[l],s!==void 0){if(["string","number","boolean"].indexOf(typeof s)>-1&&u<r.length-1)continue;i+=u-i+1;break}o=s}return o},nh=e=>e&&e.replace("_","-"),Uue={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class rh{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(t,n)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=t||Uue,this.options=n,this.debug=n.debug}log(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"log","",!0)}warn(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","",!0)}error(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"error","")}deprecate(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}forward(t,n,r,o){return o&&!this.debug?null:(St(t[0])&&(t[0]=`${r}${this.prefix} ${t[0]}`),this.logger[n](t))}create(t){return new rh(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new rh(this.logger,t)}}var Ci=new rh;class yg{constructor(){this.observers={}}on(t,n){return t.split(" ").forEach(r=>{this.observers[r]||(this.observers[r]=new Map);const o=this.observers[r].get(n)||0;this.observers[r].set(n,o+1)}),this}off(t,n){if(this.observers[t]){if(!n){delete this.observers[t];return}this.observers[t].delete(n)}}emit(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];this.observers[t]&&Array.from(this.observers[t].entries()).forEach(s=>{let[l,u]=s;for(let c=0;c<u;c++)l(...r)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(s=>{let[l,u]=s;for(let c=0;c<u;c++)l.apply(l,[t,...r])})}}class NP extends yg{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const n=this.options.ns.indexOf(t);n>-1&&this.options.ns.splice(n,1)}getResource(t,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const i=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,s=o.ignoreJSONStructure!==void 0?o.ignoreJSONStructure:this.options.ignoreJSONStructure;let l;t.indexOf(".")>-1?l=t.split("."):(l=[t,n],r&&(Array.isArray(r)?l.push(...r):St(r)&&i?l.push(...r.split(i)):l.push(r)));const u=th(this.data,l);return!u&&!n&&!r&&t.indexOf(".")>-1&&(t=l[0],n=l[1],r=l.slice(2).join(".")),u||!s||!St(r)?u:Gb(this.data&&this.data[t]&&this.data[t][n],r,i)}addResource(t,n,r,o){let i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const s=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator;let l=[t,n];r&&(l=l.concat(s?r.split(s):r)),t.indexOf(".")>-1&&(l=t.split("."),o=n,n=l[1]),this.addNamespaces(n),FP(this.data,l,o),i.silent||this.emit("added",t,n,r,o)}addResources(t,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const i in r)(St(r[i])||Array.isArray(r[i]))&&this.addResource(t,n,i,r[i],{silent:!0});o.silent||this.emit("added",t,n,r)}addResourceBundle(t,n,r,o,i){let s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},l=[t,n];t.indexOf(".")>-1&&(l=t.split("."),o=r,r=n,n=l[1]),this.addNamespaces(n);let u=th(this.data,l)||{};s.skipCopy||(r=JSON.parse(JSON.stringify(r))),o?nM(u,r,i):u={...u,...r},FP(this.data,l,u),s.silent||this.emit("added",t,n,r)}removeResourceBundle(t,n){this.hasResourceBundle(t,n)&&delete this.data[t][n],this.removeNamespaces(n),this.emit("removed",t,n)}hasResourceBundle(t,n){return this.getResource(t,n)!==void 0}getResourceBundle(t,n){return n||(n=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(t,n)}:this.getResource(t,n)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const n=this.getDataByLanguage(t);return!!(n&&Object.keys(n)||[]).find(o=>n[o]&&Object.keys(n[o]).length>0)}toJSON(){return this.data}}var rM={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,o){return e.forEach(i=>{this.processors[i]&&(t=this.processors[i].process(t,n,r,o))}),t}};const HP={};class oh extends yg{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),Mue(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Ci.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(t==null)return!1;const r=this.resolve(t,n);return r&&r.res!==void 0}extractFromKey(t,n){let r=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const o=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let i=n.ns||this.options.defaultNS||[];const s=r&&t.indexOf(r)>-1,l=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!Bue(t,r,o);if(s&&!l){const u=t.match(this.interpolator.nestingRegexp);if(u&&u.length>0)return{key:t,namespaces:St(i)?[i]:i};const c=t.split(r);(r!==o||r===o&&this.options.ns.indexOf(c[0])>-1)&&(i=c.shift()),t=c.join(o)}return{key:t,namespaces:St(i)?[i]:i}}translate(t,n,r){if(typeof n!="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),typeof n=="object"&&(n={...n}),n||(n={}),t==null)return"";Array.isArray(t)||(t=[String(t)]);const o=n.returnDetails!==void 0?n.returnDetails:this.options.returnDetails,i=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,{key:s,namespaces:l}=this.extractFromKey(t[t.length-1],n),u=l[l.length-1],c=n.lng||this.language,f=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(c&&c.toLowerCase()==="cimode"){if(f){const w=n.nsSeparator||this.options.nsSeparator;return o?{res:`${u}${w}${s}`,usedKey:s,exactUsedKey:s,usedLng:c,usedNS:u,usedParams:this.getUsedParamsDetails(n)}:`${u}${w}${s}`}return o?{res:s,usedKey:s,exactUsedKey:s,usedLng:c,usedNS:u,usedParams:this.getUsedParamsDetails(n)}:s}const p=this.resolve(t,n);let h=p&&p.res;const m=p&&p.usedKey||s,C=p&&p.exactUsedKey||s,b=Object.prototype.toString.apply(h),S=["[object Number]","[object Function]","[object RegExp]"],T=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,P=!this.i18nFormat||this.i18nFormat.handleAsObject,E=!St(h)&&typeof h!="boolean"&&typeof h!="number";if(P&&h&&E&&S.indexOf(b)<0&&!(St(T)&&Array.isArray(h))){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const w=this.options.returnedObjectHandler?this.options.returnedObjectHandler(m,h,{...n,ns:l}):`key '${s} (${this.language})' returned an object instead of string.`;return o?(p.res=w,p.usedParams=this.getUsedParamsDetails(n),p):w}if(i){const w=Array.isArray(h),M=w?[]:{},I=w?C:m;for(const x in h)if(Object.prototype.hasOwnProperty.call(h,x)){const _=`${I}${i}${x}`;M[x]=this.translate(_,{...n,joinArrays:!1,ns:l}),M[x]===_&&(M[x]=h[x])}h=M}}else if(P&&St(T)&&Array.isArray(h))h=h.join(T),h&&(h=this.extendTranslation(h,t,n,r));else{let w=!1,M=!1;const I=n.count!==void 0&&!St(n.count),x=oh.hasDefaultValue(n),_=I?this.pluralResolver.getSuffix(c,n.count,n):"",L=n.ordinal&&I?this.pluralResolver.getSuffix(c,n.count,{ordinal:!1}):"",A=I&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),D=A&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${_}`]||n[`defaultValue${L}`]||n.defaultValue;!this.isValidLookup(h)&&x&&(w=!0,h=D),this.isValidLookup(h)||(M=!0,h=s);const B=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&M?void 0:h,k=x&&D!==h&&this.options.updateMissing;if(M||w||k){if(this.logger.log(k?"updateKey":"missingKey",c,u,s,k?D:h),i){const N=this.resolve(s,{...n,keySeparator:!1});N&&N.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let $=[];const U=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&U&&U[0])for(let N=0;N<U.length;N++)$.push(U[N]);else this.options.saveMissingTo==="all"?$=this.languageUtils.toResolveHierarchy(n.lng||this.language):$.push(n.lng||this.language);const V=(N,j,W)=>{const oe=x&&W!==h?W:B;this.options.missingKeyHandler?this.options.missingKeyHandler(N,u,j,oe,k,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(N,u,j,oe,k,n),this.emit("missingKey",N,u,j,h)};this.options.saveMissing&&(this.options.saveMissingPlurals&&I?$.forEach(N=>{const j=this.pluralResolver.getSuffixes(N,n);A&&n[`defaultValue${this.options.pluralSeparator}zero`]&&j.indexOf(`${this.options.pluralSeparator}zero`)<0&&j.push(`${this.options.pluralSeparator}zero`),j.forEach(W=>{V([N],s+W,n[`defaultValue${W}`]||D)})}):V($,s,D))}h=this.extendTranslation(h,t,n,p,r),M&&h===s&&this.options.appendNamespaceToMissingKey&&(h=`${u}:${s}`),(M||w)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?h=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${u}:${s}`:s,w?h:void 0):h=this.options.parseMissingKeyHandler(h))}return o?(p.res=h,p.usedParams=this.getUsedParamsDetails(n),p):h}extendTranslation(t,n,r,o,i){var s=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||o.usedLng,o.usedNS,o.usedKey,{resolved:o});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const c=St(t)&&(r&&r.interpolation&&r.interpolation.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let f;if(c){const h=t.match(this.interpolator.nestingRegexp);f=h&&h.length}let p=r.replace&&!St(r.replace)?r.replace:r;if(this.options.interpolation.defaultVariables&&(p={...this.options.interpolation.defaultVariables,...p}),t=this.interpolator.interpolate(t,p,r.lng||this.language||o.usedLng,r),c){const h=t.match(this.interpolator.nestingRegexp),m=h&&h.length;f<m&&(r.nest=!1)}!r.lng&&this.options.compatibilityAPI!=="v1"&&o&&o.res&&(r.lng=this.language||o.usedLng),r.nest!==!1&&(t=this.interpolator.nest(t,function(){for(var h=arguments.length,m=new Array(h),C=0;C<h;C++)m[C]=arguments[C];return i&&i[0]===m[0]&&!r.context?(s.logger.warn(`It seems you are nesting recursively key: ${m[0]} in key: ${n[0]}`),null):s.translate(...m,n)},r)),r.interpolation&&this.interpolator.reset()}const l=r.postProcess||this.options.postProcess,u=St(l)?[l]:l;return t!=null&&u&&u.length&&r.applyPostProcessor!==!1&&(t=rM.handle(u,t,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...o,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),t}resolve(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r,o,i,s,l;return St(t)&&(t=[t]),t.forEach(u=>{if(this.isValidLookup(r))return;const c=this.extractFromKey(u,n),f=c.key;o=f;let p=c.namespaces;this.options.fallbackNS&&(p=p.concat(this.options.fallbackNS));const h=n.count!==void 0&&!St(n.count),m=h&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),C=n.context!==void 0&&(St(n.context)||typeof n.context=="number")&&n.context!=="",b=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);p.forEach(S=>{this.isValidLookup(r)||(l=S,!HP[`${b[0]}-${S}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(l)&&(HP[`${b[0]}-${S}`]=!0,this.logger.warn(`key "${o}" for languages "${b.join(", ")}" won't get resolved as namespace "${l}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),b.forEach(T=>{if(this.isValidLookup(r))return;s=T;const P=[f];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(P,f,T,S,n);else{let w;h&&(w=this.pluralResolver.getSuffix(T,n.count,n));const M=`${this.options.pluralSeparator}zero`,I=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(h&&(P.push(f+w),n.ordinal&&w.indexOf(I)===0&&P.push(f+w.replace(I,this.options.pluralSeparator)),m&&P.push(f+M)),C){const x=`${f}${this.options.contextSeparator}${n.context}`;P.push(x),h&&(P.push(x+w),n.ordinal&&w.indexOf(I)===0&&P.push(x+w.replace(I,this.options.pluralSeparator)),m&&P.push(x+M))}}let E;for(;E=P.pop();)this.isValidLookup(r)||(i=E,r=this.getResource(T,S,E,n))}))})}),{res:r,usedKey:o,exactUsedKey:i,usedLng:s,usedNS:l}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,n,r,o):this.resourceStore.getResource(t,n,r,o)}getUsedParamsDetails(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=t.replace&&!St(t.replace);let o=r?t.replace:t;if(r&&typeof t.count<"u"&&(o.count=t.count),this.options.interpolation.defaultVariables&&(o={...this.options.interpolation.defaultVariables,...o}),!r){o={...o};for(const i of n)delete o[i]}return o}static hasDefaultValue(t){const n="defaultValue";for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&n===r.substring(0,n.length)&&t[r]!==void 0)return!0;return!1}}const Hv=e=>e.charAt(0).toUpperCase()+e.slice(1);class BP{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Ci.create("languageUtils")}getScriptPartFromCode(t){if(t=nh(t),!t||t.indexOf("-")<0)return null;const n=t.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(t){if(t=nh(t),!t||t.indexOf("-")<0)return t;const n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(St(t)&&t.indexOf("-")>-1){if(typeof Intl<"u"&&typeof Intl.getCanonicalLocales<"u")try{let o=Intl.getCanonicalLocales(t)[0];if(o&&this.options.lowerCaseLng&&(o=o.toLowerCase()),o)return o}catch{}const n=["hans","hant","latn","cyrl","cans","mong","arab"];let r=t.split("-");return this.options.lowerCaseLng?r=r.map(o=>o.toLowerCase()):r.length===2?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=Hv(r[1].toLowerCase()))):r.length===3&&(r[0]=r[0].toLowerCase(),r[1].length===2&&(r[1]=r[1].toUpperCase()),r[0]!=="sgn"&&r[2].length===2&&(r[2]=r[2].toUpperCase()),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=Hv(r[1].toLowerCase())),n.indexOf(r[2].toLowerCase())>-1&&(r[2]=Hv(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let n;return t.forEach(r=>{if(n)return;const o=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(o))&&(n=o)}),!n&&this.options.supportedLngs&&t.forEach(r=>{if(n)return;const o=this.getLanguagePartFromCode(r);if(this.isSupportedCode(o))return n=o;n=this.options.supportedLngs.find(i=>{if(i===o)return i;if(!(i.indexOf("-")<0&&o.indexOf("-")<0)&&(i.indexOf("-")>0&&o.indexOf("-")<0&&i.substring(0,i.indexOf("-"))===o||i.indexOf(o)===0&&o.length>1))return i})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),St(t)&&(t=[t]),Array.isArray(t))return t;if(!n)return t.default||[];let r=t[n];return r||(r=t[this.getScriptPartFromCode(n)]),r||(r=t[this.formatLanguageCode(n)]),r||(r=t[this.getLanguagePartFromCode(n)]),r||(r=t.default),r||[]}toResolveHierarchy(t,n){const r=this.getFallbackCodes(n||this.options.fallbackLng||[],t),o=[],i=s=>{s&&(this.isSupportedCode(s)?o.push(s):this.logger.warn(`rejecting language code not found in supportedLngs: ${s}`))};return St(t)&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&i(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&i(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&i(this.getLanguagePartFromCode(t))):St(t)&&i(this.formatLanguageCode(t)),r.forEach(s=>{o.indexOf(s)<0&&i(this.formatLanguageCode(s))}),o}}let jue=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],zue={1:e=>+(e>1),2:e=>+(e!=1),3:e=>0,4:e=>e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2,5:e=>e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5,6:e=>e==1?0:e>=2&&e<=4?1:2,7:e=>e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2,8:e=>e==1?0:e==2?1:e!=8&&e!=11?2:3,9:e=>+(e>=2),10:e=>e==1?0:e==2?1:e<7?2:e<11?3:4,11:e=>e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3,12:e=>+(e%10!=1||e%100==11),13:e=>+(e!==0),14:e=>e==1?0:e==2?1:e==3?2:3,15:e=>e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2,16:e=>e%10==1&&e%100!=11?0:e!==0?1:2,17:e=>e==1||e%10==1&&e%100!=11?0:1,18:e=>e==0?0:e==1?1:2,19:e=>e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3,20:e=>e==1?0:e==0||e%100>0&&e%100<20?1:2,21:e=>e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0,22:e=>e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3};const Gue=["v1","v2","v3"],Vue=["v4"],UP={zero:0,one:1,two:2,few:3,many:4,other:5},Wue=()=>{const e={};return jue.forEach(t=>{t.lngs.forEach(n=>{e[n]={numbers:t.nr,plurals:zue[t.fc]}})}),e};class que{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=n,this.logger=Ci.create("pluralResolver"),(!this.options.compatibilityJSON||Vue.includes(this.options.compatibilityJSON))&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=Wue(),this.pluralRulesCache={}}addRule(t,n){this.rules[t]=n}clearCache(){this.pluralRulesCache={}}getRule(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi()){const r=nh(t==="dev"?"en":t),o=n.ordinal?"ordinal":"cardinal",i=JSON.stringify({cleanedCode:r,type:o});if(i in this.pluralRulesCache)return this.pluralRulesCache[i];let s;try{s=new Intl.PluralRules(r,{type:o})}catch{if(!t.match(/-|_/))return;const u=this.languageUtils.getLanguagePartFromCode(t);s=this.getRule(u,n)}return this.pluralRulesCache[i]=s,s}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}needsPlural(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(t,n);return this.shouldUseIntlApi()?r&&r.resolvedOptions().pluralCategories.length>1:r&&r.numbers.length>1}getPluralFormsOfKey(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(t,r).map(o=>`${n}${o}`)}getSuffixes(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(t,n);return r?this.shouldUseIntlApi()?r.resolvedOptions().pluralCategories.sort((o,i)=>UP[o]-UP[i]).map(o=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${o}`):r.numbers.map(o=>this.getSuffix(t,o,n)):[]}getSuffix(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const o=this.getRule(t,r);return o?this.shouldUseIntlApi()?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${o.select(n)}`:this.getSuffixRetroCompatible(o,n):(this.logger.warn(`no plural rule found for: ${t}`),"")}getSuffixRetroCompatible(t,n){const r=t.noAbs?t.plurals(n):t.plurals(Math.abs(n));let o=t.numbers[r];this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1&&(o===2?o="plural":o===1&&(o=""));const i=()=>this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString();return this.options.compatibilityJSON==="v1"?o===1?"":typeof o=="number"?`_plural_${o.toString()}`:i():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1?i():this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString()}shouldUseIntlApi(){return!Gue.includes(this.options.compatibilityJSON)}}const jP=function(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,i=Due(e,t,n);return!i&&o&&St(n)&&(i=Gb(e,n,r),i===void 0&&(i=Gb(t,n,r))),i},Bv=e=>e.replace(/\$/g,"$$$$");class Kue{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Ci.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||(n=>n),this.init(t)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});const{escape:n,escapeValue:r,useRawValueToEscape:o,prefix:i,prefixEscaped:s,suffix:l,suffixEscaped:u,formatSeparator:c,unescapeSuffix:f,unescapePrefix:p,nestingPrefix:h,nestingPrefixEscaped:m,nestingSuffix:C,nestingSuffixEscaped:b,nestingOptionsSeparator:S,maxReplaces:T,alwaysFormat:P}=t.interpolation;this.escape=n!==void 0?n:kue,this.escapeValue=r!==void 0?r:!0,this.useRawValueToEscape=o!==void 0?o:!1,this.prefix=i?Sl(i):s||"{{",this.suffix=l?Sl(l):u||"}}",this.formatSeparator=c||",",this.unescapePrefix=f?"":p||"-",this.unescapeSuffix=this.unescapePrefix?"":f||"",this.nestingPrefix=h?Sl(h):m||Sl("$t("),this.nestingSuffix=C?Sl(C):b||Sl(")"),this.nestingOptionsSeparator=S||",",this.maxReplaces=T||1e3,this.alwaysFormat=P!==void 0?P:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(n,r)=>n&&n.source===r?(n.lastIndex=0,n):new RegExp(r,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(t,n,r,o){let i,s,l;const u=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},c=m=>{if(m.indexOf(this.formatSeparator)<0){const T=jP(n,u,m,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(T,void 0,r,{...o,...n,interpolationkey:m}):T}const C=m.split(this.formatSeparator),b=C.shift().trim(),S=C.join(this.formatSeparator).trim();return this.format(jP(n,u,b,this.options.keySeparator,this.options.ignoreJSONStructure),S,r,{...o,...n,interpolationkey:b})};this.resetRegExp();const f=o&&o.missingInterpolationHandler||this.options.missingInterpolationHandler,p=o&&o.interpolation&&o.interpolation.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:m=>Bv(m)},{regex:this.regexp,safeValue:m=>this.escapeValue?Bv(this.escape(m)):Bv(m)}].forEach(m=>{for(l=0;i=m.regex.exec(t);){const C=i[1].trim();if(s=c(C),s===void 0)if(typeof f=="function"){const S=f(t,i,o);s=St(S)?S:""}else if(o&&Object.prototype.hasOwnProperty.call(o,C))s="";else if(p){s=i[0];continue}else this.logger.warn(`missed to pass in variable ${C} for interpolating ${t}`),s="";else!St(s)&&!this.useRawValueToEscape&&(s=DP(s));const b=m.safeValue(s);if(t=t.replace(i[0],b),p?(m.regex.lastIndex+=s.length,m.regex.lastIndex-=i[0].length):m.regex.lastIndex=0,l++,l>=this.maxReplaces)break}}),t}nest(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o,i,s;const l=(u,c)=>{const f=this.nestingOptionsSeparator;if(u.indexOf(f)<0)return u;const p=u.split(new RegExp(`${f}[ ]*{`));let h=`{${p[1]}`;u=p[0],h=this.interpolate(h,s);const m=h.match(/'/g),C=h.match(/"/g);(m&&m.length%2===0&&!C||C.length%2!==0)&&(h=h.replace(/'/g,'"'));try{s=JSON.parse(h),c&&(s={...c,...s})}catch(b){return this.logger.warn(`failed parsing options string in nesting for key ${u}`,b),`${u}${f}${h}`}return s.defaultValue&&s.defaultValue.indexOf(this.prefix)>-1&&delete s.defaultValue,u};for(;o=this.nestingRegexp.exec(t);){let u=[];s={...r},s=s.replace&&!St(s.replace)?s.replace:s,s.applyPostProcessor=!1,delete s.defaultValue;let c=!1;if(o[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(o[1])){const f=o[1].split(this.formatSeparator).map(p=>p.trim());o[1]=f.shift(),u=f,c=!0}if(i=n(l.call(this,o[1].trim(),s),s),i&&o[0]===t&&!St(i))return i;St(i)||(i=DP(i)),i||(this.logger.warn(`missed to resolve ${o[1]} for nesting ${t}`),i=""),c&&(i=u.reduce((f,p)=>this.format(f,p,r.lng,{...r,interpolationkey:o[1].trim()}),i.trim())),t=t.replace(o[0],i),this.regexp.lastIndex=0}return t}}const Xue=e=>{let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const r=e.split("(");t=r[0].toLowerCase().trim();const o=r[1].substring(0,r[1].length-1);t==="currency"&&o.indexOf(":")<0?n.currency||(n.currency=o.trim()):t==="relativetime"&&o.indexOf(":")<0?n.range||(n.range=o.trim()):o.split(";").forEach(s=>{if(s){const[l,...u]=s.split(":"),c=u.join(":").trim().replace(/^'+|'+$/g,""),f=l.trim();n[f]||(n[f]=c),c==="false"&&(n[f]=!1),c==="true"&&(n[f]=!0),isNaN(c)||(n[f]=parseInt(c,10))}})}return{formatName:t,formatOptions:n}},El=e=>{const t={};return(n,r,o)=>{let i=o;o&&o.interpolationkey&&o.formatParams&&o.formatParams[o.interpolationkey]&&o[o.interpolationkey]&&(i={...i,[o.interpolationkey]:void 0});const s=r+JSON.stringify(i);let l=t[s];return l||(l=e(nh(r),o),t[s]=l),l(n)}};class Que{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Ci.create("formatter"),this.options=t,this.formats={number:El((n,r)=>{const o=new Intl.NumberFormat(n,{...r});return i=>o.format(i)}),currency:El((n,r)=>{const o=new Intl.NumberFormat(n,{...r,style:"currency"});return i=>o.format(i)}),datetime:El((n,r)=>{const o=new Intl.DateTimeFormat(n,{...r});return i=>o.format(i)}),relativetime:El((n,r)=>{const o=new Intl.RelativeTimeFormat(n,{...r});return i=>o.format(i,r.range||"day")}),list:El((n,r)=>{const o=new Intl.ListFormat(n,{...r});return i=>o.format(i)})},this.init(t)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};this.formatSeparator=n.interpolation.formatSeparator||","}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=El(n)}format(t,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const i=n.split(this.formatSeparator);if(i.length>1&&i[0].indexOf("(")>1&&i[0].indexOf(")")<0&&i.find(l=>l.indexOf(")")>-1)){const l=i.findIndex(u=>u.indexOf(")")>-1);i[0]=[i[0],...i.splice(1,l)].join(this.formatSeparator)}return i.reduce((l,u)=>{const{formatName:c,formatOptions:f}=Xue(u);if(this.formats[c]){let p=l;try{const h=o&&o.formatParams&&o.formatParams[o.interpolationkey]||{},m=h.locale||h.lng||o.locale||o.lng||r;p=this.formats[c](l,m,{...f,...o,...h})}catch(h){this.logger.warn(h)}return p}else this.logger.warn(`there was no format function for ${c}`);return l},t)}}const Jue=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)};class Zue extends yg{constructor(t,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=t,this.store=n,this.services=r,this.languageUtils=r.languageUtils,this.options=o,this.logger=Ci.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=o.maxParallelReads||10,this.readingCalls=0,this.maxRetries=o.maxRetries>=0?o.maxRetries:5,this.retryTimeout=o.retryTimeout>=1?o.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(r,o.backend,o)}queueLoad(t,n,r,o){const i={},s={},l={},u={};return t.forEach(c=>{let f=!0;n.forEach(p=>{const h=`${c}|${p}`;!r.reload&&this.store.hasResourceBundle(c,p)?this.state[h]=2:this.state[h]<0||(this.state[h]===1?s[h]===void 0&&(s[h]=!0):(this.state[h]=1,f=!1,s[h]===void 0&&(s[h]=!0),i[h]===void 0&&(i[h]=!0),u[p]===void 0&&(u[p]=!0)))}),f||(l[c]=!0)}),(Object.keys(i).length||Object.keys(s).length)&&this.queue.push({pending:s,pendingCount:Object.keys(s).length,loaded:{},errors:[],callback:o}),{toLoad:Object.keys(i),pending:Object.keys(s),toLoadLanguages:Object.keys(l),toLoadNamespaces:Object.keys(u)}}loaded(t,n,r){const o=t.split("|"),i=o[0],s=o[1];n&&this.emit("failedLoading",i,s,n),!n&&r&&this.store.addResourceBundle(i,s,r,void 0,void 0,{skipCopy:!0}),this.state[t]=n?-1:2,n&&r&&(this.state[t]=0);const l={};this.queue.forEach(u=>{Aue(u.loaded,[i],s),Jue(u,t),n&&u.errors.push(n),u.pendingCount===0&&!u.done&&(Object.keys(u.loaded).forEach(c=>{l[c]||(l[c]={});const f=u.loaded[c];f.length&&f.forEach(p=>{l[c][p]===void 0&&(l[c][p]=!0)})}),u.done=!0,u.errors.length?u.callback(u.errors):u.callback())}),this.emit("loaded",l),this.queue=this.queue.filter(u=>!u.done)}read(t,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,s=arguments.length>5?arguments[5]:void 0;if(!t.length)return s(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:n,fcName:r,tried:o,wait:i,callback:s});return}this.readingCalls++;const l=(c,f)=>{if(this.readingCalls--,this.waitingReads.length>0){const p=this.waitingReads.shift();this.read(p.lng,p.ns,p.fcName,p.tried,p.wait,p.callback)}if(c&&f&&o<this.maxRetries){setTimeout(()=>{this.read.call(this,t,n,r,o+1,i*2,s)},i);return}s(c,f)},u=this.backend[r].bind(this.backend);if(u.length===2){try{const c=u(t,n);c&&typeof c.then=="function"?c.then(f=>l(null,f)).catch(l):l(null,c)}catch(c){l(c)}return}return u(t,n,l)}prepareLoading(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();St(t)&&(t=this.languageUtils.toResolveHierarchy(t)),St(n)&&(n=[n]);const i=this.queueLoad(t,n,r,o);if(!i.toLoad.length)return i.pending.length||o(),null;i.toLoad.forEach(s=>{this.loadOne(s)})}load(t,n,r){this.prepareLoading(t,n,{},r)}reload(t,n,r){this.prepareLoading(t,n,{reload:!0},r)}loadOne(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const r=t.split("|"),o=r[0],i=r[1];this.read(o,i,"read",void 0,void 0,(s,l)=>{s&&this.logger.warn(`${n}loading namespace ${i} for language ${o} failed`,s),!s&&l&&this.logger.log(`${n}loaded namespace ${i} for language ${o}`,l),this.loaded(t,s,l)})}saveMissing(t,n,r,o,i){let s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},l=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(n)){this.logger.warn(`did not save key "${r}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(r==null||r==="")){if(this.backend&&this.backend.create){const u={...s,isUpdate:i},c=this.backend.create.bind(this.backend);if(c.length<6)try{let f;c.length===5?f=c(t,n,r,o,u):f=c(t,n,r,o),f&&typeof f.then=="function"?f.then(p=>l(null,p)).catch(l):l(null,f)}catch(f){l(f)}else c(t,n,r,o,l,u)}!t||!t[0]||this.store.addResource(t[0],n,r,o)}}}const zP=()=>({debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),St(e[1])&&(t.defaultValue=e[1]),St(e[2])&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){const n=e[3]||e[2];Object.keys(n).forEach(r=>{t[r]=n[r]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),GP=e=>(St(e.ns)&&(e.ns=[e.ns]),St(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),St(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),Gf=()=>{},Yue=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})};class od extends yg{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=GP(t),this.services={},this.logger=Ci,this.modules={external:[]},Yue(this),n&&!this.isInitialized&&!t.isClone){if(!this.options.initImmediate)return this.init(t,n),this;setTimeout(()=>{this.init(t,n)},0)}}init(){var t=this;let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof n=="function"&&(r=n,n={}),!n.defaultNS&&n.defaultNS!==!1&&n.ns&&(St(n.ns)?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));const o=zP();this.options={...o,...this.options,...GP(n)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...o.interpolation,...this.options.interpolation}),n.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=n.keySeparator),n.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=n.nsSeparator);const i=f=>f?typeof f=="function"?new f:f:null;if(!this.options.isClone){this.modules.logger?Ci.init(i(this.modules.logger),this.options):Ci.init(null,this.options);let f;this.modules.formatter?f=this.modules.formatter:typeof Intl<"u"&&(f=Que);const p=new BP(this.options);this.store=new NP(this.options.resources,this.options);const h=this.services;h.logger=Ci,h.resourceStore=this.store,h.languageUtils=p,h.pluralResolver=new que(p,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),f&&(!this.options.interpolation.format||this.options.interpolation.format===o.interpolation.format)&&(h.formatter=i(f),h.formatter.init(h,this.options),this.options.interpolation.format=h.formatter.format.bind(h.formatter)),h.interpolator=new Kue(this.options),h.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},h.backendConnector=new Zue(i(this.modules.backend),h.resourceStore,h,this.options),h.backendConnector.on("*",function(m){for(var C=arguments.length,b=new Array(C>1?C-1:0),S=1;S<C;S++)b[S-1]=arguments[S];t.emit(m,...b)}),this.modules.languageDetector&&(h.languageDetector=i(this.modules.languageDetector),h.languageDetector.init&&h.languageDetector.init(h,this.options.detection,this.options)),this.modules.i18nFormat&&(h.i18nFormat=i(this.modules.i18nFormat),h.i18nFormat.init&&h.i18nFormat.init(this)),this.translator=new oh(this.services,this.options),this.translator.on("*",function(m){for(var C=arguments.length,b=new Array(C>1?C-1:0),S=1;S<C;S++)b[S-1]=arguments[S];t.emit(m,...b)}),this.modules.external.forEach(m=>{m.init&&m.init(this)})}if(this.format=this.options.interpolation.format,r||(r=Gf),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const f=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);f.length>0&&f[0]!=="dev"&&(this.options.lng=f[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(f=>{this[f]=function(){return t.store[f](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(f=>{this[f]=function(){return t.store[f](...arguments),t}});const u=ic(),c=()=>{const f=(p,h)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),u.resolve(h),r(p,h)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return f(null,this.t.bind(this));this.changeLanguage(this.options.lng,f)};return this.options.resources||!this.options.initImmediate?c():setTimeout(c,0),u}loadResources(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Gf;const o=St(t)?t:this.language;if(typeof t=="function"&&(r=t),!this.options.resources||this.options.partialBundledLanguages){if(o&&o.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const i=[],s=l=>{if(!l||l==="cimode")return;this.services.languageUtils.toResolveHierarchy(l).forEach(c=>{c!=="cimode"&&i.indexOf(c)<0&&i.push(c)})};o?s(o):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(u=>s(u)),this.options.preload&&this.options.preload.forEach(l=>s(l)),this.services.backendConnector.load(i,this.options.ns,l=>{!l&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(l)})}else r(null)}reloadResources(t,n,r){const o=ic();return typeof t=="function"&&(r=t,t=void 0),typeof n=="function"&&(r=n,n=void 0),t||(t=this.languages),n||(n=this.options.ns),r||(r=Gf),this.services.backendConnector.reload(t,n,i=>{o.resolve(),r(i)}),o}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&rM.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1))for(let n=0;n<this.languages.length;n++){const r=this.languages[n];if(!(["cimode","dev"].indexOf(r)>-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}}changeLanguage(t,n){var r=this;this.isLanguageChangingTo=t;const o=ic();this.emit("languageChanging",t);const i=u=>{this.language=u,this.languages=this.services.languageUtils.toResolveHierarchy(u),this.resolvedLanguage=void 0,this.setResolvedLanguage(u)},s=(u,c)=>{c?(i(c),this.translator.changeLanguage(c),this.isLanguageChangingTo=void 0,this.emit("languageChanged",c),this.logger.log("languageChanged",c)):this.isLanguageChangingTo=void 0,o.resolve(function(){return r.t(...arguments)}),n&&n(u,function(){return r.t(...arguments)})},l=u=>{!t&&!u&&this.services.languageDetector&&(u=[]);const c=St(u)?u:this.services.languageUtils.getBestMatchFromCodes(u);c&&(this.language||i(c),this.translator.language||this.translator.changeLanguage(c),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(c)),this.loadResources(c,f=>{s(f,c)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?l(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(l):this.services.languageDetector.detect(l):l(t),o}getFixedT(t,n,r){var o=this;const i=function(s,l){let u;if(typeof l!="object"){for(var c=arguments.length,f=new Array(c>2?c-2:0),p=2;p<c;p++)f[p-2]=arguments[p];u=o.options.overloadTranslationOptionHandler([s,l].concat(f))}else u={...l};u.lng=u.lng||i.lng,u.lngs=u.lngs||i.lngs,u.ns=u.ns||i.ns,u.keyPrefix!==""&&(u.keyPrefix=u.keyPrefix||r||i.keyPrefix);const h=o.options.keySeparator||".";let m;return u.keyPrefix&&Array.isArray(s)?m=s.map(C=>`${u.keyPrefix}${h}${C}`):m=u.keyPrefix?`${u.keyPrefix}${h}${s}`:s,o.t(m,u)};return St(t)?i.lng=t:i.lngs=t,i.ns=n,i.keyPrefix=r,i}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const r=n.lng||this.resolvedLanguage||this.languages[0],o=this.options?this.options.fallbackLng:!1,i=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const s=(l,u)=>{const c=this.services.backendConnector.state[`${l}|${u}`];return c===-1||c===0||c===2};if(n.precheck){const l=n.precheck(this,s);if(l!==void 0)return l}return!!(this.hasResourceBundle(r,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||s(r,t)&&(!o||s(i,t)))}loadNamespaces(t,n){const r=ic();return this.options.ns?(St(t)&&(t=[t]),t.forEach(o=>{this.options.ns.indexOf(o)<0&&this.options.ns.push(o)}),this.loadResources(o=>{r.resolve(),n&&n(o)}),r):(n&&n(),Promise.resolve())}loadLanguages(t,n){const r=ic();St(t)&&(t=[t]);const o=this.options.preload||[],i=t.filter(s=>o.indexOf(s)<0&&this.services.languageUtils.isSupportedCode(s));return i.length?(this.options.preload=o.concat(i),this.loadResources(s=>{r.resolve(),n&&n(s)}),r):(n&&n(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!t)return"rtl";const n=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],r=this.services&&this.services.languageUtils||new BP(zP());return n.indexOf(r.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new od(t,n)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Gf;const r=t.forkResourceStore;r&&delete t.forkResourceStore;const o={...this.options,...t,isClone:!0},i=new od(o);return(t.debug!==void 0||t.prefix!==void 0)&&(i.logger=i.logger.clone(t)),["store","services","language"].forEach(l=>{i[l]=this[l]}),i.services={...this.services},i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},r&&(i.store=new NP(this.store.data,o),i.services.resourceStore=i.store),i.translator=new oh(i.services,o),i.translator.on("*",function(l){for(var u=arguments.length,c=new Array(u>1?u-1:0),f=1;f<u;f++)c[f-1]=arguments[f];i.emit(l,...c)}),i.init(o,n),i.translator.options=o,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const Nr=od.createInstance();Nr.createInstance=od.createInstance;Nr.createInstance;Nr.dir;Nr.init;Nr.loadResources;Nr.reloadResources;Nr.use;Nr.changeLanguage;Nr.getFixedT;Nr.t;Nr.exists;Nr.setDefaultNamespace;Nr.hasLoadedNamespace;Nr.loadNamespaces;Nr.loadLanguages;const ece="Approve",tce="Approved",nce="Copy",rce="Deny",oce="Denied",ice="Expand",sce="Retry",ace="Start",lce="Yes",uce="No",cce="and",dce="Hide",fce="Back",pce="Forward",hce="Close",gce="Next",mce="Cancel",vce="Yes, Submit",bce="Dismiss",yce="Save",Cce="Search",wce="Loading",xce={completed:"Authentication completed","signing-in":"Signing in...","signing-out":"Signing out...",unauthorized:"You're not authorized to access this page."},Sce={attachments:"Attachments",label:"Click here to browse your PC or drop files to upload","created-by-on-time":"by {{createdBy}} on {{date}}","files-too-large":"The following files exceed the maximum size of {{maxSize}}: {{files}}","max-size-label":"Max file size is 10MB with accepted file formats of: JPG (JPEG), PNG, PDF, GIF, DOC/X, XLS/X, CSV"},Ece={disclaimer:"Draft","create-user-title":"Add New User","create-ticket-title":"Support Ticket"},Pce={"assets-counter":"{{assets}} locations","select-assets":"Select Locations","select-all":"Select All","assets-search-placeholder":"Search by Site or Asset Name...","no-assets-description":"This site contains no assets, click NEXT to continue.","asset-item":"Asset item","view-ticket":"View Ticket"},Tce="Active",Ice="Phone",Rce="Email",_ce="Account",Oce="Accounts",Mce="Role",Lce="Roles",Ace="Option",Dce="Options",$ce="From",kce="To",Fce="More",Nce="Logout",Hce="Refresh",Bce={404:{title:"This Page could not be found.",detail:"The page you are after doesn't exist, or no longer exists. Check out the homepage instead.",button:"go to homepage"},approve:ece,approved:tce,copy:nce,deny:rce,denied:oce,expand:ice,"approve-all":"Approve All","deny-all":"Deny All",retry:sce,start:ace,yes:lce,no:uce,and:cce,"error-title":"Error:","reports-error-message":"No data to display","error-message":"No DCIM data available for this account context.|If you expect to see DCIM data please navigate to the specific account in the Account Switcher.","enhanced-error-message":"We are unable to display the relevant ticket information. For further assistance, please share the below details with us via <1>GlobalPortal@digitalrealty.com</1>","error-api":"API is not responding",hide:dce,"edit-details":"Edit Details",back:fce,"go-back":"Go Back",forward:pce,close:hce,next:gce,cancel:mce,submit:vce,dismiss:bce,"sort-by":"Sort by",save:yce,"save-changes":"Save Changes","changes-saved":"Changes Saved","changes-not-saved":"Changes Can not Be Saved","try-again":"Try again","request-error-message":"We are unable to process your request. Please, try again or reach out to us for further assistance. We apologize for the inconvenience. Your Digital Realty Team",search:Cce,"close-button":"Close Button","open-button":"Open Button",loading:wce,"app-loading":"Loading...","redirect-soon":"You will be redirected soon.",auth:xce,dropzone:Sce,draft:Ece,"cancel-dialog":{title:"Are you sure do you want to cancel?",text:"All the details provided will be lost.",dismiss:"Dismiss",cancel:{"add-user":"Cancel Adding User","create-ticket":"Request Cancellation"},"cancel-ticket-creation":{title:"Are you sure you want to proceed? All details provided will be lost.",yes:"Yes",no:"No"}},tickets:Pce,"view-all":"View all","view-attachment-button":"view attachment button","download-attachment-button":"download attachment button","hide-button":"hide button","close-buton":"close buton","previous-button":"previous button","next-button":"next button",active:Tce,"notifications-button":"Notifications Button","expand-navbar-button":"Expand Navbar Button","search-field":"Search Field","search-icon":"Search Icon","search-button":"Search Button",phone:Ice,email:Rce,"datagrid-no-rows":"No data to display","no-attachments":"No attachments",account_one:_ce,account_other:Oce,role_one:Mce,role_other:Lce,"last-update":"Last Update","no-comments":"No Comments",option_one:Ace,option_other:Dce,from:$ce,to:kce,"email-helper-text":"Enter email addresses separated by a comma, semicolon or the Enter key.","master-account":"Master Account","master-account-label":"Open the Account Selector","unsaved-changes-title":"Attention","unsaved-changes-message":"There are unsaved changes on this page, save or discard them before leaving.",more:Fce,"not-implemented":"Not Implemented",logout:Nce,refresh:Hce,"record-version":{"record-has-been-updated":"Record has been updated","refresh-page":"Refresh the page to see the latest record."},"view-list":"View List"},Uce="Reports",jce={dcim:"DCIM Reports",security:"Security Reports",maintenance:"Planned Maintenance",incidents:"Incidents"},zce="{{sites}} Reports",Gce={clear:"Clear Filters","show-my-location-only":"Show My Locations Only","filter-by":"Filter By",region:"Region",value:"Value"},Vce={id:"ID",name:"Name",executionDate:"Execution Date",startDate:"Start Date",endDate:"End Date",type:"Type",site:"Site",leasedSpace:"Leased Space",location:"Location",attachment:"Download",description:"Short Description",status:"Status",activityType:"Activity Type",attachments:"Attachments"},Wce={"all-sites":"Download All Locations","my-sites":"Download My Locations","filtered-sites":"Download Current View"},qce="Search…",Kce="Rows Per Page:",Xce="of",Qce={space:"{{space}} Spaces",filters:{status:"All Statuses","show-enrolled-spaces-only":"Show Enrolled Spaces Only"},table:{leasedSpace:"Leased Space",leasedKw:"Leased kW",itLoad:"IT Load",load:"Load %",spaceTemp:"Space Temp",status:"Alert Status"},download:{button:"Download button","all-spaces":"Download All Spaces","filtered-spaces":"Download Current View"},chart:{yAxisMetric:"Y-Axis Metric",metric:"Metric",showAlertData:"Show Alert Data",resetZoom:"Reset Zoom"}},Jce={"dcim-alert-title":"DCIM Alert",id:"Work Order ID",site:"Affected Site",location:"Affected Location(s)",category:"Category",activityType:"Activity Type",activitySubType:"Activity Subtype",activityCategory:"Activity Category",approvalStatus:"Approval Status",status:"State",serviceType:"Service Type",riskLevel:"Risk Level",schedule:"Schedule",startDate:"Start Date",endDate:"End Date",shortDescription:"Short Description",highLevelSummary:"High-level summary",attachments:"Method of Procedure (attachments)",alertNumber:"Alert Number",totalLoad:"Total Load",affectedCI:"Affected CI",alertTimelineSummary:"Alert Generated On",thresholdValue:"Threshold Value",description:"Description"},Zce={title:Uce,tabs:jce,sites:zce,filters:Gce,table:Vce,download:Wce,search:qce,rows:Kce,of:Xce,"no-data-found":"Data not found",assets:Qce,reportDetails:Jce,"download-all-reports":"Download All Reports","download-current-view":"Download Current View"};Nr.use(E9).init({resources:{en:{common:Bce,reports:Zce}},interpolation:{escapeValue:!1},lng:"en"});const Pr={black:"rgba(0, 0, 0, 1)",gray:"#6d758c",primaryHover:"rgba(20, 86, 224, 0.1)",secondaryHover:"#378ACA1a",textDark:"rgba(9, 34, 65, 1)",textDark2:"rgba(9, 34, 65, 0.7)",textDarkDisabled:"rgba(9, 34, 65, 0.3)",textLight:"rgba(255, 255, 255, 1)",textLight2:"rgba(255, 255, 255, 0.6)",textLightDisabled:"rgba(255, 255, 255, 0.38)",divider:"rgba(9, 34, 65, 0.12)",divider2:"rgba(9, 34, 65, 0.08)",background:"rgba(245, 247, 255, 1)",backgroundAlternative:"#FFFFFF",surface:"rgba(255, 255, 255)",modalOverlay:"rgba(9, 34, 65, 0.9)",overlayOnPrimary:"rgba(255, 255, 255, 0.24)",pageHeader:{background:"rgba(245, 247, 255, 0.85)"},navbar:{background:"linear-gradient(180deg, #1456E0 20.5%, #0D2497 113.5%)",selected:"rgba(255, 255, 255, 0.16)"},topbar:{background:"linear-gradient(90.27deg, #1456E0 0%, #0D2497 99.23%)"}},Yce={primary:{light:"#5585ff",main:"#1456E0",dark:"#071454"},secondary:{light:"#72bafd",main:"#378aca",dark:"#005d99"},error:{light:"#f83b3a",main:"#db0028",dark:"#a80505",contrastText:"#ffffff"},warning:{light:"#ffb74d",main:"rgba(255, 152, 0, 1)",dark:"#f57c00"},info:{light:"#64b5f6",main:"#2196f3",dark:"#1976d2"},success:{light:"#81c784",main:"#4caf50",dark:"#388e3c",contrastText:"#ffffff"},text:{primary:Pr.textDark,secondary:Pr.textDark2,disabled:Pr.textDarkDisabled}},Vf={h1:{fontFamily:"'Red Hat Display', sans-serif",fontStyle:"normal",fontWeight:500,fontSize:"96px",lineHeight:"127px",letterSpacing:"-1.5px"},h2:{fontFamily:"'Red Hat Display', sans-serif",fontStyle:"normal",fontWeight:"normal",fontSize:"60px",lineHeight:"71px",letterSpacing:"-0.5px"},h3:{fontFamily:"'Red Hat Display', sans-serif",fontStyle:"normal",fontWeight:"normal",fontSize:"48px",lineHeight:"57px"},h4:{fontFamily:"'Red Hat Display', sans-serif",fontStyle:"normal",fontWeight:"bold",fontSize:"34px",lineHeight:"40px",letterSpacing:"0.35px"},h5:{fontFamily:"'Red Hat Display', sans-serif",fontStyle:"normal",fontWeight:"normal",fontSize:"24px",lineHeight:"32px"},h6:{fontFamily:"'Red Hat Display', sans-serif",fontStyle:"normal",fontWeight:"bold",fontSize:"20px",lineHeight:"24px",letterSpacing:"0.15px"},subtitle1:{fontFamily:"'Open Sans', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"16px",lineHeight:"20px",letterSpacing:"0.15px"},subtitle2:{fontFamily:"'Open Sans', sans-serif",fontStyle:"normal",fontWeight:700,fontSize:"14px",lineHeight:"24px",letterSpacing:"0.1px"},body1:{fontFamily:"'Open Sans', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"16px",lineHeight:"28px",letterSpacing:"0.44px"},body2:{fontFamily:"'Open Sans', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"14px",lineHeight:"24px",letterSpacing:"0.25px"},button:{fontFamily:"'Red Hat Display', sans-serif",fontWeight:700,fontStyle:"normal",fontSize:"14px",lineHeight:"18.52px",letterSpacing:"1.25px",textTransform:"uppercase"},caption:{fontFamily:"'Open Sans', sans-serif",fontWeight:400,fontStyle:"normal",fontSize:"12px",lineHeight:"16px",letterSpacing:"0.4px"},overline:{fontFamily:"'Red Hat Display', sans-serif",fontWeight:700,fontStyle:"normal",fontSize:"10px",lineHeight:"16px",letterSpacing:"1.25px",textTransform:"uppercase"},allVariants:{color:Pr.textDark}},ede={badge:{fontFamily:"'Open Sans', sans-serif",fontStyle:"normal",fontWeight:700,fontSize:"8px",lineHeight:"11px",letterSpacing:"0.42px"}},tde=e=>{const t={palette:Yce,components:{MuiCssBaseline:{styleOverrides:{body:{backgroundColor:Pr.background},".customScrollbar *::-webkit-scrollbar":{maxWidth:8,backgroundColor:"#002274"},".customScrollbar *::-webkit-scrollbar-thumb":{backgroundColor:"#5B73D6",borderRadius:100,maxHeight:183,maxWidth:6,border:"1px solid #002274"}}},MuiAlert:{defaultProps:{variant:"outlined"},styleOverrides:{root:{alignItems:"center",padding:"7px 14px"},icon:{padding:0,marginRight:8},message:{...Vf.caption,fontWeight:700,padding:0}}},MuiAutocomplete:{styleOverrides:{inputRoot:{paddingTop:"5px",paddingBottom:"5px"}}},MuiAvatar:{styleOverrides:{colorDefault:{backgroundColor:Pr.background,color:Pr.textDark2}}},MuiButton:{defaultProps:{variant:"contained",disableElevation:!0},styleOverrides:{root:{minHeight:"36px",borderRadius:"100px",padding:"8.5px 20px"},outlined:{padding:"7.5px 20px"},text:{padding:"8.5px 20px"},outlinedPrimary:({theme:n})=>({borderColor:n.palette.primary.main}),contained:({ownerState:n,theme:r})=>{const o={};return n.color==="success"&&(o.color=r.palette.common.white),o}}},MuiChip:{styleOverrides:{root:({ownerState:n,theme:r})=>{const o={};return n.color==="warning"&&(o.color=r.palette.common.white,o.backgroundColor="#ED6C02"),o["&.Mui-disabled"]={opacity:1,backgroundColor:Pr.textDarkDisabled},o},icon:{marginLeft:7,fontSize:"1.375rem"},deleteIcon:{marginRight:7}}},MuiDialog:{styleOverrides:{paperWidthSm:{maxWidth:1200},paper:({theme:n})=>({[n.breakpoints.up("sm")]:{minWidth:500}})}},MuiDialogContent:{styleOverrides:{root:{paddingTop:"8px"}}},MuiDialogContentText:{styleOverrides:{root:{...Vf.body1,color:Pr.textDark2}}},MuiDivider:{styleOverrides:{root:{borderColor:Pr.textDark,opacity:.12}}},MuiDrawer:{styleOverrides:{paperAnchorDockedLeft:{borderRight:"none"}}},MuiFormControlLabel:{styleOverrides:{root:{"& .MuiCheckbox-root":{marginRight:"5px"}}}},MuiFormHelperText:{styleOverrides:{root:{color:Pr.textDark2,marginTop:"2px"}}},MuiFormLabel:{styleOverrides:{root:{color:Pr.textDark},filled:{color:Pr.textDark}}},MuiIconButton:{styleOverrides:{sizeSmall:{padding:2}}},MuiInputBase:{styleOverrides:{root:{color:Pr.textDark},input:{paddingTop:"12.5px",paddingBottom:"12.5px"},multiline:{paddingTop:"12.5px",paddingBottom:"12.5px"}}},MuiInputLabel:{styleOverrides:{outlined:{top:-3,color:Pr.textDark}}},MuiOutlinedInput:{styleOverrides:{root:({theme:n})=>({borderRadius:"4px",backgroundColor:n.palette.common.white}),notchedOutline:{borderColor:Pr.textDark},input:{paddingTop:"12.5px",paddingBottom:"12.5px"},inputMultiline:{padding:0},multiline:{paddingTop:"12.5px",paddingBottom:"12.5px"}}},MuiTab:{styleOverrides:{root:({theme:n})=>({height:"43px",minHeight:"43px",padding:"12px 16px",minWidth:0,[n.breakpoints.up("sm")]:{minWidth:0}})}},MuiTabs:{styleOverrides:{root:{height:"43px",minHeight:"43px"}}},MuiTextField:{defaultProps:{fullWidth:!0}},MuiTooltip:{styleOverrides:{tooltip:({theme:n})=>({borderRadius:"3px",backgroundColor:n.palette.primary.dark,padding:"5px 8px",...Vf.caption})}},MuiToggleButton:{styleOverrides:{root:{padding:"8px 12px 8px 12px",gap:4,borderRadius:4}}}},typography:Vf,shape:{borderRadius:12},extraColors:Pr,extraTypography:ede,layout:{pageHeader:{height:100,heightSmall:60},topbar:{height:72},sidebar:{openWidth:256,openWidthSmall:251,closedWidth:80}},customShadows:["0px 12px 20px -12px rgba(0, 0, 0, 0.12), inset 0px 0px 0px 1px #e1e4e8"]};if(e){const n=document.createElement("div");e.appendChild(n),t.components={...t.components,MuiPopover:{defaultProps:{container:n}},MuiPopper:{defaultProps:{container:n}}}}return Py(t)},nde=tde(null),Gde=({children:e,customTheme:t})=>{const n=t||nde;return R.jsx(jT,{injectFirst:!0,children:R.jsxs(Qz,{theme:n,children:[R.jsx(w4,{}),e]})})},rde={defaultOptions:{queries:{refetchOnWindowFocus:!1,retry:!1}}},Vde=new jN(rde),ode=()=>{const{t:e}=Vs("reports");return R.jsxs("ul",{children:[R.jsx("li",{children:R.jsxs(Kv,{to:"/reports/dcim",children:[e("tabs.dcim")," "]})}),R.jsx("li",{children:R.jsxs(Kv,{to:"/reports/security",children:[e("tabs.security")," "]})})]})};var e0={},ide=Uo;Object.defineProperty(e0,"__esModule",{value:!0});var oM=e0.default=void 0,sde=ide(Ii()),ade=R;oM=e0.default=(0,sde.default)((0,ade.jsx)("path",{d:"M19 3h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1m0 15-5-5h3V9h4v4h3z"}),"AssignmentReturned");const lde=async({page:e,sort:t,order:n,size:r,id:o,reportName:i,reportStartDate:s,reportEndDate:l,reportType:u,site:c,location:f,allTickets:p},h)=>{const m={id:o,reportName:i,reportStartDate:s,reportEndDate:l,reportType:u,site:c,location:f,size:r,page:e};if(e&&(m.page=e-1),m.sort=t?[t,n].filter(Boolean).join(","):void 0,p)return await Ta.pagedRequest(Ta.post,"/reports",m,100,h);{const C=Ld({pathname:"reports",searchParams:m});return Ta.post(C,h)}},ude=async e=>{const t=Ld({pathname:`/reports/${e}/download`});return await(await Ta.get(t,!0)).blob()},cde=async()=>{const e=Ld({pathname:"/reports/request"});return await Ta.get(e)},dde=e=>qb([bg.ELEGIBLE_REPORTS],()=>cde(),{...e,refetchOnWindowFocus:!1});var iM=(e=>(e.CRITICAL_ENROLLMENT_OPERATOR_AND_THRESHOLD_EMPTY="CRITICAL_ENROLLMENT_OPERATOR_AND_THRESHOLD_EMPTY",e.DUPLICATE_RECORD="DUPLICATE_RECORD",e.MISSING_ASSET_DATA="MISSING_ASSET_DATA",e.OPTIMISTIC_LOCKING="OPTIMISTIC_LOCKING",e.ROLE_NOTFOUND="ROLE_NOTFOUND",e.SITE_CODE_INVALID="SITE_CODE_INVALID",e.THRESHOLD_VALIDATION_ERROR="THRESHOLD_VALIDATION_ERROR",e.USER_EXISTS="USER_EXISTS",e))(iM||{});const fde=e=>({content:[],pageable:{sort:{empty:!1,sorted:!0,unsorted:!1},offset:0,pageNumber:0,pageSize:e??20,paged:!0,unpaged:!1},last:!0,totalElements:0,totalPages:0,size:e??20,number:0,sort:{empty:!1,sorted:!0,unsorted:!1},first:!0,numberOfElements:0,empty:!1}),pde=async({page:e,sort:t,order:n,size:r,id:o,reportName:i,reportStartDate:s,reportEndDate:l,reportType:u,site:c,location:f},p)=>{const h={id:o,reportName:i,reportStartDate:s,reportEndDate:l,reportType:u,site:c,location:f,size:r,page:e};e&&(h.page=e-1),h.sort=t?[t,n].filter(Boolean).join(","):void 0;const m=Ld({pathname:"reports",searchParams:h});try{return await Ta.post(m,p)}catch(C){if((C==null?void 0:C.message)===iM.SITE_CODE_INVALID)return fde(r);throw C}},hde=(e,t,n)=>qb([bg.REPORTS,e],()=>pde(e,t),{...n,keepPreviousData:!0,refetchOnWindowFocus:!1}),gde=(e,t)=>async()=>{const n=await ude(e.trim());xie(n,t.trim())},sM=[{field:"id",headerName:"table.id",filterable:!1,width:110,renderCell:({row:e})=>R.jsx(oc,{children:e.id})},{field:"name",headerName:"table.name",renderCell:({row:e})=>R.jsx(oc,{children:e.name}),width:400},{field:"executionDate",headerName:"table.executionDate",filterable:!1,width:200,renderCell:({row:e})=>R.jsx(_v,{type:"date",value:e.executionDate})},{field:"startDate",headerName:"table.startDate",filterable:!1,width:200,renderCell:({row:e})=>R.jsx(_v,{type:"date",value:e.startDate})},{field:"endDate",headerName:"table.endDate",filterable:!1,width:200,renderCell:({row:e})=>R.jsx(_v,{type:"date",value:e.endDate})},{field:"type",headerName:"table.type",filterable:!1,sortable:!1,width:160,renderCell:({row:e})=>R.jsx(oc,{children:e.type})},{field:"site",headerName:"table.site",width:160,renderCell:({row:e})=>R.jsx(oc,{children:e.site})},{field:"location",headerName:"table.location",width:250,renderCell:({row:e})=>R.jsx(oc,{children:e.location})},{field:"attachment",headerName:"table.attachment",filterable:!1,sortable:!1,width:160,renderCell:({row:e})=>R.jsx(Jn,{onClick:gde(e.id,e.name),"aria-label":"select columns",size:"small",children:R.jsx(oM,{color:"primary"})})}],mde=async(e=!1,t=!1)=>{const n=rue({pathname:"/usermanagement/my-permissions",searchParams:{exclude_siblings:e,exclude_parents:t}});return Ta.get(n)},vde=(e,t=!1,n=!1)=>qb([bg.PERMISSIONS_PRIVILEGES],()=>mde(t,n),e),bde=({children:e})=>{const t=localStorage.getItem(QC.X_AUTH),n=t?JSON.parse(t):null,r=It(()=>new Map,[]),o={enabled:!!(n!=null&&n.access_token),refetchOnWindowFocus:!1},{data:i,isLoading:s,isError:l}=vde(o,!0);It(()=>{i&&(r.clear(),i.forEach(f=>{r.set(f.permission_name,f.privilege)}))},[i,r]);const u=(f,p=Ko.READ,h=!0)=>{const m=C=>{const b=r.get(C);return b?c(b,p):!1};return h?f.every(m):f.some(m)},c=(f,p)=>{const h={[Ko.READ]:1,[Ko.UPDATE]:2,[Ko.DELETE]:4,[Ko.CREATE]:8,[Ko.APPROVE]:16};return h[p]<=h[f]};return R.jsx(DO.Provider,{value:{email:n==null?void 0:n.email,checkAccess:u,isError:l,permissionsPrivileges:i,ready:!s},children:e})},yde=Gt(R.jsx("path",{d:"M10 18h4v-2h-4zM3 6v2h18V6zm3 7h12v-2H6z"}),"FilterList"),Cde=()=>{const e=Bs(),t=sI(e.breakpoints.down("sm")),n=()=>{var r;(r=document.getElementById("btn-open-filter"))==null||r.click()};return t?R.jsxs(R.Fragment,{children:[R.jsx(Jn,{onClick:n,size:"small",color:"primary",children:R.jsx(yde,{})}),R.jsx(aE,{componentsProps:{button:{id:"btn-open-filter"}},style:{display:"none"},placeholder:void 0,onPointerEnterCapture:void 0,onPointerLeaveCapture:void 0,onResize:void 0,onResizeCapture:void 0})]}):R.jsx(aE,{componentsProps:{button:{variant:"text",size:"small",style:{padding:4}}},placeholder:void 0,onPointerEnterCapture:void 0,onPointerLeaveCapture:void 0,onResize:void 0,onResizeCapture:void 0})},aM=ns({disableMenu:!1,downloadMenuItems:[]}),wde=ne("div")`
677
677
  display: flex;
678
678
  justify-content: space-between;
679
679
  align-items: center;
@@ -682,7 +682,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
682
682
  gap: 12px;
683
683
  height: auto;
684
684
  align-content: center;
685
- `,Ede=ne("div")`
685
+ `,xde=ne("div")`
686
686
  display: flex;
687
687
  justify-content: space-between;
688
688
  gap: 12px;
@@ -692,7 +692,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
692
692
  width: calc(100vw + 17px);
693
693
  white-space: nowrap;
694
694
  }
695
- `,Pde=ne("div")`
695
+ `,Sde=ne("div")`
696
696
  display: flex;
697
697
  align-items: center;
698
698
  gap: 10px;
@@ -703,13 +703,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
703
703
  ${({theme:e})=>e.breakpoints.down("sm")} {
704
704
  margin-left: -4px;
705
705
  }
706
- `,Tde=ne("div")`
706
+ `,Ede=ne("div")`
707
707
  margin-top: 18px;
708
708
  margin-bottom: 22px;
709
709
  display: flex;
710
710
  justify-content: space-between;
711
711
  align-items: baseline;
712
- `,Ide=ne("div")`
712
+ `,Pde=ne("div")`
713
713
  display: flex;
714
714
  flex-direction: column;
715
715
  gap: 24px;
@@ -728,7 +728,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
728
728
  color: ${e.extraColors.surface};
729
729
  }
730
730
  `};
731
- `;const Rde=ne("a")`
731
+ `;const Tde=ne("a")`
732
732
  display: inline-flex;
733
733
  align-items: center;
734
734
  height: 40px;
@@ -748,4 +748,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
748
748
  &::-webkit-scrollbar {
749
749
  display: none;
750
750
  }
751
- `;const _de=()=>{const e=sd(),{t}=Vs("reports"),{downloadMenuItems:n,disableMenu:r}=mo(aM),o=mo(DO),i=No(),l=(h=>{const m=h.lastIndexOf("/");return h.substring(m+1)})(i.pathname),u=[{path:"/reports/security",text:t("tabs.security"),selected:l==="security",permissionInfo:{name:gc.Security,privilege:Ko.READ},onClick:()=>e("/reports/security"),testId:"grid-nav-security"},{path:"/reports/dcim",text:t("tabs.dcim"),selected:l==="dcim",permissionInfo:{name:gc.DCIM,privilege:Ko.READ},onClick:()=>{l!=="dcim"&&e("/reports/dcim")},testId:"grid-nav-dcim"},{path:"/service-management/reports",permissionInfo:{name:gc.PlannedMaintenance,privilege:Ko.READ},text:t("tabs.maintenance"),testId:"grid-nav-maintenance"},{path:"/service-management/incidents",permissionInfo:{name:gc.PlannedMaintenance,privilege:Ko.READ},text:t("tabs.incidents"),testId:"grid-nav-incidents"}],[c,f]=Nn(!1),p=()=>R.jsx(Or,{variant:"body2",noWrap:!0,children:t("filters.filter-by")});return R.jsxs(Sde,{children:[R.jsx(Ede,{children:u.filter(h=>o.checkAccess([h.permissionInfo.name],h.permissionInfo.privilege)).map(h=>R.jsx(Rde,{"data-testid":h.testId,className:h.selected?"selected":"",href:h.path,children:h.text}))}),R.jsxs(Pde,{children:[R.jsx(Yae,{}),n&&R.jsx(gue,{menuItems:n,t,disabled:r}),R.jsx(xde,{})]}),R.jsxs(tM,{open:c,onClose:()=>f(!1),children:[R.jsxs(Tde,{children:[R.jsx(Or,{variant:"h6",children:t("filters.filters")}),R.jsx(Kv,{to:"/sites",children:R.jsx(Vc,{size:"large",children:t("filters.clear")})})]}),R.jsx(Ide,{children:R.jsx(p,{})})]})]})},Ode=()=>{const{getFilterValue:e}=Md(),t=e("__detail_panel_toggle__",""),n=e("name",""),r=e("executionDate",""),o=e("startDate",""),i=e("endDate",""),s=e("site",""),l=e("location",""),u=e("description",""),c=e("status",""),f=e("activityType","");return{id:t,name:n,executionDate:r,startDate:o,endDate:i,site:s,location:l,description:u,status:c,activityType:f}},Mde=()=>{const{t:e}=Vs(["reports","common"]),{enqueueSnackbar:t}=oue(),{pathname:n}=No(),r=n.endsWith("security")?"Security":"DCIM",{columns:o,columnsModel:i,filterModel:s,sortModel:l,handleFilterModelChange:u,handlePageChange:c,handlePageSizeChange:f,handleSortModelChange:p,...h}=Md(),{formatDateTime:m}=kO(),{size:C,page:b,sort:S,order:T,search:P}=h,{id:E,name:w,executionDate:M,startDate:I,endDate:x,site:_,location:L}=Ode(),A={sort:S,order:T,size:C,page:b,search:P,id:E,reportName:w,executionDate:M,reportStartDate:I,reportEndDate:x,reportType:r,site:_,location:L},{data:D,isFetching:H,isError:B}=pde(),{data:k,isFetching:$,isError:U}=mde(A,D,{enabled:!!D&&D.ci.length>0}),[V,N]=Nn(!1),j=k==null?void 0:k.content,W=(k==null?void 0:k.totalElements)||0,oe=B||U||W===0,ie=()=>{re({fileName:`all-reports-${r}`,filters:{reportType:A.reportType,page:b,sort:S,order:T,allTickets:!0}})},he=()=>{re({fileName:`filtered-reports-${r}`,filters:A})},re=X=>{W!==0&&(N(!0),cde({...X.filters,size:X.filters.allTickets?W:X.filters.size},D).then(ge=>{if(ge){const fe=((ge==null?void 0:ge.content)??[]).map(({startDate:we,endDate:Re,executionDate:Fe,...ce})=>({startDate:m(we),endDate:m(Re),executionDate:m(Fe),...ce})),Ie=Nle(o,i,e,["attachment"]).parse(fe);wie(Ie,X.fileName)}}).catch(ge=>{t(e("common:reports-error-message"),{variant:"error"}),console.error("Error downloading reports")}).finally(()=>{N(!1)}))},Q=[{name:e("download-all-reports"),action:ie},{name:e("download-current-view"),action:he}];return o?R.jsx(aM.Provider,{value:{disableMenu:V,downloadMenuItems:Q},children:R.jsx(_le,{columns:o,columnVisibilityModel:i,components:{Toolbar:_de,NoRowsOverlay:()=>R.jsx(Bb,{isError:oe,errorMessage:e("common:reports-error-message")})},filterModel:s,loading:H||$||V,onFilterModelChange:u,onPageChange:c,onPageSizeChange:f,onSortModelChange:p,rows:j||[],pagination:!0,page:b,rowCount:W,pageSize:C,sortModel:l.map(X=>X.field===po?{...X,field:"id"}:X)})}):R.jsx(Rue,{linear:!0})},lM=()=>R.jsx(Mue,{children:R.jsx(Cde,{children:R.jsx(Mde,{})})}),Lde="dcim-reports-columns-model-grid",Ade=()=>(Dt(()=>{window.dispatchEvent(new CustomEvent("location-changed",{detail:{location:{route:{name:"DCIM Reports"}}}}))},[]),R.jsx(NO,{baseColumns:sM,columnsModelStorageKey:Lde,filterModelStorageKey:TC.DCIM_REPORTS_FILTER_MODEL,initialCommonFilters:{sort:"id"},initialVisibilityModel:{},translationNameSpace:"reports",children:R.jsx(lM,{})})),Dde="security-reports-columns-model-grid",$de=()=>(Dt(()=>{window.dispatchEvent(new CustomEvent("location-changed",{detail:{location:{route:{name:"Security Reports"}}}}))},[]),R.jsx(NO,{baseColumns:sM,columnsModelStorageKey:Dde,filterModelStorageKey:TC.SECURITY_REPORTS_FILTER_MODEL,initialCommonFilters:{sort:"id"},initialVisibilityModel:{},translationNameSpace:"reports",children:R.jsx(lM,{})})),Kde=[{element:R.jsx(sde,{}),path:"/reports"},{element:R.jsx(Ade,{}),path:"/dcim"},{element:R.jsx($de,{}),path:"/security"},{path:"/*",element:R.jsx(dH,{to:"/security",replace:!0})}];export{PB as C,Vde as E,Rue as L,Ude as Q,zde as R,QC as S,Wde as T,_T as a,rde as b,jde as c,R as j,qde as q,Kde as r,AH as u};
751
+ `;const Ide=()=>{const e=sd(),{t}=Vs("reports"),{downloadMenuItems:n,disableMenu:r}=mo(aM),o=mo(DO),i=No(),l=(h=>{const m=h.lastIndexOf("/");return h.substring(m+1)})(i.pathname),u=[{path:"/reports/security",text:t("tabs.security"),selected:l==="security",permissionInfo:{name:gc.Security,privilege:Ko.READ},onClick:()=>e("/reports/security"),testId:"grid-nav-security"},{path:"/reports/dcim",text:t("tabs.dcim"),selected:l==="dcim",permissionInfo:{name:gc.DCIM,privilege:Ko.READ},onClick:()=>{l!=="dcim"&&e("/reports/dcim")},testId:"grid-nav-dcim"},{path:"/service-management/reports",permissionInfo:{name:gc.PlannedMaintenance,privilege:Ko.READ},text:t("tabs.maintenance"),testId:"grid-nav-maintenance"},{path:"/service-management/incidents",permissionInfo:{name:gc.PlannedMaintenance,privilege:Ko.READ},text:t("tabs.incidents"),testId:"grid-nav-incidents"}],[c,f]=Nn(!1),p=()=>R.jsx(Or,{variant:"body2",noWrap:!0,children:t("filters.filter-by")});return R.jsxs(wde,{children:[R.jsx(xde,{children:u.filter(h=>o.checkAccess([h.permissionInfo.name],h.permissionInfo.privilege)).map(h=>R.jsx(Tde,{"data-testid":h.testId,className:h.selected?"selected":"",href:h.path,children:h.text}))}),R.jsxs(Sde,{children:[R.jsx(Yae,{}),n&&R.jsx(pue,{menuItems:n,t,disabled:r}),R.jsx(Cde,{})]}),R.jsxs(tM,{open:c,onClose:()=>f(!1),children:[R.jsxs(Ede,{children:[R.jsx(Or,{variant:"h6",children:t("filters.filters")}),R.jsx(Kv,{to:"/sites",children:R.jsx(Vc,{size:"large",children:t("filters.clear")})})]}),R.jsx(Pde,{children:R.jsx(p,{})})]})]})},Rde=()=>{const{getFilterValue:e}=Md(),t=e("__detail_panel_toggle__",""),n=e("name",""),r=e("executionDate",""),o=e("startDate",""),i=e("endDate",""),s=e("site",""),l=e("location",""),u=e("description",""),c=e("status",""),f=e("activityType","");return{id:t,name:n,executionDate:r,startDate:o,endDate:i,site:s,location:l,description:u,status:c,activityType:f}},_de=()=>{const{t:e}=Vs(["reports","common"]),{enqueueSnackbar:t}=nue(),{pathname:n}=No(),r=n.endsWith("security")?"Security":"DCIM",{columns:o,columnsModel:i,filterModel:s,sortModel:l,handleFilterModelChange:u,handlePageChange:c,handlePageSizeChange:f,handleSortModelChange:p,...h}=Md(),{formatDateTime:m}=kO(),{size:C,page:b,sort:S,order:T,search:P}=h,{id:E,name:w,executionDate:M,startDate:I,endDate:x,site:_,location:L}=Rde(),A={sort:S,order:T,size:C,page:b,search:P,id:E,reportName:w,executionDate:M,reportStartDate:I,reportEndDate:x,reportType:r,site:_,location:L},{data:D,isFetching:H,isError:B}=dde(),{data:k,isFetching:$,isError:U}=hde(A,D,{enabled:!!D&&D.ci.length>0}),[V,N]=Nn(!1),j=k==null?void 0:k.content,W=(k==null?void 0:k.totalElements)||0,oe=B||U||W===0,ie=()=>{re({fileName:`all-reports-${r}`,filters:{reportType:A.reportType,page:b,sort:S,order:T,allTickets:!0}})},he=()=>{re({fileName:`filtered-reports-${r}`,filters:A})},re=X=>{W!==0&&(N(!0),lde({...X.filters,size:X.filters.allTickets?W:X.filters.size},D).then(ge=>{if(ge){const fe=((ge==null?void 0:ge.content)??[]).map(({startDate:we,endDate:Re,executionDate:Fe,...ce})=>({startDate:m(we),endDate:m(Re),executionDate:m(Fe),...ce})),Ie=kle(o,i,e,["attachment"]).parse(fe);wie(Ie,X.fileName)}}).catch(ge=>{t(e("common:reports-error-message"),{variant:"error"}),console.error("Error downloading reports")}).finally(()=>{N(!1)}))},Q=[{name:e("download-all-reports"),action:ie},{name:e("download-current-view"),action:he}];return o?R.jsx(aM.Provider,{value:{disableMenu:V,downloadMenuItems:Q},children:R.jsx(Ile,{columns:o,columnVisibilityModel:i,components:{Toolbar:Ide,NoRowsOverlay:()=>R.jsx(Bb,{isError:oe,errorMessage:e("common:reports-error-message")})},filterModel:s,loading:H||$||V,onFilterModelChange:u,onPageChange:c,onPageSizeChange:f,onSortModelChange:p,rows:j||[],pagination:!0,page:b,rowCount:W,pageSize:C,sortModel:l.map(X=>X.field===po?{...X,field:"id"}:X)})}):R.jsx(Tue,{linear:!0})},lM=()=>R.jsx(_ue,{children:R.jsx(bde,{children:R.jsx(_de,{})})}),Ode="dcim-reports-columns-model-grid",Mde=()=>(Dt(()=>{window.dispatchEvent(new CustomEvent("location-changed",{detail:{location:{route:{name:"DCIM Reports"}}}}))},[]),R.jsx(NO,{baseColumns:sM,columnsModelStorageKey:Ode,filterModelStorageKey:TC.DCIM_REPORTS_FILTER_MODEL,initialCommonFilters:{sort:"id"},initialVisibilityModel:{},translationNameSpace:"reports",children:R.jsx(lM,{})})),Lde="security-reports-columns-model-grid",Ade=()=>(Dt(()=>{window.dispatchEvent(new CustomEvent("location-changed",{detail:{location:{route:{name:"Security Reports"}}}}))},[]),R.jsx(NO,{baseColumns:sM,columnsModelStorageKey:Lde,filterModelStorageKey:TC.SECURITY_REPORTS_FILTER_MODEL,initialCommonFilters:{sort:"id"},initialVisibilityModel:{},translationNameSpace:"reports",children:R.jsx(lM,{})})),Wde=[{element:R.jsx(ode,{}),path:"/reports"},{element:R.jsx(Mde,{}),path:"/dcim"},{element:R.jsx(Ade,{}),path:"/security"},{path:"/*",element:R.jsx(dH,{to:"/security",replace:!0})}];export{PB as C,zde as E,Tue as L,Hde as Q,Ude as R,QC as S,Gde as T,_T as a,tde as b,Bde as c,R as j,Vde as q,Wde as r,AH as u};