From 22491d0edb84ea97244f5b39c31ba6a8e00478be Mon Sep 17 00:00:00 2001 From: GermanBluefox Date: Tue, 5 Nov 2024 19:16:41 +0100 Subject: [PATCH] Fixing CI tests --- admin/assets/index-CydZQ9T6.js | 630 +++++++++++++++++++++++++++++++++ admin/favicon.ico | Bin 0 -> 16958 bytes admin/manifest.json | 15 + package.json | 4 +- test/testAdapter.gui.js | 4 +- 5 files changed, 650 insertions(+), 3 deletions(-) create mode 100644 admin/assets/index-CydZQ9T6.js create mode 100644 admin/favicon.ico create mode 100644 admin/manifest.json diff --git a/admin/assets/index-CydZQ9T6.js b/admin/assets/index-CydZQ9T6.js new file mode 100644 index 00000000..469aec9a --- /dev/null +++ b/admin/assets/index-CydZQ9T6.js @@ -0,0 +1,630 @@ +var i5=Object.defineProperty;var q1=e=>{throw TypeError(e)};var l5=(e,t,n)=>t in e?i5(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var c5=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var L=(e,t,n)=>l5(e,typeof t!="symbol"?t+"":t,n),d5=(e,t,n)=>t.has(e)||q1("Cannot "+n);var J1=(e,t,n)=>(d5(e,t,"read from private field"),n?n.call(e):t.get(e)),X1=(e,t,n)=>t.has(e)?q1("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n);var ckt=c5((vr,yr)=>{function u5(e,t){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const s of o)if(s.type==="childList")for(const a of s.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerPolicy&&(s.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?s.credentials="include":o.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(o){if(o.ep)return;o.ep=!0;const s=n(o);fetch(o.href,s)}})();var Uu=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function If(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var p2={exports:{}},zf={},h2={exports:{}},Ke={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var fu=Symbol.for("react.element"),p5=Symbol.for("react.portal"),h5=Symbol.for("react.fragment"),f5=Symbol.for("react.strict_mode"),m5=Symbol.for("react.profiler"),g5=Symbol.for("react.provider"),_5=Symbol.for("react.context"),v5=Symbol.for("react.forward_ref"),y5=Symbol.for("react.suspense"),b5=Symbol.for("react.memo"),w5=Symbol.for("react.lazy"),Y1=Symbol.iterator;function S5(e){return e===null||typeof e!="object"?null:(e=Y1&&e[Y1]||e["@@iterator"],typeof e=="function"?e:null)}var f2={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m2=Object.assign,g2={};function nc(e,t,n){this.props=e,this.context=t,this.refs=g2,this.updater=n||f2}nc.prototype.isReactComponent={};nc.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};nc.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function _2(){}_2.prototype=nc.prototype;function t0(e,t,n){this.props=e,this.context=t,this.refs=g2,this.updater=n||f2}var n0=t0.prototype=new _2;n0.constructor=t0;m2(n0,nc.prototype);n0.isPureReactComponent=!0;var K1=Array.isArray,v2=Object.prototype.hasOwnProperty,r0={current:null},y2={key:!0,ref:!0,__self:!0,__source:!0};function b2(e,t,n){var r,o={},s=null,a=null;if(t!=null)for(r in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(s=""+t.key),t)v2.call(t,r)&&!y2.hasOwnProperty(r)&&(o[r]=t[r]);var i=arguments.length-2;if(i===1)o.children=n;else if(1>>1,oe=R[te];if(0>>1;teo(Te,q))xeo(Be,Te)?(R[te]=Be,R[xe]=q,te=xe):(R[te]=Te,R[se]=q,te=se);else if(xeo(Be,q))R[te]=Be,R[xe]=q,te=xe;else break e}}return F}function o(R,F){var q=R.sortIndex-F.sortIndex;return q!==0?q:R.id-F.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var a=Date,i=a.now();e.unstable_now=function(){return a.now()-i}}var l=[],d=[],u=1,c=null,h=3,f=!1,g=!1,_=!1,w=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,b=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function y(R){for(var F=n(d);F!==null;){if(F.callback===null)r(d);else if(F.startTime<=R)r(d),F.sortIndex=F.expirationTime,t(l,F);else break;F=n(d)}}function S(R){if(_=!1,y(R),!g)if(n(l)!==null)g=!0,B($);else{var F=n(d);F!==null&&V(S,F.startTime-R)}}function $(R,F){g=!1,_&&(_=!1,v(O),O=-1),f=!0;var q=h;try{for(y(F),c=n(l);c!==null&&(!(c.expirationTime>F)||R&&!A());){var te=c.callback;if(typeof te=="function"){c.callback=null,h=c.priorityLevel;var oe=te(c.expirationTime<=F);F=e.unstable_now(),typeof oe=="function"?c.callback=oe:c===n(l)&&r(l),y(F)}else r(l);c=n(l)}if(c!==null)var ve=!0;else{var se=n(d);se!==null&&V(S,se.startTime-F),ve=!1}return ve}finally{c=null,h=q,f=!1}}var C=!1,T=null,O=-1,D=5,x=-1;function A(){return!(e.unstable_now()-xR||125te?(R.sortIndex=q,t(d,R),n(l)===null&&R===n(d)&&(_?(v(O),O=-1):_=!0,V(S,q-te))):(R.sortIndex=oe,t(l,R),g||f||(g=!0,B($))),R},e.unstable_shouldYield=A,e.unstable_wrapCallback=function(R){var F=h;return function(){var q=h;h=F;try{return R.apply(this,arguments)}finally{h=q}}}})($2);k2.exports=$2;var M5=k2.exports;/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var j5=k,Sr=M5;function Z(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),L_=Object.prototype.hasOwnProperty,I5=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Q1={},ew={};function z5(e){return L_.call(ew,e)?!0:L_.call(Q1,e)?!1:I5.test(e)?ew[e]=!0:(Q1[e]=!0,!1)}function R5(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function P5(e,t,n,r){if(t===null||typeof t>"u"||R5(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function qn(e,t,n,r,o,s,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=a}var xn={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){xn[e]=new qn(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];xn[t]=new qn(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){xn[e]=new qn(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){xn[e]=new qn(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){xn[e]=new qn(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){xn[e]=new qn(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){xn[e]=new qn(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){xn[e]=new qn(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){xn[e]=new qn(e,5,!1,e.toLowerCase(),null,!1,!1)});var s0=/[\-:]([a-z])/g;function a0(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(s0,a0);xn[t]=new qn(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(s0,a0);xn[t]=new qn(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(s0,a0);xn[t]=new qn(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){xn[e]=new qn(e,1,!1,e.toLowerCase(),null,!1,!1)});xn.xlinkHref=new qn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){xn[e]=new qn(e,1,!1,e.toLowerCase(),null,!0,!0)});function i0(e,t,n,r){var o=xn.hasOwnProperty(t)?xn[t]:null;(o!==null?o.type!==0:r||!(2i||o[a]!==s[i]){var l=` +`+o[a].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=a&&0<=i);break}}}finally{bg=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Yc(e):""}function L5(e){switch(e.tag){case 5:return Yc(e.type);case 16:return Yc("Lazy");case 13:return Yc("Suspense");case 19:return Yc("SuspenseList");case 0:case 2:case 15:return e=wg(e.type,!1),e;case 11:return e=wg(e.type.render,!1),e;case 1:return e=wg(e.type,!0),e;default:return""}}function H_(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case nl:return"Fragment";case tl:return"Portal";case F_:return"Profiler";case l0:return"StrictMode";case B_:return"Suspense";case W_:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case T2:return(e.displayName||"Context")+".Consumer";case E2:return(e._context.displayName||"Context")+".Provider";case c0:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case d0:return t=e.displayName||null,t!==null?t:H_(e.type)||"Memo";case Ns:t=e._payload,e=e._init;try{return H_(e(t))}catch{}}return null}function F5(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return H_(t);case 8:return t===l0?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function sa(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function D2(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function B5(e){var t=D2(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(a){r=""+a,s.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function qu(e){e._valueTracker||(e._valueTracker=B5(e))}function A2(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=D2(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function bh(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function U_(e,t){var n=t.checked;return Jt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function nw(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=sa(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function N2(e,t){t=t.checked,t!=null&&i0(e,"checked",t,!1)}function V_(e,t){N2(e,t);var n=sa(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?G_(e,t.type,n):t.hasOwnProperty("defaultValue")&&G_(e,t.type,sa(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function rw(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function G_(e,t,n){(t!=="number"||bh(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Kc=Array.isArray;function vl(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=Ju.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Md(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var ud={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},W5=["Webkit","ms","Moz","O"];Object.keys(ud).forEach(function(e){W5.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ud[t]=ud[e]})});function z2(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||ud.hasOwnProperty(e)&&ud[e]?(""+t).trim():t+"px"}function R2(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=z2(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var H5=Jt({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function X_(e,t){if(t){if(H5[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Z(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Z(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Z(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Z(62))}}function Y_(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var K_=null;function u0(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Z_=null,yl=null,bl=null;function aw(e){if(e=_u(e)){if(typeof Z_!="function")throw Error(Z(280));var t=e.stateNode;t&&(t=Bf(t),Z_(e.stateNode,e.type,t))}}function P2(e){yl?bl?bl.push(e):bl=[e]:yl=e}function L2(){if(yl){var e=yl,t=bl;if(bl=yl=null,aw(e),t)for(e=0;e>>=0,e===0?32:31-(eA(e)/tA|0)|0}var Xu=64,Yu=4194304;function Zc(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function kh(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,s=e.pingedLanes,a=n&268435455;if(a!==0){var i=a&~o;i!==0?r=Zc(i):(s&=a,s!==0&&(r=Zc(s)))}else a=n&~o,a!==0?r=Zc(a):s!==0&&(r=Zc(s));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,s=t&-t,o>=s||o===16&&(s&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function mu(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-uo(t),e[t]=n}function sA(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=hd),mw=" ",gw=!1;function sE(e,t){switch(e){case"keyup":return MA.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function aE(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var rl=!1;function IA(e,t){switch(e){case"compositionend":return aE(t);case"keypress":return t.which!==32?null:(gw=!0,mw);case"textInput":return e=t.data,e===mw&&gw?null:e;default:return null}}function zA(e,t){if(rl)return e==="compositionend"||!y0&&sE(e,t)?(e=rE(),Zp=g0=Hs=null,rl=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=bw(n)}}function dE(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?dE(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function uE(){for(var e=window,t=bh();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=bh(e.document)}return t}function b0(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function VA(e){var t=uE(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&dE(n.ownerDocument.documentElement,n)){if(r!==null&&b0(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,s=Math.min(r.start,o);r=r.end===void 0?s:Math.min(r.end,o),!e.extend&&s>r&&(o=r,r=s,s=o),o=ww(n,s);var a=ww(n,r);o&&a&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),s>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,ol=null,ov=null,md=null,sv=!1;function Sw(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;sv||ol==null||ol!==bh(r)||(r=ol,"selectionStart"in r&&b0(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),md&&Ld(md,r)||(md=r,r=Eh(ov,"onSelect"),0il||(e.current=uv[il],uv[il]=null,il--)}function At(e,t){il++,uv[il]=e.current,e.current=t}var aa={},In=ha(aa),nr=ha(!1),Va=aa;function zl(e,t){var n=e.type.contextTypes;if(!n)return aa;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},s;for(s in n)o[s]=t[s];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function rr(e){return e=e.childContextTypes,e!=null}function Oh(){zt(nr),zt(In)}function Ow(e,t,n){if(In.current!==aa)throw Error(Z(168));At(In,t),At(nr,n)}function bE(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(Z(108,F5(e)||"Unknown",o));return Jt({},n,r)}function Dh(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||aa,Va=In.current,At(In,e),At(nr,nr.current),!0}function Dw(e,t,n){var r=e.stateNode;if(!r)throw Error(Z(169));n?(e=bE(e,t,Va),r.__reactInternalMemoizedMergedChildContext=e,zt(nr),zt(In),At(In,e)):zt(nr),At(nr,n)}var ss=null,Wf=!1,Ig=!1;function wE(e){ss===null?ss=[e]:ss.push(e)}function rN(e){Wf=!0,wE(e)}function fa(){if(!Ig&&ss!==null){Ig=!0;var e=0,t=pt;try{var n=ss;for(pt=1;e>=a,o-=a,as=1<<32-uo(t)+o|n<O?(D=T,T=null):D=T.sibling;var x=h(v,T,y[O],S);if(x===null){T===null&&(T=D);break}e&&T&&x.alternate===null&&t(v,T),b=s(x,b,O),C===null?$=x:C.sibling=x,C=x,T=D}if(O===y.length)return n(v,T),Bt&&Ta(v,O),$;if(T===null){for(;OO?(D=T,T=null):D=T.sibling;var A=h(v,T,x.value,S);if(A===null){T===null&&(T=D);break}e&&T&&A.alternate===null&&t(v,T),b=s(A,b,O),C===null?$=A:C.sibling=A,C=A,T=D}if(x.done)return n(v,T),Bt&&Ta(v,O),$;if(T===null){for(;!x.done;O++,x=y.next())x=c(v,x.value,S),x!==null&&(b=s(x,b,O),C===null?$=x:C.sibling=x,C=x);return Bt&&Ta(v,O),$}for(T=r(v,T);!x.done;O++,x=y.next())x=f(T,v,O,x.value,S),x!==null&&(e&&x.alternate!==null&&T.delete(x.key===null?O:x.key),b=s(x,b,O),C===null?$=x:C.sibling=x,C=x);return e&&T.forEach(function(I){return t(v,I)}),Bt&&Ta(v,O),$}function w(v,b,y,S){if(typeof y=="object"&&y!==null&&y.type===nl&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case Gu:e:{for(var $=y.key,C=b;C!==null;){if(C.key===$){if($=y.type,$===nl){if(C.tag===7){n(v,C.sibling),b=o(C,y.props.children),b.return=v,v=b;break e}}else if(C.elementType===$||typeof $=="object"&&$!==null&&$.$$typeof===Ns&&Mw($)===C.type){n(v,C.sibling),b=o(C,y.props),b.ref=Tc(v,C,y),b.return=v,v=b;break e}n(v,C);break}else t(v,C);C=C.sibling}y.type===nl?(b=Wa(y.props.children,v.mode,S,y.key),b.return=v,v=b):(S=ah(y.type,y.key,y.props,null,v.mode,S),S.ref=Tc(v,b,y),S.return=v,v=S)}return a(v);case tl:e:{for(C=y.key;b!==null;){if(b.key===C)if(b.tag===4&&b.stateNode.containerInfo===y.containerInfo&&b.stateNode.implementation===y.implementation){n(v,b.sibling),b=o(b,y.children||[]),b.return=v,v=b;break e}else{n(v,b);break}else t(v,b);b=b.sibling}b=Hg(y,v.mode,S),b.return=v,v=b}return a(v);case Ns:return C=y._init,w(v,b,C(y._payload),S)}if(Kc(y))return g(v,b,y,S);if(xc(y))return _(v,b,y,S);rp(v,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,b!==null&&b.tag===6?(n(v,b.sibling),b=o(b,y),b.return=v,v=b):(n(v,b),b=Wg(y,v.mode,S),b.return=v,v=b),a(v)):n(v,b)}return w}var Pl=$E(!0),CE=$E(!1),Mh=ha(null),jh=null,dl=null,k0=null;function $0(){k0=dl=jh=null}function C0(e){var t=Mh.current;zt(Mh),e._currentValue=t}function fv(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Sl(e,t){jh=e,k0=dl=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(er=!0),e.firstContext=null)}function Vr(e){var t=e._currentValue;if(k0!==e)if(e={context:e,memoizedValue:t,next:null},dl===null){if(jh===null)throw Error(Z(308));dl=e,jh.dependencies={lanes:0,firstContext:e}}else dl=dl.next=e;return t}var Ra=null;function E0(e){Ra===null?Ra=[e]:Ra.push(e)}function EE(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,E0(t)):(n.next=o.next,o.next=n),t.interleaved=n,ms(e,r)}function ms(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Ms=!1;function T0(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function TE(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function cs(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Qs(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,rt&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,ms(e,n)}return o=r.interleaved,o===null?(t.next=t,E0(r)):(t.next=o.next,o.next=t),r.interleaved=t,ms(e,n)}function eh(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,h0(e,n)}}function jw(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,s=null;if(n=n.firstBaseUpdate,n!==null){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};s===null?o=s=a:s=s.next=a,n=n.next}while(n!==null);s===null?o=s=t:s=s.next=t}else o=s=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:s,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Ih(e,t,n,r){var o=e.updateQueue;Ms=!1;var s=o.firstBaseUpdate,a=o.lastBaseUpdate,i=o.shared.pending;if(i!==null){o.shared.pending=null;var l=i,d=l.next;l.next=null,a===null?s=d:a.next=d,a=l;var u=e.alternate;u!==null&&(u=u.updateQueue,i=u.lastBaseUpdate,i!==a&&(i===null?u.firstBaseUpdate=d:i.next=d,u.lastBaseUpdate=l))}if(s!==null){var c=o.baseState;a=0,u=d=l=null,i=s;do{var h=i.lane,f=i.eventTime;if((r&h)===h){u!==null&&(u=u.next={eventTime:f,lane:0,tag:i.tag,payload:i.payload,callback:i.callback,next:null});e:{var g=e,_=i;switch(h=t,f=n,_.tag){case 1:if(g=_.payload,typeof g=="function"){c=g.call(f,c,h);break e}c=g;break e;case 3:g.flags=g.flags&-65537|128;case 0:if(g=_.payload,h=typeof g=="function"?g.call(f,c,h):g,h==null)break e;c=Jt({},c,h);break e;case 2:Ms=!0}}i.callback!==null&&i.lane!==0&&(e.flags|=64,h=o.effects,h===null?o.effects=[i]:h.push(i))}else f={eventTime:f,lane:h,tag:i.tag,payload:i.payload,callback:i.callback,next:null},u===null?(d=u=f,l=c):u=u.next=f,a|=h;if(i=i.next,i===null){if(i=o.shared.pending,i===null)break;h=i,i=h.next,h.next=null,o.lastBaseUpdate=h,o.shared.pending=null}}while(!0);if(u===null&&(l=c),o.baseState=l,o.firstBaseUpdate=d,o.lastBaseUpdate=u,t=o.shared.interleaved,t!==null){o=t;do a|=o.lane,o=o.next;while(o!==t)}else s===null&&(o.shared.lanes=0);Ja|=a,e.lanes=a,e.memoizedState=c}}function Iw(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=Rg.transition;Rg.transition={};try{e(!1),t()}finally{pt=n,Rg.transition=r}}function VE(){return Gr().memoizedState}function iN(e,t,n){var r=ta(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},GE(e))qE(t,n);else if(n=EE(e,t,n,r),n!==null){var o=Vn();po(n,e,r,o),JE(n,t,r)}}function lN(e,t,n){var r=ta(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(GE(e))qE(t,o);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var a=t.lastRenderedState,i=s(a,n);if(o.hasEagerState=!0,o.eagerState=i,go(i,a)){var l=t.interleaved;l===null?(o.next=o,E0(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=EE(e,t,o,r),n!==null&&(o=Vn(),po(n,e,r,o),JE(n,t,r))}}function GE(e){var t=e.alternate;return e===qt||t!==null&&t===qt}function qE(e,t){gd=Rh=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function JE(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,h0(e,n)}}var Ph={readContext:Vr,useCallback:kn,useContext:kn,useEffect:kn,useImperativeHandle:kn,useInsertionEffect:kn,useLayoutEffect:kn,useMemo:kn,useReducer:kn,useRef:kn,useState:kn,useDebugValue:kn,useDeferredValue:kn,useTransition:kn,useMutableSource:kn,useSyncExternalStore:kn,useId:kn,unstable_isNewReconciler:!1},cN={readContext:Vr,useCallback:function(e,t){return To().memoizedState=[e,t===void 0?null:t],e},useContext:Vr,useEffect:Rw,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,nh(4194308,4,FE.bind(null,t,e),n)},useLayoutEffect:function(e,t){return nh(4194308,4,e,t)},useInsertionEffect:function(e,t){return nh(4,2,e,t)},useMemo:function(e,t){var n=To();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=To();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=iN.bind(null,qt,e),[r.memoizedState,e]},useRef:function(e){var t=To();return e={current:e},t.memoizedState=e},useState:zw,useDebugValue:z0,useDeferredValue:function(e){return To().memoizedState=e},useTransition:function(){var e=zw(!1),t=e[0];return e=aN.bind(null,e[1]),To().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=qt,o=To();if(Bt){if(n===void 0)throw Error(Z(407));n=n()}else{if(n=t(),mn===null)throw Error(Z(349));qa&30||NE(r,t,n)}o.memoizedState=n;var s={value:n,getSnapshot:t};return o.queue=s,Rw(jE.bind(null,r,s,e),[e]),r.flags|=2048,qd(9,ME.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=To(),t=mn.identifierPrefix;if(Bt){var n=is,r=as;n=(r&~(1<<32-uo(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Vd++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[Io]=t,e[Wd]=r,oT(e,t,!1,!1),t.stateNode=e;e:{switch(a=Y_(n,r),n){case"dialog":Mt("cancel",e),Mt("close",e),o=r;break;case"iframe":case"object":case"embed":Mt("load",e),o=r;break;case"video":case"audio":for(o=0;oBl&&(t.flags|=128,r=!0,Oc(s,!1),t.lanes=4194304)}else{if(!r)if(e=zh(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Oc(s,!0),s.tail===null&&s.tailMode==="hidden"&&!a.alternate&&!Bt)return $n(t),null}else 2*en()-s.renderingStartTime>Bl&&n!==1073741824&&(t.flags|=128,r=!0,Oc(s,!1),t.lanes=4194304);s.isBackwards?(a.sibling=t.child,t.child=a):(n=s.last,n!==null?n.sibling=a:t.child=a,s.last=a)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=en(),t.sibling=null,n=Gt.current,At(Gt,r?n&1|2:n&1),t):($n(t),null);case 22:case 23:return W0(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?hr&1073741824&&($n(t),t.subtreeFlags&6&&(t.flags|=8192)):$n(t),null;case 24:return null;case 25:return null}throw Error(Z(156,t.tag))}function _N(e,t){switch(S0(t),t.tag){case 1:return rr(t.type)&&Oh(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ll(),zt(nr),zt(In),A0(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return D0(t),null;case 13:if(zt(Gt),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Z(340));Rl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return zt(Gt),null;case 4:return Ll(),null;case 10:return C0(t.type._context),null;case 22:case 23:return W0(),null;case 24:return null;default:return null}}var sp=!1,An=!1,vN=typeof WeakSet=="function"?WeakSet:Set,ce=null;function ul(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Zt(e,t,r)}else n.current=null}function xv(e,t,n){try{n()}catch(r){Zt(e,t,r)}}var Jw=!1;function yN(e,t){if(av=$h,e=uE(),b0(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var a=0,i=-1,l=-1,d=0,u=0,c=e,h=null;t:for(;;){for(var f;c!==n||o!==0&&c.nodeType!==3||(i=a+o),c!==s||r!==0&&c.nodeType!==3||(l=a+r),c.nodeType===3&&(a+=c.nodeValue.length),(f=c.firstChild)!==null;)h=c,c=f;for(;;){if(c===e)break t;if(h===n&&++d===o&&(i=a),h===s&&++u===r&&(l=a),(f=c.nextSibling)!==null)break;c=h,h=c.parentNode}c=f}n=i===-1||l===-1?null:{start:i,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(iv={focusedElem:e,selectionRange:n},$h=!1,ce=t;ce!==null;)if(t=ce,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,ce=e;else for(;ce!==null;){t=ce;try{var g=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var _=g.memoizedProps,w=g.memoizedState,v=t.stateNode,b=v.getSnapshotBeforeUpdate(t.elementType===t.type?_:ao(t.type,_),w);v.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Z(163))}}catch(S){Zt(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,ce=e;break}ce=t.return}return g=Jw,Jw=!1,g}function _d(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var s=o.destroy;o.destroy=void 0,s!==void 0&&xv(t,n,s)}o=o.next}while(o!==r)}}function Vf(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function kv(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function iT(e){var t=e.alternate;t!==null&&(e.alternate=null,iT(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Io],delete t[Wd],delete t[dv],delete t[tN],delete t[nN])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function lT(e){return e.tag===5||e.tag===3||e.tag===4}function Xw(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||lT(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function $v(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Th));else if(r!==4&&(e=e.child,e!==null))for($v(e,t,n),e=e.sibling;e!==null;)$v(e,t,n),e=e.sibling}function Cv(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Cv(e,t,n),e=e.sibling;e!==null;)Cv(e,t,n),e=e.sibling}var vn=null,io=!1;function $s(e,t,n){for(n=n.child;n!==null;)cT(e,t,n),n=n.sibling}function cT(e,t,n){if(Po&&typeof Po.onCommitFiberUnmount=="function")try{Po.onCommitFiberUnmount(Rf,n)}catch{}switch(n.tag){case 5:An||ul(n,t);case 6:var r=vn,o=io;vn=null,$s(e,t,n),vn=r,io=o,vn!==null&&(io?(e=vn,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):vn.removeChild(n.stateNode));break;case 18:vn!==null&&(io?(e=vn,n=n.stateNode,e.nodeType===8?jg(e.parentNode,n):e.nodeType===1&&jg(e,n),Rd(e)):jg(vn,n.stateNode));break;case 4:r=vn,o=io,vn=n.stateNode.containerInfo,io=!0,$s(e,t,n),vn=r,io=o;break;case 0:case 11:case 14:case 15:if(!An&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var s=o,a=s.destroy;s=s.tag,a!==void 0&&(s&2||s&4)&&xv(n,t,a),o=o.next}while(o!==r)}$s(e,t,n);break;case 1:if(!An&&(ul(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(i){Zt(n,t,i)}$s(e,t,n);break;case 21:$s(e,t,n);break;case 22:n.mode&1?(An=(r=An)||n.memoizedState!==null,$s(e,t,n),An=r):$s(e,t,n);break;default:$s(e,t,n)}}function Yw(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new vN),t.forEach(function(r){var o=TN.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Qr(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=a),r&=~s}if(r=o,r=en()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*wN(r/1960))-r,10e?16:e,Us===null)var r=!1;else{if(e=Us,Us=null,Bh=0,rt&6)throw Error(Z(331));var o=rt;for(rt|=4,ce=e.current;ce!==null;){var s=ce,a=s.child;if(ce.flags&16){var i=s.deletions;if(i!==null){for(var l=0;len()-F0?Ba(e,0):L0|=n),or(e,t)}function _T(e,t){t===0&&(e.mode&1?(t=Yu,Yu<<=1,!(Yu&130023424)&&(Yu=4194304)):t=1);var n=Vn();e=ms(e,t),e!==null&&(mu(e,t,n),or(e,n))}function EN(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),_T(e,n)}function TN(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(Z(314))}r!==null&&r.delete(t),_T(e,n)}var vT;vT=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||nr.current)er=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return er=!1,mN(e,t,n);er=!!(e.flags&131072)}else er=!1,Bt&&t.flags&1048576&&SE(t,Nh,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;rh(e,t),e=t.pendingProps;var o=zl(t,In.current);Sl(t,n),o=M0(null,t,r,e,o,n);var s=j0();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,rr(r)?(s=!0,Dh(t)):s=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,T0(t),o.updater=Uf,t.stateNode=o,o._reactInternals=t,gv(t,r,e,n),t=yv(null,t,r,!0,s,n)):(t.tag=0,Bt&&s&&w0(t),Bn(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(rh(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=DN(r),e=ao(r,e),o){case 0:t=vv(null,t,r,e,n);break e;case 1:t=Vw(null,t,r,e,n);break e;case 11:t=Hw(null,t,r,e,n);break e;case 14:t=Uw(null,t,r,ao(r.type,e),n);break e}throw Error(Z(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ao(r,o),vv(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ao(r,o),Vw(e,t,r,o,n);case 3:e:{if(tT(t),e===null)throw Error(Z(387));r=t.pendingProps,s=t.memoizedState,o=s.element,TE(e,t),Ih(t,r,null,n);var a=t.memoizedState;if(r=a.element,s.isDehydrated)if(s={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){o=Fl(Error(Z(423)),t),t=Gw(e,t,r,n,o);break e}else if(r!==o){o=Fl(Error(Z(424)),t),t=Gw(e,t,r,n,o);break e}else for(gr=Zs(t.stateNode.containerInfo.firstChild),br=t,Bt=!0,lo=null,n=CE(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Rl(),r===o){t=gs(e,t,n);break e}Bn(e,t,r,n)}t=t.child}return t;case 5:return OE(t),e===null&&hv(t),r=t.type,o=t.pendingProps,s=e!==null?e.memoizedProps:null,a=o.children,lv(r,o)?a=null:s!==null&&lv(r,s)&&(t.flags|=32),eT(e,t),Bn(e,t,a,n),t.child;case 6:return e===null&&hv(t),null;case 13:return nT(e,t,n);case 4:return O0(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Pl(t,null,r,n):Bn(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ao(r,o),Hw(e,t,r,o,n);case 7:return Bn(e,t,t.pendingProps,n),t.child;case 8:return Bn(e,t,t.pendingProps.children,n),t.child;case 12:return Bn(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,s=t.memoizedProps,a=o.value,At(Mh,r._currentValue),r._currentValue=a,s!==null)if(go(s.value,a)){if(s.children===o.children&&!nr.current){t=gs(e,t,n);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var i=s.dependencies;if(i!==null){a=s.child;for(var l=i.firstContext;l!==null;){if(l.context===r){if(s.tag===1){l=cs(-1,n&-n),l.tag=2;var d=s.updateQueue;if(d!==null){d=d.shared;var u=d.pending;u===null?l.next=l:(l.next=u.next,u.next=l),d.pending=l}}s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),fv(s.return,n,t),i.lanes|=n;break}l=l.next}}else if(s.tag===10)a=s.type===t.type?null:s.child;else if(s.tag===18){if(a=s.return,a===null)throw Error(Z(341));a.lanes|=n,i=a.alternate,i!==null&&(i.lanes|=n),fv(a,n,t),a=s.sibling}else a=s.child;if(a!==null)a.return=s;else for(a=s;a!==null;){if(a===t){a=null;break}if(s=a.sibling,s!==null){s.return=a.return,a=s;break}a=a.return}s=a}Bn(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Sl(t,n),o=Vr(o),r=r(o),t.flags|=1,Bn(e,t,r,n),t.child;case 14:return r=t.type,o=ao(r,t.pendingProps),o=ao(r.type,o),Uw(e,t,r,o,n);case 15:return ZE(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ao(r,o),rh(e,t),t.tag=1,rr(r)?(e=!0,Dh(t)):e=!1,Sl(t,n),XE(t,r,o),gv(t,r,o,n),yv(null,t,r,!0,e,n);case 19:return rT(e,t,n);case 22:return QE(e,t,n)}throw Error(Z(156,t.tag))};function yT(e,t){return G2(e,t)}function ON(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Fr(e,t,n,r){return new ON(e,t,n,r)}function U0(e){return e=e.prototype,!(!e||!e.isReactComponent)}function DN(e){if(typeof e=="function")return U0(e)?1:0;if(e!=null){if(e=e.$$typeof,e===c0)return 11;if(e===d0)return 14}return 2}function na(e,t){var n=e.alternate;return n===null?(n=Fr(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function ah(e,t,n,r,o,s){var a=2;if(r=e,typeof e=="function")U0(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case nl:return Wa(n.children,o,s,t);case l0:a=8,o|=8;break;case F_:return e=Fr(12,n,t,o|2),e.elementType=F_,e.lanes=s,e;case B_:return e=Fr(13,n,t,o),e.elementType=B_,e.lanes=s,e;case W_:return e=Fr(19,n,t,o),e.elementType=W_,e.lanes=s,e;case O2:return qf(n,o,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case E2:a=10;break e;case T2:a=9;break e;case c0:a=11;break e;case d0:a=14;break e;case Ns:a=16,r=null;break e}throw Error(Z(130,e==null?e:typeof e,""))}return t=Fr(a,n,t,o),t.elementType=e,t.type=r,t.lanes=s,t}function Wa(e,t,n,r){return e=Fr(7,e,r,t),e.lanes=n,e}function qf(e,t,n,r){return e=Fr(22,e,r,t),e.elementType=O2,e.lanes=n,e.stateNode={isHidden:!1},e}function Wg(e,t,n){return e=Fr(6,e,null,t),e.lanes=n,e}function Hg(e,t,n){return t=Fr(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function AN(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=xg(0),this.expirationTimes=xg(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=xg(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function V0(e,t,n,r,o,s,a,i,l){return e=new AN(e,t,n,i,l),t===1?(t=1,s===!0&&(t|=8)):t=0,s=Fr(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},T0(s),e}function NN(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(xT)}catch(e){console.error(e)}}xT(),x2.exports=Er;var X0=x2.exports;const lp=If(X0);var kT,oS=X0;kT=oS.createRoot,oS.hydrateRoot;function _s(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(r=>n.searchParams.append("args[]",r)),`Minified MUI error #${e}; visit ${n} for the full message.`}const Fo="$$material";function Uh(){return Uh=Object.assign?Object.assign.bind():function(e){for(var t=1;t0?bn(sc,--ir):0,Wl--,rn===10&&(Wl=1,Qf--),rn}function wr(){return rn=ir2||Yd(rn)>3?"":" "}function ZN(e,t){for(;--t&&wr()&&!(rn<48||rn>102||rn>57&&rn<65||rn>70&&rn<97););return yu(e,ih()+(t<6&&Bo()==32&&wr()==32))}function Nv(e){for(;wr();)switch(rn){case e:return ir;case 34:case 39:e!==34&&e!==39&&Nv(rn);break;case 40:e===41&&Nv(e);break;case 92:wr();break}return ir}function QN(e,t){for(;wr()&&e+rn!==57;)if(e+rn===84&&Bo()===47)break;return"/*"+yu(t,ir-1)+"*"+Zf(e===47?e:wr())}function eM(e){for(;!Yd(Bo());)wr();return yu(e,ir)}function tM(e){return NT(ch("",null,null,null,[""],e=AT(e),0,[0],e))}function ch(e,t,n,r,o,s,a,i,l){for(var d=0,u=0,c=a,h=0,f=0,g=0,_=1,w=1,v=1,b=0,y="",S=o,$=s,C=r,T=y;w;)switch(g=b,b=wr()){case 40:if(g!=108&&bn(T,c-1)==58){Av(T+=at(lh(b),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:T+=lh(b);break;case 9:case 10:case 13:case 32:T+=KN(g);break;case 92:T+=ZN(ih()-1,7);continue;case 47:switch(Bo()){case 42:case 47:cp(nM(QN(wr(),ih()),t,n),l);break;default:T+="/"}break;case 123*_:i[d++]=Do(T)*v;case 125*_:case 59:case 0:switch(b){case 0:case 125:w=0;case 59+u:v==-1&&(T=at(T,/\f/g,"")),f>0&&Do(T)-c&&cp(f>32?aS(T+";",r,n,c-1):aS(at(T," ","")+";",r,n,c-2),l);break;case 59:T+=";";default:if(cp(C=sS(T,t,n,d,u,o,i,y,S=[],$=[],c),s),b===123)if(u===0)ch(T,t,C,C,S,s,c,i,$);else switch(h===99&&bn(T,3)===110?100:h){case 100:case 108:case 109:case 115:ch(e,C,C,r&&cp(sS(e,C,C,0,0,o,i,y,o,S=[],c),$),o,$,c,i,r?S:$);break;default:ch(T,C,C,C,[""],$,0,i,$)}}d=u=f=0,_=v=1,y=T="",c=a;break;case 58:c=1+Do(T),f=g;default:if(_<1){if(b==123)--_;else if(b==125&&_++==0&&YN()==125)continue}switch(T+=Zf(b),b*_){case 38:v=u>0?1:(T+="\f",-1);break;case 44:i[d++]=(Do(T)-1)*v,v=1;break;case 64:Bo()===45&&(T+=lh(wr())),h=Bo(),u=c=Do(y=T+=eM(ih())),b++;break;case 45:g===45&&Do(T)==2&&(_=0)}}return s}function sS(e,t,n,r,o,s,a,i,l,d,u){for(var c=o-1,h=o===0?s:[""],f=Z0(h),g=0,_=0,w=0;g0?h[v]+" "+b:at(b,/&\f/g,h[v])))&&(l[w++]=y);return em(e,t,n,o===0?Y0:i,l,d,u)}function nM(e,t,n){return em(e,t,n,ET,Zf(XN()),Xd(e,2,-2),0)}function aS(e,t,n,r){return em(e,t,n,K0,Xd(e,0,r),Xd(e,r+1,-1),r)}function kl(e,t){for(var n="",r=Z0(e),o=0;o6)switch(bn(e,t+1)){case 109:if(bn(e,t+4)!==45)break;case 102:return at(e,/(.+:)(.+)-([^]+)/,"$1"+st+"$2-$3$1"+Vh+(bn(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Av(e,"stretch")?MT(at(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(bn(e,t+1)!==115)break;case 6444:switch(bn(e,Do(e)-3-(~Av(e,"!important")&&10))){case 107:return at(e,":",":"+st)+e;case 101:return at(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+st+(bn(e,14)===45?"inline-":"")+"box$3$1"+st+"$2$3$1"+En+"$2box$3")+e}break;case 5936:switch(bn(e,t+11)){case 114:return st+e+En+at(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return st+e+En+at(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return st+e+En+at(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return st+e+En+e+e}return e}var uM=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case K0:t.return=MT(t.value,t.length);break;case TT:return kl([Ac(t,{value:at(t.value,"@","@"+st)})],o);case Y0:if(t.length)return JN(t.props,function(s){switch(qN(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return kl([Ac(t,{props:[at(s,/:(read-\w+)/,":"+Vh+"$1")]})],o);case"::placeholder":return kl([Ac(t,{props:[at(s,/:(plac\w+)/,":"+st+"input-$1")]}),Ac(t,{props:[at(s,/:(plac\w+)/,":"+Vh+"$1")]}),Ac(t,{props:[at(s,/:(plac\w+)/,En+"input-$1")]})],o)}return""})}},pM=[uM],jT=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(_){var w=_.getAttribute("data-emotion");w.indexOf(" ")!==-1&&(document.head.appendChild(_),_.setAttribute("data-s",""))})}var o=t.stylisPlugins||pM,s={},a,i=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(_){for(var w=_.getAttribute("data-emotion").split(" "),v=1;v=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var kM={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},$M=!1,CM=/[A-Z]|^ms/g,EM=/_EMO_([^_]+?)_([^]*?)_EMO_/g,BT=function(t){return t.charCodeAt(1)===45},lS=function(t){return t!=null&&typeof t!="boolean"},Ug=$T(function(e){return BT(e)?e:e.replace(CM,"-$&").toLowerCase()}),cS=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(EM,function(r,o,s){return Ao={name:o,styles:s,next:Ao},o})}return kM[t]!==1&&!BT(t)&&typeof n=="number"&&n!==0?n+"px":n},TM="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Kd(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var o=n;if(o.anim===1)return Ao={name:o.name,styles:o.styles,next:Ao},o.name;var s=n;if(s.styles!==void 0){var a=s.next;if(a!==void 0)for(;a!==void 0;)Ao={name:a.name,styles:a.styles,next:Ao},a=a.next;var i=s.styles+";";return i}return OM(e,t,n)}case"function":{if(e!==void 0){var l=Ao,d=n(e);return Ao=l,Kd(e,t,d)}break}}var u=n;if(t==null)return u;var c=t[u];return c!==void 0?c:u}function OM(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o96?jM:IM},hS=function(t,n,r){var o;if(n){var s=n.shouldForwardProp;o=t.__emotion_forwardProp&&s?function(a){return t.__emotion_forwardProp(a)&&s(a)}:s}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},zM=!1,RM=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return LT(n,r,o),AM(function(){return FT(n,r,o)}),null},PM=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,s,a;n!==void 0&&(s=n.label,a=n.target);var i=hS(t,n,r),l=i||pS(o),d=!l("as");return function(){var u=arguments,c=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(s!==void 0&&c.push("label:"+s+";"),u[0]==null||u[0].raw===void 0)c.push.apply(c,u);else{c.push(u[0][0]);for(var h=u.length,f=1;f{const t=jT(e);class n extends CT{constructor(o){super(o),this.prepend=t.sheet.prepend}}return t.sheet=new n({key:t.key,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy,prepend:t.sheet.prepend,insertionPoint:t.sheet.insertionPoint}),t};let jv;typeof document=="object"&&(jv=VM({key:"css",prepend:!0}));function fS(e){const{injectFirst:t,children:n}=e;return t&&jv?m.jsx(NM,{value:jv,children:n}):n}function GM(e){return e==null||Object.keys(e).length===0}function JT(e){const{styles:t,defaultTheme:n={}}=e,r=typeof t=="function"?o=>t(GM(o)?n:o):t;return m.jsx(MM,{styles:r})}/** + * @mui/styled-engine v6.1.6 + * + * @license MIT + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */function XT(e,t){return Mv(e,t)}function qM(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const mS=[];function gS(e){return mS[0]=e,um(mS)}function zo(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function YT(e){if(!zo(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=YT(e[n])}),t}function Mn(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return zo(e)&&zo(t)&&Object.keys(t).forEach(o=>{zo(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&zo(e[o])?r[o]=Mn(e[o],t[o],n):n.clone?r[o]=zo(t[o])?YT(t[o]):t[o]:r[o]=t[o]}),r}const JM=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>({...n,[r.key]:r.val}),{})};function XM(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...o}=e,s=JM(t),a=Object.keys(s);function i(h){return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${n})`}function l(h){return`@media (max-width:${(typeof t[h]=="number"?t[h]:h)-r/100}${n})`}function d(h,f){const g=a.indexOf(f);return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${n}) and (max-width:${(g!==-1&&typeof t[a[g]]=="number"?t[a[g]]:f)-r/100}${n})`}function u(h){return a.indexOf(h)+1r.startsWith("@container")).sort((r,o)=>{var a,i;const s=/min-width:\s*([0-9.]+)/;return+(((a=r.match(s))==null?void 0:a[1])||0)-+(((i=o.match(s))==null?void 0:i[1])||0)});return n.length?n.reduce((r,o)=>{const s=t[o];return delete r[o],r[o]=s,r},{...t}):t}function KM(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function ZM(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;const[,r,o]=n,s=Number.isNaN(+r)?r||0:+r;return e.containerQueries(o).up(s)}function QM(e){const t=(s,a)=>s.replace("@media",a?`@container ${a}`:"@container");function n(s,a){s.up=(...i)=>t(e.breakpoints.up(...i),a),s.down=(...i)=>t(e.breakpoints.down(...i),a),s.between=(...i)=>t(e.breakpoints.between(...i),a),s.only=(...i)=>t(e.breakpoints.only(...i),a),s.not=(...i)=>{const l=t(e.breakpoints.not(...i),a);return l.includes("not all and")?l.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):l}}const r={},o=s=>(n(r,s),r);return n(o),{...e,containerQueries:o}}const ej={borderRadius:4};function bd(e,t){return t?Mn(e,t,{clone:!1}):e}const hm={xs:0,sm:600,md:900,lg:1200,xl:1536},_S={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${hm[e]}px)`},tj={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:hm[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function vs(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const s=r.breakpoints||_S;return t.reduce((a,i,l)=>(a[s.up(s.keys[l])]=n(t[l]),a),{})}if(typeof t=="object"){const s=r.breakpoints||_S;return Object.keys(t).reduce((a,i)=>{if(KM(s.keys,i)){const l=ZM(r.containerQueries?r:tj,i);l&&(a[l]=n(t[i],i))}else if(Object.keys(s.values||hm).includes(i)){const l=s.up(i);a[l]=n(t[i],i)}else{const l=i;a[l]=t[l]}return a},{})}return n(t)}function nj(e={}){var n;return((n=e.keys)==null?void 0:n.reduce((r,o)=>{const s=e.up(o);return r[s]={},r},{}))||{}}function rj(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function W(e){if(typeof e!="string")throw new Error(_s(7));return e.charAt(0).toUpperCase()+e.slice(1)}function fm(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,s)=>o&&o[s]?o[s]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function Gh(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=fm(e,n)||r,t&&(o=t(o,r,e)),o}function tn(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,s=a=>{if(a[t]==null)return null;const i=a[t],l=a.theme,d=fm(l,r)||{};return vs(a,i,c=>{let h=Gh(d,o,c);return c===h&&typeof c=="string"&&(h=Gh(d,o,`${t}${c==="default"?"":W(c)}`,c)),n===!1?h:{[n]:h}})};return s.propTypes={},s.filterProps=[t],s}function oj(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const sj={m:"margin",p:"padding"},aj={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},vS={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},ij=oj(e=>{if(e.length>2)if(vS[e])e=vS[e];else return[e];const[t,n]=e.split(""),r=sj[t],o=aj[n]||"";return Array.isArray(o)?o.map(s=>r+s):[r+o]}),nb=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],rb=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...nb,...rb];function bu(e,t,n,r){const o=fm(e,t,!0)??n;return typeof o=="number"||typeof o=="string"?s=>typeof s=="string"?s:typeof o=="string"?`calc(${s} * ${o})`:o*s:Array.isArray(o)?s=>{if(typeof s=="string")return s;const a=Math.abs(s),i=o[a];return s>=0?i:typeof i=="number"?-i:`-${i}`}:typeof o=="function"?o:()=>{}}function ob(e){return bu(e,"spacing",8)}function wu(e,t){return typeof t=="string"||t==null?t:e(t)}function lj(e,t){return n=>e.reduce((r,o)=>(r[o]=wu(t,n),r),{})}function cj(e,t,n,r){if(!t.includes(n))return null;const o=ij(n),s=lj(o,r),a=e[n];return vs(e,a,s)}function KT(e,t){const n=ob(e.theme);return Object.keys(e).map(r=>cj(e,t,r,n)).reduce(bd,{})}function Xt(e){return KT(e,nb)}Xt.propTypes={};Xt.filterProps=nb;function Yt(e){return KT(e,rb)}Yt.propTypes={};Yt.filterProps=rb;function ZT(e=8,t=ob({spacing:e})){if(e.mui)return e;const n=(...r)=>(r.length===0?[1]:r).map(s=>{const a=t(s);return typeof a=="number"?`${a}px`:a}).join(" ");return n.mui=!0,n}function mm(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(s=>{r[s]=o}),r),{}),n=r=>Object.keys(r).reduce((o,s)=>t[s]?bd(o,t[s](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function zr(e){return typeof e!="number"?e:`${e}px solid`}function Yr(e,t){return tn({prop:e,themeKey:"borders",transform:t})}const dj=Yr("border",zr),uj=Yr("borderTop",zr),pj=Yr("borderRight",zr),hj=Yr("borderBottom",zr),fj=Yr("borderLeft",zr),mj=Yr("borderColor"),gj=Yr("borderTopColor"),_j=Yr("borderRightColor"),vj=Yr("borderBottomColor"),yj=Yr("borderLeftColor"),bj=Yr("outline",zr),wj=Yr("outlineColor"),gm=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=bu(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:wu(t,r)});return vs(e,e.borderRadius,n)}return null};gm.propTypes={};gm.filterProps=["borderRadius"];mm(dj,uj,pj,hj,fj,mj,gj,_j,vj,yj,gm,bj,wj);const _m=e=>{if(e.gap!==void 0&&e.gap!==null){const t=bu(e.theme,"spacing",8),n=r=>({gap:wu(t,r)});return vs(e,e.gap,n)}return null};_m.propTypes={};_m.filterProps=["gap"];const vm=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=bu(e.theme,"spacing",8),n=r=>({columnGap:wu(t,r)});return vs(e,e.columnGap,n)}return null};vm.propTypes={};vm.filterProps=["columnGap"];const ym=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=bu(e.theme,"spacing",8),n=r=>({rowGap:wu(t,r)});return vs(e,e.rowGap,n)}return null};ym.propTypes={};ym.filterProps=["rowGap"];const Sj=tn({prop:"gridColumn"}),xj=tn({prop:"gridRow"}),kj=tn({prop:"gridAutoFlow"}),$j=tn({prop:"gridAutoColumns"}),Cj=tn({prop:"gridAutoRows"}),Ej=tn({prop:"gridTemplateColumns"}),Tj=tn({prop:"gridTemplateRows"}),Oj=tn({prop:"gridTemplateAreas"}),Dj=tn({prop:"gridArea"});mm(_m,vm,ym,Sj,xj,kj,$j,Cj,Ej,Tj,Oj,Dj);function $l(e,t){return t==="grey"?t:e}const Aj=tn({prop:"color",themeKey:"palette",transform:$l}),Nj=tn({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:$l}),Mj=tn({prop:"backgroundColor",themeKey:"palette",transform:$l});mm(Aj,Nj,Mj);function fr(e){return e<=1&&e!==0?`${e*100}%`:e}const jj=tn({prop:"width",transform:fr}),sb=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var o,s,a,i,l;const r=((a=(s=(o=e.theme)==null?void 0:o.breakpoints)==null?void 0:s.values)==null?void 0:a[n])||hm[n];return r?((l=(i=e.theme)==null?void 0:i.breakpoints)==null?void 0:l.unit)!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:fr(n)}};return vs(e,e.maxWidth,t)}return null};sb.filterProps=["maxWidth"];const Ij=tn({prop:"minWidth",transform:fr}),zj=tn({prop:"height",transform:fr}),Rj=tn({prop:"maxHeight",transform:fr}),Pj=tn({prop:"minHeight",transform:fr});tn({prop:"size",cssProperty:"width",transform:fr});tn({prop:"size",cssProperty:"height",transform:fr});const Lj=tn({prop:"boxSizing"});mm(jj,sb,Ij,zj,Rj,Pj,Lj);const Su={border:{themeKey:"borders",transform:zr},borderTop:{themeKey:"borders",transform:zr},borderRight:{themeKey:"borders",transform:zr},borderBottom:{themeKey:"borders",transform:zr},borderLeft:{themeKey:"borders",transform:zr},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:zr},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:gm},color:{themeKey:"palette",transform:$l},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:$l},backgroundColor:{themeKey:"palette",transform:$l},p:{style:Yt},pt:{style:Yt},pr:{style:Yt},pb:{style:Yt},pl:{style:Yt},px:{style:Yt},py:{style:Yt},padding:{style:Yt},paddingTop:{style:Yt},paddingRight:{style:Yt},paddingBottom:{style:Yt},paddingLeft:{style:Yt},paddingX:{style:Yt},paddingY:{style:Yt},paddingInline:{style:Yt},paddingInlineStart:{style:Yt},paddingInlineEnd:{style:Yt},paddingBlock:{style:Yt},paddingBlockStart:{style:Yt},paddingBlockEnd:{style:Yt},m:{style:Xt},mt:{style:Xt},mr:{style:Xt},mb:{style:Xt},ml:{style:Xt},mx:{style:Xt},my:{style:Xt},margin:{style:Xt},marginTop:{style:Xt},marginRight:{style:Xt},marginBottom:{style:Xt},marginLeft:{style:Xt},marginX:{style:Xt},marginY:{style:Xt},marginInline:{style:Xt},marginInlineStart:{style:Xt},marginInlineEnd:{style:Xt},marginBlock:{style:Xt},marginBlockStart:{style:Xt},marginBlockEnd:{style:Xt},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:_m},rowGap:{style:ym},columnGap:{style:vm},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:fr},maxWidth:{style:sb},minWidth:{transform:fr},height:{transform:fr},maxHeight:{transform:fr},minHeight:{transform:fr},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function Fj(...e){const t=e.reduce((r,o)=>r.concat(Object.keys(o)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function Bj(e,t){return typeof e=="function"?e(t):e}function Wj(){function e(n,r,o,s){const a={[n]:r,theme:o},i=s[n];if(!i)return{[n]:r};const{cssProperty:l=n,themeKey:d,transform:u,style:c}=i;if(r==null)return null;if(d==="typography"&&r==="inherit")return{[n]:r};const h=fm(o,d)||{};return c?c(a):vs(a,r,g=>{let _=Gh(h,u,g);return g===_&&typeof g=="string"&&(_=Gh(h,u,`${n}${g==="default"?"":W(g)}`,g)),l===!1?_:{[l]:_}})}function t(n){const{sx:r,theme:o={}}=n||{};if(!r)return null;const s=o.unstable_sxConfig??Su;function a(i){let l=i;if(typeof i=="function")l=i(o);else if(typeof i!="object")return i;if(!l)return null;const d=nj(o.breakpoints),u=Object.keys(d);let c=d;return Object.keys(l).forEach(h=>{const f=Bj(l[h],o);if(f!=null)if(typeof f=="object")if(s[h])c=bd(c,e(h,f,o,s));else{const g=vs({theme:o},f,_=>({[h]:_}));Fj(g,f)?c[h]=t({sx:f,theme:o}):c=bd(c,g)}else c=bd(c,e(h,f,o,s))}),YM(o,rj(u,c))}return Array.isArray(r)?r.map(a):a(r)}return t}const ia=Wj();ia.filterProps=["sx"];function Hj(e,t){var r;const n=this;if(n.vars){if(!((r=n.colorSchemes)!=null&&r[e])||typeof n.getColorSchemeSelector!="function")return{};let o=n.getColorSchemeSelector(e);return o==="&"?t:((o.includes("data-")||o.includes("."))&&(o=`*:where(${o.replace(/\s*&$/,"")}) &`),{[o]:t})}return n.palette.mode===e?t:{}}function bm(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:s={},...a}=e,i=XM(n),l=ZT(o);let d=Mn({breakpoints:i,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:l,shape:{...ej,...s}},a);return d=QM(d),d.applyStyles=Hj,d=t.reduce((u,c)=>Mn(u,c),d),d.unstable_sxConfig={...Su,...a==null?void 0:a.unstable_sxConfig},d.unstable_sx=function(c){return ia({sx:c,theme:this})},d}function Uj(e){return Object.keys(e).length===0}function ab(e=null){const t=k.useContext(pm);return!t||Uj(t)?e:t}const Vj=bm();function xu(e=Vj){return ab(e)}function Gj({styles:e,themeId:t,defaultTheme:n={}}){const r=xu(n),o=typeof e=="function"?e(t&&r[t]||r):e;return m.jsx(JT,{styles:o})}const qj=e=>{var r;const t={systemProps:{},otherProps:{}},n=((r=e==null?void 0:e.theme)==null?void 0:r.unstable_sxConfig)??Su;return Object.keys(e).forEach(o=>{n[o]?t.systemProps[o]=e[o]:t.otherProps[o]=e[o]}),t};function ib(e){const{sx:t,...n}=e,{systemProps:r,otherProps:o}=qj(n);let s;return Array.isArray(t)?s=[r,...t]:typeof t=="function"?s=(...a)=>{const i=t(...a);return zo(i)?{...r,...i}:r}:s={...r,...t},{...o,sx:s}}const yS=e=>e,Jj=()=>{let e=yS;return{configure(t){e=t},generate(t){return e(t)},reset(){e=yS}}},QT=Jj();function eO(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;ti!=="theme"&&i!=="sx"&&i!=="as"})(ia);return k.forwardRef(function(l,d){const u=xu(n),{className:c,component:h="div",...f}=ib(l);return m.jsx(s,{as:h,ref:d,className:J(c,o?o(r):r),theme:t&&u[t]||u,...f})})}const Yj={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function le(e,t,n="Mui"){const r=Yj[t];return r?`${n}-${r}`:`${QT.generate(e)}-${t}`}function ie(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=le(e,o,n)}),r}var gt={};/** + * @license React + * react-is.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var lb=Symbol.for("react.element"),cb=Symbol.for("react.portal"),wm=Symbol.for("react.fragment"),Sm=Symbol.for("react.strict_mode"),xm=Symbol.for("react.profiler"),km=Symbol.for("react.provider"),$m=Symbol.for("react.context"),Kj=Symbol.for("react.server_context"),Cm=Symbol.for("react.forward_ref"),Em=Symbol.for("react.suspense"),Tm=Symbol.for("react.suspense_list"),Om=Symbol.for("react.memo"),Dm=Symbol.for("react.lazy"),Zj=Symbol.for("react.offscreen"),tO;tO=Symbol.for("react.module.reference");function Kr(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case lb:switch(e=e.type,e){case wm:case xm:case Sm:case Em:case Tm:return e;default:switch(e=e&&e.$$typeof,e){case Kj:case $m:case Cm:case Dm:case Om:case km:return e;default:return t}}case cb:return t}}}gt.ContextConsumer=$m;gt.ContextProvider=km;gt.Element=lb;gt.ForwardRef=Cm;gt.Fragment=wm;gt.Lazy=Dm;gt.Memo=Om;gt.Portal=cb;gt.Profiler=xm;gt.StrictMode=Sm;gt.Suspense=Em;gt.SuspenseList=Tm;gt.isAsyncMode=function(){return!1};gt.isConcurrentMode=function(){return!1};gt.isContextConsumer=function(e){return Kr(e)===$m};gt.isContextProvider=function(e){return Kr(e)===km};gt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===lb};gt.isForwardRef=function(e){return Kr(e)===Cm};gt.isFragment=function(e){return Kr(e)===wm};gt.isLazy=function(e){return Kr(e)===Dm};gt.isMemo=function(e){return Kr(e)===Om};gt.isPortal=function(e){return Kr(e)===cb};gt.isProfiler=function(e){return Kr(e)===xm};gt.isStrictMode=function(e){return Kr(e)===Sm};gt.isSuspense=function(e){return Kr(e)===Em};gt.isSuspenseList=function(e){return Kr(e)===Tm};gt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===wm||e===xm||e===Sm||e===Em||e===Tm||e===Zj||typeof e=="object"&&e!==null&&(e.$$typeof===Dm||e.$$typeof===Om||e.$$typeof===km||e.$$typeof===$m||e.$$typeof===Cm||e.$$typeof===tO||e.getModuleId!==void 0)};gt.typeOf=Kr;function nO(e){const{variants:t,...n}=e,r={variants:t,style:gS(n),isProcessed:!0};return r.style===n||t&&t.forEach(o=>{typeof o.style!="function"&&(o.style=gS(o.style))}),r}const Qj=bm();function Vg(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function eI(e){return e?(t,n)=>n[e]:null}function tI(e,t,n){e.theme=rI(e.theme)?n:e.theme[t]||e.theme}function dh(e,t){const n=typeof t=="function"?t(e):t;if(Array.isArray(n))return n.flatMap(r=>dh(e,r));if(Array.isArray(n==null?void 0:n.variants)){let r;if(n.isProcessed)r=n.style;else{const{variants:o,...s}=n;r=s}return rO(e,n.variants,[r])}return n!=null&&n.isProcessed?n.style:n}function rO(e,t,n=[]){var o;let r;e:for(let s=0;s{qM(i,$=>$.filter(C=>C!==ia));const{name:d,slot:u,skipVariantsResolver:c,skipSx:h,overridesResolver:f=eI(sI(u)),...g}=l,_=c!==void 0?c:u&&u!=="Root"&&u!=="root"||!1,w=h||!1;let v=Vg;u==="Root"||u==="root"?v=r:u?v=o:oI(i)&&(v=void 0);const b=XT(i,{shouldForwardProp:v,label:nI(),...g}),y=$=>{if(typeof $=="function"&&$.__emotion_real!==$)return function(T){return dh(T,$)};if(zo($)){const C=nO($);return C.variants?function(O){return dh(O,C)}:C.style}return $},S=(...$)=>{const C=[],T=$.map(y),O=[];if(C.push(s),d&&f&&O.push(function(I){var B,V;const N=(V=(B=I.theme.components)==null?void 0:B[d])==null?void 0:V.styleOverrides;if(!N)return null;const M={};for(const R in N)M[R]=dh(I,N[R]);return f(I,M)}),d&&!_&&O.push(function(I){var M,B;const z=I.theme,N=(B=(M=z==null?void 0:z.components)==null?void 0:M[d])==null?void 0:B.variants;return N?rO(I,N):null}),w||O.push(ia),Array.isArray(T[0])){const A=T.shift(),I=new Array(C.length).fill(""),z=new Array(O.length).fill("");let N;N=[...I,...A,...z],N.raw=[...I,...A.raw,...z],C.unshift(N)}const D=[...C,...T,...O],x=b(...D);return i.muiName&&(x.muiName=i.muiName),x};return b.withConfig&&(S.withConfig=b.withConfig),S}}function nI(e,t){return void 0}function rI(e){for(const t in e)return!1;return!0}function oI(e){return typeof e=="string"&&e.charCodeAt(0)>96}function sI(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}const aI=oO();function Zd(e,t){const n={...t};for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)){const o=r;if(o==="components"||o==="slots")n[o]={...e[o],...n[o]};else if(o==="componentsProps"||o==="slotProps"){const s=e[o],a=t[o];if(!a)n[o]=s||{};else if(!s)n[o]=a;else{n[o]={...a};for(const i in s)if(Object.prototype.hasOwnProperty.call(s,i)){const l=i;n[o][l]=Zd(s[l],a[l])}}}else n[o]===void 0&&(n[o]=e[o])}return n}function sO(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:Zd(t.components[n].defaultProps,r)}function iI({props:e,name:t,defaultTheme:n,themeId:r}){let o=xu(n);return r&&(o=o[r]||o),sO({theme:o,name:t,props:e})}const xr=typeof window<"u"?k.useLayoutEffect:k.useEffect;function lI(e,t,n,r,o){const[s,a]=k.useState(()=>o&&n?n(e).matches:r?r(e).matches:t);return xr(()=>{if(!n)return;const i=n(e),l=()=>{a(i.matches)};return l(),i.addEventListener("change",l),()=>{i.removeEventListener("change",l)}},[e,n]),s}const cI={...yh},aO=cI.useSyncExternalStore;function dI(e,t,n,r,o){const s=k.useCallback(()=>t,[t]),a=k.useMemo(()=>{if(o&&n)return()=>n(e).matches;if(r!==null){const{matches:u}=r(e);return()=>u}return s},[s,e,r,o,n]),[i,l]=k.useMemo(()=>{if(n===null)return[s,()=>()=>{}];const u=n(e);return[()=>u.matches,c=>(u.addEventListener("change",c),()=>{u.removeEventListener("change",c)})]},[s,n,e]);return aO(l,i,a)}function iO(e,t={}){const n=ab(),r=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:o=!1,matchMedia:s=r?window.matchMedia:null,ssrMatchMedia:a=null,noSsr:i=!1}=sO({name:"MuiUseMediaQuery",props:t,theme:n});let l=typeof e=="function"?e(n):e;return l=l.replace(/^@media( ?)/m,""),(aO!==void 0?dI:lI)(l,o,s,a,i)}function uI(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function db(e,t=0,n=1){return uI(e,t,n)}function pI(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function la(e){if(e.type)return e;if(e.charAt(0)==="#")return la(pI(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(_s(9,e));let r=e.substring(t+1,e.length-1),o;if(n==="color"){if(r=r.split(" "),o=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(o))throw new Error(_s(10,o))}else r=r.split(",");return r=r.map(s=>parseFloat(s)),{type:n,values:r,colorSpace:o}}const hI=e=>{const t=la(e);return t.values.slice(0,3).map((n,r)=>t.type.includes("hsl")&&r!==0?`${n}%`:n).join(" ")},ed=(e,t)=>{try{return hI(e)}catch{return e}};function Am(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.includes("rgb")?r=r.map((o,s)=>s<3?parseInt(o,10):o):t.includes("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.includes("color")?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function lO(e){e=la(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,s=r*Math.min(o,1-o),a=(d,u=(d+n/30)%12)=>o-s*Math.max(Math.min(u-3,9-u,1),-1);let i="rgb";const l=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return e.type==="hsla"&&(i+="a",l.push(t[3])),Am({type:i,values:l})}function Iv(e){e=la(e);let t=e.type==="hsl"||e.type==="hsla"?la(lO(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function fI(e,t){const n=Iv(e),r=Iv(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function Fe(e,t){return e=la(e),t=db(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Am(e)}function dp(e,t,n){try{return Fe(e,t)}catch{return e}}function ic(e,t){if(e=la(e),t=db(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return Am(e)}function vt(e,t,n){try{return ic(e,t)}catch{return e}}function lc(e,t){if(e=la(e),t=db(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return Am(e)}function yt(e,t,n){try{return lc(e,t)}catch{return e}}function qh(e,t=.15){return Iv(e)>.5?ic(e,t):lc(e,t)}function up(e,t,n){try{return qh(e,t)}catch{return e}}function zv(...e){return e.reduce((t,n)=>n==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function Nm(e,t=166){let n;function r(...o){const s=()=>{e.apply(this,o)};clearTimeout(n),n=setTimeout(s,t)}return r.clear=()=>{clearTimeout(n)},r}function wd(e,t){var n,r,o;return k.isValidElement(e)&&t.indexOf(e.type.muiName??((o=(r=(n=e.type)==null?void 0:n._payload)==null?void 0:r.value)==null?void 0:o.muiName))!==-1}function Sn(e){return e&&e.ownerDocument||document}function _o(e){return Sn(e).defaultView||window}function Rv(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let bS=0;function mI(e){const[t,n]=k.useState(e),r=e||t;return k.useEffect(()=>{t==null&&(bS+=1,n(`mui-${bS}`))},[t]),r}const gI={...yh},wS=gI.useId;function Mm(e){if(wS!==void 0){const t=wS();return e??t}return mI(e)}function Jh({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=k.useRef(e!==void 0),[s,a]=k.useState(t),i=o?e:s,l=k.useCallback(d=>{o||a(d)},[]);return[i,l]}function tr(e){const t=k.useRef(e);return xr(()=>{t.current=e}),k.useRef((...n)=>(0,t.current)(...n)).current}function Wt(...e){return k.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{Rv(n,t)})},e)}const SS={};function cO(e,t){const n=k.useRef(SS);return n.current===SS&&(n.current=e(t)),n}const _I=[];function vI(e){k.useEffect(e,_I)}class jm{constructor(){L(this,"currentId",null);L(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});L(this,"disposeEffect",()=>this.clear)}static create(){return new jm}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function La(){const e=cO(jm.create).current;return vI(e.disposeEffect),e}function Xh(e){try{return e.matches(":focus-visible")}catch{}return!1}function dO(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}const uO=e=>{const t=k.useRef({});return k.useEffect(()=>{t.current=e}),t.current};function de(e,t,n=void 0){const r={};for(const o in e){const s=e[o];let a="",i=!0;for(let l=0;lr.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function xS(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function pO(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:s}=e;if(!t){const f=J(n==null?void 0:n.className,s,o==null?void 0:o.className,r==null?void 0:r.className),g={...n==null?void 0:n.style,...o==null?void 0:o.style,...r==null?void 0:r.style},_={...n,...o,...r};return f.length>0&&(_.className=f),Object.keys(g).length>0&&(_.style=g),{props:_,internalRef:void 0}}const a=Yh({...o,...r}),i=xS(r),l=xS(o),d=t(a),u=J(d==null?void 0:d.className,n==null?void 0:n.className,s,o==null?void 0:o.className,r==null?void 0:r.className),c={...d==null?void 0:d.style,...n==null?void 0:n.style,...o==null?void 0:o.style,...r==null?void 0:r.style},h={...d,...n,...l,...i};return u.length>0&&(h.className=u),Object.keys(c).length>0&&(h.style=c),{props:h,internalRef:d.ref}}function hO(e,t,n){return typeof e=="function"?e(t,n):e}function vo(e){var c;const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:o=!1,...s}=e,a=o?{}:hO(n,r),{props:i,internalRef:l}=pO({...s,externalSlotProps:a}),d=Wt(l,a==null?void 0:a.ref,(c=e.additionalProps)==null?void 0:c.ref);return hl(t,{...i,ref:d},r)}function ci(e){var t;return parseInt(k.version,10)>=19?((t=e==null?void 0:e.props)==null?void 0:t.ref)||null:(e==null?void 0:e.ref)||null}const fO=k.createContext(null);function ub(){return k.useContext(fO)}const bI=typeof Symbol=="function"&&Symbol.for,wI=bI?Symbol.for("mui.nested"):"__THEME_NESTED__";function SI(e,t){return typeof t=="function"?t(e):{...e,...t}}function xI(e){const{children:t,theme:n}=e,r=ub(),o=k.useMemo(()=>{const s=r===null?{...n}:SI(r,n);return s!=null&&(s[wI]=r!==null),s},[n,r]);return m.jsx(fO.Provider,{value:o,children:t})}const mO=k.createContext();function kI({value:e,...t}){return m.jsx(mO.Provider,{value:e??!0,...t})}const cc=()=>k.useContext(mO)??!1,gO=k.createContext(void 0);function $I({value:e,children:t}){return m.jsx(gO.Provider,{value:e,children:t})}function CI(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const o=t.components[n];return o.defaultProps?Zd(o.defaultProps,r):!o.styleOverrides&&!o.variants?Zd(o,r):r}function EI({props:e,name:t}){const n=k.useContext(gO);return CI({props:e,name:t,theme:{components:n}})}const kS={};function $S(e,t,n,r=!1){return k.useMemo(()=>{const o=e&&t[e]||t;if(typeof n=="function"){const s=n(o),a=e?{...t,[e]:s}:s;return r?()=>a:a}return e?{...t,[e]:n}:{...t,...n}},[e,t,n,r])}function _O(e){const{children:t,theme:n,themeId:r}=e,o=ab(kS),s=ub()||kS,a=$S(r,o,n),i=$S(r,s,n,!0),l=a.direction==="rtl";return m.jsx(xI,{theme:i,children:m.jsx(pm.Provider,{value:a,children:m.jsx(kI,{value:l,children:m.jsx($I,{value:a==null?void 0:a.components,children:t})})})})}const CS={theme:void 0};function TI(e){let t,n;return function(o){let s=t;return(s===void 0||o.theme!==n)&&(CS.theme=o.theme,s=nO(e(CS)),t=s,n=o.theme),s}}const pb="mode",hb="color-scheme",OI="data-color-scheme";function DI(e){const{defaultMode:t="system",defaultLightColorScheme:n="light",defaultDarkColorScheme:r="dark",modeStorageKey:o=pb,colorSchemeStorageKey:s=hb,attribute:a=OI,colorSchemeNode:i="document.documentElement",nonce:l}=e||{};let d="",u=a;if(a==="class"&&(u=".%s"),a==="data"&&(u="[data-%s]"),u.startsWith(".")){const h=u.substring(1);d+=`${i}.classList.remove('${h}'.replace('%s', light), '${h}'.replace('%s', dark)); + ${i}.classList.add('${h}'.replace('%s', colorScheme));`}const c=u.match(/\[([^\]]+)\]/);if(c){const[h,f]=c[1].split("=");f||(d+=`${i}.removeAttribute('${h}'.replace('%s', light)); + ${i}.removeAttribute('${h}'.replace('%s', dark));`),d+=` + ${i}.setAttribute('${h}'.replace('%s', colorScheme), ${f?`${f}.replace('%s', colorScheme)`:'""'});`}else d+=`${i}.setAttribute('${u}', colorScheme);`;return m.jsx("script",{suppressHydrationWarning:!0,nonce:typeof window>"u"?l:"",dangerouslySetInnerHTML:{__html:`(function() { +try { + let colorScheme = ''; + const mode = localStorage.getItem('${o}') || '${t}'; + const dark = localStorage.getItem('${s}-dark') || '${r}'; + const light = localStorage.getItem('${s}-light') || '${n}'; + if (mode === 'system') { + // handle system mode + const mql = window.matchMedia('(prefers-color-scheme: dark)'); + if (mql.matches) { + colorScheme = dark + } else { + colorScheme = light + } + } + if (mode === 'light') { + colorScheme = light; + } + if (mode === 'dark') { + colorScheme = dark; + } + if (colorScheme) { + ${d} + } +} catch(e){}})();`}},"mui-color-scheme-init")}function ES(e){if(typeof window<"u"&&typeof window.matchMedia=="function"&&e==="system")return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function vO(e,t){if(e.mode==="light"||e.mode==="system"&&e.systemMode==="light")return t("light");if(e.mode==="dark"||e.mode==="system"&&e.systemMode==="dark")return t("dark")}function AI(e){return vO(e,t=>{if(t==="light")return e.lightColorScheme;if(t==="dark")return e.darkColorScheme})}function Gg(e,t){if(typeof window>"u")return;let n;try{n=localStorage.getItem(e)||void 0,n||localStorage.setItem(e,t)}catch{}return n||t}function NI(e){const{defaultMode:t="light",defaultLightColorScheme:n,defaultDarkColorScheme:r,supportedColorSchemes:o=[],modeStorageKey:s=pb,colorSchemeStorageKey:a=hb,storageWindow:i=typeof window>"u"?void 0:window}=e,l=o.join(","),d=o.length>1,[u,c]=k.useState(()=>{const y=Gg(s,t),S=Gg(`${a}-light`,n),$=Gg(`${a}-dark`,r);return{mode:y,systemMode:ES(y),lightColorScheme:S,darkColorScheme:$}}),[,h]=k.useState(!1),f=k.useRef(!1);k.useEffect(()=>{d&&h(!0),f.current=!0},[d]);const g=AI(u),_=k.useCallback(y=>{c(S=>{if(y===S.mode)return S;const $=y??t;try{localStorage.setItem(s,$)}catch{}return{...S,mode:$,systemMode:ES($)}})},[s,t]),w=k.useCallback(y=>{y?typeof y=="string"?y&&!l.includes(y)?console.error(`\`${y}\` does not exist in \`theme.colorSchemes\`.`):c(S=>{const $={...S};return vO(S,C=>{try{localStorage.setItem(`${a}-${C}`,y)}catch{}C==="light"&&($.lightColorScheme=y),C==="dark"&&($.darkColorScheme=y)}),$}):c(S=>{const $={...S},C=y.light===null?n:y.light,T=y.dark===null?r:y.dark;if(C)if(!l.includes(C))console.error(`\`${C}\` does not exist in \`theme.colorSchemes\`.`);else{$.lightColorScheme=C;try{localStorage.setItem(`${a}-light`,C)}catch{}}if(T)if(!l.includes(T))console.error(`\`${T}\` does not exist in \`theme.colorSchemes\`.`);else{$.darkColorScheme=T;try{localStorage.setItem(`${a}-dark`,T)}catch{}}return $}):c(S=>{try{localStorage.setItem(`${a}-light`,n),localStorage.setItem(`${a}-dark`,r)}catch{}return{...S,lightColorScheme:n,darkColorScheme:r}})},[l,a,n,r]),v=k.useCallback(y=>{u.mode==="system"&&c(S=>{const $=y!=null&&y.matches?"dark":"light";return S.systemMode===$?S:{...S,systemMode:$}})},[u.mode]),b=k.useRef(v);return b.current=v,k.useEffect(()=>{if(typeof window.matchMedia!="function"||!d)return;const y=(...$)=>b.current(...$),S=window.matchMedia("(prefers-color-scheme: dark)");return S.addListener(y),y(S),()=>{S.removeListener(y)}},[d]),k.useEffect(()=>{if(i&&d){const y=S=>{const $=S.newValue;typeof S.key=="string"&&S.key.startsWith(a)&&(!$||l.match($))&&(S.key.endsWith("light")&&w({light:$}),S.key.endsWith("dark")&&w({dark:$})),S.key===s&&(!$||["light","dark","system"].includes($))&&_($||t)};return i.addEventListener("storage",y),()=>{i.removeEventListener("storage",y)}}},[w,_,s,a,l,t,i,d]),{...u,mode:f.current||!d?u.mode:void 0,systemMode:f.current||!d?u.systemMode:void 0,colorScheme:f.current||!d?g:void 0,setMode:_,setColorScheme:w}}const MI="*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function jI(e){const{themeId:t,theme:n={},modeStorageKey:r=pb,colorSchemeStorageKey:o=hb,disableTransitionOnChange:s=!1,defaultColorScheme:a,resolveTheme:i}=e,l={allColorSchemes:[],colorScheme:void 0,darkColorScheme:void 0,lightColorScheme:void 0,mode:void 0,setColorScheme:()=>{},setMode:()=>{},systemMode:void 0},d=k.createContext(void 0),u=()=>k.useContext(d)||l;function c(_){var Ht,pe,K,he,He;const{children:w,theme:v,modeStorageKey:b=r,colorSchemeStorageKey:y=o,disableTransitionOnChange:S=s,storageWindow:$=typeof window>"u"?void 0:window,documentNode:C=typeof document>"u"?void 0:document,colorSchemeNode:T=typeof document>"u"?void 0:document.documentElement,disableNestedContext:O=!1,disableStyleSheetGeneration:D=!1,defaultMode:x="system"}=_,A=k.useRef(!1),I=ub(),z=k.useContext(d),N=!!z&&!O,M=k.useMemo(()=>v||(typeof n=="function"?n():n),[v]),B=M[t],{colorSchemes:V={},components:R={},cssVarPrefix:F,...q}=B||M,te=Object.keys(V).filter(ke=>!!V[ke]).join(","),oe=k.useMemo(()=>te.split(","),[te]),ve=typeof a=="string"?a:a.light,se=typeof a=="string"?a:a.dark,Te=V[ve]&&V[se]?x:((pe=(Ht=V[q.defaultColorScheme])==null?void 0:Ht.palette)==null?void 0:pe.mode)||((K=q.palette)==null?void 0:K.mode),{mode:xe,setMode:Be,systemMode:Ue,lightColorScheme:Ve,darkColorScheme:$e,colorScheme:Oe,setColorScheme:ye}=NI({supportedColorSchemes:oe,defaultLightColorScheme:ve,defaultDarkColorScheme:se,modeStorageKey:b,colorSchemeStorageKey:y,defaultMode:Te,storageWindow:$});let Ze=xe,be=Oe;N&&(Ze=z.mode,be=z.colorScheme);const Ie=be||q.defaultColorScheme,X=((he=q.generateThemeVars)==null?void 0:he.call(q))||q.vars,ne={...q,components:R,colorSchemes:V,cssVarPrefix:F,vars:X};if(typeof ne.generateSpacing=="function"&&(ne.spacing=ne.generateSpacing()),Ie){const ke=V[Ie];ke&&typeof ke=="object"&&Object.keys(ke).forEach(Me=>{ke[Me]&&typeof ke[Me]=="object"?ne[Me]={...ne[Me],...ke[Me]}:ne[Me]=ke[Me]})}const Ee=q.colorSchemeSelector;k.useEffect(()=>{if(be&&T&&Ee&&Ee!=="media"){const ke=Ee;let Me=Ee;if(ke==="class"&&(Me=".%s"),ke==="data"&&(Me="[data-%s]"),ke!=null&&ke.startsWith("data-")&&!ke.includes("%s")&&(Me=`[${ke}="%s"]`),Me.startsWith("."))T.classList.remove(...oe.map(lt=>Me.substring(1).replace("%s",lt))),T.classList.add(Me.substring(1).replace("%s",be));else{const lt=Me.replace("%s",be).match(/\[([^\]]+)\]/);if(lt){const[Ut,De]=lt[1].split("=");De||oe.forEach(ln=>{T.removeAttribute(Ut.replace(be,ln))}),T.setAttribute(Ut,De?De.replace(/"|'/g,""):"")}else T.setAttribute(Me,be)}}},[be,Ee,T,oe]),k.useEffect(()=>{let ke;if(S&&A.current&&C){const Me=C.createElement("style");Me.appendChild(C.createTextNode(MI)),C.head.appendChild(Me),window.getComputedStyle(C.body),ke=setTimeout(()=>{C.head.removeChild(Me)},1)}return()=>{clearTimeout(ke)}},[be,S,C]),k.useEffect(()=>(A.current=!0,()=>{A.current=!1}),[]);const Ne=k.useMemo(()=>({allColorSchemes:oe,colorScheme:be,darkColorScheme:$e,lightColorScheme:Ve,mode:Ze,setColorScheme:ye,setMode:Be,systemMode:Ue}),[oe,be,$e,Ve,Ze,ye,Be,Ue]);let qe=!0;(D||q.cssVariables===!1||N&&(I==null?void 0:I.cssVarPrefix)===F)&&(qe=!1);const Le=m.jsxs(k.Fragment,{children:[m.jsx(_O,{themeId:B?t:void 0,theme:i?i(ne):ne,children:w}),qe&&m.jsx(JT,{styles:((He=ne.generateStyleSheets)==null?void 0:He.call(ne))||[]})]});return N?Le:m.jsx(d.Provider,{value:Ne,children:Le})}const h=typeof a=="string"?a:a.light,f=typeof a=="string"?a:a.dark;return{CssVarsProvider:c,useColorScheme:u,getInitColorSchemeScript:_=>DI({colorSchemeStorageKey:o,defaultLightColorScheme:h,defaultDarkColorScheme:f,modeStorageKey:r,..._})}}function II(e=""){function t(...r){if(!r.length)return"";const o=r[0];return typeof o=="string"&&!o.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:""}${o}${t(...r.slice(1))})`:`, ${o}`}return(r,...o)=>`var(--${e?`${e}-`:""}${r}${t(...o)})`}const TS=(e,t,n,r=[])=>{let o=e;t.forEach((s,a)=>{a===t.length-1?Array.isArray(o)?o[Number(s)]=n:o&&typeof o=="object"&&(o[s]=n):o&&typeof o=="object"&&(o[s]||(o[s]=r.includes(s)?[]:{}),o=o[s])})},zI=(e,t,n)=>{function r(o,s=[],a=[]){Object.entries(o).forEach(([i,l])=>{(!n||n&&!n([...s,i]))&&l!=null&&(typeof l=="object"&&Object.keys(l).length>0?r(l,[...s,i],Array.isArray(l)?[...a,i]:a):t([...s,i],l,a))})}r(e)},RI=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(r=>e.includes(r))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function qg(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},o={},s={},a={};return zI(e,(i,l,d)=>{if((typeof l=="string"||typeof l=="number")&&(!r||!r(i,l))){const u=`--${n?`${n}-`:""}${i.join("-")}`,c=RI(i,l);Object.assign(o,{[u]:c}),TS(s,i,`var(${u})`,d),TS(a,i,`var(${u}, ${c})`,d)}},i=>i[0]==="vars"),{css:o,vars:s,varsWithDefaults:a}}function PI(e,t={}){const{getSelector:n=w,disableCssColorScheme:r,colorSchemeSelector:o}=t,{colorSchemes:s={},components:a,defaultColorScheme:i="light",...l}=e,{vars:d,css:u,varsWithDefaults:c}=qg(l,t);let h=c;const f={},{[i]:g,..._}=s;if(Object.entries(_||{}).forEach(([y,S])=>{const{vars:$,css:C,varsWithDefaults:T}=qg(S,t);h=Mn(h,T),f[y]={css:C,vars:$}}),g){const{css:y,vars:S,varsWithDefaults:$}=qg(g,t);h=Mn(h,$),f[i]={css:y,vars:S}}function w(y,S){var C,T;let $=o;if(o==="class"&&($=".%s"),o==="data"&&($="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&($=`[${o}="%s"]`),y){if($==="media")return e.defaultColorScheme===y?":root":{[`@media (prefers-color-scheme: ${((T=(C=s[y])==null?void 0:C.palette)==null?void 0:T.mode)||y})`]:{":root":S}};if($)return e.defaultColorScheme===y?`:root, ${$.replace("%s",String(y))}`:$.replace("%s",String(y))}return":root"}return{vars:h,generateThemeVars:()=>{let y={...d};return Object.entries(f).forEach(([,{vars:S}])=>{y=Mn(y,S)}),y},generateStyleSheets:()=>{var O,D;const y=[],S=e.defaultColorScheme||"light";function $(x,A){Object.keys(A).length&&y.push(typeof x=="string"?{[x]:{...A}}:x)}$(n(void 0,{...u}),u);const{[S]:C,...T}=f;if(C){const{css:x}=C,A=(D=(O=s[S])==null?void 0:O.palette)==null?void 0:D.mode,I=!r&&A?{colorScheme:A,...x}:{...x};$(n(S,{...I}),I)}return Object.entries(T).forEach(([x,{css:A}])=>{var N,M;const I=(M=(N=s[x])==null?void 0:N.palette)==null?void 0:M.mode,z=!r&&I?{colorScheme:I,...A}:{...A};$(n(x,{...z}),z)}),y}}}function LI(e){return function(n){return e==="media"?`@media (prefers-color-scheme: ${n})`:e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${n}"] &`:e==="class"?`.${n} &`:e==="data"?`[data-${n}] &`:`${e.replace("%s",n)} &`:"&"}}const FI=(e,t)=>e.filter(n=>t.includes(n)),dc=(e,t,n)=>{const r=e.keys[0];Array.isArray(t)?t.forEach((o,s)=>{n((a,i)=>{s<=e.keys.length-1&&(s===0?Object.assign(a,i):a[e.up(e.keys[s])]=i)},o)}):t&&typeof t=="object"?(Object.keys(t).length>e.keys.length?e.keys:FI(e.keys,Object.keys(t))).forEach(s=>{if(e.keys.includes(s)){const a=t[s];a!==void 0&&n((i,l)=>{r===s?Object.assign(i,l):i[e.up(s)]=l},a)}}):(typeof t=="number"||typeof t=="string")&&n((o,s)=>{Object.assign(o,s)},t)};function Kh(e){return`--Grid-${e}Spacing`}function Im(e){return`--Grid-parent-${e}Spacing`}const OS="--Grid-columns",Cl="--Grid-parent-columns",BI=({theme:e,ownerState:t})=>{const n={};return dc(e.breakpoints,t.size,(r,o)=>{let s={};o==="grow"&&(s={flexBasis:0,flexGrow:1,maxWidth:"100%"}),o==="auto"&&(s={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"}),typeof o=="number"&&(s={flexGrow:0,flexBasis:"auto",width:`calc(100% * ${o} / var(${Cl}) - (var(${Cl}) - ${o}) * (var(${Im("column")}) / var(${Cl})))`}),r(n,s)}),n},WI=({theme:e,ownerState:t})=>{const n={};return dc(e.breakpoints,t.offset,(r,o)=>{let s={};o==="auto"&&(s={marginLeft:"auto"}),typeof o=="number"&&(s={marginLeft:o===0?"0px":`calc(100% * ${o} / var(${Cl}) + var(${Im("column")}) * ${o} / var(${Cl}))`}),r(n,s)}),n},HI=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={[OS]:12};return dc(e.breakpoints,t.columns,(r,o)=>{const s=o??12;r(n,{[OS]:s,"> *":{[Cl]:s}})}),n},UI=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return dc(e.breakpoints,t.rowSpacing,(r,o)=>{var a;const s=typeof o=="string"?o:(a=e.spacing)==null?void 0:a.call(e,o);r(n,{[Kh("row")]:s,"> *":{[Im("row")]:s}})}),n},VI=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return dc(e.breakpoints,t.columnSpacing,(r,o)=>{var a;const s=typeof o=="string"?o:(a=e.spacing)==null?void 0:a.call(e,o);r(n,{[Kh("column")]:s,"> *":{[Im("column")]:s}})}),n},GI=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return dc(e.breakpoints,t.direction,(r,o)=>{r(n,{flexDirection:o})}),n},qI=({ownerState:e})=>({minWidth:0,boxSizing:"border-box",...e.container&&{display:"flex",flexWrap:"wrap",...e.wrap&&e.wrap!=="wrap"&&{flexWrap:e.wrap},gap:`var(${Kh("row")}) var(${Kh("column")})`}}),JI=e=>{const t=[];return Object.entries(e).forEach(([n,r])=>{r!==!1&&r!==void 0&&t.push(`grid-${n}-${String(r)}`)}),t},XI=(e,t="xs")=>{function n(r){return r===void 0?!1:typeof r=="string"&&!Number.isNaN(Number(r))||typeof r=="number"&&r>0}if(n(e))return[`spacing-${t}-${String(e)}`];if(typeof e=="object"&&!Array.isArray(e)){const r=[];return Object.entries(e).forEach(([o,s])=>{n(s)&&r.push(`spacing-${o}-${String(s)}`)}),r}return[]},YI=e=>e===void 0?[]:typeof e=="object"?Object.entries(e).map(([t,n])=>`direction-${t}-${n}`):[`direction-xs-${String(e)}`],KI=bm(),ZI=aI("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>t.root});function QI(e){return iI({props:e,name:"MuiGrid",defaultTheme:KI})}function e6(e={}){const{createStyledComponent:t=ZI,useThemeProps:n=QI,componentName:r="MuiGrid"}=e,o=(l,d)=>{const{container:u,direction:c,spacing:h,wrap:f,size:g}=l,_={root:["root",u&&"container",f!=="wrap"&&`wrap-xs-${String(f)}`,...YI(c),...JI(g),...u?XI(h,d.breakpoints.keys[0]):[]]};return de(_,w=>le(r,w),{})};function s(l,d,u=()=>!0){const c={};return l===null||(Array.isArray(l)?l.forEach((h,f)=>{h!==null&&u(h)&&d.keys[f]&&(c[d.keys[f]]=h)}):typeof l=="object"?Object.keys(l).forEach(h=>{const f=l[h];f!=null&&u(f)&&(c[h]=f)}):c[d.keys[0]]=l),c}const a=t(HI,VI,UI,BI,GI,qI,WI),i=k.forwardRef(function(d,u){const c=xu(),h=n(d),f=ib(h),{className:g,children:_,columns:w=12,container:v=!1,component:b="div",direction:y="row",wrap:S="wrap",size:$={},offset:C={},spacing:T=0,rowSpacing:O=T,columnSpacing:D=T,unstable_level:x=0,...A}=f,I=s($,c.breakpoints,q=>q!==!1),z=s(C,c.breakpoints),N=d.columns??(x?void 0:w),M=d.spacing??(x?void 0:T),B=d.rowSpacing??d.spacing??(x?void 0:O),V=d.columnSpacing??d.spacing??(x?void 0:D),R={...f,level:x,columns:N,container:v,direction:y,wrap:S,spacing:M,rowSpacing:B,columnSpacing:V,size:I,offset:z},F=o(R,c);return m.jsx(a,{ref:u,as:b,ownerState:R,className:J(F.root,g),...A,children:k.Children.map(_,q=>{var te;return k.isValidElement(q)&&wd(q,["Grid"])&&v&&q.props.container?k.cloneElement(q,{unstable_level:((te=q.props)==null?void 0:te.unstable_level)??x+1}):q})})});return i.muiName="Grid",i}const Qd={black:"#000",white:"#fff"},Pv={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},Si={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},xi={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},yn={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},ki={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},$i={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},Ci={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};function yO(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Qd.white,default:Qd.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const t6=yO();function bO(){return{text:{primary:Qd.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Qd.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const DS=bO();function AS(e,t,n,r){const o=r.light||r,s=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=lc(e.main,o):t==="dark"&&(e.dark=ic(e.main,s)))}function n6(e="light"){return e==="dark"?{main:ki[200],light:ki[50],dark:ki[400]}:{main:ki[700],light:ki[400],dark:ki[800]}}function r6(e="light"){return e==="dark"?{main:Si[200],light:Si[50],dark:Si[400]}:{main:Si[500],light:Si[300],dark:Si[700]}}function o6(e="light"){return e==="dark"?{main:xi[500],light:xi[300],dark:xi[700]}:{main:xi[700],light:xi[400],dark:xi[800]}}function s6(e="light"){return e==="dark"?{main:$i[400],light:$i[300],dark:$i[700]}:{main:$i[700],light:$i[500],dark:$i[900]}}function a6(e="light"){return e==="dark"?{main:Ci[400],light:Ci[300],dark:Ci[700]}:{main:Ci[800],light:Ci[500],dark:Ci[900]}}function i6(e="light"){return e==="dark"?{main:yn[400],light:yn[300],dark:yn[700]}:{main:"#ed6c02",light:yn[500],dark:yn[900]}}function fb(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,...o}=e,s=e.primary||n6(t),a=e.secondary||r6(t),i=e.error||o6(t),l=e.info||s6(t),d=e.success||a6(t),u=e.warning||i6(t);function c(_){return fI(_,DS.text.primary)>=n?DS.text.primary:t6.text.primary}const h=({color:_,name:w,mainShade:v=500,lightShade:b=300,darkShade:y=700})=>{if(_={..._},!_.main&&_[v]&&(_.main=_[v]),!_.hasOwnProperty("main"))throw new Error(_s(11,w?` (${w})`:"",v));if(typeof _.main!="string")throw new Error(_s(12,w?` (${w})`:"",JSON.stringify(_.main)));return AS(_,"light",b,r),AS(_,"dark",y,r),_.contrastText||(_.contrastText=c(_.main)),_};let f;return t==="light"?f=yO():t==="dark"&&(f=bO()),Mn({common:{...Qd},mode:t,primary:h({color:s,name:"primary"}),secondary:h({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:h({color:i,name:"error"}),warning:h({color:u,name:"warning"}),info:h({color:l,name:"info"}),success:h({color:d,name:"success"}),grey:Pv,contrastThreshold:n,getContrastText:c,augmentColor:h,tonalOffset:r,...f},o)}function l6(e){const t={};return Object.entries(e).forEach(r=>{const[o,s]=r;typeof s=="object"&&(t[o]=`${s.fontStyle?`${s.fontStyle} `:""}${s.fontVariant?`${s.fontVariant} `:""}${s.fontWeight?`${s.fontWeight} `:""}${s.fontStretch?`${s.fontStretch} `:""}${s.fontSize||""}${s.lineHeight?`/${s.lineHeight} `:""}${s.fontFamily||""}`)}),t}function c6(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function d6(e){return Math.round(e*1e5)/1e5}const NS={textTransform:"uppercase"},MS='"Roboto", "Helvetica", "Arial", sans-serif';function wO(e,t){const{fontFamily:n=MS,fontSize:r=14,fontWeightLight:o=300,fontWeightRegular:s=400,fontWeightMedium:a=500,fontWeightBold:i=700,htmlFontSize:l=16,allVariants:d,pxToRem:u,...c}=typeof t=="function"?t(e):t,h=r/14,f=u||(w=>`${w/l*h}rem`),g=(w,v,b,y,S)=>({fontFamily:n,fontWeight:w,fontSize:f(v),lineHeight:b,...n===MS?{letterSpacing:`${d6(y/v)}em`}:{},...S,...d}),_={h1:g(o,96,1.167,-1.5),h2:g(o,60,1.2,-.5),h3:g(s,48,1.167,0),h4:g(s,34,1.235,.25),h5:g(s,24,1.334,0),h6:g(a,20,1.6,.15),subtitle1:g(s,16,1.75,.15),subtitle2:g(a,14,1.57,.1),body1:g(s,16,1.5,.15),body2:g(s,14,1.43,.15),button:g(a,14,1.75,.4,NS),caption:g(s,12,1.66,.4),overline:g(s,12,2.66,1,NS),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Mn({htmlFontSize:l,pxToRem:f,fontFamily:n,fontSize:r,fontWeightLight:o,fontWeightRegular:s,fontWeightMedium:a,fontWeightBold:i,..._},c,{clone:!1})}const u6=.2,p6=.14,h6=.12;function Rt(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${u6})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${p6})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${h6})`].join(",")}const f6=["none",Rt(0,2,1,-1,0,1,1,0,0,1,3,0),Rt(0,3,1,-2,0,2,2,0,0,1,5,0),Rt(0,3,3,-2,0,3,4,0,0,1,8,0),Rt(0,2,4,-1,0,4,5,0,0,1,10,0),Rt(0,3,5,-1,0,5,8,0,0,1,14,0),Rt(0,3,5,-1,0,6,10,0,0,1,18,0),Rt(0,4,5,-2,0,7,10,1,0,2,16,1),Rt(0,5,5,-3,0,8,10,1,0,3,14,2),Rt(0,5,6,-3,0,9,12,1,0,3,16,2),Rt(0,6,6,-3,0,10,14,1,0,4,18,3),Rt(0,6,7,-4,0,11,15,1,0,4,20,3),Rt(0,7,8,-4,0,12,17,2,0,5,22,4),Rt(0,7,8,-4,0,13,19,2,0,5,24,4),Rt(0,7,9,-4,0,14,21,2,0,5,26,4),Rt(0,8,9,-5,0,15,22,2,0,6,28,5),Rt(0,8,10,-5,0,16,24,2,0,6,30,5),Rt(0,8,11,-5,0,17,26,2,0,6,32,5),Rt(0,9,11,-5,0,18,28,2,0,7,34,6),Rt(0,9,12,-6,0,19,29,2,0,7,36,6),Rt(0,10,13,-6,0,20,31,3,0,8,38,7),Rt(0,10,13,-6,0,21,33,3,0,8,40,7),Rt(0,10,14,-6,0,22,35,3,0,8,42,7),Rt(0,11,14,-7,0,23,36,3,0,9,44,8),Rt(0,11,15,-7,0,24,38,3,0,9,46,8)],m6={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},g6={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function jS(e){return`${Math.round(e)}ms`}function _6(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function v6(e){const t={...m6,...e.easing},n={...g6,...e.duration};return{getAutoHeightDuration:_6,create:(o=["all"],s={})=>{const{duration:a=n.standard,easing:i=t.easeInOut,delay:l=0,...d}=s;return(Array.isArray(o)?o:[o]).map(u=>`${u} ${typeof a=="string"?a:jS(a)} ${i} ${typeof l=="string"?l:jS(l)}`).join(",")},...e,easing:t,duration:n}}const y6={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function b6(e){return zo(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function SO(e={}){const t={...e};function n(r){const o=Object.entries(r);for(let s=0;sMn(f,g),h),h.unstable_sxConfig={...Su,...d==null?void 0:d.unstable_sxConfig},h.unstable_sx=function(g){return ia({sx:g,theme:this})},h.toRuntimeSource=SO,h}function Fv(e){let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}const w6=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=Fv(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function xO(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function kO(e){return e==="dark"?w6:[]}function S6(e){const{palette:t={mode:"light"},opacity:n,overlays:r,...o}=e,s=fb(t);return{palette:s,opacity:{...xO(s.mode),...n},overlays:r||kO(s.mode),...o}}function x6(e){var t;return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!((t=e[1])!=null&&t.match(/(mode|contrastThreshold|tonalOffset)/))}const k6=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],$6=e=>(t,n)=>{const r=e.rootSelector||":root",o=e.colorSchemeSelector;let s=o;if(o==="class"&&(s=".%s"),o==="data"&&(s="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(s=`[${o}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const a={};return k6(e.cssVarPrefix).forEach(i=>{a[i]=n[i],delete n[i]}),s==="media"?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:a}}:s?{[s.replace("%s",t)]:a,[`${r}, ${s.replace("%s",t)}`]:n}:{[r]:{...n,...a}}}if(s&&s!=="media")return`${r}, ${s.replace("%s",String(t))}`}else if(t){if(s==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[r]:n}};if(s)return s.replace("%s",String(t))}return r};function C6(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function H(e,t,n){!e[t]&&n&&(e[t]=n)}function td(e){return!e||!e.startsWith("hsl")?e:lO(e)}function Zo(e,t){`${t}Channel`in e||(e[`${t}Channel`]=ed(td(e[t]),`MUI: Can't create \`palette.${t}Channel\` because \`palette.${t}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color(). +To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function E6(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const So=e=>{try{return e()}catch{}},T6=(e="mui")=>II(e);function Jg(e,t,n,r){if(!t)return;t=t===!0?{}:t;const o=r==="dark"?"dark":"light";if(!n){e[r]=S6({...t,palette:{mode:o,...t==null?void 0:t.palette}});return}const{palette:s,...a}=Lv({...n,palette:{mode:o,...t==null?void 0:t.palette}});return e[r]={...t,palette:s,opacity:{...xO(o),...t==null?void 0:t.opacity},overlays:(t==null?void 0:t.overlays)||kO(o)},a}function O6(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:o=!1,cssVarPrefix:s="mui",shouldSkipGeneratingVar:a=x6,colorSchemeSelector:i=n.light&&n.dark?"media":void 0,rootSelector:l=":root",...d}=e,u=Object.keys(n)[0],c=r||(n.light&&u!=="light"?"light":u),h=T6(s),{[c]:f,light:g,dark:_,...w}=n,v={...w};let b=f;if((c==="dark"&&!("dark"in n)||c==="light"&&!("light"in n))&&(b=!0),!b)throw new Error(_s(21,c));const y=Jg(v,b,d,c);g&&!v.light&&Jg(v,g,void 0,"light"),_&&!v.dark&&Jg(v,_,void 0,"dark");let S={defaultColorScheme:c,...y,cssVarPrefix:s,colorSchemeSelector:i,rootSelector:l,getCssVar:h,colorSchemes:v,font:{...l6(y.typography),...y.font},spacing:E6(d.spacing)};Object.keys(S.colorSchemes).forEach(D=>{const x=S.colorSchemes[D].palette,A=I=>{const z=I.split("-"),N=z[1],M=z[2];return h(I,x[N][M])};if(x.mode==="light"&&(H(x.common,"background","#fff"),H(x.common,"onBackground","#000")),x.mode==="dark"&&(H(x.common,"background","#000"),H(x.common,"onBackground","#fff")),C6(x,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),x.mode==="light"){H(x.Alert,"errorColor",vt(x.error.light,.6)),H(x.Alert,"infoColor",vt(x.info.light,.6)),H(x.Alert,"successColor",vt(x.success.light,.6)),H(x.Alert,"warningColor",vt(x.warning.light,.6)),H(x.Alert,"errorFilledBg",A("palette-error-main")),H(x.Alert,"infoFilledBg",A("palette-info-main")),H(x.Alert,"successFilledBg",A("palette-success-main")),H(x.Alert,"warningFilledBg",A("palette-warning-main")),H(x.Alert,"errorFilledColor",So(()=>x.getContrastText(x.error.main))),H(x.Alert,"infoFilledColor",So(()=>x.getContrastText(x.info.main))),H(x.Alert,"successFilledColor",So(()=>x.getContrastText(x.success.main))),H(x.Alert,"warningFilledColor",So(()=>x.getContrastText(x.warning.main))),H(x.Alert,"errorStandardBg",yt(x.error.light,.9)),H(x.Alert,"infoStandardBg",yt(x.info.light,.9)),H(x.Alert,"successStandardBg",yt(x.success.light,.9)),H(x.Alert,"warningStandardBg",yt(x.warning.light,.9)),H(x.Alert,"errorIconColor",A("palette-error-main")),H(x.Alert,"infoIconColor",A("palette-info-main")),H(x.Alert,"successIconColor",A("palette-success-main")),H(x.Alert,"warningIconColor",A("palette-warning-main")),H(x.AppBar,"defaultBg",A("palette-grey-100")),H(x.Avatar,"defaultBg",A("palette-grey-400")),H(x.Button,"inheritContainedBg",A("palette-grey-300")),H(x.Button,"inheritContainedHoverBg",A("palette-grey-A100")),H(x.Chip,"defaultBorder",A("palette-grey-400")),H(x.Chip,"defaultAvatarColor",A("palette-grey-700")),H(x.Chip,"defaultIconColor",A("palette-grey-700")),H(x.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),H(x.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),H(x.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),H(x.LinearProgress,"primaryBg",yt(x.primary.main,.62)),H(x.LinearProgress,"secondaryBg",yt(x.secondary.main,.62)),H(x.LinearProgress,"errorBg",yt(x.error.main,.62)),H(x.LinearProgress,"infoBg",yt(x.info.main,.62)),H(x.LinearProgress,"successBg",yt(x.success.main,.62)),H(x.LinearProgress,"warningBg",yt(x.warning.main,.62)),H(x.Skeleton,"bg",`rgba(${A("palette-text-primaryChannel")} / 0.11)`),H(x.Slider,"primaryTrack",yt(x.primary.main,.62)),H(x.Slider,"secondaryTrack",yt(x.secondary.main,.62)),H(x.Slider,"errorTrack",yt(x.error.main,.62)),H(x.Slider,"infoTrack",yt(x.info.main,.62)),H(x.Slider,"successTrack",yt(x.success.main,.62)),H(x.Slider,"warningTrack",yt(x.warning.main,.62));const I=up(x.background.default,.8);H(x.SnackbarContent,"bg",I),H(x.SnackbarContent,"color",So(()=>x.getContrastText(I))),H(x.SpeedDialAction,"fabHoverBg",up(x.background.paper,.15)),H(x.StepConnector,"border",A("palette-grey-400")),H(x.StepContent,"border",A("palette-grey-400")),H(x.Switch,"defaultColor",A("palette-common-white")),H(x.Switch,"defaultDisabledColor",A("palette-grey-100")),H(x.Switch,"primaryDisabledColor",yt(x.primary.main,.62)),H(x.Switch,"secondaryDisabledColor",yt(x.secondary.main,.62)),H(x.Switch,"errorDisabledColor",yt(x.error.main,.62)),H(x.Switch,"infoDisabledColor",yt(x.info.main,.62)),H(x.Switch,"successDisabledColor",yt(x.success.main,.62)),H(x.Switch,"warningDisabledColor",yt(x.warning.main,.62)),H(x.TableCell,"border",yt(dp(x.divider,1),.88)),H(x.Tooltip,"bg",dp(x.grey[700],.92))}if(x.mode==="dark"){H(x.Alert,"errorColor",yt(x.error.light,.6)),H(x.Alert,"infoColor",yt(x.info.light,.6)),H(x.Alert,"successColor",yt(x.success.light,.6)),H(x.Alert,"warningColor",yt(x.warning.light,.6)),H(x.Alert,"errorFilledBg",A("palette-error-dark")),H(x.Alert,"infoFilledBg",A("palette-info-dark")),H(x.Alert,"successFilledBg",A("palette-success-dark")),H(x.Alert,"warningFilledBg",A("palette-warning-dark")),H(x.Alert,"errorFilledColor",So(()=>x.getContrastText(x.error.dark))),H(x.Alert,"infoFilledColor",So(()=>x.getContrastText(x.info.dark))),H(x.Alert,"successFilledColor",So(()=>x.getContrastText(x.success.dark))),H(x.Alert,"warningFilledColor",So(()=>x.getContrastText(x.warning.dark))),H(x.Alert,"errorStandardBg",vt(x.error.light,.9)),H(x.Alert,"infoStandardBg",vt(x.info.light,.9)),H(x.Alert,"successStandardBg",vt(x.success.light,.9)),H(x.Alert,"warningStandardBg",vt(x.warning.light,.9)),H(x.Alert,"errorIconColor",A("palette-error-main")),H(x.Alert,"infoIconColor",A("palette-info-main")),H(x.Alert,"successIconColor",A("palette-success-main")),H(x.Alert,"warningIconColor",A("palette-warning-main")),H(x.AppBar,"defaultBg",A("palette-grey-900")),H(x.AppBar,"darkBg",A("palette-background-paper")),H(x.AppBar,"darkColor",A("palette-text-primary")),H(x.Avatar,"defaultBg",A("palette-grey-600")),H(x.Button,"inheritContainedBg",A("palette-grey-800")),H(x.Button,"inheritContainedHoverBg",A("palette-grey-700")),H(x.Chip,"defaultBorder",A("palette-grey-700")),H(x.Chip,"defaultAvatarColor",A("palette-grey-300")),H(x.Chip,"defaultIconColor",A("palette-grey-300")),H(x.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),H(x.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),H(x.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),H(x.LinearProgress,"primaryBg",vt(x.primary.main,.5)),H(x.LinearProgress,"secondaryBg",vt(x.secondary.main,.5)),H(x.LinearProgress,"errorBg",vt(x.error.main,.5)),H(x.LinearProgress,"infoBg",vt(x.info.main,.5)),H(x.LinearProgress,"successBg",vt(x.success.main,.5)),H(x.LinearProgress,"warningBg",vt(x.warning.main,.5)),H(x.Skeleton,"bg",`rgba(${A("palette-text-primaryChannel")} / 0.13)`),H(x.Slider,"primaryTrack",vt(x.primary.main,.5)),H(x.Slider,"secondaryTrack",vt(x.secondary.main,.5)),H(x.Slider,"errorTrack",vt(x.error.main,.5)),H(x.Slider,"infoTrack",vt(x.info.main,.5)),H(x.Slider,"successTrack",vt(x.success.main,.5)),H(x.Slider,"warningTrack",vt(x.warning.main,.5));const I=up(x.background.default,.98);H(x.SnackbarContent,"bg",I),H(x.SnackbarContent,"color",So(()=>x.getContrastText(I))),H(x.SpeedDialAction,"fabHoverBg",up(x.background.paper,.15)),H(x.StepConnector,"border",A("palette-grey-600")),H(x.StepContent,"border",A("palette-grey-600")),H(x.Switch,"defaultColor",A("palette-grey-300")),H(x.Switch,"defaultDisabledColor",A("palette-grey-600")),H(x.Switch,"primaryDisabledColor",vt(x.primary.main,.55)),H(x.Switch,"secondaryDisabledColor",vt(x.secondary.main,.55)),H(x.Switch,"errorDisabledColor",vt(x.error.main,.55)),H(x.Switch,"infoDisabledColor",vt(x.info.main,.55)),H(x.Switch,"successDisabledColor",vt(x.success.main,.55)),H(x.Switch,"warningDisabledColor",vt(x.warning.main,.55)),H(x.TableCell,"border",vt(dp(x.divider,1),.68)),H(x.Tooltip,"bg",dp(x.grey[700],.92))}Zo(x.background,"default"),Zo(x.background,"paper"),Zo(x.common,"background"),Zo(x.common,"onBackground"),Zo(x,"divider"),Object.keys(x).forEach(I=>{const z=x[I];z&&typeof z=="object"&&(z.main&&H(x[I],"mainChannel",ed(td(z.main))),z.light&&H(x[I],"lightChannel",ed(td(z.light))),z.dark&&H(x[I],"darkChannel",ed(td(z.dark))),z.contrastText&&H(x[I],"contrastTextChannel",ed(td(z.contrastText))),I==="text"&&(Zo(x[I],"primary"),Zo(x[I],"secondary")),I==="action"&&(z.active&&Zo(x[I],"active"),z.selected&&Zo(x[I],"selected")))})}),S=t.reduce((D,x)=>Mn(D,x),S);const $={prefix:s,disableCssColorScheme:o,shouldSkipGeneratingVar:a,getSelector:$6(S)},{vars:C,generateThemeVars:T,generateStyleSheets:O}=PI(S,$);return S.vars=C,Object.entries(S.colorSchemes[S.defaultColorScheme]).forEach(([D,x])=>{S[D]=x}),S.generateThemeVars=T,S.generateStyleSheets=O,S.generateSpacing=function(){return ZT(d.spacing,ob(this))},S.getColorSchemeSelector=LI(i),S.spacing=S.generateSpacing(),S.shouldSkipGeneratingVar=a,S.unstable_sxConfig={...Su,...d==null?void 0:d.unstable_sxConfig},S.unstable_sx=function(x){return ia({sx:x,theme:this})},S.toRuntimeSource=SO,S}function IS(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:fb({...n===!0?{}:n.palette,mode:t})})}function eu(e={},...t){const{palette:n,cssVariables:r=!1,colorSchemes:o=n?void 0:{light:!0},defaultColorScheme:s=n==null?void 0:n.mode,...a}=e,i=s||"light",l=o==null?void 0:o[i],d={...o,...n?{[i]:{...typeof l!="boolean"&&l,palette:n}}:void 0};if(r===!1){if(!("colorSchemes"in e))return Lv(e,...t);let u=n;"palette"in e||d[i]&&(d[i]!==!0?u=d[i].palette:i==="dark"&&(u={mode:"dark"}));const c=Lv({...e,palette:u},...t);return c.defaultColorScheme=i,c.colorSchemes=d,c.palette.mode==="light"&&(c.colorSchemes.light={...d.light!==!0&&d.light,palette:c.palette},IS(c,"dark",d.dark)),c.palette.mode==="dark"&&(c.colorSchemes.dark={...d.dark!==!0&&d.dark,palette:c.palette},IS(c,"light",d.light)),c}return!n&&!("light"in d)&&i==="light"&&(d.light=!0),O6({...a,colorSchemes:d,defaultColorScheme:i,...typeof r!="boolean"&&r},...t)}const mb=eu();function ga(){const e=xu(mb);return e[Fo]||e}function $O(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const pn=e=>$O(e)&&e!=="classes",G=oO({themeId:Fo,defaultTheme:mb,rootShouldForwardProp:pn});function zS({theme:e,...t}){const n=Fo in e?e[Fo]:void 0;return m.jsx(_O,{...t,themeId:n?Fo:void 0,theme:n||e})}const pp={attribute:"data-mui-color-scheme",colorSchemeStorageKey:"mui-color-scheme",defaultLightColorScheme:"light",defaultDarkColorScheme:"dark",modeStorageKey:"mui-mode"},{CssVarsProvider:D6,useColorScheme:ukt,getInitColorSchemeScript:pkt}=jI({themeId:Fo,theme:()=>eu({cssVariables:!0}),colorSchemeStorageKey:pp.colorSchemeStorageKey,modeStorageKey:pp.modeStorageKey,defaultColorScheme:{light:pp.defaultLightColorScheme,dark:pp.defaultDarkColorScheme},resolveTheme:e=>{const t={...e,typography:wO(e.palette,e.typography)};return t.unstable_sx=function(r){return ia({sx:r,theme:this})},t}}),A6=D6;function RS({theme:e,...t}){return typeof e=="function"?m.jsx(zS,{theme:e,...t}):"colorSchemes"in(Fo in e?e[Fo]:e)?m.jsx(A6,{theme:e,...t}):m.jsx(zS,{theme:e,...t})}function N6(e){return m.jsx(Gj,{...e,defaultTheme:mb,themeId:Fo})}function M6(e){return function(n){return m.jsx(N6,{styles:typeof e=="function"?r=>e({theme:r,...n}):e})}}function j6(){return ib}const me=TI;function ue(e){return EI(e)}function I6(e){return le("MuiSvgIcon",e)}ie("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const z6=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${W(t)}`,`fontSize${W(n)}`]};return de(o,I6,r)},R6=G("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${W(n.color)}`],t[`fontSize${W(n.fontSize)}`]]}})(me(({theme:e})=>{var t,n,r,o,s,a,i,l,d,u,c,h,f,g;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(o=(t=e.transitions)==null?void 0:t.create)==null?void 0:o.call(t,"fill",{duration:(r=(n=(e.vars??e).transitions)==null?void 0:n.duration)==null?void 0:r.shorter}),variants:[{props:_=>!_.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((a=(s=e.typography)==null?void 0:s.pxToRem)==null?void 0:a.call(s,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((l=(i=e.typography)==null?void 0:i.pxToRem)==null?void 0:l.call(i,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((u=(d=e.typography)==null?void 0:d.pxToRem)==null?void 0:u.call(d,35))||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,_])=>_&&_.main).map(([_])=>{var w,v;return{props:{color:_},style:{color:(v=(w=(e.vars??e).palette)==null?void 0:w[_])==null?void 0:v.main}}}),{props:{color:"action"},style:{color:(h=(c=(e.vars??e).palette)==null?void 0:c.action)==null?void 0:h.active}},{props:{color:"disabled"},style:{color:(g=(f=(e.vars??e).palette)==null?void 0:f.action)==null?void 0:g.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),Zh=k.forwardRef(function(t,n){const r=ue({props:t,name:"MuiSvgIcon"}),{children:o,className:s,color:a="inherit",component:i="svg",fontSize:l="medium",htmlColor:d,inheritViewBox:u=!1,titleAccess:c,viewBox:h="0 0 24 24",...f}=r,g=k.isValidElement(o)&&o.type==="svg",_={...r,color:a,component:i,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:u,viewBox:h,hasSvgAsChild:g},w={};u||(w.viewBox=h);const v=z6(_);return m.jsxs(R6,{as:i,className:J(v.root,s),focusable:"false",color:d,"aria-hidden":c?void 0:!0,role:c?"img":void 0,ref:n,...w,...f,...g&&o.props,ownerState:_,children:[g?o.props.children:o,c?m.jsx("title",{children:c}):null]})});Zh&&(Zh.muiName="SvgIcon");function ee(e,t){function n(r,o){return m.jsx(Zh,{"data-testid":`${t}Icon`,ref:o,...r,children:e})}return n.muiName=Zh.muiName,k.memo(k.forwardRef(n))}function CO(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}function Bv(e,t){return Bv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Bv(e,t)}function EO(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Bv(e,t)}const PS={disabled:!1},Qh=p.createContext(null);var P6=function(t){return t.scrollTop},nd="unmounted",Da="exited",Aa="entering",Ii="entered",Wv="exiting",qo=function(e){EO(t,e);function t(r,o){var s;s=e.call(this,r,o)||this;var a=o,i=a&&!a.isMounting?r.enter:r.appear,l;return s.appearStatus=null,r.in?i?(l=Da,s.appearStatus=Aa):l=Ii:r.unmountOnExit||r.mountOnEnter?l=nd:l=Da,s.state={status:l},s.nextCallback=null,s}t.getDerivedStateFromProps=function(o,s){var a=o.in;return a&&s.status===nd?{status:Da}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var s=null;if(o!==this.props){var a=this.state.status;this.props.in?a!==Aa&&a!==Ii&&(s=Aa):(a===Aa||a===Ii)&&(s=Wv)}this.updateStatus(!1,s)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,s,a,i;return s=a=i=o,o!=null&&typeof o!="number"&&(s=o.exit,a=o.enter,i=o.appear!==void 0?o.appear:a),{exit:s,enter:a,appear:i}},n.updateStatus=function(o,s){if(o===void 0&&(o=!1),s!==null)if(this.cancelNextCallback(),s===Aa){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:lp.findDOMNode(this);a&&P6(a)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Da&&this.setState({status:nd})},n.performEnter=function(o){var s=this,a=this.props.enter,i=this.context?this.context.isMounting:o,l=this.props.nodeRef?[i]:[lp.findDOMNode(this),i],d=l[0],u=l[1],c=this.getTimeouts(),h=i?c.appear:c.enter;if(!o&&!a||PS.disabled){this.safeSetState({status:Ii},function(){s.props.onEntered(d)});return}this.props.onEnter(d,u),this.safeSetState({status:Aa},function(){s.props.onEntering(d,u),s.onTransitionEnd(h,function(){s.safeSetState({status:Ii},function(){s.props.onEntered(d,u)})})})},n.performExit=function(){var o=this,s=this.props.exit,a=this.getTimeouts(),i=this.props.nodeRef?void 0:lp.findDOMNode(this);if(!s||PS.disabled){this.safeSetState({status:Da},function(){o.props.onExited(i)});return}this.props.onExit(i),this.safeSetState({status:Wv},function(){o.props.onExiting(i),o.onTransitionEnd(a.exit,function(){o.safeSetState({status:Da},function(){o.props.onExited(i)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,s){s=this.setNextCallback(s),this.setState(o,s)},n.setNextCallback=function(o){var s=this,a=!0;return this.nextCallback=function(i){a&&(a=!1,s.nextCallback=null,o(i))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(o,s){this.setNextCallback(s);var a=this.props.nodeRef?this.props.nodeRef.current:lp.findDOMNode(this),i=o==null&&!this.props.addEndListener;if(!a||i){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],d=l[0],u=l[1];this.props.addEndListener(d,u)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===nd)return null;var s=this.props,a=s.children;s.in,s.mountOnEnter,s.unmountOnExit,s.appear,s.enter,s.exit,s.timeout,s.addEndListener,s.onEnter,s.onEntering,s.onEntered,s.onExit,s.onExiting,s.onExited,s.nodeRef;var i=CO(s,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return p.createElement(Qh.Provider,{value:null},typeof a=="function"?a(o,i):p.cloneElement(p.Children.only(a),i))},t}(p.Component);qo.contextType=Qh;qo.propTypes={};function Ei(){}qo.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Ei,onEntering:Ei,onEntered:Ei,onExit:Ei,onExiting:Ei,onExited:Ei};qo.UNMOUNTED=nd;qo.EXITED=Da;qo.ENTERING=Aa;qo.ENTERED=Ii;qo.EXITING=Wv;function L6(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function gb(e,t){var n=function(s){return t&&k.isValidElement(s)?t(s):s},r=Object.create(null);return e&&k.Children.map(e,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function F6(e,t){e=e||{},t=t||{};function n(u){return u in t?t[u]:e[u]}var r=Object.create(null),o=[];for(var s in e)s in t?o.length&&(r[s]=o,o=[]):o.push(s);var a,i={};for(var l in t){if(r[l])for(a=0;ae.scrollTop;function ef(e,t){const{timeout:n,easing:r,style:o={}}=e;return{duration:o.transitionDuration??(typeof n=="number"?n:n[t.mode]||0),easing:o.transitionTimingFunction??(typeof r=="object"?r[t.mode]:r),delay:o.transitionDelay}}function V6(e){return le("MuiPaper",e)}ie("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const G6=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,s={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return de(s,V6,o)},q6=G("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(me(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),variants:[{props:({ownerState:t})=>!t.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),_a=k.forwardRef(function(t,n){var f;const r=ue({props:t,name:"MuiPaper"}),o=ga(),{className:s,component:a="div",elevation:i=1,square:l=!1,variant:d="elevation",...u}=r,c={...r,component:a,elevation:i,square:l,variant:d},h=G6(c);return m.jsx(q6,{as:a,ownerState:c,className:J(h.root,s),ref:n,...u,style:{...d==="elevation"&&{"--Paper-shadow":(o.vars||o).shadows[i],...o.vars&&{"--Paper-overlay":(f=o.vars.overlays)==null?void 0:f[i]},...!o.vars&&o.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${Fe("#fff",Fv(i))}, ${Fe("#fff",Fv(i))})`}},...u.style}})});function Pr(e,t){const{className:n,elementType:r,ownerState:o,externalForwardedProps:s,getSlotOwnerState:a,internalForwardedProps:i,...l}=t,{component:d,slots:u={[e]:void 0},slotProps:c={[e]:void 0},...h}=s,f=u[e]||r,g=hO(c[e],o),{props:{component:_,...w},internalRef:v}=pO({className:n,...l,externalForwardedProps:e==="root"?h:void 0,externalSlotProps:g}),b=Wt(v,g==null?void 0:g.ref,t.ref),y=a?a(w):{},S={...o,...y},$=e==="root"?_||d:_,C=hl(f,{...e==="root"&&!d&&!u[e]&&i,...e!=="root"&&!u[e]&&i,...w,...$&&{as:$},ref:b},S);return Object.keys(y).forEach(T=>{delete C[T]}),[f,C]}class tf{constructor(){L(this,"mountEffect",()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())});this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}static create(){return new tf}static use(){const t=cO(tf.create).current,[n,r]=k.useState(!1);return t.shouldMount=n,t.setShouldMount=r,k.useEffect(t.mountEffect,[n]),t}mount(){return this.mounted||(this.mounted=X6(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}start(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.start(...t)})}stop(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.stop(...t)})}pulsate(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.pulsate(...t)})}}function J6(){return tf.use()}function X6(){let e,t;const n=new Promise((r,o)=>{e=r,t=o});return n.resolve=e,n.reject=t,n}function Y6(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:s,rippleSize:a,in:i,onExited:l,timeout:d}=e,[u,c]=k.useState(!1),h=J(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),f={width:a,height:a,top:-(a/2)+s,left:-(a/2)+o},g=J(n.child,u&&n.childLeaving,r&&n.childPulsate);return!i&&!u&&c(!0),k.useEffect(()=>{if(!i&&l!=null){const _=setTimeout(l,d);return()=>{clearTimeout(_)}}},[l,i,d]),m.jsx("span",{className:h,style:f,children:m.jsx("span",{className:g})})}const Mr=ie("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Hv=550,K6=80,Z6=ma` + 0% { + transform: scale(0); + opacity: 0.1; + } + + 100% { + transform: scale(1); + opacity: 0.3; + } +`,Q6=ma` + 0% { + opacity: 1; + } + + 100% { + opacity: 0; + } +`,ez=ma` + 0% { + transform: scale(1); + } + + 50% { + transform: scale(0.92); + } + + 100% { + transform: scale(1); + } +`,tz=G("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),nz=G(Y6,{name:"MuiTouchRipple",slot:"Ripple"})` + opacity: 0; + position: absolute; + + &.${Mr.rippleVisible} { + opacity: 0.3; + transform: scale(1); + animation-name: ${Z6}; + animation-duration: ${Hv}ms; + animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut}; + } + + &.${Mr.ripplePulsate} { + animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms; + } + + & .${Mr.child} { + opacity: 1; + display: block; + width: 100%; + height: 100%; + border-radius: 50%; + background-color: currentColor; + } + + & .${Mr.childLeaving} { + opacity: 0; + animation-name: ${Q6}; + animation-duration: ${Hv}ms; + animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut}; + } + + & .${Mr.childPulsate} { + position: absolute; + /* @noflip */ + left: 0px; + top: 0; + animation-name: ${ez}; + animation-duration: 2500ms; + animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut}; + animation-iteration-count: infinite; + animation-delay: 200ms; + } +`,rz=k.forwardRef(function(t,n){const r=ue({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:s={},className:a,...i}=r,[l,d]=k.useState([]),u=k.useRef(0),c=k.useRef(null);k.useEffect(()=>{c.current&&(c.current(),c.current=null)},[l]);const h=k.useRef(!1),f=La(),g=k.useRef(null),_=k.useRef(null),w=k.useCallback(S=>{const{pulsate:$,rippleX:C,rippleY:T,rippleSize:O,cb:D}=S;d(x=>[...x,m.jsx(nz,{classes:{ripple:J(s.ripple,Mr.ripple),rippleVisible:J(s.rippleVisible,Mr.rippleVisible),ripplePulsate:J(s.ripplePulsate,Mr.ripplePulsate),child:J(s.child,Mr.child),childLeaving:J(s.childLeaving,Mr.childLeaving),childPulsate:J(s.childPulsate,Mr.childPulsate)},timeout:Hv,pulsate:$,rippleX:C,rippleY:T,rippleSize:O},u.current)]),u.current+=1,c.current=D},[s]),v=k.useCallback((S={},$={},C=()=>{})=>{const{pulsate:T=!1,center:O=o||$.pulsate,fakeElement:D=!1}=$;if((S==null?void 0:S.type)==="mousedown"&&h.current){h.current=!1;return}(S==null?void 0:S.type)==="touchstart"&&(h.current=!0);const x=D?null:_.current,A=x?x.getBoundingClientRect():{width:0,height:0,left:0,top:0};let I,z,N;if(O||S===void 0||S.clientX===0&&S.clientY===0||!S.clientX&&!S.touches)I=Math.round(A.width/2),z=Math.round(A.height/2);else{const{clientX:M,clientY:B}=S.touches&&S.touches.length>0?S.touches[0]:S;I=Math.round(M-A.left),z=Math.round(B-A.top)}if(O)N=Math.sqrt((2*A.width**2+A.height**2)/3),N%2===0&&(N+=1);else{const M=Math.max(Math.abs((x?x.clientWidth:0)-I),I)*2+2,B=Math.max(Math.abs((x?x.clientHeight:0)-z),z)*2+2;N=Math.sqrt(M**2+B**2)}S!=null&&S.touches?g.current===null&&(g.current=()=>{w({pulsate:T,rippleX:I,rippleY:z,rippleSize:N,cb:C})},f.start(K6,()=>{g.current&&(g.current(),g.current=null)})):w({pulsate:T,rippleX:I,rippleY:z,rippleSize:N,cb:C})},[o,w,f]),b=k.useCallback(()=>{v({},{pulsate:!0})},[v]),y=k.useCallback((S,$)=>{if(f.clear(),(S==null?void 0:S.type)==="touchend"&&g.current){g.current(),g.current=null,f.start(0,()=>{y(S,$)});return}g.current=null,d(C=>C.length>0?C.slice(1):C),c.current=$},[f]);return k.useImperativeHandle(n,()=>({pulsate:b,start:v,stop:y}),[b,v,y]),m.jsx(tz,{className:J(Mr.root,s.root,a),ref:_,...i,children:m.jsx(_b,{component:null,exit:!0,children:l})})});function oz(e){return le("MuiButtonBase",e)}const sz=ie("MuiButtonBase",["root","disabled","focusVisible"]),az=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,a=de({root:["root",t&&"disabled",n&&"focusVisible"]},oz,o);return n&&r&&(a.root+=` ${r}`),a},iz=G("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${sz.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),kr=k.forwardRef(function(t,n){const r=ue({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:s=!1,children:a,className:i,component:l="button",disabled:d=!1,disableRipple:u=!1,disableTouchRipple:c=!1,focusRipple:h=!1,focusVisibleClassName:f,LinkComponent:g="a",onBlur:_,onClick:w,onContextMenu:v,onDragLeave:b,onFocus:y,onFocusVisible:S,onKeyDown:$,onKeyUp:C,onMouseDown:T,onMouseLeave:O,onMouseUp:D,onTouchEnd:x,onTouchMove:A,onTouchStart:I,tabIndex:z=0,TouchRippleProps:N,touchRippleRef:M,type:B,...V}=r,R=k.useRef(null),F=J6(),q=Wt(F.ref,M),[te,oe]=k.useState(!1);d&&te&&oe(!1),k.useImperativeHandle(o,()=>({focusVisible:()=>{oe(!0),R.current.focus()}}),[]);const ve=F.shouldMount&&!u&&!d;k.useEffect(()=>{te&&h&&!u&&F.pulsate()},[u,h,te,F]);function se(pe,K,he=c){return tr(He=>(K&&K(He),he||F[pe](He),!0))}const Te=se("start",T),xe=se("stop",v),Be=se("stop",b),Ue=se("stop",D),Ve=se("stop",pe=>{te&&pe.preventDefault(),O&&O(pe)}),$e=se("start",I),Oe=se("stop",x),ye=se("stop",A),Ze=se("stop",pe=>{Xh(pe.target)||oe(!1),_&&_(pe)},!1),be=tr(pe=>{R.current||(R.current=pe.currentTarget),Xh(pe.target)&&(oe(!0),S&&S(pe)),y&&y(pe)}),Ie=()=>{const pe=R.current;return l&&l!=="button"&&!(pe.tagName==="A"&&pe.href)},X=tr(pe=>{h&&!pe.repeat&&te&&pe.key===" "&&F.stop(pe,()=>{F.start(pe)}),pe.target===pe.currentTarget&&Ie()&&pe.key===" "&&pe.preventDefault(),$&&$(pe),pe.target===pe.currentTarget&&Ie()&&pe.key==="Enter"&&!d&&(pe.preventDefault(),w&&w(pe))}),ne=tr(pe=>{h&&pe.key===" "&&te&&!pe.defaultPrevented&&F.stop(pe,()=>{F.pulsate(pe)}),C&&C(pe),w&&pe.target===pe.currentTarget&&Ie()&&pe.key===" "&&!pe.defaultPrevented&&w(pe)});let Ee=l;Ee==="button"&&(V.href||V.to)&&(Ee=g);const Ne={};Ee==="button"?(Ne.type=B===void 0?"button":B,Ne.disabled=d):(!V.href&&!V.to&&(Ne.role="button"),d&&(Ne["aria-disabled"]=d));const qe=Wt(n,R),Le={...r,centerRipple:s,component:l,disabled:d,disableRipple:u,disableTouchRipple:c,focusRipple:h,tabIndex:z,focusVisible:te},Ht=az(Le);return m.jsxs(iz,{as:Ee,className:J(Ht.root,i),ownerState:Le,onBlur:Ze,onClick:w,onContextMenu:xe,onFocus:be,onKeyDown:X,onKeyUp:ne,onMouseDown:Te,onMouseLeave:Ve,onMouseUp:Ue,onDragLeave:Be,onTouchEnd:Oe,onTouchMove:ye,onTouchStart:$e,ref:qe,tabIndex:d?-1:z,type:B,...Ne,...V,children:[a,ve?m.jsx(rz,{ref:q,center:s,...N}):null]})});function lz(e){return typeof e.main=="string"}function cz(e,t=[]){if(!lz(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function Nt(e=[]){return([,t])=>t&&cz(t,e)}function dz(e){return le("MuiIconButton",e)}const uz=ie("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),pz=e=>{const{classes:t,disabled:n,color:r,edge:o,size:s}=e,a={root:["root",n&&"disabled",r!=="default"&&`color${W(r)}`,o&&`edge${W(o)}`,`size${W(s)}`]};return de(a,dz,t)},hz=G(kr,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${W(n.color)}`],n.edge&&t[`edge${W(n.edge)}`],t[`size${W(n.size)}`]]}})(me(({theme:e})=>({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),variants:[{props:t=>!t.disableRipple,style:{"--IconButton-hoverBg":e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Fe(e.palette.action.active,e.palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),me(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(Nt()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(Nt()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.vars?`rgba(${(e.vars||e).palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Fe((e.vars||e).palette[t].main,e.palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${uz.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}}))),fe=k.forwardRef(function(t,n){const r=ue({props:t,name:"MuiIconButton"}),{edge:o=!1,children:s,className:a,color:i="default",disabled:l=!1,disableFocusRipple:d=!1,size:u="medium",...c}=r,h={...r,edge:o,color:i,disabled:l,disableFocusRipple:d,size:u},f=pz(h);return m.jsx(hz,{className:J(f.root,a),centerRipple:!0,focusRipple:!d,disabled:l,ref:n,...c,ownerState:h,children:s})});function fz(e){return le("MuiTypography",e)}const LS=ie("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),mz={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},gz=j6(),_z=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:s,classes:a}=e,i={root:["root",s,e.align!=="inherit"&&`align${W(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return de(i,fz,a)},vz=G("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${W(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(me(({theme:e})=>{var t;return{margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([n,r])=>n!=="inherit"&&r&&typeof r=="object").map(([n,r])=>({props:{variant:n},style:r})),...Object.entries(e.palette).filter(Nt()).map(([n])=>({props:{color:n},style:{color:(e.vars||e).palette[n].main}})),...Object.entries(((t=e.palette)==null?void 0:t.text)||{}).filter(([,n])=>typeof n=="string").map(([n])=>({props:{color:`text${W(n)}`},style:{color:(e.vars||e).palette.text[n]}})),{props:({ownerState:n})=>n.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:n})=>n.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:n})=>n.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:n})=>n.paragraph,style:{marginBottom:16}}]}})),FS={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},ls=k.forwardRef(function(t,n){const{color:r,...o}=ue({props:t,name:"MuiTypography"}),s=!mz[r],a=gz({...o,...s&&{color:r}}),{align:i="inherit",className:l,component:d,gutterBottom:u=!1,noWrap:c=!1,paragraph:h=!1,variant:f="body1",variantMapping:g=FS,..._}=a,w={...a,align:i,color:r,className:l,component:d,gutterBottom:u,noWrap:c,paragraph:h,variant:f,variantMapping:g},v=d||(h?"p":g[f]||FS[f])||"span",b=_z(w);return m.jsx(vz,{as:v,ref:n,className:J(b.root,l),..._,ownerState:w,style:{...i!=="inherit"&&{"--Typography-textAlign":i},..._.style}})});function yz(e){return le("MuiAppBar",e)}ie("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const bz=e=>{const{color:t,position:n,classes:r}=e,o={root:["root",`color${W(t)}`,`position${W(n)}`]};return de(o,yz,r)},BS=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,wz=G(_a,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${W(n.position)}`],t[`color${W(n.color)}`]]}})(me(({theme:e})=>({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0,variants:[{props:{position:"fixed"},style:{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}}},{props:{position:"absolute"},style:{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0}},{props:{position:"sticky"},style:{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0}},{props:{position:"static"},style:{position:"static"}},{props:{position:"relative"},style:{position:"relative"}},{props:{color:"inherit"},style:{"--AppBar-color":"inherit"}},{props:{color:"default"},style:{"--AppBar-background":e.vars?e.vars.palette.AppBar.defaultBg:e.palette.grey[100],"--AppBar-color":e.vars?e.vars.palette.text.primary:e.palette.getContrastText(e.palette.grey[100]),...e.applyStyles("dark",{"--AppBar-background":e.vars?e.vars.palette.AppBar.defaultBg:e.palette.grey[900],"--AppBar-color":e.vars?e.vars.palette.text.primary:e.palette.getContrastText(e.palette.grey[900])})}},...Object.entries(e.palette).filter(Nt(["contrastText"])).map(([t])=>({props:{color:t},style:{"--AppBar-background":(e.vars??e).palette[t].main,"--AppBar-color":(e.vars??e).palette[t].contrastText}})),{props:t=>t.enableColorOnDark===!0&&!["inherit","transparent"].includes(t.color),style:{backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)"}},{props:t=>t.enableColorOnDark===!1&&!["inherit","transparent"].includes(t.color),style:{backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)",...e.applyStyles("dark",{backgroundColor:e.vars?BS(e.vars.palette.AppBar.darkBg,"var(--AppBar-background)"):null,color:e.vars?BS(e.vars.palette.AppBar.darkColor,"var(--AppBar-color)"):null})}},{props:{color:"transparent"},style:{"--AppBar-background":"transparent","--AppBar-color":"inherit",backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)",...e.applyStyles("dark",{backgroundImage:"none"})}}]}))),OO=k.forwardRef(function(t,n){const r=ue({props:t,name:"MuiAppBar"}),{className:o,color:s="primary",enableColorOnDark:a=!1,position:i="fixed",...l}=r,d={...r,color:s,position:i,enableColorOnDark:a},u=bz(d);return m.jsx(wz,{square:!0,component:"header",ownerState:d,elevation:4,className:J(u.root,o,i==="fixed"&&"mui-fixed"),ref:n,...l})});var sr="top",qr="bottom",Jr="right",ar="left",vb="auto",ku=[sr,qr,Jr,ar],Hl="start",tu="end",Sz="clippingParents",DO="viewport",Nc="popper",xz="reference",WS=ku.reduce(function(e,t){return e.concat([t+"-"+Hl,t+"-"+tu])},[]),AO=[].concat(ku,[vb]).reduce(function(e,t){return e.concat([t,t+"-"+Hl,t+"-"+tu])},[]),kz="beforeRead",$z="read",Cz="afterRead",Ez="beforeMain",Tz="main",Oz="afterMain",Dz="beforeWrite",Az="write",Nz="afterWrite",Mz=[kz,$z,Cz,Ez,Tz,Oz,Dz,Az,Nz];function Vo(e){return e?(e.nodeName||"").toLowerCase():null}function $r(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Ya(e){var t=$r(e).Element;return e instanceof t||e instanceof Element}function Hr(e){var t=$r(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function yb(e){if(typeof ShadowRoot>"u")return!1;var t=$r(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function jz(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},s=t.elements[n];!Hr(s)||!Vo(s)||(Object.assign(s.style,r),Object.keys(o).forEach(function(a){var i=o[a];i===!1?s.removeAttribute(a):s.setAttribute(a,i===!0?"":i)}))})}function Iz(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],s=t.attributes[r]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),i=a.reduce(function(l,d){return l[d]="",l},{});!Hr(o)||!Vo(o)||(Object.assign(o.style,i),Object.keys(s).forEach(function(l){o.removeAttribute(l)}))})}}const zz={name:"applyStyles",enabled:!0,phase:"write",fn:jz,effect:Iz,requires:["computeStyles"]};function Wo(e){return e.split("-")[0]}var Ha=Math.max,nf=Math.min,Ul=Math.round;function Uv(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function NO(){return!/^((?!chrome|android).)*safari/i.test(Uv())}function Vl(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,s=1;t&&Hr(e)&&(o=e.offsetWidth>0&&Ul(r.width)/e.offsetWidth||1,s=e.offsetHeight>0&&Ul(r.height)/e.offsetHeight||1);var a=Ya(e)?$r(e):window,i=a.visualViewport,l=!NO()&&n,d=(r.left+(l&&i?i.offsetLeft:0))/o,u=(r.top+(l&&i?i.offsetTop:0))/s,c=r.width/o,h=r.height/s;return{width:c,height:h,top:u,right:d+c,bottom:u+h,left:d,x:d,y:u}}function bb(e){var t=Vl(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function MO(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&yb(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function ys(e){return $r(e).getComputedStyle(e)}function Rz(e){return["table","td","th"].indexOf(Vo(e))>=0}function va(e){return((Ya(e)?e.ownerDocument:e.document)||window.document).documentElement}function zm(e){return Vo(e)==="html"?e:e.assignedSlot||e.parentNode||(yb(e)?e.host:null)||va(e)}function HS(e){return!Hr(e)||ys(e).position==="fixed"?null:e.offsetParent}function Pz(e){var t=/firefox/i.test(Uv()),n=/Trident/i.test(Uv());if(n&&Hr(e)){var r=ys(e);if(r.position==="fixed")return null}var o=zm(e);for(yb(o)&&(o=o.host);Hr(o)&&["html","body"].indexOf(Vo(o))<0;){var s=ys(o);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||t&&s.willChange==="filter"||t&&s.filter&&s.filter!=="none")return o;o=o.parentNode}return null}function $u(e){for(var t=$r(e),n=HS(e);n&&Rz(n)&&ys(n).position==="static";)n=HS(n);return n&&(Vo(n)==="html"||Vo(n)==="body"&&ys(n).position==="static")?t:n||Pz(e)||t}function wb(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Sd(e,t,n){return Ha(e,nf(t,n))}function Lz(e,t,n){var r=Sd(e,t,n);return r>n?n:r}function jO(){return{top:0,right:0,bottom:0,left:0}}function IO(e){return Object.assign({},jO(),e)}function zO(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var Fz=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,IO(typeof t!="number"?t:zO(t,ku))};function Bz(e){var t,n=e.state,r=e.name,o=e.options,s=n.elements.arrow,a=n.modifiersData.popperOffsets,i=Wo(n.placement),l=wb(i),d=[ar,Jr].indexOf(i)>=0,u=d?"height":"width";if(!(!s||!a)){var c=Fz(o.padding,n),h=bb(s),f=l==="y"?sr:ar,g=l==="y"?qr:Jr,_=n.rects.reference[u]+n.rects.reference[l]-a[l]-n.rects.popper[u],w=a[l]-n.rects.reference[l],v=$u(s),b=v?l==="y"?v.clientHeight||0:v.clientWidth||0:0,y=_/2-w/2,S=c[f],$=b-h[u]-c[g],C=b/2-h[u]/2+y,T=Sd(S,C,$),O=l;n.modifiersData[r]=(t={},t[O]=T,t.centerOffset=T-C,t)}}function Wz(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||MO(t.elements.popper,o)&&(t.elements.arrow=o))}const Hz={name:"arrow",enabled:!0,phase:"main",fn:Bz,effect:Wz,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Gl(e){return e.split("-")[1]}var Uz={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Vz(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:Ul(n*o)/o||0,y:Ul(r*o)/o||0}}function US(e){var t,n=e.popper,r=e.popperRect,o=e.placement,s=e.variation,a=e.offsets,i=e.position,l=e.gpuAcceleration,d=e.adaptive,u=e.roundOffsets,c=e.isFixed,h=a.x,f=h===void 0?0:h,g=a.y,_=g===void 0?0:g,w=typeof u=="function"?u({x:f,y:_}):{x:f,y:_};f=w.x,_=w.y;var v=a.hasOwnProperty("x"),b=a.hasOwnProperty("y"),y=ar,S=sr,$=window;if(d){var C=$u(n),T="clientHeight",O="clientWidth";if(C===$r(n)&&(C=va(n),ys(C).position!=="static"&&i==="absolute"&&(T="scrollHeight",O="scrollWidth")),C=C,o===sr||(o===ar||o===Jr)&&s===tu){S=qr;var D=c&&C===$&&$.visualViewport?$.visualViewport.height:C[T];_-=D-r.height,_*=l?1:-1}if(o===ar||(o===sr||o===qr)&&s===tu){y=Jr;var x=c&&C===$&&$.visualViewport?$.visualViewport.width:C[O];f-=x-r.width,f*=l?1:-1}}var A=Object.assign({position:i},d&&Uz),I=u===!0?Vz({x:f,y:_},$r(n)):{x:f,y:_};if(f=I.x,_=I.y,l){var z;return Object.assign({},A,(z={},z[S]=b?"0":"",z[y]=v?"0":"",z.transform=($.devicePixelRatio||1)<=1?"translate("+f+"px, "+_+"px)":"translate3d("+f+"px, "+_+"px, 0)",z))}return Object.assign({},A,(t={},t[S]=b?_+"px":"",t[y]=v?f+"px":"",t.transform="",t))}function Gz(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,s=n.adaptive,a=s===void 0?!0:s,i=n.roundOffsets,l=i===void 0?!0:i,d={placement:Wo(t.placement),variation:Gl(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,US(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,US(Object.assign({},d,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const qz={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Gz,data:{}};var hp={passive:!0};function Jz(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,s=o===void 0?!0:o,a=r.resize,i=a===void 0?!0:a,l=$r(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&d.forEach(function(u){u.addEventListener("scroll",n.update,hp)}),i&&l.addEventListener("resize",n.update,hp),function(){s&&d.forEach(function(u){u.removeEventListener("scroll",n.update,hp)}),i&&l.removeEventListener("resize",n.update,hp)}}const Xz={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Jz,data:{}};var Yz={left:"right",right:"left",bottom:"top",top:"bottom"};function uh(e){return e.replace(/left|right|bottom|top/g,function(t){return Yz[t]})}var Kz={start:"end",end:"start"};function VS(e){return e.replace(/start|end/g,function(t){return Kz[t]})}function Sb(e){var t=$r(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function xb(e){return Vl(va(e)).left+Sb(e).scrollLeft}function Zz(e,t){var n=$r(e),r=va(e),o=n.visualViewport,s=r.clientWidth,a=r.clientHeight,i=0,l=0;if(o){s=o.width,a=o.height;var d=NO();(d||!d&&t==="fixed")&&(i=o.offsetLeft,l=o.offsetTop)}return{width:s,height:a,x:i+xb(e),y:l}}function Qz(e){var t,n=va(e),r=Sb(e),o=(t=e.ownerDocument)==null?void 0:t.body,s=Ha(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=Ha(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),i=-r.scrollLeft+xb(e),l=-r.scrollTop;return ys(o||n).direction==="rtl"&&(i+=Ha(n.clientWidth,o?o.clientWidth:0)-s),{width:s,height:a,x:i,y:l}}function kb(e){var t=ys(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function RO(e){return["html","body","#document"].indexOf(Vo(e))>=0?e.ownerDocument.body:Hr(e)&&kb(e)?e:RO(zm(e))}function xd(e,t){var n;t===void 0&&(t=[]);var r=RO(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),s=$r(r),a=o?[s].concat(s.visualViewport||[],kb(r)?r:[]):r,i=t.concat(a);return o?i:i.concat(xd(zm(a)))}function Vv(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function eR(e,t){var n=Vl(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function GS(e,t,n){return t===DO?Vv(Zz(e,n)):Ya(t)?eR(t,n):Vv(Qz(va(e)))}function tR(e){var t=xd(zm(e)),n=["absolute","fixed"].indexOf(ys(e).position)>=0,r=n&&Hr(e)?$u(e):e;return Ya(r)?t.filter(function(o){return Ya(o)&&MO(o,r)&&Vo(o)!=="body"}):[]}function nR(e,t,n,r){var o=t==="clippingParents"?tR(e):[].concat(t),s=[].concat(o,[n]),a=s[0],i=s.reduce(function(l,d){var u=GS(e,d,r);return l.top=Ha(u.top,l.top),l.right=nf(u.right,l.right),l.bottom=nf(u.bottom,l.bottom),l.left=Ha(u.left,l.left),l},GS(e,a,r));return i.width=i.right-i.left,i.height=i.bottom-i.top,i.x=i.left,i.y=i.top,i}function PO(e){var t=e.reference,n=e.element,r=e.placement,o=r?Wo(r):null,s=r?Gl(r):null,a=t.x+t.width/2-n.width/2,i=t.y+t.height/2-n.height/2,l;switch(o){case sr:l={x:a,y:t.y-n.height};break;case qr:l={x:a,y:t.y+t.height};break;case Jr:l={x:t.x+t.width,y:i};break;case ar:l={x:t.x-n.width,y:i};break;default:l={x:t.x,y:t.y}}var d=o?wb(o):null;if(d!=null){var u=d==="y"?"height":"width";switch(s){case Hl:l[d]=l[d]-(t[u]/2-n[u]/2);break;case tu:l[d]=l[d]+(t[u]/2-n[u]/2);break}}return l}function nu(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,s=n.strategy,a=s===void 0?e.strategy:s,i=n.boundary,l=i===void 0?Sz:i,d=n.rootBoundary,u=d===void 0?DO:d,c=n.elementContext,h=c===void 0?Nc:c,f=n.altBoundary,g=f===void 0?!1:f,_=n.padding,w=_===void 0?0:_,v=IO(typeof w!="number"?w:zO(w,ku)),b=h===Nc?xz:Nc,y=e.rects.popper,S=e.elements[g?b:h],$=nR(Ya(S)?S:S.contextElement||va(e.elements.popper),l,u,a),C=Vl(e.elements.reference),T=PO({reference:C,element:y,strategy:"absolute",placement:o}),O=Vv(Object.assign({},y,T)),D=h===Nc?O:C,x={top:$.top-D.top+v.top,bottom:D.bottom-$.bottom+v.bottom,left:$.left-D.left+v.left,right:D.right-$.right+v.right},A=e.modifiersData.offset;if(h===Nc&&A){var I=A[o];Object.keys(x).forEach(function(z){var N=[Jr,qr].indexOf(z)>=0?1:-1,M=[sr,qr].indexOf(z)>=0?"y":"x";x[z]+=I[M]*N})}return x}function rR(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,s=n.rootBoundary,a=n.padding,i=n.flipVariations,l=n.allowedAutoPlacements,d=l===void 0?AO:l,u=Gl(r),c=u?i?WS:WS.filter(function(g){return Gl(g)===u}):ku,h=c.filter(function(g){return d.indexOf(g)>=0});h.length===0&&(h=c);var f=h.reduce(function(g,_){return g[_]=nu(e,{placement:_,boundary:o,rootBoundary:s,padding:a})[Wo(_)],g},{});return Object.keys(f).sort(function(g,_){return f[g]-f[_]})}function oR(e){if(Wo(e)===vb)return[];var t=uh(e);return[VS(e),t,VS(t)]}function sR(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,s=o===void 0?!0:o,a=n.altAxis,i=a===void 0?!0:a,l=n.fallbackPlacements,d=n.padding,u=n.boundary,c=n.rootBoundary,h=n.altBoundary,f=n.flipVariations,g=f===void 0?!0:f,_=n.allowedAutoPlacements,w=t.options.placement,v=Wo(w),b=v===w,y=l||(b||!g?[uh(w)]:oR(w)),S=[w].concat(y).reduce(function(se,Te){return se.concat(Wo(Te)===vb?rR(t,{placement:Te,boundary:u,rootBoundary:c,padding:d,flipVariations:g,allowedAutoPlacements:_}):Te)},[]),$=t.rects.reference,C=t.rects.popper,T=new Map,O=!0,D=S[0],x=0;x=0,M=N?"width":"height",B=nu(t,{placement:A,boundary:u,rootBoundary:c,altBoundary:h,padding:d}),V=N?z?Jr:ar:z?qr:sr;$[M]>C[M]&&(V=uh(V));var R=uh(V),F=[];if(s&&F.push(B[I]<=0),i&&F.push(B[V]<=0,B[R]<=0),F.every(function(se){return se})){D=A,O=!1;break}T.set(A,F)}if(O)for(var q=g?3:1,te=function(Te){var xe=S.find(function(Be){var Ue=T.get(Be);if(Ue)return Ue.slice(0,Te).every(function(Ve){return Ve})});if(xe)return D=xe,"break"},oe=q;oe>0;oe--){var ve=te(oe);if(ve==="break")break}t.placement!==D&&(t.modifiersData[r]._skip=!0,t.placement=D,t.reset=!0)}}const aR={name:"flip",enabled:!0,phase:"main",fn:sR,requiresIfExists:["offset"],data:{_skip:!1}};function qS(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function JS(e){return[sr,Jr,qr,ar].some(function(t){return e[t]>=0})}function iR(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,s=t.modifiersData.preventOverflow,a=nu(t,{elementContext:"reference"}),i=nu(t,{altBoundary:!0}),l=qS(a,r),d=qS(i,o,s),u=JS(l),c=JS(d);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:d,isReferenceHidden:u,hasPopperEscaped:c},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":c})}const lR={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:iR};function cR(e,t,n){var r=Wo(e),o=[ar,sr].indexOf(r)>=0?-1:1,s=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=s[0],i=s[1];return a=a||0,i=(i||0)*o,[ar,Jr].indexOf(r)>=0?{x:i,y:a}:{x:a,y:i}}function dR(e){var t=e.state,n=e.options,r=e.name,o=n.offset,s=o===void 0?[0,0]:o,a=AO.reduce(function(u,c){return u[c]=cR(c,t.rects,s),u},{}),i=a[t.placement],l=i.x,d=i.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=d),t.modifiersData[r]=a}const uR={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:dR};function pR(e){var t=e.state,n=e.name;t.modifiersData[n]=PO({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const hR={name:"popperOffsets",enabled:!0,phase:"read",fn:pR,data:{}};function fR(e){return e==="x"?"y":"x"}function mR(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,s=o===void 0?!0:o,a=n.altAxis,i=a===void 0?!1:a,l=n.boundary,d=n.rootBoundary,u=n.altBoundary,c=n.padding,h=n.tether,f=h===void 0?!0:h,g=n.tetherOffset,_=g===void 0?0:g,w=nu(t,{boundary:l,rootBoundary:d,padding:c,altBoundary:u}),v=Wo(t.placement),b=Gl(t.placement),y=!b,S=wb(v),$=fR(S),C=t.modifiersData.popperOffsets,T=t.rects.reference,O=t.rects.popper,D=typeof _=="function"?_(Object.assign({},t.rects,{placement:t.placement})):_,x=typeof D=="number"?{mainAxis:D,altAxis:D}:Object.assign({mainAxis:0,altAxis:0},D),A=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,I={x:0,y:0};if(C){if(s){var z,N=S==="y"?sr:ar,M=S==="y"?qr:Jr,B=S==="y"?"height":"width",V=C[S],R=V+w[N],F=V-w[M],q=f?-O[B]/2:0,te=b===Hl?T[B]:O[B],oe=b===Hl?-O[B]:-T[B],ve=t.elements.arrow,se=f&&ve?bb(ve):{width:0,height:0},Te=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:jO(),xe=Te[N],Be=Te[M],Ue=Sd(0,T[B],se[B]),Ve=y?T[B]/2-q-Ue-xe-x.mainAxis:te-Ue-xe-x.mainAxis,$e=y?-T[B]/2+q+Ue+Be+x.mainAxis:oe+Ue+Be+x.mainAxis,Oe=t.elements.arrow&&$u(t.elements.arrow),ye=Oe?S==="y"?Oe.clientTop||0:Oe.clientLeft||0:0,Ze=(z=A==null?void 0:A[S])!=null?z:0,be=V+Ve-Ze-ye,Ie=V+$e-Ze,X=Sd(f?nf(R,be):R,V,f?Ha(F,Ie):F);C[S]=X,I[S]=X-V}if(i){var ne,Ee=S==="x"?sr:ar,Ne=S==="x"?qr:Jr,qe=C[$],Le=$==="y"?"height":"width",Ht=qe+w[Ee],pe=qe-w[Ne],K=[sr,ar].indexOf(v)!==-1,he=(ne=A==null?void 0:A[$])!=null?ne:0,He=K?Ht:qe-T[Le]-O[Le]-he+x.altAxis,ke=K?qe+T[Le]+O[Le]-he-x.altAxis:pe,Me=f&&K?Lz(He,qe,ke):Sd(f?He:Ht,qe,f?ke:pe);C[$]=Me,I[$]=Me-qe}t.modifiersData[r]=I}}const gR={name:"preventOverflow",enabled:!0,phase:"main",fn:mR,requiresIfExists:["offset"]};function _R(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function vR(e){return e===$r(e)||!Hr(e)?Sb(e):_R(e)}function yR(e){var t=e.getBoundingClientRect(),n=Ul(t.width)/e.offsetWidth||1,r=Ul(t.height)/e.offsetHeight||1;return n!==1||r!==1}function bR(e,t,n){n===void 0&&(n=!1);var r=Hr(t),o=Hr(t)&&yR(t),s=va(t),a=Vl(e,o,n),i={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((Vo(t)!=="body"||kb(s))&&(i=vR(t)),Hr(t)?(l=Vl(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):s&&(l.x=xb(s))),{x:a.left+i.scrollLeft-l.x,y:a.top+i.scrollTop-l.y,width:a.width,height:a.height}}function wR(e){var t=new Map,n=new Set,r=[];e.forEach(function(s){t.set(s.name,s)});function o(s){n.add(s.name);var a=[].concat(s.requires||[],s.requiresIfExists||[]);a.forEach(function(i){if(!n.has(i)){var l=t.get(i);l&&o(l)}}),r.push(s)}return e.forEach(function(s){n.has(s.name)||o(s)}),r}function SR(e){var t=wR(e);return Mz.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function xR(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function kR(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var XS={placement:"bottom",modifiers:[],strategy:"absolute"};function YS(){for(var e=arguments.length,t=new Array(e),n=0;n{s||i(TR(o)||document.body)},[o,s]),xr(()=>{if(a&&!s)return Rv(n,a),()=>{Rv(n,null)}},[n,a,s]),s){if(k.isValidElement(r)){const d={ref:l};return k.cloneElement(r,d)}return m.jsx(k.Fragment,{children:r})}return m.jsx(k.Fragment,{children:a&&X0.createPortal(r,a)})});function OR(e){return le("MuiPopper",e)}ie("MuiPopper",["root"]);function DR(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function Gv(e){return typeof e=="function"?e():e}function AR(e){return e.nodeType!==void 0}const NR=e=>{const{classes:t}=e;return de({root:["root"]},OR,t)},MR={},jR=k.forwardRef(function(t,n){const{anchorEl:r,children:o,direction:s,disablePortal:a,modifiers:i,open:l,placement:d,popperOptions:u,popperRef:c,slotProps:h={},slots:f={},TransitionProps:g,ownerState:_,...w}=t,v=k.useRef(null),b=Wt(v,n),y=k.useRef(null),S=Wt(y,c),$=k.useRef(S);xr(()=>{$.current=S},[S]),k.useImperativeHandle(c,()=>y.current,[]);const C=DR(d,s),[T,O]=k.useState(C),[D,x]=k.useState(Gv(r));k.useEffect(()=>{y.current&&y.current.forceUpdate()}),k.useEffect(()=>{r&&x(Gv(r))},[r]),xr(()=>{if(!D||!l)return;const M=R=>{O(R.placement)};let B=[{name:"preventOverflow",options:{altBoundary:a}},{name:"flip",options:{altBoundary:a}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:R})=>{M(R)}}];i!=null&&(B=B.concat(i)),u&&u.modifiers!=null&&(B=B.concat(u.modifiers));const V=ER(D,v.current,{placement:C,...u,modifiers:B});return $.current(V),()=>{V.destroy(),$.current(null)}},[D,a,i,l,u,C]);const A={placement:T};g!==null&&(A.TransitionProps=g);const I=NR(t),z=f.root??"div",N=vo({elementType:z,externalSlotProps:h.root,externalForwardedProps:w,additionalProps:{role:"tooltip",ref:b},ownerState:t,className:I.root});return m.jsx(z,{...N,children:typeof o=="function"?o(A):o})}),IR=k.forwardRef(function(t,n){const{anchorEl:r,children:o,container:s,direction:a="ltr",disablePortal:i=!1,keepMounted:l=!1,modifiers:d,open:u,placement:c="bottom",popperOptions:h=MR,popperRef:f,style:g,transition:_=!1,slotProps:w={},slots:v={},...b}=t,[y,S]=k.useState(!0),$=()=>{S(!1)},C=()=>{S(!0)};if(!l&&!u&&(!_||y))return null;let T;if(s)T=s;else if(r){const x=Gv(r);T=x&&AR(x)?Sn(x).body:Sn(null).body}const O=!u&&l&&(!_||y)?"none":void 0,D=_?{in:u,onEnter:$,onExited:C}:void 0;return m.jsx(LO,{disablePortal:i,container:T,children:m.jsx(jR,{anchorEl:r,direction:a,disablePortal:i,modifiers:d,ref:n,open:_?!y:u,placement:c,popperOptions:h,popperRef:f,slotProps:w,slots:v,...b,style:{position:"fixed",top:0,left:0,display:O,...g},TransitionProps:D,children:o})})}),zR=G(IR,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),FO=k.forwardRef(function(t,n){const r=cc(),o=ue({props:t,name:"MuiPopper"}),{anchorEl:s,component:a,components:i,componentsProps:l,container:d,disablePortal:u,keepMounted:c,modifiers:h,open:f,placement:g,popperOptions:_,popperRef:w,transition:v,slots:b,slotProps:y,...S}=o,$=(b==null?void 0:b.root)??(i==null?void 0:i.Root),C={anchorEl:s,container:d,disablePortal:u,keepMounted:c,modifiers:h,open:f,placement:g,popperOptions:_,popperRef:w,transition:v,...S};return m.jsx(zR,{as:a,direction:r?"rtl":"ltr",slots:{root:$},slotProps:y??l,...C,ref:n})}),RR=ee(m.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function PR(e){return le("MuiChip",e)}const Ye=ie("MuiChip",["root","sizeSmall","sizeMedium","colorDefault","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),LR=e=>{const{classes:t,disabled:n,size:r,color:o,iconColor:s,onDelete:a,clickable:i,variant:l}=e,d={root:["root",l,n&&"disabled",`size${W(r)}`,`color${W(o)}`,i&&"clickable",i&&`clickableColor${W(o)}`,a&&"deletable",a&&`deletableColor${W(o)}`,`${l}${W(o)}`],label:["label",`label${W(r)}`],avatar:["avatar",`avatar${W(r)}`,`avatarColor${W(o)}`],icon:["icon",`icon${W(r)}`,`iconColor${W(s)}`],deleteIcon:["deleteIcon",`deleteIcon${W(r)}`,`deleteIconColor${W(o)}`,`deleteIcon${W(l)}Color${W(o)}`]};return de(d,PR,t)},FR=G("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:o,clickable:s,onDelete:a,size:i,variant:l}=n;return[{[`& .${Ye.avatar}`]:t.avatar},{[`& .${Ye.avatar}`]:t[`avatar${W(i)}`]},{[`& .${Ye.avatar}`]:t[`avatarColor${W(r)}`]},{[`& .${Ye.icon}`]:t.icon},{[`& .${Ye.icon}`]:t[`icon${W(i)}`]},{[`& .${Ye.icon}`]:t[`iconColor${W(o)}`]},{[`& .${Ye.deleteIcon}`]:t.deleteIcon},{[`& .${Ye.deleteIcon}`]:t[`deleteIcon${W(i)}`]},{[`& .${Ye.deleteIcon}`]:t[`deleteIconColor${W(r)}`]},{[`& .${Ye.deleteIcon}`]:t[`deleteIcon${W(l)}Color${W(r)}`]},t.root,t[`size${W(i)}`],t[`color${W(r)}`],s&&t.clickable,s&&r!=="default"&&t[`clickableColor${W(r)})`],a&&t.deletable,a&&r!=="default"&&t[`deletableColor${W(r)}`],t[l],t[`${l}${W(r)}`]]}})(me(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return{maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${Ye.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${Ye.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${Ye.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${Ye.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${Ye.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${Ye.icon}`]:{marginLeft:5,marginRight:-6},[`& .${Ye.deleteIcon}`]:{WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:Fe(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:Fe(e.palette.text.primary,.4)}},variants:[{props:{size:"small"},style:{height:24,[`& .${Ye.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${Ye.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(e.palette).filter(Nt(["contrastText"])).map(([n])=>({props:{color:n},style:{backgroundColor:(e.vars||e).palette[n].main,color:(e.vars||e).palette[n].contrastText,[`& .${Ye.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[n].contrastTextChannel} / 0.7)`:Fe(e.palette[n].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].contrastText}}}})),{props:n=>n.iconColor===n.color,style:{[`& .${Ye.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:t}}},{props:n=>n.iconColor===n.color&&n.color!=="default",style:{[`& .${Ye.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${Ye.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Fe(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}},...Object.entries(e.palette).filter(Nt(["dark"])).map(([n])=>({props:{color:n,onDelete:!0},style:{[`&.${Ye.focusVisible}`]:{background:(e.vars||e).palette[n].dark}}})),{props:{clickable:!0},style:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Fe(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${Ye.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Fe(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}}},...Object.entries(e.palette).filter(Nt(["dark"])).map(([n])=>({props:{color:n,clickable:!0},style:{[`&:hover, &.${Ye.focusVisible}`]:{backgroundColor:(e.vars||e).palette[n].dark}}})),{props:{variant:"outlined"},style:{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${Ye.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Ye.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${Ye.avatar}`]:{marginLeft:4},[`& .${Ye.avatarSmall}`]:{marginLeft:2},[`& .${Ye.icon}`]:{marginLeft:4},[`& .${Ye.iconSmall}`]:{marginLeft:2},[`& .${Ye.deleteIcon}`]:{marginRight:5},[`& .${Ye.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(e.palette).filter(Nt()).map(([n])=>({props:{variant:"outlined",color:n},style:{color:(e.vars||e).palette[n].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[n].mainChannel} / 0.7)`:Fe(e.palette[n].main,.7)}`,[`&.${Ye.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[n].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Fe(e.palette[n].main,e.palette.action.hoverOpacity)},[`&.${Ye.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[n].mainChannel} / ${e.vars.palette.action.focusOpacity})`:Fe(e.palette[n].main,e.palette.action.focusOpacity)},[`& .${Ye.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[n].mainChannel} / 0.7)`:Fe(e.palette[n].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].main}}}}))]}})),BR=G("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${W(r)}`]]}})({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap",variants:[{props:{variant:"outlined"},style:{paddingLeft:11,paddingRight:11}},{props:{size:"small"},style:{paddingLeft:8,paddingRight:8}},{props:{size:"small",variant:"outlined"},style:{paddingLeft:7,paddingRight:7}}]});function KS(e){return e.key==="Backspace"||e.key==="Delete"}const WR=k.forwardRef(function(t,n){const r=ue({props:t,name:"MuiChip"}),{avatar:o,className:s,clickable:a,color:i="default",component:l,deleteIcon:d,disabled:u=!1,icon:c,label:h,onClick:f,onDelete:g,onKeyDown:_,onKeyUp:w,size:v="medium",variant:b="filled",tabIndex:y,skipFocusWhenDisabled:S=!1,...$}=r,C=k.useRef(null),T=Wt(C,n),O=F=>{F.stopPropagation(),g&&g(F)},D=F=>{F.currentTarget===F.target&&KS(F)&&F.preventDefault(),_&&_(F)},x=F=>{F.currentTarget===F.target&&g&&KS(F)&&g(F),w&&w(F)},A=a!==!1&&f?!0:a,I=A||g?kr:l||"div",z={...r,component:I,disabled:u,size:v,color:i,iconColor:k.isValidElement(c)&&c.props.color||i,onDelete:!!g,clickable:A,variant:b},N=LR(z),M=I===kr?{component:l||"div",focusVisibleClassName:N.focusVisible,...g&&{disableRipple:!0}}:{};let B=null;g&&(B=d&&k.isValidElement(d)?k.cloneElement(d,{className:J(d.props.className,N.deleteIcon),onClick:O}):m.jsx(RR,{className:J(N.deleteIcon),onClick:O}));let V=null;o&&k.isValidElement(o)&&(V=k.cloneElement(o,{className:J(N.avatar,o.props.className)}));let R=null;return c&&k.isValidElement(c)&&(R=k.cloneElement(c,{className:J(N.icon,c.props.className)})),m.jsxs(FR,{as:I,className:J(N.root,s),disabled:A&&u?!0:void 0,onClick:f,onKeyDown:D,onKeyUp:x,ref:T,tabIndex:S&&u?-1:y,ownerState:z,...M,...$,children:[V||R,m.jsx(BR,{className:J(N.label),ownerState:z,children:h}),B]})});function fp(e){return parseInt(e,10)||0}const HR={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function UR(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflowing}const VR=k.forwardRef(function(t,n){const{onChange:r,maxRows:o,minRows:s=1,style:a,value:i,...l}=t,{current:d}=k.useRef(i!=null),u=k.useRef(null),c=Wt(n,u),h=k.useRef(null),f=k.useRef(null),g=k.useCallback(()=>{const v=u.current,y=_o(v).getComputedStyle(v);if(y.width==="0px")return{outerHeightStyle:0,overflowing:!1};const S=f.current;S.style.width=y.width,S.value=v.value||t.placeholder||"x",S.value.slice(-1)===` +`&&(S.value+=" ");const $=y.boxSizing,C=fp(y.paddingBottom)+fp(y.paddingTop),T=fp(y.borderBottomWidth)+fp(y.borderTopWidth),O=S.scrollHeight;S.value="x";const D=S.scrollHeight;let x=O;s&&(x=Math.max(Number(s)*D,x)),o&&(x=Math.min(Number(o)*D,x)),x=Math.max(x,D);const A=x+($==="border-box"?C+T:0),I=Math.abs(x-O)<=1;return{outerHeightStyle:A,overflowing:I}},[o,s,t.placeholder]),_=k.useCallback(()=>{const v=g();if(UR(v))return;const b=v.outerHeightStyle,y=u.current;h.current!==b&&(h.current=b,y.style.height=`${b}px`),y.style.overflow=v.overflowing?"hidden":""},[g]);xr(()=>{const v=()=>{_()};let b;const y=Nm(v),S=u.current,$=_o(S);$.addEventListener("resize",y);let C;return typeof ResizeObserver<"u"&&(C=new ResizeObserver(v),C.observe(S)),()=>{y.clear(),cancelAnimationFrame(b),$.removeEventListener("resize",y),C&&C.disconnect()}},[g,_]),xr(()=>{_()});const w=v=>{d||_(),r&&r(v)};return m.jsxs(k.Fragment,{children:[m.jsx("textarea",{value:i,onChange:w,ref:c,rows:s,style:a,...l}),m.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:f,tabIndex:-1,style:{...HR.shadow,...a,paddingTop:0,paddingBottom:0}})]})});function ru(e){return typeof e=="string"}function ya({props:e,states:t,muiFormControl:n}){return t.reduce((r,o)=>(r[o]=e[o],n&&typeof e[o]>"u"&&(r[o]=n[o]),r),{})}const $b=k.createContext(void 0);function Jo(){return k.useContext($b)}function ZS(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function rf(e,t=!1){return e&&(ZS(e.value)&&e.value!==""||t&&ZS(e.defaultValue)&&e.defaultValue!=="")}function GR(e){return e.startAdornment}function qR(e){return le("MuiInputBase",e)}const ql=ie("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var QS;const Rm=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${W(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},Pm=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},JR=e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:s,focused:a,formControl:i,fullWidth:l,hiddenLabel:d,multiline:u,readOnly:c,size:h,startAdornment:f,type:g}=e,_={root:["root",`color${W(n)}`,r&&"disabled",o&&"error",l&&"fullWidth",a&&"focused",i&&"formControl",h&&h!=="medium"&&`size${W(h)}`,u&&"multiline",f&&"adornedStart",s&&"adornedEnd",d&&"hiddenLabel",c&&"readOnly"],input:["input",r&&"disabled",g==="search"&&"inputTypeSearch",u&&"inputMultiline",h==="small"&&"inputSizeSmall",d&&"inputHiddenLabel",f&&"inputAdornedStart",s&&"inputAdornedEnd",c&&"readOnly"]};return de(_,qR,t)},Lm=G("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Rm})(me(({theme:e})=>({...e.typography.body1,color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${ql.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:t})=>t.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:t,size:n})=>t.multiline&&n==="small",style:{paddingTop:1}},{props:({ownerState:t})=>t.fullWidth,style:{width:"100%"}}]}))),Fm=G("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Pm})(me(({theme:e})=>{const t=e.palette.mode==="light",n={color:"currentColor",...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},r={opacity:"0 !important"},o=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${ql.formControl} &`]:{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":o,"&:focus::-moz-placeholder":o,"&:focus::-ms-input-placeholder":o},[`&.${ql.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:s})=>!s.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:s})=>s.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),ex=M6({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),Cb=k.forwardRef(function(t,n){const r=ue({props:t,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:s,autoFocus:a,className:i,color:l,components:d={},componentsProps:u={},defaultValue:c,disabled:h,disableInjectingGlobalStyles:f,endAdornment:g,error:_,fullWidth:w=!1,id:v,inputComponent:b="input",inputProps:y={},inputRef:S,margin:$,maxRows:C,minRows:T,multiline:O=!1,name:D,onBlur:x,onChange:A,onClick:I,onFocus:z,onKeyDown:N,onKeyUp:M,placeholder:B,readOnly:V,renderSuffix:R,rows:F,size:q,slotProps:te={},slots:oe={},startAdornment:ve,type:se="text",value:Te,...xe}=r,Be=y.value!=null?y.value:Te,{current:Ue}=k.useRef(Be!=null),Ve=k.useRef(),$e=k.useCallback(De=>{},[]),Oe=Wt(Ve,S,y.ref,$e),[ye,Ze]=k.useState(!1),be=Jo(),Ie=ya({props:r,muiFormControl:be,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Ie.focused=be?be.focused:ye,k.useEffect(()=>{!be&&h&&ye&&(Ze(!1),x&&x())},[be,h,ye,x]);const X=be&&be.onFilled,ne=be&&be.onEmpty,Ee=k.useCallback(De=>{rf(De)?X&&X():ne&&ne()},[X,ne]);xr(()=>{Ue&&Ee({value:Be})},[Be,Ee,Ue]);const Ne=De=>{z&&z(De),y.onFocus&&y.onFocus(De),be&&be.onFocus?be.onFocus(De):Ze(!0)},qe=De=>{x&&x(De),y.onBlur&&y.onBlur(De),be&&be.onBlur?be.onBlur(De):Ze(!1)},Le=(De,...ln)=>{if(!Ue){const dr=De.target||Ve.current;if(dr==null)throw new Error(_s(1));Ee({value:dr.value})}y.onChange&&y.onChange(De,...ln),A&&A(De,...ln)};k.useEffect(()=>{Ee(Ve.current)},[]);const Ht=De=>{Ve.current&&De.currentTarget===De.target&&Ve.current.focus(),I&&I(De)};let pe=b,K=y;O&&pe==="input"&&(F?K={type:void 0,minRows:F,maxRows:F,...K}:K={type:void 0,maxRows:C,minRows:T,...K},pe=VR);const he=De=>{Ee(De.animationName==="mui-auto-fill-cancel"?Ve.current:{value:"x"})};k.useEffect(()=>{be&&be.setAdornedStart(!!ve)},[be,ve]);const He={...r,color:Ie.color||"primary",disabled:Ie.disabled,endAdornment:g,error:Ie.error,focused:Ie.focused,formControl:be,fullWidth:w,hiddenLabel:Ie.hiddenLabel,multiline:O,size:Ie.size,startAdornment:ve,type:se},ke=JR(He),Me=oe.root||d.Root||Lm,lt=te.root||u.root||{},Ut=oe.input||d.Input||Fm;return K={...K,...te.input??u.input},m.jsxs(k.Fragment,{children:[!f&&typeof ex=="function"&&(QS||(QS=m.jsx(ex,{}))),m.jsxs(Me,{...lt,ref:n,onClick:Ht,...xe,...!ru(Me)&&{ownerState:{...He,...lt.ownerState}},className:J(ke.root,lt.className,i,V&&"MuiInputBase-readOnly"),children:[ve,m.jsx($b.Provider,{value:null,children:m.jsx(Ut,{"aria-invalid":Ie.error,"aria-describedby":o,autoComplete:s,autoFocus:a,defaultValue:c,disabled:Ie.disabled,id:v,onAnimationStart:he,name:D,placeholder:B,readOnly:V,required:Ie.required,rows:F,value:Be,onKeyDown:N,onKeyUp:M,type:se,...K,...!ru(Ut)&&{as:pe,ownerState:{...He,...K.ownerState}},ref:Oe,className:J(ke.input,K.className,V&&"MuiInputBase-readOnly"),onBlur:qe,onChange:Le,onFocus:Ne})}),g,R?R({...Ie,startAdornment:ve}):null]})]})});function XR(e){return le("MuiInput",e)}const Mc={...ql,...ie("MuiInput",["root","underline","input"])};function YR(e){return le("MuiOutlinedInput",e)}const xo={...ql,...ie("MuiOutlinedInput",["root","notchedOutline","input"])};function KR(e){return le("MuiFilledInput",e)}const Sa={...ql,...ie("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},ZR=ee(m.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),QR={entering:{opacity:1},entered:{opacity:1}},BO=k.forwardRef(function(t,n){const r=ga(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:s,appear:a=!0,children:i,easing:l,in:d,onEnter:u,onEntered:c,onEntering:h,onExit:f,onExited:g,onExiting:_,style:w,timeout:v=o,TransitionComponent:b=qo,...y}=t,S=k.useRef(null),$=Wt(S,ci(i),n),C=N=>M=>{if(N){const B=S.current;M===void 0?N(B):N(B,M)}},T=C(h),O=C((N,M)=>{TO(N);const B=ef({style:w,timeout:v,easing:l},{mode:"enter"});N.style.webkitTransition=r.transitions.create("opacity",B),N.style.transition=r.transitions.create("opacity",B),u&&u(N,M)}),D=C(c),x=C(_),A=C(N=>{const M=ef({style:w,timeout:v,easing:l},{mode:"exit"});N.style.webkitTransition=r.transitions.create("opacity",M),N.style.transition=r.transitions.create("opacity",M),f&&f(N)}),I=C(g),z=N=>{s&&s(S.current,N)};return m.jsx(b,{appear:a,in:d,nodeRef:S,onEnter:O,onEntered:D,onEntering:T,onExit:A,onExited:I,onExiting:x,addEndListener:z,timeout:v,...y,children:(N,M)=>k.cloneElement(i,{style:{opacity:0,visibility:N==="exited"&&!d?"hidden":void 0,...QR[N],...w,...i.props.style},ref:$,...M})})});function eP(e){return le("MuiBackdrop",e)}ie("MuiBackdrop",["root","invisible"]);const tP=e=>{const{ownerState:t,...n}=e;return n},nP=e=>{const{classes:t,invisible:n}=e;return de({root:["root",n&&"invisible"]},eP,t)},rP=G("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),WO=k.forwardRef(function(t,n){const r=ue({props:t,name:"MuiBackdrop"}),{children:o,className:s,component:a="div",invisible:i=!1,open:l,components:d={},componentsProps:u={},slotProps:c={},slots:h={},TransitionComponent:f,transitionDuration:g,..._}=r,w={...r,component:a,invisible:i},v=nP(w),b={transition:f,root:d.Root,...h},y={...u,...c},S={slots:b,slotProps:y},[$,C]=Pr("root",{elementType:rP,externalForwardedProps:S,className:J(v.root,s),ownerState:w}),[T,O]=Pr("transition",{elementType:BO,externalForwardedProps:S,ownerState:w}),D=tP(O);return m.jsx(T,{in:l,timeout:g,..._,...D,children:m.jsx($,{"aria-hidden":!0,...C,classes:v,ref:n,children:o})})});function oP(e){const{badgeContent:t,invisible:n=!1,max:r=99,showZero:o=!1}=e,s=uO({badgeContent:t,max:r});let a=n;n===!1&&t===0&&!o&&(a=!0);const{badgeContent:i,max:l=r}=a?s:e,d=i&&Number(i)>l?`${l}+`:i;return{badgeContent:i,invisible:a,max:l,displayValue:d}}function sP(e){return le("MuiBadge",e)}const Cs=ie("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]),Xg=10,Yg=4,aP=e=>{const{color:t,anchorOrigin:n,invisible:r,overlap:o,variant:s,classes:a={}}=e,i={root:["root"],badge:["badge",s,r&&"invisible",`anchorOrigin${W(n.vertical)}${W(n.horizontal)}`,`anchorOrigin${W(n.vertical)}${W(n.horizontal)}${W(o)}`,`overlap${W(o)}`,t!=="default"&&`color${W(t)}`]};return de(i,sP,a)},iP=G("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),lP=G("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${W(n.anchorOrigin.vertical)}${W(n.anchorOrigin.horizontal)}${W(n.overlap)}`],n.color!=="default"&&t[`color${W(n.color)}`],n.invisible&&t.invisible]}})(me(({theme:e})=>({display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:Xg*2,lineHeight:1,padding:"0 6px",height:Xg*2,borderRadius:Xg,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen}),variants:[...Object.entries(e.palette).filter(Nt(["contrastText"])).map(([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main,color:(e.vars||e).palette[t].contrastText}})),{props:{variant:"dot"},style:{borderRadius:Yg,height:Yg*2,minWidth:Yg*2,padding:0}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="rectangular",style:{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${Cs.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="rectangular",style:{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${Cs.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="rectangular",style:{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${Cs.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="rectangular",style:{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${Cs.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="circular",style:{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${Cs.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="circular",style:{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${Cs.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="circular",style:{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${Cs.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="circular",style:{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${Cs.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:{invisible:!0},style:{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}}]})));function tx(e){return{vertical:(e==null?void 0:e.vertical)??"top",horizontal:(e==null?void 0:e.horizontal)??"right"}}const ou=k.forwardRef(function(t,n){const r=ue({props:t,name:"MuiBadge"}),{anchorOrigin:o,className:s,classes:a,component:i,components:l={},componentsProps:d={},children:u,overlap:c="rectangular",color:h="default",invisible:f=!1,max:g=99,badgeContent:_,slots:w,slotProps:v,showZero:b=!1,variant:y="standard",...S}=r,{badgeContent:$,invisible:C,max:T,displayValue:O}=oP({max:g,invisible:f,badgeContent:_,showZero:b}),D=uO({anchorOrigin:tx(o),color:h,overlap:c,variant:y,badgeContent:_}),x=C||$==null&&y!=="dot",{color:A=h,overlap:I=c,anchorOrigin:z,variant:N=y}=x?D:r,M=tx(z),B=N!=="dot"?O:void 0,V={...r,badgeContent:$,invisible:x,max:T,displayValue:B,showZero:b,anchorOrigin:M,color:A,overlap:I,variant:N},R=aP(V),F=(w==null?void 0:w.root)??l.Root??iP,q=(w==null?void 0:w.badge)??l.Badge??lP,te=(v==null?void 0:v.root)??d.root,oe=(v==null?void 0:v.badge)??d.badge,ve=vo({elementType:F,externalSlotProps:te,externalForwardedProps:S,additionalProps:{ref:n,as:i},ownerState:V,className:J(te==null?void 0:te.className,R.root,s)}),se=vo({elementType:q,externalSlotProps:oe,ownerState:V,className:J(R.badge,oe==null?void 0:oe.className)});return m.jsxs(F,{...ve,children:[u,m.jsx(q,{...se,children:B})]})}),cP=ie("MuiBox",["root"]),dP=eu(),Ce=Xj({themeId:Fo,defaultTheme:dP,defaultClassName:cP.root,generateClassName:QT.generate}),uP=ee(m.jsx("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreHoriz"),pP=G(kr)(me(({theme:e})=>({display:"flex",marginLeft:`calc(${e.spacing(1)} * 0.5)`,marginRight:`calc(${e.spacing(1)} * 0.5)`,...e.palette.mode==="light"?{backgroundColor:e.palette.grey[100],color:e.palette.grey[700]}:{backgroundColor:e.palette.grey[700],color:e.palette.grey[100]},borderRadius:2,"&:hover, &:focus":{...e.palette.mode==="light"?{backgroundColor:e.palette.grey[200]}:{backgroundColor:e.palette.grey[600]}},"&:active":{boxShadow:e.shadows[0],...e.palette.mode==="light"?{backgroundColor:qh(e.palette.grey[200],.12)}:{backgroundColor:qh(e.palette.grey[600],.12)}}}))),hP=G(uP)({width:24,height:16});function fP(e){const{slots:t={},slotProps:n={},...r}=e,o=e;return m.jsx("li",{children:m.jsx(pP,{focusRipple:!0,...r,ownerState:o,children:m.jsx(hP,{as:t.CollapsedIcon,ownerState:o,...n.collapsedIcon})})})}function mP(e){return le("MuiBreadcrumbs",e)}const gP=ie("MuiBreadcrumbs",["root","ol","li","separator"]),_P=e=>{const{classes:t}=e;return de({root:["root"],li:["li"],ol:["ol"],separator:["separator"]},mP,t)},vP=G(ls,{name:"MuiBreadcrumbs",slot:"Root",overridesResolver:(e,t)=>[{[`& .${gP.li}`]:t.li},t.root]})({}),yP=G("ol",{name:"MuiBreadcrumbs",slot:"Ol",overridesResolver:(e,t)=>t.ol})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"}),bP=G("li",{name:"MuiBreadcrumbs",slot:"Separator",overridesResolver:(e,t)=>t.separator})({display:"flex",userSelect:"none",marginLeft:8,marginRight:8});function wP(e,t,n,r){return e.reduce((o,s,a)=>(a{const O=()=>{w(!0);const D=S.current.querySelector("a[href],button,[tabindex]");D&&D.focus()};return c+u>=T.length?T:[...T.slice(0,c),m.jsx(fP,{"aria-label":d,slots:{CollapsedIcon:i.CollapsedIcon},slotProps:{collapsedIcon:y},onClick:O},"ellipsis"),...T.slice(T.length-u,T.length)]},C=k.Children.toArray(o).filter(T=>k.isValidElement(T)).map((T,O)=>m.jsx("li",{className:b.li,children:T},`child-${O}`));return m.jsx(vP,{ref:n,component:a,color:"textSecondary",className:J(b.root,s),ownerState:v,...g,children:m.jsx(yP,{className:b.ol,ref:S,ownerState:v,children:wP(_||h&&C.length<=h?C:$(C),b.separator,f,v)})})});function xP(e){return le("MuiButton",e)}const Ti=ie("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),kP=k.createContext({}),$P=k.createContext(void 0),CP=e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:s,classes:a}=e,i={root:["root",s,`${s}${W(t)}`,`size${W(o)}`,`${s}Size${W(o)}`,`color${W(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${W(o)}`],endIcon:["icon","endIcon",`iconSize${W(o)}`]},l=de(i,xP,a);return{...a,...l}},HO=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],EP=G(kr,{shouldForwardProp:e=>pn(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${W(n.color)}`],t[`size${W(n.size)}`],t[`${n.variant}Size${W(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(me(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],n=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${Ti.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${Ti.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${Ti.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${Ti.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(e.palette).filter(Nt()).map(([r])=>({props:{color:r},style:{"--variant-textColor":(e.vars||e).palette[r].main,"--variant-outlinedColor":(e.vars||e).palette[r].main,"--variant-outlinedBorder":e.vars?`rgba(${e.vars.palette[r].mainChannel} / 0.5)`:Fe(e.palette[r].main,.5),"--variant-containedColor":(e.vars||e).palette[r].contrastText,"--variant-containedBg":(e.vars||e).palette[r].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[r].dark,"--variant-textBg":e.vars?`rgba(${e.vars.palette[r].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Fe(e.palette[r].main,e.palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[r].main,"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette[r].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Fe(e.palette[r].main,e.palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:n,"--variant-textBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Fe(e.palette.text.primary,e.palette.action.hoverOpacity),"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Fe(e.palette.text.primary,e.palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Ti.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Ti.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}}]}})),TP=G("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${W(n.size)}`]]}})({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},...HO]}),OP=G("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${W(n.size)}`]]}})({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},...HO]}),_e=k.forwardRef(function(t,n){const r=k.useContext(kP),o=k.useContext($P),s=Zd(r,t),a=ue({props:s,name:"MuiButton"}),{children:i,color:l="primary",component:d="button",className:u,disabled:c=!1,disableElevation:h=!1,disableFocusRipple:f=!1,endIcon:g,focusVisibleClassName:_,fullWidth:w=!1,size:v="medium",startIcon:b,type:y,variant:S="text",...$}=a,C={...a,color:l,component:d,disabled:c,disableElevation:h,disableFocusRipple:f,fullWidth:w,size:v,type:y,variant:S},T=CP(C),O=b&&m.jsx(TP,{className:T.startIcon,ownerState:C,children:b}),D=g&&m.jsx(OP,{className:T.endIcon,ownerState:C,children:g}),x=o||"";return m.jsxs(EP,{ownerState:C,className:J(r.className,T.root,u,x),component:d,disabled:c,focusRipple:!f,focusVisibleClassName:J(T.focusVisible,_),ref:n,type:y,...$,classes:T,children:[O,i,D]})});function DP(e){return le("MuiCard",e)}ie("MuiCard",["root"]);const AP=e=>{const{classes:t}=e;return de({root:["root"]},DP,t)},NP=G(_a,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})({overflow:"hidden"}),MP=k.forwardRef(function(t,n){const r=ue({props:t,name:"MuiCard"}),{className:o,raised:s=!1,...a}=r,i={...r,raised:s},l=AP(i);return m.jsx(NP,{className:J(l.root,o),elevation:s?8:void 0,ref:n,ownerState:i,...a})});function jP(e){return le("MuiCardActionArea",e)}const Kg=ie("MuiCardActionArea",["root","focusVisible","focusHighlight"]),IP=e=>{const{classes:t}=e;return de({root:["root"],focusHighlight:["focusHighlight"]},jP,t)},zP=G(kr,{name:"MuiCardActionArea",slot:"Root",overridesResolver:(e,t)=>t.root})(me(({theme:e})=>({display:"block",textAlign:"inherit",borderRadius:"inherit",width:"100%",[`&:hover .${Kg.focusHighlight}`]:{opacity:(e.vars||e).palette.action.hoverOpacity,"@media (hover: none)":{opacity:0}},[`&.${Kg.focusVisible} .${Kg.focusHighlight}`]:{opacity:(e.vars||e).palette.action.focusOpacity}}))),RP=G("span",{name:"MuiCardActionArea",slot:"FocusHighlight",overridesResolver:(e,t)=>t.focusHighlight})(me(({theme:e})=>({overflow:"hidden",pointerEvents:"none",position:"absolute",top:0,right:0,bottom:0,left:0,borderRadius:"inherit",opacity:0,backgroundColor:"currentcolor",transition:e.transitions.create("opacity",{duration:e.transitions.duration.short})}))),PP=k.forwardRef(function(t,n){const r=ue({props:t,name:"MuiCardActionArea"}),{children:o,className:s,focusVisibleClassName:a,...i}=r,l=r,d=IP(l);return m.jsxs(zP,{className:J(d.root,s),focusVisibleClassName:J(a,d.focusVisible),ref:n,ownerState:l,...i,children:[o,m.jsx(RP,{className:d.focusHighlight,ownerState:l})]})});function LP(e){return le("MuiCardActions",e)}ie("MuiCardActions",["root","spacing"]);const FP=e=>{const{classes:t,disableSpacing:n}=e;return de({root:["root",!n&&"spacing"]},LP,t)},BP=G("div",{name:"MuiCardActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})({display:"flex",alignItems:"center",padding:8,variants:[{props:{disableSpacing:!1},style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),WP=k.forwardRef(function(t,n){const r=ue({props:t,name:"MuiCardActions"}),{disableSpacing:o=!1,className:s,...a}=r,i={...r,disableSpacing:o},l=FP(i);return m.jsx(BP,{className:J(l.root,s),ownerState:i,ref:n,...a})});function HP(e){return le("MuiCardContent",e)}ie("MuiCardContent",["root"]);const UP=e=>{const{classes:t}=e;return de({root:["root"]},HP,t)},VP=G("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:16,"&:last-child":{paddingBottom:24}}),GP=k.forwardRef(function(t,n){const r=ue({props:t,name:"MuiCardContent"}),{className:o,component:s="div",...a}=r,i={...r,component:s},l=UP(i);return m.jsx(VP,{as:s,className:J(l.root,o),ownerState:i,ref:n,...a})});function qP(e){return le("MuiCardMedia",e)}ie("MuiCardMedia",["root","media","img"]);const JP=e=>{const{classes:t,isMediaComponent:n,isImageComponent:r}=e;return de({root:["root",n&&"media",r&&"img"]},qP,t)},XP=G("div",{name:"MuiCardMedia",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{isMediaComponent:r,isImageComponent:o}=n;return[t.root,r&&t.media,o&&t.img]}})({display:"block",backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundPosition:"center",variants:[{props:{isMediaComponent:!0},style:{width:"100%"}},{props:{isImageComponent:!0},style:{objectFit:"cover"}}]}),YP=["video","audio","picture","iframe","img"],KP=["picture","img"],ZP=k.forwardRef(function(t,n){const r=ue({props:t,name:"MuiCardMedia"}),{children:o,className:s,component:a="div",image:i,src:l,style:d,...u}=r,c=YP.includes(a),h=!c&&i?{backgroundImage:`url("${i}")`,...d}:d,f={...r,component:a,isMediaComponent:c,isImageComponent:KP.includes(a)},g=JP(f);return m.jsx(XP,{className:J(g.root,s),as:a,role:!c&&i?"img":void 0,ref:n,style:h,ownerState:f,src:c?i||l:void 0,...u,children:o})});function QP(e){return le("PrivateSwitchBase",e)}ie("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const e8=e=>{const{classes:t,checked:n,disabled:r,edge:o}=e,s={root:["root",n&&"checked",r&&"disabled",o&&`edge${W(o)}`],input:["input"]};return de(s,QP,t)},t8=G(kr)({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:e,ownerState:t})=>e==="start"&&t.size!=="small",style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:e,ownerState:t})=>e==="end"&&t.size!=="small",style:{marginRight:-12}}]}),n8=G("input",{shouldForwardProp:pn})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),Eb=k.forwardRef(function(t,n){const{autoFocus:r,checked:o,checkedIcon:s,className:a,defaultChecked:i,disabled:l,disableFocusRipple:d=!1,edge:u=!1,icon:c,id:h,inputProps:f,inputRef:g,name:_,onBlur:w,onChange:v,onFocus:b,readOnly:y,required:S=!1,tabIndex:$,type:C,value:T,...O}=t,[D,x]=Jh({controlled:o,default:!!i,name:"SwitchBase",state:"checked"}),A=Jo(),I=F=>{b&&b(F),A&&A.onFocus&&A.onFocus(F)},z=F=>{w&&w(F),A&&A.onBlur&&A.onBlur(F)},N=F=>{if(F.nativeEvent.defaultPrevented)return;const q=F.target.checked;x(q),v&&v(F,q)};let M=l;A&&typeof M>"u"&&(M=A.disabled);const B=C==="checkbox"||C==="radio",V={...t,checked:D,disabled:M,disableFocusRipple:d,edge:u},R=e8(V);return m.jsxs(t8,{component:"span",className:J(R.root,a),centerRipple:!0,focusRipple:!d,disabled:M,tabIndex:null,role:void 0,onFocus:I,onBlur:z,ownerState:V,ref:n,...O,children:[m.jsx(n8,{autoFocus:r,checked:o,defaultChecked:i,className:R.input,disabled:M,id:B?h:void 0,name:_,onChange:N,readOnly:y,ref:g,required:S,ownerState:V,tabIndex:$,type:C,...C==="checkbox"&&T===void 0?{}:{value:T},...f}),D?s:c]})}),r8=ee(m.jsx("path",{d:"M19 5v14H5V5h14m0-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-2z"}),"CheckBoxOutlineBlank"),o8=ee(m.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),s8=ee(m.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function a8(e){return le("MuiCheckbox",e)}const Zg=ie("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),i8=e=>{const{classes:t,indeterminate:n,color:r,size:o}=e,s={root:["root",n&&"indeterminate",`color${W(r)}`,`size${W(o)}`]},a=de(s,a8,t);return{...t,...a}},l8=G(Eb,{shouldForwardProp:e=>pn(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${W(n.size)}`],n.color!=="default"&&t[`color${W(n.color)}`]]}})(me(({theme:e})=>({color:(e.vars||e).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Fe(e.palette.action.active,e.palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(Nt()).map(([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Fe(e.palette[t].main,e.palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(Nt()).map(([t])=>({props:{color:t},style:{[`&.${Zg.checked}, &.${Zg.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${Zg.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),c8=m.jsx(o8,{}),d8=m.jsx(r8,{}),u8=m.jsx(s8,{}),xt=k.forwardRef(function(t,n){const r=ue({props:t,name:"MuiCheckbox"}),{checkedIcon:o=c8,color:s="primary",icon:a=d8,indeterminate:i=!1,indeterminateIcon:l=u8,inputProps:d,size:u="medium",disableRipple:c=!1,className:h,...f}=r,g=i?l:a,_=i?l:o,w={...r,disableRipple:c,color:s,indeterminate:i,size:u},v=i8(w);return m.jsx(l8,{type:"checkbox",inputProps:{"data-indeterminate":i,...d},icon:k.cloneElement(g,{fontSize:g.props.fontSize??u}),checkedIcon:k.cloneElement(_,{fontSize:_.props.fontSize??u}),ownerState:w,ref:n,className:J(v.root,h),disableRipple:c,...f,classes:v})});function p8(e){return le("MuiCircularProgress",e)}ie("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const Es=44,qv=ma` + 0% { + transform: rotate(0deg); + } + + 100% { + transform: rotate(360deg); + } +`,Jv=ma` + 0% { + stroke-dasharray: 1px, 200px; + stroke-dashoffset: 0; + } + + 50% { + stroke-dasharray: 100px, 200px; + stroke-dashoffset: -15px; + } + + 100% { + stroke-dasharray: 100px, 200px; + stroke-dashoffset: -125px; + } +`,h8=typeof qv!="string"?ac` + animation: ${qv} 1.4s linear infinite; + `:null,f8=typeof Jv!="string"?ac` + animation: ${Jv} 1.4s ease-in-out infinite; + `:null,m8=e=>{const{classes:t,variant:n,color:r,disableShrink:o}=e,s={root:["root",n,`color${W(r)}`],svg:["svg"],circle:["circle",`circle${W(n)}`,o&&"circleDisableShrink"]};return de(s,p8,t)},g8=G("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${W(n.color)}`]]}})(me(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:h8||{animation:`${qv} 1.4s linear infinite`}},...Object.entries(e.palette).filter(Nt()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),_8=G("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),v8=G("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${W(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(me(({theme:e})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:t})=>t.variant==="indeterminate"&&!t.disableShrink,style:f8||{animation:`${Jv} 1.4s ease-in-out infinite`}}]}))),Un=k.forwardRef(function(t,n){const r=ue({props:t,name:"MuiCircularProgress"}),{className:o,color:s="primary",disableShrink:a=!1,size:i=40,style:l,thickness:d=3.6,value:u=0,variant:c="indeterminate",...h}=r,f={...r,color:s,disableShrink:a,size:i,thickness:d,value:u,variant:c},g=m8(f),_={},w={},v={};if(c==="determinate"){const b=2*Math.PI*((Es-d)/2);_.strokeDasharray=b.toFixed(3),v["aria-valuenow"]=Math.round(u),_.strokeDashoffset=`${((100-u)/100*b).toFixed(3)}px`,w.transform="rotate(-90deg)"}return m.jsx(g8,{className:J(g.root,o),style:{width:i,height:i,...w,...l},ownerState:f,ref:n,role:"progressbar",...v,...h,children:m.jsx(_8,{className:g.svg,ownerState:f,viewBox:`${Es/2} ${Es/2} ${Es} ${Es}`,children:m.jsx(v8,{className:g.circle,style:_,ownerState:f,cx:Es,cy:Es,r:(Es-d)/2,fill:"none",strokeWidth:d})})})});function nx(e){return e.substring(2).toLowerCase()}function y8(e,t){return t.documentElement.clientWidth(setTimeout(()=>{l.current=!0},0),()=>{l.current=!1}),[]);const u=Wt(ci(t),i),c=tr(g=>{const _=d.current;d.current=!1;const w=Sn(i.current);if(!l.current||!i.current||"clientX"in g&&y8(g,w))return;if(a.current){a.current=!1;return}let v;g.composedPath?v=g.composedPath().includes(i.current):v=!w.documentElement.contains(g.target)||i.current.contains(g.target),!v&&(n||!_)&&o(g)}),h=g=>_=>{d.current=!0;const w=t.props[g];w&&w(_)},f={ref:u};return s!==!1&&(f[s]=h(s)),k.useEffect(()=>{if(s!==!1){const g=nx(s),_=Sn(i.current),w=()=>{a.current=!0};return _.addEventListener(g,c),_.addEventListener("touchmove",w),()=>{_.removeEventListener(g,c),_.removeEventListener("touchmove",w)}}},[c,s]),r!==!1&&(f[r]=h(r)),k.useEffect(()=>{if(r!==!1){const g=nx(r),_=Sn(i.current);return _.addEventListener(g,c),()=>{_.removeEventListener(g,c)}}},[c,r]),m.jsx(k.Fragment,{children:k.cloneElement(t,f)})}function w8(e){const t=Sn(e);return t.body===e?_o(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function kd(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function rx(e){return parseInt(_o(e).getComputedStyle(e).paddingRight,10)||0}function S8(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function ox(e,t,n,r,o){const s=[t,n,...r];[].forEach.call(e.children,a=>{const i=!s.includes(a),l=!S8(a);i&&l&&kd(a,o)})}function Qg(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function x8(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(w8(r)){const a=dO(_o(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${rx(r)+a}px`;const i=Sn(r).querySelectorAll(".mui-fixed");[].forEach.call(i,l=>{n.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${rx(l)+a}px`})}let s;if(r.parentNode instanceof DocumentFragment)s=Sn(r).body;else{const a=r.parentElement,i=_o(r);s=(a==null?void 0:a.nodeName)==="HTML"&&i.getComputedStyle(a).overflowY==="scroll"?a:r}n.push({value:s.style.overflow,property:"overflow",el:s},{value:s.style.overflowX,property:"overflow-x",el:s},{value:s.style.overflowY,property:"overflow-y",el:s}),s.style.overflow="hidden"}return()=>{n.forEach(({value:s,el:a,property:i})=>{s?a.style.setProperty(i,s):a.style.removeProperty(i)})}}function k8(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class $8{constructor(){this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&kd(t.modalRef,!1);const o=k8(n);ox(n,t.mount,t.modalRef,o,!0);const s=Qg(this.containers,a=>a.container===n);return s!==-1?(this.containers[s].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:o}),r)}mount(t,n){const r=Qg(this.containers,s=>s.modals.includes(t)),o=this.containers[r];o.restore||(o.restore=x8(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=Qg(this.containers,a=>a.modals.includes(t)),s=this.containers[o];if(s.modals.splice(s.modals.indexOf(t),1),this.modals.splice(r,1),s.modals.length===0)s.restore&&s.restore(),t.modalRef&&kd(t.modalRef,n),ox(s.container,t.mount,t.modalRef,s.hiddenSiblings,!1),this.containers.splice(o,1);else{const a=s.modals[s.modals.length-1];a.modalRef&&kd(a.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const C8=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function E8(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function T8(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function O8(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||T8(e))}function D8(e){const t=[],n=[];return Array.from(e.querySelectorAll(C8)).forEach((r,o)=>{const s=E8(r);s===-1||!O8(r)||(s===0?t.push(r):n.push({documentOrder:o,tabIndex:s,node:r}))}),n.sort((r,o)=>r.tabIndex===o.tabIndex?r.documentOrder-o.documentOrder:r.tabIndex-o.tabIndex).map(r=>r.node).concat(t)}function A8(){return!0}function N8(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:s=D8,isEnabled:a=A8,open:i}=e,l=k.useRef(!1),d=k.useRef(null),u=k.useRef(null),c=k.useRef(null),h=k.useRef(null),f=k.useRef(!1),g=k.useRef(null),_=Wt(ci(t),g),w=k.useRef(null);k.useEffect(()=>{!i||!g.current||(f.current=!n)},[n,i]),k.useEffect(()=>{if(!i||!g.current)return;const y=Sn(g.current);return g.current.contains(y.activeElement)||(g.current.hasAttribute("tabIndex")||g.current.setAttribute("tabIndex","-1"),f.current&&g.current.focus()),()=>{o||(c.current&&c.current.focus&&(l.current=!0,c.current.focus()),c.current=null)}},[i]),k.useEffect(()=>{if(!i||!g.current)return;const y=Sn(g.current),S=T=>{w.current=T,!(r||!a()||T.key!=="Tab")&&y.activeElement===g.current&&T.shiftKey&&(l.current=!0,u.current&&u.current.focus())},$=()=>{var D,x;const T=g.current;if(T===null)return;if(!y.hasFocus()||!a()||l.current){l.current=!1;return}if(T.contains(y.activeElement)||r&&y.activeElement!==d.current&&y.activeElement!==u.current)return;if(y.activeElement!==h.current)h.current=null;else if(h.current!==null)return;if(!f.current)return;let O=[];if((y.activeElement===d.current||y.activeElement===u.current)&&(O=s(g.current)),O.length>0){const A=!!((D=w.current)!=null&&D.shiftKey&&((x=w.current)==null?void 0:x.key)==="Tab"),I=O[0],z=O[O.length-1];typeof I!="string"&&typeof z!="string"&&(A?z.focus():I.focus())}else T.focus()};y.addEventListener("focusin",$),y.addEventListener("keydown",S,!0);const C=setInterval(()=>{y.activeElement&&y.activeElement.tagName==="BODY"&&$()},50);return()=>{clearInterval(C),y.removeEventListener("focusin",$),y.removeEventListener("keydown",S,!0)}},[n,r,o,a,i,s]);const v=y=>{c.current===null&&(c.current=y.relatedTarget),f.current=!0,h.current=y.target;const S=t.props.onFocus;S&&S(y)},b=y=>{c.current===null&&(c.current=y.relatedTarget),f.current=!0};return m.jsxs(k.Fragment,{children:[m.jsx("div",{tabIndex:i?0:-1,onFocus:b,ref:d,"data-testid":"sentinelStart"}),k.cloneElement(t,{ref:_,onFocus:v}),m.jsx("div",{tabIndex:i?0:-1,onFocus:b,ref:u,"data-testid":"sentinelEnd"})]})}function M8(e){return typeof e=="function"?e():e}function j8(e){return e?e.props.hasOwnProperty("in"):!1}const mp=new $8;function I8(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,closeAfterTransition:o=!1,onTransitionEnter:s,onTransitionExited:a,children:i,onClose:l,open:d,rootRef:u}=e,c=k.useRef({}),h=k.useRef(null),f=k.useRef(null),g=Wt(f,u),[_,w]=k.useState(!d),v=j8(i);let b=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(b=!1);const y=()=>Sn(h.current),S=()=>(c.current.modalRef=f.current,c.current.mount=h.current,c.current),$=()=>{mp.mount(S(),{disableScrollLock:r}),f.current&&(f.current.scrollTop=0)},C=tr(()=>{const M=M8(t)||y().body;mp.add(S(),M),f.current&&$()}),T=()=>mp.isTopModal(S()),O=tr(M=>{h.current=M,M&&(d&&T()?$():f.current&&kd(f.current,b))}),D=k.useCallback(()=>{mp.remove(S(),b)},[b]);k.useEffect(()=>()=>{D()},[D]),k.useEffect(()=>{d?C():(!v||!o)&&D()},[d,D,v,o,C]);const x=M=>B=>{var V;(V=M.onKeyDown)==null||V.call(M,B),!(B.key!=="Escape"||B.which===229||!T())&&(n||(B.stopPropagation(),l&&l(B,"escapeKeyDown")))},A=M=>B=>{var V;(V=M.onClick)==null||V.call(M,B),B.target===B.currentTarget&&l&&l(B,"backdropClick")};return{getRootProps:(M={})=>{const B=Yh(e);delete B.onTransitionEnter,delete B.onTransitionExited;const V={...B,...M};return{role:"presentation",...V,onKeyDown:x(V),ref:g}},getBackdropProps:(M={})=>{const B=M;return{"aria-hidden":!0,...B,onClick:A(B),open:d}},getTransitionProps:()=>{const M=()=>{w(!1),s&&s()},B=()=>{w(!0),a&&a(),o&&D()};return{onEnter:zv(M,i==null?void 0:i.props.onEnter),onExited:zv(B,i==null?void 0:i.props.onExited)}},rootRef:g,portalRef:O,isTopModal:T,exited:_,hasTransition:v}}function z8(e){return le("MuiModal",e)}ie("MuiModal",["root","hidden","backdrop"]);const R8=e=>{const{open:t,exited:n,classes:r}=e;return de({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},z8,r)},P8=G("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(me(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:t})=>!t.open&&t.exited,style:{visibility:"hidden"}}]}))),L8=G(WO,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),UO=k.forwardRef(function(t,n){const r=ue({name:"MuiModal",props:t}),{BackdropComponent:o=L8,BackdropProps:s,classes:a,className:i,closeAfterTransition:l=!1,children:d,container:u,component:c,components:h={},componentsProps:f={},disableAutoFocus:g=!1,disableEnforceFocus:_=!1,disableEscapeKeyDown:w=!1,disablePortal:v=!1,disableRestoreFocus:b=!1,disableScrollLock:y=!1,hideBackdrop:S=!1,keepMounted:$=!1,onBackdropClick:C,onClose:T,onTransitionEnter:O,onTransitionExited:D,open:x,slotProps:A={},slots:I={},theme:z,...N}=r,M={...r,closeAfterTransition:l,disableAutoFocus:g,disableEnforceFocus:_,disableEscapeKeyDown:w,disablePortal:v,disableRestoreFocus:b,disableScrollLock:y,hideBackdrop:S,keepMounted:$},{getRootProps:B,getBackdropProps:V,getTransitionProps:R,portalRef:F,isTopModal:q,exited:te,hasTransition:oe}=I8({...M,rootRef:n}),ve={...M,exited:te},se=R8(ve),Te={};if(d.props.tabIndex===void 0&&(Te.tabIndex="-1"),oe){const{onEnter:ye,onExited:Ze}=R();Te.onEnter=ye,Te.onExited=Ze}const xe={...N,slots:{root:h.Root,backdrop:h.Backdrop,...I},slotProps:{...f,...A}},[Be,Ue]=Pr("root",{elementType:P8,externalForwardedProps:xe,getSlotProps:B,additionalProps:{ref:n,as:c},ownerState:ve,className:J(i,se==null?void 0:se.root,!ve.open&&ve.exited&&(se==null?void 0:se.hidden))}),[Ve,$e]=Pr("backdrop",{elementType:o,externalForwardedProps:xe,additionalProps:s,getSlotProps:ye=>V({...ye,onClick:Ze=>{C&&C(Ze),ye!=null&&ye.onClick&&ye.onClick(Ze)}}),className:J(s==null?void 0:s.className,se==null?void 0:se.backdrop),ownerState:ve}),Oe=Wt(s==null?void 0:s.ref,$e.ref);return!$&&!x&&(!oe||te)?null:m.jsx(LO,{ref:F,container:u,disablePortal:v,children:m.jsxs(Be,{...Ue,children:[!S&&o?m.jsx(Ve,{...$e,ref:Oe}):null,m.jsx(N8,{disableEnforceFocus:_,disableAutoFocus:g,disableRestoreFocus:b,isEnabled:q,open:x,children:k.cloneElement(d,Te)})]})})});function F8(e){return le("MuiDialog",e)}const e_=ie("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),VO=k.createContext({}),B8=G(WO,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),W8=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:o,fullScreen:s}=e,a={root:["root"],container:["container",`scroll${W(n)}`],paper:["paper",`paperScroll${W(n)}`,`paperWidth${W(String(r))}`,o&&"paperFullWidth",s&&"paperFullScreen"]};return de(a,F8,t)},H8=G(UO,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),U8=G("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${W(n.scroll)}`]]}})({height:"100%","@media print":{height:"auto"},outline:0,variants:[{props:{scroll:"paper"},style:{display:"flex",justifyContent:"center",alignItems:"center"}},{props:{scroll:"body"},style:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}}]}),V8=G(_a,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${W(n.scroll)}`],t[`paperWidth${W(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(me(({theme:e})=>({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"},variants:[{props:{scroll:"paper"},style:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"}},{props:{scroll:"body"},style:{display:"inline-block",verticalAlign:"middle",textAlign:"initial"}},{props:({ownerState:t})=>!t.maxWidth,style:{maxWidth:"calc(100% - 64px)"}},{props:{maxWidth:"xs"},style:{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${e_.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}}},...Object.keys(e.breakpoints.values).filter(t=>t!=="xs").map(t=>({props:{maxWidth:t},style:{maxWidth:`${e.breakpoints.values[t]}${e.breakpoints.unit}`,[`&.${e_.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t]+32*2)]:{maxWidth:"calc(100% - 64px)"}}}})),{props:({ownerState:t})=>t.fullWidth,style:{width:"calc(100% - 64px)"}},{props:({ownerState:t})=>t.fullScreen,style:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${e_.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),ft=k.forwardRef(function(t,n){const r=ue({props:t,name:"MuiDialog"}),o=ga(),s={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":a,"aria-labelledby":i,"aria-modal":l=!0,BackdropComponent:d,BackdropProps:u,children:c,className:h,disableEscapeKeyDown:f=!1,fullScreen:g=!1,fullWidth:_=!1,maxWidth:w="sm",onBackdropClick:v,onClick:b,onClose:y,open:S,PaperComponent:$=_a,PaperProps:C={},scroll:T="paper",TransitionComponent:O=BO,transitionDuration:D=s,TransitionProps:x,...A}=r,I={...r,disableEscapeKeyDown:f,fullScreen:g,fullWidth:_,maxWidth:w,scroll:T},z=W8(I),N=k.useRef(),M=F=>{N.current=F.target===F.currentTarget},B=F=>{b&&b(F),N.current&&(N.current=null,v&&v(F),y&&y(F,"backdropClick"))},V=Mm(i),R=k.useMemo(()=>({titleId:V}),[V]);return m.jsx(H8,{className:J(z.root,h),closeAfterTransition:!0,components:{Backdrop:B8},componentsProps:{backdrop:{transitionDuration:D,as:d,...u}},disableEscapeKeyDown:f,onClose:y,open:S,ref:n,onClick:B,ownerState:I,...A,children:m.jsx(O,{appear:!0,in:S,timeout:D,role:"presentation",...x,children:m.jsx(U8,{className:J(z.container),onMouseDown:M,ownerState:I,children:m.jsx(V8,{as:$,elevation:24,role:"dialog","aria-describedby":a,"aria-labelledby":V,"aria-modal":l,...C,className:J(z.paper,C.className),ownerState:I,children:m.jsx(VO.Provider,{value:R,children:c})})})})})});function G8(e){return le("MuiDialogActions",e)}ie("MuiDialogActions",["root","spacing"]);const q8=e=>{const{classes:t,disableSpacing:n}=e;return de({root:["root",!n&&"spacing"]},G8,t)},J8=G("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto",variants:[{props:({ownerState:e})=>!e.disableSpacing,style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),Et=k.forwardRef(function(t,n){const r=ue({props:t,name:"MuiDialogActions"}),{className:o,disableSpacing:s=!1,...a}=r,i={...r,disableSpacing:s},l=q8(i);return m.jsx(J8,{className:J(l.root,o),ownerState:i,ref:n,...a})});function X8(e){return le("MuiDialogContent",e)}ie("MuiDialogContent",["root","dividers"]);function Y8(e){return le("MuiDialogTitle",e)}const K8=ie("MuiDialogTitle",["root"]),Z8=e=>{const{classes:t,dividers:n}=e;return de({root:["root",n&&"dividers"]},X8,t)},Q8=G("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(me(({theme:e})=>({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px",variants:[{props:({ownerState:t})=>t.dividers,style:{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>!t.dividers,style:{[`.${K8.root} + &`]:{paddingTop:0}}}]}))),Tt=k.forwardRef(function(t,n){const r=ue({props:t,name:"MuiDialogContent"}),{className:o,dividers:s=!1,...a}=r,i={...r,dividers:s},l=Z8(i);return m.jsx(Q8,{className:J(l.root,o),ownerState:i,ref:n,...a})});function e9(e){return le("MuiDialogContentText",e)}ie("MuiDialogContentText",["root"]);const t9=e=>{const{classes:t}=e,r=de({root:["root"]},e9,t);return{...t,...r}},n9=G(ls,{shouldForwardProp:e=>pn(e)||e==="classes",name:"MuiDialogContentText",slot:"Root",overridesResolver:(e,t)=>t.root})({}),ds=k.forwardRef(function(t,n){const r=ue({props:t,name:"MuiDialogContentText"}),{children:o,className:s,...a}=r,i=t9(a);return m.jsx(n9,{component:"p",variant:"body1",color:"textSecondary",ref:n,ownerState:a,className:J(i.root,s),...r,classes:i})}),r9=e=>{const{classes:t}=e;return de({root:["root"]},Y8,t)},o9=G(ls,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),mt=k.forwardRef(function(t,n){const r=ue({props:t,name:"MuiDialogTitle"}),{className:o,id:s,...a}=r,i=r,l=r9(i),{titleId:d=s}=k.useContext(VO);return m.jsx(o9,{component:"h2",className:J(l.root,o),ownerState:i,ref:n,variant:"h6",id:s??d,...a})}),sx=ie("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);function s9(e){return le("MuiFab",e)}const ax=ie("MuiFab",["root","primary","secondary","extended","circular","focusVisible","disabled","colorInherit","sizeSmall","sizeMedium","sizeLarge","info","error","warning","success"]),a9=e=>{const{color:t,variant:n,classes:r,size:o}=e,s={root:["root",n,`size${W(o)}`,t==="inherit"?"colorInherit":t]},a=de(s,s9,r);return{...r,...a}},i9=G(kr,{name:"MuiFab",slot:"Root",shouldForwardProp:e=>pn(e)||e==="classes",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${W(n.size)}`],n.color==="inherit"&&t.colorInherit,t[W(n.size)],t[n.color]]}})(me(({theme:e})=>{var t,n;return{...e.typography.button,minHeight:36,transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),borderRadius:"50%",padding:0,minWidth:0,width:56,height:56,zIndex:(e.vars||e).zIndex.fab,boxShadow:(e.vars||e).shadows[6],"&:active":{boxShadow:(e.vars||e).shadows[12]},color:e.vars?e.vars.palette.text.primary:(n=(t=e.palette).getContrastText)==null?void 0:n.call(t,e.palette.grey[300]),backgroundColor:(e.vars||e).palette.grey[300],"&:hover":{backgroundColor:(e.vars||e).palette.grey.A100,"@media (hover: none)":{backgroundColor:(e.vars||e).palette.grey[300]},textDecoration:"none"},[`&.${ax.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},variants:[{props:{size:"small"},style:{width:40,height:40}},{props:{size:"medium"},style:{width:48,height:48}},{props:{variant:"extended"},style:{borderRadius:48/2,padding:"0 16px",width:"auto",minHeight:"auto",minWidth:48,height:48}},{props:{variant:"extended",size:"small"},style:{width:"auto",padding:"0 8px",borderRadius:34/2,minWidth:34,height:34}},{props:{variant:"extended",size:"medium"},style:{width:"auto",padding:"0 16px",borderRadius:40/2,minWidth:40,height:40}},{props:{color:"inherit"},style:{color:"inherit"}}]}}),me(({theme:e})=>({variants:[...Object.entries(e.palette).filter(Nt(["dark","contrastText"])).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].contrastText,backgroundColor:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:(e.vars||e).palette[t].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t].main}}}}))]})),me(({theme:e})=>({[`&.${ax.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}))),Ct=k.forwardRef(function(t,n){const r=ue({props:t,name:"MuiFab"}),{children:o,className:s,color:a="default",component:i="button",disabled:l=!1,disableFocusRipple:d=!1,focusVisibleClassName:u,size:c="large",variant:h="circular",...f}=r,g={...r,color:a,component:i,disabled:l,disableFocusRipple:d,size:c,variant:h},_=a9(g);return m.jsx(i9,{className:J(_.root,s),component:i,disabled:l,focusRipple:!d,focusVisibleClassName:J(_.focusVisible,u),ownerState:g,ref:n,...f,classes:_,children:o})}),l9=e=>{const{classes:t,disableUnderline:n,startAdornment:r,endAdornment:o,size:s,hiddenLabel:a,multiline:i}=e,l={root:["root",!n&&"underline",r&&"adornedStart",o&&"adornedEnd",s==="small"&&`size${W(s)}`,a&&"hiddenLabel",i&&"multiline"],input:["input"]},d=de(l,KR,t);return{...t,...d}},c9=G(Lm,{shouldForwardProp:e=>pn(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Rm(e,t),!n.disableUnderline&&t.underline]}})(me(({theme:e})=>{const t=e.palette.mode==="light",n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",o=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:o,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r}},[`&.${Sa.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${Sa.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s},variants:[{props:({ownerState:a})=>!a.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Sa.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Sa.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Sa.disabled}, .${Sa.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Sa.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(Nt()).map(([a])=>{var i;return{props:{disableUnderline:!1,color:a},style:{"&::after":{borderBottom:`2px solid ${(i=(e.vars||e).palette[a])==null?void 0:i.main}`}}}}),{props:({ownerState:a})=>a.startAdornment,style:{paddingLeft:12}},{props:({ownerState:a})=>a.endAdornment,style:{paddingRight:12}},{props:({ownerState:a})=>a.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:a,size:i})=>a.multiline&&i==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:a})=>a.multiline&&a.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:a})=>a.multiline&&a.hiddenLabel&&a.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),d9=G(Fm,{name:"MuiFilledInput",slot:"Input",overridesResolver:Pm})(me(({theme:e})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:t})=>t.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}},{props:({ownerState:t})=>t.hiddenLabel&&t.size==="small",style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:t})=>t.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),of=k.forwardRef(function(t,n){const r=ue({props:t,name:"MuiFilledInput"}),{disableUnderline:o=!1,components:s={},componentsProps:a,fullWidth:i=!1,hiddenLabel:l,inputComponent:d="input",multiline:u=!1,slotProps:c,slots:h={},type:f="text",...g}=r,_={...r,disableUnderline:o,fullWidth:i,inputComponent:d,multiline:u,type:f},w=l9(r),v={root:{ownerState:_},input:{ownerState:_}},b=c??a?Mn(v,c??a):v,y=h.root??s.Root??c9,S=h.input??s.Input??d9;return m.jsx(Cb,{slots:{root:y,input:S},componentsProps:b,fullWidth:i,inputComponent:d,multiline:u,ref:n,type:f,...g,classes:w})});of&&(of.muiName="Input");function u9(e){return le("MuiFormControl",e)}ie("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const p9=e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root",n!=="none"&&`margin${W(n)}`,r&&"fullWidth"]};return de(o,u9,t)},h9=G("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>({...t.root,...t[`margin${W(e.margin)}`],...e.fullWidth&&t.fullWidth})})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),Hn=k.forwardRef(function(t,n){const r=ue({props:t,name:"MuiFormControl"}),{children:o,className:s,color:a="primary",component:i="div",disabled:l=!1,error:d=!1,focused:u,fullWidth:c=!1,hiddenLabel:h=!1,margin:f="none",required:g=!1,size:_="medium",variant:w="outlined",...v}=r,b={...r,color:a,component:i,disabled:l,error:d,fullWidth:c,hiddenLabel:h,margin:f,required:g,size:_,variant:w},y=p9(b),[S,$]=k.useState(()=>{let z=!1;return o&&k.Children.forEach(o,N=>{if(!wd(N,["Input","Select"]))return;const M=wd(N,["Select"])?N.props.input:N;M&&GR(M.props)&&(z=!0)}),z}),[C,T]=k.useState(()=>{let z=!1;return o&&k.Children.forEach(o,N=>{wd(N,["Input","Select"])&&(rf(N.props,!0)||rf(N.props.inputProps,!0))&&(z=!0)}),z}),[O,D]=k.useState(!1);l&&O&&D(!1);const x=u!==void 0&&!l?u:O;let A;k.useRef(!1);const I=k.useMemo(()=>({adornedStart:S,setAdornedStart:$,color:a,disabled:l,error:d,filled:C,focused:x,fullWidth:c,hiddenLabel:h,size:_,onBlur:()=>{D(!1)},onEmpty:()=>{T(!1)},onFilled:()=>{T(!0)},onFocus:()=>{D(!0)},registerEffect:A,required:g,variant:w}),[S,a,l,d,C,x,c,h,A,g,_,w]);return m.jsx($b.Provider,{value:I,children:m.jsx(h9,{as:i,ownerState:b,className:J(y.root,s),ref:n,...v,children:o})})});function f9(e){return le("MuiFormControlLabel",e)}const rd=ie("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),m9=e=>{const{classes:t,disabled:n,labelPlacement:r,error:o,required:s}=e,a={root:["root",n&&"disabled",`labelPlacement${W(r)}`,o&&"error",s&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",o&&"error"]};return de(a,f9,t)},g9=G("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${rd.label}`]:t.label},t.root,t[`labelPlacement${W(n.labelPlacement)}`]]}})(me(({theme:e})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${rd.disabled}`]:{cursor:"default"},[`& .${rd.label}`]:{[`&.${rd.disabled}`]:{color:(e.vars||e).palette.text.disabled}},variants:[{props:{labelPlacement:"start"},style:{flexDirection:"row-reverse",marginRight:-11}},{props:{labelPlacement:"top"},style:{flexDirection:"column-reverse"}},{props:{labelPlacement:"bottom"},style:{flexDirection:"column"}},{props:({labelPlacement:t})=>t==="start"||t==="top"||t==="bottom",style:{marginLeft:16}}]}))),_9=G("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(me(({theme:e})=>({[`&.${rd.error}`]:{color:(e.vars||e).palette.error.main}}))),Ae=k.forwardRef(function(t,n){const r=ue({props:t,name:"MuiFormControlLabel"}),{checked:o,className:s,componentsProps:a={},control:i,disabled:l,disableTypography:d,inputRef:u,label:c,labelPlacement:h="end",name:f,onChange:g,required:_,slots:w={},slotProps:v={},value:b,...y}=r,S=Jo(),$=l??i.props.disabled??(S==null?void 0:S.disabled),C=_??i.props.required,T={disabled:$,required:C};["checked","name","onChange","value","inputRef"].forEach(M=>{typeof i.props[M]>"u"&&typeof r[M]<"u"&&(T[M]=r[M])});const O=ya({props:r,muiFormControl:S,states:["error"]}),D={...r,disabled:$,labelPlacement:h,required:C,error:O.error},x=m9(D),A={slots:w,slotProps:{...a,...v}},[I,z]=Pr("typography",{elementType:ls,externalForwardedProps:A,ownerState:D});let N=c;return N!=null&&N.type!==ls&&!d&&(N=m.jsx(I,{component:"span",...z,className:J(x.label,z==null?void 0:z.className),children:N})),m.jsxs(g9,{className:J(x.root,s),ownerState:D,ref:n,...y,children:[k.cloneElement(i,T),C?m.jsxs("div",{children:[N,m.jsxs(_9,{ownerState:D,"aria-hidden":!0,className:x.asterisk,children:[" ","*"]})]}):N]})});function v9(e){return le("MuiFormGroup",e)}ie("MuiFormGroup",["root","row","error"]);const y9=e=>{const{classes:t,row:n,error:r}=e;return de({root:["root",n&&"row",r&&"error"]},v9,t)},b9=G("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.row&&t.row]}})({display:"flex",flexDirection:"column",flexWrap:"wrap",variants:[{props:{row:!0},style:{flexDirection:"row"}}]}),t_=k.forwardRef(function(t,n){const r=ue({props:t,name:"MuiFormGroup"}),{className:o,row:s=!1,...a}=r,i=Jo(),l=ya({props:r,muiFormControl:i,states:["error"]}),d={...r,row:s,error:l.error},u=y9(d);return m.jsx(b9,{className:J(u.root,o),ownerState:d,ref:n,...a})});function w9(e){return le("MuiFormHelperText",e)}const ix=ie("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var lx;const S9=e=>{const{classes:t,contained:n,size:r,disabled:o,error:s,filled:a,focused:i,required:l}=e,d={root:["root",o&&"disabled",s&&"error",r&&`size${W(r)}`,n&&"contained",i&&"focused",a&&"filled",l&&"required"]};return de(d,w9,t)},x9=G("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${W(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(me(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${ix.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${ix.error}`]:{color:(e.vars||e).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:t})=>t.contained,style:{marginLeft:14,marginRight:14}}]}))),ho=k.forwardRef(function(t,n){const r=ue({props:t,name:"MuiFormHelperText"}),{children:o,className:s,component:a="p",disabled:i,error:l,filled:d,focused:u,margin:c,required:h,variant:f,...g}=r,_=Jo(),w=ya({props:r,muiFormControl:_,states:["variant","size","disabled","error","filled","focused","required"]}),v={...r,component:a,contained:w.variant==="filled"||w.variant==="outlined",variant:w.variant,size:w.size,disabled:w.disabled,error:w.error,filled:w.filled,focused:w.focused,required:w.required};delete v.ownerState;const b=S9(v);return m.jsx(x9,{as:a,className:J(b.root,s),ref:n,...g,ownerState:v,children:o===" "?lx||(lx=m.jsx("span",{className:"notranslate",children:"​"})):o})});function k9(e){return le("MuiFormLabel",e)}const $d=ie("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),$9=e=>{const{classes:t,color:n,focused:r,disabled:o,error:s,filled:a,required:i}=e,l={root:["root",`color${W(n)}`,o&&"disabled",s&&"error",a&&"filled",r&&"focused",i&&"required"],asterisk:["asterisk",s&&"error"]};return de(l,k9,t)},C9=G("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>({...t.root,...e.color==="secondary"&&t.colorSecondary,...e.filled&&t.filled})})(me(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(e.palette).filter(Nt()).map(([t])=>({props:{color:t},style:{[`&.${$d.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${$d.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${$d.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),E9=G("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(me(({theme:e})=>({[`&.${$d.error}`]:{color:(e.vars||e).palette.error.main}}))),T9=k.forwardRef(function(t,n){const r=ue({props:t,name:"MuiFormLabel"}),{children:o,className:s,color:a,component:i="label",disabled:l,error:d,filled:u,focused:c,required:h,...f}=r,g=Jo(),_=ya({props:r,muiFormControl:g,states:["color","required","focused","disabled","error","filled"]}),w={...r,color:_.color||"primary",component:i,disabled:_.disabled,error:_.error,filled:_.filled,focused:_.focused,required:_.required},v=$9(w);return m.jsxs(C9,{as:i,ownerState:w,className:J(v.root,s),ref:n,...f,children:[o,_.required&&m.jsxs(E9,{ownerState:w,"aria-hidden":!0,className:v.asterisk,children:[" ","*"]})]})}),Bs=e6({createStyledComponent:G("div",{name:"MuiGrid2",slot:"Root",overridesResolver:(e,t)=>t.root}),componentName:"MuiGrid2",useThemeProps:e=>ue({props:e,name:"MuiGrid2"})});function Xv(e){return`scale(${e}, ${e**2})`}const O9={entering:{opacity:1,transform:Xv(1)},entered:{opacity:1,transform:"none"}},n_=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Jl=k.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:s,easing:a,in:i,onEnter:l,onEntered:d,onEntering:u,onExit:c,onExited:h,onExiting:f,style:g,timeout:_="auto",TransitionComponent:w=qo,...v}=t,b=La(),y=k.useRef(),S=ga(),$=k.useRef(null),C=Wt($,ci(s),n),T=M=>B=>{if(M){const V=$.current;B===void 0?M(V):M(V,B)}},O=T(u),D=T((M,B)=>{TO(M);const{duration:V,delay:R,easing:F}=ef({style:g,timeout:_,easing:a},{mode:"enter"});let q;_==="auto"?(q=S.transitions.getAutoHeightDuration(M.clientHeight),y.current=q):q=V,M.style.transition=[S.transitions.create("opacity",{duration:q,delay:R}),S.transitions.create("transform",{duration:n_?q:q*.666,delay:R,easing:F})].join(","),l&&l(M,B)}),x=T(d),A=T(f),I=T(M=>{const{duration:B,delay:V,easing:R}=ef({style:g,timeout:_,easing:a},{mode:"exit"});let F;_==="auto"?(F=S.transitions.getAutoHeightDuration(M.clientHeight),y.current=F):F=B,M.style.transition=[S.transitions.create("opacity",{duration:F,delay:V}),S.transitions.create("transform",{duration:n_?F:F*.666,delay:n_?V:V||F*.333,easing:R})].join(","),M.style.opacity=0,M.style.transform=Xv(.75),c&&c(M)}),z=T(h),N=M=>{_==="auto"&&b.start(y.current||0,M),r&&r($.current,M)};return m.jsx(w,{appear:o,in:i,nodeRef:$,onEnter:D,onEntered:x,onEntering:O,onExit:I,onExited:z,onExiting:A,addEndListener:N,timeout:_==="auto"?null:_,...v,children:(M,B)=>k.cloneElement(s,{style:{opacity:0,transform:Xv(.75),visibility:M==="exited"&&!i?"hidden":void 0,...O9[M],...g,...s.props.style},ref:C,...B})})});Jl&&(Jl.muiSupportAuto=!0);const D9=e=>{const{classes:t,disableUnderline:n}=e,o=de({root:["root",!n&&"underline"],input:["input"]},XR,t);return{...t,...o}},A9=G(Lm,{shouldForwardProp:e=>pn(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Rm(e,t),!n.disableUnderline&&t.underline]}})(me(({theme:e})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),{position:"relative",variants:[{props:({ownerState:r})=>r.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:r})=>!r.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Mc.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Mc.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Mc.disabled}, .${Mc.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${Mc.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(Nt()).map(([r])=>({props:{color:r,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[r].main}`}}}))]}})),N9=G(Fm,{name:"MuiInput",slot:"Input",overridesResolver:Pm})({}),Wn=k.forwardRef(function(t,n){const r=ue({props:t,name:"MuiInput"}),{disableUnderline:o=!1,components:s={},componentsProps:a,fullWidth:i=!1,inputComponent:l="input",multiline:d=!1,slotProps:u,slots:c={},type:h="text",...f}=r,g=D9(r),w={root:{ownerState:{disableUnderline:o}}},v=u??a?Mn(u??a,w):w,b=c.root??s.Root??A9,y=c.input??s.Input??N9;return m.jsx(Cb,{slots:{root:b,input:y},slotProps:v,fullWidth:i,inputComponent:l,multiline:d,ref:n,type:h,...f,classes:g})});Wn&&(Wn.muiName="Input");function M9(e){return le("MuiInputLabel",e)}ie("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const j9=e=>{const{classes:t,formControl:n,size:r,shrink:o,disableAnimation:s,variant:a,required:i}=e,l={root:["root",n&&"formControl",!s&&"animated",o&&"shrink",r&&r!=="normal"&&`size${W(r)}`,a],asterisk:[i&&"asterisk"]},d=de(l,M9,t);return{...t,...d}},I9=G(T9,{shouldForwardProp:e=>pn(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${$d.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(me(({theme:e})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:t})=>t.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:t})=>t.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:t})=>!t.disableAnimation,style:{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="filled"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:t,ownerState:n,size:r})=>t==="filled"&&n.shrink&&r==="small",style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="outlined"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),ph=k.forwardRef(function(t,n){const r=ue({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,margin:s,shrink:a,variant:i,className:l,...d}=r,u=Jo();let c=a;typeof c>"u"&&u&&(c=u.filled||u.focused||u.adornedStart);const h=ya({props:r,muiFormControl:u,states:["size","variant","required","focused"]}),f={...r,disableAnimation:o,formControl:u,shrink:c,size:h.size,variant:h.variant,required:h.required,focused:h.focused},g=j9(f);return m.jsx(I9,{"data-shrink":c,ref:n,className:J(g.root,l),...d,ownerState:f,classes:g})});function z9(e){return le("MuiLinearProgress",e)}ie("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);const Yv=4,Kv=ma` + 0% { + left: -35%; + right: 100%; + } + + 60% { + left: 100%; + right: -90%; + } + + 100% { + left: 100%; + right: -90%; + } +`,R9=typeof Kv!="string"?ac` + animation: ${Kv} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite; + `:null,Zv=ma` + 0% { + left: -200%; + right: 100%; + } + + 60% { + left: 107%; + right: -8%; + } + + 100% { + left: 107%; + right: -8%; + } +`,P9=typeof Zv!="string"?ac` + animation: ${Zv} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite; + `:null,Qv=ma` + 0% { + opacity: 1; + background-position: 0 -23px; + } + + 60% { + opacity: 0; + background-position: 0 -23px; + } + + 100% { + opacity: 1; + background-position: -200px -23px; + } +`,L9=typeof Qv!="string"?ac` + animation: ${Qv} 3s infinite linear; + `:null,F9=e=>{const{classes:t,variant:n,color:r}=e,o={root:["root",`color${W(r)}`,n],dashed:["dashed",`dashedColor${W(r)}`],bar1:["bar",`barColor${W(r)}`,(n==="indeterminate"||n==="query")&&"bar1Indeterminate",n==="determinate"&&"bar1Determinate",n==="buffer"&&"bar1Buffer"],bar2:["bar",n!=="buffer"&&`barColor${W(r)}`,n==="buffer"&&`color${W(r)}`,(n==="indeterminate"||n==="query")&&"bar2Indeterminate",n==="buffer"&&"bar2Buffer"]};return de(o,z9,t)},Tb=(e,t)=>e.vars?e.vars.palette.LinearProgress[`${t}Bg`]:e.palette.mode==="light"?lc(e.palette[t].main,.62):ic(e.palette[t].main,.5),B9=G("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${W(n.color)}`],t[n.variant]]}})(me(({theme:e})=>({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},variants:[...Object.entries(e.palette).filter(Nt()).map(([t])=>({props:{color:t},style:{backgroundColor:Tb(e,t)}})),{props:({ownerState:t})=>t.color==="inherit"&&t.variant!=="buffer",style:{"&::before":{content:'""',position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"currentColor",opacity:.3}}},{props:{variant:"buffer"},style:{backgroundColor:"transparent"}},{props:{variant:"query"},style:{transform:"rotate(180deg)"}}]}))),W9=G("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.dashed,t[`dashedColor${W(n.color)}`]]}})(me(({theme:e})=>({position:"absolute",marginTop:0,height:"100%",width:"100%",backgroundSize:"10px 10px",backgroundPosition:"0 -23px",variants:[{props:{color:"inherit"},style:{opacity:.3,backgroundImage:"radial-gradient(currentColor 0%, currentColor 16%, transparent 42%)"}},...Object.entries(e.palette).filter(Nt()).map(([t])=>{const n=Tb(e,t);return{props:{color:t},style:{backgroundImage:`radial-gradient(${n} 0%, ${n} 16%, transparent 42%)`}}})]})),L9||{animation:`${Qv} 3s infinite linear`}),H9=G("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t[`barColor${W(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&t.bar1Indeterminate,n.variant==="determinate"&&t.bar1Determinate,n.variant==="buffer"&&t.bar1Buffer]}})(me(({theme:e})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[{props:{color:"inherit"},style:{backgroundColor:"currentColor"}},...Object.entries(e.palette).filter(Nt()).map(([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main}})),{props:{variant:"determinate"},style:{transition:`transform .${Yv}s linear`}},{props:{variant:"buffer"},style:{zIndex:1,transition:`transform .${Yv}s linear`}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:{width:"auto"}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:R9||{animation:`${Kv} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite`}}]}))),U9=G("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t[`barColor${W(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&t.bar2Indeterminate,n.variant==="buffer"&&t.bar2Buffer]}})(me(({theme:e})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[...Object.entries(e.palette).filter(Nt()).map(([t])=>({props:{color:t},style:{"--LinearProgressBar2-barColor":(e.vars||e).palette[t].main}})),{props:({ownerState:t})=>t.variant!=="buffer"&&t.color!=="inherit",style:{backgroundColor:"var(--LinearProgressBar2-barColor, currentColor)"}},{props:({ownerState:t})=>t.variant!=="buffer"&&t.color==="inherit",style:{backgroundColor:"currentColor"}},{props:{color:"inherit"},style:{opacity:.3}},...Object.entries(e.palette).filter(Nt()).map(([t])=>({props:{color:t,variant:"buffer"},style:{backgroundColor:Tb(e,t),transition:`transform .${Yv}s linear`}})),{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:{width:"auto"}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:P9||{animation:`${Zv} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite`}}]}))),V9=k.forwardRef(function(t,n){const r=ue({props:t,name:"MuiLinearProgress"}),{className:o,color:s="primary",value:a,valueBuffer:i,variant:l="indeterminate",...d}=r,u={...r,color:s,variant:l},c=F9(u),h=cc(),f={},g={bar1:{},bar2:{}};if((l==="determinate"||l==="buffer")&&a!==void 0){f["aria-valuenow"]=Math.round(a),f["aria-valuemin"]=0,f["aria-valuemax"]=100;let _=a-100;h&&(_=-_),g.bar1.transform=`translateX(${_}%)`}if(l==="buffer"&&i!==void 0){let _=(i||0)-100;h&&(_=-_),g.bar2.transform=`translateX(${_}%)`}return m.jsxs(B9,{className:J(c.root,o),ownerState:u,role:"progressbar",...f,ref:n,...d,children:[l==="buffer"?m.jsx(W9,{className:c.dashed,ownerState:u}):null,m.jsx(H9,{className:c.bar1,ownerState:u,style:g.bar1}),l==="determinate"?null:m.jsx(U9,{className:c.bar2,ownerState:u,style:g.bar2})]})}),fo=k.createContext({});function G9(e){return le("MuiList",e)}ie("MuiList",["root","padding","dense","subheader"]);const q9=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return de({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},G9,t)},J9=G("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),ey=k.forwardRef(function(t,n){const r=ue({props:t,name:"MuiList"}),{children:o,className:s,component:a="ul",dense:i=!1,disablePadding:l=!1,subheader:d,...u}=r,c=k.useMemo(()=>({dense:i}),[i]),h={...r,component:a,dense:i,disablePadding:l},f=q9(h);return m.jsx(fo.Provider,{value:c,children:m.jsxs(J9,{as:a,className:J(f.root,s),ref:n,ownerState:h,...u,children:[d,o]})})});function X9(e){return le("MuiListItem",e)}ie("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);function Y9(e){return le("MuiListItemButton",e)}const zi=ie("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),K9=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters]},Z9=e=>{const{alignItems:t,classes:n,dense:r,disabled:o,disableGutters:s,divider:a,selected:i}=e,d=de({root:["root",r&&"dense",!s&&"gutters",a&&"divider",o&&"disabled",t==="flex-start"&&"alignItemsFlexStart",i&&"selected"]},Y9,n);return{...n,...d}},Q9=G(kr,{shouldForwardProp:e=>pn(e)||e==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:K9})(me(({theme:e})=>({display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minWidth:0,boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${zi.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Fe(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${zi.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Fe(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${zi.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Fe(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Fe(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${zi.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${zi.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},variants:[{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.dense,style:{paddingTop:4,paddingBottom:4}}]}))),cx=k.forwardRef(function(t,n){const r=ue({props:t,name:"MuiListItemButton"}),{alignItems:o="center",autoFocus:s=!1,component:a="div",children:i,dense:l=!1,disableGutters:d=!1,divider:u=!1,focusVisibleClassName:c,selected:h=!1,className:f,...g}=r,_=k.useContext(fo),w=k.useMemo(()=>({dense:l||_.dense||!1,alignItems:o,disableGutters:d}),[o,_.dense,l,d]),v=k.useRef(null);xr(()=>{s&&v.current&&v.current.focus()},[s]);const b={...r,alignItems:o,dense:w.dense,disableGutters:d,divider:u,selected:h},y=Z9(b),S=Wt(v,n);return m.jsx(fo.Provider,{value:w,children:m.jsx(Q9,{ref:S,href:g.href||g.to,component:(g.href||g.to)&&a==="div"?"button":a,focusVisibleClassName:J(y.focusVisible,c),ownerState:b,className:J(y.root,f),...g,classes:y,children:i})})});function eL(e){return le("MuiListItemSecondaryAction",e)}ie("MuiListItemSecondaryAction",["root","disableGutters"]);const tL=e=>{const{disableGutters:t,classes:n}=e;return de({root:["root",t&&"disableGutters"]},eL,n)},nL=G("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)",variants:[{props:({ownerState:e})=>e.disableGutters,style:{right:0}}]}),GO=k.forwardRef(function(t,n){const r=ue({props:t,name:"MuiListItemSecondaryAction"}),{className:o,...s}=r,a=k.useContext(fo),i={...r,disableGutters:a.disableGutters},l=tL(i);return m.jsx(nL,{className:J(l.root,o),ownerState:i,ref:n,...s})});GO.muiName="ListItemSecondaryAction";const rL=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.hasSecondaryAction&&t.secondaryAction]},oL=e=>{const{alignItems:t,classes:n,dense:r,disableGutters:o,disablePadding:s,divider:a,hasSecondaryAction:i}=e;return de({root:["root",r&&"dense",!o&&"gutters",!s&&"padding",a&&"divider",t==="flex-start"&&"alignItemsFlexStart",i&&"secondaryAction"],container:["container"]},X9,n)},sL=G("div",{name:"MuiListItem",slot:"Root",overridesResolver:rL})(me(({theme:e})=>({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",variants:[{props:({ownerState:t})=>!t.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:t})=>!t.disablePadding&&t.dense,style:{paddingTop:4,paddingBottom:4}},{props:({ownerState:t})=>!t.disablePadding&&!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>!t.disablePadding&&!!t.secondaryAction,style:{paddingRight:48}},{props:({ownerState:t})=>!!t.secondaryAction,style:{[`& > .${zi.root}`]:{paddingRight:48}}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>t.button,style:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}}},{props:({ownerState:t})=>t.hasSecondaryAction,style:{paddingRight:48}}]}))),aL=G("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),iL=k.forwardRef(function(t,n){const r=ue({props:t,name:"MuiListItem"}),{alignItems:o="center",children:s,className:a,component:i,components:l={},componentsProps:d={},ContainerComponent:u="li",ContainerProps:{className:c,...h}={},dense:f=!1,disableGutters:g=!1,disablePadding:_=!1,divider:w=!1,secondaryAction:v,slotProps:b={},slots:y={},...S}=r,$=k.useContext(fo),C=k.useMemo(()=>({dense:f||$.dense||!1,alignItems:o,disableGutters:g}),[o,$.dense,f,g]),T=k.useRef(null),O=k.Children.toArray(s),D=O.length&&wd(O[O.length-1],["ListItemSecondaryAction"]),x={...r,alignItems:o,dense:C.dense,disableGutters:g,disablePadding:_,divider:w,hasSecondaryAction:D},A=oL(x),I=Wt(T,n),z=y.root||l.Root||sL,N=b.root||d.root||{},M={className:J(A.root,N.className,a),...S};let B=i||"li";return D?(B=!M.component&&!i?"div":B,u==="li"&&(B==="li"?B="div":M.component==="li"&&(M.component="div")),m.jsx(fo.Provider,{value:C,children:m.jsxs(aL,{as:u,className:J(A.container,c),ref:I,ownerState:x,...h,children:[m.jsx(z,{...N,...!ru(z)&&{as:B,ownerState:{...x,...N.ownerState}},...M,children:O}),O.pop()]})})):m.jsx(fo.Provider,{value:C,children:m.jsxs(z,{...N,as:B,ref:I,...!ru(z)&&{ownerState:{...x,...N.ownerState}},...M,children:[O,v&&m.jsx(GO,{children:v})]})})});function lL(e){return le("MuiListItemIcon",e)}const dx=ie("MuiListItemIcon",["root","alignItemsFlexStart"]),cL=e=>{const{alignItems:t,classes:n}=e;return de({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},lL,n)},dL=G("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(me(({theme:e})=>({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex",variants:[{props:{alignItems:"flex-start"},style:{marginTop:8}}]}))),Ri=k.forwardRef(function(t,n){const r=ue({props:t,name:"MuiListItemIcon"}),{className:o,...s}=r,a=k.useContext(fo),i={...r,alignItems:a.alignItems},l=cL(i);return m.jsx(dL,{className:J(l.root,o),ownerState:i,ref:n,...s})});function uL(e){return le("MuiListItemText",e)}const fl=ie("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),pL=e=>{const{classes:t,inset:n,primary:r,secondary:o,dense:s}=e;return de({root:["root",n&&"inset",s&&"dense",r&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},uL,t)},hL=G("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${fl.primary}`]:t.primary},{[`& .${fl.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4,[`.${LS.root}:where(& .${fl.primary})`]:{display:"block"},[`.${LS.root}:where(& .${fl.secondary})`]:{display:"block"},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),As=k.forwardRef(function(t,n){const r=ue({props:t,name:"MuiListItemText"}),{children:o,className:s,disableTypography:a=!1,inset:i=!1,primary:l,primaryTypographyProps:d,secondary:u,secondaryTypographyProps:c,...h}=r,{dense:f}=k.useContext(fo);let g=l??o,_=u;const w={...r,disableTypography:a,inset:i,primary:!!g,secondary:!!_,dense:f},v=pL(w);return g!=null&&g.type!==ls&&!a&&(g=m.jsx(ls,{variant:f?"body2":"body1",className:v.primary,component:d!=null&&d.variant?void 0:"span",...d,children:g})),_!=null&&_.type!==ls&&!a&&(_=m.jsx(ls,{variant:"body2",className:v.secondary,color:"textSecondary",...c,children:_})),m.jsxs(hL,{className:J(v.root,s),ownerState:w,ref:n,...h,children:[g,_]})});function r_(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function ux(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function qO(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.startsWith(t.keys.join(""))}function jc(e,t,n,r,o,s){let a=!1,i=o(e,t,t?n:!1);for(;i;){if(i===e.firstChild){if(a)return!1;a=!0}const l=r?!1:i.disabled||i.getAttribute("aria-disabled")==="true";if(!i.hasAttribute("tabindex")||!qO(i,s)||l)i=o(e,i,n);else return i.focus(),!0}return!1}const fL=k.forwardRef(function(t,n){const{actions:r,autoFocus:o=!1,autoFocusItem:s=!1,children:a,className:i,disabledItemsFocusable:l=!1,disableListWrap:d=!1,onKeyDown:u,variant:c="selectedMenu",...h}=t,f=k.useRef(null),g=k.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});xr(()=>{o&&f.current.focus()},[o]),k.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(y,{direction:S})=>{const $=!f.current.style.width;if(y.clientHeight{const S=f.current,$=y.key;if(y.ctrlKey||y.metaKey||y.altKey){u&&u(y);return}const T=Sn(S).activeElement;if($==="ArrowDown")y.preventDefault(),jc(S,T,d,l,r_);else if($==="ArrowUp")y.preventDefault(),jc(S,T,d,l,ux);else if($==="Home")y.preventDefault(),jc(S,null,d,l,r_);else if($==="End")y.preventDefault(),jc(S,null,d,l,ux);else if($.length===1){const O=g.current,D=$.toLowerCase(),x=performance.now();O.keys.length>0&&(x-O.lastTime>500?(O.keys=[],O.repeating=!0,O.previousKeyMatched=!0):O.repeating&&D!==O.keys[0]&&(O.repeating=!1)),O.lastTime=x,O.keys.push(D);const A=T&&!O.repeating&&qO(T,O);O.previousKeyMatched&&(A||jc(S,T,!1,l,r_,O))?y.preventDefault():O.previousKeyMatched=!1}u&&u(y)},w=Wt(f,n);let v=-1;k.Children.forEach(a,(y,S)=>{if(!k.isValidElement(y)){v===S&&(v+=1,v>=a.length&&(v=-1));return}y.props.disabled||(c==="selectedMenu"&&y.props.selected||v===-1)&&(v=S),v===S&&(y.props.disabled||y.props.muiSkipListHighlight||y.type.muiSkipListHighlight)&&(v+=1,v>=a.length&&(v=-1))});const b=k.Children.map(a,(y,S)=>{if(S===v){const $={};return s&&($.autoFocus=!0),y.props.tabIndex===void 0&&c==="selectedMenu"&&($.tabIndex=0),k.cloneElement(y,$)}return y});return m.jsx(ey,{role:"menu",ref:w,className:i,onKeyDown:_,tabIndex:o?0:-1,...h,children:b})});function mL(e){return le("MuiPopover",e)}ie("MuiPopover",["root","paper"]);function px(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function hx(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function fx(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function o_(e){return typeof e=="function"?e():e}const gL=e=>{const{classes:t}=e;return de({root:["root"],paper:["paper"]},mL,t)},_L=G(UO,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),JO=G(_a,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),vL=k.forwardRef(function(t,n){const r=ue({props:t,name:"MuiPopover"}),{action:o,anchorEl:s,anchorOrigin:a={vertical:"top",horizontal:"left"},anchorPosition:i,anchorReference:l="anchorEl",children:d,className:u,container:c,elevation:h=8,marginThreshold:f=16,open:g,PaperProps:_={},slots:w={},slotProps:v={},transformOrigin:b={vertical:"top",horizontal:"left"},TransitionComponent:y=Jl,transitionDuration:S="auto",TransitionProps:{onEntering:$,...C}={},disableScrollLock:T=!1,...O}=r,D=(v==null?void 0:v.paper)??_,x=k.useRef(),A={...r,anchorOrigin:a,anchorReference:l,elevation:h,marginThreshold:f,externalPaperSlotProps:D,transformOrigin:b,TransitionComponent:y,transitionDuration:S,TransitionProps:C},I=gL(A),z=k.useCallback(()=>{if(l==="anchorPosition")return i;const $e=o_(s),ye=($e&&$e.nodeType===1?$e:Sn(x.current).body).getBoundingClientRect();return{top:ye.top+px(ye,a.vertical),left:ye.left+hx(ye,a.horizontal)}},[s,a.horizontal,a.vertical,i,l]),N=k.useCallback($e=>({vertical:px($e,b.vertical),horizontal:hx($e,b.horizontal)}),[b.horizontal,b.vertical]),M=k.useCallback($e=>{const Oe={width:$e.offsetWidth,height:$e.offsetHeight},ye=N(Oe);if(l==="none")return{top:null,left:null,transformOrigin:fx(ye)};const Ze=z();let be=Ze.top-ye.vertical,Ie=Ze.left-ye.horizontal;const X=be+Oe.height,ne=Ie+Oe.width,Ee=_o(o_(s)),Ne=Ee.innerHeight-f,qe=Ee.innerWidth-f;if(f!==null&&beNe){const Le=X-Ne;be-=Le,ye.vertical+=Le}if(f!==null&&Ieqe){const Le=ne-qe;Ie-=Le,ye.horizontal+=Le}return{top:`${Math.round(be)}px`,left:`${Math.round(Ie)}px`,transformOrigin:fx(ye)}},[s,l,z,N,f]),[B,V]=k.useState(g),R=k.useCallback(()=>{const $e=x.current;if(!$e)return;const Oe=M($e);Oe.top!==null&&$e.style.setProperty("top",Oe.top),Oe.left!==null&&($e.style.left=Oe.left),$e.style.transformOrigin=Oe.transformOrigin,V(!0)},[M]);k.useEffect(()=>(T&&window.addEventListener("scroll",R),()=>window.removeEventListener("scroll",R)),[s,T,R]);const F=($e,Oe)=>{$&&$($e,Oe),R()},q=()=>{V(!1)};k.useEffect(()=>{g&&R()}),k.useImperativeHandle(o,()=>g?{updatePosition:()=>{R()}}:null,[g,R]),k.useEffect(()=>{if(!g)return;const $e=Nm(()=>{R()}),Oe=_o(s);return Oe.addEventListener("resize",$e),()=>{$e.clear(),Oe.removeEventListener("resize",$e)}},[s,g,R]);let te=S;S==="auto"&&!y.muiSupportAuto&&(te=void 0);const oe=c||(s?Sn(o_(s)).body:void 0),ve={slots:w,slotProps:{...v,paper:D}},[se,Te]=Pr("paper",{elementType:JO,externalForwardedProps:ve,additionalProps:{elevation:h,className:J(I.paper,D==null?void 0:D.className),style:B?D.style:{...D.style,opacity:0}},ownerState:A}),[xe,{slotProps:Be,...Ue}]=Pr("root",{elementType:_L,externalForwardedProps:ve,additionalProps:{slotProps:{backdrop:{invisible:!0}},container:oe,open:g},ownerState:A,className:J(I.root,u)}),Ve=Wt(x,Te.ref);return m.jsx(xe,{...Ue,...!ru(xe)&&{slotProps:Be,disableScrollLock:T},...O,ref:n,children:m.jsx(y,{appear:!0,in:g,onEntering:F,onExited:q,timeout:te,...C,children:m.jsx(se,{...Te,ref:Ve,children:d})})})});function yL(e){return le("MuiMenu",e)}ie("MuiMenu",["root","paper","list"]);const bL={vertical:"top",horizontal:"right"},wL={vertical:"top",horizontal:"left"},SL=e=>{const{classes:t}=e;return de({root:["root"],paper:["paper"],list:["list"]},yL,t)},xL=G(vL,{shouldForwardProp:e=>pn(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),kL=G(JO,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),$L=G(fL,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),Cd=k.forwardRef(function(t,n){const r=ue({props:t,name:"MuiMenu"}),{autoFocus:o=!0,children:s,className:a,disableAutoFocusItem:i=!1,MenuListProps:l={},onClose:d,open:u,PaperProps:c={},PopoverClasses:h,transitionDuration:f="auto",TransitionProps:{onEntering:g,..._}={},variant:w="selectedMenu",slots:v={},slotProps:b={},...y}=r,S=cc(),$={...r,autoFocus:o,disableAutoFocusItem:i,MenuListProps:l,onEntering:g,PaperProps:c,transitionDuration:f,TransitionProps:_,variant:w},C=SL($),T=o&&!i&&u,O=k.useRef(null),D=(B,V)=>{O.current&&O.current.adjustStyleForScrollbar(B,{direction:S?"rtl":"ltr"}),g&&g(B,V)},x=B=>{B.key==="Tab"&&(B.preventDefault(),d&&d(B,"tabKeyDown"))};let A=-1;k.Children.map(s,(B,V)=>{k.isValidElement(B)&&(B.props.disabled||(w==="selectedMenu"&&B.props.selected||A===-1)&&(A=V))});const I=v.paper??kL,z=b.paper??c,N=vo({elementType:v.root,externalSlotProps:b.root,ownerState:$,className:[C.root,a]}),M=vo({elementType:I,externalSlotProps:z,ownerState:$,className:C.paper});return m.jsx(xL,{onClose:d,anchorOrigin:{vertical:"bottom",horizontal:S?"right":"left"},transformOrigin:S?bL:wL,slots:{paper:I,root:v.root},slotProps:{root:N,paper:M},open:u,ref:n,transitionDuration:f,TransitionProps:{onEntering:D,..._},ownerState:$,...y,classes:h,children:m.jsx($L,{onKeyDown:x,actions:O,autoFocus:o&&(A===-1||i),autoFocusItem:T,variant:w,...l,className:J(C.list,l.className),children:s})})});function CL(e){return le("MuiMenuItem",e)}const Ic=ie("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),EL=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},TL=e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:s,classes:a}=e,l=de({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",s&&"selected"]},CL,a);return{...a,...l}},OL=G(kr,{shouldForwardProp:e=>pn(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:EL})(me(({theme:e})=>({...e.typography.body1,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap","&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Ic.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Fe(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Ic.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Fe(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Ic.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Fe(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Fe(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Ic.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Ic.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${sx.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${sx.inset}`]:{marginLeft:52},[`& .${fl.root}`]:{marginTop:0,marginBottom:0},[`& .${fl.inset}`]:{paddingLeft:36},[`& .${dx.root}`]:{minWidth:36},variants:[{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>!t.dense,style:{[e.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:t})=>t.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...e.typography.body2,[`& .${dx.root} svg`]:{fontSize:"1.25rem"}}}]}))),ze=k.forwardRef(function(t,n){const r=ue({props:t,name:"MuiMenuItem"}),{autoFocus:o=!1,component:s="li",dense:a=!1,divider:i=!1,disableGutters:l=!1,focusVisibleClassName:d,role:u="menuitem",tabIndex:c,className:h,...f}=r,g=k.useContext(fo),_=k.useMemo(()=>({dense:a||g.dense||!1,disableGutters:l}),[g.dense,a,l]),w=k.useRef(null);xr(()=>{o&&w.current&&w.current.focus()},[o]);const v={...r,dense:_.dense,divider:i,disableGutters:l},b=TL(r),y=Wt(w,n);let S;return r.disabled||(S=c!==void 0?c:-1),m.jsx(fo.Provider,{value:_,children:m.jsx(OL,{ref:y,role:u,tabIndex:S,component:s,focusVisibleClassName:J(b.focusVisible,d),className:J(b.root,h),...f,ownerState:v,classes:b})})});function DL(e){return le("MuiNativeSelect",e)}const Ob=ie("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),AL=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:s,error:a}=e,i={select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${W(n)}`,s&&"iconOpen",r&&"disabled"]};return de(i,DL,t)},XO=G("select")(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${Ob.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(e.vars||e).palette.background.paper},variants:[{props:({ownerState:t})=>t.variant!=="filled"&&t.variant!=="outlined",style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(e.vars||e).shape.borderRadius,"&:focus":{borderRadius:(e.vars||e).shape.borderRadius},"&&&":{paddingRight:32}}}]})),NL=G(XO,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:pn,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${Ob.multiple}`]:t.multiple}]}})({}),YO=G("svg")(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${Ob.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:t})=>t.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),ML=G(YO,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${W(n.variant)}`],n.open&&t.iconOpen]}})({}),jL=k.forwardRef(function(t,n){const{className:r,disabled:o,error:s,IconComponent:a,inputRef:i,variant:l="standard",...d}=t,u={...t,disabled:o,variant:l,error:s},c=AL(u);return m.jsxs(k.Fragment,{children:[m.jsx(NL,{ownerState:u,className:J(c.select,r),disabled:o,ref:i||n,...d}),t.multiple?null:m.jsx(ML,{as:a,ownerState:u,className:c.icon})]})});var mx;const IL=G("fieldset",{shouldForwardProp:pn})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),zL=G("legend",{shouldForwardProp:pn})(me(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:t})=>!t.withLabel,style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:({ownerState:t})=>t.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:t})=>t.withLabel&&t.notched,style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]})));function RL(e){const{children:t,classes:n,className:r,label:o,notched:s,...a}=e,i=o!=null&&o!=="",l={...e,notched:s,withLabel:i};return m.jsx(IL,{"aria-hidden":!0,className:r,ownerState:l,...a,children:m.jsx(zL,{ownerState:l,children:i?m.jsx("span",{children:o}):mx||(mx=m.jsx("span",{className:"notranslate",children:"​"}))})})}const PL=e=>{const{classes:t}=e,r=de({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},YR,t);return{...t,...r}},LL=G(Lm,{shouldForwardProp:e=>pn(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Rm})(me(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${xo.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${xo.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${xo.focused} .${xo.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(Nt()).map(([n])=>({props:{color:n},style:{[`&.${xo.focused} .${xo.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}})),{props:{},style:{[`&.${xo.error} .${xo.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${xo.disabled} .${xo.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:n})=>n.startAdornment,style:{paddingLeft:14}},{props:({ownerState:n})=>n.endAdornment,style:{paddingRight:14}},{props:({ownerState:n})=>n.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:n,size:r})=>n.multiline&&r==="small",style:{padding:"8.5px 14px"}}]}})),FL=G(RL,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(me(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}})),BL=G(Fm,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Pm})(me(({theme:e})=>({padding:"16.5px 14px",...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:t})=>t.multiline,style:{padding:0}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}}]}))),sf=k.forwardRef(function(t,n){var r;const o=ue({props:t,name:"MuiOutlinedInput"}),{components:s={},fullWidth:a=!1,inputComponent:i="input",label:l,multiline:d=!1,notched:u,slots:c={},type:h="text",...f}=o,g=PL(o),_=Jo(),w=ya({props:o,muiFormControl:_,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),v={...o,color:w.color||"primary",disabled:w.disabled,error:w.error,focused:w.focused,formControl:_,fullWidth:a,hiddenLabel:w.hiddenLabel,multiline:d,size:w.size,type:h},b=c.root??s.Root??LL,y=c.input??s.Input??BL;return m.jsx(Cb,{slots:{root:b,input:y},renderSuffix:S=>m.jsx(FL,{ownerState:v,className:g.notchedOutline,label:l!=null&&l!==""&&w.required?r||(r=m.jsxs(k.Fragment,{children:[l," ","*"]})):l,notched:typeof u<"u"?u:!!(S.startAdornment||S.filled||S.focused)}),fullWidth:a,inputComponent:i,multiline:d,ref:n,type:h,...f,classes:{...g,notchedOutline:null}})});sf&&(sf.muiName="Input");const WL=ee(m.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),HL=ee(m.jsx("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked"),UL=G("span",{shouldForwardProp:pn})({position:"relative",display:"flex"}),VL=G(WL)({transform:"scale(1)"}),GL=G(HL)(me(({theme:e})=>({left:0,position:"absolute",transform:"scale(0)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest}),variants:[{props:{checked:!0},style:{transform:"scale(1)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})}}]})));function KO(e){const{checked:t=!1,classes:n={},fontSize:r}=e,o={...e,checked:t};return m.jsxs(UL,{className:n.root,ownerState:o,children:[m.jsx(VL,{fontSize:r,className:n.background,ownerState:o}),m.jsx(GL,{fontSize:r,className:n.dot,ownerState:o})]})}const qL=k.createContext(void 0);function JL(){return k.useContext(qL)}function XL(e){return le("MuiRadio",e)}const gx=ie("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),YL=e=>{const{classes:t,color:n,size:r}=e,o={root:["root",`color${W(n)}`,r!=="medium"&&`size${W(r)}`]};return{...t,...de(o,XL,t)}},KL=G(Eb,{shouldForwardProp:e=>pn(e)||e==="classes",name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size!=="medium"&&t[`size${W(n.size)}`],t[`color${W(n.color)}`]]}})(me(({theme:e})=>({color:(e.vars||e).palette.text.secondary,[`&.${gx.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{color:"default",disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Fe(e.palette.action.active,e.palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(Nt()).map(([t])=>({props:{color:t,disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Fe(e.palette[t].main,e.palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(Nt()).map(([t])=>({props:{color:t,disabled:!1},style:{[`&.${gx.checked}`]:{color:(e.vars||e).palette[t].main}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]})));function ZL(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}const _x=m.jsx(KO,{checked:!0}),vx=m.jsx(KO,{}),Ot=k.forwardRef(function(t,n){const r=ue({props:t,name:"MuiRadio"}),{checked:o,checkedIcon:s=_x,color:a="primary",icon:i=vx,name:l,onChange:d,size:u="medium",className:c,disabled:h,disableRipple:f=!1,...g}=r,_=Jo();let w=h;_&&typeof w>"u"&&(w=_.disabled),w??(w=!1);const v={...r,disabled:w,disableRipple:f,color:a,size:u},b=YL(v),y=JL();let S=o;const $=zv(d,y&&y.onChange);let C=l;return y&&(typeof S>"u"&&(S=ZL(y.value,r.value)),typeof C>"u"&&(C=y.name)),m.jsx(KL,{type:"radio",icon:k.cloneElement(i,{fontSize:vx.props.fontSize??u}),checkedIcon:k.cloneElement(s,{fontSize:_x.props.fontSize??u}),disabled:w,ownerState:v,classes:b,name:C,checked:S,onChange:$,ref:n,className:J(b.root,c),...g})});function QL(e){return le("MuiSelect",e)}const zc=ie("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var yx;const eF=G(XO,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${zc.select}`]:t.select},{[`&.${zc.select}`]:t[n.variant]},{[`&.${zc.error}`]:t.error},{[`&.${zc.multiple}`]:t.multiple}]}})({[`&.${zc.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),tF=G(YO,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${W(n.variant)}`],n.open&&t.iconOpen]}})({}),nF=G("input",{shouldForwardProp:e=>$O(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function bx(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function rF(e){return e==null||typeof e=="string"&&!e.trim()}const oF=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:s,error:a}=e,i={select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${W(n)}`,s&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return de(i,QL,t)},sF=k.forwardRef(function(t,n){var dr;const{"aria-describedby":r,"aria-label":o,autoFocus:s,autoWidth:a,children:i,className:l,defaultOpen:d,defaultValue:u,disabled:c,displayEmpty:h,error:f=!1,IconComponent:g,inputRef:_,labelId:w,MenuProps:v={},multiple:b,name:y,onBlur:S,onChange:$,onClose:C,onFocus:T,onOpen:O,open:D,readOnly:x,renderValue:A,SelectDisplayProps:I={},tabIndex:z,type:N,value:M,variant:B="standard",...V}=t,[R,F]=Jh({controlled:M,default:u,name:"Select"}),[q,te]=Jh({controlled:D,default:d,name:"Select"}),oe=k.useRef(null),ve=k.useRef(null),[se,Te]=k.useState(null),{current:xe}=k.useRef(D!=null),[Be,Ue]=k.useState(),Ve=Wt(n,_),$e=k.useCallback(ge=>{ve.current=ge,ge&&Te(ge)},[]),Oe=se==null?void 0:se.parentNode;k.useImperativeHandle(Ve,()=>({focus:()=>{ve.current.focus()},node:oe.current,value:R}),[R]),k.useEffect(()=>{d&&q&&se&&!xe&&(Ue(a?null:Oe.clientWidth),ve.current.focus())},[se,a]),k.useEffect(()=>{s&&ve.current.focus()},[s]),k.useEffect(()=>{if(!w)return;const ge=Sn(ve.current).getElementById(w);if(ge){const Q=()=>{getSelection().isCollapsed&&ve.current.focus()};return ge.addEventListener("click",Q),()=>{ge.removeEventListener("click",Q)}}},[w]);const ye=(ge,Q)=>{ge?O&&O(Q):C&&C(Q),xe||(Ue(a?null:Oe.clientWidth),te(ge))},Ze=ge=>{ge.button===0&&(ge.preventDefault(),ve.current.focus(),ye(!0,ge))},be=ge=>{ye(!1,ge)},Ie=k.Children.toArray(i),X=ge=>{const Q=Ie.find(re=>re.props.value===ge.target.value);Q!==void 0&&(F(Q.props.value),$&&$(ge,Q))},ne=ge=>Q=>{let re;if(Q.currentTarget.hasAttribute("tabindex")){if(b){re=Array.isArray(R)?R.slice():[];const Pe=R.indexOf(ge.props.value);Pe===-1?re.push(ge.props.value):re.splice(Pe,1)}else re=ge.props.value;if(ge.props.onClick&&ge.props.onClick(Q),R!==re&&(F(re),$)){const Pe=Q.nativeEvent||Q,We=new Pe.constructor(Pe.type,Pe);Object.defineProperty(We,"target",{writable:!0,value:{value:re,name:y}}),$(We,ge)}b||ye(!1,Q)}},Ee=ge=>{x||[" ","ArrowUp","ArrowDown","Enter"].includes(ge.key)&&(ge.preventDefault(),ye(!0,ge))},Ne=se!==null&&q,qe=ge=>{!Ne&&S&&(Object.defineProperty(ge,"target",{writable:!0,value:{value:R,name:y}}),S(ge))};delete V["aria-invalid"];let Le,Ht;const pe=[];let K=!1;(rf({value:R})||h)&&(A?Le=A(R):K=!0);const he=Ie.map(ge=>{if(!k.isValidElement(ge))return null;let Q;if(b){if(!Array.isArray(R))throw new Error(_s(2));Q=R.some(re=>bx(re,ge.props.value)),Q&&K&&pe.push(ge.props.children)}else Q=bx(R,ge.props.value),Q&&K&&(Ht=ge.props.children);return k.cloneElement(ge,{"aria-selected":Q?"true":"false",onClick:ne(ge),onKeyUp:re=>{re.key===" "&&re.preventDefault(),ge.props.onKeyUp&&ge.props.onKeyUp(re)},role:"option",selected:Q,value:void 0,"data-value":ge.props.value})});K&&(b?pe.length===0?Le=null:Le=pe.reduce((ge,Q,re)=>(ge.push(Q),re{const{classes:t}=e;return t},Db={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>pn(e)&&e!=="variant",slot:"Root"},iF=G(Wn,Db)(""),lF=G(sf,Db)(""),cF=G(of,Db)(""),an=k.forwardRef(function(t,n){const r=ue({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:s,classes:a={},className:i,defaultOpen:l=!1,displayEmpty:d=!1,IconComponent:u=ZR,id:c,input:h,inputProps:f,label:g,labelId:_,MenuProps:w,multiple:v=!1,native:b=!1,onClose:y,onOpen:S,open:$,renderValue:C,SelectDisplayProps:T,variant:O="outlined",...D}=r,x=b?jL:sF,A=Jo(),I=ya({props:r,muiFormControl:A,states:["variant","error"]}),z=I.variant||O,N={...r,variant:z,classes:a},M=aF(N),{root:B,...V}=M,R=h||{standard:m.jsx(iF,{ownerState:N}),outlined:m.jsx(lF,{label:g,ownerState:N}),filled:m.jsx(cF,{ownerState:N})}[z],F=Wt(n,ci(R));return m.jsx(k.Fragment,{children:k.cloneElement(R,{inputComponent:x,inputProps:{children:s,error:I.error,IconComponent:u,variant:z,type:void 0,multiple:v,...b?{id:c}:{autoWidth:o,defaultOpen:l,displayEmpty:d,labelId:_,MenuProps:w,onClose:y,onOpen:S,open:$,renderValue:C,SelectDisplayProps:{id:c,...T}},...f,classes:f?Mn(V,f.classes):V,...h?h.props.inputProps:{}},...(v&&b||d)&&z==="outlined"?{notched:!0}:{},ref:F,className:J(R.props.className,i,M.root),...!h&&{variant:z},...D})})});an.muiName="Select";function dF(e={}){const{autoHideDuration:t=null,disableWindowBlurListener:n=!1,onClose:r,open:o,resumeHideDuration:s}=e,a=La();k.useEffect(()=>{if(!o)return;function v(b){b.defaultPrevented||b.key==="Escape"&&(r==null||r(b,"escapeKeyDown"))}return document.addEventListener("keydown",v),()=>{document.removeEventListener("keydown",v)}},[o,r]);const i=tr((v,b)=>{r==null||r(v,b)}),l=tr(v=>{!r||v==null||a.start(v,()=>{i(null,"timeout")})});k.useEffect(()=>(o&&l(t),a.clear),[o,t,l,a]);const d=v=>{r==null||r(v,"clickaway")},u=a.clear,c=k.useCallback(()=>{t!=null&&l(s??t*.5)},[t,s,l]),h=v=>b=>{const y=v.onBlur;y==null||y(b),c()},f=v=>b=>{const y=v.onFocus;y==null||y(b),u()},g=v=>b=>{const y=v.onMouseEnter;y==null||y(b),u()},_=v=>b=>{const y=v.onMouseLeave;y==null||y(b),c()};return k.useEffect(()=>{if(!n&&o)return window.addEventListener("focus",c),window.addEventListener("blur",u),()=>{window.removeEventListener("focus",c),window.removeEventListener("blur",u)}},[n,o,c,u]),{getRootProps:(v={})=>{const b={...Yh(e),...Yh(v)};return{role:"presentation",...v,...b,onBlur:h(b),onFocus:f(b),onMouseEnter:g(b),onMouseLeave:_(b)}},onClickAway:d}}function uF(e){return le("MuiSnackbarContent",e)}ie("MuiSnackbarContent",["root","message","action"]);const pF=e=>{const{classes:t}=e;return de({root:["root"],action:["action"],message:["message"]},uF,t)},hF=G(_a,{name:"MuiSnackbarContent",slot:"Root",overridesResolver:(e,t)=>t.root})(me(({theme:e})=>{const t=e.palette.mode==="light"?.8:.98,n=qh(e.palette.background.default,t);return{...e.typography.body2,color:e.vars?e.vars.palette.SnackbarContent.color:e.palette.getContrastText(n),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:n,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}}})),fF=G("div",{name:"MuiSnackbarContent",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0"}),mF=G("div",{name:"MuiSnackbarContent",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),gF=k.forwardRef(function(t,n){const r=ue({props:t,name:"MuiSnackbarContent"}),{action:o,className:s,message:a,role:i="alert",...l}=r,d=r,u=pF(d);return m.jsxs(hF,{role:i,square:!0,elevation:6,className:J(u.root,s),ownerState:d,ref:n,...l,children:[m.jsx(fF,{className:u.message,ownerState:d,children:a}),o?m.jsx(mF,{className:u.action,ownerState:d,children:o}):null]})});function _F(e){return le("MuiSnackbar",e)}ie("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const vF=e=>{const{classes:t,anchorOrigin:n}=e,r={root:["root",`anchorOrigin${W(n.vertical)}${W(n.horizontal)}`]};return de(r,_F,t)},wx=G("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`anchorOrigin${W(n.anchorOrigin.vertical)}${W(n.anchorOrigin.horizontal)}`]]}})(me(({theme:e})=>({zIndex:(e.vars||e).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center",variants:[{props:({ownerState:t})=>t.anchorOrigin.vertical==="top",style:{top:8,[e.breakpoints.up("sm")]:{top:24}}},{props:({ownerState:t})=>t.anchorOrigin.vertical!=="top",style:{bottom:8,[e.breakpoints.up("sm")]:{bottom:24}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="left",style:{justifyContent:"flex-start",[e.breakpoints.up("sm")]:{left:24,right:"auto"}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="right",style:{justifyContent:"flex-end",[e.breakpoints.up("sm")]:{right:24,left:"auto"}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="center",style:{[e.breakpoints.up("sm")]:{left:"50%",right:"auto",transform:"translateX(-50%)"}}}]}))),su=k.forwardRef(function(t,n){const r=ue({props:t,name:"MuiSnackbar"}),o=ga(),s={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{action:a,anchorOrigin:{vertical:i,horizontal:l}={vertical:"bottom",horizontal:"left"},autoHideDuration:d=null,children:u,className:c,ClickAwayListenerProps:h,ContentProps:f,disableWindowBlurListener:g=!1,message:_,onBlur:w,onClose:v,onFocus:b,onMouseEnter:y,onMouseLeave:S,open:$,resumeHideDuration:C,TransitionComponent:T=Jl,transitionDuration:O=s,TransitionProps:{onEnter:D,onExited:x,...A}={},...I}=r,z={...r,anchorOrigin:{vertical:i,horizontal:l},autoHideDuration:d,disableWindowBlurListener:g,TransitionComponent:T,transitionDuration:O},N=vF(z),{getRootProps:M,onClickAway:B}=dF({...z}),[V,R]=k.useState(!0),F=vo({elementType:wx,getSlotProps:M,externalForwardedProps:I,ownerState:z,additionalProps:{ref:n},className:[N.root,c]}),q=oe=>{R(!0),x&&x(oe)},te=(oe,ve)=>{R(!1),D&&D(oe,ve)};return!$&&V?null:m.jsx(b8,{onClickAway:B,...h,children:m.jsx(wx,{...F,children:m.jsx(T,{appear:!0,in:$,timeout:O,direction:i==="top"?"down":"up",onEnter:te,onExited:q,...A,children:u||m.jsx(gF,{message:_,action:a,...f})})})})});function yF(e){return le("MuiTooltip",e)}const Kt=ie("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function bF(e){return Math.round(e*1e5)/1e5}const wF=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:s}=e,a={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${W(s.split("-")[0])}`],arrow:["arrow"]};return de(a,yF,t)},SF=G(FO,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(me(({theme:e})=>({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:t})=>!t.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:t})=>!t,style:{pointerEvents:"none"}},{props:({ownerState:t})=>t.arrow,style:{[`&[data-popper-placement*="bottom"] .${Kt.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Kt.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Kt.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${Kt.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="right"] .${Kt.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="right"] .${Kt.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="left"] .${Kt.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="left"] .${Kt.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),xF=G("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${W(n.placement.split("-")[0])}`]]}})(me(({theme:e})=>({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:Fe(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium,[`.${Kt.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${Kt.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${Kt.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${Kt.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:t})=>t.arrow,style:{position:"relative",margin:0}},{props:({ownerState:t})=>t.touch,style:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${bF(16/14)}em`,fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:t})=>!t.isRtl,style:{[`.${Kt.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${Kt.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:t})=>!t.isRtl&&t.touch,style:{[`.${Kt.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${Kt.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:t})=>!!t.isRtl,style:{[`.${Kt.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${Kt.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:t})=>!!t.isRtl&&t.touch,style:{[`.${Kt.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${Kt.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${Kt.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${Kt.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),kF=G("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(me(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:Fe(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let gp=!1;const Sx=new jm;let Rc={x:0,y:0};function _p(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const cn=k.forwardRef(function(t,n){var bi,V1,G1;const r=ue({props:t,name:"MuiTooltip"}),{arrow:o=!1,children:s,classes:a,components:i={},componentsProps:l={},describeChild:d=!1,disableFocusListener:u=!1,disableHoverListener:c=!1,disableInteractive:h=!1,disableTouchListener:f=!1,enterDelay:g=100,enterNextDelay:_=0,enterTouchDelay:w=700,followCursor:v=!1,id:b,leaveDelay:y=0,leaveTouchDelay:S=1500,onClose:$,onOpen:C,open:T,placement:O="bottom",PopperComponent:D,PopperProps:x={},slotProps:A={},slots:I={},title:z,TransitionComponent:N=Jl,TransitionProps:M,...B}=r,V=k.isValidElement(s)?s:m.jsx("span",{children:s}),R=ga(),F=cc(),[q,te]=k.useState(),[oe,ve]=k.useState(null),se=k.useRef(!1),Te=h||v,xe=La(),Be=La(),Ue=La(),Ve=La(),[$e,Oe]=Jh({controlled:T,default:!1,name:"Tooltip",state:"open"});let ye=$e;const Ze=Mm(b),be=k.useRef(),Ie=tr(()=>{be.current!==void 0&&(document.body.style.WebkitUserSelect=be.current,be.current=void 0),Ve.clear()});k.useEffect(()=>Ie,[Ie]);const X=Xe=>{Sx.clear(),gp=!0,Oe(!0),C&&!ye&&C(Xe)},ne=tr(Xe=>{Sx.start(800+y,()=>{gp=!1}),Oe(!1),$&&ye&&$(Xe),xe.start(R.transitions.duration.shortest,()=>{se.current=!1})}),Ee=Xe=>{se.current&&Xe.type!=="touchstart"||(q&&q.removeAttribute("title"),Be.clear(),Ue.clear(),g||gp&&_?Be.start(gp?_:g,()=>{X(Xe)}):X(Xe))},Ne=Xe=>{Be.clear(),Ue.start(y,()=>{ne(Xe)})},[,qe]=k.useState(!1),Le=Xe=>{Xh(Xe.target)||(qe(!1),Ne(Xe))},Ht=Xe=>{q||te(Xe.currentTarget),Xh(Xe.target)&&(qe(!0),Ee(Xe))},pe=Xe=>{se.current=!0;const Zr=V.props;Zr.onTouchStart&&Zr.onTouchStart(Xe)},K=Xe=>{pe(Xe),Ue.clear(),xe.clear(),Ie(),be.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",Ve.start(w,()=>{document.body.style.WebkitUserSelect=be.current,Ee(Xe)})},he=Xe=>{V.props.onTouchEnd&&V.props.onTouchEnd(Xe),Ie(),Ue.start(S,()=>{ne(Xe)})};k.useEffect(()=>{if(!ye)return;function Xe(Zr){Zr.key==="Escape"&&ne(Zr)}return document.addEventListener("keydown",Xe),()=>{document.removeEventListener("keydown",Xe)}},[ne,ye]);const He=Wt(ci(V),te,n);!z&&z!==0&&(ye=!1);const ke=k.useRef(),Me=Xe=>{const Zr=V.props;Zr.onMouseMove&&Zr.onMouseMove(Xe),Rc={x:Xe.clientX,y:Xe.clientY},ke.current&&ke.current.update()},lt={},Ut=typeof z=="string";d?(lt.title=!ye&&Ut&&!c?z:null,lt["aria-describedby"]=ye?Ze:null):(lt["aria-label"]=Ut?z:null,lt["aria-labelledby"]=ye&&!Ut?Ze:null);const De={...lt,...B,...V.props,className:J(B.className,V.props.className),onTouchStart:pe,ref:He,...v?{onMouseMove:Me}:{}},ln={};f||(De.onTouchStart=K,De.onTouchEnd=he),c||(De.onMouseOver=_p(Ee,De.onMouseOver),De.onMouseLeave=_p(Ne,De.onMouseLeave),Te||(ln.onMouseOver=Ee,ln.onMouseLeave=Ne)),u||(De.onFocus=_p(Ht,De.onFocus),De.onBlur=_p(Le,De.onBlur),Te||(ln.onFocus=Ht,ln.onBlur=Le));const dr=k.useMemo(()=>{var Zr;let Xe=[{name:"arrow",enabled:!!oe,options:{element:oe,padding:4}}];return(Zr=x.popperOptions)!=null&&Zr.modifiers&&(Xe=Xe.concat(x.popperOptions.modifiers)),{...x.popperOptions,modifiers:Xe}},[oe,x]),ge={...r,isRtl:F,arrow:o,disableInteractive:Te,placement:O,PopperComponentProp:D,touch:se.current},Q=wF(ge),re=I.popper??i.Popper??SF,Pe=I.transition??i.Transition??N??Jl,We=I.tooltip??i.Tooltip??xF,_t=I.arrow??i.Arrow??kF,Dr=hl(re,{...x,...A.popper??l.popper,className:J(Q.popper,x==null?void 0:x.className,(bi=A.popper??l.popper)==null?void 0:bi.className)},ge),Ko=hl(Pe,{...M,...A.transition??l.transition},ge),wa=hl(We,{...A.tooltip??l.tooltip,className:J(Q.tooltip,(V1=A.tooltip??l.tooltip)==null?void 0:V1.className)},ge),Hu=hl(_t,{...A.arrow??l.arrow,className:J(Q.arrow,(G1=A.arrow??l.arrow)==null?void 0:G1.className)},ge);return m.jsxs(k.Fragment,{children:[k.cloneElement(V,De),m.jsx(re,{as:D??FO,placement:O,anchorEl:v?{getBoundingClientRect:()=>({top:Rc.y,left:Rc.x,right:Rc.x,bottom:Rc.y,width:0,height:0})}:q,popperRef:ke,open:q?ye:!1,id:Ze,transition:!0,...ln,...Dr,popperOptions:dr,children:({TransitionProps:Xe})=>m.jsx(Pe,{timeout:R.transitions.duration.shorter,...Xe,...Ko,children:m.jsxs(We,{...wa,children:[z,o?m.jsx(_t,{...Hu,ref:ve}):null]})})})]})});function $F(e){return le("MuiSwitch",e)}const Fn=ie("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),CF=e=>{const{classes:t,edge:n,size:r,color:o,checked:s,disabled:a}=e,i={root:["root",n&&`edge${W(n)}`,`size${W(r)}`],switchBase:["switchBase",`color${W(o)}`,s&&"checked",a&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},l=de(i,$F,t);return{...t,...l}},EF=G("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${W(n.edge)}`],t[`size${W(n.size)}`]]}})({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${Fn.thumb}`]:{width:16,height:16},[`& .${Fn.switchBase}`]:{padding:4,[`&.${Fn.checked}`]:{transform:"translateX(16px)"}}}}]}),TF=G(Eb,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${Fn.input}`]:t.input},n.color!=="default"&&t[`color${W(n.color)}`]]}})(me(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode==="light"?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${Fn.checked}`]:{transform:"translateX(20px)"},[`&.${Fn.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${Fn.checked} + .${Fn.track}`]:{opacity:.5},[`&.${Fn.disabled} + .${Fn.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${Fn.input}`]:{left:"-100%",width:"300%"}})),me(({theme:e})=>({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Fe(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(e.palette).filter(Nt(["light"])).map(([t])=>({props:{color:t},style:{[`&.${Fn.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Fe(e.palette[t].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Fn.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${e.palette.mode==="light"?lc(e.palette[t].main,.62):ic(e.palette[t].main,.55)}`}},[`&.${Fn.checked} + .${Fn.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]}))),OF=G("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})(me(({theme:e})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${e.palette.mode==="light"?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${e.palette.mode==="light"?.38:.3}`}))),DF=G("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(me(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}))),od=k.forwardRef(function(t,n){const r=ue({props:t,name:"MuiSwitch"}),{className:o,color:s="primary",edge:a=!1,size:i="medium",sx:l,...d}=r,u={...r,color:s,edge:a,size:i},c=CF(u),h=m.jsx(DF,{className:c.thumb,ownerState:u});return m.jsxs(EF,{className:J(c.root,o),sx:l,ownerState:u,children:[m.jsx(TF,{type:"checkbox",icon:h,checkedIcon:h,ref:n,ownerState:u,...d,classes:{...c,root:c.switchBase}}),m.jsx(OF,{className:c.track,ownerState:u})]})});function AF(e){return le("MuiTab",e)}const Ar=ie("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper","icon"]),NF=e=>{const{classes:t,textColor:n,fullWidth:r,wrapped:o,icon:s,label:a,selected:i,disabled:l}=e,d={root:["root",s&&a&&"labelIcon",`textColor${W(n)}`,r&&"fullWidth",o&&"wrapped",i&&"selected",l&&"disabled"],icon:["iconWrapper","icon"]};return de(d,AF,t)},MF=G(kr,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${W(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped,{[`& .${Ar.iconWrapper}`]:t.iconWrapper},{[`& .${Ar.icon}`]:t.icon}]}})(me(({theme:e})=>({...e.typography.button,maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center",lineHeight:1.25,variants:[{props:({ownerState:t})=>t.label&&(t.iconPosition==="top"||t.iconPosition==="bottom"),style:{flexDirection:"column"}},{props:({ownerState:t})=>t.label&&t.iconPosition!=="top"&&t.iconPosition!=="bottom",style:{flexDirection:"row"}},{props:({ownerState:t})=>t.icon&&t.label,style:{minHeight:72,paddingTop:9,paddingBottom:9}},{props:({ownerState:t,iconPosition:n})=>t.icon&&t.label&&n==="top",style:{[`& > .${Ar.icon}`]:{marginBottom:6}}},{props:({ownerState:t,iconPosition:n})=>t.icon&&t.label&&n==="bottom",style:{[`& > .${Ar.icon}`]:{marginTop:6}}},{props:({ownerState:t,iconPosition:n})=>t.icon&&t.label&&n==="start",style:{[`& > .${Ar.icon}`]:{marginRight:e.spacing(1)}}},{props:({ownerState:t,iconPosition:n})=>t.icon&&t.label&&n==="end",style:{[`& > .${Ar.icon}`]:{marginLeft:e.spacing(1)}}},{props:{textColor:"inherit"},style:{color:"inherit",opacity:.6,[`&.${Ar.selected}`]:{opacity:1},[`&.${Ar.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}}},{props:{textColor:"primary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${Ar.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${Ar.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:{textColor:"secondary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${Ar.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${Ar.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:({ownerState:t})=>t.fullWidth,style:{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"}},{props:({ownerState:t})=>t.wrapped,style:{fontSize:e.typography.pxToRem(12)}}]}))),Kn=k.forwardRef(function(t,n){const r=ue({props:t,name:"MuiTab"}),{className:o,disabled:s=!1,disableFocusRipple:a=!1,fullWidth:i,icon:l,iconPosition:d="top",indicator:u,label:c,onChange:h,onClick:f,onFocus:g,selected:_,selectionFollowsFocus:w,textColor:v="inherit",value:b,wrapped:y=!1,...S}=r,$={...r,disabled:s,disableFocusRipple:a,selected:_,icon:!!l,iconPosition:d,label:!!c,fullWidth:i,textColor:v,wrapped:y},C=NF($),T=l&&c&&k.isValidElement(l)?k.cloneElement(l,{className:J(C.icon,l.props.className)}):l,O=x=>{!_&&h&&h(x,b),f&&f(x)},D=x=>{w&&!_&&h&&h(x,b),g&&g(x)};return m.jsxs(MF,{focusRipple:!a,className:J(C.root,o),ref:n,role:"tab","aria-selected":_,disabled:s,onClick:O,onFocus:D,ownerState:$,tabIndex:_?0:-1,...S,children:[d==="top"||d==="start"?m.jsxs(k.Fragment,{children:[T,c]}):m.jsxs(k.Fragment,{children:[c,T]}),u]})}),ZO=k.createContext();function jF(e){return le("MuiTable",e)}ie("MuiTable",["root","stickyHeader"]);const IF=e=>{const{classes:t,stickyHeader:n}=e;return de({root:["root",n&&"stickyHeader"]},jF,t)},zF=G("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})(me(({theme:e})=>({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":{...e.typography.body2,padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"},variants:[{props:({ownerState:t})=>t.stickyHeader,style:{borderCollapse:"separate"}}]}))),xx="table",RF=k.forwardRef(function(t,n){const r=ue({props:t,name:"MuiTable"}),{className:o,component:s=xx,padding:a="normal",size:i="medium",stickyHeader:l=!1,...d}=r,u={...r,component:s,padding:a,size:i,stickyHeader:l},c=IF(u),h=k.useMemo(()=>({padding:a,size:i,stickyHeader:l}),[a,i,l]);return m.jsx(ZO.Provider,{value:h,children:m.jsx(zF,{as:s,role:s===xx?null:"table",ref:n,className:J(c.root,o),ownerState:u,...d})})}),Bm=k.createContext();function PF(e){return le("MuiTableBody",e)}ie("MuiTableBody",["root"]);const LF=e=>{const{classes:t}=e;return de({root:["root"]},PF,t)},FF=G("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),BF={variant:"body"},kx="tbody",WF=k.forwardRef(function(t,n){const r=ue({props:t,name:"MuiTableBody"}),{className:o,component:s=kx,...a}=r,i={...r,component:s},l=LF(i);return m.jsx(Bm.Provider,{value:BF,children:m.jsx(FF,{className:J(l.root,o),as:s,ref:n,role:s===kx?null:"rowgroup",ownerState:i,...a})})});function HF(e){return le("MuiTableCell",e)}const UF=ie("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),VF=e=>{const{classes:t,variant:n,align:r,padding:o,size:s,stickyHeader:a}=e,i={root:["root",n,a&&"stickyHeader",r!=="inherit"&&`align${W(r)}`,o!=="normal"&&`padding${W(o)}`,`size${W(s)}`]};return de(i,HF,t)},GF=G("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${W(n.size)}`],n.padding!=="normal"&&t[`padding${W(n.padding)}`],n.align!=="inherit"&&t[`align${W(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(me(({theme:e})=>({...e.typography.body2,display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid + ${e.palette.mode==="light"?lc(Fe(e.palette.divider,1),.88):ic(Fe(e.palette.divider,1),.68)}`,textAlign:"left",padding:16,variants:[{props:{variant:"head"},style:{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium}},{props:{variant:"body"},style:{color:(e.vars||e).palette.text.primary}},{props:{variant:"footer"},style:{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)}},{props:{size:"small"},style:{padding:"6px 16px",[`&.${UF.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}}},{props:{padding:"checkbox"},style:{width:48,padding:"0 0 0 4px"}},{props:{padding:"none"},style:{padding:0}},{props:{align:"left"},style:{textAlign:"left"}},{props:{align:"center"},style:{textAlign:"center"}},{props:{align:"right"},style:{textAlign:"right",flexDirection:"row-reverse"}},{props:{align:"justify"},style:{textAlign:"justify"}},{props:({ownerState:t})=>t.stickyHeader,style:{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default}}]}))),eo=k.forwardRef(function(t,n){const r=ue({props:t,name:"MuiTableCell"}),{align:o="inherit",className:s,component:a,padding:i,scope:l,size:d,sortDirection:u,variant:c,...h}=r,f=k.useContext(ZO),g=k.useContext(Bm),_=g&&g.variant==="head";let w;a?w=a:w=_?"th":"td";let v=l;w==="td"?v=void 0:!v&&_&&(v="col");const b=c||g&&g.variant,y={...r,align:o,component:w,padding:i||(f&&f.padding?f.padding:"normal"),size:d||(f&&f.size?f.size:"medium"),sortDirection:u,stickyHeader:b==="head"&&f&&f.stickyHeader,variant:b},S=VF(y);let $=null;return u&&($=u==="asc"?"ascending":"descending"),m.jsx(GF,{as:w,ref:n,className:J(S.root,s),"aria-sort":$,scope:v,ownerState:y,...h})});function qF(e){return le("MuiTableHead",e)}ie("MuiTableHead",["root"]);const JF=e=>{const{classes:t}=e;return de({root:["root"]},qF,t)},XF=G("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),YF={variant:"head"},$x="thead",KF=k.forwardRef(function(t,n){const r=ue({props:t,name:"MuiTableHead"}),{className:o,component:s=$x,...a}=r,i={...r,component:s},l=JF(i);return m.jsx(Bm.Provider,{value:YF,children:m.jsx(XF,{as:s,className:J(l.root,o),ref:n,role:s===$x?null:"rowgroup",ownerState:i,...a})})});function ZF(e){return le("MuiToolbar",e)}ie("MuiToolbar",["root","gutters","regular","dense"]);const QF=e=>{const{classes:t,disableGutters:n,variant:r}=e;return de({root:["root",!n&&"gutters",r]},ZF,t)},e7=G("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(me(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",variants:[{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}}},{props:{variant:"dense"},style:{minHeight:48}},{props:{variant:"regular"},style:e.mixins.toolbar}]}))),Ab=k.forwardRef(function(t,n){const r=ue({props:t,name:"MuiToolbar"}),{className:o,component:s="div",disableGutters:a=!1,variant:i="regular",...l}=r,d={...r,component:s,disableGutters:a,variant:i},u=QF(d);return m.jsx(e7,{as:s,className:J(u.root,o),ref:n,ownerState:d,...l})}),t7=ee(m.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),n7=ee(m.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function r7(e){return le("MuiTableRow",e)}const Cx=ie("MuiTableRow",["root","selected","hover","head","footer"]),o7=e=>{const{classes:t,selected:n,hover:r,head:o,footer:s}=e;return de({root:["root",n&&"selected",r&&"hover",o&&"head",s&&"footer"]},r7,t)},s7=G("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})(me(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${Cx.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Cx.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Fe(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Fe(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}}))),Ex="tr",Tx=k.forwardRef(function(t,n){const r=ue({props:t,name:"MuiTableRow"}),{className:o,component:s=Ex,hover:a=!1,selected:i=!1,...l}=r,d=k.useContext(Bm),u={...r,component:s,hover:a,selected:i,head:d&&d.variant==="head",footer:d&&d.variant==="footer"},c=o7(u);return m.jsx(s7,{as:s,ref:n,className:J(c.root,o),role:s===Ex?null:"row",ownerState:u,...l})}),a7=ee(m.jsx("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward");function i7(e){return le("MuiTableSortLabel",e)}const s_=ie("MuiTableSortLabel",["root","active","icon","iconDirectionDesc","iconDirectionAsc","directionDesc","directionAsc"]),l7=e=>{const{classes:t,direction:n,active:r}=e,o={root:["root",r&&"active",`direction${W(n)}`],icon:["icon",`iconDirection${W(n)}`]};return de(o,i7,t)},c7=G(kr,{name:"MuiTableSortLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.active&&t.active]}})(me(({theme:e})=>({cursor:"pointer",display:"inline-flex",justifyContent:"flex-start",flexDirection:"inherit",alignItems:"center","&:focus":{color:(e.vars||e).palette.text.secondary},"&:hover":{color:(e.vars||e).palette.text.secondary,[`& .${s_.icon}`]:{opacity:.5}},[`&.${s_.active}`]:{color:(e.vars||e).palette.text.primary,[`& .${s_.icon}`]:{opacity:1,color:(e.vars||e).palette.text.secondary}}}))),d7=G("span",{name:"MuiTableSortLabel",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,t[`iconDirection${W(n.direction)}`]]}})(me(({theme:e})=>({fontSize:18,marginRight:4,marginLeft:4,opacity:0,transition:e.transitions.create(["opacity","transform"],{duration:e.transitions.duration.shorter}),userSelect:"none",variants:[{props:{direction:"desc"},style:{transform:"rotate(0deg)"}},{props:{direction:"asc"},style:{transform:"rotate(180deg)"}}]}))),Ox=k.forwardRef(function(t,n){const r=ue({props:t,name:"MuiTableSortLabel"}),{active:o=!1,children:s,className:a,direction:i="asc",hideSortIcon:l=!1,IconComponent:d=a7,...u}=r,c={...r,active:o,direction:i,hideSortIcon:l,IconComponent:d},h=l7(c);return m.jsxs(c7,{className:J(h.root,a),component:"span",disableRipple:!0,ownerState:c,ref:n,...u,children:[s,l&&!o?null:m.jsx(d7,{as:d,className:J(h.icon),ownerState:c})]})});function u7(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function p7(e,t,n,r={},o=()=>{}){const{ease:s=u7,duration:a=300}=r;let i=null;const l=t[e];let d=!1;const u=()=>{d=!0},c=h=>{if(d){o(new Error("Animation cancelled"));return}i===null&&(i=h);const f=Math.min(1,(h-i)/a);if(t[e]=s(f)*(n-l)+l,f>=1){requestAnimationFrame(()=>{o(null)});return}requestAnimationFrame(c)};return l===n?(o(new Error("Element already at target position")),u):(requestAnimationFrame(c),u)}const h7={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function f7(e){const{onChange:t,...n}=e,r=k.useRef(),o=k.useRef(null),s=()=>{r.current=o.current.offsetHeight-o.current.clientHeight};return xr(()=>{const a=Nm(()=>{const l=r.current;s(),l!==r.current&&t(r.current)}),i=_o(o.current);return i.addEventListener("resize",a),()=>{a.clear(),i.removeEventListener("resize",a)}},[t]),k.useEffect(()=>{s(),t(r.current)},[t]),m.jsx("div",{style:h7,ref:o,...n})}function m7(e){return le("MuiTabScrollButton",e)}const g7=ie("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),_7=e=>{const{classes:t,orientation:n,disabled:r}=e;return de({root:["root",n,r&&"disabled"]},m7,t)},v7=G(kr,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})({width:40,flexShrink:0,opacity:.8,[`&.${g7.disabled}`]:{opacity:0},variants:[{props:{orientation:"vertical"},style:{width:"100%",height:40,"& svg":{transform:"var(--TabScrollButton-svgRotate)"}}}]}),y7=k.forwardRef(function(t,n){const r=ue({props:t,name:"MuiTabScrollButton"}),{className:o,slots:s={},slotProps:a={},direction:i,orientation:l,disabled:d,...u}=r,c=cc(),h={isRtl:c,...r},f=_7(h),g=s.StartScrollButtonIcon??t7,_=s.EndScrollButtonIcon??n7,w=vo({elementType:g,externalSlotProps:a.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:h}),v=vo({elementType:_,externalSlotProps:a.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:h});return m.jsx(v7,{component:"div",className:J(f.root,o),ref:n,role:null,ownerState:h,tabIndex:null,...u,style:{...u.style,...l==="vertical"&&{"--TabScrollButton-svgRotate":`rotate(${c?-90:90}deg)`}},children:i==="left"?m.jsx(g,{...w}):m.jsx(_,{...v})})});function b7(e){return le("MuiTabs",e)}const a_=ie("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),Dx=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,Ax=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,vp=(e,t,n)=>{let r=!1,o=n(e,t);for(;o;){if(o===e.firstChild){if(r)return;r=!0}const s=o.disabled||o.getAttribute("aria-disabled")==="true";if(!o.hasAttribute("tabindex")||s)o=n(e,o);else{o.focus();return}}},w7=e=>{const{vertical:t,fixed:n,hideScrollbar:r,scrollableX:o,scrollableY:s,centered:a,scrollButtonsHideMobile:i,classes:l}=e;return de({root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",r&&"hideScrollbar",o&&"scrollableX",s&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",a&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",i&&"scrollButtonsHideMobile"],scrollableX:[o&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]},b7,l)},S7=G("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${a_.scrollButtons}`]:t.scrollButtons},{[`& .${a_.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(me(({theme:e})=>({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex",variants:[{props:({ownerState:t})=>t.vertical,style:{flexDirection:"column"}},{props:({ownerState:t})=>t.scrollButtonsHideMobile,style:{[`& .${a_.scrollButtons}`]:{[e.breakpoints.down("sm")]:{display:"none"}}}}]}))),x7=G("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.scrollableY&&t.scrollableY]}})({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap",variants:[{props:({ownerState:e})=>e.fixed,style:{overflowX:"hidden",width:"100%"}},{props:({ownerState:e})=>e.hideScrollbar,style:{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}},{props:({ownerState:e})=>e.scrollableX,style:{overflowX:"auto",overflowY:"hidden"}},{props:({ownerState:e})=>e.scrollableY,style:{overflowY:"auto",overflowX:"hidden"}}]}),k7=G("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})({display:"flex",variants:[{props:({ownerState:e})=>e.vertical,style:{flexDirection:"column"}},{props:({ownerState:e})=>e.centered,style:{justifyContent:"center"}}]}),$7=G("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(me(({theme:e})=>({position:"absolute",height:2,bottom:0,width:"100%",transition:e.transitions.create(),variants:[{props:{indicatorColor:"primary"},style:{backgroundColor:(e.vars||e).palette.primary.main}},{props:{indicatorColor:"secondary"},style:{backgroundColor:(e.vars||e).palette.secondary.main}},{props:({ownerState:t})=>t.vertical,style:{height:"100%",width:2,right:0}}]}))),C7=G(f7)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),Nx={},QO=k.forwardRef(function(t,n){const r=ue({props:t,name:"MuiTabs"}),o=ga(),s=cc(),{"aria-label":a,"aria-labelledby":i,action:l,centered:d=!1,children:u,className:c,component:h="div",allowScrollButtonsMobile:f=!1,indicatorColor:g="primary",onChange:_,orientation:w="horizontal",ScrollButtonComponent:v=y7,scrollButtons:b="auto",selectionFollowsFocus:y,slots:S={},slotProps:$={},TabIndicatorProps:C={},TabScrollButtonProps:T={},textColor:O="primary",value:D,variant:x="standard",visibleScrollbar:A=!1,...I}=r,z=x==="scrollable",N=w==="vertical",M=N?"scrollTop":"scrollLeft",B=N?"top":"left",V=N?"bottom":"right",R=N?"clientHeight":"clientWidth",F=N?"height":"width",q={...r,component:h,allowScrollButtonsMobile:f,indicatorColor:g,orientation:w,vertical:N,scrollButtons:b,textColor:O,variant:x,visibleScrollbar:A,fixed:!z,hideScrollbar:z&&!A,scrollableX:z&&!N,scrollableY:z&&N,centered:d&&!z,scrollButtonsHideMobile:!f},te=w7(q),oe=vo({elementType:S.StartScrollButtonIcon,externalSlotProps:$.startScrollButtonIcon,ownerState:q}),ve=vo({elementType:S.EndScrollButtonIcon,externalSlotProps:$.endScrollButtonIcon,ownerState:q}),[se,Te]=k.useState(!1),[xe,Be]=k.useState(Nx),[Ue,Ve]=k.useState(!1),[$e,Oe]=k.useState(!1),[ye,Ze]=k.useState(!1),[be,Ie]=k.useState({overflow:"hidden",scrollbarWidth:0}),X=new Map,ne=k.useRef(null),Ee=k.useRef(null),Ne=()=>{const Q=ne.current;let re;if(Q){const We=Q.getBoundingClientRect();re={clientWidth:Q.clientWidth,scrollLeft:Q.scrollLeft,scrollTop:Q.scrollTop,scrollWidth:Q.scrollWidth,top:We.top,bottom:We.bottom,left:We.left,right:We.right}}let Pe;if(Q&&D!==!1){const We=Ee.current.children;if(We.length>0){const _t=We[X.get(D)];Pe=_t?_t.getBoundingClientRect():null}}return{tabsMeta:re,tabMeta:Pe}},qe=tr(()=>{const{tabsMeta:Q,tabMeta:re}=Ne();let Pe=0,We;N?(We="top",re&&Q&&(Pe=re.top-Q.top+Q.scrollTop)):(We=s?"right":"left",re&&Q&&(Pe=(s?-1:1)*(re[We]-Q[We]+Q.scrollLeft)));const _t={[We]:Pe,[F]:re?re[F]:0};if(typeof xe[We]!="number"||typeof xe[F]!="number")Be(_t);else{const Dr=Math.abs(xe[We]-_t[We]),Ko=Math.abs(xe[F]-_t[F]);(Dr>=1||Ko>=1)&&Be(_t)}}),Le=(Q,{animation:re=!0}={})=>{re?p7(M,ne.current,Q,{duration:o.transitions.duration.standard}):ne.current[M]=Q},Ht=Q=>{let re=ne.current[M];N?re+=Q:re+=Q*(s?-1:1),Le(re)},pe=()=>{const Q=ne.current[R];let re=0;const Pe=Array.from(Ee.current.children);for(let We=0;WeQ){We===0&&(re=Q);break}re+=_t[R]}return re},K=()=>{Ht(-1*pe())},he=()=>{Ht(pe())},He=k.useCallback(Q=>{Ie({overflow:null,scrollbarWidth:Q})},[]),ke=()=>{const Q={};Q.scrollbarSizeListener=z?m.jsx(C7,{onChange:He,className:J(te.scrollableX,te.hideScrollbar)}):null;const Pe=z&&(b==="auto"&&(Ue||$e)||b===!0);return Q.scrollButtonStart=Pe?m.jsx(v,{slots:{StartScrollButtonIcon:S.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:oe},orientation:w,direction:s?"right":"left",onClick:K,disabled:!Ue,...T,className:J(te.scrollButtons,T.className)}):null,Q.scrollButtonEnd=Pe?m.jsx(v,{slots:{EndScrollButtonIcon:S.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:ve},orientation:w,direction:s?"left":"right",onClick:he,disabled:!$e,...T,className:J(te.scrollButtons,T.className)}):null,Q},Me=tr(Q=>{const{tabsMeta:re,tabMeta:Pe}=Ne();if(!(!Pe||!re)){if(Pe[B]re[V]){const We=re[M]+(Pe[V]-re[V]);Le(We,{animation:Q})}}}),lt=tr(()=>{z&&b!==!1&&Ze(!ye)});k.useEffect(()=>{const Q=Nm(()=>{ne.current&&qe()});let re;const Pe=Dr=>{Dr.forEach(Ko=>{Ko.removedNodes.forEach(wa=>{re==null||re.unobserve(wa)}),Ko.addedNodes.forEach(wa=>{re==null||re.observe(wa)})}),Q(),lt()},We=_o(ne.current);We.addEventListener("resize",Q);let _t;return typeof ResizeObserver<"u"&&(re=new ResizeObserver(Q),Array.from(Ee.current.children).forEach(Dr=>{re.observe(Dr)})),typeof MutationObserver<"u"&&(_t=new MutationObserver(Pe),_t.observe(Ee.current,{childList:!0})),()=>{Q.clear(),We.removeEventListener("resize",Q),_t==null||_t.disconnect(),re==null||re.disconnect()}},[qe,lt]),k.useEffect(()=>{const Q=Array.from(Ee.current.children),re=Q.length;if(typeof IntersectionObserver<"u"&&re>0&&z&&b!==!1){const Pe=Q[0],We=Q[re-1],_t={root:ne.current,threshold:.99},Dr=bi=>{Ve(!bi[0].isIntersecting)},Ko=new IntersectionObserver(Dr,_t);Ko.observe(Pe);const wa=bi=>{Oe(!bi[0].isIntersecting)},Hu=new IntersectionObserver(wa,_t);return Hu.observe(We),()=>{Ko.disconnect(),Hu.disconnect()}}},[z,b,ye,u==null?void 0:u.length]),k.useEffect(()=>{Te(!0)},[]),k.useEffect(()=>{qe()}),k.useEffect(()=>{Me(Nx!==xe)},[Me,xe]),k.useImperativeHandle(l,()=>({updateIndicator:qe,updateScrollButtons:lt}),[qe,lt]);const Ut=m.jsx($7,{...C,className:J(te.indicator,C.className),ownerState:q,style:{...xe,...C.style}});let De=0;const ln=k.Children.map(u,Q=>{if(!k.isValidElement(Q))return null;const re=Q.props.value===void 0?De:Q.props.value;X.set(re,De);const Pe=re===D;return De+=1,k.cloneElement(Q,{fullWidth:x==="fullWidth",indicator:Pe&&!se&&Ut,selected:Pe,selectionFollowsFocus:y,onChange:_,textColor:O,value:re,...De===1&&D===!1&&!Q.props.tabIndex?{tabIndex:0}:{}})}),dr=Q=>{const re=Ee.current,Pe=Sn(re).activeElement;if(Pe.getAttribute("role")!=="tab")return;let _t=w==="horizontal"?"ArrowLeft":"ArrowUp",Dr=w==="horizontal"?"ArrowRight":"ArrowDown";switch(w==="horizontal"&&s&&(_t="ArrowRight",Dr="ArrowLeft"),Q.key){case _t:Q.preventDefault(),vp(re,Pe,Ax);break;case Dr:Q.preventDefault(),vp(re,Pe,Dx);break;case"Home":Q.preventDefault(),vp(re,null,Dx);break;case"End":Q.preventDefault(),vp(re,null,Ax);break}},ge=ke();return m.jsxs(S7,{className:J(te.root,c),ownerState:q,ref:n,as:h,...I,children:[ge.scrollButtonStart,ge.scrollbarSizeListener,m.jsxs(x7,{className:te.scroller,ownerState:q,style:{overflow:be.overflow,[N?`margin${s?"Left":"Right"}`:"marginBottom"]:A?void 0:-be.scrollbarWidth},ref:ne,children:[m.jsx(k7,{"aria-label":a,"aria-labelledby":i,"aria-orientation":w==="vertical"?"vertical":null,className:te.flexContainer,ownerState:q,onKeyDown:dr,ref:Ee,role:"tablist",children:ln}),se&&Ut]}),ge.scrollButtonEnd]})});function E7(e){return le("MuiTextField",e)}ie("MuiTextField",["root"]);const T7={standard:Wn,filled:of,outlined:sf},O7=e=>{const{classes:t}=e;return de({root:["root"]},E7,t)},D7=G(Hn,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),nt=k.forwardRef(function(t,n){const r=ue({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:s=!1,children:a,className:i,color:l="primary",defaultValue:d,disabled:u=!1,error:c=!1,FormHelperTextProps:h,fullWidth:f=!1,helperText:g,id:_,InputLabelProps:w,inputProps:v,InputProps:b,inputRef:y,label:S,maxRows:$,minRows:C,multiline:T=!1,name:O,onBlur:D,onChange:x,onFocus:A,placeholder:I,required:z=!1,rows:N,select:M=!1,SelectProps:B,slots:V={},slotProps:R={},type:F,value:q,variant:te="outlined",...oe}=r,ve={...r,autoFocus:s,color:l,disabled:u,error:c,fullWidth:f,multiline:T,required:z,select:M,variant:te},se=O7(ve),Te=Mm(_),xe=g&&Te?`${Te}-helper-text`:void 0,Be=S&&Te?`${Te}-label`:void 0,Ue=T7[te],Ve={slots:V,slotProps:{input:b,inputLabel:w,htmlInput:v,formHelperText:h,select:B,...R}},$e={},Oe=Ve.slotProps.inputLabel;te==="outlined"&&(Oe&&typeof Oe.shrink<"u"&&($e.notched=Oe.shrink),$e.label=S),M&&((!B||!B.native)&&($e.id=void 0),$e["aria-describedby"]=void 0);const[ye,Ze]=Pr("input",{elementType:Ue,externalForwardedProps:Ve,additionalProps:$e,ownerState:ve}),[be,Ie]=Pr("inputLabel",{elementType:ph,externalForwardedProps:Ve,ownerState:ve}),[X,ne]=Pr("htmlInput",{elementType:"input",externalForwardedProps:Ve,ownerState:ve}),[Ee,Ne]=Pr("formHelperText",{elementType:ho,externalForwardedProps:Ve,ownerState:ve}),[qe,Le]=Pr("select",{elementType:an,externalForwardedProps:Ve,ownerState:ve}),Ht=m.jsx(ye,{"aria-describedby":xe,autoComplete:o,autoFocus:s,defaultValue:d,fullWidth:f,multiline:T,name:O,rows:N,maxRows:$,minRows:C,type:F,value:q,id:Te,inputRef:y,onBlur:D,onChange:x,onFocus:A,placeholder:I,inputProps:ne,slots:{input:V.htmlInput?X:void 0},...Ze});return m.jsxs(D7,{className:J(se.root,i),disabled:u,error:c,fullWidth:f,ref:n,required:z,color:l,variant:te,ownerState:ve,...oe,children:[S!=null&&S!==""&&m.jsx(be,{htmlFor:Te,id:Be,...Ie,children:S}),M?m.jsx(qe,{"aria-describedby":xe,id:Te,labelId:Be,value:q,input:Ht,...Le,children:a}):Ht,g&&m.jsx(Ee,{id:xe,...Ne,children:g})]})}),i_=11/23/100;function Mx(e){const t={r:0,g:0,b:0};if(e.length===7)t.r=parseInt(e.substr(1,2),16),t.g=parseInt(e.substr(3,2),16),t.b=parseInt(e.substr(5,2),16);else if(e.length===4){const n=e.substr(1,1),r=e.substr(2,1),o=e.substr(3,1);t.r=parseInt(n+n,16),t.g=parseInt(r+r,16),t.b=parseInt(o+o,16)}return t}function A7(e){return`#${Math.round(e.r).toString(16)}${Math.round(e.g).toString(16)}${Math.round(e.b).toString(16)}`}function N7(e,t,n){const r=Mx(e),o=Mx(t);return r.r+=o.r*(.05+i_*(n-1)),r.g+=o.g*(.05+i_*(n-1)),r.b+=o.b*(.05+i_*(n-1)),A7(r)}function jx(e,t){const n={};for(let r=1;r<=24;r++)n[`elevation${r}`]={backgroundColor:N7(e,t,r)};return n}function M7(e,t){var a,i,l,d,u,c,h,f,g,_,w;let n,r;e==="dark"?(r={MuiAppBar:{colorDefault:{backgroundColor:"#272727"}},MuiLink:{root:{textTransform:"uppercase",transition:"color .3s ease",color:yn[200],"&:hover":{color:yn[100]}}},MuiPaper:jx("#121212","#fff")},n={name:e,palette:{mode:"dark",background:{paper:"#121212",default:"#121212"},primary:{main:"#4dabf5"},secondary:{main:"#436a93"},expert:"#14bb00",text:{primary:"#ffffff",secondary:"#ffffff"}}}):e==="blue"?(r={MuiAppBar:{colorDefault:{backgroundColor:"#3399CC"}},MuiLink:{root:{textTransform:"uppercase",transition:"color .3s ease",color:yn[400],"&:hover":{color:yn[300]}}}},n={name:e,palette:{mode:"dark",background:{paper:"#151d21",default:"#151d21"},primary:{main:"#4dabf5"},secondary:{main:"#436a93"},expert:"#14bb00",text:{primary:"#ffffff",secondary:"#ffffff"}}}):e==="colored"?(r={MuiAppBar:{colorDefault:{backgroundColor:"#2a3135"}},MuiLink:{root:{textTransform:"uppercase",transition:"color .3s ease",color:yn[200],"&:hover":{color:yn[100]}}},MuiPaper:jx("#151d21","#fff")},n={name:e,palette:{mode:"light",primary:{main:"#3399CC"},secondary:{main:"#164477"},expert:"#96fc96"}}):e==="PT"?(r={MuiAppBar:{colorDefault:{backgroundColor:"#0F99DE"}},MuiLink:{root:{textTransform:"uppercase",transition:"color .3s ease",color:yn[400],"&:hover":{color:yn[300]}}}},n={name:e,palette:{mode:"light",primary:{main:"#0F99DE"},secondary:{main:"#88A536"},expert:"#BD1B24"}}):e==="DX"?(r={MuiAppBar:{colorDefault:{backgroundColor:"#a9a9a9"}},MuiLink:{root:{textTransform:"uppercase",transition:"color .3s ease",color:yn[400],"&:hover":{color:yn[300]}}}},n={name:e,palette:{mode:"light",primary:{main:"#F5F5F7"},secondary:{main:"#a9a9a9"},expert:"#BD1B24",text:{primary:"#007AFE",secondary:"#007AFE",disabled:"#007AFEAA"}}}):(r={MuiLink:{root:{textTransform:"uppercase",transition:"color .3s ease",color:yn[400],"&:hover":{color:yn[300]}}}},n={name:e,palette:{mode:"light",primary:{main:"#3399CC",dark:"#256c97",light:"#76d0fd"},secondary:{main:"#164477"},expert:"#14bb00"}}),n.toolbar={height:48},n.saveToolbar={background:(i=(a=n.palette)==null?void 0:a.primary)==null?void 0:i.main,button:{borderRadius:3,height:32}},n.palette&&(n.palette.grey={main:Pv[300],dark:Pv[400]});const o=eu(n),s=o.palette;return eu(o,{components:{...r,MuiButton:{variants:[{props:{variant:"contained",color:"grey"},style:{backgroundColor:(l=s.grey)==null?void 0:l[300],color:s.getContrastText&&((d=s.grey)!=null&&d[300])?s.getContrastText(s.grey[300]):void 0}},{props:{variant:"outlined",color:"grey"},style:{color:(u=s.text)==null?void 0:u.primary,borderColor:s.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)","&.Mui-disabled":{border:`1px solid ${(c=s.action)==null?void 0:c.disabledBackground}`},"&:hover":{borderColor:s.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)",backgroundColor:Fe(((h=s.text)==null?void 0:h.primary)||"",((f=s.action)==null?void 0:f.hoverOpacity)||.04)}}},{props:{variant:"text",color:"grey"},style:{color:(g=s.text)==null?void 0:g.primary,"&:hover":{backgroundColor:Fe(((_=s.text)==null?void 0:_.primary)||"",((w=s.action)==null?void 0:w.hoverOpacity)||.04)}}}]}}})}function j7(){let e,t;const n=new Promise((r,o)=>{e=r,t=o});return n.resolve=e,n.reject=t,n}function ty(e){return(e==null?void 0:e.rows.map(t=>t.value).filter(t=>!!t))??[]}function rs(e){return e!=null&&e.startsWith("system.host.")||(e=`system.host.${e}`),e}function Pc(e){return e!=null&&e.startsWith("system.host.")&&(e=e.substring(12)),e}function Ix(e){return new Promise(t=>{setTimeout(t,e)})}function yp(e){e=(e||"").toString();const t=e[0]==="*",n=e[e.length-1]==="*";return e=e.replace(/[-/\\^$+?.()|[\]{}]/g,"\\$&").replace(/\*/g,".*"),(t?"":"^")+e+(n?"":"$")}var No;(function(e){e[e.CONNECTING=0]="CONNECTING",e[e.CONNECTED=1]="CONNECTED",e[e.OBJECTS_LOADED=2]="OBJECTS_LOADED",e[e.READY=3]="READY"})(No||(No={}));var Dn;(function(e){e.PERMISSION_ERROR="permissionError",e.NOT_CONNECTED="notConnectedError",e.TIMEOUT="timeout",e.NOT_ADMIN="Allowed only in admin",e.NOT_SUPPORTED="Not supported"})(Dn||(Dn={}));Dn.PERMISSION_ERROR;Dn.NOT_CONNECTED;const I7=["material","echarts","vis"];class Mo{constructor(t){L(this,"props");L(this,"ignoreState","");L(this,"connected",!1);L(this,"subscribed",!1);L(this,"firstConnect",!0);L(this,"waitForRestart",!1);L(this,"loaded",!1);L(this,"simStates",{});L(this,"statesSubscribes",{});L(this,"filesSubscribes",{});L(this,"objectsSubscribes",{});L(this,"objects",{});L(this,"states",{});L(this,"acl",null);L(this,"isSecure",!1);L(this,"onReadyDone",!1);L(this,"onConnectionHandlers",[]);L(this,"onLogHandlers",[]);L(this,"onCmdStdoutHandler");L(this,"onCmdStderrHandler");L(this,"onCmdExitHandler");L(this,"_socket");L(this,"_waitForSocketPromise");L(this,"_waitForFirstConnectionPromise",j7());L(this,"_instanceSubscriptions",{});L(this,"_promises",{});L(this,"_authTimer");L(this,"_systemConfig");L(this,"systemLang","en");this.props=this.applyDefaultProps(t),this.waitForSocketLib().then(()=>this.startSocket()).catch(n=>{alert(`Socket connection could not be initialized: ${n}`)})}applyDefaultProps(t){return{...t,protocol:t.protocol||window.location.protocol,host:t.host||window.location.hostname,port:t.port||(window.location.port==="3000"?8081:window.location.port),ioTimeout:Math.max(t.ioTimeout||2e4,2e4),cmdTimeout:Math.max(t.cmdTimeout||5e3,5e3),admin5only:t.admin5only||!1,autoSubscribes:t.autoSubscribes??[],autoSubscribeLog:t.autoSubscribeLog??!1,doNotLoadACL:t.doNotLoadACL??!0,doNotLoadAllObjects:t.doNotLoadAllObjects??!0}}onError(t){(this.props.onError??console.error)(t)}get systemConfig(){return this._systemConfig}static isWeb(){return window.socketUrl!==void 0}waitForSocketLib(){return this._waitForSocketPromise?this._waitForSocketPromise:(this._waitForSocketPromise=new Promise(async(t,n)=>{if(typeof window.io>"u"&&typeof window.iob>"u")if(typeof window.registerSocketOnLoad=="function")window.registerSocketOnLoad(()=>t());else{for(let r=1;r<=30;r++){if(window.io||window.iob)return t();await Ix(100)}n(new Error("Socket library could not be loaded!"))}else t()}),this._waitForSocketPromise)}async startSocket(){if(this._socket)return;let t=this.props.host,n=this.props.port,r=(this.props.protocol||window.location.protocol).replace(":",""),o=window.location.pathname;if(window.location.hostname==="iobroker.net"||window.location.hostname==="iobroker.pro")o="";else{if(window.socketUrl){const i=new URL(window.socketUrl);t=i.hostname,n=i.port,r=i.protocol.replace(":","")}const a=o.lastIndexOf("/");if(a!==-1&&(o=o.substring(0,a+1)),Mo.isWeb()){const i=o.split("/");i.length>2&&(i.pop(),i.pop(),I7.includes(i[i.length-1])&&i.pop(),o=i.join("/"),o.endsWith("/")||(o+="/"))}}const s=n?`${r}://${t}:${n}`:`${r}://${t}`;return this._socket=(window.io||window.iob).connect(s,{path:o.endsWith("/")?`${o}socket.io`:`${o}/socket.io`,query:"ws=true",name:this.props.name,timeout:this.props.ioTimeout,uuid:this.props.uuid,token:this.props.token}),this._socket.on("connect",a=>{this.onReadyDone=!1,a!==!0?(this.connected=!0,setTimeout(()=>this.getVersion().then(i=>{const[l,d,u]=i.version.split(".");parseInt(l,10)*1e4+parseInt(d,10)*100+parseInt(u,10)<40102?(this._authTimer=null,this.onPreConnect(!1,!1)):this._socket.emit("authenticate",(h,f)=>this.onPreConnect(h,f))}).catch(i=>this.onError({message:i.toString(),operation:"getVersion"})),500)):this._socket.emit("authenticate",(i,l)=>{this.onPreConnect(i,l)})}),this._socket.on("reconnect",()=>{var a,i;this.onReadyDone=!1,(i=(a=this.props).onProgress)==null||i.call(a,No.READY),this.connected=!0,this.waitForRestart?window.location.reload():(this._subscribe(!0),this.onConnectionHandlers.forEach(l=>l(!0)))}),this._socket.on("disconnect",()=>{var a,i;this.onReadyDone=!1,this.connected=!1,this.subscribed=!1,(i=(a=this.props).onProgress)==null||i.call(a,No.CONNECTING),this.onConnectionHandlers.forEach(l=>l(!1))}),this._socket.on("reauthenticate",()=>this.authenticate()),this._socket.on("log",a=>{var i,l;(l=(i=this.props).onLog)==null||l.call(i,a),this.onLogHandlers.forEach(d=>d(a))}),this._socket.on("error",a=>{let i;a==null?i="":typeof a.toString=="function"?i=a.toString():(i=JSON.stringify(a),console.error(`Received strange error: ${i}`)),i.includes("User not authorized")?this.authenticate():i.includes("websocket error")?(console.error(`Socket Error => reload: ${a}`),window.location.reload()):console.error(`Socket Error: ${a}`)}),this._socket.on("connect_error",a=>console.error(`Connect error: ${a}`)),this._socket.on("permissionError",a=>this.onError({message:"no permission",operation:a.operation,type:a.type,id:a.id||""})),this._socket.on("objectChange",(a,i)=>{setTimeout(()=>this.objectChange(a,i),0)}),this._socket.on("stateChange",(a,i)=>{setTimeout(()=>this.stateChange(a,i),0)}),this._socket.on("im",(a,i,l)=>{setTimeout(()=>this.instanceMessage(a,i,l),0)}),this._socket.on("fileChange",(a,i,l)=>{setTimeout(()=>this.fileChange(a,i,l),0)}),this._socket.on("cmdStdout",(a,i)=>{var l;(l=this.onCmdStdoutHandler)==null||l.call(this,a,i)}),this._socket.on("cmdStderr",(a,i)=>{var l;(l=this.onCmdStderrHandler)==null||l.call(this,a,i)}),this._socket.on("cmdExit",(a,i)=>{var l;(l=this.onCmdExitHandler)==null||l.call(this,a,i)}),Promise.resolve()}onPreConnect(t,n){var r,o;this._authTimer&&(clearTimeout(this._authTimer),this._authTimer=null),this.connected=!0,this.isSecure=n,this.waitForRestart?window.location.reload():(this.firstConnect?this.loadData().catch(s=>console.error(`Cannot load data: ${s}`)):(o=(r=this.props).onProgress)==null||o.call(r,No.READY),this._subscribe(!0),this.onConnectionHandlers.forEach(s=>s(!0))),this._waitForFirstConnectionPromise.resolve()}static isCloud(){return window.location.hostname.includes("amazonaws.com")||window.location.hostname.includes("iobroker.in")?!0:typeof window.socketUrl>"u"?!1:window.socketUrl.includes("iobroker.in")||window.socketUrl.includes("amazonaws")}isConnected(){return this.connected}waitForFirstConnection(){return this._waitForFirstConnectionPromise}async getUserPermissions(){return this.request({commandTimeout:!1,executor:(t,n)=>{this._socket.emit("getUserPermissions",(r,o)=>{r?n(r):t(o)})}})}async loadData(){if(this.loaded)return;const t=10;for(let n=1;n<=t;n++){if(this.doLoadData().catch(r=>console.error(`Cannot load data: ${r}`)),this.loaded)return;await Ix(Mo.isCloud()?5e3:1e3)}}async doLoadData(){var t,n,r,o,s,a,i,l,d;if(!this.loaded){if(!this.props.doNotLoadACL)try{this.acl=await this.getUserPermissions()}catch(u){this.onError(`Cannot read user permissions: ${u}`);return}try{this.props.admin5only&&!Mo.isWeb()&&(!window.vendorPrefix||window.vendorPrefix==="@@vendorPrefix@@")?this._systemConfig=await this.getCompactSystemConfig():this._systemConfig=await this.getSystemConfig()}catch(u){this.onError(`Cannot read system config: ${u}`);return}this._systemConfig&&(this.systemLang=(t=this._systemConfig.common)==null?void 0:t.language,this.systemLang||(this.systemLang=window.navigator.userLanguage||window.navigator.language,/^(en|de|ru|pt|nl|fr|it|es|pl|uk)-?/.test(this.systemLang)?this.systemLang=this.systemLang.substring(0,2):/^(en|de|ru|pt|nl|fr|it|es|pl|uk|zh-cn)$/.test(this.systemLang)||(this.systemLang="en"),this._systemConfig.common.language=this.systemLang)),(r=(n=this.props).onLanguage)==null||r.call(n,this.systemLang),this.loaded=!0,(s=(o=this.props).onProgress)==null||s.call(o,No.CONNECTED),this.firstConnect=!1,this.props.doNotLoadAllObjects?this.props.admin5only?this.objects={}:this.objects={"system.config":this._systemConfig}:this.objects=await this.getObjects(),(i=(a=this.props).onProgress)==null||i.call(a,No.READY),this.onReadyDone||(this.onReadyDone=!0,(d=(l=this.props).onReady)==null||d.call(l,this.objects))}}authenticate(){window.location.search.includes("&href=")?window.location.href=`${window.location.protocol}//${window.location.host}${window.location.pathname}${window.location.search}${window.location.hash}`:window.location.href=`${window.location.protocol}//${window.location.host}${window.location.pathname}?login&href=${window.location.search}${window.location.hash}`}async subscribeState(...t){let n,r,o;t.length===3?[n,r,o]=t:([n,o]=t,r=!1);let s;if(Array.isArray(n)?s=n:s=[n],typeof o!="function")throw new Error("The state change handler must be a function!");const a=[];for(let i=0;ii.includes("*"))){let i;for(let l=0;lconsole.error(`Cannot call state change handler: ${h}`))}}}else try{const i=await(Mo.isWeb()?this.getStates(s):this.getForeignStates(s));if(i)for(const[l,d]of Object.entries(i)){const u=o(l,d);u instanceof Promise&&u.catch(c=>console.error(`Cannot call state change handler: ${c}`))}}catch(i){console.error(`Cannot getState "${s.join(", ")}": ${i.message}`);return}}async subscribeStateAsync(t,n){return this.subscribeState(t,n)}unsubscribeState(t,n){var s;let r;Array.isArray(t)?r=t:r=[t];const o=[];for(let a=0;a{try{const u=d(t,n,r);u instanceof Promise&&u.catch(c=>console.error(`Cannot call object change handler: ${c}`))}catch(u){console.error(`Error by callback of objectChange: ${u}`)}});if(o){const i=(a=(s=this.props).onObjectChange)==null?void 0:a.call(s,t,n);i instanceof Promise&&i.catch(l=>console.error(`Cannot call object change handler: ${l}`))}}stateChange(t,n){for(const r of Object.values(this.statesSubscribes))if(r.reg.test(t))for(const o of r.cbs)try{const s=o(t,n??null);s instanceof Promise&&s.catch(a=>console.error(`Cannot call state change handler: ${a}`))}catch(s){console.error(`Error by callback of stateChanged: ${s}`)}}instanceMessage(t,n,r){var o;(o=this._instanceSubscriptions[n])==null||o.forEach(s=>{if(s.messageType===t){const a=s.callback(r,n,t);a instanceof Promise&&a.catch(i=>console.error(`Cannot call instance message handler: ${i}`))}})}fileChange(t,n,r){for(const o of Object.values(this.filesSubscribes))if(o.regId.test(t)&&o.regFilePattern.test(n))for(const s of o.cbs)try{s(t,n,r)}catch(a){console.error(`Error by callback of fileChange: ${a}`)}}async subscribeFiles(t,n,r){if(typeof r!="function")throw new Error("The state change handler must be a function!");let o;Array.isArray(n)?o=n:o=[n];const s=[];for(let a=0;a{const c={elapsed:!1,clearTimeout:()=>{}};let h;r!==!1&&(h=setTimeout(()=>{c.elapsed=!0,o==null||o(),t&&this._promises[t]instanceof Promise&&delete this._promises[t],u(new Error(Dn.TIMEOUT))},r??this.props.cmdTimeout),c.clearTimeout=()=>{clearTimeout(h)});try{await i(d,u,c)}catch(f){t&&this._promises[t]instanceof Promise&&delete this._promises[t],u(new Error(f.toString()))}});return t&&(this._promises[t]=l),l}resetCache(t,n){n?Object.keys(this._promises).filter(r=>r.startsWith(t)).forEach(r=>{delete this._promises[r]}):delete this._promises[t]}getStates(t){return this.request({commandTimeout:!1,executor:(n,r)=>{this._socket.emit("getStates",t,(o,s)=>{this.states=s??{},o?r(o):n(this.states)})}})}getState(t){return this.request({commandTimeout:!1,executor:(n,r)=>{if(t&&t===this.ignoreState){n(this.simStates[t]||{val:null,ack:!0});return}this._socket.emit("getState",t,(o,s)=>{o?r(o):n(s)})}})}getBinaryState(t){return this.request({commandTimeout:!1,executor:(n,r)=>{this._socket.emit("getBinaryState",t,(o,s)=>{o?r(o):n(s)})}})}setBinaryState(t,n){return this.request({commandTimeout:!1,executor:(r,o)=>{this._socket.emit("setBinaryState",t,n,s=>{s?o(s):r()})}})}setState(t,n,r){return typeof r=="boolean"&&(n={val:n,ack:r}),this.request({commandTimeout:!1,executor:(o,s)=>{if(t&&t===this.ignoreState){let a;if(typeof r=="boolean"||typeof n=="object"&&n.val!==void 0?a=n:a={val:n,ack:!1,ts:Date.now(),lc:Date.now(),from:"system.adapter.vis.0"},this.simStates[t]=a,this.statesSubscribes[t])for(const i of this.statesSubscribes[t].cbs)try{const l=i(t,a);l instanceof Promise&&l.catch(d=>console.error(`Cannot call state change handler: ${d}`))}catch(l){console.error(`Error by callback of stateChanged: ${l}`)}o();return}this._socket.emit("setState",t,n,a=>{a?s(a):o()})}})}getObjects(t,n){return this.request({commandTimeout:!1,executor:(r,o)=>{if(!t&&this.objects){r(this.objects);return}this._socket.emit(Mo.isWeb()?"getObjects":"getAllObjects",(s,a)=>{var i,l;n||(l=(i=this.props).onProgress)==null||l.call(i,No.OBJECTS_LOADED),s?o(s):(this.objects=a??{},r(this.objects))})}})}getObjectsById(t){return this.request({commandTimeout:!1,executor:(n,r)=>{this._socket.emit("getObjects",t,(o,s)=>{o?r(o):n(s)})}})}_subscribe(t){var n,r;if(t&&!this.subscribed){this.subscribed=!0,(n=this.props.autoSubscribes)!=null&&n.length&&this._socket.emit("subscribeObjects",this.props.autoSubscribes);const o=Object.keys(this.objectsSubscribes);o.length&&this._socket.emit("subscribeObjects",o),Object.keys(this.objectsSubscribes).forEach(s=>this._socket.emit("subscribeObjects",s)),this.props.autoSubscribeLog&&this._socket.emit("requireLog",!0),Object.keys(this.statesSubscribes).forEach(s=>this._socket.emit("subscribe",s)),Object.keys(this.filesSubscribes).forEach(s=>{const[a,i]=s.split("$%$");this._socket.emit("subscribeFiles",a,i)})}else if(!t&&this.subscribed){this.subscribed=!1,(r=this.props.autoSubscribes)!=null&&r.length&&this._socket.emit("unsubscribeObjects",this.props.autoSubscribes);const o=Object.keys(this.objectsSubscribes);o.length&&this._socket.emit("unsubscribeObjects",o),this.props.autoSubscribeLog&&this._socket.emit("requireLog",!1),Object.keys(this.statesSubscribes).forEach(s=>this._socket.emit("unsubscribe",s)),Object.keys(this.filesSubscribes).forEach(s=>{const[a,i]=s.split("$%$");this._socket.emit("unsubscribeFiles",a,i)})}}requireLog(t){return this.request({commandTimeout:!1,executor:(n,r)=>{this._socket.emit("requireLog",t,o=>{o?r(o):n()})}})}delObject(t,n=!1){return this.request({commandTimeout:!1,executor:(r,o)=>{this._socket.emit("delObject",t,{maintenance:n},s=>{s?o(s):r()})}})}delObjects(t,n){return this.request({commandTimeout:!1,executor:(r,o)=>{this._socket.emit("delObjects",t,{maintenance:n},s=>{s?o(s):r()})}})}setObject(t,n){return n?(n=JSON.parse(JSON.stringify(n)),delete n.from,delete n.user,delete n.ts,this.request({commandTimeout:!1,executor:(r,o)=>{this._socket.emit("setObject",t,n,s=>{s?o(s):r()})}})):Promise.reject(new Error("Null object is not allowed"))}getObject(t){return this.request({commandTimeout:!1,executor:(n,r)=>{if(t&&t===this.ignoreState){n({_id:this.ignoreState,type:"state",common:{name:"ignored state",type:"mixed"}});return}this._socket.emit("getObject",t,(o,s)=>{o?r(o):n(s)})}})}sendTo(t,n,r){return this.request({commandTimeout:!1,executor:o=>{this._socket.emit("sendTo",t,n,r,s=>{o(s)})}})}extendObject(t,n){return n?(n=JSON.parse(JSON.stringify(n)),delete n.from,delete n.user,delete n.ts,this.request({commandTimeout:!1,executor:(r,o)=>{this._socket.emit("extendObject",t,n,s=>{s?o(s):r()})}})):Promise.reject(new Error("Null object is not allowed"))}registerLogHandler(t){this.onLogHandlers.includes(t)||this.onLogHandlers.push(t)}unregisterLogHandler(t){const n=this.onLogHandlers.indexOf(t);n!==-1&&this.onLogHandlers.splice(n,1)}registerConnectionHandler(t){this.onConnectionHandlers.includes(t)||this.onConnectionHandlers.push(t)}unregisterConnectionHandler(t){const n=this.onConnectionHandlers.indexOf(t);n!==-1&&this.onConnectionHandlers.splice(n,1)}registerCmdStdoutHandler(t){this.onCmdStdoutHandler=t}unregisterCmdStdoutHandler(){this.onCmdStdoutHandler=void 0}registerCmdStderrHandler(t){this.onCmdStderrHandler=t}unregisterCmdStderrHandler(){this.onCmdStderrHandler=void 0}registerCmdExitHandler(t){this.onCmdExitHandler=t}unregisterCmdExitHandler(){this.onCmdExitHandler=void 0}getEnums(t,n){return this.request({cacheKey:`enums_${t||"all"}`,forceUpdate:n,commandTimeout:!1,executor:(r,o)=>{this._socket.emit("getObjectView","system","enum",{startkey:`enum.${t||""}`,endkey:t?`enum.${t}.香`:"enum.香"},(s,a)=>{if(s)o(s);else{const i={};if(a)for(let l=0;l{r=r||"",o=o||"香",this._socket.emit("getObjectView",t,n,{startkey:r,endkey:o},(i,l)=>{if(i)a(i);else{const d={};if(l&&l.rows)for(let u=0;u{this._socket.emit("getObjectView","system","meta",{startkey:"",endkey:"香"},(r,o)=>{var s;r?n(r):t((s=o.rows)==null?void 0:s.map(a=>a.value).filter(a=>!!a))})}})}readDir(t,n){return this.request({commandTimeout:!1,executor:(r,o)=>{this._socket.emit("readDir",t,n,(s,a)=>{s?o(s):r(a)})}})}readFile(t,n,r){return this.request({commandTimeout:!1,executor:(o,s)=>{this._socket.emit(r?"readFile64":"readFile",t,n,(a,i,l)=>{a?s(a):o({file:i,mimeType:l})})}})}writeFile64(t,n,r){return this.request({commandTimeout:!1,executor:(o,s)=>{if(typeof r=="string")this._socket.emit("writeFile",t,n,r,a=>{a?s(a):o()});else{const a=btoa(new Uint8Array(r).reduce((i,l)=>i+String.fromCharCode(l),""));this._socket.emit("writeFile64",t,n,a,i=>{i?s(i):o()})}}})}deleteFile(t,n){return this.request({commandTimeout:!1,executor:(r,o)=>{this._socket.emit("deleteFile",t,n,s=>{s?o(s):r()})}})}deleteFolder(t,n){return this.request({commandTimeout:!1,executor:(r,o)=>{this._socket.emit("deleteFolder",t,n,s=>{s?o(s):r()})}})}rename(t,n,r){return this.request({commandTimeout:!1,executor:(o,s)=>{this._socket.emit("rename",t,n,r,a=>{a?s(a):o()})}})}renameFile(t,n,r){return this.request({commandTimeout:!1,executor:(o,s)=>{this._socket.emit("renameFile",t,n,r,a=>{a?s(a):o()})}})}cmdExec(t,n,r,o){return this.request({commandTimeout:o,executor:(s,a,i)=>{t=rs(t),this._socket.emit("cmdExec",t,r,n,l=>{i.elapsed||(i.clearTimeout(),l?a(l):s())})}})}getSystemConfig(t){return this.request({cacheKey:"systemConfig",forceUpdate:t,commandTimeout:!1,executor:async n=>{let r=await this.getObject("system.config");r??(r={}),r.common??(r.common={}),r.native??(r.native={}),n(r)}})}getCompactSystemConfig(t){return this.request({cacheKey:"systemConfigCommon",forceUpdate:t,commandTimeout:!1,requireAdmin:!0,executor:(n,r)=>{this._socket.emit("getCompactSystemConfig",(o,s)=>{o?r(o):(s??(s={}),s.common??(s.common={}),s.native??(s.native={}),n(s))})}})}getForeignStates(t){return this.request({commandTimeout:!1,executor:(n,r)=>{this._socket.emit("getForeignStates",t||"*",(o,s)=>{o?r(o):n(s??{})})}})}getForeignObjects(t,n){return this.request({commandTimeout:!1,executor:(r,o)=>{this._socket.emit("getForeignObjects",t||"*",n,(s,a)=>{s?o(s):r(a)})}})}setSystemConfig(t){return this.setObject("system.config",t)}getRawSocket(){return this._socket}getHistory(t,n){return this.request({commandTimeout:!1,executor:(r,o)=>{this._socket.emit("getHistory",t,n,(s,a)=>{s?o(s):r(a)})}})}getHistoryEx(t,n){return this.request({commandTimeout:!1,executor:(r,o)=>{this._socket.emit("getHistory",t,n,(s,a,i,l)=>{s?o(s):r({values:a,sessionId:l,stepIgnore:i})})}})}getIpAddresses(t,n){return t=rs(t),this.request({cacheKey:`IPs_${t}`,forceUpdate:n,commandTimeout:!1,executor:async r=>{const o=await this.getObject(t);r((o==null?void 0:o.common.address)??[])}})}getVersion(t){return this.request({cacheKey:"version",forceUpdate:t,commandTimeout:!1,executor:(n,r)=>{this._socket.emit("getVersion",(o,s,a)=>{o&&!s&&typeof o=="string"&&o.match(/\d+\.\d+\.\d+/)?n({version:o,serverName:"socketio"}):o?r(o):n({version:s,serverName:a})})}})}getWebServerName(){return this.request({cacheKey:"webName",commandTimeout:!1,executor:(t,n)=>{this._socket.emit("getAdapterName",(r,o)=>{r?n(r):t(o)})}})}fileExists(t,n){return this.request({commandTimeout:!1,executor:(r,o)=>{this._socket.emit("fileExists",t,n,(s,a)=>{s?o(s):r(!!a)})}})}getCurrentUser(){return this.request({commandTimeout:!1,executor:t=>{this._socket.emit("authEnabled",(n,r)=>{t(r)})}})}getUuid(){return this.request({cacheKey:"uuid",commandTimeout:!1,executor:async t=>{var r;const n=await this.getObject("system.meta.uuid");t((r=n==null?void 0:n.native)==null?void 0:r.uuid)}})}checkFeatureSupported(t,n){return this.request({cacheKey:`supportedFeatures_${t}`,forceUpdate:n,commandTimeout:!1,executor:(r,o)=>{this._socket.emit("checkFeatureSupported",t,(s,a)=>{s?o(s):r(a)})}})}getAdapterInstances(t,n){return typeof t=="boolean"&&(n=t,t=""),t=t||"",this.request({cacheKey:`instances_${t}`,forceUpdate:n,commandTimeout:!1,executor:async r=>{const o=t?`system.adapter.${t}.`:"system.adapter.",s=`${o}香`,a=await this.getObjectViewSystem("instance",o,s),i=Object.values(a);r(t?i.filter(l=>l.common.name===t):i)}})}getAdapters(t,n){return typeof t=="boolean"&&(n=t,t=""),t=t||"",this.request({cacheKey:`adapter_${t}`,forceUpdate:n,commandTimeout:!1,executor:async r=>{const o=await this.getObjectViewSystem("adapter",`system.adapter.${t||""}`,`system.adapter.${t||"香"}`),s=Object.values(o);r(t?s.filter(a=>a.common.name===t):s)}})}getGroups(t){return this.request({cacheKey:"groups",forceUpdate:t,commandTimeout:!1,executor:(n,r)=>{this._socket.emit("getObjectView","system","group",{startkey:"system.group.",endkey:"system.group.香"},(o,s)=>{o?r(o):n(ty(s))})}})}logout(){return this.request({commandTimeout:!1,executor:(t,n)=>{this._socket.emit("logout",r=>{r?n(r):t(null)})}})}subscribeOnInstance(t,n,r,o){return this.request({commandTimeout:!1,executor:(s,a)=>{this._socket.emit("clientSubscribe",t,n,r,(i,l)=>{i?a(i):l&&(l.error?a(l.error):(t.startsWith("system.adapter.")||(t=`system.adapter.${t}`),this._instanceSubscriptions[t]=this._instanceSubscriptions[t]||[],this._instanceSubscriptions[t].find(d=>d.messageType===n&&d.callback===o)||this._instanceSubscriptions[t].push({messageType:n,callback:o}),s(l)))})}})}unsubscribeFromInstance(t,n,r){var a;t.startsWith("system.adapter.")||(t=`system.adapter.${t}`);let o;const s=[];do{o=!1;const i=(a=this._instanceSubscriptions[t])==null?void 0:a.findIndex(l=>(!n||l.messageType===n)&&(!r||l.callback===r));if(i!=null&&i!==-1){o=!0;const l=this._instanceSubscriptions[t][i].messageType;this._instanceSubscriptions[t].splice(i,1),this._instanceSubscriptions[t].length||delete this._instanceSubscriptions[t],this._instanceSubscriptions[t]&&this._instanceSubscriptions[t].find(u=>u.messageType===l)||s.push(this.request({commandTimeout:!1,executor:(u,c)=>{this._socket.emit("clientUnsubscribe",t,n,(h,f)=>h?c(h):u(f))}}))}}while(o&&(!r||!n));return s.length?Promise.all(s).then(i=>!!i.find(l=>l)):Promise.resolve(!1)}log(t,n){return t?this.request({commandTimeout:!1,executor:r=>(this._socket.emit("log",t,n),r(null))}):Promise.resolve(null)}setStateToIgnore(t){this.ignoreState=t}}function z7(e,t){if(!t)return;let n;if(t.length<700&&(t.indexOf("/")!==-1||t.indexOf("\\")!==-1))if(e.toLowerCase().includes("private"))n="private";else if(t.toLowerCase().includes("private"))n="private";else if(e.toLowerCase().includes("public"))n="public";else if(t.toLowerCase().includes("public"))n="public";else if(e.toLowerCase().includes("chain"))n="chained";else if(t.toLowerCase().includes("chain"))n="chained";else return;else n=t.substring(0,26)==="-----BEGIN RSA PRIVATE KEY"||t.substring(0,22)==="-----BEGIN PRIVATE KEY"?"private":"public",n==="public"&&t.split("-----END CERTIFICATE-----").filter(o=>o.replace(/\r\n|\r|\n/,"").trim()).length>1&&(n="chained");return{name:e,type:n}}function R7(e){var r,o;const t=[{name:"[IPv4] 0.0.0.0 - Listen on all IPs",address:"0.0.0.0",family:"ipv4"}],n=[{name:"[IPv6] :: - Listen on all IPs",address:"::",family:"ipv6"}];if((o=(r=e.native)==null?void 0:r.hardware)!=null&&o.networkInterfaces){for(const[s,a]of Object.entries(e.native.hardware.networkInterfaces))if(a)for(const i of a)i.family!=="IPv6"?t.push({name:`[${i.family}] ${i.address} - ${s}`,address:i.address,family:"ipv4"}):n.push({name:`[${i.family}] ${i.address} - ${s}`,address:i.address,family:"ipv6"})}return{IPs4:t,IPs6:n}}class P7 extends Mo{constructor(t){super(t)}request(t){return super.request({requireAdmin:!0,...t})}getCertificates(t){return this.request({cacheKey:"cert",forceUpdate:t,commandTimeout:!1,executor:async n=>{var o;const r=await this.getObject("system.certificates");(o=r==null?void 0:r.native)!=null&&o.certificates?n(Object.entries(r.native.certificates).map(([s,a])=>z7(s,a)).filter(s=>!!s)):n([])}})}getLogs(t,n=200){return this.request({commandTimeout:!1,executor:r=>{this._socket.emit("sendToHost",t,"getLogs",n||200,o=>{r(o)})}})}upgradeAdapterWithWebserver(t,n){return this.request({commandTimeout:!1,executor:r=>{this._socket.emit("sendToHost",t,"upgradeAdapterWithWebserver",n,o=>{r(o)})}})}upgradeController(t,n,r){return this.request({commandTimeout:!1,executor:(o,s)=>{this._socket.emit("sendToHost",t,"upgradeController",{version:n,adminInstance:r},a=>{const i=a;i.error?s(i.error):o(i.result)})}})}updateLicenses(t,n){return this.request({commandTimeout:!1,executor:(r,o)=>{this._socket.emit("updateLicenses",t,n,(s,a)=>{s?o(s):r(a)})}})}upgradeOsPackages(t,n,r){return this.request({commandTimeout:!1,executor:o=>{this._socket.emit("sendToHost",t,"upgradeOsPackages",{packages:n,restart:!!r},s=>{o(s)})}})}getLogsFiles(t){return this.request({commandTimeout:!1,executor:(n,r)=>{this._socket.emit("readLogs",t,(o,s)=>{o&&r(o),n(s)})}})}delLogs(t){return this.request({commandTimeout:!1,executor:(n,r)=>{this._socket.emit("sendToHost",t,"delLogs",null,o=>{o&&r(o),n()})}})}deleteFile(t,n){return this.request({commandTimeout:!1,executor:(r,o)=>{this._socket.emit("deleteFile",t,n,s=>{s&&o(s),r()})}})}deleteFolder(t,n){return this.request({commandTimeout:!1,executor:(r,o)=>{this._socket.emit("deleteFolder",t,n,s=>{s&&o(s),r()})}})}rename(t,n,r){return this.request({commandTimeout:!1,executor:(o,s)=>{this._socket.emit("rename",t,n,r,a=>{a&&s(a),o()})}})}renameFile(t,n,r){return this.request({commandTimeout:!1,executor:(o,s)=>{this._socket.emit("renameFile",t,n,r,a=>{a&&s(a),o()})}})}getHosts(t){return this.request({cacheKey:"hosts",forceUpdate:t,commandTimeout:!1,executor:(n,r)=>{this._socket.emit("getObjectView","system","host",{startkey:"system.host.",endkey:"system.host.香"},(o,s)=>{o?r(o):n(ty(s))})}})}getUsers(t){return this.request({cacheKey:"users",forceUpdate:t,commandTimeout:!1,executor:(n,r)=>{this._socket.emit("getObjectView","system","user",{startkey:"system.user.",endkey:"system.user.香"},(o,s)=>{o?r(o):n(ty(s))})}})}renameGroup(t,n,r){return this.request({commandTimeout:!1,executor:async o=>{const s=await this.getGroups(!0),a=s.filter(l=>l._id.startsWith(`${t}.`));for(const l of a){const d=l._id,u=n+l._id.substring(t.length);l._id=u,await this.setObject(u,l),await this.delObject(d)}const i=s.find(l=>l._id===t);if(i){const l=i._id;i._id=n,r!==void 0&&(i.common??(i.common={}),i.common.name=r),await this.setObject(n,i),await this.delObject(l)}o()}})}getHostInfo(t,n,r){return t=rs(t),this.request({cacheKey:`hostInfo_${t}`,forceUpdate:n,commandTimeout:r,executor:(o,s,a)=>{this._socket.emit("sendToHost",t,"getHostInfo",null,i=>{a.elapsed||(a.clearTimeout(),i===Dn.PERMISSION_ERROR?s('May not read "getHostInfo"'):i?o(i):s('Cannot read "getHostInfo"'))})}})}getHostInfoShort(t,n,r){return t=rs(t),this.request({cacheKey:`hostInfoShort_${t}`,forceUpdate:n,commandTimeout:r,executor:(o,s,a)=>{this._socket.emit("sendToHost",t,"getHostInfoShort",null,i=>{a.elapsed||(a.clearTimeout(),i===Dn.PERMISSION_ERROR?s('May not read "getHostInfoShort"'):i?o(i):s('Cannot read "getHostInfoShort"'))})}})}getRepository(t,n,r,o){return this.request({cacheKey:`repository_${t}`,forceUpdate:r,commandTimeout:o,executor:(s,a,i)=>{this._socket.emit("sendToHost",t,"getRepository",n,l=>{i.elapsed||(i.clearTimeout(),l===Dn.PERMISSION_ERROR?a('May not read "getRepository"'):l?s(l):a('Cannot read "getRepository"'))})}})}getInstalled(t,n,r){return t=rs(t),this.request({cacheKey:`installed_${t}`,forceUpdate:n,commandTimeout:r,executor:(o,s,a)=>{this._socket.emit("sendToHost",t,"getInstalled",null,i=>{a.elapsed||(a.clearTimeout(),i===Dn.PERMISSION_ERROR?s('May not read "getInstalled"'):i?o(i):s('Cannot read "getInstalled"'))})}})}cmdExec(t,n,r,o){return this.request({commandTimeout:o,executor:(s,a,i)=>{t=rs(t),this._socket.emit("cmdExec",t,r,n,l=>{i.elapsed||(i.clearTimeout(),l&&a(l),s())})}})}readBaseSettings(t){return t=Pc(t),this.request({requireFeatures:["CONTROLLER_READWRITE_BASE_SETTINGS"],executor:(n,r,o)=>{this._socket.emit("sendToHost",t,"readBaseSettings",null,s=>{o.elapsed||(o.clearTimeout(),s===Dn.PERMISSION_ERROR?r('May not read "BaseSettings"'):s?s.error?r(new Error(s.error)):n(s):r('Cannot read "BaseSettings"'))})}})}writeBaseSettings(t,n){return t=Pc(t),this.request({requireFeatures:["CONTROLLER_READWRITE_BASE_SETTINGS"],executor:(r,o,s)=>{this._socket.emit("sendToHost",t,"writeBaseSettings",n,a=>{s.elapsed||(s.clearTimeout(),a===Dn.PERMISSION_ERROR?o('May not write "BaseSettings"'):a?r(a):o('Cannot write "BaseSettings"'))})}})}restartController(t){return t=Pc(t),this.request({executor:(n,r,o)=>{this._socket.emit("sendToHost",t,"restartController",null,()=>{o.elapsed||(o.clearTimeout(),n(!0))})}})}getDiagData(t,n){return t=Pc(t),this.request({executor:(r,o,s)=>{this._socket.emit("sendToHost",t,"getDiagData",n,a=>{s.elapsed||(s.clearTimeout(),r(a||null))})}})}changePassword(t,n){return this.request({executor:(r,o,s)=>{this._socket.emit("changePassword",t,n,a=>{s.elapsed||(s.clearTimeout(),a&&o(a),r())})}})}getIpAddresses(t,n){return t=rs(t),this.request({cacheKey:`IPs_${t}`,forceUpdate:n,commandTimeout:!1,executor:async r=>{const o=await this.getObject(t);r((o==null?void 0:o.common.address)??[])}})}getHostByIp(t,n){return t=Pc(t),this.request({cacheKey:`rIPs_${t}`,forceUpdate:n,executor:(r,o,s)=>{this._socket.emit("getHostByIp",t,(a,i)=>{if(s.elapsed)return;s.clearTimeout();const{IPs4:l,IPs6:d}=R7(i);r([...l,...d])})}})}encrypt(t){return this.request({executor:(n,r,o)=>{this._socket.emit("encrypt",t,(s,a)=>{o.elapsed||(o.clearTimeout(),s&&r(s),n(a))})}})}decrypt(t){return this.request({executor:(n,r,o)=>{this._socket.emit("decrypt",t,(s,a)=>{o.elapsed||(o.clearTimeout(),s&&r(s),n(a))})}})}chmodFile(t,n,r){return this.request({executor:(o,s,a)=>{this._socket.emit("chmodFile",t,n,r,(i,l)=>{a.elapsed||(a.clearTimeout(),i&&s(i),o(l))})}})}chownFile(t,n,r){return this.request({executor:(o,s,a)=>{this._socket.emit("chownFile",t,n,r,(i,l)=>{a.elapsed||(a.clearTimeout(),i&&s(i),o(l))})}})}getNotifications(t,n){return this.request({executor:(r,o,s)=>{this._socket.emit("sendToHost",t,"getNotifications",{category:n},a=>{s.elapsed||(s.clearTimeout(),r(a))})}})}clearNotifications(t,n){return this.request({executor:(r,o,s)=>{this._socket.emit("sendToHost",t,"clearNotifications",{category:n},a=>{s.elapsed||(s.clearTimeout(),r(a))})}})}getIsEasyModeStrict(){return this.request({executor:(t,n,r)=>{this._socket.emit("getIsEasyModeStrict",(o,s)=>{r.elapsed||(r.clearTimeout(),o&&n(o),t(!!s))})}})}getEasyMode(){return this.request({executor:(t,n,r)=>{this._socket.emit("getEasyMode",(o,s)=>{r.elapsed||(r.clearTimeout(),o?n(new Error(o)):t(s))})}})}getRatings(t){return this.request({executor:(n,r,o)=>{this._socket.emit("getRatings",!!t,(s,a)=>{o.elapsed||(o.clearTimeout(),s?r(new Error(s)):n(a))})}})}getCurrentSession(t){const n=new AbortController;return this.request({commandTimeout:t||5e3,onTimeout:()=>{n.abort()},executor:async(r,o,s)=>{try{const a=await fetch("./session",{signal:n.signal});if(s.elapsed)return;s.clearTimeout(),r(a.json())}catch(a){o(`getCurrentSession: ${a}`)}}})}getCurrentInstance(){return this.request({cacheKey:"currentInstance",executor:(t,n,r)=>{this._socket.emit("getCurrentInstance",(o,s)=>{r.elapsed||(r.clearTimeout(),o&&n(o),t(s))})}})}getAdapterInstances(t,n){let r;return typeof t=="boolean"?(n=t,r=""):r=t||"",this.request({cacheKey:`instances_${r}`,forceUpdate:n,executor:(o,s,a)=>{this._socket.emit("getAdapterInstances",r,(i,l)=>{a.elapsed||(a.clearTimeout(),i&&s(i),o(l))})}})}getAdapters(t,n){let r;return typeof t=="boolean"?(n=t,r=""):r=t||"",this.request({cacheKey:`adapter_${r}`,forceUpdate:n,executor:(o,s,a)=>{this._socket.emit("getAdapters",r,(i,l)=>{a.elapsed||(a.clearTimeout(),i&&s(i),o(l))})}})}getCompactAdapters(t){return this.request({cacheKey:"compactAdapters",forceUpdate:t,executor:(n,r,o)=>{this._socket.emit("getCompactAdapters",(s,a)=>{o.elapsed||(o.clearTimeout(),s&&r(s),n(a))})}})}getAdaptersResetCache(t){t=t??"",this.resetCache(`adapter_${t}`),this.resetCache("compactAdapters")}getCompactInstances(t){return this.request({cacheKey:"compactInstances",forceUpdate:t,executor:(n,r,o)=>{this._socket.emit("getCompactInstances",(s,a)=>{o.elapsed||(o.clearTimeout(),s&&r(s),n(a))})}})}getAdapterInstancesResetCache(t){t=t??"",this.resetCache(`instances_${t}`),this.resetCache("compactInstances")}getCompactInstalled(t,n,r){return t=rs(t),this.request({cacheKey:`installedCompact_${t}`,forceUpdate:n,commandTimeout:r,executor:(o,s,a)=>{this._socket.emit("getCompactInstalled",t,i=>{a.elapsed||(a.clearTimeout(),i===Dn.PERMISSION_ERROR?s('May not read "getCompactInstalled"'):i?o(i):s('Cannot read "getCompactInstalled"'))})}})}getInstalledResetCache(t){t?(this.resetCache(`installedCompact_${t}`),this.resetCache(`installed_${t}`)):(this.resetCache("installedCompact_",!0),this.resetCache("installed_",!0))}getCompactRepository(t,n,r){return t=rs(t),this.request({cacheKey:`repositoryCompact_${t}`,forceUpdate:n,commandTimeout:r,executor:(o,s,a)=>{this._socket.emit("getCompactRepository",t,i=>{a.elapsed||(a.clearTimeout(),i===Dn.PERMISSION_ERROR?s('May not read "getCompactRepository"'):i?o(i):s('Cannot read "getCompactRepository"'))})}})}getRepositoryResetCache(t){t?(this.resetCache(`repositoryCompact_${t}`),this.resetCache(`repository_${t}`)):(this.resetCache("repositoryCompact_",!0),this.resetCache("repository_",!0))}getCompactHosts(t){return this.request({cacheKey:"hostsCompact",forceUpdate:t,executor:(n,r,o)=>{this._socket.emit("getCompactHosts",(s,a)=>{o.elapsed||(o.clearTimeout(),s&&r(s),n(a))})}})}getCompactSystemRepositories(t){return this.request({cacheKey:"repositoriesCompact",forceUpdate:t,executor:(n,r,o)=>{this._socket.emit("getCompactSystemRepositories",(s,a)=>{o.elapsed||(o.clearTimeout(),s&&r(s),n(a))})}})}}const e4=Object.prototype.toString;function Nb(e){switch(e4.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return Ka(e,Error)}}function uc(e,t){return e4.call(e)===`[object ${t}]`}function t4(e){return uc(e,"ErrorEvent")}function zx(e){return uc(e,"DOMError")}function L7(e){return uc(e,"DOMException")}function us(e){return uc(e,"String")}function Mb(e){return typeof e=="object"&&e!==null&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function jb(e){return e===null||Mb(e)||typeof e!="object"&&typeof e!="function"}function Xl(e){return uc(e,"Object")}function Wm(e){return typeof Event<"u"&&Ka(e,Event)}function F7(e){return typeof Element<"u"&&Ka(e,Element)}function B7(e){return uc(e,"RegExp")}function Hm(e){return!!(e&&e.then&&typeof e.then=="function")}function W7(e){return Xl(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function Ka(e,t){try{return e instanceof t}catch{return!1}}function n4(e){return!!(typeof e=="object"&&e!==null&&(e.__isVue||e._isVue))}function El(e,t=0){return typeof e!="string"||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function Rx(e,t){if(!Array.isArray(e))return"";const n=[];for(let r=0;rH7(e,r,n))}function U7(e,t,n=250,r,o,s,a){if(!s.exception||!s.exception.values||!a||!Ka(a.originalException,Error))return;const i=s.exception.values.length>0?s.exception.values[s.exception.values.length-1]:void 0;i&&(s.exception.values=V7(ny(e,t,o,a.originalException,r,s.exception.values,i,0),n))}function ny(e,t,n,r,o,s,a,i){if(s.length>=n+1)return s;let l=[...s];if(Ka(r[o],Error)){Px(a,i);const d=e(t,r[o]),u=l.length;Lx(d,o,u,i),l=ny(e,t,n,r[o],o,[d,...l],d,u)}return Array.isArray(r.errors)&&r.errors.forEach((d,u)=>{if(Ka(d,Error)){Px(a,i);const c=e(t,d),h=l.length;Lx(c,`errors[${u}]`,h,i),l=ny(e,t,n,d,o,[c,...l],c,h)}}),l}function Px(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,...e.type==="AggregateError"&&{is_exception_group:!0},exception_id:t}}function Lx(e,t,n,r){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:r}}function V7(e,t){return e.map(n=>(n.value&&(n.value=El(n.value,t)),n))}function r4(e){if(e!==void 0)return e>=400&&e<500?"warning":e>=500?"error":void 0}const Ua="8.36.0",it=globalThis;function Vm(e,t,n){const r=it,o=r.__SENTRY__=r.__SENTRY__||{},s=o[Ua]=o[Ua]||{};return s[e]||(s[e]=t())}const Ib=it,G7=80;function o4(e,t={}){if(!e)return"";try{let n=e;const r=5,o=[];let s=0,a=0;const i=" > ",l=i.length;let d;const u=Array.isArray(t)?t:t.keyAttrs,c=!Array.isArray(t)&&t.maxStringLength||G7;for(;n&&s++1&&a+o.length*l+d.length>=c));)o.push(d),a+=d.length,n=n.parentNode;return o.reverse().join(i)}catch{return""}}function q7(e,t){const n=e,r=[];if(!n||!n.tagName)return"";if(Ib.HTMLElement&&n instanceof HTMLElement&&n.dataset){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}r.push(n.tagName.toLowerCase());const o=t&&t.length?t.filter(a=>n.getAttribute(a)).map(a=>[a,n.getAttribute(a)]):null;if(o&&o.length)o.forEach(a=>{r.push(`[${a[0]}="${a[1]}"]`)});else{n.id&&r.push(`#${n.id}`);const a=n.className;if(a&&us(a)){const i=a.split(/\s+/);for(const l of i)r.push(`.${l}`)}}const s=["aria-label","type","name","title","alt"];for(const a of s){const i=n.getAttribute(a);i&&r.push(`[${a}="${i}"]`)}return r.join("")}function J7(){try{return Ib.document.location.href}catch{return""}}function X7(e){if(!Ib.HTMLElement)return null;let t=e;const n=5;for(let r=0;r"u"||__SENTRY_DEBUG__,Y7="Sentry Logger ",ry=["debug","info","warn","error","log","assert","trace"],af={};function Eu(e){if(!("console"in it))return e();const t=it.console,n={},r=Object.keys(af);r.forEach(o=>{const s=af[o];n[o]=t[o],t[o]=s});try{return e()}finally{r.forEach(o=>{t[o]=n[o]})}}function K7(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return Cu?ry.forEach(n=>{t[n]=(...r)=>{e&&Eu(()=>{it.console[n](`${Y7}[${n}]:`,...r)})}}):ry.forEach(n=>{t[n]=()=>{}}),t}const Re=Vm("logger",K7),Z7=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function Q7(e){return e==="http"||e==="https"}function Gm(e,t=!1){const{host:n,path:r,pass:o,port:s,projectId:a,protocol:i,publicKey:l}=e;return`${i}://${l}${t&&o?`:${o}`:""}@${n}${s?`:${s}`:""}/${r&&`${r}/`}${a}`}function eB(e){const t=Z7.exec(e);if(!t){Eu(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}const[n,r,o="",s="",a="",i=""]=t.slice(1);let l="",d=i;const u=d.split("/");if(u.length>1&&(l=u.slice(0,-1).join("/"),d=u.pop()),d){const c=d.match(/^\d+/);c&&(d=c[0])}return s4({host:s,pass:o,path:l,projectId:d,port:a,protocol:n,publicKey:r})}function s4(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function tB(e){if(!Cu)return!0;const{port:t,projectId:n,protocol:r}=e;return["protocol","publicKey","host","projectId"].find(a=>e[a]?!1:(Re.error(`Invalid Sentry Dsn: ${a} missing`),!0))?!1:n.match(/^\d+$/)?Q7(r)?t&&isNaN(parseInt(t,10))?(Re.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):!0:(Re.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(Re.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function nB(e){const t=typeof e=="string"?eB(e):s4(e);if(!(!t||!tB(t)))return t}class Ro extends Error{constructor(t,n="warn"){super(t),this.message=t,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=n}}function _r(e,t,n){if(!(t in e))return;const r=e[t],o=n(r);typeof o=="function"&&a4(o,r),e[t]=o}function Za(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{Cu&&Re.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function a4(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,Za(e,"__sentry_original__",t)}catch{}}function zb(e){return e.__sentry_original__}function rB(e){return Object.keys(e).map(t=>`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`).join("&")}function i4(e){if(Nb(e))return{message:e.message,name:e.name,stack:e.stack,...Bx(e)};if(Wm(e)){const t={type:e.type,target:Fx(e.target),currentTarget:Fx(e.currentTarget),...Bx(e)};return typeof CustomEvent<"u"&&Ka(e,CustomEvent)&&(t.detail=e.detail),t}else return e}function Fx(e){try{return F7(e)?o4(e):Object.prototype.toString.call(e)}catch{return""}}function Bx(e){if(typeof e=="object"&&e!==null){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}else return{}}function oB(e,t=40){const n=Object.keys(i4(e));n.sort();const r=n[0];if(!r)return"[object has no keys]";if(r.length>=t)return El(r,t);for(let o=n.length;o>0;o--){const s=n.slice(0,o).join(", ");if(!(s.length>t))return o===n.length?s:El(s,t)}return""}function Br(e){return oy(e,new Map)}function oy(e,t){if(sB(e)){const n=t.get(e);if(n!==void 0)return n;const r={};t.set(e,r);for(const o of Object.getOwnPropertyNames(e))typeof e[o]<"u"&&(r[o]=oy(e[o],t));return r}if(Array.isArray(e)){const n=t.get(e);if(n!==void 0)return n;const r=[];return t.set(e,r),e.forEach(o=>{r.push(oy(o,t))}),r}return e}function sB(e){if(!Xl(e))return!1;try{const t=Object.getPrototypeOf(e).constructor.name;return!t||t==="Object"}catch{return!0}}const l4=50,Qa="?",Wx=/\(error: (.*)\)/,Hx=/captureMessage|captureException/;function c4(...e){const t=e.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return(n,r=0,o=0)=>{const s=[],a=n.split(` +`);for(let i=r;i1024)continue;const d=Wx.test(l)?l.replace(Wx,"$1"):l;if(!d.match(/\S*Error: /)){for(const u of t){const c=u(d);if(c){s.push(c);break}}if(s.length>=l4+o)break}}return iB(s.slice(o))}}function aB(e){return Array.isArray(e)?c4(...e):e}function iB(e){if(!e.length)return[];const t=Array.from(e);return/sentryWrapped/.test(bp(t).function||"")&&t.pop(),t.reverse(),Hx.test(bp(t).function||"")&&(t.pop(),Hx.test(bp(t).function||"")&&t.pop()),t.slice(0,l4).map(n=>({...n,filename:n.filename||bp(t).filename,function:n.function||Qa}))}function bp(e){return e[e.length-1]||{}}const l_="";function ca(e){try{return!e||typeof e!="function"?l_:e.name||l_}catch{return l_}}function Ux(e){const t=e.exception;if(t){const n=[];try{return t.values.forEach(r=>{r.stacktrace.frames&&n.push(...r.stacktrace.frames)}),n}catch{return}}}const hh={},Vx={};function di(e,t){hh[e]=hh[e]||[],hh[e].push(t)}function ui(e,t){Vx[e]||(t(),Vx[e]=!0)}function mo(e,t){const n=e&&hh[e];if(n)for(const r of n)try{r(t)}catch(o){Cu&&Re.error(`Error while triggering instrumentation handler. +Type: ${e} +Name: ${ca(r)} +Error:`,o)}}function lB(e){const t="console";di(t,e),ui(t,cB)}function cB(){"console"in it&&ry.forEach(function(e){e in it.console&&_r(it.console,e,function(t){return af[e]=t,function(...n){mo("console",{args:n,level:e});const o=af[e];o&&o.apply(it.console,n)}})})}const sy=it;function d4(){if(!("fetch"in sy))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}function ay(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function dB(){if(typeof EdgeRuntime=="string")return!0;if(!d4())return!1;if(ay(sy.fetch))return!0;let e=!1;const t=sy.document;if(t&&typeof t.createElement=="function")try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(e=ay(n.contentWindow.fetch)),t.head.removeChild(n)}catch(n){Cu&&Re.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return e}const u4=1e3;function Tu(){return Date.now()/u4}function uB(){const{performance:e}=it;if(!e||!e.now)return Tu;const t=Date.now()-e.now(),n=e.timeOrigin==null?t:e.timeOrigin;return()=>(n+e.now())/u4}const ps=uB();(()=>{const{performance:e}=it;if(!e||!e.now)return;const t=3600*1e3,n=e.now(),r=Date.now(),o=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,s=ohB(void 0,t))}function hB(e,t=!1){t&&!dB()||_r(it,"fetch",function(n){return function(...r){const{method:o,url:s}=fB(r),a={args:r,fetchData:{method:o,url:s},startTimestamp:ps()*1e3};mo("fetch",{...a});const i=new Error().stack;return n.apply(it,r).then(async l=>(mo("fetch",{...a,endTimestamp:ps()*1e3,response:l}),l),l=>{throw mo("fetch",{...a,endTimestamp:ps()*1e3,error:l}),Nb(l)&&l.stack===void 0&&(l.stack=i,Za(l,"framesToPop",1)),l})}})}function iy(e,t){return!!e&&typeof e=="object"&&!!e[t]}function Gx(e){return typeof e=="string"?e:e?iy(e,"url")?e.url:e.toString?e.toString():"":""}function fB(e){if(e.length===0)return{method:"GET",url:""};if(e.length===2){const[n,r]=e;return{url:Gx(n),method:iy(r,"method")?String(r.method).toUpperCase():"GET"}}const t=e[0];return{url:Gx(t),method:iy(t,"method")?String(t.method).toUpperCase():"GET"}}let wp=null;function mB(e){const t="error";di(t,e),ui(t,gB)}function gB(){wp=it.onerror,it.onerror=function(e,t,n,r,o){return mo("error",{column:r,error:o,line:n,msg:e,url:t}),wp&&!wp.__SENTRY_LOADER__?wp.apply(this,arguments):!1},it.onerror.__SENTRY_INSTRUMENTED__=!0}let Sp=null;function _B(e){const t="unhandledrejection";di(t,e),ui(t,vB)}function vB(){Sp=it.onunhandledrejection,it.onunhandledrejection=function(e){return mo("unhandledrejection",e),Sp&&!Sp.__SENTRY_LOADER__?Sp.apply(this,arguments):!0},it.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}function yB(){return"npm"}function bB(){const e=typeof WeakSet=="function",t=e?new WeakSet:[];function n(o){if(e)return t.has(o)?!0:(t.add(o),!1);for(let s=0;sMath.random()*16;try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>{const r=new Uint8Array(1);return t.getRandomValues(r),r[0]})}catch{}return("10000000100040008000"+1e11).replace(/[018]/g,r=>(r^(n()&15)>>r/4).toString(16))}function p4(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function js(e){const{message:t,event_id:n}=e;if(t)return t;const r=p4(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"":n||""}function ly(e,t,n){const r=e.exception=e.exception||{},o=r.values=r.values||[],s=o[0]=o[0]||{};s.value||(s.value=t||""),s.type||(s.type="Error")}function au(e,t){const n=p4(e);if(!n)return;const r={type:"generic",handled:!0},o=n.mechanism;if(n.mechanism={...r,...o,...t},t&&"data"in t){const s={...o&&o.data,...t.data};n.mechanism.data=s}}function qx(e){if(e&&e.__sentry_captured__)return!0;try{Za(e,"__sentry_captured__",!0)}catch{}return!1}function h4(e){return Array.isArray(e)?e:[e]}function Is(e,t=100,n=1/0){try{return cy("",e,t,n)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}function f4(e,t=3,n=100*1024){const r=Is(e,t);return kB(r)>n?f4(e,t-1,n):r}function cy(e,t,n=1/0,r=1/0,o=bB()){const[s,a]=o;if(t==null||["boolean","string"].includes(typeof t)||typeof t=="number"&&Number.isFinite(t))return t;const i=wB(e,t);if(!i.startsWith("[object "))return i;if(t.__sentry_skip_normalization__)return t;const l=typeof t.__sentry_override_normalization_depth__=="number"?t.__sentry_override_normalization_depth__:n;if(l===0)return i.replace("object ","");if(s(t))return"[Circular ~]";const d=t;if(d&&typeof d.toJSON=="function")try{const f=d.toJSON();return cy("",f,l-1,r,o)}catch{}const u=Array.isArray(t)?[]:{};let c=0;const h=i4(t);for(const f in h){if(!Object.prototype.hasOwnProperty.call(h,f))continue;if(c>=r){u[f]="[MaxProperties ~]";break}const g=h[f];u[f]=cy(f,g,l-1,r,o),c++}return a(t),u}function wB(e,t){try{if(e==="domain"&&t&&typeof t=="object"&&t._events)return"[Domain]";if(e==="domainEmitter")return"[DomainEmitter]";if(typeof global<"u"&&t===global)return"[Global]";if(typeof window<"u"&&t===window)return"[Window]";if(typeof document<"u"&&t===document)return"[Document]";if(n4(t))return"[VueViewModel]";if(W7(t))return"[SyntheticEvent]";if(typeof t=="number"&&!Number.isFinite(t))return`[${t}]`;if(typeof t=="function")return`[Function: ${ca(t)}]`;if(typeof t=="symbol")return`[${String(t)}]`;if(typeof t=="bigint")return`[BigInt: ${String(t)}]`;const n=SB(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(n){return`**non-serializable** (${n})`}}function SB(e){const t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}function xB(e){return~-encodeURI(e).split(/%..|./).length}function kB(e){return xB(JSON.stringify(e))}var os;(function(e){e[e.PENDING=0]="PENDING";const n=1;e[e.RESOLVED=n]="RESOLVED";const r=2;e[e.REJECTED=r]="REJECTED"})(os||(os={}));function ei(e){return new Rr(t=>{t(e)})}function lf(e){return new Rr((t,n)=>{n(e)})}class Rr{constructor(t){Rr.prototype.__init.call(this),Rr.prototype.__init2.call(this),Rr.prototype.__init3.call(this),Rr.prototype.__init4.call(this),this._state=os.PENDING,this._handlers=[];try{t(this._resolve,this._reject)}catch(n){this._reject(n)}}then(t,n){return new Rr((r,o)=>{this._handlers.push([!1,s=>{if(!t)r(s);else try{r(t(s))}catch(a){o(a)}},s=>{if(!n)o(s);else try{r(n(s))}catch(a){o(a)}}]),this._executeHandlers()})}catch(t){return this.then(n=>n,t)}finally(t){return new Rr((n,r)=>{let o,s;return this.then(a=>{s=!1,o=a,t&&t()},a=>{s=!0,o=a,t&&t()}).then(()=>{if(s){r(o);return}n(o)})})}__init(){this._resolve=t=>{this._setResult(os.RESOLVED,t)}}__init2(){this._reject=t=>{this._setResult(os.REJECTED,t)}}__init3(){this._setResult=(t,n)=>{if(this._state===os.PENDING){if(Hm(n)){n.then(this._resolve,this._reject);return}this._state=t,this._value=n,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===os.PENDING)return;const t=this._handlers.slice();this._handlers=[],t.forEach(n=>{n[0]||(this._state===os.RESOLVED&&n[1](this._value),this._state===os.REJECTED&&n[2](this._value),n[0]=!0)})}}}function $B(e){const t=[];function n(){return e===void 0||t.lengthr(i)).then(null,()=>r(i).then(null,()=>{})),i}function s(a){return new Rr((i,l)=>{let d=t.length;if(!d)return i(!0);const u=setTimeout(()=>{a&&a>0&&i(!1)},a);t.forEach(c=>{ei(c).then(()=>{--d||(clearTimeout(u),i(!0))},l)})})}return{$:t,add:o,drain:s}}function c_(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}const CB=["fatal","error","warning","log","info","debug"];function EB(e){return e==="warn"?"warning":CB.includes(e)?e:"log"}const TB="sentry-",OB=/^sentry-/;function DB(e){const t=AB(e);if(!t)return;const n=Object.entries(t).reduce((r,[o,s])=>{if(o.match(OB)){const a=o.slice(TB.length);r[a]=s}return r},{});if(Object.keys(n).length>0)return n}function AB(e){if(!(!e||!us(e)&&!Array.isArray(e)))return Array.isArray(e)?e.reduce((t,n)=>{const r=Jx(n);return Object.entries(r).forEach(([o,s])=>{t[o]=s}),t},{}):Jx(e)}function Jx(e){return e.split(",").map(t=>t.split("=").map(n=>decodeURIComponent(n.trim()))).reduce((t,[n,r])=>(n&&r&&(t[n]=r),t),{})}function Ou(e,t=[]){return[e,t]}function NB(e,t){const[n,r]=e;return[n,[...r,t]]}function Xx(e,t){const n=e[1];for(const r of n){const o=r[0].type;if(t(r,o))return!0}return!1}function dy(e){return it.__SENTRY__&&it.__SENTRY__.encodePolyfill?it.__SENTRY__.encodePolyfill(e):new TextEncoder().encode(e)}function MB(e){const[t,n]=e;let r=JSON.stringify(t);function o(s){typeof r=="string"?r=typeof s=="string"?r+s:[dy(r),s]:r.push(typeof s=="string"?dy(s):s)}for(const s of n){const[a,i]=s;if(o(` +${JSON.stringify(a)} +`),typeof i=="string"||i instanceof Uint8Array)o(i);else{let l;try{l=JSON.stringify(i)}catch{l=JSON.stringify(Is(i))}o(l)}}return typeof r=="string"?r:jB(r)}function jB(e){const t=e.reduce((o,s)=>o+s.length,0),n=new Uint8Array(t);let r=0;for(const o of e)n.set(o,r),r+=o.length;return n}function IB(e){const t=typeof e.data=="string"?dy(e.data):e.data;return[Br({type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),t]}const zB={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"metric_bucket"};function Yx(e){return zB[e]}function m4(e){if(!e||!e.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function RB(e,t,n,r){const o=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:Gm(r)},...o&&{trace:Br({...o})}}}function PB(e,t,n){const r=[{type:"client_report"},{timestamp:Tu(),discarded_events:e}];return Ou(t?{dsn:t}:{},[r])}const LB=60*1e3;function FB(e,t=Date.now()){const n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;const r=Date.parse(`${e}`);return isNaN(r)?LB:r-t}function BB(e,t){return e[t]||e.all||0}function WB(e,t,n=Date.now()){return BB(e,t)>n}function HB(e,{statusCode:t,headers:n},r=Date.now()){const o={...e},s=n&&n["x-sentry-rate-limits"],a=n&&n["retry-after"];if(s)for(const i of s.trim().split(",")){const[l,d,,,u]=i.split(":",5),c=parseInt(l,10),h=(isNaN(c)?60:c)*1e3;if(!d)o.all=r+h;else for(const f of d.split(";"))f==="metric_bucket"?(!u||u.split(";").includes("custom"))&&(o[f]=r+h):o[f]=r+h}else a?o.all=r+FB(a,r):t===429&&(o.all=r+60*1e3);return o}function Kx(){return{traceId:Ur(),spanId:Ur().substring(16)}}const xp=it;function UB(){const e=xp.chrome,t=e&&e.app&&e.app.runtime,n="history"in xp&&!!xp.history.pushState&&!!xp.history.replaceState;return!t&&n}const St=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function qm(){return Rb(it),it}function Rb(e){const t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||Ua,t[Ua]=t[Ua]||{}}function VB(e){const t=ps(),n={sid:Ur(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>qB(n)};return e&&Yl(n,e),n}function Yl(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),!e.did&&!t.did&&(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||ps(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=t.sid.length===32?t.sid:Ur()),t.init!==void 0&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),typeof t.started=="number"&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if(typeof t.duration=="number")e.duration=t.duration;else{const n=e.timestamp-e.started;e.duration=n>=0?n:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),typeof t.errors=="number"&&(e.errors=t.errors),t.status&&(e.status=t.status)}function GB(e,t){let n={};e.status==="ok"&&(n={status:"exited"}),Yl(e,n)}function qB(e){return Br({sid:`${e.sid}`,init:e.init,started:new Date(e.started*1e3).toISOString(),timestamp:new Date(e.timestamp*1e3).toISOString(),status:e.status,errors:e.errors,did:typeof e.did=="number"||typeof e.did=="string"?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}const uy="_sentrySpan";function Zx(e,t){t?Za(e,uy,t):delete e[uy]}function Qx(e){return e[uy]}const JB=100;class Pb{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=Kx()}clone(){const t=new Pb;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._extra={...this._extra},t._contexts={...this._contexts},t._user=this._user,t._level=this._level,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._requestSession=this._requestSession,t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t._lastEventId=this._lastEventId,Zx(t,Qx(this)),t}setClient(t){this._client=t}setLastEventId(t){this._lastEventId=t}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&Yl(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(t){return this._requestSession=t,this}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,n){return this._tags={...this._tags,[t]:n},this._notifyScopeListeners(),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,n){return this._extra={...this._extra,[t]:n},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,n){return n===null?delete this._contexts[t]:this._contexts[t]=n,this._notifyScopeListeners(),this}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;const n=typeof t=="function"?t(this):t,[r,o]=n instanceof ti?[n.getScopeData(),n.getRequestSession()]:Xl(n)?[t,t.requestSession]:[],{tags:s,extra:a,user:i,contexts:l,level:d,fingerprint:u=[],propagationContext:c}=r||{};return this._tags={...this._tags,...s},this._extra={...this._extra,...a},this._contexts={...this._contexts,...l},i&&Object.keys(i).length&&(this._user=i),d&&(this._level=d),u.length&&(this._fingerprint=u),c&&(this._propagationContext=c),o&&(this._requestSession=o),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._session=void 0,Zx(this,void 0),this._attachments=[],this._propagationContext=Kx(),this._notifyScopeListeners(),this}addBreadcrumb(t,n){const r=typeof n=="number"?n:JB;if(r<=0)return this;const o={timestamp:Tu(),...t},s=this._breadcrumbs;return s.push(o),this._breadcrumbs=s.length>r?s.slice(-r):s,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:Qx(this)}}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...t},this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}captureException(t,n){const r=n&&n.event_id?n.event_id:Ur();if(!this._client)return Re.warn("No client configured on scope - will not capture exception!"),r;const o=new Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:o,...n,event_id:r},this),r}captureMessage(t,n,r){const o=r&&r.event_id?r.event_id:Ur();if(!this._client)return Re.warn("No client configured on scope - will not capture message!"),o;const s=new Error(t);return this._client.captureMessage(t,n,{originalException:t,syntheticException:s,...r,event_id:o},this),o}captureEvent(t,n){const r=n&&n.event_id?n.event_id:Ur();return this._client?(this._client.captureEvent(t,{...n,event_id:r},this),r):(Re.warn("No client configured on scope - will not capture event!"),r)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(t=>{t(this)}),this._notifyingListeners=!1)}}const ti=Pb;function XB(){return Vm("defaultCurrentScope",()=>new ti)}function YB(){return Vm("defaultIsolationScope",()=>new ti)}class KB{constructor(t,n){let r;t?r=t:r=new ti;let o;n?o=n:o=new ti,this._stack=[{scope:r}],this._isolationScope=o}withScope(t){const n=this._pushScope();let r;try{r=t(n)}catch(o){throw this._popScope(),o}return Hm(r)?r.then(o=>(this._popScope(),o),o=>{throw this._popScope(),o}):(this._popScope(),r)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const t=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:t}),t}_popScope(){return this._stack.length<=1?!1:!!this._stack.pop()}}function Kl(){const e=qm(),t=Rb(e);return t.stack=t.stack||new KB(XB(),YB())}function ZB(e){return Kl().withScope(e)}function QB(e,t){const n=Kl();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function ek(e){return Kl().withScope(()=>e(Kl().getIsolationScope()))}function eW(){return{withIsolationScope:ek,withScope:ZB,withSetScope:QB,withSetIsolationScope:(e,t)=>ek(t),getCurrentScope:()=>Kl().getScope(),getIsolationScope:()=>Kl().getIsolationScope()}}function Lb(e){const t=Rb(e);return t.acs?t.acs:eW()}function ws(){const e=qm();return Lb(e).getCurrentScope()}function Du(){const e=qm();return Lb(e).getIsolationScope()}function tW(){return Vm("globalScope",()=>new ti)}function nW(...e){const t=qm(),n=Lb(t);if(e.length===2){const[r,o]=e;return r?n.withSetScope(r,o):n.withScope(o)}return n.withScope(e[0])}function zn(){return ws().getClient()}const rW="_sentryMetrics";function oW(e){const t=e[rW];if(!t)return;const n={};for(const[,[r,o]]of t)(n[r]||(n[r]=[])).push(Br(o));return n}const sW="sentry.source",aW="sentry.sample_rate",iW="sentry.op",lW="sentry.origin",cW=0,dW=1,uW=1;function pW(e){const{spanId:t,traceId:n}=e.spanContext(),{parent_span_id:r}=cf(e);return Br({parent_span_id:r,span_id:t,trace_id:n})}function tk(e){return typeof e=="number"?nk(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?nk(e.getTime()):ps()}function nk(e){return e>9999999999?e/1e3:e}function cf(e){if(fW(e))return e.getSpanJSON();try{const{spanId:t,traceId:n}=e.spanContext();if(hW(e)){const{attributes:r,startTime:o,name:s,endTime:a,parentSpanId:i,status:l}=e;return Br({span_id:t,trace_id:n,data:r,description:s,parent_span_id:i,start_timestamp:tk(o),timestamp:tk(a)||void 0,status:gW(l),op:r[iW],origin:r[lW],_metrics_summary:oW(e)})}return{span_id:t,trace_id:n}}catch{return{}}}function hW(e){const t=e;return!!t.attributes&&!!t.startTime&&!!t.name&&!!t.endTime&&!!t.status}function fW(e){return typeof e.getSpanJSON=="function"}function mW(e){const{traceFlags:t}=e.spanContext();return t===uW}function gW(e){if(!(!e||e.code===cW))return e.code===dW?"ok":e.message||"unknown_error"}const _W="_sentryRootSpan";function g4(e){return e[_W]||e}function vW(e){if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;const t=zn(),n=t&&t.getOptions();return!!n&&(n.enableTracing||"tracesSampleRate"in n||"tracesSampler"in n)}const Fb="production",yW="_frozenDsc";function _4(e,t){const n=t.getOptions(),{publicKey:r}=t.getDsn()||{},o=Br({environment:n.environment||Fb,release:n.release,public_key:r,trace_id:e});return t.emit("createDsc",o),o}function bW(e){const t=zn();if(!t)return{};const n=_4(cf(e).trace_id||"",t),r=g4(e),o=r[yW];if(o)return o;const s=r.spanContext().traceState,a=s&&s.get("sentry.dsc"),i=a&&DB(a);if(i)return i;const l=cf(r),d=l.data||{},u=d[aW];u!=null&&(n.sample_rate=`${u}`);const c=d[sW],h=l.description;return c!=="url"&&h&&(n.transaction=h),vW()&&(n.sampled=String(mW(r))),t.emit("createDsc",n,r),n}function wW(e){if(typeof e=="boolean")return Number(e);const t=typeof e=="string"?parseFloat(e):e;if(typeof t!="number"||isNaN(t)||t<0||t>1){St&&Re.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`);return}return t}function SW(e,t){return t&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=[...e.sdk.integrations||[],...t.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...t.packages||[]]),e}function xW(e,t,n,r){const o=m4(n),s={sent_at:new Date().toISOString(),...o&&{sdk:o},...!!r&&t&&{dsn:Gm(t)}},a="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()];return Ou(s,[a])}function kW(e,t,n,r){const o=m4(n),s=e.type&&e.type!=="replay_event"?e.type:"event";SW(e,n&&n.sdk);const a=RB(e,o,r,t);return delete e.sdkProcessingMetadata,Ou(a,[[{type:s},e]])}function py(e,t,n,r=0){return new Rr((o,s)=>{const a=e[r];if(t===null||typeof a!="function")o(t);else{const i=a({...t},n);St&&a.id&&i===null&&Re.log(`Event processor "${a.id}" dropped event`),Hm(i)?i.then(l=>py(e,l,n,r+1).then(o)).then(null,s):py(e,i,n,r+1).then(o).then(null,s)}})}function $W(e,t){const{fingerprint:n,span:r,breadcrumbs:o,sdkProcessingMetadata:s}=t;CW(e,t),r&&OW(e,r),DW(e,n),EW(e,o),TW(e,s)}function rk(e,t){const{extra:n,tags:r,user:o,contexts:s,level:a,sdkProcessingMetadata:i,breadcrumbs:l,fingerprint:d,eventProcessors:u,attachments:c,propagationContext:h,transactionName:f,span:g}=t;Lc(e,"extra",n),Lc(e,"tags",r),Lc(e,"user",o),Lc(e,"contexts",s),Lc(e,"sdkProcessingMetadata",i),a&&(e.level=a),f&&(e.transactionName=f),g&&(e.span=g),l.length&&(e.breadcrumbs=[...e.breadcrumbs,...l]),d.length&&(e.fingerprint=[...e.fingerprint,...d]),u.length&&(e.eventProcessors=[...e.eventProcessors,...u]),c.length&&(e.attachments=[...e.attachments,...c]),e.propagationContext={...e.propagationContext,...h}}function Lc(e,t,n){if(n&&Object.keys(n).length){e[t]={...e[t]};for(const r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[t][r]=n[r])}}function CW(e,t){const{extra:n,tags:r,user:o,contexts:s,level:a,transactionName:i}=t,l=Br(n);l&&Object.keys(l).length&&(e.extra={...l,...e.extra});const d=Br(r);d&&Object.keys(d).length&&(e.tags={...d,...e.tags});const u=Br(o);u&&Object.keys(u).length&&(e.user={...u,...e.user});const c=Br(s);c&&Object.keys(c).length&&(e.contexts={...c,...e.contexts}),a&&(e.level=a),i&&e.type!=="transaction"&&(e.transaction=i)}function EW(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function TW(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function OW(e,t){e.contexts={trace:pW(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:bW(t),...e.sdkProcessingMetadata};const n=g4(t),r=cf(n).description;r&&!e.transaction&&e.type==="transaction"&&(e.transaction=r)}function DW(e,t){e.fingerprint=e.fingerprint?h4(e.fingerprint):[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}function AW(e,t,n,r,o,s){const{normalizeDepth:a=3,normalizeMaxBreadth:i=1e3}=e,l={...t,event_id:t.event_id||n.event_id||Ur(),timestamp:t.timestamp||Tu()},d=n.integrations||e.integrations.map(w=>w.name);NW(l,e),IW(l,d),o&&o.emit("applyFrameMetadata",t),t.type===void 0&&MW(l,e.stackParser);const u=RW(r,n.captureContext);n.mechanism&&au(l,n.mechanism);const c=o?o.getEventProcessors():[],h=tW().getScopeData();if(s){const w=s.getScopeData();rk(h,w)}if(u){const w=u.getScopeData();rk(h,w)}const f=[...n.attachments||[],...h.attachments];f.length&&(n.attachments=f),$W(l,h);const g=[...c,...h.eventProcessors];return py(g,l,n).then(w=>(w&&jW(w),typeof a=="number"&&a>0?zW(w,a,i):w))}function NW(e,t){const{environment:n,release:r,dist:o,maxValueLength:s=250}=t;"environment"in e||(e.environment="environment"in t?n:Fb),e.release===void 0&&r!==void 0&&(e.release=r),e.dist===void 0&&o!==void 0&&(e.dist=o),e.message&&(e.message=El(e.message,s));const a=e.exception&&e.exception.values&&e.exception.values[0];a&&a.value&&(a.value=El(a.value,s));const i=e.request;i&&i.url&&(i.url=El(i.url,s))}const ok=new WeakMap;function MW(e,t){const n=it._sentryDebugIds;if(!n)return;let r;const o=ok.get(t);o?r=o:(r=new Map,ok.set(t,r));const s=Object.entries(n).reduce((a,[i,l])=>{let d;const u=r.get(i);u?d=u:(d=t(i),r.set(i,d));for(let c=d.length-1;c>=0;c--){const h=d[c];if(h.filename){a[h.filename]=l;break}}return a},{});try{e.exception.values.forEach(a=>{a.stacktrace.frames.forEach(i=>{i.filename&&(i.debug_id=s[i.filename])})})}catch{}}function jW(e){const t={};try{e.exception.values.forEach(r=>{r.stacktrace.frames.forEach(o=>{o.debug_id&&(o.abs_path?t[o.abs_path]=o.debug_id:o.filename&&(t[o.filename]=o.debug_id),delete o.debug_id)})})}catch{}if(Object.keys(t).length===0)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const n=e.debug_meta.images;Object.entries(t).forEach(([r,o])=>{n.push({type:"sourcemap",code_file:r,debug_id:o})})}function IW(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function zW(e,t,n){if(!e)return null;const r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(o=>({...o,...o.data&&{data:Is(o.data,t,n)}}))},...e.user&&{user:Is(e.user,t,n)},...e.contexts&&{contexts:Is(e.contexts,t,n)},...e.extra&&{extra:Is(e.extra,t,n)}};return e.contexts&&e.contexts.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=Is(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(o=>({...o,...o.data&&{data:Is(o.data,t,n)}}))),r}function RW(e,t){if(!t)return e;const n=e?e.clone():new ti;return n.update(t),n}function PW(e,t){return ws().captureException(e,void 0)}function v4(e,t){return ws().captureEvent(e,t)}function sk(e){const t=zn(),n=Du(),r=ws(),{release:o,environment:s=Fb}=t&&t.getOptions()||{},{userAgent:a}=it.navigator||{},i=VB({release:o,environment:s,user:r.getUser()||n.getUser(),...a&&{userAgent:a},...e}),l=n.getSession();return l&&l.status==="ok"&&Yl(l,{status:"exited"}),y4(),n.setSession(i),r.setSession(i),i}function y4(){const e=Du(),t=ws(),n=t.getSession()||e.getSession();n&&GB(n),b4(),e.setSession(),t.setSession()}function b4(){const e=Du(),t=ws(),n=zn(),r=t.getSession()||e.getSession();r&&n&&n.captureSession(r)}function ak(e=!1){if(e){y4();return}b4()}const LW="7";function FW(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function BW(e){return`${FW(e)}${e.projectId}/envelope/`}function WW(e,t){return rB({sentry_key:e.publicKey,sentry_version:LW,...t&&{sentry_client:`${t.name}/${t.version}`}})}function HW(e,t,n){return t||`${BW(e)}?${WW(e,n)}`}const ik=[];function UW(e){const t={};return e.forEach(n=>{const{name:r}=n,o=t[r];o&&!o.isDefaultInstance&&n.isDefaultInstance||(t[r]=n)}),Object.values(t)}function VW(e){const t=e.defaultIntegrations||[],n=e.integrations;t.forEach(a=>{a.isDefaultInstance=!0});let r;Array.isArray(n)?r=[...t,...n]:typeof n=="function"?r=h4(n(t)):r=t;const o=UW(r),s=o.findIndex(a=>a.name==="Debug");if(s>-1){const[a]=o.splice(s,1);o.push(a)}return o}function GW(e,t){const n={};return t.forEach(r=>{r&&w4(e,r,n)}),n}function lk(e,t){for(const n of t)n&&n.afterAllSetup&&n.afterAllSetup(e)}function w4(e,t,n){if(n[t.name]){St&&Re.log(`Integration skipped because it was already installed: ${t.name}`);return}if(n[t.name]=t,ik.indexOf(t.name)===-1&&typeof t.setupOnce=="function"&&(t.setupOnce(),ik.push(t.name)),t.setup&&typeof t.setup=="function"&&t.setup(e),typeof t.preprocessEvent=="function"){const r=t.preprocessEvent.bind(t);e.on("preprocessEvent",(o,s)=>r(o,s,e))}if(typeof t.processEvent=="function"){const r=t.processEvent.bind(t),o=Object.assign((s,a)=>r(s,a,e),{id:t.name});e.addEventProcessor(o)}St&&Re.log(`Integration installed: ${t.name}`)}const ck="Not capturing exception because it's already been captured.";class qW{constructor(t){if(this._options=t,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],t.dsn?this._dsn=nB(t.dsn):St&&Re.warn("No DSN provided, client will not send events."),this._dsn){const n=HW(this._dsn,t.tunnel,t._metadata?t._metadata.sdk:void 0);this._transport=t.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:n})}}captureException(t,n,r){const o=Ur();if(qx(t))return St&&Re.log(ck),o;const s={event_id:o,...n};return this._process(this.eventFromException(t,s).then(a=>this._captureEvent(a,s,r))),s.event_id}captureMessage(t,n,r,o){const s={event_id:Ur(),...r},a=Mb(t)?t:String(t),i=jb(t)?this.eventFromMessage(a,n,s):this.eventFromException(t,s);return this._process(i.then(l=>this._captureEvent(l,s,o))),s.event_id}captureEvent(t,n,r){const o=Ur();if(n&&n.originalException&&qx(n.originalException))return St&&Re.log(ck),o;const s={event_id:o,...n},i=(t.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(t,s,i||r)),s.event_id}captureSession(t){typeof t.release!="string"?St&&Re.warn("Discarded session because of missing or non-string release"):(this.sendSession(t),Yl(t,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(t){const n=this._transport;return n?(this.emit("flush"),this._isClientDoneProcessing(t).then(r=>n.flush(t).then(o=>r&&o))):ei(!0)}close(t){return this.flush(t).then(n=>(this.getOptions().enabled=!1,this.emit("close"),n))}getEventProcessors(){return this._eventProcessors}addEventProcessor(t){this._eventProcessors.push(t)}init(){(this._isEnabled()||this._options.integrations.some(({name:t})=>t.startsWith("Spotlight")))&&this._setupIntegrations()}getIntegrationByName(t){return this._integrations[t]}addIntegration(t){const n=this._integrations[t.name];w4(this,t,this._integrations),n||lk(this,[t])}sendEvent(t,n={}){this.emit("beforeSendEvent",t,n);let r=kW(t,this._dsn,this._options._metadata,this._options.tunnel);for(const s of n.attachments||[])r=NB(r,IB(s));const o=this.sendEnvelope(r);o&&o.then(s=>this.emit("afterSendEvent",t,s),null)}sendSession(t){const n=xW(t,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(n)}recordDroppedEvent(t,n,r){if(this._options.sendClientReports){const o=typeof r=="number"?r:1,s=`${t}:${n}`;St&&Re.log(`Recording outcome: "${s}"${o>1?` (${o} times)`:""}`),this._outcomes[s]=(this._outcomes[s]||0)+o}}on(t,n){const r=this._hooks[t]=this._hooks[t]||[];return r.push(n),()=>{const o=r.indexOf(n);o>-1&&r.splice(o,1)}}emit(t,...n){const r=this._hooks[t];r&&r.forEach(o=>o(...n))}sendEnvelope(t){return this.emit("beforeEnvelope",t),this._isEnabled()&&this._transport?this._transport.send(t).then(null,n=>(St&&Re.error("Error while sending envelope:",n),n)):(St&&Re.error("Transport disabled"),ei({}))}_setupIntegrations(){const{integrations:t}=this._options;this._integrations=GW(this,t),lk(this,t)}_updateSessionFromEvent(t,n){let r=!1,o=!1;const s=n.exception&&n.exception.values;if(s){o=!0;for(const l of s){const d=l.mechanism;if(d&&d.handled===!1){r=!0;break}}}const a=t.status==="ok";(a&&t.errors===0||a&&r)&&(Yl(t,{...r&&{status:"crashed"},errors:t.errors||Number(o||r)}),this.captureSession(t))}_isClientDoneProcessing(t){return new Rr(n=>{let r=0;const o=1,s=setInterval(()=>{this._numProcessing==0?(clearInterval(s),n(!0)):(r+=o,t&&r>=t&&(clearInterval(s),n(!1)))},o)})}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(t,n,r,o=Du()){const s=this.getOptions(),a=Object.keys(this._integrations);return!n.integrations&&a.length>0&&(n.integrations=a),this.emit("preprocessEvent",t,n),t.type||o.setLastEventId(t.event_id||n.event_id),AW(s,t,n,r,this,o).then(i=>{if(i===null)return i;const l={...o.getPropagationContext(),...r?r.getPropagationContext():void 0};if(!(i.contexts&&i.contexts.trace)&&l){const{traceId:u,spanId:c,parentSpanId:h,dsc:f}=l;i.contexts={trace:Br({trace_id:u,span_id:c,parent_span_id:h}),...i.contexts};const g=f||_4(u,this);i.sdkProcessingMetadata={dynamicSamplingContext:g,...i.sdkProcessingMetadata}}return i})}_captureEvent(t,n={},r){return this._processEvent(t,n,r).then(o=>o.event_id,o=>{if(St){const s=o;s.logLevel==="log"?Re.log(s.message):Re.warn(s)}})}_processEvent(t,n,r){const o=this.getOptions(),{sampleRate:s}=o,a=x4(t),i=S4(t),l=t.type||"error",d=`before send for type \`${l}\``,u=typeof s>"u"?void 0:wW(s);if(i&&typeof u=="number"&&Math.random()>u)return this.recordDroppedEvent("sample_rate","error",t),lf(new Ro(`Discarding event because it's not included in the random sample (sampling rate = ${s})`,"log"));const c=l==="replay_event"?"replay":l,f=(t.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(t,n,r,f).then(g=>{if(g===null)throw this.recordDroppedEvent("event_processor",c,t),new Ro("An event processor returned `null`, will not send event.","log");if(n.data&&n.data.__sentry__===!0)return g;const w=XW(this,o,g,n);return JW(w,d)}).then(g=>{if(g===null){if(this.recordDroppedEvent("before_send",c,t),a){const b=1+(t.spans||[]).length;this.recordDroppedEvent("before_send","span",b)}throw new Ro(`${d} returned \`null\`, will not send event.`,"log")}const _=r&&r.getSession();if(!a&&_&&this._updateSessionFromEvent(_,g),a){const v=g.sdkProcessingMetadata&&g.sdkProcessingMetadata.spanCountBeforeProcessing||0,b=g.spans?g.spans.length:0,y=v-b;y>0&&this.recordDroppedEvent("before_send","span",y)}const w=g.transaction_info;if(a&&w&&g.transaction!==t.transaction){const v="custom";g.transaction_info={...w,source:v}}return this.sendEvent(g,n),g}).then(null,g=>{throw g instanceof Ro?g:(this.captureException(g,{data:{__sentry__:!0},originalException:g}),new Ro(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event. +Reason: ${g}`))})}_process(t){this._numProcessing++,t.then(n=>(this._numProcessing--,n),n=>(this._numProcessing--,n))}_clearOutcomes(){const t=this._outcomes;return this._outcomes={},Object.entries(t).map(([n,r])=>{const[o,s]=n.split(":");return{reason:o,category:s,quantity:r}})}_flushOutcomes(){St&&Re.log("Flushing outcomes...");const t=this._clearOutcomes();if(t.length===0){St&&Re.log("No outcomes to send");return}if(!this._dsn){St&&Re.log("No dsn provided, will not send outcomes");return}St&&Re.log("Sending outcomes:",t);const n=PB(t,this._options.tunnel&&Gm(this._dsn));this.sendEnvelope(n)}}function JW(e,t){const n=`${t} must return \`null\` or a valid event.`;if(Hm(e))return e.then(r=>{if(!Xl(r)&&r!==null)throw new Ro(n);return r},r=>{throw new Ro(`${t} rejected with ${r}`)});if(!Xl(e)&&e!==null)throw new Ro(n);return e}function XW(e,t,n,r){const{beforeSend:o,beforeSendTransaction:s,beforeSendSpan:a}=t;if(S4(n)&&o)return o(n,r);if(x4(n)){if(n.spans&&a){const i=[];for(const l of n.spans){const d=a(l);d?i.push(d):e.recordDroppedEvent("before_send","span")}n.spans=i}if(s){if(n.spans){const i=n.spans.length;n.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:i}}return s(n,r)}}return n}function S4(e){return e.type===void 0}function x4(e){return e.type==="transaction"}function YW(e,t){t.debug===!0&&(St?Re.enable():Eu(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),ws().update(t.initialScope);const r=new e(t);return KW(r),r.init(),r}function KW(e){ws().setClient(e)}const ZW=64;function QW(e,t,n=$B(e.bufferSize||ZW)){let r={};const o=a=>n.drain(a);function s(a){const i=[];if(Xx(a,(c,h)=>{const f=Yx(h);if(WB(r,f)){const g=dk(c,h);e.recordDroppedEvent("ratelimit_backoff",f,g)}else i.push(c)}),i.length===0)return ei({});const l=Ou(a[0],i),d=c=>{Xx(l,(h,f)=>{const g=dk(h,f);e.recordDroppedEvent(c,Yx(f),g)})},u=()=>t({body:MB(l)}).then(c=>(c.statusCode!==void 0&&(c.statusCode<200||c.statusCode>=300)&&St&&Re.warn(`Sentry responded with status code ${c.statusCode} to sent event.`),r=HB(r,c),c),c=>{throw d("network_error"),c});return n.add(u).then(c=>c,c=>{if(c instanceof Ro)return St&&Re.error("Skipped sending event because buffer is full."),d("queue_overflow"),ei({});throw c})}return{send:s,flush:o}}function dk(e,t){if(!(t!=="event"&&t!=="transaction"))return Array.isArray(e)?e[1]:void 0}function eH(e,t,n=[t],r="npm"){const o=e._metadata||{};o.sdk||(o.sdk={name:`sentry.javascript.${t}`,packages:n.map(s=>({name:`${r}:@sentry/${s}`,version:Ua})),version:Ua}),e._metadata=o}const tH=100;function ni(e,t){const n=zn(),r=Du();if(!n)return;const{beforeBreadcrumb:o=null,maxBreadcrumbs:s=tH}=n.getOptions();if(s<=0)return;const i={timestamp:Tu(),...e},l=o?Eu(()=>o(i,t)):i;l!==null&&(n.emit&&n.emit("beforeAddBreadcrumb",l,t),r.addBreadcrumb(l,s))}let uk;const nH="FunctionToString",pk=new WeakMap,rH=()=>({name:nH,setupOnce(){uk=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=zb(this),n=pk.has(zn())&&t!==void 0?t:this;return uk.apply(n,e)}}catch{}},setup(e){pk.set(e,!0)}}),oH=rH,sH=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,"undefined is not an object (evaluating 'a.L')",`can't redefine non-configurable property "solana"`,"vv().getRestrictions is not a function. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)","Can't find variable: _AutofillCallbackHandler"],aH="InboundFilters",iH=(e={})=>({name:aH,processEvent(t,n,r){const o=r.getOptions(),s=cH(e,o);return dH(t,s)?null:t}}),lH=iH;function cH(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:sH],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]],ignoreInternal:e.ignoreInternal!==void 0?e.ignoreInternal:!0}}function dH(e,t){return t.ignoreInternal&&gH(e)?(St&&Re.warn(`Event dropped due to being internal Sentry Error. +Event: ${js(e)}`),!0):uH(e,t.ignoreErrors)?(St&&Re.warn(`Event dropped due to being matched by \`ignoreErrors\` option. +Event: ${js(e)}`),!0):vH(e)?(St&&Re.warn(`Event dropped due to not having an error message, error type or stacktrace. +Event: ${js(e)}`),!0):pH(e,t.ignoreTransactions)?(St&&Re.warn(`Event dropped due to being matched by \`ignoreTransactions\` option. +Event: ${js(e)}`),!0):hH(e,t.denyUrls)?(St&&Re.warn(`Event dropped due to being matched by \`denyUrls\` option. +Event: ${js(e)}. +Url: ${df(e)}`),!0):fH(e,t.allowUrls)?!1:(St&&Re.warn(`Event dropped due to not being matched by \`allowUrls\` option. +Event: ${js(e)}. +Url: ${df(e)}`),!0)}function uH(e,t){return e.type||!t||!t.length?!1:mH(e).some(n=>Um(n,t))}function pH(e,t){if(e.type!=="transaction"||!t||!t.length)return!1;const n=e.transaction;return n?Um(n,t):!1}function hH(e,t){if(!t||!t.length)return!1;const n=df(e);return n?Um(n,t):!1}function fH(e,t){if(!t||!t.length)return!0;const n=df(e);return n?Um(n,t):!0}function mH(e){const t=[];e.message&&t.push(e.message);let n;try{n=e.exception.values[e.exception.values.length-1]}catch{}return n&&n.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`)),t}function gH(e){try{return e.exception.values[0].type==="SentryError"}catch{}return!1}function _H(e=[]){for(let t=e.length-1;t>=0;t--){const n=e[t];if(n&&n.filename!==""&&n.filename!=="[native code]")return n.filename||null}return null}function df(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch{}return t?_H(t):null}catch{return St&&Re.error(`Cannot extract url for event ${js(e)}`),null}}function vH(e){return e.type||!e.exception||!e.exception.values||e.exception.values.length===0?!1:!e.message&&!e.exception.values.some(t=>t.stacktrace||t.type&&t.type!=="Error"||t.value)}const yH="Dedupe",bH=()=>{let e;return{name:yH,processEvent(t){if(t.type)return t;try{if(wH(t,e))return St&&Re.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}},k4=bH;function wH(e,t){return t?!!(SH(e,t)||xH(e,t)):!1}function SH(e,t){const n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!C4(e,t)||!$4(e,t))}function xH(e,t){const n=hk(t),r=hk(e);return!(!n||!r||n.type!==r.type||n.value!==r.value||!C4(e,t)||!$4(e,t))}function $4(e,t){let n=Ux(e),r=Ux(t);if(!n&&!r)return!0;if(n&&!r||!n&&r||(n=n,r=r,r.length!==n.length))return!1;for(let o=0;o0}function kH(){hy++,setTimeout(()=>{hy--})}function Zl(e,t={},n){if(typeof e!="function")return e;try{const o=e.__sentry_wrapped__;if(o)return typeof o=="function"?o:e;if(zb(e))return e}catch{return e}const r=function(){const o=Array.prototype.slice.call(arguments);try{const s=o.map(a=>Zl(a,t));return e.apply(this,s)}catch(s){throw kH(),nW(a=>{a.addEventProcessor(i=>(t.mechanism&&(ly(i,void 0),au(i,t.mechanism)),i.extra={...i.extra,arguments:o},i)),PW(s)}),s}};try{for(const o in e)Object.prototype.hasOwnProperty.call(e,o)&&(r[o]=e[o])}catch{}a4(r,e),Za(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get(){return e.name}})}catch{}return r}const Au=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function Bb(e,t){const n=Wb(e,t),r={type:OH(t),value:DH(t)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===""&&(r.value="Unrecoverable error caught"),r}function $H(e,t,n,r){const o=zn(),s=o&&o.getOptions().normalizeDepth,a=IH(t),i={__serialized__:f4(t,s)};if(a)return{exception:{values:[Bb(e,a)]},extra:i};const l={exception:{values:[{type:Wm(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:MH(t,{isUnhandledRejection:r})}]},extra:i};if(n){const d=Wb(e,n);d.length&&(l.exception.values[0].stacktrace={frames:d})}return l}function d_(e,t){return{exception:{values:[Bb(e,t)]}}}function Wb(e,t){const n=t.stacktrace||t.stack||"",r=EH(t),o=TH(t);try{return e(n,r,o)}catch{}return[]}const CH=/Minified React error #\d+;/i;function EH(e){return e&&CH.test(e.message)?1:0}function TH(e){return typeof e.framesToPop=="number"?e.framesToPop:0}function T4(e){return typeof WebAssembly<"u"&&typeof WebAssembly.Exception<"u"?e instanceof WebAssembly.Exception:!1}function OH(e){const t=e&&e.name;return!t&&T4(e)?e.message&&Array.isArray(e.message)&&e.message.length==2?e.message[0]:"WebAssembly.Exception":t}function DH(e){const t=e&&e.message;return t?t.error&&typeof t.error.message=="string"?t.error.message:T4(e)&&Array.isArray(e.message)&&e.message.length==2?e.message[1]:t:"No error message"}function AH(e,t,n,r){const o=n&&n.syntheticException||void 0,s=Hb(e,t,o,r);return au(s),s.level="error",n&&n.event_id&&(s.event_id=n.event_id),ei(s)}function NH(e,t,n="info",r,o){const s=r&&r.syntheticException||void 0,a=fy(e,t,s,o);return a.level=n,r&&r.event_id&&(a.event_id=r.event_id),ei(a)}function Hb(e,t,n,r,o){let s;if(t4(t)&&t.error)return d_(e,t.error);if(zx(t)||L7(t)){const a=t;if("stack"in t)s=d_(e,t);else{const i=a.name||(zx(a)?"DOMError":"DOMException"),l=a.message?`${i}: ${a.message}`:i;s=fy(e,l,n,r),ly(s,l)}return"code"in a&&(s.tags={...s.tags,"DOMException.code":`${a.code}`}),s}return Nb(t)?d_(e,t):Xl(t)||Wm(t)?(s=$H(e,t,n,o),au(s,{synthetic:!0}),s):(s=fy(e,t,n,r),ly(s,`${t}`),au(s,{synthetic:!0}),s)}function fy(e,t,n,r){const o={};if(r&&n){const s=Wb(e,n);s.length&&(o.exception={values:[{value:t,stacktrace:{frames:s}}]})}if(Mb(t)){const{__sentry_template_string__:s,__sentry_template_values__:a}=t;return o.logentry={message:s,params:a},o}return o.message=t,o}function MH(e,{isUnhandledRejection:t}){const n=oB(e),r=t?"promise rejection":"exception";return t4(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:Wm(e)?`Event \`${jH(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function jH(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function IH(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)){const n=e[t];if(n instanceof Error)return n}}function zH(e,{metadata:t,tunnel:n,dsn:r}){const o={event_id:e.event_id,sent_at:new Date().toISOString(),...t&&t.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!n&&!!r&&{dsn:Gm(r)}},s=RH(e);return Ou(o,[s])}function RH(e){return[{type:"user_report"},e]}class PH extends qW{constructor(t){const n={parentSpanIsAlwaysRootSpan:!0,...t},r=kt.SENTRY_SDK_SOURCE||yB();eH(n,"browser",["browser"],r),super(n),n.sendClientReports&&kt.document&&kt.document.addEventListener("visibilitychange",()=>{kt.document.visibilityState==="hidden"&&this._flushOutcomes()})}eventFromException(t,n){return AH(this._options.stackParser,t,n,this._options.attachStacktrace)}eventFromMessage(t,n="info",r){return NH(this._options.stackParser,t,n,r,this._options.attachStacktrace)}captureUserFeedback(t){if(!this._isEnabled()){Au&&Re.warn("SDK not enabled, will not capture user feedback.");return}const n=zH(t,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this.sendEnvelope(n)}_prepareEvent(t,n,r){return t.platform=t.platform||"javascript",super._prepareEvent(t,n,r)}}const LH=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Nn=it,FH=1e3;let fk,my,gy;function BH(e){const t="dom";di(t,e),ui(t,WH)}function WH(){if(!Nn.document)return;const e=mo.bind(null,"dom"),t=mk(e,!0);Nn.document.addEventListener("click",t,!1),Nn.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(n=>{const r=Nn[n]&&Nn[n].prototype;!r||!r.hasOwnProperty||!r.hasOwnProperty("addEventListener")||(_r(r,"addEventListener",function(o){return function(s,a,i){if(s==="click"||s=="keypress")try{const l=this,d=l.__sentry_instrumentation_handlers__=l.__sentry_instrumentation_handlers__||{},u=d[s]=d[s]||{refCount:0};if(!u.handler){const c=mk(e);u.handler=c,o.call(this,s,c,i)}u.refCount++}catch{}return o.call(this,s,a,i)}}),_r(r,"removeEventListener",function(o){return function(s,a,i){if(s==="click"||s=="keypress")try{const l=this,d=l.__sentry_instrumentation_handlers__||{},u=d[s];u&&(u.refCount--,u.refCount<=0&&(o.call(this,s,u.handler,i),u.handler=void 0,delete d[s]),Object.keys(d).length===0&&delete l.__sentry_instrumentation_handlers__)}catch{}return o.call(this,s,a,i)}}))})}function HH(e){if(e.type!==my)return!1;try{if(!e.target||e.target._sentryId!==gy)return!1}catch{}return!0}function UH(e,t){return e!=="keypress"?!1:!t||!t.tagName?!0:!(t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable)}function mk(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const r=VH(n);if(UH(n.type,r))return;Za(n,"_sentryCaptured",!0),r&&!r._sentryId&&Za(r,"_sentryId",Ur());const o=n.type==="keypress"?"input":n.type;HH(n)||(e({event:n,name:o,global:t}),my=n.type,gy=r?r._sentryId:void 0),clearTimeout(fk),fk=Nn.setTimeout(()=>{gy=void 0,my=void 0},FH)}}function VH(e){try{return e.target}catch{return null}}let kp;function O4(e){const t="history";di(t,e),ui(t,GH)}function GH(){if(!UB())return;const e=Nn.onpopstate;Nn.onpopstate=function(...n){const r=Nn.location.href,o=kp;if(kp=r,mo("history",{from:o,to:r}),e)try{return e.apply(this,n)}catch{}};function t(n){return function(...r){const o=r.length>2?r[2]:void 0;if(o){const s=kp,a=String(o);kp=a,mo("history",{from:s,to:a})}return n.apply(this,r)}}_r(Nn.history,"pushState",t),_r(Nn.history,"replaceState",t)}const fh={};function qH(e){const t=fh[e];if(t)return t;let n=Nn[e];if(ay(n))return fh[e]=n.bind(Nn);const r=Nn.document;if(r&&typeof r.createElement=="function")try{const o=r.createElement("iframe");o.hidden=!0,r.head.appendChild(o);const s=o.contentWindow;s&&s[e]&&(n=s[e]),r.head.removeChild(o)}catch(o){LH&&Re.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,o)}return n&&(fh[e]=n.bind(Nn))}function gk(e){fh[e]=void 0}const sd="__sentry_xhr_v3__";function JH(e){const t="xhr";di(t,e),ui(t,XH)}function XH(){if(!Nn.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(t,n,r){const o=ps()*1e3,s=us(r[0])?r[0].toUpperCase():void 0,a=YH(r[1]);if(!s||!a)return t.apply(n,r);n[sd]={method:s,url:a,request_headers:{}},s==="POST"&&a.match(/sentry_key/)&&(n.__sentry_own_request__=!0);const i=()=>{const l=n[sd];if(l&&n.readyState===4){try{l.status_code=n.status}catch{}const d={endTimestamp:ps()*1e3,startTimestamp:o,xhr:n};mo("xhr",d)}};return"onreadystatechange"in n&&typeof n.onreadystatechange=="function"?n.onreadystatechange=new Proxy(n.onreadystatechange,{apply(l,d,u){return i(),l.apply(d,u)}}):n.addEventListener("readystatechange",i),n.setRequestHeader=new Proxy(n.setRequestHeader,{apply(l,d,u){const[c,h]=u,f=d[sd];return f&&us(c)&&us(h)&&(f.request_headers[c.toLowerCase()]=h),l.apply(d,u)}}),t.apply(n,r)}}),e.send=new Proxy(e.send,{apply(t,n,r){const o=n[sd];if(!o)return t.apply(n,r);r[0]!==void 0&&(o.body=r[0]);const s={startTimestamp:ps()*1e3,xhr:n};return mo("xhr",s),t.apply(n,r)}})}function YH(e){if(us(e))return e;try{return e.toString()}catch{}}function KH(e,t=qH("fetch")){let n=0,r=0;function o(s){const a=s.body.length;n+=a,r++;const i={body:s.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};if(!t)return gk("fetch"),lf("No fetch implementation available");try{return t(e.url,i).then(l=>(n-=a,r--,{statusCode:l.status,headers:{"x-sentry-rate-limits":l.headers.get("X-Sentry-Rate-Limits"),"retry-after":l.headers.get("Retry-After")}}))}catch(l){return gk("fetch"),n-=a,r--,lf(l)}}return QW(e,o)}const ZH=30,QH=50;function _y(e,t,n,r){const o={filename:e,function:t===""?Qa:t,in_app:!0};return n!==void 0&&(o.lineno=n),r!==void 0&&(o.colno=r),o}const eU=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,tU=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,nU=/\((\S*)(?::(\d+))(?::(\d+))\)/,rU=e=>{const t=eU.exec(e);if(t){const[,r,o,s]=t;return _y(r,Qa,+o,+s)}const n=tU.exec(e);if(n){if(n[2]&&n[2].indexOf("eval")===0){const a=nU.exec(n[2]);a&&(n[2]=a[1],n[3]=a[2],n[4]=a[3])}const[o,s]=D4(n[1]||Qa,n[2]);return _y(s,o,n[3]?+n[3]:void 0,n[4]?+n[4]:void 0)}},oU=[ZH,rU],sU=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,aU=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,iU=e=>{const t=sU.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const s=aU.exec(t[3]);s&&(t[1]=t[1]||"eval",t[3]=s[1],t[4]=s[2],t[5]="")}let r=t[3],o=t[1]||Qa;return[o,r]=D4(o,r),_y(r,o,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}},lU=[QH,iU],cU=[oU,lU],dU=c4(...cU),D4=(e,t)=>{const n=e.indexOf("safari-extension")!==-1,r=e.indexOf("safari-web-extension")!==-1;return n||r?[e.indexOf("@")!==-1?e.split("@")[0]:Qa,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},$p=1024,uU="Breadcrumbs",pU=(e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:uU,setup(n){t.console&&lB(gU(n)),t.dom&&BH(mU(n,t.dom)),t.xhr&&JH(_U(n)),t.fetch&&pB(vU(n)),t.history&&O4(yU(n)),t.sentry&&n.on("beforeSendEvent",fU(n))}}},hU=pU;function fU(e){return function(n){zn()===e&&ni({category:`sentry.${n.type==="transaction"?"transaction":"event"}`,event_id:n.event_id,level:n.level,message:js(n)},{event:n})}}function mU(e,t){return function(r){if(zn()!==e)return;let o,s,a=typeof t=="object"?t.serializeAttribute:void 0,i=typeof t=="object"&&typeof t.maxStringLength=="number"?t.maxStringLength:void 0;i&&i>$p&&(Au&&Re.warn(`\`dom.maxStringLength\` cannot exceed ${$p}, but a value of ${i} was configured. Sentry will use ${$p} instead.`),i=$p),typeof a=="string"&&(a=[a]);try{const d=r.event,u=bU(d)?d.target:d;o=o4(u,{keyAttrs:a,maxStringLength:i}),s=X7(u)}catch{o=""}if(o.length===0)return;const l={category:`ui.${r.name}`,message:o};s&&(l.data={"ui.component_name":s}),ni(l,{event:r.event,name:r.name,global:r.global})}}function gU(e){return function(n){if(zn()!==e)return;const r={category:"console",data:{arguments:n.args,logger:"console"},level:EB(n.level),message:Rx(n.args," ")};if(n.level==="assert")if(n.args[0]===!1)r.message=`Assertion failed: ${Rx(n.args.slice(1)," ")||"console.assert"}`,r.data.arguments=n.args.slice(1);else return;ni(r,{input:n.args,level:n.level})}}function _U(e){return function(n){if(zn()!==e)return;const{startTimestamp:r,endTimestamp:o}=n,s=n.xhr[sd];if(!r||!o||!s)return;const{method:a,url:i,status_code:l,body:d}=s,u={method:a,url:i,status_code:l},c={xhr:n.xhr,input:d,startTimestamp:r,endTimestamp:o},h=r4(l);ni({category:"xhr",data:u,type:"http",level:h},c)}}function vU(e){return function(n){if(zn()!==e)return;const{startTimestamp:r,endTimestamp:o}=n;if(o&&!(n.fetchData.url.match(/sentry_key/)&&n.fetchData.method==="POST"))if(n.error){const s=n.fetchData,a={data:n.error,input:n.args,startTimestamp:r,endTimestamp:o};ni({category:"fetch",data:s,level:"error",type:"http"},a)}else{const s=n.response,a={...n.fetchData,status_code:s&&s.status},i={input:n.args,response:s,startTimestamp:r,endTimestamp:o},l=r4(a.status_code);ni({category:"fetch",data:a,type:"http",level:l},i)}}}function yU(e){return function(n){if(zn()!==e)return;let r=n.from,o=n.to;const s=c_(kt.location.href);let a=r?c_(r):void 0;const i=c_(o);(!a||!a.path)&&(a=s),s.protocol===i.protocol&&s.host===i.host&&(o=i.relative),s.protocol===a.protocol&&s.host===a.host&&(r=a.relative),ni({category:"navigation",data:{from:r,to:o}})}}function bU(e){return!!e&&!!e.target}const wU=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],SU="BrowserApiErrors",xU=(e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e};return{name:SU,setupOnce(){t.setTimeout&&_r(kt,"setTimeout",_k),t.setInterval&&_r(kt,"setInterval",_k),t.requestAnimationFrame&&_r(kt,"requestAnimationFrame",$U),t.XMLHttpRequest&&"XMLHttpRequest"in kt&&_r(XMLHttpRequest.prototype,"send",CU);const n=t.eventTarget;n&&(Array.isArray(n)?n:wU).forEach(EU)}}},kU=xU;function _k(e){return function(...t){const n=t[0];return t[0]=Zl(n,{mechanism:{data:{function:ca(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function $U(e){return function(t){return e.apply(this,[Zl(t,{mechanism:{data:{function:"requestAnimationFrame",handler:ca(e)},handled:!1,type:"instrument"}})])}}function CU(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(o=>{o in n&&typeof n[o]=="function"&&_r(n,o,function(s){const a={mechanism:{data:{function:o,handler:ca(s)},handled:!1,type:"instrument"}},i=zb(s);return i&&(a.mechanism.data.handler=ca(i)),Zl(s,a)})}),e.apply(this,t)}}function EU(e){const t=kt,n=t[e]&&t[e].prototype;!n||!n.hasOwnProperty||!n.hasOwnProperty("addEventListener")||(_r(n,"addEventListener",function(r){return function(o,s,a){try{typeof s.handleEvent=="function"&&(s.handleEvent=Zl(s.handleEvent,{mechanism:{data:{function:"handleEvent",handler:ca(s),target:e},handled:!1,type:"instrument"}}))}catch{}return r.apply(this,[o,Zl(s,{mechanism:{data:{function:"addEventListener",handler:ca(s),target:e},handled:!1,type:"instrument"}}),a])}}),_r(n,"removeEventListener",function(r){return function(o,s,a){const i=s;try{const l=i&&i.__sentry_wrapped__;l&&r.call(this,o,l,a)}catch{}return r.call(this,o,i,a)}}))}const TU="GlobalHandlers",OU=(e={})=>{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:TU,setupOnce(){Error.stackTraceLimit=50},setup(n){t.onerror&&(AU(n),vk("onerror")),t.onunhandledrejection&&(NU(n),vk("onunhandledrejection"))}}},DU=OU;function AU(e){mB(t=>{const{stackParser:n,attachStacktrace:r}=A4();if(zn()!==e||E4())return;const{msg:o,url:s,line:a,column:i,error:l}=t,d=IU(Hb(n,l||o,void 0,r,!1),s,a,i);d.level="error",v4(d,{originalException:l,mechanism:{handled:!1,type:"onerror"}})})}function NU(e){_B(t=>{const{stackParser:n,attachStacktrace:r}=A4();if(zn()!==e||E4())return;const o=MU(t),s=jb(o)?jU(o):Hb(n,o,void 0,r,!0);s.level="error",v4(s,{originalException:o,mechanism:{handled:!1,type:"onunhandledrejection"}})})}function MU(e){if(jb(e))return e;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch{}return e}function jU(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function IU(e,t,n,r){const o=e.exception=e.exception||{},s=o.values=o.values||[],a=s[0]=s[0]||{},i=a.stacktrace=a.stacktrace||{},l=i.frames=i.frames||[],d=isNaN(parseInt(r,10))?void 0:r,u=isNaN(parseInt(n,10))?void 0:n,c=us(t)&&t.length>0?t:J7();return l.length===0&&l.push({colno:d,filename:c,function:Qa,in_app:!0,lineno:u}),e}function vk(e){Au&&Re.log(`Global Handler attached: ${e}`)}function A4(){const e=zn();return e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}const zU=()=>({name:"HttpContext",preprocessEvent(e){if(!kt.navigator&&!kt.location&&!kt.document)return;const t=e.request&&e.request.url||kt.location&&kt.location.href,{referrer:n}=kt.document||{},{userAgent:r}=kt.navigator||{},o={...e.request&&e.request.headers,...n&&{Referer:n},...r&&{"User-Agent":r}},s={...e.request,...t&&{url:t},headers:o};e.request=s}}),RU="cause",PU=5,LU="LinkedErrors",FU=(e={})=>{const t=e.limit||PU,n=e.key||RU;return{name:LU,preprocessEvent(r,o,s){const a=s.getOptions();U7(Bb,a.stackParser,a.maxValueLength,n,t,r,o)}}},BU=FU;function WU(e){return[lH(),oH(),kU(),hU(),DU(),BU(),k4(),zU()]}function HU(e={}){const t={defaultIntegrations:WU(),release:typeof __SENTRY_RELEASE__=="string"?__SENTRY_RELEASE__:kt.SENTRY_RELEASE&&kt.SENTRY_RELEASE.id?kt.SENTRY_RELEASE.id:void 0,autoSessionTracking:!0,sendClientReports:!0};return e.defaultIntegrations==null&&delete e.defaultIntegrations,{...t,...e}}function UU(){const e=typeof kt.window<"u"&&kt;if(!e)return!1;const t=e.chrome?"chrome":"browser",n=e[t],r=n&&n.runtime&&n.runtime.id,o=kt.location&&kt.location.href||"",s=["chrome-extension:","moz-extension:","ms-browser-extension:","safari-web-extension:"],a=!!r&&kt===kt.top&&s.some(l=>o.startsWith(`${l}//`)),i=typeof e.nw<"u";return!!r&&!a&&!i}function VU(e={}){const t=HU(e);if(UU()){Eu(()=>{console.error("[Sentry] You cannot run Sentry this way in a browser extension, check: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")});return}Au&&(d4()||Re.warn("No Fetch API detected. The Sentry SDK requires a Fetch API compatible environment to send events. Please add a Fetch API polyfill."));const n={...t,stackParser:aB(t.stackParser||dU),integrations:VW(t),transport:t.transport||KH},r=YW(PH,n);return t.autoSessionTracking&&GU(),r}function GU(){if(typeof kt.document>"u"){Au&&Re.warn("Session tracking in non-browser environment with @sentry/browser is not supported.");return}sk({ignoreDuration:!0}),ak(),O4(({from:e,to:t})=>{e!==void 0&&e!==t&&(sk({ignoreDuration:!0}),ak())})}const yk=ee(m.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"}),"Add"),qU=ee(m.jsx("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z"}),"ArrowBack"),JU=ee(m.jsx("path",{d:"m10 17 5-5-5-5z"}),"ArrowRight"),XU=ee(m.jsx("path",{d:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8zm2 11h-3v3.75c0 1.24-1.01 2.25-2.25 2.25S8.5 17.99 8.5 16.75s1.01-2.25 2.25-2.25c.46 0 .89.14 1.25.38V11h4zm-3-4V3.5L18.5 9z"}),"AudioFile"),YU=ee([m.jsx("path",{d:"M16.5 12h-9c-.55 0-1 .45-1 1v1h11v-1c0-.55-.45-1-1-1M7.25 8.5h4v2h-4zm5.5 0h4v2h-4z"},"0"),m.jsx("path",{d:"M20 2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m-1 15h-1.5v-1.5h-11V17H5v-3.83c0-.66.25-1.26.65-1.72V9c0-1.1.9-2 2-2H11c.37 0 .72.12 1 .32.28-.2.63-.32 1-.32h3.35c1.1 0 2 .9 2 2v2.45c.4.46.65 1.06.65 1.72z"},"1")],"BedroomParent"),KU=ee(m.jsx("path",{d:"M17 3H7c-1.1 0-1.99.9-1.99 2L5 21l7-3 7 3V5c0-1.1-.9-2-2-2"}),"Bookmark"),ZU=ee(m.jsx("path",{d:"M17 3H7c-1.1 0-1.99.9-1.99 2L5 21l7-3 7 3V5c0-1.1-.9-2-2-2m0 15-5-2.18L7 18V5h10z"}),"BookmarkBorder"),QU=ee(m.jsx("path",{d:"M22 24H2v-4h20zM13.06 5.19l3.75 3.75L7.75 18H4v-3.75zm4.82 2.68-3.75-3.75 1.83-1.83c.39-.39 1.02-.39 1.41 0l2.34 2.34c.39.39.39 1.02 0 1.41z"}),"BorderColor"),eV=ee(m.jsx("path",{d:"M20 15.31 23.31 12 20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20zM12 18c-3.31 0-6-2.69-6-6s2.69-6 6-6 6 2.69 6 6-2.69 6-6 6"}),"Brightness5"),N4=ee(m.jsx("path",{d:"M20 15.31 23.31 12 20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20zM12 18V6c3.31 0 6 2.69 6 6s-2.69 6-6 6"}),"Brightness6"),tV=ee(m.jsx("path",{d:"m22.7 19-9.1-9.1c.9-2.3.4-5-1.5-6.9-2-2-5-2.4-7.4-1.3L9 6 6 9 1.6 4.7C.4 7.1.9 10.1 2.9 12.1c1.9 1.9 4.6 2.4 6.9 1.5l9.1 9.1c.4.4 1 .4 1.4 0l2.3-2.3c.5-.4.5-1.1.1-1.4"}),"Build"),nV=ee(m.jsx("path",{d:"M20 3h-1V1h-2v2H7V1H5v2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 18H4V8h16z"}),"CalendarToday"),Nu=ee(m.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12z"}),"Cancel"),jn=ee(m.jsx("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check"),rV=ee(m.jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight"),$t=ee(m.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),Ub=ee(m.jsx("path",{d:"M9.4 16.6 4.8 12l4.6-4.6L8 6l-6 6 6 6zm5.2 0 4.6-4.6-4.6-4.6L16 6l6 6-6 6z"}),"Code"),oV=ee(m.jsx("path",{d:"m13.7826 15.1719 2.1213-2.1213 5.9963 5.9962-2.1213 2.1213zM17.5 10c1.93 0 3.5-1.57 3.5-3.5 0-.58-.16-1.12-.41-1.6l-2.7 2.7-1.49-1.49 2.7-2.7c-.48-.25-1.02-.41-1.6-.41C15.57 3 14 4.57 14 6.5c0 .41.08.8.21 1.16l-1.85 1.85-1.78-1.78.71-.71-1.41-1.41L12 3.49c-1.17-1.17-3.07-1.17-4.24 0L4.22 7.03l1.41 1.41H2.81l-.71.71 3.54 3.54.71-.71V9.15l1.41 1.41.71-.71 1.78 1.78-7.41 7.41 2.12 2.12L16.34 9.79c.36.13.75.21 1.16.21"}),"Construction"),M4=ee(m.jsx("path",{d:"M20 6h-8l-2-2H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2m-1 8h-3v3h-2v-3h-3v-2h3V9h2v3h3z"}),"CreateNewFolder"),sV=ee(m.jsx("path",{d:"M4 7v2c0 .55-.45 1-1 1H2v4h1c.55 0 1 .45 1 1v2c0 1.65 1.35 3 3 3h3v-2H7c-.55 0-1-.45-1-1v-2c0-1.3-.84-2.42-2-2.83v-.34C5.16 11.42 6 10.3 6 9V7c0-.55.45-1 1-1h3V4H7C5.35 4 4 5.35 4 7m17 3c-.55 0-1-.45-1-1V7c0-1.65-1.35-3-3-3h-3v2h3c.55 0 1 .45 1 1v2c0 1.3.84 2.42 2 2.83v.34c-1.16.41-2 1.52-2 2.83v2c0 .55-.45 1-1 1h-3v2h3c1.65 0 3-1.35 3-3v-2c0-.55.45-1 1-1h1v-4z"}),"DataObject"),ra=ee(m.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"}),"Delete"),Vb=ee(m.jsx("path",{d:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8zm2 16H8v-2h8zm0-4H8v-2h8zm-3-5V3.5L18.5 9z"}),"Description"),aV=ee(m.jsx("path",{d:"M15 13V5c0-1.66-1.34-3-3-3S9 3.34 9 5v8c-1.21.91-2 2.37-2 4 0 2.76 2.24 5 5 5s5-2.24 5-5c0-1.63-.79-3.09-2-4m-4-8c0-.55.45-1 1-1s1 .45 1 1h-1v1h1v2h-1v1h1v2h-2z"}),"DeviceThermostat"),Ed=ee(m.jsx("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.996.996 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"}),"Edit"),iV=ee(m.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"),lV=ee(m.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore"),Jm=ee(m.jsx("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm-1 4 6 6v10c0 1.1-.9 2-2 2H7.99C6.89 23 6 22.1 6 21l.01-14c0-1.1.89-2 1.99-2zm-1 7h5.5L14 6.5z"}),"FileCopy"),cV=ee(m.jsx("path",{d:"M20 19.59V8l-6-6H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c.45 0 .85-.15 1.19-.4l-4.43-4.43c-.8.52-1.74.83-2.76.83-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5c0 1.02-.31 1.96-.83 2.75zM9 13c0 1.66 1.34 3 3 3s3-1.34 3-3-1.34-3-3-3-3 1.34-3 3"}),"FindInPage"),dV=ee(m.jsx("path",{d:"M20 6h-8l-2-2H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2m0 12H4V8h16z"}),"FolderOpen"),uV=ee(m.jsx("path",{d:"M20 6h-8l-2-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2m-2.06 11L15 15.28 12.06 17l.78-3.33-2.59-2.24 3.41-.29L15 8l1.34 3.14 3.41.29-2.59 2.24z"}),"FolderSpecial"),pV=ee(m.jsx("path",{d:"M9.93 13.5h4.14L12 7.98zM20 2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m-4.05 16.5-1.14-3H9.17l-1.12 3H5.96l5.11-13h1.86l5.11 13z"}),"FontDownload"),hV=ee(m.jsx("path",{d:"M10 4v3h2.21l-3.42 8H6v3h8v-3h-2.21l3.42-8H18V4z"}),"FormatItalic"),fV=ee(m.jsx("path",{d:"M11 9h2v2h-2zm-2 2h2v2H9zm4 0h2v2h-2zm2-2h2v2h-2zM7 9h2v2H7zm12-6H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2M9 18H7v-2h2zm4 0h-2v-2h2zm4 0h-2v-2h2zm2-7h-2v2h2v2h-2v-2h-2v2h-2v-2h-2v2H9v-2H7v2H5v-2h2v-2H5V5h14z"}),"Gradient"),mV=ee(m.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 17h-2v-2h2zm2.07-7.75-.9.92C13.45 12.9 13 13.5 13 15h-2v-.5c0-1.1.45-2.1 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41 0-1.1-.9-2-2-2s-2 .9-2 2H8c0-2.21 1.79-4 4-4s4 1.79 4 4c0 .88-.36 1.68-.93 2.25"}),"Help"),gV=ee(m.jsx("path",{d:"M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2M8.5 13.5l2.5 3.01L14.5 12l4.5 6H5z"}),"Image"),_V=ee(m.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-6h2zm0-8h-2V7h2z"}),"Info"),j4=ee(m.jsx("path",{d:"M6 2c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm7 7V3.5L18.5 9z"}),"InsertDriveFile"),vV=ee(m.jsx("path",{d:"M19 7v4H5.83l3.58-3.59L8 6l-6 6 6 6 1.41-1.41L5.83 13H21V7z"}),"KeyboardReturn"),I4=ee(m.jsx("path",{d:"M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1M8 13h8v-2H8zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5"}),"Link"),yV=ee(m.jsx("path",{d:"M3 13h2v-2H3zm0 4h2v-2H3zm0-8h2V7H3zm4 4h14v-2H7zm0 4h14v-2H7zM7 7v2h14V7z"}),"List"),bV=ee(m.jsx("path",{d:"M19 5v14H5V5zm1.1-2H3.9c-.5 0-.9.4-.9.9v16.2c0 .4.4.9.9.9h16.2c.4 0 .9-.5.9-.9V3.9c0-.5-.5-.9-.9-.9M11 7h6v2h-6zm0 4h6v2h-6zm0 4h6v2h-6zM7 7h2v2H7zm0 4h2v2H7zm0 4h2v2H7z"}),"ListAlt"),wV=ee(m.jsx("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2m-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1s3.1 1.39 3.1 3.1z"}),"Lock"),SV=ee(m.jsx("path",{d:"M19 3H5c-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-5 14h-2V9h-2V7h4z"}),"LooksOne"),xV=ee(m.jsx("path",{d:"M12 2C6.49 2 2 6.49 2 12s4.49 10 10 10 10-4.49 10-10S17.51 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m3-8c0 1.66-1.34 3-3 3s-3-1.34-3-3 1.34-3 3-3 3 1.34 3 3"}),"ModeStandby"),kV=ee(m.jsx("path",{d:"M12 3v10.55c-.59-.34-1.27-.55-2-.55-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4V7h4V3z"}),"MusicNote"),$V=ee(m.jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"NavigateNext"),CV=ee(m.jsx("path",{d:"M12 22c1.1 0 2-.9 2-2h-4c0 1.1.89 2 2 2m6-6v-5c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1z"}),"Notifications"),EV=ee(m.jsx("path",{d:"M12 2C6.49 2 2 6.49 2 12s4.49 10 10 10c1.38 0 2.5-1.12 2.5-2.5 0-.61-.23-1.2-.64-1.67-.08-.1-.13-.21-.13-.33 0-.28.22-.5.5-.5H16c3.31 0 6-2.69 6-6 0-4.96-4.49-9-10-9m5.5 11c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5m-3-4c-.83 0-1.5-.67-1.5-1.5S13.67 6 14.5 6s1.5.67 1.5 1.5S15.33 9 14.5 9M5 11.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5S7.33 13 6.5 13 5 12.33 5 11.5m6-4c0 .83-.67 1.5-1.5 1.5S8 8.33 8 7.5 8.67 6 9.5 6s1.5.67 1.5 1.5"}),"Palette"),z4=ee(m.jsx("path",{d:"M12 6c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2m0 10c2.7 0 5.8 1.29 6 2H6c.23-.72 3.31-2 6-2m0-12C9.79 4 8 5.79 8 8s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4m0 10c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4"}),"PersonOutlined"),uf=ee(m.jsx("path",{d:"M5 4v2h14V4zm0 10h4v6h6v-6h4l-7-7z"}),"Publish"),R4=ee(m.jsx("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4z"}),"Refresh"),P4=ee(m.jsx("path",{d:"m20.2 5.9.8-.8C19.6 3.7 17.8 3 16 3s-3.6.7-5 2.1l.8.8C13 4.8 14.5 4.2 16 4.2s3 .6 4.2 1.7m-.9.8c-.9-.9-2.1-1.4-3.3-1.4s-2.4.5-3.3 1.4l.8.8c.7-.7 1.6-1 2.5-1s1.8.3 2.5 1zM19 13h-2V9h-2v4H5c-1.1 0-2 .9-2 2v4c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-4c0-1.1-.9-2-2-2M8 18H6v-2h2zm3.5 0h-2v-2h2zm3.5 0h-2v-2h2z"}),"Router"),vy=ee(m.jsx("path",{d:"M17 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V7zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3m3-10H5V5h10z"}),"Save"),TV=ee(m.jsx("path",{d:"M19 12v7H5v-7H3v7c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-7zm-6 .67 2.59-2.58L17 11.5l-5 5-5-5 1.41-1.41L11 12.67V3h2z"}),"SaveAlt"),yy=ee(m.jsx("path",{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6"}),"Settings"),bk=ee(m.jsx("path",{d:"M12 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m7-7H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2m-1.75 9c0 .23-.02.46-.05.68l1.48 1.16c.13.11.17.3.08.45l-1.4 2.42c-.09.15-.27.21-.43.15l-1.74-.7c-.36.28-.76.51-1.18.69l-.26 1.85c-.03.17-.18.3-.35.3h-2.8c-.17 0-.32-.13-.35-.29l-.26-1.85c-.43-.18-.82-.41-1.18-.69l-1.74.7c-.16.06-.34 0-.43-.15l-1.4-2.42c-.09-.15-.05-.34.08-.45l1.48-1.16c-.03-.23-.05-.46-.05-.69s.02-.46.05-.68l-1.48-1.16c-.13-.11-.17-.3-.08-.45l1.4-2.42c.09-.15.27-.21.43-.15l1.74.7c.36-.28.76-.51 1.18-.69l.26-1.85c.03-.17.18-.3.35-.3h2.8c.17 0 .32.13.35.29l.26 1.85c.43.18.82.41 1.18.69l1.74-.7c.16-.06.34 0 .43.15l1.4 2.42c.09.15.05.34-.08.45l-1.48 1.16c.03.23.05.46.05.69"}),"SettingsApplications"),OV=ee(m.jsx("path",{d:"m3.5 18.49 6-6.01 4 4L22 6.92l-1.41-1.41-7.09 7.97-4-4L2 16.99z"}),"ShowChart"),L4=ee(m.jsx("path",{d:"M11.99 2c-5.52 0-10 4.48-10 10s4.48 10 10 10 10-4.48 10-10-4.48-10-10-10m3.61 6.34c1.07 0 1.93.86 1.93 1.93s-.86 1.93-1.93 1.93-1.93-.86-1.93-1.93c-.01-1.07.86-1.93 1.93-1.93m-6-1.58c1.3 0 2.36 1.06 2.36 2.36s-1.06 2.36-2.36 2.36-2.36-1.06-2.36-2.36c0-1.31 1.05-2.36 2.36-2.36m0 9.13v3.75c-2.4-.75-4.3-2.6-5.14-4.96 1.05-1.12 3.67-1.69 5.14-1.69.53 0 1.2.08 1.9.22-1.64.87-1.9 2.02-1.9 2.68M11.99 20c-.27 0-.53-.01-.79-.04v-4.07c0-1.42 2.94-2.13 4.4-2.13 1.07 0 2.92.39 3.84 1.15-1.17 2.97-4.06 5.09-7.45 5.09"}),"SupervisedUserCircle"),DV=ee(m.jsx("path",{d:"M2.5 4v3h5v12h3V7h5V4zm19 5h-9v3h3v7h3v-7h3z"}),"TextFields"),AV=ee(m.jsx("path",{d:"M15 13V5c0-1.66-1.34-3-3-3S9 3.34 9 5v8c-1.21.91-2 2.37-2 4 0 2.76 2.24 5 5 5s5-2.24 5-5c0-1.63-.79-3.09-2-4m-4-2V5c0-.55.45-1 1-1s1 .45 1 1v1h-1v1h1v2h-1v1h1v1z"}),"Thermostat"),NV=ee(m.jsx("path",{d:"M11 12V6c0-1.66-1.34-3-3-3S5 4.34 5 6v6c-1.21.91-2 2.37-2 4 0 1.12.38 2.14 1 2.97V19h.02c.91 1.21 2.35 2 3.98 2s3.06-.79 3.98-2H12v-.03c.62-.83 1-1.85 1-2.97 0-1.63-.79-3.09-2-4m-6 4c0-.94.45-1.84 1.2-2.4L7 13V6c0-.55.45-1 1-1s1 .45 1 1v7l.8.6c.75.57 1.2 1.46 1.2 2.4zM18.62 4h-1.61l-3.38 9h1.56l.81-2.3h3.63l.8 2.3H22zm-2.15 5.39 1.31-3.72h.08l1.31 3.72z"}),"ThermostatAuto"),MV=ee(m.jsx("path",{d:"M17 7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h10c2.76 0 5-2.24 5-5s-2.24-5-5-5m0 8c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3"}),"ToggleOn"),jV=ee(m.jsx("path",{d:"M16 13h-3V3h-2v10H8l4 4zM4 19v2h16v-2z"}),"VerticalAlignBottom"),IV=ee(m.jsx("path",{d:"M8 11h3v10h2V11h3l-4-4zM4 3v2h16V3z"}),"VerticalAlignTop"),zV=ee(m.jsx("path",{d:"M17 10.5V7c0-.55-.45-1-1-1H4c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h12c.55 0 1-.45 1-1v-3.5l4 4v-11z"}),"Videocam"),RV=ee(m.jsx("path",{d:"M14.67 5v14H9.33V5zm1 14H21V5h-5.33zm-7.34 0V5H3v14z"}),"ViewColumn"),PV=ee(m.jsx("path",{d:"M14.67 5v6.5H9.33V5zm1 6.5H21V5h-5.33zm-1 7.5v-6.5H9.33V19zm1-6.5V19H21v-6.5zm-7.34 0H3V19h5.33zm0-1V5H3v6.5z"}),"ViewModule"),LV=ee(m.jsx("path",{d:"M16.5 12c0-1.77-1.02-3.29-2.5-4.03v2.21l2.45 2.45c.03-.2.05-.41.05-.63m2.5 0c0 .94-.2 1.82-.54 2.64l1.51 1.51C20.63 14.91 21 13.5 21 12c0-4.28-2.99-7.86-7-8.77v2.06c2.89.86 5 3.54 5 6.71M4.27 3 3 4.27 7.73 9H3v6h4l5 5v-6.73l4.25 4.25c-.67.52-1.42.93-2.25 1.18v2.06c1.38-.31 2.63-.95 3.69-1.81L19.73 21 21 19.73l-9-9zM12 4 9.91 6.09 12 8.18z"}),"VolumeOff"),FV=ee(m.jsx("path",{d:"M3 9v6h4l5 5V4L7 9zm13.5 3c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02M14 3.23v2.06c2.89.86 5 3.54 5 6.71s-2.11 5.85-5 6.71v2.06c4.01-.91 7-4.49 7-8.77s-2.99-7.86-7-8.77"}),"VolumeUp"),ad=ee(m.jsx("path",{d:"m1 9 2 2c4.97-4.97 13.03-4.97 18 0l2-2C16.93 2.93 7.08 2.93 1 9m8 8 3 3 3-3c-1.65-1.66-4.34-1.66-6 0m-4-4 2 2c2.76-2.76 7.24-2.76 10 0l2-2C15.14 9.14 8.87 9.14 5 13"}),"Wifi"),Cp=ee(m.jsx("path",{d:"M22.99 9C19.15 5.16 13.8 3.76 8.84 4.78l2.52 2.52c3.47-.17 6.99 1.05 9.63 3.7zm-4 4c-1.29-1.29-2.84-2.13-4.49-2.56l3.53 3.53zM2 3.05 5.07 6.1C3.6 6.82 2.22 7.78 1 9l1.99 2c1.24-1.24 2.67-2.16 4.2-2.77l2.24 2.24C7.81 10.89 6.27 11.73 5 13v.01L6.99 15c1.36-1.36 3.14-2.04 4.92-2.06L18.98 20l1.27-1.26L3.29 1.79zM9 17l3 3 3-3c-1.65-1.66-4.34-1.66-6 0"}),"WifiOff");function BV(){console.log(` +██╗ ██████╗ ██████╗ ██████╗ ██████╗ ██╗ ██╗███████╗██████╗ +██║██╔═══██╗██╔══██╗██╔══██╗██╔═══██╗██║ ██╔╝██╔════╝██╔══██╗ +██║██║ ██║██████╔╝██████╔╝██║ ██║█████╔╝ █████╗ ██████╔╝ +██║██║ ██║██╔══██╗██╔══██╗██║ ██║██╔═██╗ ██╔══╝ ██╔══██╗ +██║╚██████╔╝██████╔╝██║ ██║╚██████╔╝██║ ██╗███████╗██║ ██║ +╚═╝ ╚═════╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ +`),console.log("Nice to see you here! :) Join our dev community here https://github.com/ioBroker/ioBroker or here https://github.com/iobroker-community-adapters"),console.log("Help us to create open source project with reactJS!"),console.log("See you :)")}const WV=` +/** + * Copyright 2018-2024 Denis Haev (bluefox) + * + * MIT License + * + **/ + +.logo-background-light, .logo-background-colored { + background: white; +} +.logo-background-dark, .logo-background-blue { + background: black; +} +.logo-div { + position: absolute; + top: 50%; + left: 50%; + -ms-transform: translateX(-50%) translateY(-50%); + -webkit-transform: translate(-50%,-50%); + transform: translate(-50%,-50%); + overflow: hidden; + border-radius: 50%; + z-index: 2; +} +.logo-border { + /*border-color: #164477;*/ + border-top-color: #3399CC; + border-left-color: #164477; + border-bottom-color: #164477; + border-right-color: #164477; + border-radius: 50%; + border-style: solid; + box-sizing: border-box; + width: 100%; + height: 100%; + position: absolute; +} +.logo-top { + position: absolute; + width: 4.5%; + height: 16%; + top: 0; + z-index: 2; +} +.logo-i { + position: absolute; + width: 14.5%; + height: 60%; + top: 20%; + left: 42%; + background: #3399CC; +} +.logo-i-top { + position: absolute; + width: 14.5%; + height: 4%; + left: 42%; + background: #3399CC; + border-radius: 100%; +} +.logo-back { + width: 100%; + height: 100%; + z-index: 0; + overflow: hidden; +} +@keyframes logo-grow { + 0% { + width: 230px; + height: 230px; + transform: translate(-50%,-50%) scale(1); + opacity: 1 + } + 99% { + width: 230px; + height: 230px; + transform: translate(-50%,-50%) scale(10); + opacity: 0; + } + 100% { + width: 0; + height: 0; + opacity: 0; + } +} +@keyframes logo-spin { 100% { -webkit-transform: rotate(360deg); transform: rotate(360deg); } } +@keyframes logo-color-inside-light { + 0% { + background: #FEFEFE; + } + 100% { + background: #3399CC; + } +} +@keyframes logo-color-inside-dark { + 0% { + background: #030303; + } + 100% { + background: #3399CC; + } +} +@keyframes logo-color-inside-colored { + 0% { + background: #FEFEFE; + } + 100% { + background: #3399CC; + } +} +@keyframes logo-color-inside-blue { + 0% { + background: #030303; + } + 100% { + background: #3399CC; + } +} + +@keyframes logo-color-outside-light { + 0% { + border-color: #FEFEFE; + } + 100% { + border-top-color: #3399CC; + border-left-color: #164477; + border-bottom-color: #164477; + border-right-color: #164477; + } +} +@keyframes logo-color-outside-dark { + 0% { + border-color: #040404; + } + 100% { + border-top-color: #3399CC; + border-left-color: #164477; + border-bottom-color: #164477; + border-right-color: #164477; + } +} +@keyframes logo-color-outside-colored { + 0% { + border-color: #FEFEFE; + } + 100% { + border-top-color: #3399CC; + border-left-color: #164477; + border-bottom-color: #164477; + border-right-color: #164477; + } +} +@keyframes logo-color-outside-blue { + 0% { + border-color: #040404; + } + 100% { + border-top-color: #3399CC; + border-left-color: #164477; + border-bottom-color: #164477; + border-right-color: #164477; + } +} + +.logo-animate-wait { + animation: logo-color-outside 1.5s, logo-spin 1.5s linear infinite; +} + +.logo-animate-grow-light { + background: #DDD; +} +.logo-animate-grow-dark { + background: #1d1d1d; +} +.logo-animate-grow-colored { + background: #DDD; +} +.logo-animate-grow-blue { + background: #1d1d1d; +} + +.logo-animate-grow { + display: inline-block; + text-align: center; + z-index: 1; + top: 50%; + left: 50%; + -ms-transform: translateX(-50%) translateY(-50%); + -webkit-transform: translate(-50%,-50%); + transform: translate(-50%,-50%); + width: 245px; + height: 245px; + border-radius: 50%; + position: absolute; + animation: logo-grow 1s 1 ease forwards; +} + +.logo-animate-color-inside-light { + animation: logo-color-inside-light 2.5s; +} +.logo-animate-color-inside-dark { + animation: logo-color-inside-dark 2.5s; +} +.logo-animate-color-inside-colored { + animation: logo-color-inside-colored 2.5s; +} +.logo-animate-color-inside-blue { + animation: logo-color-inside-blue 2.5s; +} + +.logo-animate-color-outside-light { + animation: logo-color-outside-light 1.5s; +} +.logo-animate-color-outside-dark { + animation: logo-color-outside-dark 1.5s; +} +.logo-animate-color-outside-colored { + animation: logo-color-outside-colored 1.5s; +} +.logo-animate-color-outside-blue { + animation: logo-color-outside-blue 1.5s; +} +`;function F4(e){k.useEffect(()=>{if(!window.document.getElementById("loader-iobroker-component")){const r=window.document.createElement("style");r.setAttribute("id","loader-iobroker-component"),r.innerHTML=WV,window.document.head.appendChild(r)}},[]);const t=e.size||234,n=e.themeName||e.theme||e.themeType||"light";return p.createElement("div",{className:`logo-back logo-background-${n}`,style:{backgroundImage:e.backgroundImage&&e.backgroundImage!=="@@loginBackgroundImage@@"?e.backgroundImage:window.loadingBackgroundImage&&window.loadingBackgroundImage!=="@@loginBackgroundImage@@"?`url(${window.loadingBackgroundImage})`:void 0,backgroundColor:e.backgroundColor&&e.backgroundColor!=="@@loginBackgroundColor@@"?e.backgroundColor:window.loadingBackgroundColor&&window.loadingBackgroundColor!=="@@loginBackgroundColor@@"?window.loadingBackgroundColor:void 0,backgroundSize:"cover"}},window.loadingHideLogo==="true"?null:p.createElement(p.Fragment,null,p.createElement("div",{className:"logo-div",style:{width:t,height:t}},p.createElement("div",{className:`logo-top logo-background-${n}`,style:{left:"37%"}}),p.createElement("div",{className:`logo-top logo-background-${n}`,style:{left:"57%"}}),p.createElement("div",{className:`logo-border logo-background-${n} logo-animate-wait`,style:{borderWidth:t*.132}}),p.createElement("div",{className:`logo-i logo-animate-color-inside-${n}`}),p.createElement("div",{className:`logo-i-top logo-animate-color-inside-${n}`,style:{top:"18%"}}),p.createElement("div",{className:`logo-i-top logo-animate-color-inside-${n}`,style:{bottom:"18%"}})),p.createElement("div",{className:`logo-animate-grow logo-animate-grow-${n}`,style:{width:t+11,height:t+11}})))}class Td extends k.Component{constructor(n){super(n);L(this,"onHashChangedBound");this.onHashChangedBound=this.onHashChanged.bind(this)}componentDidMount(){window.addEventListener("hashchange",this.onHashChangedBound)}componentWillUnmount(){window.removeEventListener("hashchange",this.onHashChangedBound)}onHashChanged(){}static getLocation(){let n=window.location.hash;n=n.replace(/^#/,"");const r=n.split("/").map(o=>{try{return o?decodeURIComponent(o):""}catch{return console.error(`Router: Cannot decode ${o}`),o}});return{tab:r[0]||"",dialog:r[1]||"",id:r[2]||"",arg:r[3]||""}}static doNavigate(n,r,o,s){let a="";const i=Td.getLocation();s!==void 0&&!o&&(o=i.id),o&&!r&&(r=i.dialog),(r&&!n||n===null)&&(n=i.tab),n&&(a=`#${n}`,r&&(a+=`/${r}`,o&&(a+=`/${o}`,s!==void 0&&(a+=`/${s}`)))),window.location.hash!==a&&(window.location.hash=a)}}function HV(){const e=document.getSelection();if(!(e!=null&&e.rangeCount))return()=>{};let t=document.activeElement;const n=[];for(let r=0;r{e.type==="Caret"&&e.removeAllRanges(),e.rangeCount||n.forEach(r=>e.addRange(r)),t&&t.focus()}}const wk={"text/plain":"Text","text/html":"Url",default:"Text"},UV="Copy to clipboard: #{key}, Enter";function VV(e){const t=`${/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl"}+C`;return e.replace(/#{\s*key\s*}/g,t)}function GV(e,t){let n,r,o,s,a=!1;t=t||{};const i=t.debug||!1;try{if(n=HV(),r=document.createRange(),o=document.getSelection(),s=document.createElement("span"),s.textContent=e,s.ariaHidden="true",s.style.all="unset",s.style.position="fixed",s.style.top="0px",s.style.clip="rect(0, 0, 0, 0)",s.style.whiteSpace="pre",s.style.userSelect="text",s.addEventListener("copy",d=>{var u,c,h,f;if(d.stopPropagation(),t!=null&&t.format)if(d.preventDefault(),typeof d.clipboardData>"u"){i&&console.warn("unable to use e.clipboardData"),i&&console.warn("trying IE specific stuff"),(u=window.clipboardData)==null||u.clearData();const g=wk[t.format]||wk.default;(c=window.clipboardData)==null||c.setData(g,e)}else(h=d.clipboardData)==null||h.clearData(),(f=d.clipboardData)==null||f.setData(t.format,e)}),document.body.appendChild(s),r.selectNodeContents(s),o==null||o.addRange(r),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");a=!0}catch(l){i&&console.error("unable to copy using execCommand: ",l),i&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),a=!0}catch(d){i&&console.error("unable to copy using clipboardData: ",d),i&&console.error("falling back to prompt");const u=VV("message"in t?t.message||"":UV);window.prompt(u,e)}}finally{o&&(r&&typeof o.removeRange=="function"?o.removeRange(r):o.removeAllRanges()),s&&document.body.removeChild(s),n&&n()}return a}const dt=class dt{static setLanguage(t){t&&(dt.lang=t)}static extendTranslations(t,n){if(t.prefix){const r=t;if(typeof r.prefix=="string"){const o=r.prefix;delete r.prefix,Object.keys(r).forEach(s=>{const a=s,i={},l=r[a];Object.keys(l).forEach(d=>{d&&l&&(d.startsWith(o)?i[d]=l[d]:i[`${o}${d}`]=l[d])}),t[a]=i})}else console.warn("Found prefix in translations, but it is not a string")}try{if(!n)t.en&&t.de&&t.ru?Object.keys(t).forEach(r=>{const o=r;dt.translations[o]=dt.translations[o]||{};const s=dt.translations[o];Object.assign(s,t[o])}):Object.keys(t).forEach(r=>{const o=t[r];Object.keys(o).forEach(s=>{const a=s,i=dt.translations[a];i?i[r]?i[r]!==o[a]&&console.warn(`Translation for word "${r}" in "${a}" was ignored: existing = "${i[r]}", new = ${o[a]}`):i[r]=o[a]:console.warn(`Used unknown language: ${a}`)})});else{dt.translations[n]||console.warn(`Used unknown language: ${n}`),dt.translations[n]=dt.translations[n]||{};const r=dt.translations[n];r&&Object.keys(t).forEach(o=>{r[o]?r[o]!==t[o]&&console.warn(`Translation for word "${o}" in "${n}" was ignored: existing = "${r[o]}", new = ${t[o]}`):r[o]=t[o]})}}catch(r){console.error(`Cannot apply translations: ${r}`)}}static setTranslations(t){t&&(dt.translations=t)}static getLanguage(){return dt.lang}static t(t,...n){const r=dt.translations[dt.lang];if(r){const o=r[t];if(o)t=o;else if(dt.unknownTranslations.includes(t)||(dt.unknownTranslations.push(t),!dt._disableWarning&&console.log(`Translate: ${t}`)),dt.lang!=="en"&&dt.translations.en){const s=dt.translations.en[t];s&&(t=s)}}for(const o of n)t=t.replace("%s",o);return t}static i18nShow(t){const n={};t?typeof t=="string"?(dt.unknownTranslations.forEach(r=>{r.startsWith(t)&&(n[r]=r.replace(t,""))}),console.log(JSON.stringify(n,null,2))):typeof t=="object"&&(dt.unknownTranslations.forEach(r=>{t.test(r)&&(n[r]=r)}),console.log(JSON.stringify(n,null,2))):(dt.unknownTranslations.forEach(r=>n[r]=r),console.log(JSON.stringify(n,null,2)))}static disableWarning(t){dt._disableWarning=!!t}};L(dt,"translations",{}),L(dt,"unknownTranslations",[]),L(dt,"lang",window.sysLang||"en"),L(dt,"_disableWarning",!1);let E=dt;window.i18nShow=E.i18nShow;window.i18nDisableWarning=E.disableWarning;const ko="material",qV=["Su","Mo","Tu","We","Th","Fr","Sa"],JV=["Jan","Feb","Mar","Apr","Mai","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],u_={0:"0x00 - good",1:"0x01 - general problem",2:"0x02 - no connection problem",16:"0x10 - substitute value from controller",32:"0x20 - substitute initial value",64:"0x40 - substitute value from device or instance",128:"0x80 - substitute value from sensor",17:"0x11 - general problem by instance",65:"0x41 - general problem by device",129:"0x81 - general problem by sensor",18:"0x12 - instance not connected",66:"0x42 - device not connected",130:"0x82 - sensor not connected",68:"0x44 - device reports error",132:"0x84 - sensor reports error"},Sk={JVBERi0:"pdf",R0lGODdh:"gif",R0lGODlh:"gif",iVBORw0KGgo:"png","/9j/":"jpg",PHN2Zw:"svg",Qk1:"bmp",AAABAA:"ico"},wt=class wt{static CapitalWords(t){return(t||"").split(/[\s_]/).filter(n=>n).map(n=>n?n[0].toUpperCase()+n.substring(1).toLowerCase():"").join(" ")}static formatSeconds(t){const n=Math.floor(t/86400);t%=3600*24;const r=Math.floor(t/3600).toString().padStart(2,"0");t%=3600;const o=Math.floor(t/60).toString().padStart(2,"0");t%=60;const s=Math.floor(t).toString().padStart(2,"0");let a="";return n&&(a+=`${n} ${E.t("ra_daysShortText")} `),a+=`${r}:${o}:${s}`,a}static getObjectName(t,n,r,o,s){var l;const a=t[n];let i;if(typeof r=="string"&&!o&&(o={language:r},r=null),o=o||{},o.language||(o.language=t["system.config"]&&t["system.config"].common&&t["system.config"].common.language||window.sysLang||"en"),r!=null&&r.name){const d=r.name;typeof d=="object"?i=o.language&&d[o.language]||d.en:i=d}else if(s&&((l=a==null?void 0:a.common)!=null&&l.desc)){const d=a.common.desc;typeof d=="object"?i=o.language&&d[o.language]||d.en||d.de||d.ru||"":i=d,i=(i||"").toString().replace(/[_.]/g," "),i===i.toUpperCase()&&(i=i[0]+i.substring(1).toLowerCase())}else if(!s&&(a!=null&&a.common)){const d=a.common.name||a.common.desc;d&&typeof d=="object"?i=o.language&&d[o.language]||d.en||d.de||d.ru||"":i=d,i=(i||"").toString().replace(/[_.]/g," "),i===i.toUpperCase()&&(i=i[0]+i.substring(1).toLowerCase())}else{const d=n.lastIndexOf(".");i=n.substring(d+1).replace(/[_.]/g," "),i=wt.CapitalWords(i)}return(i==null?void 0:i.trim())||""}static getObjectNameFromObj(t,n,r,o,s){var l,d;const a=t;let i=t&&t._id||"";if(typeof n=="string"&&!r&&(r={language:n},n=null),r=r||{},n!=null&&n.name){const u=n.name;typeof u=="object"?i=r.language&&u[r.language]||u.en:i=u}else if(o&&((l=a==null?void 0:a.common)!=null&&l.desc)){const u=a.common.desc;typeof u=="object"?i=r.language&&u[r.language]||u.en:i=u,i=(i||"").toString().replace(/[_.]/g," "),i===i.toUpperCase()&&(i=i[0]+i.substring(1).toLowerCase())}else if(!o&&((d=a==null?void 0:a.common)!=null&&d.name)){let u=a.common.name;!u&&a.common.desc&&(u=a.common.desc),typeof u=="object"?i=r.language&&u[r.language]||u.en:i=u,i=(i||"").toString().replace(/[_.]/g," "),i===i.toUpperCase()&&(i=i[0]+i.substring(1).toLowerCase())}return s?i:i.trim()}static getSettingsOrder(t,n,r){let o;t&&Object.prototype.hasOwnProperty.call(t,"common")?o=t.common:o=t;let s;if(o!=null&&o.custom){s=o.custom[ko];const a=r.user||"admin";if(s&&s[a]){if(n){if(s[a].subOrder&&s[a].subOrder[n])return JSON.parse(JSON.stringify(s[a].subOrder[n]))}else if(s[a].order)return JSON.parse(JSON.stringify(s[a].order))}}return null}static getSettingsCustomURLs(t,n,r){let o;t&&Object.prototype.hasOwnProperty.call(t,"common")?o=t.common:o=t;let s;if(o!=null&&o.custom){s=o.custom[ko];const a=r.user||"admin";if(s&&s[a]){if(n){if(s[a].subURLs&&s[a].subURLs[n])return JSON.parse(JSON.stringify(s[a].subURLs[n]))}else if(s[a].URLs)return JSON.parse(JSON.stringify(s[a].URLs))}}return null}static reorder(t,n,r){const o=Array.from(t),[s]=o.splice(n,1);return o.splice(r,0,s),o}static getSettings(t,n,r){let o;const s=(t==null?void 0:t._id)||(n==null?void 0:n.id);let a;if(t&&Object.prototype.hasOwnProperty.call(t,"common")?a=t.common:a=t,a!=null&&a.custom?(o=a.custom,o=o[ko]&&o[ko][n.user||"admin"]?JSON.parse(JSON.stringify(o[ko][n.user||"admin"])):{enabled:!0}):o={enabled:r===void 0?!0:r,useCustom:!1},Object.prototype.hasOwnProperty.call(o,"enabled")||(o.enabled=r===void 0?!0:r),n&&(!o.name&&n.name&&(o.name=n.name),!o.icon&&n.icon&&(o.icon=n.icon),!o.color&&n.color&&(o.color=n.color)),a&&(!o.color&&a.color&&(o.color=a.color),!o.icon&&a.icon&&(o.icon=a.icon),!o.name&&a.name&&(o.name=a.name)),typeof o.name=="object"&&(o.name=n.language&&o.name[n.language]||o.name.en,o.name=(o.name||"").toString().replace(/_/g," "),o.name===o.name.toUpperCase()&&(o.name=o.name[0]+o.name.substring(1).toLowerCase())),!o.name&&s){const i=s.lastIndexOf(".");o.name=s.substring(i+1).replace(/[_.]/g," "),o.name=(o.name||"").toString().replace(/_/g," "),o.name=wt.CapitalWords(o.name)}return o}static setSettings(t,n,r){if(t){t.common=t.common||{},t.common.custom=t.common.custom||{},t.common.custom[ko]=t.common.custom[ko]||{},t.common.custom[ko][r.user||"admin"]=n;const o=t.common.custom[ko][r.user||"admin"];return o.useCommon&&(o.color!==void 0&&(t.common.color=o.color,delete o.color),o.icon!==void 0&&(t.common.icon=o.icon,delete o.icon),o.name!==void 0&&(typeof t.common.name!="object"&&r.language?t.common.name={[r.language]:o.name}:typeof t.common.name=="object"&&r.language&&(t.common.name[r.language]=o.name),delete o.name)),!0}return!1}static getIcon(t,n){return t!=null&&t.icon?t.icon.length<=2?p.createElement("span",{style:n||{}},t.icon):t.icon.startsWith("data:image")?p.createElement("img",{alt:t.name,src:t.icon,style:n||{}}):p.createElement("img",{alt:t.name,src:(t.prefix||"")+t.icon,style:n}):null}static getObjectIcon(t,n){var r;if(typeof t=="object"&&(n=t,t=n==null?void 0:n._id),(r=n==null?void 0:n.common)!=null&&r.icon){let o=n.common.icon;if(typeof o=="string"&&o.length<=2||o.startsWith("data:image"))return o;const s=t.split(".");return s[0]==="system"?o=`adapter/${s[2]}${o.startsWith("/")?"":"/"}${o}`:o=`adapter/${s[0]}${o.startsWith("/")?"":"/"}${o}`,window.location.pathname.match(/adapter\/[^/]+\/[^/]+\.html/)?o=`../../${o}`:window.location.pathname.match(/material\/[.\d]+/)?o=`../../${o}`:window.location.pathname.match(/material\//)&&(o=`../${o}`),o}return null}static splitCamelCase(t){return t?wt.CapitalWords(t):""}static isUseBright(t,n){if(!t)return n===void 0?!0:n;t=t.toString(),t.startsWith("#")&&(t=t.slice(1));let r,o,s;const a=t.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i);if(a&&a.length===4)r=parseInt(a[1],10),o=parseInt(a[2],10),s=parseInt(a[3],10);else{if(t.length===3&&(t=t[0]+t[0]+t[1]+t[1]+t[2]+t[2]),t.length===8)t=t.substring(0,6);else if(t.length!==6)return!1;r=parseInt(t.slice(0,2),16),o=parseInt(t.slice(2,4),16),s=parseInt(t.slice(4,6),16)}return r*.299+o*.587+s*.114<=186}static getTimeString(t){if(t=parseFloat(t),Number.isNaN(t))return"--:--";const n=Math.floor(t/3600),r=Math.floor(t%3600/60).toString().padStart(2,"0"),o=(t%60).toString().padStart(2,"0");return n?`${n}:${r}:${o}`:`${r}:${o}`}static getWindDirection(t){return t>=0&&t<11.25?"N":t>=11.25&&t<33.75?"NNE":t>=33.75&&t<56.25?"NE":t>=56.25&&t<78.75?"ENE":t>=78.75&&t<101.25?"E":t>=101.25&&t<123.75?"ESE":t>=123.75&&t<146.25?"SE":t>=146.25&&t<168.75?"SSE":t>=168.75&&t<191.25?"S":t>=191.25&&t<213.75?"SSW":t>=213.75&&t<236.25?"SW":t>=236.25&&t<258.75?"WSW":t>=258.75&&t<281.25?"W":t>=281.25&&t<303.75?"WNW":t>=303.75&&t<326.25?"NW":t>=326.25&&t<348.75?"NNW":"N"}static padding(t){return typeof t=="string"?t.length<2?`0${t}`:t:t<10?`0${t}`:t.toString()}static setDataFormat(t){t&&(wt.dateFormat=t.toUpperCase().split(/[.-/]/),wt.dateFormat.splice(wt.dateFormat.indexOf("YYYY"),1))}static date2string(t){if(typeof t=="string"){if(t=t.trim(),!t)return"";if(t.match(/^[\w\s]+$/))return t;const r=t.match(/(\d{1,4})[-./](\d{1,2})[-./](\d{1,4})/);if(r){const o=[parseInt(r[1],10),parseInt(r[2],10),parseInt(r[3],10)],s=o.find(a=>a>31);if(s!==void 0){o.splice(o.indexOf(s),1);const a=o.find(i=>i>12);a?(o.splice(o.indexOf(a),1),t=new Date(s,o[0]-1,a)):wt.dateFormat[0][0]==="M"&&wt.dateFormat[1][0]==="D"?(t=new Date(s,o[0]-1,o[1]),Math.abs(t.getTime()-Date.now())>36e5*24*10&&(t=new Date(s,o[1]-1,o[0]))):wt.dateFormat[0][0]==="D"&&wt.dateFormat[1][0]==="M"?(t=new Date(s,o[1]-1,o[0]),Math.abs(t.getTime()-Date.now())>36e5*24*10&&(t=new Date(s,o[0]-1,o[1]))):t=new Date(t)}else t=new Date(t)}else t=new Date(t)}else t=new Date(t);let n=E.t(`ra_dow_${qV[t.getDay()]}`).replace("ra_dow_","");return n+=`. ${t.getDate()} ${E.t(`ra_month_${JV[t.getMonth()]}`).replace("ra_month_","")}`,n}static renderTextWithA(t){let n=t.match(/||[^<]+<\/b>|[^<]+<\/i>/);if(n){const r=[];let o=1;do{const s=t.substring(0,n.index);if(t=t.substring((n.index||0)+n[0].length),s&&r.push(p.createElement("span",{key:`a${o++}`},s)),n[0].startsWith(""))r.push(p.createElement("b",{key:`a${o++}`},n[0].substring(3,n[0].length-4)));else if(n[0].startsWith(""))r.push(p.createElement("i",{key:`a${o++}`},n[0].substring(3,n[0].length-4)));else if(n[0].startsWith("([^<]*)||[^<]+<\/b>|[^<]+<\/i>/):null,n||t&&r.push(p.createElement("span",{key:`a${o++}`},t))}while(n);return r}return t}static getSmartName(t,n,r,o){var a,i;if(!n){if(!o)return!t.common||t&&!t.common?t.smartName:t.common.smartName;if(t&&!t.common)return t.smartName;const l=t;return(a=l==null?void 0:l.common)!=null&&a.custom&&l.common.custom[r]?l.common.custom[r].smartName:void 0}if(!o)return t[n].common.smartName;const s=t[n];return(i=s==null?void 0:s.common)!=null&&i.custom&&s.common.custom[r]&&s.common.custom[r].smartName||null}static getSmartNameFromObj(t,n,r){var s,a;if(!r)return!t.common||t&&!t.common?t.smartName:t.common.smartName;if(t&&!t.common)return t.smartName;const o=(a=(s=t==null?void 0:t.common)==null?void 0:s.custom)==null?void 0:a[n];return o?o.smartName:void 0}static enableSmartName(t,n,r){r?(t.common.custom=t.common.custom||{},t.common.custom[n]=t.common.custom[n]||{},t.common.custom[n].smartName={}):t.common.smartName={}}static removeSmartName(t,n,r){r?t.common&&t.common.custom&&t.common.custom[n]&&(t.common.custom[n]=null):t.common.smartName=null}static updateSmartName(t,n,r,o,s,a){const i=E.getLanguage();if(typeof t.common.smartName=="string"){const l=t.common.smartName;t.common.smartName={},t.common.smartName[i]=l}if(t.native&&t.native.byON){delete t.native.byON;let l=t.common.smartName;l&&typeof l!="object"&&(l={en:l,[i]:l}),t.common.smartName=l}if(o!==void 0&&(a?(t.common.custom=t.common.custom||{},t.common.custom[s]=t.common.custom[s]||{},t.common.custom[s].smartName=t.common.custom[s].smartName||{},o?t.common.custom[s].smartName.smartType=o:delete t.common.custom[s].smartName.smartType):(t.common.smartName=t.common.smartName||{},o?t.common.smartName.smartType=o:delete t.common.smartName.smartType)),r!==void 0&&(a?(t.common.custom=t.common.custom||{},t.common.custom[s]=t.common.custom[s]||{},t.common.custom[s].smartName=t.common.custom[s].smartName||{},t.common.custom[s].smartName.byON=r):(t.common.smartName=t.common.smartName||{},t.common.smartName.byON=r)),n!==void 0){let l;if(a?(t.common.custom=t.common.custom||{},t.common.custom[s]=t.common.custom[s]||{},t.common.custom[s].smartName=t.common.custom[s].smartName||{},l=t.common.custom[s].smartName):(t.common.smartName=t.common.smartName||{},l=t.common.smartName),l[i]=n,l&&(!l[i]||l[i]===t.common.name&&(!t.common.role||t.common.role.includes("button")))){delete l[i];let d=!0;for(const u in l)if(Object.prototype.hasOwnProperty.call(l,u)){d=!1;break}if(d)if(a&&t.common.custom&&t.common.custom[s])t.common.custom[s].smartName.byON===void 0?delete t.common.custom[s]:(delete t.common.custom[s].en,delete t.common.custom[s].de,delete t.common.custom[s].ru,delete t.common.custom[s].nl,delete t.common.custom[s].pl,delete t.common.custom[s].it,delete t.common.custom[s].fr,delete t.common.custom[s].pt,delete t.common.custom[s].es,delete t.common.custom[s].uk,delete t.common.custom[s]["zh-cn"]);else if(t.common.smartName&&t.common.smartName.byON!==void 0){const u=t.common.smartName;delete u.en,delete u.de,delete u.ru,delete u.nl,delete u.pl,delete u.it,delete u.fr,delete u.pt,delete u.es,delete u.uk,delete u["zh-cn"]}else t.common.smartName=null}}}static disableSmartName(t,n,r){r?(t.common.custom=t.common.custom||{},t.common.custom[n]=t.common.custom[n]||{},t.common.custom[n].smartName=!1):t.common.smartName=!1}static copyToClipboard(t,n){return n&&(n.stopPropagation(),n.preventDefault()),GV(t)}static getFileExtension(t){const n=(t||"").lastIndexOf(".");return n!==-1?t.substring(n+1).toLowerCase():null}static formatBytes(t){if(Math.abs(t)<1024)return`${t} B`;const n=["KB","MB","GB"];let r=-1;do t/=1024,++r;while(Math.abs(t)>=1024&&r186?`#000000${r||""}`:`#FFFFFF${r||""}`;const i=(255-o).toString(16),l=(255-s).toString(16),d=(255-a).toString(16);return`#${i.padStart(2,"0")}${l.padStart(2,"0")}${d.padStart(2,"0")}${r||""}`}static color2rgb(t){if(t==null||t===""||typeof t!="string")return!1;if(t.startsWith("rgba")){const n=t.match(/rgba?\((\d+),\s*(\d+),\s*(\d+),\s*([.\d]+)\)/);n&&(t=parseInt(n[1],10).toString(16).padStart(2,"0")+parseInt(n[2],10).toString(16).padStart(2,"0")+parseInt(n[2],10).toString(16).padStart(2,"0"))}else if(t.startsWith("rgb")){const n=t.match(/rgb?\((\d+),\s*(\d+),\s*(\d+)\)/);n&&(t=parseInt(n[1],10).toString(16).padStart(2,"0")+parseInt(n[2],10).toString(16).padStart(2,"0")+parseInt(n[2],10).toString(16).padStart(2,"0"))}else t.startsWith("#")&&(t=t.slice(1));return t.length===3&&(t=t[0]+t[0]+t[1]+t[1]+t[2]+t[2]),t.length!==6&&t.length!==8?(console.warn(`Cannot invert color: ${t}`),!1):[parseInt(t.slice(0,2),16),parseInt(t.slice(2,4),16),parseInt(t.slice(4,6),16)]}static rgb2lab(t){let n=t[0]/255,r=t[1]/255,o=t[2]/255;n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,o=o>.04045?((o+.055)/1.055)**2.4:o/12.92;let s=(n*.4124+r*.3576+o*.1805)/.95047,a=n*.2126+r*.7152+o*.0722,i=(n*.0193+r*.1192+o*.9505)/1.08883;return s=s>.008856?s**.33333333:7.787*s+.137931,a=a>.008856?a**.33333333:7.787*a+.137931,i=i>.008856?i**.33333333:7.787*i+.137931,[116*a-16,500*(s-a),200*(a-i)]}static colorDistance(t,n){const r=wt.color2rgb(t),o=wt.color2rgb(n);if(!r||!o)return 0;const s=wt.rgb2lab(r),a=wt.rgb2lab(o),i=s[0]-a[0],l=s[1]-a[1],d=s[2]-a[2],u=Math.sqrt(s[1]*s[1]+s[2]*s[2]),c=Math.sqrt(a[1]*a[1]+a[2]*a[2]),h=u-c;let f=l*l+d*d-h*h;f=f<0?0:Math.sqrt(f);const g=1+.045*u,_=1+.015*u,w=i,v=h/g,b=f/_,y=w*w+v*v+b*b;return y<0?0:y}static _toVal(t){let n,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t))for(let o=0;o{if(r=r.trim(),r){const o=r.split("="),s=decodeURIComponent(o[0]).trim();if(o.length>1){const a=decodeURIComponent(o[1]);if(a==="true")n[s]=!0;else if(a==="false")n[s]=!1;else{const i=parseFloat(a);i.toString()===a?n[s]=i:n[s]=a}}else n[s]=!0}}),n}static getParentId(t){const n=(t||"").toString().split(".");return n.length>1?(n.pop(),n.join(".")):null}static formatDate(t,n){if(!t)return"";let r;const o=(t.getMonth()+1).toString().padStart(2,"0"),s=t.getDate().toString().padStart(2,"0");return n==="MM/DD/YYYY"?r=`${o}/${s}/${t.getFullYear()}`:r=`${t.getFullYear()}-${o}-${s}`,r+=` ${t.getHours().toString().padStart(2,"0")}:${t.getMinutes().toString().padStart(2,"0")}:${t.getSeconds().toString().padStart(2,"0")}.${t.getMilliseconds().toString().padStart(3,"0")}`,r}static formatTime(t){if(t){t=Math.round(t);const n=Math.floor(t/(3600*24)),r=Math.floor(t%(3600*24)/3600),o=Math.floor(t%3600/60),s=t%60;return n?`${n}.${r.toString().padStart(2,"0")}:${o.toString().padStart(2,"0")}:${s.toString().padStart(2,"0")}`:r?`${r}:${o.toString().padStart(2,"0")}:${s.toString().padStart(2,"0")}`:`0:${o.toString().padStart(2,"0")}:${s.toString().padStart(2,"0")}`}return"0:00:00"}static MDtext2link(t){const n=t.match(/\d+\.\)\s/);return n&&(t=t.replace(n[0],n[0].replace(/\s/," "))),t.replace(/[^a-zA-Zа-яА-Я0-9]/g,"").trim().replace(/\s/g,"").toLowerCase()}static openLink(t,n){t=t.replace(/\/\/([0-9a-f]*:[0-9a-f]*:[0-9a-f]*:[0-9a-f]*:[0-9a-f]*:[0-9a-f]*)(:\d+)?\//i,"//[$1]$2/"),n==="this"?window.location.href=t:window.open(t,n||"_blank")}static MDgetTitle(t){var s;const n=wt.MDextractHeader(t),r=n.header;let o=n.body;if(!r.title){o=o.replace(/{[^}]*}/g,""),o=o.trim();const a=o.replace(/\r/g,"").split(` +`);for(let i=0;i{if(!a.trim())return;const i=a.indexOf(":");if(i!==-1){const l=a.substring(0,i).trim();let d=a.substring(i+1).trim();d=d.replace(/^['"]|['"]$/g,""),d==="true"?n[l]=!0:d==="false"?n[l]=!1:parseFloat(d).toString()===n[l]?n[l]=parseFloat(d):n[l]=d}else n[a.trim()]=!0}),t=t.substring(r+7))}return{header:n,body:t}}static MDremoveDocsify(t){const n=t.match(/{docsify-[^}]*}/g);return n&&n.forEach(r=>t=t.replace(r,"")),t}static generateFile(t,n){const r=document.createElement("a");r.setAttribute("href",`data:application/json;charset=utf-8,${encodeURIComponent(JSON.stringify(n,null,2))}`),r.setAttribute("download",t),r.style.display="none",document.body.appendChild(r),r.click(),document.body.removeChild(r)}static quality2text(t){const n=t&4294901760,r=u_[t];let o;return r?o=[r]:t&1?o=[u_[1],`0x${(t&65534).toString(16)}`]:t&2?o=[u_[2],`0x${(t&65533).toString(16)}`]:o=[`0x${t.toString(16)}`],n&&o.push(`0x${(n>>16).toString(16).toUpperCase()}`),o}static clone(t){return JSON.parse(JSON.stringify(t))}static getStates(t){var o;const n=(o=t==null?void 0:t.common)==null?void 0:o.states;let r;if(n)if(typeof n=="string"&&n[0]==="{")try{r=JSON.parse(n)}catch{console.error(`Cannot parse states: ${n}`),r=null}else if(typeof n=="string"){const s=n.split(";");r={};for(let a=0;ar[a]=s):(t==null?void 0:t.common.type)==="string"?n.forEach(s=>r[s]=s):(t==null?void 0:t.common.type)==="boolean"&&(r.false=n[0],r.true=n[1])):typeof n=="object"&&(r=n);return r||null}static async getSvg(t){const r=await(await fetch(t)).blob();return new Promise(o=>{const s=new FileReader;s.onload=function(){var a;o(((a=this.result)==null?void 0:a.toString())||"")},s.readAsDataURL(r)})}static detectMimeType(t){const n=Object.keys(Sk).find(r=>t.startsWith(r));return n?Sk[n]:null}static isStableRepository(t){return!!(typeof t=="string"&&t.toLowerCase().startsWith("stable")||t&&typeof t!="string"&&t.find(n=>n.toLowerCase().startsWith("stable")))}static isStringInteger(t){return typeof t=="number"?Math.round(t)===t:parseInt(t,10).toString()===t}static isValidDate(t){return t instanceof Date&&!isNaN(t)}static getStyle(t,...n){const r={};for(let o=0;o{if(typeof n[o][s]=="function")r[s]=n[o][s](t);else if(typeof n[o][s]=="object"){const a=n[o][s];r[s]={},Object.keys(a).forEach(i=>{typeof a[i]=="function"?r[s][i]=a(t):(a[i]||a[i]===0)&&(r[s][i]=a[i])})}else(n[o][s]||n[o][s]===0)&&(r[s]=n[o][s])});return r}};L(wt,"namespace",ko),L(wt,"INSTANCES","instances"),L(wt,"dateFormat",["DD","MM"]),L(wt,"FORBIDDEN_CHARS",/[^._\-/ :!#$%&()+=@^{}|~\p{Ll}\p{Lu}\p{Nd}]+/gu);let U=wt;const p_={buttonIcon:{marginRight:8}};class XV extends p.Component{constructor(n){super(n);L(this,"isIFrame");const r=n.newReact===void 0?!0:n.newReact;if(n.isIFrame!==void 0)this.isIFrame=n.isIFrame;else try{this.isIFrame=!r&&window.self!==window.top}catch{this.isIFrame=!r}}render(){const n=this.props.noTextOnButtons,r={borderRadius:this.props.theme.saveToolbar.button.borderRadius||3,height:this.props.theme.saveToolbar.button.height||32},o={bottom:this.isIFrame?38:0,left:this.props.paddingLeft||0,right:0,position:"absolute",background:this.props.theme.saveToolbar.background};return this.props.dense&&(o.minHeight=48),this.props.error&&(r.border="1px solid red"),p.createElement(Ab,{style:o},p.createElement(Ct,{variant:"extended","aria-label":"Save",disabled:!this.props.changed||this.props.error,onClick:()=>this.props.onSave(!1),style:r},p.createElement(vy,{style:n?void 0:p_.buttonIcon}),!n&&E.t("ra_Save")),p.createElement(Ct,{variant:"extended","aria-label":"Save and close",disabled:!this.props.changed||this.props.error,onClick:()=>this.props.onSave(!0),style:{...r,marginLeft:10}},p.createElement(vy,{style:n?void 0:p_.buttonIcon}),n?"+":E.t("ra_Save and close"),n&&p.createElement($t,null)),p.createElement("div",{style:{flexGrow:1}}),p.createElement(Ct,{variant:"extended","aria-label":"Close",onClick:()=>this.props.onClose(),style:r},p.createElement($t,{style:n?void 0:p_.buttonIcon}),!n&&E.t("ra_Close")))}}const xk={suppress:{fontSize:12},suppressRoot:{marginTop:"16px"}};class B4 extends k.Component{constructor(t){if(super(t),!this.props.dialogName&&this.props.suppressQuestionMinutes)throw new Error("dialogName required if suppressQuestionMinutes used");let n=!1;this.props.suppressQuestionMinutes&&(n=parseInt((window._localStorage||window.localStorage).getItem(this.props.dialogName),10)||0,n?Date.now()>n&&((window._localStorage||window.localStorage).removeItem(this.props.dialogName),n=!1):n=!1),this.state={suppress:n}}handleOk(){this.state.suppress&&(window._localStorage||window.localStorage).setItem(this.props.dialogName,Date.now()+(this.props.suppressQuestionMinutes||2)*6e4),this.props.onClose&&this.props.onClose(!0)}handleCancel(){this.props.onClose&&this.props.onClose(!1)}render(){return typeof this.state.suppress=="number"?(setTimeout(()=>this.props.onClose&&this.props.onClose(!0),100),null):p.createElement(ft,{open:!0,maxWidth:"md",fullWidth:this.props.fullWidth!==void 0?this.props.fullWidth:!0,onClose:(t,n)=>{n!=="backdropClick"&&n!=="escapeKeyDown"&&this.handleCancel()},"aria-labelledby":"ar_confirmation_dialog_title","aria-describedby":"ar_confirmation_dialog_description"},p.createElement(mt,{id:"ar_confirmation_dialog_title"},this.props.title||E.t("ra_Are you sure?")),p.createElement(Tt,null,p.createElement(ds,{id:"ar_confirmation_dialog_description"},this.props.icon||null,this.props.text,this.props.suppressQuestionMinutes?p.createElement("br",null):null,this.props.suppressQuestionMinutes?p.createElement(Ae,{sx:{"& .FormControlLabel-label":xk.suppress,"&.FormControlLabel-root":xk.suppressRoot},control:p.createElement(xt,{id:`ar_dialog_confirm_suppress_${this.props.dialogName||""}`,checked:!!this.state.suppress,onChange:()=>this.setState({suppress:!this.state.suppress})}),label:this.props.suppressText||E.t("ra_Suppress question for next %s minutes",(this.props.suppressQuestionMinutes||2).toString())}):null)),p.createElement(Et,null,p.createElement(_e,{id:`ar_dialog_confirm_ok_${this.props.dialogName||""}`,variant:"contained",onClick:()=>this.handleOk(),color:"primary",autoFocus:!0,startIcon:p.createElement(jn,null)},this.props.ok||E.t("ra_Ok")),p.createElement(_e,{id:`ar_dialog_confirm_cancel_${this.props.dialogName||""}`,variant:"contained",onClick:()=>this.handleCancel(),color:"grey",startIcon:p.createElement($t,null)},this.props.cancel||E.t("ra_Cancel"))))}}class W4 extends k.Component{handleOk(){this.props.onClose&&this.props.onClose()}render(){return p.createElement(ft,{open:!0,maxWidth:"sm",fullWidth:this.props.fullWidth!==void 0?this.props.fullWidth:!0,onClose:()=>this.handleOk(),"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description"},p.createElement(mt,{id:"ar_alert_dialog_title"},this.props.title||E.t("ra_Error")),p.createElement(Tt,null,p.createElement(ds,{id:"ar_alert_dialog_description"},this.props.text||E.t("ra_Unknown error!"))),p.createElement(Et,null,p.createElement(_e,{id:"ar_dialog_error_ok",variant:"contained",onClick:()=>this.handleOk(),color:"primary",autoFocus:!0,startIcon:p.createElement(jn,null)},E.t("ra_Ok"))))}}const YV="Cancel",KV="Copied",ZV="Error",QV="Message",eG="Selected",tG="Value",nG="Ok",rG="Su",oG="Mo",sG="Tu",aG="We",iG="Th",lG="Fr",cG="Sa",dG="Jan",uG="Feb",pG="Mar",hG="Apr",fG="Mai",mG="Jun",gG="Jul",_G="Aug",vG="Sep",yG="Oct",bG="Nov",wG="Dec",SG="Settings",xG="Function",kG="ID",$G="Name",CG="Role",EG="Room",TG="Type",OG="Invalid settings",DG="Settings from other adapter %s",AG="Acknowledged",NG="From",MG="Last changed",jG="Quality",IG="Time stamp",zG="User",RG="Value",PG="Edit object",LG="Delete object",FG="Custom settings",BG="Copy the state value",WG="Edit the state value",HG="Save",UG="Close",VG="Width",GG="Value",qG="Buttons",JG="Delete",XG="Root",YG="Update",KG="CRON",ZG="Date",QG="Dates",eq="Day of week",tq="Day",nq="Every",rq="every N days",oq="every N day of week",sq="every N hours",aq="every N minutes",iq="every N months",lq="every N seconds",cq="every day",dq="every day of the week",uq="every hour",pq="every minute",hq="every month",fq="every second",mq="From",gq="Hours",_q="Interval",vq="Interval between",yq="Minutes",bq="months",wq="Once",Sq="Period",xq="Seconds",kq="Simple",$q="Specific time",Cq="specific dates",Eq="specific day of weeks",Tq="specific hours",Oq="specific minutes",Dq="specific months",Aq="specific seconds",Nq="Time",Mq="To",jq="Wizard",Iq="every day of the week",zq="every Nth day of the week",Rq="specific day(s) of the week",Pq="all",Lq="Astro day",Fq="Astro night",Bq="Dawn",Wq="Dusk",Hq="Golden hour",Uq="Golden hour end",Vq="Nadir",Gq="Nautical dawn",qq="Nautical dusk",Jq="Night",Xq="Night end",Yq="Solar noon",Kq="Sunrise",Zq="Sunrise end",Qq="Sunset",eJ="Sunset start",tJ="at",nJ="at %s",rJ="every day",oJ="every hour",sJ="every minute",aJ="every month",iJ="every %s day",lJ="every %s hours",cJ="every %s minutes",dJ="every %s months",uJ="every %s weeks",pJ="every %s years",hJ="every week",fJ="every year",mJ="from %s to %s",gJ="never",_J="on %s of %s",vJ="on %s and %s of",yJ="on every date of",bJ="%s",wJ="%s and %s",SJ="on %s",xJ="on %s and %s",kJ="on weekends",$J="on working days",CJ="will ne be not executed any more, because start is in the past",EJ="on %s",TJ="from %s",OJ="Execute from to",DJ="to %s",AJ="every",NJ="Specific time",MJ="from",jJ="From-to",IJ="Interval time",zJ="invert",RJ="none",PJ="on",LJ="Period",FJ="Daily",BJ="Dates",WJ="Day",HJ="Every",UJ="Every day",VJ="Every month",GJ="Every week",qJ="Every year",JJ="Hours",XJ="Minutes",YJ="month",KJ="Monthly",ZJ="Once",QJ="Specific months",eX="Week",tX="Weekdays",nX="Weekend",rX="Weekly",oX="Workdays",sX="Year",aX="Yearly",iX="Specific time",lX="Time",cX="to",dX="Valid",uX="from",pX="to",hX="Whole day",fX="every month",mX="Repeat",gX="close",_X="Objects",vX="States",yX="Object last changed at",bX="Object changed by",wX="Object changed from",SX="State changed by",xX="Owner can read object",kX="Owner can read state",$X="Owner can write object",CX="Owner can write state",EX="Group can read object",TX="Group can read state",OX="Group can write object",DX="Group can write state",AX="Everyone can read object",NX="Everyone can read state",MX="Everyone can write object",jX="Everyone can write state",IX="Changed from",zX="Quality code",RX="Timestamp",PX="Last change",LX="Create",FX="Timestamp",BX="Expert mode",WX="Delete",HX="none",UX="Filter",VX="days",GX="different",qX="repeat",JX="Crop",XX="Comment",YX="Disconnected",KX="Connected",ZX="Configure",QX="Discard",eY="Jan",tY="Feb",nY="Mar",rY="Apr",oY="Mai",sY="Jun",aY="Jul",iY="Aug",lY="Sep",cY="Oct",dY="Nov",uY="Dec",pY="All files",hY="Images",fY="Code/JSON",mY="Text",gY="Audio",_Y="Longitude",vY="Latitude",yY="without",bY="Checked",wY="locally",SY="Yes",xY="Video",kY='To select folder, just hold the key "shift" by clicking the folder.',$Y="Replace",CY="Append",EY="Product",TY="Version",OY="Valid till",DY="Commercial",AY="Categories",NY="Delete",MY="Create device",jY="Create channel",IY="Create state",zY="Create string state",RY="Create number state",PY="Create boolean state",LY="Name",FY="Warning: The CRON job will run every second during the specified period!",BY="Warning: The CRON job will run every minute during the specified period!",WY="Sunday",HY="Monday",UY="Tuesday",VY="Wednesday",GY="Thursday",qY="Friday",JY="Saturday",XY="Invalid CRON",YY={"ra_Are you sure?":"Are you sure?",ra_Cancel:YV,ra_Copied:KV,"ra_Copied %s":'Copied "%s"',ra_Error:ZV,"ra_Define functions":"Define functions","ra_Define rooms":"Define rooms",ra_Message:QV,"ra_Please select object ID...":"Please select object ID...",ra_Selected:eG,ra_Value:tG,ra_Ok:nG,ra_dow_Su:rG,ra_dow_Mo:oG,ra_dow_Tu:sG,ra_dow_We:aG,ra_dow_Th:iG,ra_dow_Fr:lG,ra_dow_Sa:cG,ra_months_Jan:dG,ra_months_Feb:uG,ra_months_Mar:pG,ra_months_Apr:hG,ra_months_Mai:fG,ra_months_Jun:mG,ra_months_Jul:gG,ra_months_Aug:_G,ra_months_Sep:vG,ra_months_Oct:yG,ra_months_Nov:bG,ra_months_Dec:wG,"ra_Unknown error!":"Unknown error!",ra_filter_customs:SG,ra_filter_func:xG,ra_filter_id:kG,ra_filter_name:$G,ra_filter_role:CG,ra_filter_room:EG,ra_filter_type:TG,ra_invalidConfig:OG,ra_otherConfig:DG,ra_tooltip_ack:AG,ra_tooltip_from:NG,ra_tooltip_lc:MG,ra_tooltip_quality:jG,ra_tooltip_ts:IG,ra_tooltip_user:zG,ra_tooltip_value:RG,ra_tooltip_editObject:PG,ra_tooltip_deleteObject:LG,ra_tooltip_customConfig:FG,ra_tooltip_copyState:BG,ra_tooltip_editState:WG,"ra_Listen on all IPs":"Listen on all IPs",ra_Save:HG,"ra_Save and close":"Save and close",ra_Close:UG,"ra_Auto (no custom columns)":"Auto (no custom columns)","ra_Transparent dialog":"Transparent dialog",ra_Width:VG,ra_val:GG,ra_buttons:qG,"ra_Configure visible columns":"Configure visible columns","ra_Cannot update attribute, because not found in the object":"Cannot update attribute, because not found in the object","ra_Edit object field":"Edit object field","ra_Hide empty folders":"Hide empty folders","ra_Reload files":"Reload files","ra_Create folder":"Create folder","ra_Upload file":"Upload file","ra_User files":"User files","ra_Confirm deletion of %s":"Confirm deletion of %s","ra_Delete (no confirm for 5 mins)":"Delete (no confirm for 5 mins)",ra_Delete:JG,"ra_Toggle expert mode":"Toggle expert mode","ra_Toggle view mode":"Toggle view mode",ra_Root:XG,"ra_Back to %s":"Back to %s","ra_Place your files here or click here to open the browse dialog":"Place your files here or click here to open the browse dialog","ra_If no file will be created in the folder, it will disappear after the browser closed":"If no file will be created in the folder, it will disappear after the browser closed","ra_Folder name":"Folder name","ra_Create new folder in %s":"Create new folder in %s","ra_Duplicate name":"Duplicate name","ra_Invalid parent folder!":"Invalid parent folder!","ra_Drop file here":"Drop file here","ra_Suppress question for next %s minutes":"Suppress question for next %s minutes","ra_Clear filter":"Clear filter",ra_Update:YG,"ra_Load configuration from file":"Load configuration from file","ra_Save configuration to file":"Save configuration to file",sc_cron:KG,sc_date:ZG,sc_dates:QG,sc_dows:eq,sc_dow:tq,sc_every:nq,sc_everyN_dates:rq,sc_everyN_dows:oq,sc_everyN_hours:sq,sc_everyN_minutes:aq,sc_everyN_months:iq,sc_everyN_seconds:lq,sc_every_dates:cq,sc_every_dows:dq,sc_every_hours:uq,sc_every_minutes:pq,sc_every_months:hq,sc_every_seconds:fq,sc_from:mq,sc_hours:gq,sc_interval:_q,sc_intervalBetween:vq,sc_minutes:yq,sc_months:bq,sc_once:wq,sc_period:Sq,sc_seconds:xq,sc_simple:kq,sc_specific:$q,sc_specific_dates:Cq,sc_specific_dows:Eq,sc_specific_hours:Tq,sc_specific_minutes:Oq,sc_specific_months:Dq,sc_specific_seconds:Aq,sc_time:Nq,sc_to:Mq,sc_wizard:jq,sc_every_dow:Iq,sc_everyN_dow:zq,sc_specific_dow:Rq,sch_all:Pq,sch_astroDay:Lq,sch_astroNight:Fq,sch_astro_dawn:Bq,sch_astro_dusk:Wq,sch_astro_goldenHour:Hq,sch_astro_goldenHourEnd:Uq,sch_astro_nadir:Vq,sch_astro_nauticalDawn:Gq,sch_astro_nauticalDusk:qq,sch_astro_night:Jq,sch_astro_nightEnd:Xq,sch_astro_solarNoon:Yq,sch_astro_sunrise:Kq,sch_astro_sunriseEnd:Zq,sch_astro_sunset:Qq,sch_astro_sunsetStart:eJ,sch_at:tJ,sch_desc_atTime:nJ,sch_desc_everyDay:rJ,sch_desc_everyHour:oJ,sch_desc_everyMinute:sJ,sch_desc_everyMonth:aJ,sch_desc_everyNDay:iJ,sch_desc_everyNHours:lJ,sch_desc_everyNMinutes:cJ,sch_desc_everyNMonths:dJ,sch_desc_everyNWeeks:uJ,sch_desc_everyNYears:pJ,sch_desc_everyWeek:hJ,sch_desc_everyYear:fJ,sch_desc_intervalFromTo:mJ,sch_desc_never:gJ,sch_desc_onDate:_J,sch_desc_onDates:vJ,sch_desc_onEveryDate:yJ,sch_desc_onMonth:bJ,sch_desc_onMonths:wJ,sch_desc_onWeekday:SJ,sch_desc_onWeekdays:xJ,sch_desc_onWeekends:kJ,sch_desc_onWorkdays:$J,sch_desc_onceInPast:CJ,sch_desc_once_on:EJ,sch_desc_validFrom:TJ,sch_desc_validFromTo:OJ,sch_desc_validTo:DJ,sch_every:AJ,sch_exactTime:NJ,sch_from:MJ,sch_fromTo:jJ,sch_intervalTime:IJ,sch_invert:zJ,sch_no_one:RJ,sch_on:PJ,sch_period:LJ,sch_periodDaily:FJ,sch_periodDates:BJ,sch_periodDay:WJ,sch_periodEvery:HJ,sch_periodEveryDay:UJ,sch_periodEveryMonth:VJ,sch_periodEveryWeek:GJ,sch_periodEveryYear:qJ,sch_periodHours:JJ,sch_periodMinutes:XJ,sch_periodMonth:YJ,sch_periodMonthly:KJ,sch_periodOnce:ZJ,sch_periodSpecificMonths:QJ,sch_periodWeek:eX,sch_periodWeekdays:tX,sch_periodWeekend:nX,sch_periodWeekly:rX,sch_periodWorkdays:oX,sch_periodYear:sX,sch_periodYearly:aX,sch_specificTime:iX,sch_time:lX,sch_to:cX,sch_valid:dX,sch_validFrom:uX,sch_validTo:pX,sch_wholeDay:hX,sch_yearEveryMonth:fX,"ra_Define schedule...":"Define schedule...",ra_Repeat:mX,"ra_use seconds":"use seconds",ra_close:gX,"ra_Toggle the states view":"Toggle the states view","ra_Add new child object to selected parent":"Add new child object to selected parent","ra_Add objects tree from JSON file":"Add objects tree from JSON file","ra_Save objects tree as JSON file":"Save objects tree as JSON file",ra_Objects:_X,ra_States:vX,ra_object_changed_by_user:yX,ra_object_changed_by:bX,ra_state_changed_from:wX,ra_state_changed_by:SX,ra_aclOwner_read_object:xX,ra_aclOwner_read_state:kX,ra_aclOwner_write_object:$X,ra_aclOwner_write_state:CX,ra_aclGroup_read_object:EX,ra_aclGroup_read_state:TX,ra_aclGroup_write_object:OX,ra_aclGroup_write_state:DX,ra_aclEveryone_read_object:AX,ra_aclEveryone_read_state:NX,ra_aclEveryone_write_object:MX,ra_aclEveryone_write_state:jX,"ra_Folders always first":"Folders always first",ra_changedFrom:IX,ra_qualityCode:zX,ra_timestamp:RX,ra_lastChange:PX,"ra_Owner group":"Owner group","ra_Owner user":"Owner user",ra_Create:LX,"ra_Changed from":"Changed from","ra_Quality code":"Quality",ra_Timestamp:FX,"ra_Last change":"Last change","ra_Collapse all nodes":"Collapse all nodes","ra_Edit custom config":"Edit custom config","ra_Collapse one step node":"Collapse one level","ra_Expand one step node":"Expand one level","ra_Refresh tree":"Refresh tree","ra_Expand all nodes":"Expand all nodes","ra_Deselect all":"Unselect all","ra_Select all":"Select all","ra_%s object(s) processed":"%s object(s) processed","ra_Invalid structure":"Invalid structure","ra_%s was imported":"%s was imported","ra_Failed to open JSON File":"Failed to open JSON File","ra_Only following structures of objects are available:":"Only following structures of objects are available:","ra_Folder → State":"Folder → State","ra_Folder → Channel → State":"Folder → Channel → State","ra_Folder → Device → Channel → State":"Folder → Device → Channel → State","ra_Device → Channel → State":"Device → Channel → State","ra_Channel → State":"Channel → State",'ra_Non-experts may create new objects only in "0_userdata.0" or "alias.0".':'Non-experts may create new objects only in "0_userdata.0" or "alias.0".','ra_The experts may create objects everywhere but from second level (e.g. "vis.0" or "javascript.0").':'The experts may create objects everywhere but from second level (e.g. "vis.0" or "javascript.0").',ra_expertMode:BX,"ra_On weekdays":"On weekdays","ra_Drop the files here...":"Drop the file here...","ra_Drag 'n' drop some files here, or click to select files":"Drag 'n' drop some files here, or click to select files",ra_Clear:WX,"ra_Clear icon":"Clear icon",ra_none:HX,"ra_Select predefined icon":"Select predefined icon","ra_Show lines between rows":"Show lines between rows","ra_The page you are looking for was not found":"The page you are looking for was not found","ra_Good luck":"Good luck",'ra_Cannot find "%s"':'Cannot find "%s"','ra_Cannot read "%s"':'Cannot read "%s"',"ra_Background image":"Background image","ra_View: %s":"View: %s","ra_Copy content":"Copy content",ra_Filter:UX,"ra_All objects":"All objects","ra_Only selected":"Only selected","ra_Change color theme":"Change color theme",ra_daysShortText:VX,"ra_Instance %s is alive":"Instance %s is alive","ra_Instance %s is not alive":"Instance %s is not alive","ra_Used system settings":"Used system settings","ra_Cannot determine position: System settings are empty and GPS detection is disabled in browser":"Cannot determine position: System settings are empty and GPS detection is disabled in browser","ra_Define schedule":"Define schedule",ra___different__:GX,"ra_Please confirm":"Please confirm","ra_JSON editor":"JSON editor","ra_System language":"System language","ra_Too small":"Too small","ra_Too big":"Too big","ra_Passwords are not equal!":"Passwords are not equal!",ra_repeat:qX,"ra_You can filter entries by entering here some text":"You can filter entries by entering here some text","ra_Show/hide filter input":"Show/hide filter input","ra_Cannot add items with set filter":"Cannot add items with set filter","ra_Add row":"Add row","ra_Move up":"Move up","ra_Move down":"Move down","ra_Delete current row":"Delete current row","ra_All items are filtered out":"All items are filtered out","ra_Double click to reset table layout":"Double click to reset table layout","ra_Cannot retrieve options, as instance is offline":"Cannot retrieve options, as instance is offline","ra_File is too big. Max %sk allowed. Try use SVG.":"File is too big. Max %sk allowed. Try use SVG.","ra_Cannot upload":"Cannot upload",ra_Crop:JX,ra_tooltip_comment:XX,ra_Disconnected:YX,ra_Connected:KX,ra_Configure:ZX,"ra_Invalid CRON":"Invalid CRON",ra_Discard:QX,"ra_Some data are not stored. Discard?":"Some data are not stored. Discard?",ra_month_Jan:eY,ra_month_Feb:tY,ra_month_Mar:nY,ra_month_Apr:rY,ra_month_Mai:oY,ra_month_Jun:sY,ra_month_Jul:aY,ra_month_Aug:iY,ra_month_Sep:lY,ra_month_Oct:cY,ra_month_Nov:dY,ra_month_Dec:uY,ra_fileType_all:pY,ra_fileType_images:hY,ra_fileType_code:fY,ra_fileType_txt:mY,ra_fileType_audio:gY,"ra_fileType_video,":"Video","ra_Filter files":"Filter files","ra_Please select file...":"Please select file...","ra_License %s":"License %s","ra_License expired on %s":"License expired on %s",'ra_Serial number (UUID) "%s" in license is for other device.':'Serial number (UUID) "%s" in license is for other device.',"ra_License is for version %s, but required version is %s.":"License is for version %s, but required version is %s.",'ra_License for other product "%s"':'License for other product "%s"',"ra_Invalid answer from server":"Invalid answer from server","ra_License does not exist":"License does not exist","ra_Cannot decode license":"Cannot decode license","ra_Serial number (UUID)":"Serial number (UUID)","ra_Check license":"Check license","ra_Request timed out":"Request timed out","ra_Instance is not alive":"Instance is not alive","ra_Show/Hide object descriptions":"Show/Hide object descriptions","ra_Use system settings for position":"Use system settings for position",ra_Longitude:_Y,ra_Latitude:vY,"ra_Take browser position":"Take position from browser","ra_Take position from system settings":"Take position from system settings","ra_Port is already used by %s":"Port is already used by %s","ra_Port could be used by %s":"Port could be used by %s",ra_filter_customs_without:yY,"ra_Use iobroker.acme adapter for letsencrypt certificates":"Use iobroker.acme adapter for letsencrypt certificates","ra_Do not use let's encrypt":"Do not use let's encrypt","ra_Use all available let's encrypt certificates":"Use all available let's encrypt certificates","ra_Public certificate":"Public certificate","ra_Private certificate":"Private certificate","ra_Chained certificate":"Chained certificate","ra_Suitable license not found in license manager":"Suitable license not found in license manager","ra_Please enter the license":"Please enter the license",ra_Checked:bY,ra_locally:wY,"ra_via internet":"via internet",ra_Yes:SY,"ra_License not found in license manager. Do you want to read licenses from iobroker.net?":"License not found in the license manager. Do you want to update licenses from iobroker.net?","ra_Fallback custom certificates":"Fallback custom certificates","ra_Clone current row":"Clone current row",ra_fileType_video:xY,ra_select_folder_hint:kY,"ra_Accept license":"Accept license","ra_License agreement":"License agreement","ra_Import from %s":"Import from %s","ra_Export data to %s file":"Export data to %s file","ra_Import data from %s file":"Import data from %s file","ra_No data found in file":"No data found in file","ra_Append or replace?":"Append or replace?","ra_Append %s entries or replace existing?":"Append %s entries or replace existing?",ra_Replace:$Y,ra_Append:CY,'ra_May not trigger "updateLicenses"':'May not trigger "updateLicenses"',"ra_Unknown error":"Unknown error","ra_License must be converted":"License must be converted to newer version. You can do it in your iobroker.net profile.","ra_No one license found in license manager":"No one license found in license manager","ra_Please create license":"Please create license",ra_Product:EY,ra_Version:TY,ra_ValidTill:OY,ra_Commercial:DY,"ra_Not a number":"Not a number","ra_Edit value":"Edit value","ra_Edit ACL":"Edit ACL","ra_Edit role":"Edit role","ra_Edit function":"Edit function","ra_Edit room":"Edit room","ra_Edit alias":"Edit alias","ra_Create alias":"Create alias",ra_Categories:AY,"ra_View file":"View file",ra_Del:NY,"ra_Show all folders":"Show all folders","ra_Restrict to folder":"Restrict to folder","ra_Select type of export":"Select type of export","ra_You can export all objects or just the selected branch.":"You can export all objects or just the selected branch.","ra_Do not export values of states":"Do not export values of states","ra_Selected %s object(s)":"Selected %s object(s)","ra_import data from %s file":"Import data from %s file",ra_create_device:MY,ra_create_channel:jY,ra_create_state:IY,ra_create_string_state:zY,ra_create_number_state:RY,ra_create_boolean_state:PY,"ra_Select color":"Select color","ra_Cannot read licenses: %s":"Cannot read licenses: %s","ra_Advanced options":"Advanced options",ra_Name:LY,"ra_Invalid JSON":"Invalid JSON","ra_%s links from aliases":"%s links from aliases",ra_warning_every_second:FY,ra_warning_every_minute:BY,"ra_The schedule will be executed every second. Are you sure?":"The schedule will be executed every second. Are you sure?","ra_The schedule will be executed every minute. Are you sure?":"The schedule will be executed every minute. Are you sure?","ra_Define CRON...":"Define CRON...",ra_Sunday:WY,ra_Monday:HY,ra_Tuesday:UY,ra_Wednesday:VY,ra_Thursday:GY,ra_Friday:qY,ra_Saturday:JY,sc_invalid_cron:XY},KY="Funktion",ZY="ID",QY="Name",eK="Typ",tK="Einstellungen",nK="Rolle",rK="Raum",oK="Bestätigt",sK="Von",aK="Zuletzt geändert",iK="Qualität",lK="Zeitstempel",cK="Benutzer",dK="Wert",uK="Abbrechen",pK="Kopiert",hK="Fehler",fK="Meldung",mK="OK",gK="Ausgewählt",_K="Wert",vK="Ungültige Einstellungen",yK="Einstellungen von anderen Adaptern %s",bK="Statuswert kopieren",wK="Benutzerdefinierte Einstellungen",SK="Objekt löschen",xK="Objekt bearbeiten",kK="Statuswert bearbeiten",$K="Fr",CK="Mo",EK="Sa",TK="So",OK="Do",DK="Di",AK="Mi",NK="Speichern",MK="Schließen",jK="Breite",IK="Wert",zK="Tasten",RK="Schließen",PK="Löschen",LK="Anfang",FK="Aktualisieren",BK="CRON",WK="Datum",HK="Tage",UK="Wochentage",VK="Jeden",GK="alle N Tage",qK="alle N Wochentage",JK="alle N Stunden",XK="alle N Minuten",YK="alle N Monate",KK="alle N Sekunden",ZK="jeden Tag",QK="jeden Tag der Woche",eZ="jede Stunde",tZ="jede Minute",nZ="jeden Monat",rZ="jede Sekunde",oZ="Von",sZ="Stunden",aZ="Intervall",iZ="Intervall zwischen",lZ="Minuten",cZ="Monate",dZ="Einmal",uZ="Zeitraum",pZ="Sekunden",hZ="Einfach",fZ="Bestimmte Zeit",mZ="bestimmte Tage",gZ="bestimmten Wochentag",_Z="bestimmte Stunden",vZ="bestimmte Minuten",yZ="bestimmte Monate",bZ="bestimmte Sekunden",wZ="Zeit",SZ="Bis",xZ="Wizard",kZ="alle",$Z="Astronomischer Tag",CZ="Astronomische Nacht",EZ="Morgendämmerung",TZ="Abenddämmerung",OZ="Goldene Stunde",DZ="Goldene Stundenende",AZ="Nadir",NZ="Nautische Morgendämmerung",MZ="Nautische Abenddämmerung",jZ="Nacht",IZ="Nachtende",zZ="Sonnenmittag",RZ="Sonnenaufgang",PZ="Sonnenaufgangende",LZ="Sonnenuntergang",FZ="Sonnenuntergangstart",BZ="am",WZ="um %s",HZ="jeden Tag",UZ="jede Stunde",VZ="jede Minute",GZ="jeden Monat",qZ="jeden %s Tag",JZ="alle %s Stunden",XZ="alle %s Minuten",YZ="alle %s Monate",KZ="alle %s Wochen",ZZ="alle %s Jahre",QZ="jede Woche",eQ="jedes Jahr",tQ="von %s bis %s",nQ="noch nie",rQ="am %s von %s",oQ="am %s und %s von",sQ="an jedem Datum von",aQ="%s",iQ="%s und %s",lQ="auf %s",cQ="auf %s und %s",dQ="an Wochenenden",uQ="an Werktagen",pQ="wird nicht mehr ausgeführt, weil der Start in der Vergangenheit ist",hQ="auf %s",fQ="von %s",mQ="Ausführen von bis",gQ="bis %s",_Q="jeden",vQ="Bestimmte Zeit",yQ="von",bQ="Von bis",wQ="Zeitintervall",SQ="umkehren",xQ="keiner",kQ="am",$Q="Zeitraum",CQ="Täglich",EQ="Daten",TQ="Tag",OQ="Jeden",DQ="Jeden Tag",AQ="Jeden Monat",NQ="Jede Woche",MQ="Jedes Jahr",jQ="Stunden",IQ="Minuten",zQ="Monat",RQ="Monatlich",PQ="Einmal",LQ="Bestimmte Monate",FQ="Woche",BQ="Wochentage",WQ="Wochenende",HQ="Wöchentlich",UQ="Arbeitstage",VQ="Jahr",GQ="Jährlich",qQ="Bestimmte Zeit",JQ="Zeit",XQ="zu",YQ="Gültigkeit",KQ="von",ZQ="bis",QQ="Ganzer Tag",eee="jeden Monat",tee="Wiederholen",nee="Apr",ree="Aug",oee="Dez",see="Jan",aee="Feb",iee="Jul",lee="Jun",cee="Mai",dee="Mär",uee="Nov",pee="Okt",hee="Sep",fee="Objekte",mee="Zustände",gee="Objekt zuletzt geändert um",_ee="Objekt geändert von",vee="Objekt geändert von",yee="Zustand geändert durch",bee="Besitzer kann Objekt lesen",wee="Besitzer kann Zustand lesen",See="Besitzer kann Objekt schreiben",xee="Besitzer kann Zustand schreiben",kee="Gruppe kann Objekt lesen",$ee="Gruppe kann Status lesen",Cee="Gruppe kann Objekt schreiben",Eee="Gruppe kann Status schreiben",Tee="Jeder kann Objekt lesen",Oee="Jeder kann Zustand lesen",Dee="Jeder kann ein Objekt schreiben",Aee="Jeder kann Zustand schreiben",Nee="Geändert von",Mee="Qualitätscode",jee="Zeitstempel",Iee="Letzte Änderung",zee="Erstellen",Ree="Zeitstempel",Pee="Expertenmodus",Lee="Löschen",Fee="kein",Bee="Filter",Wee="T.",Hee="unterschiedlich",Uee="wiederholen",Vee="Ernte",Gee="Kommentar",qee="Getrennt",Jee="Verbunden",Xee="Konfigurieren",Yee="Verwerfen",Kee="Jan",Zee="Feb",Qee="Mär",ete="Apr",tte="Mai",nte="Jun",rte="Jul",ote="Aug",ste="Sep",ate="Okt",ite="Nov",lte="Dez",cte="Alle Dateien",dte="Audio",ute="Code/JSON",pte="Bilder",hte="Text",fte="Längengrad",mte="Breite",gte="ohne",_te="Geprüft",vte="örtlich",yte="Ja",bte="Video",wte='Um einen Ordner auszuwählen, halten Sie einfach die Taste "Shift" gedrückt, indem Sie auf den Ordner klicken.',Ste="Ersetzen",xte="Anhängen",kte="Produkt",$te="Ausführung",Cte="Gültig bis",Ete="Kommerziell",Tte="Entf",Ote="Gerät erstellen",Dte="Kanal erstellen",Ate="Zustand erstellen",Nte="String-Zustand erstellen",Mte="Nummern-Zustand erstellen",jte="Booleschen Zustand erstellen",Ite="jeden x-ten Tag der Woche",zte="jeden Tag der Woche",Rte="bestimmte(r) Tag(e) der Woche",Pte="Name",Lte="Kategorien",Fte="Achtung: Der CRON-Job wird im angegebenen Zeitraum jede Sekunde ausgeführt!",Bte="Achtung: Der CRON-Job wird im angegebenen Zeitraum jede Minute ausgeführt!",Wte="Tag",Hte="Sonntag",Ute="Montag",Vte="Dienstag",Gte="Mittwoch",qte="Donnerstag",Jte="Freitag",Xte="Samstag",Yte="Ungültiger CRON",Kte={ra_filter_func:KY,ra_filter_id:ZY,ra_filter_name:QY,ra_filter_type:eK,ra_filter_customs:tK,ra_filter_role:nK,ra_filter_room:rK,ra_tooltip_ack:oK,ra_tooltip_from:sK,ra_tooltip_lc:aK,ra_tooltip_quality:iK,ra_tooltip_ts:lK,ra_tooltip_user:cK,ra_tooltip_value:dK,"ra_Are you sure?":"Bist du sicher?",ra_Cancel:uK,ra_Copied:pK,"ra_Copied %s":'"%s" kopiert',"ra_Define functions":"Funktionen definieren","ra_Define rooms":"Räume definieren",ra_Error:hK,ra_Message:fK,ra_Ok:mK,"ra_Please select object ID...":"Bitte Objekt-ID auswählen...",ra_Selected:gK,"ra_Unknown error!":"Unbekannter Fehler!",ra_Value:_K,ra_invalidConfig:vK,ra_otherConfig:yK,ra_tooltip_copyState:bK,ra_tooltip_customConfig:wK,ra_tooltip_deleteObject:SK,ra_tooltip_editObject:xK,ra_tooltip_editState:kK,ra_dow_Fr:$K,ra_dow_Mo:CK,ra_dow_Sa:EK,ra_dow_Su:TK,ra_dow_Th:OK,ra_dow_Tu:DK,ra_dow_We:AK,"ra_Listen on all IPs":"Zugriff von allen IPs zulassen",ra_Save:NK,"ra_Save and close":"Speichern und schließen",ra_Close:MK,"ra_Auto (no custom columns)":"Auto (keine benutzerdefinierten Spalten)","ra_Transparent dialog":"Transparenter Dialog",ra_Width:jK,ra_val:IK,ra_buttons:zK,"ra_Configure visible columns":"Spalten Konfigurieren",ra_close:RK,"ra_Cannot update attribute, because not found in the object":"Attribut kann nicht aktualisiert werden, da es nicht im Objekt gefunden wurde","ra_Edit object field":"Objektfeld bearbeiten","ra_Hide empty folders":"Leere Ordner ausblenden","ra_Reload files":"Dateien neu laden","ra_Create folder":"Ordner erstellen","ra_Upload file":"Datei hochladen","ra_User files":"Benutzerdaten","ra_Confirm deletion of %s":"Das Löschen von %s bestätigen","ra_Delete (no confirm for 5 mins)":"Löschen (keine Bestätigung für 5 Minuten)",ra_Delete:PK,"ra_Toggle expert mode":"Expertenmodus umschalten","ra_Toggle view mode":"Ansichtsmodus umschalten",ra_Root:LK,"ra_Back to %s":"Zurück zu %s","ra_Place your files here or click here to open the browse dialog":"Die Dateien hier platzieren oder hier klicken, um den Suchdialog zu öffnen","ra_If no file will be created in the folder, it will disappear after the browser closed":"Wenn im Ordner keine Datei erstellt wird, verschwindet dieser nach dem Schließen des Browsers","ra_Folder name":"Ordnernamen","ra_Create new folder in %s":'Neuen Ordner in "%s" erstellen',"ra_Duplicate name":"Doppelter Name","ra_Invalid parent folder!":"Ungültiger übergeordneter Ordner!","ra_Drop file here":"Datei hier ablegen","ra_Suppress question for next %s minutes":"Frage für die nächsten %s Minuten unterdrücken","ra_Clear filter":"Filter löschen",ra_Update:FK,"ra_Load configuration from file":"Konfiguration aus Datei laden","ra_Save configuration to file":"Konfiguration in Datei speichern",sc_cron:BK,sc_date:WK,sc_dates:HK,sc_dows:UK,sc_every:VK,sc_everyN_dates:GK,sc_everyN_dows:qK,sc_everyN_hours:JK,sc_everyN_minutes:XK,sc_everyN_months:YK,sc_everyN_seconds:KK,sc_every_dates:ZK,sc_every_dows:QK,sc_every_hours:eZ,sc_every_minutes:tZ,sc_every_months:nZ,sc_every_seconds:rZ,sc_from:oZ,sc_hours:sZ,sc_interval:aZ,sc_intervalBetween:iZ,sc_minutes:lZ,sc_months:cZ,sc_once:dZ,sc_period:uZ,sc_seconds:pZ,sc_simple:hZ,sc_specific:fZ,sc_specific_dates:mZ,sc_specific_dows:gZ,sc_specific_hours:_Z,sc_specific_minutes:vZ,sc_specific_months:yZ,sc_specific_seconds:bZ,sc_time:wZ,sc_to:SZ,sc_wizard:xZ,sch_all:kZ,sch_astroDay:$Z,sch_astroNight:CZ,sch_astro_dawn:EZ,sch_astro_dusk:TZ,sch_astro_goldenHour:OZ,sch_astro_goldenHourEnd:DZ,sch_astro_nadir:AZ,sch_astro_nauticalDawn:NZ,sch_astro_nauticalDusk:MZ,sch_astro_night:jZ,sch_astro_nightEnd:IZ,sch_astro_solarNoon:zZ,sch_astro_sunrise:RZ,sch_astro_sunriseEnd:PZ,sch_astro_sunset:LZ,sch_astro_sunsetStart:FZ,sch_at:BZ,sch_desc_atTime:WZ,sch_desc_everyDay:HZ,sch_desc_everyHour:UZ,sch_desc_everyMinute:VZ,sch_desc_everyMonth:GZ,sch_desc_everyNDay:qZ,sch_desc_everyNHours:JZ,sch_desc_everyNMinutes:XZ,sch_desc_everyNMonths:YZ,sch_desc_everyNWeeks:KZ,sch_desc_everyNYears:ZZ,sch_desc_everyWeek:QZ,sch_desc_everyYear:eQ,sch_desc_intervalFromTo:tQ,sch_desc_never:nQ,sch_desc_onDate:rQ,sch_desc_onDates:oQ,sch_desc_onEveryDate:sQ,sch_desc_onMonth:aQ,sch_desc_onMonths:iQ,sch_desc_onWeekday:lQ,sch_desc_onWeekdays:cQ,sch_desc_onWeekends:dQ,sch_desc_onWorkdays:uQ,sch_desc_onceInPast:pQ,sch_desc_once_on:hQ,sch_desc_validFrom:fQ,sch_desc_validFromTo:mQ,sch_desc_validTo:gQ,sch_every:_Q,sch_exactTime:vQ,sch_from:yQ,sch_fromTo:bQ,sch_intervalTime:wQ,sch_invert:SQ,sch_no_one:xQ,sch_on:kQ,sch_period:$Q,sch_periodDaily:CQ,sch_periodDates:EQ,sch_periodDay:TQ,sch_periodEvery:OQ,sch_periodEveryDay:DQ,sch_periodEveryMonth:AQ,sch_periodEveryWeek:NQ,sch_periodEveryYear:MQ,sch_periodHours:jQ,sch_periodMinutes:IQ,sch_periodMonth:zQ,sch_periodMonthly:RQ,sch_periodOnce:PQ,sch_periodSpecificMonths:LQ,sch_periodWeek:FQ,sch_periodWeekdays:BQ,sch_periodWeekend:WQ,sch_periodWeekly:HQ,sch_periodWorkdays:UQ,sch_periodYear:VQ,sch_periodYearly:GQ,sch_specificTime:qQ,sch_time:JQ,sch_to:XQ,sch_valid:YQ,sch_validFrom:KQ,sch_validTo:ZQ,sch_wholeDay:QQ,sch_yearEveryMonth:eee,"ra_Define schedule...":"Zeitplan definieren ...",ra_Repeat:tee,"ra_use seconds":"Sekunden benutzen",ra_months_Apr:nee,ra_months_Aug:ree,ra_months_Dec:oee,ra_months_Jan:see,ra_months_Feb:aee,ra_months_Jul:iee,ra_months_Jun:lee,ra_months_Mai:cee,ra_months_Mar:dee,ra_months_Nov:uee,ra_months_Oct:pee,ra_months_Sep:hee,"ra_Toggle the states view":"Statusansicht umschalten","ra_Add new child object to selected parent":"Dem ausgewählten übergeordneten Objekt ein neues untergeordnetes Objekt hinzufügen","ra_Add objects tree from JSON file":"Objektbaum aus JSON-Datei hinzufügen","ra_Save objects tree as JSON file":"Objektbaum als JSON-Datei speichern",ra_Objects:fee,ra_States:mee,ra_object_changed_by_user:gee,ra_object_changed_by:_ee,ra_state_changed_from:vee,ra_state_changed_by:yee,ra_aclOwner_read_object:bee,ra_aclOwner_read_state:wee,ra_aclOwner_write_object:See,ra_aclOwner_write_state:xee,ra_aclGroup_read_object:kee,ra_aclGroup_read_state:$ee,ra_aclGroup_write_object:Cee,ra_aclGroup_write_state:Eee,ra_aclEveryone_read_object:Tee,ra_aclEveryone_read_state:Oee,ra_aclEveryone_write_object:Dee,ra_aclEveryone_write_state:Aee,"ra_Folders always first":"Ordner immer zuerst",ra_changedFrom:Nee,ra_qualityCode:Mee,ra_timestamp:jee,ra_lastChange:Iee,"ra_Owner group":"Besitzergruppe","ra_Owner user":"Besitzer Benutzer",ra_Create:zee,"ra_Changed from":"Geändert von","ra_Quality code":"Qualität",ra_Timestamp:Ree,"ra_Last change":"Letzte Änderung","ra_Collapse all nodes":"Alle Knoten zuklappen","ra_Edit custom config":"Bearbeite Benutzerdefinierte Konfiguration","ra_Collapse one step node":"Eine Ebene zuklappen","ra_Expand one step node":"Eine Ebene aufklappen","ra_Refresh tree":"Baum aktualisieren","ra_Expand all nodes":"Alle Knoten aufklappen","ra_Deselect all":"Alles abwählen","ra_Select all":"Alle auswählen","ra_%s object(s) processed":"%s Objekt(e) verarbeitet","ra_Invalid structure":"Ungültige Struktur","ra_%s was imported":"%s wurde importiert","ra_Failed to open JSON File":"Fehler beim Öffnen der JSON-Datei","ra_Only following structures of objects are available:":"Es stehen nur folgende Objektstrukturen zur Verfügung:","ra_Folder → State":"Ordner → Zustand","ra_Folder → Channel → State":"Ordner → Kanal → Zustand","ra_Folder → Device → Channel → State":"Ordner → Gerät → Kanal → Zustand","ra_Device → Channel → State":"Gerät → Kanal → Zustand","ra_Channel → State":"Kanal → Zustand",'ra_Non-experts may create new objects only in "0_userdata.0" or "alias.0".':'Nicht-Experten dürfen neue Objekte nur in "0_userdata.0" oder "alias.0" erstellen.','ra_The experts may create objects everywhere but from second level (e.g. "vis.0" or "javascript.0").':'Die Experten können Objekte überall erstellen, außer auf der zweiten Ebene (z. B. "vis.0" oder "javascript.0").',ra_expertMode:Pee,"ra_On weekdays":"An Wochentagen","ra_Drop the files here...":"Datei hier ablegen...","ra_Drag 'n' drop some files here, or click to select files":"Die Datei hierher ziehen und ablegen, oder klicken, um die Datei auszuwählen",ra_Clear:Lee,"ra_Clear icon":"Symbol löschen",ra_none:Fee,"ra_Select predefined icon":"Vordefiniertes Symbol auswählen","ra_Show lines between rows":"Linien zwischen Zeilen anzeigen","ra_The page you are looking for was not found":"Die gesuchte Seite wurde nicht gefunden","ra_Good luck":"Viel Glück",'ra_Cannot find "%s"':'Kann "%s" nicht finden','ra_Cannot read "%s"':'"%s" kann nicht gelesen werden',"ra_Background image":"Hintergrundbild","ra_View: %s":"Anschauen: %s","ra_Copy content":"Inhalte kopieren",ra_Filter:Bee,"ra_All objects":"Alle Objekte","ra_Only selected":"Nur ausgewählt","ra_Change color theme":"Farbthema ändern",ra_daysShortText:Wee,"ra_Instance %s is alive":"Instanz %s ist aktiv","ra_Instance %s is not alive":"Instanz %s ist nicht aktiv","ra_Used system settings":"Systemeinstellungen","ra_Cannot determine position: System settings are empty and GPS detection is disabled in browser":"Position kann nicht bestimmt werden: Die Systemeinstellungen sind leer und die GPS-Erkennung ist im Browser deaktiviert","ra_Define schedule":"Zeitplan definieren",ra___different__:Hee,"ra_Please confirm":"Bitte bestätigen","ra_JSON editor":"JSON-Editor","ra_System language":"Systemsprache","ra_Too small":"Zu klein","ra_Too big":"Zu groß","ra_Passwords are not equal!":"Passwörter sind nicht gleich!",ra_repeat:Uee,"ra_You can filter entries by entering here some text":"Sie können Einträge filtern, indem Sie hier Text eingeben","ra_Show/hide filter input":"Filtereingabe ein-/ausblenden","ra_Cannot add items with set filter":"Elemente mit festgelegtem Filter können nicht hinzugefügt werden","ra_Add row":"Zeile hinzufügen","ra_Move up":"Nach oben","ra_Move down":"Nach unten","ra_Delete current row":"Aktuelle Zeile löschen","ra_All items are filtered out":"Alle Elemente werden herausgefiltert","ra_Double click to reset table layout":"Doppelklicken, um das Tabellenlayout zurückzusetzen","ra_Cannot retrieve options, as instance is offline":"Optionen können nicht abgerufen werden, da die Instanz offline ist","ra_File is too big. Max %sk allowed. Try use SVG.":"Datei ist zu groß. Max %sk erlaubt. Versuchen Sie, SVG zu verwenden.","ra_Cannot upload":"Kann nicht hochladen",ra_Crop:Vee,ra_tooltip_comment:Gee,ra_Disconnected:qee,ra_Connected:Jee,ra_Configure:Xee,"ra_Invalid CRON":"Ungültiger CRON",ra_Discard:Yee,"ra_Some data are not stored. Discard?":"Einige Daten werden nicht gespeichert. Verwerfen?",ra_month_Jan:Kee,ra_month_Feb:Zee,ra_month_Mar:Qee,ra_month_Apr:ete,ra_month_Mai:tte,ra_month_Jun:nte,ra_month_Jul:rte,ra_month_Aug:ote,ra_month_Sep:ste,ra_month_Oct:ate,ra_month_Nov:ite,ra_month_Dec:lte,"ra_Filter files":"Dateien filtern","ra_Please select file...":"Bitte Datei auswählen...",ra_fileType_all:cte,ra_fileType_audio:dte,ra_fileType_code:ute,ra_fileType_images:pte,ra_fileType_txt:hte,"ra_fileType_video,":"Video","ra_Cannot decode license":"Lizenz kann nicht entschlüsselt werden","ra_Invalid answer from server":"Ungültige Antwort vom Server","ra_License %s":"Lizenz %s","ra_License does not exist":"Lizenz existiert nicht","ra_License expired on %s":"Lizenz am %s abgelaufen",'ra_License for other product "%s"':"Lizenz für anderes Produkt „%s“","ra_License is for version %s, but required version is %s.":"Lizenz ist für Version %s, aber erforderliche Version ist %s.",'ra_Serial number (UUID) "%s" in license is for other device.':"Seriennummer (UUID) „%s“ in der Lizenz gilt für ein anderes Gerät.","ra_Serial number (UUID)":"Seriennummer (UUID)","ra_Check license":"Lizenz prüfen","ra_Request timed out":"Zeitüberschreitung der Anforderung","ra_Instance is not alive":"Instanz ist nicht am Leben","ra_Show/Hide object descriptions":"Objektbeschreibungen ein-/ausblenden","ra_Use system settings for position":"Systemeinstellungen für die Position verwenden",ra_Longitude:fte,ra_Latitude:mte,"ra_Take browser position":"Position vom Browser einnehmen","ra_Take position from system settings":"Position aus den Systemeinstellungen übernehmen","ra_Port is already used by %s":"Port wird bereits von %s verwendet","ra_Port could be used by %s":"Port könnte von %s verwendet werden",ra_filter_customs_without:gte,"ra_Use iobroker.acme adapter for letsencrypt certificates":"ioBroker.acme-Adapter für letsencrypt-Zertifikate verwenden","ra_Do not use let's encrypt":"Let's encrypt nicht verwenden","ra_Use all available let's encrypt certificates":"Alle verfügbaren Zertifikate von Let's encrypt benutzen","ra_Public certificate":"Öffentliches Zertifikat","ra_Private certificate":"Privates Zertifikat","ra_Chained certificate":"Chained Zertifikat","ra_Suitable license not found in license manager":"Passende Lizenz im Lizenzmanager nicht gefunden","ra_Please enter the license":"Bitte die Lizenz eingeben",ra_Checked:_te,ra_locally:vte,"ra_via internet":"übers Internet",ra_Yes:yte,"ra_License not found in license manager. Do you want to read licenses from iobroker.net?":"Lizenz im Lizenzmanager nicht gefunden. Möchten Sie Lizenzen von iobroker.net aktualisieren?","ra_Fallback custom certificates":"Benutzerdefinierte Fallback-Zertifikate","ra_Clone current row":"Aktuelle Zeile klonen",ra_fileType_video:bte,ra_select_folder_hint:wte,"ra_Accept license":"Lizenz akzeptieren","ra_License agreement":"Lizenzvereinbarung","ra_Import from %s":"Von %s importieren","ra_Export data to %s file":"Daten in %s-Datei exportieren","ra_Import data from %s file":"Daten aus %s-Datei importieren","ra_No data found in file":"Keine Daten in der Datei gefunden","ra_Append or replace?":"Anhängen oder ersetzen?","ra_Append %s entries or replace existing?":"%s Einträge anhängen oder vorhandene ersetzen?",ra_Replace:Ste,ra_Append:xte,'ra_May not trigger "updateLicenses"':"Löst möglicherweise nicht „updateLicenses“ aus","ra_Unknown error":"Unbekannter Fehler","ra_License must be converted":"Die Lizenz muss auf eine neuere Version konvertiert werden. Sie können dies in Ihrem iobroker.net-Profil tun.","ra_No one license found in license manager":"Im Lizenzmanager wurde keine Lizenz gefunden","ra_Please create license":"Bitte erstellen Sie eine Lizenz",ra_Product:kte,ra_Version:$te,ra_ValidTill:Cte,ra_Commercial:Ete,"ra_Not a number":"Keine Nummer","ra_Edit value":"Wert bearbeiten","ra_Edit ACL":"ACL bearbeiten","ra_Edit role":"Rolle bearbeiten","ra_Edit function":"Funktion bearbeiten","ra_Edit room":"Raum bearbeiten","ra_Edit alias":"Alias bearbeiten","ra_View file":"Datei ansehen",ra_Del:Tte,"ra_Show all folders":"Alle Ordner anzeigen","ra_Restrict to folder":"Auf Ordner beschränken","ra_Select type of export":"Die Art des Exports auswählen ","ra_You can export all objects or just the selected branch.":"Sie können alle Objekte oder nur den ausgewählten Zweig exportieren.","ra_Do not export values of states":"Keine Zustandswerte exportieren","ra_Selected %s object(s)":"Ausgewählt %s Objekt(en)",ra_create_device:Ote,ra_create_channel:Dte,ra_create_state:Ate,ra_create_string_state:Nte,ra_create_number_state:Mte,ra_create_boolean_state:jte,"ra_Select color":"Wähle Farbe","ra_Cannot read licenses: %s":"Lizenzen können nicht gelesen werden: %s","ra_Advanced options":"Erweiterte Optionen",sc_everyN_dow:Ite,sc_every_dow:zte,sc_specific_dow:Rte,ra_Name:Pte,"ra_import data from %s file":"Daten aus %s-Datei importieren","ra_Invalid JSON":"Ungültiges JSON","ra_Create alias":"Alias erstellen",ra_Categories:Lte,"ra_%s links from aliases":"%s Links von Aliasen",ra_warning_every_second:Fte,ra_warning_every_minute:Bte,"ra_The schedule will be executed every second. Are you sure?":"Der Zeitplan wird jede Sekunde ausgeführt. Sind Sie sicher?","ra_The schedule will be executed every minute. Are you sure?":"Der Zeitplan wird jede Minute ausgeführt. Sind Sie sicher?",sc_dow:Wte,"ra_Define CRON...":"Definieren Sie CRON ...",ra_Sunday:Hte,ra_Monday:Ute,ra_Tuesday:Vte,ra_Wednesday:Gte,ra_Thursday:qte,ra_Friday:Jte,ra_Saturday:Xte,sc_invalid_cron:Yte},Zte="функция",Qte="ID",ene="Имя",tne="роль",nne="комната",rne="Подтверждено",one="От",sne="Последнее изменение",ane="Качество",ine="Отметка времени",lne="пользователь",cne="Значение",dne="Отмена",une="скопировано",pne="Ошибка",hne="Сообщение",fne="Ok",mne="выбранный",gne="Значение",_ne="Тип",vne="Неверные настройки",yne="Настройки из другого адаптера %s",bne="Скопируйте значение состояния",wne="Пользовательские настройки",Sne="Удалить объект",xne="Редактировать объект",kne="Изменить значение состояния",$ne="настройки",Cne="Пт",Ene="Пн",Tne="Сб",One="Вс",Dne="Чт",Ane="Вт",Nne="Ср",Mne="Сохранить",jne="Закрыть",Ine="Ширина",zne="Значение",Rne="Кнопки",Pne="Удалить",Lne="Начало",Fne="Обновить",Bne="CRON",Wne="Дата",Hne="Даты",Une="День недели",Vne="каждый(ую/ые)",Gne="каждый N день",qne="каждый N день недели",Jne="каждые N часов",Xne="каждые N минут",Yne="каждые N месяцев",Kne="каждые N секунд",Zne="каждый день",Qne="каждый день недели",ere="каждый час",tre="каждую минуту",nre="каждый месяц",rre="каждую секунду",ore="От",sre="часы",are="Интервал",ire="Интервал между",lre="минуты",cre="Месяцы",dre="один раз",ure="Период",pre="секунды",hre="Просто",fre="Конкретное время",mre="конкретные даты",gre="конкретный день недели",_re="конкретные часы",vre="конкретные минуты",yre="конкретные месяцы",bre="конкретные секунды",wre="Время",Sre="До",xre="Форма",kre="все",$re="днём",Cre="ночью",Ere="Рассвет",Tre="Сумерки",Ore="Золотой час",Dre="Конец золотого часа",Are="Надир",Nre="Морской рассвет",Mre="Морские сумерки",jre="Ночь",Ire="Конец ночи",zre="Солнечный полдень",Rre="Восход",Pre="Восход солнца",Lre="Заход солнца",Fre="Начало заката",Bre="дата",Wre="в %s",Hre="каждый день",Ure="каждый час",Vre="каждую минуту",Gre="каждый месяц",qre="каждый %s день",Jre="каждый %s часов",Xre="каждые %s минут",Yre="каждые %s месяцев",Kre="каждые %s недель",Zre="каждые %s лет",Qre="каждую неделю",eoe="каждый год",toe="от %s до %s",noe="никогда",roe="%s %s",ooe="%s и %s",soe="в каждый день",aoe="%s",ioe="%s и %s",loe="%s",coe="%s и %s",doe="на выходных",uoe="в рабочие дни",poe="не будет больше выполняться, потому что начало в прошлом",hoe="%s",foe="%s",moe="Выполнить с",goe="%s",_oe="каждый",voe="Конкретное время",yoe="от",boe="От и до",woe="Интервал времени",Soe="инвертировать",xoe="никакой",koe="на",$oe="период",Coe="Ежедневно",Eoe="Даты",Toe="День",Ooe="каждый",Doe="Каждый день",Aoe="Каждый месяц",Noe="Каждую неделю",Moe="Каждый год",joe="часов",Ioe="минут",zoe="месяц",Roe="ежемесячно",Poe="однажды",Loe="Конкретные месяцы",Foe="Неделю",Boe="Будние дни",Woe="выходные",Hoe="еженедельно",Uoe="Рабочие дни",Voe="Год",Goe="каждый год",qoe="Конкретное время",Joe="Время",Xoe="в",Yoe="действительный",Koe="от",Zoe="в",Qoe="Весь день",ese="каждый месяц",tse="Повторение",nse="Закрыть",rse="Сен",ose="Окт",sse="Ноя",ase="Март",ise="Май",lse="Июль",cse="Июнь",dse="Янв",use="Фев",pse="Дек",hse="Авг",fse="Апр",mse="Объекты",gse="Состояния",_se="Последний раз объект изменен в",vse="Объект изменен",yse="Объект изменен с",bse="Состояние изменено",wse="Владелец может читать объект",Sse="Владелец может читать состояние",xse="Владелец может писать объект",kse="Владелец может писать состояние",$se="Группа может читать объект",Cse="Группа может читать состояние",Ese="Группа может писать объект",Tse="Группа может записывать состояние",Ose="Каждый может читать объект",Dse="Каждый может читать состояние",Ase="Каждый может написать объект",Nse="Каждый может написать состояние",Mse="Изменено с",jse="Код качества",Ise="Отметка времени",zse="Последнее изменение",Rse="Создать",Pse="Времени",Lse="Экспертный режим",Fse="Удалить",Bse="ничего",Wse="Фильтр",Hse="д.",Use="разное",Vse="повтор",Gse="Обрезать",qse="Комментарий",Jse="Отключено",Xse="Соединение установлено",Yse="Настроить",Kse="Отказаться",Zse="Янв",Qse="Фев",eae="Мрт",tae="Апр",nae="Май",rae="Июн",oae="Июл",sae="Авг",aae="Сен",iae="Окт",lae="Ноя",cae="Дек",dae="Все файлы",uae="Аудио",pae="Код/JSON",hae="Картинки",fae="Текст",mae="Долгота",gae="Широта",_ae="без",vae="Проверено",yae="локально",bae="Да",wae="видео",Sae="Чтобы выбрать папку, просто удерживайте клавишу «Shift», щелкнув папку.",xae="Заменять",kae="Добавить",$ae="Продукт",Cae="Версия",Eae="Годен до",Tae="Коммерческая",Oae="Delete",Dae="Создать устройство",Aae="Создать канал",Nae="Создать состояние",Mae="Создать состояние строки",jae="Создать состояние номера",Iae="Создать логическое состояние",zae="каждый N-й день недели",Rae="Каждый день недели",Pae="конкретный день(а) недели",Lae="Имя",Fae="Категории",Bae="Внимание: задание CRON будет выполняться каждую секунду в течение указанного периода!",Wae="Внимание: задание CRON будет запускаться каждую минуту в течение указанного периода!",Hae="День",Uae="Воскресенье",Vae="Понедельник",Gae="Вторник",qae="Среда",Jae="Четверг",Xae="Пятница",Yae="Суббота",Kae="Неверный CRON",Zae={ra_filter_func:Zte,ra_filter_id:Qte,ra_filter_name:ene,ra_filter_role:tne,ra_filter_room:nne,ra_tooltip_ack:rne,ra_tooltip_from:one,ra_tooltip_lc:sne,ra_tooltip_quality:ane,ra_tooltip_ts:ine,ra_tooltip_user:lne,ra_tooltip_value:cne,"ra_Are you sure?":"Вы уверены?",ra_Cancel:dne,ra_Copied:une,"ra_Copied %s":'Скопировано "%s"',"ra_Define functions":"Задать функции","ra_Define rooms":"Задать комнаты",ra_Error:pne,ra_Message:hne,ra_Ok:fne,"ra_Please select object ID...":"Пожалуйста, выберите идентификатор объекта ...",ra_Selected:mne,"ra_Unknown error!":"Неизвестная ошибка!",ra_Value:gne,ra_filter_type:_ne,ra_invalidConfig:vne,ra_otherConfig:yne,ra_tooltip_copyState:bne,ra_tooltip_customConfig:wne,ra_tooltip_deleteObject:Sne,ra_tooltip_editObject:xne,ra_tooltip_editState:kne,ra_filter_customs:$ne,ra_dow_Fr:Cne,ra_dow_Mo:Ene,ra_dow_Sa:Tne,ra_dow_Su:One,ra_dow_Th:Dne,ra_dow_Tu:Ane,ra_dow_We:Nne,"ra_Listen on all IPs":"Слушать на всех IP",ra_Save:Mne,"ra_Save and close":"Сохранить и закрыть",ra_Close:jne,"ra_Auto (no custom columns)":"Авто (без настраиваемых столбцов)","ra_Transparent dialog":"Прозрачный диалог",ra_Width:Ine,ra_val:zne,ra_buttons:Rne,"ra_Configure visible columns":"Настроить видимые столбцы","ra_Cannot update attribute, because not found in the object":"Невозможно обновить атрибут, потому что он не найден в объекте","ra_Edit object field":"Поле редактирования объекта","ra_Hide empty folders":"Скрыть пустые папки","ra_Reload files":"Обновить","ra_Create folder":"Создать папку","ra_Upload file":"Загрузить файл","ra_User files":"Файлы пользователя","ra_Confirm deletion of %s":"Подтвердите удаление %s","ra_Delete (no confirm for 5 mins)":"Удалить (без подтверждения в течение 5 минут)",ra_Delete:Pne,"ra_Toggle expert mode":"Переключить экспертный режим","ra_Toggle view mode":"Переключить режим просмотра",ra_Root:Lne,"ra_Back to %s":"Вернуться к %s","ra_Place your files here or click here to open the browse dialog":"Поместите свои файлы сюда или щелкните здесь, чтобы открыть диалоговое окно выбора","ra_If no file will be created in the folder, it will disappear after the browser closed":"Если в папке не будет создан файл, он исчезнет после закрытия браузера.","ra_Folder name":"Имя папки","ra_Create new folder in %s":"Создать новую папку в %s","ra_Duplicate name":"Повторяющееся имя","ra_Invalid parent folder!":"Неверная родительская папка!","ra_Drop file here":"Перетащите файл сюда","ra_Suppress question for next %s minutes":"Скрыть вопрос на следующие %s минут(ы)","ra_Clear filter":"Очистить фильтр",ra_Update:Fne,"ra_Load configuration from file":"Загрузить конфигурацию из файла","ra_Save configuration to file":"Сохранить конфигурацию в файл",sc_cron:Bne,sc_date:Wne,sc_dates:Hne,sc_dows:Une,sc_every:Vne,sc_everyN_dates:Gne,sc_everyN_dows:qne,sc_everyN_hours:Jne,sc_everyN_minutes:Xne,sc_everyN_months:Yne,sc_everyN_seconds:Kne,sc_every_dates:Zne,sc_every_dows:Qne,sc_every_hours:ere,sc_every_minutes:tre,sc_every_months:nre,sc_every_seconds:rre,sc_from:ore,sc_hours:sre,sc_interval:are,sc_intervalBetween:ire,sc_minutes:lre,sc_months:cre,sc_once:dre,sc_period:ure,sc_seconds:pre,sc_simple:hre,sc_specific:fre,sc_specific_dates:mre,sc_specific_dows:gre,sc_specific_hours:_re,sc_specific_minutes:vre,sc_specific_months:yre,sc_specific_seconds:bre,sc_time:wre,sc_to:Sre,sc_wizard:xre,sch_all:kre,sch_astroDay:$re,sch_astroNight:Cre,sch_astro_dawn:Ere,sch_astro_dusk:Tre,sch_astro_goldenHour:Ore,sch_astro_goldenHourEnd:Dre,sch_astro_nadir:Are,sch_astro_nauticalDawn:Nre,sch_astro_nauticalDusk:Mre,sch_astro_night:jre,sch_astro_nightEnd:Ire,sch_astro_solarNoon:zre,sch_astro_sunrise:Rre,sch_astro_sunriseEnd:Pre,sch_astro_sunset:Lre,sch_astro_sunsetStart:Fre,sch_at:Bre,sch_desc_atTime:Wre,sch_desc_everyDay:Hre,sch_desc_everyHour:Ure,sch_desc_everyMinute:Vre,sch_desc_everyMonth:Gre,sch_desc_everyNDay:qre,sch_desc_everyNHours:Jre,sch_desc_everyNMinutes:Xre,sch_desc_everyNMonths:Yre,sch_desc_everyNWeeks:Kre,sch_desc_everyNYears:Zre,sch_desc_everyWeek:Qre,sch_desc_everyYear:eoe,sch_desc_intervalFromTo:toe,sch_desc_never:noe,sch_desc_onDate:roe,sch_desc_onDates:ooe,sch_desc_onEveryDate:soe,sch_desc_onMonth:aoe,sch_desc_onMonths:ioe,sch_desc_onWeekday:loe,sch_desc_onWeekdays:coe,sch_desc_onWeekends:doe,sch_desc_onWorkdays:uoe,sch_desc_onceInPast:poe,sch_desc_once_on:hoe,sch_desc_validFrom:foe,sch_desc_validFromTo:moe,sch_desc_validTo:goe,sch_every:_oe,sch_exactTime:voe,sch_from:yoe,sch_fromTo:boe,sch_intervalTime:woe,sch_invert:Soe,sch_no_one:xoe,sch_on:koe,sch_period:$oe,sch_periodDaily:Coe,sch_periodDates:Eoe,sch_periodDay:Toe,sch_periodEvery:Ooe,sch_periodEveryDay:Doe,sch_periodEveryMonth:Aoe,sch_periodEveryWeek:Noe,sch_periodEveryYear:Moe,sch_periodHours:joe,sch_periodMinutes:Ioe,sch_periodMonth:zoe,sch_periodMonthly:Roe,sch_periodOnce:Poe,sch_periodSpecificMonths:Loe,sch_periodWeek:Foe,sch_periodWeekdays:Boe,sch_periodWeekend:Woe,sch_periodWeekly:Hoe,sch_periodWorkdays:Uoe,sch_periodYear:Voe,sch_periodYearly:Goe,sch_specificTime:qoe,sch_time:Joe,sch_to:Xoe,sch_valid:Yoe,sch_validFrom:Koe,sch_validTo:Zoe,sch_wholeDay:Qoe,sch_yearEveryMonth:ese,"ra_Define schedule...":"Определить расписание ...",ra_Repeat:tse,"ra_use seconds":"секунды",ra_close:nse,ra_months_Sep:rse,ra_months_Oct:ose,ra_months_Nov:sse,ra_months_Mar:ase,ra_months_Mai:ise,ra_months_Jun:lse,ra_months_Jul:cse,ra_months_Jan:dse,ra_months_Feb:use,ra_months_Dec:pse,ra_months_Aug:hse,ra_months_Apr:fse,"ra_Toggle the states view":"Переключить режим просмотра состояний","ra_Add new child object to selected parent":"Добавить новый дочерний объект к выбранному родительскому объекту","ra_Add objects tree from JSON file":"Добавить дерево объектов из файла JSON","ra_Save objects tree as JSON file":"Сохранить дерево объектов как файл JSON",ra_Objects:mse,ra_States:gse,ra_object_changed_by_user:_se,ra_object_changed_by:vse,ra_state_changed_from:yse,ra_state_changed_by:bse,ra_aclOwner_read_object:wse,ra_aclOwner_read_state:Sse,ra_aclOwner_write_object:xse,ra_aclOwner_write_state:kse,ra_aclGroup_read_object:$se,ra_aclGroup_read_state:Cse,ra_aclGroup_write_object:Ese,ra_aclGroup_write_state:Tse,ra_aclEveryone_read_object:Ose,ra_aclEveryone_read_state:Dse,ra_aclEveryone_write_object:Ase,ra_aclEveryone_write_state:Nse,"ra_Folders always first":"Папки всегда на первом месте",ra_changedFrom:Mse,ra_qualityCode:jse,ra_timestamp:Ise,ra_lastChange:zse,"ra_Owner group":"Группа владельцев","ra_Owner user":"Пользователь-владелец",ra_Create:Rse,"ra_Changed from":"Изменено","ra_Quality code":"Валидность",ra_Timestamp:Pse,"ra_Last change":"Последнее изменение","ra_Collapse all nodes":"Свернуть все узлы","ra_Edit custom config":"Редактировать настраиваемую конфигурацию","ra_Collapse one step node":"Свернуть один уровень","ra_Expand one step node":"Открыть один уровень","ra_Refresh tree":"Обновить дерево","ra_Expand all nodes":"Развернуть все узлы","ra_Deselect all":"Убрать выбор везде","ra_Select all":"Выбрать все","ra_%s object(s) processed":"Объектов обработано: %s","ra_Invalid structure":"Неверная структура","ra_%s was imported":"%s был импортирован","ra_Failed to open JSON File":"Не удалось открыть файл JSON","ra_Only following structures of objects are available:":"Доступны только следующие структуры объектов:","ra_Folder → State":"Папка → Состояние","ra_Folder → Channel → State":"Папка → Канал → Состояние","ra_Folder → Device → Channel → State":"Папка → Устройство → Канал → Состояние","ra_Device → Channel → State":"Устройство → Канал → Состояние","ra_Channel → State":"Канал → Состояние",'ra_Non-experts may create new objects only in "0_userdata.0" or "alias.0".':"Не-эксперты могут создавать новые объекты только в «0_userdata.0» или «alias.0».",'ra_The experts may create objects everywhere but from second level (e.g. "vis.0" or "javascript.0").':"Эксперты могут создавать объекты везде, кроме второго уровня (например, «vis.0» или «javascript.0»).",ra_expertMode:Lse,"ra_On weekdays":"На выходных","ra_Drop the files here...":"Перетащите файл сюда ...","ra_Drag 'n' drop some files here, or click to select files":"Перетащите сюда несколько файлов или щелкните, чтобы выбрать файлы",ra_Clear:Fse,"ra_Clear icon":"Очистить значок",ra_none:Bse,"ra_Select predefined icon":"Выберите предопределенный значок","ra_Show lines between rows":"Показать линии между строками","ra_The page you are looking for was not found":"Страница, которую вы ищете, не найдена","ra_Good luck":"Удачи",'ra_Cannot find "%s"':'Не могу найти "%s"','ra_Cannot read "%s"':'Не могу прочитать "%s"',"ra_Background image":"Фоновая картинка","ra_View: %s":"Просмотр: %s","ra_Copy content":"Копировать содержимое",ra_Filter:Wse,"ra_All objects":"Все объекты","ra_Only selected":"Только выбранные","ra_Change color theme":"Изменить цветовую тему",ra_daysShortText:Hse,"ra_Instance %s is alive":"Экземпляр %s работает","ra_Instance %s is not alive":"Экземпляр %s не работает","ra_Used system settings":"Системные настройки","ra_Cannot determine position: System settings are empty and GPS detection is disabled in browser":"Невозможно определить местоположение: системные настройки пусты, а обнаружение GPS отключено в браузере.","ra_Define schedule":"Задать расписание",ra___different__:Use,"ra_Please confirm":"Пожалуйста подтвердите","ra_JSON editor":"Редактор JSON","ra_System language":"Язык системы","ra_Too small":"Слишком маленькое","ra_Too big":"Слишком большое","ra_Passwords are not equal!":"Пароли не равны!",ra_repeat:Vse,"ra_You can filter entries by entering here some text":"Вы можете отфильтровать записи, введя здесь текст","ra_Show/hide filter input":"Показать/скрыть ввод фильтра","ra_Cannot add items with set filter":"Невозможно добавить элементы с установленным фильтром","ra_Add row":"Добавить ряд","ra_Move up":"Вверх","ra_Move down":"Вниз","ra_Delete current row":"Удалить текущую строку","ra_All items are filtered out":"Все элементы отфильтрованы","ra_Double click to reset table layout":"Дважды щелкните, чтобы сбросить макет таблицы","ra_Cannot retrieve options, as instance is offline":"Невозможно получить параметры, так как экземпляр находится в автономном режиме.","ra_File is too big. Max %sk allowed. Try use SVG.":"Файл слишком большой. Разрешено максимальное количество %sk. Попробуйте использовать SVG.","ra_Cannot upload":"Невозможно загрузить",ra_Crop:Gse,ra_tooltip_comment:qse,ra_Disconnected:Jse,ra_Connected:Xse,ra_Configure:Yse,"ra_Invalid CRON":"Неверный CRON",ra_Discard:Kse,"ra_Some data are not stored. Discard?":"Некоторые данные не сохранились. Отказаться?",ra_month_Jan:Zse,ra_month_Feb:Qse,ra_month_Mar:eae,ra_month_Apr:tae,ra_month_Mai:nae,ra_month_Jun:rae,ra_month_Jul:oae,ra_month_Aug:sae,ra_month_Sep:aae,ra_month_Oct:iae,ra_month_Nov:lae,ra_month_Dec:cae,"ra_Filter files":"Фильтровать файлы","ra_Please select file...":"Пожалуйста, выберите файл...",ra_fileType_all:dae,ra_fileType_audio:uae,ra_fileType_code:pae,ra_fileType_images:hae,ra_fileType_txt:fae,"ra_fileType_video,":"видео","ra_Cannot decode license":"Не могу декодировать лицензию","ra_Invalid answer from server":"Неверный ответ от сервера","ra_License %s":"Лицензия %s","ra_License does not exist":"Лицензия не существует","ra_License expired on %s":"Срок действия лицензии истек %s",'ra_License for other product "%s"':'Лицензия на другой продукт "%s"',"ra_License is for version %s, but required version is %s.":"Лицензия предназначена для версии %s, но необходима версия %s.",'ra_Serial number (UUID) "%s" in license is for other device.':"Серийный номер (UUID) «%s» в лицензии предназначен для другого устройства.","ra_Serial number (UUID)":"Серийный номер (UUID)","ra_Check license":"Проверить лицензию","ra_Request timed out":"Истекло время запроса","ra_Instance is not alive":"Экземпляр не живой","ra_Show/Hide object descriptions":"Показать/скрыть описания объектов","ra_Use system settings for position":"Использовать системные настройки для позиции",ra_Longitude:mae,ra_Latitude:gae,"ra_Take browser position":"Взять позицию из браузера","ra_Take position from system settings":"Занять позицию из системных настроек","ra_Port is already used by %s":"Порт уже используется %s","ra_Port could be used by %s":"Порт может использоваться %s",ra_filter_customs_without:_ae,"ra_Use iobroker.acme adapter for letsencrypt certificates":"Используйте адаптер iobroker.acme для сертификатов letsencrypt","ra_Do not use let's encrypt":"Не использовать Let’s Encrypt","ra_Use all available let's encrypt certificates":"Использовать все доступные сертификаты Let’s encrypt","ra_Public certificate":"Публичный сертификат","ra_Private certificate":"Частный сертификат","ra_Chained certificate":"Chained сертификат","ra_Suitable license not found in license manager":"Подходящая лицензия не найдена в менеджере лицензий","ra_Please enter the license":"Пожалуйста, введите лицензию",ra_Checked:vae,ra_locally:yae,"ra_via internet":"через интернет",ra_Yes:bae,"ra_License not found in license manager. Do you want to read licenses from iobroker.net?":"Лицензия не найдена в диспетчере лицензий. Вы хотите обновить лицензии от iobroker.net?","ra_Fallback custom certificates":"Резервные пользовательские сертификаты","ra_Clone current row":"Клонировать текущую строку",ra_fileType_video:wae,ra_select_folder_hint:Sae,"ra_Accept license":"Принять лицензию","ra_License agreement":"Лицензионное соглашение","ra_Import from %s":"Импорт из %s","ra_Export data to %s file":"Экспорт данных в файл %s","ra_Import data from %s file":"Импорт данных из файла %s","ra_No data found in file":"Данные в файле не найдены","ra_Append or replace?":"Дополнить или заменить?","ra_Append %s entries or replace existing?":"Добавить записи %s или заменить существующие?",ra_Replace:xae,ra_Append:kae,'ra_May not trigger "updateLicenses"':"Не может запускать «updateLicenses»","ra_Unknown error":"Неизвестная ошибка","ra_License must be converted":"Лицензия должна быть преобразована в более новую версию. Вы можете сделать это в своем профиле на iobroker.net.","ra_No one license found in license manager":"В менеджере лицензий не найдена ни одна лицензия","ra_Please create license":"Пожалуйста, создайте лицензию",ra_Product:$ae,ra_Version:Cae,ra_ValidTill:Eae,ra_Commercial:Tae,"ra_Not a number":"Не число","ra_Edit value":"Изменить значение","ra_Edit ACL":"Изменить ACL-список","ra_Edit role":"Изменить роль","ra_Edit function":"Изменить функцию","ra_Edit room":"Редактировать комнату","ra_Edit alias":"Изменить псевдоним","ra_View file":"Посмотреть файл",ra_Del:Oae,"ra_Show all folders":"Показать все папки","ra_Restrict to folder":"Ограничить папкой","ra_Select type of export":"Выберите тип экспорта","ra_You can export all objects or just the selected branch.":"Вы можете экспортировать все объекты или только выбранную ветвь.","ra_Do not export values of states":"Не экспортировать значения состояний","ra_Selected %s object(s)":"Объектов: %s",ra_create_device:Dae,ra_create_channel:Aae,ra_create_state:Nae,ra_create_string_state:Mae,ra_create_number_state:jae,ra_create_boolean_state:Iae,"ra_Select color":"Выберите цвет","ra_Cannot read licenses: %s":"Невозможно прочитать лицензии: %s","ra_Advanced options":"Расширенные настройки",sc_everyN_dow:zae,sc_every_dow:Rae,sc_specific_dow:Pae,ra_Name:Lae,"ra_import data from %s file":"Импортировать данные из файла %s","ra_Invalid JSON":"Неверный JSON","ra_Create alias":"Создать псевдоним",ra_Categories:Fae,"ra_%s links from aliases":"%s ссылок из псевдонимов",ra_warning_every_second:Bae,ra_warning_every_minute:Wae,"ra_The schedule will be executed every second. Are you sure?":"Расписание будет выполняться каждую секунду. Вы уверены?","ra_The schedule will be executed every minute. Are you sure?":"Расписание будет выполняться каждую минуту. Вы уверены?",sc_dow:Hae,"ra_Define CRON...":"Определите CRON...",ra_Sunday:Uae,ra_Monday:Vae,ra_Tuesday:Gae,ra_Wednesday:qae,ra_Thursday:Jae,ra_Friday:Xae,ra_Saturday:Yae,sc_invalid_cron:Kae},Qae="Função",eie="ID",tie="Nome",nie="Papel (Função)",rie="Quarto",oie="Confirmado",sie="De",aie="Última alteração",iie="Qualidade",lie="Timestamp",cie="Usuário",die="Valor",uie="Cancelar",pie="Copiado",hie="Erro",fie="mensagem",mie="Está bem",gie="Selecionado",_ie="Valor",vie="Tipo",yie="Configurações inválidas",bie="Configurações de outro adaptador %s",wie="Copie o valor do estado",Sie="Opções customizadas",xie="Excluir objeto",kie="Editar objeto",$ie="Edite o valor do estado",Cie="Configurações",Eie="Fr",Tie="Mo",Oie="Sa",Die="Su",Aie="º",Nie="Salve ",Mie="Perto",jie="Largura",Iie="Valor",zie="Botões",Rie="Excluir",Pie="Raiz",Lie="Atualizar",Fie="CRON",Bie="Data",Wie="Dias",Hie="Dia da semana",Uie="todos",Vie="a cada N dias",Gie="todos os N dias da semana",qie="a cada N horas",Jie="a cada N minutos",Xie="a cada N meses",Yie="a cada N segundos",Kie="todo dia",Zie="todos os dias da semana",Qie="toda hora",ele="todo minuto",tle="todo mês",nle="todo segundo",rle="de",ole="horas",sle="intervalo",ale="intervalo entre",ile="minutos",lle="meses",cle="uma vez",dle="período",ule="segundos",ple="simples",hle="tempo específico",fle="datas específicas",mle="dia específico de semanas",gle="horas específicas",_le="minutos específicos",vle="meses específicos",yle="segundos específicos",ble="tempo",wle="para",Sle="assistente",xle="tudo",kle="dia astral",$le="noite astral",Cle="amanhecer",Ele="anoitecer",Tle="hora dourada",Ole="Fim da hora dourada",Dle="nadir",Ale="Amanhecer náutico",Nle="Anoitecer náutico",Mle="noite",jle="fim da noite",Ile="meio-dia solar",zle="nascer do sol",Rle="fim do nascer do sol",Ple="pôr do sol",Lle="início do pôr do sol",Fle="às",Ble="em %s",Wle="todo dia",Hle="toda hora",Ule="todo minuto",Vle="todo mês",Gle="a cada %s dias",qle="a cada %s horas",Jle="a cada %s minutos",Xle="a cada %s meses",Yle="a cada %s semanas",Kle="a cada %s anos",Zle="toda semana",Qle="todo ano",ece="de %s para %s",tce="nunca",nce="em %s de %s",rce="em %s e %s de",oce="em toda data de",sce="%s",ace="%s e %s",ice="em %s",lce="em %s e %s",cce="nos fins de semana",dce="em dias úteis",uce="não será mais executado, porque o começo está no passado",pce="em %s",hce="de %s",fce="Executar de até",mce="até %s",gce="cada",_ce="tempo específico",vce="de",yce="de a´t",bce="tempo de intervalo",wce="invertido",Sce="nenhum",xce="em",kce="período",$ce="diariamente",Cce="datas",Ece="dia",Tce="todos",Oce="todo dia",Dce="todo mês",Ace="toda semana",Nce="todo ano",Mce="horas",jce="minutos",Ice="mês",zce="por mês",Rce="uma vez",Pce="meses específicos",Lce="semana",Fce="dias úteis",Bce="final de semana",Wce="semanal",Hce="dias úteis",Uce="ano",Vce="anual",Gce="tempo específico",qce="tempo",Jce="para",Xce="válido",Yce="de",Kce="para",Zce="dia inteiro",Qce="todo mês",ede="Repita",tde="fechar",nde="Tu",rde="Objetos",ode="Estados",sde="Objeto alterado pela última vez em",ade="Objeto alterado por",ide="Objeto alterado de",lde="Estado alterado por",cde="O proprietário pode ler o objeto",dde="O proprietário pode ler o estado",ude="O proprietário pode escrever o objeto",pde="O proprietário pode escrever o estado",hde="O grupo pode ler o objeto",fde="O grupo pode ler o estado",mde="O grupo pode escrever o objeto",gde="O grupo pode escrever o estado",_de="Todos podem ler objetos",vde="Todos podem ler o estado",yde="Todos podem escrever objetos",bde="Todos podem escrever o estado",wde="Mudou de",Sde="Código de qualidade",xde="Timestamp",kde="Última mudança",$de="Crio",Cde="Timestamp",Ede="Modo especialista",Tde="Excluir",Ode="Nenhum",Dde="Filtro",Ade="d.",Nde="diferente",Mde="repetir",jde="Colheita",Ide="Comente",zde="Desconectado",Rde="Conectado",Pde="Configurar",Lde="Descartar",Fde="Nós",Bde="Todos os arquivos",Wde="áudio",Hde="Código/JSON",Ude="Imagens",Vde="Texto",Gde="abril",qde="agosto",Jde="dezembro",Xde="fevereiro",Yde="janeiro",Kde="julho",Zde="junho",Qde="Mai",eue="março",tue="novembro",nue="outubro",rue="setembro",oue="abril",sue="agosto",aue="dezembro",iue="fevereiro",lue="janeiro",cue="julho",due="junho",uue="Mai",pue="março",hue="novembro",fue="outubro",mue="setembro",gue="Longitude",_ue="Latitude",vue="sem",yue="Verificado",bue="localmente",wue="Sim",Sue="Vídeo",xue='Para selecionar a pasta, basta segurar a tecla "shift" clicando na pasta.',kue="Substituir",$ue="Acrescentar",Cue="produtos",Eue="Versão",Tue="Válida até",Oue="Comercial",Due="Delete",Aue="Criar dispositivo",Nue="Criar canal",Mue="Criar estado",jue="Criar estado de string",Iue="Criar estado numérico",zue="Criar estado booleano",Rue="todo enésimo dia da semana",Pue="todos os dias da semana",Lue="dia(s) específico(s) da semana",Fue="Nome",Bue="Categorias",Wue="Aviso: O trabalho CRON será executado a cada segundo durante o período especificado!",Hue="Aviso: O trabalho CRON será executado a cada minuto durante o período especificado!",Uue="Dia",Vue="Domingo",Gue="Segunda-feira",que="Terça-feira",Jue="Quarta-feira",Xue="Quinta-feira",Yue="Sexta-feira",Kue="Sábado",Zue="CRON inválido",Que={ra_filter_func:Qae,ra_filter_id:eie,ra_filter_name:tie,ra_filter_role:nie,ra_filter_room:rie,ra_tooltip_ack:oie,ra_tooltip_from:sie,ra_tooltip_lc:aie,ra_tooltip_quality:iie,ra_tooltip_ts:lie,ra_tooltip_user:cie,ra_tooltip_value:die,"ra_Are you sure?":"Você tem certeza?",ra_Cancel:uie,ra_Copied:pie,"ra_Copied %s":'"%s" copiado',"ra_Define functions":"Definir funções","ra_Define rooms":"Definir quartos",ra_Error:hie,ra_Message:fie,ra_Ok:mie,"ra_Please select object ID...":"Selecione o ID do objeto ...",ra_Selected:gie,"ra_Unknown error!":"Erro desconhecido!",ra_Value:_ie,ra_filter_type:vie,ra_invalidConfig:yie,ra_otherConfig:bie,ra_tooltip_copyState:wie,ra_tooltip_customConfig:Sie,ra_tooltip_deleteObject:xie,ra_tooltip_editObject:kie,ra_tooltip_editState:$ie,ra_filter_customs:Cie,"ra_Listen on all IPs":"Ouça em todos os IPs",ra_dow_Fr:Eie,ra_dow_Mo:Tie,ra_dow_Sa:Oie,ra_dow_Su:Die,ra_dow_Th:Aie,ra_Save:Nie,"ra_Save and close":"Salvar e fechar",ra_Close:Mie,"ra_Auto (no custom columns)":"Auto (sem colunas personalizadas)","ra_Transparent dialog":"Diálogo transparente",ra_Width:jie,ra_val:Iie,ra_buttons:zie,"ra_Configure visible columns":"Configurar colunas visíveis","ra_Cannot update attribute, because not found in the object":"Não é possível atualizar o atributo, porque não foi encontrado no objeto","ra_Edit object field":"Editar campo de objeto","ra_Hide empty folders":"Esconder pastas vazias","ra_Reload files":"Recarregar arquivos","ra_Create folder":"Criar pasta","ra_Upload file":"Subir arquivo","ra_User files":"Arquivos do usuário","ra_Confirm deletion of %s":"Confirme a exclusão de %s","ra_Delete (no confirm for 5 mins)":"Excluir (sem confirmação por 5 minutos)",ra_Delete:Rie,"ra_Toggle expert mode":"Alternar modo especialista","ra_Toggle view mode":"Alternar modo de visualização",ra_Root:Pie,"ra_Back to %s":"Voltar para %s","ra_Place your files here or click here to open the browse dialog":"Coloque seus arquivos aqui ou clique aqui para abrir a janela de navegação","ra_If no file will be created in the folder, it will disappear after the browser closed":"Se nenhum arquivo for criado na pasta, ele desaparecerá depois que o navegador for fechado","ra_Folder name":"Nome da pasta","ra_Create new folder in %s":"Crie uma nova pasta em %s","ra_Duplicate name":"Nome duplicado","ra_Invalid parent folder!":"Pasta pai inválida!","ra_Drop file here":"Solte o arquivo aqui","ra_Suppress question for next %s minutes":"Suprimir pergunta nos próximos %s minutos","ra_Clear filter":"Filtro limpo",ra_Update:Lie,"ra_Load configuration from file":"Carregar configuração do arquivo","ra_Save configuration to file":"Salvar configuração em arquivo",sc_cron:Fie,sc_date:Bie,sc_dates:Wie,sc_dows:Hie,sc_every:Uie,sc_everyN_dates:Vie,sc_everyN_dows:Gie,sc_everyN_hours:qie,sc_everyN_minutes:Jie,sc_everyN_months:Xie,sc_everyN_seconds:Yie,sc_every_dates:Kie,sc_every_dows:Zie,sc_every_hours:Qie,sc_every_minutes:ele,sc_every_months:tle,sc_every_seconds:nle,sc_from:rle,sc_hours:ole,sc_interval:sle,sc_intervalBetween:ale,sc_minutes:ile,sc_months:lle,sc_once:cle,sc_period:dle,sc_seconds:ule,sc_simple:ple,sc_specific:hle,sc_specific_dates:fle,sc_specific_dows:mle,sc_specific_hours:gle,sc_specific_minutes:_le,sc_specific_months:vle,sc_specific_seconds:yle,sc_time:ble,sc_to:wle,sc_wizard:Sle,sch_all:xle,sch_astroDay:kle,sch_astroNight:$le,sch_astro_dawn:Cle,sch_astro_dusk:Ele,sch_astro_goldenHour:Tle,sch_astro_goldenHourEnd:Ole,sch_astro_nadir:Dle,sch_astro_nauticalDawn:Ale,sch_astro_nauticalDusk:Nle,sch_astro_night:Mle,sch_astro_nightEnd:jle,sch_astro_solarNoon:Ile,sch_astro_sunrise:zle,sch_astro_sunriseEnd:Rle,sch_astro_sunset:Ple,sch_astro_sunsetStart:Lle,sch_at:Fle,sch_desc_atTime:Ble,sch_desc_everyDay:Wle,sch_desc_everyHour:Hle,sch_desc_everyMinute:Ule,sch_desc_everyMonth:Vle,sch_desc_everyNDay:Gle,sch_desc_everyNHours:qle,sch_desc_everyNMinutes:Jle,sch_desc_everyNMonths:Xle,sch_desc_everyNWeeks:Yle,sch_desc_everyNYears:Kle,sch_desc_everyWeek:Zle,sch_desc_everyYear:Qle,sch_desc_intervalFromTo:ece,sch_desc_never:tce,sch_desc_onDate:nce,sch_desc_onDates:rce,sch_desc_onEveryDate:oce,sch_desc_onMonth:sce,sch_desc_onMonths:ace,sch_desc_onWeekday:ice,sch_desc_onWeekdays:lce,sch_desc_onWeekends:cce,sch_desc_onWorkdays:dce,sch_desc_onceInPast:uce,sch_desc_once_on:pce,sch_desc_validFrom:hce,sch_desc_validFromTo:fce,sch_desc_validTo:mce,sch_every:gce,sch_exactTime:_ce,sch_from:vce,sch_fromTo:yce,sch_intervalTime:bce,sch_invert:wce,sch_no_one:Sce,sch_on:xce,sch_period:kce,sch_periodDaily:$ce,sch_periodDates:Cce,sch_periodDay:Ece,sch_periodEvery:Tce,sch_periodEveryDay:Oce,sch_periodEveryMonth:Dce,sch_periodEveryWeek:Ace,sch_periodEveryYear:Nce,sch_periodHours:Mce,sch_periodMinutes:jce,sch_periodMonth:Ice,sch_periodMonthly:zce,sch_periodOnce:Rce,sch_periodSpecificMonths:Pce,sch_periodWeek:Lce,sch_periodWeekdays:Fce,sch_periodWeekend:Bce,sch_periodWeekly:Wce,sch_periodWorkdays:Hce,sch_periodYear:Uce,sch_periodYearly:Vce,sch_specificTime:Gce,sch_time:qce,sch_to:Jce,sch_valid:Xce,sch_validFrom:Yce,sch_validTo:Kce,sch_wholeDay:Zce,sch_yearEveryMonth:Qce,"ra_Define schedule...":"Definir programação ...",ra_Repeat:ede,"ra_use seconds":"use segundos",ra_close:tde,ra_dow_Tu:nde,"ra_Toggle the states view":"Alternar a visualização dos estados","ra_Add new child object to selected parent":"Adicionar novo objeto filho ao pai selecionado","ra_Add objects tree from JSON file":"Adicionar árvore de objetos do arquivo JSON","ra_Save objects tree as JSON file":"Salvar árvore de objetos como arquivo JSON",ra_Objects:rde,ra_States:ode,ra_object_changed_by_user:sde,ra_object_changed_by:ade,ra_state_changed_from:ide,ra_state_changed_by:lde,ra_aclOwner_read_object:cde,ra_aclOwner_read_state:dde,ra_aclOwner_write_object:ude,ra_aclOwner_write_state:pde,ra_aclGroup_read_object:hde,ra_aclGroup_read_state:fde,ra_aclGroup_write_object:mde,ra_aclGroup_write_state:gde,ra_aclEveryone_read_object:_de,ra_aclEveryone_read_state:vde,ra_aclEveryone_write_object:yde,ra_aclEveryone_write_state:bde,"ra_Folders always first":"Pastas sempre primeiro",ra_changedFrom:wde,ra_qualityCode:Sde,ra_timestamp:xde,ra_lastChange:kde,"ra_Owner group":"Grupo proprietário","ra_Owner user":"Usuário proprietário",ra_Create:$de,"ra_Changed from":"Mudou de","ra_Quality code":"Qualidade",ra_Timestamp:Cde,"ra_Last change":"Última mudança","ra_Collapse all nodes":"Recolher todos os nós","ra_Edit custom config":"Editar configuração personalizada","ra_Collapse one step node":"Recolher um nível","ra_Expand one step node":"Expanda um nível","ra_Refresh tree":"Atualizar árvore","ra_Expand all nodes":"Expanda todos os nós","ra_Deselect all":"Desmarque todos","ra_Select all":"Selecionar tudo","ra_%s object(s) processed":"%s objeto(s) processado(s)","ra_Invalid structure":"Estrutura inválida","ra_%s was imported":"%s foi importado","ra_Failed to open JSON File":"Falha ao abrir arquivo JSON","ra_Only following structures of objects are available:":"Apenas as seguintes estruturas de objetos estão disponíveis:","ra_Folder → State":"Pasta → Estado","ra_Folder → Channel → State":"Pasta → Canal → Estado","ra_Folder → Device → Channel → State":"Pasta → Dispositivo → Canal → Estado","ra_Device → Channel → State":"Dispositivo → Canal → Estado","ra_Channel → State":"Canal → Estado",'ra_Non-experts may create new objects only in "0_userdata.0" or "alias.0".':'Os não especialistas podem criar novos objetos apenas em "0_userdata.0" ou "alias.0".','ra_The experts may create objects everywhere but from second level (e.g. "vis.0" or "javascript.0").':'Os especialistas podem criar objetos em qualquer lugar, exceto no segundo nível (por exemplo, "vis.0" ou "javascript.0").',ra_expertMode:Ede,"ra_On weekdays":"Nos dias úteis","ra_Drop the files here...":"Solte o arquivo aqui ...","ra_Drag 'n' drop some files here, or click to select files":"Arraste e solte alguns arquivos aqui ou clique para selecionar arquivos",ra_Clear:Tde,"ra_Clear icon":"Ícone de limpeza",ra_none:Ode,"ra_Select predefined icon":"Selecione o ícone predefinido","ra_Show lines between rows":"Mostrar linhas entre as linhas","ra_The page you are looking for was not found":"A página que você está procurando não foi encontrada","ra_Good luck":"Boa sorte",'ra_Cannot find "%s"':'Não foi possível encontrar "%s"','ra_Cannot read "%s"':'Não é possível ler "%s"',"ra_Background image":"Imagem de fundo","ra_View: %s":"Visualizar: %s","ra_Copy content":"Copiar conteúdo",ra_Filter:Dde,"ra_All objects":"Todos os objetos","ra_Only selected":"Apenas selecionado","ra_Change color theme":"Alterar tema de cores",ra_daysShortText:Ade,"ra_Instance %s is alive":"O %s da instância está ativo","ra_Instance %s is not alive":"O %s da instância não está ativo","ra_Used system settings":"Configurações do sistema usadas","ra_Cannot determine position: System settings are empty and GPS detection is disabled in browser":"Não é possível determinar a posição: as configurações do sistema estão vazias e a detecção de GPS está desativada no navegador","ra_Define schedule":"Definir cronograma",ra___different__:Nde,"ra_Please confirm":"Por favor confirme","ra_JSON editor":"Editor JSON","ra_System language":"Idioma do sistema","ra_Too small":"Muito pequeno","ra_Too big":"Muito grande","ra_Passwords are not equal!":"As senhas não são iguais!",ra_repeat:Mde,"ra_You can filter entries by entering here some text":"Você pode filtrar as entradas digitando aqui algum texto","ra_Show/hide filter input":"Mostrar/ocultar entrada de filtro","ra_Cannot add items with set filter":"Não é possível adicionar itens com filtro definido","ra_Add row":"Adicionar linha","ra_Move up":"Subir","ra_Move down":"Mover para baixo","ra_Delete current row":"Excluir linha atual","ra_All items are filtered out":"Todos os itens são filtrados","ra_Double click to reset table layout":"Clique duas vezes para redefinir o layout da tabela","ra_Cannot retrieve options, as instance is offline":"Não é possível recuperar opções, pois a instância está off-line","ra_File is too big. Max %sk allowed. Try use SVG.":"O arquivo é muito grande. Max %sk permitido. Tente usar SVG.","ra_Cannot upload":"Não é possível fazer upload",ra_Crop:jde,ra_tooltip_comment:Ide,ra_Disconnected:zde,ra_Connected:Rde,ra_Configure:Pde,"ra_Invalid CRON":"CRON inválido",ra_Discard:Lde,"ra_Some data are not stored. Discard?":"Alguns dados não são armazenados. Descartar?","ra_Filter files":"Filtrar arquivos","ra_Please select file...":"Selecione o arquivo...",ra_dow_We:Fde,ra_fileType_all:Bde,ra_fileType_audio:Wde,ra_fileType_code:Hde,ra_fileType_images:Ude,ra_fileType_txt:Vde,"ra_fileType_video,":"Vídeo",ra_month_Apr:Gde,ra_month_Aug:qde,ra_month_Dec:Jde,ra_month_Feb:Xde,ra_month_Jan:Yde,ra_month_Jul:Kde,ra_month_Jun:Zde,ra_month_Mai:Qde,ra_month_Mar:eue,ra_month_Nov:tue,ra_month_Oct:nue,ra_month_Sep:rue,ra_months_Apr:oue,ra_months_Aug:sue,ra_months_Dec:aue,ra_months_Feb:iue,ra_months_Jan:lue,ra_months_Jul:cue,ra_months_Jun:due,ra_months_Mai:uue,ra_months_Mar:pue,ra_months_Nov:hue,ra_months_Oct:fue,ra_months_Sep:mue,"ra_Cannot decode license":"Não é possível decodificar a licença","ra_Invalid answer from server":"Resposta inválida do servidor","ra_License %s":"Licença %s","ra_License does not exist":"A licença não existe","ra_License expired on %s":"A licença expirou em %s",'ra_License for other product "%s"':'Licença para outro produto "%s"',"ra_License is for version %s, but required version is %s.":"A licença é para a versão %s, mas a versão necessária é %s.",'ra_Serial number (UUID) "%s" in license is for other device.':'O número de série (UUID) "%s" na licença é para outro dispositivo.',"ra_Serial number (UUID)":"Número de série (UUID)","ra_Check license":"Verifique a licença","ra_Request timed out":"Solicitação expirou","ra_Instance is not alive":"A instância não está ativa","ra_Show/Hide object descriptions":"Mostrar/ocultar descrições de objetos","ra_Use system settings for position":"Use as configurações do sistema para a posição",ra_Longitude:gue,ra_Latitude:_ue,"ra_Take browser position":"Tomar posição do navegador","ra_Take position from system settings":"Tomar posição a partir das configurações do sistema","ra_Port is already used by %s":"A porta já está sendo usada por %s","ra_Port could be used by %s":"A porta pode ser usada por %s",ra_filter_customs_without:vue,"ra_Use iobroker.acme adapter for letsencrypt certificates":"Use o adaptador iobroker.acme para certificados letsencrypt","ra_Do not use let's encrypt":"Não use vamos criptografar","ra_Use all available let's encrypt certificates":"Use todos os certificados disponíveis vamos criptografar","ra_Public certificate":"certificado público","ra_Private certificate":"certificado privado","ra_Chained certificate":"certificado encadeado","ra_Suitable license not found in license manager":"Licença adequada não encontrada no gerenciador de licenças","ra_Please enter the license":"Por favor, insira a licença",ra_Checked:yue,ra_locally:bue,"ra_via internet":"via internet",ra_Yes:wue,"ra_License not found in license manager. Do you want to read licenses from iobroker.net?":"Licença não encontrada no gerenciador de licenças. Deseja atualizar as licenças do iobroker.net?","ra_Fallback custom certificates":"Certificados personalizados alternativos","ra_Clone current row":"Clonar linha atual",ra_fileType_video:Sue,ra_select_folder_hint:xue,"ra_Accept license":"Aceitar licença","ra_License agreement":"Contrato de licença","ra_Import from %s":"Importar de %s","ra_Export data to %s file":"Exportar dados para o arquivo %s","ra_Import data from %s file":"Importar dados do arquivo %s","ra_No data found in file":"Nenhum dado encontrado no arquivo","ra_Append or replace?":"Acrescentar ou substituir?","ra_Append %s entries or replace existing?":"Acrescentar %s entradas ou substituir as existentes?",ra_Replace:kue,ra_Append:$ue,'ra_May not trigger "updateLicenses"':'Pode não acionar "updateLicenses"',"ra_Unknown error":"Erro desconhecido","ra_License must be converted":"A licença deve ser convertida para uma versão mais recente. Você pode fazê-lo em seu perfil iobroker.net.","ra_No one license found in license manager":"Nenhuma licença encontrada no gerenciador de licenças","ra_Please create license":"Crie uma licença",ra_Product:Cue,ra_Version:Eue,ra_ValidTill:Tue,ra_Commercial:Oue,"ra_Not a number":"Não é um número","ra_Edit value":"Editar valor","ra_Edit ACL":"Editar ACL","ra_Edit role":"Editar papel","ra_Edit function":"Função de edição","ra_Edit room":"Sala de edição","ra_Edit alias":"Editar alias","ra_View file":"Visualizar arquivo",ra_Del:Due,"ra_Show all folders":"Mostrar todas as pastas","ra_Restrict to folder":"Restringir à pasta","ra_Select type of export":"Selecione o tipo de exportação","ra_You can export all objects or just the selected branch.":"Você pode exportar todos os objetos ou apenas a ramificação selecionada.","ra_Do not export values of states":"Não exporte valores de estados","ra_Selected %s object(s)":"%s objeto(s) selecionado(s)",ra_create_device:Aue,ra_create_channel:Nue,ra_create_state:Mue,ra_create_string_state:jue,ra_create_number_state:Iue,ra_create_boolean_state:zue,"ra_Select color":"Selecione a cor","ra_Cannot read licenses: %s":"Não é possível ler licenças: %s","ra_Advanced options":"Opções avançadas",sc_everyN_dow:Rue,sc_every_dow:Pue,sc_specific_dow:Lue,ra_Name:Fue,"ra_import data from %s file":"Importar dados do arquivo %s","ra_Invalid JSON":"JSON inválido","ra_Create alias":"Criar alias",ra_Categories:Bue,"ra_%s links from aliases":"%s links de aliases",ra_warning_every_second:Wue,ra_warning_every_minute:Hue,"ra_The schedule will be executed every second. Are you sure?":"O agendamento será executado a cada segundo. Tem certeza?","ra_The schedule will be executed every minute. Are you sure?":"O agendamento será executado a cada minuto. Tem certeza?",sc_dow:Uue,"ra_Define CRON...":"Defina CRON...",ra_Sunday:Vue,ra_Monday:Gue,ra_Tuesday:que,ra_Wednesday:Jue,ra_Thursday:Xue,ra_Friday:Yue,ra_Saturday:Kue,sc_invalid_cron:Zue},epe="Functie",tpe="ID",npe="Naam",rpe="Rol",ope="Kamer",spe="Erkende vlag",ape="Van",ipe="Laatst gewijzigd",lpe="Tijdstempel",cpe="Gebruiker",dpe="Waarde",upe="Annuleer",ppe="Gekopieerd",hpe="Fout",fpe="Bericht",mpe="OK",gpe="Geselecteerd",_pe="Waarde",vpe="Type",ype="Ongeldige instellingen",bpe="Instellingen van andere adapter %s",wpe="Kopieer de statuswaarde",Spe="Aangepaste instellingen",xpe="Object verwijderen",kpe="Object bewerken",$pe="Bewerk de statuswaarde",Cpe="Instellingen",Epe="Kwaliteit",Tpe="Fr",Ope="Mo",Dpe="Za",Ape="Zo",Npe="Th",Mpe="Sparen",jpe="Dichtbij",Ipe="Breedte",zpe="Waarde",Rpe="Toetsen",Ppe="Verwijderen",Lpe="Wortel",Fpe="Bijwerken",Bpe="CRON",Wpe="Datum",Hpe="data",Upe="Dag van de week",Vpe="elk",Gpe="elke N dagen",qpe="elke N dag van de week",Jpe="elke N uur",Xpe="elke N minuten",Ype="elke N maanden",Kpe="elke N seconden",Zpe="elke dag",Qpe="elke dag van de week",ehe="elk uur",the="elke minuut",nhe="elke maand",rhe="elke seconde",ohe="Van",she="uren",ahe="Interval",ihe="Interval tussen",lhe="Notulen",che="maanden",dhe="Een keer",uhe="Periode",phe="seconden",hhe="Gemakkelijk",fhe="Specifieke tijd",mhe="specifieke data",ghe="specifieke dag van weken",_he="specifieke uren",vhe="specifieke minuten",yhe="specifieke maanden",bhe="specifieke seconden",whe="Tijd",She="Naar",xhe="tovenaar",khe="allemaal",$he="Astro-dag",Che="Astro-nacht",Ehe="Dageraad",The="Schemer",Ohe="gouden uur",Dhe="Gouden uur einde",Ahe="Nadir",Nhe="Nautische dageraad",Mhe="Nautische schemering",jhe="Nacht",Ihe="Nacht einde",zhe="Zonne middag",Rhe="zonsopkomst",Phe="Sunrise einde",Lhe="Zonsondergang",Fhe="Zonsondergang start",Bhe="Bij",Whe="op %s",Hhe="elke dag",Uhe="elk uur",Vhe="elke minuut",Ghe="elke maand",qhe="elke %s dag",Jhe="elke %s uur",Xhe="elke %s minuten",Yhe="elke %s maanden",Khe="elke %s weken",Zhe="elke %s jaar",Qhe="elke week",efe="elk jaar",tfe="van %s tot %s",nfe="nooit",rfe="op %s van %s",ofe="op %s en %s van",sfe="op elke datum van",afe="%s",ife="%s en %s",lfe="op %s",cfe="op %s en %s",dfe="in het weekend",ufe="op werkdagen",pfe="zal niet meer worden uitgevoerd, omdat start verleden tijd is",hfe="op %s",ffe="van %s",mfe="Uitvoeren van tot",gfe="tot %s",_fe="elk",vfe="Specifieke tijd",yfe="van",bfe="Van naar",wfe="Interval tijd",Sfe="omkeren",xfe="geen",kfe="Aan",$fe="Periode",Cfe="Dagelijks",Efe="data",Tfe="Dag",Ofe="elk",Dfe="Elke dag",Afe="Elke maand",Nfe="Elke week",Mfe="Elk jaar",jfe="uren",Ife="Notulen",zfe="maand",Rfe="Maandelijks",Pfe="Een keer",Lfe="Specifieke maanden",Ffe="Week",Bfe="Doordeweekse dagen",Wfe="Weekend",Hfe="Wekelijks",Ufe="werkdagen",Vfe="Jaar",Gfe="jaar-",qfe="Specifieke tijd",Jfe="Tijd",Xfe="naar",Yfe="Geldig",Kfe="van",Zfe="naar",Qfe="Hele dag",eme="elke maand",tme="Herhaling",nme="dichtbij",rme="Tu",ome="Voorwerpen",sme="Staten",ame="Object voor het laatst gewijzigd om",ime="Object veranderd door",lme="Object veranderd van",cme="Staat veranderd door",dme="Eigenaar kan object lezen",ume="Eigenaar kan staat lezen",pme="Eigenaar kan object schrijven",hme="Eigenaar kan staat schrijven",fme="Groep kan object lezen",mme="Groep kan status lezen",gme="Groep kan object schrijven",_me="Groep kan staat schrijven",vme="Iedereen kan object lezen",yme="Iedereen kan staat lezen",bme="Iedereen kan object schrijven",wme="Iedereen kan staat schrijven",Sme="Veranderd van",xme="Kwaliteitscode",kme="Tijdstempel",$me="Laatste wijziging",Cme="Creëer",Eme="Tijdstempel",Tme="Expert modus",Ome="Verwijderen",Dme="geen",Ame="Filter",Nme="d.",Mme="verschillend",jme="herhalen",Ime="Bijsnijden",zme="Opmerking",Rme="Verbinding verbroken",Pme="Verbonden",Lme="Configureren",Fme="Weggooien",Bme="Wij",Wme="Alle bestanden",Hme="Audio",Ume="Code/JSON",Vme="Afbeeldingen",Gme="Tekst",qme="april",Jme="aug",Xme="dec",Yme="februari",Kme="jan",Zme="jul",Qme="juni",ege="Mei",tge="mrt",nge="nov",rge="Okt",oge="sept",sge="april",age="aug",ige="dec",lge="februari",cge="jan",dge="jul",uge="juni",pge="Mei",hge="mrt",fge="nov",mge="Okt",gge="sept",_ge="Lengtegraad",vge="Breedtegraad",yge="zonder",bge="Gecontroleerd",wge="plaatselijk",Sge="Ja",xge="Video",kge='Om een map te selecteren, houdt u gewoon de toets "shift" ingedrukt door op de map te klikken.',$ge="Vervangen",Cge="toevoegen",Ege="Product",Tge="Versie",Oge="Geldig tot",Dge="Reclame",Age="Delete",Nge="Apparaat maken",Mge="Kanaal maken",jge="Staat creëren",Ige="Tekenreeksstatus maken",zge="Nummerstatus maken",Rge="Creëer een Booleaanse status",Pge="elke N-de dag van de week",Lge="elke dag van de week",Fge="specifieke dag(en) van de week",Bge="Naam",Wge="Categorieën",Hge="Waarschuwing: De CRON-taak wordt elke seconde uitgevoerd gedurende de opgegeven periode!",Uge="Waarschuwing: De CRON-taak wordt elke minuut uitgevoerd gedurende de opgegeven periode!",Vge="Dag",Gge="Zondag",qge="Maandag",Jge="Dinsdag",Xge="Woensdag",Yge="Donderdag",Kge="Vrijdag",Zge="Zaterdag",Qge="Ongeldige CRON",e_e={ra_filter_func:epe,ra_filter_id:tpe,ra_filter_name:npe,ra_filter_role:rpe,ra_filter_room:ope,ra_tooltip_ack:spe,ra_tooltip_from:ape,ra_tooltip_lc:ipe,ra_tooltip_ts:lpe,ra_tooltip_user:cpe,ra_tooltip_value:dpe,"ra_Are you sure?":"Weet je het zeker?",ra_Cancel:upe,ra_Copied:ppe,"ra_Copied %s":'"%s" gekopieerd',"ra_Define functions":"Definieer functies","ra_Define rooms":"Definieer kamers",ra_Error:hpe,ra_Message:fpe,ra_Ok:mpe,"ra_Please select object ID...":"Selecteer object-ID ...",ra_Selected:gpe,"ra_Unknown error!":"Onbekende fout!",ra_Value:_pe,ra_filter_type:vpe,ra_invalidConfig:ype,ra_otherConfig:bpe,ra_tooltip_copyState:wpe,ra_tooltip_customConfig:Spe,ra_tooltip_deleteObject:xpe,ra_tooltip_editObject:kpe,ra_tooltip_editState:$pe,ra_filter_customs:Cpe,ra_tooltip_quality:Epe,"ra_Listen on all IPs":"Luister op alle IP's",ra_dow_Fr:Tpe,ra_dow_Mo:Ope,ra_dow_Sa:Dpe,ra_dow_Su:Ape,ra_dow_Th:Npe,ra_Save:Mpe,"ra_Save and close":"Opslaan en afsluiten",ra_Close:jpe,"ra_Auto (no custom columns)":"Auto (geen aangepaste kolommen)","ra_Transparent dialog":"Transparant dialoogvenster",ra_Width:Ipe,ra_val:zpe,ra_buttons:Rpe,"ra_Configure visible columns":"Configureer zichtbare kolommen","ra_Cannot update attribute, because not found in the object":"Kan kenmerk niet bijwerken, omdat het niet in het object is gevonden","ra_Edit object field":"Bewerk objectveld","ra_Hide empty folders":"Verberg lege mappen","ra_Reload files":"Laad bestanden opnieuw","ra_Create folder":"Map aanmaken","ra_Upload file":"Upload bestand","ra_User files":"Gebruikersbestanden","ra_Confirm deletion of %s":"Bevestig het verwijderen van %s","ra_Delete (no confirm for 5 mins)":"Verwijderen (geen bevestiging gedurende 5 minuten)",ra_Delete:Ppe,"ra_Toggle expert mode":"Schakel tussen expertmodus","ra_Toggle view mode":"Schakelen tussen weergavemodus",ra_Root:Lpe,"ra_Back to %s":"Terug naar %s","ra_Place your files here or click here to open the browse dialog":"Plaats uw bestanden hier of klik hier om het bladervenster te openen","ra_If no file will be created in the folder, it will disappear after the browser closed":"Als er geen bestand in de map wordt gemaakt, verdwijnt het nadat de browser is gesloten","ra_Folder name":"Naam van de map","ra_Create new folder in %s":"Maak een nieuwe map in %s","ra_Duplicate name":"Dubbele naam","ra_Invalid parent folder!":"Ongeldige bovenliggende map!","ra_Drop file here":"Zet het bestand hier neer","ra_Suppress question for next %s minutes":"Vraag de volgende %s minuten onderdrukken","ra_Clear filter":"Filter wissen",ra_Update:Fpe,"ra_Load configuration from file":"Laad configuratie uit bestand","ra_Save configuration to file":"Sla de configuratie op in een bestand",sc_cron:Bpe,sc_date:Wpe,sc_dates:Hpe,sc_dows:Upe,sc_every:Vpe,sc_everyN_dates:Gpe,sc_everyN_dows:qpe,sc_everyN_hours:Jpe,sc_everyN_minutes:Xpe,sc_everyN_months:Ype,sc_everyN_seconds:Kpe,sc_every_dates:Zpe,sc_every_dows:Qpe,sc_every_hours:ehe,sc_every_minutes:the,sc_every_months:nhe,sc_every_seconds:rhe,sc_from:ohe,sc_hours:she,sc_interval:ahe,sc_intervalBetween:ihe,sc_minutes:lhe,sc_months:che,sc_once:dhe,sc_period:uhe,sc_seconds:phe,sc_simple:hhe,sc_specific:fhe,sc_specific_dates:mhe,sc_specific_dows:ghe,sc_specific_hours:_he,sc_specific_minutes:vhe,sc_specific_months:yhe,sc_specific_seconds:bhe,sc_time:whe,sc_to:She,sc_wizard:xhe,sch_all:khe,sch_astroDay:$he,sch_astroNight:Che,sch_astro_dawn:Ehe,sch_astro_dusk:The,sch_astro_goldenHour:Ohe,sch_astro_goldenHourEnd:Dhe,sch_astro_nadir:Ahe,sch_astro_nauticalDawn:Nhe,sch_astro_nauticalDusk:Mhe,sch_astro_night:jhe,sch_astro_nightEnd:Ihe,sch_astro_solarNoon:zhe,sch_astro_sunrise:Rhe,sch_astro_sunriseEnd:Phe,sch_astro_sunset:Lhe,sch_astro_sunsetStart:Fhe,sch_at:Bhe,sch_desc_atTime:Whe,sch_desc_everyDay:Hhe,sch_desc_everyHour:Uhe,sch_desc_everyMinute:Vhe,sch_desc_everyMonth:Ghe,sch_desc_everyNDay:qhe,sch_desc_everyNHours:Jhe,sch_desc_everyNMinutes:Xhe,sch_desc_everyNMonths:Yhe,sch_desc_everyNWeeks:Khe,sch_desc_everyNYears:Zhe,sch_desc_everyWeek:Qhe,sch_desc_everyYear:efe,sch_desc_intervalFromTo:tfe,sch_desc_never:nfe,sch_desc_onDate:rfe,sch_desc_onDates:ofe,sch_desc_onEveryDate:sfe,sch_desc_onMonth:afe,sch_desc_onMonths:ife,sch_desc_onWeekday:lfe,sch_desc_onWeekdays:cfe,sch_desc_onWeekends:dfe,sch_desc_onWorkdays:ufe,sch_desc_onceInPast:pfe,sch_desc_once_on:hfe,sch_desc_validFrom:ffe,sch_desc_validFromTo:mfe,sch_desc_validTo:gfe,sch_every:_fe,sch_exactTime:vfe,sch_from:yfe,sch_fromTo:bfe,sch_intervalTime:wfe,sch_invert:Sfe,sch_no_one:xfe,sch_on:kfe,sch_period:$fe,sch_periodDaily:Cfe,sch_periodDates:Efe,sch_periodDay:Tfe,sch_periodEvery:Ofe,sch_periodEveryDay:Dfe,sch_periodEveryMonth:Afe,sch_periodEveryWeek:Nfe,sch_periodEveryYear:Mfe,sch_periodHours:jfe,sch_periodMinutes:Ife,sch_periodMonth:zfe,sch_periodMonthly:Rfe,sch_periodOnce:Pfe,sch_periodSpecificMonths:Lfe,sch_periodWeek:Ffe,sch_periodWeekdays:Bfe,sch_periodWeekend:Wfe,sch_periodWeekly:Hfe,sch_periodWorkdays:Ufe,sch_periodYear:Vfe,sch_periodYearly:Gfe,sch_specificTime:qfe,sch_time:Jfe,sch_to:Xfe,sch_valid:Yfe,sch_validFrom:Kfe,sch_validTo:Zfe,sch_wholeDay:Qfe,sch_yearEveryMonth:eme,"ra_Define schedule...":"Schema definiëren ...",ra_Repeat:tme,"ra_use seconds":"gebruik seconden",ra_close:nme,ra_dow_Tu:rme,"ra_Toggle the states view":"Schakel de statusweergave in of uit","ra_Add new child object to selected parent":"Voeg een nieuw kindobject toe aan het geselecteerde bovenliggende object","ra_Add objects tree from JSON file":"Objectenboom toevoegen vanuit JSON-bestand","ra_Save objects tree as JSON file":"Sla de objectenboom op als JSON-bestand",ra_Objects:ome,ra_States:sme,ra_object_changed_by_user:ame,ra_object_changed_by:ime,ra_state_changed_from:lme,ra_state_changed_by:cme,ra_aclOwner_read_object:dme,ra_aclOwner_read_state:ume,ra_aclOwner_write_object:pme,ra_aclOwner_write_state:hme,ra_aclGroup_read_object:fme,ra_aclGroup_read_state:mme,ra_aclGroup_write_object:gme,ra_aclGroup_write_state:_me,ra_aclEveryone_read_object:vme,ra_aclEveryone_read_state:yme,ra_aclEveryone_write_object:bme,ra_aclEveryone_write_state:wme,"ra_Folders always first":"Mappen altijd eerst",ra_changedFrom:Sme,ra_qualityCode:xme,ra_timestamp:kme,ra_lastChange:$me,"ra_Owner group":"Eigenaarsgroep","ra_Owner user":"Eigenaar gebruiker",ra_Create:Cme,"ra_Changed from":"Veranderd van","ra_Quality code":"Kwaliteit",ra_Timestamp:Eme,"ra_Last change":"Laatste wijziging","ra_Collapse all nodes":"Vouw alle knooppunten samen","ra_Edit custom config":"Bewerk aangepaste config","ra_Collapse one step node":"Eén niveau samenvouwen","ra_Expand one step node":"Vouw een niveau uit","ra_Refresh tree":"Vernieuw de boom","ra_Expand all nodes":"Vouw alle knooppunten uit","ra_Deselect all":"Deselecteer alles","ra_Select all":"Selecteer alles","ra_%s object(s) processed":"%s object(en) verwerkt","ra_Invalid structure":"Ongeldige structuur","ra_%s was imported":"%s is geïmporteerd","ra_Failed to open JSON File":"JSON-bestand kan niet worden geopend","ra_Only following structures of objects are available:":"Alleen de volgende structuren van objecten zijn beschikbaar:","ra_Folder → State":"Map → Staat","ra_Folder → Channel → State":"Map → Kanaal → Staat","ra_Folder → Device → Channel → State":"Map → Apparaat → Kanaal → Staat","ra_Device → Channel → State":"Apparaat → Kanaal → Staat","ra_Channel → State":"Kanaal → Staat",'ra_Non-experts may create new objects only in "0_userdata.0" or "alias.0".':'Niet-experts mogen alleen nieuwe objecten maken in "0_userdata.0" of "alias.0".','ra_The experts may create objects everywhere but from second level (e.g. "vis.0" or "javascript.0").':'De experts kunnen overal objecten maken, behalve vanaf het tweede niveau (bijv. "Vis.0" of "javascript.0").',ra_expertMode:Tme,"ra_On weekdays":"Op weekdagen","ra_Drop the files here...":"Zet het bestand hier neer...","ra_Drag 'n' drop some files here, or click to select files":"Sleep enkele bestanden hierheen, of klik om bestanden te selecteren",ra_Clear:Ome,"ra_Clear icon":"Pictogram wissen",ra_none:Dme,"ra_Select predefined icon":"Selecteer voorgedefinieerd pictogram","ra_Show lines between rows":"Toon lijnen tussen rijen","ra_The page you are looking for was not found":"De pagina die u zoekt is niet gevonden","ra_Good luck":"Veel geluk",'ra_Cannot find "%s"':'Kan "%s" niet vinden','ra_Cannot read "%s"':'Kan "%s" niet lezen',"ra_Background image":"Achtergrond afbeelding","ra_View: %s":"Bekijk: %s","ra_Copy content":"Inhoud kopiëren",ra_Filter:Ame,"ra_All objects":"Alle objecten","ra_Only selected":"Alleen geselecteerd","ra_Change color theme":"Kleurthema wijzigen",ra_daysShortText:Nme,"ra_Instance %s is alive":"Instantie %s leeft","ra_Instance %s is not alive":"Instantie %s is niet actief","ra_Used system settings":"Gebruikte systeeminstellingen","ra_Cannot determine position: System settings are empty and GPS detection is disabled in browser":"Kan positie niet bepalen: systeeminstellingen zijn leeg en GPS-detectie is uitgeschakeld in browser","ra_Define schedule":"Definieer schema",ra___different__:Mme,"ra_Please confirm":"Bevestig alstublieft","ra_JSON editor":"JSON-editor","ra_System language":"Systeemtaal","ra_Too small":"Te klein","ra_Too big":"Te groot","ra_Passwords are not equal!":"Wachtwoorden zijn niet gelijk!",ra_repeat:jme,"ra_You can filter entries by entering here some text":"U kunt items filteren door hier wat tekst in te voeren","ra_Show/hide filter input":"Filterinvoer weergeven/verbergen","ra_Cannot add items with set filter":"Kan geen items toevoegen met ingestelde filter","ra_Add row":"Voeg een rij toe","ra_Move up":"Omhoog gaan","ra_Move down":"Naar beneden verplaatsen","ra_Delete current row":"Huidige rij verwijderen","ra_All items are filtered out":"Alle items zijn uitgefilterd","ra_Double click to reset table layout":"Dubbelklik om de tafelindeling te resetten","ra_Cannot retrieve options, as instance is offline":"Kan opties niet ophalen, omdat instantie offline is","ra_File is too big. Max %sk allowed. Try use SVG.":"Bestand is te groot. Max. %sk toegestaan. Probeer SVG te gebruiken.","ra_Cannot upload":"Kan niet uploaden",ra_Crop:Ime,ra_tooltip_comment:zme,ra_Disconnected:Rme,ra_Connected:Pme,ra_Configure:Lme,"ra_Invalid CRON":"Ongeldige CRON",ra_Discard:Fme,"ra_Some data are not stored. Discard?":"Sommige gegevens worden niet opgeslagen. Weggooien?","ra_Filter files":"Bestanden filteren","ra_Please select file...":"Selecteer bestand...",ra_dow_We:Bme,ra_fileType_all:Wme,ra_fileType_audio:Hme,ra_fileType_code:Ume,ra_fileType_images:Vme,ra_fileType_txt:Gme,"ra_fileType_video,":"Video",ra_month_Apr:qme,ra_month_Aug:Jme,ra_month_Dec:Xme,ra_month_Feb:Yme,ra_month_Jan:Kme,ra_month_Jul:Zme,ra_month_Jun:Qme,ra_month_Mai:ege,ra_month_Mar:tge,ra_month_Nov:nge,ra_month_Oct:rge,ra_month_Sep:oge,ra_months_Apr:sge,ra_months_Aug:age,ra_months_Dec:ige,ra_months_Feb:lge,ra_months_Jan:cge,ra_months_Jul:dge,ra_months_Jun:uge,ra_months_Mai:pge,ra_months_Mar:hge,ra_months_Nov:fge,ra_months_Oct:mge,ra_months_Sep:gge,"ra_Cannot decode license":"Kan licentie niet decoderen","ra_Invalid answer from server":"Ongeldig antwoord van de server","ra_License %s":"Licentie %s","ra_License does not exist":"Licentie bestaat niet","ra_License expired on %s":"Licentie verlopen op %s",'ra_License for other product "%s"':'Licentie voor ander product "%s"',"ra_License is for version %s, but required version is %s.":"Licentie is voor versie %s, maar vereiste versie is %s.",'ra_Serial number (UUID) "%s" in license is for other device.':'Serienummer (UUID) "%s" in licentie is voor ander apparaat.',"ra_Serial number (UUID)":"Serienummer (UUID)","ra_Check license":"Licentie controleren","ra_Request timed out":"Verzoek verlopen","ra_Instance is not alive":"Instantie leeft niet","ra_Show/Hide object descriptions":"Toon/verberg objectbeschrijvingen","ra_Use system settings for position":"Gebruik systeeminstellingen voor positie",ra_Longitude:_ge,ra_Latitude:vge,"ra_Take browser position":"Positie innemen vanuit de browser","ra_Take position from system settings":"Neem positie over van systeeminstellingen","ra_Port is already used by %s":"Poort wordt al gebruikt door %s","ra_Port could be used by %s":"Poort kan worden gebruikt door %s",ra_filter_customs_without:yge,"ra_Use iobroker.acme adapter for letsencrypt certificates":"Gebruik de iobroker.acme-adapter voor letsencrypt-certificaten","ra_Do not use let's encrypt":"Gebruik geen let's encrypt","ra_Use all available let's encrypt certificates":"Gebruik alle beschikbare Let's Encrypt-certificaten","ra_Public certificate":"Openbaar certificaat","ra_Private certificate":"Privé certificaat","ra_Chained certificate":"Geketend certificaat","ra_Suitable license not found in license manager":"Geschikte licentie niet gevonden in licentiebeheer","ra_Please enter the license":"Voer de licentie in",ra_Checked:bge,ra_locally:wge,"ra_via internet":"via internet",ra_Yes:Sge,"ra_License not found in license manager. Do you want to read licenses from iobroker.net?":"Licentie niet gevonden in licentiebeheer. Wilt u licenties van iobroker.net bijwerken?","ra_Fallback custom certificates":"Fallback aangepaste certificaten","ra_Clone current row":"Kloon de huidige rij",ra_fileType_video:xge,ra_select_folder_hint:kge,"ra_Accept license":"Accepteer licentie","ra_License agreement":"Licentieovereenkomst","ra_Import from %s":"Importeren uit %s","ra_Export data to %s file":"Exporteer gegevens naar %s bestand","ra_Import data from %s file":"Importeer gegevens uit %s bestand","ra_No data found in file":"Geen gegevens gevonden in bestand","ra_Append or replace?":"Toevoegen of vervangen?","ra_Append %s entries or replace existing?":"%s ingangen toevoegen of bestaande vervangen?",ra_Replace:$ge,ra_Append:Cge,'ra_May not trigger "updateLicenses"':'Activeert mogelijk niet "updateLicenses"',"ra_Unknown error":"Onbekende fout","ra_License must be converted":"Licentie moet worden omgezet naar nieuwere versie. U kunt dit doen in uw iobroker.net-profiel.","ra_No one license found in license manager":"Geen enkele licentie gevonden in licentiebeheer","ra_Please create license":"Maak een licentie aan",ra_Product:Ege,ra_Version:Tge,ra_ValidTill:Oge,ra_Commercial:Dge,"ra_Not a number":"Geen nummer","ra_Edit value":"Waarde bewerken","ra_Edit ACL":"ACL bewerken","ra_Edit role":"Rol bewerken","ra_Edit function":"Bewerkingsfunctie","ra_Edit room":"Kamer bewerken","ra_Edit alias":"Alias bewerken","ra_View file":"Bestand bekijken",ra_Del:Age,"ra_Show all folders":"Toon alle mappen","ra_Restrict to folder":"Beperken tot map","ra_Select type of export":"Selecteer het type export","ra_You can export all objects or just the selected branch.":"U kunt alle objecten of alleen de geselecteerde tak exporteren.","ra_Do not export values of states":"Exporteer geen waarden van staten","ra_Selected %s object(s)":"Geselecteerde %s object(en)",ra_create_device:Nge,ra_create_channel:Mge,ra_create_state:jge,ra_create_string_state:Ige,ra_create_number_state:zge,ra_create_boolean_state:Rge,"ra_Select color":"Selecteer kleur","ra_Cannot read licenses: %s":"Kan licenties niet lezen: %s","ra_Advanced options":"Geavanceerde mogelijkheden",sc_everyN_dow:Pge,sc_every_dow:Lge,sc_specific_dow:Fge,ra_Name:Bge,"ra_import data from %s file":"Importeer gegevens uit %s bestand","ra_Invalid JSON":"Ongeldige JSON","ra_Create alias":"Alias maken",ra_Categories:Wge,"ra_%s links from aliases":"%s links van aliassen",ra_warning_every_second:Hge,ra_warning_every_minute:Uge,"ra_The schedule will be executed every second. Are you sure?":"Het schema wordt elke seconde uitgevoerd. Weet je het zeker?","ra_The schedule will be executed every minute. Are you sure?":"Het schema wordt elke minuut uitgevoerd. Weet u het zeker?",sc_dow:Vge,"ra_Define CRON...":"Definieer CRON...",ra_Sunday:Gge,ra_Monday:qge,ra_Tuesday:Jge,ra_Wednesday:Xge,ra_Thursday:Yge,ra_Friday:Kge,ra_Saturday:Zge,sc_invalid_cron:Qge},t_e="Une fonction",n_e="ID",r_e="Prénom",o_e="Rôle",s_e="Pièce",a_e="Drapeau reconnu",i_e="De",l_e="Dernière modification",c_e="Qualité",d_e="Horodatage",u_e="Utilisateur",p_e="Valeur",h_e="Annuler",f_e="Copié",m_e="Erreur",g_e="Message",__e="D'accord",v_e="Choisi",y_e="Valeur",b_e="Type",w_e="Paramètres invalides",S_e="Paramètres d'un autre adaptateur %s",x_e="Copiez la valeur d'état",k_e="Paramètres personnalisés",$_e="Supprimer un objet",C_e="Modifier l'objet",E_e="Modifier la valeur d'état",T_e="Paramètres",O_e="Fr",D_e="Mo",A_e="Sa",N_e="Su",M_e="Th",j_e="sauver",I_e="Fermer",z_e="Largeur",R_e="Valeur",P_e="Boutons",L_e="Supprimer",F_e="Racine",B_e="Mise à jour",W_e="CRON",H_e="Date",U_e="Rendez-vous",V_e="Jour de la semaine",G_e="Chaque",q_e="tous les N jours",J_e="tous les N jours de la semaine",X_e="toutes les N heures",Y_e="toutes les N minutes",K_e="tous les N mois",Z_e="toutes les N secondes",Q_e="tous les jours",eve="Chaque jour de la semaine",tve="Toutes les heures",nve="chaque minute",rve="chaque mois",ove="chaque seconde",sve="De",ave="Heures",ive="Intervalle",lve="Intervalle entre",cve="Minutes",dve="mois",uve="Une fois que",pve="Période",hve="Secondes",fve="Facile",mve="Temps spécifique",gve="dates spécifiques",_ve="jour spécifique de semaines",vve="heures spécifiques",yve="minutes spécifiques",bve="mois spécifiques",wve="secondes spécifiques",Sve="Temps",xve="À",kve="sorcier",$ve="tout",Cve="Journée astronomique",Eve="Nuit astronomique",Tve="Aube",Ove="Crépuscule",Dve="Heure d'or",Ave="Fin de l'heure d'or",Nve="Nadir",Mve="Aube nautique",jve="Crépuscule nautique",Ive="Nuit",zve="Fin de nuit",Rve="Midi solaire",Pve="lever du soleil",Lve="Fin du lever du soleil",Fve="Le coucher du soleil",Bve="Coucher du soleil",Wve="à",Hve="à %s",Uve="tous les jours",Vve="Toutes les heures",Gve="chaque minute",qve="chaque mois",Jve="chaque %s jour",Xve="chaque %s heures",Yve="toutes les %s minutes",Kve="tous les %s mois",Zve="chaque %s semaines",Qve="tous les %s ans",eye="toutes les semaines",tye="chaque année",nye="de %s à %s",rye="jamais",oye="sur %s de %s",sye="sur %s et %s de",aye="à chaque date de",iye="%s",lye="%s et %s",cye="sur %s",dye="sur %s et %s",uye="les weekends",pye="les jours ouvrables",hye="ne sera plus exécuté, car start est dans le passé",fye="sur %s",mye="de %s",gye="Exécuter de à",_ye="à %s",vye="chaque",yye="Temps spécifique",bye="de",wye="De à",Sye="Temps d'interval",xye="inverser",kye="aucun",$ye="sur",Cye="Période",Eye="du quotidien",Tye="Rendez-vous",Oye="journée",Dye="Chaque",Aye="Tous les jours",Nye="Chaque mois",Mye="Toutes les semaines",jye="Chaque année",Iye="Heures",zye="Minutes",Rye="mois",Pye="Mensuel",Lye="Une fois que",Fye="Mois spécifiques",Bye="La semaine",Wye="Jours de la semaine",Hye="Weekend",Uye="Hebdomadaire",Vye="Jours ouvrables",Gye="Année",qye="Annuel",Jye="Temps spécifique",Xye="Temps",Yye="à",Kye="Valide",Zye="de",Qye="à",e0e="Toute la journée",t0e="chaque mois",n0e="Répéter",r0e="Fermer",o0e="Tu",s0e="Objets",a0e="États",i0e="Objet modifié pour la dernière fois à",l0e="Objet modifié par",c0e="Objet changé de",d0e="État modifié par",u0e="Le propriétaire peut lire l'objet",p0e="Le propriétaire peut lire l'état",h0e="Le propriétaire peut écrire un objet",f0e="Le propriétaire peut écrire l'état",m0e="Le groupe peut lire l'objet",g0e="Le groupe peut lire l'état",_0e="Le groupe peut écrire un objet",v0e="Le groupe peut écrire l'état",y0e="Tout le monde peut lire un objet",b0e="Tout le monde peut lire l'état",w0e="Tout le monde peut écrire un objet",S0e="Tout le monde peut écrire l'état",x0e="Changé de",k0e="Code de qualité",$0e="Horodatage",C0e="Dernier changement",E0e="Créer",T0e="Horodatage",O0e="Mode expert",D0e="Effacer",A0e="rien",N0e="Filtre",M0e="j.",j0e="différent",I0e="répéter",z0e="Recadrer",R0e="Commentaire",P0e="Débranché",L0e="Lié",F0e="Configurer",B0e="Jeter",W0e="Nous",H0e="Tous les fichiers",U0e="l'audio",V0e="Code/JSON",G0e="Images",q0e="Texte",J0e="Avr",X0e="Août",Y0e="Déc",K0e="Fév",Z0e="Jan",Q0e="Juil",ebe="Juin",tbe="Mai",nbe="Mar",rbe="Nov",obe="Oct",sbe="Sep",abe="Avr",ibe="Août",lbe="Déc",cbe="Fév",dbe="Jan",ube="Juil",pbe="Juin",hbe="Mai",fbe="Mar",mbe="Nov",gbe="Oct",_be="Sep",vbe="Longitude",ybe="Latitude",bbe="sans",wbe="Vérifié",Sbe="localement",xbe="Oui",kbe="Vidéo",$be='Pour sélectionner un dossier, maintenez simplement la touche "shift" enfoncée en cliquant sur le dossier.',Cbe="Remplacer",Ebe="Ajouter",Tbe="Produit",Obe="Version",Dbe="Valable jusqu'au",Abe="Commercial",Nbe="Delete",Mbe="Créer un appareil",jbe="Créer une chaîne",Ibe="Créer un état",zbe="Créer un état de chaîne",Rbe="Créer un état de numéro",Pbe="Créer un état booléen",Lbe="chaque Nième jour de la semaine",Fbe="Chaque jour de la semaine",Bbe="jour(s) spécifique(s) de la semaine",Wbe="Nom",Hbe="Catégories",Ube="Attention : la tâche CRON s’exécutera toutes les secondes pendant la période spécifiée !",Vbe="Attention : la tâche CRON s’exécutera toutes les minutes pendant la période spécifiée !",Gbe="Jour",qbe="Dimanche",Jbe="Lundi",Xbe="Mardi",Ybe="Mercredi",Kbe="Jeudi",Zbe="Vendredi",Qbe="Samedi",e1e="CRON non valide",t1e={ra_filter_func:t_e,ra_filter_id:n_e,ra_filter_name:r_e,ra_filter_role:o_e,ra_filter_room:s_e,ra_tooltip_ack:a_e,ra_tooltip_from:i_e,ra_tooltip_lc:l_e,ra_tooltip_quality:c_e,ra_tooltip_ts:d_e,ra_tooltip_user:u_e,ra_tooltip_value:p_e,"ra_Are you sure?":"Êtes-vous sûr?",ra_Cancel:h_e,ra_Copied:f_e,"ra_Copied %s":'"%s" copié',"ra_Define functions":"Définir des fonctions","ra_Define rooms":"Définir des pièces",ra_Error:m_e,ra_Message:g_e,ra_Ok:__e,"ra_Please select object ID...":"Veuillez sélectionner l'ID d'objet ...",ra_Selected:v_e,"ra_Unknown error!":"Erreur inconnue!",ra_Value:y_e,ra_filter_type:b_e,ra_invalidConfig:w_e,ra_otherConfig:S_e,ra_tooltip_copyState:x_e,ra_tooltip_customConfig:k_e,ra_tooltip_deleteObject:$_e,ra_tooltip_editObject:C_e,ra_tooltip_editState:E_e,ra_filter_customs:T_e,"ra_Listen on all IPs":"Écoutez sur toutes les adresses IP",ra_dow_Fr:O_e,ra_dow_Mo:D_e,ra_dow_Sa:A_e,ra_dow_Su:N_e,ra_dow_Th:M_e,ra_Save:j_e,"ra_Save and close":"Sauver et fermer",ra_Close:I_e,"ra_Auto (no custom columns)":"Auto (pas de colonnes personnalisées)","ra_Transparent dialog":"Dialogue transparent",ra_Width:z_e,ra_val:R_e,ra_buttons:P_e,"ra_Configure visible columns":"Configurer les colonnes visibles","ra_Cannot update attribute, because not found in the object":"Impossible de mettre à jour l'attribut, car il est introuvable dans l'objet","ra_Edit object field":"Modifier le champ d'objet","ra_Hide empty folders":"Masquer les dossiers vides","ra_Reload files":"Recharger les fichiers","ra_Create folder":"Créer le dossier","ra_Upload file":"Téléverser un fichier","ra_User files":"Fichiers utilisateurs","ra_Confirm deletion of %s":"Confirmer la suppression de %s","ra_Delete (no confirm for 5 mins)":"Supprimer (pas de confirmation pendant 5 minutes)",ra_Delete:L_e,"ra_Toggle expert mode":"Basculer en mode expert","ra_Toggle view mode":"Basculer le mode d'affichage",ra_Root:F_e,"ra_Back to %s":"Retour à %s","ra_Place your files here or click here to open the browse dialog":"Placez vos fichiers ici ou cliquez ici pour ouvrir la boîte de dialogue de navigation","ra_If no file will be created in the folder, it will disappear after the browser closed":"Si aucun fichier ne sera créé dans le dossier, il disparaîtra après la fermeture du navigateur","ra_Folder name":"Nom de dossier","ra_Create new folder in %s":"Créer un nouveau dossier dans %s","ra_Duplicate name":"Nom en double","ra_Invalid parent folder!":"Dossier parent non valide!","ra_Drop file here":"Déposer le fichier ici","ra_Suppress question for next %s minutes":"Supprimer la question pour les %s prochaines minutes","ra_Clear filter":"Effacer le filtre",ra_Update:B_e,"ra_Load configuration from file":"Charger la configuration à partir du fichier","ra_Save configuration to file":"Enregistrer la configuration dans un fichier",sc_cron:W_e,sc_date:H_e,sc_dates:U_e,sc_dows:V_e,sc_every:G_e,sc_everyN_dates:q_e,sc_everyN_dows:J_e,sc_everyN_hours:X_e,sc_everyN_minutes:Y_e,sc_everyN_months:K_e,sc_everyN_seconds:Z_e,sc_every_dates:Q_e,sc_every_dows:eve,sc_every_hours:tve,sc_every_minutes:nve,sc_every_months:rve,sc_every_seconds:ove,sc_from:sve,sc_hours:ave,sc_interval:ive,sc_intervalBetween:lve,sc_minutes:cve,sc_months:dve,sc_once:uve,sc_period:pve,sc_seconds:hve,sc_simple:fve,sc_specific:mve,sc_specific_dates:gve,sc_specific_dows:_ve,sc_specific_hours:vve,sc_specific_minutes:yve,sc_specific_months:bve,sc_specific_seconds:wve,sc_time:Sve,sc_to:xve,sc_wizard:kve,sch_all:$ve,sch_astroDay:Cve,sch_astroNight:Eve,sch_astro_dawn:Tve,sch_astro_dusk:Ove,sch_astro_goldenHour:Dve,sch_astro_goldenHourEnd:Ave,sch_astro_nadir:Nve,sch_astro_nauticalDawn:Mve,sch_astro_nauticalDusk:jve,sch_astro_night:Ive,sch_astro_nightEnd:zve,sch_astro_solarNoon:Rve,sch_astro_sunrise:Pve,sch_astro_sunriseEnd:Lve,sch_astro_sunset:Fve,sch_astro_sunsetStart:Bve,sch_at:Wve,sch_desc_atTime:Hve,sch_desc_everyDay:Uve,sch_desc_everyHour:Vve,sch_desc_everyMinute:Gve,sch_desc_everyMonth:qve,sch_desc_everyNDay:Jve,sch_desc_everyNHours:Xve,sch_desc_everyNMinutes:Yve,sch_desc_everyNMonths:Kve,sch_desc_everyNWeeks:Zve,sch_desc_everyNYears:Qve,sch_desc_everyWeek:eye,sch_desc_everyYear:tye,sch_desc_intervalFromTo:nye,sch_desc_never:rye,sch_desc_onDate:oye,sch_desc_onDates:sye,sch_desc_onEveryDate:aye,sch_desc_onMonth:iye,sch_desc_onMonths:lye,sch_desc_onWeekday:cye,sch_desc_onWeekdays:dye,sch_desc_onWeekends:uye,sch_desc_onWorkdays:pye,sch_desc_onceInPast:hye,sch_desc_once_on:fye,sch_desc_validFrom:mye,sch_desc_validFromTo:gye,sch_desc_validTo:_ye,sch_every:vye,sch_exactTime:yye,sch_from:bye,sch_fromTo:wye,sch_intervalTime:Sye,sch_invert:xye,sch_no_one:kye,sch_on:$ye,sch_period:Cye,sch_periodDaily:Eye,sch_periodDates:Tye,sch_periodDay:Oye,sch_periodEvery:Dye,sch_periodEveryDay:Aye,sch_periodEveryMonth:Nye,sch_periodEveryWeek:Mye,sch_periodEveryYear:jye,sch_periodHours:Iye,sch_periodMinutes:zye,sch_periodMonth:Rye,sch_periodMonthly:Pye,sch_periodOnce:Lye,sch_periodSpecificMonths:Fye,sch_periodWeek:Bye,sch_periodWeekdays:Wye,sch_periodWeekend:Hye,sch_periodWeekly:Uye,sch_periodWorkdays:Vye,sch_periodYear:Gye,sch_periodYearly:qye,sch_specificTime:Jye,sch_time:Xye,sch_to:Yye,sch_valid:Kye,sch_validFrom:Zye,sch_validTo:Qye,sch_wholeDay:e0e,sch_yearEveryMonth:t0e,"ra_Define schedule...":"Définir le calendrier ...",ra_Repeat:n0e,"ra_use seconds":"utiliser les secondes",ra_close:r0e,ra_dow_Tu:o0e,"ra_Toggle the states view":"Basculer la vue des états","ra_Add new child object to selected parent":"Ajouter un nouvel objet enfant au parent sélectionné","ra_Add objects tree from JSON file":"Ajouter une arborescence d'objets à partir d'un fichier JSON","ra_Save objects tree as JSON file":"Enregistrer l'arborescence des objets en tant que fichier JSON",ra_Objects:s0e,ra_States:a0e,ra_object_changed_by_user:i0e,ra_object_changed_by:l0e,ra_state_changed_from:c0e,ra_state_changed_by:d0e,ra_aclOwner_read_object:u0e,ra_aclOwner_read_state:p0e,ra_aclOwner_write_object:h0e,ra_aclOwner_write_state:f0e,ra_aclGroup_read_object:m0e,ra_aclGroup_read_state:g0e,ra_aclGroup_write_object:_0e,ra_aclGroup_write_state:v0e,ra_aclEveryone_read_object:y0e,ra_aclEveryone_read_state:b0e,ra_aclEveryone_write_object:w0e,ra_aclEveryone_write_state:S0e,"ra_Folders always first":"Les dossiers toujours en premier",ra_changedFrom:x0e,ra_qualityCode:k0e,ra_timestamp:$0e,ra_lastChange:C0e,"ra_Owner group":"Groupe propriétaire","ra_Owner user":"Utilisateur propriétaire",ra_Create:E0e,"ra_Changed from":"Changé de","ra_Quality code":"Qualité",ra_Timestamp:T0e,"ra_Last change":"Dernier changement","ra_Collapse all nodes":"Réduire tous les nœuds","ra_Edit custom config":"Modifier la configuration personnalisée","ra_Collapse one step node":"Réduire d'un niveau","ra_Expand one step node":"Développer un niveau","ra_Refresh tree":"Rafraîchir l'arborescence","ra_Expand all nodes":"Développer tous les nœuds","ra_Deselect all":"Tout déselectionner","ra_Select all":"Tout sélectionner","ra_%s object(s) processed":"%s objet(s) traité(s)","ra_Invalid structure":"Structure invalide","ra_%s was imported":"%s a été importé","ra_Failed to open JSON File":"Échec de l'ouverture du fichier JSON","ra_Only following structures of objects are available:":"Seules les structures d'objets suivantes sont disponibles:","ra_Folder → State":"Dossier → État","ra_Folder → Channel → State":"Dossier → Chaîne → État","ra_Folder → Device → Channel → State":"Dossier → Appareil → Canal → État","ra_Device → Channel → State":"Appareil → Canal → État","ra_Channel → State":"Canal → État",'ra_Non-experts may create new objects only in "0_userdata.0" or "alias.0".':'Les non-experts ne peuvent créer de nouveaux objets que dans "0_userdata.0" ou "alias.0".','ra_The experts may create objects everywhere but from second level (e.g. "vis.0" or "javascript.0").':'Les experts peuvent créer des objets partout mais à partir du deuxième niveau (par exemple "vis.0" ou "javascript.0").',ra_expertMode:O0e,"ra_On weekdays":"En semaine","ra_Drop the files here...":"Déposez le fichier ici...","ra_Drag 'n' drop some files here, or click to select files":"Glissez-déposez des fichiers ici, ou cliquez pour sélectionner des fichiers",ra_Clear:D0e,"ra_Clear icon":"Effacer l'icône",ra_none:A0e,"ra_Select predefined icon":"Sélectionnez l'icône prédéfinie","ra_Show lines between rows":"Afficher les lignes entre les lignes","ra_The page you are looking for was not found":"La page que vous recherchez n'a pas été trouvée","ra_Good luck":"Bonne chance",'ra_Cannot find "%s"':'Impossible de trouver "%s"','ra_Cannot read "%s"':'Impossible de lire "%s"',"ra_Background image":"Image de fond","ra_View: %s":"Affichage : %s","ra_Copy content":"Copier le contenu",ra_Filter:N0e,"ra_All objects":"Tous les objets","ra_Only selected":"Uniquement sélectionné","ra_Change color theme":"Changer le thème de couleur",ra_daysShortText:M0e,"ra_Instance %s is alive":"L'instance %s est active","ra_Instance %s is not alive":"L'instance %s n'est pas active","ra_Used system settings":"Paramètres système utilisés","ra_Cannot determine position: System settings are empty and GPS detection is disabled in browser":"Impossible de déterminer la position : les paramètres système sont vides et la détection GPS est désactivée dans le navigateur","ra_Define schedule":"Définir le calendrier",ra___different__:j0e,"ra_Please confirm":"Veuillez confirmer","ra_JSON editor":"Éditeur JSON","ra_System language":"Langue du système","ra_Too small":"Trop petit","ra_Too big":"Trop grand","ra_Passwords are not equal!":"Les mots de passe ne sont pas égaux !",ra_repeat:I0e,"ra_You can filter entries by entering here some text":"Vous pouvez filtrer les entrées en saisissant ici du texte","ra_Show/hide filter input":"Afficher/masquer l'entrée de filtre","ra_Cannot add items with set filter":"Impossible d'ajouter des éléments avec le filtre défini","ra_Add row":"Ajouter une rangée","ra_Move up":"Déplacer vers le haut","ra_Move down":"Descendre","ra_Delete current row":"Supprimer la ligne actuelle","ra_All items are filtered out":"Tous les éléments sont filtrés","ra_Double click to reset table layout":"Double-cliquez pour réinitialiser la disposition du tableau","ra_Cannot retrieve options, as instance is offline":"Impossible de récupérer les options, car l'instance est hors ligne","ra_File is too big. Max %sk allowed. Try use SVG.":"Le fichier est trop volumineux. Max %sk autorisé. Essayez d'utiliser SVG.","ra_Cannot upload":"Impossible de télécharger",ra_Crop:z0e,ra_tooltip_comment:R0e,ra_Disconnected:P0e,ra_Connected:L0e,ra_Configure:F0e,"ra_Invalid CRON":"CRON invalide",ra_Discard:B0e,"ra_Some data are not stored. Discard?":"Certaines données ne sont pas stockées. Jeter?","ra_Filter files":"Filtrer les fichiers","ra_Please select file...":"Veuillez sélectionner le fichier...",ra_dow_We:W0e,ra_fileType_all:H0e,ra_fileType_audio:U0e,ra_fileType_code:V0e,ra_fileType_images:G0e,ra_fileType_txt:q0e,"ra_fileType_video,":"Vidéo",ra_month_Apr:J0e,ra_month_Aug:X0e,ra_month_Dec:Y0e,ra_month_Feb:K0e,ra_month_Jan:Z0e,ra_month_Jul:Q0e,ra_month_Jun:ebe,ra_month_Mai:tbe,ra_month_Mar:nbe,ra_month_Nov:rbe,ra_month_Oct:obe,ra_month_Sep:sbe,ra_months_Apr:abe,ra_months_Aug:ibe,ra_months_Dec:lbe,ra_months_Feb:cbe,ra_months_Jan:dbe,ra_months_Jul:ube,ra_months_Jun:pbe,ra_months_Mai:hbe,ra_months_Mar:fbe,ra_months_Nov:mbe,ra_months_Oct:gbe,ra_months_Sep:_be,"ra_Cannot decode license":"Impossible de décoder la licence","ra_Invalid answer from server":"Réponse invalide du serveur","ra_License %s":"Licence %s","ra_License does not exist":"La licence n'existe pas","ra_License expired on %s":"Licence expirée le %s",'ra_License for other product "%s"':'Licence pour un autre produit "%s"',"ra_License is for version %s, but required version is %s.":"La licence est pour la version %s, mais la version requise est %s.",'ra_Serial number (UUID) "%s" in license is for other device.':'Le numéro de série (UUID) "%s" dans la licence est pour un autre appareil.',"ra_Serial number (UUID)":"Numéro de série (UUID)","ra_Check license":"Vérifier la licence","ra_Request timed out":"La demande a expiré","ra_Instance is not alive":"L'instance n'est pas active","ra_Show/Hide object descriptions":"Afficher/Masquer les descriptions d'objets","ra_Use system settings for position":"Utiliser les paramètres système pour la position",ra_Longitude:vbe,ra_Latitude:ybe,"ra_Take browser position":"Prendre position depuis le navigateur","ra_Take position from system settings":"Prendre position à partir des paramètres système","ra_Port is already used by %s":"Le port est déjà utilisé par %s","ra_Port could be used by %s":"Le port pourrait être utilisé par %s",ra_filter_customs_without:bbe,"ra_Use iobroker.acme adapter for letsencrypt certificates":"Utiliser l'adaptateur iobroker.acme pour les certificats Letsencrypt","ra_Do not use let's encrypt":"Ne pas utiliser let's encrypt","ra_Use all available let's encrypt certificates":"Utilisez tous les certificats let's encrypt disponibles","ra_Public certificate":"Certificat public","ra_Private certificate":"Certificat privé","ra_Chained certificate":"Certificat chaîné","ra_Suitable license not found in license manager":"Licence appropriée introuvable dans le gestionnaire de licences","ra_Please enter the license":"Veuillez entrer la licence",ra_Checked:wbe,ra_locally:Sbe,"ra_via internet":"par Internet",ra_Yes:xbe,"ra_License not found in license manager. Do you want to read licenses from iobroker.net?":"Licence introuvable dans le gestionnaire de licences. Voulez-vous mettre à jour les licences depuis iobroker.net ?","ra_Fallback custom certificates":"Certificats personnalisés de secours","ra_Clone current row":"Cloner la ligne actuelle",ra_fileType_video:kbe,ra_select_folder_hint:$be,"ra_Accept license":"Accepter la licence","ra_License agreement":"Accord de licence","ra_Import from %s":"Importer depuis %s","ra_Export data to %s file":"Exporter les données vers le fichier %s","ra_Import data from %s file":"Importer des données à partir du fichier %s","ra_No data found in file":"Aucune donnée trouvée dans le fichier","ra_Append or replace?":"Ajouter ou remplacer ?","ra_Append %s entries or replace existing?":"Ajouter %s entrées ou remplacer l'existant ?",ra_Replace:Cbe,ra_Append:Ebe,'ra_May not trigger "updateLicenses"':'Peut ne pas déclencher "updateLicences"',"ra_Unknown error":"Erreur inconnue","ra_License must be converted":"La licence doit être convertie en une version plus récente. Vous pouvez le faire dans votre profil iobroker.net.","ra_No one license found in license manager":"Aucune licence trouvée dans le gestionnaire de licences","ra_Please create license":"Veuillez créer une licence",ra_Product:Tbe,ra_Version:Obe,ra_ValidTill:Dbe,ra_Commercial:Abe,"ra_Not a number":"Pas un numéro","ra_Edit value":"Modifier la valeur","ra_Edit ACL":"Modifier la LCA","ra_Edit role":"Modifier le rôle","ra_Edit function":"Fonction d'édition","ra_Edit room":"Modifier la salle","ra_Edit alias":"Modifier l'alias","ra_View file":"Voir la fiche",ra_Del:Nbe,"ra_Show all folders":"Afficher tous les dossiers","ra_Restrict to folder":"Restreindre au dossier","ra_Select type of export":"Sélectionnez le type d'exportation","ra_You can export all objects or just the selected branch.":"Vous pouvez exporter tous les objets ou uniquement la branche sélectionnée.","ra_Do not export values of states":"Ne pas exporter les valeurs des états","ra_Selected %s object(s)":"Objet(s) %s sélectionné(s)",ra_create_device:Mbe,ra_create_channel:jbe,ra_create_state:Ibe,ra_create_string_state:zbe,ra_create_number_state:Rbe,ra_create_boolean_state:Pbe,"ra_Select color":"Choisissez la couleur","ra_Cannot read licenses: %s":"Impossible de lire les licences : %s","ra_Advanced options":"Options avancées",sc_everyN_dow:Lbe,sc_every_dow:Fbe,sc_specific_dow:Bbe,ra_Name:Wbe,"ra_import data from %s file":"Importer des données à partir du fichier %s","ra_Invalid JSON":"JSON invalide","ra_Create alias":"Créer un alias",ra_Categories:Hbe,"ra_%s links from aliases":"%s liens provenant d'alias",ra_warning_every_second:Ube,ra_warning_every_minute:Vbe,"ra_The schedule will be executed every second. Are you sure?":"Le planning sera exécuté toutes les secondes. Êtes-vous sûr ?","ra_The schedule will be executed every minute. Are you sure?":"Le planning sera exécuté toutes les minutes. Êtes-vous sûr ?",sc_dow:Gbe,"ra_Define CRON...":"Définir CRON...",ra_Sunday:qbe,ra_Monday:Jbe,ra_Tuesday:Xbe,ra_Wednesday:Ybe,ra_Thursday:Kbe,ra_Friday:Zbe,ra_Saturday:Qbe,sc_invalid_cron:e1e},n1e="Funzione",r1e="ID",o1e="Nome",s1e="Ruolo",a1e="Camera",i1e="Bandiera riconosciuta",l1e="A partire dal",c1e="Ultima modifica",d1e="Qualità",u1e="Data e ora",p1e="Utente",h1e="Valore",f1e="Annulla",m1e="Copiato",g1e="Errore",_1e="Messaggio",v1e="Ok",y1e="Selezionato",b1e="Valore",w1e="genere",S1e="Impostazioni non valide",x1e="Impostazioni dall'altro adattatore %s",k1e="Copia il valore dello stato",$1e="Impostazioni personalizzate",C1e="Elimina oggetto",E1e="Modifica oggetto",T1e="Modifica il valore dello stato",O1e="impostazioni",D1e="fr",A1e="momento",N1e="Sa",M1e="su",j1e="th",I1e="Salva",z1e="Vicino",R1e="Larghezza",P1e="Valore",L1e="Bottoni",F1e="Elimina",B1e="Radice",W1e="Aggiornare",H1e="CRON",U1e="Data",V1e="Date",G1e="Giorno della settimana",q1e="Ogni",J1e="ogni N giorni",X1e="ogni N giorno della settimana",Y1e="ogni N ore",K1e="ogni N minuti",Z1e="ogni N mesi",Q1e="ogni N secondi",ewe="ogni giorno",twe="Tutti i giorni della settimana",nwe="ogni ora",rwe="ogni minuto",owe="ogni mese",swe="ogni secondo",awe="A partire dal",iwe="Ore",lwe="Intervallo",cwe="Intervallo tra",dwe="Minuti",uwe="mesi",pwe="Una volta",hwe="Periodo",fwe="secondi",mwe="Semplice",gwe="Orario preciso",_we="date specifiche",vwe="giorno specifico delle settimane",ywe="orari specifici",bwe="minuti specifici",wwe="mesi specifici",Swe="secondi specifici",xwe="Tempo",kwe="Per",$we="procedura guidata",Cwe="tutti",Ewe="Astro day",Twe="Astro night",Owe="Alba",Dwe="Crepuscolo",Awe="Ora d'oro",Nwe="Fine dell'ora d'oro",Mwe="Nadir",jwe="Alba nautica",Iwe="Crepuscolo nautico",zwe="Notte",Rwe="Fine della notte",Pwe="Mezzogiorno solare",Lwe="Alba",Fwe="Fine dell'alba",Bwe="Tramonto",Wwe="Inizio del tramonto",Hwe="a",Uwe="a %s",Vwe="ogni giorno",Gwe="ogni ora",qwe="ogni minuto",Jwe="ogni mese",Xwe="ogni %s giorno",Ywe="ogni %s ore",Kwe="ogni %s minuti",Zwe="ogni %s mesi",Qwe="ogni %s settimane",eSe="ogni %s anni",tSe="ogni settimana",nSe="ogni anno",rSe="da %s a %s",oSe="mai",sSe="su %s di %s",aSe="su %s e %s di",iSe="in ogni data di",lSe="%s",cSe="%s e %s",dSe="su %s",uSe="su %s e %s",pSe="nei finesettimana",hSe="nei giorni lavorativi",fSe="non verrà più eseguito, perché start è nel passato",mSe="su %s",gSe="da %s",_Se="Eseguire da a",vSe="a %s",ySe="ogni",bSe="Orario preciso",wSe="a partire dal",SSe="Da A",xSe="Intervallo di tempo",kSe="invertire",$Se="nessuna",CSe="sopra",ESe="Periodo",TSe="Quotidiano",OSe="Date",DSe="Giorno",ASe="Ogni",NSe="Ogni giorno",MSe="Ogni mese",jSe="Ogni settimana",ISe="Ogni anno",zSe="Ore",RSe="Minuti",PSe="mese",LSe="Mensile",FSe="Una volta",BSe="Mesi specifici",WSe="Settimana",HSe="Giorni della settimana",USe="Fine settimana",VSe="settimanalmente",GSe="giorni feriali",qSe="Anno",JSe="Annuale",XSe="Orario preciso",YSe="Tempo",KSe="per",ZSe="Valido",QSe="a partire dal",exe="per",txe="Giorno intero",nxe="ogni mese",rxe="Ripetere",oxe="vicino",sxe="Tu",axe="Oggetti",ixe="stati",lxe="L'oggetto è stato modificato l'ultima volta alle",cxe="Oggetto modificato da",dxe="Oggetto cambiato da",uxe="Stato cambiato da",pxe="Il proprietario può leggere l'oggetto",hxe="Il proprietario può leggere lo stato",fxe="Il proprietario può scrivere l'oggetto",mxe="Il proprietario può scrivere lo stato",gxe="Il gruppo può leggere l'oggetto",_xe="Il gruppo può leggere lo stato",vxe="Il gruppo può scrivere l'oggetto",yxe="Il gruppo può scrivere lo stato",bxe="Tutti possono leggere gli oggetti",wxe="Tutti possono leggere lo stato",Sxe="Tutti possono scrivere oggetti",xxe="Tutti possono scrivere stato",kxe="Cambiato da",$xe="Codice di qualità",Cxe="Timestamp",Exe="Ultima modifica",Txe="Creare",Oxe="Timestamp",Dxe="Modalità esperto",Axe="Elimina",Nxe="nessuna",Mxe="Filtro",jxe="g.",Ixe="diverso",zxe="ripetere",Rxe="Raccolto",Pxe="Commento",Lxe="Disconnesso",Fxe="Collegato",Bxe="Configura",Wxe="Scartare",Hxe="Noi",Uxe="Tutti i files",Vxe="Audio",Gxe="Codice/JSON",qxe="immagini",Jxe="Testo",Xxe="apr",Yxe="agosto",Kxe="Dic",Zxe="febbraio",Qxe="gen",eke="lug",tke="giu",nke="Mai",rke="marzo",oke="nov",ske="ottobre",ake="Sett",ike="apr",lke="agosto",cke="Dic",dke="febbraio",uke="gen",pke="lug",hke="giu",fke="Mai",mke="marzo",gke="nov",_ke="ottobre",vke="Sett",yke="Longitudine",bke="Latitudine",wke="senza",Ske="Controllato",xke="localmente",kke="SÌ",$ke="video",Cke='Per selezionare la cartella, basta tenere premuto il tasto "shift" facendo clic sulla cartella.',Eke="Sostituire",Tke="Aggiungere",Oke="Prodotto",Dke="Versione",Ake="Valido fino a",Nke="Commerciale",Mke="Delete",jke="Crea dispositivo",Ike="Crea canale",zke="Crea stato",Rke="Crea lo stato della stringa",Pke="Crea lo stato del numero",Lke="Crea uno stato booleano",Fke="ogni Nesimo giorno della settimana",Bke="Tutti i giorni della settimana",Wke="giorno/i specifico/i della settimana",Hke="Nome",Uke="Categorie",Vke="Attenzione: il processo CRON verrà eseguito ogni secondo durante il periodo specificato!",Gke="Attenzione: il processo CRON verrà eseguito ogni minuto durante il periodo specificato!",qke="Giorno",Jke="Domenica",Xke="Lunedi",Yke="Martedì",Kke="Mercoledì",Zke="Giovedì",Qke="Venerdì",e$e="Sabato",t$e="CRON non valido",n$e={ra_filter_func:n1e,ra_filter_id:r1e,ra_filter_name:o1e,ra_filter_role:s1e,ra_filter_room:a1e,ra_tooltip_ack:i1e,ra_tooltip_from:l1e,ra_tooltip_lc:c1e,ra_tooltip_quality:d1e,ra_tooltip_ts:u1e,ra_tooltip_user:p1e,ra_tooltip_value:h1e,"ra_Are you sure?":"Sei sicuro?",ra_Cancel:f1e,ra_Copied:m1e,"ra_Copied %s":'"%s" copiato',"ra_Define functions":"Definire le funzioni","ra_Define rooms":"Definisci le stanze",ra_Error:g1e,ra_Message:_1e,ra_Ok:v1e,"ra_Please select object ID...":"Seleziona l'ID oggetto ...",ra_Selected:y1e,"ra_Unknown error!":"Errore sconosciuto!",ra_Value:b1e,ra_filter_type:w1e,ra_invalidConfig:S1e,ra_otherConfig:x1e,ra_tooltip_copyState:k1e,ra_tooltip_customConfig:$1e,ra_tooltip_deleteObject:C1e,ra_tooltip_editObject:E1e,ra_tooltip_editState:T1e,ra_filter_customs:O1e,"ra_Listen on all IPs":"Ascolta su tutti gli IP",ra_dow_Fr:D1e,ra_dow_Mo:A1e,ra_dow_Sa:N1e,ra_dow_Su:M1e,ra_dow_Th:j1e,ra_Save:I1e,"ra_Save and close":"Salva e chiudi",ra_Close:z1e,"ra_Auto (no custom columns)":"Auto (nessuna colonna personalizzata)","ra_Transparent dialog":"Finestra di dialogo trasparente",ra_Width:R1e,ra_val:P1e,ra_buttons:L1e,"ra_Configure visible columns":"Configura colonne visibili","ra_Cannot update attribute, because not found in the object":"Impossibile aggiornare l'attributo, perché non trovato nell'oggetto","ra_Edit object field":"Modifica campo oggetto","ra_Hide empty folders":"Nascondi cartelle vuote","ra_Reload files":"Ricarica i file","ra_Create folder":"Creare una cartella","ra_Upload file":"Caricare un file","ra_User files":"File utente","ra_Confirm deletion of %s":"Conferma l'eliminazione di %s","ra_Delete (no confirm for 5 mins)":"Elimina (nessuna conferma per 5 minuti)",ra_Delete:F1e,"ra_Toggle expert mode":"Attiva / disattiva la modalità esperto","ra_Toggle view mode":"Attiva / disattiva la modalità di visualizzazione",ra_Root:B1e,"ra_Back to %s":"Torna a %s","ra_Place your files here or click here to open the browse dialog":"Posiziona i file qui o fai clic qui per aprire la finestra di dialogo Sfoglia","ra_If no file will be created in the folder, it will disappear after the browser closed":"Se nessun file verrà creato nella cartella, scomparirà dopo la chiusura del browser","ra_Folder name":"Nome della cartella","ra_Create new folder in %s":"Crea nuova cartella in %s","ra_Duplicate name":"Nome duplicato","ra_Invalid parent folder!":"Cartella principale non valida!","ra_Drop file here":"Trascina il file qui","ra_Suppress question for next %s minutes":"Sopprimi la domanda per i prossimi %s minuti","ra_Clear filter":"Filtro pulito",ra_Update:W1e,"ra_Load configuration from file":"Carica la configurazione dal file","ra_Save configuration to file":"Salva la configurazione su file",sc_cron:H1e,sc_date:U1e,sc_dates:V1e,sc_dows:G1e,sc_every:q1e,sc_everyN_dates:J1e,sc_everyN_dows:X1e,sc_everyN_hours:Y1e,sc_everyN_minutes:K1e,sc_everyN_months:Z1e,sc_everyN_seconds:Q1e,sc_every_dates:ewe,sc_every_dows:twe,sc_every_hours:nwe,sc_every_minutes:rwe,sc_every_months:owe,sc_every_seconds:swe,sc_from:awe,sc_hours:iwe,sc_interval:lwe,sc_intervalBetween:cwe,sc_minutes:dwe,sc_months:uwe,sc_once:pwe,sc_period:hwe,sc_seconds:fwe,sc_simple:mwe,sc_specific:gwe,sc_specific_dates:_we,sc_specific_dows:vwe,sc_specific_hours:ywe,sc_specific_minutes:bwe,sc_specific_months:wwe,sc_specific_seconds:Swe,sc_time:xwe,sc_to:kwe,sc_wizard:$we,sch_all:Cwe,sch_astroDay:Ewe,sch_astroNight:Twe,sch_astro_dawn:Owe,sch_astro_dusk:Dwe,sch_astro_goldenHour:Awe,sch_astro_goldenHourEnd:Nwe,sch_astro_nadir:Mwe,sch_astro_nauticalDawn:jwe,sch_astro_nauticalDusk:Iwe,sch_astro_night:zwe,sch_astro_nightEnd:Rwe,sch_astro_solarNoon:Pwe,sch_astro_sunrise:Lwe,sch_astro_sunriseEnd:Fwe,sch_astro_sunset:Bwe,sch_astro_sunsetStart:Wwe,sch_at:Hwe,sch_desc_atTime:Uwe,sch_desc_everyDay:Vwe,sch_desc_everyHour:Gwe,sch_desc_everyMinute:qwe,sch_desc_everyMonth:Jwe,sch_desc_everyNDay:Xwe,sch_desc_everyNHours:Ywe,sch_desc_everyNMinutes:Kwe,sch_desc_everyNMonths:Zwe,sch_desc_everyNWeeks:Qwe,sch_desc_everyNYears:eSe,sch_desc_everyWeek:tSe,sch_desc_everyYear:nSe,sch_desc_intervalFromTo:rSe,sch_desc_never:oSe,sch_desc_onDate:sSe,sch_desc_onDates:aSe,sch_desc_onEveryDate:iSe,sch_desc_onMonth:lSe,sch_desc_onMonths:cSe,sch_desc_onWeekday:dSe,sch_desc_onWeekdays:uSe,sch_desc_onWeekends:pSe,sch_desc_onWorkdays:hSe,sch_desc_onceInPast:fSe,sch_desc_once_on:mSe,sch_desc_validFrom:gSe,sch_desc_validFromTo:_Se,sch_desc_validTo:vSe,sch_every:ySe,sch_exactTime:bSe,sch_from:wSe,sch_fromTo:SSe,sch_intervalTime:xSe,sch_invert:kSe,sch_no_one:$Se,sch_on:CSe,sch_period:ESe,sch_periodDaily:TSe,sch_periodDates:OSe,sch_periodDay:DSe,sch_periodEvery:ASe,sch_periodEveryDay:NSe,sch_periodEveryMonth:MSe,sch_periodEveryWeek:jSe,sch_periodEveryYear:ISe,sch_periodHours:zSe,sch_periodMinutes:RSe,sch_periodMonth:PSe,sch_periodMonthly:LSe,sch_periodOnce:FSe,sch_periodSpecificMonths:BSe,sch_periodWeek:WSe,sch_periodWeekdays:HSe,sch_periodWeekend:USe,sch_periodWeekly:VSe,sch_periodWorkdays:GSe,sch_periodYear:qSe,sch_periodYearly:JSe,sch_specificTime:XSe,sch_time:YSe,sch_to:KSe,sch_valid:ZSe,sch_validFrom:QSe,sch_validTo:exe,sch_wholeDay:txe,sch_yearEveryMonth:nxe,"ra_Define schedule...":"Definisci pianificazione ...",ra_Repeat:rxe,"ra_use seconds":"usa i secondi",ra_close:oxe,ra_dow_Tu:sxe,"ra_Toggle the states view":"Attiva o disattiva la visualizzazione degli stati","ra_Add new child object to selected parent":"Aggiungi un nuovo oggetto figlio al genitore selezionato","ra_Add objects tree from JSON file":"Aggiungi l'albero degli oggetti dal file JSON","ra_Save objects tree as JSON file":"Salva l'albero degli oggetti come file JSON",ra_Objects:axe,ra_States:ixe,ra_object_changed_by_user:lxe,ra_object_changed_by:cxe,ra_state_changed_from:dxe,ra_state_changed_by:uxe,ra_aclOwner_read_object:pxe,ra_aclOwner_read_state:hxe,ra_aclOwner_write_object:fxe,ra_aclOwner_write_state:mxe,ra_aclGroup_read_object:gxe,ra_aclGroup_read_state:_xe,ra_aclGroup_write_object:vxe,ra_aclGroup_write_state:yxe,ra_aclEveryone_read_object:bxe,ra_aclEveryone_read_state:wxe,ra_aclEveryone_write_object:Sxe,ra_aclEveryone_write_state:xxe,"ra_Folders always first":"Le cartelle sono sempre al primo posto",ra_changedFrom:kxe,ra_qualityCode:$xe,ra_timestamp:Cxe,ra_lastChange:Exe,"ra_Owner group":"Gruppo di proprietari","ra_Owner user":"Utente proprietario",ra_Create:Txe,"ra_Changed from":"Cambiato da","ra_Quality code":"Qualità",ra_Timestamp:Oxe,"ra_Last change":"Ultima modifica","ra_Collapse all nodes":"Comprimi tutti i nodi","ra_Edit custom config":"Modifica configurazione personalizzata","ra_Collapse one step node":"Comprimi un livello","ra_Expand one step node":"Espandi un livello","ra_Refresh tree":"Aggiorna l'albero","ra_Expand all nodes":"Espandi tutti i nodi","ra_Deselect all":"Deseleziona tutto","ra_Select all":"Seleziona tutto","ra_%s object(s) processed":"%s oggetti elaborati","ra_Invalid structure":"Struttura non valida","ra_%s was imported":"%s è stato importato","ra_Failed to open JSON File":"Impossibile aprire il file JSON","ra_Only following structures of objects are available:":"Sono disponibili solo le seguenti strutture di oggetti:","ra_Folder → State":"Cartella → Stato","ra_Folder → Channel → State":"Cartella → Canale → Stato","ra_Folder → Device → Channel → State":"Cartella → Dispositivo → Canale → Stato","ra_Device → Channel → State":"Dispositivo → Canale → Stato","ra_Channel → State":"Canale → Stato",'ra_Non-experts may create new objects only in "0_userdata.0" or "alias.0".':'I non esperti possono creare nuovi oggetti solo in "0_userdata.0" o "alias.0".','ra_The experts may create objects everywhere but from second level (e.g. "vis.0" or "javascript.0").':'Gli esperti possono creare oggetti ovunque ma dal secondo livello (es. "Vis.0" o "javascript.0").',ra_expertMode:Dxe,"ra_On weekdays":"Nei giorni della settimana","ra_Drop the files here...":"Trascina qui il file...","ra_Drag 'n' drop some files here, or click to select files":"Trascina e rilascia alcuni file qui o fai clic per selezionare i file",ra_Clear:Axe,"ra_Clear icon":"Cancella icona",ra_none:Nxe,"ra_Select predefined icon":"Seleziona l'icona predefinita","ra_Show lines between rows":"Mostra linee tra le righe","ra_The page you are looking for was not found":"La pagina che stai cercando non è stata trovata","ra_Good luck":"Buona fortuna",'ra_Cannot find "%s"':'Impossibile trovare "%s"','ra_Cannot read "%s"':'Impossibile leggere "%s"',"ra_Background image":"Immagine di sfondo","ra_View: %s":"Visualizza: %s","ra_Copy content":"Copia contenuto",ra_Filter:Mxe,"ra_All objects":"Tutti gli oggetti","ra_Only selected":"Solo selezionato","ra_Change color theme":"Cambia tema colore",ra_daysShortText:jxe,"ra_Instance %s is alive":"Il %s dell'istanza è vivo","ra_Instance %s is not alive":"Il TESTO dell'istanza non è vivo","ra_Used system settings":"Impostazioni di sistema utilizzate","ra_Cannot determine position: System settings are empty and GPS detection is disabled in browser":"Impossibile determinare la posizione: le impostazioni di sistema sono vuote e il rilevamento GPS è disabilitato nel browser","ra_Define schedule":"Definisci programma",ra___different__:Ixe,"ra_Please confirm":"Si prega di confermare","ra_JSON editor":"Editor JSON","ra_System language":"Linguaggio di sistema","ra_Too small":"Troppo piccolo","ra_Too big":"Troppo grande","ra_Passwords are not equal!":"Le password non sono uguali!",ra_repeat:zxe,"ra_You can filter entries by entering here some text":"Puoi filtrare le voci inserendo qui del testo","ra_Show/hide filter input":"Mostra/nascondi input filtro","ra_Cannot add items with set filter":"Impossibile aggiungere elementi con il filtro impostato","ra_Add row":"Aggiungi riga","ra_Move up":"Andare avanti","ra_Move down":"Abbassati","ra_Delete current row":"Elimina la riga corrente","ra_All items are filtered out":"Tutti gli elementi vengono filtrati","ra_Double click to reset table layout":"Fare doppio clic per ripristinare il layout della tabella","ra_Cannot retrieve options, as instance is offline":"Impossibile recuperare le opzioni, poiché l'istanza è offline","ra_File is too big. Max %sk allowed. Try use SVG.":"Il file è troppo grande. Max %sk consentito. Prova a usare SVG.","ra_Cannot upload":"Impossibile caricare",ra_Crop:Rxe,ra_tooltip_comment:Pxe,ra_Disconnected:Lxe,ra_Connected:Fxe,ra_Configure:Bxe,"ra_Invalid CRON":"CRON non valido",ra_Discard:Wxe,"ra_Some data are not stored. Discard?":"Alcuni dati non vengono memorizzati. Scartare?","ra_Filter files":"Filtra i file","ra_Please select file...":"Si prega di selezionare il file...",ra_dow_We:Hxe,ra_fileType_all:Uxe,ra_fileType_audio:Vxe,ra_fileType_code:Gxe,ra_fileType_images:qxe,ra_fileType_txt:Jxe,"ra_fileType_video,":"video",ra_month_Apr:Xxe,ra_month_Aug:Yxe,ra_month_Dec:Kxe,ra_month_Feb:Zxe,ra_month_Jan:Qxe,ra_month_Jul:eke,ra_month_Jun:tke,ra_month_Mai:nke,ra_month_Mar:rke,ra_month_Nov:oke,ra_month_Oct:ske,ra_month_Sep:ake,ra_months_Apr:ike,ra_months_Aug:lke,ra_months_Dec:cke,ra_months_Feb:dke,ra_months_Jan:uke,ra_months_Jul:pke,ra_months_Jun:hke,ra_months_Mai:fke,ra_months_Mar:mke,ra_months_Nov:gke,ra_months_Oct:_ke,ra_months_Sep:vke,"ra_Cannot decode license":"Impossibile decodificare la licenza","ra_Invalid answer from server":"Risposta non valida dal server","ra_License %s":"Licenza %s","ra_License does not exist":"La licenza non esiste","ra_License expired on %s":"Licenza scaduta il %s",'ra_License for other product "%s"':'Licenza per altro prodotto "%s"',"ra_License is for version %s, but required version is %s.":"La licenza è per la versione %s, ma la versione richiesta è %s.",'ra_Serial number (UUID) "%s" in license is for other device.':'Il numero di serie (UUID) "%s" nella licenza è per un altro dispositivo.',"ra_Serial number (UUID)":"Numero di serie (UUID)","ra_Check license":"Controlla la licenza","ra_Request timed out":"Tempo scaduto per la richiesta","ra_Instance is not alive":"L'istanza non è viva","ra_Show/Hide object descriptions":"Mostra/Nascondi le descrizioni degli oggetti","ra_Use system settings for position":"Usa le impostazioni di sistema per la posizione",ra_Longitude:yke,ra_Latitude:bke,"ra_Take browser position":"Prendi posizione dal browser","ra_Take position from system settings":"Prendi posizione dalle impostazioni di sistema","ra_Port is already used by %s":"La porta è già utilizzata da %s","ra_Port could be used by %s":"La porta potrebbe essere utilizzata da %s",ra_filter_customs_without:wke,"ra_Use iobroker.acme adapter for letsencrypt certificates":"Utilizzare l'adattatore iobroker.acme per i certificati letsencrypt","ra_Do not use let's encrypt":"Non utilizzare crittografiamo","ra_Use all available let's encrypt certificates":"Usa tutti i certificati Let's Encrypt disponibili","ra_Public certificate":"Certificato pubblico","ra_Private certificate":"Certificato privato","ra_Chained certificate":"Certificato incatenato","ra_Suitable license not found in license manager":"Licenza adatta non trovata nel gestore delle licenze","ra_Please enter the license":"Inserisci la licenza",ra_Checked:Ske,ra_locally:xke,"ra_via internet":"attraverso internet",ra_Yes:kke,"ra_License not found in license manager. Do you want to read licenses from iobroker.net?":"Licenza non trovata nel gestore delle licenze. Vuoi aggiornare le licenze da iobroker.net?","ra_Fallback custom certificates":"Certificati personalizzati di fallback","ra_Clone current row":"Clona riga corrente",ra_fileType_video:$ke,ra_select_folder_hint:Cke,"ra_Accept license":"Accetta licenza","ra_License agreement":"Contratto di licenza","ra_Import from %s":"Importa da %s","ra_Export data to %s file":"Esporta i dati nel file %s","ra_Import data from %s file":"Importa i dati dal file %s","ra_No data found in file":"Nessun dato trovato nel file","ra_Append or replace?":"Aggiungere o sostituire?","ra_Append %s entries or replace existing?":"Aggiungi %s voci o sostituisci quelle esistenti?",ra_Replace:Eke,ra_Append:Tke,'ra_May not trigger "updateLicenses"':'Potrebbe non attivare "updateLicenses"',"ra_Unknown error":"Errore sconosciuto","ra_License must be converted":"La licenza deve essere convertita in una versione più recente. Puoi farlo nel tuo profilo iobroker.net.","ra_No one license found in license manager":"Nessuna licenza trovata nel gestore delle licenze","ra_Please create license":"Si prega di creare la licenza",ra_Product:Oke,ra_Version:Dke,ra_ValidTill:Ake,ra_Commercial:Nke,"ra_Not a number":"Non un numero","ra_Edit value":"Modifica valore","ra_Edit ACL":"Modifica ACL","ra_Edit role":"Modifica ruolo","ra_Edit function":"Funzione di modifica","ra_Edit room":"Modifica stanza","ra_Edit alias":"Modifica alias","ra_View file":"Vedi il file",ra_Del:Mke,"ra_Show all folders":"Mostra tutte le cartelle","ra_Restrict to folder":"Limita alla cartella","ra_Select type of export":"Seleziona il tipo di esportazione","ra_You can export all objects or just the selected branch.":"Puoi esportare tutti gli oggetti o solo il ramo selezionato.","ra_Do not export values of states":"Non esportare i valori degli stati","ra_Selected %s object(s)":"%s oggetto/i selezionato/i",ra_create_device:jke,ra_create_channel:Ike,ra_create_state:zke,ra_create_string_state:Rke,ra_create_number_state:Pke,ra_create_boolean_state:Lke,"ra_Select color":"Seleziona il colore","ra_Cannot read licenses: %s":"Impossibile leggere le licenze: %s","ra_Advanced options":"Opzioni avanzate",sc_everyN_dow:Fke,sc_every_dow:Bke,sc_specific_dow:Wke,ra_Name:Hke,"ra_import data from %s file":"Importa dati dal file %s","ra_Invalid JSON":"JSON non valido","ra_Create alias":"Crea alias",ra_Categories:Uke,"ra_%s links from aliases":"%s link da alias",ra_warning_every_second:Vke,ra_warning_every_minute:Gke,"ra_The schedule will be executed every second. Are you sure?":"La pianificazione verrà eseguita ogni secondo. Sei sicuro?","ra_The schedule will be executed every minute. Are you sure?":"La pianificazione verrà eseguita ogni minuto. Sei sicuro?",sc_dow:qke,"ra_Define CRON...":"Definisci CRON...",ra_Sunday:Jke,ra_Monday:Xke,ra_Tuesday:Yke,ra_Wednesday:Kke,ra_Thursday:Zke,ra_Friday:Qke,ra_Saturday:e$e,sc_invalid_cron:t$e},r$e="Función",o$e="ID",s$e="Nombre",a$e="Papel",i$e="Habitación",l$e="Bandera reconocida",c$e="Desde",d$e="Último cambio",u$e="Calidad",p$e="Sello de tiempo",h$e="Usuario",f$e="Valor",m$e="Cancelar",g$e="Copiado",_$e="Error",v$e="Mensaje",y$e="Okay",b$e="Seleccionado",w$e="Valor",S$e="Tipo",x$e="Configuraciones inválidas",k$e="Configuraciones de otro adaptador %s",$$e="Copie el valor del estado",C$e="Ajustes personalizados",E$e="Eliminar objeto",T$e="Editar objeto",O$e="Edite el valor del estado",D$e="Configuraciones",A$e="Fr",N$e="Mes",M$e="Sa",j$e="Su",I$e="Th",z$e="Salvar",R$e="Cerca",P$e="Anchura",L$e="Valor",F$e="Botones",B$e="Eliminar",W$e="Raíz",H$e="Actualizar",U$e="CRON",V$e="Fecha",G$e="fechas",q$e="Día de la semana",J$e="Cada",X$e="cada N días",Y$e="cada N día de la semana",K$e="cada N horas",Z$e="cada N minutos",Q$e="cada N meses",eCe="cada N segundos",tCe="cada día",nCe="Cada día de la semana",rCe="cada hora",oCe="cada minuto",sCe="cada mes",aCe="cada segundo",iCe="De",lCe="Horas",cCe="Intervalo",dCe="Intervalo entre",uCe="Minutos",pCe="meses",hCe="Una vez",fCe="Período",mCe="Segundos",gCe="Sencillo",_Ce="Tiempo específico",vCe="fechas especificas",yCe="día específico de semanas",bCe="horas específicas",wCe="minutos específicos",SCe="meses específicos",xCe="segundos específicos",kCe="Hora",$Ce="A",CCe="Mago",ECe="todas",TCe="Día astro",OCe="Noche astro",DCe="Amanecer",ACe="Oscuridad",NCe="hora dorada",MCe="Fin de la hora dorada",jCe="Nadir",ICe="Amanecer náutico",zCe="Anochecer náutico",RCe="Noche",PCe="Fin de la noche",LCe="Mediodía solar",FCe="amanecer",BCe="Fin del amanecer",WCe="Puesta de sol",HCe="Puesta de sol",UCe="a",VCe="en %s",GCe="cada día",qCe="cada hora",JCe="cada minuto",XCe="cada mes",YCe="cada %s días",KCe="cada %s horas",ZCe="cada %s minutos",QCe="cada %s meses",e2e="cada %s semanas",t2e="cada %s años",n2e="cada semana",r2e="todos los años",o2e="de %s a %s",s2e="Nunca",a2e="en %s de %s",i2e="en %s y %s de",l2e="en cada fecha de",c2e="%s",d2e="%s y %s",u2e="en %s",p2e="en %s y %s",h2e="en los fines de semana",f2e="en días laborables",m2e="ya no se ejecutará más, porque el inicio está en el pasado",g2e="en %s",_2e="de %s",v2e="Ejecutar desde hasta",y2e="a %s",b2e="cada",w2e="Tiempo específico",S2e="de",x2e="De-a",k2e="Tiempo de intervalo",$2e="invertir; poner boca abajo o en la posición opuesta, orden o arreglo; Boca abajo",C2e="ninguna",E2e="en",T2e="Período",O2e="Diario",D2e="fechas",A2e="Día",N2e="Cada",M2e="Cada día",j2e="Cada mes",I2e="Cada semana",z2e="Todos los años",R2e="Horas",P2e="Minutos",L2e="mes",F2e="Mensual",B2e="Una vez",W2e="Meses específicos",H2e="Semana",U2e="Días laborables",V2e="Fin de semana",G2e="Semanal",q2e="Días laborables",J2e="Año",X2e="Anual",Y2e="Tiempo específico",K2e="Hora",Z2e="a",Q2e="Válido",eEe="de",tEe="a",nEe="Todo el dia",rEe="cada mes",oEe="Repetir",sEe="cerrar",aEe="Tu",iEe="Objetos",lEe="Estados",cEe="Objeto cambiado por última vez a las",dEe="Objeto cambiado por",uEe="Objeto cambiado de",pEe="Estado cambiado por",hEe="El propietario puede leer el objeto",fEe="El propietario puede leer el estado",mEe="El propietario puede escribir el objeto",gEe="El propietario puede escribir el estado",_Ee="El grupo puede leer el objeto",vEe="El grupo puede leer el estado",yEe="El grupo puede escribir un objeto",bEe="El grupo puede escribir el estado",wEe="Todo el mundo puede leer el objeto",SEe="Todos pueden leer el estado",xEe="Todos pueden escribir objetos",kEe="Todos pueden escribir el estado",$Ee="Cambiaron desde",CEe="Código de calidad",EEe="Marca de tiempo",TEe="Ultimo cambio",OEe="Crear",DEe="Marca de tiempo",AEe="Modo experto",NEe="Borrar",MEe="ninguno",jEe="Filtrar",IEe="d.",zEe="diferente",REe="repetir",PEe="Cultivo",LEe="Comentario",FEe="Desconectado",BEe="Conectado",WEe="Configurar",HEe="Desechar",UEe="Nosotros",VEe="Todos los archivos",GEe="Audio",qEe="Código/JSON",JEe="Imágenes",XEe="Texto",YEe="Abr",KEe="Ago",ZEe="Dic",QEe="Feb",eTe="Ene",tTe="Jul",nTe="Jun",rTe="Mai",oTe="Mar",sTe="Nov",aTe="Oct",iTe="Sep",lTe="Abr",cTe="Ago",dTe="Dic",uTe="Feb",pTe="Ene",hTe="Jul",fTe="Jun",mTe="Mai",gTe="Mar",_Te="Nov",vTe="Oct",yTe="Sep",bTe="Longitud",wTe="Latitud",STe="sin",xTe="Comprobado",kTe="en la zona",$Te="Sí",CTe="Video",ETe='Para seleccionar la carpeta, simplemente mantenga presionada la tecla "shift" haciendo clic en la carpeta.',TTe="Reemplazar",OTe="Adjuntar",DTe="Producto",ATe="Versión",NTe="Válida hasta",MTe="Comercial",jTe="Delete",ITe="Crear dispositivo",zTe="Crear canal",RTe="Crear estado",PTe="Crear estado de cadena",LTe="Crear estado numérico",FTe="Crear estado booleano",BTe="cada enésimo día de la semana",WTe="Cada día de la semana",HTe="día(s) específico(s) de la semana",UTe="Nombre",VTe="Categorías",GTe="Advertencia: ¡El trabajo CRON se ejecutará cada segundo durante el período especificado!",qTe="Advertencia: ¡El trabajo CRON se ejecutará cada minuto durante el período especificado!",JTe="Día",XTe="Domingo",YTe="Lunes",KTe="Martes",ZTe="Miércoles",QTe="Jueves",eOe="Viernes",tOe="Sábado",nOe="CRON no válido",rOe={ra_filter_func:r$e,ra_filter_id:o$e,ra_filter_name:s$e,ra_filter_role:a$e,ra_filter_room:i$e,ra_tooltip_ack:l$e,ra_tooltip_from:c$e,ra_tooltip_lc:d$e,ra_tooltip_quality:u$e,ra_tooltip_ts:p$e,ra_tooltip_user:h$e,ra_tooltip_value:f$e,"ra_Are you sure?":"¿Estás seguro?",ra_Cancel:m$e,ra_Copied:g$e,"ra_Copied %s":'Copiado "%s"',"ra_Define functions":"Definir funciones","ra_Define rooms":"Definir habitaciones",ra_Error:_$e,ra_Message:v$e,ra_Ok:y$e,"ra_Please select object ID...":"Por favor seleccione ID de objeto ...",ra_Selected:b$e,"ra_Unknown error!":"¡Error desconocido!",ra_Value:w$e,ra_filter_type:S$e,ra_invalidConfig:x$e,ra_otherConfig:k$e,ra_tooltip_copyState:$$e,ra_tooltip_customConfig:C$e,ra_tooltip_deleteObject:E$e,ra_tooltip_editObject:T$e,ra_tooltip_editState:O$e,ra_filter_customs:D$e,"ra_Listen on all IPs":"Escuche en todas las IP",ra_dow_Fr:A$e,ra_dow_Mo:N$e,ra_dow_Sa:M$e,ra_dow_Su:j$e,ra_dow_Th:I$e,ra_Save:z$e,"ra_Save and close":"Guardar y cerrar",ra_Close:R$e,"ra_Auto (no custom columns)":"Automático (sin columnas personalizadas)","ra_Transparent dialog":"Diálogo transparente",ra_Width:P$e,ra_val:L$e,ra_buttons:F$e,"ra_Configure visible columns":"Configurar columnas visibles","ra_Cannot update attribute, because not found in the object":"No se puede actualizar el atributo porque no se encuentra en el objeto","ra_Edit object field":"Editar campo de objeto","ra_Hide empty folders":"Ocultar carpetas vacías","ra_Reload files":"Recargar archivos","ra_Create folder":"Crear carpeta","ra_Upload file":"Subir archivo","ra_User files":"Archivos de usuario","ra_Confirm deletion of %s":"Confirmar la eliminación de %s","ra_Delete (no confirm for 5 mins)":"Eliminar (sin confirmar durante 5 minutos)",ra_Delete:B$e,"ra_Toggle expert mode":"Alternar modo experto","ra_Toggle view mode":"Alternar modo de vista",ra_Root:W$e,"ra_Back to %s":"Volver a %s","ra_Place your files here or click here to open the browse dialog":"Coloque sus archivos aquí o haga clic aquí para abrir el cuadro de diálogo de exploración","ra_If no file will be created in the folder, it will disappear after the browser closed":"Si no se creará ningún archivo en la carpeta, desaparecerá después de que se cierre el navegador.","ra_Folder name":"Nombre de la carpeta","ra_Create new folder in %s":"Crear nueva carpeta en %s","ra_Duplicate name":"Nombre duplicado","ra_Invalid parent folder!":"Carpeta principal no válida.","ra_Drop file here":"Suelta el archivo aquí","ra_Suppress question for next %s minutes":"Suprimir pregunta durante los próximos %s minutos","ra_Clear filter":"Filtro claro",ra_Update:H$e,"ra_Load configuration from file":"Cargar configuración desde archivo","ra_Save configuration to file":"Guardar configuración en archivo",sc_cron:U$e,sc_date:V$e,sc_dates:G$e,sc_dows:q$e,sc_every:J$e,sc_everyN_dates:X$e,sc_everyN_dows:Y$e,sc_everyN_hours:K$e,sc_everyN_minutes:Z$e,sc_everyN_months:Q$e,sc_everyN_seconds:eCe,sc_every_dates:tCe,sc_every_dows:nCe,sc_every_hours:rCe,sc_every_minutes:oCe,sc_every_months:sCe,sc_every_seconds:aCe,sc_from:iCe,sc_hours:lCe,sc_interval:cCe,sc_intervalBetween:dCe,sc_minutes:uCe,sc_months:pCe,sc_once:hCe,sc_period:fCe,sc_seconds:mCe,sc_simple:gCe,sc_specific:_Ce,sc_specific_dates:vCe,sc_specific_dows:yCe,sc_specific_hours:bCe,sc_specific_minutes:wCe,sc_specific_months:SCe,sc_specific_seconds:xCe,sc_time:kCe,sc_to:$Ce,sc_wizard:CCe,sch_all:ECe,sch_astroDay:TCe,sch_astroNight:OCe,sch_astro_dawn:DCe,sch_astro_dusk:ACe,sch_astro_goldenHour:NCe,sch_astro_goldenHourEnd:MCe,sch_astro_nadir:jCe,sch_astro_nauticalDawn:ICe,sch_astro_nauticalDusk:zCe,sch_astro_night:RCe,sch_astro_nightEnd:PCe,sch_astro_solarNoon:LCe,sch_astro_sunrise:FCe,sch_astro_sunriseEnd:BCe,sch_astro_sunset:WCe,sch_astro_sunsetStart:HCe,sch_at:UCe,sch_desc_atTime:VCe,sch_desc_everyDay:GCe,sch_desc_everyHour:qCe,sch_desc_everyMinute:JCe,sch_desc_everyMonth:XCe,sch_desc_everyNDay:YCe,sch_desc_everyNHours:KCe,sch_desc_everyNMinutes:ZCe,sch_desc_everyNMonths:QCe,sch_desc_everyNWeeks:e2e,sch_desc_everyNYears:t2e,sch_desc_everyWeek:n2e,sch_desc_everyYear:r2e,sch_desc_intervalFromTo:o2e,sch_desc_never:s2e,sch_desc_onDate:a2e,sch_desc_onDates:i2e,sch_desc_onEveryDate:l2e,sch_desc_onMonth:c2e,sch_desc_onMonths:d2e,sch_desc_onWeekday:u2e,sch_desc_onWeekdays:p2e,sch_desc_onWeekends:h2e,sch_desc_onWorkdays:f2e,sch_desc_onceInPast:m2e,sch_desc_once_on:g2e,sch_desc_validFrom:_2e,sch_desc_validFromTo:v2e,sch_desc_validTo:y2e,sch_every:b2e,sch_exactTime:w2e,sch_from:S2e,sch_fromTo:x2e,sch_intervalTime:k2e,sch_invert:$2e,sch_no_one:C2e,sch_on:E2e,sch_period:T2e,sch_periodDaily:O2e,sch_periodDates:D2e,sch_periodDay:A2e,sch_periodEvery:N2e,sch_periodEveryDay:M2e,sch_periodEveryMonth:j2e,sch_periodEveryWeek:I2e,sch_periodEveryYear:z2e,sch_periodHours:R2e,sch_periodMinutes:P2e,sch_periodMonth:L2e,sch_periodMonthly:F2e,sch_periodOnce:B2e,sch_periodSpecificMonths:W2e,sch_periodWeek:H2e,sch_periodWeekdays:U2e,sch_periodWeekend:V2e,sch_periodWeekly:G2e,sch_periodWorkdays:q2e,sch_periodYear:J2e,sch_periodYearly:X2e,sch_specificTime:Y2e,sch_time:K2e,sch_to:Z2e,sch_valid:Q2e,sch_validFrom:eEe,sch_validTo:tEe,sch_wholeDay:nEe,sch_yearEveryMonth:rEe,"ra_Define schedule...":"Definir horario ...",ra_Repeat:oEe,"ra_use seconds":"usar segundos",ra_close:sEe,ra_dow_Tu:aEe,"ra_Toggle the states view":"Alternar la vista de estados","ra_Add new child object to selected parent":"Agregar nuevo objeto hijo al padre seleccionado","ra_Add objects tree from JSON file":"Agregar árbol de objetos desde el archivo JSON","ra_Save objects tree as JSON file":"Guardar el árbol de objetos como archivo JSON",ra_Objects:iEe,ra_States:lEe,ra_object_changed_by_user:cEe,ra_object_changed_by:dEe,ra_state_changed_from:uEe,ra_state_changed_by:pEe,ra_aclOwner_read_object:hEe,ra_aclOwner_read_state:fEe,ra_aclOwner_write_object:mEe,ra_aclOwner_write_state:gEe,ra_aclGroup_read_object:_Ee,ra_aclGroup_read_state:vEe,ra_aclGroup_write_object:yEe,ra_aclGroup_write_state:bEe,ra_aclEveryone_read_object:wEe,ra_aclEveryone_read_state:SEe,ra_aclEveryone_write_object:xEe,ra_aclEveryone_write_state:kEe,"ra_Folders always first":"Carpetas siempre primero",ra_changedFrom:$Ee,ra_qualityCode:CEe,ra_timestamp:EEe,ra_lastChange:TEe,"ra_Owner group":"Grupo propietario","ra_Owner user":"Usuario propietario",ra_Create:OEe,"ra_Changed from":"Cambiaron desde","ra_Quality code":"Calidad",ra_Timestamp:DEe,"ra_Last change":"Ultimo cambio","ra_Collapse all nodes":"Contraer todos los nodos","ra_Edit custom config":"Editar configuración personalizada","ra_Collapse one step node":"Contraer un nivel","ra_Expand one step node":"Expandir un nivel","ra_Refresh tree":"Actualizar árbol","ra_Expand all nodes":"Expandir todos los nodos","ra_Deselect all":"Deselecciona todo","ra_Select all":"Seleccionar todo","ra_%s object(s) processed":"%s objeto(s) procesados","ra_Invalid structure":"Estructura inválida","ra_%s was imported":"%s fue importado","ra_Failed to open JSON File":"No se pudo abrir el archivo JSON","ra_Only following structures of objects are available:":"Solo están disponibles las siguientes estructuras de objetos:","ra_Folder → State":"Carpeta → Estado","ra_Folder → Channel → State":"Carpeta → Canal → Estado","ra_Folder → Device → Channel → State":"Carpeta → Dispositivo → Canal → Estado","ra_Device → Channel → State":"Dispositivo → Canal → Estado","ra_Channel → State":"Canal → Estado",'ra_Non-experts may create new objects only in "0_userdata.0" or "alias.0".':'Los no expertos pueden crear nuevos objetos solo en "0_userdata.0" o "alias.0".','ra_The experts may create objects everywhere but from second level (e.g. "vis.0" or "javascript.0").':'Los expertos pueden crear objetos en todas partes excepto desde el segundo nivel (por ejemplo, "vis.0" o "javascript.0").',ra_expertMode:AEe,"ra_On weekdays":"De lunes a viernes","ra_Drop the files here...":"Suelta el archivo aquí ...","ra_Drag 'n' drop some files here, or click to select files":"Arrastre y suelte algunos archivos aquí, o haga clic para seleccionar archivos",ra_Clear:NEe,"ra_Clear icon":"Icono claro",ra_none:MEe,"ra_Select predefined icon":"Seleccionar icono predefinido","ra_Show lines between rows":"Mostrar líneas entre filas","ra_The page you are looking for was not found":"No se encontró la página que busca","ra_Good luck":"Buena suerte",'ra_Cannot find "%s"':'No se puede encontrar "%s"','ra_Cannot read "%s"':'No se puede leer "%s"',"ra_Background image":"Imagen de fondo","ra_View: %s":"Ver: %s","ra_Copy content":"Copiar contenido",ra_Filter:jEe,"ra_All objects":"Todos los objetos","ra_Only selected":"Solo seleccionados","ra_Change color theme":"Cambiar tema de color",ra_daysShortText:IEe,"ra_Instance %s is alive":"Instancia %s está vivo","ra_Instance %s is not alive":"Instancia %s no está vivo","ra_Used system settings":"Configuraciones del sistema usadas","ra_Cannot determine position: System settings are empty and GPS detection is disabled in browser":"No se puede determinar la posición: la configuración del sistema está vacía y la detección de GPS está deshabilitada en el navegador","ra_Define schedule":"Definir horario",ra___different__:zEe,"ra_Please confirm":"Por favor confirmar","ra_JSON editor":"editor JSON","ra_System language":"Lenguaje del sistema","ra_Too small":"Demasiado pequeña","ra_Too big":"Demasiado grande","ra_Passwords are not equal!":"¡Las contraseñas no son iguales!",ra_repeat:REe,"ra_You can filter entries by entering here some text":"Puede filtrar las entradas ingresando aquí algún texto","ra_Show/hide filter input":"Mostrar/ocultar entrada de filtro","ra_Cannot add items with set filter":"No se pueden agregar elementos con el filtro establecido","ra_Add row":"Añadir fila","ra_Move up":"Ascender","ra_Move down":"Mover hacia abajo","ra_Delete current row":"Eliminar fila actual","ra_All items are filtered out":"Todos los elementos se filtran","ra_Double click to reset table layout":"Haga doble clic para restablecer el diseño de la tabla","ra_Cannot retrieve options, as instance is offline":"No se pueden recuperar las opciones, ya que la instancia está fuera de línea","ra_File is too big. Max %sk allowed. Try use SVG.":"El archivo es demasiado grande. Máximo de %sk permitido. Intenta usar SVG.","ra_Cannot upload":"no se puede cargar",ra_Crop:PEe,ra_tooltip_comment:LEe,ra_Disconnected:FEe,ra_Connected:BEe,ra_Configure:WEe,"ra_Invalid CRON":"CRON no válido",ra_Discard:HEe,"ra_Some data are not stored. Discard?":"Algunos datos no se almacenan. ¿Desechar?","ra_Filter files":"Filtrar archivos","ra_Please select file...":"Seleccione el archivo...",ra_dow_We:UEe,ra_fileType_all:VEe,ra_fileType_audio:GEe,ra_fileType_code:qEe,ra_fileType_images:JEe,ra_fileType_txt:XEe,"ra_fileType_video,":"Video",ra_month_Apr:YEe,ra_month_Aug:KEe,ra_month_Dec:ZEe,ra_month_Feb:QEe,ra_month_Jan:eTe,ra_month_Jul:tTe,ra_month_Jun:nTe,ra_month_Mai:rTe,ra_month_Mar:oTe,ra_month_Nov:sTe,ra_month_Oct:aTe,ra_month_Sep:iTe,ra_months_Apr:lTe,ra_months_Aug:cTe,ra_months_Dec:dTe,ra_months_Feb:uTe,ra_months_Jan:pTe,ra_months_Jul:hTe,ra_months_Jun:fTe,ra_months_Mai:mTe,ra_months_Mar:gTe,ra_months_Nov:_Te,ra_months_Oct:vTe,ra_months_Sep:yTe,"ra_Cannot decode license":"No se puede decodificar la licencia","ra_Invalid answer from server":"Respuesta inválida del servidor","ra_License %s":"Licencia %s","ra_License does not exist":"La licencia no existe","ra_License expired on %s":"La licencia venció el %s",'ra_License for other product "%s"':'Licencia para otro producto "%s"',"ra_License is for version %s, but required version is %s.":"La licencia es para la versión %s, pero la versión requerida es %s.",'ra_Serial number (UUID) "%s" in license is for other device.':'El número de serie (UUID) "%s" en la licencia es para otro dispositivo.',"ra_Serial number (UUID)":"Número de serie (UUID)","ra_Check license":"Verificar licencia","ra_Request timed out":"Tiempo de espera agotado","ra_Instance is not alive":"La instancia no está viva","ra_Show/Hide object descriptions":"Mostrar/ocultar descripciones de objetos","ra_Use system settings for position":"Usar la configuración del sistema para la posición",ra_Longitude:bTe,ra_Latitude:wTe,"ra_Take browser position":"Tomar posición desde el navegador","ra_Take position from system settings":"Tomar posición desde la configuración del sistema","ra_Port is already used by %s":"El puerto ya está en uso por %s","ra_Port could be used by %s":"El puerto podría ser utilizado por %s",ra_filter_customs_without:STe,"ra_Use iobroker.acme adapter for letsencrypt certificates":"Use el adaptador iobroker.acme para los certificados de letsencrypt","ra_Do not use let's encrypt":"No use vamos a cifrar","ra_Use all available let's encrypt certificates":"Utilice todos los certificados let's encrypt disponibles","ra_Public certificate":"Certificado público","ra_Private certificate":"certificado privado","ra_Chained certificate":"certificado encadenado","ra_Suitable license not found in license manager":"Licencia adecuada no encontrada en el administrador de licencias","ra_Please enter the license":"Por favor ingrese la licencia",ra_Checked:xTe,ra_locally:kTe,"ra_via internet":"vía Internet",ra_Yes:$Te,"ra_License not found in license manager. Do you want to read licenses from iobroker.net?":"Licencia no encontrada en el administrador de licencias. ¿Quieres actualizar las licencias de iobroker.net?","ra_Fallback custom certificates":"Certificados personalizados alternativos","ra_Clone current row":"Clonar fila actual",ra_fileType_video:CTe,ra_select_folder_hint:ETe,"ra_Accept license":"Aceptar licencia","ra_License agreement":"Acuerdo de licencia","ra_Import from %s":"Importar desde %s","ra_Export data to %s file":"Exportar datos al archivo %s","ra_Import data from %s file":"Importar datos del archivo %s","ra_No data found in file":"No se encontraron datos en el archivo","ra_Append or replace?":"¿Agregar o reemplazar?","ra_Append %s entries or replace existing?":"¿Agregar %s entradas o reemplazar las existentes?",ra_Replace:TTe,ra_Append:OTe,'ra_May not trigger "updateLicenses"':'No puede activar "updateLicenses"',"ra_Unknown error":"Error desconocido","ra_License must be converted":"La licencia debe convertirse a una versión más reciente. Puedes hacerlo en tu perfil de iobroker.net.","ra_No one license found in license manager":"No se encontró ninguna licencia en el administrador de licencias","ra_Please create license":"Por favor cree una licencia",ra_Product:DTe,ra_Version:ATe,ra_ValidTill:NTe,ra_Commercial:MTe,"ra_Not a number":"No un número","ra_Edit value":"Editar valor","ra_Edit ACL":"Editar LCA","ra_Edit role":"Editar rol","ra_Edit function":"Función de edición","ra_Edit room":"Cuarto de edición","ra_Edit alias":"Editar alias","ra_View file":"Ver archivo",ra_Del:jTe,"ra_Show all folders":"Mostrar todas las carpetas","ra_Restrict to folder":"Restringir a carpeta","ra_Select type of export":"Seleccione tipo de exportación","ra_You can export all objects or just the selected branch.":"Puede exportar todos los objetos o solo la rama seleccionada.","ra_Do not export values of states":"No exportar valores de estados.","ra_Selected %s object(s)":"%s objetos seleccionados",ra_create_device:ITe,ra_create_channel:zTe,ra_create_state:RTe,ra_create_string_state:PTe,ra_create_number_state:LTe,ra_create_boolean_state:FTe,"ra_Select color":"Seleccionar el color","ra_Cannot read licenses: %s":"No se pueden leer licencias: %s","ra_Advanced options":"Opciones avanzadas",sc_everyN_dow:BTe,sc_every_dow:WTe,sc_specific_dow:HTe,ra_Name:UTe,"ra_import data from %s file":"Importar datos del archivo %s","ra_Invalid JSON":"JSON no válido","ra_Create alias":"Crear alias",ra_Categories:VTe,"ra_%s links from aliases":"%s enlaces de alias",ra_warning_every_second:GTe,ra_warning_every_minute:qTe,"ra_The schedule will be executed every second. Are you sure?":"El cronograma se ejecutará cada segundo. ¿Estás seguro?","ra_The schedule will be executed every minute. Are you sure?":"El cronograma se ejecutará cada minuto. ¿Estás seguro?",sc_dow:JTe,"ra_Define CRON...":"Definir CRON...",ra_Sunday:XTe,ra_Monday:YTe,ra_Tuesday:KTe,ra_Wednesday:ZTe,ra_Thursday:QTe,ra_Friday:eOe,ra_Saturday:tOe,sc_invalid_cron:nOe},oOe="Funkcjonować",sOe="ID",aOe="Imię",iOe="Rola",lOe="Sala",cOe="Potwierdzon",dOe="Z",uOe="Ostatnia zmiana",pOe="Jakość",hOe="Znak czasu",fOe="Użytkownik",mOe="Wartość",gOe="Anuluj",_Oe="Skopiowano",vOe="Błąd",yOe="Wiadomość",bOe="Dobrze",wOe="Wybrany",SOe="Wartość",xOe="Rodzaj",kOe="Nieprawidłowe ustawienia",$Oe="Ustawienia z innego adaptera %s",COe="Skopiuj wartość stanu",EOe="Własne ustawienia",TOe="Usuń obiekt",OOe="Edytuj obiekt",DOe="Edytuj wartość stanu",AOe="Ustawienia",NOe="Ks",MOe="Mo",jOe="Sa",IOe="Su",zOe="Th",ROe="Zapisać",POe="Blisko",LOe="Szerokość",FOe="Wartość",BOe="guziki",WOe="Usunąć",HOe="Korzeń",UOe="Aktualizacja",VOe="CRON",GOe="Data",qOe="Daktyle",JOe="Dzień tygodnia",XOe="Każdy",YOe="co N dni",KOe="co N dnia tygodnia",ZOe="co N godzin",QOe="co N minut",e4e="co N miesięcy",t4e="co N sekund",n4e="codziennie",r4e="każdy dzień tygodnia",o4e="co godzinę",s4e="każda minuta",a4e="każdego miesiąca",i4e="każda sekunda",l4e="Od",c4e="godziny",d4e="Interwał",u4e="Interwał między",p4e="Minuty",h4e="miesięcy",f4e="Pewnego razu",m4e="Kropka",g4e="sekundy",_4e="Prosty",v4e="Określony czas",y4e="konkretne daty",b4e="określony dzień tygodni",w4e="określone godziny",S4e="określone minuty",x4e="określone miesiące",k4e="określone sekundy",$4e="Czas",C4e="Do",E4e="Czarodziej",T4e="wszystko",O4e="Dzień Astro",D4e="Noc Astro",A4e="Świt",N4e="Zmierzch",M4e="złota godzina",j4e="Koniec złotej godziny",I4e="Nadir",z4e="Morski świt",R4e="Morski zmierzch",P4e="Noc",L4e="Koniec nocy",F4e="Południe słoneczne",B4e="wschód słońca",W4e="Koniec wschodu słońca",H4e="Zachód słońca",U4e="Początek zachodu słońca",V4e="w",G4e="na %s",q4e="codziennie",J4e="co godzinę",X4e="każda minuta",Y4e="każdego miesiąca",K4e="każdego dnia %s",Z4e="co %s godzin",Q4e="co %s minut",eDe="co %s miesięcy",tDe="co %s tygodni",nDe="co %s lat",rDe="co tydzień",oDe="każdego roku",sDe="od %s do %s",aDe="nigdy",iDe="na %s z %s",lDe="na %s i %s z",cDe="w każdą datę",dDe="%s",uDe="%s i %s",pDe="na %s",hDe="na %s i %s",fDe="w weekendy",mDe="w dni robocze",gDe="nie będzie już wykonywany, ponieważ start jest w przeszłości",_De="na %s",vDe="z %s",yDe="Wykonaj od do",bDe="do %s",wDe="każdy",SDe="Określony czas",xDe="od",kDe="Od-do",$De="Czas przerwy",CDe="odwracać",EDe="Żaden",TDe="na",ODe="Kropka",DDe="Codziennie",ADe="Daktyle",NDe="Dzień",MDe="Każdy",jDe="Codziennie",IDe="Każdego miesiąca",zDe="Co tydzień",RDe="Każdego roku",PDe="godziny",LDe="Minuty",FDe="miesiąc",BDe="Miesięczny",WDe="Pewnego razu",HDe="Określone miesiące",UDe="Tydzień",VDe="Dni powszednie",GDe="Weekend",qDe="Co tydzień",JDe="Dni robocze",XDe="Rok",YDe="Rocznie",KDe="Określony czas",ZDe="Czas",QDe="do",e3e="Ważny",t3e="od",n3e="do",r3e="Cały dzień",o3e="każdego miesiąca",s3e="Powtarzać",a3e="blisko",i3e="Tu",l3e="Obiekty",c3e="Stany",d3e="Obiekt ostatnio zmieniony o godz",u3e="Obiekt zmieniony przez",p3e="Obiekt zmieniony z",h3e="Stan zmieniony przez",f3e="Właściciel może czytać obiekt",m3e="Właściciel może odczytać stan",g3e="Właściciel może napisać obiekt",_3e="Właściciel może pisać stan",v3e="Grupa może odczytać obiekt",y3e="Grupa może odczytać stan",b3e="Grupa może pisać obiekt",w3e="Grupa może pisać stan",S3e="Każdy może czytać obiekt",x3e="Każdy może czytać stan",k3e="Każdy może pisać przedmiot",$3e="Każdy może pisać stan",C3e="Zmieniony z",E3e="Kod jakości",T3e="Znak czasu",O3e="Ostatnia zmiana",D3e="Stwórz",A3e="Znak czasu",N3e="Tryb ekspercki",M3e="Kasować",j3e="Żaden",I3e="Filtr",z3e="d.",R3e="różne",P3e="powtarzać",L3e="Przyciąć",F3e="Komentarz",B3e="Niepowiązany",W3e="Połączony",H3e="Konfiguruj",U3e="Wyrzucać",V3e="My",G3e="Wszystkie pliki",q3e="Audio",J3e="Kod/JSON",X3e="Obrazy",Y3e="Tekst",K3e="kwiecień",Z3e="sierpień",Q3e="grudzień",e5e="luty",t5e="styczeń",n5e="lipiec",r5e="czerwiec",o5e="Mai",s5e="Zniszczyć",a5e="listopad",i5e="październik",l5e="wrzesień",c5e="kwiecień",d5e="sierpień",u5e="grudzień",p5e="luty",h5e="styczeń",f5e="lipiec",m5e="czerwiec",g5e="Mai",_5e="Zniszczyć",v5e="listopad",y5e="październik",b5e="wrzesień",w5e="Długość geograficzna",S5e="Szerokość",x5e="bez",k5e="Sprawdzony",$5e="lokalnie",C5e="Tak",E5e="Wideo",T5e="Aby wybrać folder, wystarczy przytrzymać klawisz „shift”, klikając folder.",O5e="Zastępować",D5e="Dodać",A5e="Produkt",N5e="Wersja",M5e="Obowiązuje do",j5e="Handlowy",I5e="Delete",z5e="Utwórz urządzenie",R5e="Utwórz kanał",P5e="Utwórz stan",L5e="Utwórz stan ciągu",F5e="Utwórz stan liczbowy",B5e="Utwórz stan logiczny",W5e="w każdy N-ty dzień tygodnia",H5e="każdy dzień tygodnia",U5e="określone dni tygodnia",V5e="Nazwa",G5e="Kategorie",q5e="Ostrzeżenie: Zadanie CRON będzie uruchamiane co sekundę w określonym przedziale czasowym!",J5e="Ostrzeżenie: Zadanie CRON będzie uruchamiane co minutę w określonym przedziale czasowym!",X5e="Dzień",Y5e="Niedziela",K5e="Poniedziałek",Z5e="Wtorek",Q5e="Środa",eAe="Czwartek",tAe="Piątek",nAe="Sobota",rAe="Nieprawidłowy CRON",oAe={ra_filter_func:oOe,ra_filter_id:sOe,ra_filter_name:aOe,ra_filter_role:iOe,ra_filter_room:lOe,ra_tooltip_ack:cOe,ra_tooltip_from:dOe,ra_tooltip_lc:uOe,ra_tooltip_quality:pOe,ra_tooltip_ts:hOe,ra_tooltip_user:fOe,ra_tooltip_value:mOe,"ra_Are you sure?":"Jesteś pewny?",ra_Cancel:gOe,ra_Copied:_Oe,"ra_Copied %s":'Skopiowano "%s"',"ra_Define functions":"Zdefiniuj funkcje","ra_Define rooms":"Zdefiniuj pokoje",ra_Error:vOe,ra_Message:yOe,ra_Ok:bOe,"ra_Please select object ID...":"Wybierz identyfikator obiektu ...",ra_Selected:wOe,"ra_Unknown error!":"Nieznany błąd!",ra_Value:SOe,ra_filter_type:xOe,ra_invalidConfig:kOe,ra_otherConfig:$Oe,ra_tooltip_copyState:COe,ra_tooltip_customConfig:EOe,ra_tooltip_deleteObject:TOe,ra_tooltip_editObject:OOe,ra_tooltip_editState:DOe,ra_filter_customs:AOe,"ra_Listen on all IPs":"Słuchaj na wszystkich adresach IP",ra_dow_Fr:NOe,ra_dow_Mo:MOe,ra_dow_Sa:jOe,ra_dow_Su:IOe,ra_dow_Th:zOe,ra_Save:ROe,"ra_Save and close":"Zapisz i zamknij",ra_Close:POe,"ra_Auto (no custom columns)":"Auto (bez kolumn niestandardowych)","ra_Transparent dialog":"Przejrzyste okno dialogowe",ra_Width:LOe,ra_val:FOe,ra_buttons:BOe,"ra_Configure visible columns":"Skonfiguruj widoczne kolumny","ra_Cannot update attribute, because not found in the object":"Nie można zaktualizować atrybutu, ponieważ nie znaleziono go w obiekcie","ra_Edit object field":"Edytuj pole obiektu","ra_Hide empty folders":"Ukryj puste foldery","ra_Reload files":"Załaduj ponownie pliki","ra_Create folder":"Utwórz folder","ra_Upload file":"Przesyłanie pliku","ra_User files":"Pliki użytkownika","ra_Confirm deletion of %s":"Potwierdź usunięcie %s","ra_Delete (no confirm for 5 mins)":"Usuń (bez potwierdzenia przez 5 minut)",ra_Delete:WOe,"ra_Toggle expert mode":"Przełącz tryb eksperta","ra_Toggle view mode":"Przełącz tryb widoku",ra_Root:HOe,"ra_Back to %s":"Powrót do %s","ra_Place your files here or click here to open the browse dialog":"Umieść swoje pliki tutaj lub kliknij tutaj, aby otworzyć okno dialogowe przeglądania","ra_If no file will be created in the folder, it will disappear after the browser closed":"Jeśli w folderze nie zostanie utworzony żaden plik, zniknie on po zamknięciu przeglądarki","ra_Folder name":"Nazwa folderu","ra_Create new folder in %s":"Utwórz nowy folder w %s","ra_Duplicate name":"Zduplikowana nazwa","ra_Invalid parent folder!":"Nieprawidłowy folder nadrzędny!","ra_Drop file here":"Upuść plik tutaj","ra_Suppress question for next %s minutes":"Ukryj pytanie przez następne %s minut","ra_Clear filter":"Czysty filtr",ra_Update:UOe,"ra_Load configuration from file":"Załaduj konfigurację z pliku","ra_Save configuration to file":"Zapisz konfigurację do pliku",sc_cron:VOe,sc_date:GOe,sc_dates:qOe,sc_dows:JOe,sc_every:XOe,sc_everyN_dates:YOe,sc_everyN_dows:KOe,sc_everyN_hours:ZOe,sc_everyN_minutes:QOe,sc_everyN_months:e4e,sc_everyN_seconds:t4e,sc_every_dates:n4e,sc_every_dows:r4e,sc_every_hours:o4e,sc_every_minutes:s4e,sc_every_months:a4e,sc_every_seconds:i4e,sc_from:l4e,sc_hours:c4e,sc_interval:d4e,sc_intervalBetween:u4e,sc_minutes:p4e,sc_months:h4e,sc_once:f4e,sc_period:m4e,sc_seconds:g4e,sc_simple:_4e,sc_specific:v4e,sc_specific_dates:y4e,sc_specific_dows:b4e,sc_specific_hours:w4e,sc_specific_minutes:S4e,sc_specific_months:x4e,sc_specific_seconds:k4e,sc_time:$4e,sc_to:C4e,sc_wizard:E4e,sch_all:T4e,sch_astroDay:O4e,sch_astroNight:D4e,sch_astro_dawn:A4e,sch_astro_dusk:N4e,sch_astro_goldenHour:M4e,sch_astro_goldenHourEnd:j4e,sch_astro_nadir:I4e,sch_astro_nauticalDawn:z4e,sch_astro_nauticalDusk:R4e,sch_astro_night:P4e,sch_astro_nightEnd:L4e,sch_astro_solarNoon:F4e,sch_astro_sunrise:B4e,sch_astro_sunriseEnd:W4e,sch_astro_sunset:H4e,sch_astro_sunsetStart:U4e,sch_at:V4e,sch_desc_atTime:G4e,sch_desc_everyDay:q4e,sch_desc_everyHour:J4e,sch_desc_everyMinute:X4e,sch_desc_everyMonth:Y4e,sch_desc_everyNDay:K4e,sch_desc_everyNHours:Z4e,sch_desc_everyNMinutes:Q4e,sch_desc_everyNMonths:eDe,sch_desc_everyNWeeks:tDe,sch_desc_everyNYears:nDe,sch_desc_everyWeek:rDe,sch_desc_everyYear:oDe,sch_desc_intervalFromTo:sDe,sch_desc_never:aDe,sch_desc_onDate:iDe,sch_desc_onDates:lDe,sch_desc_onEveryDate:cDe,sch_desc_onMonth:dDe,sch_desc_onMonths:uDe,sch_desc_onWeekday:pDe,sch_desc_onWeekdays:hDe,sch_desc_onWeekends:fDe,sch_desc_onWorkdays:mDe,sch_desc_onceInPast:gDe,sch_desc_once_on:_De,sch_desc_validFrom:vDe,sch_desc_validFromTo:yDe,sch_desc_validTo:bDe,sch_every:wDe,sch_exactTime:SDe,sch_from:xDe,sch_fromTo:kDe,sch_intervalTime:$De,sch_invert:CDe,sch_no_one:EDe,sch_on:TDe,sch_period:ODe,sch_periodDaily:DDe,sch_periodDates:ADe,sch_periodDay:NDe,sch_periodEvery:MDe,sch_periodEveryDay:jDe,sch_periodEveryMonth:IDe,sch_periodEveryWeek:zDe,sch_periodEveryYear:RDe,sch_periodHours:PDe,sch_periodMinutes:LDe,sch_periodMonth:FDe,sch_periodMonthly:BDe,sch_periodOnce:WDe,sch_periodSpecificMonths:HDe,sch_periodWeek:UDe,sch_periodWeekdays:VDe,sch_periodWeekend:GDe,sch_periodWeekly:qDe,sch_periodWorkdays:JDe,sch_periodYear:XDe,sch_periodYearly:YDe,sch_specificTime:KDe,sch_time:ZDe,sch_to:QDe,sch_valid:e3e,sch_validFrom:t3e,sch_validTo:n3e,sch_wholeDay:r3e,sch_yearEveryMonth:o3e,"ra_Define schedule...":"Zdefiniuj harmonogram ...",ra_Repeat:s3e,"ra_use seconds":"użyj sekund",ra_close:a3e,ra_dow_Tu:i3e,"ra_Toggle the states view":"Przełącz widok stanów","ra_Add new child object to selected parent":"Dodaj nowy obiekt potomny do wybranego rodzica","ra_Add objects tree from JSON file":"Dodaj drzewo obiektów z pliku JSON","ra_Save objects tree as JSON file":"Zapisz drzewo obiektów jako plik JSON",ra_Objects:l3e,ra_States:c3e,ra_object_changed_by_user:d3e,ra_object_changed_by:u3e,ra_state_changed_from:p3e,ra_state_changed_by:h3e,ra_aclOwner_read_object:f3e,ra_aclOwner_read_state:m3e,ra_aclOwner_write_object:g3e,ra_aclOwner_write_state:_3e,ra_aclGroup_read_object:v3e,ra_aclGroup_read_state:y3e,ra_aclGroup_write_object:b3e,ra_aclGroup_write_state:w3e,ra_aclEveryone_read_object:S3e,ra_aclEveryone_read_state:x3e,ra_aclEveryone_write_object:k3e,ra_aclEveryone_write_state:$3e,"ra_Folders always first":"Foldery zawsze na pierwszym miejscu",ra_changedFrom:C3e,ra_qualityCode:E3e,ra_timestamp:T3e,ra_lastChange:O3e,"ra_Owner group":"Grupa właścicieli","ra_Owner user":"Właściciel użytkownika",ra_Create:D3e,"ra_Changed from":"Zmieniony z","ra_Quality code":"Jakości",ra_Timestamp:A3e,"ra_Last change":"Ostatnia zmiana","ra_Collapse all nodes":"Zwiń wszystkie węzły","ra_Edit custom config":"Edytuj konfigurację niestandardową","ra_Collapse one step node":"Zwiń o jeden poziom","ra_Expand one step node":"Rozwiń o jeden poziom","ra_Refresh tree":"Odśwież drzewo","ra_Expand all nodes":"Rozwiń wszystkie węzły","ra_Deselect all":"Odznacz wszystko","ra_Select all":"Zaznacz wszystko","ra_%s object(s) processed":"Przetworzono %s obiektów","ra_Invalid structure":"Nieprawidłowa struktura","ra_%s was imported":"%s został zaimportowany","ra_Failed to open JSON File":"Nie udało się otworzyć pliku JSON","ra_Only following structures of objects are available:":"Dostępne są tylko następujące struktury obiektów:","ra_Folder → State":"Folder → Stan","ra_Folder → Channel → State":"Folder → Kanał → Stan","ra_Folder → Device → Channel → State":"Folder → Urządzenie → Kanał → Stan","ra_Device → Channel → State":"Urządzenie → Kanał → Stan","ra_Channel → State":"Kanał → Stan",'ra_Non-experts may create new objects only in "0_userdata.0" or "alias.0".':"Osoby nie będące ekspertami mogą tworzyć nowe obiekty tylko w „0_userdata.0” lub „alias.0”.",'ra_The experts may create objects everywhere but from second level (e.g. "vis.0" or "javascript.0").':"Eksperci mogą tworzyć obiekty wszędzie poza drugim poziomem (np. „Vis.0” lub „javascript.0”).",ra_expertMode:N3e,"ra_On weekdays":"W dni powszednie","ra_Drop the files here...":"Upuść plik tutaj...","ra_Drag 'n' drop some files here, or click to select files":"Przeciągnij i upuść kilka plików tutaj lub kliknij, aby wybrać pliki",ra_Clear:M3e,"ra_Clear icon":"Wyczyść ikonę",ra_none:j3e,"ra_Select predefined icon":"Wybierz predefiniowaną ikonę","ra_Show lines between rows":"Pokaż linie między rzędami","ra_The page you are looking for was not found":"Strona, której szukasz nie została znaleziona","ra_Good luck":"Powodzenia",'ra_Cannot find "%s"':"Nie można znaleźć „%s”",'ra_Cannot read "%s"':"Nie można odczytać „%s”","ra_Background image":"Zdjęcie w tle","ra_View: %s":"Widok: %s","ra_Copy content":"Kopiuj zawartość",ra_Filter:I3e,"ra_All objects":"Wszystkie obiekty","ra_Only selected":"Tylko wybrane","ra_Change color theme":"Zmień motyw kolorystyczny",ra_daysShortText:z3e,"ra_Instance %s is alive":"Instancja %s jest aktywna","ra_Instance %s is not alive":"Instancja TEKST nie jest aktywna","ra_Used system settings":"Używane ustawienia systemowe","ra_Cannot determine position: System settings are empty and GPS detection is disabled in browser":"Nie można określić pozycji: ustawienia systemu są puste, a wykrywanie GPS jest wyłączone w przeglądarce","ra_Define schedule":"Zdefiniuj harmonogram",ra___different__:R3e,"ra_Please confirm":"Proszę potwierdzić","ra_JSON editor":"Edytor JSON","ra_System language":"Język systemu","ra_Too small":"Za mały","ra_Too big":"Za duży","ra_Passwords are not equal!":"Hasła nie są równe!",ra_repeat:P3e,"ra_You can filter entries by entering here some text":"Możesz filtrować wpisy, wpisując tutaj jakiś tekst","ra_Show/hide filter input":"Pokaż/ukryj wejście filtra","ra_Cannot add items with set filter":"Nie można dodać elementów z ustawionym filtrem","ra_Add row":"Dodaj wiersz","ra_Move up":"Podnieść","ra_Move down":"Padnij","ra_Delete current row":"Usuń bieżący wiersz","ra_All items are filtered out":"Wszystkie pozycje są odfiltrowane","ra_Double click to reset table layout":"Kliknij dwukrotnie, aby zresetować układ tabeli","ra_Cannot retrieve options, as instance is offline":"Nie można pobrać opcji, ponieważ instancja jest w trybie offline","ra_File is too big. Max %sk allowed. Try use SVG.":"Plik jest za duży. Maksymalna dozwolona liczba %sk. Spróbuj użyć SVG.","ra_Cannot upload":"Nie można przesłać",ra_Crop:L3e,ra_tooltip_comment:F3e,ra_Disconnected:B3e,ra_Connected:W3e,ra_Configure:H3e,"ra_Invalid CRON":"Nieprawidłowy CRON",ra_Discard:U3e,"ra_Some data are not stored. Discard?":"Niektóre dane nie są przechowywane. Wyrzucać?","ra_Filter files":"Filtruj pliki","ra_Please select file...":"Wybierz plik...",ra_dow_We:V3e,ra_fileType_all:G3e,ra_fileType_audio:q3e,ra_fileType_code:J3e,ra_fileType_images:X3e,ra_fileType_txt:Y3e,"ra_fileType_video,":"Wideo",ra_month_Apr:K3e,ra_month_Aug:Z3e,ra_month_Dec:Q3e,ra_month_Feb:e5e,ra_month_Jan:t5e,ra_month_Jul:n5e,ra_month_Jun:r5e,ra_month_Mai:o5e,ra_month_Mar:s5e,ra_month_Nov:a5e,ra_month_Oct:i5e,ra_month_Sep:l5e,ra_months_Apr:c5e,ra_months_Aug:d5e,ra_months_Dec:u5e,ra_months_Feb:p5e,ra_months_Jan:h5e,ra_months_Jul:f5e,ra_months_Jun:m5e,ra_months_Mai:g5e,ra_months_Mar:_5e,ra_months_Nov:v5e,ra_months_Oct:y5e,ra_months_Sep:b5e,"ra_Cannot decode license":"Nie można zdekodować licencji","ra_Invalid answer from server":"Nieprawidłowa odpowiedź z serwera","ra_License %s":"Licencja %s","ra_License does not exist":"Licencja nie istnieje","ra_License expired on %s":"Licencja wygasła w dniu %s",'ra_License for other product "%s"':"Licencja na inny produkt „%s”","ra_License is for version %s, but required version is %s.":"Licencja dotyczy wersji %s, ale wymagana wersja to %s.",'ra_Serial number (UUID) "%s" in license is for other device.':"Numer seryjny (UUID) „%s” w licencji dotyczy innego urządzenia.","ra_Serial number (UUID)":"Numer seryjny (UUID)","ra_Check license":"Sprawdź licencję","ra_Request timed out":"Upłynął limit czasu żądania","ra_Instance is not alive":"Instancja nie jest aktywna","ra_Show/Hide object descriptions":"Pokaż/ukryj opisy obiektów","ra_Use system settings for position":"Użyj ustawień systemowych dla pozycji",ra_Longitude:w5e,ra_Latitude:S5e,"ra_Take browser position":"Zajmij pozycję z przeglądarki","ra_Take position from system settings":"Zajmij pozycję z ustawień systemowych","ra_Port is already used by %s":"Port jest już używany przez %s","ra_Port could be used by %s":"Port może być używany przez %s",ra_filter_customs_without:x5e,"ra_Use iobroker.acme adapter for letsencrypt certificates":"Użyj adaptera iobroker.acme dla certyfikatów letsencrypt","ra_Do not use let's encrypt":"Nie używaj zaszyfrujmy","ra_Use all available let's encrypt certificates":"Użyj wszystkich dostępnych certyfikatów Let's Encrypt","ra_Public certificate":"Certyfikat publiczny","ra_Private certificate":"Prywatny certyfikat","ra_Chained certificate":"Certyfikat łańcuchowy","ra_Suitable license not found in license manager":"Nie znaleziono odpowiedniej licencji w menedżerze licencji","ra_Please enter the license":"Proszę wprowadzić licencję",ra_Checked:k5e,ra_locally:$5e,"ra_via internet":"przez internet",ra_Yes:C5e,"ra_License not found in license manager. Do you want to read licenses from iobroker.net?":"Nie znaleziono licencji w menedżerze licencji. Chcesz zaktualizować licencje z iobroker.net?","ra_Fallback custom certificates":"Niestandardowe certyfikaty zastępcze","ra_Clone current row":"Sklonuj bieżący wiersz",ra_fileType_video:E5e,ra_select_folder_hint:T5e,"ra_Accept license":"Zaakceptuj licencję","ra_License agreement":"Umowa licencyjna","ra_Import from %s":"Importuj z %s","ra_Export data to %s file":"Eksportuj dane do pliku %s","ra_Import data from %s file":"Importuj dane z pliku %s","ra_No data found in file":"Nie znaleziono danych w pliku","ra_Append or replace?":"Dołączyć czy zastąpić?","ra_Append %s entries or replace existing?":"Dołączyć wpisy %s czy zastąpić istniejące?",ra_Replace:O5e,ra_Append:D5e,'ra_May not trigger "updateLicenses"':"Może nie uruchamiać „updateLicenses”","ra_Unknown error":"Nieznany błąd","ra_License must be converted":"Licencja musi zostać przekonwertowana na nowszą wersję. Możesz to zrobić w swoim profilu iobroker.net.","ra_No one license found in license manager":"Nie znaleziono licencji w menedżerze licencji","ra_Please create license":"Utwórz licencję",ra_Product:A5e,ra_Version:N5e,ra_ValidTill:M5e,ra_Commercial:j5e,"ra_Not a number":"Nie numer","ra_Edit value":"Edytuj wartość","ra_Edit ACL":"Edytuj listy ACL","ra_Edit role":"Edytuj rolę","ra_Edit function":"Funkcja edycji","ra_Edit room":"Edytuj pokój","ra_Edit alias":"Edytuj alias","ra_View file":"Zobaczyć plik",ra_Del:I5e,"ra_Show all folders":"Pokaż wszystkie foldery","ra_Restrict to folder":"Ogranicz do folderu","ra_Select type of export":"Wybierz rodzaj eksportu","ra_You can export all objects or just the selected branch.":"Możesz wyeksportować wszystkie obiekty lub tylko wybraną gałąź.","ra_Do not export values of states":"Nie eksportuj wartości stanów","ra_Selected %s object(s)":"Wybrane obiekty %s",ra_create_device:z5e,ra_create_channel:R5e,ra_create_state:P5e,ra_create_string_state:L5e,ra_create_number_state:F5e,ra_create_boolean_state:B5e,"ra_Select color":"Wybierz kolor","ra_Cannot read licenses: %s":"Nie można odczytać licencji: %s","ra_Advanced options":"Zaawansowane opcje",sc_everyN_dow:W5e,sc_every_dow:H5e,sc_specific_dow:U5e,ra_Name:V5e,"ra_import data from %s file":"Importuj dane z pliku %s","ra_Invalid JSON":"Nieprawidłowy JSON","ra_Create alias":"Utwórz alias",ra_Categories:G5e,"ra_%s links from aliases":"%s linków z aliasów",ra_warning_every_second:q5e,ra_warning_every_minute:J5e,"ra_The schedule will be executed every second. Are you sure?":"Harmonogram będzie wykonywany co sekundę. Czy jesteś pewien?","ra_The schedule will be executed every minute. Are you sure?":"Harmonogram będzie wykonywany co minutę. Czy jesteś pewien?",sc_dow:X5e,"ra_Define CRON...":"Zdefiniuj CRON...",ra_Sunday:Y5e,ra_Monday:K5e,ra_Tuesday:Z5e,ra_Wednesday:Q5e,ra_Thursday:eAe,ra_Friday:tAe,ra_Saturday:nAe,sc_invalid_cron:rAe},sAe="Скасувати",aAe="Видалити",iAe="Закрити",lAe="Налаштувати",cAe="Підключено",dAe="Скопійовано",uAe="Створити",pAe="Урожай",hAe="Видалити",fAe="Відкинути",mAe="Відключено",gAe="Помилка",_Ae="фільтр",vAe="повідомлення",yAe="Об'єкти",bAe="В порядку",wAe="Повторіть",SAe="Корінь",xAe="зберегти",kAe="Вибране",$Ae="держави",CAe="Мітка часу",EAe="оновлення",TAe="Значення",OAe="Ширина",DAe="інший",AAe="Кожен може читати об'єкт",NAe="Кожен може читати стан",MAe="Кожен може написати об'єкт",jAe="Кожен може написати стан",IAe="Група може читати об'єкт",zAe="Група може читати стан",RAe="Група може писати об'єкт",PAe="Група може писати стан",LAe="Власник може читати об'єкт",FAe="Власник може читати стан",BAe="Власник може написати об'єкт",WAe="Власник може написати стан",HAe="кнопки",UAe="Змінено з",VAe="закрити",GAe="днів",qAe="О",JAe="пн",XAe="Sa",YAe="Нд",KAe="чт",ZAe="вт",QAe="ми",eNe="Експертний режим",tNe="Налаштування",nNe="функція",rNe="ID",oNe="Ім'я",sNe="Роль",aNe="Кімната",iNe="Тип",lNe="Недійсні налаштування",cNe="Остання зміна",dNe="квіт",uNe="серп",pNe="груд",hNe="лютий",fNe="січня",mNe="лип",gNe="черв",_Ne="травень",vNe="березень",yNe="Листопад",bNe="жовт",wNe="вер",SNe="немає",xNe="Об'єкт змінено",kNe="Об'єкт востаннє змінено о",$Ne="Налаштування з іншого адаптера %s",CNe="Код якості",ENe="повторити",TNe="Стан змінено на",ONe="Об'єкт змінено з",DNe="Мітка часу",ANe="Визнано",NNe="коментар",MNe="Скопіюйте значення стану",jNe="Спеціальні налаштування",INe="Видалити об'єкт",zNe="Редагувати об'єкт",RNe="Відредагуйте значення стану",PNe="Від",LNe="Востаннє змінено",FNe="якість",BNe="Позначка часу",WNe="Користувач",HNe="Значення",UNe="Значення",VNe="CRON",GNe="Дата",qNe="дати",JNe="День тижня",XNe="кожен",YNe="кожні N днів",KNe="кожні N днів тижня",ZNe="кожні N годин",QNe="кожні N хвилин",eMe="кожні N місяців",tMe="кожні N секунд",nMe="кожен день",rMe="кожен день тижня",oMe="щогодини",sMe="кожну хвилину",aMe="щомісяця",iMe="кожна секунда",lMe="Від",cMe="години",dMe="Інтервал",uMe="Інтервал між",pMe="хвилин",hMe="місяців",fMe="Один раз",mMe="Крапка",gMe="секунд",_Me="просто",vMe="Конкретний час",yMe="конкретні дати",bMe="конкретний день тижня",wMe="конкретні години",SMe="конкретні хвилини",xMe="конкретні місяці",kMe="конкретні секунди",$Me="час",CMe="до",EMe="майстер",TMe="все",OMe="Астродень",DMe="Астро ніч",AMe="Світанок",NMe="Сутінки",MMe="Золота година",jMe="Кінець золотої години",IMe="Надір",zMe="Морський світанок",RMe="Морські сутінки",PMe="ніч",LMe="Кінець ночі",FMe="Сонячний полудень",BMe="Схід сонця",WMe="Кінець сходу сонця",HMe="Захід сонця",UMe="Початок заходу сонця",VMe="в",GMe="в %s",qMe="кожен день",JMe="щогодини",XMe="кожну хвилину",YMe="щомісяця",KMe="кожен %s день",ZMe="кожні %s годин",QMe="кожні %s хвилин",eje="кожні %s місяців",tje="кожні %s тижнів",nje="кожні %s років",rje="щотижня",oje="щороку",sje="від %s до %s",aje="ніколи",ije="на %s з %s",lje="на %s і %s з",cje="на кожну дату",dje="%s",uje="%s і %s",pje="на %s",hje="на %s і %s",fje="на вихідних",mje="в робочі дні",gje="більше не виконуватиметься, оскільки запуск у минулому",_je="на %s",vje="від %s",yje="Виконати від до",bje="до %s",wje="кожен",Sje="Конкретний час",xje="від",kje="Від до",$je="Час інтервалу",Cje="інвертувати",Eje="немає",Tje="на",Oje="Крапка",Dje="Щодня",Aje="дати",Nje="День",Mje="кожен",jje="Кожен день",Ije="Щомісяця",zje="Щотижня",Rje="Щороку",Pje="години",Lje="хвилин",Fje="місяць",Bje="Щомісяця",Wje="Один раз",Hje="Конкретні місяці",Uje="тиждень",Vje="будні",Gje="Вихідні",qje="Щотижня",Jje="робочі дні",Xje="рік",Yje="щорічно",Kje="Конкретний час",Zje="час",Qje="до",eIe="Дійсний",tIe="від",nIe="до",rIe="Цілий день",oIe="щомісяця",sIe="Всі файли",aIe="Аудіо",iIe="Код/JSON",lIe="Зображення",cIe="текст",dIe="квіт",uIe="серп",pIe="груд",hIe="лютий",fIe="січня",mIe="лип",gIe="черв",_Ie="травень",vIe="березень",yIe="Листопад",bIe="жовт",wIe="вер",SIe="Довгота",xIe="Широта",kIe="без",$Ie="Перевірено",CIe="локально",EIe="Так",TIe="відео",OIe="Щоб вибрати папку, просто клацніть папку, утримуючи клавішу «Shift».",DIe="Замінити",AIe="Додайте",NIe="Продукт",MIe="Версія",jIe="Дійсний до",IIe="Комерційний",zIe="Delete",RIe="Створити пристрій",PIe="Створити канал",LIe="Створити состояние",FIe="Створити рядковий стан",BIe="Створити номерний стан",WIe="Створіть логічний стан",HIe="кожен N-й день тижня",UIe="кожен день тижня",VIe="конкретний день (дні) тижня",GIe="Ім'я",qIe="Категорії",JIe="Попередження: завдання CRON виконуватиметься кожну секунду протягом зазначеного періоду!",XIe="Попередження: завдання CRON виконуватиметься щохвилини протягом зазначеного періоду!",YIe="День",KIe="неділя",ZIe="понеділок",QIe="вівторок",e6e="Середа",t6e="четвер",n6e="П'ятниця",r6e="Субота",o6e="Недійсний CRON",s6e={"ra_%s object(s) processed":"Оброблено %s об’єктів","ra_%s was imported":"%s було імпортовано","ra_Add new child object to selected parent":"Додати новий дочірній об’єкт до вибраного батьківського","ra_Add objects tree from JSON file":"Додайте дерево об’єктів із файлу JSON","ra_Add row":"Додати рядок","ra_All items are filtered out":"Усі елементи відфільтровано","ra_All objects":"Всі об'єкти","ra_Are you sure?":"Ти впевнений?","ra_Auto (no custom columns)":"Автоматично (без спеціальних стовпців)","ra_Back to %s":"Назад до %s","ra_Background image":"Фонове зображення",ra_Cancel:sAe,"ra_Cannot add items with set filter":"Неможливо додати елементи зі встановленим фільтром","ra_Cannot determine position: System settings are empty and GPS detection is disabled in browser":"Неможливо визначити положення: системні налаштування порожні, а визначення GPS вимкнено в браузері",'ra_Cannot find "%s"':'Не вдається знайти "%s"','ra_Cannot read "%s"':'Неможливо прочитати "%s"',"ra_Cannot retrieve options, as instance is offline":"Неможливо отримати параметри, оскільки екземпляр офлайн","ra_Cannot update attribute, because not found in the object":"Неможливо оновити атрибут, оскільки його не знайдено в об’єкті","ra_Cannot upload":"Неможливо завантажити","ra_Change color theme":"Змінити кольорову тему","ra_Changed from":"Змінено з","ra_Channel → State":"Канал → Стан",ra_Clear:aAe,"ra_Clear filter":"Очистити фільтр","ra_Clear icon":"Очистити значок",ra_Close:iAe,"ra_Collapse all nodes":"Згорнути всі вузли","ra_Collapse one step node":"Згорнути на один рівень",ra_Configure:lAe,"ra_Configure visible columns":"Налаштувати видимі стовпці","ra_Confirm deletion of %s":"Підтвердити видалення %s",ra_Connected:cAe,ra_Copied:dAe,"ra_Copied %s":'Скопійовано "%s"',"ra_Copy content":"Скопіюйте вміст",ra_Create:uAe,"ra_Create folder":"Створити папку","ra_Create new folder in %s":"Створіть нову папку в %s",ra_Crop:pAe,"ra_Define functions":"Визначити функції","ra_Define rooms":"Визначте кімнати","ra_Define schedule":"Визначити розклад","ra_Define schedule...":"Визначити розклад...",ra_Delete:hAe,"ra_Delete (no confirm for 5 mins)":"Видалити (без підтвердження протягом 5 хвилин)","ra_Delete current row":"Видалити поточний рядок","ra_Deselect all":"Скасувати вибір усіх","ra_Device → Channel → State":"Пристрій → Канал → Стан",ra_Discard:fAe,ra_Disconnected:mAe,"ra_Double click to reset table layout":"Двічі клацніть, щоб скинути макет таблиці","ra_Drag 'n' drop some files here, or click to select files":"Перетягніть деякі файли сюди або натисніть, щоб вибрати файли","ra_Drop file here":"Перетягніть файл сюди","ra_Drop the files here...":"Перетягніть файл сюди...","ra_Duplicate name":"Повторюване ім'я","ra_Edit custom config":"Редагувати спеціальну конфігурацію","ra_Edit object field":"Поле редагування об'єкта",ra_Error:gAe,"ra_Expand all nodes":"Розгорнути всі вузли","ra_Expand one step node":"Розгорніть один рівень","ra_Failed to open JSON File":"Не вдалося відкрити файл JSON","ra_File is too big. Max %sk allowed. Try use SVG.":"Файл завеликий. Максимально дозволено %sk. Спробуйте використовувати SVG.",ra_Filter:_Ae,"ra_Folder name":"Назва папки","ra_Folder → Channel → State":"Папка → Канал → Стан","ra_Folder → Device → Channel → State":"Папка → Пристрій → Канал → Стан","ra_Folder → State":"Папка → Стан","ra_Folders always first":"Папки завжди першими","ra_Good luck":"Удачі","ra_Hide empty folders":"Приховати порожні папки","ra_If no file will be created in the folder, it will disappear after the browser closed":"Якщо в папці не буде створено файл, він зникне після закриття браузера","ra_Instance %s is alive":"Примірник %s живий","ra_Instance %s is not alive":"Примірник %s не живий","ra_Invalid CRON":"Недійсний CRON","ra_Invalid parent folder!":"Недійсна батьківська папка!","ra_Invalid structure":"Недійсна структура","ra_JSON editor":"Редактор JSON","ra_Last change":"Остання зміна","ra_Listen on all IPs":"Прослуховування на всіх IP","ra_Load configuration from file":"Завантажити конфігурацію з файлу",ra_Message:vAe,"ra_Move down":"Рухатися вниз","ra_Move up":"Рухатися вгору",'ra_Non-experts may create new objects only in "0_userdata.0" or "alias.0".':"Неексперти можуть створювати нові об’єкти лише в «0_userdata.0» або «alias.0».",ra_Objects:yAe,ra_Ok:bAe,"ra_On weekdays":"В будні дні","ra_Only following structures of objects are available:":"Доступні тільки такі структури об'єктів:","ra_Only selected":"Тільки обрані","ra_Owner group":"Група власників","ra_Owner user":"Користувач-власник","ra_Passwords are not equal!":"Паролі не бувають рівними!","ra_Place your files here or click here to open the browse dialog":"Розмістіть свої файли тут або натисніть тут, щоб відкрити діалогове вікно перегляду","ra_Please confirm":"Будь-ласка підтвердіть","ra_Please select object ID...":"Виберіть ідентифікатор об'єкта...","ra_Quality code":"якість","ra_Refresh tree":"Оновити дерево","ra_Reload files":"Перезавантажте файли",ra_Repeat:wAe,ra_Root:SAe,ra_Save:xAe,"ra_Save and close":"Зберегти та закрити","ra_Save configuration to file":"Зберегти конфігурацію у файл","ra_Save objects tree as JSON file":"Зберегти дерево об’єктів як файл JSON","ra_Select all":"Вибрати все","ra_Select predefined icon":"Виберіть попередньо визначений значок",ra_Selected:kAe,"ra_Show lines between rows":"Показувати лінії між рядками","ra_Show/hide filter input":"Показати/сховати введення фільтра","ra_Some data are not stored. Discard?":"Деякі дані не зберігаються. Відкинути?",ra_States:$Ae,"ra_Suppress question for next %s minutes":"Приховати запитання на наступні %s хвилин","ra_System language":"Системна мова",'ra_The experts may create objects everywhere but from second level (e.g. "vis.0" or "javascript.0").':"Експерти можуть створювати об’єкти всюди, крім другого рівня (наприклад, «vis.0» або «javascript.0»).","ra_The page you are looking for was not found":"Сторінка, яку ви шукаєте, не знайдена",ra_Timestamp:CAe,"ra_Toggle expert mode":"Перемкнути експертний режим","ra_Toggle the states view":"Перемкнути перегляд штатів","ra_Toggle view mode":"Перемкнути режим перегляду","ra_Too big":"Занадто великий","ra_Too small":"Занадто малий","ra_Transparent dialog":"Прозорий діалог","ra_Unknown error!":"Невідома помилка!",ra_Update:EAe,"ra_Upload file":"Завантажити файл","ra_Used system settings":"Використані системні налаштування","ra_User files":"Файли користувача",ra_Value:TAe,"ra_View: %s":"Перегляд: %s",ra_Width:OAe,"ra_You can filter entries by entering here some text":"Ви можете фільтрувати записи, ввівши тут певний текст",ra___different__:DAe,ra_aclEveryone_read_object:AAe,ra_aclEveryone_read_state:NAe,ra_aclEveryone_write_object:MAe,ra_aclEveryone_write_state:jAe,ra_aclGroup_read_object:IAe,ra_aclGroup_read_state:zAe,ra_aclGroup_write_object:RAe,ra_aclGroup_write_state:PAe,ra_aclOwner_read_object:LAe,ra_aclOwner_read_state:FAe,ra_aclOwner_write_object:BAe,ra_aclOwner_write_state:WAe,ra_buttons:HAe,ra_changedFrom:UAe,ra_close:VAe,ra_daysShortText:GAe,ra_dow_Fr:qAe,ra_dow_Mo:JAe,ra_dow_Sa:XAe,ra_dow_Su:YAe,ra_dow_Th:KAe,ra_dow_Tu:ZAe,ra_dow_We:QAe,ra_expertMode:eNe,ra_filter_customs:tNe,ra_filter_func:nNe,ra_filter_id:rNe,ra_filter_name:oNe,ra_filter_role:sNe,ra_filter_room:aNe,ra_filter_type:iNe,ra_invalidConfig:lNe,ra_lastChange:cNe,ra_months_Apr:dNe,ra_months_Aug:uNe,ra_months_Dec:pNe,ra_months_Feb:hNe,ra_months_Jan:fNe,ra_months_Jul:mNe,ra_months_Jun:gNe,ra_months_Mai:_Ne,ra_months_Mar:vNe,ra_months_Nov:yNe,ra_months_Oct:bNe,ra_months_Sep:wNe,ra_none:SNe,ra_object_changed_by:xNe,ra_object_changed_by_user:kNe,ra_otherConfig:$Ne,ra_qualityCode:CNe,ra_repeat:ENe,ra_state_changed_by:TNe,ra_state_changed_from:ONe,ra_timestamp:DNe,ra_tooltip_ack:ANe,ra_tooltip_comment:NNe,ra_tooltip_copyState:MNe,ra_tooltip_customConfig:jNe,ra_tooltip_deleteObject:INe,ra_tooltip_editObject:zNe,ra_tooltip_editState:RNe,ra_tooltip_from:PNe,ra_tooltip_lc:LNe,ra_tooltip_quality:FNe,ra_tooltip_ts:BNe,ra_tooltip_user:WNe,ra_tooltip_value:HNe,"ra_use seconds":"використовуйте секунди",ra_val:UNe,sc_cron:VNe,sc_date:GNe,sc_dates:qNe,sc_dows:JNe,sc_every:XNe,sc_everyN_dates:YNe,sc_everyN_dows:KNe,sc_everyN_hours:ZNe,sc_everyN_minutes:QNe,sc_everyN_months:eMe,sc_everyN_seconds:tMe,sc_every_dates:nMe,sc_every_dows:rMe,sc_every_hours:oMe,sc_every_minutes:sMe,sc_every_months:aMe,sc_every_seconds:iMe,sc_from:lMe,sc_hours:cMe,sc_interval:dMe,sc_intervalBetween:uMe,sc_minutes:pMe,sc_months:hMe,sc_once:fMe,sc_period:mMe,sc_seconds:gMe,sc_simple:_Me,sc_specific:vMe,sc_specific_dates:yMe,sc_specific_dows:bMe,sc_specific_hours:wMe,sc_specific_minutes:SMe,sc_specific_months:xMe,sc_specific_seconds:kMe,sc_time:$Me,sc_to:CMe,sc_wizard:EMe,sch_all:TMe,sch_astroDay:OMe,sch_astroNight:DMe,sch_astro_dawn:AMe,sch_astro_dusk:NMe,sch_astro_goldenHour:MMe,sch_astro_goldenHourEnd:jMe,sch_astro_nadir:IMe,sch_astro_nauticalDawn:zMe,sch_astro_nauticalDusk:RMe,sch_astro_night:PMe,sch_astro_nightEnd:LMe,sch_astro_solarNoon:FMe,sch_astro_sunrise:BMe,sch_astro_sunriseEnd:WMe,sch_astro_sunset:HMe,sch_astro_sunsetStart:UMe,sch_at:VMe,sch_desc_atTime:GMe,sch_desc_everyDay:qMe,sch_desc_everyHour:JMe,sch_desc_everyMinute:XMe,sch_desc_everyMonth:YMe,sch_desc_everyNDay:KMe,sch_desc_everyNHours:ZMe,sch_desc_everyNMinutes:QMe,sch_desc_everyNMonths:eje,sch_desc_everyNWeeks:tje,sch_desc_everyNYears:nje,sch_desc_everyWeek:rje,sch_desc_everyYear:oje,sch_desc_intervalFromTo:sje,sch_desc_never:aje,sch_desc_onDate:ije,sch_desc_onDates:lje,sch_desc_onEveryDate:cje,sch_desc_onMonth:dje,sch_desc_onMonths:uje,sch_desc_onWeekday:pje,sch_desc_onWeekdays:hje,sch_desc_onWeekends:fje,sch_desc_onWorkdays:mje,sch_desc_onceInPast:gje,sch_desc_once_on:_je,sch_desc_validFrom:vje,sch_desc_validFromTo:yje,sch_desc_validTo:bje,sch_every:wje,sch_exactTime:Sje,sch_from:xje,sch_fromTo:kje,sch_intervalTime:$je,sch_invert:Cje,sch_no_one:Eje,sch_on:Tje,sch_period:Oje,sch_periodDaily:Dje,sch_periodDates:Aje,sch_periodDay:Nje,sch_periodEvery:Mje,sch_periodEveryDay:jje,sch_periodEveryMonth:Ije,sch_periodEveryWeek:zje,sch_periodEveryYear:Rje,sch_periodHours:Pje,sch_periodMinutes:Lje,sch_periodMonth:Fje,sch_periodMonthly:Bje,sch_periodOnce:Wje,sch_periodSpecificMonths:Hje,sch_periodWeek:Uje,sch_periodWeekdays:Vje,sch_periodWeekend:Gje,sch_periodWeekly:qje,sch_periodWorkdays:Jje,sch_periodYear:Xje,sch_periodYearly:Yje,sch_specificTime:Kje,sch_time:Zje,sch_to:Qje,sch_valid:eIe,sch_validFrom:tIe,sch_validTo:nIe,sch_wholeDay:rIe,sch_yearEveryMonth:oIe,"ra_Filter files":"Фільтр файлів","ra_Please select file...":"Виберіть файл...",ra_fileType_all:sIe,ra_fileType_audio:aIe,ra_fileType_code:iIe,ra_fileType_images:lIe,ra_fileType_txt:cIe,"ra_fileType_video,":"відео",ra_month_Apr:dIe,ra_month_Aug:uIe,ra_month_Dec:pIe,ra_month_Feb:hIe,ra_month_Jan:fIe,ra_month_Jul:mIe,ra_month_Jun:gIe,ra_month_Mai:_Ie,ra_month_Mar:vIe,ra_month_Nov:yIe,ra_month_Oct:bIe,ra_month_Sep:wIe,"ra_Cannot decode license":"Неможливо розшифрувати ліцензію","ra_Invalid answer from server":"Недійсна відповідь від сервера","ra_License %s":"Ліцензія %s","ra_License does not exist":"Ліцензії не існує","ra_License expired on %s":"Термін дії ліцензії закінчився %s",'ra_License for other product "%s"':'Ліцензія на інший продукт "%s"',"ra_License is for version %s, but required version is %s.":"Ліцензія для версії %s, але потрібна версія %s.",'ra_Serial number (UUID) "%s" in license is for other device.':'Серійний номер (UUID) "%s" у ліцензії призначений для іншого пристрою.',"ra_Serial number (UUID)":"Серійний номер (UUID)","ra_Check license":"Перевірити ліцензію","ra_Request timed out":"Час запиту вичерпано","ra_Instance is not alive":"Примірник не живий","ra_Show/Hide object descriptions":"Показати/Сховати описи об’єктів","ra_Use system settings for position":"Використовуйте системні налаштування для позиції",ra_Longitude:SIe,ra_Latitude:xIe,"ra_Take browser position":"Займіть позицію з браузера","ra_Take position from system settings":"Займіть позицію в налаштуваннях системи","ra_Port is already used by %s":"Порт уже використовується %s","ra_Port could be used by %s":"Порт може використовуватися %s",ra_filter_customs_without:kIe,"ra_Use iobroker.acme adapter for letsencrypt certificates":"Використовуйте адаптер iobroker.acme для сертифікатів letsencrypt","ra_Do not use let's encrypt":"Не використовуйте let's encrypt","ra_Use all available let's encrypt certificates":"Використовуйте всі доступні сертифікати let's encrypt","ra_Public certificate":"Публічний сертифікат","ra_Private certificate":"Приватний сертифікат","ra_Chained certificate":"Прикутий сертифікат","ra_Suitable license not found in license manager":"Відповідна ліцензія не знайдена в менеджері ліцензій","ra_Please enter the license":"Будь ласка, введіть ліцензію",ra_Checked:$Ie,ra_locally:CIe,"ra_via internet":"через інтернет",ra_Yes:EIe,"ra_License not found in license manager. Do you want to read licenses from iobroker.net?":"Ліцензія не знайдена в менеджері ліцензій. Хочете оновити ліцензії з iobroker.net?","ra_Fallback custom certificates":"Запасні спеціальні сертифікати","ra_Clone current row":"Клонувати поточний рядок",ra_fileType_video:TIe,ra_select_folder_hint:OIe,"ra_Accept license":"Прийняти ліцензію","ra_License agreement":"Ліцензійна угода","ra_Import from %s":"Імпортувати з %s","ra_Export data to %s file":"Експортувати дані у файл %s","ra_Import data from %s file":"Імпортувати дані з файлу %s","ra_No data found in file":"Немає даних у файлі","ra_Append or replace?":"Додати чи замінити?","ra_Append %s entries or replace existing?":"Додати %s записів чи замінити наявні?",ra_Replace:DIe,ra_Append:AIe,'ra_May not trigger "updateLicenses"':'Може не запускати "updateLicenses"',"ra_Unknown error":"Невідома помилка","ra_License must be converted":"Ліцензію необхідно конвертувати до новішої версії. Ви можете зробити це у своєму профілі на iobroker.net.","ra_No one license found in license manager":"У менеджері ліцензій не знайдено жодної ліцензії","ra_Please create license":"Будь ласка, створіть ліцензію",ra_Product:NIe,ra_Version:MIe,ra_ValidTill:jIe,ra_Commercial:IIe,"ra_Not a number":"Не номер","ra_Edit value":"Редагувати значення","ra_Edit ACL":"Редагувати ACL","ra_Edit role":"Редагувати роль","ra_Edit function":"функція редагування","ra_Edit room":"Редагувати кімнату","ra_Edit alias":"Редагувати псевдонім","ra_View file":"Переглянути файл",ra_Del:zIe,"ra_Show all folders":"Показати всі папки","ra_Restrict to folder":"Обмежити папкою","ra_Select type of export":"Виберіть тип експорту","ra_You can export all objects or just the selected branch.":"Ви можете експортувати всі об’єкти або лише вибрану гілку.","ra_Do not export values of states":"Не експортуйте значення станів","ra_Selected %s object(s)":"Вибрані об’єкти %s",ra_create_device:RIe,ra_create_channel:PIe,ra_create_state:LIe,ra_create_string_state:FIe,ra_create_number_state:BIe,ra_create_boolean_state:WIe,"ra_Select color":"Виберіть колір","ra_Cannot read licenses: %s":"Неможливо прочитати ліцензії: %s","ra_Advanced options":"Розширені опції",sc_everyN_dow:HIe,sc_every_dow:UIe,sc_specific_dow:VIe,ra_Name:GIe,"ra_import data from %s file":"Імпортувати дані з файлу %s","ra_Invalid JSON":"Недійсний JSON","ra_Create alias":"Створити псевдонім",ra_Categories:qIe,"ra_%s links from aliases":"%s посилань із псевдонімів",ra_warning_every_second:JIe,ra_warning_every_minute:XIe,"ra_The schedule will be executed every second. Are you sure?":"Розклад буде виконуватися щосекунди. Ви впевнені?","ra_The schedule will be executed every minute. Are you sure?":"Розклад буде виконуватися щохвилини. Ви впевнені?",sc_dow:YIe,"ra_Define CRON...":"Визначити CRON...",ra_Sunday:KIe,ra_Monday:ZIe,ra_Tuesday:QIe,ra_Wednesday:e6e,ra_Thursday:t6e,ra_Friday:n6e,ra_Saturday:r6e,sc_invalid_cron:o6e},a6e="功能",i6e="ID",l6e="名称",c6e="角色",d6e="房间",u6e="致谢国旗",p6e="从",h6e="最后改变了",f6e="质量",m6e="时间戳",g6e="用户",_6e="值",v6e="取消",y6e="复制的",b6e="错误",w6e="信息",S6e="好",x6e="已选",k6e="值",$6e="类型",C6e="无效的设定",E6e="来自其他适配器%s的设置",T6e="复制状态值",O6e="自定义设置",D6e="删除物件",A6e="编辑物件",N6e="编辑状态值",M6e="设定值",j6e="r",I6e="莫",z6e="萨",R6e="苏",P6e="保存",L6e="关",F6e="宽度",B6e="值",W6e="纽扣",H6e="删除",U6e="根",V6e="更新资料",G6e="周期任务",q6e="日期",J6e="日",X6e="星期",Y6e="每",K6e="每N天",Z6e="每周N天",Q6e="每N小时一次",eze="每N分钟",tze="每N个月",nze="每N秒",rze="每天",oze="一周的每一天",sze="每小时",aze="每分钟",ize="每月",lze="每秒",cze="从",dze="小时",uze="间隔",pze="间隔时间",hze="分钟",fze="月",mze="一次",gze="周期",_ze="秒",vze="简单模式",yze="特定的时间",bze="特定的日子",wze="特定的一周",Sze="特定的小时",xze="特定的分钟",kze="特定的月份",$ze="特定的描述",Cze="时间",Eze="至",Tze="向导模式",Oze="全选",Dze="天文白天",Aze="天文夜晚",Nze="黎明",Mze="黄昏",jze="黄金时段",Ize="黄金时段结束",zze="天底",Rze="航海黎明",Pze="航海黄昏",Lze="夜晚",Fze="夜晚结束",Bze="正午",Wze="日出",Hze="日出结束",Uze="日落",Vze="日落开始",Gze="在",qze="的%s",Jze="每天",Xze="每小时",Yze="每分钟",Kze="每月",Zze="每%s天",Qze="每%s小时",eRe="每%s分钟",tRe="每%s月",nRe="每%s周",rRe="每%s年",oRe="每周",sRe="每年",aRe="从%s到%s",iRe="决不",lRe="在%s的%s上",cRe="在%s和%s上",dRe="在每天",uRe="%s",pRe="%s和%s",hRe="在%s上",fRe="在%s和%s上",mRe="在周末",gRe="在工作日",_Re="将不再执行,因为起始时间已经是过去的时间了。",vRe="在%s上",yRe="来自%s",bRe="从执行到",wRe="到%s",SRe="每",xRe="特定的时间",kRe="从",$Re="从到",CRe="间隔时间",ERe="倒置",TRe="取消全选",ORe="的",DRe="周期",ARe="每天",NRe="日期",MRe="天",jRe="每",IRe="每天",zRe="每月",RRe="每周",PRe="每年",LRe="小时",FRe="分钟",BRe="月",WRe="每月一次",HRe="一次",URe="特定的月份",VRe="周",GRe="工作日",qRe="周末",JRe="每周",XRe="工作日",YRe="年",KRe="每年",ZRe="特定的时间",QRe="时间",ePe="至",tPe="生效",nPe="从",rPe="至",oPe="一整天",sPe="每月",aPe="重复",iPe="关闭",lPe="Th",cPe="Tu",dPe="对象",uPe="状态",pPe="对象上次更改时间为",hPe="物件变更者",fPe="对象已从更改",mPe="状态由",gPe="所有者可以读取对象",_Pe="所有者可以读取状态",vPe="所有者可以写对象",yPe="所有者可以写状态",bPe="组可以读取对象",wPe="群组可以读取状态",SPe="组可以写对象",xPe="组可以写状态",kPe="每个人都可以阅读对象",$Pe="每个人都可以阅读状态",CPe="每个人都可以写对象",EPe="每个人都可以写状态",TPe="更改为",OPe="质量代码",DPe="时间戳记",APe="最后一次变更",NPe="创建",MPe="时间戳记",jPe="专家模式",IPe="删除",zPe="没有任何",RPe="筛选",PPe="天",LPe="不同的",FPe="重复",BPe="庄稼",WPe="评论",HPe="断开连接",UPe="连接的",VPe="配置",GPe="丢弃",qPe="我们",JPe="所有文件",XPe="声音的",YPe="代码/JSON",KPe="图片",ZPe="文本",QPe="4月",e8e="八月",t8e="十二月",n8e="二月",r8e="简",o8e="七月",s8e="君",a8e="迈",i8e="三月",l8e="十一月",c8e="十月",d8e="九月",u8e="4月",p8e="八月",h8e="十二月",f8e="二月",m8e="简",g8e="七月",_8e="君",v8e="迈",y8e="三月",b8e="十一月",w8e="十月",S8e="九月",x8e="经度",k8e="纬度",$8e="没有",C8e="勾选",E8e="本地",T8e="是的",O8e="视频",D8e="要选择文件夹,只需按住“shift”键单击文件夹即可。",A8e="代替",N8e="附加",M8e="产品",j8e="版本",I8e="有效期至",z8e="商业的",R8e="Delete",P8e="创建设备",L8e="创建频道",F8e="创建状态",B8e="创建字符串状态",W8e="创建号码状态",H8e="创建布尔状态",U8e="每周的第 N 天",V8e="一周的每一天",G8e="一周中的特定日子",q8e="姓名",J8e="类别",X8e="警告:CRON 作业将在指定期间内每秒运行一次!",Y8e="警告:CRON 作业将在指定期间内每分钟运行一次!",K8e="天",Z8e="星期日",Q8e="周一",e9e="周二",t9e="周三",n9e="周四",r9e="星期五",o9e="周六",s9e="无效的 CRON",a9e={ra_filter_func:a6e,ra_filter_id:i6e,ra_filter_name:l6e,ra_filter_role:c6e,ra_filter_room:d6e,ra_tooltip_ack:u6e,ra_tooltip_from:p6e,ra_tooltip_lc:h6e,ra_tooltip_quality:f6e,ra_tooltip_ts:m6e,ra_tooltip_user:g6e,ra_tooltip_value:_6e,"ra_Are you sure?":"你确定吗?",ra_Cancel:v6e,ra_Copied:y6e,"ra_Copied %s":'复制的"%s"',"ra_Define functions":"定义功能","ra_Define rooms":"定义房间",ra_Error:b6e,ra_Message:w6e,ra_Ok:S6e,"ra_Please select object ID...":"请选择对象ID ...",ra_Selected:x6e,"ra_Unknown error!":"未知错误!",ra_Value:k6e,ra_filter_type:$6e,ra_invalidConfig:C6e,ra_otherConfig:E6e,ra_tooltip_copyState:T6e,ra_tooltip_customConfig:O6e,ra_tooltip_deleteObject:D6e,ra_tooltip_editObject:A6e,ra_tooltip_editState:N6e,ra_filter_customs:M6e,"ra_Listen on all IPs":"监听所有IP",ra_dow_Fr:j6e,ra_dow_Mo:I6e,ra_dow_Sa:z6e,ra_dow_Su:R6e,ra_Save:P6e,"ra_Save and close":"保存并关闭",ra_Close:L6e,"ra_Auto (no custom columns)":"自动(无自定义列)","ra_Transparent dialog":"透明对话框",ra_Width:F6e,ra_val:B6e,ra_buttons:W6e,"ra_Configure visible columns":"配置可见列","ra_Cannot update attribute, because not found in the object":"无法更新属性,因为在对象中找不到","ra_Edit object field":"编辑对象字段","ra_Hide empty folders":"隐藏空文件夹","ra_Reload files":"重新载入文件","ra_Create folder":"创建文件夹","ra_Upload file":"上传文件","ra_User files":"用户档案","ra_Confirm deletion of %s":"确认删除%s","ra_Delete (no confirm for 5 mins)":"删除(5分钟内未确认)",ra_Delete:H6e,"ra_Toggle expert mode":"切换专家模式","ra_Toggle view mode":"切换检视模式",ra_Root:U6e,"ra_Back to %s":"返回“%s”","ra_Place your files here or click here to open the browse dialog":"将文件放在此处或单击此处打开浏览对话框","ra_If no file will be created in the folder, it will disappear after the browser closed":"如果在该文件夹中未创建任何文件,则该文件将在浏览器关闭后消失","ra_Folder name":"文件夹名称","ra_Create new folder in %s":"在%s中创建新文件夹","ra_Duplicate name":"名称重复","ra_Invalid parent folder!":"父文件夹无效!","ra_Drop file here":"将档案放在这里","ra_Suppress question for next %s minutes":"在接下来的%s分钟内取消提问","ra_Clear filter":"清除筛选",ra_Update:V6e,"ra_Load configuration from file":"从文件加载配置","ra_Save configuration to file":"将配置保存到文件",sc_cron:G6e,sc_date:q6e,sc_dates:J6e,sc_dows:X6e,sc_every:Y6e,sc_everyN_dates:K6e,sc_everyN_dows:Z6e,sc_everyN_hours:Q6e,sc_everyN_minutes:eze,sc_everyN_months:tze,sc_everyN_seconds:nze,sc_every_dates:rze,sc_every_dows:oze,sc_every_hours:sze,sc_every_minutes:aze,sc_every_months:ize,sc_every_seconds:lze,sc_from:cze,sc_hours:dze,sc_interval:uze,sc_intervalBetween:pze,sc_minutes:hze,sc_months:fze,sc_once:mze,sc_period:gze,sc_seconds:_ze,sc_simple:vze,sc_specific:yze,sc_specific_dates:bze,sc_specific_dows:wze,sc_specific_hours:Sze,sc_specific_minutes:xze,sc_specific_months:kze,sc_specific_seconds:$ze,sc_time:Cze,sc_to:Eze,sc_wizard:Tze,sch_all:Oze,sch_astroDay:Dze,sch_astroNight:Aze,sch_astro_dawn:Nze,sch_astro_dusk:Mze,sch_astro_goldenHour:jze,sch_astro_goldenHourEnd:Ize,sch_astro_nadir:zze,sch_astro_nauticalDawn:Rze,sch_astro_nauticalDusk:Pze,sch_astro_night:Lze,sch_astro_nightEnd:Fze,sch_astro_solarNoon:Bze,sch_astro_sunrise:Wze,sch_astro_sunriseEnd:Hze,sch_astro_sunset:Uze,sch_astro_sunsetStart:Vze,sch_at:Gze,sch_desc_atTime:qze,sch_desc_everyDay:Jze,sch_desc_everyHour:Xze,sch_desc_everyMinute:Yze,sch_desc_everyMonth:Kze,sch_desc_everyNDay:Zze,sch_desc_everyNHours:Qze,sch_desc_everyNMinutes:eRe,sch_desc_everyNMonths:tRe,sch_desc_everyNWeeks:nRe,sch_desc_everyNYears:rRe,sch_desc_everyWeek:oRe,sch_desc_everyYear:sRe,sch_desc_intervalFromTo:aRe,sch_desc_never:iRe,sch_desc_onDate:lRe,sch_desc_onDates:cRe,sch_desc_onEveryDate:dRe,sch_desc_onMonth:uRe,sch_desc_onMonths:pRe,sch_desc_onWeekday:hRe,sch_desc_onWeekdays:fRe,sch_desc_onWeekends:mRe,sch_desc_onWorkdays:gRe,sch_desc_onceInPast:_Re,sch_desc_once_on:vRe,sch_desc_validFrom:yRe,sch_desc_validFromTo:bRe,sch_desc_validTo:wRe,sch_every:SRe,sch_exactTime:xRe,sch_from:kRe,sch_fromTo:$Re,sch_intervalTime:CRe,sch_invert:ERe,sch_no_one:TRe,sch_on:ORe,sch_period:DRe,sch_periodDaily:ARe,sch_periodDates:NRe,sch_periodDay:MRe,sch_periodEvery:jRe,sch_periodEveryDay:IRe,sch_periodEveryMonth:zRe,sch_periodEveryWeek:RRe,sch_periodEveryYear:PRe,sch_periodHours:LRe,sch_periodMinutes:FRe,sch_periodMonth:BRe,sch_periodMonthly:WRe,sch_periodOnce:HRe,sch_periodSpecificMonths:URe,sch_periodWeek:VRe,sch_periodWeekdays:GRe,sch_periodWeekend:qRe,sch_periodWeekly:JRe,sch_periodWorkdays:XRe,sch_periodYear:YRe,sch_periodYearly:KRe,sch_specificTime:ZRe,sch_time:QRe,sch_to:ePe,sch_valid:tPe,sch_validFrom:nPe,sch_validTo:rPe,sch_wholeDay:oPe,sch_yearEveryMonth:sPe,"ra_Define schedule...":"定义时间表...",ra_Repeat:aPe,"ra_use seconds":"用秒",ra_close:iPe,ra_dow_Th:lPe,ra_dow_Tu:cPe,"ra_Toggle the states view":"切换状态视图","ra_Add new child object to selected parent":"将新的子对象添加到选定的父对象","ra_Add objects tree from JSON file":"从JSON文件添加对象树","ra_Save objects tree as JSON file":"将对象树另存为JSON文件",ra_Objects:dPe,ra_States:uPe,ra_object_changed_by_user:pPe,ra_object_changed_by:hPe,ra_state_changed_from:fPe,ra_state_changed_by:mPe,ra_aclOwner_read_object:gPe,ra_aclOwner_read_state:_Pe,ra_aclOwner_write_object:vPe,ra_aclOwner_write_state:yPe,ra_aclGroup_read_object:bPe,ra_aclGroup_read_state:wPe,ra_aclGroup_write_object:SPe,ra_aclGroup_write_state:xPe,ra_aclEveryone_read_object:kPe,ra_aclEveryone_read_state:$Pe,ra_aclEveryone_write_object:CPe,ra_aclEveryone_write_state:EPe,"ra_Folders always first":"资料夹永远优先",ra_changedFrom:TPe,ra_qualityCode:OPe,ra_timestamp:DPe,ra_lastChange:APe,"ra_Owner group":"所有者组","ra_Owner user":"所有者用户",ra_Create:NPe,"ra_Changed from":"更改为","ra_Quality code":"质量代码",ra_Timestamp:MPe,"ra_Last change":"最后一次变更","ra_Collapse all nodes":"收合所有节点","ra_Edit custom config":"编辑自定义配置","ra_Collapse one step node":"折叠一级","ra_Expand one step node":"扩大一级","ra_Refresh tree":"刷新树","ra_Expand all nodes":"展开所有节点","ra_Deselect all":"全部取消选择","ra_Select all":"全选","ra_%s object(s) processed":"已处理%s个对象","ra_Invalid structure":"结构无效","ra_%s was imported":"对象已导入","ra_Failed to open JSON File":"无法打开JSON文件","ra_Only following structures of objects are available:":"仅以下对象结构可用:","ra_Folder → State":"文件夹→状态","ra_Folder → Channel → State":"文件夹→频道→状态","ra_Folder → Device → Channel → State":"文件夹→设备→频道→状态","ra_Device → Channel → State":"设备→频道→状态","ra_Channel → State":"频道→状态",'ra_Non-experts may create new objects only in "0_userdata.0" or "alias.0".':"非专家只能在“ 0_userdata.0”或“ alias.0”中创建新对象。",'ra_The experts may create objects everywhere but from second level (e.g. "vis.0" or "javascript.0").':"专家可以在任何地方创建对象,但要从第二层开始(例如“ vis.0”或“ javascript.0”)。",ra_expertMode:jPe,"ra_On weekdays":"在工作日","ra_Drop the files here...":"把文件放在这里...","ra_Drag 'n' drop some files here, or click to select files":"将一些文件拖放到此处,或单击以选择文件",ra_Clear:IPe,"ra_Clear icon":"清除图标",ra_none:zPe,"ra_Select predefined icon":"选择预定义图标","ra_Show lines between rows":"显示行之间的线","ra_The page you are looking for was not found":"未找到您要查找的页面","ra_Good luck":"祝你好运",'ra_Cannot find "%s"':"找不到“%s”",'ra_Cannot read "%s"':"无法阅读“%s”","ra_Background image":"背景图像","ra_View: %s":"查看:%s","ra_Copy content":"复制内容",ra_Filter:RPe,"ra_All objects":"所有对象","ra_Only selected":"只选择","ra_Change color theme":"更改颜色主题",ra_daysShortText:PPe,"ra_Instance %s is alive":"实例 %s 是活动的","ra_Instance %s is not alive":"实例 %s 不存在","ra_Used system settings":"使用的系统设置","ra_Cannot determine position: System settings are empty and GPS detection is disabled in browser":"无法确定位置:系统设置为空且浏览器中禁用了 GPS 检测","ra_Define schedule":"定义时间表",ra___different__:LPe,"ra_Please confirm":"请确认","ra_JSON editor":"JSON 编辑器","ra_System language":"系统语言","ra_Too small":"太小","ra_Too big":"太大","ra_Passwords are not equal!":"密码不相等!",ra_repeat:FPe,"ra_You can filter entries by entering here some text":"您可以通过在此处输入一些文本来过滤条目","ra_Show/hide filter input":"显示/隐藏过滤器输入","ra_Cannot add items with set filter":"无法使用设置过滤器添加项目","ra_Add row":"添加行","ra_Move up":"提升","ra_Move down":"下移","ra_Delete current row":"删除当前行","ra_All items are filtered out":"所有项目都被过滤掉","ra_Double click to reset table layout":"双击重置表格布局","ra_Cannot retrieve options, as instance is offline":"无法检索选项,因为实例处于脱机状态","ra_File is too big. Max %sk allowed. Try use SVG.":"文件太大。允许的最大字节%s数。尝试使用 SVG。","ra_Cannot upload":"无法上传",ra_Crop:BPe,ra_tooltip_comment:WPe,ra_Disconnected:HPe,ra_Connected:UPe,ra_Configure:VPe,"ra_Invalid CRON":"无效的 CRON",ra_Discard:GPe,"ra_Some data are not stored. Discard?":"部分数据未存储。丢弃?","ra_Filter files":"过滤文件","ra_Please select file...":"请选择文件...",ra_dow_We:qPe,ra_fileType_all:JPe,ra_fileType_audio:XPe,ra_fileType_code:YPe,ra_fileType_images:KPe,ra_fileType_txt:ZPe,"ra_fileType_video,":"视频",ra_month_Apr:QPe,ra_month_Aug:e8e,ra_month_Dec:t8e,ra_month_Feb:n8e,ra_month_Jan:r8e,ra_month_Jul:o8e,ra_month_Jun:s8e,ra_month_Mai:a8e,ra_month_Mar:i8e,ra_month_Nov:l8e,ra_month_Oct:c8e,ra_month_Sep:d8e,ra_months_Apr:u8e,ra_months_Aug:p8e,ra_months_Dec:h8e,ra_months_Feb:f8e,ra_months_Jan:m8e,ra_months_Jul:g8e,ra_months_Jun:_8e,ra_months_Mai:v8e,ra_months_Mar:y8e,ra_months_Nov:b8e,ra_months_Oct:w8e,ra_months_Sep:S8e,"ra_Cannot decode license":"无法解码许可证","ra_Invalid answer from server":"来自服务器的无效答案","ra_License %s":"许可证 %s","ra_License does not exist":"许可证不存在","ra_License expired on %s":"许可证已于 %s 过期",'ra_License for other product "%s"':"其他产品“%s”的许可证","ra_License is for version %s, but required version is %s.":"许可证适用于版本 %s,但所需版本为 %s。",'ra_Serial number (UUID) "%s" in license is for other device.':"许可证中的序列号 (UUID)“%s”用于其他设备。","ra_Serial number (UUID)":"序列号 (UUID)","ra_Check license":"检查许可证","ra_Request timed out":"请求超时","ra_Instance is not alive":"实例不存在","ra_Show/Hide object descriptions":"显示/隐藏对象描述","ra_Use system settings for position":"使用系统设置定位",ra_Longitude:x8e,ra_Latitude:k8e,"ra_Take browser position":"从浏览器获取位置","ra_Take position from system settings":"从系统设置中获取位置","ra_Port is already used by %s":"端口已被 %s 使用","ra_Port could be used by %s":"%s 可以使用端口",ra_filter_customs_without:$8e,"ra_Use iobroker.acme adapter for letsencrypt certificates":"使用 iobroker.acme 适配器获取 letsencrypt 证书","ra_Do not use let's encrypt":"不要使用让我们加密","ra_Use all available let's encrypt certificates":"使用所有可用的让我们加密证书","ra_Public certificate":"公共证书","ra_Private certificate":"私有证书","ra_Chained certificate":"链式证书","ra_Suitable license not found in license manager":"在许可证管理器中找不到合适的许可证","ra_Please enter the license":"请输入许可证",ra_Checked:C8e,ra_locally:E8e,"ra_via internet":"通过互联网",ra_Yes:T8e,"ra_License not found in license manager. Do you want to read licenses from iobroker.net?":"在许可证管理器中找不到许可证。您要从 iobroker.net 更新许可证吗?","ra_Fallback custom certificates":"后备自定义证书","ra_Clone current row":"克隆当前行",ra_fileType_video:O8e,ra_select_folder_hint:D8e,"ra_Accept license":"接受许可","ra_License agreement":"许可协议","ra_Import from %s":"从 %s 导入","ra_Export data to %s file":"将数据导出到 %s 文件","ra_Import data from %s file":"从 %s 文件导入数据","ra_No data found in file":"文件中未找到数据","ra_Append or replace?":"追加还是替换?","ra_Append %s entries or replace existing?":"追加 %s 条目还是替换现有条目?",ra_Replace:A8e,ra_Append:N8e,'ra_May not trigger "updateLicenses"':"可能不会触发“updateLicenses”","ra_Unknown error":"未知错误","ra_License must be converted":"许可证必须转换为更新版本。您可以在 iobroker.net 个人资料中执行此操作。","ra_No one license found in license manager":"许可证管理器中未找到任何许可证","ra_Please create license":"请创建许可证",ra_Product:M8e,ra_Version:j8e,ra_ValidTill:I8e,ra_Commercial:z8e,"ra_Not a number":"不是数字","ra_Edit value":"编辑值","ra_Edit ACL":"编辑访问控制列表","ra_Edit role":"编辑角色","ra_Edit function":"编辑功能","ra_Edit room":"编辑室","ra_Edit alias":"编辑别名","ra_View file":"查看文件",ra_Del:R8e,"ra_Show all folders":"显示所有文件夹","ra_Restrict to folder":"限制到文件夹","ra_Select type of export":"选择导出类型","ra_You can export all objects or just the selected branch.":"您可以导出所有对象或仅导出选定的分支。","ra_Do not export values of states":"不导出状态值","ra_Selected %s object(s)":"选定的 %s 个对象",ra_create_device:P8e,ra_create_channel:L8e,ra_create_state:F8e,ra_create_string_state:B8e,ra_create_number_state:W8e,ra_create_boolean_state:H8e,"ra_Select color":"选择颜色","ra_Cannot read licenses: %s":"无法读取许可证:%s","ra_Advanced options":"高级选项",sc_everyN_dow:U8e,sc_every_dow:V8e,sc_specific_dow:G8e,ra_Name:q8e,"ra_import data from %s file":"从 %s 文件导入数据","ra_Invalid JSON":"JSON 无效","ra_Create alias":"创建别名",ra_Categories:J8e,"ra_%s links from aliases":"来自别名的 %s 个链接",ra_warning_every_second:X8e,ra_warning_every_minute:Y8e,"ra_The schedule will be executed every second. Are you sure?":"该计划将每秒执行一次。你确定吗?","ra_The schedule will be executed every minute. Are you sure?":"该计划将每分钟执行一次。您确定吗?",sc_dow:K8e,"ra_Define CRON...":"定义 CRON...",ra_Sunday:Z8e,ra_Monday:Q8e,ra_Tuesday:e9e,ra_Wednesday:t9e,ra_Thursday:n9e,ra_Friday:r9e,ra_Saturday:o9e,sc_invalid_cron:s9e},i9e={en:YY,de:Kte,ru:Zae,pt:Que,nl:e_e,fr:t1e,it:n$e,es:rOe,pl:oAe,uk:s6e,"zh-cn":a9e},l9e=` +html { + height: 100%; +} + +body { + margin: 0; + padding: 0; + font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; + width: 100%; + height: 100%; + overflow: hidden; +} + +/* scrollbar */ +::-webkit-scrollbar-track { + background-color: #ccc; + border-radius: 5px; +} + +::-webkit-scrollbar { + width: 5px; + height: 5px; + background-color: #ccc; +} + +::-webkit-scrollbar-thumb { + background-color: #575757; + border-radius: 5px; +} + +#root { + height: 100%; +} + +.App { + height: 100%; +} + +@keyframes glow { + from { + background-color: initial; + } + to { + background-color: #58c458; + } +} +`;class zs extends Td{constructor(n,r){const o=n.Connection||(r==null?void 0:r.Connection)||Mo;if(!window.document.getElementById("generic-app-iobroker-component")){const c=window.document.createElement("style");c.setAttribute("id","generic-app-iobroker-component"),c.innerHTML=l9e,window.document.head.appendChild(c)}if(!zs.isWeb()&&window.io&&window.location.port==="3000")try{const c=new window.SocketClient;delete window.io,window.io=c}catch{}super(n);L(this,"socket");L(this,"instance");L(this,"adapterName");L(this,"instanceId");L(this,"newReact");L(this,"encryptedFields");L(this,"sentryDSN");L(this,"alertDialogRendered");L(this,"_secret");L(this,"_systemConfig");L(this,"savedNative");L(this,"common",null);L(this,"sentryStarted",!1);L(this,"sentryInited",!1);L(this,"resizeTimer",null);L(this,"onSystemConfigChanged",(n,r)=>{var o,s;r&&n==="system.config"&&(this.socket.systemLang!==(r==null?void 0:r.common.language)&&(this.socket.systemLang=(r==null?void 0:r.common.language)||"en",E.setLanguage(this.socket.systemLang)),((o=this._systemConfig)==null?void 0:o.expertMode)!==!!((s=r==null?void 0:r.common)!=null&&s.expertMode)?(this._systemConfig=(r==null?void 0:r.common)||{},this.setState({expertMode:this.getExpertMode()})):this._systemConfig=(r==null?void 0:r.common)||{})});L(this,"onReceiveMessage",n=>{if(n!=null&&n.data)if(n.data==="updateTheme"){const r=U.getThemeName();U.setThemeName(U.getThemeName());const o=this.createTheme(r);this.setState({theme:o,themeName:this.getThemeName(o),themeType:this.getThemeType(o)},()=>{this.props.onThemeChange&&this.props.onThemeChange(r),this.onThemeChanged&&this.onThemeChanged(r)})}else n.data==="updateExpertMode"?this.onToggleExpertMode&&this.onToggleExpertMode(this.getExpertMode()):n.data!=="chartReady"&&console.debug(`Received unknown message: "${JSON.stringify(n.data)}". May be it will be processed later`)});L(this,"onResize",()=>{this.resizeTimer&&clearTimeout(this.resizeTimer),this.resizeTimer=setTimeout(()=>{this.resizeTimer=null,this.setState({width:zs.getWidth()})},200)});BV();const s=(window.location.search||"").replace(/^\?/,"").replace(/#.*$/,""),a={};s.trim().split("&").filter(c=>c.trim()).forEach(c=>{const h=c.split("=");a[h[0]]=h.length===2?h[1]:!0,a[h[0]]==="true"?a[h[0]]=!0:a[h[0]]==="false"&&(a[h[0]]=!1)}),this.instance=(r==null?void 0:r.instance)??n.instance??(a.instance!==void 0?parseInt(a.instance,10)||0:parseInt(window.location.search.slice(1),10)||0);const i=window.location.pathname.split("/");this.adapterName=(r==null?void 0:r.adapterName)||n.adapterName||window.adapterName||i[i.length-2]||"iot",this.instanceId=`system.adapter.${this.adapterName}.${this.instance}`,this.newReact=a.newReact===!0;const l=Td.getLocation();l.tab=l.tab||(window._localStorage||window.localStorage).getItem(`${this.adapterName}-adapter`)||"";const d=this.createTheme();this.state=Object.assign(this.state||{},{selectedTab:(window._localStorage||window.localStorage).getItem(`${this.adapterName}-adapter`)||"",selectedTabNum:-1,native:{},errorText:"",changed:!1,connected:!1,loaded:!1,isConfigurationError:"",expertMode:!1,toast:"",theme:d,themeName:this.getThemeName(d),themeType:this.getThemeType(d),bottomButtons:(r&&r.bottomButtons)===!1?!1:(n==null?void 0:n.bottomButtons)!==!1,width:zs.getWidth(),confirmClose:!1,_alert:!1,_alertType:"info",_alertMessage:""});const u=i9e;r!=null&&r.translations?Object.keys(r.translations).forEach(c=>{r.translations&&(u[c]=Object.assign(u[c],r.translations[c]||{}))}):n.translations&&Object.keys(n.translations).forEach(c=>{n.translations&&(u[c]=Object.assign(u[c],n.translations[c]||{}))}),E.setTranslations(u),this.savedNative={},this.encryptedFields=n.encryptedFields||(r==null?void 0:r.encryptedFields)||[],this.sentryDSN=r&&r.sentryDSN||n.sentryDSN,window.socketUrl&&(window.socketUrl.startsWith(":")?window.socketUrl=`${window.location.protocol}//${window.location.hostname}${window.socketUrl}`:!window.socketUrl.startsWith("http://")&&!window.socketUrl.startsWith("https://")&&(window.socketUrl=`${window.location.protocol}//${window.socketUrl}`)),this.alertDialogRendered=!1,window.oldAlert=window.alert,window.alert=c=>{if(!this.alertDialogRendered){window.oldAlert(c);return}c&&c.toString().toLowerCase().includes("error")?(console.error(c),this.showAlert(c.toString(),"error")):(console.log(c),this.showAlert(c.toString(),"info"))},this.socket=new o({...(n==null?void 0:n.socket)||(r==null?void 0:r.socket),name:this.adapterName,doNotLoadAllObjects:r==null?void 0:r.doNotLoadAllObjects,onProgress:c=>{c===No.CONNECTING?this.setState({connected:!1}):c===No.READY?this.setState({connected:!0}):this.setState({connected:!0})},onReady:()=>{E.setLanguage(this.socket.systemLang),this.socket.subscribeObject("system.config",this.onSystemConfigChanged).then(()=>this.getSystemConfig()).then(c=>(this._secret=typeof c<"u"&&c.native&&c.native.secret||"Zgfr56gFe87jJOM",this._systemConfig=(c==null?void 0:c.common)||{},this.socket.getObject(this.instanceId))).then(async c=>{var w,v;let h;const f=c,_=((w=await this.socket.getState(`${this.instanceId}.plugins.sentry.enabled`))==null?void 0:w.val)!==!1&&((v=this._systemConfig)==null?void 0:v.diag)!=="none"&&(f==null?void 0:f.common)&&f.common.name&&f.common.version&&!f.common.disableDataReporting&&window.location.host!=="localhost:3000";!this.sentryStarted&&this.sentryDSN&&_&&(this.sentryStarted=!0,VU({dsn:this.sentryDSN,release:`iobroker.${f.common.name}@${f.common.version}`,integrations:[k4()]}),console.log("Sentry initialized")),!this.sentryInited&&_&&(this.sentryInited=!0,h=this.socket.getObject("system.meta.uuid").then(b=>{b&&b.native&&b.native.uuid&&ws().setUser({id:b.native.uuid})})),h=h instanceof Promise?h:Promise.resolve(),h.then(()=>{f?(this.common=f==null?void 0:f.common,this.onPrepareLoad(f.native,f.encryptedNative),this.savedNative=JSON.parse(JSON.stringify(f.native)),this.setState({native:f.native,loaded:!0,expertMode:this.getExpertMode()},()=>this.onConnectionReady&&this.onConnectionReady())):(console.warn("Cannot load instance settings"),this.setState({native:{},loaded:!0,expertMode:this.getExpertMode()},()=>this.onConnectionReady&&this.onConnectionReady()))})}).catch(c=>window.alert(`Cannot settings: ${c}`))},onError:c=>{console.error(c),this.showError(c)}})}static isWeb(){return window.socketUrl!==void 0}showAlert(n,r){r!=="error"&&r!=="warning"&&r!=="info"&&r!=="success"&&(r="info"),this.setState({_alert:!0,_alertType:r,_alertMessage:n})}renderAlertSnackbar(){return this.alertDialogRendered=!0,p.createElement(su,{style:this.state._alertType==="error"?{backgroundColor:"#f44336"}:this.state._alertType==="success"?{backgroundColor:"#4caf50"}:void 0,open:this.state._alert,autoHideDuration:6e3,onClose:(n,r)=>r!=="clickaway"&&this.setState({_alert:!1}),message:this.state._alertMessage})}componentDidMount(){window.addEventListener("resize",this.onResize,!0),window.addEventListener("message",this.onReceiveMessage,!1),super.componentDidMount()}componentWillUnmount(){window.removeEventListener("resize",this.onResize,!0),window.removeEventListener("message",this.onReceiveMessage,!1),super.componentWillUnmount()}static getWidth(){const n={xs:0,sm:600,md:960,lg:1280,xl:1920},r=window.innerWidth;return Object.keys(n).reverse().find(a=>r>=n[a])||"xs"}createTheme(n){return M7(U.getThemeName(n))}getThemeName(n){return n.name}getThemeType(n){return n.palette.mode}onThemeChanged(n){}onToggleExpertMode(n){}toggleTheme(n){const r=this.state.themeName;if(n=n||(r==="dark"||r==="blue"||r==="colored"?"light":"dark"),n!==r){U.setThemeName(n);const o=this.createTheme(n);this.setState({theme:o,themeName:this.getThemeName(o),themeType:this.getThemeType(o)},()=>{this.props.onThemeChange&&this.props.onThemeChange(n||"light"),this.onThemeChanged&&this.onThemeChanged(n||"light")})}}getSystemConfig(){return this.socket.getSystemConfig()}getExpertMode(){var n;return window.sessionStorage.getItem("App.expertMode")==="true"||!!((n=this._systemConfig)!=null&&n.expertMode)}onConnectionReady(){}encrypt(n){let r="";if(this._secret)for(let o=0;o{n[r]&&(n[r]=this.encrypt(n[r]))}),!0}onPrepareLoad(n,r){this.encryptedFields&&this.encryptedFields.forEach(o=>{n[o]&&(n[o]=this.decrypt(n[o]))}),r&&r.forEach(o=>{this.encryptedFields=this.encryptedFields||[],!this.encryptedFields.includes(o)&&this.encryptedFields.push(o),n[o]&&(n[o]=this.decrypt(n[o]))})}async getExtendableInstances(){try{const n=await this.socket.getObjectViewSystem("instance","system.adapter.","system.adapter.香");return Object.values(n).filter(r=>{var o;return!!((o=r==null?void 0:r.common)!=null&&o.webExtendable)})}catch{return[]}}async getIpAddresses(n){var a;const r=await this.socket.getHostByIp(n||((a=this.common)==null?void 0:a.host)||""),o=r.find(i=>i.address==="0.0.0.0");o&&(o.name=`[IPv4] 0.0.0.0 - ${E.t("ra_Listen on all IPs")}`);const s=r.find(i=>i.address==="::");return s&&(s.name=`[IPv4] :: - ${E.t("ra_Listen on all IPs")}`),r}onSave(n){let r;if(this.state.isConfigurationError){this.setState({errorText:this.state.isConfigurationError});return}this.socket.getObject(this.instanceId).then(o=>{r=o||{};for(const s in this.state.native)Object.prototype.hasOwnProperty.call(this.state.native,s)&&(this.state.native[s]===null?r.native[s]=null:this.state.native[s]!==void 0?r.native[s]=JSON.parse(JSON.stringify(this.state.native[s])):delete r.native[s]);if(this.state.common)for(const s in this.state.common)this.state.common[s]===null?r.common[s]=null:this.state.common[s]!==void 0?r.common[s]=JSON.parse(JSON.stringify(this.state.common[s])):delete r.common[s];return this.onPrepareSave(r.native)!==!1?this.socket.setObject(this.instanceId,r):Promise.reject(new Error("Invalid configuration"))}).then(()=>{this.savedNative=r.native,globalThis.changed=!1;try{window.parent.postMessage("nochange","*")}catch{}this.setState({changed:!1}),n&&zs.onClose()}).catch(o=>console.error(`Cannot save configuration: ${o}`))}renderToast(){var n;return this.state.toast?p.createElement(su,{anchorOrigin:{vertical:"bottom",horizontal:"left"},open:!0,autoHideDuration:6e3,onClose:()=>this.setState({toast:""}),ContentProps:{"aria-describedby":"message-id"},message:p.createElement("span",{id:"message-id"},this.state.toast),action:[p.createElement(fe,{key:"close","aria-label":"Close",color:"inherit",className:(n=this.props.classes)==null?void 0:n.close,onClick:()=>this.setState({toast:""}),size:"large"},p.createElement($t,null))]}):null}static onClose(){if(typeof window.parent<"u"&&window.parent)try{window.parent.$iframeDialog&&typeof window.parent.$iframeDialog.close=="function"?window.parent.$iframeDialog.close():window.parent.postMessage("close","*")}catch{window.parent.postMessage("close","*")}}renderError(){return this.state.errorText?p.createElement(W4,{text:this.state.errorText,onClose:()=>this.setState({errorText:""})}):null}getIsChanged(n){n=n||this.state.native;const r=JSON.stringify(n)!==JSON.stringify(this.savedNative);return globalThis.changed=r,r}onLoadConfig(n){JSON.stringify(n)!==JSON.stringify(this.state.native)&&this.setState({native:n,changed:this.getIsChanged(n)})}setConfigurationError(n){this.state.isConfigurationError!==n&&this.setState({isConfigurationError:n})}renderSaveCloseButtons(){return!this.state.confirmClose&&!this.state.bottomButtons?null:p.createElement(p.Fragment,null,this.state.bottomButtons?p.createElement(XV,{theme:this.state.theme,newReact:this.newReact,noTextOnButtons:this.state.width==="xs"||this.state.width==="sm"||this.state.width==="md",changed:this.state.changed,onSave:n=>this.onSave(n),onClose:()=>{this.state.changed?this.setState({confirmClose:!0}):zs.onClose()}}):null,this.state.confirmClose?p.createElement(B4,{title:E.t("ra_Please confirm"),text:E.t("ra_Some data are not stored. Discard?"),ok:E.t("ra_Discard"),cancel:E.t("ra_Cancel"),onClose:n=>this.setState({confirmClose:!1},()=>n&&zs.onClose())}):null)}_updateNativeValue(n,r,o){typeof r!="object"&&(r=r.split("."));const s=r.shift()||"";if(!r.length)return o&&typeof o=="object"?JSON.stringify(n[s])!==JSON.stringify(o)?(n[s]=o,!0):!1:n[s]!==o?(n[s]=o,!0):!1;if(n[s]=n[s]||{},typeof n[s]!="object")throw new Error(`attribute ${s} is no object, but ${typeof n[s]}`);return this._updateNativeValue(n[s],r,o)}updateNativeValue(n,r,o){const s=JSON.parse(JSON.stringify(this.state.native));if(this._updateNativeValue(s,n,r)){const a=this.getIsChanged(s);if(a!==this.state.changed)try{window.parent.postMessage(a?"change":"nochange","*")}catch{}this.setState({native:s,changed:a},o)}}showError(n){this.setState({errorText:n})}showToast(n){this.setState({toast:n})}renderHelperDialogs(){return p.createElement(p.Fragment,null,this.renderError(),this.renderToast(),this.renderSaveCloseButtons(),this.renderAlertSnackbar())}render(){return this.state.loaded?p.createElement("div",{className:"App"},this.renderError(),this.renderToast(),this.renderSaveCloseButtons(),this.renderAlertSnackbar()):p.createElement(F4,{themeType:this.state.themeType})}}var Lr={},Mu={},c9e=typeof Uu=="object"&&Uu&&Uu.Object===Object&&Uu,H4=c9e,d9e=H4,u9e=typeof self=="object"&&self&&self.Object===Object&&self,p9e=d9e||u9e||Function("return this")(),Xo=p9e,h9e=Xo,f9e=h9e.Symbol,ju=f9e,kk=ju,U4=Object.prototype,m9e=U4.hasOwnProperty,g9e=U4.toString,Fc=kk?kk.toStringTag:void 0;function _9e(e){var t=m9e.call(e,Fc),n=e[Fc];try{e[Fc]=void 0;var r=!0}catch{}var o=g9e.call(e);return r&&(t?e[Fc]=n:delete e[Fc]),o}var v9e=_9e,y9e=Object.prototype,b9e=y9e.toString;function w9e(e){return b9e.call(e)}var S9e=w9e,$k=ju,x9e=v9e,k9e=S9e,$9e="[object Null]",C9e="[object Undefined]",Ck=$k?$k.toStringTag:void 0;function E9e(e){return e==null?e===void 0?C9e:$9e:Ck&&Ck in Object(e)?x9e(e):k9e(e)}var pi=E9e,T9e=Array.isArray,yo=T9e;function O9e(e){return e!=null&&typeof e=="object"}var Ss=O9e,D9e=pi,A9e=yo,N9e=Ss,M9e="[object String]";function j9e(e){return typeof e=="string"||!A9e(e)&&N9e(e)&&D9e(e)==M9e}var I9e=j9e;function z9e(e){return function(t,n,r){for(var o=-1,s=Object(t),a=r(t),i=a.length;i--;){var l=a[e?i:++o];if(n(s[l],l,s)===!1)break}return t}}var R9e=z9e,P9e=R9e,L9e=P9e(),F9e=L9e;function B9e(e,t){for(var n=-1,r=Array(e);++n-1&&e%1==0&&e-1&&e%1==0&&e<=rLe}var qb=oLe,sLe=pi,aLe=qb,iLe=Ss,lLe="[object Arguments]",cLe="[object Array]",dLe="[object Boolean]",uLe="[object Date]",pLe="[object Error]",hLe="[object Function]",fLe="[object Map]",mLe="[object Number]",gLe="[object Object]",_Le="[object RegExp]",vLe="[object Set]",yLe="[object String]",bLe="[object WeakMap]",wLe="[object ArrayBuffer]",SLe="[object DataView]",xLe="[object Float32Array]",kLe="[object Float64Array]",$Le="[object Int8Array]",CLe="[object Int16Array]",ELe="[object Int32Array]",TLe="[object Uint8Array]",OLe="[object Uint8ClampedArray]",DLe="[object Uint16Array]",ALe="[object Uint32Array]",jt={};jt[xLe]=jt[kLe]=jt[$Le]=jt[CLe]=jt[ELe]=jt[TLe]=jt[OLe]=jt[DLe]=jt[ALe]=!0;jt[lLe]=jt[cLe]=jt[wLe]=jt[dLe]=jt[SLe]=jt[uLe]=jt[pLe]=jt[hLe]=jt[fLe]=jt[mLe]=jt[gLe]=jt[_Le]=jt[vLe]=jt[yLe]=jt[bLe]=!1;function NLe(e){return iLe(e)&&aLe(e.length)&&!!jt[sLe(e)]}var MLe=NLe;function jLe(e){return function(t){return e(t)}}var Jb=jLe,hf={exports:{}};hf.exports;(function(e,t){var n=H4,r=t&&!t.nodeType&&t,o=r&&!0&&e&&!e.nodeType&&e,s=o&&o.exports===r,a=s&&n.process,i=function(){try{var l=o&&o.require&&o.require("util").types;return l||a&&a.binding&&a.binding("util")}catch{}}();e.exports=i})(hf,hf.exports);var Xb=hf.exports,ILe=MLe,zLe=Jb,Tk=Xb,Ok=Tk&&Tk.isTypedArray,RLe=Ok?zLe(Ok):ILe,J4=RLe,PLe=W9e,LLe=G4,FLe=yo,BLe=Gb,WLe=q4,HLe=J4,ULe=Object.prototype,VLe=ULe.hasOwnProperty;function GLe(e,t){var n=FLe(e),r=!n&&LLe(e),o=!n&&!r&&BLe(e),s=!n&&!r&&!o&&HLe(e),a=n||r||o||s,i=a?PLe(e.length,String):[],l=i.length;for(var d in e)(t||VLe.call(e,d))&&!(a&&(d=="length"||o&&(d=="offset"||d=="parent")||s&&(d=="buffer"||d=="byteLength"||d=="byteOffset")||WLe(d,l)))&&i.push(d);return i}var X4=GLe,qLe=Object.prototype;function JLe(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||qLe;return e===n}var Yb=JLe;function XLe(e,t){return function(n){return e(t(n))}}var Y4=XLe,YLe=Y4,KLe=YLe(Object.keys,Object),ZLe=KLe,QLe=Yb,eFe=ZLe,tFe=Object.prototype,nFe=tFe.hasOwnProperty;function rFe(e){if(!QLe(e))return eFe(e);var t=[];for(var n in Object(e))nFe.call(e,n)&&n!="constructor"&&t.push(n);return t}var oFe=rFe;function sFe(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var pc=sFe,aFe=pi,iFe=pc,lFe="[object AsyncFunction]",cFe="[object Function]",dFe="[object GeneratorFunction]",uFe="[object Proxy]";function pFe(e){if(!iFe(e))return!1;var t=aFe(e);return t==cFe||t==dFe||t==lFe||t==uFe}var K4=pFe,hFe=K4,fFe=qb;function mFe(e){return e!=null&&fFe(e.length)&&!hFe(e)}var Xm=mFe,gFe=X4,_Fe=oFe,vFe=Xm;function yFe(e){return vFe(e)?gFe(e):_Fe(e)}var Iu=yFe,bFe=F9e,wFe=Iu;function SFe(e,t){return e&&bFe(e,t,wFe)}var Z4=SFe;function xFe(e){return e}var Q4=xFe,kFe=Q4;function $Fe(e){return typeof e=="function"?e:kFe}var CFe=$Fe,EFe=Z4,TFe=CFe;function OFe(e,t){return e&&EFe(e,TFe(t))}var Kb=OFe,DFe=Y4,AFe=DFe(Object.getPrototypeOf,Object),Zb=AFe,NFe=pi,MFe=Zb,jFe=Ss,IFe="[object Object]",zFe=Function.prototype,RFe=Object.prototype,eD=zFe.toString,PFe=RFe.hasOwnProperty,LFe=eD.call(Object);function FFe(e){if(!jFe(e)||NFe(e)!=IFe)return!1;var t=MFe(e);if(t===null)return!0;var n=PFe.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&eD.call(n)==LFe}var BFe=FFe;function WFe(e,t){for(var n=-1,r=e==null?0:e.length,o=Array(r);++n-1}var o7e=r7e,s7e=Ym;function a7e(e,t){var n=this.__data__,r=s7e(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var i7e=a7e,l7e=UFe,c7e=ZFe,d7e=t7e,u7e=o7e,p7e=i7e;function hc(e){var t=-1,n=e==null?0:e.length;for(this.clear();++ti))return!1;var d=s.get(e),u=s.get(t);if(d&&u)return d==t&&u==e;var c=-1,h=!0,f=n&kWe?new bWe:void 0;for(s.set(e,t),s.set(t,e);++c0&&arguments[0]!==void 0?arguments[0]:[],n=[];return(0,fGe.default)(t,function(r){Array.isArray(r)?e(r).map(function(o){return n.push(o)}):(0,pGe.default)(r)?(0,dGe.default)(r,function(o,s){o===!0&&n.push(s),n.push(s+"-"+o)}):(0,lGe.default)(r)&&n.push(r)}),n};Mu.default=mGe;var zu={};function gGe(e,t){for(var n=-1,r=e==null?0:e.length;++n1&&arguments[1]!==void 0?arguments[1]:[],r=t.default&&(0,zXe.default)(t.default)||{};return n.map(function(o){var s=t[o];return s&&(0,jXe.default)(s,function(a,i){r[i]||(r[i]={}),r[i]=RXe({},r[i],s[i])}),o}),r};zu.default=PXe;var Ru={};Object.defineProperty(Ru,"__esModule",{value:!0});Ru.autoprefix=void 0;var LXe=Kb,c$=BXe(LXe),FXe=Object.assign||function(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:"span";return function(r){JXe(o,r);function o(){var s,a,i,l;qXe(this,o);for(var d=arguments.length,u=Array(d),c=0;c1&&arguments[1]!==void 0?arguments[1]:"span";return function(r){eYe(o,r);function o(){var s,a,i,l;QXe(this,o);for(var d=arguments.length,u=Array(d),c=0;c1&&arguments[1]!==void 0?arguments[1]:!0;r[a]=i};return t===0&&o("first-child"),t===n-1&&o("last-child"),(t===0||t%2===0)&&o("even"),Math.abs(t%2)===1&&o("odd"),o("nth-child",t),r};c1.default=nYe;Object.defineProperty(Lr,"__esModule",{value:!0});Lr.ReactCSS=Lr.loop=Lr.handleActive=d1=Lr.handleHover=Lr.hover=void 0;var rYe=Mu,oYe=vc(rYe),sYe=zu,aYe=vc(sYe),iYe=Ru,lYe=vc(iYe),cYe=Pu,$D=vc(cYe),dYe=Lu,uYe=vc(dYe),pYe=c1,hYe=vc(pYe);function vc(e){return e&&e.__esModule?e:{default:e}}Lr.hover=$D.default;var d1=Lr.handleHover=$D.default;Lr.handleActive=uYe.default;Lr.loop=hYe.default;var fYe=Lr.ReactCSS=function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;oi?h=1:h=Math.round(c*100/i)/100,n.a!==h)return{h:n.h,s:n.s,l:n.l,a:h,source:"rgb"}}else{var f=void 0;if(u<0?f=0:u>a?f=1:f=Math.round(u*100/a)/100,o!==f)return{h:n.h,s:n.s,l:n.l,a:f,source:"rgb"}}return null},v_={},gYe=function(t,n,r,o){if(typeof document>"u"&&!o)return null;var s=o?new o:document.createElement("canvas");s.width=r*2,s.height=r*2;var a=s.getContext("2d");return a?(a.fillStyle=t,a.fillRect(0,0,s.width,s.height),a.fillStyle=n,a.fillRect(0,0,r,r),a.translate(r,r),a.fillRect(0,0,r,r),s.toDataURL()):null},_Ye=function(t,n,r,o){var s=t+"-"+n+"-"+r+(o?"-server":"");if(v_[s])return v_[s];var a=gYe(t,n,r,o);return v_[s]=a,a},p$=Object.assign||function(e){for(var t=1;t-1},AYe=function(t){return Number(String(t).replace(/%/g,""))},NYe=1,tt=function(e){CYe(t,e);function t(n){kYe(this,t);var r=$Ye(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return r.handleBlur=function(){r.state.blurValue&&r.setState({value:r.state.blurValue,blurValue:null})},r.handleChange=function(o){r.setUpdatedValue(o.target.value,o)},r.handleKeyDown=function(o){var s=AYe(o.target.value);if(!isNaN(s)&&DYe(o.keyCode)){var a=r.getArrowOffset(),i=o.keyCode===CD?s+a:s-a;r.setUpdatedValue(i,o)}},r.handleDrag=function(o){if(r.props.dragLabel){var s=Math.round(r.props.value+o.movementX);s>=0&&s<=r.props.dragMax&&r.props.onChange&&r.props.onChange(r.getValueObjectWithLabel(s),o)}},r.handleMouseDown=function(o){r.props.dragLabel&&(o.preventDefault(),r.handleDrag(o),window.addEventListener("mousemove",r.handleDrag),window.addEventListener("mouseup",r.handleMouseUp))},r.handleMouseUp=function(){r.unbindEventListeners()},r.unbindEventListeners=function(){window.removeEventListener("mousemove",r.handleDrag),window.removeEventListener("mouseup",r.handleMouseUp)},r.state={value:String(n.value).toUpperCase(),blurValue:String(n.value).toUpperCase()},r.inputId="rc-editable-input-"+NYe++,r}return SYe(t,[{key:"componentDidUpdate",value:function(r,o){this.props.value!==this.state.value&&(r.value!==this.props.value||o.value!==this.state.value)&&(this.input===document.activeElement?this.setState({blurValue:String(this.props.value).toUpperCase()}):this.setState({value:String(this.props.value).toUpperCase(),blurValue:!this.state.blurValue&&String(this.props.value).toUpperCase()}))}},{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"getValueObjectWithLabel",value:function(r){return xYe({},this.props.label,r)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||EYe}},{key:"setUpdatedValue",value:function(r,o){var s=this.props.label?this.getValueObjectWithLabel(r):r;this.props.onChange&&this.props.onChange(s,o),this.setState({value:r})}},{key:"render",value:function(){var r=this,o=je({default:{wrap:{position:"relative"}},"user-override":{wrap:this.props.style&&this.props.style.wrap?this.props.style.wrap:{},input:this.props.style&&this.props.style.input?this.props.style.input:{},label:this.props.style&&this.props.style.label?this.props.style.label:{}},"dragLabel-true":{label:{cursor:"ew-resize"}}},{"user-override":!0},this.props);return p.createElement("div",{style:o.wrap},p.createElement("input",{id:this.inputId,style:o.input,ref:function(a){return r.input=a},value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,onBlur:this.handleBlur,placeholder:this.props.placeholder,spellCheck:"false"}),this.props.label&&!this.props.hideLabel?p.createElement("label",{htmlFor:this.inputId,style:o.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}]),t}(k.PureComponent||k.Component),MYe=function(t,n,r,o){var s=o.clientWidth,a=o.clientHeight,i=typeof t.pageX=="number"?t.pageX:t.touches[0].pageX,l=typeof t.pageY=="number"?t.pageY:t.touches[0].pageY,d=i-(o.getBoundingClientRect().left+window.pageXOffset),u=l-(o.getBoundingClientRect().top+window.pageYOffset);if(n==="vertical"){var c=void 0;if(u<0)c=359;else if(u>a)c=0;else{var h=-(u*100/a)+100;c=360*h/100}if(r.h!==c)return{h:c,s:r.s,l:r.l,a:r.a,source:"hsl"}}else{var f=void 0;if(d<0)f=0;else if(d>s)f=359;else{var g=d*100/s;f=360*g/100}if(r.h!==f)return{h:f,s:r.s,l:r.l,a:r.a,source:"hsl"}}return null},jYe=function(){function e(t,n){for(var r=0;r-1}function HYe(e,t){var n=this.__data__,r=og(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function xs(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t-1&&e%1==0&&e<=YKe}function wc(e){return e!=null&&m1(e.length)&&!p1(e)}function KKe(e){return ua(e)&&wc(e)}function ZKe(){return!1}var jD=typeof vr=="object"&&vr&&!vr.nodeType&&vr,w$=jD&&typeof yr=="object"&&yr&&!yr.nodeType&&yr,QKe=w$&&w$.exports===jD,S$=QKe?bo.Buffer:void 0,eZe=S$?S$.isBuffer:void 0,yf=eZe||ZKe,tZe="[object Object]",nZe=Function.prototype,rZe=Object.prototype,ID=nZe.toString,oZe=rZe.hasOwnProperty,sZe=ID.call(Object);function aZe(e){if(!ua(e)||fi(e)!=tZe)return!1;var t=ND(e);if(t===null)return!0;var n=oZe.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&ID.call(n)==sZe}var iZe="[object Arguments]",lZe="[object Array]",cZe="[object Boolean]",dZe="[object Date]",uZe="[object Error]",pZe="[object Function]",hZe="[object Map]",fZe="[object Number]",mZe="[object Object]",gZe="[object RegExp]",_Ze="[object Set]",vZe="[object String]",yZe="[object WeakMap]",bZe="[object ArrayBuffer]",wZe="[object DataView]",SZe="[object Float32Array]",xZe="[object Float64Array]",kZe="[object Int8Array]",$Ze="[object Int16Array]",CZe="[object Int32Array]",EZe="[object Uint8Array]",TZe="[object Uint8ClampedArray]",OZe="[object Uint16Array]",DZe="[object Uint32Array]",It={};It[SZe]=It[xZe]=It[kZe]=It[$Ze]=It[CZe]=It[EZe]=It[TZe]=It[OZe]=It[DZe]=!0;It[iZe]=It[lZe]=It[bZe]=It[cZe]=It[wZe]=It[dZe]=It[uZe]=It[pZe]=It[hZe]=It[fZe]=It[mZe]=It[gZe]=It[_Ze]=It[vZe]=It[yZe]=!1;function AZe(e){return ua(e)&&m1(e.length)&&!!It[fi(e)]}function NZe(e){return function(t){return e(t)}}var zD=typeof vr=="object"&&vr&&!vr.nodeType&&vr,Od=zD&&typeof yr=="object"&&yr&&!yr.nodeType&&yr,MZe=Od&&Od.exports===zD,b_=MZe&&ED.process,x$=function(){try{var e=Od&&Od.require&&Od.require("util").types;return e||b_&&b_.binding&&b_.binding("util")}catch{}}(),k$=x$&&x$.isTypedArray,g1=k$?NZe(k$):AZe;function Cy(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var jZe=Object.prototype,IZe=jZe.hasOwnProperty;function zZe(e,t,n){var r=e[t];(!(IZe.call(e,t)&&Fu(r,n))||n===void 0&&!(t in e))&&h1(e,t,n)}function RZe(e,t,n,r){var o=!n;n||(n={});for(var s=-1,a=t.length;++s-1&&e%1==0&&e0){if(++t>=QZe)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var rQe=nQe(ZZe);function oQe(e,t){return rQe(YZe(e,t,ag),e+"")}function sQe(e,t,n){if(!Xr(n))return!1;var r=typeof t;return(r=="number"?wc(n)&&_1(t,n.length):r=="string"&&t in n)?Fu(n[t],e):!1}function aQe(e){return oQe(function(t,n){var r=-1,o=n.length,s=o>1?n[o-1]:void 0,a=o>2?n[2]:void 0;for(s=e.length>3&&typeof s=="function"?(o--,s):void 0,a&&sQe(n[0],n[1],a)&&(s=o<3?void 0:s,o=1),t=Object(t);++r=t||T<0||c&&O>=s}function v(){var C=w_();if(w(C))return b(C);i=setTimeout(v,_(C))}function b(C){return i=void 0,h&&r?f(C):(r=o=void 0,a)}function y(){i!==void 0&&clearTimeout(i),d=0,r=l=o=i=void 0}function S(){return i===void 0?a:b(w_())}function $(){var C=w_(),T=w(C);if(r=arguments,o=this,l=C,T){if(i===void 0)return g(l);if(c)return clearTimeout(i),i=setTimeout(v,t),f(l)}return i===void 0&&(i=setTimeout(v,t)),a}return $.cancel=y,$.flush=S,$}var yQe="Expected a function";function bQe(e,t,n){var r=!0,o=!0;if(typeof e!="function")throw new TypeError(yQe);return Xr(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),FD(e,t,{leading:r,maxWait:t,trailing:o})}var wQe=function(t,n,r){var o=r.getBoundingClientRect(),s=o.width,a=o.height,i=typeof t.pageX=="number"?t.pageX:t.touches[0].pageX,l=typeof t.pageY=="number"?t.pageY:t.touches[0].pageY,d=i-(r.getBoundingClientRect().left+window.pageXOffset),u=l-(r.getBoundingClientRect().top+window.pageYOffset);d<0?d=0:d>s&&(d=s),u<0?u=0:u>a&&(u=a);var c=d/s,h=1-u/a;return{h:n.h,s:c,v:h,a:n.a,source:"hsv"}},SQe=function(){function e(t,n){for(var r=0;r=0,s=!n&&o&&(t==="hex"||t==="hex6"||t==="hex3"||t==="hex4"||t==="hex8"||t==="name");return s?t==="name"&&this._a===0?this.toName():this.toRgbString():(t==="rgb"&&(r=this.toRgbString()),t==="prgb"&&(r=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(r=this.toHexString()),t==="hex3"&&(r=this.toHexString(!0)),t==="hex4"&&(r=this.toHex8String(!0)),t==="hex8"&&(r=this.toHex8String()),t==="name"&&(r=this.toName()),t==="hsl"&&(r=this.toHslString()),t==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},clone:function(){return we(this.toString())},_applyModification:function(t,n){var r=t.apply(null,[this].concat([].slice.call(n)));return this._r=r._r,this._g=r._g,this._b=r._b,this.setAlpha(r._a),this},lighten:function(){return this._applyModification(VQe,arguments)},brighten:function(){return this._applyModification(GQe,arguments)},darken:function(){return this._applyModification(qQe,arguments)},desaturate:function(){return this._applyModification(WQe,arguments)},saturate:function(){return this._applyModification(HQe,arguments)},greyscale:function(){return this._applyModification(UQe,arguments)},spin:function(){return this._applyModification(JQe,arguments)},_applyCombination:function(t,n){return t.apply(null,[this].concat([].slice.call(n)))},analogous:function(){return this._applyCombination(KQe,arguments)},complement:function(){return this._applyCombination(XQe,arguments)},monochromatic:function(){return this._applyCombination(ZQe,arguments)},splitcomplement:function(){return this._applyCombination(YQe,arguments)},triad:function(){return this._applyCombination(N$,[3])},tetrad:function(){return this._applyCombination(N$,[4])}};we.fromRatio=function(e,t){if(bf(e)=="object"){var n={};for(var r in e)e.hasOwnProperty(r)&&(r==="a"?n[r]=e[r]:n[r]=id(e[r]));e=n}return we(e,t)};function RQe(e){var t={r:0,g:0,b:0},n=1,r=null,o=null,s=null,a=!1,i=!1;return typeof e=="string"&&(e=ret(e)),bf(e)=="object"&&(Qo(e.r)&&Qo(e.g)&&Qo(e.b)?(t=PQe(e.r,e.g,e.b),a=!0,i=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Qo(e.h)&&Qo(e.s)&&Qo(e.v)?(r=id(e.s),o=id(e.v),t=FQe(e.h,r,o),a=!0,i="hsv"):Qo(e.h)&&Qo(e.s)&&Qo(e.l)&&(r=id(e.s),s=id(e.l),t=LQe(e.h,r,s),a=!0,i="hsl"),e.hasOwnProperty("a")&&(n=e.a)),n=WD(n),{ok:a,format:e.format||i,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}function PQe(e,t,n){return{r:Lt(e,255)*255,g:Lt(t,255)*255,b:Lt(n,255)*255}}function T$(e,t,n){e=Lt(e,255),t=Lt(t,255),n=Lt(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),s,a,i=(r+o)/2;if(r==o)s=a=0;else{var l=r-o;switch(a=i>.5?l/(2-r-o):l/(r+o),r){case e:s=(t-n)/l+(t1&&(c-=1),c<1/6?d+(u-d)*6*c:c<1/2?u:c<2/3?d+(u-d)*(2/3-c)*6:d}if(t===0)r=o=s=n;else{var i=n<.5?n*(1+t):n+t-n*t,l=2*n-i;r=a(l,i,e+1/3),o=a(l,i,e),s=a(l,i,e-1/3)}return{r:r*255,g:o*255,b:s*255}}function O$(e,t,n){e=Lt(e,255),t=Lt(t,255),n=Lt(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),s,a,i=r,l=r-o;if(a=r===0?0:l/r,r==o)s=0;else{switch(r){case e:s=(t-n)/l+(t>1)+720)%360;--t;)r.h=(r.h+o)%360,s.push(we(r));return s}function ZQe(e,t){t=t||6;for(var n=we(e).toHsv(),r=n.h,o=n.s,s=n.v,a=[],i=1/t;t--;)a.push(we({h:r,s:o,v:s})),s=(s+i)%1;return a}we.mix=function(e,t,n){n=n===0?0:n||50;var r=we(e).toRgb(),o=we(t).toRgb(),s=n/100,a={r:(o.r-r.r)*s+r.r,g:(o.g-r.g)*s+r.g,b:(o.b-r.b)*s+r.b,a:(o.a-r.a)*s+r.a};return we(a)};we.readability=function(e,t){var n=we(e),r=we(t);return(Math.max(n.getLuminance(),r.getLuminance())+.05)/(Math.min(n.getLuminance(),r.getLuminance())+.05)};we.isReadable=function(e,t,n){var r=we.readability(e,t),o,s;switch(s=!1,o=oet(n),o.level+o.size){case"AAsmall":case"AAAlarge":s=r>=4.5;break;case"AAlarge":s=r>=3;break;case"AAAsmall":s=r>=7;break}return s};we.mostReadable=function(e,t,n){var r=null,o=0,s,a,i,l;n=n||{},a=n.includeFallbackColors,i=n.level,l=n.size;for(var d=0;do&&(o=s,r=we(t[d]));return we.isReadable(e,r,{level:i,size:l})||!a?r:(n.includeFallbackColors=!1,we.mostReadable(e,["#fff","#000"],n))};var Ey=we.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},QQe=we.hexNames=eet(Ey);function eet(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function WD(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Lt(e,t){tet(e)&&(e="100%");var n=net(e);return e=Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function cg(e){return Math.min(1,Math.max(0,e))}function pr(e){return parseInt(e,16)}function tet(e){return typeof e=="string"&&e.indexOf(".")!=-1&&parseFloat(e)===1}function net(e){return typeof e=="string"&&e.indexOf("%")!=-1}function co(e){return e.length==1?"0"+e:""+e}function id(e){return e<=1&&(e=e*100+"%"),e}function HD(e){return Math.round(parseFloat(e)*255).toString(16)}function M$(e){return pr(e)/255}var oo=function(){var e="[-\\+]?\\d+%?",t="[-\\+]?\\d*\\.\\d+%?",n="(?:"+t+")|(?:"+e+")",r="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?",o="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?";return{CSS_UNIT:new RegExp(n),rgb:new RegExp("rgb"+r),rgba:new RegExp("rgba"+o),hsl:new RegExp("hsl"+r),hsla:new RegExp("hsla"+o),hsv:new RegExp("hsv"+r),hsva:new RegExp("hsva"+o),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function Qo(e){return!!oo.CSS_UNIT.exec(e)}function ret(e){e=e.replace(IQe,"").replace(zQe,"").toLowerCase();var t=!1;if(Ey[e])e=Ey[e],t=!0;else if(e=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n;return(n=oo.rgb.exec(e))?{r:n[1],g:n[2],b:n[3]}:(n=oo.rgba.exec(e))?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=oo.hsl.exec(e))?{h:n[1],s:n[2],l:n[3]}:(n=oo.hsla.exec(e))?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=oo.hsv.exec(e))?{h:n[1],s:n[2],v:n[3]}:(n=oo.hsva.exec(e))?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=oo.hex8.exec(e))?{r:pr(n[1]),g:pr(n[2]),b:pr(n[3]),a:M$(n[4]),format:t?"name":"hex8"}:(n=oo.hex6.exec(e))?{r:pr(n[1]),g:pr(n[2]),b:pr(n[3]),format:t?"name":"hex"}:(n=oo.hex4.exec(e))?{r:pr(n[1]+""+n[1]),g:pr(n[2]+""+n[2]),b:pr(n[3]+""+n[3]),a:M$(n[4]+""+n[4]),format:t?"name":"hex8"}:(n=oo.hex3.exec(e))?{r:pr(n[1]+""+n[1]),g:pr(n[2]+""+n[2]),b:pr(n[3]+""+n[3]),format:t?"name":"hex"}:!1}function oet(e){var t,n;return e=e||{level:"AA",size:"small"},t=(e.level||"AA").toUpperCase(),n=(e.size||"small").toLowerCase(),t!=="AA"&&t!=="AAA"&&(t="AA"),n!=="small"&&n!=="large"&&(n="small"),{level:t,size:n}}var j$=function(t){var n=["r","g","b","a","h","s","l","v"],r=0,o=0;return jQe(n,function(s){if(t[s]&&(r+=1,isNaN(t[s])||(o+=1),s==="s"||s==="l")){var a=/^\d+%$/;a.test(t[s])&&(o+=1)}}),r===o?t:!1},ld=function(t,n){var r=t.hex?we(t.hex):we(t),o=r.toHsl(),s=r.toHsv(),a=r.toRgb(),i=r.toHex();o.s===0&&(o.h=n||0,s.h=n||0);var l=i==="000000"&&a.a===0;return{hsl:o,hex:l?"transparent":"#"+i,rgb:a,hsv:s,oldHue:t.h||n||o.h,source:t.source}},ba=function(t){if(t==="transparent")return!0;var n=String(t).charAt(0)==="#"?1:0;return t.length!==4+n&&t.length<7+n&&we(t).isValid()},y1=function(t){if(!t)return"#fff";var n=ld(t);if(n.hex==="transparent")return"rgba(0,0,0,0.4)";var r=(n.rgb.r*299+n.rgb.g*587+n.rgb.b*114)/1e3;return r>=128?"#000":"#fff"},S_=function(t,n){var r=t.replace("°","");return we(n+" ("+r+")")._ok},Wc=Object.assign||function(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:"span";return function(r){het(o,r);function o(){var s,a,i,l;pet(this,o);for(var d=arguments.length,u=Array(d),c=0;ci))return!1;var d=s.get(e),u=s.get(t);if(d&&u)return d==t&&u==e;var c=-1,h=!0,f=n&Cet?new wf:void 0;for(s.set(e,t),s.set(t,e);++c=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var Op=24,Wtt=QD.default=function(e){var t=e.fill,n=t===void 0?"currentColor":t,r=e.width,o=r===void 0?Op:r,s=e.height,a=s===void 0?Op:s,i=e.style,l=i===void 0?{}:i,d=Btt(e,["fill","width","height","style"]);return Z$.default.createElement("svg",K$({viewBox:"0 0 "+Op+" "+Op,style:K$({fill:n,width:o,height:a},l)},d),Z$.default.createElement("path",{d:"M12,18.17L8.83,15L7.42,16.41L12,21L16.59,16.41L15.17,15M12,5.83L15.17,9L16.58,7.59L12,3L7.41,7.59L8.83,9L12,5.83Z"}))},Htt=function(){function e(t,n){for(var r=0;r1&&(o.a=1),r.props.onChange({h:r.props.hsl.h,s:r.props.hsl.s,l:r.props.hsl.l,a:Math.round(o.a*100)/100,source:"rgb"},s)):(o.h||o.s||o.l)&&(typeof o.s=="string"&&o.s.includes("%")&&(o.s=o.s.replace("%","")),typeof o.l=="string"&&o.l.includes("%")&&(o.l=o.l.replace("%","")),o.s==1?o.s=.01:o.l==1&&(o.l=.01),r.props.onChange({h:o.h||r.props.hsl.h,s:Number(Y$(o.s)?r.props.hsl.s:o.s),l:Number(Y$(o.l)?r.props.hsl.l:o.l),source:"hsl"},s))},r.showHighlight=function(o){o.currentTarget.style.background="#eee"},r.hideHighlight=function(o){o.currentTarget.style.background="transparent"},n.hsl.a!==1&&n.view==="hex"?r.state={view:"rgb"}:r.state={view:n.view},r}return Htt(t,[{key:"render",value:function(){var r=this,o=je({default:{wrap:{paddingTop:"16px",display:"flex"},fields:{flex:"1",display:"flex",marginLeft:"-6px"},field:{paddingLeft:"6px",width:"100%"},alpha:{paddingLeft:"6px",width:"100%"},toggle:{width:"32px",textAlign:"right",position:"relative"},icon:{marginRight:"-4px",marginTop:"12px",cursor:"pointer",position:"relative"},iconHighlight:{position:"absolute",width:"24px",height:"28px",background:"#eee",borderRadius:"4px",top:"10px",left:"12px",display:"none"},input:{fontSize:"11px",color:"#333",width:"100%",borderRadius:"2px",border:"none",boxShadow:"inset 0 0 0 1px #dadada",height:"21px",textAlign:"center"},label:{textTransform:"uppercase",fontSize:"11px",lineHeight:"11px",color:"#969696",textAlign:"center",display:"block",marginTop:"12px"},svg:{fill:"#333",width:"24px",height:"24px",border:"1px transparent solid",borderRadius:"5px"}},disableAlpha:{alpha:{display:"none"}}},this.props,this.state),s=void 0;return this.state.view==="hex"?s=p.createElement("div",{style:o.fields,className:"flexbox-fix"},p.createElement("div",{style:o.field},p.createElement(tt,{style:{input:o.input,label:o.label},label:"hex",value:this.props.hex,onChange:this.handleChange}))):this.state.view==="rgb"?s=p.createElement("div",{style:o.fields,className:"flexbox-fix"},p.createElement("div",{style:o.field},p.createElement(tt,{style:{input:o.input,label:o.label},label:"r",value:this.props.rgb.r,onChange:this.handleChange})),p.createElement("div",{style:o.field},p.createElement(tt,{style:{input:o.input,label:o.label},label:"g",value:this.props.rgb.g,onChange:this.handleChange})),p.createElement("div",{style:o.field},p.createElement(tt,{style:{input:o.input,label:o.label},label:"b",value:this.props.rgb.b,onChange:this.handleChange})),p.createElement("div",{style:o.alpha},p.createElement(tt,{style:{input:o.input,label:o.label},label:"a",value:this.props.rgb.a,arrowOffset:.01,onChange:this.handleChange}))):this.state.view==="hsl"&&(s=p.createElement("div",{style:o.fields,className:"flexbox-fix"},p.createElement("div",{style:o.field},p.createElement(tt,{style:{input:o.input,label:o.label},label:"h",value:Math.round(this.props.hsl.h),onChange:this.handleChange})),p.createElement("div",{style:o.field},p.createElement(tt,{style:{input:o.input,label:o.label},label:"s",value:Math.round(this.props.hsl.s*100)+"%",onChange:this.handleChange})),p.createElement("div",{style:o.field},p.createElement(tt,{style:{input:o.input,label:o.label},label:"l",value:Math.round(this.props.hsl.l*100)+"%",onChange:this.handleChange})),p.createElement("div",{style:o.alpha},p.createElement(tt,{style:{input:o.input,label:o.label},label:"a",value:this.props.hsl.a,arrowOffset:.01,onChange:this.handleChange})))),p.createElement("div",{style:o.wrap,className:"flexbox-fix"},s,p.createElement("div",{style:o.toggle},p.createElement("div",{style:o.icon,onClick:this.toggleViews,ref:function(i){return r.icon=i}},p.createElement(Wtt,{style:o.svg,onMouseOver:this.showHighlight,onMouseEnter:this.showHighlight,onMouseOut:this.hideHighlight}))))}}],[{key:"getDerivedStateFromProps",value:function(r,o){return r.hsl.a!==1&&o.view==="hex"?{view:"rgb"}:null}}]),t}(p.Component);e3.defaultProps={view:"hex"};var Q$=function(){var t=je({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",transform:"translate(-6px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}}});return p.createElement("div",{style:t.picker})},qtt=function(){var t=je({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",boxShadow:"inset 0 0 0 1px #fff",transform:"translate(-6px, -6px)"}}});return p.createElement("div",{style:t.picker})},$1=function(t){var n=t.width,r=t.onChange,o=t.disableAlpha,s=t.rgb,a=t.hsl,i=t.hsv,l=t.hex,d=t.renderers,u=t.styles,c=u===void 0?{}:u,h=t.className,f=h===void 0?"":h,g=t.defaultView,_=je(lr({default:{picker:{width:n,background:"#fff",borderRadius:"2px",boxShadow:"0 0 2px rgba(0,0,0,.3), 0 4px 8px rgba(0,0,0,.3)",boxSizing:"initial",fontFamily:"Menlo"},saturation:{width:"100%",paddingBottom:"55%",position:"relative",borderRadius:"2px 2px 0 0",overflow:"hidden"},Saturation:{radius:"2px 2px 0 0"},body:{padding:"16px 16px 12px"},controls:{display:"flex"},color:{width:"32px"},swatch:{marginTop:"6px",width:"16px",height:"16px",borderRadius:"8px",position:"relative",overflow:"hidden"},active:{absolute:"0px 0px 0px 0px",borderRadius:"8px",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.1)",background:"rgba("+s.r+", "+s.g+", "+s.b+", "+s.a+")",zIndex:"2"},toggles:{flex:"1"},hue:{height:"10px",position:"relative",marginBottom:"8px"},Hue:{radius:"2px"},alpha:{height:"10px",position:"relative"},Alpha:{radius:"2px"}},disableAlpha:{color:{width:"22px"},alpha:{display:"none"},hue:{marginBottom:"0px"},swatch:{width:"10px",height:"10px",marginTop:"0px"}}},c),{disableAlpha:o});return p.createElement("div",{style:_.picker,className:"chrome-picker "+f},p.createElement("div",{style:_.saturation},p.createElement(lg,{style:_.Saturation,hsl:a,hsv:i,pointer:qtt,onChange:r})),p.createElement("div",{style:_.body},p.createElement("div",{style:_.controls,className:"flexbox-fix"},p.createElement("div",{style:_.color},p.createElement("div",{style:_.swatch},p.createElement("div",{style:_.active}),p.createElement(yc,{renderers:d}))),p.createElement("div",{style:_.toggles},p.createElement("div",{style:_.hue},p.createElement(bc,{style:_.Hue,hsl:a,pointer:Q$,onChange:r})),p.createElement("div",{style:_.alpha},p.createElement(u1,{style:_.Alpha,rgb:s,hsl:a,pointer:Q$,renderers:d,onChange:r})))),p.createElement(e3,{rgb:s,hsl:a,hex:l,view:g,onChange:r,disableAlpha:o})))};$1.propTypes={width:P.oneOfType([P.string,P.number]),disableAlpha:P.bool,styles:P.object,defaultView:P.oneOf(["hex","rgb","hsl"])};$1.defaultProps={width:225,disableAlpha:!1,styles:{}};cr($1);var Jtt=function(t){var n=t.color,r=t.onClick,o=r===void 0?function(){}:r,s=t.onSwatchHover,a=t.active,i=je({default:{color:{background:n,width:"15px",height:"15px",float:"left",marginRight:"5px",marginBottom:"5px",position:"relative",cursor:"pointer"},dot:{absolute:"5px 5px 5px 5px",background:y1(n),borderRadius:"50%",opacity:"0"}},active:{dot:{opacity:"1"}},"color-#FFFFFF":{color:{boxShadow:"inset 0 0 0 1px #ddd"},dot:{background:"#000"}},transparent:{dot:{background:"#000"}}},{active:a,"color-#FFFFFF":n==="#FFFFFF",transparent:n==="transparent"});return p.createElement(_i,{style:i.color,color:n,onClick:o,onHover:s,focusStyle:{boxShadow:"0 0 4px "+n}},p.createElement("div",{style:i.dot}))},Xtt=function(t){var n=t.hex,r=t.rgb,o=t.onChange,s=je({default:{fields:{display:"flex",paddingBottom:"6px",paddingRight:"5px",position:"relative"},active:{position:"absolute",top:"6px",left:"5px",height:"9px",width:"9px",background:n},HEXwrap:{flex:"6",position:"relative"},HEXinput:{width:"80%",padding:"0px",paddingLeft:"20%",border:"none",outline:"none",background:"none",fontSize:"12px",color:"#333",height:"16px"},HEXlabel:{display:"none"},RGBwrap:{flex:"3",position:"relative"},RGBinput:{width:"70%",padding:"0px",paddingLeft:"30%",border:"none",outline:"none",background:"none",fontSize:"12px",color:"#333",height:"16px"},RGBlabel:{position:"absolute",top:"3px",left:"0px",lineHeight:"16px",textTransform:"uppercase",fontSize:"12px",color:"#999"}}}),a=function(l,d){l.r||l.g||l.b?o({r:l.r||r.r,g:l.g||r.g,b:l.b||r.b,source:"rgb"},d):o({hex:l.hex,source:"hex"},d)};return p.createElement("div",{style:s.fields,className:"flexbox-fix"},p.createElement("div",{style:s.active}),p.createElement(tt,{style:{wrap:s.HEXwrap,input:s.HEXinput,label:s.HEXlabel},label:"hex",value:n,onChange:a}),p.createElement(tt,{style:{wrap:s.RGBwrap,input:s.RGBinput,label:s.RGBlabel},label:"r",value:r.r,onChange:a}),p.createElement(tt,{style:{wrap:s.RGBwrap,input:s.RGBinput,label:s.RGBlabel},label:"g",value:r.g,onChange:a}),p.createElement(tt,{style:{wrap:s.RGBwrap,input:s.RGBinput,label:s.RGBlabel},label:"b",value:r.b,onChange:a}))},C1=function(t){var n=t.onChange,r=t.onSwatchHover,o=t.colors,s=t.hex,a=t.rgb,i=t.styles,l=i===void 0?{}:i,d=t.className,u=d===void 0?"":d,c=je(lr({default:{Compact:{background:"#f6f6f6",radius:"4px"},compact:{paddingTop:"5px",paddingLeft:"5px",boxSizing:"initial",width:"240px"},clear:{clear:"both"}}},l)),h=function(g,_){g.hex?ba(g.hex)&&n({hex:g.hex,source:"hex"},_):n(g,_)};return p.createElement(Bu,{style:c.Compact,styles:l},p.createElement("div",{style:c.compact,className:"compact-picker "+u},p.createElement("div",null,vi(o,function(f){return p.createElement(Jtt,{key:f,color:f,active:f.toLowerCase()===s,onClick:h,onSwatchHover:r})}),p.createElement("div",{style:c.clear})),p.createElement(Xtt,{hex:s,rgb:a,onChange:h})))};C1.propTypes={colors:P.arrayOf(P.string),styles:P.object};C1.defaultProps={colors:["#4D4D4D","#999999","#FFFFFF","#F44E3B","#FE9200","#FCDC00","#DBDF00","#A4DD00","#68CCCA","#73D8FF","#AEA1FF","#FDA1FF","#333333","#808080","#cccccc","#D33115","#E27300","#FCC400","#B0BC00","#68BC00","#16A5A5","#009CE0","#7B64FF","#FA28FF","#000000","#666666","#B3B3B3","#9F0500","#C45100","#FB9E00","#808900","#194D33","#0C797D","#0062B1","#653294","#AB149E"],styles:{}};cr(C1);var Ytt=function(t){var n=t.hover,r=t.color,o=t.onClick,s=t.onSwatchHover,a={position:"relative",zIndex:"2",outline:"2px solid #fff",boxShadow:"0 0 5px 2px rgba(0,0,0,0.25)"},i=je({default:{swatch:{width:"25px",height:"25px",fontSize:"0"}},hover:{swatch:a}},{hover:n});return p.createElement("div",{style:i.swatch},p.createElement(_i,{color:r,onClick:o,onHover:s,focusStyle:a}))};const Ktt=d1(Ytt);var E1=function(t){var n=t.width,r=t.colors,o=t.onChange,s=t.onSwatchHover,a=t.triangle,i=t.styles,l=i===void 0?{}:i,d=t.className,u=d===void 0?"":d,c=je(lr({default:{card:{width:n,background:"#fff",border:"1px solid rgba(0,0,0,0.2)",boxShadow:"0 3px 12px rgba(0,0,0,0.15)",borderRadius:"4px",position:"relative",padding:"5px",display:"flex",flexWrap:"wrap"},triangle:{position:"absolute",border:"7px solid transparent",borderBottomColor:"#fff"},triangleShadow:{position:"absolute",border:"8px solid transparent",borderBottomColor:"rgba(0,0,0,0.15)"}},"hide-triangle":{triangle:{display:"none"},triangleShadow:{display:"none"}},"top-left-triangle":{triangle:{top:"-14px",left:"10px"},triangleShadow:{top:"-16px",left:"9px"}},"top-right-triangle":{triangle:{top:"-14px",right:"10px"},triangleShadow:{top:"-16px",right:"9px"}},"bottom-left-triangle":{triangle:{top:"35px",left:"10px",transform:"rotate(180deg)"},triangleShadow:{top:"37px",left:"9px",transform:"rotate(180deg)"}},"bottom-right-triangle":{triangle:{top:"35px",right:"10px",transform:"rotate(180deg)"},triangleShadow:{top:"37px",right:"9px",transform:"rotate(180deg)"}}},l),{"hide-triangle":a==="hide","top-left-triangle":a==="top-left","top-right-triangle":a==="top-right","bottom-left-triangle":a==="bottom-left","bottom-right-triangle":a==="bottom-right"}),h=function(g,_){return o({hex:g,source:"hex"},_)};return p.createElement("div",{style:c.card,className:"github-picker "+u},p.createElement("div",{style:c.triangleShadow}),p.createElement("div",{style:c.triangle}),vi(r,function(f){return p.createElement(Ktt,{color:f,key:f,onClick:h,onSwatchHover:s})}))};E1.propTypes={width:P.oneOfType([P.string,P.number]),colors:P.arrayOf(P.string),triangle:P.oneOf(["hide","top-left","top-right","bottom-left","bottom-right"]),styles:P.object};E1.defaultProps={width:200,colors:["#B80000","#DB3E00","#FCCB00","#008B02","#006B76","#1273DE","#004DCF","#5300EB","#EB9694","#FAD0C3","#FEF3BD","#C1E1C5","#BEDADC","#C4DEF6","#BED3F3","#D4C4FB"],triangle:"top-left",styles:{}};cr(E1);var Ztt=function(t){var n=t.direction,r=je({default:{picker:{width:"18px",height:"18px",borderRadius:"50%",transform:"translate(-9px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}},vertical:{picker:{transform:"translate(-3px, -9px)"}}},{vertical:n==="vertical"});return p.createElement("div",{style:r.picker})},Qtt=Object.assign||function(e){for(var t=1;t.5});return p.createElement("div",{style:r.picker})},rnt=function(){var t=je({default:{triangle:{width:0,height:0,borderStyle:"solid",borderWidth:"4px 0 4px 6px",borderColor:"transparent transparent transparent #fff",position:"absolute",top:"1px",left:"1px"},triangleBorder:{width:0,height:0,borderStyle:"solid",borderWidth:"5px 0 5px 8px",borderColor:"transparent transparent transparent #555"},left:{Extend:"triangleBorder",transform:"translate(-13px, -4px)"},leftInside:{Extend:"triangle",transform:"translate(-8px, -5px)"},right:{Extend:"triangleBorder",transform:"translate(20px, -14px) rotate(180deg)"},rightInside:{Extend:"triangle",transform:"translate(-8px, -5px)"}}});return p.createElement("div",{style:t.pointer},p.createElement("div",{style:t.left},p.createElement("div",{style:t.leftInside})),p.createElement("div",{style:t.right},p.createElement("div",{style:t.rightInside})))},eC=function(t){var n=t.onClick,r=t.label,o=t.children,s=t.active,a=je({default:{button:{backgroundImage:"linear-gradient(-180deg, #FFFFFF 0%, #E6E6E6 100%)",border:"1px solid #878787",borderRadius:"2px",height:"20px",boxShadow:"0 1px 0 0 #EAEAEA",fontSize:"14px",color:"#000",lineHeight:"20px",textAlign:"center",marginBottom:"10px",cursor:"pointer"}},active:{button:{boxShadow:"0 0 0 1px #878787"}}},{active:s});return p.createElement("div",{style:a.button,onClick:n},r||o)},ont=function(t){var n=t.rgb,r=t.currentColor,o=je({default:{swatches:{border:"1px solid #B3B3B3",borderBottom:"1px solid #F0F0F0",marginBottom:"2px",marginTop:"1px"},new:{height:"34px",background:"rgb("+n.r+","+n.g+", "+n.b+")",boxShadow:"inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 1px 0 #000"},current:{height:"34px",background:r,boxShadow:"inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 -1px 0 #000"},label:{fontSize:"14px",color:"#000",textAlign:"center"}}});return p.createElement("div",null,p.createElement("div",{style:o.label},"new"),p.createElement("div",{style:o.swatches},p.createElement("div",{style:o.new}),p.createElement("div",{style:o.current})),p.createElement("div",{style:o.label},"current"))},snt=function(){function e(t,n){for(var r=0;r100&&(u.a=100),u.a/=100,n({h:o.h,s:o.s,l:o.l,a:u.a,source:"rgb"},c))};return p.createElement("div",{style:i.fields,className:"flexbox-fix"},p.createElement("div",{style:i.double},p.createElement(tt,{style:{input:i.input,label:i.label},label:"hex",value:s.replace("#",""),onChange:l})),p.createElement("div",{style:i.single},p.createElement(tt,{style:{input:i.input,label:i.label},label:"r",value:r.r,onChange:l,dragLabel:"true",dragMax:"255"})),p.createElement("div",{style:i.single},p.createElement(tt,{style:{input:i.input,label:i.label},label:"g",value:r.g,onChange:l,dragLabel:"true",dragMax:"255"})),p.createElement("div",{style:i.single},p.createElement(tt,{style:{input:i.input,label:i.label},label:"b",value:r.b,onChange:l,dragLabel:"true",dragMax:"255"})),p.createElement("div",{style:i.alpha},p.createElement(tt,{style:{input:i.input,label:i.label},label:"a",value:Math.round(r.a*100),onChange:l,dragLabel:"true",dragMax:"100"})))},dnt=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var Dp=24,_nt=n3.default=function(e){var t=e.fill,n=t===void 0?"currentColor":t,r=e.width,o=r===void 0?Dp:r,s=e.height,a=s===void 0?Dp:s,i=e.style,l=i===void 0?{}:i,d=gnt(e,["fill","width","height","style"]);return nC.default.createElement("svg",tC({viewBox:"0 0 "+Dp+" "+Dp,style:tC({fill:n,width:o,height:a},l)},d),nC.default.createElement("path",{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"}))},vnt=function(t){var n=t.color,r=t.onClick,o=r===void 0?function(){}:r,s=t.onSwatchHover,a=t.first,i=t.last,l=t.active,d=je({default:{color:{width:"40px",height:"24px",cursor:"pointer",background:n,marginBottom:"1px"},check:{color:y1(n),marginLeft:"8px",display:"none"}},first:{color:{overflow:"hidden",borderRadius:"2px 2px 0 0"}},last:{color:{overflow:"hidden",borderRadius:"0 0 2px 2px"}},active:{check:{display:"block"}},"color-#FFFFFF":{color:{boxShadow:"inset 0 0 0 1px #ddd"},check:{color:"#333"}},transparent:{check:{color:"#333"}}},{first:a,last:i,active:l,"color-#FFFFFF":n==="#FFFFFF",transparent:n==="transparent"});return p.createElement(_i,{color:n,style:d.color,onClick:o,onHover:s,focusStyle:{boxShadow:"0 0 4px "+n}},p.createElement("div",{style:d.check},p.createElement(_nt,null)))},ynt=function(t){var n=t.onClick,r=t.onSwatchHover,o=t.group,s=t.active,a=je({default:{group:{paddingBottom:"10px",width:"40px",float:"left",marginRight:"10px"}}});return p.createElement("div",{style:a.group},vi(o,function(i,l){return p.createElement(vnt,{key:i,color:i,active:i.toLowerCase()===s,first:l===0,last:l===o.length-1,onClick:n,onSwatchHover:r})}))},N1=function(t){var n=t.width,r=t.height,o=t.onChange,s=t.onSwatchHover,a=t.colors,i=t.hex,l=t.styles,d=l===void 0?{}:l,u=t.className,c=u===void 0?"":u,h=je(lr({default:{picker:{width:n,height:r},overflow:{height:r,overflowY:"scroll"},body:{padding:"16px 0 6px 16px"},clear:{clear:"both"}}},d)),f=function(_,w){return o({hex:_,source:"hex"},w)};return p.createElement("div",{style:h.picker,className:"swatches-picker "+c},p.createElement(Bu,null,p.createElement("div",{style:h.overflow},p.createElement("div",{style:h.body},vi(a,function(g){return p.createElement(ynt,{key:g.toString(),group:g,active:i,onClick:f,onSwatchHover:s})}),p.createElement("div",{style:h.clear})))))};N1.propTypes={width:P.oneOfType([P.string,P.number]),height:P.oneOfType([P.string,P.number]),colors:P.arrayOf(P.arrayOf(P.string)),styles:P.object};N1.defaultProps={width:320,height:240,colors:[[Pi[900],Pi[700],Pi[500],Pi[300],Pi[100]],[Li[900],Li[700],Li[500],Li[300],Li[100]],[Fi[900],Fi[700],Fi[500],Fi[300],Fi[100]],[Bi[900],Bi[700],Bi[500],Bi[300],Bi[100]],[Wi[900],Wi[700],Wi[500],Wi[300],Wi[100]],[Hi[900],Hi[700],Hi[500],Hi[300],Hi[100]],[Ui[900],Ui[700],Ui[500],Ui[300],Ui[100]],[Vi[900],Vi[700],Vi[500],Vi[300],Vi[100]],[Gi[900],Gi[700],Gi[500],Gi[300],Gi[100]],["#194D33",cd[700],cd[500],cd[300],cd[100]],[qi[900],qi[700],qi[500],qi[300],qi[100]],[Ji[900],Ji[700],Ji[500],Ji[300],Ji[100]],[Xi[900],Xi[700],Xi[500],Xi[300],Xi[100]],[Yi[900],Yi[700],Yi[500],Yi[300],Yi[100]],[Ki[900],Ki[700],Ki[500],Ki[300],Ki[100]],[Zi[900],Zi[700],Zi[500],Zi[300],Zi[100]],[Qi[900],Qi[700],Qi[500],Qi[300],Qi[100]],[el[900],el[700],el[500],el[300],el[100]],["#000000","#525252","#969696","#D9D9D9","#FFFFFF"]],styles:{}};cr(N1);var M1=function(t){var n=t.onChange,r=t.onSwatchHover,o=t.hex,s=t.colors,a=t.width,i=t.triangle,l=t.styles,d=l===void 0?{}:l,u=t.className,c=u===void 0?"":u,h=je(lr({default:{card:{width:a,background:"#fff",border:"0 solid rgba(0,0,0,0.25)",boxShadow:"0 1px 4px rgba(0,0,0,0.25)",borderRadius:"4px",position:"relative"},body:{padding:"15px 9px 9px 15px"},label:{fontSize:"18px",color:"#fff"},triangle:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 9px 10px 9px",borderColor:"transparent transparent #fff transparent",position:"absolute"},triangleShadow:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 9px 10px 9px",borderColor:"transparent transparent rgba(0,0,0,.1) transparent",position:"absolute"},hash:{background:"#F0F0F0",height:"30px",width:"30px",borderRadius:"4px 0 0 4px",float:"left",color:"#98A1A4",display:"flex",alignItems:"center",justifyContent:"center"},input:{width:"100px",fontSize:"14px",color:"#666",border:"0px",outline:"none",height:"28px",boxShadow:"inset 0 0 0 1px #F0F0F0",boxSizing:"content-box",borderRadius:"0 4px 4px 0",float:"left",paddingLeft:"8px"},swatch:{width:"30px",height:"30px",float:"left",borderRadius:"4px",margin:"0 6px 6px 0"},clear:{clear:"both"}},"hide-triangle":{triangle:{display:"none"},triangleShadow:{display:"none"}},"top-left-triangle":{triangle:{top:"-10px",left:"12px"},triangleShadow:{top:"-11px",left:"12px"}},"top-right-triangle":{triangle:{top:"-10px",right:"12px"},triangleShadow:{top:"-11px",right:"12px"}}},d),{"hide-triangle":i==="hide","top-left-triangle":i==="top-left","top-right-triangle":i==="top-right"}),f=function(_,w){ba(_)&&n({hex:_,source:"hex"},w)};return p.createElement("div",{style:h.card,className:"twitter-picker "+c},p.createElement("div",{style:h.triangleShadow}),p.createElement("div",{style:h.triangle}),p.createElement("div",{style:h.body},vi(s,function(g,_){return p.createElement(_i,{key:_,color:g,hex:g,style:h.swatch,onClick:f,onHover:r,focusStyle:{boxShadow:"0 0 4px "+g}})}),p.createElement("div",{style:h.hash},"#"),p.createElement(tt,{label:null,style:{input:h.input},value:o.replace("#",""),onChange:f}),p.createElement("div",{style:h.clear})))};M1.propTypes={width:P.oneOfType([P.string,P.number]),triangle:P.oneOf(["hide","top-left","top-right"]),colors:P.arrayOf(P.string),styles:P.object};M1.defaultProps={width:276,colors:["#FF6900","#FCB900","#7BDCB5","#00D084","#8ED1FC","#0693E3","#ABB8C3","#EB144C","#F78DA7","#9900EF"],triangle:"top-left",styles:{}};cr(M1);var j1=function(t){var n=je({default:{picker:{width:"20px",height:"20px",borderRadius:"22px",border:"2px #fff solid",transform:"translate(-12px, -13px)",background:"hsl("+Math.round(t.hsl.h)+", "+Math.round(t.hsl.s*100)+"%, "+Math.round(t.hsl.l*100)+"%)"}}});return p.createElement("div",{style:n.picker})};j1.propTypes={hsl:P.shape({h:P.number,s:P.number,l:P.number,a:P.number})};j1.defaultProps={hsl:{a:1,h:249.94,l:.2,s:.5}};var I1=function(t){var n=je({default:{picker:{width:"20px",height:"20px",borderRadius:"22px",transform:"translate(-10px, -7px)",background:"hsl("+Math.round(t.hsl.h)+", 100%, 50%)",border:"2px white solid"}}});return p.createElement("div",{style:n.picker})};I1.propTypes={hsl:P.shape({h:P.number,s:P.number,l:P.number,a:P.number})};I1.defaultProps={hsl:{a:1,h:249.94,l:.2,s:.5}};var bnt=function(t){var n=t.onChange,r=t.rgb,o=t.hsl,s=t.hex,a=t.hsv,i=function(f,g){if(f.hex)ba(f.hex)&&n({hex:f.hex,source:"hex"},g);else if(f.rgb){var _=f.rgb.split(",");S_(f.rgb,"rgb")&&n({r:_[0],g:_[1],b:_[2],a:1,source:"rgb"},g)}else if(f.hsv){var w=f.hsv.split(",");S_(f.hsv,"hsv")&&(w[2]=w[2].replace("%",""),w[1]=w[1].replace("%",""),w[0]=w[0].replace("°",""),w[1]==1?w[1]=.01:w[2]==1&&(w[2]=.01),n({h:Number(w[0]),s:Number(w[1]),v:Number(w[2]),source:"hsv"},g))}else if(f.hsl){var v=f.hsl.split(",");S_(f.hsl,"hsl")&&(v[2]=v[2].replace("%",""),v[1]=v[1].replace("%",""),v[0]=v[0].replace("°",""),c[1]==1?c[1]=.01:c[2]==1&&(c[2]=.01),n({h:Number(v[0]),s:Number(v[1]),v:Number(v[2]),source:"hsl"},g))}},l=je({default:{wrap:{display:"flex",height:"100px",marginTop:"4px"},fields:{width:"100%"},column:{paddingTop:"10px",display:"flex",justifyContent:"space-between"},double:{padding:"0px 4.4px",boxSizing:"border-box"},input:{width:"100%",height:"38px",boxSizing:"border-box",padding:"4px 10% 3px",textAlign:"center",border:"1px solid #dadce0",fontSize:"11px",textTransform:"lowercase",borderRadius:"5px",outline:"none",fontFamily:"Roboto,Arial,sans-serif"},input2:{height:"38px",width:"100%",border:"1px solid #dadce0",boxSizing:"border-box",fontSize:"11px",textTransform:"lowercase",borderRadius:"5px",outline:"none",paddingLeft:"10px",fontFamily:"Roboto,Arial,sans-serif"},label:{textAlign:"center",fontSize:"12px",background:"#fff",position:"absolute",textTransform:"uppercase",color:"#3c4043",width:"35px",top:"-6px",left:"0",right:"0",marginLeft:"auto",marginRight:"auto",fontFamily:"Roboto,Arial,sans-serif"},label2:{left:"10px",textAlign:"center",fontSize:"12px",background:"#fff",position:"absolute",textTransform:"uppercase",color:"#3c4043",width:"32px",top:"-6px",fontFamily:"Roboto,Arial,sans-serif"},single:{flexGrow:"1",margin:"0px 4.4px"}}}),d=r.r+", "+r.g+", "+r.b,u=Math.round(o.h)+"°, "+Math.round(o.s*100)+"%, "+Math.round(o.l*100)+"%",c=Math.round(a.h)+"°, "+Math.round(a.s*100)+"%, "+Math.round(a.v*100)+"%";return p.createElement("div",{style:l.wrap,className:"flexbox-fix"},p.createElement("div",{style:l.fields},p.createElement("div",{style:l.double},p.createElement(tt,{style:{input:l.input,label:l.label},label:"hex",value:s,onChange:i})),p.createElement("div",{style:l.column},p.createElement("div",{style:l.single},p.createElement(tt,{style:{input:l.input2,label:l.label2},label:"rgb",value:d,onChange:i})),p.createElement("div",{style:l.single},p.createElement(tt,{style:{input:l.input2,label:l.label2},label:"hsv",value:c,onChange:i})),p.createElement("div",{style:l.single},p.createElement(tt,{style:{input:l.input2,label:l.label2},label:"hsl",value:u,onChange:i})))))},z1=function(t){var n=t.width,r=t.onChange,o=t.rgb,s=t.hsl,a=t.hsv,i=t.hex,l=t.header,d=t.styles,u=d===void 0?{}:d,c=t.className,h=c===void 0?"":c,f=je(lr({default:{picker:{width:n,background:"#fff",border:"1px solid #dfe1e5",boxSizing:"initial",display:"flex",flexWrap:"wrap",borderRadius:"8px 8px 0px 0px"},head:{height:"57px",width:"100%",paddingTop:"16px",paddingBottom:"16px",paddingLeft:"16px",fontSize:"20px",boxSizing:"border-box",fontFamily:"Roboto-Regular,HelveticaNeue,Arial,sans-serif"},saturation:{width:"70%",padding:"0px",position:"relative",overflow:"hidden"},swatch:{width:"30%",height:"228px",padding:"0px",background:"rgba("+o.r+", "+o.g+", "+o.b+", 1)",position:"relative",overflow:"hidden"},body:{margin:"auto",width:"95%"},controls:{display:"flex",boxSizing:"border-box",height:"52px",paddingTop:"22px"},color:{width:"32px"},hue:{height:"8px",position:"relative",margin:"0px 16px 0px 16px",width:"100%"},Hue:{radius:"2px"}}},u));return p.createElement("div",{style:f.picker,className:"google-picker "+h},p.createElement("div",{style:f.head},l),p.createElement("div",{style:f.swatch}),p.createElement("div",{style:f.saturation},p.createElement(lg,{hsl:s,hsv:a,pointer:j1,onChange:r})),p.createElement("div",{style:f.body},p.createElement("div",{style:f.controls,className:"flexbox-fix"},p.createElement("div",{style:f.hue},p.createElement(bc,{style:f.Hue,hsl:s,radius:"4px",pointer:I1,onChange:r}))),p.createElement(bnt,{rgb:o,hsl:s,hex:i,hsv:a,onChange:r})))};z1.propTypes={width:P.oneOfType([P.string,P.number]),styles:P.object,header:P.string};z1.defaultProps={width:652,styles:{},header:"Color picker"};cr(z1);var r3={exports:{}};(function(e,t){(function(r,o){e.exports=o()})(globalThis,()=>(()=>{var n={949:(a,i,l)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.CronParser=void 0;var d=l(515),u=function(){function c(h,f,g){f===void 0&&(f=!0),g===void 0&&(g=!1),this.expression=h,this.dayOfWeekStartIndexZero=f,this.monthStartIndexZero=g}return c.prototype.parse=function(){var h,f,g=(h=this.expression)!==null&&h!==void 0?h:"";if(g.startsWith("@")){var _=this.parseSpecial(this.expression);f=this.extractParts(_)}else f=this.extractParts(this.expression);return this.normalize(f),this.validate(f),f},c.prototype.parseSpecial=function(h){var f={"@yearly":"0 0 1 1 *","@annually":"0 0 1 1 *","@monthly":"0 0 1 * *","@weekly":"0 0 * * 0","@daily":"0 0 * * *","@midnight":"0 0 * * *","@hourly":"0 * * * *"},g=f[h];if(!g)throw new Error("Unknown special expression.");return g},c.prototype.extractParts=function(h){if(!this.expression)throw new Error("cron expression is empty");for(var f=h.trim().split(/[ ]+/),g=0;g7)throw new Error("Expression has ".concat(f.length," parts; too many!"));return f},c.prototype.normalize=function(h){var f=this;if(h[3]=h[3].replace("?","*"),h[5]=h[5].replace("?","*"),h[2]=h[2].replace("?","*"),h[0].indexOf("0/")==0&&(h[0]=h[0].replace("0/","*/")),h[1].indexOf("0/")==0&&(h[1]=h[1].replace("0/","*/")),h[2].indexOf("0/")==0&&(h[2]=h[2].replace("0/","*/")),h[3].indexOf("1/")==0&&(h[3]=h[3].replace("1/","*/")),h[4].indexOf("1/")==0&&(h[4]=h[4].replace("1/","*/")),h[6].indexOf("1/")==0&&(h[6]=h[6].replace("1/","*/")),h[5]=h[5].replace(/(^\d)|([^#/\s]\d)/g,function($){var C=$.replace(/\D/,""),T=C;return f.dayOfWeekStartIndexZero?C=="7"&&(T="0"):T=(parseInt(C)-1).toString(),$.replace(C,T)}),h[5]=="L"&&(h[5]="6"),h[3]=="?"&&(h[3]="*"),h[3].indexOf("W")>-1&&(h[3].indexOf(",")>-1||h[3].indexOf("-")>-1))throw new Error("The 'W' character can be specified only when the day-of-month is a single day, not a range or list of days.");var g={SUN:0,MON:1,TUE:2,WED:3,THU:4,FRI:5,SAT:6};for(var _ in g)h[5]=h[5].replace(new RegExp(_,"gi"),g[_].toString());h[4]=h[4].replace(/(^\d{1,2})|([^#/\s]\d{1,2})/g,function($){var C=$.replace(/\D/,""),T=C;return f.monthStartIndexZero&&(T=(parseInt(C)+1).toString()),$.replace(C,T)});var w={JAN:1,FEB:2,MAR:3,APR:4,MAY:5,JUN:6,JUL:7,AUG:8,SEP:9,OCT:10,NOV:11,DEC:12};for(var v in w)h[4]=h[4].replace(new RegExp(v,"gi"),w[v].toString());h[0]=="0"&&(h[0]=""),!/\*|\-|\,|\//.test(h[2])&&(/\*|\//.test(h[1])||/\*|\//.test(h[0]))&&(h[2]+="-".concat(h[2]));for(var b=0;b-1&&!/^\*|\-|\,/.test(h[b])){var y=null;switch(b){case 4:y="12";break;case 5:y="6";break;case 6:y="9999";break;default:y=null;break}if(y!==null){var S=h[b].split("/");h[b]="".concat(S[0],"-").concat(y,"/").concat(S[1])}}},c.prototype.validate=function(h){this.assertNoInvalidCharacters("DOW",h[5]),this.assertNoInvalidCharacters("DOM",h[3]),this.validateRange(h)},c.prototype.validateRange=function(h){d.default.secondRange(h[0]),d.default.minuteRange(h[1]),d.default.hourRange(h[2]),d.default.dayOfMonthRange(h[3]),d.default.monthRange(h[4],this.monthStartIndexZero),d.default.dayOfWeekRange(h[5],this.dayOfWeekStartIndexZero)},c.prototype.assertNoInvalidCharacters=function(h,f){var g=f.match(/[A-KM-VX-Z]+/gi);if(g&&g.length)throw new Error("".concat(h," part contains invalid values: '").concat(g.toString(),"'"))},c}();i.CronParser=u},333:(a,i,l)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.ExpressionDescriptor=void 0;var d=l(823),u=l(949),c=function(){function h(f,g){if(this.expression=f,this.options=g,this.expressionParts=new Array(5),!this.options.locale&&h.defaultLocale&&(this.options.locale=h.defaultLocale),!h.locales[this.options.locale]){var _=Object.keys(h.locales)[0];console.warn("Locale '".concat(this.options.locale,"' could not be found; falling back to '").concat(_,"'.")),this.options.locale=_}this.i18n=h.locales[this.options.locale],g.use24HourTimeFormat===void 0&&(g.use24HourTimeFormat=this.i18n.use24HourTimeFormatByDefault())}return h.toString=function(f,g){var _=g===void 0?{}:g,w=_.throwExceptionOnParseError,v=w===void 0?!0:w,b=_.verbose,y=b===void 0?!1:b,S=_.dayOfWeekStartIndexZero,$=S===void 0?!0:S,C=_.monthStartIndexZero,T=C===void 0?!1:C,O=_.use24HourTimeFormat,D=_.locale,x=D===void 0?null:D,A=_.tzOffset,I=A===void 0?0:A,z={throwExceptionOnParseError:v,verbose:y,dayOfWeekStartIndexZero:$,monthStartIndexZero:T,use24HourTimeFormat:O,locale:x,tzOffset:I},N=new h(f,z);return N.getFullDescription()},h.initialize=function(f,g){g===void 0&&(g="en"),h.specialCharacters=["/","-",",","*"],h.defaultLocale=g,f.load(h.locales)},h.prototype.getFullDescription=function(){var f="";try{var g=new u.CronParser(this.expression,this.options.dayOfWeekStartIndexZero,this.options.monthStartIndexZero);this.expressionParts=g.parse();var _=this.getTimeOfDayDescription(),w=this.getDayOfMonthDescription(),v=this.getMonthDescription(),b=this.getDayOfWeekDescription(),y=this.getYearDescription();f+=_+w+b+v+y,f=this.transformVerbosity(f,!!this.options.verbose),f=f.charAt(0).toLocaleUpperCase()+f.substr(1)}catch(S){if(!this.options.throwExceptionOnParseError)f=this.i18n.anErrorOccuredWhenGeneratingTheExpressionD();else throw"".concat(S)}return f},h.prototype.getTimeOfDayDescription=function(){var f=this.expressionParts[0],g=this.expressionParts[1],_=this.expressionParts[2],w="";if(!d.StringUtilities.containsAny(g,h.specialCharacters)&&!d.StringUtilities.containsAny(_,h.specialCharacters)&&!d.StringUtilities.containsAny(f,h.specialCharacters))w+=this.i18n.atSpace()+this.formatTime(_,g,f);else if(!f&&g.indexOf("-")>-1&&!(g.indexOf(",")>-1)&&!(g.indexOf("/")>-1)&&!d.StringUtilities.containsAny(_,h.specialCharacters)){var v=g.split("-");w+=d.StringUtilities.format(this.i18n.everyMinuteBetweenX0AndX1(),this.formatTime(_,v[0],""),this.formatTime(_,v[1],""))}else if(!f&&_.indexOf(",")>-1&&_.indexOf("-")==-1&&_.indexOf("/")==-1&&!d.StringUtilities.containsAny(g,h.specialCharacters)){var b=_.split(",");w+=this.i18n.at();for(var y=0;y1){var v=w[w.length-1].index;_=_.substring(0,v)+":59"+_.substring(v+3)}}return _},h.prototype.getDayOfWeekDescription=function(){var f=this,g=this.i18n.daysOfTheWeek(),_=null;return this.expressionParts[5]=="*"?_="":_=this.getSegmentDescription(this.expressionParts[5],this.i18n.commaEveryDay(),function(w,v){var b=w;w.indexOf("#")>-1?b=w.substring(0,w.indexOf("#")):w.indexOf("L")>-1&&(b=b.replace("L",""));var y=parseInt(b);if(f.options.tzOffset){var S=f.expressionParts[2],$=parseInt(S)+(f.options.tzOffset?f.options.tzOffset:0);$>=24?y++:$<0&&y--,y>6?y=0:y<0&&(y=6)}var C=f.i18n.daysOfTheWeekInCase?f.i18n.daysOfTheWeekInCase(v)[y]:g[y];if(w.indexOf("#")>-1){var T=null,O=w.substring(w.indexOf("#")+1),D=w.substring(0,w.indexOf("#"));switch(O){case"1":T=f.i18n.first(D);break;case"2":T=f.i18n.second(D);break;case"3":T=f.i18n.third(D);break;case"4":T=f.i18n.fourth(D);break;case"5":T=f.i18n.fifth(D);break}C=T+" "+C}return C},function(w){return parseInt(w)==1?"":d.StringUtilities.format(f.i18n.commaEveryX0DaysOfTheWeek(w),w)},function(w){var v=w.substring(0,w.indexOf("-")),b=f.expressionParts[3]!="*";return b?f.i18n.commaAndX0ThroughX1(v):f.i18n.commaX0ThroughX1(v)},function(w){var v=null;if(w.indexOf("#")>-1){var b=w.substring(w.indexOf("#")+1),y=w.substring(0,w.indexOf("#"));v=f.i18n.commaOnThe(b,y).trim()+f.i18n.spaceX0OfTheMonth()}else if(w.indexOf("L")>-1)v=f.i18n.commaOnTheLastX0OfTheMonth(w.replace("L",""));else{var S=f.expressionParts[3]!="*";v=S?f.i18n.commaAndOnX0():f.i18n.commaOnlyOnX0(w)}return v}),_},h.prototype.getMonthDescription=function(){var f=this,g=this.i18n.monthsOfTheYear(),_=this.getSegmentDescription(this.expressionParts[4],"",function(w,v){return v&&f.i18n.monthsOfTheYearInCase?f.i18n.monthsOfTheYearInCase(v)[parseInt(w)-1]:g[parseInt(w)-1]},function(w){return parseInt(w)==1?"":d.StringUtilities.format(f.i18n.commaEveryX0Months(w),w)},function(w){return f.i18n.commaMonthX0ThroughMonthX1()||f.i18n.commaX0ThroughX1()},function(w){return f.i18n.commaOnlyInMonthX0?f.i18n.commaOnlyInMonthX0():f.i18n.commaOnlyInX0()});return _},h.prototype.getDayOfMonthDescription=function(){var f=this,g=null,_=this.expressionParts[3];switch(_){case"L":g=this.i18n.commaOnTheLastDayOfTheMonth();break;case"WL":case"LW":g=this.i18n.commaOnTheLastWeekdayOfTheMonth();break;default:var w=_.match(/(\d{1,2}W)|(W\d{1,2})/);if(w){var v=parseInt(w[0].replace("W","")),b=v==1?this.i18n.firstWeekday():d.StringUtilities.format(this.i18n.weekdayNearestDayX0(),v.toString());g=d.StringUtilities.format(this.i18n.commaOnTheX0OfTheMonth(),b);break}else{var y=_.match(/L-(\d{1,2})/);if(y){var S=y[1];g=d.StringUtilities.format(this.i18n.commaDaysBeforeTheLastDayOfTheMonth(S),S);break}else{if(_=="*"&&this.expressionParts[5]!="*")return"";g=this.getSegmentDescription(_,this.i18n.commaEveryDay(),function($){return $=="L"?f.i18n.lastDay():f.i18n.dayX0?d.StringUtilities.format(f.i18n.dayX0(),$):$},function($){return $=="1"?f.i18n.commaEveryDay():f.i18n.commaEveryX0Days($)},function($){return f.i18n.commaBetweenDayX0AndX1OfTheMonth($)},function($){return f.i18n.commaOnDayX0OfTheMonth($)})}break}}return g},h.prototype.getYearDescription=function(){var f=this,g=this.getSegmentDescription(this.expressionParts[6],"",function(_){return/^\d+$/.test(_)?new Date(parseInt(_),1).getFullYear().toString():_},function(_){return d.StringUtilities.format(f.i18n.commaEveryX0Years(_),_)},function(_){return f.i18n.commaYearX0ThroughYearX1()||f.i18n.commaX0ThroughX1()},function(_){return f.i18n.commaOnlyInYearX0?f.i18n.commaOnlyInYearX0():f.i18n.commaOnlyInX0()});return g},h.prototype.getSegmentDescription=function(f,g,_,w,v,b){var y=null,S=f.indexOf("/")>-1,$=f.indexOf("-")>-1,C=f.indexOf(",")>-1;if(!f)y="";else if(f==="*")y=g;else if(!S&&!$&&!C)y=d.StringUtilities.format(b(f),_(f));else if(C){for(var T=f.split(","),O="",D=0;D0&&T.length>2&&(O+=",",D0&&T.length>1&&(D==T.length-1||T.length==2)&&(O+="".concat(this.i18n.spaceAnd()," ")),T[D].indexOf("/")>-1||T[D].indexOf("-")>-1){var x=T[D].indexOf("-")>-1&&T[D].indexOf("/")==-1,A=this.getSegmentDescription(T[D],g,_,w,x?this.i18n.commaX0ThroughX1:v,b);x&&(A=A.replace(", ","")),O+=A}else S?O+=this.getSegmentDescription(T[D],g,_,w,v,b):O+=_(T[D]);S?y=O:y=d.StringUtilities.format(b(f),O)}else if(S){var T=f.split("/");if(y=d.StringUtilities.format(w(T[1]),T[1]),T[0].indexOf("-")>-1){var I=this.generateRangeSegmentDescription(T[0],v,_);I.indexOf(", ")!=0&&(y+=", "),y+=I}else if(T[0].indexOf("*")==-1){var z=d.StringUtilities.format(b(T[0]),_(T[0]));z=z.replace(", ",""),y+=d.StringUtilities.format(this.i18n.commaStartingX0(),z)}}else $&&(y=this.generateRangeSegmentDescription(f,v,_));return y},h.prototype.generateRangeSegmentDescription=function(f,g,_){var w="",v=f.split("-"),b=_(v[0],1),y=_(v[1],2),S=g(f);return w+=d.StringUtilities.format(S,b,y),w},h.prototype.formatTime=function(f,g,_){var w=0,v=0;this.options.tzOffset&&(w=this.options.tzOffset>0?Math.floor(this.options.tzOffset):Math.ceil(this.options.tzOffset),v=parseFloat((this.options.tzOffset%1).toFixed(2)),v!=0&&(v*=60));var b=parseInt(f)+w,y=parseInt(g)+v;y>=60?(y-=60,b+=1):y<0&&(y+=60,b-=1),b>=24?b=b-24:b<0&&(b=24+b);var S="",$=!1;this.options.use24HourTimeFormat||($=!!(this.i18n.setPeriodBeforeTime&&this.i18n.setPeriodBeforeTime()),S=$?"".concat(this.getPeriod(b)," "):" ".concat(this.getPeriod(b)),b>12&&(b-=12),b===0&&(b=12));var C="";return _&&(C=":".concat(("00"+_).substring(_.length))),"".concat($?S:"").concat(("00"+b.toString()).substring(b.toString().length),":").concat(("00"+y.toString()).substring(y.toString().length)).concat(C).concat($?"":S)},h.prototype.transformVerbosity=function(f,g){return g||(f=f.replace(new RegExp(", ".concat(this.i18n.everyMinute()),"g"),""),f=f.replace(new RegExp(", ".concat(this.i18n.everyHour()),"g"),""),f=f.replace(new RegExp(this.i18n.commaEveryDay(),"g"),""),f=f.replace(/\, ?$/,"")),f},h.prototype.getPeriod=function(f){return f>=12?this.i18n.pm&&this.i18n.pm()||"PM":this.i18n.am&&this.i18n.am()||"AM"},h.locales={},h}();i.ExpressionDescriptor=c},747:(a,i,l)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.enLocaleLoader=void 0;var d=l(486),u=function(){function c(){}return c.prototype.load=function(h){h.en=new d.en},c}();i.enLocaleLoader=u},486:(a,i)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.en=void 0;var l=function(){function d(){}return d.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},d.prototype.atX0MinutesPastTheHourGt20=function(){return null},d.prototype.commaMonthX0ThroughMonthX1=function(){return null},d.prototype.commaYearX0ThroughYearX1=function(){return null},d.prototype.use24HourTimeFormatByDefault=function(){return!1},d.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"An error occured when generating the expression description. Check the cron expression syntax."},d.prototype.everyMinute=function(){return"every minute"},d.prototype.everyHour=function(){return"every hour"},d.prototype.atSpace=function(){return"At "},d.prototype.everyMinuteBetweenX0AndX1=function(){return"Every minute between %s and %s"},d.prototype.at=function(){return"At"},d.prototype.spaceAnd=function(){return" and"},d.prototype.everySecond=function(){return"every second"},d.prototype.everyX0Seconds=function(){return"every %s seconds"},d.prototype.secondsX0ThroughX1PastTheMinute=function(){return"seconds %s through %s past the minute"},d.prototype.atX0SecondsPastTheMinute=function(){return"at %s seconds past the minute"},d.prototype.everyX0Minutes=function(){return"every %s minutes"},d.prototype.minutesX0ThroughX1PastTheHour=function(){return"minutes %s through %s past the hour"},d.prototype.atX0MinutesPastTheHour=function(){return"at %s minutes past the hour"},d.prototype.everyX0Hours=function(){return"every %s hours"},d.prototype.betweenX0AndX1=function(){return"between %s and %s"},d.prototype.atX0=function(){return"at %s"},d.prototype.commaEveryDay=function(){return", every day"},d.prototype.commaEveryX0DaysOfTheWeek=function(){return", every %s days of the week"},d.prototype.commaX0ThroughX1=function(){return", %s through %s"},d.prototype.commaAndX0ThroughX1=function(){return", %s through %s"},d.prototype.first=function(){return"first"},d.prototype.second=function(){return"second"},d.prototype.third=function(){return"third"},d.prototype.fourth=function(){return"fourth"},d.prototype.fifth=function(){return"fifth"},d.prototype.commaOnThe=function(){return", on the "},d.prototype.spaceX0OfTheMonth=function(){return" %s of the month"},d.prototype.lastDay=function(){return"the last day"},d.prototype.commaOnTheLastX0OfTheMonth=function(){return", on the last %s of the month"},d.prototype.commaOnlyOnX0=function(){return", only on %s"},d.prototype.commaAndOnX0=function(){return", and on %s"},d.prototype.commaEveryX0Months=function(){return", every %s months"},d.prototype.commaOnlyInX0=function(){return", only in %s"},d.prototype.commaOnTheLastDayOfTheMonth=function(){return", on the last day of the month"},d.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", on the last weekday of the month"},d.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s days before the last day of the month"},d.prototype.firstWeekday=function(){return"first weekday"},d.prototype.weekdayNearestDayX0=function(){return"weekday nearest day %s"},d.prototype.commaOnTheX0OfTheMonth=function(){return", on the %s of the month"},d.prototype.commaEveryX0Days=function(){return", every %s days"},d.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", between day %s and %s of the month"},d.prototype.commaOnDayX0OfTheMonth=function(){return", on day %s of the month"},d.prototype.commaEveryHour=function(){return", every hour"},d.prototype.commaEveryX0Years=function(){return", every %s years"},d.prototype.commaStartingX0=function(){return", starting %s"},d.prototype.daysOfTheWeek=function(){return["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},d.prototype.monthsOfTheYear=function(){return["January","February","March","April","May","June","July","August","September","October","November","December"]},d}();i.en=l},515:(a,i)=>{Object.defineProperty(i,"__esModule",{value:!0});function l(u,c){if(!u)throw new Error(c)}var d=function(){function u(){}return u.secondRange=function(c){for(var h=c.split(","),f=0;f=0&&g<=59,"seconds part must be >= 0 and <= 59")}},u.minuteRange=function(c){for(var h=c.split(","),f=0;f=0&&g<=59,"minutes part must be >= 0 and <= 59")}},u.hourRange=function(c){for(var h=c.split(","),f=0;f=0&&g<=23,"hours part must be >= 0 and <= 23")}},u.dayOfMonthRange=function(c){for(var h=c.split(","),f=0;f=1&&g<=31,"DOM part must be >= 1 and <= 31")}},u.monthRange=function(c,h){for(var f=c.split(","),g=0;g=1&&_<=12,h?"month part must be >= 0 and <= 11":"month part must be >= 1 and <= 12")}},u.dayOfWeekRange=function(c,h){for(var f=c.split(","),g=0;g=0&&_<=6,h?"DOW part must be >= 0 and <= 6":"DOW part must be >= 1 and <= 7")}},u}();i.default=d},823:(a,i)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.StringUtilities=void 0;var l=function(){function d(){}return d.format=function(u){for(var c=[],h=1;h-1})},d}();i.StringUtilities=l}},r={};function o(a){var i=r[a];if(i!==void 0)return i.exports;var l=r[a]={exports:{}};return n[a](l,l.exports,o),l.exports}var s={};return(()=>{var a=s;Object.defineProperty(a,"__esModule",{value:!0}),a.toString=void 0;var i=o(333),l=o(747);i.ExpressionDescriptor.initialize(new l.enLocaleLoader),a.default=i.ExpressionDescriptor;var d=i.ExpressionDescriptor.toString;a.toString=d})(),s})())})(r3);var Yo=r3.exports;const wnt=If(Yo);var Snt={exports:{}};(function(e,t){(function(r,o){e.exports=o(Yo)})(globalThis,n=>(()=>{var r={93:c=>{c.exports=n}},o={};function s(c){var h=o[c];if(h!==void 0)return h.exports;var f=o[c]={exports:{}};return r[c](f,f.exports,s),f.exports}s.n=c=>{var h=c&&c.__esModule?()=>c.default:()=>c;return s.d(h,{a:h}),h},s.d=(c,h)=>{for(var f in h)s.o(h,f)&&!s.o(c,f)&&Object.defineProperty(c,f,{enumerable:!0,get:h[f]})},s.o=(c,h)=>Object.prototype.hasOwnProperty.call(c,h),s.r=c=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(c,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(c,"__esModule",{value:!0})};var a={};s.r(a);var i=s(93),l=s.n(i),d=a;Object.defineProperty(d,"__esModule",{value:!0}),d.fr=void 0;var u=function(){function c(){}return c.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},c.prototype.atX0MinutesPastTheHourGt20=function(){return null},c.prototype.commaMonthX0ThroughMonthX1=function(){return null},c.prototype.commaYearX0ThroughYearX1=function(){return null},c.prototype.use24HourTimeFormatByDefault=function(){return!0},c.prototype.everyMinute=function(){return"toutes les minutes"},c.prototype.everyHour=function(){return"toutes les heures"},c.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Une erreur est survenue en générant la description de l'expression cron. Vérifiez sa syntaxe."},c.prototype.atSpace=function(){return"À "},c.prototype.everyMinuteBetweenX0AndX1=function(){return"Toutes les minutes entre %s et %s"},c.prototype.at=function(){return"À"},c.prototype.spaceAnd=function(){return" et"},c.prototype.everySecond=function(){return"toutes les secondes"},c.prototype.everyX0Seconds=function(){return"toutes les %s secondes"},c.prototype.secondsX0ThroughX1PastTheMinute=function(){return"les secondes entre %s et %s après la minute"},c.prototype.atX0SecondsPastTheMinute=function(){return"%s secondes après la minute"},c.prototype.everyX0Minutes=function(){return"toutes les %s minutes"},c.prototype.minutesX0ThroughX1PastTheHour=function(){return"les minutes entre %s et %s après l'heure"},c.prototype.atX0MinutesPastTheHour=function(){return"%s minutes après l'heure"},c.prototype.everyX0Hours=function(){return"toutes les %s heures"},c.prototype.betweenX0AndX1=function(){return"de %s à %s"},c.prototype.atX0=function(){return"à %s"},c.prototype.commaEveryDay=function(){return", tous les jours"},c.prototype.commaEveryX0DaysOfTheWeek=function(){return", tous les %s jours de la semaine"},c.prototype.commaX0ThroughX1=function(){return", de %s à %s"},c.prototype.commaAndX0ThroughX1=function(){return", et de %s à %s"},c.prototype.first=function(){return"premier"},c.prototype.second=function(){return"second"},c.prototype.third=function(){return"troisième"},c.prototype.fourth=function(){return"quatrième"},c.prototype.fifth=function(){return"cinquième"},c.prototype.commaOnThe=function(){return", le "},c.prototype.spaceX0OfTheMonth=function(){return" %s du mois"},c.prototype.lastDay=function(){return"le dernier jour"},c.prototype.commaOnTheLastX0OfTheMonth=function(){return", le dernier %s du mois"},c.prototype.commaOnlyOnX0=function(){return", uniquement le %s"},c.prototype.commaAndOnX0=function(){return", et %s"},c.prototype.commaEveryX0Months=function(){return", tous les %s mois"},c.prototype.commaOnlyInX0=function(){return", uniquement en %s"},c.prototype.commaOnTheLastDayOfTheMonth=function(){return", le dernier jour du mois"},c.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", le dernier jour ouvrable du mois"},c.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s jours avant le dernier jour du mois"},c.prototype.firstWeekday=function(){return"premier jour ouvrable"},c.prototype.weekdayNearestDayX0=function(){return"jour ouvrable le plus proche du %s"},c.prototype.commaOnTheX0OfTheMonth=function(){return", le %s du mois"},c.prototype.commaEveryX0Days=function(){return", tous les %s jours"},c.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", du %s au %s du mois"},c.prototype.commaOnDayX0OfTheMonth=function(){return", le %s du mois"},c.prototype.commaEveryX0Years=function(){return", tous les %s ans"},c.prototype.commaDaysX0ThroughX1=function(){return", du %s au %s"},c.prototype.commaStartingX0=function(){return", à partir de %s"},c.prototype.daysOfTheWeek=function(){return["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"]},c.prototype.monthsOfTheYear=function(){return["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"]},c}();return d.fr=u,l().locales.fr=new u,a})())})(Snt);var xnt={exports:{}};(function(e,t){(function(r,o){e.exports=o(Yo)})(globalThis,n=>(()=>{var r={93:c=>{c.exports=n}},o={};function s(c){var h=o[c];if(h!==void 0)return h.exports;var f=o[c]={exports:{}};return r[c](f,f.exports,s),f.exports}s.n=c=>{var h=c&&c.__esModule?()=>c.default:()=>c;return s.d(h,{a:h}),h},s.d=(c,h)=>{for(var f in h)s.o(h,f)&&!s.o(c,f)&&Object.defineProperty(c,f,{enumerable:!0,get:h[f]})},s.o=(c,h)=>Object.prototype.hasOwnProperty.call(c,h),s.r=c=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(c,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(c,"__esModule",{value:!0})};var a={};s.r(a);var i=s(93),l=s.n(i),d=a;Object.defineProperty(d,"__esModule",{value:!0}),d.es=void 0;var u=function(){function c(){}return c.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},c.prototype.atX0MinutesPastTheHourGt20=function(){return null},c.prototype.commaMonthX0ThroughMonthX1=function(){return null},c.prototype.commaYearX0ThroughYearX1=function(){return null},c.prototype.use24HourTimeFormatByDefault=function(){return!0},c.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Ocurrió un error mientras se generaba la descripción de la expresión. Revise la sintaxis de la expresión de cron."},c.prototype.at=function(){return"A las"},c.prototype.atSpace=function(){return"A las "},c.prototype.atX0=function(){return"a las %s"},c.prototype.atX0MinutesPastTheHour=function(){return"a los %s minutos de la hora"},c.prototype.atX0SecondsPastTheMinute=function(){return"a los %s segundos del minuto"},c.prototype.betweenX0AndX1=function(){return"entre las %s y las %s"},c.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", entre los días %s y %s del mes"},c.prototype.commaEveryDay=function(){return", cada día"},c.prototype.commaEveryX0Days=function(){return", cada %s días"},c.prototype.commaEveryX0DaysOfTheWeek=function(){return", cada %s días de la semana"},c.prototype.commaEveryX0Months=function(){return", cada %s meses"},c.prototype.commaOnDayX0OfTheMonth=function(){return", el día %s del mes"},c.prototype.commaOnlyInX0=function(){return", sólo en %s"},c.prototype.commaOnlyOnX0=function(){return", sólo el %s"},c.prototype.commaAndOnX0=function(){return", y el %s"},c.prototype.commaOnThe=function(){return", en el "},c.prototype.commaOnTheLastDayOfTheMonth=function(){return", en el último día del mes"},c.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", en el último día de la semana del mes"},c.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s días antes del último día del mes"},c.prototype.commaOnTheLastX0OfTheMonth=function(){return", en el último %s del mes"},c.prototype.commaOnTheX0OfTheMonth=function(){return", en el %s del mes"},c.prototype.commaX0ThroughX1=function(){return", de %s a %s"},c.prototype.commaAndX0ThroughX1=function(){return", y de %s a %s"},c.prototype.everyHour=function(){return"cada hora"},c.prototype.everyMinute=function(){return"cada minuto"},c.prototype.everyMinuteBetweenX0AndX1=function(){return"cada minuto entre las %s y las %s"},c.prototype.everySecond=function(){return"cada segundo"},c.prototype.everyX0Hours=function(){return"cada %s horas"},c.prototype.everyX0Minutes=function(){return"cada %s minutos"},c.prototype.everyX0Seconds=function(){return"cada %s segundos"},c.prototype.fifth=function(){return"quinto"},c.prototype.first=function(){return"primero"},c.prototype.firstWeekday=function(){return"primer día de la semana"},c.prototype.fourth=function(){return"cuarto"},c.prototype.minutesX0ThroughX1PastTheHour=function(){return"del minuto %s al %s pasada la hora"},c.prototype.second=function(){return"segundo"},c.prototype.secondsX0ThroughX1PastTheMinute=function(){return"En los segundos %s al %s de cada minuto"},c.prototype.spaceAnd=function(){return" y"},c.prototype.spaceX0OfTheMonth=function(){return" %s del mes"},c.prototype.lastDay=function(){return"el último día"},c.prototype.third=function(){return"tercer"},c.prototype.weekdayNearestDayX0=function(){return"día de la semana más próximo al %s"},c.prototype.commaEveryX0Years=function(){return", cada %s años"},c.prototype.commaStartingX0=function(){return", comenzando %s"},c.prototype.daysOfTheWeek=function(){return["domingo","lunes","martes","miércoles","jueves","viernes","sábado"]},c.prototype.monthsOfTheYear=function(){return["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"]},c}();return d.es=u,l().locales.es=new u,a})())})(xnt);var knt={exports:{}};(function(e,t){(function(r,o){e.exports=o(Yo)})(globalThis,n=>(()=>{var r={93:c=>{c.exports=n}},o={};function s(c){var h=o[c];if(h!==void 0)return h.exports;var f=o[c]={exports:{}};return r[c](f,f.exports,s),f.exports}s.n=c=>{var h=c&&c.__esModule?()=>c.default:()=>c;return s.d(h,{a:h}),h},s.d=(c,h)=>{for(var f in h)s.o(h,f)&&!s.o(c,f)&&Object.defineProperty(c,f,{enumerable:!0,get:h[f]})},s.o=(c,h)=>Object.prototype.hasOwnProperty.call(c,h),s.r=c=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(c,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(c,"__esModule",{value:!0})};var a={};s.r(a);var i=s(93),l=s.n(i),d=a;Object.defineProperty(d,"__esModule",{value:!0}),d.de=void 0;var u=function(){function c(){}return c.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},c.prototype.atX0MinutesPastTheHourGt20=function(){return null},c.prototype.commaMonthX0ThroughMonthX1=function(){return null},c.prototype.commaYearX0ThroughYearX1=function(){return null},c.prototype.use24HourTimeFormatByDefault=function(){return!0},c.prototype.everyMinute=function(){return"jede Minute"},c.prototype.everyHour=function(){return"jede Stunde"},c.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Beim Generieren der Ausdrucksbeschreibung ist ein Fehler aufgetreten. Überprüfen Sie die Syntax des Cron-Ausdrucks."},c.prototype.atSpace=function(){return"Um "},c.prototype.everyMinuteBetweenX0AndX1=function(){return"Jede Minute zwischen %s und %s"},c.prototype.at=function(){return"Um"},c.prototype.spaceAnd=function(){return" und"},c.prototype.everySecond=function(){return"Jede Sekunde"},c.prototype.everyX0Seconds=function(){return"alle %s Sekunden"},c.prototype.secondsX0ThroughX1PastTheMinute=function(){return"Sekunden %s bis %s"},c.prototype.atX0SecondsPastTheMinute=function(){return"bei Sekunde %s"},c.prototype.everyX0Minutes=function(){return"alle %s Minuten"},c.prototype.minutesX0ThroughX1PastTheHour=function(){return"Minuten %s bis %s"},c.prototype.atX0MinutesPastTheHour=function(){return"bei Minute %s"},c.prototype.everyX0Hours=function(){return"alle %s Stunden"},c.prototype.betweenX0AndX1=function(){return"zwischen %s und %s"},c.prototype.atX0=function(){return"um %s"},c.prototype.commaEveryDay=function(){return", jeden Tag"},c.prototype.commaEveryX0DaysOfTheWeek=function(){return", alle %s Tage der Woche"},c.prototype.commaX0ThroughX1=function(){return", %s bis %s"},c.prototype.commaAndX0ThroughX1=function(){return", und %s bis %s"},c.prototype.first=function(){return"ersten"},c.prototype.second=function(){return"zweiten"},c.prototype.third=function(){return"dritten"},c.prototype.fourth=function(){return"vierten"},c.prototype.fifth=function(){return"fünften"},c.prototype.commaOnThe=function(){return", am "},c.prototype.spaceX0OfTheMonth=function(){return" %s des Monats"},c.prototype.lastDay=function(){return"der letzte Tag"},c.prototype.commaOnTheLastX0OfTheMonth=function(){return", am letzten %s des Monats"},c.prototype.commaOnlyOnX0=function(){return", nur jeden %s"},c.prototype.commaAndOnX0=function(){return", und jeden %s"},c.prototype.commaEveryX0Months=function(){return", alle %s Monate"},c.prototype.commaOnlyInX0=function(){return", nur im %s"},c.prototype.commaOnTheLastDayOfTheMonth=function(){return", am letzten Tag des Monats"},c.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", am letzten Werktag des Monats"},c.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s tage vor dem letzten Tag des Monats"},c.prototype.firstWeekday=function(){return"ersten Werktag"},c.prototype.weekdayNearestDayX0=function(){return"Werktag am nächsten zum %s Tag"},c.prototype.commaOnTheX0OfTheMonth=function(){return", am %s des Monats"},c.prototype.commaEveryX0Days=function(){return", alle %s Tage"},c.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", zwischen Tag %s und %s des Monats"},c.prototype.commaOnDayX0OfTheMonth=function(){return", an Tag %s des Monats"},c.prototype.commaEveryX0Years=function(){return", alle %s Jahre"},c.prototype.commaStartingX0=function(){return", beginnend %s"},c.prototype.daysOfTheWeek=function(){return["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"]},c.prototype.monthsOfTheYear=function(){return["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]},c}();return d.de=u,l().locales.de=new u,a})())})(knt);var $nt={exports:{}};(function(e,t){(function(r,o){e.exports=o(Yo)})(globalThis,n=>(()=>{var r={93:c=>{c.exports=n}},o={};function s(c){var h=o[c];if(h!==void 0)return h.exports;var f=o[c]={exports:{}};return r[c](f,f.exports,s),f.exports}s.n=c=>{var h=c&&c.__esModule?()=>c.default:()=>c;return s.d(h,{a:h}),h},s.d=(c,h)=>{for(var f in h)s.o(h,f)&&!s.o(c,f)&&Object.defineProperty(c,f,{enumerable:!0,get:h[f]})},s.o=(c,h)=>Object.prototype.hasOwnProperty.call(c,h),s.r=c=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(c,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(c,"__esModule",{value:!0})};var a={};s.r(a);var i=s(93),l=s.n(i),d=a;Object.defineProperty(d,"__esModule",{value:!0}),d.it=void 0;var u=function(){function c(){}return c.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},c.prototype.atX0MinutesPastTheHourGt20=function(){return null},c.prototype.commaMonthX0ThroughMonthX1=function(){return null},c.prototype.commaYearX0ThroughYearX1=function(){return null},c.prototype.use24HourTimeFormatByDefault=function(){return!0},c.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"È verificato un errore durante la generazione la descrizione espressione. Controllare la sintassi delle espressioni cron."},c.prototype.at=function(){return"Alle"},c.prototype.atSpace=function(){return"Alle "},c.prototype.atX0=function(){return"alle %s"},c.prototype.atX0MinutesPastTheHour=function(){return"al %s minuto passata l'ora"},c.prototype.atX0SecondsPastTheMinute=function(){return"al %s secondo passato il minuto"},c.prototype.betweenX0AndX1=function(){return"tra le %s e le %s"},c.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", tra il giorno %s e %s del mese"},c.prototype.commaEveryDay=function(){return", ogni giorno"},c.prototype.commaEveryX0Days=function(){return", ogni %s giorni"},c.prototype.commaEveryX0DaysOfTheWeek=function(){return", ogni %s giorni della settimana"},c.prototype.commaEveryX0Months=function(){return", ogni %s mesi"},c.prototype.commaEveryX0Years=function(){return", ogni %s anni"},c.prototype.commaOnDayX0OfTheMonth=function(){return", il giorno %s del mese"},c.prototype.commaOnlyInX0=function(){return", solo in %s"},c.prototype.commaOnlyOnX0=function(){return", solo il %s"},c.prototype.commaAndOnX0=function(){return", e il %s"},c.prototype.commaOnThe=function(){return", il "},c.prototype.commaOnTheLastDayOfTheMonth=function(){return", l'ultimo giorno del mese"},c.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", nell'ultima settimana del mese"},c.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s giorni prima dell'ultimo giorno del mese"},c.prototype.commaOnTheLastX0OfTheMonth=function(){return", l'ultimo %s del mese"},c.prototype.commaOnTheX0OfTheMonth=function(){return", il %s del mese"},c.prototype.commaX0ThroughX1=function(){return", %s al %s"},c.prototype.commaAndX0ThroughX1=function(){return", e %s al %s"},c.prototype.everyHour=function(){return"ogni ora"},c.prototype.everyMinute=function(){return"ogni minuto"},c.prototype.everyMinuteBetweenX0AndX1=function(){return"Ogni minuto tra le %s e le %s"},c.prototype.everySecond=function(){return"ogni secondo"},c.prototype.everyX0Hours=function(){return"ogni %s ore"},c.prototype.everyX0Minutes=function(){return"ogni %s minuti"},c.prototype.everyX0Seconds=function(){return"ogni %s secondi"},c.prototype.fifth=function(){return"quinto"},c.prototype.first=function(){return"primo"},c.prototype.firstWeekday=function(){return"primo giorno della settimana"},c.prototype.fourth=function(){return"quarto"},c.prototype.minutesX0ThroughX1PastTheHour=function(){return"minuti %s al %s dopo l'ora"},c.prototype.second=function(){return"secondo"},c.prototype.secondsX0ThroughX1PastTheMinute=function(){return"secondi %s al %s oltre il minuto"},c.prototype.spaceAnd=function(){return" e"},c.prototype.spaceX0OfTheMonth=function(){return" %s del mese"},c.prototype.lastDay=function(){return"l'ultimo giorno"},c.prototype.third=function(){return"terzo"},c.prototype.weekdayNearestDayX0=function(){return"giorno della settimana più vicino al %s"},c.prototype.commaStartingX0=function(){return", a partire %s"},c.prototype.daysOfTheWeek=function(){return["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"]},c.prototype.monthsOfTheYear=function(){return["gennaio","febbraio","marzo","aprile","maggio","giugno","luglio","agosto","settembre","ottobre","novembre","dicembre"]},c}();return d.it=u,l().locales.it=new u,a})())})($nt);var Cnt={exports:{}};(function(e,t){(function(r,o){e.exports=o(Yo)})(globalThis,n=>(()=>{var r={93:f=>{f.exports=n}},o={};function s(f){var g=o[f];if(g!==void 0)return g.exports;var _=o[f]={exports:{}};return r[f](_,_.exports,s),_.exports}s.n=f=>{var g=f&&f.__esModule?()=>f.default:()=>f;return s.d(g,{a:g}),g},s.d=(f,g)=>{for(var _ in g)s.o(g,_)&&!s.o(f,_)&&Object.defineProperty(f,_,{enumerable:!0,get:g[_]})},s.o=(f,g)=>Object.prototype.hasOwnProperty.call(f,g),s.r=f=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(f,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(f,"__esModule",{value:!0})};var a={};s.r(a);var i=s(93),l=s.n(i),d=a;Object.defineProperty(d,"__esModule",{value:!0}),d.ru=void 0;var u=function(f,g){var _=Number(f);return _!==void 0?g[_%100>4&&_%100<20?2:[2,0,1,1,1,2][_%10<5?Math.abs(_)%10:5]]:g[2]},c=function(f,g){var _=Number(f);return _!==void 0?g[_===0?0:_===1||_===2||_===4?1:2]:g[1]},h=function(){function f(){}return f.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},f.prototype.atX0MinutesPastTheHourGt20=function(){return null},f.prototype.commaMonthX0ThroughMonthX1=function(){return null},f.prototype.commaYearX0ThroughYearX1=function(){return null},f.prototype.use24HourTimeFormatByDefault=function(){return!0},f.prototype.everyMinute=function(){return"каждую минуту"},f.prototype.everyHour=function(){return"каждый час"},f.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Произошла ошибка во время генерации описания выражения. Проверьте синтаксис крон-выражения."},f.prototype.atSpace=function(){return"В "},f.prototype.everyMinuteBetweenX0AndX1=function(){return"Каждую минуту с %s по %s"},f.prototype.at=function(){return"В"},f.prototype.spaceAnd=function(){return" и"},f.prototype.everySecond=function(){return"каждую секунду"},f.prototype.everyX0Seconds=function(g){return u(g,["каждую %s секунду","каждые %s секунды","каждые %s секунд"])},f.prototype.secondsX0ThroughX1PastTheMinute=function(){return"секунды с %s по %s"},f.prototype.atX0SecondsPastTheMinute=function(g){return u(g,["в %s секунду","в %s секунды","в %s секунд"])},f.prototype.everyX0Minutes=function(g){return u(g,["каждую %s минуту","каждые %s минуты","каждые %s минут"])},f.prototype.minutesX0ThroughX1PastTheHour=function(){return"минуты с %s по %s"},f.prototype.atX0MinutesPastTheHour=function(g){return u(g,["в %s минуту","в %s минуты","в %s минут"])},f.prototype.everyX0Hours=function(g){return u(g,["каждый %s час","каждые %s часа","каждые %s часов"])},f.prototype.betweenX0AndX1=function(){return"с %s по %s"},f.prototype.atX0=function(){return"в %s"},f.prototype.commaEveryDay=function(){return", каждый день"},f.prototype.commaEveryX0DaysOfTheWeek=function(g){return u(g,["",", каждые %s дня недели",", каждые %s дней недели"])},f.prototype.commaX0ThroughX1=function(g){return g&&(g[0]=="2"||g[0]=="3")?", со %s по %s":", с %s по %s"},f.prototype.commaAndX0ThroughX1=function(g){return g&&(g[0]=="2"||g[0]=="3")?" и со %s по %s":" и с %s по %s"},f.prototype.first=function(g){return c(g,["первое","первый","первую"])},f.prototype.second=function(g){return c(g,["второе","второй","вторую"])},f.prototype.third=function(g){return c(g,["третье","третий","третью"])},f.prototype.fourth=function(g){return c(g,["четвертое","четвертый","четвертую"])},f.prototype.fifth=function(g){return c(g,["пятое","пятый","пятую"])},f.prototype.commaOnThe=function(g){return g==="2"?", во ":", в "},f.prototype.spaceX0OfTheMonth=function(){return" %s месяца"},f.prototype.lastDay=function(){return"последний день"},f.prototype.commaOnTheLastX0OfTheMonth=function(g){return c(g,[", в последнее %s месяца",", в последний %s месяца",", в последнюю %s месяца"])},f.prototype.commaOnlyOnX0=function(g){return g&&g[0]==="2"?", только во %s":", только в %s"},f.prototype.commaAndOnX0=function(){return", и %s"},f.prototype.commaEveryX0Months=function(g){return u(g,[""," каждые %s месяца"," каждые %s месяцев"])},f.prototype.commaOnlyInMonthX0=function(){return", только %s"},f.prototype.commaOnlyInX0=function(){return", только в %s"},f.prototype.commaOnTheLastDayOfTheMonth=function(){return", в последний день месяца"},f.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", в последний будний день месяца"},f.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(g){return u(g,[", за %s день до конца месяца",", за %s дня до конца месяца",", за %s дней до конца месяца"])},f.prototype.firstWeekday=function(){return"первый будний день"},f.prototype.weekdayNearestDayX0=function(){return"ближайший будний день к %s числу"},f.prototype.commaOnTheX0OfTheMonth=function(){return", в %s месяца"},f.prototype.commaEveryX0Days=function(g){return u(g,[", каждый %s день",", каждые %s дня",", каждые %s дней"])},f.prototype.commaBetweenDayX0AndX1OfTheMonth=function(g){return g&&g.substring(0,g.indexOf("-"))=="2"?", со %s по %s число месяца":", с %s по %s число месяца"},f.prototype.commaOnDayX0OfTheMonth=function(g){return g&&g[0]=="2"?", во %s число месяца":", в %s число месяца"},f.prototype.commaEveryX0Years=function(g){return u(g,[", каждый %s год",", каждые %s года",", каждые %s лет"])},f.prototype.commaStartingX0=function(){return", начало %s"},f.prototype.daysOfTheWeek=function(){return["воскресенье","понедельник","вторник","среда","четверг","пятница","суббота"]},f.prototype.daysOfTheWeekInCase=function(g){return g===void 0&&(g=2),g==1?["воскресенья","понедельника","вторника","среды","четверга","пятницы","субботы"]:["воскресенье","понедельник","вторник","среду","четверг","пятницу","субботу"]},f.prototype.monthsOfTheYear=function(){return["январь","февраль","март","апрель","май","июнь","июль","август","сентябрь","октябрь","ноябрь","декабрь"]},f.prototype.monthsOfTheYearInCase=function(g){return g==1?["января","февраля","марта","апреля","мая","июня","июля","августа","сентября","октября","ноября","декабря"]:this.monthsOfTheYear()},f}();return d.ru=h,l().locales.ru=new h,a})())})(Cnt);var Ent={exports:{}};(function(e,t){(function(r,o){e.exports=o(Yo)})(globalThis,n=>(()=>{var r={93:c=>{c.exports=n}},o={};function s(c){var h=o[c];if(h!==void 0)return h.exports;var f=o[c]={exports:{}};return r[c](f,f.exports,s),f.exports}s.n=c=>{var h=c&&c.__esModule?()=>c.default:()=>c;return s.d(h,{a:h}),h},s.d=(c,h)=>{for(var f in h)s.o(h,f)&&!s.o(c,f)&&Object.defineProperty(c,f,{enumerable:!0,get:h[f]})},s.o=(c,h)=>Object.prototype.hasOwnProperty.call(c,h),s.r=c=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(c,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(c,"__esModule",{value:!0})};var a={};s.r(a);var i=s(93),l=s.n(i),d=a;Object.defineProperty(d,"__esModule",{value:!0}),d.zh_CN=void 0;var u=function(){function c(){}return c.prototype.setPeriodBeforeTime=function(){return!0},c.prototype.pm=function(){return"下午"},c.prototype.am=function(){return"上午"},c.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},c.prototype.atX0MinutesPastTheHourGt20=function(){return null},c.prototype.commaMonthX0ThroughMonthX1=function(){return null},c.prototype.commaYearX0ThroughYearX1=function(){return", 从%s年至%s年"},c.prototype.use24HourTimeFormatByDefault=function(){return!1},c.prototype.everyMinute=function(){return"每分钟"},c.prototype.everyHour=function(){return"每小时"},c.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"生成表达式描述时发生了错误,请检查cron表达式语法。"},c.prototype.atSpace=function(){return"在"},c.prototype.everyMinuteBetweenX0AndX1=function(){return"在 %s 至 %s 之间的每分钟"},c.prototype.at=function(){return"在"},c.prototype.spaceAnd=function(){return" 和"},c.prototype.everySecond=function(){return"每秒"},c.prototype.everyX0Seconds=function(){return"每隔 %s 秒"},c.prototype.secondsX0ThroughX1PastTheMinute=function(){return"在每分钟的第 %s 到 %s 秒"},c.prototype.atX0SecondsPastTheMinute=function(){return"在每分钟的第 %s 秒"},c.prototype.everyX0Minutes=function(){return"每隔 %s 分钟"},c.prototype.minutesX0ThroughX1PastTheHour=function(){return"在每小时的第 %s 到 %s 分钟"},c.prototype.atX0MinutesPastTheHour=function(){return"在每小时的第 %s 分钟"},c.prototype.everyX0Hours=function(){return"每隔 %s 小时"},c.prototype.betweenX0AndX1=function(){return"在 %s 和 %s 之间"},c.prototype.atX0=function(){return"在%s"},c.prototype.commaEveryDay=function(){return", 每天"},c.prototype.commaEveryX0DaysOfTheWeek=function(){return", 每周的每 %s 天"},c.prototype.commaX0ThroughX1=function(){return", %s至%s"},c.prototype.commaAndX0ThroughX1=function(){return", 和%s至%s"},c.prototype.first=function(){return"第一个"},c.prototype.second=function(){return"第二个"},c.prototype.third=function(){return"第三个"},c.prototype.fourth=function(){return"第四个"},c.prototype.fifth=function(){return"第五个"},c.prototype.commaOnThe=function(){return", 限每月的"},c.prototype.spaceX0OfTheMonth=function(){return"%s"},c.prototype.lastDay=function(){return"本月最后一天"},c.prototype.commaOnTheLastX0OfTheMonth=function(){return", 限每月的最后一个%s"},c.prototype.commaOnlyOnX0=function(){return", 仅%s"},c.prototype.commaAndOnX0=function(){return", 或者为%s"},c.prototype.commaEveryX0Months=function(){return", 每隔 %s 个月"},c.prototype.commaOnlyInX0=function(){return", 仅限%s"},c.prototype.commaOnlyInMonthX0=function(){return", 仅于%s份"},c.prototype.commaOnlyInYearX0=function(){return", 仅于 %s 年"},c.prototype.commaOnTheLastDayOfTheMonth=function(){return", 限每月的最后一天"},c.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", 限每月的最后一个工作日"},c.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", 限每月最后%s天"},c.prototype.firstWeekday=function(){return"第一个工作日"},c.prototype.weekdayNearestDayX0=function(){return"最接近 %s 号的工作日"},c.prototype.commaOnTheX0OfTheMonth=function(){return", 限每月的%s"},c.prototype.commaEveryX0Days=function(){return", 每隔 %s 天"},c.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", 限每月的 %s 至 %s 之间"},c.prototype.commaOnDayX0OfTheMonth=function(){return", 限每月%s"},c.prototype.commaEveryX0Years=function(){return", 每隔 %s 年"},c.prototype.commaStartingX0=function(){return", %s开始"},c.prototype.dayX0=function(){return" %s 号"},c.prototype.daysOfTheWeek=function(){return["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]},c.prototype.monthsOfTheYear=function(){return["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},c}();return d.zh_CN=u,l().locales.zh_CN=new u,a})())})(Ent);var Tnt={exports:{}};(function(e,t){(function(r,o){e.exports=o(Yo)})(globalThis,n=>(()=>{var r={93:c=>{c.exports=n}},o={};function s(c){var h=o[c];if(h!==void 0)return h.exports;var f=o[c]={exports:{}};return r[c](f,f.exports,s),f.exports}s.n=c=>{var h=c&&c.__esModule?()=>c.default:()=>c;return s.d(h,{a:h}),h},s.d=(c,h)=>{for(var f in h)s.o(h,f)&&!s.o(c,f)&&Object.defineProperty(c,f,{enumerable:!0,get:h[f]})},s.o=(c,h)=>Object.prototype.hasOwnProperty.call(c,h),s.r=c=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(c,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(c,"__esModule",{value:!0})};var a={};s.r(a);var i=s(93),l=s.n(i),d=a;Object.defineProperty(d,"__esModule",{value:!0}),d.uk=void 0;var u=function(){function c(){}return c.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},c.prototype.atX0MinutesPastTheHourGt20=function(){return null},c.prototype.commaMonthX0ThroughMonthX1=function(){return null},c.prototype.commaYearX0ThroughYearX1=function(){return null},c.prototype.use24HourTimeFormatByDefault=function(){return!0},c.prototype.everyMinute=function(){return"щохвилини"},c.prototype.everyHour=function(){return"щогодини"},c.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"ВІдбулася помилка підчас генерації опису. Перевірта правильність написання cron виразу."},c.prototype.atSpace=function(){return"О "},c.prototype.everyMinuteBetweenX0AndX1=function(){return"Щохвилини між %s та %s"},c.prototype.at=function(){return"О"},c.prototype.spaceAnd=function(){return" та"},c.prototype.everySecond=function(){return"Щосекунди"},c.prototype.everyX0Seconds=function(){return"кожні %s секунд"},c.prototype.secondsX0ThroughX1PastTheMinute=function(){return"з %s по %s секунду"},c.prototype.atX0SecondsPastTheMinute=function(){return"о %s секунді"},c.prototype.everyX0Minutes=function(){return"кожні %s хвилин"},c.prototype.minutesX0ThroughX1PastTheHour=function(){return"з %s по %s хвилину"},c.prototype.atX0MinutesPastTheHour=function(){return"о %s хвилині"},c.prototype.everyX0Hours=function(){return"кожні %s годин"},c.prototype.betweenX0AndX1=function(){return"між %s та %s"},c.prototype.atX0=function(){return"о %s"},c.prototype.commaEveryDay=function(){return", щоденно"},c.prototype.commaEveryX0DaysOfTheWeek=function(){return", кожен %s день тижня"},c.prototype.commaX0ThroughX1=function(){return", %s по %s"},c.prototype.commaAndX0ThroughX1=function(){return", та %s по %s"},c.prototype.first=function(){return"перший"},c.prototype.second=function(){return"другий"},c.prototype.third=function(){return"третій"},c.prototype.fourth=function(){return"четвертий"},c.prototype.fifth=function(){return"п'ятий"},c.prototype.commaOnThe=function(){return", в "},c.prototype.spaceX0OfTheMonth=function(){return" %s місяця"},c.prototype.lastDay=function(){return"останній день"},c.prototype.commaOnTheLastX0OfTheMonth=function(){return", в останній %s місяця"},c.prototype.commaOnlyOnX0=function(){return", тільки в %s"},c.prototype.commaAndOnX0=function(){return", і в %s"},c.prototype.commaEveryX0Months=function(){return", кожен %s місяць"},c.prototype.commaOnlyInX0=function(){return", тільки в %s"},c.prototype.commaOnTheLastDayOfTheMonth=function(){return", в останній день місяця"},c.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", в останній будень місяця"},c.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s днів до останнього дня місяця"},c.prototype.firstWeekday=function(){return"перший будень"},c.prototype.weekdayNearestDayX0=function(){return"будень найближчий до %s дня"},c.prototype.commaOnTheX0OfTheMonth=function(){return", в %s місяця"},c.prototype.commaEveryX0Days=function(){return", кожен %s день"},c.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", між %s та %s днями місяця"},c.prototype.commaOnDayX0OfTheMonth=function(){return", на %s день місяця"},c.prototype.commaEveryX0Years=function(){return", кожні %s роки"},c.prototype.commaStartingX0=function(){return", початок %s"},c.prototype.daysOfTheWeek=function(){return["неділя","понеділок","вівторок","середа","четвер","п'ятниця","субота"]},c.prototype.monthsOfTheYear=function(){return["січень","лютий","березень","квітень","травень","червень","липень","серпень","вересень","жовтень","листопад","грудень"]},c}();return d.uk=u,l().locales.uk=new u,a})())})(Tnt);var Ont={exports:{}};(function(e,t){(function(r,o){e.exports=o(Yo)})(globalThis,n=>(()=>{var r={93:c=>{c.exports=n}},o={};function s(c){var h=o[c];if(h!==void 0)return h.exports;var f=o[c]={exports:{}};return r[c](f,f.exports,s),f.exports}s.n=c=>{var h=c&&c.__esModule?()=>c.default:()=>c;return s.d(h,{a:h}),h},s.d=(c,h)=>{for(var f in h)s.o(h,f)&&!s.o(c,f)&&Object.defineProperty(c,f,{enumerable:!0,get:h[f]})},s.o=(c,h)=>Object.prototype.hasOwnProperty.call(c,h),s.r=c=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(c,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(c,"__esModule",{value:!0})};var a={};s.r(a);var i=s(93),l=s.n(i),d=a;Object.defineProperty(d,"__esModule",{value:!0}),d.pt_BR=void 0;var u=function(){function c(){}return c.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},c.prototype.atX0MinutesPastTheHourGt20=function(){return null},c.prototype.commaMonthX0ThroughMonthX1=function(){return null},c.prototype.commaYearX0ThroughYearX1=function(){return null},c.prototype.use24HourTimeFormatByDefault=function(){return!0},c.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Ocorreu um erro ao gerar a descrição da expressão Cron."},c.prototype.at=function(){return"às"},c.prototype.atSpace=function(){return"às "},c.prototype.atX0=function(){return"Às %s"},c.prototype.atX0MinutesPastTheHour=function(){return"aos %s minutos da hora"},c.prototype.atX0SecondsPastTheMinute=function(){return"aos %s segundos do minuto"},c.prototype.betweenX0AndX1=function(){return"entre %s e %s"},c.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", entre os dias %s e %s do mês"},c.prototype.commaEveryDay=function(){return", a cada dia"},c.prototype.commaEveryX0Days=function(){return", a cada %s dias"},c.prototype.commaEveryX0DaysOfTheWeek=function(){return", a cada %s dias de semana"},c.prototype.commaEveryX0Months=function(){return", a cada %s meses"},c.prototype.commaOnDayX0OfTheMonth=function(){return", no dia %s do mês"},c.prototype.commaOnlyInX0=function(h){return h&&h.length>1&&h[1]==="-"?"somente %s":", somente em %s"},c.prototype.commaOnlyOnX0=function(h){return h&&h.length>1&&h[1]==="-"?", somente %s":", somente de %s"},c.prototype.commaAndOnX0=function(){return", e de %s"},c.prototype.commaOnThe=function(h,f){return f==="6"||f==="0"?", no":", na "},c.prototype.commaOnTheLastDayOfTheMonth=function(){return", no último dia do mês"},c.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", no último dia da semana do mês"},c.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s dias antes do último dia do mês"},c.prototype.commaOnTheLastX0OfTheMonth=function(){return", na última %s do mês"},c.prototype.commaOnTheX0OfTheMonth=function(){return", no %s do mês"},c.prototype.commaX0ThroughX1=function(){return", de %s a %s"},c.prototype.commaAndX0ThroughX1=function(){return", e de %s a %s"},c.prototype.everyHour=function(){return"a cada hora"},c.prototype.everyMinute=function(){return"a cada minuto"},c.prototype.everyMinuteBetweenX0AndX1=function(){return"a cada minuto entre %s e %s"},c.prototype.everySecond=function(){return"a cada segundo"},c.prototype.everyX0Hours=function(){return"a cada %s horas"},c.prototype.everyX0Minutes=function(){return"a cada %s minutos"},c.prototype.everyX0Seconds=function(){return"a cada %s segundos"},c.prototype.fifth=function(h){return h==="6"||h==="0"?"quinto":"quinta"},c.prototype.first=function(h){return h==="6"||h==="0"?"primeiro":"primeira"},c.prototype.firstWeekday=function(){return"primeiro dia da semana"},c.prototype.fourth=function(h){return h==="6"||h==="0"?"quarto":"quarta"},c.prototype.minutesX0ThroughX1PastTheHour=function(){return"do minuto %s até %s de cada hora"},c.prototype.second=function(h){return h==="6"||h==="0"?"segundo":"segunda"},c.prototype.secondsX0ThroughX1PastTheMinute=function(){return"No segundo %s até %s de cada minuto"},c.prototype.spaceAnd=function(){return" e"},c.prototype.spaceX0OfTheMonth=function(){return" %s do mês"},c.prototype.lastDay=function(){return"o último dia"},c.prototype.third=function(h){return h==="6"||h==="0"?"terceiro":"terceira"},c.prototype.weekdayNearestDayX0=function(){return"dia da semana mais próximo do dia %s"},c.prototype.commaEveryX0Years=function(){return", a cada %s anos"},c.prototype.commaStartingX0=function(){return", iniciando %s"},c.prototype.daysOfTheWeek=function(){return["domingo","segunda-feira","terça-feira","quarta-feira","quinta-feira","sexta-feira","sábado"]},c.prototype.monthsOfTheYear=function(){return["janeiro","fevereiro","março","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"]},c}();return d.pt_BR=u,l().locales.pt_BR=new u,a})())})(Ont);var Dnt={exports:{}};(function(e,t){(function(r,o){e.exports=o(Yo)})(globalThis,n=>(()=>{var r={93:c=>{c.exports=n}},o={};function s(c){var h=o[c];if(h!==void 0)return h.exports;var f=o[c]={exports:{}};return r[c](f,f.exports,s),f.exports}s.n=c=>{var h=c&&c.__esModule?()=>c.default:()=>c;return s.d(h,{a:h}),h},s.d=(c,h)=>{for(var f in h)s.o(h,f)&&!s.o(c,f)&&Object.defineProperty(c,f,{enumerable:!0,get:h[f]})},s.o=(c,h)=>Object.prototype.hasOwnProperty.call(c,h),s.r=c=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(c,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(c,"__esModule",{value:!0})};var a={};s.r(a);var i=s(93),l=s.n(i),d=a;Object.defineProperty(d,"__esModule",{value:!0}),d.pl=void 0;var u=function(){function c(){}return c.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},c.prototype.atX0MinutesPastTheHourGt20=function(){return null},c.prototype.commaMonthX0ThroughMonthX1=function(){return null},c.prototype.commaYearX0ThroughYearX1=function(){return null},c.prototype.use24HourTimeFormatByDefault=function(){return!0},c.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Wystąpił błąd podczas generowania opisu wyrażenia cron. Sprawdź składnię wyrażenia cron."},c.prototype.at=function(){return"O"},c.prototype.atSpace=function(){return"O "},c.prototype.atX0=function(){return"o %s"},c.prototype.atX0MinutesPastTheHour=function(){return"w %s minucie"},c.prototype.atX0SecondsPastTheMinute=function(){return"w %s sekundzie"},c.prototype.betweenX0AndX1=function(){return"od %s do %s"},c.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", od %s-ego do %s-ego dnia miesiąca"},c.prototype.commaEveryDay=function(){return", co dzień"},c.prototype.commaEveryX0Days=function(){return", co %s dni"},c.prototype.commaEveryX0DaysOfTheWeek=function(){return", co %s dni tygodnia"},c.prototype.commaEveryX0Months=function(){return", co %s miesięcy"},c.prototype.commaEveryX0Years=function(){return", co %s lat"},c.prototype.commaOnDayX0OfTheMonth=function(){return", %s-ego dnia miesiąca"},c.prototype.commaOnlyInX0=function(){return", tylko %s"},c.prototype.commaOnlyOnX0=function(){return", tylko %s"},c.prototype.commaAndOnX0=function(){return", i %s"},c.prototype.commaOnThe=function(){return", "},c.prototype.commaOnTheLastDayOfTheMonth=function(){return", ostatni dzień miesiąca"},c.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", ostatni dzień roboczy miesiąca"},c.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s dni przed ostatnim dniem miesiąca"},c.prototype.commaOnTheLastX0OfTheMonth=function(){return", ostatni %s miesiąca"},c.prototype.commaOnTheX0OfTheMonth=function(){return", %s miesiąca"},c.prototype.commaX0ThroughX1=function(){return", od %s do %s"},c.prototype.commaAndX0ThroughX1=function(){return", i od %s do %s"},c.prototype.everyHour=function(){return"co godzinę"},c.prototype.everyMinute=function(){return"co minutę"},c.prototype.everyMinuteBetweenX0AndX1=function(){return"Co minutę od %s do %s"},c.prototype.everySecond=function(){return"co sekundę"},c.prototype.everyX0Hours=function(){return"co %s godzin"},c.prototype.everyX0Minutes=function(){return"co %s minut"},c.prototype.everyX0Seconds=function(){return"co %s sekund"},c.prototype.fifth=function(){return"piąty"},c.prototype.first=function(){return"pierwszy"},c.prototype.firstWeekday=function(){return"pierwszy dzień roboczy"},c.prototype.fourth=function(){return"czwarty"},c.prototype.minutesX0ThroughX1PastTheHour=function(){return"minuty od %s do %s"},c.prototype.second=function(){return"drugi"},c.prototype.secondsX0ThroughX1PastTheMinute=function(){return"sekundy od %s do %s"},c.prototype.spaceAnd=function(){return" i"},c.prototype.spaceX0OfTheMonth=function(){return" %s miesiąca"},c.prototype.lastDay=function(){return"ostatni dzień"},c.prototype.third=function(){return"trzeci"},c.prototype.weekdayNearestDayX0=function(){return"dzień roboczy najbliższy %s-ego dnia"},c.prototype.commaStartingX0=function(){return", startowy %s"},c.prototype.daysOfTheWeek=function(){return["niedziela","poniedziałek","wtorek","środa","czwartek","piątek","sobota"]},c.prototype.monthsOfTheYear=function(){return["styczeń","luty","marzec","kwiecień","maj","czerwiec","lipiec","sierpień","wrzesień","październik","listopad","grudzień"]},c}();return d.pl=u,l().locales.pl=new u,a})())})(Dnt);function o3(e,t){return wnt.toString(e,{locale:t})}const Jn={mainDiv:{width:"100%",height:"100%"},periodSelect:{display:"block",width:250},slider:{marginTop:20,display:"block",width:"100%"},tabContent:{padding:20,height:"calc(100% - 240px)",overflow:"auto"},numberButton:{padding:4,minWidth:40,margin:5},numberButtonBreak:{display:"block"},appBar:{color:"white"},warning:{marginLeft:16,color:"red",fontSize:12}},Ant=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],Nnt=["January","February","March","April","May","June","July","August","September","October","November","December"];function rC(e,t){const n=[];if(e==="*"){if(t===24||t===60||t===7)for(let o=0;o1){const a=parseInt(s[1],10);for(let i=parseInt(s[0],10);i<=a;i++)n.push(i)}else n.push(parseInt(r[o],10))}n.sort();for(let o=n.length-1;o>=0;o--)n[o]===n[o+1]&&n.splice(o+1,1);return n}function oC(e,t){if(typeof e!="object"&&(e=[e]),e.length===t)return"*";const n=[];if(!e.length)return"-";e=e.map(s=>parseInt(s,10)),e.sort((s,a)=>s-a);let r=e[0],o=e[0];for(let s=1;sthis.props.onChange&&this.props.onChange(this.state.cron),100)}static cron2state(t){t=t.replace(/['"]/g,"").trim();const n=t.split(" ").map(o=>o.trim());let r;return n.length===6?r={seconds:n[0]||"*",minutes:n[1]||"*",hours:n[2]||"*",dates:n[3]||"*",months:n[4]||"*",dow:n[5]||"*"}:r={seconds:!1,minutes:n[0]||"*",hours:n[1]||"*",dates:n[2]||"*",months:n[3]||"*",dow:n[4]||"*"},r}static state2cron(t){let n=`${t.minutes} ${t.hours} ${t.dates} ${t.months} ${t.dow}`;return t.seconds!==!1&&(n=`${t.seconds} ${n}`),n}recalcCron(){const t=Vs.state2cron(this.state);t!==this.state.cron&&this.setState({cron:t},()=>this.props.onChange&&this.props.onChange(this.state.cron))}onToggle(t,n,r){if(t===!0)this.setCronAttr(n,"*");else if(t===!1)r===60||r===24?this.setCronAttr(n,"0"):this.setCronAttr(n,"1");else{const o=rC(this.state[n],r),s=o.indexOf(t);s!==-1?o.splice(s,1):(o.push(t),o.sort()),this.setCronAttr(n,oC(o,r))}}getDigitsSelector(t,n){let r=[];if(n===7)r=[1,2,3,4,5,6,0];else if(n===60||n===24)for(let s=0;sthis.onToggle(!1,t,n)},E.t("ra_Deselect all")),p.createElement(_e,{key:"addall",variant:"contained",style:Jn.numberButton,color:"secondary",onClick:()=>this.onToggle(!0,t,n)},E.t("ra_Select all")),p.createElement("div",{key:"all"},r.map(s=>[n===7&&s===4||n===12&&s===7||n===31&&!((s-1)%10)||n===60&&s&&!(s%10)||n===24&&s&&!(s%6)?p.createElement("div",{key:`allInner${s}`,style:{width:"100%"}}):null,p.createElement(_e,{key:`_${s}`,variant:o.indexOf(s)!==-1?"contained":"outlined",style:Jn.numberButton,color:o.indexOf(s)!==-1?"secondary":"primary",onClick:()=>this.onToggle(s,t,n)},n===7?E.t(Ant[s]):n===12?Nnt[s-1]:s)]))]}getPeriodsTab(t,n){const r=this.state[t];let o=r==="*",s=r==null?!1:r.toString().includes("/"),a;if(this.state.modes[t]===null){a=o?"every":s?"everyN":"specific";const l=JSON.parse(JSON.stringify(this.state.modes));return l[t]=a,setTimeout(()=>this.setState({modes:l},()=>this.recalcCron()),100),null}o=this.state.modes[t]==="every",s=this.state.modes[t]==="everyN",a=this.state.modes[t];let i=1;return s&&r&&(i=parseInt(r.replace("*/",""),10)||1),p.createElement("div",null,p.createElement(an,{variant:"standard",style:{...Jn.periodSelect,verticalAlign:"bottom"},value:a,onChange:l=>{const d=JSON.parse(JSON.stringify(this.state.modes));if(d[t]=l.target.value,l.target.value==="every")this.setCronAttr(t,"*",d);else if(l.target.value==="everyN"){const u=parseInt((this.state[t]||"").toString().replace("*/",""),10)||1;this.setCronAttr(t,`*/${u}`,d)}else if(l.target.value==="specific"){let u=parseInt((this.state[t]||"").toString().split(",")[0],10)||0;!u&&(t==="months"||t==="dates")&&(u=1),this.setCronAttr(t,oC(u,n),d)}}},p.createElement(ze,{key:"every",value:"every"},E.t(`sc_every_${t}`)),p.createElement(ze,{key:"everyN",value:"everyN"},E.t(`sc_everyN_${t}`)),p.createElement(ze,{key:"specific",value:"specific"},E.t(`sc_specific_${t}`))),s&&p.createElement(nt,{variant:"standard",key:"interval",label:E.t(`sc_${t}`),value:i,slotProps:{htmlInput:{min:1,max:n},inputLabel:{shrink:!0}},onChange:l=>{this.setState({[t]:`*/${l.target.value}`},()=>this.recalcCron())},type:"number",margin:"normal"}),!o&&!s&&this.getDigitsSelector(t,n))}static convertCronToText(t,n){return t.split(" ").includes("-")?E.t("ra_Invalid CRON"):o3(t,n)}setCronAttr(t,n,r){r?t==="seconds"?this.setState({seconds:n,modes:r},()=>this.recalcCron()):t==="minutes"?this.setState({minutes:n,modes:r},()=>this.recalcCron()):t==="hours"?this.setState({hours:n,modes:r},()=>this.recalcCron()):t==="dates"?this.setState({dates:n,modes:r},()=>this.recalcCron()):t==="months"?this.setState({months:n,modes:r},()=>this.recalcCron()):t==="dow"?this.setState({dow:n,modes:r},()=>this.recalcCron()):this.setState({modes:r},()=>this.recalcCron()):t==="seconds"?this.setState({seconds:n},()=>this.recalcCron()):t==="minutes"?this.setState({minutes:n},()=>this.recalcCron()):t==="hours"?this.setState({hours:n},()=>this.recalcCron()):t==="dates"?this.setState({dates:n},()=>this.recalcCron()):t==="months"?this.setState({months:n},()=>this.recalcCron()):t==="dow"&&this.setState({dow:n},()=>this.recalcCron())}render(){const t=this.state.seconds!==!1?this.state.tab:this.state.tab+1,n=this.state.minutes==="*"||this.state.minutes==="*/1",r=this.state.seconds==="*"||this.state.seconds==="*/1";return p.createElement("div",{style:Jn.mainDiv},p.createElement("div",{style:{paddingLeft:8,width:"calc(100% - px)"}},p.createElement(nt,{variant:"standard",style:{width:"100%"},value:this.state.cron,disabled:!0})),p.createElement("div",{style:{paddingLeft:8,width:"calc(100% - px)",height:60}},Vs.convertCronToText(this.state.cron,this.props.language||"en"),p.createElement("span",{style:Jn.warning},r?E.t("ra_warning_every_second"):n?E.t("ra_warning_every_minute"):"")),p.createElement(Ae,{control:p.createElement(xt,{checked:!!this.state.seconds,onChange:o=>this.setState({seconds:o.target.checked?"*":!1},()=>this.recalcCron())}),label:E.t("ra_use seconds")}),p.createElement(OO,{position:"static",sx:{"&.MuiAppBar-root":Jn.appBar},color:"secondary"},p.createElement(QO,{value:this.state.tab,style:Jn.appBar,color:"secondary",onChange:(o,s)=>this.setState({tab:s})},this.state.seconds!==!1&&p.createElement(Kn,{id:"sc_seconds",label:E.t("sc_seconds")}),p.createElement(Kn,{id:"minutes",label:E.t("sc_minutes")}),p.createElement(Kn,{id:"hours",label:E.t("sc_hours")}),p.createElement(Kn,{id:"dates",label:E.t("sc_dates")}),p.createElement(Kn,{id:"months",label:E.t("sc_months")}),p.createElement(Kn,{id:"dow",label:E.t("sc_dows")}))),t===0&&p.createElement("div",{style:Jn.tabContent},this.getPeriodsTab("seconds",60)),t===1&&p.createElement("div",{style:Jn.tabContent},this.getPeriodsTab("minutes",60)),t===2&&p.createElement("div",{style:Jn.tabContent},this.getPeriodsTab("hours",24)),t===3&&p.createElement("div",{style:Jn.tabContent},this.getPeriodsTab("dates",31)),t===4&&p.createElement("div",{style:Jn.tabContent},this.getPeriodsTab("months",12)),t===5&&p.createElement("div",{style:Jn.tabContent},this.getPeriodsTab("dow",7)))}}function yi(e,t,n,r){function o(s){return s instanceof n?s:new n(function(a){a(s)})}return new(n||(n=Promise))(function(s,a){function i(u){try{d(r.next(u))}catch(c){a(c)}}function l(u){try{d(r.throw(u))}catch(c){a(c)}}function d(u){u.done?s(u.value):o(u.value).then(i,l)}d((r=r.apply(e,t||[])).next())})}const Mnt=new Map([["1km","application/vnd.1000minds.decision-model+xml"],["3dml","text/vnd.in3d.3dml"],["3ds","image/x-3ds"],["3g2","video/3gpp2"],["3gp","video/3gp"],["3gpp","video/3gpp"],["3mf","model/3mf"],["7z","application/x-7z-compressed"],["7zip","application/x-7z-compressed"],["123","application/vnd.lotus-1-2-3"],["aab","application/x-authorware-bin"],["aac","audio/x-acc"],["aam","application/x-authorware-map"],["aas","application/x-authorware-seg"],["abw","application/x-abiword"],["ac","application/vnd.nokia.n-gage.ac+xml"],["ac3","audio/ac3"],["acc","application/vnd.americandynamics.acc"],["ace","application/x-ace-compressed"],["acu","application/vnd.acucobol"],["acutc","application/vnd.acucorp"],["adp","audio/adpcm"],["aep","application/vnd.audiograph"],["afm","application/x-font-type1"],["afp","application/vnd.ibm.modcap"],["ahead","application/vnd.ahead.space"],["ai","application/pdf"],["aif","audio/x-aiff"],["aifc","audio/x-aiff"],["aiff","audio/x-aiff"],["air","application/vnd.adobe.air-application-installer-package+zip"],["ait","application/vnd.dvb.ait"],["ami","application/vnd.amiga.ami"],["amr","audio/amr"],["apk","application/vnd.android.package-archive"],["apng","image/apng"],["appcache","text/cache-manifest"],["application","application/x-ms-application"],["apr","application/vnd.lotus-approach"],["arc","application/x-freearc"],["arj","application/x-arj"],["asc","application/pgp-signature"],["asf","video/x-ms-asf"],["asm","text/x-asm"],["aso","application/vnd.accpac.simply.aso"],["asx","video/x-ms-asf"],["atc","application/vnd.acucorp"],["atom","application/atom+xml"],["atomcat","application/atomcat+xml"],["atomdeleted","application/atomdeleted+xml"],["atomsvc","application/atomsvc+xml"],["atx","application/vnd.antix.game-component"],["au","audio/x-au"],["avi","video/x-msvideo"],["avif","image/avif"],["aw","application/applixware"],["azf","application/vnd.airzip.filesecure.azf"],["azs","application/vnd.airzip.filesecure.azs"],["azv","image/vnd.airzip.accelerator.azv"],["azw","application/vnd.amazon.ebook"],["b16","image/vnd.pco.b16"],["bat","application/x-msdownload"],["bcpio","application/x-bcpio"],["bdf","application/x-font-bdf"],["bdm","application/vnd.syncml.dm+wbxml"],["bdoc","application/x-bdoc"],["bed","application/vnd.realvnc.bed"],["bh2","application/vnd.fujitsu.oasysprs"],["bin","application/octet-stream"],["blb","application/x-blorb"],["blorb","application/x-blorb"],["bmi","application/vnd.bmi"],["bmml","application/vnd.balsamiq.bmml+xml"],["bmp","image/bmp"],["book","application/vnd.framemaker"],["box","application/vnd.previewsystems.box"],["boz","application/x-bzip2"],["bpk","application/octet-stream"],["bpmn","application/octet-stream"],["bsp","model/vnd.valve.source.compiled-map"],["btif","image/prs.btif"],["buffer","application/octet-stream"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["c","text/x-c"],["c4d","application/vnd.clonk.c4group"],["c4f","application/vnd.clonk.c4group"],["c4g","application/vnd.clonk.c4group"],["c4p","application/vnd.clonk.c4group"],["c4u","application/vnd.clonk.c4group"],["c11amc","application/vnd.cluetrust.cartomobile-config"],["c11amz","application/vnd.cluetrust.cartomobile-config-pkg"],["cab","application/vnd.ms-cab-compressed"],["caf","audio/x-caf"],["cap","application/vnd.tcpdump.pcap"],["car","application/vnd.curl.car"],["cat","application/vnd.ms-pki.seccat"],["cb7","application/x-cbr"],["cba","application/x-cbr"],["cbr","application/x-cbr"],["cbt","application/x-cbr"],["cbz","application/x-cbr"],["cc","text/x-c"],["cco","application/x-cocoa"],["cct","application/x-director"],["ccxml","application/ccxml+xml"],["cdbcmsg","application/vnd.contact.cmsg"],["cda","application/x-cdf"],["cdf","application/x-netcdf"],["cdfx","application/cdfx+xml"],["cdkey","application/vnd.mediastation.cdkey"],["cdmia","application/cdmi-capability"],["cdmic","application/cdmi-container"],["cdmid","application/cdmi-domain"],["cdmio","application/cdmi-object"],["cdmiq","application/cdmi-queue"],["cdr","application/cdr"],["cdx","chemical/x-cdx"],["cdxml","application/vnd.chemdraw+xml"],["cdy","application/vnd.cinderella"],["cer","application/pkix-cert"],["cfs","application/x-cfs-compressed"],["cgm","image/cgm"],["chat","application/x-chat"],["chm","application/vnd.ms-htmlhelp"],["chrt","application/vnd.kde.kchart"],["cif","chemical/x-cif"],["cii","application/vnd.anser-web-certificate-issue-initiation"],["cil","application/vnd.ms-artgalry"],["cjs","application/node"],["cla","application/vnd.claymore"],["class","application/octet-stream"],["clkk","application/vnd.crick.clicker.keyboard"],["clkp","application/vnd.crick.clicker.palette"],["clkt","application/vnd.crick.clicker.template"],["clkw","application/vnd.crick.clicker.wordbank"],["clkx","application/vnd.crick.clicker"],["clp","application/x-msclip"],["cmc","application/vnd.cosmocaller"],["cmdf","chemical/x-cmdf"],["cml","chemical/x-cml"],["cmp","application/vnd.yellowriver-custom-menu"],["cmx","image/x-cmx"],["cod","application/vnd.rim.cod"],["coffee","text/coffeescript"],["com","application/x-msdownload"],["conf","text/plain"],["cpio","application/x-cpio"],["cpp","text/x-c"],["cpt","application/mac-compactpro"],["crd","application/x-mscardfile"],["crl","application/pkix-crl"],["crt","application/x-x509-ca-cert"],["crx","application/x-chrome-extension"],["cryptonote","application/vnd.rig.cryptonote"],["csh","application/x-csh"],["csl","application/vnd.citationstyles.style+xml"],["csml","chemical/x-csml"],["csp","application/vnd.commonspace"],["csr","application/octet-stream"],["css","text/css"],["cst","application/x-director"],["csv","text/csv"],["cu","application/cu-seeme"],["curl","text/vnd.curl"],["cww","application/prs.cww"],["cxt","application/x-director"],["cxx","text/x-c"],["dae","model/vnd.collada+xml"],["daf","application/vnd.mobius.daf"],["dart","application/vnd.dart"],["dataless","application/vnd.fdsn.seed"],["davmount","application/davmount+xml"],["dbf","application/vnd.dbf"],["dbk","application/docbook+xml"],["dcr","application/x-director"],["dcurl","text/vnd.curl.dcurl"],["dd2","application/vnd.oma.dd2+xml"],["ddd","application/vnd.fujixerox.ddd"],["ddf","application/vnd.syncml.dmddf+xml"],["dds","image/vnd.ms-dds"],["deb","application/x-debian-package"],["def","text/plain"],["deploy","application/octet-stream"],["der","application/x-x509-ca-cert"],["dfac","application/vnd.dreamfactory"],["dgc","application/x-dgc-compressed"],["dic","text/x-c"],["dir","application/x-director"],["dis","application/vnd.mobius.dis"],["disposition-notification","message/disposition-notification"],["dist","application/octet-stream"],["distz","application/octet-stream"],["djv","image/vnd.djvu"],["djvu","image/vnd.djvu"],["dll","application/octet-stream"],["dmg","application/x-apple-diskimage"],["dmn","application/octet-stream"],["dmp","application/vnd.tcpdump.pcap"],["dms","application/octet-stream"],["dna","application/vnd.dna"],["doc","application/msword"],["docm","application/vnd.ms-word.template.macroEnabled.12"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["dot","application/msword"],["dotm","application/vnd.ms-word.template.macroEnabled.12"],["dotx","application/vnd.openxmlformats-officedocument.wordprocessingml.template"],["dp","application/vnd.osgi.dp"],["dpg","application/vnd.dpgraph"],["dra","audio/vnd.dra"],["drle","image/dicom-rle"],["dsc","text/prs.lines.tag"],["dssc","application/dssc+der"],["dtb","application/x-dtbook+xml"],["dtd","application/xml-dtd"],["dts","audio/vnd.dts"],["dtshd","audio/vnd.dts.hd"],["dump","application/octet-stream"],["dvb","video/vnd.dvb.file"],["dvi","application/x-dvi"],["dwd","application/atsc-dwd+xml"],["dwf","model/vnd.dwf"],["dwg","image/vnd.dwg"],["dxf","image/vnd.dxf"],["dxp","application/vnd.spotfire.dxp"],["dxr","application/x-director"],["ear","application/java-archive"],["ecelp4800","audio/vnd.nuera.ecelp4800"],["ecelp7470","audio/vnd.nuera.ecelp7470"],["ecelp9600","audio/vnd.nuera.ecelp9600"],["ecma","application/ecmascript"],["edm","application/vnd.novadigm.edm"],["edx","application/vnd.novadigm.edx"],["efif","application/vnd.picsel"],["ei6","application/vnd.pg.osasli"],["elc","application/octet-stream"],["emf","image/emf"],["eml","message/rfc822"],["emma","application/emma+xml"],["emotionml","application/emotionml+xml"],["emz","application/x-msmetafile"],["eol","audio/vnd.digital-winds"],["eot","application/vnd.ms-fontobject"],["eps","application/postscript"],["epub","application/epub+zip"],["es","application/ecmascript"],["es3","application/vnd.eszigno3+xml"],["esa","application/vnd.osgi.subsystem"],["esf","application/vnd.epson.esf"],["et3","application/vnd.eszigno3+xml"],["etx","text/x-setext"],["eva","application/x-eva"],["evy","application/x-envoy"],["exe","application/octet-stream"],["exi","application/exi"],["exp","application/express"],["exr","image/aces"],["ext","application/vnd.novadigm.ext"],["ez","application/andrew-inset"],["ez2","application/vnd.ezpix-album"],["ez3","application/vnd.ezpix-package"],["f","text/x-fortran"],["f4v","video/mp4"],["f77","text/x-fortran"],["f90","text/x-fortran"],["fbs","image/vnd.fastbidsheet"],["fcdt","application/vnd.adobe.formscentral.fcdt"],["fcs","application/vnd.isac.fcs"],["fdf","application/vnd.fdf"],["fdt","application/fdt+xml"],["fe_launch","application/vnd.denovo.fcselayout-link"],["fg5","application/vnd.fujitsu.oasysgp"],["fgd","application/x-director"],["fh","image/x-freehand"],["fh4","image/x-freehand"],["fh5","image/x-freehand"],["fh7","image/x-freehand"],["fhc","image/x-freehand"],["fig","application/x-xfig"],["fits","image/fits"],["flac","audio/x-flac"],["fli","video/x-fli"],["flo","application/vnd.micrografx.flo"],["flv","video/x-flv"],["flw","application/vnd.kde.kivio"],["flx","text/vnd.fmi.flexstor"],["fly","text/vnd.fly"],["fm","application/vnd.framemaker"],["fnc","application/vnd.frogans.fnc"],["fo","application/vnd.software602.filler.form+xml"],["for","text/x-fortran"],["fpx","image/vnd.fpx"],["frame","application/vnd.framemaker"],["fsc","application/vnd.fsc.weblaunch"],["fst","image/vnd.fst"],["ftc","application/vnd.fluxtime.clip"],["fti","application/vnd.anser-web-funds-transfer-initiation"],["fvt","video/vnd.fvt"],["fxp","application/vnd.adobe.fxp"],["fxpl","application/vnd.adobe.fxp"],["fzs","application/vnd.fuzzysheet"],["g2w","application/vnd.geoplan"],["g3","image/g3fax"],["g3w","application/vnd.geospace"],["gac","application/vnd.groove-account"],["gam","application/x-tads"],["gbr","application/rpki-ghostbusters"],["gca","application/x-gca-compressed"],["gdl","model/vnd.gdl"],["gdoc","application/vnd.google-apps.document"],["geo","application/vnd.dynageo"],["geojson","application/geo+json"],["gex","application/vnd.geometry-explorer"],["ggb","application/vnd.geogebra.file"],["ggt","application/vnd.geogebra.tool"],["ghf","application/vnd.groove-help"],["gif","image/gif"],["gim","application/vnd.groove-identity-message"],["glb","model/gltf-binary"],["gltf","model/gltf+json"],["gml","application/gml+xml"],["gmx","application/vnd.gmx"],["gnumeric","application/x-gnumeric"],["gpg","application/gpg-keys"],["gph","application/vnd.flographit"],["gpx","application/gpx+xml"],["gqf","application/vnd.grafeq"],["gqs","application/vnd.grafeq"],["gram","application/srgs"],["gramps","application/x-gramps-xml"],["gre","application/vnd.geometry-explorer"],["grv","application/vnd.groove-injector"],["grxml","application/srgs+xml"],["gsf","application/x-font-ghostscript"],["gsheet","application/vnd.google-apps.spreadsheet"],["gslides","application/vnd.google-apps.presentation"],["gtar","application/x-gtar"],["gtm","application/vnd.groove-tool-message"],["gtw","model/vnd.gtw"],["gv","text/vnd.graphviz"],["gxf","application/gxf"],["gxt","application/vnd.geonext"],["gz","application/gzip"],["gzip","application/gzip"],["h","text/x-c"],["h261","video/h261"],["h263","video/h263"],["h264","video/h264"],["hal","application/vnd.hal+xml"],["hbci","application/vnd.hbci"],["hbs","text/x-handlebars-template"],["hdd","application/x-virtualbox-hdd"],["hdf","application/x-hdf"],["heic","image/heic"],["heics","image/heic-sequence"],["heif","image/heif"],["heifs","image/heif-sequence"],["hej2","image/hej2k"],["held","application/atsc-held+xml"],["hh","text/x-c"],["hjson","application/hjson"],["hlp","application/winhlp"],["hpgl","application/vnd.hp-hpgl"],["hpid","application/vnd.hp-hpid"],["hps","application/vnd.hp-hps"],["hqx","application/mac-binhex40"],["hsj2","image/hsj2"],["htc","text/x-component"],["htke","application/vnd.kenameaapp"],["htm","text/html"],["html","text/html"],["hvd","application/vnd.yamaha.hv-dic"],["hvp","application/vnd.yamaha.hv-voice"],["hvs","application/vnd.yamaha.hv-script"],["i2g","application/vnd.intergeo"],["icc","application/vnd.iccprofile"],["ice","x-conference/x-cooltalk"],["icm","application/vnd.iccprofile"],["ico","image/x-icon"],["ics","text/calendar"],["ief","image/ief"],["ifb","text/calendar"],["ifm","application/vnd.shana.informed.formdata"],["iges","model/iges"],["igl","application/vnd.igloader"],["igm","application/vnd.insors.igm"],["igs","model/iges"],["igx","application/vnd.micrografx.igx"],["iif","application/vnd.shana.informed.interchange"],["img","application/octet-stream"],["imp","application/vnd.accpac.simply.imp"],["ims","application/vnd.ms-ims"],["in","text/plain"],["ini","text/plain"],["ink","application/inkml+xml"],["inkml","application/inkml+xml"],["install","application/x-install-instructions"],["iota","application/vnd.astraea-software.iota"],["ipfix","application/ipfix"],["ipk","application/vnd.shana.informed.package"],["irm","application/vnd.ibm.rights-management"],["irp","application/vnd.irepository.package+xml"],["iso","application/x-iso9660-image"],["itp","application/vnd.shana.informed.formtemplate"],["its","application/its+xml"],["ivp","application/vnd.immervision-ivp"],["ivu","application/vnd.immervision-ivu"],["jad","text/vnd.sun.j2me.app-descriptor"],["jade","text/jade"],["jam","application/vnd.jam"],["jar","application/java-archive"],["jardiff","application/x-java-archive-diff"],["java","text/x-java-source"],["jhc","image/jphc"],["jisp","application/vnd.jisp"],["jls","image/jls"],["jlt","application/vnd.hp-jlyt"],["jng","image/x-jng"],["jnlp","application/x-java-jnlp-file"],["joda","application/vnd.joost.joda-archive"],["jp2","image/jp2"],["jpe","image/jpeg"],["jpeg","image/jpeg"],["jpf","image/jpx"],["jpg","image/jpeg"],["jpg2","image/jp2"],["jpgm","video/jpm"],["jpgv","video/jpeg"],["jph","image/jph"],["jpm","video/jpm"],["jpx","image/jpx"],["js","application/javascript"],["json","application/json"],["json5","application/json5"],["jsonld","application/ld+json"],["jsonl","application/jsonl"],["jsonml","application/jsonml+json"],["jsx","text/jsx"],["jxr","image/jxr"],["jxra","image/jxra"],["jxrs","image/jxrs"],["jxs","image/jxs"],["jxsc","image/jxsc"],["jxsi","image/jxsi"],["jxss","image/jxss"],["kar","audio/midi"],["karbon","application/vnd.kde.karbon"],["kdb","application/octet-stream"],["kdbx","application/x-keepass2"],["key","application/x-iwork-keynote-sffkey"],["kfo","application/vnd.kde.kformula"],["kia","application/vnd.kidspiration"],["kml","application/vnd.google-earth.kml+xml"],["kmz","application/vnd.google-earth.kmz"],["kne","application/vnd.kinar"],["knp","application/vnd.kinar"],["kon","application/vnd.kde.kontour"],["kpr","application/vnd.kde.kpresenter"],["kpt","application/vnd.kde.kpresenter"],["kpxx","application/vnd.ds-keypoint"],["ksp","application/vnd.kde.kspread"],["ktr","application/vnd.kahootz"],["ktx","image/ktx"],["ktx2","image/ktx2"],["ktz","application/vnd.kahootz"],["kwd","application/vnd.kde.kword"],["kwt","application/vnd.kde.kword"],["lasxml","application/vnd.las.las+xml"],["latex","application/x-latex"],["lbd","application/vnd.llamagraphics.life-balance.desktop"],["lbe","application/vnd.llamagraphics.life-balance.exchange+xml"],["les","application/vnd.hhe.lesson-player"],["less","text/less"],["lgr","application/lgr+xml"],["lha","application/octet-stream"],["link66","application/vnd.route66.link66+xml"],["list","text/plain"],["list3820","application/vnd.ibm.modcap"],["listafp","application/vnd.ibm.modcap"],["litcoffee","text/coffeescript"],["lnk","application/x-ms-shortcut"],["log","text/plain"],["lostxml","application/lost+xml"],["lrf","application/octet-stream"],["lrm","application/vnd.ms-lrm"],["ltf","application/vnd.frogans.ltf"],["lua","text/x-lua"],["luac","application/x-lua-bytecode"],["lvp","audio/vnd.lucent.voice"],["lwp","application/vnd.lotus-wordpro"],["lzh","application/octet-stream"],["m1v","video/mpeg"],["m2a","audio/mpeg"],["m2v","video/mpeg"],["m3a","audio/mpeg"],["m3u","text/plain"],["m3u8","application/vnd.apple.mpegurl"],["m4a","audio/x-m4a"],["m4p","application/mp4"],["m4s","video/iso.segment"],["m4u","application/vnd.mpegurl"],["m4v","video/x-m4v"],["m13","application/x-msmediaview"],["m14","application/x-msmediaview"],["m21","application/mp21"],["ma","application/mathematica"],["mads","application/mads+xml"],["maei","application/mmt-aei+xml"],["mag","application/vnd.ecowin.chart"],["maker","application/vnd.framemaker"],["man","text/troff"],["manifest","text/cache-manifest"],["map","application/json"],["mar","application/octet-stream"],["markdown","text/markdown"],["mathml","application/mathml+xml"],["mb","application/mathematica"],["mbk","application/vnd.mobius.mbk"],["mbox","application/mbox"],["mc1","application/vnd.medcalcdata"],["mcd","application/vnd.mcd"],["mcurl","text/vnd.curl.mcurl"],["md","text/markdown"],["mdb","application/x-msaccess"],["mdi","image/vnd.ms-modi"],["mdx","text/mdx"],["me","text/troff"],["mesh","model/mesh"],["meta4","application/metalink4+xml"],["metalink","application/metalink+xml"],["mets","application/mets+xml"],["mfm","application/vnd.mfmp"],["mft","application/rpki-manifest"],["mgp","application/vnd.osgeo.mapguide.package"],["mgz","application/vnd.proteus.magazine"],["mid","audio/midi"],["midi","audio/midi"],["mie","application/x-mie"],["mif","application/vnd.mif"],["mime","message/rfc822"],["mj2","video/mj2"],["mjp2","video/mj2"],["mjs","application/javascript"],["mk3d","video/x-matroska"],["mka","audio/x-matroska"],["mkd","text/x-markdown"],["mks","video/x-matroska"],["mkv","video/x-matroska"],["mlp","application/vnd.dolby.mlp"],["mmd","application/vnd.chipnuts.karaoke-mmd"],["mmf","application/vnd.smaf"],["mml","text/mathml"],["mmr","image/vnd.fujixerox.edmics-mmr"],["mng","video/x-mng"],["mny","application/x-msmoney"],["mobi","application/x-mobipocket-ebook"],["mods","application/mods+xml"],["mov","video/quicktime"],["movie","video/x-sgi-movie"],["mp2","audio/mpeg"],["mp2a","audio/mpeg"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mp4a","audio/mp4"],["mp4s","application/mp4"],["mp4v","video/mp4"],["mp21","application/mp21"],["mpc","application/vnd.mophun.certificate"],["mpd","application/dash+xml"],["mpe","video/mpeg"],["mpeg","video/mpeg"],["mpg","video/mpeg"],["mpg4","video/mp4"],["mpga","audio/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["mpm","application/vnd.blueice.multipass"],["mpn","application/vnd.mophun.application"],["mpp","application/vnd.ms-project"],["mpt","application/vnd.ms-project"],["mpy","application/vnd.ibm.minipay"],["mqy","application/vnd.mobius.mqy"],["mrc","application/marc"],["mrcx","application/marcxml+xml"],["ms","text/troff"],["mscml","application/mediaservercontrol+xml"],["mseed","application/vnd.fdsn.mseed"],["mseq","application/vnd.mseq"],["msf","application/vnd.epson.msf"],["msg","application/vnd.ms-outlook"],["msh","model/mesh"],["msi","application/x-msdownload"],["msl","application/vnd.mobius.msl"],["msm","application/octet-stream"],["msp","application/octet-stream"],["msty","application/vnd.muvee.style"],["mtl","model/mtl"],["mts","model/vnd.mts"],["mus","application/vnd.musician"],["musd","application/mmt-usd+xml"],["musicxml","application/vnd.recordare.musicxml+xml"],["mvb","application/x-msmediaview"],["mvt","application/vnd.mapbox-vector-tile"],["mwf","application/vnd.mfer"],["mxf","application/mxf"],["mxl","application/vnd.recordare.musicxml"],["mxmf","audio/mobile-xmf"],["mxml","application/xv+xml"],["mxs","application/vnd.triscape.mxs"],["mxu","video/vnd.mpegurl"],["n-gage","application/vnd.nokia.n-gage.symbian.install"],["n3","text/n3"],["nb","application/mathematica"],["nbp","application/vnd.wolfram.player"],["nc","application/x-netcdf"],["ncx","application/x-dtbncx+xml"],["nfo","text/x-nfo"],["ngdat","application/vnd.nokia.n-gage.data"],["nitf","application/vnd.nitf"],["nlu","application/vnd.neurolanguage.nlu"],["nml","application/vnd.enliven"],["nnd","application/vnd.noblenet-directory"],["nns","application/vnd.noblenet-sealer"],["nnw","application/vnd.noblenet-web"],["npx","image/vnd.net-fpx"],["nq","application/n-quads"],["nsc","application/x-conference"],["nsf","application/vnd.lotus-notes"],["nt","application/n-triples"],["ntf","application/vnd.nitf"],["numbers","application/x-iwork-numbers-sffnumbers"],["nzb","application/x-nzb"],["oa2","application/vnd.fujitsu.oasys2"],["oa3","application/vnd.fujitsu.oasys3"],["oas","application/vnd.fujitsu.oasys"],["obd","application/x-msbinder"],["obgx","application/vnd.openblox.game+xml"],["obj","model/obj"],["oda","application/oda"],["odb","application/vnd.oasis.opendocument.database"],["odc","application/vnd.oasis.opendocument.chart"],["odf","application/vnd.oasis.opendocument.formula"],["odft","application/vnd.oasis.opendocument.formula-template"],["odg","application/vnd.oasis.opendocument.graphics"],["odi","application/vnd.oasis.opendocument.image"],["odm","application/vnd.oasis.opendocument.text-master"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogex","model/vnd.opengex"],["ogg","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["omdoc","application/omdoc+xml"],["onepkg","application/onenote"],["onetmp","application/onenote"],["onetoc","application/onenote"],["onetoc2","application/onenote"],["opf","application/oebps-package+xml"],["opml","text/x-opml"],["oprc","application/vnd.palm"],["opus","audio/ogg"],["org","text/x-org"],["osf","application/vnd.yamaha.openscoreformat"],["osfpvg","application/vnd.yamaha.openscoreformat.osfpvg+xml"],["osm","application/vnd.openstreetmap.data+xml"],["otc","application/vnd.oasis.opendocument.chart-template"],["otf","font/otf"],["otg","application/vnd.oasis.opendocument.graphics-template"],["oth","application/vnd.oasis.opendocument.text-web"],["oti","application/vnd.oasis.opendocument.image-template"],["otp","application/vnd.oasis.opendocument.presentation-template"],["ots","application/vnd.oasis.opendocument.spreadsheet-template"],["ott","application/vnd.oasis.opendocument.text-template"],["ova","application/x-virtualbox-ova"],["ovf","application/x-virtualbox-ovf"],["owl","application/rdf+xml"],["oxps","application/oxps"],["oxt","application/vnd.openofficeorg.extension"],["p","text/x-pascal"],["p7a","application/x-pkcs7-signature"],["p7b","application/x-pkcs7-certificates"],["p7c","application/pkcs7-mime"],["p7m","application/pkcs7-mime"],["p7r","application/x-pkcs7-certreqresp"],["p7s","application/pkcs7-signature"],["p8","application/pkcs8"],["p10","application/x-pkcs10"],["p12","application/x-pkcs12"],["pac","application/x-ns-proxy-autoconfig"],["pages","application/x-iwork-pages-sffpages"],["pas","text/x-pascal"],["paw","application/vnd.pawaafile"],["pbd","application/vnd.powerbuilder6"],["pbm","image/x-portable-bitmap"],["pcap","application/vnd.tcpdump.pcap"],["pcf","application/x-font-pcf"],["pcl","application/vnd.hp-pcl"],["pclxl","application/vnd.hp-pclxl"],["pct","image/x-pict"],["pcurl","application/vnd.curl.pcurl"],["pcx","image/x-pcx"],["pdb","application/x-pilot"],["pde","text/x-processing"],["pdf","application/pdf"],["pem","application/x-x509-user-cert"],["pfa","application/x-font-type1"],["pfb","application/x-font-type1"],["pfm","application/x-font-type1"],["pfr","application/font-tdpfr"],["pfx","application/x-pkcs12"],["pgm","image/x-portable-graymap"],["pgn","application/x-chess-pgn"],["pgp","application/pgp"],["php","application/x-httpd-php"],["php3","application/x-httpd-php"],["php4","application/x-httpd-php"],["phps","application/x-httpd-php-source"],["phtml","application/x-httpd-php"],["pic","image/x-pict"],["pkg","application/octet-stream"],["pki","application/pkixcmp"],["pkipath","application/pkix-pkipath"],["pkpass","application/vnd.apple.pkpass"],["pl","application/x-perl"],["plb","application/vnd.3gpp.pic-bw-large"],["plc","application/vnd.mobius.plc"],["plf","application/vnd.pocketlearn"],["pls","application/pls+xml"],["pm","application/x-perl"],["pml","application/vnd.ctc-posml"],["png","image/png"],["pnm","image/x-portable-anymap"],["portpkg","application/vnd.macports.portpkg"],["pot","application/vnd.ms-powerpoint"],["potm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"],["potx","application/vnd.openxmlformats-officedocument.presentationml.template"],["ppa","application/vnd.ms-powerpoint"],["ppam","application/vnd.ms-powerpoint.addin.macroEnabled.12"],["ppd","application/vnd.cups-ppd"],["ppm","image/x-portable-pixmap"],["pps","application/vnd.ms-powerpoint"],["ppsm","application/vnd.ms-powerpoint.slideshow.macroEnabled.12"],["ppsx","application/vnd.openxmlformats-officedocument.presentationml.slideshow"],["ppt","application/powerpoint"],["pptm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["pqa","application/vnd.palm"],["prc","application/x-pilot"],["pre","application/vnd.lotus-freelance"],["prf","application/pics-rules"],["provx","application/provenance+xml"],["ps","application/postscript"],["psb","application/vnd.3gpp.pic-bw-small"],["psd","application/x-photoshop"],["psf","application/x-font-linux-psf"],["pskcxml","application/pskc+xml"],["pti","image/prs.pti"],["ptid","application/vnd.pvi.ptid1"],["pub","application/x-mspublisher"],["pvb","application/vnd.3gpp.pic-bw-var"],["pwn","application/vnd.3m.post-it-notes"],["pya","audio/vnd.ms-playready.media.pya"],["pyv","video/vnd.ms-playready.media.pyv"],["qam","application/vnd.epson.quickanime"],["qbo","application/vnd.intu.qbo"],["qfx","application/vnd.intu.qfx"],["qps","application/vnd.publishare-delta-tree"],["qt","video/quicktime"],["qwd","application/vnd.quark.quarkxpress"],["qwt","application/vnd.quark.quarkxpress"],["qxb","application/vnd.quark.quarkxpress"],["qxd","application/vnd.quark.quarkxpress"],["qxl","application/vnd.quark.quarkxpress"],["qxt","application/vnd.quark.quarkxpress"],["ra","audio/x-realaudio"],["ram","audio/x-pn-realaudio"],["raml","application/raml+yaml"],["rapd","application/route-apd+xml"],["rar","application/x-rar"],["ras","image/x-cmu-raster"],["rcprofile","application/vnd.ipunplugged.rcprofile"],["rdf","application/rdf+xml"],["rdz","application/vnd.data-vision.rdz"],["relo","application/p2p-overlay+xml"],["rep","application/vnd.businessobjects"],["res","application/x-dtbresource+xml"],["rgb","image/x-rgb"],["rif","application/reginfo+xml"],["rip","audio/vnd.rip"],["ris","application/x-research-info-systems"],["rl","application/resource-lists+xml"],["rlc","image/vnd.fujixerox.edmics-rlc"],["rld","application/resource-lists-diff+xml"],["rm","audio/x-pn-realaudio"],["rmi","audio/midi"],["rmp","audio/x-pn-realaudio-plugin"],["rms","application/vnd.jcp.javame.midlet-rms"],["rmvb","application/vnd.rn-realmedia-vbr"],["rnc","application/relax-ng-compact-syntax"],["rng","application/xml"],["roa","application/rpki-roa"],["roff","text/troff"],["rp9","application/vnd.cloanto.rp9"],["rpm","audio/x-pn-realaudio-plugin"],["rpss","application/vnd.nokia.radio-presets"],["rpst","application/vnd.nokia.radio-preset"],["rq","application/sparql-query"],["rs","application/rls-services+xml"],["rsa","application/x-pkcs7"],["rsat","application/atsc-rsat+xml"],["rsd","application/rsd+xml"],["rsheet","application/urc-ressheet+xml"],["rss","application/rss+xml"],["rtf","text/rtf"],["rtx","text/richtext"],["run","application/x-makeself"],["rusd","application/route-usd+xml"],["rv","video/vnd.rn-realvideo"],["s","text/x-asm"],["s3m","audio/s3m"],["saf","application/vnd.yamaha.smaf-audio"],["sass","text/x-sass"],["sbml","application/sbml+xml"],["sc","application/vnd.ibm.secure-container"],["scd","application/x-msschedule"],["scm","application/vnd.lotus-screencam"],["scq","application/scvp-cv-request"],["scs","application/scvp-cv-response"],["scss","text/x-scss"],["scurl","text/vnd.curl.scurl"],["sda","application/vnd.stardivision.draw"],["sdc","application/vnd.stardivision.calc"],["sdd","application/vnd.stardivision.impress"],["sdkd","application/vnd.solent.sdkm+xml"],["sdkm","application/vnd.solent.sdkm+xml"],["sdp","application/sdp"],["sdw","application/vnd.stardivision.writer"],["sea","application/octet-stream"],["see","application/vnd.seemail"],["seed","application/vnd.fdsn.seed"],["sema","application/vnd.sema"],["semd","application/vnd.semd"],["semf","application/vnd.semf"],["senmlx","application/senml+xml"],["sensmlx","application/sensml+xml"],["ser","application/java-serialized-object"],["setpay","application/set-payment-initiation"],["setreg","application/set-registration-initiation"],["sfd-hdstx","application/vnd.hydrostatix.sof-data"],["sfs","application/vnd.spotfire.sfs"],["sfv","text/x-sfv"],["sgi","image/sgi"],["sgl","application/vnd.stardivision.writer-global"],["sgm","text/sgml"],["sgml","text/sgml"],["sh","application/x-sh"],["shar","application/x-shar"],["shex","text/shex"],["shf","application/shf+xml"],["shtml","text/html"],["sid","image/x-mrsid-image"],["sieve","application/sieve"],["sig","application/pgp-signature"],["sil","audio/silk"],["silo","model/mesh"],["sis","application/vnd.symbian.install"],["sisx","application/vnd.symbian.install"],["sit","application/x-stuffit"],["sitx","application/x-stuffitx"],["siv","application/sieve"],["skd","application/vnd.koan"],["skm","application/vnd.koan"],["skp","application/vnd.koan"],["skt","application/vnd.koan"],["sldm","application/vnd.ms-powerpoint.slide.macroenabled.12"],["sldx","application/vnd.openxmlformats-officedocument.presentationml.slide"],["slim","text/slim"],["slm","text/slim"],["sls","application/route-s-tsid+xml"],["slt","application/vnd.epson.salt"],["sm","application/vnd.stepmania.stepchart"],["smf","application/vnd.stardivision.math"],["smi","application/smil"],["smil","application/smil"],["smv","video/x-smv"],["smzip","application/vnd.stepmania.package"],["snd","audio/basic"],["snf","application/x-font-snf"],["so","application/octet-stream"],["spc","application/x-pkcs7-certificates"],["spdx","text/spdx"],["spf","application/vnd.yamaha.smaf-phrase"],["spl","application/x-futuresplash"],["spot","text/vnd.in3d.spot"],["spp","application/scvp-vp-response"],["spq","application/scvp-vp-request"],["spx","audio/ogg"],["sql","application/x-sql"],["src","application/x-wais-source"],["srt","application/x-subrip"],["sru","application/sru+xml"],["srx","application/sparql-results+xml"],["ssdl","application/ssdl+xml"],["sse","application/vnd.kodak-descriptor"],["ssf","application/vnd.epson.ssf"],["ssml","application/ssml+xml"],["sst","application/octet-stream"],["st","application/vnd.sailingtracker.track"],["stc","application/vnd.sun.xml.calc.template"],["std","application/vnd.sun.xml.draw.template"],["stf","application/vnd.wt.stf"],["sti","application/vnd.sun.xml.impress.template"],["stk","application/hyperstudio"],["stl","model/stl"],["stpx","model/step+xml"],["stpxz","model/step-xml+zip"],["stpz","model/step+zip"],["str","application/vnd.pg.format"],["stw","application/vnd.sun.xml.writer.template"],["styl","text/stylus"],["stylus","text/stylus"],["sub","text/vnd.dvb.subtitle"],["sus","application/vnd.sus-calendar"],["susp","application/vnd.sus-calendar"],["sv4cpio","application/x-sv4cpio"],["sv4crc","application/x-sv4crc"],["svc","application/vnd.dvb.service"],["svd","application/vnd.svd"],["svg","image/svg+xml"],["svgz","image/svg+xml"],["swa","application/x-director"],["swf","application/x-shockwave-flash"],["swi","application/vnd.aristanetworks.swi"],["swidtag","application/swid+xml"],["sxc","application/vnd.sun.xml.calc"],["sxd","application/vnd.sun.xml.draw"],["sxg","application/vnd.sun.xml.writer.global"],["sxi","application/vnd.sun.xml.impress"],["sxm","application/vnd.sun.xml.math"],["sxw","application/vnd.sun.xml.writer"],["t","text/troff"],["t3","application/x-t3vm-image"],["t38","image/t38"],["taglet","application/vnd.mynfc"],["tao","application/vnd.tao.intent-module-archive"],["tap","image/vnd.tencent.tap"],["tar","application/x-tar"],["tcap","application/vnd.3gpp2.tcap"],["tcl","application/x-tcl"],["td","application/urc-targetdesc+xml"],["teacher","application/vnd.smart.teacher"],["tei","application/tei+xml"],["teicorpus","application/tei+xml"],["tex","application/x-tex"],["texi","application/x-texinfo"],["texinfo","application/x-texinfo"],["text","text/plain"],["tfi","application/thraud+xml"],["tfm","application/x-tex-tfm"],["tfx","image/tiff-fx"],["tga","image/x-tga"],["tgz","application/x-tar"],["thmx","application/vnd.ms-officetheme"],["tif","image/tiff"],["tiff","image/tiff"],["tk","application/x-tcl"],["tmo","application/vnd.tmobile-livetv"],["toml","application/toml"],["torrent","application/x-bittorrent"],["tpl","application/vnd.groove-tool-template"],["tpt","application/vnd.trid.tpt"],["tr","text/troff"],["tra","application/vnd.trueapp"],["trig","application/trig"],["trm","application/x-msterminal"],["ts","video/mp2t"],["tsd","application/timestamped-data"],["tsv","text/tab-separated-values"],["ttc","font/collection"],["ttf","font/ttf"],["ttl","text/turtle"],["ttml","application/ttml+xml"],["twd","application/vnd.simtech-mindmapper"],["twds","application/vnd.simtech-mindmapper"],["txd","application/vnd.genomatix.tuxedo"],["txf","application/vnd.mobius.txf"],["txt","text/plain"],["u8dsn","message/global-delivery-status"],["u8hdr","message/global-headers"],["u8mdn","message/global-disposition-notification"],["u8msg","message/global"],["u32","application/x-authorware-bin"],["ubj","application/ubjson"],["udeb","application/x-debian-package"],["ufd","application/vnd.ufdl"],["ufdl","application/vnd.ufdl"],["ulx","application/x-glulx"],["umj","application/vnd.umajin"],["unityweb","application/vnd.unity"],["uoml","application/vnd.uoml+xml"],["uri","text/uri-list"],["uris","text/uri-list"],["urls","text/uri-list"],["usdz","model/vnd.usdz+zip"],["ustar","application/x-ustar"],["utz","application/vnd.uiq.theme"],["uu","text/x-uuencode"],["uva","audio/vnd.dece.audio"],["uvd","application/vnd.dece.data"],["uvf","application/vnd.dece.data"],["uvg","image/vnd.dece.graphic"],["uvh","video/vnd.dece.hd"],["uvi","image/vnd.dece.graphic"],["uvm","video/vnd.dece.mobile"],["uvp","video/vnd.dece.pd"],["uvs","video/vnd.dece.sd"],["uvt","application/vnd.dece.ttml+xml"],["uvu","video/vnd.uvvu.mp4"],["uvv","video/vnd.dece.video"],["uvva","audio/vnd.dece.audio"],["uvvd","application/vnd.dece.data"],["uvvf","application/vnd.dece.data"],["uvvg","image/vnd.dece.graphic"],["uvvh","video/vnd.dece.hd"],["uvvi","image/vnd.dece.graphic"],["uvvm","video/vnd.dece.mobile"],["uvvp","video/vnd.dece.pd"],["uvvs","video/vnd.dece.sd"],["uvvt","application/vnd.dece.ttml+xml"],["uvvu","video/vnd.uvvu.mp4"],["uvvv","video/vnd.dece.video"],["uvvx","application/vnd.dece.unspecified"],["uvvz","application/vnd.dece.zip"],["uvx","application/vnd.dece.unspecified"],["uvz","application/vnd.dece.zip"],["vbox","application/x-virtualbox-vbox"],["vbox-extpack","application/x-virtualbox-vbox-extpack"],["vcard","text/vcard"],["vcd","application/x-cdlink"],["vcf","text/x-vcard"],["vcg","application/vnd.groove-vcard"],["vcs","text/x-vcalendar"],["vcx","application/vnd.vcx"],["vdi","application/x-virtualbox-vdi"],["vds","model/vnd.sap.vds"],["vhd","application/x-virtualbox-vhd"],["vis","application/vnd.visionary"],["viv","video/vnd.vivo"],["vlc","application/videolan"],["vmdk","application/x-virtualbox-vmdk"],["vob","video/x-ms-vob"],["vor","application/vnd.stardivision.writer"],["vox","application/x-authorware-bin"],["vrml","model/vrml"],["vsd","application/vnd.visio"],["vsf","application/vnd.vsf"],["vss","application/vnd.visio"],["vst","application/vnd.visio"],["vsw","application/vnd.visio"],["vtf","image/vnd.valve.source.texture"],["vtt","text/vtt"],["vtu","model/vnd.vtu"],["vxml","application/voicexml+xml"],["w3d","application/x-director"],["wad","application/x-doom"],["wadl","application/vnd.sun.wadl+xml"],["war","application/java-archive"],["wasm","application/wasm"],["wav","audio/x-wav"],["wax","audio/x-ms-wax"],["wbmp","image/vnd.wap.wbmp"],["wbs","application/vnd.criticaltools.wbs+xml"],["wbxml","application/wbxml"],["wcm","application/vnd.ms-works"],["wdb","application/vnd.ms-works"],["wdp","image/vnd.ms-photo"],["weba","audio/webm"],["webapp","application/x-web-app-manifest+json"],["webm","video/webm"],["webmanifest","application/manifest+json"],["webp","image/webp"],["wg","application/vnd.pmi.widget"],["wgt","application/widget"],["wks","application/vnd.ms-works"],["wm","video/x-ms-wm"],["wma","audio/x-ms-wma"],["wmd","application/x-ms-wmd"],["wmf","image/wmf"],["wml","text/vnd.wap.wml"],["wmlc","application/wmlc"],["wmls","text/vnd.wap.wmlscript"],["wmlsc","application/vnd.wap.wmlscriptc"],["wmv","video/x-ms-wmv"],["wmx","video/x-ms-wmx"],["wmz","application/x-msmetafile"],["woff","font/woff"],["woff2","font/woff2"],["word","application/msword"],["wpd","application/vnd.wordperfect"],["wpl","application/vnd.ms-wpl"],["wps","application/vnd.ms-works"],["wqd","application/vnd.wqd"],["wri","application/x-mswrite"],["wrl","model/vrml"],["wsc","message/vnd.wfa.wsc"],["wsdl","application/wsdl+xml"],["wspolicy","application/wspolicy+xml"],["wtb","application/vnd.webturbo"],["wvx","video/x-ms-wvx"],["x3d","model/x3d+xml"],["x3db","model/x3d+fastinfoset"],["x3dbz","model/x3d+binary"],["x3dv","model/x3d-vrml"],["x3dvz","model/x3d+vrml"],["x3dz","model/x3d+xml"],["x32","application/x-authorware-bin"],["x_b","model/vnd.parasolid.transmit.binary"],["x_t","model/vnd.parasolid.transmit.text"],["xaml","application/xaml+xml"],["xap","application/x-silverlight-app"],["xar","application/vnd.xara"],["xav","application/xcap-att+xml"],["xbap","application/x-ms-xbap"],["xbd","application/vnd.fujixerox.docuworks.binder"],["xbm","image/x-xbitmap"],["xca","application/xcap-caps+xml"],["xcs","application/calendar+xml"],["xdf","application/xcap-diff+xml"],["xdm","application/vnd.syncml.dm+xml"],["xdp","application/vnd.adobe.xdp+xml"],["xdssc","application/dssc+xml"],["xdw","application/vnd.fujixerox.docuworks"],["xel","application/xcap-el+xml"],["xenc","application/xenc+xml"],["xer","application/patch-ops-error+xml"],["xfdf","application/vnd.adobe.xfdf"],["xfdl","application/vnd.xfdl"],["xht","application/xhtml+xml"],["xhtml","application/xhtml+xml"],["xhvml","application/xv+xml"],["xif","image/vnd.xiff"],["xl","application/excel"],["xla","application/vnd.ms-excel"],["xlam","application/vnd.ms-excel.addin.macroEnabled.12"],["xlc","application/vnd.ms-excel"],["xlf","application/xliff+xml"],["xlm","application/vnd.ms-excel"],["xls","application/vnd.ms-excel"],["xlsb","application/vnd.ms-excel.sheet.binary.macroEnabled.12"],["xlsm","application/vnd.ms-excel.sheet.macroEnabled.12"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xlt","application/vnd.ms-excel"],["xltm","application/vnd.ms-excel.template.macroEnabled.12"],["xltx","application/vnd.openxmlformats-officedocument.spreadsheetml.template"],["xlw","application/vnd.ms-excel"],["xm","audio/xm"],["xml","application/xml"],["xns","application/xcap-ns+xml"],["xo","application/vnd.olpc-sugar"],["xop","application/xop+xml"],["xpi","application/x-xpinstall"],["xpl","application/xproc+xml"],["xpm","image/x-xpixmap"],["xpr","application/vnd.is-xpr"],["xps","application/vnd.ms-xpsdocument"],["xpw","application/vnd.intercon.formnet"],["xpx","application/vnd.intercon.formnet"],["xsd","application/xml"],["xsl","application/xml"],["xslt","application/xslt+xml"],["xsm","application/vnd.syncml+xml"],["xspf","application/xspf+xml"],["xul","application/vnd.mozilla.xul+xml"],["xvm","application/xv+xml"],["xvml","application/xv+xml"],["xwd","image/x-xwindowdump"],["xyz","chemical/x-xyz"],["xz","application/x-xz"],["yaml","text/yaml"],["yang","application/yang"],["yin","application/yin+xml"],["yml","text/yaml"],["ymp","text/x-suse-ymp"],["z","application/x-compress"],["z1","application/x-zmachine"],["z2","application/x-zmachine"],["z3","application/x-zmachine"],["z4","application/x-zmachine"],["z5","application/x-zmachine"],["z6","application/x-zmachine"],["z7","application/x-zmachine"],["z8","application/x-zmachine"],["zaz","application/vnd.zzazz.deck+xml"],["zip","application/zip"],["zir","application/vnd.zul"],["zirz","application/vnd.zul"],["zmm","application/vnd.handheld-entertainment+xml"],["zsh","text/x-scriptzsh"]]);function Ql(e,t,n){const r=jnt(e),{webkitRelativePath:o}=e,s=typeof t=="string"?t:typeof o=="string"&&o.length>0?o:`./${e.name}`;return typeof r.path!="string"&&sC(r,"path",s),sC(r,"relativePath",s),r}function jnt(e){const{name:t}=e;if(t&&t.lastIndexOf(".")!==-1&&!e.type){const r=t.split(".").pop().toLowerCase(),o=Mnt.get(r);o&&Object.defineProperty(e,"type",{value:o,writable:!1,configurable:!1,enumerable:!0})}return e}function sC(e,t,n){Object.defineProperty(e,t,{value:n,writable:!1,configurable:!1,enumerable:!0})}const Int=[".DS_Store","Thumbs.db"];function znt(e){return yi(this,void 0,void 0,function*(){return Sf(e)&&Rnt(e.dataTransfer)?Bnt(e.dataTransfer,e.type):Pnt(e)?Lnt(e):Array.isArray(e)&&e.every(t=>"getFile"in t&&typeof t.getFile=="function")?Fnt(e):[]})}function Rnt(e){return Sf(e)}function Pnt(e){return Sf(e)&&Sf(e.target)}function Sf(e){return typeof e=="object"&&e!==null}function Lnt(e){return Ny(e.target.files).map(t=>Ql(t))}function Fnt(e){return yi(this,void 0,void 0,function*(){return(yield Promise.all(e.map(n=>n.getFile()))).map(n=>Ql(n))})}function Bnt(e,t){return yi(this,void 0,void 0,function*(){if(e.items){const n=Ny(e.items).filter(o=>o.kind==="file");if(t!=="drop")return n;const r=yield Promise.all(n.map(Wnt));return aC(s3(r))}return aC(Ny(e.files).map(n=>Ql(n)))})}function aC(e){return e.filter(t=>Int.indexOf(t.name)===-1)}function Ny(e){if(e===null)return[];const t=[];for(let n=0;n[...t,...Array.isArray(n)?s3(n):[n]],[])}function iC(e,t){var n;if(typeof e.getAsFileSystemHandle=="function")return e.getAsFileSystemHandle().then(s=>yi(this,void 0,void 0,function*(){const a=yield s.getFile();return a.handle=s,Ql(a)}));const r=e.getAsFile();if(!r)return Promise.reject(`${e} is not a File`);const o=Ql(r,(n=t==null?void 0:t.fullPath)!==null&&n!==void 0?n:void 0);return Promise.resolve(o)}function Hnt(e){return yi(this,void 0,void 0,function*(){return e.isDirectory?a3(e):Unt(e)})}function a3(e){const t=e.createReader();return new Promise((n,r)=>{const o=[];function s(){t.readEntries(a=>yi(this,void 0,void 0,function*(){if(a.length){const i=Promise.all(a.map(Hnt));o.push(i),s()}else try{const i=yield Promise.all(o);n(i)}catch(i){r(i)}}),a=>{r(a)})}s()})}function Unt(e){return yi(this,void 0,void 0,function*(){return new Promise((t,n)=>{e.file(r=>{const o=Ql(r,e.fullPath);t(o)},r=>{n(r)})})})}var k_=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(",");if(n.length===0)return!0;var r=e.name||"",o=(e.type||"").toLowerCase(),s=o.replace(/\/.*$/,"");return n.some(function(a){var i=a.trim().toLowerCase();return i.charAt(0)==="."?r.toLowerCase().endsWith(i):i.endsWith("/*")?s===i.replace(/\/.*$/,""):o===i})}return!0};function lC(e){return qnt(e)||Gnt(e)||l3(e)||Vnt()}function Vnt(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Gnt(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function qnt(e){if(Array.isArray(e))return My(e)}function cC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function dC(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);nn)return[!1,uC(n)];if(e.sizen)return[!1,uC(n)]}return[!0,null]}function Ma(e){return e!=null}function ort(e){var t=e.files,n=e.accept,r=e.minSize,o=e.maxSize,s=e.multiple,a=e.maxFiles,i=e.validator;return!s&&t.length>1||s&&a>=1&&t.length>a?!1:t.every(function(l){var d=c3(l,n),u=cu(d,1),c=u[0],h=d3(l,r,o),f=cu(h,1),g=f[0],_=i?i(l):null;return c&&g&&!_})}function xf(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function Ap(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,function(t){return t==="Files"||t==="application/x-moz-file"}):!!e.target&&!!e.target.files}function hC(e){e.preventDefault()}function srt(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function art(e){return e.indexOf("Edge/")!==-1}function irt(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return srt(e)||art(e)}function $o(){for(var e=arguments.length,t=new Array(e),n=0;n1?o-1:0),a=1;ae.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function krt(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,s;for(s=0;s=0)&&(n[o]=e[o]);return n}var ug=k.forwardRef(function(e,t){var n=e.children,r=kf(e,hrt),o=$rt(r),s=o.open,a=kf(o,frt);return k.useImperativeHandle(t,function(){return{open:s}},[s]),p.createElement(k.Fragment,null,n(Vt(Vt({},a),{},{open:s})))});ug.displayName="Dropzone";var f3={disabled:!1,getFilesFromEvent:znt,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!1,autoFocus:!1};ug.defaultProps=f3;ug.propTypes={children:P.func,accept:P.objectOf(P.arrayOf(P.string)),multiple:P.bool,preventDropOnDocument:P.bool,noClick:P.bool,noKeyboard:P.bool,noDrag:P.bool,noDragEventsBubbling:P.bool,minSize:P.number,maxSize:P.number,maxFiles:P.number,disabled:P.bool,getFilesFromEvent:P.func,onFileDialogCancel:P.func,onFileDialogOpen:P.func,useFsAccessApi:P.bool,autoFocus:P.bool,onDragEnter:P.func,onDragLeave:P.func,onDragOver:P.func,onDrop:P.func,onDropAccepted:P.func,onDropRejected:P.func,onError:P.func,validator:P.func};var zy={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function $rt(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=Vt(Vt({},f3),e),n=t.accept,r=t.disabled,o=t.getFilesFromEvent,s=t.maxSize,a=t.minSize,i=t.multiple,l=t.maxFiles,d=t.onDragEnter,u=t.onDragLeave,c=t.onDragOver,h=t.onDrop,f=t.onDropAccepted,g=t.onDropRejected,_=t.onFileDialogCancel,w=t.onFileDialogOpen,v=t.useFsAccessApi,b=t.autoFocus,y=t.preventDropOnDocument,S=t.noClick,$=t.noKeyboard,C=t.noDrag,T=t.noDragEventsBubbling,O=t.onError,D=t.validator,x=k.useMemo(function(){return drt(n)},[n]),A=k.useMemo(function(){return crt(n)},[n]),I=k.useMemo(function(){return typeof w=="function"?w:mC},[w]),z=k.useMemo(function(){return typeof _=="function"?_:mC},[_]),N=k.useRef(null),M=k.useRef(null),B=k.useReducer(Crt,zy),V=$_(B,2),R=V[0],F=V[1],q=R.isFocused,te=R.isFileDialogActive,oe=k.useRef(typeof window<"u"&&window.isSecureContext&&v&&lrt()),ve=function(){!oe.current&&te&&setTimeout(function(){if(M.current){var he=M.current.files;he.length||(F({type:"closeDialog"}),z())}},300)};k.useEffect(function(){return window.addEventListener("focus",ve,!1),function(){window.removeEventListener("focus",ve,!1)}},[M,te,z,oe]);var se=k.useRef([]),Te=function(he){N.current&&N.current.contains(he.target)||(he.preventDefault(),se.current=[])};k.useEffect(function(){return y&&(document.addEventListener("dragover",hC,!1),document.addEventListener("drop",Te,!1)),function(){y&&(document.removeEventListener("dragover",hC),document.removeEventListener("drop",Te))}},[N,y]),k.useEffect(function(){return!r&&b&&N.current&&N.current.focus(),function(){}},[N,b,r]);var xe=k.useCallback(function(K){O?O(K):console.error(K)},[O]),Be=k.useCallback(function(K){K.preventDefault(),K.persist(),qe(K),se.current=[].concat(_rt(se.current),[K.target]),Ap(K)&&Promise.resolve(o(K)).then(function(he){if(!(xf(K)&&!T)){var He=he.length,ke=He>0&&ort({files:he,accept:x,minSize:a,maxSize:s,multiple:i,maxFiles:l,validator:D}),Me=He>0&&!ke;F({isDragAccept:ke,isDragReject:Me,isDragActive:!0,type:"setDraggedFiles"}),d&&d(K)}}).catch(function(he){return xe(he)})},[o,d,xe,T,x,a,s,i,l,D]),Ue=k.useCallback(function(K){K.preventDefault(),K.persist(),qe(K);var he=Ap(K);if(he&&K.dataTransfer)try{K.dataTransfer.dropEffect="copy"}catch{}return he&&c&&c(K),!1},[c,T]),Ve=k.useCallback(function(K){K.preventDefault(),K.persist(),qe(K);var he=se.current.filter(function(ke){return N.current&&N.current.contains(ke)}),He=he.indexOf(K.target);He!==-1&&he.splice(He,1),se.current=he,!(he.length>0)&&(F({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),Ap(K)&&u&&u(K))},[N,u,T]),$e=k.useCallback(function(K,he){var He=[],ke=[];K.forEach(function(Me){var lt=c3(Me,x),Ut=$_(lt,2),De=Ut[0],ln=Ut[1],dr=d3(Me,a,s),ge=$_(dr,2),Q=ge[0],re=ge[1],Pe=D?D(Me):null;if(De&&Q&&!Pe)He.push(Me);else{var We=[ln,re];Pe&&(We=We.concat(Pe)),ke.push({file:Me,errors:We.filter(function(_t){return _t})})}}),(!i&&He.length>1||i&&l>=1&&He.length>l)&&(He.forEach(function(Me){ke.push({file:Me,errors:[rrt]})}),He.splice(0)),F({acceptedFiles:He,fileRejections:ke,type:"setFiles"}),h&&h(He,ke,he),ke.length>0&&g&&g(ke,he),He.length>0&&f&&f(He,he)},[F,i,x,a,s,l,h,f,g,D]),Oe=k.useCallback(function(K){K.preventDefault(),K.persist(),qe(K),se.current=[],Ap(K)&&Promise.resolve(o(K)).then(function(he){xf(K)&&!T||$e(he,K)}).catch(function(he){return xe(he)}),F({type:"reset"})},[o,$e,xe,T]),ye=k.useCallback(function(){if(oe.current){F({type:"openDialog"}),I();var K={multiple:i,types:A};window.showOpenFilePicker(K).then(function(he){return o(he)}).then(function(he){$e(he,null),F({type:"closeDialog"})}).catch(function(he){urt(he)?(z(he),F({type:"closeDialog"})):prt(he)?(oe.current=!1,M.current?(M.current.value=null,M.current.click()):xe(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no was provided."))):xe(he)});return}M.current&&(F({type:"openDialog"}),I(),M.current.value=null,M.current.click())},[F,I,z,v,$e,xe,A,i]),Ze=k.useCallback(function(K){!N.current||!N.current.isEqualNode(K.target)||(K.key===" "||K.key==="Enter"||K.keyCode===32||K.keyCode===13)&&(K.preventDefault(),ye())},[N,ye]),be=k.useCallback(function(){F({type:"focus"})},[]),Ie=k.useCallback(function(){F({type:"blur"})},[]),X=k.useCallback(function(){S||(irt()?setTimeout(ye,0):ye())},[S,ye]),ne=function(he){return r?null:he},Ee=function(he){return $?null:ne(he)},Ne=function(he){return C?null:ne(he)},qe=function(he){T&&he.stopPropagation()},Le=k.useMemo(function(){return function(){var K=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},he=K.refKey,He=he===void 0?"ref":he,ke=K.role,Me=K.onKeyDown,lt=K.onFocus,Ut=K.onBlur,De=K.onClick,ln=K.onDragEnter,dr=K.onDragOver,ge=K.onDragLeave,Q=K.onDrop,re=kf(K,mrt);return Vt(Vt(Iy({onKeyDown:Ee($o(Me,Ze)),onFocus:Ee($o(lt,be)),onBlur:Ee($o(Ut,Ie)),onClick:ne($o(De,X)),onDragEnter:Ne($o(ln,Be)),onDragOver:Ne($o(dr,Ue)),onDragLeave:Ne($o(ge,Ve)),onDrop:Ne($o(Q,Oe)),role:typeof ke=="string"&&ke!==""?ke:"presentation"},He,N),!r&&!$?{tabIndex:0}:{}),re)}},[N,Ze,be,Ie,X,Be,Ue,Ve,Oe,$,C,r]),Ht=k.useCallback(function(K){K.stopPropagation()},[]),pe=k.useMemo(function(){return function(){var K=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},he=K.refKey,He=he===void 0?"ref":he,ke=K.onChange,Me=K.onClick,lt=kf(K,grt),Ut=Iy({accept:x,multiple:i,type:"file",style:{border:0,clip:"rect(0, 0, 0, 0)",clipPath:"inset(50%)",height:"1px",margin:"0 -1px -1px 0",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"},onChange:ne($o(ke,Oe)),onClick:ne($o(Me,Ht)),tabIndex:-1},He,M);return Vt(Vt({},Ut),lt)}},[M,n,i,Oe,r]);return Vt(Vt({},R),{},{isFocused:q&&!r,getRootProps:Le,getInputProps:pe,rootRef:N,inputRef:M,open:ne(ye)})}function Crt(e,t){switch(t.type){case"focus":return Vt(Vt({},e),{},{isFocused:!0});case"blur":return Vt(Vt({},e),{},{isFocused:!1});case"openDialog":return Vt(Vt({},zy),{},{isFileDialogActive:!0});case"closeDialog":return Vt(Vt({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return Vt(Vt({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return Vt(Vt({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return Vt({},zy);default:return e}}function mC(){}function Ert(){const e=ga();return[...e.breakpoints.keys].reverse().reduce((n,r)=>{const o=iO(e.breakpoints.up(r));return!n&&o?r:n},null)||"xs"}function pg(){return e=>function(n){const r=Ert();return p.createElement(e,{...n,width:r})}}function Trt(e){const[t,n]=p.useState(e.input||e.value||""),[r,o]=p.useState("");return p.createElement(ft,{open:!0,onClose:()=>e.onClose(null),"aria-labelledby":"form-dialog-title",fullWidth:e.fullWidth!==void 0?e.fullWidth:!1},p.createElement(mt,{id:"form-dialog-title"},e.titleText),p.createElement(Tt,null,p.createElement(ds,null,e.promptText),p.createElement(nt,{variant:"standard",autoFocus:!0,margin:"dense",error:!!r,helperText:r===!0||!r?"":r,value:t,label:e.labelText||"",type:e.type||"text",onKeyUp:s=>s.code==="Enter"&&t&&e.onClose(t),onChange:s=>{let a="";e.verify&&(a=!e.verify(s.target.value)),e.rule?n(e.rule(s.target.value)):n(s.target.value),o(a)},fullWidth:!0})),p.createElement(Et,null,p.createElement(_e,{variant:"contained",disabled:!t||!!r,onClick:()=>e.onClose(t),color:"primary",startIcon:p.createElement(jn,null)},e.applyText||E.t("ra_Ok")),p.createElement(_e,{color:"grey",variant:"contained",onClick:()=>e.onClose(null),startIcon:p.createElement($t,null)},e.cancelText||E.t("ra_Cancel"))))}const Ort=pg()(Trt),$f=e=>p.createElement("svg",{onClick:t=>e.onClick&&e.onClick(t),viewBox:"0 0 486 486",width:e.width||(e.fontSize==="small"?16:20),height:e.height||e.width||(e.fontSize==="small"?16:20),xmlns:"http://www.w3.org/2000/svg",className:e.className,style:e.style},p.createElement("path",{fill:"currentColor",d:"m414.928297,149.715165 c-2.639376,-57.222555 -35.669446,-106.505345 -83.345894,-132.039151 c-3.758948,-2.049842 -7.636885,-3.932022 -11.590542,-5.641125 c-19.303146,-8.394083 -40.607459,-13.050853 -63.004303,-13.050853 c-84.113909,0 -152.791790,65.703174 -157.718988,148.605566 l0.043268,-0.010816 v0.281245 c0,3.061243 -0.146031,16.750306 -0.146031,16.750306 l-2.352723,5.224668 h15.744315 c5.916964,-19.384275 24.078904,-32.635245 45.513024,-32.635245 c26.231510,0 47.573684,21.915481 47.573684,48.146991 c0,26.226103 -21.342174,47.146409 -47.573684,47.146409 c-25.111939,0 -45.734774,-19.735831 -47.443879,-44.658471 h-18.789334 c-0.400232,0 -0.778832,0.638209 -1.162839,0.584122 l-19.762875,55.199753 c-2.774590,7.696379 2.926030,16.214860 11.103771,16.214860 h17.020735 l-0.129805,87.899899 c0,17.356066 14.073071,31.174935 31.429136,31.174935 h56.205745 v82.648189 c0,12.877778 12.937273,22.580734 25.815051,22.580734 h144.597825 c12.877778,0 23.429877,-9.702955 23.429877,-22.580734 v-166.037352 c0,-22.645636 5.976457,-44.761234 16.561008,-64.789128 c11.055093,-20.925714 17.523731,-44.620611 18.129489,-69.792045 c0.027042,-1.260193 0.037858,-2.552839 0.037858,-3.845485 c0,-2.466302 -0.070310,-4.938014 -0.183890,-7.377273 zm-155.393308,-11.731165 h-13.456494 v13.559257 c0,4.732489 -4.267352,8.567157 -8.999842,8.567157 c-4.727079,0 -8.999842,-3.834667 -8.999842,-8.567157 v-13.559257 h-12.185483 c-4.732489,0 -8.567157,-4.267352 -8.567157,-8.999842 c0,-4.727079 3.834667,-8.999842 8.567157,-8.999842 h12.185483 v-12.077311 c0,-4.732489 4.272762,-8.567157 8.999842,-8.567157 c4.732489,0 8.999842,3.834667 8.999842,8.567157 v12.077311 h13.456494 c4.727079,0 8.567157,4.272762 8.567157,8.999842 c0,4.732489 -3.840077,8.999842 -8.567157,8.999842 zm0,0"}),p.createElement("path",{fill:"currentColor",d:"m187.695312 285.875c3.9375-3.980469 6.414063-9.449219 6.414063-15.523438 0-12.128906-9.855469-21.980468-21.984375-21.980468-6.007812 0-11.472656 2.410156-15.457031 6.347656-4.023438 4.003906-6.523438 9.539062-6.523438 15.636719 0 12.125 9.855469 21.980469 21.980469 21.980469 6.078125 0 11.585938-2.476563 15.570312-6.460938zm0 0"})),Tl=e=>p.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",onClick:t=>e.onClick&&e.onClick(t),viewBox:"0 0 650 512",width:e.width||(e.fontSize==="small"?16:20),height:e.height||e.width||(e.fontSize==="small"?16:20),className:e.className,style:e.style},p.createElement("path",{fill:"currentColor",d:"m524,128l-192,0l-64,-64l-160,0c-26.51,0 -48,21.49 -48,48l0,288c0,26.51 21.49,48 48,48l416,0c26.51,0 48,-21.49 48,-48l0,-224c0,-26.51 -21.49,-48 -48,-48z"})),gh=e=>p.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",onClick:t=>e.onClick&&e.onClick(t),viewBox:"0 0 650 512",width:e.width||(e.fontSize==="small"?16:20),height:e.height||e.width||(e.fontSize==="small"?16:20),className:e.className,style:e.style},p.createElement("path",{fill:"currentColor",d:"m631.75617,292.093l-72.424,124.155a63.997,63.997 0 0 1 -55.281,31.752l-399.964,0c-18.523,0 -30.064,-20.093 -20.731,-36.093l72.424,-124.155a64,64 0 0 1 55.282,-31.752l399.964,0c18.523,0 30.064,20.093 20.73,36.093zm-420.694,-68.093l328,0l0,-48c0,-26.51 -21.49,-48 -48,-48l-160,0l-64,-64l-160,0c-26.51,0 -48,21.49 -48,48l0,278.046l69.077,-118.418c17.137,-29.378 48.912,-47.628 82.923,-47.628z"})),R1=e=>p.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",onClick:t=>e.onClick&&e.onClick(t),viewBox:"0 0 512 512",width:e.width||(e.fontSize==="small"?16:20),height:e.height||e.width||(e.fontSize==="small"?16:20),className:e.className,style:e.style},p.createElement("path",{fill:"#EE3333",d:"M256,0C114.844,0,0,114.844,0,256s114.844,256,256,256s256-114.844,256-256S397.156,0,256,0z M256,448 c-105.865,0-192-86.135-192-192c0-40.406,12.25-78.604,35.542-111.198l267.656,267.656C334.604,435.75,296.406,448,256,448z M412.458,367.198L144.802,99.542C177.396,76.25,215.594,64,256,64c105.865,0,192,86.135,192,192 C448,296.406,435.75,334.604,412.458,367.198z"}));var Drt=e=>typeof e!="string"?{}:e.split(/ ?; ?/).reduce((t,n)=>{const[r,o]=n.split(/ ?: ?/).map((s,a)=>a===0?s.replace(/\s+/g,""):s.trim());if(r&&o){const s=r.replace(/(\w)-(\w)/g,(i,l,d)=>`${l}${d.toUpperCase()}`);let a=o.trim();Number.isNaN(Number(o))||(a=Number(o)),t[r.startsWith("-")?r:s]=a}return t},{});function Art(e=6){const t="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";let n="";for(let r=e;r>0;--r)n+=t[Math.round(Math.random()*(t.length-1))];return n}var Nrt=["br","col","colgroup","dl","hr","iframe","img","input","link","menuitem","meta","ol","param","select","table","tbody","tfoot","thead","tr","ul","wbr"],gC={"accept-charset":"acceptCharset",acceptcharset:"acceptCharset",accesskey:"accessKey",allowfullscreen:"allowFullScreen",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",cellpadding:"cellPadding",cellspacing:"cellSpacing",charset:"charSet",class:"className",classid:"classID",classname:"className",colspan:"colSpan",contenteditable:"contentEditable",contextmenu:"contextMenu",controlslist:"controlsList",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",datetime:"dateTime",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",enctype:"encType",for:"htmlFor",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",innerhtml:"innerHTML",inputmode:"inputMode",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",marginwidth:"marginWidth",marginheight:"marginHeight",maxlength:"maxLength",mediagroup:"mediaGroup",minlength:"minLength",nomodule:"noModule",novalidate:"noValidate",playsinline:"playsInline",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rowspan:"rowSpan",spellcheck:"spellCheck",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",tabindex:"tabIndex",typemustmatch:"typeMustMatch",usemap:"useMap",accentheight:"accentHeight","accent-height":"accentHeight",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",arabicform:"arabicForm","arabic-form":"arabicForm",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",diffuseconstant:"diffuseConstant",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",edgemode:"edgeMode",enablebackground:"enableBackground","enable-background":"enableBackground",externalresourcesrequired:"externalResourcesRequired",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",imagerendering:"imageRendering","image-rendering":"imageRendering",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",numoctaves:"numOctaves",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",specularconstant:"specularConstant",specularexponent:"specularExponent",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",vmathematical:"vMathematical","v-mathematical":"vMathematical",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",ychannelselector:"yChannelSelector",zoomandpan:"zoomAndPan",onblur:"onBlur",onchange:"onChange",onclick:"onClick",oncontextmenu:"onContextMenu",ondoubleclick:"onDoubleClick",ondrag:"onDrag",ondragend:"onDragEnd",ondragenter:"onDragEnter",ondragexit:"onDragExit",ondragleave:"onDragLeave",ondragover:"onDragOver",ondragstart:"onDragStart",ondrop:"onDrop",onerror:"onError",onfocus:"onFocus",oninput:"onInput",oninvalid:"onInvalid",onkeydown:"onKeyDown",onkeypress:"onKeyPress",onkeyup:"onKeyUp",onload:"onLoad",onmousedown:"onMouseDown",onmouseenter:"onMouseEnter",onmouseleave:"onMouseLeave",onmousemove:"onMouseMove",onmouseout:"onMouseOut",onmouseover:"onMouseOver",onmouseup:"onMouseUp",onscroll:"onScroll",onsubmit:"onSubmit",ontouchcancel:"onTouchCancel",ontouchend:"onTouchEnd",ontouchmove:"onTouchMove",ontouchstart:"onTouchStart",onwheel:"onWheel"};function Mrt(e,t){var s;const{key:n,level:r,...o}=t;switch(e.nodeType){case 1:return k.createElement(Irt(e.nodeName),jrt(e,n),_C(e.childNodes,r,o));case 3:{const a=((s=e.nodeValue)==null?void 0:s.toString())??"";if(!o.allowWhiteSpaces&&/^\s+$/.test(a)&&!/[\u00A0\u202F]/.test(a))return null;if(!e.parentNode)return a;const i=e.parentNode.nodeName.toLowerCase();return Nrt.includes(i)?(/\S/.test(a)&&console.warn(`A textNode is not allowed inside '${i}'. Your text "${a}" will be ignored`),null):a}case 8:return null;case 11:return _C(e.childNodes,r,t);default:return null}}function jrt(e,t){const n={key:t};if(e instanceof Element){const r=e.getAttribute("class");r&&(n.className=r),[...e.attributes].forEach(o=>{switch(o.name){case"class":break;case"style":n[o.name]=Drt(o.value);break;case"allowfullscreen":case"allowpaymentrequest":case"async":case"autofocus":case"autoplay":case"checked":case"controls":case"default":case"defer":case"disabled":case"formnovalidate":case"hidden":case"ismap":case"itemscope":case"loop":case"multiple":case"muted":case"nomodule":case"novalidate":case"open":case"readonly":case"required":case"reversed":case"selected":case"typemustmatch":n[gC[o.name]||o.name]=!0;break;default:n[gC[o.name]||o.name]=o.value}})}return n}function _C(e,t,n){const r=[...e].map((o,s)=>Cf(o,{...n,index:s,level:t+1})).filter(Boolean);return r.length?r:null}function Irt(e){return/[a-z]+[A-Z]+[a-z]+/.test(e)?e:e.toLowerCase()}function Cf(e,t={}){if(!e||!(e instanceof Node))return null;const{actions:n=[],index:r=0,level:o=0,randomKey:s}=t;let a=e,i=`${o}-${r}`;const l=[];return s&&o===0&&(i=`${Art()}-${i}`),Array.isArray(n)&&n.forEach(d=>{d.condition(a,i,o)&&(typeof d.pre=="function"&&(a=d.pre(a,i,o),a instanceof Node||(a=e)),typeof d.post=="function"&&l.push(d.post(a,i,o)))}),l.length?l:Mrt(a,{key:i,level:o,...t})}function zrt(e,t={}){if(!e||typeof e!="string")return null;const{includeAllNodes:n=!1,nodeOnly:r=!1,selector:o="body > *",type:s="text/html"}=t;try{const i=new DOMParser().parseFromString(e,s);if(n){const{childNodes:d}=i.body;return r?d:[...d].map(u=>Cf(u,t))}const l=i.querySelector(o)||i.body.childNodes[0];if(!(l instanceof Node))throw new TypeError("Error parsing input");return r?l:Cf(l,t)}catch{}return null}function m3(e,t={}){return typeof e=="string"?zrt(e,t):e instanceof Node?Cf(e,t):null}var Rrt=Object.defineProperty,Prt=(e,t,n)=>t in e?Rrt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Np=(e,t,n)=>Prt(e,typeof t!="symbol"?t+"":t,n),vC="react-inlinesvg",yC=10,ut={IDLE:"idle",LOADING:"loading",LOADED:"loaded",FAILED:"failed",READY:"ready",UNSUPPORTED:"unsupported"};function _h(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Lrt(){return Brt()&&typeof window<"u"&&window!==null}async function g3(e,t){const n=await fetch(e,t),r=n.headers.get("content-type"),[o]=(r??"").split(/ ?; ?/);if(n.status>299)throw new Error("Not found");if(!["image/svg+xml","text/plain"].some(s=>o.includes(s)))throw new Error(`Content type isn't valid: ${o}`);return n.text()}function Frt(e=1){return new Promise(t=>{setTimeout(t,e*1e3)})}function Brt(){if(!document)return!1;const e=document.createElement("div");e.innerHTML="";const t=e.firstChild;return!!t&&t.namespaceURI==="http://www.w3.org/2000/svg"}function Wrt(e){return e[Math.floor(Math.random()*e.length)]}function Hrt(e){const t="abcdefghijklmnopqrstuvwxyz",r=`${t}${t.toUpperCase()}1234567890`;let o="";for(let s=0;s{this.cacheApi=n,this.isReady=!0,this.subscribers.forEach(r=>r())}).catch(n=>{this.isReady=!0,console.error(`Failed to open cache: ${n.message}`)}):this.isReady=!0}onReady(e){this.isReady?e():this.subscribers.push(e)}async get(e,t){var n;return await(this.cacheApi?this.fetchAndAddToPersistentCache(e,t):this.fetchAndAddToInternalCache(e,t)),((n=this.cacheStore.get(e))==null?void 0:n.content)??""}set(e,t){this.cacheStore.set(e,t)}isCached(e){var t;return((t=this.cacheStore.get(e))==null?void 0:t.status)===ut.LOADED}async fetchAndAddToInternalCache(e,t){const n=this.cacheStore.get(e);if((n==null?void 0:n.status)===ut.LOADING){await this.handleLoading(e,async()=>{this.cacheStore.set(e,{content:"",status:ut.IDLE}),await this.fetchAndAddToInternalCache(e,t)});return}if(!(n!=null&&n.content)){this.cacheStore.set(e,{content:"",status:ut.LOADING});try{const r=await g3(e,t);this.cacheStore.set(e,{content:r,status:ut.LOADED})}catch(r){throw this.cacheStore.set(e,{content:"",status:ut.FAILED}),r}}}async fetchAndAddToPersistentCache(e,t){var o,s,a;const n=this.cacheStore.get(e);if((n==null?void 0:n.status)===ut.LOADED)return;if((n==null?void 0:n.status)===ut.LOADING){await this.handleLoading(e,async()=>{this.cacheStore.set(e,{content:"",status:ut.IDLE}),await this.fetchAndAddToPersistentCache(e,t)});return}this.cacheStore.set(e,{content:"",status:ut.LOADING});const r=await((o=this.cacheApi)==null?void 0:o.match(e));if(r){const i=await r.text();this.cacheStore.set(e,{content:i,status:ut.LOADED});return}try{await((s=this.cacheApi)==null?void 0:s.add(new Request(e,t)));const i=await((a=this.cacheApi)==null?void 0:a.match(e)),l=await(i==null?void 0:i.text())??"";this.cacheStore.set(e,{content:l,status:ut.LOADED})}catch(i){throw this.cacheStore.set(e,{content:"",status:ut.FAILED}),i}}async handleLoading(e,t){var r;let n=0;for(;((r=this.cacheStore.get(e))==null?void 0:r.status)===ut.LOADING&&n=yC&&await t()}keys(){return[...this.cacheStore.keys()]}data(){return[...this.cacheStore.entries()].map(([e,t])=>({[e]:t}))}async delete(e){this.cacheApi&&await this.cacheApi.delete(e),this.cacheStore.delete(e)}async clear(){if(this.cacheApi){const e=await this.cacheApi.keys();for(const t of e)await this.cacheApi.delete(t)}this.cacheStore.clear()}};function bC(e){const t=k.useRef();return k.useEffect(()=>{t.current=e}),t.current}function Grt(e){const{baseURL:t,content:n,description:r,handleError:o,hash:s,preProcessor:a,title:i,uniquifyIDs:l=!1}=e;try{const d=qrt(n,a),u=m3(d,{nodeOnly:!0});if(!u||!(u instanceof SVGSVGElement))throw new Error("Could not convert the src to a DOM Node");const c=_3(u,{baseURL:t,hash:s,uniquifyIDs:l});if(r){const h=c.querySelector("desc");h!=null&&h.parentNode&&h.parentNode.removeChild(h);const f=document.createElementNS("http://www.w3.org/2000/svg","desc");f.innerHTML=r,c.prepend(f)}if(typeof i<"u"){const h=c.querySelector("title");if(h!=null&&h.parentNode&&h.parentNode.removeChild(h),i){const f=document.createElementNS("http://www.w3.org/2000/svg","title");f.innerHTML=i,c.prepend(f)}}return c}catch(d){return o(d)}}function qrt(e,t){return t?t(e):e}function _3(e,t){const{baseURL:n="",hash:r,uniquifyIDs:o}=t,s=["id","href","xlink:href","xlink:role","xlink:arcrole"],a=["href","xlink:href"],i=(l,d)=>a.includes(l)&&(d?!d.includes("#"):!1);return o&&[...e.children].forEach(l=>{var d;if((d=l.attributes)!=null&&d.length){const u=Object.values(l.attributes).map(c=>{const h=c,f=/url\((.*?)\)/.exec(c.value);return f!=null&&f[1]&&(h.value=c.value.replace(f[0],`url(${n}${f[1]}__${r})`)),h});s.forEach(c=>{const h=u.find(f=>f.name===c);h&&!i(c,h.value)&&(h.value=`${h.value}__${r}`)})}return l.children.length?_3(l,t):l}),e}var ml;function Jrt(e){const{cacheRequests:t=!0,children:n=null,description:r,fetchOptions:o,innerRef:s,loader:a=null,onError:i,onLoad:l,src:d,title:u,uniqueHash:c}=e,[h,f]=k.useReducer((N,M)=>({...N,...M}),{content:"",element:null,isCached:t&&ml.isCached(e.src),status:ut.IDLE}),{content:g,element:_,isCached:w,status:v}=h,b=bC(e),y=bC(h),S=k.useRef(c??Hrt(8)),$=k.useRef(!1),C=k.useRef(!1),T=k.useCallback(N=>{$.current&&(f({status:N.message==="Browser does not support SVG"?ut.UNSUPPORTED:ut.FAILED}),i==null||i(N))},[i]),O=k.useCallback((N,M=!1)=>{$.current&&f({content:N,isCached:M,status:ut.LOADED})},[]),D=k.useCallback(async()=>{const N=await g3(d,o);O(N)},[o,O,d]),x=k.useCallback(()=>{try{const N=Grt({...e,handleError:T,hash:S.current,content:g}),M=m3(N);if(!M||!k.isValidElement(M))throw new Error("Could not convert the src to a React element");f({element:M,status:ut.READY})}catch(N){T(new Error(N.message))}},[g,T,e]),A=k.useCallback(async()=>{const N=/^data:image\/svg[^,]*?(;base64)?,(.*)/u.exec(d);let M;if(N?M=N[1]?window.atob(N[2]):decodeURIComponent(N[2]):d.includes("{$.current&&f({content:"",element:null,isCached:!1,status:ut.LOADING})},[]);k.useEffect(()=>{if($.current=!0,!_h()||C.current)return()=>{};try{if(v===ut.IDLE){if(!Lrt())throw new Error("Browser does not support SVG");if(!d)throw new Error("Missing src");I()}}catch(N){T(N)}return C.current=!0,()=>{$.current=!1}},[]),k.useEffect(()=>{if(_h()&&b)if(b.src!==d){if(!d){T(new Error("Missing src"));return}I()}else(b.title!==u||b.description!==r)&&x()},[r,x,T,I,b,d,u]),k.useEffect(()=>{y&&(y.status!==ut.LOADING&&v===ut.LOADING&&A(),y.status!==ut.LOADED&&v===ut.LOADED&&x(),y.status!==ut.READY&&v===ut.READY&&(l==null||l(d,w)))},[A,x,w,l,y,d,v]);const z=Urt(e,"baseURL","cacheRequests","children","description","fetchOptions","innerRef","loader","onError","onLoad","preProcessor","src","title","uniqueHash","uniquifyIDs");return _h()?_?k.cloneElement(_,{ref:s,...z}):[ut.UNSUPPORTED,ut.FAILED].includes(v)?n:a:a}function Ef(e){ml||(ml=new Vrt);const{loader:t}=e,n=k.useRef(!1),[r,o]=k.useState(ml.isReady);return k.useEffect(()=>{n.current||(ml.onReady(()=>{o(!0)}),n.current=!0)},[]),r?p.createElement(Jrt,{...e}):t}const Xrt=window.location.hostname.endsWith("iobroker.in"),wC=window.location.pathname.substring(0,window.location.pathname.lastIndexOf("/")+1);function Gs(e){var t,n,r;if(e.src){if(typeof e.src=="string"){if(e.src.length<3)return e.sx?p.createElement(Ce,{component:"span",sx:e.sx,title:e.title||void 0,style:{height:27,marginTop:-8,...e.styleUTF8||e.style},className:U.clsx(e.className,"iconOwn")},e.src):p.createElement("span",{title:e.title||void 0,style:{height:27,marginTop:-8,...e.styleUTF8||e.style},className:U.clsx(e.className,"iconOwn")},e.src);if(e.src.startsWith("data:image/svg"))return p.createElement(Ef,{title:e.title||void 0,src:e.src,className:U.clsx(e.className,"iconOwn"),width:((t=e.style)==null?void 0:t.width)||28,height:((n=e.style)==null?void 0:n.height)||((r=e.style)==null?void 0:r.width)||28,style:e.style||{}});if(Xrt&&!e.src.startsWith("http://")&&!e.src.startsWith("https://")){let o=e.src;return o.startsWith("./")?o=wC+o.substring(2):o.startsWith("/")||(o=wC+o),e.sx?p.createElement(Ce,{component:"img",sx:e.sx,title:e.title||void 0,style:e.style||{},className:U.clsx(e.className,"iconOwn"),src:`https://remote-files.iobroker.in${o}`,alt:e.alt||void 0,ref:e.ref,onError:s=>e.onError&&e.onError(s)}):p.createElement("img",{title:e.title||void 0,style:e.style||{},className:U.clsx(e.className,"iconOwn"),src:`https://remote-files.iobroker.in${o}`,alt:e.alt||void 0,ref:e.ref,onError:s=>e.onError&&e.onError(s)})}return e.sx?p.createElement(Ce,{component:"img",sx:e.sx,title:e.title||void 0,style:e.style||{},className:U.clsx(e.className,"iconOwn"),src:e.src,alt:e.alt||void 0,ref:e.ref,onError:e.onError}):p.createElement("img",{title:e.title||void 0,style:e.style||{},className:U.clsx(e.className,"iconOwn"),src:e.src,alt:e.alt||void 0,ref:e.ref,onError:e.onError})}return e.src}return null}var v3={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},SC=p.createContext&&p.createContext(v3),Yrt=["attr","size","title"];function Krt(e,t){if(e==null)return{};var n=Zrt(e,t),r,o;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(o=0;o=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Zrt(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Tf(){return Tf=Object.assign?Object.assign.bind():function(e){for(var t=1;tp.createElement(t.tag,Of({key:n},t.attr),y3(t.child)))}function Ge(e){return t=>p.createElement(not,Tf({attr:Of({},e.attr)},t),y3(e.child))}function not(e){var t=n=>{var{attr:r,size:o,title:s}=e,a=Krt(e,Yrt),i=o||n.size||"1em",l;return n.className&&(l=n.className),e.className&&(l=(l?l+" ":"")+e.className),p.createElement("svg",Tf({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,r,a,{className:l,style:Of(Of({color:e.color||n.color},n.style),e.style),height:i,width:i,xmlns:"http://www.w3.org/2000/svg"}),s&&p.createElement("title",null,s),e.children)};return SC!==void 0?p.createElement(SC.Consumer,null,n=>t(n)):t(v3)}function rot(e){return Ge({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M320 448v40c0 13.255-10.745 24-24 24H24c-13.255 0-24-10.745-24-24V120c0-13.255 10.745-24 24-24h72v296c0 30.879 25.121 56 56 56h168zm0-344V0H152c-13.255 0-24 10.745-24 24v368c0 13.255 10.745 24 24 24h272c13.255 0 24-10.745 24-24V128H344c-13.2 0-24-10.8-24-24zm120.971-31.029L375.029 7.029A24 24 0 0 0 358.059 0H352v96h96v-6.059a24 24 0 0 0-7.029-16.97z"},child:[]}]})(e)}function Df(e){return Ge({tag:"svg",attr:{viewBox:"0 0 352 512"},child:[{tag:"path",attr:{d:"M96.06 454.35c.01 6.29 1.87 12.45 5.36 17.69l17.09 25.69a31.99 31.99 0 0 0 26.64 14.28h61.71a31.99 31.99 0 0 0 26.64-14.28l17.09-25.69a31.989 31.989 0 0 0 5.36-17.69l.04-38.35H96.01l.05 38.35zM0 176c0 44.37 16.45 84.85 43.56 115.78 16.52 18.85 42.36 58.23 52.21 91.45.04.26.07.52.11.78h160.24c.04-.26.07-.51.11-.78 9.85-33.22 35.69-72.6 52.21-91.45C335.55 260.85 352 220.37 352 176 352 78.61 272.91-.3 175.45 0 73.44.31 0 82.97 0 176zm176-80c-44.11 0-80 35.89-80 80 0 8.84-7.16 16-16 16s-16-7.16-16-16c0-61.76 50.24-112 112-112 8.84 0 16 7.16 16 16s-7.16 16-16 16z"},child:[]}]})(e)}function oot(e){return Ge({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M326.612 185.391c59.747 59.809 58.927 155.698.36 214.59-.11.12-.24.25-.36.37l-67.2 67.2c-59.27 59.27-155.699 59.262-214.96 0-59.27-59.26-59.27-155.7 0-214.96l37.106-37.106c9.84-9.84 26.786-3.3 27.294 10.606.648 17.722 3.826 35.527 9.69 52.721 1.986 5.822.567 12.262-3.783 16.612l-13.087 13.087c-28.026 28.026-28.905 73.66-1.155 101.96 28.024 28.579 74.086 28.749 102.325.51l67.2-67.19c28.191-28.191 28.073-73.757 0-101.83-3.701-3.694-7.429-6.564-10.341-8.569a16.037 16.037 0 0 1-6.947-12.606c-.396-10.567 3.348-21.456 11.698-29.806l21.054-21.055c5.521-5.521 14.182-6.199 20.584-1.731a152.482 152.482 0 0 1 20.522 17.197zM467.547 44.449c-59.261-59.262-155.69-59.27-214.96 0l-67.2 67.2c-.12.12-.25.25-.36.37-58.566 58.892-59.387 154.781.36 214.59a152.454 152.454 0 0 0 20.521 17.196c6.402 4.468 15.064 3.789 20.584-1.731l21.054-21.055c8.35-8.35 12.094-19.239 11.698-29.806a16.037 16.037 0 0 0-6.947-12.606c-2.912-2.005-6.64-4.875-10.341-8.569-28.073-28.073-28.191-73.639 0-101.83l67.2-67.19c28.239-28.239 74.3-28.069 102.325.51 27.75 28.3 26.872 73.934-1.155 101.96l-13.087 13.087c-4.35 4.35-5.769 10.79-3.783 16.612 5.864 17.194 9.042 34.999 9.69 52.721.509 13.906 17.454 20.446 27.294 10.606l37.106-37.106c59.271-59.259 59.271-155.699.001-214.959z"},child:[]}]})(e)}function Af(e){return Ge({tag:"svg",attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M423.5 0C339.5.3 272 69.5 272 153.5V224H48c-26.5 0-48 21.5-48 48v192c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V272c0-26.5-21.5-48-48-48h-48v-71.1c0-39.6 31.7-72.5 71.3-72.9 40-.4 72.7 32.1 72.7 72v80c0 13.3 10.7 24 24 24h32c13.3 0 24-10.7 24-24v-80C576 68 507.5-.3 423.5 0z"},child:[]}]})(e)}function Ol(e){return Ge({tag:"svg",attr:{viewBox:"0 0 256 512"},child:[{tag:"path",attr:{d:"M168 345.941V44c0-6.627-5.373-12-12-12h-56c-6.627 0-12 5.373-12 12v301.941H41.941c-21.382 0-32.09 25.851-16.971 40.971l86.059 86.059c9.373 9.373 24.569 9.373 33.941 0l86.059-86.059c15.119-15.119 4.411-40.971-16.971-40.971H168z"},child:[]}]})(e)}function Dl(e){return Ge({tag:"svg",attr:{viewBox:"0 0 256 512"},child:[{tag:"path",attr:{d:"M88 166.059V468c0 6.627 5.373 12 12 12h56c6.627 0 12-5.373 12-12V166.059h46.059c21.382 0 32.09-25.851 16.971-40.971l-86.059-86.059c-9.373-9.373-24.569-9.373-33.941 0l-86.059 86.059c-15.119 15.119-4.411 40.971 16.971 40.971H88z"},child:[]}]})(e)}function sot(e){return Ge({tag:"svg",attr:{viewBox:"0 0 192 512"},child:[{tag:"path",attr:{d:"M96 0c35.346 0 64 28.654 64 64s-28.654 64-64 64-64-28.654-64-64S60.654 0 96 0m48 144h-11.36c-22.711 10.443-49.59 10.894-73.28 0H48c-26.51 0-48 21.49-48 48v136c0 13.255 10.745 24 24 24h16v136c0 13.255 10.745 24 24 24h64c13.255 0 24-10.745 24-24V352h16c13.255 0 24-10.745 24-24V192c0-26.51-21.49-48-48-48z"},child:[]}]})(e)}function b3(e){return Ge({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M204.3 5C104.9 24.4 24.8 104.3 5.2 203.4c-37 187 131.7 326.4 258.8 306.7 41.2-6.4 61.4-54.6 42.5-91.7-23.1-45.4 9.9-98.4 60.9-98.4h79.7c35.8 0 64.8-29.6 64.9-65.3C511.5 97.1 368.1-26.9 204.3 5zM96 320c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm32-128c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm128-64c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm128 64c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32z"},child:[]}]})(e)}function w3(e){return Ge({tag:"svg",attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M109.25 173.25c24.99-24.99 24.99-65.52 0-90.51-24.99-24.99-65.52-24.99-90.51 0-24.99 24.99-24.99 65.52 0 90.51 25 25 65.52 25 90.51 0zm256 165.49c-24.99-24.99-65.52-24.99-90.51 0-24.99 24.99-24.99 65.52 0 90.51 24.99 24.99 65.52 24.99 90.51 0 25-24.99 25-65.51 0-90.51zm-1.94-231.43l-22.62-22.62c-12.5-12.5-32.76-12.5-45.25 0L20.69 359.44c-12.5 12.5-12.5 32.76 0 45.25l22.62 22.62c12.5 12.5 32.76 12.5 45.25 0l274.75-274.75c12.5-12.49 12.5-32.75 0-45.25z"},child:[]}]})(e)}function Ry(e){return Ge({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M400 54.1c63 45 104 118.6 104 201.9 0 136.8-110.8 247.7-247.5 248C120 504.3 8.2 393 8 256.4 7.9 173.1 48.9 99.3 111.8 54.2c11.7-8.3 28-4.8 35 7.7L162.6 90c5.9 10.5 3.1 23.8-6.6 31-41.5 30.8-68 79.6-68 134.9-.1 92.3 74.5 168.1 168 168.1 91.6 0 168.6-74.2 168-169.1-.3-51.8-24.7-101.8-68.1-134-9.7-7.2-12.4-20.5-6.5-30.9l15.8-28.1c7-12.4 23.2-16.1 34.8-7.8zM296 264V24c0-13.3-10.7-24-24-24h-32c-13.3 0-24 10.7-24 24v240c0 13.3 10.7 24 24 24h32c13.3 0 24-10.7 24-24z"},child:[]}]})(e)}function aot(e){return Ge({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M440.3 345.2l-33.8-19.5 26-7c8.2-2.2 13.1-10.7 10.9-18.9l-4-14.9c-2.2-8.2-10.7-13.1-18.9-10.9l-70.8 19-63.9-37 63.8-36.9 70.8 19c8.2 2.2 16.7-2.7 18.9-10.9l4-14.9c2.2-8.2-2.7-16.7-10.9-18.9l-26-7 33.8-19.5c7.4-4.3 9.9-13.7 5.7-21.1L430.4 119c-4.3-7.4-13.7-9.9-21.1-5.7l-33.8 19.5 7-26c2.2-8.2-2.7-16.7-10.9-18.9l-14.9-4c-8.2-2.2-16.7 2.7-18.9 10.9l-19 70.8-62.8 36.2v-77.5l53.7-53.7c6.2-6.2 6.2-16.4 0-22.6l-11.3-11.3c-6.2-6.2-16.4-6.2-22.6 0L256 56.4V16c0-8.8-7.2-16-16-16h-32c-8.8 0-16 7.2-16 16v40.4l-19.7-19.7c-6.2-6.2-16.4-6.2-22.6 0L138.3 48c-6.3 6.2-6.3 16.4 0 22.6l53.7 53.7v77.5l-62.8-36.2-19-70.8c-2.2-8.2-10.7-13.1-18.9-10.9l-14.9 4c-8.2 2.2-13.1 10.7-10.9 18.9l7 26-33.8-19.5c-7.4-4.3-16.8-1.7-21.1 5.7L2.1 145.7c-4.3 7.4-1.7 16.8 5.7 21.1l33.8 19.5-26 7c-8.3 2.2-13.2 10.7-11 19l4 14.9c2.2 8.2 10.7 13.1 18.9 10.9l70.8-19 63.8 36.9-63.8 36.9-70.8-19c-8.2-2.2-16.7 2.7-18.9 10.9l-4 14.9c-2.2 8.2 2.7 16.7 10.9 18.9l26 7-33.8 19.6c-7.4 4.3-9.9 13.7-5.7 21.1l15.5 26.8c4.3 7.4 13.7 9.9 21.1 5.7l33.8-19.5-7 26c-2.2 8.2 2.7 16.7 10.9 18.9l14.9 4c8.2 2.2 16.7-2.7 18.9-10.9l19-70.8 62.8-36.2v77.5l-53.7 53.7c-6.3 6.2-6.3 16.4 0 22.6l11.3 11.3c6.2 6.2 16.4 6.2 22.6 0l19.7-19.7V496c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16v-40.4l19.7 19.7c6.2 6.2 16.4 6.2 22.6 0l11.3-11.3c6.2-6.2 6.2-16.4 0-22.6L256 387.7v-77.5l62.8 36.2 19 70.8c2.2 8.2 10.7 13.1 18.9 10.9l14.9-4c8.2-2.2 13.1-10.7 10.9-18.9l-7-26 33.8 19.5c7.4 4.3 16.8 1.7 21.1-5.7l15.5-26.8c4.3-7.3 1.8-16.8-5.6-21z"},child:[]}]})(e)}function iot(e){return Ge({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M416 0c-52.9 0-96 43.1-96 96s43.1 96 96 96 96-43.1 96-96-43.1-96-96-96zm0 128c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm-160-16C256 50.1 205.9 0 144 0S32 50.1 32 112v166.5C12.3 303.2 0 334 0 368c0 79.5 64.5 144 144 144s144-64.5 144-144c0-34-12.3-64.9-32-89.5V112zM144 448c-44.1 0-80-35.9-80-80 0-25.5 12.2-48.9 32-63.8V112c0-26.5 21.5-48 48-48s48 21.5 48 48v192.2c19.8 14.8 32 38.3 32 63.8 0 44.1-35.9 80-80 80zm16-125.1V304c0-8.8-7.2-16-16-16s-16 7.2-16 16v18.9c-18.6 6.6-32 24.2-32 45.1 0 26.5 21.5 48 48 48s48-21.5 48-48c0-20.9-13.4-38.5-32-45.1z"},child:[]}]})(e)}function S3(e){return Ge({tag:"svg",attr:{viewBox:"0 0 256 512"},child:[{tag:"path",attr:{d:"M192 384c0 35.346-28.654 64-64 64s-64-28.654-64-64c0-23.685 12.876-44.349 32-55.417V224c0-17.673 14.327-32 32-32s32 14.327 32 32v104.583c19.124 11.068 32 31.732 32 55.417zm32-84.653c19.912 22.563 32 52.194 32 84.653 0 70.696-57.303 128-128 128-.299 0-.609-.001-.909-.003C56.789 511.509-.357 453.636.002 383.333.166 351.135 12.225 321.755 32 299.347V96c0-53.019 42.981-96 96-96s96 42.981 96 96v203.347zM208 384c0-34.339-19.37-52.19-32-66.502V96c0-26.467-21.533-48-48-48S80 69.533 80 96v221.498c-12.732 14.428-31.825 32.1-31.999 66.08-.224 43.876 35.563 80.116 79.423 80.42L128 464c44.112 0 80-35.888 80-80z"},child:[]}]})(e)}function Dd(e){return Ge({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M476.8 20.4c-37.5-30.7-95.5-26.3-131.9 10.2l-45.7 46 50.5 50.5c3.1 3.1 3.1 8.2 0 11.3l-11.3 11.3c-3.1 3.1-8.2 3.1-11.3 0l-50.4-50.5-45.1 45.4 50.3 50.4c3.1 3.1 3.1 8.2 0 11.3l-11.3 11.3c-3.1 3.1-8.2 3.1-11.3 0L209 167.4l-45.1 45.4L214 263c3.1 3.1 3.1 8.2 0 11.3l-11.3 11.3c-3.1 3.1-8.2 3.1-11.3 0l-50.1-50.2L96 281.1V382L7 471c-9.4 9.4-9.4 24.6 0 33.9 9.4 9.4 24.6 9.4 33.9 0l89-89h99.9L484 162.6c34.9-34.9 42.2-101.5-7.2-142.2z"},child:[]}]})(e)}function lot(e){return Ge({tag:"svg",attr:{viewBox:"0 0 352 512"},child:[{tag:"path",attr:{d:"M205.22 22.09c-7.94-28.78-49.44-30.12-58.44 0C100.01 179.85 0 222.72 0 333.91 0 432.35 78.72 512 176 512s176-79.65 176-178.09c0-111.75-99.79-153.34-146.78-311.82zM176 448c-61.75 0-112-50.25-112-112 0-8.84 7.16-16 16-16s16 7.16 16 16c0 44.11 35.89 80 80 80 8.84 0 16 7.16 16 16s-7.16 16-16 16z"},child:[]}]})(e)}const xa={dialog:{height:"100%"},paper:{height:"calc(100% - 64px)"},content:{textAlign:"center"},textarea:{width:"100%",height:"100%"},img:{width:"auto",height:"calc(100% - 5px)",objectFit:"contain"},dialogTitle:{justifyContent:"space-between",display:"flex"}},Tn={images:["png","jpg","svg","jpeg","bmp","gif","apng","avif","webp"],code:["js","json","json5","md"],txt:["log","txt","html","css","xml","ics"],audio:["mp3","wav","ogg","acc"],video:["mp4","mov","avi"]};function kC(e,t){let n="";const r=new Uint8Array(e),o=r.byteLength;for(let s=0;s{this.state.changed||(this.timeout&&clearTimeout(this.timeout),this.timeout=setTimeout(()=>{this.timeout=null,o===null?window.alert("Show file was deleted!"):this.state.text!==null||this.state.code!==null?this.readFile():this.setState({forceUpdate:Date.now()})},300))});L(this,"writeFile64",()=>{});const r=U.getFileExtension(n.href);this.state={text:null,code:null,ext:r,editing:!1,editingValue:null,copyPossible:!!r&&(Tn.code.includes(r)||Tn.txt.includes(r)),forceUpdate:Date.now(),changed:!1,imgError:!1}}readFile(){if(this.props.href){const n=this.props.href.split("/");n.splice(0,2);const r=n[0],o=n.splice(1).join("/");this.props.socket.readFile(r,o).then(s=>{let a="";s.file!==void 0&&(a=s.file);const i={copyPossible:this.state.copyPossible,ext:this.state.ext};if(s.type==="Buffer")if(o.toLowerCase().endsWith(".json5")){i.ext="json5",i.copyPossible=!0;try{a=atob(kC(s.data,!0))}catch{console.error("Cannot convert base64 to string"),a=""}}else{const l=U.detectMimeType(kC(s.data));l&&(i.ext=l,i.copyPossible=Tn.code.includes(l)||Tn.txt.includes(l))}i.copyPossible&&(i.ext&&Tn.txt.includes(i.ext)?(i.text=a,i.editingValue=a):i.ext&&Tn.code.includes(i.ext)&&(i.code=a,i.editingValue=a)),this.setState(i)}).catch(s=>window.alert(`Cannot read file: ${s}`))}}componentDidMount(){this.readFile();const n=this.props.href.split("/");n.splice(0,2);const r=n[0],o=n.splice(1).join("/");this.props.supportSubscribes&&this.props.socket.subscribeFiles(r,o,this.onFileChanged).catch(s=>window.alert(`Cannot subscribe on file: ${s}`))}componentWillUnmount(){this.timeout&&(clearTimeout(this.timeout),this.timeout=null);const n=this.props.href.split("/");n.splice(0,2);const r=n[0],o=n.splice(1).join("/");this.props.supportSubscribes&&this.props.socket.subscribeFiles(r,o,this.onFileChanged).catch(s=>window.alert(`Cannot subscribe on file: ${s}`))}static getEditFile(n){switch(n){case"json":return"json";case"json5":return"json5";case"js":return"javascript";case"html":return"html";case"txt":return"html";default:return"text"}}getContent(){return this.state.ext&&Tn.images.includes(this.state.ext)?this.state.imgError?p.createElement(R1,{style:{...xa.img,...this.props.getStyleBackgroundImage()}}):p.createElement(Gs,{onError:n=>{n.target.onerror=null,this.setState({imgError:!0})},style:{...xa.img,...this.props.getStyleBackgroundImage()},src:`${this.props.href}?ts=${this.state.forceUpdate}`,alt:this.props.href}):this.state.ext&&Tn.audio.includes(this.state.ext)?p.createElement("div",{style:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center"}},p.createElement("audio",{style:{width:"100%"},src:this.props.href,controls:!0})):this.state.ext&&Tn.video.includes(this.state.ext)?p.createElement("div",{style:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center"}},p.createElement("video",{style:{width:"100%",height:"100%"},controls:!0},p.createElement("source",{src:this.props.href,type:`video/${this.state.ext}}`}))):this.state.code!==null||this.state.text!==null||this.state.editing?p.createElement(nt,{variant:"standard",style:xa.textarea,multiline:!0,value:this.state.editingValue||this.state.code||this.state.text,slotProps:{htmlInput:{readOnly:!this.state.editing}}}):null}render(){return p.createElement(ft,{sx:{"&.MuiDialog-scrollPaper":xa.dialog,"& .MuiDialog-paper":xa.paper},scroll:"paper",open:!!this.props.href,onClose:()=>this.props.onClose(),fullWidth:!0,maxWidth:"xl","aria-labelledby":"ar_dialog_file_view_title"},p.createElement("div",{style:xa.dialogTitle},p.createElement(mt,{id:"ar_dialog_file_view_title"},`${this.props.t(this.state.editing?"Edit":"View")}: ${this.props.href}`),this.state.ext&&Tn.images.includes(this.state.ext)&&p.createElement("div",null,p.createElement(fe,{size:"large",color:"inherit",onClick:this.props.setStateBackgroundImage},p.createElement(N4,null)))),p.createElement(Tt,{style:xa.content},this.getContent()),p.createElement(Et,null,this.state.copyPossible?p.createElement(_e,{color:"grey",onClick:n=>{n.stopPropagation(),n.preventDefault(),U.copyToClipboard(this.state.text||this.state.code||"")},startIcon:p.createElement(rot,null)},this.props.t("Copy content")):null,this.state.editing?p.createElement(_e,{color:"grey",disabled:this.state.editingValue===this.state.code||this.state.editingValue===this.state.text,variant:"contained",onClick:this.writeFile64,startIcon:p.createElement(vy,null)},this.props.t("Save")):null,p.createElement(_e,{variant:"contained",onClick:()=>this.props.onClose(),color:"primary",startIcon:p.createElement($t,null)},this.props.t("Close"))))}}const dot=pg()(cot),Oi=32,es=32,Mp=120,$C=64,CC="Not found",jp={all:j4,images:gV,code:Ub,txt:pV,audio:XU,video:zV},ae={root:{width:"100%",overflow:"hidden",height:"100%",position:"relative"},filesDiv:{width:"calc(100% - 16px)",overflowX:"hidden",overflowY:"auto",padding:8},filesDivHint:{position:"absolute",bottom:0,left:20,opacity:.7,fontStyle:"italic",fontSize:12},filesDivTable:{height:"calc(100% - 56px)"},filesDivTile:{height:`calc(100% - ${48*2+8}px)`,display:"flex",alignContent:"flex-start",alignItems:"stretch",flexWrap:"wrap",flex:`0 0 ${$C}px`},itemTile:e=>({position:"relative",userSelect:"none",cursor:"pointer",height:Mp,width:$C,display:"inline-block",textAlign:"center",opacity:.1,transition:"opacity 1s",margin:"4px",borderRadius:"4px","&:hover":{background:e.palette.secondary.light,color:U.invertColor(e.palette.secondary.main,!0)}}),itemNameFolderTile:{fontWeight:"bold"},itemNameTile:{width:"100%",height:32,overflow:"hidden",textOverflow:"ellipsis",fontSize:12,textAlign:"center",wordBreak:"break-all"},itemFolderIconTile:e=>({width:"100%",height:Mp-32-16-8,display:"block",pl:1,color:e.palette.secondary.main||"#fbff7d"}),itemFolderIconBack:e=>({position:"absolute",top:22,left:18,zIndex:1,color:e.palette.mode==="dark"?"#FFF":"#000"}),itemSizeTile:{width:"100%",height:16,textAlign:"center",fontSize:10},itemImageTile:{width:"calc(100% - 8px)",height:Mp-32-16-8,margin:4,display:"block",textAlign:"center",objectFit:"contain"},itemIconTile:{width:"100%",height:Mp-32-16-8,display:"block",objectFit:"contain"},itemSelected:e=>({background:e.palette.primary.main,color:U.invertColor(e.palette.primary.main,!0)}),itemTable:e=>({userSelect:"none",cursor:"pointer",height:Oi,display:"inline-flex",lineHeight:`${Oi}px`,"&:hover":{background:e.palette.secondary.light,color:U.invertColor(e.palette.secondary.main,!0)}}),itemNameTable:{display:"inline-block",pl:"10px",fontSize:"1rem",verticalAlign:"top",flexGrow:1,textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden","@media screen and (max-width: 500px)":{textAlign:"end",direction:"rtl"}},itemNameFolderTable:{fontWeight:"bold"},itemSizeTable:{display:"inline-block",width:60,verticalAlign:"top",textAlign:"right",whiteSpace:"nowrap"},itemAccessTable:{verticalAlign:"top",width:60,textAlign:"right",paddingRight:5,display:"flex",justifyContent:"center"},itemImageTable:{display:"inline-block",width:30,marginTop:1,objectFit:"contain",maxHeight:30},itemNoImageTable:{marginTop:6},itemIconTable:{display:"inline-block",marginTop:1,width:30,height:30},itemFolderTable:{},itemFolderTemp:{opacity:.4},itemFolderIconTable:e=>({marginTop:"1px",marginLeft:"8px",display:"inline-block",width:30,height:30,color:e.palette.secondary.main||"#fbff7d"}),itemDownloadButtonTable:e=>({display:"inline-block",width:es,height:Oi,minWidth:es,verticalAlign:"middle",textAlign:"center",padding:0,borderRadius:`${es/2}px`,"&:hover":{backgroundColor:e.palette.mode==="dark"?"rgba(255, 255, 255, 0.08)":"rgba(0, 0, 0, 0.08)"},"& span":{pt:"9px"},"& svg":{width:14,height:14,fontSize:"1rem",mt:"-3px",verticalAlign:"middle",color:e.palette.mode==="dark"?"#EEE":"#111"}}),itemDownloadEmptyTable:{display:"inline-block",width:es,height:Oi,minWidth:es,padding:0},itemAclButtonTable:{width:es,height:Oi,minWidth:es,verticalAlign:"top",padding:0,fontSize:12,display:"flex"},itemDeleteButtonTable:{display:"inline-block",width:es,height:Oi,minWidth:es,verticalAlign:"top",padding:0,"& svg":{width:18,height:18,fontSize:"1.5rem"}},uploadDiv:{top:0,zIndex:1,bottom:0,left:0,right:0,position:"absolute",opacity:.9,textAlign:"center",background:"#FFFFFF"},uploadDivDragging:{opacity:1},uploadCenterDiv:e=>({m:"20px",border:"3px dashed grey",borderRadius:"30px",width:"calc(100% - 40px)",height:"calc(100% - 40px)",position:"relative",color:e.palette.mode==="dark"?"#222":"#CCC",display:"flex",alignItems:"center",justifyContent:"center"}),uploadCenterIcon:{width:"25%",height:"25%"},uploadCenterText:{fontSize:24,fontWeight:"bold"},uploadCloseButton:{zIndex:2,position:"absolute",top:30,right:30},uploadCenterTextAndIcon:{position:"absolute",height:"30%",width:"100%",margin:"auto",opacity:.3},menuButtonExpertActive:{color:"#c00000"},menuButtonRestrictActive:{color:"#c05000"},pathDiv:e=>({display:"flex",width:"calc(100% - 16px)",ml:1,mr:1,textOverflow:"clip",overflow:"hidden",whiteSpace:"nowrap",backgroundColor:e.palette.secondary.main}),pathDivInput:{width:"100%"},pathDivBreadcrumbDir:e=>({pl:"2px",pr:"2px",cursor:"pointer","&:hover":{background:e.palette.primary.main}}),pathDivBreadcrumbSelected:{},backgroundImageLight:{background:"white"},backgroundImageDark:{background:"black"},backgroundImageColored:{background:"silver"},specialFolder:e=>({color:e.palette.mode==="dark"?"#229b0f":"#5dd300"}),tooltip:{pointerEvents:"none"}},Ts="0_userdata.0";function Di(e){const t=(e||"").split("/");return t.length&&t.pop(),t.join("/")}function C_(e){const t=U.getFileExtension(e);return!!(t!=null&&t.toLowerCase().match(/[a-z]+/)&&t.length<5)}const ot="Table",E_="Tile";function EC(e,t){return e.folder&&t.folder?e.name>t.name?1:e.namet.name?1:e.name{const s=`${n}/${r}`,a=s.lastIndexOf("/"),i=s.substring(0,a);console.log(`File changed ${s}[${o}]`),this.state.folders[i]&&(this._tempTimeout[i]&&clearTimeout(this._tempTimeout[i]),this._tempTimeout[i]=setTimeout(()=>{delete this._tempTimeout[i],this.browseFolder(i,null,!1,!0).then(l=>this.setState({folders:l})).catch(l=>console.error(`Cannot read folder: ${l.message}`))},300))});L(this,"setStateBackgroundImage",()=>{const n=["light","dark","colored","delete"];this.setState(({backgroundImage:r})=>r&&n.indexOf(r)!==-1&&n.length-1!==n.indexOf(r)?(this.localStorage.setItem("files.backgroundImage",n[n.indexOf(r)+1]),{backgroundImage:n[n.indexOf(r)+1]}):(this.localStorage.setItem("files.backgroundImage",n[0]),{backgroundImage:n[0]}))});L(this,"getStyleBackgroundImage",()=>{switch(this.state.backgroundImage){case"light":return ae.backgroundImageLight;case"dark":return ae.backgroundImageDark;case"colored":return ae.backgroundImageColored;case"delete":return null;default:return null}});this.localStorage=window._localStorage||window.localStorage;const r=this.localStorage.getItem("files.expanded")||"[]";if(this.props.limitPath){const d=this.props.limitPath.split("/");this.limitToObjectID=d[0],this.limitToPath=d.length?d.length===1&&d[0]===""?null:d.join("/"):null,this.limitToPath&&this.limitToPath.endsWith("/")&&this.limitToPath.substring(0,this.limitToPath.length-1)}let o;try{o=JSON.parse(r),this.limitToPath&&(o=o.filter(d=>{var u;return d.startsWith(`${this.limitToPath}/`)||d===this.limitToPath||((u=this.limitToPath)==null?void 0:u.startsWith(`${d}/`))}))}catch{o=[]}let s;this.props.showViewTypeButton?s=this.localStorage.getItem("files.viewType")||ot:s=ot;let a=this.props.selected||this.localStorage.getItem("files.selected")||Ts,i;if(n.restrictToFolder){a=n.restrictToFolder,i=n.restrictToFolder;const d=n.restrictToFolder.split("/");o=[];let u="";for(let c=0;c{if(this.state.viewType===ot&&!this.findItem(this.state.selected)){const r=this.state.selected.split("/");for(;r.length&&!this.findItem(r.join("/"));)r.pop();let o;r.length?o=r.join("/"):o=Ts,this.setState({selected:o,path:o,pathFocus:!1},()=>this.scrollToSelected())}else this.scrollToSelected();this.initialReadFinished=!0})}scrollToSelected(){if(this.mounted){const n=document.getElementById(this.state.selected);n==null||n.scrollIntoView()}}async componentDidMount(){this.mounted=!0,this.loadFolders().catch(n=>console.error(`Cannot load folders: ${n}`)),this.supportSubscribes=await this.props.socket.checkFeatureSupported("BINARY_STATE_EVENT"),this.supportSubscribes&&await this.props.socket.subscribeFiles("*","*",this.onFileChange)}componentWillUnmount(){this.supportSubscribes&&this.props.socket.unsubscribeFiles("*","*",this.onFileChange),this.mounted=!1,this.browseList=null,this.browseListRunning=!1,Object.values(this._tempTimeout).forEach(n=>n&&clearTimeout(n)),this._tempTimeout={}}browseFoldersCb(n,r,o){if(!(n!=null&&n.length))o(r);else{const s=n.shift();s?this.browseFolder(s,r).catch(a=>console.error(`Cannot read folder ${s}: ${a.message}`)).then(()=>{setTimeout(()=>this.browseFoldersCb(n,r,o),0)}):setTimeout(()=>this.browseFoldersCb(n,r,o),0)}}browseFolders(n,r){let o;return r?o=r:(o={},Object.keys(this.state.folders).forEach(s=>o[s]=this.state.folders[s])),n!=null&&n.length?new Promise(s=>{this.browseFoldersCb(n,o,s)}):Promise.resolve(o)}readDirSerial(n,r){return new Promise((o,s)=>{this.browseList&&(this.browseList.push({resolve:o,reject:s,adapter:n,relPath:r}),this.browseListRunning||this.processBrowseList())})}processBrowseList(n=0){!this.browseListRunning&&this.browseList&&this.browseList.length&&(this.browseListRunning=!0,this.browseList.length>10?this.browseList.length%10||this.setState({queueLength:this.browseList.length}):this.setState({queueLength:this.browseList.length}),this.browseList[0].processing=!0,this.props.socket.readDir(this.browseList[0].adapter,this.browseList[0].relPath).then(r=>{if(this.browseList){const o=this.browseList.shift();if(o){const s=o.resolve;o.resolve=null,o.reject=null,o.adapter=null,o.relPath=null,s&&s(r),this.browseListRunning=!1,this.browseList.length?n<5?this.processBrowseList(n+1):setTimeout(()=>this.processBrowseList(0),0):this.setState({queueLength:0})}else this.setState({queueLength:0})}}).catch(r=>{if(this.browseList){const o=this.browseList.shift();if(o){const s=o.reject;o.resolve=null,o.reject=null,o.adapter=null,o.relPath=null,s&&s(r),this.browseListRunning=!1,this.browseList.length?n<5?this.processBrowseList(n+1):setTimeout(()=>this.processBrowseList(0),0):this.setState({queueLength:0})}else this.setState({queueLength:0})}}))}async browseFolder(n,r,o,s){let a;if(r?a=r:(a={},Object.keys(this.state.folders).forEach(h=>{a[h]=this.state.folders[h]})),a[n]&&!s)return o?Promise.resolve(a):new Promise((h,f)=>{Promise.all(a[n].filter(g=>g.folder).map(g=>this.browseFolder(g.id,a,!0).catch(()=>{}))).then(()=>h(a)).catch(g=>f(new Error(g)))});if(!n||n==="/"){try{let h=await this.props.socket.readMetaItems();const f=[];let g=null;if(this.state.restrictToFolder){const w=this.state.restrictToFolder.split("/")[0];h=h.filter(v=>v._id===w)}else this.state.expertMode||(h=h.filter(w=>!w._id.endsWith(".admin")));const _=h.findIndex(w=>w._id==="system.meta.uuid");if(_!==-1&&h.splice(_,1),h.forEach(w=>{if(this.limitToObjectID&&this.limitToObjectID!==w._id)return;const v={id:w._id,name:w._id,title:w.common&&w.common.name||w._id,meta:!0,from:w.from,ts:w.ts,color:w.common&&w.common.color,icon:w.common&&w.common.icon,folder:!0,acl:w.acl,level:0};v.id===Ts?g=v:f.push(v)}),f.sort((w,v)=>w.id>v.id?1:w.idw.folder).map(w=>this.browseFolder(w.id,a,!0).catch(()=>{}))).then(()=>a)}catch(h){const f=h;this.initialReadFinished&&window.alert(`Cannot read meta items: ${f.message}`),a[n||"/"]=[]}return a}const i=n.split("/"),l=i.length,d=i.shift(),u=i.join("/");let c;try{c=await this.readDirSerial(d||"",u)}catch(h){if(h==="Not exists"&&d==="0_userdata.0")c=[];else throw h}try{const h=[];if(c.forEach(f=>{var _;const g={id:`${n}/${f.file}`,ext:U.getFileExtension(f.file),folder:f.isDir,name:f.file,size:(_=f.stats)==null?void 0:_.size,modified:f.modifiedAt,acl:f.acl,level:l};this.state.restrictToFolder?(g.folder&&(g.id.startsWith(`${this.state.restrictToFolder}/`)||g.id===this.state.restrictToFolder||this.state.restrictToFolder.startsWith(`${g.id}/`))||g.id.startsWith(`${this.state.restrictToFolder}/`))&&h.push(g):this.limitToPath?(g.folder&&(g.id.startsWith(`${this.limitToPath}/`)||g.id===this.limitToPath||this.limitToPath.startsWith(`${g.id}/`))||g.id.startsWith(`${this.limitToPath}/`))&&h.push(g):h.push(g)}),h.sort(EC),a[n]=h,!o)return Promise.all(h.filter(f=>f.folder).map(f=>this.browseFolder(f.id,a,!0))).then(()=>a)}catch(h){const f=h;this.initialReadFinished&&window.alert(`Cannot read ${d}${u?`/${u}`:""}: ${f==null?void 0:f.message}`),a[n]=[]}return a}toggleFolder(n,r){r==null||r.stopPropagation();const o=[...this.state.expanded],s=o.indexOf(n.id);s===-1?(o.push(n.id),o.sort(),this.localStorage.setItem("files.expanded",JSON.stringify(o)),n.temp?this.setState({expanded:o}):this.browseFolder(n.id).then(a=>this.setState({expanded:o,folders:a})).catch(a=>window.alert(a===CC?this.props.t('ra_Cannot find "%s"',n.id):this.props.t('ra_Cannot read "%s"',n.id)))):(o.splice(s,1),this.localStorage.setItem("files.expanded",JSON.stringify(o)),this.setState({expanded:o}))}changeFolder(n,r){n==null||n.stopPropagation(),this.lastSelect=Date.now();let o=r||Di(this.state.currentDir);if(o==="/"&&(o=""),this.localStorage.setItem("files.currentDir",o),r&&n&&(n.altKey||n.shiftKey||n.ctrlKey||n.metaKey)){this.setState({selected:o});return}if(o&&!this.state.folders[o]){this.browseFolder(o).then(s=>this.setState({folders:s,path:o,currentDir:o,selected:o,pathFocus:!1},()=>this.props.onSelect&&this.props.onSelect(""))).catch(s=>console.error(`Cannot read folder: ${s.message}`));return}this.setState({currentDir:o,selected:o,path:o,pathFocus:!1},()=>this.props.onSelect&&this.props.onSelect(""))}select(n,r,o){r&&r.stopPropagation(),this.lastSelect=Date.now(),this.localStorage.setItem("files.selected",n),this.setState({selected:n,path:n,pathFocus:!1},()=>{if(this.props.onSelect){const s=U.getFileExtension(n);(!this.props.filterFiles||s&&this.props.filterFiles.includes(s))&&(!this.state.filterByType||s&&Tn[this.state.filterByType].includes(s))?this.props.onSelect(n,!1,!!this.state.folders[n]):this.props.onSelect("")}o&&o()})}getText(n){if(n)return typeof n=="object"?n[this.props.lang]||n.en||void 0:n}renderFolder(n,r){if(this.state.viewType===ot&&this.state.filterEmpty&&(!this.state.folders[n.id]||!this.state.folders[n.id].length)&&n.id!==Ts&&!n.temp)return null;const o=r?gh:Tl,s=this.state.viewType===ot?n.level*this.levelPadding:0,a=n.name===Ts,i=a||n.name==="vis.0"||n.name==="vis-2.0",l=U.getStyle(this.props.theme,ae[`itemFolderIcon${this.state.viewType}`],i&&ae.specialFolder);return p.createElement(Ce,{component:"div",key:n.id,id:n.id,style:this.state.viewType===ot?{marginLeft:s,width:`calc(100% - ${s}px`}:{},onClick:d=>this.state.viewType===ot?this.select(n.id,d):this.changeFolder(d,n.id),onDoubleClick:d=>this.state.viewType===ot&&this.toggleFolder(n,d),title:this.getText(n.title),className:"browserItem",sx:U.getStyle(this.props.theme,ae[`item${this.state.viewType}`],ae[`itemFolder${this.state.viewType}`],this.state.selected===n.id?ae.itemSelected:{},n.temp?ae.itemFolderTemp:{})},p.createElement(o,{style:l,onClick:this.state.viewType===ot?d=>this.toggleFolder(n,d):void 0}),p.createElement(Ce,{component:"div",sx:U.getStyle(this.props.theme,ae[`itemName${this.state.viewType}`],ae[`itemNameFolder${this.state.viewType}`])},a?this.props.t("ra_User files"):n.name),p.createElement(Ce,{component:"div",style:ae[`itemSize${this.state.viewType}`],sx:{display:{md:"inline-block",sm:"none"}}},this.state.viewType===ot&&this.state.folders[n.id]?this.state.folders[n.id].length:""),p.createElement(Ce,{component:"div",sx:{display:{md:"inline-block",sm:"none"}}},this.state.viewType===ot&&this.props.expertMode?this.formatAcl(n.acl):null),this.state.viewType===ot&&this.props.expertMode?p.createElement(Ce,{component:"div",sx:{...ae.itemDeleteButtonTable,display:{md:"inline-block",sm:"none"}}}):null,this.state.viewType===ot&&this.props.allowDownload?p.createElement("div",{style:ae[`itemDownloadEmpty${this.state.viewType}`]}):null,this.state.viewType===ot&&this.props.allowDelete&&this.state.folders[n.id]&&this.state.folders[n.id].length?p.createElement(fe,{"aria-label":"delete",onClick:d=>{d.stopPropagation(),this.suppressDeleteConfirm>Date.now()?this.deleteItem(n.id):this.setState({deleteItem:n.id})},sx:ae[`itemDeleteButton${this.state.viewType}`],size:"large"},p.createElement(ra,{fontSize:"small"})):this.state.viewType===ot&&this.props.allowDelete?p.createElement(Ce,{component:"div",sx:ae[`itemDeleteButton${this.state.viewType}`]}):null)}renderBackFolder(){return p.createElement(Ce,{component:"div",key:this.state.currentDir,id:this.state.currentDir,onClick:n=>this.changeFolder(n),title:this.props.t("ra_Back to %s",Di(this.state.currentDir)),className:"browserItem",sx:U.getStyle(this.props.theme,ae[`item${this.state.viewType}`],ae[`itemFolder${this.state.viewType}`])},p.createElement(Tl,{style:U.getStyle(this.props.theme,ae[`itemFolderIcon${this.state.viewType}`])}),p.createElement(qU,{sx:ae.itemFolderIconBack}),p.createElement(Ce,{component:"div",sx:U.getStyle(this.props.theme,ae[`itemName${this.state.viewType}`],ae[`itemNameFolder${this.state.viewType}`])},".."))}formatSize(n){return p.createElement("div",{style:ae[`itemSize${this.state.viewType}`]},n||n===0?U.formatBytes(n):"")}formatAcl(n){const r=n?n.permissions||n.file:0;let o;return r?o=r.toString(16).padStart(3,"0"):o="",p.createElement("div",{style:ae[`itemAccess${this.state.viewType}`]},this.props.modalEditOfAccessControl?p.createElement(fe,{size:"large",onClick:()=>this.setState({modalEditOfAccess:!0}),sx:ae[`itemAclButton${this.state.viewType}`]},o||"---"):o||"---")}getFileIcon(n){switch(n){case"json":case"json5":return p.createElement(KU,{style:ae[`itemIcon${this.state.viewType}`]});case"css":return p.createElement(ZU,{style:ae[`itemIcon${this.state.viewType}`]});case"js":case"ts":return p.createElement(Ub,{style:ae[`itemIcon${this.state.viewType}`]});case"html":case"md":return p.createElement(Vb,{style:ae[`itemIcon${this.state.viewType}`]});case"mp3":case"ogg":case"wav":case"m4a":case"mp4":case"flac":return p.createElement(kV,{style:ae[`itemIcon${this.state.viewType}`]});default:return p.createElement(j4,{style:ae[`itemIcon${this.state.viewType}`]})}}static getEditFile(n){switch(n){case"json":case"json5":case"js":case"html":case"txt":case"css":case"log":return!0;default:return!1}}renderFile(n){const r=this.state.viewType===ot?n.level*this.levelPadding:0,o=U.getFileExtension(n.name);return p.createElement(Ce,{component:"div",key:n.id,id:n.id,onDoubleClick:s=>{s.stopPropagation(),this.props.onSelect?(!this.props.filterFiles||n.ext&&this.props.filterFiles.includes(n.ext))&&(!this.state.filterByType||n.ext&&Tn[this.state.filterByType].includes(n.ext))&&this.props.onSelect(n.id,!0,!!this.state.folders[n.id]):this.setState({viewer:this.imagePrefix+n.id,formatEditFile:o})},onClick:s=>this.select(n.id,s),style:this.state.viewType===ot?{marginLeft:r,width:`calc(100% - ${r}px)`}:{},className:"browserItem",sx:U.getStyle(this.props.theme,ae[`item${this.state.viewType}`],ae[`itemFile${this.state.viewType}`],this.state.selected===n.id?ae.itemSelected:void 0)},o&&Tn.images.includes(o)?this.state.fileErrors.includes(n.id)?p.createElement(R1,{style:{...ae[`itemImage${this.state.viewType}`],...this.getStyleBackgroundImage(),...ae[`itemNoImage${this.state.viewType}`]}}):p.createElement(Gs,{onError:s=>{s.target.onerror=null;const a=[...this.state.fileErrors];a.includes(n.id)||(a.push(n.id),this.setState({fileErrors:a}))},style:{...ae[`itemImage${this.state.viewType}`],...this.getStyleBackgroundImage()},src:this.imagePrefix+n.id,alt:n.name}):this.getFileIcon(o),p.createElement(Ce,{component:"div",sx:ae[`itemName${this.state.viewType}`]},n.name),p.createElement(Ce,{component:"div",sx:{display:{md:"inline-block",sm:"none"}}},this.formatSize(n.size)),p.createElement(Ce,{component:"div",sx:{display:{md:"inline-block",sm:"none"}}},this.state.viewType===ot&&this.props.expertMode?this.formatAcl(n.acl):null),p.createElement(Ce,{component:"div",sx:{display:{md:"inline-block",sm:"none"}}},this.state.viewType===ot&&this.props.expertMode&&P1.getEditFile(o)?p.createElement(fe,{"aria-label":"edit",onClick:s=>{s.stopPropagation(),this.props.onSelect?(!this.props.filterFiles||n.ext&&this.props.filterFiles.includes(n.ext))&&(!this.state.filterByType||n.ext&&Tn[this.state.filterByType].includes(n.ext))&&this.props.onSelect(n.id,!0,!!this.state.folders[n.id]):this.setState({viewer:this.imagePrefix+n.id,formatEditFile:o})},sx:ae.itemDeleteButtonTable,size:"large"},p.createElement(Ed,{fontSize:"small"})):p.createElement(Ce,{component:"div",sx:ae[`itemDeleteButton${this.state.viewType}`]})),this.state.viewType===ot&&this.props.allowDownload?p.createElement(Ce,{component:"a",className:"MuiButtonBase-root MuiIconButton-root MuiIconButton-sizeLarge",sx:ae.itemDownloadButtonTable,tabIndex:0,download:n.id,href:this.imagePrefix+n.id,onClick:s=>s.stopPropagation()},p.createElement(TV,null)):null,this.state.viewType===ot&&this.props.allowDelete&&n.id!=="vis.0/"&&n.id!=="vis-2.0/"&&n.id!==Ts?p.createElement(fe,{"aria-label":"delete",onClick:s=>{s.stopPropagation(),this.suppressDeleteConfirm>Date.now()?this.deleteItem(n.id):this.setState({deleteItem:n.id})},sx:ae[`itemDeleteButton${this.state.viewType}`],size:"large"},p.createElement(ra,{fontSize:"small"})):this.state.viewType===ot&&this.props.allowDelete?p.createElement(Ce,{component:"div",sx:ae[`itemDeleteButton${this.state.viewType}`]}):null)}renderItems(n){if(this.state.folders&&this.state.folders[n]){if(this.state.viewType===E_){const o=[];return n&&n!=="/"&&o.push(this.renderBackFolder()),this.state.folders[n].forEach(s=>{s.folder?o.push(this.renderFolder(s)):(!this.props.filterFiles||s.ext&&this.props.filterFiles.includes(s.ext))&&(!this.state.filterByType||s.ext&&Tn[this.state.filterByType].includes(s.ext))&&o.push(this.renderFile(s))}),o}const r=[];return this.state.folders[n].forEach(o=>{if(o.folder){const s=this.state.expanded.includes(o.id),a=this.renderFolder(o,s);if(Array.isArray(a)?a.forEach(i=>r.push(i)):r.push(a),this.state.folders[o.id]&&s){const i=this.renderItems(o.id);Array.isArray(i)?i.forEach(l=>r.push(l)):r.push(i)}}else(!this.props.filterFiles||o.ext&&this.props.filterFiles.includes(o.ext))&&(!this.state.filterByType||o.ext&&Tn[this.state.filterByType].includes(o.ext))&&r.push(this.renderFile(o))}),r}return p.createElement("div",{style:{position:"relative"}},p.createElement(Un,{key:n,color:"secondary",size:24}),p.createElement("div",{style:{position:"absolute",zIndex:2,top:4,width:24,textAlign:"center"}},this.state.queueLength))}renderToolbar(){const n=this.props.showTypeSelector?jp[this.state.filterByType||"all"]||jp.all:null,r=this.findFirstFolder(this.state.selected);return p.createElement(Ab,{key:"toolbar",variant:"dense"},this.props.allowNonRestricted&&this.props.restrictToFolder?p.createElement(fe,{edge:"start",title:this.state.restrictToFolder?this.props.t("ra_Show all folders"):this.props.t("ra_Restrict to folder"),style:{...ae.menuButton,...this.state.restrictToFolder?ae.menuButtonRestrictActive:void 0},"aria-label":"restricted to folder",onClick:()=>this.setState({restrictToFolder:(this.state.restrictToFolder?"":this.props.restrictToFolder)||"",loadAllFolders:!0}),size:"small"},p.createElement(uV,{fontSize:"small"})):null,this.props.showExpertButton?p.createElement(fe,{edge:"start",title:this.props.t("ra_Toggle expert mode"),style:{...ae.menuButton,...this.state.expertMode?ae.menuButtonExpertActive:void 0},"aria-label":"expert mode",onClick:()=>this.setState({expertMode:!this.state.expertMode}),size:"small"},p.createElement($f,null)):null,this.props.showViewTypeButton?p.createElement(fe,{edge:"start",title:this.props.t("ra_Toggle view mode"),style:ae.menuButton,"aria-label":"view mode",onClick:()=>{const o=this.state.viewType===ot?E_:ot;this.localStorage.setItem("files.viewType",o);let s=this.state.selected;C_(s)&&(s=Di(s)),this.setState({viewType:o,currentDir:s},()=>{this.state.viewType===ot&&this.scrollToSelected()})},size:"small"},this.state.viewType!==ot?p.createElement(yV,{fontSize:"small"}):p.createElement(PV,{fontSize:"small"})):null,p.createElement(fe,{edge:"start",title:this.props.t("ra_Hide empty folders"),style:ae.menuButton,color:this.state.filterEmpty?"secondary":"inherit","aria-label":"filter empty",onClick:()=>{this.localStorage.setItem("file.empty",this.state.filterEmpty?"false":"true"),this.setState({filterEmpty:!this.state.filterEmpty})},size:"small"},p.createElement(dV,{fontSize:"small"})),p.createElement(fe,{edge:"start",title:this.props.t("ra_Reload files"),style:ae.menuButton,color:"inherit","aria-label":"reload files",onClick:()=>this.setState({folders:{}},()=>this.loadFolders()),size:"small"},p.createElement(R4,{fontSize:"small"})),this.props.allowCreateFolder?p.createElement(fe,{edge:"start",disabled:!this.state.selected||!r||!!this.limitToPath&&!this.state.selected.startsWith(`${this.limitToPath}/`)&&this.limitToPath!==this.state.selected,title:this.props.t("ra_Create folder"),style:ae.menuButton,color:"inherit","aria-label":"add folder",onClick:()=>this.setState({addFolder:!0}),size:"small"},p.createElement(M4,{fontSize:"small"})):null,this.props.allowUpload?p.createElement(fe,{edge:"start",disabled:!this.state.selected||!r||!!this.limitToPath&&!this.state.selected.startsWith(`${this.limitToPath}/`)&&this.limitToPath!==this.state.selected,title:this.props.t("ra_Upload file"),style:ae.menuButton,color:"inherit","aria-label":"upload file",onClick:()=>this.setState({uploadFile:!0}),size:"small"},p.createElement(uf,{fontSize:"small"})):null,this.props.showTypeSelector&&n?p.createElement(cn,{title:this.props.t("ra_Filter files"),slotProps:{popper:{sx:ae.tooltip}}},p.createElement(fe,{size:"small",onClick:o=>this.setState({showTypesMenu:o.target})},p.createElement(n,{fontSize:"small"}))):null,this.state.showTypesMenu?p.createElement(Cd,{open:!0,anchorEl:this.state.showTypesMenu,onClose:()=>this.setState({showTypesMenu:null})},Object.keys(jp).map(o=>{const s=jp[o];return p.createElement(ze,{key:o,selected:this.state.filterByType===o,onClick:()=>{o==="all"?(this.localStorage.removeItem("files.filterByType"),this.setState({filterByType:"",showTypesMenu:null})):(this.localStorage.setItem("files.filterByType",o),this.setState({filterByType:o,showTypesMenu:null}))}},p.createElement(Ri,null,p.createElement(s,{fontSize:"small"})),p.createElement(As,null,this.props.t(`ra_fileType_${o}`)))})):null,p.createElement(cn,{title:this.props.t("ra_Background image"),slotProps:{popper:{sx:ae.tooltip}}},p.createElement(fe,{color:"inherit",edge:"start",style:ae.menuButton,onClick:this.setStateBackgroundImage,size:"small"},p.createElement(N4,{fontSize:"small"}))),this.state.viewType!==ot&&this.props.allowDelete?p.createElement(cn,{title:this.props.t("ra_Delete"),slotProps:{popper:{sx:ae.tooltip}}},p.createElement("span",null,p.createElement(fe,{"aria-label":"delete",disabled:!this.state.selected||this.state.selected==="vis.0/"||this.state.selected==="vis-2.0/"||this.state.selected===Ts,color:"inherit",edge:"start",style:ae.menuButton,onClick:o=>{o.stopPropagation(),this.suppressDeleteConfirm>Date.now()?this.deleteItem(this.state.selected):this.setState({deleteItem:this.state.selected})},size:"small"},p.createElement(ra,{fontSize:"small"})))):null)}findItem(n,r){if(r=r||this.state.folders,!r)return null;const o=n.split("/");o.pop();const s=o.join("/")||"/";return r[s]&&r[s].find(a=>a.id===n)||null}renderInputDialog(){if(this.state.addFolder){const n=this.findFirstFolder(this.state.selected);return n?p.createElement(Ort,{key:"inputDialog",applyText:this.props.t("ra_Create"),cancelText:this.props.t("ra_Cancel"),titleText:this.props.t("ra_Create new folder in %s",this.state.selected),promptText:this.props.t("ra_If no file will be created in the folder, it will disappear after the browser closed"),labelText:this.props.t("ra_Folder name"),verify:r=>this.state.folders[n].find(o=>o.name===r)?"":this.props.t("ra_Duplicate name"),onClose:r=>{if(r){const o={};Object.keys(this.state.folders).forEach(l=>o[l]=this.state.folders[l]);const s=this.findItem(n),a=`${n}/${r}`;o[n].push({id:a,level:((s==null?void 0:s.level)||0)+1,name:r,folder:!0,temp:!0}),o[n].sort(EC),o[a]=[];const i=[...this.state.expanded];i.includes(n)||(i.push(n),i.sort()),this.localStorage.setItem("files.expanded",JSON.stringify(i)),this.setState({addFolder:!1,folders:o,expanded:i},()=>this.select(a))}else this.setState({addFolder:!1})},replace:r=>r.replace(/[^-_\w]/,"_")}):(window.alert(this.props.t("ra_Invalid parent folder!")),null)}return null}componentDidUpdate(){this.setOpacityTimer&&clearTimeout(this.setOpacityTimer),this.setOpacityTimer=setTimeout(()=>{this.setOpacityTimer=null;const n=window.document.getElementsByClassName("browserItem");for(let r=0;rthis.setState({uploadFile:!1})},p.createElement($t,null)),p.createElement(ug,{key:"dropzone",onDragEnter:()=>this.setState({uploadFile:"dragging"}),onDragLeave:()=>this.setState({uploadFile:!0}),onDrop:n=>{let r=n.length;n.forEach(o=>{const s=new FileReader;s.onabort=()=>console.log("file reading was aborted"),s.onerror=()=>console.log("file reading has failed"),s.onload=()=>{const a=this.findFirstFolder(this.state.selected);if(!a)window.alert(this.props.t("ra_Invalid parent folder!"));else{const i=`${a}/${o.name}`;this.uploadFile(i,s.result).then(()=>{--r||this.setState({uploadFile:!1},()=>{if(this.supportSubscribes){const l=[...this.state.expanded];l.includes(a)||(l.push(a),l.sort(),this.localStorage.setItem("files.expanded",JSON.stringify(l))),this.setState({expanded:l},()=>this.select(i))}else setTimeout(()=>this.browseFolder(a,null,!1,!0).then(l=>{const d=[...this.state.expanded];d.includes(a)||(d.push(a),d.sort(),this.localStorage.setItem("files.expanded",JSON.stringify(d))),this.setState({folders:l,expanded:d},()=>this.select(i))}),500)})})}},s.readAsArrayBuffer(o)})}},({getRootProps:n,getInputProps:r})=>p.createElement("div",{style:{...ae.uploadDiv,...this.state.uploadFile==="dragging"?ae.uploadDivDragging:void 0},...n()},p.createElement("input",{...r()}),p.createElement(Ce,{component:"div",sx:ae.uploadCenterDiv},p.createElement("div",{style:ae.uploadCenterTextAndIcon},p.createElement(uf,{style:ae.uploadCenterIcon}),p.createElement("div",{style:ae.uploadCenterText},this.state.uploadFile==="dragging"?this.props.t("ra_Drop file here"):this.props.t("ra_Place your files here or click here to open the browse dialog"))))))]:null}deleteRecursive(n){const r=this.findItem(n);if(r!=null&&r.folder)return(this.state.folders[n]?Promise.all(this.state.folders[n].map(a=>this.deleteRecursive(a.id))):Promise.resolve()).then(()=>{if(r.level>=1){const a=n.split("/"),i=a.shift();this.props.socket.deleteFolder(i||"",a.join("/")).then(()=>{const l=JSON.parse(JSON.stringify(this.state.folders));delete l[r.id];const d=Di(r.id),u=l[d];if(u){const c=u.findIndex(h=>h.id===r.id);c!==-1&&u.splice(c,1),this.select(d,null,()=>this.setState({folders:l}))}})}});const o=n.split("/"),s=o.shift();return o.length?this.props.socket.deleteFile(s||"",o.join("/")).catch(a=>window.alert(`Cannot delete file: ${a}`)):Promise.resolve()}deleteItem(n){n=n||this.state.deleteItem,this.setState({deleteItem:""},()=>this.deleteRecursive(n).then(()=>{const r={},o=this.state.expanded.indexOf(n);if(o!==-1){const s=[...this.state.expanded];s.splice(o,1),this.localStorage.setItem("files.expanded",JSON.stringify(s)),r.expanded=s}if(this.state.selected===n){const s=this.state.selected.split("/");s.pop(),r.selected=s.join("/")}if(this.supportSubscribes)this.setState(r);else{const s=this.findFirstFolder(n),a={};Object.keys(this.state.folders).forEach(i=>{i!==s&&!i.startsWith(`${s}/`)&&(a[i]=this.state.folders[i])}),r.folders=a,this.setState(r,()=>setTimeout(()=>{this.browseFolders([...this.state.expanded],a).then(i=>this.setState({folders:i})).catch(i=>console.error(i))},200))}}))}renderDeleteDialog(){return this.state.deleteItem?p.createElement(ft,{key:"deleteDialog",open:!0,onClose:()=>this.setState({deleteItem:""}),"aria-labelledby":"ar_dialog_file_delete_title"},p.createElement(mt,{id:"ar_dialog_file_delete_title"},this.props.t("ra_Confirm deletion of %s",this.state.deleteItem.split("/").pop())),p.createElement(Tt,null,p.createElement(ds,null,this.props.t("ra_Are you sure?"))),p.createElement(Et,null,p.createElement(_e,{color:"grey",variant:"contained",onClick:()=>{this.suppressDeleteConfirm=Date.now()+6e4*5,this.deleteItem("")}},this.props.t("ra_Delete (no confirm for 5 mins)")),p.createElement(_e,{variant:"contained",onClick:()=>this.deleteItem(""),color:"primary",autoFocus:!0},this.props.t("ra_Delete")),p.createElement(_e,{variant:"contained",onClick:()=>this.setState({deleteItem:""}),color:"grey"},this.props.t("ra_Cancel")))):null}renderViewDialog(){return this.state.viewer?p.createElement(dot,{supportSubscribes:this.supportSubscribes,key:this.state.viewer,href:this.state.viewer,formatEditFile:this.state.formatEditFile,themeType:this.props.themeType,setStateBackgroundImage:this.setStateBackgroundImage,getStyleBackgroundImage:this.getStyleBackgroundImage,t:this.props.t,socket:this.props.socket,lang:this.props.lang,expertMode:this.state.expertMode,onClose:()=>this.setState({viewer:"",formatEditFile:""})}):null}renderError(){return this.state.errorText?p.createElement(W4,{key:"errorDialog",text:this.state.errorText,onClose:()=>this.setState({errorText:""})}):null}updateItemsAcl(n){this.cacheFolders=this.cacheFolders||JSON.parse(JSON.stringify(this.state.folders));let r;n.forEach(o=>{const s=this.findItem(o.id,this.cacheFolders);s&&JSON.stringify(s.acl)!==JSON.stringify(o.acl)&&(s.acl=o.acl,r=!0)}),r&&(this.cacheFoldersTimeout&&clearTimeout(this.cacheFoldersTimeout),this.cacheFoldersTimeout=setTimeout(()=>{this.cacheFoldersTimeout=null;const o=this.cacheFolders||{};this.cacheFolders=null,this.setState({folders:o})},200))}changeToPath(){setTimeout(()=>{if(this.state.path!==this.state.selected&&(!this.lastSelect||Date.now()-this.lastSelect>100)){let n=this.state.path;C_(this.state.path)&&(n=Di(this.state.path)),new Promise(r=>{this.state.folders[n]?r(!0):this.browseFolder(n).then(o=>this.setState({folders:o},()=>r(!0))).catch(o=>this.setState({errorText:o===CC?this.props.t('ra_Cannot find "%s"',n):this.props.t('ra_Cannot read "%s"',n)}))}).then(r=>r&&this.setState({selected:this.state.path,currentDir:n,pathFocus:!1})).catch(r=>console.error(r))}else(!this.lastSelect||Date.now()-this.lastSelect>100)&&this.setState({pathFocus:!1})},100)}renderBreadcrumb(){const n=this.state.currentDir.startsWith("/")?this.state.currentDir.split("/"):`/${this.state.currentDir}`.split("/"),r=[];return p.createElement(SP,{style:{paddingLeft:8}},n.map((o,s)=>{o&&r.push(o);const a=r.join("/");return sthis.changeFolder(i,a||"/")},o||this.props.t("ra_Root")):p.createElement("div",{style:ae.pathDivBreadcrumbSelected,key:`${this.state.selected}_${s}`,onClick:()=>this.setState({pathFocus:!0})},o)}))}renderPath(){return p.createElement(Ce,{component:"div",key:"path",sx:ae.pathDiv},this.state.pathFocus?p.createElement(Wn,{value:this.state.path,onKeyDown:n=>{n.key==="Enter"?this.changeToPath():n.key==="Escape"&&this.setState({pathFocus:!1})},endAdornment:p.createElement(fe,{size:"small",onClick:()=>this.changeToPath()},p.createElement(vV,null)),onBlur:()=>this.changeToPath(),onChange:n=>this.setState({path:n.target.value}),style:ae.pathDivInput}):this.renderBreadcrumb())}render(){return this.props.ready?(this.state.loadAllFolders&&!this.foldersLoading&&(this.foldersLoading=!0,setTimeout(()=>{this.setState({loadAllFolders:!1,folders:{}},()=>{this.foldersLoading=!1,this.loadFolders().catch(n=>console.error(`Cannot load folders: ${n}`))})},300)),p.createElement("div",{style:{...ae.root,...this.props.style},className:this.props.className},this.props.showToolbar?this.renderToolbar():null,this.state.viewType===E_?this.renderPath():null,p.createElement("div",{style:{...ae.filesDiv,...ae[`filesDiv${this.state.viewType}`]},onClick:n=>{this.state.viewType!==ot&&(this.state.selected!==(this.state.currentDir||"/")?this.changeFolder(n,this.state.currentDir||"/"):n.stopPropagation())}},this.state.viewType===ot?this.renderItems("/"):this.renderItems(this.state.currentDir||"/"),this.state.viewType!==ot?p.createElement("div",{style:ae.filesDivHint},this.props.t("ra_select_folder_hint")):null),this.props.allowUpload?this.renderInputDialog():null,this.props.allowUpload?this.renderUpload():null,this.props.allowDelete?this.renderDeleteDialog():null,this.props.allowView?this.renderViewDialog():null,this.state.modalEditOfAccess&&this.props.modalEditOfAccessControl?this.props.modalEditOfAccessControl(this):null,this.renderError())):p.createElement(V9,null)}}const uot=pg()(P1);function pot(e){const t=document.createElement("div");t.innerHTML=e;const n=t.firstElementChild;return n!=null&&n.remove?n.remove():n&&t.removeChild(n),t.remove(),n}function hot(e){const t={};if(!e)return t;for(let n,r=0;rs[1].toUpperCase()),t[n]=e[r].value}return t}const Ia=class Ia extends k.Component{constructor(n){var r;super(n);L(this,"svg");this.state={svg:!!((r=this.props.src)!=null&&r.startsWith("data:")),created:!0,color:this.props.color||"",src:this.props.src||"",imgError:!1,showError:!!this.props.showError},this.svg=this.state.svg&&this.state.src?this.getSvgFromData(this.state.src):null}static getDerivedStateFromProps(n,r){var a;const o={};let s=!1;return n&&r&&n.src!==r.src&&(o.src=n.src,o.svg=(a=n.src)==null?void 0:a.startsWith("data:"),o.created=!1,s=!0),n&&r&&n.color!==r.color&&(o.color=n.color,o.created=!1,s=!0),n&&r&&n.showError!==r.showError&&(o.showError=n.showError,s=!0),s?o:null}getSvgFromData(n){const r="data:image/svg+xml;base64,";if(!n.startsWith(r))return null;n=n.substring(r.length);try{n=atob(n);const o=pot(n),s=o.innerHTML,a=hot(o.attributes);return o.remove(),p.createElement("svg",{className:this.props.className,style:this.state.color?{color:this.state.color}:{},...a,dangerouslySetInnerHTML:{__html:s}})}catch{}return null}render(){if(this.state.svg)return this.state.created||setTimeout(()=>{this.svg=this.state.src?this.getSvgFromData(this.state.src):null,this.setState({created:!0})},50),this.svg;if(this.state.src){if(this.state.imgError||!this.state.src)return p.createElement(R1,{className:this.props.className});if(Ia.REMOTE_SERVER&&!this.state.src.startsWith("http://")&&!this.state.src.startsWith("https://")){let n=(this.props.imagePrefix||"")+this.state.src;return n.startsWith("./")?n=Ia.REMOTE_PREFIX+n.substring(2):n.startsWith("/")||(n=Ia.REMOTE_PREFIX+n),p.createElement("img",{className:this.props.className,src:`https://remote-files.iobroker.in${n}`,alt:"",onError:()=>this.props.showError?this.setState({imgError:!0}):this.setState({src:""})})}return p.createElement("img",{className:this.props.className,src:(this.props.imagePrefix||"")+this.state.src,alt:"",onError:()=>this.props.showError?this.setState({imgError:!0}):this.setState({src:""})})}return null}};L(Ia,"REMOTE_SERVER",window.location.hostname.includes("iobroker.in")),L(Ia,"REMOTE_PREFIX",window.location.pathname.substring(0,window.location.pathname.lastIndexOf("/")+1));let TC=Ia;class L1 extends p.Component{constructor(){super(...arguments);L(this,"handleFileSelect",n=>{const r=n.target,o=r==null?void 0:r.files;if(!o||!o.length){console.error("No files found. Please report to developers");return}const s=o[0];if(s){const a=new window.FileReader;a.onload=()=>{var l;const i=((l=a.result)==null?void 0:l.toString())||"";try{const d=JSON.parse(i);d.native&&d.common?d.common.name!==this.props.common.name?this.props.onError&&this.props.onError(E.t("ra_otherConfig",d.common.name)):this.props.onLoad&&this.props.onLoad(d.native):this.props.onError&&this.props.onError(E.t("ra_invalidConfig"))}catch(d){this.props.onError&&this.props.onError(d==null?void 0:d.toString())}},a.readAsText(s)}else alert("Failed to open JSON File")})}static generateFile(n,r){const o=window.document.createElement("a");o.setAttribute("href",`data:application/json;charset=utf-8,${encodeURIComponent(JSON.stringify(r,null,2))}`),o.setAttribute("download",n),o.style.display="none",window.document.body.appendChild(o),o.click(),window.document.body.removeChild(o)}download(){const n={_id:`system.adapter.${this.props.common.name}.${this.props.instance}`,common:JSON.parse(JSON.stringify(this.props.common)),native:this.props.native};n.common.news&&delete n.common.news,n.common.titleLang&&delete n.common.titleLang,n.common.desc&&delete n.common.desc,L1.generateFile(`${n._id}.json`,n)}upload(){const n=window.document.createElement("input");n.setAttribute("type","file"),n.setAttribute("id","files"),n.setAttribute("opacity","0"),n.addEventListener("change",this.handleFileSelect,!1),n.click()}render(){return p.createElement("div",{className:this.props.className,style:this.props.style},this.props.common.icon?p.createElement(Gs,{src:this.props.common.icon,style:{padding:8,width:64},alt:"logo"}):null,this.props.common.readme?p.createElement(Ct,{size:"small",color:"primary","aria-label":"Help",style:{marginRight:5,marginTop:5,float:"right"},onClick:()=>{const n=window.open(this.props.common.readme,"_blank");n==null||n.focus()}},p.createElement(mV,null)):null,p.createElement(Ct,{size:"small",color:"primary","aria-label":"Load config",style:{marginRight:5,marginTop:5,float:"right"},title:E.t("ra_Load configuration from file"),onClick:()=>this.upload()},p.createElement(IV,null)),p.createElement(Ct,{size:"small",color:"primary","aria-label":"Save config",style:{marginRight:5,marginTop:5,float:"right"},title:E.t("ra_Save configuration to file"),onClick:()=>this.download()},p.createElement(jV,null)))}}const fot=e=>p.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",onClick:t=>e.onClick&&e.onClick(t),viewBox:"0 0 512 512",width:e.width||(e.fontSize==="small"?16:20),height:e.height||e.width||(e.fontSize==="small"?16:20),className:e.className,style:e.style},p.createElement("path",{fill:"currentColor",d:"M448 0L320 96v62.06l-83.03 83.03c6.79 4.25 13.27 9.06 19.07 14.87 5.8 5.8 10.62 12.28 14.87 19.07L353.94 192H416l96-128-64-64zM128 278.59L10.92 395.67c-14.55 14.55-14.55 38.15 0 52.71l52.7 52.7c14.56 14.56 38.15 14.56 52.71 0L233.41 384c29.11-29.11 29.11-76.3 0-105.41s-76.3-29.11-105.41 0z"})),x3=e=>p.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",onClick:t=>e.onClick&&e.onClick(t),viewBox:"0 0 320 320",width:e.width||(e.fontSize==="small"?16:20),height:e.height||e.width||(e.fontSize==="small"?16:20),className:e.className,style:e.style},p.createElement("g",{fill:"currentColor"},p.createElement("rect",{rx:"32",height:"272",width:"267",y:"25",x:"25",strokeWidth:"15",stroke:"currentColor",fill:"none"}),p.createElement("ellipse",{stroke:"currentColor",ry:"26",rx:"26",cy:"248",cx:"160",fill:"none",strokeWidth:"15"}),p.createElement("line",{y2:"201.94531",x2:"159.5",y1:"46.94531",x1:"159.5",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",stroke:"currentColor",fill:"none"}),p.createElement("rect",{height:"27",width:"50",y:"79.7979",x:"133.5",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",stroke:"currentColor",fill:"#fff"}))),Ps=e=>p.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",onClick:t=>e.onClick&&e.onClick(t),viewBox:"0 0 512 512",width:e.width||(e.fontSize==="small"?16:20),height:e.height||e.width||(e.fontSize==="small"?16:20),className:e.className,style:e.style},p.createElement("path",{fill:"currentColor",d:"M433.941 65.941l-51.882-51.882A48 48 0 0 0 348.118 0H176c-26.51 0-48 21.49-48 48v48H48c-26.51 0-48 21.49-48 48v320c0 26.51 21.49 48 48 48h224c26.51 0 48-21.49 48-48v-48h80c26.51 0 48-21.49 48-48V99.882a48 48 0 0 0-14.059-33.941zM266 464H54a6 6 0 0 1-6-6V150a6 6 0 0 1 6-6h74v224c0 26.51 21.49 48 48 48h96v42a6 6 0 0 1-6 6zm128-96H182a6 6 0 0 1-6-6V54a6 6 0 0 1 6-6h106v88c0 13.255 10.745 24 24 24h88v202a6 6 0 0 1-6 6zm6-256h-64V48h9.632c1.591 0 3.117.632 4.243 1.757l48.368 48.368a6 6 0 0 1 1.757 4.243V112z"})),k3=e=>p.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",onClick:t=>e.onClick&&e.onClick(t),viewBox:"0 0 320 320",width:e.width||(e.fontSize==="small"?16:20),height:e.height||e.width||(e.fontSize==="small"?16:20),className:e.className,style:e.style},p.createElement("g",{fill:"currentColor"},p.createElement("rect",{rx:"32",height:"272",width:"267",y:"25",x:"25",strokeWidth:"15",stroke:"currentColor",fill:"none"}),p.createElement("ellipse",{stroke:"currentColor",ry:"26",rx:"26",cy:"252",cx:"160",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",fill:"#fff"}),p.createElement("line",{y2:"201.94531",x2:"159.5",y1:"46.94531",x1:"159.5",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",stroke:"currentColor",fill:"none"}),p.createElement("rect",{height:"27",width:"50",y:"140.83068",x:"133.5",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",stroke:"currentColor",fill:"#fff"}),p.createElement("ellipse",{stroke:"currentColor",ry:"26",rx:"26",cy:"251",cx:"241",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",fill:"#fff"}),p.createElement("line",{y2:"200.94531",x2:"240.5",y1:"45.94531",x1:"240.5",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",stroke:"currentColor",fill:"none"}),p.createElement("rect",{height:"27",width:"50",y:"78.7979",x:"214.5",strokeWidth:"15",stroke:"currentColor",fill:"#fff"}),p.createElement("ellipse",{stroke:"currentColor",ry:"26",rx:"26",cy:"252",cx:"84",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",fill:"#fff"}),p.createElement("line",{y2:"201.94531",x2:"83.5",y1:"46.94531",x1:"83.5",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",stroke:"currentColor",fill:"none"}),p.createElement("rect",{height:"27",width:"50",y:"79.7979",x:"57.5",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",stroke:"currentColor",fill:"#fff"}))),mot=e=>p.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",onClick:t=>e.onClick&&e.onClick(t),width:e.width||(e.fontSize==="small"?16:20),height:e.height||e.width||(e.fontSize==="small"?16:20),className:e.className,style:e.style},p.createElement("path",{fill:"currentColor",d:"M369.9 97.9L286 14C277 5 264.8-.1 252.1-.1H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48V131.9c0-12.7-5.1-25-14.1-34zM332.1 128H256V51.9l76.1 76.1zM48 464V48h160v104c0 13.3 10.7 24 24 24h104v288H48z"})),got=e=>p.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",onClick:t=>e.onClick&&e.onClick(t),viewBox:"0 0 512 512",width:e.width||(e.fontSize==="small"?16:20),height:e.height||e.width||(e.fontSize==="small"?16:20),className:e.className,style:e.style},p.createElement("path",{fill:"currentColor",d:"M369.9 97.9L286 14C277 5 264.8-.1 252.1-.1H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48V131.9c0-12.7-5.1-25-14.1-34zM332.1 128H256V51.9l76.1 76.1zM48 464V48h160v104c0 13.3 10.7 24 24 24h104v288H48z"}),p.createElement("path",{fill:"currentColor",stroke:"null",d:"m261,270l-12,0l0,-24c0,-33.12 -26.88,-60 -60,-60s-60,26.88 -60,60l0,24l-12,0c-13.2,0 -24,10.8 -24,24l0,120c0,13.2 10.8,24 24,24l144,0c13.2,0 24,-10.8 24,-24l0,-120c0,-13.2 -10.8,-24 -24,-24zm-72,108c-13.2,0 -24,-10.8 -24,-24s10.8,-24 24,-24s24,10.8 24,24s-10.8,24 -24,24zm37.2,-108l-74.4,0l0,-24c0,-20.52 16.68,-37.2 37.2,-37.2c20.52,0 37.2,16.68 37.2,37.2l0,24z"})),_ot=e=>p.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",onClick:t=>e.onClick&&e.onClick(t),viewBox:"0 0 512 512",width:e.width||(e.fontSize==="small"?16:20),height:e.height||e.width||(e.fontSize==="small"?16:20),className:e.className,style:e.style},p.createElement("path",{fill:"currentColor",d:"M448 0L320 96v62.06l-83.03 83.03c6.79 4.25 13.27 9.06 19.07 14.87 5.8 5.8 10.62 12.28 14.87 19.07L353.94 192H416l96-128-64-64zM128 278.59L10.92 395.67c-14.55 14.55-14.55 38.15 0 52.71l52.7 52.7c14.56 14.56 38.15 14.56 52.71 0L233.41 384c29.11-29.11 29.11-76.3 0-105.41s-76.3-29.11-105.41 0z"})),dd=e=>p.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",onClick:t=>e.onClick&&e.onClick(t),viewBox:"0 0 320 320",width:e.width||(e.fontSize==="small"?16:20),height:e.height||e.width||(e.fontSize==="small"?16:20),className:e.className,style:e.style},p.createElement("rect",{fill:"none",rx:"32",height:"272",width:"267",y:"25",x:"25",strokeWidth:"15",stroke:"currentColor"}),p.createElement("ellipse",{fill:"none",ry:"54",rx:"54",cy:"160",cx:"160",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",stroke:"currentColor"})),vot=e=>p.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",onClick:t=>e.onClick&&e.onClick(t),viewBox:"0 0 24 24",width:e.width||(e.fontSize==="small"?16:20),height:e.height||e.width||(e.fontSize==="small"?16:20),className:e.className,style:e.style},p.createElement("path",{fill:"currentColor",stroke:"currentColor",d:"M4.25 5.61C6.27 8.2 10 13 10 13v6c0 .55.45 1 1 1h2c.55 0 1-.45 1-1v-6s3.72-4.8 5.74-7.39A.998.998 0 0 0 18.95 4H5.04c-.83 0-1.3.95-.79 1.61z"})),T_={root:{width:"100%",height:"100%"},overflowHidden:{overflow:"hidden"},container:{height:"100%"}};function yot(e){var t;return p.createElement(_a,{elevation:Number.isNaN(e.elevation)?1:e.elevation,style:{...T_.root,...((t=e.styles)==null?void 0:t.root)||void 0,...e.overflow!=="visible"?T_.overflowHidden:void 0},onKeyDown:e.onKeyDown,tabIndex:e.tabIndex},p.createElement(Bs,{container:!0,direction:"column",wrap:"nowrap",sx:T_.container},e.children))}const OC={root:{height:"100%",overflow:"hidden"},overflowAuto:{overflow:"auto"}};function bot(e){return p.createElement(Bs,{sx:{...OC.root,...(e==null?void 0:e.style)||void 0,...e.overflow==="auto"?OC.overflowAuto:void 0},ref:e.ref},e.children)}function wot(e){return p.createElement(Bs,{container:!0,alignItems:"center"},e.children)}const Ai=24,Ln=32,Sot=16,nn=20,$3=e=>e==="dark"?"#62ff25":"#37c400",C3=e=>e==="dark"?"#ee56ff":"#a204b4",xot=e=>e==="dark"?"#fff46e":"#b89101",E3=e=>"#ff6d69",T3=e=>"#5773ff",O3="#ff413c",D3="#86211f",Py="#57ff45",Ly="#098c04",Fy="#f3ad11",By="#6c5008",j={toolbar:{minHeight:38},toolbarButtons:{padding:4,marginLeft:4},switchColumnAuto:{marginLeft:16},dialogColumns:{transition:"opacity 1s"},dialogColumnsLabel:{fontSize:12,paddingTop:8},columnCustom:{width:"100%",display:"inline-block"},columnCustomEditable:{cursor:"text"},columnCustom_center:{textAlign:"center"},columnCustom_left:{textAlign:"left"},columnCustom_right:{textAlign:"right"},width100:{width:"100%"},transparent_10:{opacity:.1},transparent_20:{opacity:.2},transparent_30:{opacity:.3},transparent_40:{opacity:.4},transparent_50:{opacity:.5},transparent_60:{opacity:.6},transparent_70:{opacity:.7},transparent_80:{opacity:.8},transparent_90:{opacity:.9},transparent_100:{opacity:1},headerRow:{paddingLeft:8,height:38,whiteSpace:"nowrap",userSelect:"none"},buttonClearFilter:{position:"relative",float:"right",padding:0},buttonClearFilterIcon:{zIndex:2,position:"absolute",top:0,left:0,color:"#FF0000",opacity:.7},tableDiv:{paddingTop:0,paddingLeft:0,width:"calc(100% - 8px)",height:"calc(100% - 38px)",overflow:"auto"},tableRow:e=>({pl:1,height:Ln,lineHeight:`${Ln}px`,verticalAlign:"top",userSelect:"none",position:"relative",width:"100%","&:hover":{background:`${e.palette.mode==="dark"?e.palette.primary.dark:e.palette.primary.light} !important`,color:U.invertColor(e.palette.primary.main,!0)},whiteSpace:"nowrap",flexWrap:"nowrap"}),tableRowLines:e=>({borderBottom:`1px solid ${e.palette.mode==="dark","#8888882e"}`,"& > div":{borderRight:`1px solid ${e.palette.mode==="dark","#8888882e"}`}}),tableRowNoDragging:{cursor:"pointer"},tableRowAlias:{height:Ln+10},tableRowAliasReadWrite:{height:Ln+22},tableRowFocused:e=>({"&:after":{content:'""',position:"absolute",top:1,left:1,right:1,bottom:1,border:e.palette.mode?"1px dotted #000":"1px dotted #FFF"}}),checkBox:{padding:0},cellId:{position:"relative",fontSize:"1rem",overflow:"hidden",textOverflow:"ellipsis","& .copyButton":{display:"none"},"&:hover .copyButton":{display:"block"},"& .iconOwn":{display:"block",width:Ln-4,height:Ln-4,mt:"2px",float:"right"},"&:hover .iconOwn":{display:"none"},"& *":{width:"initial"}},cellIdSpan:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},cellIdIconFolder:e=>({marginRight:8,width:Ln-4,height:Ln-4,cursor:"pointer",color:e.palette.secondary.main||"#fbff7d",verticalAlign:"top"}),cellIdIconDocument:{verticalAlign:"middle",marginLeft:(Ln-nn)/2,marginRight:8,width:nn,height:nn},cellIdIconOwn:{},cellIdTooltip:{fontSize:14},cellIdTooltipLink:{color:"#7ec2fd","&:hover":{color:"#7ec2fd"},"&:visited":{color:"#7ec2fd"}},cellCopyButton:{width:nn,height:nn,top:(Ln-nn)/2,opacity:.8,position:"absolute",right:3},cellCopyButtonInDetails:{width:nn,height:nn,top:(Ln-nn)/2,opacity:.8},cellEditButton:{width:nn,height:nn,color:"white",position:"absolute",top:(Ln-nn)/2,right:nn+3,opacity:.7,"&:hover":{opacity:1}},cellName:{display:"inline-block",verticalAlign:"top",fontSize:14,ml:"5px",overflow:"hidden",textOverflow:"ellipsis",position:"relative","& .copyButton":{display:"none"},"&:hover .copyButton":{display:"block"}},cellNameWithDesc:{lineHeight:"normal"},cellNameDivDiv:{},cellDescription:{fontSize:10,opacity:.5,fontStyle:"italic"},cellIdAlias:e=>({fontStyle:"italic",fontSize:12,opacity:.7,"&:hover":{color:e.palette.mode==="dark"?"#009900":"#007700"}}),cellIdAliasReadWriteDiv:{height:24,marginTop:-5},cellIdAliasAlone:{lineHeight:0},cellIdAliasReadWrite:{lineHeight:"12px"},cellType:{display:"inline-block",verticalAlign:"top","& .itemIcon":{verticalAlign:"middle",width:Ai,height:Ai,display:"inline-block"},"& .itemIconFolder":{marginLeft:3}},cellRole:{display:"inline-block",verticalAlign:"top",textOverflow:"ellipsis",overflow:"hidden"},cellRoom:{display:"inline-block",verticalAlign:"top",textOverflow:"ellipsis",overflow:"hidden"},cellEnumParent:{opacity:.4},cellFunc:{display:"inline-block",verticalAlign:"top",textOverflow:"ellipsis",overflow:"hidden"},cellValue:{display:"inline-block",verticalAlign:"top",textOverflow:"ellipsis",overflow:"hidden"},cellValueButton:{marginTop:5},cellValueButtonFalse:{opacity:.3},cellAdapter:{display:"inline-block",verticalAlign:"top"},cellValueTooltip:{fontSize:12},cellValueText:{width:"100%",height:Ln,fontSize:16,display:"flex",overflow:"hidden",textOverflow:"ellipsis",position:"relative",verticalAlign:"top","& .copyButton":{display:"none"},"&:hover .copyButton":{display:"block"}},cellValueFile:{color:"#2837b9"},cellValueTooltipTitle:{fontStyle:"italic",width:100,display:"inline-block"},cellValueTooltipValue:{width:120,display:"inline-block",whiteSpace:"nowrap",textOverflow:"ellipsis"},cellValueTooltipImage:{width:100,height:"auto"},cellValueTooltipBoth:{width:220,display:"inline-block",whiteSpace:"nowrap"},cellValueTooltipBox:{width:250,overflow:"hidden",pointerEvents:"none"},tooltip:{pointerEvents:"none"},cellValueTextUnit:{marginLeft:4,opacity:.8,display:"inline-block"},cellValueTextState:{opacity:.7},cellValueTooltipCopy:{position:"absolute",bottom:3,right:3},cellValueTooltipEdit:{position:"absolute",bottom:3,right:15},cellButtons:{display:"inline-block",verticalAlign:"top"},cellButtonsButton:{display:"inline-block",opacity:.5,width:nn+4,height:nn+4,"&:hover":{opacity:1},p:0,mt:"-2px"},cellButtonsEmptyButton:{fontSize:12},cellButtonMinWidth:{minWidth:40},cellButtonsButtonAlone:{ml:`${nn+6}px`,pt:0,mt:"-2px"},cellButtonsButtonWithCustoms:e=>({color:e.palette.mode==="dark"?e.palette.primary.main:e.palette.secondary.main}),cellButtonsButtonWithoutCustoms:{opacity:.2},cellButtonsValueButton:e=>({position:"absolute",top:nn/2-2,opacity:.7,width:nn-2,height:nn-2,color:e.palette.action.active,"&:hover":{opacity:1}}),cellButtonsValueButtonCopy:{right:8,cursor:"pointer"},cellButtonsValueButtonEdit:{right:nn/2+16},cellDetailsLine:{display:"flex",alignItems:"center",width:"100%",height:32,fontSize:16},cellDetailsName:{fontWeight:"bold",marginRight:8,minWidth:80},filteredOut:{opacity:.5},filteredParentOut:{opacity:.3},filterInput:{mt:0,mb:0},selectIcon:{width:24,height:24,marginRight:4},selectNone:{opacity:.5},itemSelected:e=>({background:`${e.palette.primary.main} !important`,color:`${U.invertColor(e.palette.primary.main,!0)} !important`}),header:{width:"100%"},headerCell:{display:"inline-block",verticalAlign:"top"},headerCellValue:{paddingTop:4,fontSize:16},headerCellInput:{width:"calc(100% - 5px)",height:Ln,pt:0,"& .itemIcon":{verticalAlign:"middle",width:Ai,height:Ai,display:"inline-block"}},headerCellSelectItem:{"& .itemIcon":{width:Ai,height:Ai,mr:"5px",display:"inline-block"}},visibleButtons:{color:"#2196f3",opacity:.7},grow:{flexGrow:1},enumIconDiv:{marginRight:8,width:32,height:32,borderRadius:8,background:"#FFFFFF"},enumIcon:{marginTop:4,marginLeft:4,width:24,height:24},enumDialog:{overflow:"hidden"},enumList:{minWidth:250,height:"calc(100% - 50px)",overflow:"auto"},enumButton:{float:"right"},enumCheckbox:{minWidth:0},buttonDiv:{display:"flex",height:"100%",alignItems:"center"},aclText:{fontSize:13,marginTop:6},rightsObject:{color:"#55ff55",paddingLeft:3},rightsState:{color:"#86b6ff",paddingLeft:3},textCenter:{padding:12,textAlign:"center"},tooltipAccessControl:{display:"flex",flexDirection:"column"},fontSizeTitle:{"@media screen and (max-width: 465px)":{"& *":{fontSize:12}}},draggable:{cursor:"copy"},nonDraggable:{cursor:"no-drop"},selectClearButton:{position:"absolute",top:0,right:0,borderRadius:5,backgroundColor:"background.default"},iconDeviceConnected:e=>({color:e.palette.mode==="dark"?Py:Ly,opacity:.8,position:"absolute",top:4,right:32,width:20}),iconDeviceDisconnected:e=>({color:e.palette.mode==="dark"?Fy:By,opacity:.8,position:"absolute",top:4,right:32,width:20}),iconDeviceError:e=>({color:e.palette.mode==="dark"?O3:D3,opacity:.8,position:"absolute",top:4,right:50,width:20}),resizeHandle:{display:"block",position:"absolute",cursor:"col-resize",width:7,top:2,bottom:2,zIndex:1},resizeHandleRight:{right:3,borderRight:"2px dotted #888","&:hover":{borderColor:"#ccc",borderRightStyle:"solid"},"&.active":{borderColor:"#517ea5",borderRightStyle:"solid"}},invertedBackground:e=>({backgroundColor:e.palette.mode==="dark"?"#9a9a9a":"#565656",padding:"0 3px",borderRadius:"2px 0 0 2px"}),invertedBackgroundFlex:e=>({backgroundColor:e.palette.mode==="dark"?"#9a9a9a":"#565656",borderRadius:"0 2px 2px 0"}),contextMenuEdit:e=>({color:e.palette.mode==="dark"?"#ffee48":"#cbb801"}),contextMenuEditValue:e=>({color:e.palette.mode==="dark"?"#5dff45":"#1cd301"}),contextMenuView:e=>({color:e.palette.mode==="dark"?"#FFF":"#000"}),contextMenuCustom:e=>({color:e.palette.mode==="dark"?"#42eaff":"#01bbc2"}),contextMenuACL:e=>({color:e.palette.mode==="dark"?"#e079ff":"#500070"}),contextMenuRoom:e=>({color:e.palette.mode==="dark"?"#ff9a33":"#642a00"}),contextMenuRole:e=>({color:e.palette.mode==="dark"?"#ffdb43":"#562d00"}),contextMenuDelete:e=>({color:e.palette.mode==="dark"?"#ff4f4f":"#cf0000"}),contextMenuKeys:{marginLeft:8,opacity:.7,fontSize:"smaller"},contextMenuWithSubMenu:{display:"flex"}};function kot(e){return p.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 436 436",style:e==null?void 0:e.style,width:"24",height:"24",className:"admin-button"},p.createElement("g",{fill:"currentColor"},p.createElement("path",{d:"m195.23077,24.30769c-36,3 -67,12 -96,26c-49,24 -82,61 -93,104l-3,11l-1,50c0,46 0,49 2,59l5,20c21,58 84,103 165,116c16,3 53,4 70,2c60,-6 111,-28 147,-64c21,-21 36,-49 40,-74a866,866 0 0 0 1,-104c-3,-18 -6,-28 -13,-43c-26,-52 -87,-90 -162,-101c-16,-2 -48,-3 -63,-2l1,0zm60,23c36,5 70,18 95,35c31,20 51,47 59,77c2,7 2,11 2,25c1,15 0,18 -2,26c-19,69 -104,117 -200,114c-47,-2 -90,-15 -124,-38c-31,-20 -51,-47 -59,-77c-3,-11 -4,-32 -2,-43c8,-42 41,-78 91,-101a260,260 0 0 1 140,-19l0,1zm-221,222c21,26 57,49 95,62c81,27 174,14 239,-32c14,-10 31,-27 41,-41c2,-2 2,-2 2,7c-1,23 -16,50 -38,72c-78,74 -233,74 -311,-1a121,121 0 0 1 -39,-76l0,-6l3,4l8,11z"}),p.createElement("path",{d:"m201.23077,47.30769c-40,3 -79,19 -104,44c-55,55 -38,133 37,171c52,26 122,24 172,-5c30,-17 51,-42 58,-71c3,-11 3,-34 0,-45c-6,-23 -21,-44 -40,-60l-27,-16a184,184 0 0 0 -96,-18zm30,21c56,5 100,35 112,75c4,11 4,30 0,41c-8,25 -26,45 -54,59a166,166 0 0 1 -160,-8a98,98 0 0 1 -41,-53c-5,-18 -2,-39 8,-57c23,-39 79,-62 135,-57z"})))}function $ot(e,t){const n=[];for(let r=0;r{if(o==null)return;const a=typeof o=="object";if(n&&a&&typeof o.en=="string"&&typeof o.de=="string"){r[s]=o.en;return}r[s]=a?Wy(o,t,n):o}):Cot(e,(r,o,s)=>{if(o==null||t.includes(s))return;const a=typeof o=="object";if(n&&a&&typeof o.en=="string"&&typeof o.de=="string"){r[s]=o.en;return}r[s]=a?Wy(o,t,n):o})}function DC(e,t,n){const r=document.createElement("a"),o=[];n.excludeSystemRepositories&&o.push("system.repositories");const s=o.length>0||n.excludeTranslations?Wy(t,o,n.excludeTranslations):t,a=n.beautify?JSON.stringify(s,null,2):JSON.stringify(s);r.setAttribute("href",`data:application/json;charset=utf-8,${encodeURIComponent(a)}`),r.setAttribute("download",e),r.style.display="none",document.body.appendChild(r),r.click(),document.body.removeChild(r)}function du(e,t,n,r){if(n=n||0,r===void 0&&(r=e.length-1,!r))return e[0]===t;const o=Math.floor((n+r)/2);return t===e[o]?!0:r-1===n?e[n]===t||e[r]===t:t>e[o]?du(e,t,o,r):t$.role.startsWith(C))||(d=!0)):d=!0),!d&&((b=a.common)==null?void 0:b.custom)==="_"&&($!=null&&$.custom))d=!0;else if(!d&&((y=a.common)!=null&&y.custom)&&((S=a.common)==null?void 0:S.custom)!=="_"){const C=a.common.custom;if(!($!=null&&$.custom))d=!0;else if(C==="_dataSources")Object.keys($.custom).find(T=>T.startsWith("history.")||T.startsWith("sql.")||T.startsWith("influxdb."))||(d=!0);else if(Array.isArray(C)){const T=Object.keys($.custom);C.find(O=>T.find(D=>D.startsWith(O)))&&(d=!0)}else C!==!0&&!Object.keys($.custom).find(T=>T.startsWith(C))&&(d=!0)}}!d&&!t.expertMode&&(d=u.id==="system"||u.id==="enum"||u.id.startsWith("system.")||u.id.startsWith("enum.")||u.id.startsWith("_design/")||u.id.endsWith(".admin")||!!($!=null&&$.expert)),!d&&o.id&&(u.fID===void 0&&(u.fID=u.id.toLowerCase()),d=!u.fID.includes(o.id)),!d&&o.name&&($?(u.fName===void 0&&(u.fName=$&&mr($.name,n)||"",u.fName=u.fName.toLowerCase()),d=!u.fName.includes(o.name)):d=!0),!d&&t.role&&$&&($?d=!($.role&&$.role.startsWith(o.role)):d=!0),!d&&o.room&&(d=!o.room.find(C=>C===u.id||u.id.startsWith(`${C}.`))),!d&&o.func&&(d=!o.func.find(C=>C===u.id||u.id.startsWith(`${C}.`))),!d&&o.type&&(d=!(u.obj&&u.obj.type&&u.obj.type===o.type)),!d&&i&&(d=!(u.obj&&u.obj.type&&i.includes(u.obj.type))),!d&&o.custom&&($?o.custom==="_"?d=!!$.custom:d=!$.custom||!$.custom[o.custom]:d=!0)}return u.visible=!d,u.hasVisibleChildren=!1,e.children&&l<20&&e.children.forEach($=>{Hy($,t,n,r,o,s,a,i,l+1)&&(u.hasVisibleChildren=!0)}),u.sumVisibility=u.visible||u.hasVisibleChildren,s&&u.sumVisibility&&s.count++,u.id&&u.sumVisibility&&e.children&&e.children.forEach($=>$.data.hasVisibleParent=!0),u.visible||u.hasVisibleChildren}function A3(e,t,n,r){var s;r=r||[];const o=e.data;return o.sumVisibility&&(o.id&&n[o.id]&&n[o.id].type===t&&r.push(o.id),(s=e.children)==null||s.forEach(a=>A3(a,t,n,r))),r}function AC(e,t,n,r,o,s){let a;return t==="alias"||t==="alias.0"?a=p.createElement(I4,{className:"iconOwn",style:{color:C3(r)}}):t==="0_userdata"||t==="0_userdata.0"?a=p.createElement(sV,{className:"iconOwn",style:{color:$3(r)}}):t.startsWith("_design/")||t==="system"?a=p.createElement(bk,{className:"iconOwn",style:{color:E3(r)}}):t==="system.adapter"?a=p.createElement(bk,{className:"iconOwn",style:{color:T3(r)}}):t==="system.group"?a=p.createElement(L4,{className:"iconOwn"}):t==="system.user"?a=p.createElement(z4,{className:"iconOwn"}):t==="system.host"?a=p.createElement(P4,{className:"iconOwn"}):t.endsWith(".connection")||t.endsWith(".connected")?a=p.createElement(ad,{className:"iconOwn"}):t.endsWith(".info")?a=p.createElement(_V,{className:"iconOwn"}):e[t]&&e[t].type==="meta"?a=p.createElement(Vb,{className:"iconOwn"}):n<2&&e[`system.adapter.${t}`]&&(a=Nf(e,`system.adapter.${t}`,o,s)),a||null}function N3(e,t){var n,r;return(r=(n=e==null?void 0:e.obj)==null?void 0:n.common)!=null&&r.desc&&mr(e.obj.common.desc,t)||null}function Eot(e,t){const n=N3(e,t);return n!=null&&n.startsWith("http")?p.createElement(Ce,{component:"a",sx:j.cellIdTooltipLink,href:n,target:"_blank",rel:"noreferrer"},n):p.createElement("span",{style:j.cellIdTooltip},n||e.id||"")}function NC(e,t){var u,c,h,f,g,_,w,v,b;const n=t.imagePrefix||".";let r=Object.keys(e);r.sort((y,S)=>y===S?0:(y=y.replace(/\./g,"!!!"),S=S.replace(/\./g,"!!!"),y>S?1:-1)),t.root&&(r=r.filter(y=>y===t.root||y.startsWith(`${t.root}.`)));let o=[],s="",a=0;const i={data:{name:"",id:""},children:[]},l={funcEnums:[],roomEnums:[],roles:[],ids:[],types:[],objects:e,customs:["_"],enums:[],hasSomeCustoms:!1,aliasesMap:{}};let d=i;for(let y=0;y1){let D=s;for(let x=a;xA.data.name===C[x]));else{const A={data:{name:C[x],parent:d,id:D,obj:e[D],level:x,icon:AC(e,D,x,t.themeType,t.lang,n),generated:!0}};d.children=d.children||[],d.children.push(A),d=A,l.ids.push(D)}}const O={data:{name:C[C.length-1],title:mr((h=$==null?void 0:$.common)==null?void 0:h.name,t.lang),obj:$,parent:d,icon:Nf(e,S,t.lang,n)||AC(e,S,0,t.themeType,t.lang,n),id:S,hasCustoms:!!((f=$.common)!=null&&f.custom&&Object.keys($.common.custom).length),level:C.length-1,generated:!1,button:$.type==="state"&&!!((g=$.common)!=null&&g.role)&&typeof $.common.role=="string"&&$.common.role.startsWith("button")&&((_=$.common)==null?void 0:_.write)!==!1,switch:$.type==="state"&&((w=$.common)==null?void 0:w.type)==="boolean"&&((v=$.common)==null?void 0:v.write)!==!1&&((b=$.common)==null?void 0:b.read)!==!1}};d.children=d.children||[],d.children.push(O),d=O,a=C.length,o=C,s=S}else{let O=0;for(;o[O]===C[O];)O++;if(O>0){let D=o.length;for(o=o.splice(0,O),a=O,s=o.join(".");D>O;)d.data.parent?d=d.data.parent:console.error(`Parent is null for ${S} ${s} ${o.join(".")}`),D--}else d=i,o=[],s="",a=0;T=!0}while(T)}return l.roomEnums.sort((y,S)=>{var T,O,D,x;const $=mr((O=(T=e[y])==null?void 0:T.common)==null?void 0:O.name,t.lang)||y.split(".").pop(),C=mr((x=(D=e[S])==null?void 0:D.common)==null?void 0:x.name,t.lang)||S.split(".").pop();return $>C?1:${var T,O,D,x;const $=mr((O=(T=e[y])==null?void 0:T.common)==null?void 0:O.name,t.lang)||y.split(".").pop(),C=mr((x=(D=e[S])==null?void 0:D.common)==null?void 0:x.name,t.lang)||S.split(".").pop();return $>C?1:$r)break}return s?(o=o||0,M3(s,t,n,`${r}.${n[o+1]}`,o+1)):null}function j3(e,t,n,r){var a,i;if(!t)return{rooms:[],per:!1};r=r||[];for(const l of e.roomEnums){const d=(a=e.objects[l])==null?void 0:a.common;if(!d)continue;const u=mr(d.name,n);(i=d.members)!=null&&i.includes(t)&&!r.includes(u)&&r.push(u)}let o;const s=t.split(".");return s.pop(),t=s.join("."),e.objects[t]&&(o=r.length,j3(e,t,n,r)),{rooms:r,per:!o}}function Ni(e,t,n,r){var o,s;if(!t)return[];r=r||[];for(let a=0;a946681200&&d<9466812e5&&(d*=1e3),d=d&&new Date(d).toString();else u==="number"?Number.isInteger(d)||(d=Math.round(d*1e8)/1e8,r&&(d=d.toString().replace(".",","))):u==="object"?d=JSON.stringify(d):u!=="string"?d=d.toString():d.startsWith("data:image/")&&(l="image"),typeof d!="string"&&(d=d.toString());const c={v:d};a&&a[d]!==void 0&&d!==a[d]&&(c.s=d,d=a[d],c.v=d),i!=null&&i.unit&&(c.u=i.unit);let h;if(e.full&&(h=[{t:o.value,v:d}],n)){if(n.ack!==void 0&&n.ack!==null&&h.push({t:o.ack,v:n.ack.toString()}),n.ts&&h.push({t:o.ts,v:n.ts?U.formatDate(new Date(n.ts),t):""}),n.lc&&h.push({t:o.lc,v:n.lc?U.formatDate(new Date(n.lc),t):""}),n.from){let f=n.from.toString();f.startsWith("system.adapter.")&&(f=f.substring(15)),h.push({t:o.from,v:f})}if(n.user){let f=n.user.toString();f.startsWith("system.user.")&&(f=f.substring(12)),h.push({t:o.user,v:f})}n.c&&h.push({t:o.c,v:n.c}),h.push({t:o.quality,v:U.quality2text(n.q||0).join(", "),nbr:!0})}return{valText:c,valFull:h,fileViewer:l}}function Tot(e){const{state:t}=e;return{color:t!=null&&t.ack?t.q?"#ffa500":"":"#ff2222c9"}}function Oot(e,t){let n=t,r=1;const o=[];for(;r=n)o.push(0);else if(r{this.contextMenu&&Date.now()-this.contextMenu.ts<2e3?(n.preventDefault(),this.setState({showContextMenu:{item:this.contextMenu.item,position:{left:n.clientX+2,top:n.clientY-6}}})):this.state.showContextMenu&&(n.preventDefault(),this.setState({showContextMenu:null})),this.contextMenu=null});L(this,"onStateChange",(n,r)=>{if(console.log(`> stateChange ${n}`),this.states[n]){const o=this.findItem(n);o!=null&&o.data.state&&(o.data.state=void 0)}r?this.states[n]=r:delete this.states[n],this.pausedSubscribes?this.statesUpdateTimer&&(clearTimeout(this.statesUpdateTimer),this.statesUpdateTimer=null):this.statesUpdateTimer||(this.statesUpdateTimer=setTimeout(()=>{this.statesUpdateTimer=null,this.forceUpdate()},300))});L(this,"onObjectChangeFromWorker",n=>{if(Array.isArray(n)){let r=null;n.forEach(o=>{const{newInnerState:s,filtered:a}=this.processOnObjectChangeElement(o.id,o.obj);a||(s&&r?Object.assign(r,s):r=s)}),r&&this.setState(r),this.afterObjectUpdated()}});L(this,"onObjectChange",(n,r)=>{const{newInnerState:o,filtered:s}=this.processOnObjectChangeElement(n,r);s||(o&&this.setState(o),this.afterObjectUpdated())});L(this,"getEnumsForId",n=>{const r=[];return this.info.enums.forEach(o=>{var s,a,i;if((i=(a=(s=this.objects[o])==null?void 0:s.common)==null?void 0:a.members)!=null&&i.includes(n)){const l={_id:this.objects[o]._id,common:JSON.parse(JSON.stringify(this.objects[o].common)),native:this.objects[o].native,type:"enum"};l.common&&(delete l.common.members,delete l.common.custom,delete l.common.mobile),r.push(l)}}),r.length?r:void 0});L(this,"_createAllEnums",async(n,r)=>{var o,s;for(let a=0;a{var o,s;const{t:n}=this.props;let r=[p.createElement("div",{key:1},n("ra_Only following structures of objects are available:")),p.createElement("div",{key:2},n("ra_Folder → State")),p.createElement("div",{key:3},n("ra_Folder → Channel → State")),p.createElement("div",{key:4},n("ra_Folder → Device → Channel → State")),p.createElement("div",{key:5},n("ra_Device → Channel → State")),p.createElement("div",{key:6},n("ra_Channel → State")),p.createElement("div",{key:7,style:{height:10}}),p.createElement("div",{key:8},n('ra_Non-experts may create new objects only in "0_userdata.0" or "alias.0".')),p.createElement("div",{key:9},n('ra_The experts may create objects everywhere but from second level (e.g. "vis.0" or "javascript.0").'))];if(this.state.selected.length||this.state.selectedNonObject){const a=this.state.selected[0]||this.state.selectedNonObject;if(!(a.split(".").length<2||this.objects[a]&&((o=this.objects[a])==null?void 0:o.type)==="state"))if(this.state.filter.expertMode)switch((s=this.objects[a])==null?void 0:s.type){case"device":r=[p.createElement("div",{key:1},n("ra_Only following structures of objects are available:")),p.createElement("div",{key:5},n("ra_Device → Channel → State")),p.createElement("div",{key:7,style:{height:10}}),p.createElement("div",{key:8},n('ra_Non-experts may create new objects only in "0_userdata.0" or "alias.0".')),p.createElement("div",{key:9},n('ra_The experts may create objects everywhere but from second level (e.g. "vis.0" or "javascript.0").'))];break;case"folder":r=[p.createElement("div",{key:1},n("ra_Only following structures of objects are available:")),p.createElement("div",{key:2},n("ra_Folder → State")),p.createElement("div",{key:3},n("ra_Folder → Channel → State")),p.createElement("div",{key:4},n("ra_Folder → Device → Channel → State")),p.createElement("div",{key:7,style:{height:10}}),p.createElement("div",{key:8},n('ra_Non-experts may create new objects only in "0_userdata.0" or "alias.0".')),p.createElement("div",{key:9},n('ra_The experts may create objects everywhere but from second level (e.g. "vis.0" or "javascript.0").'))];break;case"channel":r=[p.createElement("div",{key:1},n("ra_Only following structures of objects are available:")),p.createElement("div",{key:1},n("ra_Channel → State")),p.createElement("div",{key:7,style:{height:10}}),p.createElement("div",{key:8},n('ra_Non-experts may create new objects only in "0_userdata.0" or "alias.0".')),p.createElement("div",{key:9},n('ra_The experts may create objects everywhere but from second level (e.g. "vis.0" or "javascript.0").'))];break}else(a.startsWith("alias.0")||a.startsWith("0_userdata"))&&(r=[p.createElement("div",{key:1},n("ra_Only following structures of objects are available:")),p.createElement("div",{key:2},n("ra_Folder → State")),p.createElement("div",{key:3},n("ra_Folder → Channel → State")),p.createElement("div",{key:4},n("ra_Folder → Device → Channel → State")),p.createElement("div",{key:5},n("ra_Device → Channel → State")),p.createElement("div",{key:6},n("ra_Channel → State")),p.createElement("div",{key:7,style:{height:10}}),p.createElement("div",{key:7},n('ra_Non-experts may create new objects only in "0_userdata.0" or "alias.0".')),p.createElement("div",{key:8},n('ra_The experts may create objects everywhere but from second level (e.g. "vis.0" or "javascript.0").'))])}return r.length?r:n("ra_Add new child object to selected parent")});L(this,"renderTooltipAccessControl",n=>{if(!n)return null;const r=[{value:"0x400",valueNum:1024,title:"read",group:"Owner"},{value:"0x200",valueNum:512,title:"write",group:"Owner"},{value:"0x40",valueNum:64,title:"read",group:"Group"},{value:"0x20",valueNum:32,title:"write",group:"Group"},{value:"0x4",valueNum:4,title:"read",group:"Everyone"},{value:"0x2",valueNum:2,title:"write",group:"Everyone"}],o=[],s=a=>{const i=n[a];r.forEach((l,d)=>{i&l.valueNum&&o.push(p.createElement("span",{key:a+d},this.texts[`acl${l.group}_${l.title}_${a}`],",",p.createElement("span",{style:a==="object"?j.rightsObject:j.rightsState},l.value)))})};return o.push(p.createElement("span",{key:"group"},`${this.texts.ownerGroup}: ${(n.ownerGroup||"").replace("system.group.","")}`)),o.push(p.createElement("span",{key:"owner"},`${this.texts.ownerUser}: ${(n.owner||"").replace("system.user.","")}`)),s("object"),n.state&&s("state"),o.length?p.createElement("span",{style:j.tooltipAccessControl},o.map(a=>a)):null});L(this,"resizerMouseMove",n=>{if(this.resizerActiveDiv){let r,o;this.resizeLeft?(r=this.resizerOldWidth-n.clientX+this.resizerPosition,o=this.resizerOldWidthNext+n.clientX-this.resizerPosition):(r=this.resizerOldWidth+n.clientX-this.resizerPosition,o=this.resizerOldWidthNext-n.clientX+this.resizerPosition),this.resizerActiveName&&this.resizerNextName&&(!this.resizerMin||r>this.resizerMin)&&(!this.resizerNextMin||o>this.resizerNextMin)&&(this.resizerCurrentWidths[this.resizerActiveName]=r,this.resizerCurrentWidths[this.resizerNextName]=o,this.resizerActiveDiv.style.width=`${r}px`,this.resizerNextDiv&&(this.resizerNextDiv.style.width=`${o}px`),this.columnsVisibility[this.resizerActiveName]=r,this.columnsVisibility[this.resizerNextName]=o,this.resizerNextName==="nameHeader"?(this.columnsVisibility.name=o-this.state.scrollBarWidth,this.resizerCurrentWidths.name=o-this.state.scrollBarWidth):this.resizerActiveName==="nameHeader"&&(this.columnsVisibility.name=r-this.state.scrollBarWidth,this.resizerCurrentWidths.name=r-this.state.scrollBarWidth),this.customWidth=!0,this.resizeTimeout&&clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout(()=>{this.resizeTimeout=null,this.forceUpdate()},200))}});L(this,"resizerMouseUp",()=>{this.localStorage.setItem(`${this.props.dialogName||"App"}.table`,JSON.stringify(this.resizerCurrentWidths)),this.resizerActiveName=null,this.resizerNextName=null,this.resizerActiveDiv=null,this.resizerNextDiv=null,window.removeEventListener("mousemove",this.resizerMouseMove),window.removeEventListener("mouseup",this.resizerMouseUp)});L(this,"resizerMouseDown",n=>{if(this.storedWidths=this.storedWidths||JSON.parse(JSON.stringify(Qt[this.props.width||"lg"])),this.resizerCurrentWidths=this.resizerCurrentWidths||{},this.resizerActiveDiv=n.target.parentNode,this.resizerActiveName=this.resizerActiveDiv.dataset.name||null,this.resizerActiveName){let r=0;if(n.target.dataset.left==="true"){this.resizeLeft=!0,this.resizerNextDiv=this.resizerActiveDiv.previousElementSibling;let o=this.resizerNextDiv.querySelector(".iob-ob-resize-handler");for(;this.resizerNextDiv&&!o&&r<10;)this.resizerNextDiv=this.resizerNextDiv.previousElementSibling,o=this.resizerNextDiv.querySelector(".iob-ob-resize-handler"),r++;(o==null?void 0:o.dataset.left)!=="true"&&(this.resizerNextDiv=this.resizerNextDiv.nextElementSibling)}else this.resizeLeft=!1,this.resizerNextDiv=this.resizerActiveDiv.nextElementSibling;this.resizerNextName=this.resizerNextDiv.dataset.name||null,this.resizerMin=parseInt(this.resizerActiveDiv.dataset.min,10)||0,this.resizerNextMin=parseInt(this.resizerNextDiv.dataset.min,10)||0,this.resizerPosition=n.clientX,this.resizerCurrentWidths[this.resizerActiveName]=this.resizerActiveDiv.offsetWidth,this.resizerOldWidth=this.resizerCurrentWidths[this.resizerActiveName],this.resizerNextName&&(this.resizerCurrentWidths[this.resizerNextName]=this.resizerNextDiv.offsetWidth,this.resizerOldWidthNext=this.resizerCurrentWidths[this.resizerNextName]),window.addEventListener("mousemove",this.resizerMouseMove),window.addEventListener("mouseup",this.resizerMouseUp)}});L(this,"resizerReset",()=>{this.customWidth=!1,Qt[this.props.width||"lg"]=JSON.parse(JSON.stringify(this.storedWidths)),this.calculateColumnsVisibility(),this.localStorage.removeItem(`${this.props.dialogName||"App"}.table`),this.forceUpdate()});const r=this.localStorage.getItem(`${n.dialogName||"App"}.objectSelected`)||"";if(this.selectFirst="",r.startsWith("["))try{const v=JSON.parse(r);this.selectFirst=v[0]||""}catch{}else this.selectFirst=r;let o;const s=this.localStorage.getItem(`${n.dialogName||"App"}.objectExpanded`)||"[]";try{o=JSON.parse(s)}catch{o=[]}let a;const i=n.defaultFilters?"":this.localStorage.getItem(`${n.dialogName||"App"}.objectFilter`)||"";if(i)try{a=JSON.parse(i)}catch{a={...Ip}}else n.defaultFilters&&typeof n.defaultFilters=="object"?a={...n.defaultFilters}:a={...Ip};if(a.expertMode=n.expertMode!==void 0?n.expertMode:(window._sessionStorage||window.sessionStorage).getItem("App.expertMode")==="true",this.tableRef=k.createRef(),this.filterRefs={},Object.keys(Ip).forEach(v=>this.filterRefs[v]=k.createRef()),this.visibleCols=n.columns||Qt[n.width||"lg"].fields,n.types&&n.types.length===1){const v=this.visibleCols.indexOf("type");v!==-1&&this.visibleCols.splice(v,1)}this.possibleCols=Qt.xl.fields;let l=null;if(n.router){const v=n.router.getLocation();v.id&&v.dialog==="customs"&&(l=[v.id],this.pauseSubscribe(!0))}let d;Array.isArray(n.selected)?d=n.selected:d=[n.selected||""],d=d.map(v=>v.replace(/["']/g,"")).filter(v=>v),this.selectFirst=d.length&&d[0]?d[0]:this.selectFirst;const u=this.localStorage.getItem(`${n.dialogName||"App"}.columns`);let c;try{c=u?JSON.parse(u):null}catch{c=null}let h=null;try{h=h?JSON.parse(h):{}}catch{h={}}this.imagePrefix=n.imagePrefix||".";let f;const g=this.localStorage.getItem(`${n.dialogName||"App"}.foldersFirst`);g==="false"?f=!1:g==="true"?f=!0:f=n.foldersFirst===void 0?!0:n.foldersFirst;let _=!1;try{_=this.props.objectStatesView&&JSON.parse(this.localStorage.getItem(`${n.dialogName||"App"}.objectStatesView`)||"")||!1}catch{}this.state={loaded:!1,foldersFirst:f,selected:d,selectedNonObject:this.localStorage.getItem(`${n.dialogName||"App"}.selectedNonObject`)||"",filter:a,filterKey:0,focused:this.localStorage.getItem(`${n.dialogName||"App"}.focused`)||"",depth:0,expandAllVisible:!1,expanded:o,toast:"",scrollBarWidth:16,customDialog:l,editObjectDialog:"",editObjectAlias:!1,viewFileDialog:"",showAliasEditor:"",enumDialog:null,roleDialog:null,statesView:_,columns:c,columnsForAdmin:null,columnsSelectorShow:!1,columnsAuto:this.localStorage.getItem(`${n.dialogName||"App"}.columnsAuto`)!=="false",columnsWidths:h,columnsDialogTransparent:100,columnsEditCustomDialog:null,customColumnDialogValueChanged:!1,showExportDialog:!1,showAllExportOptions:!1,linesEnabled:this.localStorage.getItem(`${n.dialogName||"App"}.lines`)==="true",showDescription:this.localStorage.getItem(`${n.dialogName||"App"}.desc`)!=="false",showContextMenu:null,noStatesByExportImport:!1,beautifyJsonExport:!0,excludeSystemRepositoriesFromExport:!0,excludeTranslations:!1,tooltipInfo:null,aliasMenu:""},this.texts={name:n.t("ra_Name"),categories:n.t("ra_Categories"),value:n.t("ra_tooltip_value"),ack:n.t("ra_tooltip_ack"),ts:n.t("ra_tooltip_ts"),lc:n.t("ra_tooltip_lc"),from:n.t("ra_tooltip_from"),user:n.t("ra_tooltip_user"),c:n.t("ra_tooltip_comment"),quality:n.t("ra_tooltip_quality"),editObject:n.t("ra_tooltip_editObject"),deleteObject:n.t("ra_tooltip_deleteObject"),customConfig:n.t("ra_tooltip_customConfig"),copyState:n.t("ra_tooltip_copyState"),editState:n.t("ra_tooltip_editState"),close:n.t("ra_Close"),filter_id:n.t("ra_filter_id"),filter_name:n.t("ra_filter_name"),filter_type:n.t("ra_filter_type"),filter_role:n.t("ra_filter_role"),filter_room:n.t("ra_filter_room"),filter_func:n.t("ra_filter_func"),filter_custom:n.t("ra_filter_customs"),filterCustomsWithout:n.t("ra_filter_customs_without"),objectChangedByUser:n.t("ra_object_changed_by_user"),objectChangedBy:n.t("ra_object_changed_by"),objectChangedFrom:n.t("ra_state_changed_from"),stateChangedBy:n.t("ra_state_changed_by"),stateChangedFrom:n.t("ra_state_changed_from"),ownerGroup:n.t("ra_Owner group"),ownerUser:n.t("ra_Owner user"),deviceError:n.t("ra_Error"),deviceDisconnected:n.t("ra_Disconnected"),deviceConnected:n.t("ra_Connected"),aclOwner_read_object:n.t("ra_aclOwner_read_object"),aclOwner_read_state:n.t("ra_aclOwner_read_state"),aclOwner_write_object:n.t("ra_aclOwner_write_object"),aclOwner_write_state:n.t("ra_aclOwner_write_state"),aclGroup_read_object:n.t("ra_aclGroup_read_object"),aclGroup_read_state:n.t("ra_aclGroup_read_state"),aclGroup_write_object:n.t("ra_aclGroup_write_object"),aclGroup_write_state:n.t("ra_aclGroup_write_state"),aclEveryone_read_object:n.t("ra_aclEveryone_read_object"),aclEveryone_read_state:n.t("ra_aclEveryone_read_state"),aclEveryone_write_object:n.t("ra_aclEveryone_write_object"),aclEveryone_write_state:n.t("ra_aclEveryone_write_state"),create:n.t("ra_Create"),createBooleanState:n.t("ra_create_boolean_state"),createNumberState:n.t("ra_create_number_state"),createStringState:n.t("ra_create_string_state"),createState:n.t("ra_create_state"),createChannel:n.t("ra_create_channel"),createDevice:n.t("ra_create_device"),createFolder:n.t("ra_Create folder")},this.levelPadding=n.levelPadding||Sot;const w=this.localStorage.getItem(`${this.props.dialogName||"App"}.table`);if(w)try{const v=JSON.parse(w),b=this.props.width||"lg";this.storedWidths=JSON.parse(JSON.stringify(Qt[b])),Object.keys(v).forEach(y=>{y==="id"?Qt[b].idWidth=v.id:y==="nameHeader"?Qt[b].widths.name=v[y]:Qt[b].widths[y]!==void 0&&(Qt[b].widths[y]=v[y])}),this.customWidth=!0}catch{}this.calculateColumnsVisibility()}async loadAllObjects(n){const r=this.props;try{await new Promise(d=>{this.setState({updating:!0},()=>d())});const o=(this.props.objectsWorker?await this.props.objectsWorker.getObjects(n):await r.socket.getObjects(n,!0))||{};if(r.types&&Mo.isWeb())for(let d=0;d{try{if(d(o[u]))this.objects[u]=o[u];else{const c=o[u]&&o[u].type;c&&(c==="channel"||c==="device"||c==="folder"||c==="adapter"||c==="instance")&&(this.objects[u]=o[u])}}catch(c){console.log(`Error by filtering of "${u}": ${c}`)}})}else if(r.types){this.objects={};const d=r.types;Object.keys(o).forEach(u=>{const c=o[u]&&o[u].type;c&&(c==="channel"||c==="device"||c==="enum"||c==="folder"||c==="adapter"||c==="instance"||d.includes(c))&&(this.objects[u]=o[u])})}else this.objects=o;r.setObjectsReference&&r.setObjectsReference(this.objects),this.defaultHistory=this.systemConfig.common.defaultHistory,this.defaultHistory&&r.socket.getState(`system.adapter.${this.defaultHistory}.alive`).then(d=>{(!d||!d.val)&&(this.defaultHistory="")}).catch(d=>window.alert(`Cannot get state: ${d}`));const s=await this.getAdditionalColumns();this.calculateColumnsVisibility(null,null,s);const{info:a,root:i}=NC(this.objects,{imagePrefix:this.props.imagePrefix,root:this.props.root,lang:this.props.lang,themeType:this.props.themeType});this.root=i,this.info=a;const l=this.state.selected&&this.state.selected.length&&M3(this.root,this.state.selected[0]);this.lastAppliedFilter=null,l&&!Hy(l,this.state.filter,this.props.lang,this.objects,void 0,void 0,r.customFilter,r.types)?this.setState({filter:{...Ip},columnsForAdmin:s},()=>{this.setState({loaded:!0,updating:!1},()=>this.expandAllSelected(()=>this.onAfterSelect()))}):this.setState({loaded:!0,updating:!1,columnsForAdmin:s},()=>this.expandAllSelected(()=>this.onAfterSelect()))}catch(o){this.showError(o)}}static isNonExpertId(n){return!!J1(so,jf).find(r=>n.startsWith(r))}expandAllSelected(n){const r=[...this.state.expanded];let o=!1;this.state.selected.forEach(s=>{const a=s.split("."),i=[];for(let l=0;lthis.props.onSelect&&this.props.onSelect([],"")):this.props.onSelect&&this.props.onSelect([],"")}static getDerivedStateFromProps(n,r){const o={};let s=!1;return n.expertMode!==void 0&&n.expertMode!==r.filter.expertMode&&(s=!0,o.filter={...r.filter},o.filter.expertMode=n.expertMode),s?o:null}async componentDidMount(){await this.loadAllObjects(!jC),this.props.objectsWorker?this.props.objectsWorker.registerHandler(this.onObjectChangeFromWorker):await this.props.socket.subscribeObject("*",this.onObjectChange),jC=!0,window.addEventListener("contextmenu",this.onContextMenu,!0)}componentWillUnmount(){this.filterTimer&&(clearTimeout(this.filterTimer),this.filterTimer=null),window.removeEventListener("contextmenu",this.onContextMenu,!0),this.props.objectsWorker?this.props.objectsWorker.unregisterHandler(this.onObjectChangeFromWorker,!0):this.props.socket.unsubscribeObject("*",this.onObjectChange).catch(n=>console.error(`Cannot unsubscribe *: ${n}`)),this.subscribes.forEach(n=>{console.log(`- unsubscribe ${n}`),this.props.socket.unsubscribeState(n,this.onStateChange)}),this.subscribes=[],this.objects={}}showDeleteDialog(n){var d,u;const{id:r,obj:o,item:s}=n,a=Object.keys(this.objects);a.sort();let i=0;const l=`${r}.`;for(let c=0;cl)break;this.props.onObjectDelete&&this.props.onObjectDelete(r,!!((d=s.children)!=null&&d.length),!((u=o.common)!=null&&u.dontDelete),i+1)}refreshComponent(){this.subscribes.forEach(n=>{console.log(`- unsubscribe ${n}`),this.props.socket.unsubscribeState(n,this.onStateChange)}),this.subscribes=[],this.loadAllObjects(!0).then(()=>console.log("updated!")).catch(n=>this.showError(n))}renderErrorDialog(){return this.state.error?p.createElement(ft,{open:!0,maxWidth:"sm",fullWidth:!0,onClose:()=>this.setState({error:""}),"aria-labelledby":"error-dialog-title","aria-describedby":"error-dialog-description"},p.createElement(mt,{id:"alert-dialog-title"},this.props.t("ra_Error")),p.createElement(Tt,null,p.createElement(ds,{id:"alert-dialog-description"},this.state.error)),p.createElement(Et,null,p.createElement(_e,{variant:"contained",onClick:()=>this.setState({error:""}),color:"primary",autoFocus:!0,startIcon:p.createElement(jn,null)},this.props.t("ra_Ok")))):null}showError(n){this.setState({error:typeof n=="object"?n&&typeof n.toString=="function"?n.toString():JSON.stringify(n):n})}onSelect(n,r,o){if(this.localStorage.setItem(`${this.props.dialogName||"App"}.focused`,n),!this.props.multiSelect)this.objects[n]&&(!this.props.types||this.props.types.includes(this.objects[n].type))?(this.localStorage.removeItem(`${this.props.dialogName||"App"}.selectedNonObject`),this.state.selected[0]!==n?this.setState({selected:[n],selectedNonObject:"",focused:n},()=>{this.onAfterSelect(r),o&&o()}):r&&this.props.onSelect&&this.onAfterSelect(r)):(this.localStorage.setItem(`${this.props.dialogName||"App"}.selectedNonObject`,n),this.setState({selected:[],selectedNonObject:n,focused:n},()=>{this.onAfterSelect(),o&&o()}));else if(this.objects[n]&&(!this.props.types||this.props.types.includes(this.objects[n].type))){this.localStorage.removeItem(`${this.props.dialogName||"App"}.selectedNonObject`);const s=[...this.state.selected],a=s.indexOf(n);a===-1?(s.push(n),s.sort()):r||s.splice(a,1),this.setState({selected:s,selectedNonObject:"",focused:n},()=>{this.onAfterSelect(r),o&&o()})}}_renderDefinedList(n){const r=[...this.possibleCols];if(r.unshift("id"),this.props.columns&&!this.props.columns.includes("buttons")){const o=r.indexOf("buttons");o!==-1&&r.splice(o,1)}return r.filter(o=>n&&(o==="val"||o==="buttons")||!n&&o!=="val"&&o!=="buttons").map(o=>{var s;return p.createElement(cx,{onClick:()=>{if(!this.state.columnsAuto&&o!=="id"){const a=[...this.state.columns||[]],i=a.indexOf(o);i===-1?(a.push(o),a.sort()):a.splice(i,1),this.localStorage.setItem(`${this.props.dialogName||"App"}.columns`,JSON.stringify(a)),this.calculateColumnsVisibility(null,a),this.setState({columns:a})}},key:o},p.createElement(xt,{edge:"start",disabled:o==="id"||this.state.columnsAuto,checked:o==="id"||!!(this.state.columnsAuto?this.visibleCols.includes(o):(s=this.state.columns)!=null&&s.includes(o)),disableRipple:!0}),p.createElement(As,{primary:this.texts[`filter_${o}`]||this.props.t(`ra_${o}`)}))})}renderColumnsSelectorDialog(){return this.state.columnsSelectorShow?p.createElement(ft,{onClose:()=>this.setState({columnsSelectorShow:!1}),open:!0,sx:{"& .MuiPaper-root":U.getStyle(this.props.theme,j.dialogColumns,j[`transparent_${this.state.columnsDialogTransparent}`])}},p.createElement(mt,{sx:j.fontSizeTitle},this.props.t("ra_Configure")),p.createElement(Tt,{sx:j.fontSizeTitle},p.createElement(Ae,{style:j.switchColumnAuto,control:p.createElement(od,{checked:this.state.foldersFirst,onChange:()=>{this.localStorage.setItem(`${this.props.dialogName||"App"}.foldersFirst`,this.state.foldersFirst?"false":"true"),this.setState({foldersFirst:!this.state.foldersFirst})}}),label:this.props.t("ra_Folders always first")}),p.createElement(Ae,{style:j.switchColumnAuto,control:p.createElement(od,{checked:this.state.linesEnabled,onChange:()=>{this.localStorage.setItem(`${this.props.dialogName||"App"}.lines`,this.state.linesEnabled?"false":"true"),this.setState({linesEnabled:!this.state.linesEnabled})}}),label:this.props.t("ra_Show lines between rows")}),p.createElement(Ae,{style:j.switchColumnAuto,control:p.createElement(od,{checked:this.state.columnsAuto,onChange:()=>{this.localStorage.setItem(`${this.props.dialogName||"App"}.columnsAuto`,this.state.columnsAuto?"false":"true"),this.state.columnsAuto?this.state.columns?(this.calculateColumnsVisibility(!1),this.setState({columnsAuto:!1})):(this.calculateColumnsVisibility(!1,[...this.visibleCols]),this.setState({columnsAuto:!1,columns:[...this.visibleCols]})):(this.calculateColumnsVisibility(!0),this.setState({columnsAuto:!0}))}}),label:this.props.t("ra_Auto (no custom columns)")}),p.createElement(ey,null,this._renderDefinedList(!1),this.state.columnsForAdmin&&Object.keys(this.state.columnsForAdmin).sort().map(n=>this.state.columnsForAdmin&&this.state.columnsForAdmin[n].map(r=>{var o;return p.createElement(cx,{onClick:()=>{if(!this.state.columnsAuto){const s=[...this.state.columns||[]],a=`_${n}_${r.path}`,i=s.indexOf(a);i===-1?(s.push(a),s.sort()):s.splice(i,1),this.calculateColumnsVisibility(null,s),this.localStorage.setItem(`${this.props.dialogName||"App"}.columns`,JSON.stringify(s)),this.setState({columns:s})}},key:`${n}_${r.name}`},p.createElement(Ri,null,p.createElement(xt,{disabled:this.state.columnsAuto,edge:"start",checked:!this.state.columnsAuto&&((o=this.state.columns)==null?void 0:o.includes(`_${n}_${r.path}`)),disableRipple:!0})),p.createElement(As,{primary:`${r.name} (${n})`}))})),this._renderDefinedList(!0))),p.createElement(Et,null,p.createElement(_e,{variant:"contained",onClick:()=>this.setState({columnsSelectorShow:!1}),color:"primary",startIcon:p.createElement($t,null)},this.texts.close))):null}async getAdditionalColumns(){try{const n=await this.props.socket.getAdapters();let r=null;return n.forEach(o=>r=this.parseObjectForAdmins(r,o)),r}catch(n){return console.error(`Cannot get adapters: ${n}`),null}}checkUnsubscribes(){for(let n=this.subscribes.length-1;n>=0;n--)this.recordStates.includes(this.subscribes[n])||this.unsubscribe(this.subscribes[n]);this.recordStates=[]}findItem(n,r,o,s){if(r=r||n.split("."),o=o||this.root,!o||!r.length)return null;if(s=(s?`${s}.`:"")+r.shift(),o.children){const a=o.children.find(i=>i.data.id===s);if(a){if(a.data.id===n)return a;if(r.length)return this.findItem(n,r,a,s)}else return null}return null}parseObjectForAdmins(n,r){if(r.common&&r.common.adminColumns&&r.common.name){const o=r.common.adminColumns;let s;o&&typeof o!="object"?s=[o]:o&&(s=o);let a;o?a=s.map(i=>{if(typeof i!="object")return{path:i,name:i.split(".").pop()};const l=i;return l.objTypes&&typeof l.objTypes!="object"?l.objTypes=[l.objTypes]:l.objTypes||(l.objTypes=void 0),!l.name&&l.path?{path:l.path,name:l.path.split(".").pop(),width:l.width,edit:!!l.edit,type:l.type,objTypes:l.objTypes}:l.path?{path:l.path,name:mr(l.name||"",this.props.lang),width:l.width,edit:!!l.edit,type:l.type,objTypes:l.objTypes}:(console.warn(`Admin columns for ${r._id} ignored, because path not found`),null)}).filter(i=>i):a=null,a&&a.length&&(n=n||{},n[r.common.name]=a.sort((i,l)=>i.path>l.path?-1:i.path{this.objectsUpdateTimer=null;const{info:n,root:r}=NC(this.objects,{imagePrefix:this.props.imagePrefix,root:this.props.root,lang:this.props.lang,themeType:this.props.themeType});this.root=r,this.info=n,this.lastAppliedFilter=null,this.pausedSubscribes||this.forceUpdate()},500))}updateAliases(n){var o,s,a;if(!this.objects||!((o=this.info)!=null&&o.aliasesMap)||!(n!=null&&n.startsWith("alias.")))return;const r=Object.keys(this.objects).filter(i=>i.startsWith("alias.0"));this.info.aliasesMap={};for(const i of r){const l=this.objects[i];if((a=(s=l==null?void 0:l.common)==null?void 0:s.alias)!=null&&a.id)if(typeof l.common.alias.id=="string"){const d=l.common.alias.id;this.info.aliasesMap[d]?this.info.aliasesMap[d].includes(i)||this.info.aliasesMap[d].push(i):this.info.aliasesMap[d]=[i]}else{const d=l.common.alias.id.read;d&&(this.info.aliasesMap[d]?this.info.aliasesMap[d].includes(i)||this.info.aliasesMap[d].push(i):this.info.aliasesMap[d]=[i]);const u=l.common.alias.id.write;u&&(this.info.aliasesMap[u]?this.info.aliasesMap[u].includes(i)||this.info.aliasesMap[u].push(i):this.info.aliasesMap[u]=[i])}}}processOnObjectChangeElement(n,r){console.log(`> objectChange ${n}`);const o=r==null?void 0:r.type;if(r&&typeof this.props.filterFunc=="function"&&!this.props.filterFunc(r)&&o!=="channel"&&o!=="device"&&o!=="folder"&&o!=="adapter"&&o!=="instance")return{newInnerState:null,filtered:!0};let s=null;if(n.startsWith("system.adapter.")&&(r==null?void 0:r.type)==="adapter"){const a=JSON.parse(JSON.stringify(this.state.columnsForAdmin));this.parseObjectForAdmins(a,r),JSON.stringify(this.state.columnsForAdmin)!==JSON.stringify(a)&&(s={columnsForAdmin:a})}return this.objects=this.objects||{},r?this.objects[n]=r:this.objects[n]&&delete this.objects[n],this.updateAliases(n),{newInnerState:s,filtered:!1}}subscribe(n){this.subscribes.includes(n)||(this.subscribes.push(n),console.log(`+ subscribe ${n}`),this.pausedSubscribes||this.props.socket.subscribeState(n,this.onStateChange).catch(r=>console.error(`Cannot subscribe on state ${n}: ${r}`)))}unsubscribe(n){const r=this.subscribes.indexOf(n);r!==-1&&(this.subscribes.splice(r,1),this.states[n]&&delete this.states[n],console.log(`- unsubscribe ${n}`),this.props.socket.unsubscribeState(n,this.onStateChange),this.pausedSubscribes&&console.warn("Unsubscribe during pause?"))}pauseSubscribe(n){!this.pausedSubscribes&&n?(this.pausedSubscribes=!0,this.subscribes.forEach(r=>this.props.socket.unsubscribeState(r,this.onStateChange))):this.pausedSubscribes&&!n&&(this.pausedSubscribes=!1,this.subscribes.forEach(r=>this.props.socket.subscribeState(r,this.onStateChange)))}onFilter(n,r){this.filterTimer=null;const o={...this.state.filter};Object.keys(this.filterRefs).forEach(s=>{if(this.filterRefs[s]&&this.filterRefs[s].current){const a=this.filterRefs[s].current;for(let i=0;ithis.props.onFilterChanged&&this.props.onFilterChanged(o)))}clearFilter(){const n={...this.state.filter};Object.keys(this.filterRefs).forEach(r=>{if(this.filterRefs[r]&&this.filterRefs[r].current){const o=this.filterRefs[r].current;for(let s=0;sthis.props.onFilterChanged&&this.props.onFilterChanged(n)))}isFilterEmpty(){return!Object.keys(this.state.filter).find(r=>r!=="expertMode"&&this.state.filter[r])}getFilterInput(n){var r,o,s;return p.createElement(Hn,{sx:this.styles.filterInput,key:`${n}_${this.state.filterKey}`,margin:"dense"},p.createElement(Wn,{ref:this.filterRefs[n],classes:{underline:"no-underline"},id:n,placeholder:this.texts[`filter_${n}`],defaultValue:this.state.filter[n]||"",onChange:()=>{this.filterTimer&&clearTimeout(this.filterTimer),this.filterTimer=setTimeout(()=>this.onFilter(),400)},autoComplete:"off"}),(s=(o=(r=this.filterRefs[n])==null?void 0:r.current)==null?void 0:o.firstChild)!=null&&s.value?p.createElement("div",{style:{position:"absolute",right:0}},p.createElement(fe,{size:"small",onClick:()=>{var a;((a=this.filterRefs[n].current)==null?void 0:a.firstChild).value="",this.onFilter(n,"")}},p.createElement($t,null))):null)}getFilterSelect(n,r){var s,a,i;const o=!!(r!=null&&r.find(l=>l.icon));return p.createElement("div",{style:{position:"relative"}},p.createElement(an,{variant:"standard",key:`${n}_${this.state.filterKey}`,ref:this.filterRefs[n],sx:j.headerCellInput,className:"no-underline",onChange:()=>{this.filterTimer&&clearTimeout(this.filterTimer),this.filterTimer=setTimeout(()=>this.onFilter(),400)},defaultValue:this.state.filter[n]||"",inputProps:{name:n,id:n},displayEmpty:!0},p.createElement(ze,{key:"empty",value:""},p.createElement("span",{style:j.selectNone},this.texts[`filter_${n}`])),r==null?void 0:r.map(l=>{let d,u,c;return typeof l=="object"?(d=l.value,u=l.name,c=l.icon):(d=l,u=l),p.createElement(ze,{sx:j.headerCellSelectItem,key:d,value:d},c||(o?p.createElement("div",{className:"itemIcon"}):null),u)})),(i=(a=(s=this.filterRefs[n])==null?void 0:s.current)==null?void 0:a.childNodes[1])!=null&&i.value?p.createElement(Ce,{component:"div",sx:j.selectClearButton},p.createElement(fe,{size:"small",onClick:()=>{var d;const l={...this.state.filter};l[n]="",((d=this.filterRefs[n].current)==null?void 0:d.childNodes[1]).value="",this.localStorage.setItem(`${this.props.dialogName||"App"}.objectFilter`,JSON.stringify(l)),this.setState({filter:l,filterKey:this.state.filterKey+1},()=>this.props.onFilterChanged&&this.props.onFilterChanged(l))}},p.createElement($t,null))):null)}getFilterSelectRole(){return this.getFilterSelect("role",this.info.roles)}getFilterSelectRoom(){const n=this.info.roomEnums.map(r=>{var o,s,a,i;return{name:mr((s=(o=this.objects[r])==null?void 0:o.common)==null?void 0:s.name,this.props.lang)||r.split(".").pop(),value:r,icon:p.createElement(Gs,{src:((i=(a=this.objects[r])==null?void 0:a.common)==null?void 0:i.icon)||"",style:j.selectIcon})}});return this.getFilterSelect("room",n)}getFilterSelectFunction(){const n=this.info.funcEnums.map(r=>{var o,s,a,i;return{name:mr((s=(o=this.objects[r])==null?void 0:o.common)==null?void 0:s.name,this.props.lang)||r.split(".").pop(),value:r,icon:p.createElement(Gs,{src:((i=(a=this.objects[r])==null?void 0:a.common)==null?void 0:i.icon)||"",style:j.selectIcon})}});return this.getFilterSelect("func",n)}getFilterSelectType(){const n=this.info.types.map(r=>({name:r,value:r,icon:MC[r]||null}));return this.getFilterSelect("type",n)}getFilterSelectCustoms(){if(this.info.customs.length>1){const n=this.info.customs.map(r=>({name:r==="_"?this.texts.filterCustomsWithout:r,value:r,icon:r==="_"?null:p.createElement(Gs,{src:Nf(this.objects,r,this.props.lang,this.imagePrefix)||"",style:j.selectIcon})}));return this.getFilterSelect("custom",n)}return null}onExpandAll(n,r){var s;const o=n||this.root;r=r||[],(s=o==null?void 0:o.children)==null||s.forEach(a=>{a.data.sumVisibility&&(r.push(a.data.id),this.onExpandAll(a,r))}),o===this.root&&(r.sort(),this.localStorage.setItem(`${this.props.dialogName||"App"}.objectExpanded`,JSON.stringify(r)),this.setState({expanded:r}))}onCollapseAll(){this.localStorage.setItem(`${this.props.dialogName||"App"}.objectExpanded`,JSON.stringify([])),this.localStorage.setItem(`${this.props.dialogName||"App"}.objectSelected`,"[]"),this.setState({expanded:[],depth:0,selected:[]},()=>this.onAfterSelect())}expandDepth(n,r,o){var s;n=n||this.root,r>0&&((s=n.children)==null||s.forEach(a=>{a.data.sumVisibility&&(du(o,a.data.id)||(o.push(a.data.id),o.sort()),r-1>0&&this.expandDepth(a,r-1,o))}))}static collapseDepth(n,r){return r.filter(o=>o.split(".").length<=n)}onExpandVisible(){if(this.state.depth<9){const n=this.state.depth+1,r=[...this.state.expanded];this.root&&this.expandDepth(this.root,n,r),this.localStorage.setItem(`${this.props.dialogName||"App"}.objectExpanded`,JSON.stringify(r)),this.setState({depth:n,expanded:r})}}onStatesViewVisible(){const n=!this.state.statesView;this.localStorage.setItem(`${this.props.dialogName||"App"}.objectStatesView`,JSON.stringify(n)),this.setState({statesView:n})}onCollapseVisible(){if(this.state.depth>0){const n=this.state.depth-1,r=so.collapseDepth(n,this.state.expanded);this.localStorage.setItem(`${this.props.dialogName||"App"}.objectExpanded`,JSON.stringify(r)),this.setState({depth:n,expanded:r})}}async loadObjects(n){if(n)for(const r in n){if(!Object.prototype.hasOwnProperty.call(n,r)||!n[r])continue;const o=n[r];let s=null,a,i;o&&o.common&&o.common.enums?(s=o.common.enums,delete o.common.enums):s=null,(o.val||o.val===0)&&(a=o.val,delete o.val),o.ack!==void 0&&(i=o.ack,delete o.ack);try{if(await this.props.socket.setObject(r,o),s&&await this._createAllEnums(s,o._id),o.type==="state")if(a!=null)try{await this.props.socket.setState(o._id,a,i!==void 0?i:!0)}catch(l){window.alert(`Cannot set state "${o._id} with ${a}": ${l}`)}else try{const l=await this.props.socket.getState(o._id);if(!l||l.val===null)try{await this.props.socket.setState(o._id,!o.common||o.common.def===void 0?null:o.common.def,!0)}catch(d){window.alert(`Cannot set state "${o._id}": ${d}`)}}catch(l){window.alert(`Cannot read state "${o._id}": ${l}`)}}catch(l){window.alert(l)}}}_getSelectedIdsForExport(){if(this.state.selected.length||this.state.selectedNonObject){const n=[],r=Object.keys(this.objects);r.sort();const o=this.state.selected[0]||this.state.selectedNonObject,s=`${o}.`,a=s.length;for(let i=0;is)break}return n}return[]}async _exportObjects(n){var a;if(n.isAll){DC("allObjects.json",this.objects,n);return}if(!(this.state.selected.length||this.state.selectedNonObject)){window.alert(this.props.t("ra_Save of objects-tree is not possible"));return}const r={},o=this.state.selected[0]||this.state.selectedNonObject,s=this._getSelectedIdsForExport();for(const i of s){if(r[i]=JSON.parse(JSON.stringify(this.objects[i])),((a=r[i])==null?void 0:a.type)==="state"&&!n.noStatesByExportImport){const l=await this.props.socket.getState(i);l&&(r[i].val=l.val,r[i].ack=l.ack)}if(r[i].common){const l=this.getEnumsForId(i);l&&(r[i].common.enums=l)}}DC(`${o}.json`,r,n)}renderExportDialog(){return this.state.showExportDialog===!1?null:p.createElement(ft,{open:!0,maxWidth:"lg"},p.createElement(mt,null,this.props.t("ra_Select type of export")),p.createElement(Tt,null,p.createElement(ds,null,this.state.filter.expertMode||this.state.showAllExportOptions?p.createElement(p.Fragment,null,this.props.t("ra_You can export all objects or just the selected branch."),p.createElement("br",null),this.props.t("ra_Selected %s object(s)",this.state.showExportDialog),p.createElement("br",null),p.createElement(Ae,{control:p.createElement(xt,{checked:this.state.noStatesByExportImport,onChange:n=>this.setState({noStatesByExportImport:n.target.checked})}),label:this.props.t("ra_Do not export values of states")}),p.createElement("br",null),this.props.t("These options can reduce the size of the export file:"),p.createElement(Ae,{control:p.createElement(xt,{checked:this.state.beautifyJsonExport,onChange:n=>this.setState({beautifyJsonExport:n.target.checked})}),label:this.props.t("Beautify JSON output")}),p.createElement("br",null),p.createElement(Ae,{control:p.createElement(xt,{checked:this.state.excludeSystemRepositoriesFromExport,onChange:n=>this.setState({excludeSystemRepositoriesFromExport:n.target.checked})}),label:this.props.t("Exclude system repositories from export JSON")}),p.createElement(Ae,{control:p.createElement(xt,{checked:this.state.excludeTranslations,onChange:n=>this.setState({excludeTranslations:n.target.checked})}),label:this.props.t("Exclude translations (except english) from export JSON")})):null)),p.createElement(Et,null,this.state.filter.expertMode||this.state.showAllExportOptions?p.createElement(_e,{color:"grey",variant:"outlined",onClick:()=>this.setState({showExportDialog:!1,showAllExportOptions:!1},()=>this._exportObjects({isAll:!0,noStatesByExportImport:this.state.noStatesByExportImport,beautify:this.state.beautifyJsonExport,excludeSystemRepositories:this.state.excludeSystemRepositoriesFromExport,excludeTranslations:this.state.excludeTranslations}))},p.createElement("span",{style:{marginRight:8}},this.props.t("ra_All objects")),"(",Object.keys(this.objects).length,")"):p.createElement(_e,{color:"grey",variant:"outlined",startIcon:p.createElement($f,null),onClick:()=>this.setState({showAllExportOptions:!0})},this.props.t("ra_Advanced options")),p.createElement(_e,{color:"primary",variant:"contained",autoFocus:!0,onClick:()=>this.setState({showExportDialog:!1,showAllExportOptions:!1},()=>this._exportObjects({isAll:!1,noStatesByExportImport:this.state.noStatesByExportImport,beautify:this.state.beautifyJsonExport,excludeSystemRepositories:this.state.excludeSystemRepositoriesFromExport,excludeTranslations:this.state.excludeTranslations}))},p.createElement("span",{style:{marginRight:8}},this.props.t("ra_Only selected")),"(",this.state.showExportDialog,")"),p.createElement(_e,{color:"grey",variant:"contained",onClick:()=>this.setState({showExportDialog:!1,showAllExportOptions:!1}),startIcon:p.createElement($t,null)},this.props.t("ra_Cancel"))))}handleJsonUpload(n){var s;const r=n.target,o=((s=r.files)==null?void 0:s.length)&&r.files[0];if(o){const a=new FileReader;a.onload=async i=>{var d;const l=(d=i.target)==null?void 0:d.result;try{const u=JSON.parse(l),c=Object.keys(u).length,h=u._id;if(h===void 0&&c)await this.loadObjects(u),window.alert(this.props.t("ra_%s object(s) processed",c));else{if(!h)return window.alert(this.props.t("ra_Invalid structure"));try{let f,g,_;if(u.common.enums&&(f=u.common.enums,delete u.common.enums),u.val&&(g=u.val,delete u.val),u.ack!==void 0&&(_=u.ack,delete u.ack),await this.props.socket.setObject(u._id,u),u.type==="state")if(g!=null)await this.props.socket.setState(u._id,g,_===void 0?!0:_);else{const w=await this.props.socket.getState(u._id);(!w||w.val===null||w.val===void 0)&&await this.props.socket.setState(u._id,u.common.def===void 0?null:u.common.def,!0)}f&&await this._createAllEnums(f,u._id),window.alert(this.props.t("ra_%s was imported",u._id))}catch(f){window.alert(f)}}}catch(u){window.alert(u)}return null},a.readAsText(o)}else window.alert(this.props.t("ra_Failed to open JSON File"))}getToolbar(){let n=!1;if(this.state.selected.length||this.state.selectedNonObject){const r=this.state.selected[0]||this.state.selectedNonObject;r.split(".").length<2||this.objects[r]&&this.objects[r].type==="state"?n=!1:(this.state.filter.expertMode||r.startsWith("alias.0")||r.startsWith("0_userdata"))&&(n=!0)}return p.createElement("div",{style:{display:"flex",width:"100%",alignItems:"center",overflowX:"auto"}},p.createElement("div",{style:{display:"flex",width:"100%",alignItems:"center"}},p.createElement(cn,{title:this.props.t("ra_Refresh tree"),slotProps:{popper:{sx:j.tooltip}}},p.createElement("div",null,p.createElement(fe,{onClick:()=>this.refreshComponent(),disabled:this.state.updating,size:"large"},p.createElement(R4,null)))),this.props.showExpertButton&&!this.props.expertMode&&p.createElement(cn,{title:this.props.t("ra_expertMode"),slotProps:{popper:{sx:j.tooltip}}},p.createElement(fe,{key:"expertMode",color:this.state.filter.expertMode?"secondary":"default",onClick:()=>this.onFilter("expertMode",!this.state.filter.expertMode),size:"large"},p.createElement($f,null))),!this.props.disableColumnSelector&&this.props.width!=="xs"&&p.createElement(cn,{title:this.props.t("ra_Configure"),slotProps:{popper:{sx:j.tooltip}}},p.createElement(fe,{key:"columnSelector",color:this.state.columnsAuto?"primary":"default",onClick:()=>this.setState({columnsSelectorShow:!0}),size:"large"},p.createElement(RV,null))),this.props.width!=="xs"&&this.state.expandAllVisible&&p.createElement(cn,{title:this.props.t("ra_Expand all nodes"),slotProps:{popper:{sx:j.tooltip}}},p.createElement(fe,{key:"expandAll",onClick:()=>this.onExpandAll(),size:"large"},p.createElement(gh,null))),p.createElement(cn,{title:this.props.t("ra_Collapse all nodes"),slotProps:{popper:{sx:j.tooltip}}},p.createElement(fe,{key:"collapseAll",onClick:()=>this.onCollapseAll(),size:"large"},p.createElement(Tl,null))),this.props.width!=="xs"&&p.createElement(cn,{title:this.props.t("ra_Expand one step node"),slotProps:{popper:{sx:j.tooltip}}},p.createElement(fe,{key:"expandVisible",color:"primary",onClick:()=>this.onExpandVisible(),size:"large"},p.createElement(ou,{badgeContent:this.state.depth,color:"secondary",sx:r=>({badge:{right:3,top:3,border:`2px solid ${r.palette.background.paper}`,padding:"0 4px"}})},p.createElement(gh,null)))),this.props.width!=="xs"&&p.createElement(cn,{title:this.props.t("ra_Collapse one step node"),slotProps:{popper:{sx:j.tooltip}}},p.createElement(fe,{key:"collapseVisible",color:"primary",onClick:()=>this.onCollapseVisible(),size:"large"},p.createElement(ou,{sx:r=>({badge:{right:3,top:3,border:`2px solid ${r.palette.background.paper}`,padding:"0 4px"}}),badgeContent:this.state.depth,color:"secondary"},p.createElement(Tl,null)))),this.props.objectStatesView&&p.createElement(cn,{title:this.props.t("ra_Toggle the states view"),slotProps:{popper:{sx:j.tooltip}}},p.createElement(fe,{onClick:()=>this.onStatesViewVisible(),size:"large"},p.createElement(SV,{color:this.state.statesView?"primary":"inherit"}))),p.createElement(cn,{title:this.props.t("ra_Show/Hide object descriptions"),slotProps:{popper:{sx:j.tooltip}}},p.createElement(fe,{onClick:()=>{this.localStorage.setItem(`${this.props.dialogName||"App"}.desc`,this.state.showDescription?"false":"true"),this.setState({showDescription:!this.state.showDescription})},size:"large"},p.createElement(DV,{color:this.state.showDescription?"primary":"inherit"}))),this.props.objectAddBoolean?p.createElement(cn,{title:this.toolTipObjectCreating(),slotProps:{popper:{sx:j.tooltip}}},p.createElement("div",null,p.createElement(fe,{disabled:!n,onClick:()=>this.setState({modalNewObj:{id:this.state.selected[0]||this.state.selectedNonObject}}),size:"large"},p.createElement(yk,null)))):null,this.props.objectImportExport&&p.createElement(cn,{title:this.props.t("ra_Add objects tree from JSON file"),slotProps:{popper:{sx:j.tooltip}}},p.createElement(fe,{onClick:()=>{const r=document.createElement("input");r.setAttribute("type","file"),r.setAttribute("id","files"),r.setAttribute("opacity","0"),r.addEventListener("change",o=>this.handleJsonUpload(o),!1),r.click()},size:"large"},p.createElement(uf,null))),this.props.objectImportExport&&(!!this.state.selected.length||this.state.selectedNonObject)&&p.createElement(cn,{title:this.props.t("ra_Save objects tree as JSON file"),slotProps:{popper:{sx:j.tooltip}}},p.createElement(fe,{onClick:()=>this.setState({showExportDialog:this._getSelectedIdsForExport().length}),size:"large"},p.createElement(uf,{style:{transform:"rotate(180deg)"}})))),!!this.props.objectBrowserEditObject&&this.props.width!=="xs"&&p.createElement("div",{style:{display:"flex",whiteSpace:"nowrap"}},`${this.props.t("ra_Objects")}: ${Object.keys(this.info.objects).length}, ${this.props.t("ra_States")}: ${Object.keys(this.info.objects).filter(r=>this.info.objects[r].type==="state").length}`),this.props.objectEditBoolean&&p.createElement(cn,{title:this.props.t("ra_Edit custom config"),slotProps:{popper:{sx:j.tooltip}}},p.createElement(fe,{onClick:()=>{var o;const r=this.root?A3(this.root,"state",this.objects):[];r.length?(this.pauseSubscribe(!0),r.length===1&&(this.localStorage.setItem(`${this.props.dialogName||"App"}.objectSelected`,this.state.selected[0]),(o=this.props.router)==null||o.doNavigate(null,"custom",this.state.selected[0])),this.setState({customDialog:r,customDialogAll:!0})):this.setState({toast:this.props.t("ra_please select object")})},size:"large"},p.createElement(tV,null))))}toggleExpanded(n){const r=JSON.parse(JSON.stringify(this.state.expanded)),o=r.indexOf(n);o===-1?(r.push(n),r.sort()):r.splice(o,1),this.localStorage.setItem(`${this.props.dialogName||"App"}.objectExpanded`,JSON.stringify(r)),this.setState({expanded:r})}onCopy(n,r){n.stopPropagation(),n.preventDefault(),U.copyToClipboard(r),r.length<50?this.setState({toast:this.props.t("ra_Copied %s",r)}):this.setState({toast:this.props.t("ra_Copied")})}renderColumnButtons(n,r){var i,l,d;if(!r.data.obj)return this.props.onObjectDelete||this.props.objectEditOfAccessControl?p.createElement("div",{style:j.buttonDiv},this.state.filter.expertMode&&this.props.objectEditOfAccessControl?p.createElement(fe,{sx:{...j.cellButtonsButton,...j.cellButtonsEmptyButton,...j.cellButtonMinWidth},onClick:()=>this.setState({modalEditOfAccess:!0,modalEditOfAccessObjData:r.data}),size:"large"},p.createElement("div",{style:{height:15}},"---")):null,this.props.onObjectDelete&&r.children&&r.children.length?p.createElement(fe,{sx:{...j.cellButtonsButton,...j.cellButtonsButtonAlone},size:"small","aria-label":"delete",title:this.texts.deleteObject,onClick:()=>{var f;const u=Object.keys(this.objects);u.sort();let c=0;const h=`${n}.`;for(let g=0;gh)break;this.props.onObjectDelete&&this.props.onObjectDelete(n,!!((f=r.children)!=null&&f.length),!1,c+1)}},p.createElement(ra,{style:j.cellButtonsButtonIcon})):null):null;r.data.aclTooltip=r.data.aclTooltip||this.renderTooltipAccessControl(r.data.obj.acl);const o=r.data.obj.acl?r.data.obj.type==="state"?r.data.obj.acl.state:r.data.obj.acl.object:0,s=r.data.obj.acl&&(r.data.obj.type==="state"?this.systemConfig.common.defaultNewAcl.state:this.systemConfig.common.defaultNewAcl.object),a=this.state.filter.expertMode||so.isNonExpertId(r.data.id);return[this.state.filter.expertMode&&this.props.objectEditOfAccessControl?p.createElement(cn,{key:"acl",title:r.data.aclTooltip,slotProps:{popper:{sx:j.tooltip}}},p.createElement(fe,{sx:{...j.cellButtonsButton,...j.cellButtonMinWidth,opacity:1},onClick:()=>this.setState({modalEditOfAccess:!0,modalEditOfAccessObjData:r.data}),size:"large"},p.createElement("div",{style:j.aclText},Number.isNaN(Number(o))?Number(s).toString(16):Number(o).toString(16)))):p.createElement("div",{key:"aclEmpty",style:j.cellButtonMinWidth}),a?p.createElement(fe,{key:"edit",sx:{marginRight:"2px",...j.cellButtonsButton},size:"small","aria-label":"edit",title:this.texts.editObject,onClick:()=>{this.localStorage.setItem(`${this.props.dialogName||"App"}.objectSelected`,n),this.setState({editObjectDialog:n,editObjectAlias:!1})}},p.createElement(Ed,{style:j.cellButtonsButtonIcon})):p.createElement(Ce,{component:"div",key:"editDisabled",sx:j.cellButtonsButton}),this.props.onObjectDelete&&((i=r.children)!=null&&i.length||!((l=r.data.obj.common)!=null&&l.dontDelete))?p.createElement(fe,{key:"delete",sx:j.cellButtonsButton,size:"small","aria-label":"delete",onClick:()=>{var f,g,_;const u=Object.keys(this.objects);u.sort();let c=0;const h=`${n}.`;for(let w=0;wh)break;this.props.onObjectDelete&&this.props.onObjectDelete(n,!!((f=r.children)!=null&&f.length),!((_=(g=r.data.obj)==null?void 0:g.common)!=null&&_.dontDelete),c)},title:this.texts.deleteObject},p.createElement(ra,{style:j.cellButtonsButtonIcon})):null,this.props.objectCustomDialog&&this.info.hasSomeCustoms&&r.data.obj.type==="state"&&((d=r.data.obj.common)==null?void 0:d.type)!=="file"?p.createElement(fe,{sx:{...j.cellButtonsButton,...r.data.hasCustoms?this.styles.cellButtonsButtonWithCustoms:j.cellButtonsButtonWithoutCustoms},key:"custom",size:"small","aria-label":"config",title:this.texts.customConfig,onClick:()=>{var u;this.localStorage.setItem(`${this.props.dialogName||"App"}.objectSelected`,n),this.pauseSubscribe(!0),(u=this.props.router)==null||u.doNavigate(null,"customs",n),this.setState({customDialog:[n],customDialogAll:!1})}},p.createElement(yy,{style:j.cellButtonsButtonIcon})):null]}readHistory(n){var r,o;if(window.sparkline&&this.defaultHistory&&((o=(r=this.objects[n])==null?void 0:r.common)!=null&&o.custom)&&this.objects[n].common.custom[this.defaultHistory]){const s=new Date;s.setHours(s.getHours()-24),s.setMinutes(0),s.setSeconds(0),s.setMilliseconds(0);const a=s.getTime();this.props.socket.getHistory(n,{instance:this.defaultHistory,start:a,end:Date.now(),step:36e5,from:!1,ack:!1,q:!1,addID:!1,aggregate:"minmax"}).then(i=>{const l=window.document.getElementsByClassName("sparkline");for(let d=0;dconsole.warn(`Cannot read history: ${i}`))}}getTooltipInfo(n,r){var d,u;const o=this.objects[n],s=this.states[n],{valFull:a,fileViewer:i}=O_({state:s,obj:o,texts:this.texts,dateFormat:this.props.dateFormat||this.systemConfig.common.dateFormat,isFloatComma:this.props.isFloatComma===void 0?this.systemConfig.common.isFloatComma:this.props.isFloatComma,full:!0}),l=[];a==null||a.forEach(c=>{c.t===this.texts.quality&&s.q?(l.push(p.createElement("div",{style:j.cellValueTooltipBoth,key:c.t},c.t,": ",c.v)),c.nbr||l.push(p.createElement("br",{key:`${c.t}_br`}))):(l.push(p.createElement("div",{style:j.cellValueTooltipTitle,key:c.t},c.t,": ")),l.push(p.createElement("div",{style:j.cellValueTooltipValue,key:`${c.t}_v`},c.v)),c.nbr||l.push(p.createElement("br",{key:`${c.t}_br`})))}),i==="image"?l.push(p.createElement("img",{style:j.cellValueTooltipImage,src:s.val,alt:n})):this.defaultHistory&&((u=(d=this.objects[n])==null?void 0:d.common)!=null&&u.custom)&&this.objects[n].common.custom[this.defaultHistory]&&l.push(p.createElement("svg",{key:"sparkline",className:"sparkline","data-id":n,style:{fill:"#3d85de"},width:"200",height:"30",strokeWidth:"3"})),this.setState({tooltipInfo:{el:l,id:n}},()=>r&&r())}renderColumnValue(n,r,o){var d,u;const s=r.data.obj;if(!s||!this.states)return null;if(((d=s.common)==null?void 0:d.type)==="file")return p.createElement(Ce,{component:"div",sx:{...j.cellValueText,...j.cellValueFile}},"[file]");if(!this.states[n])return s.type==="state"&&(this.recordStates.includes(n)||this.recordStates.push(n),this.states[n]={val:null},this.subscribe(n)),null;this.recordStates.includes(n)||this.recordStates.push(n);const a=this.states[n];let i=r.data.state;if(!i){const{valText:c}=O_({state:a,obj:s,texts:this.texts,dateFormat:this.props.dateFormat||this.systemConfig.common.dateFormat,isFloatComma:this.props.isFloatComma===void 0?this.systemConfig.common.isFloatComma:this.props.isFloatComma}),h=[];r.data.state={valTextRx:h};const f=c.v||"";h.push(p.createElement("span",{className:`newValueBrowser-${this.props.themeType||"light"}`,key:`${c.v.toString()}valText`,style:{whiteSpace:"nowrap",display:"inline-block",overflow:"hidden",textOverflow:"ellipsis"}},c.v.toString())),c.u&&h.push(p.createElement("span",{className:`newValueBrowser-${this.props.themeType||"light"}`,style:j.cellValueTextUnit,key:`${c.v.toString()}unit`},c.u)),c.s!==void 0&&h.push(p.createElement("span",{style:j.cellValueTextState,className:`newValueBrowser-${this.props.themeType||"light"}`,key:`${c.v.toString()}states`},"(",c.s,")")),o||h.push(p.createElement(Ps,{className:"copyButton",style:this.styles.iconCopy,onClick:g=>this.onCopy(g,f),key:"cc"})),i=r.data.state}i.style=Tot({state:a,isExpertMode:this.state.filter.expertMode,isButton:r.data.button});let l=i.valTextRx;return this.state.filter.expertMode||(r.data.button?l=[p.createElement(kot,{key:"button",style:{color:i.style.color,...j.cellValueButton}})]:r.data.switch&&(l=[p.createElement(od,{key:"switch",sx:{"& .MuiSwitch-thumb":{color:i.style.color},"& .MuiSwitch-track":{backgroundColor:this.states[n].val&&this.state.selected.includes(n)?this.props.themeType==="dark"?"#FFF !important":"#111 !important":void 0}},checked:!!this.states[n].val})])),p.createElement(cn,{key:"value",title:(u=this.state.tooltipInfo)==null?void 0:u.el,slotProps:{popper:{sx:j.cellValueTooltipBox},tooltip:{sx:j.cellValueTooltip}},onOpen:()=>this.getTooltipInfo(n,()=>this.readHistory(n)),onClose:()=>{var c;return((c=this.state.tooltipInfo)==null?void 0:c.id)===n&&this.setState({tooltipInfo:null})}},p.createElement(Ce,{component:"div",style:i.style,sx:{...j.cellValueText,height:o?void 0:Ln,"& .admin-button:active":{transform:"translate(0, 2px)"}}},l))}_syncEnum(n,r,o,s){var l,d,u;if(!r||!r.length){s&&s();return}const a=r.pop()||"",i=[];if((l=this.info.objects[a])!=null&&l.common){if((d=this.info.objects[a].common.members)!=null&&d.length){const c=this.info.objects[a].common.members.indexOf(n);if(c!==-1&&!o.includes(a)){const h=JSON.parse(JSON.stringify(this.info.objects[a]));h.common.members.splice(c,1),i.push(this.props.socket.setObject(a,h).then(()=>this.info.objects[a]=h).catch(f=>this.showError(f)))}}if(o.includes(a)&&!((u=this.info.objects[a].common.members)!=null&&u.includes(n))){const c=JSON.parse(JSON.stringify(this.info.objects[a]));c.common.members=c.common.members||[],c.common.members.push(n),c.common.members.sort(),i.push(this.props.socket.setObject(a,c).then(()=>this.info.objects[a]=c).catch(h=>this.showError(h)))}}Promise.all(i).then(()=>{setTimeout(()=>this._syncEnum(n,r,o,s),0)})}syncEnum(n,r,o){const s=[...this.info[r==="func"?"funcEnums":"roomEnums"]];return new Promise(a=>{this._syncEnum(n,s,o,()=>{a()})})}renderEnumDialog(){if(!this.state.enumDialog)return null;const n=this.state.enumDialog.type,r=this.state.enumDialog.item,o=this.state.enumDialogEnums,s=this.state.enumDialog.enumsOriginal,a=(n==="room"?this.info.roomEnums:this.info.funcEnums).map(i=>{var l,d;return{name:mr(((d=(l=this.objects[i])==null?void 0:l.common)==null?void 0:d.name)||i.split(".").pop()||"",this.props.lang),value:i,icon:Nf(this.objects,i,this.props.lang,this.imagePrefix)}}).sort((i,l)=>i.name>l.name?1:-1);return a.forEach(i=>{i.icon&&typeof i.icon=="string"&&(i.icon=p.createElement(Ce,{style:j.enumIconDiv},p.createElement("img",{src:i.icon,style:j.enumIcon,alt:i.name})))}),p.createElement(ft,{sx:{"& .MuiPaper-root":j.enumDialog},onClose:()=>this.setState({enumDialog:null}),"aria-labelledby":"enum-dialog-title",open:!0},p.createElement(mt,{id:"enum-dialog-title"},n==="func"?this.props.t("ra_Define functions"):this.props.t("ra_Define rooms"),p.createElement(Ct,{sx:j.enumButton,color:"primary",disabled:s===JSON.stringify(o),size:"small",onClick:()=>this.syncEnum(r.data.id,n,o).then(()=>this.setState({enumDialog:null,enumDialogEnums:null}))},p.createElement(jn,null))),p.createElement(ey,{sx:{"&.MuiList-root":j.enumList}},a.map(i=>{let l,d,u;typeof i=="object"?(l=i.value,d=i.name,u=i.icon):(l=i,d=i);const c=`checkbox-list-label-${l}`;return p.createElement(iL,{sx:j.headerCellSelectItem,key:l,onClick:()=>{const h=o.indexOf(l),f=JSON.parse(JSON.stringify(this.state.enumDialogEnums));h===-1?(f.push(l),f.sort()):f.splice(h,1),this.setState({enumDialogEnums:f})},secondaryAction:u},p.createElement(Ri,{sx:{"&.MuiListItemIcon-root":j.enumCheckbox}},p.createElement(xt,{edge:"start",checked:o.includes(l),tabIndex:-1,disableRipple:!0,inputProps:{"aria-labelledby":c}})),p.createElement(As,{id:c},d))})))}renderEditRoleDialog(){if(!this.state.roleDialog||!this.props.objectBrowserEditRole)return null;if(this.state.roleDialog&&this.props.objectBrowserEditRole){const n=this.props.objectBrowserEditRole;return p.createElement(n,{key:"objectBrowserEditRole",id:this.state.roleDialog,socket:this.props.socket,t:this.props.t,roles:this.info.roles,onClose:r=>{r&&(this.info.objects[this.state.roleDialog]=r),this.setState({roleDialog:null})}})}return null}onColumnsEditCustomDialogClose(n){var o,s;const r=this.customColumnDialog;if(n){let a=r.value;r.type==="boolean"?a=a==="true"||a===!0:r.type==="number"&&(a=parseFloat(a)),this.customColumnDialog=null,this.props.socket.getObject(((s=(o=this.state.columnsEditCustomDialog)==null?void 0:o.obj)==null?void 0:s._id)||"").then(i=>{var l;if(i&&so.setCustomValue(i,(l=this.state.columnsEditCustomDialog)==null?void 0:l.it,a))return this.props.socket.setObject(i._id,i);throw new Error(this.props.t("ra_Cannot update attribute, because not found in the object"))}).then(()=>this.setState({columnsEditCustomDialog:null})).catch(i=>this.showError(i))}else this.customColumnDialog=null,this.setState({columnsEditCustomDialog:null})}renderColumnsEditCustomDialog(){if(!this.state.columnsEditCustomDialog)return null;if(!this.customColumnDialog){const n=so.getCustomValue(this.state.columnsEditCustomDialog.obj,this.state.columnsEditCustomDialog.it);this.customColumnDialog={type:this.state.columnsEditCustomDialog.it.type||typeof n,initValue:(n??"").toString(),value:(n??"").toString()}}return p.createElement(ft,{onClose:()=>this.setState({columnsEditCustomDialog:null}),maxWidth:"md","aria-labelledby":"custom-dialog-title",open:!0},p.createElement(mt,{id:"custom-dialog-title"},`${this.props.t("ra_Edit object field")}: ${this.state.columnsEditCustomDialog.obj._id}`),p.createElement(Tt,null,p.createElement(ds,{id:"alert-dialog-description"},this.customColumnDialog.type==="boolean"?p.createElement(Ae,{control:p.createElement(xt,{onKeyUp:n=>n.key==="Enter"&&this.onColumnsEditCustomDialogClose(!0),defaultChecked:this.customColumnDialog.value==="true",onChange:n=>{const r=this.customColumnDialog;r.value=n.target.checked.toString();const o=r.value!==r.initValue;o===!this.state.customColumnDialogValueChanged&&this.setState({customColumnDialogValueChanged:o})}}),label:`${this.state.columnsEditCustomDialog.it.name} (${this.state.columnsEditCustomDialog.it.pathText})`}):p.createElement(nt,{variant:"standard",defaultValue:this.customColumnDialog.value,fullWidth:!0,onKeyUp:n=>n.key==="Enter"&&this.onColumnsEditCustomDialogClose(!0),label:`${this.state.columnsEditCustomDialog.it.name} (${this.state.columnsEditCustomDialog.it.pathText})`,onChange:n=>{const r=this.customColumnDialog;r.value=n.target.value;const o=r.value!==r.initValue;o===!this.state.customColumnDialogValueChanged&&this.setState({customColumnDialogValueChanged:o})},autoFocus:!0}))),p.createElement(Et,null,p.createElement(_e,{variant:"contained",onClick:()=>this.onColumnsEditCustomDialogClose(!0),disabled:!this.state.customColumnDialogValueChanged,color:"primary",startIcon:p.createElement(jn,null)},this.props.t("ra_Update")),p.createElement(_e,{color:"grey",variant:"contained",onClick:()=>this.onColumnsEditCustomDialogClose(),startIcon:p.createElement($t,null)},this.props.t("ra_Cancel"))))}static getCustomValue(n,r){var o;if((o=n==null?void 0:n._id)!=null&&o.startsWith(`${r.adapter}.`)&&r.path.length>1){const s=r.path;let a;const i=n;if(i[s[0]]&&typeof i[s[0]]=="object")return s.length===2?a=i[s[0]][s[1]]:s.length===3?a=i[s[0]][s[1]]&&typeof i[s[0]][s[1]]=="object"?i[s[0]][s[1]][s[2]]:null:s.length===4?a=i[s[0]][s[1]]&&typeof i[s[0]][s[1]]=="object"&&i[s[0]][s[1]][s[2]]?i[s[0]][s[1]][s[2]][s[3]]:null:s.length===5?a=i[s[0]][s[1]]&&typeof i[s[0]][s[1]]=="object"&&i[s[0]][s[1]][s[2]]&&i[s[0]][s[1]][s[2]][s[3]]?i[s[0]][s[1]][s[2]][s[3]][s[4]]:null:s.length===6&&(a=i[s[0]][s[1]]&&typeof i[s[0]][s[1]]=="object"&&i[s[0]][s[1]][s[2]]&&i[s[0]][s[1]][s[2]][s[3]]&&i[s[0]][s[1]][s[2]][s[3]][s[4]]?i[s[0]][s[1]][s[2]][s[3]][s[4]][s[5]]:null),a??null}return null}static setCustomValue(n,r,o){var s;if((s=n==null?void 0:n._id)!=null&&s.startsWith(`${r.adapter}.`)&&r.path.length>1){const a=r.path,i=n;if(i[a[0]]&&typeof i[a[0]]=="object"){if(a.length===2)return i[a[0]][a[1]]=o,!0;if(a.length===3){if(i[a[0]][a[1]]&&typeof i[a[0]][a[1]]=="object")return i[a[0]][a[1]][a[2]]=o,!0}else if(a.length===4){if(i[a[0]][a[1]]&&typeof i[a[0]][a[1]]=="object"&&i[a[0]][a[1]][a[2]]&&typeof i[a[0]][a[1]][a[2]]=="object")return i[a[0]][a[1]][a[2]][a[3]]=o,!0}else if(a.length===5){if(i[a[0]][a[1]]&&typeof i[a[0]][a[1]]=="object"&&i[a[0]][a[1]][a[2]]&&typeof i[a[0]][a[1]][a[2]]=="object"&&i[a[0]][a[1]][a[2]][a[3]]&&typeof i[a[0]][a[1]][a[2]][a[3]]=="object")return i[a[0]][a[1]][a[2]][a[3]][a[4]]=o,!0}else if(a.length===6&&i[a[0]][a[1]]&&typeof i[a[0]][a[1]]=="object"&&i[a[0]][a[1]][a[2]]&&typeof i[a[0]][a[1]][a[2]]=="object"&&i[a[0]][a[1]][a[2]][a[3]]&&typeof i[a[0]][a[1]][a[2]][a[3]]=="object"&&i[a[0]][a[1]][a[2]][a[3]][a[4]]&&typeof i[a[0]][a[1]][a[2]][a[3]][a[4]]=="object")return i[a[0]][a[1]][a[2]][a[3]][a[4]][a[5]]=o,!0}}return!1}renderCustomValue(n,r,o){const s=so.getCustomValue(n,r);return s!=null?r.edit&&!this.props.notEditable&&(!r.objTypes||r.objTypes.includes(n.type))?p.createElement(Ce,{component:"div",style:{...j.columnCustom,...j.columnCustomEditable,...j[`columnCustom_${r.align}`]},onClick:()=>this.setState({columnsEditCustomDialog:{item:o,it:r,obj:n},customColumnDialogValueChanged:!1})},s):p.createElement(Ce,{component:"div",style:{...j.columnCustom,...j[`columnCustom_${r.align}`]}},s):null}renderAliasLink(n,r,o){const s=r||0,a=this.objects[this.info.aliasesMap[n][s]].common.alias.id;return a?p.createElement(Ce,{component:"div",onClick:i=>{i.stopPropagation(),i.preventDefault();const l=this.info.aliasesMap[n][s];this.info.aliasesMap[n].length>1&&this.setState({aliasMenu:""}),this.onSelect(l),setTimeout(()=>this.expandAllSelected(()=>this.scrollToItem(l)),100)},sx:o||this.styles.aliasAlone},p.createElement("span",{className:"admin-browser-arrow"},typeof a=="string"||a.read===n&&a.write===n?"↔":a.read===n?"→":"←"),this.info.aliasesMap[n][s]):null}renderLeaf(n,r,o){var oe,ve,se,Te,xe,Be,Ue,Ve,$e,Oe,ye,Ze,be,Ie;const s=n.data.id;o.count++,r=r===void 0?this.state.expanded.includes(s):r;let a;const i=n.data.obj,l=i==null?void 0:i.type;n.children||l==="folder"||l==="device"||l==="channel"||l==="meta"?a=r?p.createElement(gh,{style:this.styles.cellIdIconFolder,onClick:()=>this.toggleExpanded(s)}):p.createElement(Tl,{style:this.styles.cellIdIconFolder,onClick:()=>this.toggleExpanded(s)}):i&&i.common&&i.common.write===!1&&i.type==="state"?a=p.createElement(got,{style:this.styles.cellIdIconDocument}):a=p.createElement(mot,{style:this.styles.cellIdIconDocument});let d=null;n.data.icon&&(typeof n.data.icon=="string"?n.data.icon.length<3?d=p.createElement("span",{className:"iconOwn",style:j.cellIdIconOwn},n.data.icon):d=p.createElement(Gs,{style:j.cellIdIconOwn,className:"iconOwn",src:n.data.icon,alt:""}):d=n.data.icon);const u=i==null?void 0:i.common,c=(i==null?void 0:i.type)&&MC[i.type]||p.createElement("div",{className:"itemIcon"}),h=this.levelPadding*(n.data.level||0);if(n.data.lang!==this.props.lang){const{rooms:X,per:ne}=j3(this.info,s,this.props.lang);n.data.rooms=X.join(", "),n.data.per=ne;const{funcs:Ee,pef:Ne}=I3(this.info,s,this.props.lang);n.data.funcs=Ee.join(", "),n.data.pef=Ne,n.data.lang=this.props.lang}const f=this.props.multiSelect&&this.objects[s]&&(!this.props.types||this.props.types.includes(this.objects[s].type))?p.createElement(xt,{style:j.checkBox,checked:this.state.selected.includes(s)}):null;let g=!this.props.notEditable&&l==="state"&&(this.state.filter.expertMode||(u==null?void 0:u.write)!==!1);this.props.objectBrowserViewFile&&(u==null?void 0:u.type)==="file"&&(g=!0);const _=!this.props.notEditable&&this.objects[s]&&(this.state.filter.expertMode||l==="state"||l==="channel"||l==="device"),w=this.state.statesView&&(l==="state"||l==="channel"||l==="device");let v="";const b=[];if(w&&(v=(oe=this.states[s])==null?void 0:oe.from,v===void 0?v=" ":(v=v?v.replace(/^system\.adapter\.|^system\./,""):"",b.push(`${this.texts.stateChangedFrom} ${v}`)),i!=null&&i.user)){const X=i.user.replace("system.user.","");v+=`/${X}`,b.push(`${this.texts.stateChangedBy} ${X}`)}i&&(i.from&&b.push(`${this.texts.objectChangedFrom} ${i.from.replace(/^system\.adapter\.|^system\./,"")}`),i.user&&b.push(`${this.texts.objectChangedBy} ${i.user.replace(/^system\.user\./,"")}`),i.ts&&b.push(`${this.texts.objectChangedByUser} ${U.formatDate(new Date(i.ts),this.props.dateFormat||this.systemConfig.common.dateFormat)}`));let y=!1,S=null;s.startsWith("alias.")&&((ve=u==null?void 0:u.alias)!=null&&ve.id)?(y=typeof u.alias.id=="object",y?S=p.createElement("div",{style:j.cellIdAliasReadWriteDiv},u.alias.id.read?p.createElement(Ce,{component:"div",onClick:X=>{X.stopPropagation(),X.preventDefault(),this.onSelect(u.alias.id.read),setTimeout(()=>this.expandAllSelected(()=>this.scrollToItem(u.alias.id.read)),100)},sx:this.styles.aliasReadWrite},"←",u.alias.id.read):null,u.alias.id.write?p.createElement(Ce,{component:"div",onClick:X=>{X.stopPropagation(),X.preventDefault(),this.onSelect(u.alias.id.write),setTimeout(()=>this.expandAllSelected(()=>this.scrollToItem(u.alias.id.write)),100)},sx:this.styles.aliasReadWrite},"→",u.alias.id.write):null):S=p.createElement(Ce,{component:"div",onClick:X=>{X.stopPropagation(),X.preventDefault(),this.onSelect(u.alias.id),setTimeout(()=>this.expandAllSelected(()=>this.scrollToItem(u.alias.id)),100)},sx:this.styles.aliasAlone},"→",u.alias.id)):this.info.aliasesMap[s]&&(this.info.aliasesMap[s].length>1?S=p.createElement(Ce,{component:"div",id:`alias_${s}`,onClick:X=>{X.stopPropagation(),X.preventDefault(),this.setState({aliasMenu:s})},sx:this.styles.aliasAlone},this.props.t("ra_%s links from aliases",this.info.aliasesMap[s].length)):S=this.renderAliasLink(s,0));let $=u==null?void 0:u.color,C;if($&&!this.state.selected.includes(s)){const X=this.props.themeName==="dark"?"#1f1f1f":this.props.themeName==="blue"?"#222a2e":"#FFFFFF";U.colorDistance($,X)<1e3&&(C=this.props.themeType==="dark"?"#9a9a9a":"#565656")}let T=!1;s==="0_userdata"?($=$3(this.props.themeType),T=!0):s==="alias"?($=C3(this.props.themeType),T=!0):s==="javascript"?($=xot(this.props.themeType),T=!0):s==="system"?($=E3(this.props.themeType),T=!0):s==="system.adapter"?$=T3(this.props.themeType):(!$||this.state.selected.includes(s))&&($="inherit");const O=[];if(u!=null&&u.statusStates){const X={};Object.keys(u.statusStates).forEach(Ee=>{var qe;let Ne=u.statusStates[Ee];Ne.split(".").length<3&&(Ne=`${s}.${Ne}`),X[Ee]=Ne,this.states[Ne]?this.recordStates.includes(Ne)||this.recordStates.push(Ne):((qe=this.objects[Ne])==null?void 0:qe.type)==="state"&&(this.recordStates.includes(Ne)||this.recordStates.push(Ne),this.states[Ne]={val:null},this.subscribe(Ne))});let ne=!1;u.statusStates.errorId&&this.states[X.errorId]&&this.states[X.errorId].val&&($=this.props.themeType==="dark"?O3:D3,ne=!0,O.push(p.createElement(iV,{key:"error",style:this.styles.iconDeviceError}))),X.onlineId&&this.states[X.onlineId]?ne?this.states[X.onlineId].val?O.push(p.createElement(ad,{key:"conn",style:this.styles.iconDeviceConnected})):O.push(p.createElement(Cp,{key:"disc",style:this.styles.iconDeviceDisconnected})):this.states[X.onlineId].val?($=this.props.themeType==="dark"?Py:Ly,O.push(p.createElement(ad,{key:"conn",style:this.styles.iconDeviceConnected}))):($=this.props.themeType==="dark"?Fy:By,O.push(p.createElement(Cp,{key:"disc",style:this.styles.iconDeviceDisconnected}))):X.offlineId&&this.states[X.offlineId]&&(ne?this.states[X.offlineId].val?O.push(p.createElement(Cp,{key:"disc",style:this.styles.iconDeviceDisconnected})):O.push(p.createElement(ad,{key:"conn",style:this.styles.iconDeviceConnected})):this.states[X.offlineId].val?($=this.props.themeType==="dark"?Fy:By,O.push(p.createElement(Cp,{key:"disc",style:this.styles.iconDeviceDisconnected}))):($=this.props.themeType==="dark"?Py:Ly,O.push(p.createElement(ad,{key:"conn",style:this.styles.iconDeviceConnected}))))}const D=w?U.quality2text(((se=this.states[s])==null?void 0:se.q)||0).join(", "):null;let x=((Te=n.data)==null?void 0:Te.title)||"",A=!1;if(this.state.showDescription){const X=N3(n.data,this.props.lang);X&&(x=[p.createElement("div",{key:"name",style:j.cellNameDivDiv},x),p.createElement("div",{key:"desc",style:j.cellDescription},X)],A=!!X)}const I=this.props.width==="xs"&&this.state.focused===s,z=p.createElement(Bs,{container:!0,wrap:"nowrap",direction:"row",sx:j.cellId,style:{width:this.columnsVisibility.id,paddingLeft:h}},p.createElement(Bs,{container:!0,alignItems:"center"},f,a),p.createElement(Bs,{style:{...j.cellIdSpan,...C?this.styles.invertedBackground:void 0,color:$,fontWeight:T?"bold":void 0}},p.createElement(cn,{title:Eot(n.data,this.props.lang),slotProps:{popper:{sx:j.tooltip}}},p.createElement("div",null,n.data.name)),S,O),p.createElement("div",{style:{...j.grow,...C?this.styles.invertedBackgroundFlex:{}}}),p.createElement(Bs,{container:!0,alignItems:"center"},d),this.props.width!=="xs"?p.createElement("div",null,p.createElement(Ps,{className:I?"":"copyButton",style:j.cellCopyButton,onClick:X=>this.onCopy(X,s)})):null);let N=I&&x||this.columnsVisibility.name?p.createElement(Ce,{component:"div",sx:{...j.cellName,...A?j.cellNameWithDesc:void 0,width:this.props.width!=="xs"?this.columnsVisibility.name:void 0,ml:I?0:"5px"}},x,!I&&((xe=n.data)!=null&&xe.title)?p.createElement(Ce,{style:{color:$}},p.createElement(Ps,{className:"copyButton",style:j.cellCopyButton,onClick:X=>{var ne;return this.onCopy(X,(ne=n.data)==null?void 0:ne.title)}})):null):null,M;this.state.statesView?M=[I&&w&&((Be=this.states[s])!=null&&Be.from)||this.columnsVisibility.changedFrom?{el:p.createElement("div",{key:"from",style:{...j.cellRole,width:this.props.width!=="xs"?this.columnsVisibility.changedFrom:void 0},title:b.join(` +`)},w&&((Ue=this.states[s])!=null&&Ue.from)?v:null),type:"from"}:null,I&&D||this.columnsVisibility.qualityCode?{el:p.createElement("div",{key:"q",style:{...j.cellRole,width:this.props.width!=="xs"?this.columnsVisibility.qualityCode:void 0},title:D||""},D),type:"quality"}:null,I&&w&&((Ve=this.states[s])!=null&&Ve.ts)||this.columnsVisibility.timestamp?{el:p.createElement("div",{key:"ts",style:{...j.cellRole,width:this.props.width!=="xs"?this.columnsVisibility.timestamp:void 0}},w&&(($e=this.states[s])!=null&&$e.ts)?U.formatDate(new Date(this.states[s].ts),this.props.dateFormat||this.systemConfig.common.dateFormat):null),type:"ts"}:null,I&&w&&((Oe=this.states[s])!=null&&Oe.lc)||this.columnsVisibility.lastChange?{el:p.createElement("div",{key:"lc",style:{...j.cellRole,width:this.props.width!=="xs"?this.columnsVisibility.lastChange:void 0}},w&&((ye=this.states[s])!=null&&ye.lc)?U.formatDate(new Date(this.states[s].lc),this.props.dateFormat||this.systemConfig.common.dateFormat):null),type:"lc"}:null]:M=[I&&(i!=null&&i.type)||this.columnsVisibility.type?{el:p.createElement("div",{key:"type",style:{...j.cellType,width:this.props.width!=="xs"?this.columnsVisibility.type:void 0}},c," ",i==null?void 0:i.type),type:"filter_type"}:null,I&&u||this.columnsVisibility.role?{el:p.createElement("div",{key:"role",style:{...j.cellRole,width:this.props.width!=="xs"?this.columnsVisibility.role:"100%",cursor:this.state.filter.expertMode&&_&&this.props.objectBrowserEditRole?"text":"default"},onClick:!I&&this.state.filter.expertMode&&_&&this.props.objectBrowserEditRole?()=>this.setState({roleDialog:n.data.id}):void 0},u==null?void 0:u.role),type:"filter_role",onClick:I&&this.state.filter.expertMode&&_&&this.props.objectBrowserEditRole?()=>this.setState({roleDialog:n.data.id}):void 0}:null,I&&u||this.columnsVisibility.room?{el:p.createElement("div",{key:"room",style:{...j.cellRoom,...n.data.per?j.cellEnumParent:{},width:this.props.width!=="xs"?this.columnsVisibility.room:"100%",cursor:_?"text":"default"},onClick:!I&&_?()=>{const X=Ni(this.info,n.data.id,"roomEnums");this.setState({enumDialogEnums:X,enumDialog:{item:n,type:"room",enumsOriginal:JSON.stringify(X)}})}:void 0},n.data.rooms),type:"filter_room",onClick:I&&_?()=>{const X=Ni(this.info,n.data.id,"roomEnums");this.setState({enumDialogEnums:X,enumDialog:{item:n,type:"room",enumsOriginal:JSON.stringify(X)}})}:void 0}:null,I&&u||this.columnsVisibility.func?{el:p.createElement("div",{key:"func",style:{...j.cellFunc,...n.data.pef?j.cellEnumParent:{},width:this.props.width!=="xs"?this.columnsVisibility.func:"100%",cursor:_?"text":"default"},onClick:!I&&_?()=>{const X=Ni(this.info,n.data.id,"funcEnums");this.setState({enumDialogEnums:X,enumDialog:{item:n,type:"func",enumsOriginal:JSON.stringify(X)}})}:void 0},n.data.funcs),type:"filter_func",onClick:I&&_?()=>{const X=Ni(this.info,n.data.id,"funcEnums");this.setState({enumDialogEnums:X,enumDialog:{item:n,type:"func",enumsOriginal:JSON.stringify(X)}})}:void 0}:null];let B=((Ze=this.adapterColumns)==null?void 0:Ze.map(X=>p.createElement("div",{style:{...j.cellAdapter,width:this.props.width!=="xs"?this.columnsVisibility[X.id]:void 0},key:X.id,title:`${X.adapter} => ${X.pathText}`},i?this.renderCustomValue(i,X,n):null)))||null;const V=I||this.columnsVisibility.val?this.renderColumnValue(s,n,I):null;let R=I&&V||this.columnsVisibility.val?p.createElement("div",{style:{...j.cellValue,width:this.props.width!=="xs"?this.columnsVisibility.val:"calc(100% - 100px)",cursor:g?(u==null?void 0:u.type)==="file"?"zoom-in":n.data.button?"grab":"text":"default"},onClick:g?()=>{!i||!this.states||((u==null?void 0:u.type)==="file"?this.setState({viewFileDialog:s}):!this.state.filter.expertMode&&n.data.button?this.props.socket.setState(s,!0).catch(X=>window.alert(`Cannot write state "${s}": ${X}`)):!this.state.filter.expertMode&&n.data.switch?this.props.socket.setState(s,!this.states[s].val).catch(X=>window.alert(`Cannot write state "${s}": ${X}`)):(this.edit={val:this.states[s]?this.states[s].val:"",q:this.states[s]&&this.states[s].q||0,ack:!1,id:s},this.setState({updateOpened:!0})))}:void 0},V):null,F=I||this.columnsVisibility.buttons?p.createElement("div",{style:{...j.cellButtons,width:this.props.width!=="xs"?this.columnsVisibility.buttons:void 0}},this.renderColumnButtons(s,n)):null,q=null;if(this.props.width==="xs"&&this.state.focused===s){M=M.filter(ne=>ne);let X;M.length?X=M.map(ne=>ne?p.createElement("div",{key:ne.type,style:j.cellDetailsLine},p.createElement("span",{style:j.cellDetailsName},this.texts[ne.type],":"),ne.el,p.createElement("div",{style:{flexGrow:1}}),ne.onClick?p.createElement(Ed,{style:j.cellCopyButtonInDetails,onClick:()=>{ne!=null&&ne.onClick&&ne.onClick()}}):null):null):X=null,B.length||(B=null),q=p.createElement(_a,{style:{width:"100%",display:"flex",flexDirection:"column",padding:10,backgroundColor:this.props.theme.palette.mode==="dark"?"#333":"#ccc"}},p.createElement("div",{style:j.cellDetailsLine},p.createElement("div",{style:{flexGrow:1}}),p.createElement(Ps,{style:j.cellCopyButtonInDetails,onClick:ne=>this.onCopy(ne,s)})),N&&p.createElement("div",{style:j.cellDetailsLine},p.createElement("span",{style:j.cellDetailsName},this.texts.name,":"),N,p.createElement("div",{style:{flexGrow:1}}),(be=n.data)!=null&&be.title?p.createElement(Ps,{className:"copyButton",style:j.cellCopyButtonInDetails,onClick:ne=>{var Ee;return this.onCopy(ne,(Ee=n.data)==null?void 0:Ee.title)}}):null),X,B&&p.createElement("div",{style:j.cellDetailsLine},B),((Ie=this.objects[s])==null?void 0:Ie.type)==="state"&&p.createElement("div",{style:j.cellDetailsLine},p.createElement("span",{style:j.cellDetailsName},this.texts.value,":"),R,p.createElement("div",{style:{flexGrow:1}}),p.createElement(Ps,{className:"copyButton",style:j.cellCopyButtonInDetails,onClick:ne=>{const{valText:Ee}=O_({state:this.states[s],obj:this.objects[s],texts:this.texts,dateFormat:this.props.dateFormat||this.systemConfig.common.dateFormat,isFloatComma:this.props.isFloatComma===void 0?this.systemConfig.common.isFloatComma:this.props.isFloatComma});this.onCopy(ne,Ee.v.toString())},key:"cc"})),F&&p.createElement("div",{style:{...j.cellDetailsLine,justifyContent:"right"}},F)),N=null,M=null,B=null,R=null,F=null}return{row:p.createElement(Bs,{container:!0,direction:"row",wrap:"nowrap",sx:U.getStyle(this.props.theme,j.tableRow,this.state.linesEnabled&&j.tableRowLines,!this.props.dragEnabled&&j.tableRowNoDragging,S&&j.tableRowAlias,y&&j.tableRowAliasReadWrite,this.state.focused===s&&this.props.multiSelect&&j.tableRowFocused,!n.data.visible&&j.filteredOut,n.data.hasVisibleParent&&!n.data.visible&&!n.data.hasVisibleChildren&&j.filteredParentOut,this.state.selected.includes(s)&&j.itemSelected,this.state.selectedNonObject===s&&j.itemSelected),key:s,id:s,onMouseDown:X=>{this.onSelect(s);let ne;"which"in X?ne=X.which===3:"button"in X&&(ne=X.button===2),ne?this.contextMenu={item:n,ts:Date.now()}:this.contextMenu=null},onDoubleClick:()=>{n.children?this.toggleExpanded(s):this.onSelect(s,!0)}},z,N,M==null?void 0:M.map(X=>X==null?void 0:X.el),B,R,F),details:q}}renderItem(n,r,o){const s=[];o=o||{count:0};const a=this.renderLeaf(n,r,o);let i;const l=this.props.DragWrapper;return this.props.dragEnabled&&l?n.data.sumVisibility?i=p.createElement(l,{key:n.data.id,item:n,style:j.draggable},a.row):i=p.createElement("div",{key:n.data.id,style:j.nonDraggable},a.row):i=a.row,n.data.id&&i&&s.push(i),a.details&&s.push(a.details),r=r===void 0?du(this.state.expanded,n.data.id):r,(!n.data.id||r)&&(this.state.foldersFirst?n.children&&(s.push(n.children.map(d=>d.children&&(!this.state.columnsSelectorShow||o.count<15)&&d.data.sumVisibility?this.renderItem(d,void 0,o):null)),s.push(n.children.map(d=>!d.children&&(!this.state.columnsSelectorShow||o.count<15)&&d.data.sumVisibility?this.renderItem(d,void 0,o):null))):n.children&&s.push(n.children.map(d=>(!this.state.columnsSelectorShow||o.count<15)&&d.data.sumVisibility?this.renderItem(d,void 0,o):null))),s}calculateColumnsVisibility(n,r,o,s){let a=s||this.state.columnsWidths;const i=o||this.state.columnsForAdmin,l=r||this.state.columns||[],d=typeof n!="boolean"?this.state.columnsAuto:n;a=JSON.parse(JSON.stringify(a)),Object.keys(a).forEach(c=>{a[c]&&(a[c]=parseInt(a[c],10)||0)}),this.adapterColumns=[];const u=Qt[this.props.width||"lg"].widths;if(d){if(this.columnsVisibility={id:Qt[this.props.width||"lg"].idWidth,name:this.visibleCols.includes("name")&&u.name||0,nameHeader:this.visibleCols.includes("name")&&u.name||0,type:this.visibleCols.includes("type")&&u.type||0,role:this.visibleCols.includes("role")&&u.role||0,room:this.visibleCols.includes("room")&&u.room||0,func:this.visibleCols.includes("func")&&u.func||0,changedFrom:this.visibleCols.includes("changedFrom")&&u.changedFrom||0,qualityCode:this.visibleCols.includes("qualityCode")&&u.qualityCode||0,timestamp:this.visibleCols.includes("timestamp")&&u.timestamp||0,lastChange:this.visibleCols.includes("lastChange")&&u.lastChange||0,val:this.visibleCols.includes("val")&&u.val||0,buttons:this.visibleCols.includes("buttons")&&u.buttons||0},this.columnsVisibility.name&&!this.customWidth){let c=this.columnsVisibility.id||0;this.state.statesView?(c+=this.columnsVisibility.changedFrom||0,c+=this.columnsVisibility.qualityCode||0,c+=this.columnsVisibility.timestamp||0,c+=this.columnsVisibility.lastChange||0):(c+=this.columnsVisibility.type||0,c+=this.columnsVisibility.role||0,c+=this.columnsVisibility.room||0,c+=this.columnsVisibility.func||0),c+=this.columnsVisibility.val||0,c+=this.columnsVisibility.buttons||0,this.columnsVisibility.name=`calc(100% - ${c+5}px)`,this.columnsVisibility.nameHeader=`calc(100% - ${c+5+this.state.scrollBarWidth}px)`}else if(!this.customWidth){let c=0;this.state.statesView?(c+=this.columnsVisibility.changedFrom||0,c+=this.columnsVisibility.qualityCode||0,c+=this.columnsVisibility.timestamp||0,c+=this.columnsVisibility.lastChange||0):(c+=this.columnsVisibility.type||0,c+=this.columnsVisibility.role||0,c+=this.columnsVisibility.room||0,c+=this.columnsVisibility.func||0),c+=this.columnsVisibility.val||0,c+=this.columnsVisibility.buttons||0,this.columnsVisibility.id=`calc(100% - ${c+5}px)`}}else{const c=this.props.width||"lg";this.columnsVisibility={id:a.id||Qt[c].idWidth,name:l.includes("name")&&(a.name||u.name||Qt[c].widths.name)||0,type:l.includes("type")&&(a.type||u.type||Qt[c].widths.type)||0,role:l.includes("role")&&(a.role||u.role||Qt[c].widths.role)||0,room:l.includes("room")&&(a.room||u.room||Qt[c].widths.room)||0,func:l.includes("func")&&(a.func||u.func||Qt[c].widths.func)||0};let h=this.columnsVisibility.id;if(this.columnsVisibility.name&&(h+=this.columnsVisibility.type||0,h+=this.columnsVisibility.role||0,h+=this.columnsVisibility.room||0,h+=this.columnsVisibility.func||0),i&&l&&Object.keys(i).sort().forEach(f=>i[f].forEach(g=>{const _=`_${f}_${g.path}`;if(l.includes(_)){const w={adapter:f,id:`_${f}_${g.path}`,name:g.name,path:g.path.split("."),pathText:g.path};g.edit&&(w.edit=!0,g.type&&(w.type=g.type),g.objTypes&&(w.objTypes=g.objTypes)),this.adapterColumns.push(w),this.columnsVisibility[_]=a[w.id]||g.width||Qt[c].widths.func||Qt.xl.widths.func||0,h+=this.columnsVisibility[_]}else this.columnsVisibility[_]=0})),this.adapterColumns.sort((f,g)=>f.id>g.id?-1:f.id_==="id"||typeof this.columnsVisibility[_]=="string"||!this.columnsVisibility[_]?g:g+this.columnsVisibility[_],0);this.columnsVisibility.id=`calc(100% - ${f}px)`}}}navigateKeyPress(n){var o,s;const r=this.state.selectedNonObject||this.state.selected[0];if(r){if(n.code==="ArrowUp"||n.code==="ArrowDown"){n.preventDefault();const a=[];(o=this.tableRef.current)==null||o.childNodes.forEach(u=>a.push(u.id));const i=a.indexOf(r),l=n.code==="ArrowDown"?i+1:i-1,d=a[l]||r;this.onSelect(d),this.scrollToItem(d)}if((n.code==="ArrowRight"||n.code==="ArrowLeft")&&this.toggleExpanded(r),n.code==="Delete"&&this.root&&r){const a=so.getItemFromRoot(this.root,r);if(a){const{obj:i}=a.data;i&&!((s=i.common)!=null&&s.dontDelete)&&this.showDeleteDialog({id:r,obj:i,item:a})}}}}static getItemFromRoot(n,r){const o=r.split(".");let s="",a=n;for(let i=0;ithis.clearFilter(),style:j.buttonClearFilter,title:this.props.t("ra_Clear filter"),size:"large"},p.createElement(vot,null),p.createElement($t,{style:j.buttonClearFilterIcon}))),this.props.width==="xs"?p.createElement("div",{style:j.headerRow},p.createElement("div",{style:{...j.headerCell,width:"100%"}},this.getFilterInput("id"))):p.createElement("div",{style:j.headerRow},p.createElement("div",{style:{...j.headerCell,width:this.columnsVisibility.id,position:"relative"},"data-min":240,"data-name":"id"},this.getFilterInput("id"),this.renderHandleRight()),this.columnsVisibility.name?p.createElement("div",{style:{...j.headerCell,width:this.columnsVisibility.nameHeader,position:"relative"},"data-min":100,"data-name":"nameHeader"},this.getFilterInput("name"),this.renderHandleRight()):null,!this.state.statesView&&p.createElement(p.Fragment,null,this.columnsVisibility.type?p.createElement("div",{style:{...j.headerCell,width:this.columnsVisibility.type,position:"relative"},"data-min":100,"data-name":"type"},this.getFilterSelectType(),this.renderHandleRight()):null,this.columnsVisibility.role?p.createElement("div",{style:{...j.headerCell,width:this.columnsVisibility.role,position:"relative"},"data-min":100,"data-name":"role"},this.getFilterSelectRole(),this.renderHandleRight()):null,this.columnsVisibility.room?p.createElement("div",{style:{...j.headerCell,width:this.columnsVisibility.room,position:"relative"},"data-min":100,"data-name":"room"},this.getFilterSelectRoom(),this.renderHandleRight()):null,this.columnsVisibility.func?p.createElement("div",{style:{...j.headerCell,width:this.columnsVisibility.func,position:"relative"},"data-min":100,"data-name":"func"},this.getFilterSelectFunction(),this.renderHandleRight()):null),this.state.statesView&&p.createElement(p.Fragment,null,p.createElement("div",{style:{...j.headerCell,...j.headerCellValue,width:this.columnsVisibility.changedFrom,position:"relative"},"data-min":100,"data-name":"changedFrom"},this.props.t("ra_Changed from"),this.renderHandleRight()),p.createElement("div",{style:{...j.headerCell,...j.headerCellValue,width:this.columnsVisibility.qualityCode,position:"relative"},"data-min":100,"data-name":"qualityCode"},this.props.t("ra_Quality code"),this.renderHandleRight()),p.createElement("div",{style:{...j.headerCell,...j.headerCellValue,width:this.columnsVisibility.timestamp,position:"relative"},"data-min":100,"data-name":"timestamp"},this.props.t("ra_Timestamp"),this.renderHandleRight()),p.createElement("div",{style:{...j.headerCell,...j.headerCellValue,width:this.columnsVisibility.lastChange,position:"relative"},"data-min":100,"data-name":"lastChange"},this.props.t("ra_Last change"),this.renderHandleRight())),this.adapterColumns.map(r=>p.createElement("div",{style:{...j.headerCell,...j.headerCellValue,width:this.columnsVisibility[r.id]},title:r.adapter,key:r.id,"data-min":100,"data-name":r.id},r.name)),this.columnsVisibility.val?p.createElement("div",{style:{...j.headerCell,...j.headerCellValue,width:this.columnsVisibility.val,position:"relative"},"data-min":120,"data-name":"val"},this.props.t("ra_Value"),n):null,this.columnsVisibility.buttons?p.createElement("div",{title:this.texts.filter_custom,style:{...j.headerCell,width:this.columnsVisibility.buttons}}," ",this.getFilterSelectCustoms()):null)}renderToast(){return p.createElement(su,{open:!!this.state.toast,autoHideDuration:3e3,onClick:()=>this.setState({toast:""}),onClose:()=>this.setState({toast:""}),message:this.state.toast,action:p.createElement(fe,{size:"small","aria-label":"close",color:"inherit",onClick:()=>this.setState({toast:""})},p.createElement($t,{fontSize:"small"}))})}componentDidUpdate(){if(this.tableRef.current){const n=this.tableRef.current.offsetWidth-this.tableRef.current.clientWidth;this.state.scrollBarWidth!==n?setTimeout(()=>this.setState({scrollBarWidth:n}),100):this.selectFirst&&this.scrollToItem(this.selectFirst)}}scrollToItem(n){this.selectFirst="";const r=window.document.getElementById(n);r==null||r.scrollIntoView({behavior:"auto",block:"center",inline:"center"})}renderCustomDialog(){if(this.state.customDialog&&this.props.objectCustomDialog){const n=this.props.objectCustomDialog;return p.createElement(n,{reportChangedIds:r=>this.changedIds=[...r],objectIDs:this.state.customDialog,allVisibleObjects:!!this.state.customDialogAll,expertMode:this.state.filter.expertMode,isFloatComma:this.props.isFloatComma===void 0?this.systemConfig.common.isFloatComma:this.props.isFloatComma,t:this.props.t,lang:this.props.lang,socket:this.props.socket,themeName:this.props.themeName,themeType:this.props.themeType,theme:this.props.theme,objects:this.objects,customsInstances:this.info.customs,onClose:()=>{var r;this.pauseSubscribe(!1),this.setState({customDialog:null}),this.changedIds&&(this.changedIds=null,this.forceUpdate()),(r=this.props.router)==null||r.doNavigate("tab-objects")},systemConfig:this.systemConfig})}return null}onUpdate(n){this.props.socket.setState(this.edit.id,{val:n.val,ack:n.ack,q:n.q||0,expire:n.expire||void 0}).catch(r=>this.showError(`Cannot write value: ${r}`))}renderEditObjectDialog(){if(!this.state.editObjectDialog||!this.props.objectBrowserEditObject)return null;const n=this.props.objectBrowserEditObject;return p.createElement(n,{key:this.state.editObjectDialog,obj:this.objects[this.state.editObjectDialog],roleArray:this.info.roles,objects:this.objects,dateFormat:this.props.dateFormat||this.systemConfig.common.dateFormat,isFloatComma:this.props.isFloatComma===void 0?this.systemConfig.common.isFloatComma:this.props.isFloatComma,themeType:this.props.themeType,theme:this.props.theme,socket:this.props.socket,dialogName:this.props.dialogName,aliasTab:this.state.editObjectAlias,t:this.props.t,expertMode:!!this.state.filter.expertMode,onNewObject:r=>this.props.socket.setObject(r._id,r).then(()=>this.setState({editObjectDialog:r._id,editObjectAlias:!1},()=>this.onSelect(r._id))).catch(o=>this.showError(`Cannot write object: ${o}`)),onClose:r=>{var o,s;if(r){let a;this.state.editObjectDialog.startsWith("alias.")&&JSON.stringify((o=this.objects[this.state.editObjectDialog].common)==null?void 0:o.alias)!==JSON.stringify((s=r.common)==null?void 0:s.alias)&&(a=this.state.editObjectDialog),this.props.socket.setObject(r._id,r).then(()=>{a&&this.subscribes.includes(a)&&(this.unsubscribe(a),setTimeout(()=>this.subscribe(a),100))}).catch(i=>this.showError(`Cannot write object: ${i}`))}this.setState({editObjectDialog:"",editObjectAlias:!1})},width:this.props.width})}renderViewObjectFileDialog(){if(!this.state.viewFileDialog||!this.props.objectBrowserViewFile)return null;const n=this.props.objectBrowserViewFile;return p.createElement(n,{key:"viewFile",obj:this.objects[this.state.viewFileDialog],socket:this.props.socket,t:this.props.t,onClose:()=>this.setState({viewFileDialog:""})})}renderAliasEditorDialog(){if(!this.props.objectBrowserAliasEditor||!this.state.showAliasEditor)return null;const n=this.props.objectBrowserAliasEditor;return p.createElement(n,{key:"editAlias",obj:this.objects[this.state.showAliasEditor],objects:this.objects,socket:this.props.socket,t:this.props.t,onClose:()=>this.setState({showAliasEditor:""}),onRedirect:(r,o)=>setTimeout(()=>this.onSelect(r,!1,()=>this.expandAllSelected(()=>{this.scrollToItem(r),setTimeout(()=>this.setState({editObjectDialog:r,showAliasEditor:"",editObjectAlias:!0}),300)})),o||0)})}showAddDataPointDialog(n,r,o){this.setState({showContextMenu:null,modalNewObj:{id:n,initialType:r,initialStateType:o}})}renderAliasMenu(){return this.state.aliasMenu?p.createElement(Cd,{key:"aliasmenu",open:!0,anchorEl:window.document.getElementById(`alias_${this.state.aliasMenu}`),onClose:()=>this.setState({aliasMenu:""})},this.info.aliasesMap[this.state.aliasMenu].map((n,r)=>p.createElement(ze,{key:n,onClick:()=>this.onSelect(n)},p.createElement(As,null,this.renderAliasLink(this.state.aliasMenu,r,{"& .admin-browser-arrow":{mr:"8px"}}))))):null}renderContextMenu(){var f,g,_,w,v,b,y;if(!this.state.showContextMenu)return null;const n=this.state.showContextMenu.item,r=n.data.id,o=[],s=n.data.obj;let a="";if(this.props.objectEditOfAccessControl&&this.state.filter.expertMode)if(!s)a="---";else{const S=s.acl?s.type==="state"?s.acl.state:s.acl.object:0,$=s.acl&&(s.type==="state"?this.systemConfig.common.defaultNewAcl.state:this.systemConfig.common.defaultNewAcl.object);a=Number.isNaN(Number(S))?Number($).toString(16):Number(S).toString(16)}const i=!this.props.notEditable&&s&&(this.state.filter.expertMode||s.type==="state"||s.type==="channel"||s.type==="device"),l=!n.data.obj||n.data.obj.type==="folder"||n.data.obj.type==="channel"||n.data.obj.type==="device"||n.data.id==="0_userdata.0"||n.data.obj.type==="meta",d=!n.data.obj||n.data.obj.type==="folder"||n.data.obj.type==="device"||n.data.id==="0_userdata.0"||n.data.obj.type==="meta",u=!n.data.obj||n.data.obj.type==="folder"||n.data.id==="0_userdata.0"||n.data.obj.type==="meta",c=!n.data.obj||n.data.obj.type==="folder"||n.data.id==="0_userdata.0"||n.data.obj.type==="meta",h={EDIT:{key:"0",visibility:!!(this.props.objectBrowserEditObject&&s&&(this.state.filter.expertMode||so.isNonExpertId(r))),icon:p.createElement(Ed,{fontSize:"small",style:this.styles.contextMenuEdit}),label:this.texts.editObject,onClick:()=>this.setState({editObjectDialog:n.data.id,showContextMenu:null,editObjectAlias:!1})},EDIT_VALUE:{key:"1",visibility:!!(this.states&&!this.props.notEditable&&s&&s.type==="state"&&((f=s.common)==null?void 0:f.type)!=="file"&&(this.state.filter.expertMode||s.common.write!==!1)),icon:p.createElement(hV,{fontSize:"small",style:this.styles.contextMenuEditValue}),label:this.props.t("ra_Edit value"),onClick:()=>{this.edit={val:this.states[r]?this.states[r].val:"",q:this.states[r]&&this.states[r].q||0,ack:!1,id:r},this.setState({updateOpened:!0,showContextMenu:null})}},VIEW:{visibility:!!this.props.objectBrowserViewFile&&(s==null?void 0:s.type)==="state"&&((g=s.common)==null?void 0:g.type)==="file",icon:p.createElement(cV,{fontSize:"small",style:this.styles.contextMenuView}),label:this.props.t("ra_View file"),onClick:()=>this.setState({viewFileDialog:(s==null?void 0:s._id)||"",showContextMenu:null})},CUSTOM:{key:"2",visibility:!(this.props.objectCustomDialog&&this.info.hasSomeCustoms&&s&&s.type==="state"&&((_=s.common)==null?void 0:_.type)!=="file"),icon:p.createElement(yy,{fontSize:"small",style:n.data.hasCustoms?this.styles.cellButtonsButtonWithCustoms:j.cellButtonsButtonWithoutCustoms}),style:this.styles.contextMenuCustom,label:this.texts.customConfig,onClick:()=>{var S;this.pauseSubscribe(!0),(S=this.props.router)==null||S.doNavigate(null,"customs",r),this.setState({customDialog:[r],showContextMenu:null})}},ACL:{key:"3",visibility:!!a,icon:a,iconStyle:{fontSize:"smaller"},listItemIconStyle:this.styles.contextMenuACL,style:this.styles.contextMenuACL,label:this.props.t("ra_Edit ACL"),onClick:()=>this.setState({showContextMenu:null,modalEditOfAccess:!0,modalEditOfAccessObjData:n.data})},ROLE:{key:"4",visibility:!!(this.state.filter.expertMode&&i&&this.props.objectBrowserEditRole),icon:p.createElement(QU,{fontSize:"small",style:this.styles.contextMenuRole}),label:this.props.t("ra_Edit role"),onClick:()=>this.setState({roleDialog:n.data.id,showContextMenu:null})},FUNCTION:{key:"5",visibility:!!i,icon:p.createElement(YU,{fontSize:"small",style:this.styles.contextMenuRole}),label:this.props.t("ra_Edit function"),onClick:()=>{const S=Ni(this.info,n.data.id,"funcEnums");this.setState({enumDialogEnums:S,enumDialog:{item:n,type:"func",enumsOriginal:JSON.stringify(S)},showContextMenu:null})}},ROOM:{key:"6",visibility:!!i,icon:p.createElement(oV,{fontSize:"small",style:this.styles.contextMenuRoom}),label:this.props.t("ra_Edit room"),onClick:()=>{const S=Ni(this.info,n.data.id,"roomEnums");this.setState({enumDialogEnums:S,enumDialog:{item:n,type:"room",enumsOriginal:JSON.stringify(S)},showContextMenu:null})}},ALIAS:{key:"7",visibility:!!(!this.props.notEditable&&this.props.objectBrowserAliasEditor&&this.props.objectBrowserEditObject&&(s==null?void 0:s.type)==="state"&&((w=s.common)==null?void 0:w.type)!=="file"),icon:p.createElement(I4,{style:(v=s==null?void 0:s.common)!=null&&v.alias?this.styles.cellButtonsButtonWithCustoms:j.cellButtonsButtonWithoutCustoms}),label:this.info.aliasesMap[n.data.id]?this.props.t("ra_Edit alias"):this.props.t("ra_Create alias"),onClick:()=>{var S;(S=s==null?void 0:s.common)!=null&&S.alias?this.setState({showContextMenu:null,editObjectDialog:n.data.id,editObjectAlias:!0}):this.setState({showContextMenu:null,showAliasEditor:n.data.id})}},CREATE:{key:"+",visibility:(n.data.id.startsWith("0_userdata.0")||n.data.id.startsWith("javascript."))&&(l||d||u||c),icon:p.createElement(yk,{fontSize:"small",style:this.styles.cellButtonsButtonWithCustoms}),style:j.contextMenuWithSubMenu,label:this.texts.create,subMenu:[{label:this.texts.createBooleanState,visibility:l,icon:p.createElement(dd,{fontSize:"small"}),onClick:()=>this.showAddDataPointDialog(n.data.id,"state","boolean")},{label:this.texts.createNumberState,visibility:l,icon:p.createElement(dd,{fontSize:"small"}),onClick:()=>this.showAddDataPointDialog(n.data.id,"state","number")},{label:this.texts.createStringState,visibility:l,icon:p.createElement(dd,{fontSize:"small"}),onClick:()=>this.showAddDataPointDialog(n.data.id,"state","string")},{label:this.texts.createState,visibility:l,icon:p.createElement(dd,{fontSize:"small"}),onClick:()=>this.showAddDataPointDialog(n.data.id,"state")},{label:this.texts.createChannel,visibility:d,icon:p.createElement(x3,{fontSize:"small"}),onClick:()=>this.showAddDataPointDialog(n.data.id,"channel")},{label:this.texts.createDevice,visibility:u,icon:p.createElement(k3,{fontSize:"small"}),onClick:()=>this.showAddDataPointDialog(n.data.id,"device")},{label:this.texts.createFolder,icon:p.createElement(M4,{fontSize:"small"}),visibility:c,onClick:()=>this.showAddDataPointDialog(n.data.id,"folder")}]},DELETE:{key:"Delete",visibility:!!(this.props.onObjectDelete&&((b=n.children)!=null&&b.length||s&&!((y=s.common)!=null&&y.dontDelete))),icon:p.createElement(ra,{fontSize:"small",style:this.styles.contextMenuDelete}),style:this.styles.contextMenuDelete,label:this.texts.deleteObject,onClick:()=>this.setState({showContextMenu:null},()=>this.showDeleteDialog({id:r,obj:s||{},item:n}))}};return Object.keys(h).forEach(S=>{var $,C;h[S].visibility&&(h[S].subMenu?(o.push(p.createElement(ze,{key:S,href:"",onClick:T=>this.state.showContextMenu&&this.setState({showContextMenu:{item:this.state.showContextMenu.item,position:this.state.showContextMenu.position,subItem:S,subAnchor:T.target}}),style:h[S].style},p.createElement(Ri,{style:{...h[S].iconStyle,...h[S].listItemIconStyle}},h[S].icon),p.createElement(As,null,h[S].label,"..."),p.createElement("div",{style:{...j.contextMenuKeys,opacity:1}},p.createElement(JU,null)))),(($=this.state.showContextMenu)==null?void 0:$.subItem)===S&&o.push(p.createElement(Cd,{key:"subContextMenu",open:!0,anchorEl:this.state.showContextMenu.subAnchor,onClose:()=>{this.state.showContextMenu&&this.setState({showContextMenu:{item:this.state.showContextMenu.item,position:this.state.showContextMenu.position}}),this.contextMenu=null}},(C=h[S].subMenu)==null?void 0:C.map(T=>T.visibility?p.createElement(ze,{key:T.label,onClick:T.onClick,style:T.style},p.createElement(Ri,{style:{...T.iconStyle,...T.listItemIconStyle||void 0}},T.icon),p.createElement(As,null,T.label)):null)))):o.push(p.createElement(ze,{key:S,onClick:h[S].onClick,sx:h[S].style},p.createElement(Ri,{style:{...h[S].iconStyle,...h[S].listItemIconStyle}},h[S].icon),p.createElement(As,null,h[S].label),h[S].key?p.createElement("div",{style:j.contextMenuKeys},`Alt+${h[S].key==="Delete"?this.props.t("ra_Del"):h[S].key}`):null)))}),o.length?p.createElement(Cd,{key:"contextMenu",open:!0,onKeyUp:S=>{S.preventDefault(),S.altKey&&Object.keys(h).forEach($=>{S.key===h[$].key&&h[$].onClick&&h[$].onClick()})},anchorReference:"anchorPosition",anchorPosition:this.state.showContextMenu.position,onClose:()=>{this.setState({showContextMenu:null}),this.contextMenu=null}},o):(setTimeout(()=>this.setState({showContextMenu:null}),100),null)}renderEditValueDialog(){var s;if(!this.state.updateOpened||!this.props.objectBrowserValue)return null;if(!this.edit.id)return console.error(`Invalid ID for edit: ${JSON.stringify(this.edit)}`),null;if(!this.objects[this.edit.id])return console.error(`Something went wrong. Possibly the object ${this.edit.id} was deleted.`),null;const n=(s=this.objects[this.edit.id].common)!=null&&s.type?this.objects[this.edit.id].common.type:typeof this.edit.val,r=this.objects[this.edit.id].common.role,o=this.props.objectBrowserValue;return p.createElement(o,{t:this.props.t,lang:this.props.lang,type:n,role:r||"",states:U.getStates(this.objects[this.edit.id]),themeType:this.props.themeType,theme:this.props.theme,expertMode:!!this.state.filter.expertMode,value:this.edit.val,socket:this.props.socket,object:this.objects[this.edit.id],defaultHistory:this.defaultHistory,dateFormat:this.props.dateFormat||this.systemConfig.common.dateFormat,isFloatComma:this.props.isFloatComma===void 0?this.systemConfig.common.isFloatComma:this.props.isFloatComma,onClose:a=>{this.setState({updateOpened:!1}),a&&this.onUpdate(a)},width:this.props.width})}render(){this.recordStates=[],this.unsubscribeTimer&&clearTimeout(this.unsubscribeTimer),this.styleTheme!==this.props.themeType&&(this.styles={cellIdIconFolder:U.getStyle(this.props.theme,j.cellIdIconFolder),cellIdIconDocument:U.getStyle(this.props.theme,j.cellIdIconDocument),iconDeviceError:U.getStyle(this.props.theme,j.iconDeviceError),iconDeviceConnected:U.getStyle(this.props.theme,j.iconDeviceConnected),iconDeviceDisconnected:U.getStyle(this.props.theme,j.iconDeviceDisconnected),cellButtonsButtonWithCustoms:U.getStyle(this.props.theme,j.cellButtonsButtonWithCustoms),invertedBackground:U.getStyle(this.props.theme,j.invertedBackground),invertedBackgroundFlex:U.getStyle(this.props.theme,j.invertedBackgroundFlex),contextMenuEdit:U.getStyle(this.props.theme,j.contextMenuEdit),contextMenuEditValue:U.getStyle(this.props.theme,j.contextMenuEditValue),contextMenuView:U.getStyle(this.props.theme,j.contextMenuView),contextMenuCustom:U.getStyle(this.props.theme,j.contextMenuCustom),contextMenuACL:U.getStyle(this.props.theme,j.contextMenuACL),contextMenuRoom:U.getStyle(this.props.theme,j.contextMenuRoom),contextMenuRole:U.getStyle(this.props.theme,j.contextMenuRole),contextMenuDelete:U.getStyle(this.props.theme,j.contextMenuDelete),filterInput:U.getStyle(this.props.theme,j.headerCellInput,j.filterInput),iconCopy:U.getStyle(this.props.theme,j.cellButtonsValueButton,j.cellButtonsValueButtonCopy),aliasReadWrite:U.getStyle(this.props.theme,j.cellIdAlias,j.cellIdAliasReadWrite),aliasAlone:U.getStyle(this.props.theme,j.cellIdAlias,j.cellIdAliasAlone)},this.styleTheme=this.props.themeType);const n=JSON.stringify(this.state.filter);if(this.lastAppliedFilter!==n&&this.objects&&this.root){const o={count:0};Hy(this.root,this.state.filter,this.props.lang,this.objects,void 0,o,this.props.customFilter,this.props.types),o.count<500&&!this.state.expandAllVisible?setTimeout(()=>this.setState({expandAllVisible:!0})):o.count>=500&&this.state.expandAllVisible&&setTimeout(()=>this.setState({expandAllVisible:!1})),this.lastAppliedFilter=n}if(this.unsubscribeTimer=setTimeout(()=>{this.unsubscribeTimer=null,this.checkUnsubscribes()},200),!this.state.loaded)return p.createElement(Un,{key:`${this.props.dialogName}_c`});const r=this.root?this.renderItem(this.root,void 0):null;return p.createElement(yot,{key:this.props.dialogName},p.createElement("style",null,` +@keyframes newValueAnimation-light { + 0% { + color: #00f900; + } + 80% { + color: #008000; + } + 100% { + color: #000; + } +} +@keyframes newValueAnimation-dark { + 0% { + color: #00f900; + } + 80% { + color: #008000; + } + 100% { + color: #fff; + } +} +.newValueBrowser-dark { + animation: newValueAnimation-dark 2s ease-in-out; +} +.newValueBrowser-light { + animation: newValueAnimation-light 2s ease-in-out; +} +`),p.createElement(wot,null,this.getToolbar()),p.createElement(bot,null,this.renderHeader(),p.createElement("div",{style:j.tableDiv,ref:this.tableRef,onKeyDown:o=>this.navigateKeyPress(o)},r)),this.renderContextMenu(),this.renderAliasMenu(),this.renderToast(),this.renderColumnsEditCustomDialog(),this.renderColumnsSelectorDialog(),this.renderCustomDialog(),this.renderEditValueDialog(),this.renderEditObjectDialog(),this.renderViewObjectFileDialog(),this.renderAliasEditorDialog(),this.renderEditRoleDialog(),this.renderEnumDialog(),this.renderErrorDialog(),this.renderExportDialog(),this.state.modalNewObj&&this.props.modalNewObject&&this.props.modalNewObject(this),this.state.modalEditOfAccess&&this.state.modalEditOfAccessObjData&&this.props.modalEditOfAccessControl&&this.props.modalEditOfAccessControl(this,this.state.modalEditOfAccessObjData))}};jf=new WeakMap,X1(so,jf,["0_userdata.0.","alias.0."]);let Uy=so;const Dot=pg()(Uy),Y={hr:{border:0,borderTop:"1px solid gray"},scrollWindow:{width:"100%",overflow:"auto",height:"calc(100% - 22px)"},rowDiv:{width:"100%"},modeDiv:{width:200,display:"inline-block",verticalAlign:"top"},settingsDiv:{display:"inline-block",verticalAlign:"top"},inputTime:{width:90,marginTop:0,marginLeft:5},inputDate:{width:140,marginTop:0,marginLeft:5},inputEvery:{width:40,marginLeft:5,marginRight:5},inputRadio:{padding:"4px 12px",verticalAlign:"top"},inputGroup:{maxWidth:400,display:"inline-block"},inputGroupElement:{width:120},inputDateDay:{width:60},inputDateDayCheck:{padding:4},inputSmallCheck:{padding:0},rowOnce:{},rowDays:e=>({background:e.palette.mode!=="dark"?"#ddeaff":"#4b5057"}),rowDows:e=>({background:e.palette.mode!=="dark"?"#DDFFDD":"#52646c"}),rowDates:e=>({background:e.palette.mode!=="dark"?"#DDDDFF":"#747a86"}),rowWeeks:e=>({background:e.palette.mode!=="dark"?"#DDDDFF":"#717680"}),rowMonths:e=>({background:e.palette.mode!=="dark"?"#DDFFFF":"#1f5557"}),rowMonthsDates:e=>({background:e.palette.mode!=="dark"?"#EEFFFF":"#3c5737",maxWidth:600}),rowYears:e=>({background:e.palette.mode!=="dark"?"#fbffdd":"#574b33"}),rowDaysDows:e=>({background:e.palette.mode!=="dark"?"#EEEAFF":"#573544",pl:"10px",pb:"10px"}),rowDowsDows:e=>({background:e.palette.mode!=="dark"?"#EEFFEE":"#3d4c54",pl:"10px",pb:"10px"})},D_=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],zp=["January","February","March","April","May","June","July","August","September","October","November","December"],A_={minutes:"minutes",hours:"hours"},Uc=["sunrise","sunriseEnd","goldenHourEnd","solarNoon","goldenHour","sunsetStart","sunset","dusk","nauticalDusk","night","nightEnd","nauticalDawn","dawn","nadir"];function ts(e){return e<10?`0${e}`:`${e}`}const IC={time:{exactTime:!1,start:"00:00",end:"23:59",mode:"hours",interval:1},period:{once:"",days:1,dows:"",dates:"",weeks:0,months:"",years:0,yearMonth:0,yearDate:0},valid:{from:"",to:""}};function N_(e){const t=e.split(".");return t.length===3?`${t[2]}-${t[1]}-${t[0]}`:""}class _n extends k.Component{constructor(n){super(n);L(this,"refFrom");L(this,"refTo");L(this,"refOnce");L(this,"timerOnce",null);L(this,"timerFrom",null);L(this,"timerTo",null);let r;if(this.props.schedule&&typeof this.props.schedule=="string"&&this.props.schedule[0]==="{")try{r=JSON.parse(this.props.schedule)}catch{}else typeof this.props.schedule=="object"&&(r=this.props.schedule);(!r||!Object.keys(r).length)&&(setTimeout(()=>this.onChange(this.state.schedule,!0),200),r=IC),r={...IC,...r},r.valid.from=r.valid.from||_n.now2string(),this.refFrom=p.createRef(),this.refTo=p.createRef(),this.refOnce=p.createRef(),this.state={schedule:r,desc:_n.state2text(r)},JSON.stringify(r)!==this.props.schedule&&setTimeout(()=>this.props.onChange&&this.props.onChange(JSON.stringify(r)),100)}onChange(n,r){const o=JSON.stringify(n)!==JSON.stringify(this.state.schedule);if(r||o){o&&this.setState({schedule:n,desc:_n.state2text(n)});const s=JSON.parse(JSON.stringify(n));if(s.period.once){const a=s.period.once;delete s.period,s.period={once:a},delete s.valid}else if(s.period.days){const a=s.period.days,i=s.period.dows;delete s.period,s.period={days:a},i&&i!=="[]"&&(s.period.dows=i)}else if(s.period.weeks){const a=s.period.weeks,i=s.period.dows;delete s.period,s.period={weeks:a},i&&i!=="[]"&&(s.period.dows=i)}else if(s.period.months){const a=s.period.months,i=s.period.dates;delete s.period,s.period={months:a},i&&i!=="[]"&&(s.period.dates=i)}else if(s.period.years){const a=s.period.years,i=s.period.yearMonth,l=s.period.yearDate;delete s.period,s.period={years:a,yearDate:l},i&&(s.period.yearMonth=i)}if(s.time.exactTime?(delete s.time.end,delete s.time.mode,delete s.time.interval):delete s.time.exactTime,s.valid){if(s.valid.to||delete s.valid.to,s.period.days===1||s.period.weeks===1||s.period.months===1||s.period.years===1){const a=_n.string2date(s.valid.from),i=new Date;i.setHours(0),i.setMinutes(0),i.setSeconds(0),i.setMilliseconds(0),a<=i&&delete s.valid.from}!s.valid.from&&!s.valid.to&&delete s.valid}this.props.onChange&&this.props.onChange(JSON.stringify(s),_n.state2text(n))}}static state2text(n){if(typeof n=="string")try{n=JSON.parse(n)}catch{return""}const r=[],o=_n.string2date(n.valid.from);if(n.period.once){const s=_n.string2date(n.period.once),a=new Date;if(a.setMilliseconds(0),a.setSeconds(0),a.setMinutes(0),a.setHours(0),sE.t(D_[i]));if(a.length===1)r.push(E.t("sch_desc_onWeekday",a[0]));else if(a.length===7)r.push(E.t("sch_desc_everyDay"));else{const i=a.pop();r.push(E.t("sch_desc_onWeekdays",a.join(", "),i))}}}else r.push(E.t("sch_desc_everyDay"));else r.push(E.t("sch_desc_everyNDay",n.period.days.toString()));else if(n.period.weeks)if(n.period.weeks===1?r.push(E.t("sch_desc_everyWeek")):r.push(E.t("sch_desc_everyNWeeks",n.period.weeks.toString())),n.period.dows){const s=JSON.parse(n.period.dows);if(s.length===2&&s[0]===0&&s[1]===6)r.push(E.t("sch_desc_onWeekends"));else if(s.length===5&&s[0]===1&&s[1]===2&&s[2]===3&&s[3]===4&&s[4]===5)r.push(E.t("sch_desc_onWorkdays"));else{const a=s.map(i=>E.t(D_[i]));if(a.length===1)r.push(E.t("sch_desc_onWeekday",a[0]));else if(a.length===7)r.push(E.t("sch_desc_everyDay"));else{const i=a.pop();r.push(E.t("sch_desc_onWeekdays",a.join(", "),i))}}}else return E.t("sch_desc_never");else if(n.period.months){if(n.period.dates){const s=JSON.parse(n.period.dates);if(s.length===1)r.push(E.t("sch_desc_onDate",s[0]));else if(s.length===31)r.push(E.t("sch_desc_onEveryDate"));else if(s.length){const a=s.pop();r.push(E.t("sch_desc_onDates",s.join(", "),a))}else return E.t("sch_desc_never")}else r.push(E.t("sch_desc_onEveryDate"));if(n.period.months===1)r.push(E.t("sch_desc_everyMonth"));else if(typeof n.period.months=="number")r.push(E.t("sch_desc_everyNMonths",n.period.months.toString()));else{const a=JSON.parse(n.period.months).map(i=>E.t(zp[i-1]));if(!a.length)return E.t("sch_desc_never");if(a.length===1)r.push(E.t("sch_desc_onMonth",a[0]));else if(a.length===12)r.push(E.t("sch_desc_everyMonth"));else{const i=a.pop();r.push(E.t("sch_desc_onMonths",a.join(", "),i))}}}else n.period.years&&(n.period.years===1?r.push(E.t("sch_desc_everyYear")):r.push(E.t("sch_desc_everyNYears",n.period.years.toString())),r.push(E.t("sch_desc_onDate",n.period.yearDate.toString(),n.period.yearMonth?E.t(zp[n.period.yearMonth-1]):E.t("sch_desc_everyMonth"))));if(n.time.exactTime)Uc.includes(n.time.start)?r.push(E.t("sch_desc_atTime",E.t(`sch_astro_${n.time.start}`))):r.push(E.t("sch_desc_atTime",n.time.start));else{n.time.mode===A_.minutes?n.time.interval===1?r.push(E.t("sch_desc_everyMinute")):r.push(E.t("sch_desc_everyNMinutes",n.time.interval.toString())):n.time.interval===1?r.push(E.t("sch_desc_everyHour")):r.push(E.t("sch_desc_everyNHours",n.time.interval.toString()));const s=Uc.indexOf(n.time.start)!==-1?E.t(`sch_astro_${n.time.start}`):n.time.start,a=Uc.indexOf(n.time.end)!==-1?E.t(`sch_astro_${n.time.end}`):n.time.end;(s!=="00:00"||a!=="24:00"&&a!=="23:59")&&r.push(E.t("sch_desc_intervalFromTo",s,a))}return n.period.once||(o.getTime()>Date.now()&&n.valid.to?r.push(E.t("sch_desc_validFromTo",n.valid.from,n.valid.to)):o.getTime()>Date.now()?r.push(E.t("sch_desc_validFrom",n.valid.from)):n.valid.to&&r.push(E.t("sch_desc_validTo",n.valid.to))),r.join(" ")}getTimePeriodElements(){const n=this.state.schedule;let r=!1,o=!1,s=!1,a=!0;return n.time.start==="00:00"&&n.time.end==="24:00"?(r=!0,a=!1):n.time.start==="sunrise"?(o=!0,a=!1):n.time.start==="sunset"&&(s=!0,a=!1),p.createElement("div",{key:"timePeriod",style:Y.rowDiv},p.createElement("div",{style:Y.modeDiv},p.createElement(Ae,{control:p.createElement(Ot,{style:Y.inputRadio,checked:!n.time.exactTime,onClick:()=>{const i=JSON.parse(JSON.stringify(this.state.schedule));i.time.exactTime=!1,this.onChange(i)}}),label:E.t("sch_intervalTime")})),p.createElement("div",{style:Y.settingsDiv},p.createElement("div",{style:Y.settingsDiv},!n.time.exactTime&&p.createElement("div",null,p.createElement("div",null,p.createElement(Ae,{control:p.createElement(Ot,{style:Y.inputRadio,checked:!!a,onClick:()=>{const i=JSON.parse(JSON.stringify(this.state.schedule));i.time.start="00:00",i.time.end="23:59",this.onChange(i)}}),label:a?"":E.t("sch_fromTo")}),a&&[p.createElement(nt,{variant:"standard",style:{...Y.inputTime,marginRight:10},key:"exactTimeFrom",type:"time",sx:i=>({'& input[type="time"]::-webkit-calendar-picker-indicator':{filter:i.palette.mode==="dark"?"invert(80%)":void 0}}),value:this.state.schedule.time.start,onChange:i=>{const l=JSON.parse(JSON.stringify(this.state.schedule));l.time.start=i.target.value,this.onChange(l)},slotProps:{inputLabel:{shrink:!0}},label:E.t("sch_from"),margin:"normal"}),p.createElement(nt,{variant:"standard",style:Y.inputTime,key:"exactTimeTo",type:"time",sx:i=>({'& input[type="time"]::-webkit-calendar-picker-indicator':{filter:i.palette.mode==="dark"?"invert(80%)":void 0}}),value:this.state.schedule.time.end,onChange:i=>{const l=JSON.parse(JSON.stringify(this.state.schedule));l.time.end=i.target.value,this.onChange(l)},slotProps:{inputLabel:{shrink:!0}},label:E.t("sch_to"),margin:"normal"})])),!n.time.exactTime&&p.createElement("div",null,p.createElement(Ae,{control:p.createElement(Ot,{style:Y.inputRadio,checked:!!r,onClick:()=>{const i=JSON.parse(JSON.stringify(this.state.schedule));i.time.start="00:00",i.time.end="24:00",this.onChange(i)}}),label:E.t("sch_wholeDay")})),!n.time.exactTime&&p.createElement("div",null,p.createElement(Ae,{control:p.createElement(Ot,{style:Y.inputRadio,checked:!!o,onClick:()=>{const i=JSON.parse(JSON.stringify(this.state.schedule));i.time.start="sunrise",i.time.end="sunset",this.onChange(i)}}),label:E.t("sch_astroDay")})),!n.time.exactTime&&p.createElement("div",null,p.createElement(Ae,{control:p.createElement(Ot,{style:Y.inputRadio,checked:!!s,onClick:()=>{const i=JSON.parse(JSON.stringify(this.state.schedule));i.time.start="sunset",i.time.end="sunrise",this.onChange(i)}}),label:E.t("sch_astroNight")}))),!n.time.exactTime&&this.getPeriodSettingsMinutes(a)))}getTimeExactElements(){const n=Uc.includes(this.state.schedule.time.start);return p.createElement("div",{key:"timeExact",style:Y.rowDiv},p.createElement("div",{style:Y.modeDiv},p.createElement(Ae,{control:p.createElement(Ot,{style:Y.inputRadio,checked:!!this.state.schedule.time.exactTime,onClick:()=>{const r=JSON.parse(JSON.stringify(this.state.schedule));r.time.exactTime=!0,this.onChange(r)}}),label:E.t("sch_exactTime")})),this.state.schedule.time.exactTime&&p.createElement(an,{variant:"standard",value:n?this.state.schedule.time.start:"00:00",onChange:r=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.time.start=r.target.value,this.onChange(o)}},p.createElement(ze,{key:"specific",value:"00:00"},E.t("sch_specificTime")),Uc.map(r=>p.createElement(ze,{key:r,value:r},E.t(`sch_astro_${r}`)))),this.state.schedule.time.exactTime&&!n&&p.createElement("div",{style:Y.settingsDiv},p.createElement(nt,{variant:"standard",style:Y.inputTime,key:"exactTimeValue",value:this.state.schedule.time.start,type:"time",sx:r=>({'& input[type="time"]::-webkit-calendar-picker-indicator':{filter:r.palette.mode==="dark"?"invert(80%)":void 0}}),onChange:r=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.time.start=r.target.value,this.onChange(o)},slotProps:{inputLabel:{shrink:!0}},margin:"normal"})))}static getDivider(){return p.createElement("hr",{style:Y.hr})}getPeriodModes(){const n=this.state.schedule,r=!n.period.dows&&!n.period.months&&!n.period.dates&&!n.period.years&&!n.period.days&&!n.period.weeks;return r&&!n.period.once&&(n.period.once=_n.now2string(!0)),[p.createElement("div",{key:"once",style:{...Y.rowDiv,...Y.rowOnce}},p.createElement("div",{style:Y.modeDiv},p.createElement(Ae,{control:p.createElement(Ot,{style:Y.inputRadio,checked:!!r,onClick:()=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.period.once=o.period.once||_n.now2string(!0),o.period.dows="",o.period.months="",o.period.dates="",o.period.years=0,o.period.yearDate=0,o.period.yearMonth=0,o.period.weeks=0,o.period.days=0,this.onChange(o)}}),label:E.t("sch_periodOnce")})),r&&p.createElement("div",{style:Y.settingsDiv},p.createElement(nt,{variant:"standard",style:Y.inputDate,type:"date",ref:this.refOnce,key:"exactDateAt",defaultValue:N_(n.period.once),onChange:o=>{this.timerOnce&&clearTimeout(this.timerOnce),this.timerOnce=null,this.refOnce.current&&(this.refOnce.current.style.background="#ff000030"),this.timerOnce=setTimeout(s=>{this.timerOnce=null,this.refOnce.current&&(this.refOnce.current.style.background="");const a=JSON.parse(JSON.stringify(this.state.schedule)),i=_n.string2date(s);i.toString()!=="Invalid Date"&&(a.period.once=`${ts(i.getDate())}.${ts(i.getMonth()+1)}.${i.getFullYear()}`,this.onChange(a))},1500,o.target.value)},slotProps:{inputLabel:{shrink:!0}},label:E.t("sch_at"),margin:"normal"}))),p.createElement(Ce,{component:"div",key:"days",sx:U.getStyle(this.props.theme,Y.rowDiv,Y.rowDays)},p.createElement("div",{style:Y.modeDiv},p.createElement(Ae,{control:p.createElement(Ot,{style:Y.inputRadio,checked:!!n.period.days,onClick:()=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.period.days=1,o.period.dows="",o.period.months="",o.period.dates="",o.period.years=0,o.period.yearDate=0,o.period.yearMonth=0,o.period.weeks=0,o.period.once="",this.onChange(o)}}),label:E.t("sch_periodDaily")})),p.createElement("div",{style:Y.settingsDiv},this.getPeriodSettingsDaily(),n.period.days?this.getPeriodSettingsWeekdays():null)),p.createElement(Ce,{component:"div",key:"weeks",sx:U.getStyle(this.props.theme,Y.rowDiv,Y.rowDows)},p.createElement("div",{style:Y.modeDiv},p.createElement(Ae,{control:p.createElement(Ot,{style:Y.inputRadio,checked:!!n.period.weeks,onClick:()=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.period.weeks=n.period.weeks?0:1,o.period.dows=n.period.dows||"[0]",o.period.months="",o.period.dates="",o.period.years=0,o.period.yearDate=0,o.period.yearMonth=0,o.period.days=0,o.period.once="",this.onChange(o)}}),label:E.t("sch_periodWeekly")})),p.createElement(Ce,{component:"div",style:Y.settingsDiv},p.createElement("div",{style:Y.settingsDiv},this.getPeriodSettingsWeekly()),p.createElement(Ce,{component:"div",sx:U.getStyle(this.props.theme,Y.settingsDiv,Y.rowDowsDows)},this.state.schedule.period.weeks?this.getPeriodSettingsWeekdays():null))),p.createElement(Ce,{component:"div",key:"months",sx:U.getStyle(this.props.theme,Y.rowDiv,Y.rowMonths)},p.createElement("div",{style:Y.modeDiv},p.createElement(Ae,{control:p.createElement(Ot,{style:Y.inputRadio,checked:!!n.period.months,onClick:()=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.period.months=1,o.period.dows="",o.period.dates="",o.period.years=0,o.period.yearDate=0,o.period.yearMonth=0,o.period.weeks=0,o.period.days=0,o.period.once="",this.onChange(o)}}),label:E.t("sch_periodMonthly")})),p.createElement("div",{style:Y.settingsDiv},this.getPeriodSettingsMonthly(),n.period.months?p.createElement(Ce,null,p.createElement(Ce,{component:"div",sx:U.getStyle(this.props.theme,Y.settingsDiv,Y.rowMonthsDates)},p.createElement(Ae,{control:p.createElement(xt,{style:Y.inputRadio,checked:!!n.period.dates,onClick:()=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.period.months=o.period.months||1;const s=[];for(let a=1;a<=31;a++)s.push(a);o.period.dates=o.period.dates||JSON.stringify(s),o.period.dows="",o.period.years=0,o.period.yearDate=0,o.period.yearMonth=0,o.period.weeks=0,o.period.days=0,o.period.once="",this.onChange(o)}}),label:E.t("sch_periodDates")})),p.createElement(Ce,{component:"div",sx:U.getStyle(this.props.theme,Y.settingsDiv,Y.rowMonthsDates)},this.getPeriodSettingsDates())):null)),p.createElement(Ce,{component:"div",key:"years",sx:U.getStyle(this.props.theme,Y.rowDiv,Y.rowYears)},p.createElement("div",{style:Y.modeDiv},p.createElement(Ae,{control:p.createElement(Ot,{style:Y.inputRadio,checked:!!n.period.years,onClick:()=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.period.years=1,o.period.yearDate=1,o.period.yearMonth=1,o.period.dows="",o.period.months=0,o.period.dates="",o.period.weeks=0,o.period.days=0,o.period.once="",this.onChange(o)}}),label:E.t("sch_periodYearly")})),p.createElement("div",{style:Y.settingsDiv},p.createElement("div",{style:Y.settingsDiv},this.getPeriodSettingsYearly()),!!n.period.years&&p.createElement("div",{style:Y.settingsDiv},p.createElement("span",null,E.t("sch_on")),p.createElement(Wn,{key:"input",value:this.state.schedule.period.yearDate,style:Y.inputEvery,type:"number",inputProps:{min:1,max:31},onChange:o=>{const s=JSON.parse(JSON.stringify(this.state.schedule));s.period.yearDate=parseInt(o.target.value,10),s.period.yearDate<1&&(s.period.yearDate=31),s.period.yearDate>31&&(s.period.yearDate=1),this.onChange(s)}}),p.createElement(an,{variant:"standard",value:n.period.yearMonth,onChange:o=>{const s=JSON.parse(JSON.stringify(this.state.schedule));s.period.yearMonth=o.target.value,this.onChange(s)}},p.createElement(ze,{key:"every",value:0},E.t("sch_yearEveryMonth")),zp.map((o,s)=>p.createElement(ze,{key:o,value:s+1},E.t(o)))))))]}getPeriodSettingsMinutes(n){return p.createElement("div",{style:{display:"inline-block",marginTop:n?15:"inherit"}},p.createElement("label",{style:{marginLeft:4,marginRight:4}},E.t("sch_every")),p.createElement(Wn,{value:this.state.schedule.time.interval,style:{...Y.inputEvery,verticalAlign:"bottom"},type:"number",inputProps:{min:1},onChange:r=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.time.interval=parseInt(r.target.value,10),this.onChange(o)}}),p.createElement(an,{variant:"standard",value:this.state.schedule.time.mode,onChange:r=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.time.mode=r.target.value,this.onChange(o)}},p.createElement(ze,{value:A_.minutes},E.t("sch_periodMinutes")),p.createElement(ze,{value:A_.hours},E.t("sch_periodHours"))))}getPeriodSettingsWeekdays(){const n=this.state.schedule,r=n.period.dows&&n.period.dows!=="[1, 2, 3, 4, 5]"&&n.period.dows!=="[0, 6]";return[p.createElement("div",{key:"workdays"},p.createElement(Ae,{control:p.createElement(Ot,{style:Y.inputRadio,checked:n.period.dows==="[1, 2, 3, 4, 5]",onClick:()=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.period.dows="[1, 2, 3, 4, 5]",o.period.days&&(o.period.days=1),this.onChange(o)}}),label:E.t("sch_periodWorkdays")})),p.createElement("div",{key:"weekend"},p.createElement(Ae,{control:p.createElement(Ot,{style:Y.inputRadio,checked:n.period.dows==="[0, 6]",onClick:()=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.period.dows="[0, 6]",o.period.days&&(o.period.days=1),this.onChange(o)}}),label:E.t("sch_periodWeekend")})),p.createElement("div",{key:"specific",style:{verticalAlign:"top"}},p.createElement(Ae,{style:{verticalAlign:"top"},control:p.createElement(Ot,{style:Y.inputRadio,checked:!!r,onClick:()=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.period.dows="[0, 1, 2, 3, 4, 5, 6]",o.period.days&&(o.period.days=1),this.onChange(o)}}),label:E.t("sch_periodWeekdays")}),r&&(n.period.days===1||n.period.weeks)&&p.createElement(t_,{row:!0,style:{...Y.inputGroup,width:150}},[1,2,3,4,5,6,0].map(o=>p.createElement(Ae,{key:`specific_${o}`,style:Y.inputGroupElement,control:p.createElement(xt,{style:Y.inputSmallCheck,checked:n.period.dows.includes(o.toString()),onChange:s=>{const a=JSON.parse(JSON.stringify(this.state.schedule));let i;try{i=JSON.parse(a.period.dows)}catch{i=[]}s.target.checked&&!i.includes(o)?i.push(o):!s.target.checked&&i.includes(o)&&i.splice(i.indexOf(o),1),i.sort((l,d)=>l-d),a.period.dows=JSON.stringify(i),a.period.days&&(a.period.days=1),this.onChange(a)}}),label:E.t(D_[o])}))))]}getPeriodSettingsDaily(){if(!this.state.schedule.period.days)return null;const n=this.state.schedule;return[p.createElement("div",{key:"every_day"},p.createElement(Ae,{control:p.createElement(Ot,{style:Y.inputRadio,checked:n.period.days===1&&!n.period.dows,onClick:()=>{const r=JSON.parse(JSON.stringify(this.state.schedule));r.period.days=1,r.period.dows="",this.onChange(r)}}),label:E.t("sch_periodEveryDay")})),p.createElement("div",{key:"everyN_day"},p.createElement(Ae,{control:p.createElement(Ot,{style:Y.inputRadio,checked:n.period.days>1,onClick:()=>{const r=JSON.parse(JSON.stringify(this.state.schedule));r.period.days=2,r.period.dows="",this.onChange(r)}}),label:E.t("sch_periodEvery")}),n.period.days>1&&[p.createElement(Wn,{key:"input",value:this.state.schedule.period.days,style:Y.inputEvery,type:"number",inputProps:{min:2},onChange:r=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.period.days=parseInt(r.target.value,10),o.period.dows="",this.onChange(o)}}),p.createElement("span",{key:"span",style:{paddingRight:10}},E.t("sch_periodDay"))])]}getPeriodSettingsWeekly(){if(!this.state.schedule.period.weeks)return null;const n=this.state.schedule;return[p.createElement("div",{key:"radios",style:{display:"inline-block",verticalAlign:"top"}},p.createElement("div",null,p.createElement(Ae,{control:p.createElement(Ot,{style:Y.inputRadio,checked:n.period.weeks===1,onClick:()=>{const r=JSON.parse(JSON.stringify(this.state.schedule));r.period.weeks=1,this.onChange(r)}}),label:E.t("sch_periodEveryWeek")})),p.createElement("div",null,p.createElement(Ae,{control:p.createElement(Ot,{style:Y.inputRadio,checked:n.period.weeks>1,onClick:()=>{const r=JSON.parse(JSON.stringify(this.state.schedule));r.period.weeks=2,this.onChange(r)}}),label:E.t("sch_periodEvery")}),n.period.weeks>1&&[p.createElement(Wn,{key:"input",value:this.state.schedule.period.weeks,style:Y.inputEvery,type:"number",inputProps:{min:2},onChange:r=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.period.weeks=parseInt(r.target.value,10),this.onChange(o)}}),p.createElement("span",{key:"text"},E.t("sch_periodWeek"))]))]}getPeriodSettingsDates(){if(!this.state.schedule.period.dates)return null;const n=this.state.schedule,r=[];for(let s=1;s<=31;s++)r.push(s);const o=JSON.parse(n.period.dates);return p.createElement(t_,{row:!0,style:{...Y.inputGroup,maxWidth:620}},p.createElement(Ae,{style:Y.inputDateDay,control:p.createElement(xt,{style:Y.inputDateDayCheck,checked:o.length===31,onChange:()=>{const s=JSON.parse(JSON.stringify(this.state.schedule)),a=[];for(let i=1;i<=31;i++)a.push(i);s.period.dates=JSON.stringify(a),this.onChange(s)}}),label:E.t("sch_all")}),p.createElement(Ae,{style:Y.inputDateDay,control:p.createElement(xt,{style:Y.inputDateDayCheck,checked:!o.length,onChange:()=>{const s=JSON.parse(JSON.stringify(this.state.schedule));s.period.dates="[]",this.onChange(s)}}),label:E.t("sch_no_one")}),o.length!==31&&!!o.length&&p.createElement(Ae,{style:Y.inputDateDay,control:p.createElement(xt,{style:Y.inputDateDayCheck,checked:!1,onChange:()=>{const s=JSON.parse(JSON.stringify(this.state.schedule)),a=[],i=JSON.parse(s.period.dates);for(let l=1;l<=31;l++)i.includes(l)||a.push(l);a.sort((l,d)=>l-d),s.period.dates=JSON.stringify(a),this.onChange(s)}}),label:E.t("sch_invert")}),p.createElement("div",null),r.map(s=>p.createElement(Ae,{key:`date_${s}`,style:s?Y.inputDateDay:{...Y.inputDateDay,opacity:0,cursor:"default",userSelect:"none",pointerEvents:"none"},control:p.createElement(xt,{style:Y.inputDateDayCheck,checked:JSON.parse(n.period.dates).includes(s),onChange:a=>{const i=JSON.parse(JSON.stringify(this.state.schedule));let l;try{l=JSON.parse(i.period.dates)}catch{l=[]}a.target.checked&&!l.includes(s)?l.push(s):!a.target.checked&&l.includes(s)&&l.splice(l.indexOf(s),1),l.sort((d,u)=>d-u),i.period.dates=JSON.stringify(l),this.onChange(i)}}),label:s<10?[p.createElement("span",{key:"0",style:{opacity:0}},"0"),p.createElement("span",{key:"num"},s)]:s})))}getPeriodSettingsMonthly(){if(!this.state.schedule.period.months)return null;const n=this.state.schedule,r=typeof n.period.months=="string"?JSON.parse(n.period.months):[];return[p.createElement("div",{key:"every"},p.createElement(Ae,{control:p.createElement(Ot,{style:Y.inputRadio,checked:typeof n.period.months=="number"&&n.period.months===1,onClick:()=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.period.months=1,this.onChange(n)}}),label:E.t("sch_periodEveryMonth")})),p.createElement("div",{key:"everyN"},p.createElement(Ae,{control:p.createElement(Ot,{style:Y.inputRadio,checked:typeof n.period.months=="number"&&n.period.months>1,onClick:()=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.period.months=2,this.onChange(o)}}),label:E.t("sch_periodEvery")}),typeof n.period.months=="number"&&n.period.months>1&&[p.createElement(Wn,{key:"input",value:n.period.months,style:Y.inputEvery,type:"number",inputProps:{min:2},onChange:o=>{const s=JSON.parse(JSON.stringify(this.state.schedule));s.period.months=parseInt(o.target.value,10),s.period.months<1&&(s.period.months=1),this.onChange(s)}}),p.createElement("span",{key:"text"},E.t("sch_periodMonth"))]),p.createElement("div",{key:"specific",style:{verticalAlign:"top"}},p.createElement(Ae,{style:{verticalAlign:"top"},control:p.createElement(Ot,{style:Y.inputRadio,checked:typeof n.period.months=="string",onClick:()=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.period.months="[1,2,3,4,5,6,7,8,9,10,11,12]",this.onChange(o)}}),label:E.t("sch_periodSpecificMonths")}),typeof n.period.months=="string"&&p.createElement(t_,{row:!0,style:Y.inputGroup},p.createElement(Ae,{style:Y.inputDateDay,control:p.createElement(xt,{style:Y.inputDateDayCheck,checked:r.length===12,onChange:()=>{const o=JSON.parse(JSON.stringify(this.state.schedule)),s=[];for(let a=1;a<=12;a++)s.push(a);o.period.months=JSON.stringify(s),this.onChange(o)}}),label:E.t("sch_all")}),p.createElement(Ae,{style:Y.inputDateDay,control:p.createElement(xt,{style:Y.inputDateDayCheck,checked:!r.length,onChange:()=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.period.months="[]",this.onChange(o)}}),label:E.t("sch_no_one")}),r.length!==12&&!!r.length&&p.createElement(Ae,{style:Y.inputDateDay,control:p.createElement(xt,{style:Y.inputDateDayCheck,checked:!1,onChange:()=>{const o=JSON.parse(JSON.stringify(this.state.schedule)),s=[],a=JSON.parse(o.period.months);for(let i=1;i<=12;i++)a.includes(i)||s.push(i);s.sort((i,l)=>i-l),o.period.months=JSON.stringify(s),this.onChange(o)}}),label:E.t("sch_invert")}),p.createElement("div",null),zp.map((o,s)=>p.createElement(Ae,{key:`month_${s}`,style:Y.inputGroupElement,control:p.createElement(xt,{style:Y.inputSmallCheck,checked:typeof n.period.months=="string"?JSON.parse(n.period.months).includes(s+1):n.period.months===s,onChange:a=>{const i=JSON.parse(JSON.stringify(this.state.schedule));let l;try{l=JSON.parse(i.period.months)}catch{l=[]}a.target.checked&&!l.includes(s+1)?l.push(s+1):!a.target.checked&&l.includes(s+1)&&l.splice(l.indexOf(s+1),1),l.sort((d,u)=>d-u),i.period.months=JSON.stringify(l),this.onChange(i)}}),label:E.t(o)}))))]}getPeriodSettingsYearly(){if(!this.state.schedule.period.years)return null;const n=this.state.schedule;return[p.createElement("div",{key:"year"},p.createElement(Ae,{control:p.createElement(Ot,{style:Y.inputRadio,checked:n.period.years===1,onClick:()=>{const r=JSON.parse(JSON.stringify(this.state.schedule));r.period.years=1,this.onChange(r)}}),label:E.t("sch_periodEveryYear")})),p.createElement("div",{key:"every"},p.createElement(Ae,{control:p.createElement(Ot,{style:Y.inputRadio,checked:n.period.years>1,onClick:()=>{const r=JSON.parse(JSON.stringify(this.state.schedule));r.period.years=2,this.onChange(r)}}),label:E.t("sch_periodEvery")}),n.period.years>1&&[p.createElement(Wn,{key:"input",value:this.state.schedule.period.years,style:Y.inputEvery,type:"number",inputProps:{min:2},onChange:r=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.period.years=parseInt(r.target.value,10),o.period.years<1&&(o.period.years=1),this.onChange(o)}}),p.createElement("span",{key:"text"},E.t("sch_periodYear"))])]}static now2string(n){const r=new Date;return r.setHours(0),r.setMinutes(0),r.setSeconds(0),r.setMilliseconds(0),n&&(r.setDate(r.getDate()+2),r.setMilliseconds(r.getMilliseconds()-1)),`${ts(r.getDate())}.${ts(r.getMonth()+1)}.${ts(r.getFullYear())}`}static string2date(n){let r=n.split(".");return r.length===1?(r=n.split("-"),new Date(parseInt(r[0],10),parseInt(r[1],10)-1,parseInt(r[2],10))):new Date(parseInt(r[2],10),parseInt(r[1],10)-1,parseInt(r[0],10))}getValidSettings(){const n=this.state.schedule;return p.createElement("div",{style:Y.rowDiv},p.createElement("div",{style:{...Y.modeDiv,verticalAlign:"middle"}},p.createElement("span",{style:{fontWeight:"bold",paddingRight:10}},E.t("sch_valid")),p.createElement("span",null,E.t("sch_validFrom"))),p.createElement("div",{style:Y.settingsDiv},p.createElement(nt,{variant:"standard",style:{...Y.inputDate,marginRight:10},key:"exactTimeFrom",inputRef:this.refFrom,defaultValue:N_(n.valid.from),type:"date",onChange:r=>{this.timerFrom&&clearTimeout(this.timerFrom),this.refFrom.current&&(this.refFrom.current.style.background="#ff000030"),this.timerFrom=setTimeout(o=>{this.timerFrom=null,this.refFrom.current&&(this.refFrom.current.style.background="");const s=JSON.parse(JSON.stringify(this.state.schedule)),a=_n.string2date(o);a.toString()!=="Invalid Date"&&(s.valid.from=`${ts(a.getDate())}.${ts(a.getMonth()+1)}.${a.getFullYear()}`,this.onChange(s))},1500,r.target.value)},slotProps:{inputLabel:{shrink:!0}},margin:"normal"}),p.createElement(Ae,{control:p.createElement(xt,{style:Y.inputRadio,checked:!!n.valid.to,onClick:()=>{const r=JSON.parse(JSON.stringify(this.state.schedule));r.valid.to=r.valid.to?"":_n.now2string(!0),this.onChange(r)}}),label:E.t("sch_validTo")}),!!n.valid.to&&p.createElement(nt,{variant:"standard",inputRef:this.refTo,style:{...Y.inputDate,marginRight:10},key:"exactTimeFrom",type:"date",defaultValue:N_(n.valid.to),onChange:r=>{this.timerTo&&clearTimeout(this.timerTo),this.refTo.current&&(this.refTo.current.style.background="#ff000030"),this.timerTo=setTimeout(o=>{this.timerTo=null,this.refTo.current&&(this.refTo.current.style.background="");const s=JSON.parse(JSON.stringify(this.state.schedule)),a=_n.string2date(o);a.toString()!=="Invalid Date"&&(s.valid.to=`${ts(a.getDate())}.${ts(a.getMonth()+1)}.${a.getFullYear()}`,this.onChange(s))},1500,r.target.value)},slotProps:{inputLabel:{shrink:!0}},margin:"normal"})))}render(){return p.createElement("div",{style:{height:"calc(100% - 48px)",width:"100%",overflow:"hidden"}},p.createElement("div",null,this.state.desc),p.createElement("div",{style:Y.scrollWindow},p.createElement("h5",null,E.t("sch_time")),this.getTimePeriodElements(),this.getTimeExactElements(),_n.getDivider(),p.createElement("h5",null,E.t("sch_period")),this.getPeriodModes(),!this.state.schedule.period.once&&_n.getDivider(),!this.state.schedule.period.once&&this.getValidSettings()))}}class Sc extends k.Component{constructor(n){super(n);L(this,"dialogName");L(this,"filters");L(this,"filterFunc");this.dialogName=this.props.dialogName||"default",this.dialogName=`SelectID.${this.dialogName}`;const r=(window._localStorage||window.localStorage).getItem(this.dialogName)||"{}";try{this.filters=JSON.parse(r)}catch{this.filters={}}n.filters&&(this.filters={...this.filters,...n.filters||{}});let o=this.props.selected||[];if(Array.isArray(o)||(o=[o]),o=o.filter(s=>s),n.filterFunc)if(typeof n.filterFunc=="string")try{this.filterFunc=new Function("obj",n.filterFunc)}catch{console.error(`Cannot parse filter function: "obj => ${n.filterFunc}"`),this.filterFunc=void 0}else this.filterFunc=n.filterFunc;this.state={selected:o,name:""}}handleCancel(){this.props.onClose()}handleOk(){this.props.onOk(this.props.multiSelect?this.state.selected:this.state.selected[0]||"",this.state.name),this.props.onClose()}render(){let n;return this.state.name||this.state.selected.length?this.state.selected.length===1?n=[p.createElement("span",{key:"selected"},E.t("ra_Selected")," "),p.createElement("span",{key:"id",style:{fontWeight:"bold",fontStyle:"italic"}},(this.state.name||this.state.selected[0])+(this.state.name?` [${this.state.selected[0]}]`:""))]:n=[p.createElement("span",{key:"selected"},E.t("ra_Selected")," "),p.createElement("span",{key:"id",style:{fontWeight:"bold",fontStyle:"italic"}},E.t("%s items",this.state.selected.length.toString()))]:n=this.props.title||E.t("ra_Please select object ID..."),p.createElement(ft,{onClose:()=>{},maxWidth:!1,sx:{"& .MuiDialog-paper":{height:"95%",p:"4px",width:"100%",maxWidth:"100%",maxHeight:"calc(100% - 16px)"}},fullWidth:!0,open:!0,"aria-labelledby":"ar_dialog_selectid_title"},p.createElement(mt,{id:"ar_dialog_selectid_title",style:{whiteSpace:"nowrap",width:"calc(100% - 72px)",overflow:"hidden",display:"inline-block",textOverflow:"ellipsis"}},n),p.createElement(Tt,{style:{height:"100%",overflow:"hidden",padding:"8px 4px"}},p.createElement(Dot,{foldersFirst:this.props.foldersFirst,imagePrefix:this.props.imagePrefix||this.props.prefix,dateFormat:this.props.dateFormat,defaultFilters:this.filters,dialogName:this.dialogName,isFloatComma:this.props.isFloatComma,showExpertButton:this.props.showExpertButton!==void 0?this.props.showExpertButton:!0,expertMode:this.props.expertMode,columns:this.props.columns||["name","type","role","room","func","val"],types:this.props.types?Array.isArray(this.props.types)?this.props.types:[this.props.types]:["state"],root:this.props.root,t:E.t,lang:this.props.lang||E.getLanguage(),socket:this.props.socket,selected:this.state.selected,multiSelect:this.props.multiSelect,notEditable:this.props.notEditable===void 0?!0:this.props.notEditable,themeName:this.props.themeName,themeType:this.props.themeType,theme:this.props.theme,customFilter:this.props.customFilter,onFilterChanged:r=>{this.filters=r,(window._localStorage||window.localStorage).setItem(this.dialogName,JSON.stringify(r))},onSelect:(r,o,s)=>{let a;Array.isArray(r)?a=r:a=[r],JSON.stringify(a)!==JSON.stringify(this.state.selected)?this.setState({selected:a,name:o},()=>s&&this.handleOk()):s&&this.handleOk()},filterFunc:this.filterFunc,title:"",classes:{}})),p.createElement(Et,null,p.createElement(_e,{id:`ar_dialog_selectid_ok_${this.props.dialogName||""}`,variant:"contained",onClick:()=>this.handleOk(),startIcon:p.createElement(jn,null),disabled:!this.state.selected.length,color:"primary"},this.props.ok||E.t("ra_Ok")),p.createElement(_e,{id:`ar_dialog_selectid_cancel_${this.props.dialogName||""}`,color:"grey",variant:"contained",onClick:()=>this.handleCancel(),startIcon:p.createElement(Nu,null)},this.props.cancel||E.t("ra_Cancel"))))}}/*! + * Cropper.js v1.6.2 + * https://fengyuanchen.github.io/cropperjs + * + * Copyright 2015-present Chen Fengyuan + * Released under the MIT license + * + * Date: 2024-04-21T07:43:05.335Z + */function zC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function z3(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n
',Jot=Number.isNaN||Go.isNaN;function et(e){return typeof e=="number"&&!Jot(e)}var XC=function(t){return t>0&&t<1/0};function M_(e){return typeof e>"u"}function oi(e){return Vy(e)==="object"&&e!==null}var Xot=Object.prototype.hasOwnProperty;function gl(e){if(!oi(e))return!1;try{var t=e.constructor,n=t.prototype;return t&&n&&Xot.call(n,"isPrototypeOf")}catch{return!1}}function Yn(e){return typeof e=="function"}var Yot=Array.prototype.slice;function G3(e){return Array.from?Array.from(e):Yot.call(e)}function sn(e,t){return e&&Yn(t)&&(Array.isArray(e)||et(e.length)?G3(e).forEach(function(n,r){t.call(e,n,r,e)}):oi(e)&&Object.keys(e).forEach(function(n){t.call(e,e[n],n,e)})),e}var Ft=Object.assign||function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o0&&r.forEach(function(s){oi(s)&&Object.keys(s).forEach(function(a){t[a]=s[a]})}),t},Kot=/\.\d*(?:0|9){12}\d*$/;function Al(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1e11;return Kot.test(e)?Math.round(e*t)/t:e}var Zot=/^width|height|left|top|marginLeft|marginTop$/;function qs(e,t){var n=e.style;sn(t,function(r,o){Zot.test(o)&&et(r)&&(r="".concat(r,"px")),n[o]=r})}function Qot(e,t){return e.classList?e.classList.contains(t):e.className.indexOf(t)>-1}function hn(e,t){if(t){if(et(e.length)){sn(e,function(r){hn(r,t)});return}if(e.classList){e.classList.add(t);return}var n=e.className.trim();n?n.indexOf(t)<0&&(e.className="".concat(n," ").concat(t)):e.className=t}}function Uo(e,t){if(t){if(et(e.length)){sn(e,function(n){Uo(n,t)});return}if(e.classList){e.classList.remove(t);return}e.className.indexOf(t)>=0&&(e.className=e.className.replace(t,""))}}function _l(e,t,n){if(t){if(et(e.length)){sn(e,function(r){_l(r,t,n)});return}n?hn(e,t):Uo(e,t)}}var est=/([a-z\d])([A-Z])/g;function U1(e){return e.replace(est,"$1-$2").toLowerCase()}function e0(e,t){return oi(e[t])?e[t]:e.dataset?e.dataset[t]:e.getAttribute("data-".concat(U1(t)))}function pu(e,t,n){oi(n)?e[t]=n:e.dataset?e.dataset[t]=n:e.setAttribute("data-".concat(U1(t)),n)}function tst(e,t){if(oi(e[t]))try{delete e[t]}catch{e[t]=void 0}else if(e.dataset)try{delete e.dataset[t]}catch{e.dataset[t]=void 0}else e.removeAttribute("data-".concat(U1(t)))}var q3=/\s\s*/,J3=function(){var e=!1;if(hg){var t=!1,n=function(){},r=Object.defineProperty({},"once",{get:function(){return e=!0,t},set:function(s){t=s}});Go.addEventListener("test",n,r),Go.removeEventListener("test",n,r)}return e}();function to(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},o=n;t.trim().split(q3).forEach(function(s){if(!J3){var a=e.listeners;a&&a[s]&&a[s][n]&&(o=a[s][n],delete a[s][n],Object.keys(a[s]).length===0&&delete a[s],Object.keys(a).length===0&&delete e.listeners)}e.removeEventListener(s,o,r)})}function Nr(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},o=n;t.trim().split(q3).forEach(function(s){if(r.once&&!J3){var a=e.listeners,i=a===void 0?{}:a;o=function(){delete i[s][n],e.removeEventListener(s,o,r);for(var d=arguments.length,u=new Array(d),c=0;cMath.abs(n)&&(n=h)})}),n}function Pp(e,t){var n=e.pageX,r=e.pageY,o={endX:n,endY:r};return t?o:z3({startX:n,startY:r},o)}function ost(e){var t=0,n=0,r=0;return sn(e,function(o){var s=o.startX,a=o.startY;t+=s,n+=a,r+=1}),t/=r,n/=r,{pageX:t,pageY:n}}function Js(e){var t=e.aspectRatio,n=e.height,r=e.width,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"contain",s=XC(r),a=XC(n);if(s&&a){var i=n*t;o==="contain"&&i>r||o==="cover"&&i90?{width:l,height:i}:{width:i,height:l}}function ast(e,t,n,r){var o=t.aspectRatio,s=t.naturalWidth,a=t.naturalHeight,i=t.rotate,l=i===void 0?0:i,d=t.scaleX,u=d===void 0?1:d,c=t.scaleY,h=c===void 0?1:c,f=n.aspectRatio,g=n.naturalWidth,_=n.naturalHeight,w=r.fillColor,v=w===void 0?"transparent":w,b=r.imageSmoothingEnabled,y=b===void 0?!0:b,S=r.imageSmoothingQuality,$=S===void 0?"low":S,C=r.maxWidth,T=C===void 0?1/0:C,O=r.maxHeight,D=O===void 0?1/0:O,x=r.minWidth,A=x===void 0?0:x,I=r.minHeight,z=I===void 0?0:I,N=document.createElement("canvas"),M=N.getContext("2d"),B=Js({aspectRatio:f,width:T,height:D}),V=Js({aspectRatio:f,width:A,height:z},"cover"),R=Math.min(B.width,Math.max(V.width,g)),F=Math.min(B.height,Math.max(V.height,_)),q=Js({aspectRatio:o,width:T,height:D}),te=Js({aspectRatio:o,width:A,height:z},"cover"),oe=Math.min(q.width,Math.max(te.width,s)),ve=Math.min(q.height,Math.max(te.height,a)),se=[-oe/2,-ve/2,oe,ve];return N.width=Al(R),N.height=Al(F),M.fillStyle=v,M.fillRect(0,0,R,F),M.save(),M.translate(R/2,F/2),M.rotate(l*Math.PI/180),M.scale(u,h),M.imageSmoothingEnabled=y,M.imageSmoothingQuality=$,M.drawImage.apply(M,[e].concat(P3(se.map(function(Te){return Math.floor(Al(Te))})))),M.restore(),N}var Y3=String.fromCharCode;function ist(e,t,n){var r="";n+=t;for(var o=t;o0;)n.push(Y3.apply(null,G3(o.subarray(0,r)))),o=o.subarray(r);return"data:".concat(t,";base64,").concat(btoa(n.join("")))}function ust(e){var t=new DataView(e),n;try{var r,o,s;if(t.getUint8(0)===255&&t.getUint8(1)===216)for(var a=t.byteLength,i=2;i+1=8&&(s=d+c)}}}if(s){var h=t.getUint16(s,r),f,g;for(g=0;g=0?s:U3),height:Math.max(r.offsetHeight,a>=0?a:V3)};this.containerData=i,qs(o,{width:i.width,height:i.height}),hn(t,Zn),Uo(o,Zn)},initCanvas:function(){var t=this.containerData,n=this.imageData,r=this.options.viewMode,o=Math.abs(n.rotate)%180===90,s=o?n.naturalHeight:n.naturalWidth,a=o?n.naturalWidth:n.naturalHeight,i=s/a,l=t.width,d=t.height;t.height*i>t.width?r===3?l=t.height*i:d=t.width/i:r===3?d=t.width/i:l=t.height*i;var u={aspectRatio:i,naturalWidth:s,naturalHeight:a,width:l,height:d};this.canvasData=u,this.limited=r===1||r===2,this.limitCanvas(!0,!0),u.width=Math.min(Math.max(u.width,u.minWidth),u.maxWidth),u.height=Math.min(Math.max(u.height,u.minHeight),u.maxHeight),u.left=(t.width-u.width)/2,u.top=(t.height-u.height)/2,u.oldLeft=u.left,u.oldTop=u.top,this.initialCanvasData=Ft({},u)},limitCanvas:function(t,n){var r=this.options,o=this.containerData,s=this.canvasData,a=this.cropBoxData,i=r.viewMode,l=s.aspectRatio,d=this.cropped&&a;if(t){var u=Number(r.minCanvasWidth)||0,c=Number(r.minCanvasHeight)||0;i>1?(u=Math.max(u,o.width),c=Math.max(c,o.height),i===3&&(c*l>u?u=c*l:c=u/l)):i>0&&(u?u=Math.max(u,d?a.width:0):c?c=Math.max(c,d?a.height:0):d&&(u=a.width,c=a.height,c*l>u?u=c*l:c=u/l));var h=Js({aspectRatio:l,width:u,height:c});u=h.width,c=h.height,s.minWidth=u,s.minHeight=c,s.maxWidth=1/0,s.maxHeight=1/0}if(n)if(i>(d?0:1)){var f=o.width-s.width,g=o.height-s.height;s.minLeft=Math.min(0,f),s.minTop=Math.min(0,g),s.maxLeft=Math.max(0,f),s.maxTop=Math.max(0,g),d&&this.limited&&(s.minLeft=Math.min(a.left,a.left+(a.width-s.width)),s.minTop=Math.min(a.top,a.top+(a.height-s.height)),s.maxLeft=a.left,s.maxTop=a.top,i===2&&(s.width>=o.width&&(s.minLeft=Math.min(0,f),s.maxLeft=Math.max(0,f)),s.height>=o.height&&(s.minTop=Math.min(0,g),s.maxTop=Math.max(0,g))))}else s.minLeft=-s.width,s.minTop=-s.height,s.maxLeft=o.width,s.maxTop=o.height},renderCanvas:function(t,n){var r=this.canvasData,o=this.imageData;if(n){var s=sst({width:o.naturalWidth*Math.abs(o.scaleX||1),height:o.naturalHeight*Math.abs(o.scaleY||1),degree:o.rotate||0}),a=s.width,i=s.height,l=r.width*(a/r.naturalWidth),d=r.height*(i/r.naturalHeight);r.left-=(l-r.width)/2,r.top-=(d-r.height)/2,r.width=l,r.height=d,r.aspectRatio=a/i,r.naturalWidth=a,r.naturalHeight=i,this.limitCanvas(!0,!1)}(r.width>r.maxWidth||r.widthr.maxHeight||r.heightn.width?s.height=s.width/r:s.width=s.height*r),this.cropBoxData=s,this.limitCropBox(!0,!0),s.width=Math.min(Math.max(s.width,s.minWidth),s.maxWidth),s.height=Math.min(Math.max(s.height,s.minHeight),s.maxHeight),s.width=Math.max(s.minWidth,s.width*o),s.height=Math.max(s.minHeight,s.height*o),s.left=n.left+(n.width-s.width)/2,s.top=n.top+(n.height-s.height)/2,s.oldLeft=s.left,s.oldTop=s.top,this.initialCropBoxData=Ft({},s)},limitCropBox:function(t,n){var r=this.options,o=this.containerData,s=this.canvasData,a=this.cropBoxData,i=this.limited,l=r.aspectRatio;if(t){var d=Number(r.minCropBoxWidth)||0,u=Number(r.minCropBoxHeight)||0,c=i?Math.min(o.width,s.width,s.width+s.left,o.width-s.left):o.width,h=i?Math.min(o.height,s.height,s.height+s.top,o.height-s.top):o.height;d=Math.min(d,o.width),u=Math.min(u,o.height),l&&(d&&u?u*l>d?u=d/l:d=u*l:d?u=d/l:u&&(d=u*l),h*l>c?h=c/l:c=h*l),a.minWidth=Math.min(d,c),a.minHeight=Math.min(u,h),a.maxWidth=c,a.maxHeight=h}n&&(i?(a.minLeft=Math.max(0,s.left),a.minTop=Math.max(0,s.top),a.maxLeft=Math.min(o.width,s.left+s.width)-a.width,a.maxTop=Math.min(o.height,s.top+s.height)-a.height):(a.minLeft=0,a.minTop=0,a.maxLeft=o.width-a.width,a.maxTop=o.height-a.height))},renderCropBox:function(){var t=this.options,n=this.containerData,r=this.cropBoxData;(r.width>r.maxWidth||r.widthr.maxHeight||r.height=n.width&&r.height>=n.height?F3:W1),qs(this.cropBox,Ft({width:r.width,height:r.height},Ad({translateX:r.left,translateY:r.top}))),this.cropped&&this.limited&&this.limitCanvas(!0,!0),this.disabled||this.output()},output:function(){this.preview(),Nl(this.element,Xy,this.getData())}},fst={initPreview:function(){var t=this.element,n=this.crossOrigin,r=this.options.preview,o=n?this.crossOriginUrl:this.url,s=t.alt||"The image to preview",a=document.createElement("img");if(n&&(a.crossOrigin=n),a.src=o,a.alt=s,this.viewBox.appendChild(a),this.viewBoxImage=a,!!r){var i=r;typeof r=="string"?i=t.ownerDocument.querySelectorAll(r):r.querySelector&&(i=[r]),this.previews=i,sn(i,function(l){var d=document.createElement("img");pu(l,Rp,{width:l.offsetWidth,height:l.offsetHeight,html:l.innerHTML}),n&&(d.crossOrigin=n),d.src=o,d.alt=s,d.style.cssText='display:block;width:100%;height:auto;min-width:0!important;min-height:0!important;max-width:none!important;max-height:none!important;image-orientation:0deg!important;"',l.innerHTML="",l.appendChild(d)})}},resetPreview:function(){sn(this.previews,function(t){var n=e0(t,Rp);qs(t,{width:n.width,height:n.height}),t.innerHTML=n.html,tst(t,Rp)})},preview:function(){var t=this.imageData,n=this.canvasData,r=this.cropBoxData,o=r.width,s=r.height,a=t.width,i=t.height,l=r.left-n.left-t.left,d=r.top-n.top-t.top;!this.cropped||this.disabled||(qs(this.viewBoxImage,Ft({width:a,height:i},Ad(Ft({translateX:-l,translateY:-d},t)))),sn(this.previews,function(u){var c=e0(u,Rp),h=c.width,f=c.height,g=h,_=f,w=1;o&&(w=h/o,_=s*w),s&&_>f&&(w=f/s,g=o*w,_=f),qs(u,{width:g,height:_}),qs(u.getElementsByTagName("img")[0],Ft({width:a*w,height:i*w},Ad(Ft({translateX:-l*w,translateY:-d*w},t))))}))}},mst={bind:function(){var t=this.element,n=this.options,r=this.cropper;Yn(n.cropstart)&&Nr(t,Zy,n.cropstart),Yn(n.cropmove)&&Nr(t,Ky,n.cropmove),Yn(n.cropend)&&Nr(t,Yy,n.cropend),Yn(n.crop)&&Nr(t,Xy,n.crop),Yn(n.zoom)&&Nr(t,Qy,n.zoom),Nr(r,BC,this.onCropStart=this.cropStart.bind(this)),n.zoomable&&n.zoomOnWheel&&Nr(r,GC,this.onWheel=this.wheel.bind(this),{passive:!1,capture:!0}),n.toggleDragModeOnDblclick&&Nr(r,FC,this.onDblclick=this.dblclick.bind(this)),Nr(t.ownerDocument,WC,this.onCropMove=this.cropMove.bind(this)),Nr(t.ownerDocument,HC,this.onCropEnd=this.cropEnd.bind(this)),n.responsive&&Nr(window,VC,this.onResize=this.resize.bind(this))},unbind:function(){var t=this.element,n=this.options,r=this.cropper;Yn(n.cropstart)&&to(t,Zy,n.cropstart),Yn(n.cropmove)&&to(t,Ky,n.cropmove),Yn(n.cropend)&&to(t,Yy,n.cropend),Yn(n.crop)&&to(t,Xy,n.crop),Yn(n.zoom)&&to(t,Qy,n.zoom),to(r,BC,this.onCropStart),n.zoomable&&n.zoomOnWheel&&to(r,GC,this.onWheel,{passive:!1,capture:!0}),n.toggleDragModeOnDblclick&&to(r,FC,this.onDblclick),to(t.ownerDocument,WC,this.onCropMove),to(t.ownerDocument,HC,this.onCropEnd),n.responsive&&to(window,VC,this.onResize)}},gst={resize:function(){if(!this.disabled){var t=this.options,n=this.container,r=this.containerData,o=n.offsetWidth/r.width,s=n.offsetHeight/r.height,a=Math.abs(o-1)>Math.abs(s-1)?o:s;if(a!==1){var i,l;t.restore&&(i=this.getCanvasData(),l=this.getCropBoxData()),this.render(),t.restore&&(this.setCanvasData(sn(i,function(d,u){i[u]=d*a})),this.setCropBoxData(sn(l,function(d,u){l[u]=d*a})))}}},dblclick:function(){this.disabled||this.options.dragMode===H3||this.setDragMode(Qot(this.dragBox,qy)?W3:H1)},wheel:function(t){var n=this,r=Number(this.options.wheelZoomRatio)||.1,o=1;this.disabled||(t.preventDefault(),!this.wheeling&&(this.wheeling=!0,setTimeout(function(){n.wheeling=!1},50),t.deltaY?o=t.deltaY>0?1:-1:t.wheelDelta?o=-t.wheelDelta/120:t.detail&&(o=t.detail>0?1:-1),this.zoom(-o*r,t)))},cropStart:function(t){var n=t.buttons,r=t.button;if(!(this.disabled||(t.type==="mousedown"||t.type==="pointerdown"&&t.pointerType==="mouse")&&(et(n)&&n!==1||et(r)&&r!==0||t.ctrlKey))){var o=this.options,s=this.pointers,a;t.changedTouches?sn(t.changedTouches,function(i){s[i.identifier]=Pp(i)}):s[t.pointerId||0]=Pp(t),Object.keys(s).length>1&&o.zoomable&&o.zoomOnTouch?a=B3:a=e0(t.target,uu),Hot.test(a)&&Nl(this.element,Zy,{originalEvent:t,action:a})!==!1&&(t.preventDefault(),this.action=a,this.cropping=!1,a===L3&&(this.cropping=!0,hn(this.dragBox,Mf)))}},cropMove:function(t){var n=this.action;if(!(this.disabled||!n)){var r=this.pointers;t.preventDefault(),Nl(this.element,Ky,{originalEvent:t,action:n})!==!1&&(t.changedTouches?sn(t.changedTouches,function(o){Ft(r[o.identifier]||{},Pp(o,!0))}):Ft(r[t.pointerId||0]||{},Pp(t,!0)),this.change(t))}},cropEnd:function(t){if(!this.disabled){var n=this.action,r=this.pointers;t.changedTouches?sn(t.changedTouches,function(o){delete r[o.identifier]}):delete r[t.pointerId||0],n&&(t.preventDefault(),Object.keys(r).length||(this.action=""),this.cropping&&(this.cropping=!1,_l(this.dragBox,Mf,this.cropped&&this.options.modal)),Nl(this.element,Yy,{originalEvent:t,action:n}))}}},_st={change:function(t){var n=this.options,r=this.canvasData,o=this.containerData,s=this.cropBoxData,a=this.pointers,i=this.action,l=n.aspectRatio,d=s.left,u=s.top,c=s.width,h=s.height,f=d+c,g=u+h,_=0,w=0,v=o.width,b=o.height,y=!0,S;!l&&t.shiftKey&&(l=c&&h?c/h:1),this.limited&&(_=s.minLeft,w=s.minTop,v=_+Math.min(o.width,r.width,r.left+r.width),b=w+Math.min(o.height,r.height,r.top+r.height));var $=a[Object.keys(a)[0]],C={x:$.endX-$.startX,y:$.endY-$.startY},T=function(D){switch(D){case ka:f+C.x>v&&(C.x=v-f);break;case $a:d+C.x<_&&(C.x=_-d);break;case Os:u+C.yb&&(C.y=b-g);break}};switch(i){case W1:d+=C.x,u+=C.y;break;case ka:if(C.x>=0&&(f>=v||l&&(u<=w||g>=b))){y=!1;break}T(ka),c+=C.x,c<0&&(i=$a,c=-c,d-=c),l&&(h=c/l,u+=(s.height-h)/2);break;case Os:if(C.y<=0&&(u<=w||l&&(d<=_||f>=v))){y=!1;break}T(Os),h-=C.y,u+=C.y,h<0&&(i=Mi,h=-h,u-=h),l&&(c=h*l,d+=(s.width-c)/2);break;case $a:if(C.x<=0&&(d<=_||l&&(u<=w||g>=b))){y=!1;break}T($a),c-=C.x,d+=C.x,c<0&&(i=ka,c=-c,d-=c),l&&(h=c/l,u+=(s.height-h)/2);break;case Mi:if(C.y>=0&&(g>=b||l&&(d<=_||f>=v))){y=!1;break}T(Mi),h+=C.y,h<0&&(i=Os,h=-h,u-=h),l&&(c=h*l,d+=(s.width-c)/2);break;case Vc:if(l){if(C.y<=0&&(u<=w||f>=v)){y=!1;break}T(Os),h-=C.y,u+=C.y,c=h*l}else T(Os),T(ka),C.x>=0?fw&&(h-=C.y,u+=C.y):(h-=C.y,u+=C.y);c<0&&h<0?(i=Jc,h=-h,c=-c,u-=h,d-=c):c<0?(i=Gc,c=-c,d-=c):h<0&&(i=qc,h=-h,u-=h);break;case Gc:if(l){if(C.y<=0&&(u<=w||d<=_)){y=!1;break}T(Os),h-=C.y,u+=C.y,c=h*l,d+=s.width-c}else T(Os),T($a),C.x<=0?d>_?(c-=C.x,d+=C.x):C.y<=0&&u<=w&&(y=!1):(c-=C.x,d+=C.x),C.y<=0?u>w&&(h-=C.y,u+=C.y):(h-=C.y,u+=C.y);c<0&&h<0?(i=qc,h=-h,c=-c,u-=h,d-=c):c<0?(i=Vc,c=-c,d-=c):h<0&&(i=Jc,h=-h,u-=h);break;case Jc:if(l){if(C.x<=0&&(d<=_||g>=b)){y=!1;break}T($a),c-=C.x,d+=C.x,h=c/l}else T(Mi),T($a),C.x<=0?d>_?(c-=C.x,d+=C.x):C.y>=0&&g>=b&&(y=!1):(c-=C.x,d+=C.x),C.y>=0?g=0&&(f>=v||g>=b)){y=!1;break}T(ka),c+=C.x,h=c/l}else T(Mi),T(ka),C.x>=0?f=0&&g>=b&&(y=!1):c+=C.x,C.y>=0?g0?i=C.y>0?qc:Vc:C.x<0&&(d-=c,i=C.y>0?Jc:Gc),C.y<0&&(u-=h),this.cropped||(Uo(this.cropBox,Zn),this.cropped=!0,this.limited&&this.limitCropBox(!0,!0));break}y&&(s.width=c,s.height=h,s.left=d,s.top=u,this.action=i,this.renderCropBox()),sn(a,function(O){O.startX=O.endX,O.startY=O.endY})}},vst={crop:function(){return this.ready&&!this.cropped&&!this.disabled&&(this.cropped=!0,this.limitCropBox(!0,!0),this.options.modal&&hn(this.dragBox,Mf),Uo(this.cropBox,Zn),this.setCropBoxData(this.initialCropBoxData)),this},reset:function(){return this.ready&&!this.disabled&&(this.imageData=Ft({},this.initialImageData),this.canvasData=Ft({},this.initialCanvasData),this.cropBoxData=Ft({},this.initialCropBoxData),this.renderCanvas(),this.cropped&&this.renderCropBox()),this},clear:function(){return this.cropped&&!this.disabled&&(Ft(this.cropBoxData,{left:0,top:0,width:0,height:0}),this.cropped=!1,this.renderCropBox(),this.limitCanvas(!0,!0),this.renderCanvas(),Uo(this.dragBox,Mf),hn(this.cropBox,Zn)),this},replace:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return!this.disabled&&t&&(this.isImg&&(this.element.src=t),n?(this.url=t,this.image.src=t,this.ready&&(this.viewBoxImage.src=t,sn(this.previews,function(r){r.getElementsByTagName("img")[0].src=t}))):(this.isImg&&(this.replaced=!0),this.options.data=null,this.uncreate(),this.load(t))),this},enable:function(){return this.ready&&this.disabled&&(this.disabled=!1,Uo(this.cropper,PC)),this},disable:function(){return this.ready&&!this.disabled&&(this.disabled=!0,hn(this.cropper,PC)),this},destroy:function(){var t=this.element;return t[Pt]?(t[Pt]=void 0,this.isImg&&this.replaced&&(t.src=this.originalUrl),this.uncreate(),this):this},move:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t,r=this.canvasData,o=r.left,s=r.top;return this.moveTo(M_(t)?t:o+Number(t),M_(n)?n:s+Number(n))},moveTo:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t,r=this.canvasData,o=!1;return t=Number(t),n=Number(n),this.ready&&!this.disabled&&this.options.movable&&(et(t)&&(r.left=t,o=!0),et(n)&&(r.top=n,o=!0),o&&this.renderCanvas(!0)),this},zoom:function(t,n){var r=this.canvasData;return t=Number(t),t<0?t=1/(1-t):t=1+t,this.zoomTo(r.width*t/r.naturalWidth,null,n)},zoomTo:function(t,n,r){var o=this.options,s=this.canvasData,a=s.width,i=s.height,l=s.naturalWidth,d=s.naturalHeight;if(t=Number(t),t>=0&&this.ready&&!this.disabled&&o.zoomable){var u=l*t,c=d*t;if(Nl(this.element,Qy,{ratio:t,oldRatio:a/l,originalEvent:r})===!1)return this;if(r){var h=this.pointers,f=X3(this.cropper),g=h&&Object.keys(h).length?ost(h):{pageX:r.pageX,pageY:r.pageY};s.left-=(u-a)*((g.pageX-f.left-s.left)/a),s.top-=(c-i)*((g.pageY-f.top-s.top)/i)}else gl(n)&&et(n.x)&&et(n.y)?(s.left-=(u-a)*((n.x-s.left)/a),s.top-=(c-i)*((n.y-s.top)/i)):(s.left-=(u-a)/2,s.top-=(c-i)/2);s.width=u,s.height=c,this.renderCanvas(!0)}return this},rotate:function(t){return this.rotateTo((this.imageData.rotate||0)+Number(t))},rotateTo:function(t){return t=Number(t),et(t)&&this.ready&&!this.disabled&&this.options.rotatable&&(this.imageData.rotate=t%360,this.renderCanvas(!0,!0)),this},scaleX:function(t){var n=this.imageData.scaleY;return this.scale(t,et(n)?n:1)},scaleY:function(t){var n=this.imageData.scaleX;return this.scale(et(n)?n:1,t)},scale:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t,r=this.imageData,o=!1;return t=Number(t),n=Number(n),this.ready&&!this.disabled&&this.options.scalable&&(et(t)&&(r.scaleX=t,o=!0),et(n)&&(r.scaleY=n,o=!0),o&&this.renderCanvas(!0,!0)),this},getData:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,n=this.options,r=this.imageData,o=this.canvasData,s=this.cropBoxData,a;if(this.ready&&this.cropped){a={x:s.left-o.left,y:s.top-o.top,width:s.width,height:s.height};var i=r.width/r.naturalWidth;if(sn(a,function(u,c){a[c]=u/i}),t){var l=Math.round(a.y+a.height),d=Math.round(a.x+a.width);a.x=Math.round(a.x),a.y=Math.round(a.y),a.width=d-a.x,a.height=l-a.y}}else a={x:0,y:0,width:0,height:0};return n.rotatable&&(a.rotate=r.rotate||0),n.scalable&&(a.scaleX=r.scaleX||1,a.scaleY=r.scaleY||1),a},setData:function(t){var n=this.options,r=this.imageData,o=this.canvasData,s={};if(this.ready&&!this.disabled&&gl(t)){var a=!1;n.rotatable&&et(t.rotate)&&t.rotate!==r.rotate&&(r.rotate=t.rotate,a=!0),n.scalable&&(et(t.scaleX)&&t.scaleX!==r.scaleX&&(r.scaleX=t.scaleX,a=!0),et(t.scaleY)&&t.scaleY!==r.scaleY&&(r.scaleY=t.scaleY,a=!0)),a&&this.renderCanvas(!0,!0);var i=r.width/r.naturalWidth;et(t.x)&&(s.left=t.x*i+o.left),et(t.y)&&(s.top=t.y*i+o.top),et(t.width)&&(s.width=t.width*i),et(t.height)&&(s.height=t.height*i),this.setCropBoxData(s)}return this},getContainerData:function(){return this.ready?Ft({},this.containerData):{}},getImageData:function(){return this.sized?Ft({},this.imageData):{}},getCanvasData:function(){var t=this.canvasData,n={};return this.ready&&sn(["left","top","width","height","naturalWidth","naturalHeight"],function(r){n[r]=t[r]}),n},setCanvasData:function(t){var n=this.canvasData,r=n.aspectRatio;return this.ready&&!this.disabled&&gl(t)&&(et(t.left)&&(n.left=t.left),et(t.top)&&(n.top=t.top),et(t.width)?(n.width=t.width,n.height=t.width/r):et(t.height)&&(n.height=t.height,n.width=t.height*r),this.renderCanvas(!0)),this},getCropBoxData:function(){var t=this.cropBoxData,n;return this.ready&&this.cropped&&(n={left:t.left,top:t.top,width:t.width,height:t.height}),n||{}},setCropBoxData:function(t){var n=this.cropBoxData,r=this.options.aspectRatio,o,s;return this.ready&&this.cropped&&!this.disabled&&gl(t)&&(et(t.left)&&(n.left=t.left),et(t.top)&&(n.top=t.top),et(t.width)&&t.width!==n.width&&(o=!0,n.width=t.width),et(t.height)&&t.height!==n.height&&(s=!0,n.height=t.height),r&&(o?n.height=n.width/r:s&&(n.width=n.height*r)),this.renderCropBox()),this},getCroppedCanvas:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!this.ready||!window.HTMLCanvasElement)return null;var n=this.canvasData,r=ast(this.image,this.imageData,n,t);if(!this.cropped)return r;var o=this.getData(t.rounded),s=o.x,a=o.y,i=o.width,l=o.height,d=r.width/Math.floor(n.naturalWidth);d!==1&&(s*=d,a*=d,i*=d,l*=d);var u=i/l,c=Js({aspectRatio:u,width:t.maxWidth||1/0,height:t.maxHeight||1/0}),h=Js({aspectRatio:u,width:t.minWidth||0,height:t.minHeight||0},"cover"),f=Js({aspectRatio:u,width:t.width||(d!==1?r.width:i),height:t.height||(d!==1?r.height:l)}),g=f.width,_=f.height;g=Math.min(c.width,Math.max(h.width,g)),_=Math.min(c.height,Math.max(h.height,_));var w=document.createElement("canvas"),v=w.getContext("2d");w.width=Al(g),w.height=Al(_),v.fillStyle=t.fillColor||"transparent",v.fillRect(0,0,g,_);var b=t.imageSmoothingEnabled,y=b===void 0?!0:b,S=t.imageSmoothingQuality;v.imageSmoothingEnabled=y,S&&(v.imageSmoothingQuality=S);var $=r.width,C=r.height,T=s,O=a,D,x,A,I,z,N;T<=-i||T>$?(T=0,D=0,A=0,z=0):T<=0?(A=-T,T=0,D=Math.min($,i+T),z=D):T<=$&&(A=0,D=Math.min(i,$-T),z=D),D<=0||O<=-l||O>C?(O=0,x=0,I=0,N=0):O<=0?(I=-O,O=0,x=Math.min(C,l+O),N=x):O<=C&&(I=0,x=Math.min(l,C-O),N=x);var M=[T,O,D,x];if(z>0&&N>0){var B=g/i;M.push(A*B,I*B,z*B,N*B)}return v.drawImage.apply(v,[r].concat(P3(M.map(function(V){return Math.floor(Al(V))})))),w},setAspectRatio:function(t){var n=this.options;return!this.disabled&&!M_(t)&&(n.aspectRatio=Math.max(0,t)||NaN,this.ready&&(this.initCropBox(),this.cropped&&this.renderCropBox())),this},setDragMode:function(t){var n=this.options,r=this.dragBox,o=this.face;if(this.ready&&!this.disabled){var s=t===H1,a=n.movable&&t===W3;t=s||a?t:H3,n.dragMode=t,pu(r,uu,t),_l(r,qy,s),_l(r,Jy,a),n.cropBoxMovable||(pu(o,uu,t),_l(o,qy,s),_l(o,Jy,a))}return this}},yst=Go.Cropper,K3=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(Not(this,e),!t||!Got.test(t.tagName))throw new Error("The first argument is required and must be an or element.");this.element=t,this.options=Ft({},JC,gl(n)&&n),this.cropped=!1,this.disabled=!1,this.pointers={},this.ready=!1,this.reloading=!1,this.replaced=!1,this.sized=!1,this.sizing=!1,this.init()}return Mot(e,[{key:"init",value:function(){var n=this.element,r=n.tagName.toLowerCase(),o;if(!n[Pt]){if(n[Pt]=this,r==="img"){if(this.isImg=!0,o=n.getAttribute("src")||"",this.originalUrl=o,!o)return;o=n.src}else r==="canvas"&&window.HTMLCanvasElement&&(o=n.toDataURL());this.load(o)}}},{key:"load",value:function(n){var r=this;if(n){this.url=n,this.imageData={};var o=this.element,s=this.options;if(!s.rotatable&&!s.scalable&&(s.checkOrientation=!1),!s.checkOrientation||!window.ArrayBuffer){this.clone();return}if(Uot.test(n)){Vot.test(n)?this.read(cst(n)):this.clone();return}var a=new XMLHttpRequest,i=this.clone.bind(this);this.reloading=!0,this.xhr=a,a.onabort=i,a.onerror=i,a.ontimeout=i,a.onprogress=function(){a.getResponseHeader("content-type")!==qC&&a.abort()},a.onload=function(){r.read(a.response)},a.onloadend=function(){r.reloading=!1,r.xhr=null},s.checkCrossOrigin&&YC(n)&&o.crossOrigin&&(n=KC(n)),a.open("GET",n,!0),a.responseType="arraybuffer",a.withCredentials=o.crossOrigin==="use-credentials",a.send()}}},{key:"read",value:function(n){var r=this.options,o=this.imageData,s=ust(n),a=0,i=1,l=1;if(s>1){this.url=dst(n,qC);var d=pst(s);a=d.rotate,i=d.scaleX,l=d.scaleY}r.rotatable&&(o.rotate=a),r.scalable&&(o.scaleX=i,o.scaleY=l),this.clone()}},{key:"clone",value:function(){var n=this.element,r=this.url,o=n.crossOrigin,s=r;this.options.checkCrossOrigin&&YC(r)&&(o||(o="anonymous"),s=KC(r)),this.crossOrigin=o,this.crossOriginUrl=s;var a=document.createElement("img");o&&(a.crossOrigin=o),a.src=s||r,a.alt=n.alt||"The image to crop",this.image=a,a.onload=this.start.bind(this),a.onerror=this.stop.bind(this),hn(a,LC),n.parentNode.insertBefore(a,n.nextSibling)}},{key:"start",value:function(){var n=this,r=this.image;r.onload=null,r.onerror=null,this.sizing=!0;var o=Go.navigator&&/(?:iPad|iPhone|iPod).*?AppleWebKit/i.test(Go.navigator.userAgent),s=function(d,u){Ft(n.imageData,{naturalWidth:d,naturalHeight:u,aspectRatio:d/u}),n.initialImageData=Ft({},n.imageData),n.sizing=!1,n.sized=!0,n.build()};if(r.naturalWidth&&!o){s(r.naturalWidth,r.naturalHeight);return}var a=document.createElement("img"),i=document.body||document.documentElement;this.sizingImage=a,a.onload=function(){s(a.width,a.height),o||i.removeChild(a)},a.src=r.src,o||(a.style.cssText="left:0;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;opacity:0;position:absolute;top:0;z-index:-1;",i.appendChild(a))}},{key:"stop",value:function(){var n=this.image;n.onload=null,n.onerror=null,n.parentNode.removeChild(n),this.image=null}},{key:"build",value:function(){if(!(!this.sized||this.ready)){var n=this.element,r=this.options,o=this.image,s=n.parentNode,a=document.createElement("div");a.innerHTML=qot;var i=a.querySelector(".".concat(Pt,"-container")),l=i.querySelector(".".concat(Pt,"-canvas")),d=i.querySelector(".".concat(Pt,"-drag-box")),u=i.querySelector(".".concat(Pt,"-crop-box")),c=u.querySelector(".".concat(Pt,"-face"));this.container=s,this.cropper=i,this.canvas=l,this.dragBox=d,this.cropBox=u,this.viewBox=i.querySelector(".".concat(Pt,"-view-box")),this.face=c,l.appendChild(o),hn(n,Zn),s.insertBefore(i,n.nextSibling),Uo(o,LC),this.initPreview(),this.bind(),r.initialAspectRatio=Math.max(0,r.initialAspectRatio)||NaN,r.aspectRatio=Math.max(0,r.aspectRatio)||NaN,r.viewMode=Math.max(0,Math.min(3,Math.round(r.viewMode)))||0,hn(u,Zn),r.guides||hn(u.getElementsByClassName("".concat(Pt,"-dashed")),Zn),r.center||hn(u.getElementsByClassName("".concat(Pt,"-center")),Zn),r.background&&hn(i,"".concat(Pt,"-bg")),r.highlight||hn(c,Lot),r.cropBoxMovable&&(hn(c,Jy),pu(c,uu,W1)),r.cropBoxResizable||(hn(u.getElementsByClassName("".concat(Pt,"-line")),Zn),hn(u.getElementsByClassName("".concat(Pt,"-point")),Zn)),this.render(),this.ready=!0,this.setDragMode(r.dragMode),r.autoCrop&&this.crop(),this.setData(r.data),Yn(r.ready)&&Nr(n,UC,r.ready,{once:!0}),Nl(n,UC)}}},{key:"unbuild",value:function(){if(this.ready){this.ready=!1,this.unbind(),this.resetPreview();var n=this.cropper.parentNode;n&&n.removeChild(this.cropper),Uo(this.element,Zn)}}},{key:"uncreate",value:function(){this.ready?(this.unbuild(),this.ready=!1,this.cropped=!1):this.sizing?(this.sizingImage.onload=null,this.sizing=!1,this.sized=!1):this.reloading?(this.xhr.onabort=null,this.xhr.abort()):this.image&&this.stop()}}],[{key:"noConflict",value:function(){return window.Cropper=yst,e}},{key:"setDefaults",value:function(n){Ft(JC,gl(n)&&n)}}])}();Ft(K3.prototype,hst,fst,mst,gst,_st,vst);var ja=function(){return ja=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&O.zoomTo(V)}(T.currentTarget.cropper,y),w&&w(T)}}));v&&v(C)}return function(){var T,O;(O=(T=S.current)===null||T===void 0?void 0:T.cropper)===null||O===void 0||O.destroy()}},[S]);var $=function(C){return bst.reduce(function(T,O){var D=T,x=O;return D[x],I_(D,[typeof x=="symbol"?x:x+""])},C)}(ja(ja({},b),{crossOrigin:l,src:s,alt:_}));return p.createElement("div",{style:a,className:i},p.createElement("img",ja({},$,{style:wst,ref:S})))});const Ds={mainDiv:{width:"100%",height:"100%",overflow:"auto"},formControl:{margin:0,minWidth:120},formControlMarginRight:{marginRight:5},formControlPaddingTop:{paddingTop:6.2}},Sst={once:"once",interval:"interval",intervalBetween:"intervalBetween",specific:"specific"},On={seconds:"seconds",minutes:"minutes"},ZC=["ra_Sunday","ra_Monday","ra_Tuesday","ra_Wednesday","ra_Thursday","ra_Friday","ra_Saturday","ra_Sunday"];function jo(e){return e<10?`0${e}`:`${e}`}const xst={mode:"interval",interval:{period:1,unit:On.minutes}};function vh(e){if(e==="*")return[0,1,2,3,4,5,6];const t=e.split(","),n=[];return t.forEach(r=>{const o=r.split("-");if(o.length===2){const s=parseInt(o[0],10),a=parseInt(o[1],10);for(let i=s;i<=a;i++)n.includes(i===7?0:i)||n.push(i===7?0:i)}else{r==="7"&&(r="0");const s=parseInt(r,10);n.includes(s)||n.push(s)}}),n.sort(),n}function Z3(e,t){e=e.replace(/['"]/g,"").trim();const n=e.split(" ");let r,o=null;return n.length===6?r={seconds:n[0]||"*",minutes:n[1]||"*",hours:n[2]||"*",date:n[3]||"*",months:n[4]||"*",dow:n[5]||"*"}:r={seconds:null,minutes:n[0]||"*",hours:n[1]||"*",date:n[2]||"*",months:n[3]||"*",dow:n[4]||"*"},r.seconds===null&&r.minutes==="*"&&r.hours==="*"&&r.date==="*"&&r.months==="*"&&(r.dow==="*"||t)&&(o={mode:"interval",interval:{period:1,unit:On.minutes}}),r.seconds==="*"&&r.minutes==="*"&&r.hours==="*"&&r.date==="*"&&r.months==="*"&&(r.dow==="*"||t)?o={mode:"interval",interval:{period:1,unit:On.seconds}}:r.seconds===null&&r.minutes.includes("/")&&r.hours==="*"&&r.date==="*"&&r.months==="*"&&(r.dow==="*"||t)?o={mode:"interval",interval:{period:parseInt(r.minutes.split("/")[1],10),unit:On.minutes}}:r.seconds!==null&&r.seconds.includes("/")&&r.minutes==="*"&&r.hours==="*"&&r.date==="*"&&r.months==="*"&&(r.dow==="*"||t)?o={mode:"interval",interval:{period:parseInt(r.seconds.split("/")[1],10),unit:On.seconds}}:r.seconds!==null&&r.seconds.includes("/")&&r.minutes==="*"&&r.hours.includes("-")&&r.date==="*"&&r.months==="*"&&(r.dow==="*"||t)?o={mode:"intervalBetween",intervalBetween:{period:parseInt(r.seconds.split("/")[1],10),unit:On.seconds,timeFrom:parseInt(r.hours.split("-")[0],10),timeTo:parseInt(r.hours.split("-")[1],10),weekdays:vh(r.dow)}}:r.seconds===null&&r.minutes.includes("/")&&r.hours.includes("-")&&r.date==="*"&&r.months==="*"&&(r.dow==="*"||t)?o={mode:"intervalBetween",intervalBetween:{period:parseInt(r.minutes.split("/")[1],10),unit:On.minutes,timeFrom:parseInt(r.hours.split("-")[0],10),timeTo:parseInt(r.hours.split("-")[1],10),weekdays:vh(r.dow)}}:r.seconds===null&&parseInt(r.minutes,10).toString()===r.minutes&&parseInt(r.hours,10).toString()===r.hours&&r.date==="*"&&r.months==="*"&&(r.dow==="*"||t)?o={mode:"specific",specific:{time:`${jo(parseInt(r.hours,10))}:${jo(parseInt(r.minutes,10))}`,weekdays:vh(r.dow)}}:r.seconds===null&&parseInt(r.minutes,10).toString()===r.minutes&&parseInt(r.hours,10).toString()===r.hours&&parseInt(r.date,10).toString()===r.date&&parseInt(r.months,10).toString()===r.months&&(r.dow==="*"||t)&&(o={mode:"once",once:{time:`${jo(parseInt(r.hours,10))}:${jo(parseInt(r.minutes,10))}`,date:`${jo(parseInt(r.date,10))}.${jo(parseInt(r.months,10))}`}}),o}class hu extends p.Component{constructor(t){super(t);let n=typeof t.cronExpression=="string"?t.cronExpression.replace(/^["']/,"").replace(/["']\n?$/,""):"";n[0]==="{"&&(n="");const r=Z3(n||"* * * * *",!0)||xst;this.state={extended:!1,cron:hu.state2cron(r),mode:"interval",once:{time:"00:00",date:""},interval:{period:1,unit:On.minutes},intervalBetween:{period:1,unit:On.minutes,timeFrom:0,timeTo:23,weekdays:[0,1,2,3,4,5,6]},specific:{time:"00:00",weekdays:[0,1,2,3,4,5,6]}},Object.assign(this.state,r),this.state.cron!==t.cronExpression&&setTimeout(()=>t.onChange&&t.onChange(this.state.cron),100)}static periodArray2text(t,n=7){if(n=n||7,t.length===n)return"*";const r=[];let o=null,s=null;if(!t.length)return"_";for(let a=0;a60&&(r.period=60),r.period!==void 0&&r.period<1&&(r.period=1),r.minutes!==void 0&&r.minutes!==null&&r.minutes>60&&(r.minutes=60),r.minutes!==void 0&&r.minutes!==null&&r.minutes<1&&(r.minutes=1),r.hours!==void 0&&r.hours!==null&&r.hours>24&&(r.hours=24),r.hours!==void 0&&r.hours!==null&&r.hours<1&&(r.hours=1),t.extended)n=`${r.minutes!==void 0&&r.minutes!==null&&r.minutes>1?`*/${r.minutes}`:"*"} ${r.hours!==void 0&&r.hours!==null&&r.hours>1?`*/${r.hours}`:"*"} * * *`;else switch(r.unit){case On.seconds:n=`${r.period>1?`*/${r.period}`:"*"} * * * * *`;break;case On.minutes:n=`${r.period>1?`*/${r.period}`:"*"} * * * *`;break}}else if(t.mode==="intervalBetween"){const r=t.intervalBetween||{period:1,unit:On.minutes,timeFrom:0,timeTo:24,weekdays:[0,1,2,3,4,5,6]};let o;switch(r.timeFrom=r.timeFrom||0,r.timeTo=r.timeTo===void 0?24:r.timeTo,r.timeFrom!==0&&r.timeTo===24&&(r.timeTo=23),r.timeFrom===0&&r.timeTo===24?o="*":o=r.timeFrom!==r.timeTo?`${r.timeFrom}-${r.timeTo}`:"*",r.period>60&&(r.period=60),r.period<1&&(r.period=1),r.unit=r.unit||On.minutes,r.unit){case On.seconds:n=`${r.period>1?`*/${r.period}`:"*"} * ${o} * * ${this.periodArray2text(r.weekdays)}`;break;case On.minutes:n=`${r.period>1?`*/${r.period}`:"*"} ${o} * * ${this.periodArray2text(r.weekdays)}`;break}}else if(t.mode==="specific"){const r=t.specific||{time:"00:00",weekdays:[0,1,2,3,4,5,6]},o=(r.time||"00:00").split(":");let s=parseInt(o[1],10)||0;s>59&&(s=59),s<0&&(s=0);let a=parseInt(o[0],10)||0;a>23&&(a=59),a<0&&(a=0),n=`${s} ${a} * * ${this.periodArray2text(r.weekdays||[])}`}else if(t.mode==="once"){const r=t.once||{time:"00:00",date:""};r.date||(r.date=`${new Date().getDate()}.${jo(new Date().getMonth()+1)}`);const o=(r.time||"00:00").split(":"),s=r.date.split(".");let a=parseInt(o[1],10)||0;a>59&&(a=59),a<0&&(a=0);let i=parseInt(o[0],10)||0;i>23&&(i=59),i<0&&(i=0);let l=parseInt(s[0],10)||1;l>31&&(l=31),l<1&&(i=1);let d=parseInt(s[1],10)||1;d>12&&(d=12),d<1&&(d=1),n=`${a} ${i} ${l} ${d} *`}return n}recalcCron(){this.onChange(hu.state2cron(this.state))}getControlsWeekdaysElements(t){const n=t==="intervalBetween"?this.state.intervalBetween:this.state.specific;return p.createElement("div",{key:"weekdays",style:{paddingLeft:8,width:"calc(100% - 8px)",maxWidth:600}},p.createElement("h5",null,E.t("ra_On weekdays")),[1,2,3,4,5,6,0].map(r=>p.createElement(Ae,{key:ZC[r],control:p.createElement(xt,{checked:n.weekdays.includes(r),onChange:o=>{const s=JSON.parse(JSON.stringify(this.state[t])),a=s.weekdays.indexOf(r);o.target.checked?a===-1&&s.weekdays.push(r):a!==-1&&s.weekdays.splice(a,1),s.weekdays.sort(),t==="intervalBetween"?this.setState({intervalBetween:s},()=>this.recalcCron()):this.setState({specific:s},()=>this.recalcCron())},value:r.toString()}),label:E.t(ZC[r])})))}getControlsPeriodElements(t){const n=t==="interval"?this.state.interval:this.state.intervalBetween;return this.state.extended?p.createElement("div",{key:"period",style:{paddingLeft:8,display:"inline-block"}},p.createElement("h5",{style:{marginBottom:5}},E.t("sc_period")),p.createElement(nt,{variant:"standard",style:{marginTop:0,marginBottom:0,verticalAlign:"bottom"},key:"value",label:E.t("sc_minutes"),value:n.minutes,onChange:r=>{const o=JSON.parse(JSON.stringify(this.state[t]));o.minutes=parseInt(r.target.value,10),o.minutes<1&&(o.minutes=1),t==="interval"?this.setState({interval:o},()=>this.recalcCron()):this.setState({intervalBetween:o},()=>this.recalcCron())},slotProps:{htmlInput:{min:1,max:60},inputLabel:{shrink:!0}},type:"number",margin:"normal"}),p.createElement(nt,{variant:"standard",style:{marginTop:0,marginBottom:0,verticalAlign:"bottom"},key:"value",label:E.t("sc_hours"),value:n.hours,onChange:r=>{const o=JSON.parse(JSON.stringify(this.state[t]));o.hours=parseInt(r.target.value,10),o.hours<1&&(o.hours=1),t==="interval"?this.setState({interval:o},()=>this.recalcCron()):this.setState({intervalBetween:o},()=>this.recalcCron())},slotProps:{htmlInput:{min:1,max:24},inputLabel:{shrink:!0}},type:"number",margin:"normal"})):p.createElement("div",{key:"period",style:{paddingLeft:8,display:"inline-block"}},p.createElement("h5",{style:{marginBottom:5}},E.t("sc_period")),p.createElement(nt,{variant:"standard",style:{marginTop:0,marginBottom:0,verticalAlign:"bottom"},key:"value",label:E.t("sc_every"),value:n.period,onChange:r=>{const o=JSON.parse(JSON.stringify(this.state[t]));o.period=parseInt(r.target.value,10),o.period<1&&(o.period=1),t==="interval"?this.setState({interval:o},()=>this.recalcCron()):this.setState({intervalBetween:o},()=>this.recalcCron())},slotProps:{htmlInput:{min:1,max:60},inputLabel:{shrink:!0}},type:"number",margin:"normal"}),p.createElement(an,{variant:"standard",style:{verticalAlign:"bottom"},value:n.unit,onChange:r=>{const o=JSON.parse(JSON.stringify(this.state[t]));o.unit=r.target.value,t==="interval"?this.setState({interval:o},()=>this.recalcCron()):this.setState({intervalBetween:o},()=>this.recalcCron())}},p.createElement(ze,{value:"seconds"},E.t("sc_seconds")),")",p.createElement(ze,{value:"minutes"},E.t("sc_minutes")),")"))}getControlsTime(t){const n=t==="once"?this.state.once:this.state.specific;return p.createElement(Hn,{variant:"standard",sx:{...Ds.formControl,"&.MuiFormControl-root":Ds.formControlMarginRight}},p.createElement(nt,{variant:"standard",key:"at",label:E.t("sc_time"),value:n.time,type:"time",sx:r=>({'& input[type="time"]::-webkit-calendar-picker-indicator':{filter:r.palette.mode==="dark"?"invert(80%)":void 0}}),onChange:r=>{const o=JSON.parse(JSON.stringify(this.state[t]));o.time=r.target.value,t==="once"?this.setState({once:o},()=>this.recalcCron()):this.setState({specific:o},()=>this.recalcCron())},slotProps:{inputLabel:{shrink:!0}},margin:"normal"}))}getControlsDate(){const t=this.state.once;if(!t.date){const n=new Date;t.date=`${n.getDate()}.${jo(n.getMonth()+1)}`}return p.createElement(Hn,{variant:"standard",style:Ds.formControl},p.createElement(nt,{variant:"standard",key:"date",label:E.t("sc_date"),value:t.date,type:"text",slotProps:{htmlInput:{style:Ds.formControlPaddingTop},inputLabel:{shrink:!0}},onChange:n=>{const r=JSON.parse(JSON.stringify(this.state.once));r.date=n.target.value,this.setState({once:r},()=>this.recalcCron())},margin:"normal"}))}getOnceElements(){return p.createElement("div",{style:{marginLeft:8}},this.getControlsTime("once"),this.getControlsDate())}getIntervalElements(){return this.getControlsPeriodElements("interval")}getIntervalBetweenElements(){const t=this.state.intervalBetween;return[this.getControlsPeriodElements("intervalBetween"),p.createElement("div",{key:"between",style:{paddingLeft:8,display:"inline-block",verticalAlign:"top"}},p.createElement("h5",{style:{marginBottom:5}},E.t("sc_hours")),p.createElement(Hn,{variant:"standard",style:Ds.formControl},p.createElement(ph,{shrink:!0,htmlFor:"age-label-placeholder"},E.t("sc_from")),p.createElement(an,{variant:"standard",style:{width:100},value:t.timeFrom,onChange:n=>{const r=JSON.parse(JSON.stringify(this.state.intervalBetween));r.timeFrom=parseInt(n.target.value,10),r.timeTo===24&&(r.timeTo=23),this.setState({intervalBetween:r},()=>this.recalcCron())}},[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23].map(n=>p.createElement(ze,{key:`B_${n}`,value:n},`${jo(n)}:00`)))),p.createElement(Hn,{variant:"standard",style:Ds.formControl},p.createElement(ph,{shrink:!0,htmlFor:"age-label-placeholder"},E.t("sc_to")),p.createElement(an,{variant:"standard",style:{width:100},value:t.timeTo,onChange:n=>{const r=JSON.parse(JSON.stringify(this.state.intervalBetween));r.timeTo=parseInt(n.target.value,10),this.setState({intervalBetween:r},()=>this.recalcCron())}},[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23].map(n=>p.createElement(ze,{key:`A_${n}`,value:n},`${jo(n)}:00`)),!t.timeFrom&&p.createElement(ze,{value:24},"00:00")))),this.getControlsWeekdaysElements("intervalBetween")]}getSpecificTimeElements(){return[p.createElement("div",{key:"time",style:{marginLeft:8}},this.getControlsTime("specific")),this.getControlsWeekdaysElements("specific")]}onModeChange(t){t!==this.state.mode&&this.setState({mode:t},()=>this.recalcCron())}onChange(t){t!==this.state.cron&&(this.setState({cron:t}),this.props.onChange&&this.props.onChange(t))}render(){return p.createElement("div",{style:Ds.mainDiv},p.createElement("div",{style:{paddingLeft:8,width:"calc(100% - 8px)"}},p.createElement(nt,{variant:"standard",style:{width:"100%"},value:this.state.cron,disabled:!0,error:this.state.cron.includes("_")})),p.createElement("div",{style:{paddingLeft:8,width:"calc(100% - 8px)",height:60}},this.state.cron.includes("_")?E.t("sc_invalid_cron"):o3(this.state.cron,this.props.language||"en")),p.createElement("div",null,p.createElement(Hn,{variant:"standard",style:{...Ds.formControl,marginLeft:8,marginTop:8}},p.createElement(ph,null,E.t("ra_Repeat")),p.createElement(an,{variant:"standard",value:this.state.mode,onChange:t=>this.onModeChange(t.target.value),inputProps:{name:"mode",id:"mode"}},p.createElement(ze,{value:"once"},E.t("sc_once")),p.createElement(ze,{value:"interval"},E.t("sc_interval")),p.createElement(ze,{value:"intervalBetween"},E.t("sc_intervalBetween")),p.createElement(ze,{value:"specific"},E.t("sc_specific"))))),this.state.mode===Sst.once&&this.getOnceElements(),this.state.mode==="interval"&&this.getIntervalElements(),this.state.mode==="intervalBetween"&&this.getIntervalBetweenElements(),this.state.mode==="specific"&&this.getSpecificTimeElements())}}const kst={headerID:{fontWeight:"bold",fontStyle:"italic"},radio:{display:"inline-block"},dialogPaper:{height:"calc(100% - 96px)"}};class hkt extends p.Component{constructor(t){super(t);let n;this.props.cron&&typeof this.props.cron=="string"&&this.props.cron.replace(/^["']/,"")[0]!=="{"?n=this.props.cron.replace(/['"]/g,"").trim():(n=this.props.cron||"{}",typeof n=="string"&&(n=n.replace(/^["']/,"").replace(/["']\n?$/,""))),this.state={showWarning:"",cron:n}}handleCancel(){this.props.onClose()}handleOk(t){if(!t){const n=Vs.cron2state(this.state.cron);if(n.seconds==="*"||n.seconds==="*/1"){this.setState({showWarning:"everySecond"});return}if(n.minutes==="*"||n.minutes==="*/1"){this.setState({showWarning:"everyMinute"});return}}this.props.onOk(this.state.cron),this.props.onClose()}renderWarningDialog(){return this.state.showWarning?p.createElement(B4,{title:E.t("ra_Please confirm"),text:E.t(this.state.showWarning==="everySecond"?"ra_The schedule will be executed every second. Are you sure?":"ra_The schedule will be executed every minute. Are you sure?"),onClose:t=>this.setState({showWarning:""},()=>{t&&this.handleOk(!0)})}):null}handleClear(){this.props.onOk(!1),this.props.onClose()}render(){return p.createElement(ft,{onClose:()=>{},maxWidth:"md",fullWidth:!0,sx:{"& .MuiDialog-paper":kst.dialogPaper},open:!0,"aria-labelledby":"cron-dialog-title"},this.renderWarningDialog(),p.createElement(mt,{id:"cron-dialog-title"},this.props.title||E.t("ra_Define schedule...")),p.createElement(Tt,{style:{height:"100%",overflow:"hidden"}},p.createElement(Vs,{cronExpression:this.state.cron,onChange:t=>this.setState({cron:t}),language:E.getLanguage()})),p.createElement(Et,null,!!this.props.clearButton&&p.createElement(_e,{color:"grey",variant:"contained",onClick:()=>this.handleClear(),startIcon:p.createElement(ra,null)},this.props.clear||E.t("ra_Clear")),p.createElement(_e,{variant:"contained",onClick:()=>this.handleOk(),color:"primary",startIcon:p.createElement(jn,null)},this.props.ok||E.t("ra_Ok")),p.createElement(_e,{color:"grey",variant:"contained",onClick:()=>this.handleCancel(),startIcon:p.createElement(Nu,null)},this.props.cancel||E.t("ra_Cancel"))))}}const $st={dialogPaper:{height:"calc(100% - 96px)"}};class fkt extends p.Component{constructor(t){super(t);let n;this.props.cron&&typeof this.props.cron=="string"&&this.props.cron.replace(/^["']/,"")[0]!=="{"?n=this.props.cron.replace(/['"]/g,"").trim():(n=this.props.cron||"{}",typeof n=="string"&&(n=n.replace(/^["']/,"").replace(/["']\n?$/,""))),this.state={cron:n,mode:this.props.simple?"simple":this.props.complex?"complex":(typeof n=="object"||n[0]==="{")&&!this.props.noWizard?"wizard":Z3(this.props.cron||"* * * * *")?"simple":"complex"}}handleCancel(){this.props.onClose()}handleOk(){this.props.onOk(this.state.cron),this.props.onClose()}setMode(t){this.setState({mode:t})}render(){return p.createElement(ft,{onClose:()=>{},maxWidth:"md",fullWidth:!0,sx:{"& .MuiDialog-paper":$st.dialogPaper},open:!0,"aria-labelledby":"cron-dialog-title"},p.createElement(mt,{id:"cron-dialog-title"},this.props.title||E.t("ra_Define schedule...")),p.createElement(Tt,{style:{height:"100%",overflow:"hidden"}},this.props.simple&&this.props.complex||!this.props.simple&&!this.props.complex?p.createElement("div",null,!this.props.simple&&!this.props.complex&&!this.props.noWizard&&p.createElement(p.Fragment,null,p.createElement(Ot,{key:"wizard",checked:this.state.mode==="wizard",onChange:()=>this.setMode("wizard")}),p.createElement("label",{onClick:()=>this.setMode("wizard"),style:this.state.mode!=="wizard"?{color:"lightgrey"}:{}},E.t("sc_wizard"))),(!this.props.simple&&!this.props.complex||this.props.simple)&&p.createElement(p.Fragment,null,p.createElement(Ot,{key:"simple",checked:this.state.mode==="simple",onChange:()=>this.setMode("simple")}),p.createElement("label",{onClick:()=>this.setMode("simple"),style:this.state.mode!=="simple"?{color:"lightgrey"}:{}},E.t("sc_simple"))),(!this.props.simple&&!this.props.complex||this.props.complex)&&p.createElement(p.Fragment,null,p.createElement(Ot,{key:"complex",checked:this.state.mode==="complex",onChange:()=>this.setMode("complex")}),p.createElement("label",{onClick:()=>this.setMode("complex"),style:this.state.mode!=="complex"?{color:"lightgrey"}:{}},E.t("sc_cron")))):null,this.state.mode==="simple"&&p.createElement(hu,{cronExpression:this.state.cron,onChange:t=>this.setState({cron:t}),language:E.getLanguage()}),this.state.mode==="wizard"&&p.createElement(_n,{theme:this.props.theme,schedule:this.state.cron,onChange:t=>this.setState({cron:t})}),this.state.mode==="complex"&&p.createElement(Vs,{cronExpression:this.state.cron,onChange:t=>this.setState({cron:t}),language:E.getLanguage()})),p.createElement(Et,null,p.createElement(_e,{variant:"contained",onClick:()=>this.handleOk(),color:"primary",startIcon:p.createElement(jn,null)},this.props.ok||E.t("ra_Ok")),p.createElement(_e,{variant:"contained",onClick:()=>this.handleCancel(),color:"grey",startIcon:p.createElement(Nu,null)},this.props.cancel||E.t("ra_Cancel"))))}}class Wu extends k.Component{handleOk(){this.props.onClose&&this.props.onClose()}render(){return p.createElement(ft,{open:!0,maxWidth:"sm",fullWidth:this.props.fullWidth!==void 0?this.props.fullWidth:!0,onClose:()=>this.handleOk(),"aria-labelledby":"ar_dialog_message_title","aria-describedby":"ar_dialog_message_description"},p.createElement(mt,{id:"ar_dialog_message_title"},this.props.title||E.t("ra_Message")),p.createElement(Tt,null,p.createElement(ds,{id:"ar_dialog_message_description"},p.createElement("span",{style:{marginRight:this.props.icon?8:0}},this.props.icon||null),this.props.text)),p.createElement(Et,null,p.createElement(_e,{id:"ar_dialog_message_ok",variant:"contained",onClick:()=>this.handleOk(),color:"primary",autoFocus:!0,startIcon:p.createElement($t,null)},this.props.ok||E.t("ra_Close"))))}}const Ca={headerID:{fontWeight:"bold",fontStyle:"italic"},dialog:{height:"95%"},dialogMobile:{padding:"4px",width:"100%",maxWidth:"100%",maxHeight:"calc(100% - 16px)",height:"100%"},content:{height:"100%",overflow:"hidden"},contentMobile:{padding:"8px 4px"},titleRoot:{whiteSpace:"nowrap",width:"calc(100% - 72px)",overflow:"hidden",display:"inline-block",textOverflow:"ellipsis"}};class mkt extends p.Component{constructor(n){super(n);L(this,"dialogName");L(this,"filters");this.dialogName=this.props.dialogName||"default",this.dialogName=`SelectFile.${this.dialogName}`;const r=(window._localStorage||window.localStorage).getItem(this.dialogName)||"{}";try{this.filters=JSON.parse(r)}catch{this.filters={}}n.filters&&(this.filters={...this.filters,...n.filters});let o=this.props.selected||[];typeof o!="object"?o=[o]:o=[...o],o=o.filter(s=>s),this.state={selected:o}}handleCancel(){this.props.onClose()}handleOk(){this.props.onOk(this.props.multiSelect||!Array.isArray(this.state.selected)?this.state.selected:this.state.selected[0]||""),this.props.onClose()}render(){let n;return this.state.selected.length?!Array.isArray(this.state.selected)||this.state.selected.length===1?n=[p.createElement("span",{key:"selected"},E.t("ra_Selected")," "),p.createElement("span",{key:"id",style:Ca.headerID},this.state.selected)]:n=[p.createElement("span",{key:"selected"},E.t("ra_Selected")," "),p.createElement("span",{key:"id",style:Ca.headerID},E.t("%s items",this.state.selected.length))]:n=this.props.title||E.t("ra_Please select file..."),p.createElement(ft,{onClose:()=>{},maxWidth:!1,sx:{"& .MuiDialog-paper":{...Ca.dialog,...Ca.dialogMobile}},fullWidth:!0,open:!0,"aria-labelledby":"ar_dialog_selectfile_title"},p.createElement(mt,{id:"ar_dialog_selectfile_title",sx:{"&.MuiDialogTitle-root":Ca.titleRoot}},n),p.createElement(Tt,{style:{...Ca.content,...Ca.contentMobile}},p.createElement(uot,{ready:!0,imagePrefix:this.props.imagePrefix||this.props.prefix||"../",allowUpload:!!this.props.allowUpload,allowDownload:this.props.allowDownload!==!1,allowCreateFolder:!!this.props.allowCreateFolder,allowDelete:!!this.props.allowDelete,allowView:this.props.allowView!==!1,showViewTypeButton:this.props.showViewTypeButton!==!1,showToolbar:this.props.showToolbar!==!1,limitPath:this.props.limitPath,filterFiles:this.props.filterFiles,filterByType:this.props.filterByType,selected:this.props.selected,restrictToFolder:this.props.restrictToFolder,allowNonRestricted:this.props.allowNonRestricted,onSelect:(r,o,s)=>{this.setState({selected:Array.isArray(r)?r:[r]},()=>o&&(!this.props.selectOnlyFolders||s)&&this.handleOk())},t:this.props.t||E.t,lang:this.props.lang||E.getLanguage(),socket:this.props.socket,themeType:this.props.themeType,themeName:this.props.themeName,theme:this.props.theme,showExpertButton:this.props.showExpertButton,expertMode:this.props.expertMode,showTypeSelector:this.props.showTypeSelector})),p.createElement(Et,null,p.createElement(_e,{variant:"contained",onClick:()=>this.handleOk(),startIcon:p.createElement(jn,null),disabled:!this.state.selected.length,color:"primary"},this.props.ok||E.t("ra_Ok")),p.createElement(_e,{color:"grey",variant:"contained",onClick:()=>this.handleCancel(),startIcon:p.createElement(Nu,null)},this.props.cancel||E.t("ra_Cancel"))))}}const Cst={dialogPaper:{height:"calc(100% - 96px)"}};class gkt extends p.Component{constructor(t){super(t);let n;this.props.cron&&typeof this.props.cron=="string"&&this.props.cron.replace(/^["']/,"")[0]!=="{"?n=this.props.cron.replace(/['"]/g,"").trim():(n=this.props.cron||"{}",typeof n=="string"&&(n=n.replace(/^["']/,"").replace(/["']\n?$/,""))),this.state={cron:n}}handleCancel(){this.props.onClose()}handleOk(){this.props.onOk(this.state.cron),this.props.onClose()}render(){return p.createElement(ft,{onClose:()=>{},maxWidth:"md",fullWidth:!0,sx:{"& .MuiDialog-paper":Cst.dialogPaper},open:!0,"aria-labelledby":"cron-dialog-title"},p.createElement(mt,{id:"cron-dialog-title"},this.props.title||E.t("ra_Define CRON...")),p.createElement(Tt,{style:{height:"100%",overflow:"hidden"}},p.createElement(hu,{cronExpression:this.state.cron,onChange:t=>this.setState({cron:t}),language:E.getLanguage()})),p.createElement(Et,null,p.createElement(_e,{variant:"contained",disabled:!this.state.cron||this.state.cron.includes("_"),onClick:()=>this.handleOk(),color:"primary",startIcon:p.createElement(jn,null)},this.props.ok||E.t("ra_Ok")),p.createElement(_e,{variant:"contained",onClick:()=>this.handleCancel(),color:"grey",startIcon:p.createElement(Nu,null)},this.props.cancel||E.t("ra_Cancel"))))}}function oa(e){return Ge({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"},child:[]}]})(e)}function Est(e){return Ge({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M11 18h2v-2h-2v2zm1-16C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm0-14c-2.21 0-4 1.79-4 4h2c0-1.1.9-2 2-2s2 .9 2 2c0 2-3 1.75-3 5h2c0-2.25 3-2.5 3-5 0-2.21-1.79-4-4-4z"},child:[]}]})(e)}function fg(e){return Ge({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M3 13h2v-2H3v2zm0 4h2v-2H3v2zm0-8h2V7H3v2zm4 4h14v-2H7v2zm0 4h14v-2H7v2zM7 7v2h14V7H7z"},child:[]}]})(e)}function si(e){return Ge({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"},child:[]}]})(e)}function mg(e){return Ge({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"},child:[]}]})(e)}function ec(e){return Ge({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M20 9H4v2h16V9zM4 15h16v-2H4v2z"},child:[]}]})(e)}function tc(e){return Ge({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M3 21h18v-2H3v2zm0-4h18v-2H3v2zm0-4h18v-2H3v2zm0-4h18V7H3v2zm0-6v2h18V3H3z"},child:[]}]})(e)}function Tst(e){return Ge({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M20 19V3H4v16H2v2h20v-2h-2zM16 9h2v2h-2V9zm-2 2H6V9h8v2zm4-4h-2V5h2v2zm-4-2v2H6V5h8zM6 19v-6h8v1.82A1.746 1.746 0 0 0 15 18a1.746 1.746 0 0 0 1-3.18V13h2v6H6z"},child:[]}]})(e)}function gg(e){return Ge({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04a.996.996 0 0 0 0-1.41l-2.34-2.34a.996.996 0 0 0-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"},child:[]}]})(e)}function Q3(e){return Ge({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"},child:[]}]})(e)}function ai(e){return Ge({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M17.65 6.35A7.958 7.958 0 0 0 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08A5.99 5.99 0 0 1 12 18c-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"},child:[]}]})(e)}function Ost(e){return Ge({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M7.76 16.24C6.67 15.16 6 13.66 6 12s.67-3.16 1.76-4.24l1.42 1.42C8.45 9.9 8 10.9 8 12c0 1.1.45 2.1 1.17 2.83l-1.41 1.41zm8.48 0C17.33 15.16 18 13.66 18 12s-.67-3.16-1.76-4.24l-1.42 1.42C15.55 9.9 16 10.9 16 12c0 1.1-.45 2.1-1.17 2.83l1.41 1.41zM12 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm8 2c0 2.21-.9 4.21-2.35 5.65l1.42 1.42C20.88 17.26 22 14.76 22 12s-1.12-5.26-2.93-7.07l-1.42 1.42A7.94 7.94 0 0 1 20 12zM6.35 6.35 4.93 4.93C3.12 6.74 2 9.24 2 12s1.12 5.26 2.93 7.07l1.42-1.42C4.9 16.21 4 14.21 4 12s.9-4.21 2.35-5.65z"},child:[]}]})(e)}function Dst(e){return Ge({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M15 13V5c0-1.66-1.34-3-3-3S9 3.34 9 5v8c-1.21.91-2 2.37-2 4 0 2.76 2.24 5 5 5s5-2.24 5-5c0-1.63-.79-3.09-2-4zm-4-8c0-.55.45-1 1-1s1 .45 1 1h-1v1h1v2h-1v1h1v2h-2V5z"},child:[]}]})(e)}const Rn={tab:{width:"100%",minHeight:"100%"},input:{minWidth:300},button:{marginRight:20,marginBottom:40},card:{maxWidth:345,textAlign:"center"},media:{height:180},column:{display:"inline-block",verticalAlign:"top",marginRight:20},columnLogo:{width:350,marginRight:0},columnSettings:{width:"calc(100% - 370px)"},cannotUse:{color:"red",fontWeight:"bold"},hintUnsaved:{fontSize:12,color:"red",fontStyle:"italic"}};let e5=class t5 extends k.Component{constructor(n){super(n);L(this,"onAliveChanged",(n,r)=>{n===`system.adapter.${this.props.adapterName}.${this.props.instance}.alive`&&this.setState({isInstanceAlive:r&&r.val})});this.state={inAction:!1,toast:"",isInstanceAlive:!1},this.props.socket.getState(`system.adapter.${this.props.adapterName}.${this.props.instance}.alive`).then(r=>this.setState({isInstanceAlive:r&&r.val}))}componentDidMount(){this.props.socket.subscribeState(`system.adapter.${this.props.adapterName}.${this.props.instance}.alive`,this.onAliveChanged)}componentWillUnmount(){this.props.socket.unsubscribeState(`system.adapter.${this.props.adapterName}.${this.props.instance}.alive`,this.onAliveChanged)}static checkPassword(n){return n=(n||"").toString(),n.length<8||!n.match(/[a-z]/)||!n.match(/[A-Z]/)||!n.match(/\d/)?E.t("invalid_password_warning"):!1}renderInput(n,r,o,s){const a=r==="pass"&&t5.checkPassword(this.props.native[r]);return m.jsx(nt,{variant:"standard",label:E.t(n),error:!!a,autoComplete:s||"",style:Rn.input,value:this.props.native[r],type:o||"text",helperText:a||"",onChange:i=>this.props.onChange(r,i.target.value),margin:"normal"})}renderCard(){return m.jsxs(MP,{style:Rn.card,children:[m.jsxs(PP,{children:[m.jsx(ZP,{style:Rn.media,image:"alexalogo.png",title:"Alexa logo"}),m.jsx(GP,{children:U.renderTextWithA(E.t("amazon link"))})]}),m.jsxs(WP,{style:{textAlign:"center"},children:[m.jsx(_e,{variant:"outlined",size:"small",color:"primary",style:{textAlign:"center"},onClick:()=>{window.open("https://alexa.amazon.de/spa/index.html#skills/dp/B07L66BFF9/reviews","_blank").focus()},children:E.t("Review")}),this.props.native.amazonAlexa?m.jsx(_e,{color:"grey",title:"Debug",onClick:()=>this.onDebug(),style:{opacity:this.state.debugVisible?1:0},onMouseEnter:()=>this.setState({debugVisible:!0}),onMouseLeave:()=>this.setState({debugVisible:!1}),children:E.t("Debug")}):null]})]})}onDebug(){this.props.socket.sendTo(`${this.props.adapterName}.${this.props.instance}`,"debug",null).then(n=>{const r=new Blob([JSON.stringify(n,null,2)],{type:"application/json"});if(window.navigator.msSaveOrOpenBlob)window.navigator.msSaveOrOpenBlob(r,"debug.json");else{const o=document.createElement("a"),s=URL.createObjectURL(r);o.href=s,o.download="debug.json",document.body.appendChild(o),o.click(),setTimeout(()=>{document.body.removeChild(o),window.URL.revokeObjectURL(s)},0)}})}async resetCerts(n){this.setState({inAction:!0});const r={inAction:!1};try{const o=`iot.${this.props.instance}.certs.`;await this.props.socket.setState(`${o}private`,{val:"",ack:!0}),await this.props.socket.setState(`${o}id`,{val:"",ack:!0}),await this.props.socket.setState(`${o}public`,{val:"",ack:!0}),await this.props.socket.setState(`${o}certificate`,{val:"",ack:!0}),n&&await this.props.socket.setState(`${o}forceUserCreate`,{val:!0,ack:!0});const s=await this.props.socket.getObject(`system.adapter.iot.${this.props.instance}`);s&&s.common&&s.common.enabled&&await this.props.socket.setObject(s._id,s),r.toast=E.t("Certificates will be updated after start")}catch(o){this.props.onError(o)}this.setState(r)}renderToast(){return this.state.toast?m.jsx(su,{anchorOrigin:{vertical:"bottom",horizontal:"left"},open:!0,autoHideDuration:6e3,onClose:()=>this.setState({toast:""}),ContentProps:{"aria-describedby":"message-id"},message:m.jsx("span",{id:"message-id",children:this.state.toast}),action:[m.jsx(fe,{"aria-label":"Close",color:"inherit",style:Rn.close,onClick:()=>this.setState({toast:""}),children:m.jsx(Q3,{})},"close")]}):null}renderCheckbox(n,r,o){return m.jsx(Ae,{style:{...Rn.controlElement,paddingTop:5,...o},control:m.jsx(xt,{checked:this.props.native[r],onChange:()=>this.props.onChange(r,!this.props.native[r]),color:"primary"}),label:E.t(n)},r)}render(){return m.jsxs("form",{style:Rn.tab,children:[m.jsx(L1,{instance:this.props.instance,common:this.props.common,native:this.props.native,onError:n=>window.alert(n),onLoad:this.props.onLoad}),m.jsxs("div",{style:{...Rn.column,...Rn.columnSettings},children:[this.renderInput("ioBroker.pro Login","login",null,"username"),m.jsx("br",{}),this.renderInput("ioBroker.pro Password","pass","password","current-password"),m.jsx("br",{}),this.renderCheckbox("Amazon Alexa","amazonAlexa"),this.renderCheckbox("Amazon AlexaV3 (Beta)","amazonAlexaV3"),m.jsx(Ae,{style:{...Rn.controlElement,marginTop:5},control:m.jsx(xt,{checked:this.props.native.googleHome,onChange:()=>{const n=!this.props.native.googleHome;this.props.onChange("googleHome",n,()=>n&&this.props.onChange("amazonAlexa",!0))},color:"primary"}),label:E.t("Google Home")},"googleHome"),this.renderCheckbox("Yandex Алиса","yandexAlisa"),m.jsx("br",{}),m.jsx("p",{children:E.t("new_certs_tip")}),this.props.changed?m.jsx("div",{style:Rn.hintUnsaved,children:E.t("Save settings before pressing this button")}):null,m.jsx(_e,{variant:"outlined",style:Rn.button,disabled:this.props.changed||this.state.inAction||!this.state.isInstanceAlive,title:this.state.isInstanceAlive?"":E.t("Instance must be enabled"),onClick:()=>this.resetCerts(),startIcon:m.jsx(ai,{}),color:"grey",children:E.t("Get new connection certificates")}),m.jsx("p",{children:E.t("new_credentials_tip")}),this.props.changed?m.jsx("div",{style:Rn.hintUnsaved,children:E.t("Save settings before pressing this button")}):null,m.jsx(_e,{variant:"outlined",color:"grey",style:Rn.button,disabled:this.props.changed||this.state.inAction||!this.state.isInstanceAlive,title:this.state.isInstanceAlive?"":E.t("Instance must be enabled"),onClick:()=>this.resetCerts(!0),startIcon:m.jsx(ai,{}),children:E.t("Create IoT credentials anew")}),m.jsx("p",{children:U.renderTextWithA(E.t("forum_tip"))}),m.jsx("p",{style:{fontWeight:"bold"},children:U.renderTextWithA(E.t("help_tip"))}),m.jsx("p",{style:{fontWeight:"bold",paddingTop:20},children:U.renderTextWithA(E.t("help_link_tip1"))}),m.jsx("p",{style:{fontWeight:"bold"},children:U.renderTextWithA(E.t("help_link_tip2"))}),m.jsx("p",{style:{fontWeight:"bold",color:"red"},children:U.renderTextWithA(E.t("help_link_tip3"))})]}),m.jsx("div",{style:{...Rn.column,...Rn.columnLogo},children:this.renderCard()}),this.renderToast()]})}};e5.propTypes={common:P.object.isRequired,native:P.object.isRequired,instance:P.number.isRequired,adapterName:P.string.isRequired,onError:P.func,onLoad:P.func,onChange:P.func,changed:P.bool,socket:P.object.isRequired};const no={tab:{display:"flex",flexDirection:"column",gap:8},input:{marginTop:0,minWidth:300,maxWidth:500},button:{marginRight:20},card:{maxWidth:345,textAlign:"center"},media:{height:180},column:{display:"inline-block",verticalAlign:"top",marginRight:20},columnLogo:{width:350,marginRight:0},columnSettings:{width:"calc(100% - 370px)"},controlElement:{marginBottom:5}};class n5 extends k.Component{constructor(t){super(t),this.state={showSelectId:!1,adminInstances:[],webInstances:[]}}componentDidMount(){this.props.socket.getAdapterInstances("admin").then(t=>(t=t.filter(n=>!n.common.auth).map(n=>({title:`${n.common.name}.${n._id.split(".").pop()}`,value:`${n.common.name}.${n._id.split(".").pop()}`,noTranslation:!0})),t.unshift({title:"disabled",value:""}),this.props.socket.getAdapterInstances("web").then(n=>{n=n.filter(r=>!r.common.auth).map(r=>({title:`${r.common.name}.${r._id.split(".").pop()}`,value:`${r.common.name}.${r._id.split(".").pop()}`,noTranslation:!0})),n.unshift({title:"disabled",value:""}),this.setState({adminInstances:t,webInstances:n})})))}renderInput(t,n,r,o,s){return m.jsx(nt,{variant:"standard",label:E.t(t),disabled:o,style:{...no.input,...no.controlElement},value:this.props.native[n],type:r||"text",helperText:s?E.t(s):"",onChange:a=>this.props.onChange(n,a.target.value),margin:"normal"})}renderSelect(t,n,r,o){return m.jsxs(Hn,{style:{...no.input,...no.controlElement,paddingTop:5,paddingRight:8,...o},variant:"standard",children:[m.jsx(an,{variant:"standard",value:this.props.native[n]||"_",onChange:s=>this.props.onChange(n,s.target.value==="_"?"":s.target.value),input:m.jsx(Wn,{name:n,id:`${n}-helper`}),children:r.map(s=>m.jsx(ze,{value:s.value||"_",children:s.noTranslation?s.title:E.t(s.title)},`key-${s.value}`))}),m.jsx(ho,{children:E.t(t)})]})}renderCheckbox(t,n,r){return m.jsx(Ae,{style:{...no.controlElement,paddingTop:5,...r},control:m.jsx(xt,{checked:this.props.native[n],onChange:()=>this.props.onChange(n,!this.props.native[n]),color:"primary"}),label:E.t(t)},n)}getSelectIdDialog(t){return this.state.showSelectId?m.jsx(Sc,{theme:this.props.theme,imagePrefix:"../..",socket:this.props.socket,selected:this.props.native[t],types:["state"],onClose:()=>this.setState({showSelectId:!1}),onOk:n=>{this.setState({showSelectId:!1}),this.props.onChange(t,n)}},"dialogSelectID2"):null}render(){return m.jsxs("form",{style:no.tab,children:[this.renderSelect("Language","language",[{title:"default",value:""},{title:"english",value:"en",noTranslation:!0},{title:"Deutsch",value:"de",noTranslation:!0},{title:"русский",value:"ru",noTranslation:!0}]),this.renderCheckbox("Place function in names first","functionFirst"),this.renderInput("Concatenate words with","concatWord"),this.props.native.amazonAlexaV3?m.jsxs(Hn,{style:{...no.input,...no.controlElement,paddingTop:5,paddingRight:8},variant:"standard",children:[m.jsxs(an,{variant:"standard",value:this.props.native.defaultToggle||!1,onChange:t=>this.props.onChange("defaultToggle",t.target.value),children:[m.jsx(ze,{value:!1,children:E.t("Do not toggle")}),m.jsx(ze,{value:!0,children:E.t("Toggle")})]}),m.jsx(ho,{children:E.t("Default toggle behaviour (Only alexa v3)")})]}):null,this.renderInput("OFF level for switches in %","deviceOffLevel",null,!1,"(Set to 0 if behavior not desired)"),m.jsxs("div",{style:no.controlElement,children:[this.renderInput("Write response to","responseOID"),m.jsx(Ct,{size:"small",color:"secondary",onClick:()=>this.setState({showSelectId:!0}),"aria-label":"Add",style:{marginLeft:5,marginTop:10},children:m.jsx(si,{})})]}),m.jsxs("div",{style:no.controlElement,children:[this.renderCheckbox("Personal settings (only pro)","noCommon"),m.jsx(ho,{children:U.renderTextWithA(E.t("help_tip"))})]}),this.renderCheckbox("Debug outputs","debug"),m.jsxs("div",{style:no.controlElement,children:[this.renderCheckbox("Allow remote access","remote"),this.props.native.remote?this.renderSelect("Admin instance","remoteAdminInstance",this.state.adminInstances,{width:120,minWidth:120}):null,this.props.native.remote?this.renderSelect("Web instance","remoteWebInstance",this.state.webInstances,{width:120,minWidth:120}):null]}),this.getSelectIdDialog("responseOID")]})}}n5.propTypes={native:P.object.isRequired,onChange:P.func,socket:P.object.isRequired,theme:P.object};const bt={tab:{width:"100%",minHeight:"100%"},input:{marginTop:0,minWidth:400},fullSize:{width:"calc(100% - 64px)"},normalSize:{width:"calc(30% - 64px)",marginLeft:10},button:{marginRight:20},card:{maxWidth:345,textAlign:"center"},media:{height:180},column:{display:"inline-block",verticalAlign:"top",marginRight:20},columnLogo:{width:350,marginRight:0},columnSettings:{width:"calc(100% - 370px)"},controlElement:{marginBottom:5},chips:{border:"1px solid #DDD",borderRadius:1,width:"calc(100% - 250px)",display:"inline-block",padding:5,minHeight:32,marginLeft:10,marginTop:20},chip:{marginRight:5}};class r5 extends k.Component{constructor(t){super(t),this.state={running:!1,toast:"",showSelectId:!1,text2commandList:[],nightscoutList:[],addValue:"",isInstanceAlive:!1},this.onKeyChangedBound=this.onKeyChanged.bind(this),this.props.socket.getAdapterInstances("text2command").then(n=>this.props.socket.getAdapterInstances("nightscout").then(r=>this.setState({nightscoutList:r.map(o=>o._id.replace("system.adapter.nightscout.","")),text2commandList:n.map(o=>o._id.replace("system.adapter.text2command.",""))})))}componentDidMount(){this.props.socket.subscribeState(`iot.${this.props.instance}.certs.urlKey`,this.onKeyChangedBound),this.props.socket.getObject(`system.adapter.${this.props.adapterName}.${this.props.instance}`).then(t=>this.props.socket.getState(`system.adapter.${this.props.adapterName}.${this.props.instance}.alive`).then(n=>this.setState({isInstanceAlive:t&&t.common&&n&&n.val})))}componentWillUnmount(){this.props.socket.unsubscribeState(`iot.${this.props.instance}.certs.urlKey`,this.onKeyChangedBound)}onKeyChanged(t,n){n&&this.setState({key:n.val})}renderInput(t,n,r){return m.jsx(nt,{variant:"standard",label:E.t(t),style:{...bt.input,...bt.controlElement},value:this.props.native[n],type:r||"text",onChange:o=>this.props.onChange(n,o.target.value),margin:"normal"})}reissueUrlKey(){return this.setState({running:!0}),this.props.socket.setState(`iot.${this.props.instance}.certs.urlKey`,{val:"",ack:!0}).then(()=>this.props.socket.getObject(`system.adapter.iot.${this.props.instance}`)).then(t=>{!t||!t.common||!t.common.enabled?this.setState({running:!1,toast:E.t("Key will be updated after start")}):this.props.socket.setObject(`system.adapter.iot.${this.props.instance}`,t)}).then(()=>this.setState({running:!1,toast:E.t("Certificates will be updated after initiated restart")})).catch(t=>{this.setState({running:!1}),this.props.showError(t)})}renderToast(){return this.state.toast?m.jsx(su,{anchorOrigin:{vertical:"bottom",horizontal:"left"},open:!0,autoHideDuration:6e3,onClose:()=>this.setState({toast:""}),ContentProps:{"aria-describedby":"message-id"},message:m.jsx("span",{id:"message-id",children:this.state.toast}),action:[m.jsx(fe,{"aria-label":"Close",color:"inherit",style:bt.close,onClick:()=>this.setState({toast:""}),children:m.jsx(Q3,{})},"close")]}):null}onChipsDelete(t,n){const r=(this.props.native[t]||"").split(/[,;\s]/).filter(s=>!!s),o=r.indexOf(n);o!==-1&&(r.splice(o,1),this.props.onChange(t,r.join(" ")))}onChipsAdd(t){const n=(this.props.native[t]||"").split(/[,;\s]/).filter(r=>!!r);this.state.addValue==="visu"?(this.props.onError(E.t("This service is reserved for the ioBroker.visu app. Please use another service name.")),this.setState({addValue:""})):!n.includes(this.state.addValue)&&this.state.addValue&&(n.push(this.state.addValue),this.setState({addValue:""},()=>this.props.onChange(t,n.join(" "))))}calcNightscoutSecret(){const t=this.props.native.login.replace(/[^\w\d-_]/g,"_"),n=this.props.native.nightscoutPass;return t+(n?`-${n}`:"")}getSelectIdDialog(t){return this.state.showSelectId?m.jsx(Sc,{theme:this.props.theme,imagePrefix:"../..",socket:this.props.socket,selected:this.props.native[t],types:["state"],onClose:()=>this.setState({showSelectId:!1}),onOk:n=>{this.setState({showSelectId:!1}),this.props.onChange(t,n)}},"dialogSelectID3"):null}renderChips(t,n){return m.jsxs("div",{style:bt.chipsDiv,children:[m.jsx(ho,{children:U.renderTextWithA(E.t(t))}),m.jsx(nt,{variant:"standard",label:E.t("Add service"),style:{width:150},type:"text",value:this.state.addValue,onKeyUp:r=>r.key==="Enter"&&this.onChipsAdd(n),onChange:r=>this.setState({addValue:r.target.value.trim()}),margin:"normal"}),m.jsx(Ct,{size:"small",color:"secondary",disabled:!this.state.addValue,onClick:()=>this.onChipsAdd(n),style:{marginLeft:5,marginTop:-15},children:m.jsx(si,{})}),m.jsx("div",{style:bt.chips,children:(this.props.native[n]||"").split(/[,;\s]/).filter(r=>!!r).map(r=>m.jsx(WR,{size:"small",label:r,onDelete:()=>this.onChipsDelete(n,r),style:bt.chip},r))})]})}render(){return m.jsxs("form",{style:bt.tab,children:[m.jsx(_e,{variant:"outlined",disabled:!this.state.isInstanceAlive||this.state.running,color:"primary",title:this.state.isInstanceAlive?"":E.t("Instance must be enabled"),onClick:()=>this.reissueUrlKey(),startIcon:m.jsx(ai,{}),children:E.t("Get new service URL key")}),m.jsx("br",{}),this.renderInput("IFTTT key","iftttKey"),m.jsx("br",{}),m.jsx(nt,{variant:"standard",label:E.t("Use following link for IFTTT"),style:{...bt.input,...bt.controlElement,...bt.fullSize,marginTop:10},value:`https://service.iobroker.in/v1/iotService?service=ifttt&key=${this.state.key}&user=${encodeURIComponent(this.props.native.login)}`,type:"text",slotProps:{htmlInput:{readOnly:!0}},margin:"normal"}),m.jsx(Ct,{size:"small",style:{marginTop:10,marginLeft:5},onClick:()=>U.copyToClipboard(`https://service.iobroker.in/v1/iotService?service=ifttt&key=${this.state.key}&user=${encodeURIComponent(this.props.native.login)}`),children:m.jsx(Ps,{})}),m.jsx("br",{}),m.jsx("br",{}),this.renderChips("White list for services","allowedServices"),m.jsx("br",{}),m.jsx(nt,{variant:"standard",label:E.t("Use following link for custom service"),style:{...bt.input,...bt.controlElement,...bt.fullSize,marginTop:10},value:`https://service.iobroker.in/v1/iotService?service=custom_&key=${this.state.key}&user=${encodeURIComponent(this.props.native.login)}&data=`,type:"text",slotProps:{htmlInput:{readOnly:!0}},margin:"normal"}),m.jsx(Ct,{size:"small",style:{marginTop:10,marginLeft:5},onClick:()=>U.copyToClipboard(`https://service.iobroker.in/v1/iotService?service=custom_&key=${this.state.key}&user=${encodeURIComponent(this.props.native.login)}&data=`),children:m.jsx(Ps,{})}),m.jsx("br",{}),m.jsxs(Hn,{style:{...bt.input,...bt.controlElement,paddingTop:20},variant:"standard",children:[m.jsxs(an,{variant:"standard",value:this.props.native.text2command||"_",onChange:t=>this.props.onChange("text2command",t.target.value==="_"?"":t.target.value),input:m.jsx(Wn,{name:"text2command",id:"text2command-helper"}),children:[m.jsx(ze,{value:"_",children:E.t("disabled")},"key-default"),this.state.text2commandList.map(t=>m.jsxs(ze,{value:t,children:["text2command.",t]},`key-${t}`))]}),m.jsx(ho,{children:E.t("Use text2command instance")})]}),m.jsx("br",{}),m.jsxs(Hn,{style:{...bt.input,...bt.controlElement,paddingTop:20},variant:"standard",children:[m.jsxs(an,{variant:"standard",value:this.props.native.nightscout||"_",onChange:t=>this.props.onChange("nightscout",t.target.value==="_"?"":t.target.value),input:m.jsx(Wn,{name:"nightscout",id:"nightscout-helper"}),children:[m.jsx(ze,{value:"_",children:E.t("disabled")},"key-default"),this.state.nightscoutList.map(t=>m.jsxs(ze,{value:t,children:["nightscout.",t]},`key-${t}`))]}),m.jsx(ho,{children:E.t("Use Nightscout instance")})]}),this.props.native.nightscout?m.jsx(nt,{variant:"standard",label:E.t("Nightscout password"),onChange:t=>this.props.onChange("nightscoutPass",t.target.value.replace(/[^\w\d-_]/g,"_")),style:{...bt.input,...bt.controlElement,...bt.normalSize,marginTop:3.5},value:this.props.native.nightscoutPass,type:"text",margin:"normal"}):null,this.props.native.nightscout?m.jsx(nt,{variant:"standard",label:E.t("Nightscout api-secret"),style:{...bt.input,...bt.controlElement,...bt.normalSize,marginTop:3.5},value:this.calcNightscoutSecret(),type:"text",slotProps:{htmlInput:{readOnly:!0}},margin:"normal"}):null,m.jsx("br",{}),m.jsx("br",{}),m.jsxs("div",{style:bt.controlElement,children:[m.jsx(nt,{variant:"standard",label:E.t("Read blood sugar from"),style:{...bt.input,...bt.controlElement},value:this.props.native.amazonAlexaBlood||"",type:"text",onChange:t=>this.props.onChange("amazonAlexaBlood",t.target.value),margin:"normal"}),m.jsx(Ct,{size:"small",color:"secondary",onClick:()=>this.setState({showSelectId:!0}),"aria-label":"Add",style:{marginLeft:5,marginTop:10},children:m.jsx(si,{})}),m.jsx(Ae,{style:bt.controlElement,control:m.jsx(xt,{style:{paddingLeft:30},checked:this.props.native.amazonAlexaBloodShortAnswer||!1,onChange:t=>this.props.onChange("amazonAlexaBloodShortAnswer",t.target.checked),color:"primary"}),label:E.t("Short answer for blood sugar")})]}),m.jsx("br",{}),this.renderToast(),this.getSelectIdDialog("amazonAlexaBlood")]})}}r5.propTypes={native:P.object.isRequired,instance:P.number.isRequired,adapterName:P.string.isRequired,onError:P.func,onChange:P.func,socket:P.object.isRequired,theme:P.object};const Ast="#e7000040",ur={tab:{width:"100%",height:"100%"},column:{display:"inline-block",verticalAlign:"top",marginRight:10,height:"100%",overflow:"hidden",width:"calc(50% - 20px)",minWidth:300,maxWidth:450},columnDiv:{height:"calc(100% - 40px)",overflow:"auto",minWidth:300},enumLineEnabled:{},enumLineEdit:{},enumLineName:{},enumLineSubName:{fontStyle:"italic"},enumLine:{height:48,width:"100%",position:"relative",display:"flex",alignItems:"center"},enumLineId:{display:"block",fontStyle:"italic",fontSize:12},columnHeader:e=>({background:e.palette.primary.light,padding:"10px",color:e.palette.primary.contrastText,marginTop:0,marginBottom:0})};class o5 extends k.Component{constructor(t){super(t),this.state={inAction:!1,editId:"",editedSmartName:"",funcs:[],rooms:[],changed:[],message:"",loading:!0},this.onEnumUpdateBound=this.onEnumUpdate.bind(this),this.props.socket.getEnums().then(n=>{const r=[],o=[];return n&&Object.keys(n).forEach(s=>{s.match(/^enum\.rooms\./)?o.push(n[s]):s.match(/^enum\.functions\./)&&r.push(n[s])}),this.setState({funcs:r,rooms:o,loading:!1}),this.props.socket.subscribeObject("enum.*",this.onEnumUpdateBound)})}componentWillUnmount(){this.props.socket.unsubscribeObject("enum.*",this.onEnumUpdateBound).then(()=>{})}onEnumUpdate(t,n){this.removeChanged(t),this.updateObjInState(t,n)}informInstance(t){this.props.socket.sendTo(`${this.props.adapterName}.${this.props.instance}`,"update",t)}addChanged(t){const n=JSON.parse(JSON.stringify(this.state.changed));n.includes(t)||(n.push(t),this.setState({changed:n}))}removeChanged(t){const n=JSON.parse(JSON.stringify(this.state.changed)),r=n.indexOf(t);r!==-1&&(n.splice(r,1),this.setState({changed:n}))}updateObjInState(t,n){if(t.match(/^enum\.functions\./)){for(let r=this.state.funcs.length-1;r>=0;r--)if(this.state.funcs[r]._id===t){const o=JSON.parse(JSON.stringify(this.state.funcs));n?o[r]=n:o.splice(r,1),this.setState({funcs:o});break}}else if(t.match(/^enum\.rooms\./)){for(let r=this.state.rooms.length-1;r>=0;r--)if(this.state.rooms[r]._id===t){const o=JSON.parse(JSON.stringify(this.state.rooms));n?o[r]=n:o.splice(r,1),this.setState({rooms:o});break}}}onToggleEnum(t){let n=this.state.funcs.find(o=>o._id===t)||this.state.rooms.find(o=>o._id===t);const r=U.getSmartNameFromObj(n,`${this.props.adapterName}.${this.props.instance}`,this.props.native.noCommon);n=JSON.parse(JSON.stringify(n)),r!==!1?U.disableSmartName(n,`${this.props.adapterName}.${this.props.instance}`,this.props.native.noCommon):U.removeSmartName(n,`${this.props.adapterName}.${this.props.instance}`,this.props.native.noCommon),this.addChanged(t),this.props.socket.setObject(t,n).then(()=>{this.updateObjInState(t,n),this.informInstance(t),setTimeout(()=>this.removeChanged(t),500)})}onEdit(t){const n=this.state.funcs.find(o=>o._id===t)||this.state.rooms.find(o=>o._id===t);let r=U.getSmartNameFromObj(n,`${this.props.adapterName}.${this.props.instance}`,this.props.native.noCommon);typeof r=="object"&&r&&(r=r[E.getLanguage()]||r.en),r=r||U.getObjectNameFromObj(n,null,{language:E.getLanguage()}),this.setState({editId:t,editedSmartName:r})}renderEnum(t){let n=U.getSmartNameFromObj(t,`${this.props.adapterName}.${this.props.instance}`,this.props.native.noCommon);n&&typeof n=="object"&&(n=n[E.getLanguage()]||n.en||"");const r=U.getObjectNameFromObj(t,null,{language:E.getLanguage()});return m.jsxs("div",{style:{...ur.enumLine,background:this.state.changed.indexOf(t._id)!==-1?Ast:"inherit"},children:[m.jsxs("div",{style:{marginLeft:8},children:[m.jsxs("span",{style:{...ur.enumLineName,opacity:n===!1?.5:1},children:[n||null,n?m.jsxs("span",{style:ur.enumLineSubName,children:[" (",r,")"]}):r]}),m.jsx("span",{style:{...ur.enumLineId,opacity:n===!1?.5:1},children:t._id})]}),m.jsx("div",{style:{flex:1}}),m.jsx(fe,{"aria-label":"Edit",style:ur.enumLineEdit,onClick:()=>this.onEdit(t._id),children:m.jsx(gg,{fontSize:"large"})}),m.jsx(od,{style:ur.enumLineEnabled,checked:n!==!1,onChange:()=>this.onToggleEnum(t._id)})]},t._id)}renderEnums(t){return this.state[t].map(n=>this.renderEnum(n))}renderMessage(){return this.state.message?m.jsx(Wu,{text:this.state.message,onClose:()=>this.setState({message:""})}):null}changeSmartName(){if((this.state.editId.startsWith("enum.functions.")?this.state.funcs:this.state.rooms).find(n=>this.state.editId!==n._id&&(this.state.editedSmartName===U.getObjectNameFromObj(n,null,{language:E.getLanguage()})||this.state.editedSmartName===U.getSmartNameFromObj(n,`${this.props.adapterName}.${this.props.instance}`,this.props.native.noCommon))))this.setState({message:E.t("Duplicate name")});else{this.addChanged(this.state.editId),setTimeout(()=>this.removeChanged(this.state.editId),500);const n=this.state.editId;this.setState({editId:""});let r;this.props.socket.getObject(n).then(o=>(U.updateSmartName(o,this.state.editedSmartName,void 0,void 0,`${this.props.adapterName}.${this.props.instance}`,this.props.native.noCommon),r=o,this.props.socket.setObject(n,o))).then(()=>{this.updateObjInState(n,r),this.informInstance(n)}).catch(o=>this.props.onError(o))}}renderEditDialog(){if(this.state.editId){const t=this.state.funcs.find(n=>n._id===this.state.editId)||this.state.rooms.find(n=>n._id===this.state.editId);return m.jsxs(ft,{open:!0,maxWidth:"sm",fullWidth:!0,onClose:()=>this.setState({editId:""}),"aria-labelledby":"message-dialog-title","aria-describedby":"message-dialog-description",children:[m.jsx(mt,{id:"message-dialog-title",children:this.props.title||E.t("Smart name for %s",U.getObjectNameFromObj(t,null,{language:E.getLanguage()}))}),m.jsx(Tt,{children:m.jsx(nt,{variant:"standard",autoFocus:!0,style:{width:"100%"},label:E.t("Smart name"),onChange:n=>this.setState({editedSmartName:n.target.value}),value:this.state.editedSmartName,helperText:E.t("You can enter several names divided by comma"),margin:"normal"})}),m.jsxs(Et,{children:[m.jsx(_e,{variant:"contained",onClick:()=>this.changeSmartName(),color:"primary",startIcon:m.jsx(jn,{}),children:E.t("Ok")}),m.jsx(_e,{color:"grey",variant:"contained",onClick:()=>this.setState({editId:""}),startIcon:m.jsx($t,{}),children:E.t("Cancel")})]})]})}return null}render(){return this.state.loading?m.jsx(Un,{}):m.jsxs("form",{style:ur.tab,children:[m.jsxs("div",{style:ur.column,children:[m.jsx(Ce,{component:"h5",sx:ur.columnHeader,children:E.t("Rooms")}),m.jsx("div",{style:ur.columnDiv,children:this.renderEnums("rooms")})]}),m.jsxs("div",{style:ur.column,children:[m.jsx(Ce,{component:"h5",sx:ur.columnHeader,children:E.t("Functions")}),m.jsx("div",{style:ur.columnDiv,children:this.renderEnums("funcs")})]}),this.renderMessage(),this.renderEditDialog()]})}}o5.propTypes={native:P.object.isRequired,instance:P.number.isRequired,adapterName:P.string.isRequired,onError:P.func,socket:P.object.isRequired};const Lp="#aba613",Fp="#444",Xc="#00c6ff",z_="#00bc00",Bp="#e7000040",Wp="#4f4f4f",Hp="#e9e9e9",Up="#5c8f65",Vp="#b4ffbe",Co={turnOn:{color:Lp,icon:Ry,desc:"Turn on",v2:!0},turnOff:{color:Fp,icon:Ry,desc:"Turn off",v2:!0},setTargetTemperature:{color:Xc,icon:S3,desc:"Set target temperature",v2:!0},incrementTargetTemperature:{color:Lp,icon:Dl,desc:"Increment target temperature",v2:!0},decrementTargetTemperature:{color:Fp,icon:Ol,desc:"Decrement target temperature",v2:!0},setPercentage:{color:Xc,icon:w3,desc:"Set percentage",v2:!0},incrementPercentage:{color:Lp,icon:Dl,desc:"Increment percentage",v2:!0},decrementPercentage:{color:Fp,icon:Ol,desc:"Decrement percentage",v2:!0},setColor:{color:Xc,icon:b3,desc:"Set color",v2:!0},setColorTemperature:{color:Xc,icon:Df,desc:"Set color temperature",v2:!0},incrementColorTemperature:{color:Lp,icon:Dl,desc:"Increment color temperature",v2:!0},decrementColorTemperature:{color:Fp,icon:Ol,desc:"Decrement color temperature",v2:!0},getTargetTemperature:{color:z_,icon:Dd,desc:"Get target temperature",v2:!0},getTemperatureReading:{color:z_,icon:Dd,desc:"Get actual temperature",v2:!0},setLockState:{color:Xc,icon:Af,desc:"Set lock state",v2:!0},getLockState:{color:z_,icon:Af,desc:"Read lock state",v2:!0}},Gp=["LIGHT","SWITCH","THERMOSTAT","ACTIVITY_TRIGGER","SCENE_TRIGGER","SMARTPLUG","SMARTLOCK","CAMERA"],Qe={tab:{width:"100%",height:"100%"},column:{display:"inline-block",verticalAlign:"top",marginRight:20,height:"100%",overflow:"hidden"},columnDiv:{height:"calc(100% - 40px)",overflow:"auto",minWidth:300},filter:{margin:0},button:{marginRight:20},devLineExpand:{marginRight:10},devLineEnabled:{position:"absolute",right:0,top:0},devLineEdit:{position:"absolute",top:5,right:50},devLineDelete:{position:"absolute",top:5,right:0},devLineName:{},devLineNumber:{display:"inline-block",verticalAlign:"middle",width:15},editedId:{fontStyle:"italic"},enumLineSubName:{fontStyle:"italic"},devLine:{height:48,width:"100%",position:"relative"},devLineDescription:{display:"block",fontStyle:"italic",fontSize:12},devLineActions:{fontStyle:"italic",fontSize:12,paddingLeft:50,display:"inline-block"},devLineProgress:{position:"absolute",top:0,left:0},channelLineActions:{width:80},devLineNameBlock:{display:"inline-block",width:"calc(100% - 350px)"},devModified:{fontStyle:"italic"},actionIcon:{width:16},devSubLine:{position:"relative",height:48},devSubLineName:{marginLeft:5,marginTop:14,display:"inline-block",fontSize:13,width:"calc(100% - 400px)"},devSubSubLineName:{fontSize:8,fontStyle:"italic",display:"block"},devSubLineByOn:{marginLeft:5},devSubLineDelete:{position:"absolute",top:12,right:12,padding:0},devSubLineEdit:{position:"absolute",top:12,right:62,padding:0},devSubLineTypeTitle:{marginTop:0},headerRow:e=>({pl:1,background:e.palette.primary.main}),headerCell:{display:"inline-block",verticalAlign:"top",width:"100%"},tableCell:{display:"inline-block",verticalAlign:"top",width:"100%"}};class Ws extends k.Component{constructor(t){super(t),Co.translated||(Object.keys(Co).forEach(n=>Co[n].desc=E.t(Co[n].desc)),Co.translated=!0),this.state={edit:null,deleteId:"",showListOfDevices:!1,showSelectId:!1,showConfirmation:"",changed:[],devices:[],message:"",filter:"",loading:!0,browse:!1,expanded:[],lastChanged:""},this.timerChanged=null,this.browseTimer=null,this.browseTimerCount=0,this.waitForUpdateID=null,this.onReadyUpdateBound=this.onReadyUpdate.bind(this),this.onResultUpdateBound=this.onResultUpdate.bind(this),this.props.socket.getObject(`system.adapter.${this.props.adapterName}.${this.props.instance}`).then(n=>this.props.socket.getState(`system.adapter.${this.props.adapterName}.${this.props.instance}.alive`).then(r=>{!n||!n.common||!n.common.enabled&&(!r||!r.val)?this.setState({message:E.t("Instance must be enabled"),loading:!1,devices:[]}):this.browse()}))}browse(t){Date.now()-this.lastBrowse<500||(this.lastBrowse=Date.now(),t?this.setState({loading:!0,browse:!0}):this.setState({browse:!0}),console.log("Send BROWSE!"),this.browseTimer=setTimeout(()=>{console.log("Browse timeout!"),this.browseTimer=null,this.browseTimerCount++,this.browseTimerCount<5?this.browse(t):this.setState({message:E.t("Cannot read devices!")})},1e4),this.props.socket.sendTo(`${this.props.adapterName}.${this.props.instance}`,"browse",null).then(n=>{this.browseTimer&&clearTimeout(this.browseTimer),this.browseTimerCount=0,this.browseTimer=null,n&&n.error?this.setState({message:E.t(n.error)}):(this.waitForUpdateID&&(this.onEdit(this.waitForUpdateID,n)||this.setState({message:E.t("Device %s was not added",this.waitForUpdateID)}),this.waitForUpdateID=null),console.log("BROWSE received."),this.setState({devices:n,loading:!1,changed:[],browse:!1}),n.length>300&&this.props.onError(E.t("Too many devices (%s) configured. Max number is 300",n.length)))}).catch(n=>this.setState({message:E.t("Error %s",n),browse:!1})))}onReadyUpdate(t,n){console.log(`Update ${t} ${n?`${n.val}/${n.ack}`:"null"}`),n&&n.ack===!0&&n.val===!0&&(this.devTimer&&clearTimeout(this.devTimer),this.devTimer=setTimeout(()=>{this.devTimer=null,this.browse()},300))}onResultUpdate(t,n){n&&n.ack===!0&&n.val&&this.setState({message:n.val})}componentDidMount(){this.props.socket.subscribeState(`${this.props.adapterName}.${this.props.instance}.smart.updates`,this.onReadyUpdateBound),this.props.socket.subscribeState(`${this.props.adapterName}.${this.props.instance}.smart.updatesResult`,this.onResultUpdateBound)}componentWillUnmount(){this.props.socket.unsubscribeState(`${this.props.adapterName}.${this.props.instance}.smart.updates`,this.onReadyUpdateBound),this.props.socket.unsubscribeState(`${this.props.adapterName}.${this.props.instance}.smart.updatesResult`,this.onResultUpdateBound),this.timerChanged&&(clearTimeout(this.timerChanged),this.timerChanged=null)}informInstance(t){this.props.socket.sendTo(`${this.props.adapterName}.${this.props.instance}`,"update",t)}addChanged(t,n){const r=JSON.parse(JSON.stringify(this.state.changed));r.includes(t)?n&&n():(r.push(t),this.setState({changed:r},()=>n&&n()))}onEdit(t,n){n=n||this.state.devices;const r=n.find(o=>o.additionalApplianceDetails.id===t);return r?(this.props.socket.getObject(t).then(o=>{let s=r.additionalApplianceDetails.friendlyNames?r.additionalApplianceDetails.friendlyNames:r.friendlyName;typeof s=="object"&&s&&(s=s[E.getLanguage()]||s.en);let a=null;r.additionalApplianceDetails.group||(a=r.additionalApplianceDetails.smartType),this.setState({edit:{id:t,type:a,name:s,objectName:U.getObjectNameFromObj(o,null,{language:E.getLanguage()}),originalName:s,originalType:a}})}),!0):!1}onAskDelete(t){this.setState({deleteId:t,showConfirmation:!0})}onDelete(){const t=this.state.deleteId;this.addChanged(t,()=>{this.props.socket.getObject(t).then(n=>(U.disableSmartName(n,`${this.props.adapterName}.${this.props.instance}`,this.props.native.noCommon),this.props.socket.setObject(t,n))).then(()=>{this.setState({deleteId:"",showConfirmation:!1,lastChanged:t}),this.timerChanged&&clearTimeout(this.timerChanged),this.timerChanged=setTimeout(()=>{this.setState({lastChanged:""}),this.timerChanged=null},3e4),this.informInstance(t)}).catch(n=>this.props.onError(n))})}static renderActions(t){const n=[];if(!t.actions)return console.log("Something went wrong"),null;t.actions.sort((r,o)=>r===o?0:r==="turnOn"?-1:o==="turnOn"?1:r==="turnOff"?-1:o==="turnOff"?1:0),Object.keys(Co).forEach(r=>{if(t.actions.includes(r)){const o=Co[r].icon;n.push(m.jsx("span",{title:Co[r].desc,children:m.jsx(o,{style:{...Qe.actionIcon,color:Co[r].color}})},r))}});for(let r=0;rthis.onParamsChange(r,a.target.value),children:s}),m.jsx(ho,{style:Qe.devSubLineTypeTitle,children:E.t("by ON")})]})}return null}onParamsChange(t,n,r){this.addChanged(t,()=>{this.props.socket.getObject(t).then(o=>(U.updateSmartName(o,void 0,n,r,`${this.props.adapterName}.${this.props.instance}`,this.props.native.noCommon),this.state.lastChanged!==t&&(this.setState({lastChanged:t}),this.timerChanged&&clearTimeout(this.timerChanged),this.timerChanged=setTimeout(()=>{this.setState({lastChanged:""}),this.timerChanged=null},3e4)),this.props.socket.setObject(t,o))).then(()=>{this.informInstance(t)}).catch(o=>this.props.onError(o))})}static renderSelectTypeSelector(t,n){if(t!==!1){const r=[m.jsx(ze,{value:"_",children:m.jsx("em",{children:E.t("no type")})},"_")];for(let o=0;on(o.target.value==="_"?"":o.target.value),children:r}),m.jsx(ho,{style:Qe.devSubLineTypeTitle,children:E.t("Types")})]})}return""}renderSelectType(t,n,r,o){return Ws.renderSelectTypeSelector(o,s=>this.onParamsChange(r,void 0,s))}renderChannels(t,n){const r=[];if(t.additionalApplianceDetails.group){const o=t.additionalApplianceDetails.channels,s=t.additionalApplianceDetails.names,a=t.additionalApplianceDetails.byONs,i=t.additionalApplianceDetails.smartTypes;let l=0;o&&Object.keys(o).forEach(d=>{for(let u=0;uthis.onAskDelete(c,n),children:m.jsx(oa,{fontSize:"middle"})})]},`sub${c}`)),l++}})}else{const o=t.additionalApplianceDetails.id,s=t.additionalApplianceDetails.name||o;let a=this.state.changed.includes(o)?Bp:this.props.themeType==="dark"?Wp:Hp;this.state.lastChanged===o&&(a===Wp||a===Hp)&&(a=this.props.themeType==="dark"?Up:Vp),r.push(m.jsxs("div",{style:{...Qe.devSubLine,background:a},children:[m.jsx("div",{style:{...Qe.devLineActions,...Qe.channelLineActions,width:80},children:Ws.renderActions(t)}),m.jsx("div",{style:Qe.devSubLineName,title:o||"",children:s}),this.renderSelectType(t,n,o,t.additionalApplianceDetails.smartType),this.renderSelectByOn(t,n,o,t.additionalApplianceDetails.byON)]},`sub${o}`))}return r}renderDevice(t,n){var u;const r=t.friendlyName;let o;!t.additionalApplianceDetails.group&&t.additionalApplianceDetails.nameModified?o=r:o=m.jsx("span",{style:Qe.devModified,title:E.t("modified"),children:r});let s=0;t.additionalApplianceDetails.channels&&Object.keys(t.additionalApplianceDetails.channels).forEach(c=>s+=t.additionalApplianceDetails.channels[c].length),s=s||1;const a=this.state.expanded.includes(r),i=(u=t.additionalApplianceDetails)==null?void 0:u.id;let l=n%2?this.props.themeType==="dark"?"#272727":"#f1f1f1":"inherit";const d=this.state.changed.includes(i);if(d?l=Bp:i===this.state.lastChanged&&(l=this.props.themeType==="dark"?Up:Vp),t.additionalApplianceDetails.group&&!d&&i!==this.state.lastChanged){const c=t.additionalApplianceDetails.channels;try{c&&Object.keys(c).forEach(h=>h&&c[h].forEach(f=>{this.state.changed.includes(f.id)?l=Bp:this.state.lastChanged===f.id&&(l=this.props.themeType==="dark"?Up:Vp)}))}catch(h){console.log(h)}}return[m.jsxs("div",{style:{...Qe.devLine,background:l},children:[m.jsxs("div",{style:Qe.devLineNumber,children:[n+1,"."]}),m.jsx(fe,{style:Qe.devLineExpand,onClick:()=>this.onExpand(n),children:s>1?m.jsx(ou,{badgeContent:s,color:"primary",children:a?m.jsx(ec,{}):m.jsx(tc,{})}):a?m.jsx(ec,{}):m.jsx(tc,{})}),m.jsxs("div",{style:{...Qe.devLineNameBlock,display:"inline-block",position:"relative"},children:[m.jsx("span",{style:Qe.devLineName,children:o}),m.jsx("span",{style:Qe.devLineDescription,children:t.friendlyDescription}),d?m.jsx(Un,{style:Qe.devLineProgress,size:20}):null]}),m.jsx("span",{style:Qe.devLineActions,children:Ws.renderActions(t)}),t.additionalApplianceDetails.group?null:m.jsx(fe,{"aria-label":"Edit",style:Qe.devLineEdit,onClick:()=>this.onEdit(i),children:m.jsx(gg,{fontSize:"middle"})}),t.additionalApplianceDetails.group?null:m.jsx(fe,{"aria-label":"Delete",style:Qe.devLineDelete,onClick:()=>this.onAskDelete(i),children:m.jsx(oa,{fontSize:"middle"})})]},`line${n}`),a?this.renderChannels(t,n):null]}renderMessage(){return this.state.message?m.jsx(Wu,{text:this.state.message,onClose:()=>this.setState({message:""})}):null}changeSmartName(t){t==null||t.preventDefault(),this.addChanged(this.state.edit.id,()=>{const n=this.state.edit.id,r=this.state.edit.type,o=this.state.edit.name.trim();this.setState({edit:null,lastChanged:n}),this.timerChanged&&clearTimeout(this.timerChanged),this.timerChanged=setTimeout(()=>{this.setState({lastChanged:""}),this.timerChanged=null},3e4),this.props.socket.getObject(n).then(s=>(U.updateSmartName(s,o,void 0,r===null?void 0:r,`${this.props.adapterName}.${this.props.instance}`,this.props.native.noCommon),this.props.socket.setObject(n,s))).then(()=>this.informInstance(n)).catch(s=>this.props.onError(s))})}renderEditDialog(){return this.state.edit?m.jsxs(ft,{open:!0,maxWidth:"sm",fullWidth:!0,onClose:()=>this.setState({edit:null}),"aria-labelledby":"message-dialog-title","aria-describedby":"message-dialog-description",children:[m.jsx(mt,{id:"message-dialog-title",children:this.props.title||E.t("Smart name for %s",this.state.edit.objectName)}),m.jsxs(Tt,{children:[m.jsxs("p",{children:[m.jsx("span",{children:"ID:"})," ",m.jsx("span",{style:Qe.editedId,children:this.state.edit.id})]}),m.jsx(nt,{variant:"standard",style:{width:"100%"},label:E.t("Smart name"),autoFocus:!0,onKeyDown:t=>t.key==="Enter"&&this.changeSmartName(t),value:this.state.edit.name,onChange:t=>{const n=JSON.parse(JSON.stringify(this.state.edit));n.name=t.target.value,this.setState({edit:n})},helperText:E.t("You can enter several names divided by comma"),margin:"normal"}),this.state.edit.type!==null?Ws.renderSelectTypeSelector(this.state.edit.type,t=>{const n=JSON.parse(JSON.stringify(this.state.edit));n.type=t,this.setState({edit:n})}):null]}),m.jsxs(Et,{children:[m.jsx(_e,{variant:"contained",disabled:!this.state.edit.name||this.state.edit.originalName===this.state.edit.name&&(this.state.edit.type||null)===(this.state.edit.originalType||null),onClick:()=>this.changeSmartName(),color:"primary",startIcon:m.jsx(jn,{}),children:E.t("Ok")}),m.jsx(_e,{variant:"contained",onClick:()=>{this.setState({edit:null})},startIcon:m.jsx($t,{}),color:"grey",children:E.t("Cancel")})]})]}):null}renderConfirmDialog(){return this.state.showConfirmation?m.jsxs(ft,{open:!0,maxWidth:"sm",fullWidth:!0,onClose:()=>this.setState({showConfirmation:""}),"aria-labelledby":"confirmation-dialog-title","aria-describedby":"confirmation-dialog-description",children:[m.jsx(mt,{id:"confirmation-dialog-title",children:this.props.title||E.t("Device %s will be disabled.",this.state.deleteId)}),m.jsx(Tt,{children:m.jsx("p",{children:E.t("Are you sure?")})}),m.jsxs(Et,{children:[m.jsx(_e,{variant:"contained",onClick:()=>this.onDelete(),color:"primary",autoFocus:!0,startIcon:m.jsx(oa,{}),children:E.t("Delete")}),m.jsx(_e,{color:"grey",variant:"contained",startIcon:m.jsx($t,{}),onClick:()=>this.setState({showConfirmation:""}),children:E.t("Cancel")})]})]}):null}getSelectIdDialog(){return this.state.showSelectId?m.jsx(Sc,{theme:this.props.theme,imagePrefix:"../..",socket:this.props.socket,selected:"",types:["state"],onClose:()=>this.setState({showSelectId:!1}),onOk:t=>{this.setState({showSelectId:!1}),this.props.socket.getObject(t).then(n=>{if(n){const r=U.getObjectNameFromObj(n,null,{language:E.getLanguage()});U.updateSmartName(n,(r||E.t("Device name")).replace(/[-_.]+/g," "),void 0,void 0,`${this.props.adapterName}.${this.props.instance}`,this.props.native.noCommon),this.addChanged(n._id),this.waitForUpdateID=n._id,this.state.lastChanged!==n._id&&(this.setState({lastChanged:n._id}),this.timerChanged&&clearTimeout(this.timerChanged),this.timerChanged=setTimeout(()=>{this.setState({lastChanged:""}),this.timerChanged=null},3e4)),this.props.socket.setObject(n._id,n).then(()=>this.informInstance(n._id)).catch(o=>this.setState({message:o}))}else this.setState({message:E.t("Invalid ID")})})}},"dialogSelectID1"):null}renderDevices(){const t=this.state.filter.toLowerCase(),n=[];for(let r=0;rthis.setState({showListOfDevices:!1}),"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",children:[m.jsxs(mt,{id:"alert-dialog-title",children:[E.t("List of devices to print out, e.g. to give all device names to your partner.")," ",m.jsx("span",{role:"img","aria-label":"smile",children:"😄"})]}),m.jsxs(Tt,{children:[m.jsx(Ce,{sx:Qe.headerRow,children:m.jsx("div",{style:Qe.headerCell,children:E.t("Name")})}),m.jsx("div",{style:Qe.tableDiv,children:this.state.devices.map((t,n)=>m.jsx("div",{children:m.jsx("div",{style:Qe.tableCell,children:t.friendlyName})},n))})]}),m.jsxs(Et,{children:[m.jsx(_e,{variant:"outlined",onClick:()=>{this.setState({showListOfDevices:!1});const t=this.state.devices.map(n=>n.friendlyName);U.copyToClipboard(t.join(` +`))},color:"primary",startIcon:m.jsx(Jm,{}),children:E.t("Copy to clipboard")}),m.jsx(_e,{variant:"contained",startIcon:m.jsx($t,{}),onClick:()=>this.setState({showListOfDevices:!1}),autoFocus:!0,color:"grey",children:E.t("Close")})]})]}):null}render(){return this.state.loading?m.jsx(Un,{},"alexaProgress"):m.jsxs("form",{style:Qe.tab,children:[m.jsx(Ct,{size:"small",color:"secondary","aria-label":"Add",style:Qe.button,onClick:()=>this.setState({showSelectId:!0}),children:m.jsx(si,{})}),m.jsx(Ct,{size:"small",color:"primary","aria-label":"Refresh",style:Qe.button,onClick:()=>this.browse(!0),disabled:this.state.browse,children:this.state.browse?m.jsx(Un,{size:20}):m.jsx(ai,{})}),m.jsx(Ct,{style:{...Qe.button,marginLeft:"1rem"},title:E.t("Show all devices for print out"),size:"small","aria-label":"List of devices",onClick:()=>this.setState({showListOfDevices:!0}),disabled:this.state.browse,children:m.jsx(fg,{})}),m.jsx(nt,{variant:"standard",placeholder:E.t("Filter"),className:this.state.filter,value:this.state.filter,onChange:t=>this.setState({filter:t.target.value}),slotProps:{input:{endAdornment:this.state.filter?m.jsx(fe,{onClick:()=>this.setState({filter:""}),children:m.jsx(mg,{})}):void 0}}}),this.renderDevices(),this.renderMessage(),this.renderEditDialog(),this.getSelectIdDialog(),this.renderConfirmDialog(),this.renderListOfDevices()]},"alexa")}}Ws.propTypes={native:P.object.isRequired,instance:P.number.isRequired,adapterName:P.string.isRequired,onError:P.func,socket:P.object.isRequired,themeType:P.string,theme:P.object};function Nst(e){return Ge({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M832 464H332V240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v68c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-68c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zM540 701v53c0 4.4-3.6 8-8 8h-40c-4.4 0-8-3.6-8-8v-53a48.01 48.01 0 1 1 56 0z"},child:[]}]})(e)}function Mst(e){return Ge({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M1.5 15a.5.5 0 0 0 0 1h13a.5.5 0 0 0 0-1H13V2.5A1.5 1.5 0 0 0 11.5 1H11V.5a.5.5 0 0 0-.57-.495l-7 1A.5.5 0 0 0 3 1.5V15zM11 2h.5a.5.5 0 0 1 .5.5V15h-1zm-2.5 8c-.276 0-.5-.448-.5-1s.224-1 .5-1 .5.448.5 1-.224 1-.5 1"},child:[]}]})(e)}function QC(e){return Ge({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M11.536 14.01A8.47 8.47 0 0 0 14.026 8a8.47 8.47 0 0 0-2.49-6.01l-.708.707A7.48 7.48 0 0 1 13.025 8c0 2.071-.84 3.946-2.197 5.303z"},child:[]},{tag:"path",attr:{d:"M10.121 12.596A6.48 6.48 0 0 0 12.025 8a6.48 6.48 0 0 0-1.904-4.596l-.707.707A5.48 5.48 0 0 1 11.025 8a5.48 5.48 0 0 1-1.61 3.89z"},child:[]},{tag:"path",attr:{d:"M8.707 11.182A4.5 4.5 0 0 0 10.025 8a4.5 4.5 0 0 0-1.318-3.182L8 5.525A3.5 3.5 0 0 1 9.025 8 3.5 3.5 0 0 1 8 10.475zM6.717 3.55A.5.5 0 0 1 7 4v8a.5.5 0 0 1-.812.39L3.825 10.5H1.5A.5.5 0 0 1 1 10V6a.5.5 0 0 1 .5-.5h2.325l2.363-1.89a.5.5 0 0 1 .529-.06"},child:[]}]})(e)}function jst(e){return Ge({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M23 23v466h466V23H23zm233 64c93.2 0 169 75.8 169 169s-75.8 169-169 169S87 349.2 87 256 162.8 87 256 87zm0 18c-83.5 0-151 67.5-151 151 0 71.3 49.2 130.9 115.5 146.8l13.9-27.8h43.2l13.9 27.8C357.8 386.9 407 327.3 407 256c0-83.5-67.5-151-151-151zm0 30c13.7 0 25 11.3 25 25s-11.3 25-25 25-25-11.3-25-25 11.3-25 25-25zm-80 89a32 32 0 0 1 32 32 32 32 0 0 1-32 32 32 32 0 0 1-32-32 32 32 0 0 1 32-32zm160 0a32 32 0 0 1 32 32 32 32 0 0 1-32 32 32 32 0 0 1-32-32 32 32 0 0 1 32-32zm-90.4 169l-6.5 13.1c5.5.6 11.2.9 16.9.9 5.7 0 11.4-.3 16.9-.9l-6.5-13.1h-20.8z"},child:[]}]})(e)}function Ist(e){return Ge({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M248 88v32.652c-5.287.834-10.615 2.448-16 4.63V104h-16v29.16c-1.698.96-3.402 1.953-5.115 2.98-3.598 2.16-7.23 4.48-10.885 6.905V120h-16v34.19c-5.324 3.85-10.664 7.826-16 11.822V152h-16v25.965c-5.402 4.008-10.75 7.9-16 11.592V168h-16v32.213c-1.04.647-2.09 1.312-3.115 1.928-4.448 2.67-8.766 5.003-12.885 6.962V200H88V214.973c-2.89.67-5.575 1.027-8 1.027h-8v-32H24v304h48V232h8c2.658 0 5.324-.23 8-.652V488h16V226.717c5.272-2.138 10.6-4.82 16-7.877V488h16V208.955c5.294-3.512 10.637-7.264 16-11.144V488h16V344h16v144h16V162.443c5.462-3.838 10.81-7.427 16-10.656V296h16V142.898c5.793-2.754 11.188-4.755 16-5.87V296h16V137.027c4.812 1.116 10.207 3.117 16 5.87V296h16V151.787c5.19 3.23 10.538 6.818 16 10.656V488h16V344h16v144h16V197.81c5.363 3.88 10.706 7.633 16 11.145V488h16V218.84c5.4 3.056 10.728 5.74 16 7.877V488h16V231.348c2.676.422 5.342.652 8 .652h8v256h48V184h-48v32h-8c-2.425 0-5.11-.357-8-1.027V200h-16v9.102c-4.12-1.96-8.437-4.292-12.885-6.96-1.026-.617-2.075-1.282-3.115-1.93V168h-16V189.557c-5.252-3.69-10.598-7.584-16-11.592V152h-16v14.012c-5.336-3.996-10.676-7.97-16-11.823V120h-16v23.045c-3.654-2.424-7.287-4.746-10.885-6.904-1.713-1.027-3.417-2.02-5.115-2.98V104h-16v21.283c-5.385-2.183-10.713-3.797-16-4.63V88h-16zM48 120c-13.35 0-24 10.65-24 24s10.65 24 24 24 24-10.65 24-24-10.65-24-24-24zm416 0c-13.35 0-24 10.65-24 24s10.65 24 24 24 24-10.65 24-24-10.65-24-24-24zm-280 54.035V328h-16V185.988c1.6-1.198 3.203-2.39 4.8-3.588 3.75-2.81 7.484-5.608 11.2-8.365zm144 0c3.716 2.757 7.45 5.555 11.2 8.365 1.597 1.2 3.2 2.39 4.8 3.588V328h-16V174.035zM216 312v32h80v-32h-80zm0 48v128h16V360h-16zm32 0v128h16V360h-16zm32 0v128h16V360h-16z"},child:[]}]})(e)}function zst(e){return Ge({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M25 66.75V425.8l78-26V92.74zm462 0l-78 25.99V399.8l78 26V267.5c-1 3.2-2.4 6.2-4.2 8.8-4.1 6.1-10.7 11-18.8 11-8.1 0-14.7-4.9-18.8-11-4.1-6.1-6.2-13.8-6.2-22s2.1-15.9 6.2-22 10.7-11 18.8-11c8.1 0 14.7 4.9 18.8 11 1.8 2.6 3.2 5.6 4.2 8.8zm-366 28.5V397.3h126V95.25zm144 0V397.3h126V95.25zM135 109.3h98v274h-98v-265zm144 0h98v274h-98v-265zm-126 18v110h62v-110zm144 0v110h62v-110zm167 112c-.8 0-2.1.4-3.8 3-1.7 2.6-3.2 7-3.2 12s1.5 9.4 3.2 12c1.7 2.6 3 3 3.8 3 .8 0 2.1-.4 3.8-3 1.7-2.6 3.2-7 3.2-12s-1.5-9.4-3.2-12c-1.7-2.6-3-3-3.8-3zm-311 16v110h62v-110zm144 0v110h62v-110zm-184 160v30h286v-30z"},child:[]}]})(e)}function Rst(e){return Ge({tag:"svg",attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{d:"M11 3a1 1 0 10-2 0v1a1 1 0 102 0V3zM15.657 5.757a1 1 0 00-1.414-1.414l-.707.707a1 1 0 001.414 1.414l.707-.707zM18 10a1 1 0 01-1 1h-1a1 1 0 110-2h1a1 1 0 011 1zM5.05 6.464A1 1 0 106.464 5.05l-.707-.707a1 1 0 00-1.414 1.414l.707.707zM5 10a1 1 0 01-1 1H3a1 1 0 110-2h1a1 1 0 011 1zM8 16v-1h4v1a2 2 0 11-4 0zM12 14c.015-.34.208-.646.477-.859a4 4 0 10-4.954 0c.27.213.462.519.476.859h4.002z"},child:[]}]})(e)}function e2(e){return Ge({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M442 248.9c-15.7-20.6-37.7-35.9-62.1-43.6 1-6.3 1.4-12.7 1.4-19.1 0-33.7-13-65.4-36.7-89.2C321 73.1 289.5 60 256 60s-65 13.1-88.6 37c-23.7 23.8-36.7 55.5-36.7 89.2 0 6.4.5 12.8 1.4 19.1-24.5 7.7-46.4 23.1-62.1 43.6-17 22.2-26 48.8-26 76.9 0 33.7 13 65.4 36.7 89.2 23.7 23.8 55.2 37 88.6 37 32.6 0 63.2-12.4 86.7-35 23.4 22.6 54.1 35 86.7 35 33.5 0 65-13.1 88.6-37 23.7-23.8 36.7-55.5 36.7-89.2 0-28.1-9-54.7-26-76.9zM256 85.5c55.1 0 100 45.2 100 100.7 0 4.7-.3 9.4-1 14.1-4.1-.4-8.2-.6-12.4-.6-32.6 0-63.2 12.4-86.7 35-23.4-22.6-54.1-35-86.7-35-4.1 0-8.3.2-12.4.6-.6-4.6-1-9.4-1-14.1.2-55.6 45.1-100.7 100.2-100.7zm0 201.4c-1.8 0-3.7-.1-5.5-.2 1.6-3.8 3.4-7.5 5.5-11.1 2.1 3.6 3.9 7.3 5.5 11.1-1.8.2-3.7.2-5.5.2zm-46.6 131.2c-12.7 5.6-26.1 8.4-40.1 8.4-55.1 0-100-45.2-100-100.7 0-22.3 7.1-43.5 20.6-61.2 12.3-16.1 29.4-28.3 48.5-34.6 6.6 17.9 17.3 34.3 31.2 47.6 13.9 13.4 30.9 23.4 49.2 29.1-1 6.3-1.4 12.7-1.4 19.1 0 25.8 7.7 50.6 22.2 71.7-8.8 8.7-19 15.6-30.2 20.6zM225.1 282c-27.6-9-50-29.8-61.3-56.7 1.8-.1 3.7-.2 5.5-.2 13.9 0 27.4 2.8 40.1 8.4 11.2 5 21.4 11.9 30.1 20.6-5.9 8.7-10.8 18-14.4 27.9zm30.9 94c-8.7-15.2-13.3-32.5-13.3-50.2 0-4.7.3-9.4 1-14.1a128.658 128.658 0 0 0 24.8 0c.6 4.6 1 9.4 1 14.1-.2 17.7-4.8 35-13.5 50.2zm46.6-142.5c12.7-5.6 26.1-8.4 40.1-8.4 1.8 0 3.7.1 5.5.2-11.3 26.9-33.7 47.7-61.3 56.7-3.6-9.8-8.5-19.2-14.4-27.9 8.7-8.7 18.9-15.6 30.1-20.6zm40.1 193c-13.9 0-27.4-2.8-40.1-8.4-11.2-5-21.4-11.9-30.1-20.6 14.5-21.1 22.2-45.8 22.2-71.7 0-6.4-.5-12.8-1.4-19.1 18.3-5.7 35.2-15.7 49.2-29.1 13.8-13.3 24.5-29.6 31.2-47.6 19.1 6.3 36.2 18.4 48.5 34.6 13.5 17.7 20.6 38.9 20.6 61.2-.1 55.6-45 100.7-100.1 100.7z"},child:[]}]})(e)}function Pst(e){return Ge({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none"},child:[{tag:"path",attr:{d:"M12 5C11.4477 5 11 5.44772 11 6C11 6.55228 11.4477 7 12 7H20C20.5523 7 21 6.55228 21 6C21 5.44772 20.5523 5 20 5H12Z",fill:"currentColor"},child:[]},{tag:"path",attr:{d:"M7 12C7 11.4477 7.44772 11 8 11H16C16.5523 11 17 11.4477 17 12C17 12.5523 16.5523 13 16 13H8C7.44772 13 7 12.5523 7 12Z",fill:"currentColor"},child:[]},{tag:"path",attr:{d:"M3 18C3 17.4477 3.44772 17 4 17H12C12.5523 17 13 17.4477 13 18C13 18.5523 12.5523 19 12 19H4C3.44772 19 3 18.5523 3 18Z",fill:"currentColor"},child:[]}]})(e)}function Lst(e){return Ge({tag:"svg",attr:{viewBox:"0 0 15 15",fill:"none"},child:[{tag:"path",attr:{fillRule:"evenodd",clipRule:"evenodd",d:"M10.3004 7.49991C10.3004 8.4943 9.49426 9.30041 8.49988 9.30041C7.50549 9.30041 6.69938 8.4943 6.69938 7.49991C6.69938 6.50553 7.50549 5.69942 8.49988 5.69942C9.49426 5.69942 10.3004 6.50553 10.3004 7.49991ZM11.205 8C10.9699 9.28029 9.84816 10.2504 8.49988 10.2504C7.1516 10.2504 6.0299 9.28029 5.79473 8H0.5C0.223858 8 0 7.77614 0 7.5C0 7.22386 0.223858 7 0.5 7H5.7947C6.0298 5.71962 7.15154 4.74942 8.49988 4.74942C9.84822 4.74942 10.97 5.71962 11.2051 7H14.5C14.7761 7 15 7.22386 15 7.5C15 7.77614 14.7761 8 14.5 8H11.205Z",fill:"currentColor"},child:[]}]})(e)}function Fst(e){return Ge({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M21 12a9 9 0 1 1 -18 0a9 9 0 0 1 18 0z"},child:[]},{tag:"path",attr:{d:"M14 9a2 2 0 1 1 -4 0a2 2 0 0 1 4 0z"},child:[]},{tag:"path",attr:{d:"M12 16h.01"},child:[]}]})(e)}const t2="#e7000040",n2="#4f4f4f",Bst="#313131",r2="#e9e9e9",Wst="#bbbbbb",o2="#5c8f65",s2="#b4ffbe",a2="#6e6e6e",i2="#d0d0d0",ji=["socket","light","dimmer","thermostat","blinds","gate","lock","hue","ct","motion","levelSlider","temperature","window"],l2={LIGHT:"light",SWITCH:"socket",THERMOSTAT:"thermostat",SMARTPLUG:"socket",SMARTLOCK:"lock",CAMERA:"camera"},Xn={brightness:{label:"Brightness",icon:eV,color:"#c9b803"},powerState:{label:"Power",icon:MV,color:"#70bd00"},colorTemperatureInKelvin:{label:"Color temperature",icon:fV,color:"#019bb6"},color:{label:"Color",icon:EV,color:"#a20030"},detectionState:{label:"Detection",icon:CV,color:"#913c01"},lockState:{label:"Lock",icon:wV,color:"#00519b"},mode:{label:"Mode",icon:xV,color:"#112233"},muted:{label:"Muted",icon:LV,color:"#9701af"},percentage:{label:"Percentage",icon:w3,color:"#009870"},targetSetpoint:{label:"Set point",icon:AV,color:"#813600"},temperature:{label:"Temperature",icon:aV,color:"#9f1300"},thermostatMode:{label:"Thermostat mode",icon:NV,color:"#800048"},volume:{label:"Volume",icon:FV,color:"#006702"}},Pn={Light:{label:"Light",icon:Df,color:"#c9b803",control:"switch",controllable:!0},AirCondition:{label:"AirCondition",icon:aot,color:"#001fb9",control:"switch",controllable:!0},Blind:{label:"Blinds",icon:Tst,color:"#00a28f",control:"blinds",controllable:!0},ContactSensor:{label:"Sensor",icon:Ost,color:"#c9b803",control:"sensor",controllable:!1},Dimmer:{label:"Dimmer",icon:Rst,color:"#cb8500",control:"slider",controllable:!0},Door:{label:"Door sensor",icon:Mst,color:"#ad002a",control:"doorSensor",controllable:!1},Gate:{label:"Gate",icon:Ist,color:"#9d02af",control:"gate"},Hue:{label:"Color HUE",icon:e2,color:"#007a96",control:"color"},Ct:{label:"Color temperature",icon:e2,color:"#5a9600"},Lock:{label:"Lock",icon:Nst,color:"#c9030a"},Motion:{label:"Motion",icon:Pst,color:"#149100"},Slider:{label:"Slider",icon:Lst,color:"#029a7f"},Socket:{label:"Socket",icon:jst,color:"#834303"},Temperature:{label:"Temperature",icon:iot,color:"#8ca102"},Thermostat:{label:"Thermostat",icon:Dst,color:"#8c4800"},VacuumCleaner:{label:"Vacuum cleaner",icon:Fst,color:"#9e03c9"},Volume:{label:"Volume",icon:QC,color:"#c903c6"},VolumeGroup:{label:"Volume group",icon:QC,color:"#c903c6"},Window:{label:"Window sensor",icon:zst,color:"#27c903"}},Se={tab:{width:"100%",height:"100%"},columnDiv:{height:"calc(100% - 40px)",overflow:"auto",minWidth:300},filter:{margin:0},button:{marginRight:20},devLineExpand:{width:40},devLineEdit:{width:40,marginLeft:5},devLineDelete:{width:40},devLineName:{},devLineNumber:{width:15},editedId:{fontStyle:"italic"},devLine:{height:48,width:"100%",position:"relative",display:"flex",alignItems:"center"},devLineDescription:{display:"block",fontStyle:"italic",fontSize:12},devLineActions:{fontStyle:"italic",fontSize:12,paddingRight:5,display:"flex"},devLineProgress:{position:"absolute",top:0,left:0},devLineNameBlock:{flexGrow:1},devModified:{fontStyle:"italic"},actionSpan:{marginRight:5,display:"flex",alignItems:"center"},deviceOff:{filter:"grayscale(0.9)"},actionIcon:{width:16},deviceIcon:{width:24,height:24},deviceSmallIcon:{width:20,height:20},devSubLine:{position:"relative",display:"flex",width:"100%",alignItems:"center"},devSubLineExpand:{marginLeft:15},devSubLineExpanded:{transition:"transform 0.3s",transform:"rotate(90deg)"},devSubLineName:{flexGrow:1,fontSize:13,fontWeight:"bold",marginLeft:5},devSubLineName1:{minWidth:100,marginRight:5,display:"inline-block"},devSubLineName2:{fontWeight:"normal",display:"inline-block"},devSubLineName2Div:{display:"flex",alignItems:"center",gap:5},devSubSubLineName:{fontSize:11,fontStyle:"italic",paddingLeft:10},devSubSubLineStateName:{minWidth:121,display:"inline-block",fontWeight:"bold"},devSubSubLineStateId:{marginLeft:5},devSubLineDelete:{},devSubLineEdit:{},devSubLineTypeTitle:{marginTop:0},statesLine:{position:"relative",width:"calc(100% - 50px)",paddingLeft:50,paddingBottom:5},devSubSubLine:{position:"relative",display:"flex",alignItems:"center",paddingTop:2,paddingBottom:2},headerRow:e=>({pl:1,background:e.palette.primary.main}),headerCell:{display:"inline-block",verticalAlign:"top",width:"100%"},tableCell:{display:"inline-block",verticalAlign:"top",width:"100%"},selectType:{width:130,marginLeft:8}};function Hst(e,t,n){n=n||".";let r="";const o=e&&e.common;if(o){const s=o.icon;if(s)if(s.startsWith("data:image/"))r=s;else if(s.includes(".")){let a;e.type==="instance"||e.type==="adapter"?r=`${n}/adapter/${o.name}/${s}`:t&&t.startsWith("system.adapter.")?(a=t.split(".",3),s[0]==="/"?a[2]+=s:a[2]+=`/${s}`,r=`${n}/adapter/${a[2]}`):(a=t.split(".",2),s[0]==="/"?a[0]+=s:a[0]+=`/${s}`,r=`${n}/adapter/${a[0]}`)}else return null}return r||null}function R_(e,t){return e&&typeof e=="object"?e[t]||e.en:e}class Oo extends k.Component{constructor(n){super(n);L(this,"onAliveChanged",(n,r)=>{!!(r!=null&&r.val)!==this.state.alive&&this.setState({alive:!!(r!=null&&r.val)},()=>this.state.alive&&setTimeout(()=>this.browse(),1e4))});L(this,"onReadyUpdate",(n,r)=>{console.log(`Update ${n} ${r?`${r.val}/${r.ack}`:"null"}`),r&&r.ack===!0&&r.val===!0&&(this.devTimer&&clearTimeout(this.devTimer),this.devTimer=setTimeout(()=>{this.devTimer=null,this.browse()},300))});L(this,"onResultUpdate",(n,r)=>{r&&r.ack===!0&&r.val&&this.setState({message:r.val})});Xn.translated||(Object.keys(Xn).forEach(o=>Xn[o].label=E.t(Xn[o].label)),Xn.translated=!0),Pn.translated||(Object.keys(Pn).forEach(o=>Pn[o].label=E.t(Pn[o].label)),Pn.translated=!0);let r=window.localStorage.getItem("v3.expanded")||"[]";try{r=JSON.parse(r)}catch{r=[]}this.state={edit:null,deleteId:"",showListOfDevices:!1,showSelectId:!1,showConfirmation:"",changed:[],devices:[],message:"",filter:"",loading:!0,browse:!1,expanded:r,lastChanged:"",objects:{},alive:!1},this.requesting={},this.timerChanged=null,this.browseTimer=null,this.browseTimerCount=0,this.waitForUpdateID=null,this.language=E.getLanguage()}browse(n){Date.now()-this.lastBrowse<500||(this.lastBrowse=Date.now(),n?this.setState({loading:!0,browse:!0}):this.setState({browse:!0}),console.log("Send BROWSE!"),this.browseTimer=setTimeout(()=>{console.log("Browse timeout!"),this.browseTimer=null,this.browseTimerCount++,this.browseTimerCount<5?this.browse(n):this.setState({message:E.t("Cannot read devices!")})},1e4),this.props.socket.sendTo(`${this.props.adapterName}.${this.props.instance}`,"browse3",null).then(r=>{this.browseTimer&&clearTimeout(this.browseTimer),this.browseTimerCount=0,this.browseTimer=null,r&&r.error?this.setState({message:E.t(r.error)}):(this.waitForUpdateID&&(this.onEdit(this.waitForUpdateID,r)||this.setState({message:E.t("Device %s was not added",this.waitForUpdateID)}),this.waitForUpdateID=null),console.log("BROWSE received."),r.sort((o,s)=>o.friendlyName>s.friendlyName?1:o.friendlyName300&&this.props.onError(E.t("Too many devices (%s) configured. Max number is 300",r.length)))}).catch(r=>this.setState({message:E.t("Error %s",r),browse:!1})))}componentDidMount(){this.props.socket.getObject(`system.adapter.${this.props.adapterName}.${this.props.instance}`).then(n=>this.props.socket.getState(`system.adapter.${this.props.adapterName}.${this.props.instance}.alive`).then(r=>{!n||!n.common||!n.common.enabled&&(!r||!r.val)?this.setState({message:E.t("Instance must be enabled"),loading:!1,devices:[],alive:!1}):this.setState({alive:!0},()=>this.browse())})),this.props.socket.subscribeState(`${this.props.adapterName}.${this.props.instance}.smart.updates3`,this.onReadyUpdate),this.props.socket.subscribeState(`${this.props.adapterName}.${this.props.instance}.smart.updatesResult`,this.onResultUpdate),this.props.socket.subscribeState(`system.adapter.${this.props.adapterName}.${this.props.instance}.alive`,this.onAliveChanged)}componentWillUnmount(){this.props.socket.unsubscribeState(`${this.props.adapterName}.${this.props.instance}.smart.updates3`,this.onReadyUpdate),this.props.socket.unsubscribeState(`${this.props.adapterName}.${this.props.instance}.smart.updatesResult`,this.onResultUpdate),this.props.socket.unsubscribeState(`system.adapter.${this.props.adapterName}.${this.props.instance}.alive`,this.onAliveChanged),this.timerChanged&&(clearTimeout(this.timerChanged),this.timerChanged=null)}informInstance(n){this.props.socket.sendTo(`${this.props.adapterName}.${this.props.instance}`,"update",n)}addChanged(n,r){const o=JSON.parse(JSON.stringify(this.state.changed));o.includes(n)?r&&r():(o.push(n),this.setState({changed:o},()=>r&&r()))}onEdit(n,r){return r=r||this.state.devices,r.find(s=>s.controls.find(a=>Object.values(a.states).find(i=>i.id===n)))?(this.props.socket.getObject(n).then(s=>{let a=U.getSmartNameFromObj(s,`${this.props.adapterName}.${this.props.instance}`,this.props.native.noCommon);typeof a=="object"&&a&&(a=a[E.getLanguage()]||a.en),this.editedSmartName=a;let i=null;this.setState({edit:{id:n,type:i,name:a,originalType:i,originalName:a,objectName:U.getObjectNameFromObj(s,null,{language:E.getLanguage()})}})}),!0):!1}onAskDelete(n){this.setState({deleteId:n,showConfirmation:!0})}onDelete(){const n=this.state.deleteId;this.addChanged(n,()=>{this.props.socket.getObject(n).then(r=>(U.disableSmartName(r,`${this.props.adapterName}.${this.props.instance}`,this.props.native.noCommon),this.props.socket.setObject(n,r))).then(()=>{this.setState({deleteId:"",showConfirmation:!1,lastChanged:n}),this.timerChanged&&clearTimeout(this.timerChanged),this.timerChanged=setTimeout(()=>{this.setState({lastChanged:""}),this.timerChanged=null},3e4),this.informInstance(n)}).catch(r=>this.props.onError(r))})}static renderChannelActions(n){const r=[];return Object.keys(Xn).forEach(o=>{if(o!=="translated"){if(n.supported.includes(o)){let s;const a=Xn[o].icon;let i=Se.actionIcon,l=null,d=null,u=null;n.state&&(s=n.state.find(c=>o===c.name),(s==null?void 0:s.name)==="powerState"?(s==null?void 0:s.value)==="OFF"&&(i={...i,...Se.deviceOff}):(s==null?void 0:s.name)==="detectionState"?(s==null?void 0:s.value)==="NOT_DETECTED"&&(i={...i,...Se.deviceOff}):(s==null?void 0:s.name)==="percentage"?l=`${s.value}%`:(s==null?void 0:s.name)==="brightness"?d=s.value:(s==null?void 0:s.name)==="color"&&(u=`hsl(${s.value}, 50%, 50%)`)),r.push(m.jsxs("span",{title:Xn[o].label+(s?` - ${s.value}`:""),style:Se.actionSpan,children:[m.jsx(a,{style:{...i,color:Xn[o].color,backgroundColor:u}}),l!==null?m.jsx("span",{style:{color:Pn[n.type].color},children:l}):null,d!==null?m.jsx("span",{style:{color:Pn[n.type].color},children:d}):null]},o))}else if(n.enforced.includes(o)){const s=Xn[o].icon;r.push(m.jsx("span",{title:Xn[o].label,style:{...Se.actionSpan,opacity:.7},children:m.jsx(s,{style:{...Se.actionIcon,color:Xn[o].color}})},o))}}}),n.supported.forEach(o=>{Xn[o]||r.push(m.jsx("span",{title:o,style:Se.actionSpan,children:o},o))}),n.enforced.forEach(o=>{Xn[o]||r.push(m.jsx("span",{title:o,style:{...Se.actionSpan,opacity:.7},children:o},o))}),r}static renderDevTypes(n){const r=[];if(!n.controls)return console.log("Something went wrong"),null;const o=[];return n.controls.forEach((s,a)=>{if(!o.includes(s.type)&&(o.push(s.type),Pn[s.type])){const i=Pn[s.type].icon;let l=Se.actionSpan,d=null,u=null,c=null,h;n.state&&(h=n.state.find(g=>s.supported.includes(g.name)),(h==null?void 0:h.name)==="powerState"?(h==null?void 0:h.value)==="OFF"&&(l={...l,...Se.deviceOff}):(h==null?void 0:h.name)==="detectionState"?(h==null?void 0:h.value)==="NOT_DETECTED"&&(l={...l,...Se.deviceOff}):(h==null?void 0:h.name)==="percentage"?d=`${h.value}%`:(h==null?void 0:h.name)==="brightness"?u=h.value:(h==null?void 0:h.name)==="color"&&(c=`hsl(${h.value}, 100%, 50%)`));const f=m.jsxs("span",{title:Pn[s.type].label+(h?` - ${h.value}`:""),style:l,children:[m.jsx(i,{style:{...Se.deviceIcon,color:Pn[s.type].color,backgroundColor:c}}),d!==null?m.jsx("span",{style:{color:Pn[s.type].color},children:d}):null,u!==null?m.jsx("span",{style:{color:Pn[s.type].color},children:u}):null]},`${s.type}_${a}`);s.type!=="Blind"&&s.type!=="Light"&&s.type!=="Socket"?r.unshift(f):r.push(f)}}),r}getControlId(n,r){return r===void 0?this.state.devices[n].friendlyName:`${this.state.devices[n].friendlyName}_${r}`}onExpand(n,r){const o=[...this.state.expanded],s=this.getControlId(n,r),a=o.indexOf(s);a===-1?o.push(s):o.splice(a,1),window.localStorage.setItem("v3.expanded",JSON.stringify(o)),this.setState({expanded:o})}renderSelectByOn(n){var o;const r=n.supported.concat(n.enforced);if(r.includes("brightness")&&r.includes("powerState")||r.includes("percentage")&&r.includes("powerState")){const s=Object.values(n.states)[0],a=((o=s.smartName)==null?void 0:o.byON)||void 0,i=[m.jsx(ze,{value:"",children:m.jsx("em",{children:E.t("Default")})},"_"),m.jsx(ze,{value:"stored",children:E.t("last value")},"last"),m.jsx(ze,{value:"omit",children:E.t("omit value")},"omit")];for(let l=5;l<=100;l+=5)i.push(m.jsxs(ze,{value:l.toString(),children:[l,"%"]},l.toString()));return m.jsxs(Hn,{style:Se.selectType,variant:"standard",children:[m.jsx(an,{variant:"standard",style:Se.devSubLineByOnSelect,value:(a||"").toString(),onChange:l=>this.onParamsChange(s.id,l.target.value),children:i}),m.jsx(ho,{style:Se.devSubLineTypeTitle,children:E.t("by ON")})]})}return m.jsx("div",{style:Se.selectType})}onParamsChange(n,r,o){this.addChanged(n,()=>this.props.socket.getObject(n).then(s=>(U.updateSmartName(s,void 0,r,o,`${this.props.adapterName}.${this.props.instance}`,this.props.native.noCommon),this.state.lastChanged!==n&&(this.setState({lastChanged:n}),this.timerChanged&&clearTimeout(this.timerChanged),this.timerChanged=setTimeout(()=>{this.setState({lastChanged:""}),this.timerChanged=null},3e4)),this.props.socket.setObject(n,s))).then(()=>this.informInstance(n)).catch(s=>this.props.onError(s)))}static renderSelectTypeSelector(n,r){if(n!==!1){const o=[m.jsx(ze,{value:"_",children:m.jsx("em",{children:E.t("no type")})},"_")];for(let s=0;sr(s.target.value==="_"?"":s.target.value),children:o}),m.jsx(ho,{style:Se.devSubLineTypeTitle,children:E.t("Types")})]})}return null}renderSelectType(n,r){var a;if(r.autoDetected)return m.jsx("div",{style:Se.selectType});const o=Object.values(n.states)[0],s=(a=o.smartName)==null?void 0:a.smartType;return Oo.renderSelectTypeSelector(s,i=>this.onParamsChange(o.id,void 0,i))}renderStates(n,r){return m.jsx("div",{style:{...Se.statesLine,background:r},children:Object.keys(n.states).map((o,s)=>m.jsx("div",{style:{...Se.devSubSubLine,...s%2?{background:this.props.themeType==="dark"?`${a2}80`:`${i2}80`}:{background:this.props.themeType==="dark"?a2:i2}},children:m.jsxs("div",{style:Se.devSubSubLineName,children:[m.jsxs("div",{style:Se.devSubSubLineStateName,children:[o,":"]}),m.jsx("span",{style:Se.devSubSubLineStateId,children:n.states[o].id})]})},o))},"states")}static getParentId(n){const r=n.split(".");return r.pop(),r.join(".")}async findDeviceForState(n){const r=Oo.getParentId(n),o=await this.props.socket.getObject(r);if((o==null?void 0:o.type)==="device")return o;if(o&&(o.type==="channel"||o.type==="folder")){let s=Oo.getParentId(r),a=await this.props.socket.getObject(s);return(a==null?void 0:a.type)==="device"||(a==null?void 0:a.type)==="folder"&&(s=Oo.getParentId(r),a=await this.props.socket.getObject(s),(a==null?void 0:a.type)==="device")?a:o}return this.props.socket.getObject(n)}getControlProps(n){const r=Object.values(n.states)[0].id;return this.state.objects[r]===void 0&&!this.requesting[r]&&(this.requesting[r]=!0,setTimeout(()=>{this.findDeviceForState(r).then(o=>{var a;delete this.requesting[r];const s=JSON.parse(JSON.stringify(this.state.objects));o&&o.common?(s[r]={name:((a=o.common)==null?void 0:a.name)||null,icon:Hst(o,r,"../..")},s[r].name=R_(s[r].name,this.language)):s[r]={name:r},this.setState({objects:s})})},50)),this.state.objects[r]?this.state.objects[r]:{name:r}}renderChannels(n,r){return n.controls.map((o,s)=>{var c;const a=Object.values(o.states)[0].id;let i=this.state.changed.includes(a)?t2:this.props.themeType==="dark"?s%2?n2:Bst:s%2?r2:Wst;this.state.lastChanged===a&&(i===n2||i===r2)&&(i=this.props.themeType==="dark"?o2:s2);const l=((c=Pn[o.type])==null?void 0:c.icon)||null,d=this.state.expanded.includes(this.getControlId(r,s)),u=this.getControlProps(o);return[m.jsxs("div",{style:{...Se.devSubLine,background:i},children:[m.jsx(fe,{style:Se.devSubLineExpand,onClick:()=>this.onExpand(r,s),children:m.jsx(rV,{style:d?Se.devSubLineExpanded:void 0})}),l?m.jsx(l,{style:{...Se.deviceSmallIcon,color:Pn[o.type].color}}):null,m.jsxs("div",{style:Se.devSubLineName,children:[m.jsx("div",{style:Se.devSubLineName1,children:E.t(o.type)}),m.jsx("div",{style:Se.devSubLineName2,children:m.jsxs("div",{style:Se.devSubLineName2Div,children:[u.icon?u.icon.startsWith("data:image/svg")?m.jsx(Ef,{style:Se.devSubLineName2Icon,src:u.icon,width:20,height:20}):m.jsx(Gs,{src:u.icon,style:{...Se.devSubLineName2Icon,width:20,height:20}}):null,u.name]})})]}),m.jsx("div",{style:Se.devLineActions,children:Oo.renderChannelActions(o)}),this.renderSelectByOn(o,n),this.renderSelectType(o,n),n.autoDetected?m.jsx("div",{style:Se.devLineEdit}):m.jsx(fe,{"aria-label":"Edit",style:Se.devLineEdit,onClick:()=>this.onEdit(a),children:m.jsx(gg,{fontSize:"middle"})}),n.autoDetected?n.controls.length>1?m.jsx(fe,{"aria-label":"Delete",style:Se.devSubLineDelete,onClick:()=>this.onAskDelete(a),children:m.jsx(oa,{fontSize:"middle"})}):m.jsx("div",{style:Se.devLineDelete}):m.jsx(fe,{"aria-label":"Delete",style:Se.devLineDelete,onClick:()=>this.onAskDelete(a),children:m.jsx(oa,{fontSize:"middle"})})]},s),d?this.renderStates(o,i):null]})}renderDevice(n,r){const o=n.friendlyName,s=this.state.expanded.includes(o),a=Object.values(n.controls[0].states)[0].id;let i=r%2?this.props.themeType==="dark"?"#272727":"#f1f1f1":"inherit";const l=this.state.changed.includes(a);return l?i=t2:a===this.state.lastChanged&&(i=this.props.themeType==="dark"?o2:s2),[m.jsxs("div",{style:{...Se.devLine,background:i},children:[m.jsxs("div",{style:Se.devLineNumber,children:[r+1,"."]}),m.jsx(fe,{style:Se.devLineExpand,onClick:()=>this.onExpand(r),children:n.controls.length>1?m.jsx(ou,{badgeContent:n.controls.length,color:"primary",children:s?m.jsx(ec,{}):m.jsx(tc,{})}):s?m.jsx(ec,{}):m.jsx(tc,{})}),m.jsxs("div",{style:Se.devLineNameBlock,children:[n.autoDetected?m.jsxs(m.Fragment,{children:[m.jsx("span",{style:Se.devLineName,children:o}),m.jsx("span",{style:Se.devLineDescription,children:E.t("Grouped from %s and %s",R_(n.roomName,this.language),R_(n.funcName,this.language))})]}):o,l?m.jsx(Un,{style:Se.devLineProgress,size:20}):null]}),m.jsx("span",{style:Se.devLineActions,children:Oo.renderDevTypes(n)})]},`line${r}`),s?this.renderChannels(n,r):null]}renderMessage(){return this.state.message?m.jsx(Wu,{text:this.state.message,onClose:()=>this.setState({message:""})}):null}changeSmartName(n){n==null||n.preventDefault(),this.addChanged(this.state.edit.id,()=>{const r=this.state.edit.id,o=this.state.edit.type,s=this.state.edit.name;this.setState({edit:null,lastChanged:r}),this.timerChanged&&clearTimeout(this.timerChanged),this.timerChanged=setTimeout(()=>{this.setState({lastChanged:""}),this.timerChanged=null},3e4),this.props.socket.getObject(r).then(a=>(U.updateSmartName(a,s,void 0,o===null?void 0:o,`${this.props.adapterName}.${this.props.instance}`,this.props.native.noCommon),this.props.socket.setObject(r,a))).then(()=>this.informInstance(r)).catch(a=>this.props.onError(a))})}renderEditDialog(){return this.state.edit?m.jsxs(ft,{open:!0,maxWidth:"sm",fullWidth:!0,onClose:()=>this.setState({edit:null}),"aria-labelledby":"message-dialog-title","aria-describedby":"message-dialog-description",children:[m.jsx(mt,{id:"message-dialog-title",children:this.props.title||E.t("Smart name for %s",this.state.edit.objectName)}),m.jsxs(Tt,{children:[m.jsxs("p",{children:[m.jsx("span",{children:"ID:"})," ",m.jsx("span",{style:Se.editedId,children:this.state.edit.id})]}),m.jsx(nt,{variant:"standard",style:{width:"100%"},label:E.t("Smart name"),autoFocus:!0,onKeyDown:n=>n.key==="Enter"&&this.changeSmartName(n),onChange:n=>{const r=JSON.parse(JSON.stringify(this.state.edit));r.type=n.target.value,this.setState({edit:r})},value:this.state.edit.name,helperText:E.t("You can enter several names divided by comma"),margin:"normal"}),this.state.edit.type!==null?Oo.renderSelectTypeSelector(this.state.edit.type,n=>{const r=JSON.parse(JSON.stringify(this.state.edit));r.type=n,this.setState({edit:r})}):null]}),m.jsxs(Et,{children:[m.jsx(_e,{variant:"contained",disabled:!this.state.edit.name||this.state.edit.originalName===this.state.edit.name&&(this.state.edit.type||null)===(this.state.edit.originalType||null),onClick:()=>this.changeSmartName(),color:"primary",startIcon:m.jsx(jn,{}),children:E.t("Ok")}),m.jsx(_e,{variant:"contained",onClick:()=>this.setState({edit:null}),startIcon:m.jsx($t,{}),color:"grey",children:E.t("Cancel")})]})]}):null}renderConfirmDialog(){return this.state.showConfirmation?m.jsxs(ft,{open:!0,maxWidth:"sm",fullWidth:!0,onClose:()=>this.setState({showConfirmation:""}),"aria-labelledby":"confirmation-dialog-title","aria-describedby":"confirmation-dialog-description",children:[m.jsx(mt,{id:"confirmation-dialog-title",children:this.props.title||E.t("Device %s will be disabled.",this.state.deleteId)}),m.jsx(Tt,{children:m.jsx("p",{children:E.t("Are you sure?")})}),m.jsxs(Et,{children:[m.jsx(_e,{variant:"contained",onClick:()=>this.onDelete(),color:"primary",autoFocus:!0,startIcon:m.jsx(oa,{}),children:E.t("Delete")}),m.jsx(_e,{color:"grey",variant:"contained",startIcon:m.jsx($t,{}),onClick:()=>this.setState({showConfirmation:""}),children:E.t("Cancel")})]})]}):null}getSelectIdDialog(){return this.state.showSelectId?m.jsx(Sc,{imagePrefix:"../..",theme:this.props.theme,socket:this.props.socket,selected:"",types:["state"],onClose:()=>this.setState({showSelectId:!1}),onOk:n=>{this.setState({showSelectId:!1}),this.props.socket.getObject(n).then(r=>{if(r){const o=U.getObjectNameFromObj(r,null,{language:this.language});U.updateSmartName(r,(o||E.t("Device name")).replace(/[-_.]+/g," "),void 0,void 0,`${this.props.adapterName}.${this.props.instance}`,this.props.native.noCommon),this.addChanged(r._id),this.waitForUpdateID=r._id,this.state.lastChanged!==r._id&&(this.setState({lastChanged:r._id}),this.timerChanged&&clearTimeout(this.timerChanged),this.timerChanged=setTimeout(()=>{this.setState({lastChanged:""}),this.timerChanged=null},3e4)),this.props.socket.setObject(r._id,r).then(()=>this.informInstance(r._id)).catch(s=>this.setState({message:s}))}else this.setState({message:E.t("Invalid ID")})})}},"dialogSelectID1"):null}renderDevices(){const n=this.state.filter.toLowerCase(),r=[];for(let o=0;othis.setState({showListOfDevices:!1}),"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",children:[m.jsxs(mt,{id:"alert-dialog-title",children:[E.t("List of devices to print out, e.g. to give all device names to your partner.")," ",m.jsx("span",{role:"img","aria-label":"smile",children:"😄"})]}),m.jsxs(Tt,{children:[m.jsx(Ce,{sx:Se.headerRow,children:m.jsx("div",{style:Se.headerCell,children:E.t("Name")})}),m.jsx("div",{style:Se.tableDiv,children:this.state.devices.map((n,r)=>m.jsx("div",{children:m.jsx("div",{style:Se.tableCell,children:n.friendlyName})},r))})]}),m.jsxs(Et,{children:[m.jsx(_e,{variant:"outlined",onClick:()=>{this.setState({showListOfDevices:!1});const n=this.state.devices.map(r=>r.friendlyName);U.copyToClipboard(n.join(` +`))},color:"primary",startIcon:m.jsx(Jm,{}),children:E.t("Copy to clipboard")}),m.jsx(_e,{variant:"contained",startIcon:m.jsx($t,{}),onClick:()=>this.setState({showListOfDevices:!1}),autoFocus:!0,color:"grey",children:E.t("Close")})]})]}):null}render(){return this.state.loading?m.jsx(Un,{},"alexaProgress"):m.jsxs("form",{style:Se.tab,children:[m.jsx(Ct,{size:"small",color:"secondary","aria-label":"Add",disabled:!!this.state.lastChanged&&!!this.waitForUpdateID||!this.state.alive,style:Se.button,onClick:()=>this.setState({showSelectId:!0}),children:this.state.lastChanged&&this.waitForUpdateID?m.jsx(Un,{}):m.jsx(si,{})}),m.jsx(Ct,{size:"small",color:"primary","aria-label":"Refresh",disable:!this.state.alive,style:Se.button,onClick:()=>this.browse(!0),disabled:this.state.browse,children:this.state.browse?m.jsx(Un,{size:20}):m.jsx(ai,{})}),m.jsx(Ct,{style:{...Se.button,marginLeft:"1rem"},title:E.t("Show all devices for print out"),size:"small","aria-label":"List of devices",onClick:()=>this.setState({showListOfDevices:!0}),disabled:this.state.browse||!this.state.alive,children:m.jsx(fg,{})}),m.jsx(nt,{variant:"standard",placeholder:E.t("Filter"),value:this.state.filter,onChange:n=>this.setState({filter:n.target.value}),slotProps:{input:{endAdornment:this.state.filter?m.jsx(fe,{onClick:()=>this.setState({filter:""}),children:m.jsx(mg,{})}):void 0}}}),this.renderDevices(),this.renderMessage(),this.renderEditDialog(),this.getSelectIdDialog(),this.renderConfirmDialog(),this.renderListOfDevices()]},"alexa")}}Oo.propTypes={native:P.object.isRequired,instance:P.number.isRequired,adapterName:P.string.isRequired,onError:P.func,socket:P.object.isRequired,themeType:P.string,theme:P.object};const qp="#aba613",P_="#444",Jp="#00c6ff",Ust="#ff7ee3",Ea="#00bc00",Vst="#e7000040",Gst="#4f4f4f",qst="#e9e9e9",Jst="#5c8f65",Xst="#b4ffbe",Eo={OnOff:{color:qp,icon:Ry,desc:"On/Off"},Brightness:{color:Jp,icon:Df,desc:"Dimmer"},RGB:{color:Ust,icon:Df,desc:"Set color"},setTargetTemperature:{color:Jp,icon:S3,desc:"Set target temperature"},incrementTargetTemperature:{color:qp,icon:Dl,desc:"Increment target temperature"},decrementTargetTemperature:{color:P_,icon:Ol,desc:"Decrement target temperature"},incrementPercentage:{color:qp,icon:Dl,desc:"Increment percentage"},decrementPercentage:{color:P_,icon:Ol,desc:"Decrement percentage"},setColor:{color:Jp,icon:b3,desc:"Set color"},incrementColorTemperature:{color:qp,icon:Dl,desc:"Increment color temperature"},decrementColorTemperature:{color:P_,icon:Ol,desc:"Decrement color temperature"},getTargetTemperature:{color:Ea,icon:Dd,desc:"Get target temperature"},getTemperatureReading:{color:Ea,icon:Dd,desc:"Get actual temperature"},setLockState:{color:Jp,icon:Af,desc:"Set lock state"},getLockState:{color:Ea,icon:Af,desc:"Read lock state"},getActualTemperature:{color:Ea,icon:Dd,desc:"Get actual temperature"},getActualHumidity:{color:Ea,icon:lot,desc:"Get actual humidity"},getMotion:{color:Ea,icon:sot,desc:"Get motion"},getContact:{color:Ea,icon:oot,desc:"Get contact"}},ct={tab:{width:"100%",height:"100%"},column:{display:"inline-block",verticalAlign:"top",marginRight:20,height:"100%",overflow:"hidden"},columnDiv:{height:"calc(100% - 40px)",overflow:"auto",minWidth:300},filter:{margin:0},button:{marginRight:20},devLineExpand:{marginRight:10},devLineEnabled:{position:"absolute",right:0,top:0},devLineEdit:{position:"absolute",top:5,right:50},devLineDelete:{position:"absolute",top:5,right:0},devLineName:{},devLineNumber:{display:"inline-block",verticalAlign:"middle",width:15},editedId:{fontStyle:"italic"},enumLineSubName:{fontStyle:"italic"},devLine:{height:48,width:"100%",position:"relative"},devLineDescription:{display:"block",fontStyle:"italic",fontSize:12},devLineActions:{fontStyle:"italic",fontSize:12,paddingLeft:50,display:"inline-block"},devLineProgress:{position:"absolute",top:0,left:0},channelLineActions:{width:80},devLineNameBlock:{display:"inline-block",width:"calc(100% - 350px)"},devModified:{fontStyle:"italic"},actionIcon:{width:16},devSubLine:{position:"relative",height:48},devSubLineName:{marginLeft:5,marginTop:14,minWidth:100,display:"inline-block",fontSize:13,paddingLeft:70},devSubSubLine:{fontSize:10,fontStyle:"italic",display:"inline-block",marginLeft:15},devSubLineSetId:{fontStyle:"italic",display:"block",color:"#999"},devSubLineByOn:{marginLeft:5},devSubLineDelete:{position:"absolute",top:12,right:12,padding:0},devSubLineEdit:{position:"absolute",top:12,right:62,padding:0},devSubLineTypeTitle:{marginTop:0},headerRow:e=>({paddingLeft:e.spacing(1),background:e.palette.primary.main}),headerCell:{display:"inline-block",verticalAlign:"top",width:"100%"},tableCell:{display:"inline-block",verticalAlign:"top",width:"100%"}};class _g extends k.Component{constructor(t){super(t),Eo.translated||(Object.keys(Eo).forEach(n=>Eo[n].desc=E.t(Eo[n].desc)),Eo.translated=!0),this.state={editedSmartName:"",editId:"",editObjectName:"",deleteId:"",showSelectId:!1,showConfirmation:"",changed:[],devices:[],message:"",filter:"",loading:!0,browse:!1,expanded:[],lastChanged:""},this.timerChanged=null,this.browseTimer=null,this.browseTimerCount=0,this.editedSmartName="",this.waitForUpdateID=null,this.onReadyUpdateBound=this.onReadyUpdate.bind(this),this.onResultUpdateBound=this.onResultUpdate.bind(this),this.props.socket.getObject(`system.adapter.${this.props.adapterName}.${this.props.instance}`).then(n=>{this.props.socket.getState(`system.adapter.${this.props.adapterName}.${this.props.instance}.alive`).then(r=>{!n||!n.common||!n.common.enabled&&(!r||!r.val)?this.setState({message:E.t("Instance must be enabled"),loading:!1,devices:[]}):this.browse()})})}browse(t){Date.now()-this.lastBrowse<500||(this.lastBrowse=Date.now(),t?this.setState({loading:!0,browse:!0}):this.setState({browse:!0}),this.browseTimer=setTimeout(()=>{this.browseTimer=null,this.browseTimerCount++,this.browseTimerCount<5?this.browse(t):this.setState({message:E.t("Cannot read devices!")})},1e4),this.props.socket.sendTo(`${this.props.adapterName}.${this.props.instance}`,"browseAlisa",null).then(n=>{this.browseTimer&&clearTimeout(this.browseTimer),this.browseTimerCount=0,this.browseTimer=null,n&&n.error?this.setState({message:E.t(n.error)}):(this.waitForUpdateID&&(this.onEdit(this.waitForUpdateID,n)||this.setState({message:E.t("Device %s was not added",this.waitForUpdateID)}),this.waitForUpdateID=null),this.setState({devices:n,loading:!1,changed:[],browse:!1}))}))}onReadyUpdate(t,n){n&&n.ack===!0&&n.val===!0&&(this.devTimer&&clearTimeout(this.devTimer),this.devTimer=setTimeout(()=>{this.devTimer=null,this.browse()},300))}onResultUpdate(t,n){n&&n.ack===!0&&n.val&&this.setState({message:n.val})}componentDidMount(){this.props.socket.subscribeState(`${this.props.adapterName}.${this.props.instance}.smart.updates`,this.onReadyUpdateBound),this.props.socket.subscribeState(`${this.props.adapterName}.${this.props.instance}.smart.updatesResult`,this.onResultUpdateBound)}componentWillUnmount(){this.props.socket.unsubscribeState(`${this.props.adapterName}.${this.props.instance}.smart.updates`,this.onReadyUpdateBound),this.props.socket.unsubscribeState(`${this.props.adapterName}.${this.props.instance}.smart.updatesResult`,this.onResultUpdateBound),this.timerChanged&&(clearTimeout(this.timerChanged),this.timerChanged=null)}informInstance(t){this.props.socket.sendTo(`${this.props.adapterName}.${this.props.instance}`,"update",t)}addChanged(t,n){const r=JSON.parse(JSON.stringify(this.state.changed));r.includes(t)?n&&n():(r.push(t),this.setState({changed:r},()=>n&&n()))}onEdit(t,n){n=n||this.state.devices;const r=n.find(o=>o.iobID===t);if(r){let o=r.name;return typeof o=="object"&&o&&(o=o[E.getLanguage()]||o.en),this.editedSmartName=o,this.setState({editId:t,editedSmartName:o,editObjectName:o}),!0}return!1}onAskDelete(t){this.setState({deleteId:t,showConfirmation:!0})}onDelete(){const t=this.state.deleteId;this.addChanged(t,()=>{this.props.socket.getObject(t).then(n=>(U.disableSmartName(n,`${this.props.adapterName}.${this.props.instance}`,this.props.native.noCommon),this.props.socket.setObject(t,n))).then(()=>{this.setState({deleteId:"",showConfirmation:!1,lastChanged:t}),this.timerChanged&&clearTimeout(this.timerChanged),this.timerChanged=setTimeout(()=>{this.setState({lastChanged:""}),this.timerChanged=null},3e4),this.informInstance(t)}).catch(n=>this.props.onError(n))})}static renderActions(t){const n=[];if(!t.actions)return console.log("Something went wrong"),null;t.actions.sort((r,o)=>r===o?0:r==="OnOff"?-1:o==="OnOff"?1:0),Object.keys(Eo).forEach(r=>{if(t.actions.includes(r)){const o=Eo[r].icon;n.push(m.jsx("span",{title:Eo[r].desc,children:m.jsx(o,{style:{...ct.actionIcon,color:Eo[r].color}})},r))}});for(let r=0;r{r.push(m.jsxs("div",{style:{...ct.devSubLine,background:a},children:[m.jsx("div",{style:ct.devSubLineName,children:i.name.toUpperCase()}),m.jsxs("div",{style:ct.devSubSubLine,children:[m.jsx("div",{children:i.getId}),i.setId&&i.setId!==i.getId?m.jsx("div",{style:ct.devSubLineSetId,children:i.setId}):null]})]},`sub${i.getId}`))}),r}renderDevice(t,n){const r=this.state.expanded.includes(t.name);let o=n%2?this.props.themeType==="dark"?"#272727":"#f1f1f1":"inherit";const s=this.state.changed.includes(t.iobID);return s?o=Vst:t.iobID===this.state.lastChanged&&(o=this.props.themeType==="dark"?Jst:Xst),[m.jsxs("div",{style:{...ct.devLine,background:o},children:[m.jsxs("div",{style:ct.devLineNumber,children:[n+1,"."]}),m.jsx(fe,{style:ct.devLineExpand,onClick:()=>this.onExpand(n),children:t.attributes.length?m.jsx(ou,{badgeContent:t.attributes.length,color:"primary",children:r?m.jsx(ec,{}):m.jsx(tc,{})}):r?m.jsx(ec,{}):m.jsx(tc,{})}),m.jsxs("div",{style:{...ct.devLineNameBlock,display:"inline-block",position:"relative"},children:[m.jsx("span",{style:ct.devLineName,children:t.name}),m.jsx("span",{style:ct.devLineDescription,children:t.description}),s?m.jsx(Un,{style:ct.devLineProgress,size:20}):null]}),m.jsx("span",{style:ct.devLineActions,children:_g.renderActions(t)}),m.jsx(fe,{"aria-label":"Edit",style:ct.devLineEdit,onClick:()=>this.onEdit(t.iobID),children:m.jsx(gg,{fontSize:"middle"})}),m.jsx(fe,{"aria-label":"Delete",style:ct.devLineDelete,onClick:()=>this.onAskDelete(t.iobID),children:m.jsx(oa,{fontSize:"middle"})})]},`line${n}`),r?this.renderChannels(t,n):null]}renderMessage(){return this.state.message?m.jsx(Wu,{text:this.state.message,onClose:()=>this.setState({message:""})}):null}changeSmartName(t){t&&t.preventDefault(),this.addChanged(this.state.editId,()=>{const n=this.state.editId;this.setState({editId:"",editObjectName:"",lastChanged:n}),this.timerChanged&&clearTimeout(this.timerChanged),this.timerChanged=setTimeout(()=>{this.setState({lastChanged:""}),this.timerChanged=null},3e4),this.props.socket.getObject(n).then(r=>(U.updateSmartName(r,this.editedSmartName,void 0,void 0,`${this.props.adapterName}.${this.props.instance}`,this.props.native.noCommon),this.props.socket.setObject(n,r))).then(()=>this.informInstance(n)).catch(r=>this.props.onError(r))})}renderEditDialog(){return this.state.editId?m.jsxs(ft,{open:!0,maxWidth:"sm",fullWidth:!0,onClose:()=>{this.editedSmartName=null,this.setState({editId:"",editedSmartName:""})},"aria-labelledby":"message-dialog-title","aria-describedby":"message-dialog-description",children:[m.jsx(mt,{id:"message-dialog-title",children:this.props.title||E.t("Smart name for %s",this.state.editObjectName)}),m.jsxs(Tt,{children:[m.jsxs("p",{children:[m.jsx("span",{children:"ID:"})," ",m.jsx("span",{style:ct.editedId,children:this.state.editId})]}),m.jsx(nt,{variant:"standard",style:{width:"100%"},label:E.t("Smart name"),autoFocus:!0,onKeyDown:t=>t.key==="Enter"&&this.changeSmartName(t),onChange:t=>this.editedSmartName=t.target.value,defaultValue:this.state.editedSmartName,helperText:E.t("You can enter several names divided by comma"),margin:"normal"})]}),m.jsxs(Et,{children:[m.jsx(_e,{variant:"contained",onClick:()=>this.changeSmartName(),color:"primary",startIcon:m.jsx(jn,{}),children:E.t("Ok")}),m.jsx(_e,{variant:"contained",startIcon:m.jsx($t,{}),color:"grey",onClick:()=>{this.editedSmartName=null,this.setState({editId:"",editedSmartName:""})},children:E.t("Cancel")})]})]}):null}renderConfirmDialog(){return this.state.showConfirmation?m.jsxs(ft,{open:!0,maxWidth:"sm",fullWidth:!0,onClose:()=>this.setState({showConfirmation:""}),"aria-labelledby":"confirmation-dialog-title","aria-describedby":"confirmation-dialog-description",children:[m.jsx(mt,{id:"confirmation-dialog-title",children:this.props.title||E.t("Device %s will be disabled.",this.state.deleteId)}),m.jsx(Tt,{children:m.jsx("p",{children:E.t("Are you sure?")})}),m.jsxs(Et,{children:[m.jsx(_e,{variant:"contained",onClick:()=>this.onDelete(),color:"primary",autoFocus:!0,startIcon:m.jsx(oa,{}),children:E.t("Delete")}),m.jsx(_e,{color:"grey",variant:"contained",onClick:()=>this.setState({showConfirmation:""}),startIcon:m.jsx($t,{}),children:E.t("Cancel")})]})]}):null}getSelectIdDialog(){return this.state.showSelectId?m.jsx(Sc,{theme:this.props.theme,imagePrefix:"../..",socket:this.props.socket,selected:"",types:["state"],onClose:()=>this.setState({showSelectId:!1}),onOk:t=>{this.setState({showSelectId:!1}),this.props.socket.getObject(t).then(n=>{if(n){const r=U.getObjectNameFromObj(n,null,{language:E.getLanguage()});U.updateSmartName(n,(r||E.t("Device name")).replace(/[-_.]+/g," "),void 0,void 0,`${this.props.adapterName}.${this.props.instance}`,this.props.native.noCommon),this.addChanged(n._id),this.waitForUpdateID=n._id,this.state.lastChanged!==n._id&&(this.setState({lastChanged:n._id}),this.timerChanged&&clearTimeout(this.timerChanged),this.timerChanged=setTimeout(()=>{this.setState({lastChanged:""}),this.timerChanged=null},3e4)),this.props.socket.setObject(n._id,n).then(()=>this.informInstance(n._id)).catch(o=>this.setState({message:o}))}else this.setState({message:E.t("Invalid ID")})})}},"dialogSelectAlisa"):null}renderDevices(){const t=this.state.filter.toLowerCase(),n=[];for(let r=0;rthis.setState({showListOfDevices:!1}),"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",children:[m.jsxs(mt,{id:"alert-dialog-title",children:[E.t("List of devices to print out, e.g. to give all device names to your partner.")," ",m.jsx("span",{role:"img","aria-label":"smile",children:"😄"})]}),m.jsxs(Tt,{children:[m.jsx(Ce,{sx:ct.headerRow,children:m.jsx("div",{style:ct.headerCell,children:E.t("Name")})}),m.jsx("div",{style:ct.tableDiv,children:this.state.devices.map((t,n)=>m.jsx("div",{children:m.jsx("div",{style:ct.tableCell,children:t.name})},n))})]}),m.jsxs(Et,{children:[m.jsx(_e,{variant:"outlined",onClick:()=>{this.setState({showListOfDevices:!1});const t=this.state.devices.map(n=>n.name);U.copyToClipboard(t.join(` +`))},color:"primary",startIcon:m.jsx(Jm,{}),children:E.t("Copy to clipboard")}),m.jsx(_e,{color:"grey",variant:"contained",startIcon:m.jsx($t,{}),onClick:()=>this.setState({showListOfDevices:!1}),autoFocus:!0,children:E.t("Close")})]})]}):null}render(){return this.state.loading?m.jsx(Un,{},"alexaProgress"):m.jsxs("form",{style:ct.tab,children:[m.jsx(Ct,{size:"small",color:"secondary","aria-label":"Add",style:ct.button,onClick:()=>this.setState({showSelectId:!0}),children:m.jsx(si,{})}),m.jsx(Ct,{size:"small",color:"primary","aria-label":"Refresh",style:ct.button,onClick:()=>this.browse(!0),disabled:this.state.browse,children:this.state.browse?m.jsx(Un,{size:20}):m.jsx(ai,{})}),m.jsx(Ct,{style:{...ct.button,marginLeft:"1rem"},title:E.t("Show all devices for print out"),size:"small","aria-label":"List of devices",onClick:()=>this.setState({showListOfDevices:!0}),disabled:this.state.browse,children:m.jsx(fg,{})}),m.jsx(nt,{variant:"standard",placeholder:E.t("Filter"),className:this.state.filter,value:this.state.filter,onChange:t=>this.setState({filter:t.target.value}),slotProps:{input:{endAdornment:this.state.filter?m.jsx(fe,{onClick:()=>this.setState({filter:""}),children:m.jsx(mg,{})}):void 0}}}),this.renderDevices(),this.renderMessage(),this.renderEditDialog(),this.getSelectIdDialog(),this.renderConfirmDialog(),this.renderListOfDevices()]},"alexa")}}_g.propTypes={native:P.object.isRequired,instance:P.number.isRequired,adapterName:P.string.isRequired,onError:P.func,socket:P.object.isRequired,themeType:P.string,theme:P.object};function Ml(e,t,n){if(typeof t=="string"&&(t=t.split(".")),!e)return null;if(t.length===1)return n&&n[e[t[0]]]?n[e[t[0]]]:e[t[0]];const r=t.shift();return Ml(e[r],t)}function s5(e,t,n){if(typeof t=="string"&&(t=t.split(".")),t.length===1)return e[t[0]]=n;const r=t.shift();return(e[r]===null||e[r]===void 0)&&(e[r]={}),s5(e[r],t,n)}const Je={tableContainer:{width:"100%",height:"100%",overflow:"auto"},table:{width:"100%",minWidth:800,maxWidth:1920},cell:{paddingTop:0,paddingBottom:0,paddingLeft:4,paddingRight:4},rowMainWithChildren:{},rowMainWithoutChildren:{},rowNoEdit:{opacity:.3},cellExpand:{width:30},cellButton:{width:30},cellHeader:e=>({fontWeight:"bold",background:(e.palette.mode==="dark","#888"),color:e.palette.mode==="dark"?"#EEE":"#111",height:48,wordBreak:"break-word",whiteSpace:"pre"}),width_name_nicknames:{maxWidth:150},width_ioType:{maxWidth:100},width_type:{maxWidth:100},width_displayTraits:{maxWidth:100},width_roomHint:{maxWidth:100},rowSecondary:{fontStyle:"italic"},cellSecondary:{fontSize:10},visuallyHidden:{border:0,clip:"rect(0 0 0 0)",height:1,margin:-1,overflow:"hidden",padding:0,position:"absolute",top:20,width:1}};function c2(e,t,n,r){const o=Ml(e,n,r)||"",s=Ml(t,n,r)||"";return so?1:0}function Yst(e,t,n){return e==="desc"?(r,o)=>c2(r,o,t,n):(r,o)=>-c2(r,o,t,n)}function Kst(e,t){const n=e.map((r,o)=>[r,o]);return n.sort((r,o)=>{const s=t(r[0],o[0]);return s||r[1]-o[1]}),n.map(r=>r[0])}class a5 extends p.Component{constructor(t){super(t);let n=window.localStorage.getItem("iot.ghome.opened")||"[]";try{n=JSON.parse(n)||[]}catch{n=[]}Array.isArray(n)||(n=[]),this.state={opened:n,editMode:!1,deleteMode:!1,editData:null,order:"asc",orderBy:this.props.columns[0].field}}renderCell(t,n,r,o){if(this.state.editMode===o&&n.editable!=="never"){let s=Ml(t,n.field);return Array.isArray(s)&&(s=s[0]),m.jsx(eo,{style:{...Je.cell,...r?Je.cellSecondary:void 0,...n.cellStyle},component:"th",children:n.lookup?m.jsx(an,{variant:"standard",onChange:a=>{const i=this.state.editData?{...this.state.editData}:{};a.target.value===s?delete i[n.field]:i[n.field]=a.target.value,this.setState({editData:i})},value:this.state.editData&&this.state.editData[n.field]||s,children:Object.keys(n.lookup).map(a=>m.jsx(ze,{value:a,children:n.lookup[a]}))}):m.jsx(nt,{variant:"standard",value:this.state.editData&&this.state.editData[n.field]!==void 0?this.state.editData[n.field]:s,onChange:a=>{const i=this.state.editData?{...this.state.editData}:{};a.target.value===s?delete i[n.field]:i[n.field]=a.target.value,this.setState({editData:i})}})},n.field)}return m.jsx(eo,{style:{...Je.cell,...r?Je.cellSecondary:void 0,...n.cellStyle},component:"th",children:Ml(t,n.field,n.lookup)},n.field)}renderLine(t,n){n=n||0;const r=this.props.data.indexOf(t);if(!t||!n&&t.parentId||n&&!t.parentId)return null;const o=this.props.data.filter(a=>a.parentId===t.id),s=this.state.opened.includes(t.id);return[m.jsxs(Tx,{style:{...Je.row,...n?Je.rowSecondary:void 0,...!n&&o.length?Je.rowMainWithChildren:void 0,...!n&&!o.length?Je.rowMainWithoutChildren:void 0,...this.state.editMode!==!1&&this.state.editMode!==r?Je.rowNoEdit:void 0,...this.state.deleteMode!==!1&&this.state.deleteMode!==r?Je.rowNoEdit:void 0},children:[m.jsx(eo,{style:{...Je.cell,...Je.cellExpand,...n?Je.cellSecondary:void 0},children:o.length?m.jsx(fe,{onClick:()=>{const a=[...this.state.opened],i=a.indexOf(t.id);i===-1?(a.push(t.id),a.sort()):a.splice(i,1),this.setState({opened:a})},children:s?m.jsx(lV,{}):m.jsx($V,{})}):null}),m.jsx(eo,{scope:"row",style:{...Je.cell,...n?Je.cellSecondary:void 0,...this.props.columns[0].cellStyle},children:Ml(t,this.props.columns[0].field,this.props.columns[0].lookup)}),this.props.columns.map((a,i)=>i?this.renderCell(t,a,n,r):null),m.jsx(eo,{style:{...Je.cell,...Je.cellButton},children:this.state.editMode===r||this.state.deleteMode===r?m.jsx(fe,{disabled:this.state.editMode!==!1&&(!this.state.editData||!Object.keys(this.state.editData).length),onClick:()=>{if(this.state.editMode!==!1){const a=JSON.parse(JSON.stringify(t));this.state.editData&&Object.keys(this.state.editData).forEach(i=>s5(a,i,this.state.editData[i])),this.setState({editMode:!1},()=>this.props.onUpdate(a,t))}else this.setState({deleteMode:!1},()=>this.props.onDelete(t))},children:m.jsx(jn,{})}):m.jsx(fe,{disabled:this.state.editMode!==!1,onClick:()=>this.setState({editMode:r,editData:null}),children:m.jsx(Ed,{})})}),m.jsx(eo,{style:{...Je.cell,...Je.cellButton},children:this.state.editMode===r||this.state.deleteMode===r?m.jsx(fe,{onClick:()=>this.setState({editMode:!1,deleteMode:!1}),children:m.jsx($t,{})}):m.jsx(fe,{disabled:this.state.deleteMode!==!1,onClick:()=>this.setState({deleteMode:r}),children:m.jsx(ra,{})})})]},t.id),!n&&this.state.opened.includes(t.id)?o.map(a=>this.renderLine(a,n+1)):null]}handleRequestSort(t){const n=this.state.orderBy===t&&this.state.order==="asc";this.setState({order:n?"desc":"asc",orderBy:t})}renderHead(){return m.jsx(KF,{children:m.jsxs(Tx,{children:[m.jsx(eo,{component:"th",sx:Je.cellHeader,style:{...Je.cell,...Je.cellExpand}}),m.jsx(eo,{component:"th",sx:Je.cellHeader,style:{...Je.cell,...Je[`width_${this.props.columns[0].field.replace(/\./g,"_")}`],...this.props.columns[0].cellStyle||void 0},sortDirection:this.state.orderBy===this.props.columns[0].field?this.state.order:!1,children:m.jsxs(Ox,{active:this.state.orderBy===this.props.columns[0].field,direction:this.state.orderBy===this.props.columns[0].field?this.state.order:"asc",onClick:()=>this.handleRequestSort(this.props.columns[0].field),children:[this.props.columns[0].title,this.state.orderBy===this.props.columns[0].field?m.jsx("span",{style:Je.visuallyHidden,children:this.state.order==="desc"?"sorted descending":"sorted ascending"}):null]})}),this.props.columns.map((t,n)=>n?m.jsx(eo,{sx:Je.cellHeader,style:{...Je.cell,...Je[`width_${t.field.replace(/\./g,"_")}`],...t.cellStyle},component:"th",children:m.jsxs(Ox,{active:this.state.orderBy===t.field,direction:this.state.orderBy===t.field?this.state.order:"asc",onClick:()=>this.handleRequestSort(t.field),children:[t.title,this.state.orderBy===t.field?m.jsx("span",{style:Je.visuallyHidden,children:this.state.order==="desc"?"sorted descending":"sorted ascending"}):null]})},t.field):null),m.jsx(eo,{component:"th",sx:Je.cellHeader,style:{...Je.cell,...Je.cellButton}}),m.jsx(eo,{component:"th",sx:Je.cellHeader,style:{...Je.cell,...Je.cellButton}})]})})}render(){const t=this.props.columns?this.props.columns.find(r=>r.field===this.state.orderBy).lookup:"",n=Kst(this.props.data,Yst(this.state.order,this.state.orderBy,t));return m.jsx("div",{style:{...Je.tableContainer,...this.props.style||void 0},className:this.props.className,children:m.jsxs(RF,{style:Je.table,"aria-label":"simple table",size:"small",stickyHeader:!0,children:[this.renderHead(),m.jsx(WF,{children:n.map(r=>this.renderLine(r))})]})})}}a5.propTypes={data:P.array.isRequired,className:P.string,columns:P.array,onUpdate:P.func,onDelete:P.func};const Cn={tab:{height:"100%",overflow:"hidden"},tableDiv:{width:"100%",overflow:"hidden",height:"calc(100% - 48px)"},searchText:{width:150,marginLeft:8,verticalAlign:"middle"},headerRow:e=>({pl:1,background:e.palette.primary.main}),headerCell:{display:"inline-block",verticalAlign:"top",width:"30%"},tableCell:{display:"inline-block",verticalAlign:"top",width:"30%"}},d2=400,u2=400;class jl extends k.Component{constructor(t){super(t),this.state={editedSmartName:"",editId:"",editObjectName:"",deleteId:"",expertMode:window.localStorage.getItem("App.expertMode")!=="true",helpHidden:window.localStorage.getItem("App.helpHidden")==="true",showSelectId:!1,searchText:"",showConfirmation:"",changed:[],devices:[],message:"",filter:"",loading:!0,browse:!1,expanded:[],lastChanged:"",helpHeight:0},this.columns=[{title:E.t("ID"),field:"id",editable:"never",cellStyle:{maxWidth:"12rem",overflow:"hidden",wordBreak:"break-word"}},{title:E.t("Smart names"),field:"name.nicknames"},{title:E.t("ioBType"),field:"ioType",editable:"never",cellStyle:{maxWidth:"4rem",overflow:"hidden",wordBreak:"break-word"}},{title:E.t("Type"),field:"type",lookup:{"action.devices.types.AC_UNIT":"Air conditioning unit","action.devices.types.AIRFRESHENER":"Air Freshener","action.devices.types.AIRPURIFIER":"Air purifier","action.devices.types.AWNING":"Awning","action.devices.types.BLINDS":"Blinds","action.devices.types.BOILER":"Boiler","action.devices.types.CAMERA":"Camera","action.devices.types.COFFEE_MAKER":"Coffee maker","action.devices.types.CURTAIN":"Curtain","action.devices.types.DISHWASHER":"Dishwasher","action.devices.types.DOOR":"Door","action.devices.types.DRYER":"Dryer","action.devices.types.FAN":"Fan","action.devices.types.FIREPLACE":"Fireplace","action.devices.types.GARAGE":"Garage","action.devices.types.GATE":"Gate","action.devices.types.HEATER":"Heater","action.devices.types.HOOD":"Hood","action.devices.types.KETTLE":"Kettle","action.devices.types.LIGHT":"Light","action.devices.types.LOCK":"Lock","action.devices.types.MOP":"Mop","action.devices.types.MICROWAVE":"Microwave","action.devices.types.OUTLET":"Outlet","action.devices.types.OVEN":"Oven","action.devices.types.PERGOLA":"Pergola","action.devices.types.REFRIGERATOR":"Refrigerator","action.devices.types.SCENE":"Scene","action.devices.types.SECURITYSYSTEM":"Security System","action.devices.types.SENSOR":"Sensor","action.devices.types.SHUTTER":"Shutter","action.devices.types.SHOWER":"Shower","action.devices.types.SPEAKER":"Speaker","action.devices.types.SPRINKLER":"Sprinkler","action.devices.types.SWITCH":"Switch","action.devices.types.THERMOSTAT":"Thermostat","action.devices.types.VACUUM":"Vacuum","action.devices.types.VALVE":"Valve","action.devices.types.WASHER":"Washer","action.devices.types.WATERHEATER":"Water heater","action.devices.types.WINDOW":"Window"}},{title:E.t("Function/Trait"),field:"displayTraits",lookup:{"action.devices.traits.Brightness":"Brightness","action.devices.traits.ColorSetting_temperature":"ColorSetting_Temperature","action.devices.traits.ColorSetting_spectrumRGB":"ColorSetting_RGB","action.devices.traits.FanSpeed":"FanSpeed","action.devices.traits.LockUnlock":"LockUnlock","action.devices.traits.Modes":"Modes","action.devices.traits.OnOff":"OnOff","action.devices.traits.OpenClose":"OpenClose","action.devices.traits.Scene":"Scene","action.devices.traits.StartStop":"StartStop","action.devices.traits.TemperatureControl_temperatureSetpointCelsius":"Oven_SetTemp","action.devices.traits.TemperatureControl_temperatureAmbientCelsius":"Oven_StatusTemp","action.devices.traits.TemperatureSetting_thermostatMode":"Thermostat_Mode","action.devices.traits.TemperatureSetting_thermostatTemperatureSetpoint":"Thermostat_SetTemp","action.devices.traits.TemperatureSetting_thermostatTemperatureAmbient":"Thermostat_StatusTemp","action.devices.traits.TemperatureSetting_thermostatHumidityAmbient":"Thermostat_StatusHumidity","action.devices.traits.Toggles":"Toggles","action.devices.traits.Volume":"Volume"}},{title:E.t("Attributes"),field:"displayAttributes",cellStyle:{maxWidth:"12rem",overflow:"hidden",wordBreak:"break-word"},expertMode:!0,editComponent:jl.editDisplayAttributesComponent},{title:E.t("Room"),field:"roomHint",editable:"never"},{title:E.t("Auto"),field:"smartEnum",editable:"never",cellStyle:{maxWidth:"3rem",overflow:"hidden",wordBreak:"break-word"},expertMode:!0},{title:E.t("Conversation to GH"),field:"displayConv2GH",cellStyle:{maxWidth:"4rem",overflow:"hidden",wordBreak:"break-word"},expertMode:!0,editComponent:jl.editDisplayConv2GH},{title:E.t("Conversation to ioB"),field:"displayConv2iob",cellStyle:{maxWidth:"4rem",overflow:"hidden",wordBreak:"break-word"},expertMode:!0,editComponent:jl.editDisplayConv2iob}],this.timerChanged=null,this.browseTimer=null,this.browseTimerCount=0,this.editedSmartName="",this.waitForUpdateID=null,this.onReadyUpdateBound=this.onReadyUpdate.bind(this),this.onResultUpdateBound=this.onResultUpdate.bind(this),this.helpRef=p.createRef(),this.props.socket.getObject(`system.adapter.${this.props.adapterName}.${this.props.instance}`).then(n=>this.props.socket.getState(`system.adapter.${this.props.adapterName}.${this.props.instance}.alive`).then(r=>{!n||!n.common||!n.common.enabled&&(!r||!r.val)?this.setState({message:E.t("Instance must be enabled"),loading:!1,devices:[]}):this.browse()}))}static editDisplayConv2GH(t){return m.jsxs("div",{children:["Conversation to Google Home = function(value){",m.jsx("br",{}),m.jsx("textarea",{rows:4,style:{width:"100%",resize:"vertical"},value:t.value,onChange:n=>t.onChange(n.target.value)}),"}"]})}static editDisplayConv2iob(t){return m.jsxs("div",{children:["Conversation to ioBroker = function(value){",m.jsx("br",{}),m.jsx("textarea",{rows:4,style:{width:"100%",resize:"vertical"},value:t.value,onChange:n=>t.onChange(n.target.value)}),"}"]})}static editDisplayAttributesComponent(t){return m.jsx("textarea",{rows:4,style:{width:"100%",resize:"vertical"},value:t.value,onChange:n=>t.onChange(n.target.value)})}browse(t){Date.now()-this.lastBrowse<500||(this.lastBrowse=Date.now(),t?this.setState({loading:!0,browse:!0}):this.setState({browse:!0}),this.browseTimer=setTimeout(()=>{console.log("Browse timeout!"),this.browseTimer=null,this.browseTimerCount++,this.browseTimerCount<5?this.browse(t):this.setState({message:E.t("Cannot read devices!")})},1e4),this.props.socket.sendTo(`${this.props.adapterName}.${this.props.instance}`,"browseGH",null).then(n=>{this.browseTimer&&clearTimeout(this.browseTimer),this.browseTimerCount=0,this.browseTimer=null,n&&n.error?this.setState({message:E.t(n.error)}):(this.waitForUpdateID&&(this.onEdit(this.waitForUpdateID,n)||this.setState({message:E.t("Device %s was not added",this.waitForUpdateID)}),this.waitForUpdateID=null),this.setState({devices:n,loading:!1,changed:[],browse:!1}))}).catch(n=>this.setState({message:E.t(n),browse:!1})))}onReadyUpdate(t,n){console.log(`Update ${t} ${n?`${n.val}/${n.ack}`:"null"}`),n&&n.ack===!0&&n.val===!0&&(this.devTimer&&clearTimeout(this.devTimer),this.devTimer=setTimeout(()=>{this.devTimer=null,this.browse()},10))}onResultUpdate(t){t&&t.ack===!0&&t.val&&this.setState({message:t.val})}componentDidMount(){this.props.socket.subscribeState(`${this.props.adapterName}.${this.props.instance}.smart.updatesGH`,this.onReadyUpdateBound),this.props.socket.subscribeState(`${this.props.adapterName}.${this.props.instance}.smart.updatesResult`,this.onResultUpdateBound)}componentWillUnmount(){this.props.socket.unsubscribeState(`${this.props.adapterName}.${this.props.instance}.smart.updatesGH`,this.onReadyUpdateBound),this.props.socket.unsubscribeState(`${this.props.adapterName}.${this.props.instance}.smart.updatesResult`,this.onResultUpdateBound),this.timerChanged&&(clearTimeout(this.timerChanged),this.timerChanged=null)}informInstance(t){this.props.socket.sendTo(`${this.props.adapterName}.${this.props.instance}`,"update",t)}addChanged(t,n){const r=JSON.parse(JSON.stringify(this.state.changed));r.includes(t)?n&&n():(r.push(t),this.setState({changed:r},()=>n&&n()))}onEdit(t,n){n=n||this.state.devices;const r=n.find(o=>o.id===t);return r?(this.props.socket.getObject(t).then(o=>{let s=r.common&&r.common.smartName?r.common.smartName:r._id;typeof s=="object"&&s&&(s=s[E.getLanguage()]||s.en),this.editedSmartName=s,this.setState({editId:t,editedSmartName:s,editObjectName:U.getObjectNameFromObj(o,null,{language:E.getLanguage()})})}),!0):!1}onDelete(){const t=this.state.deleteId;this.addChanged(t,()=>{this.props.socket.getObject(t).then(n=>(U.disableSmartName(n,`${this.props.adapterName}.${this.props.instance}`,this.props.native.noCommon),this.props.socket.setObject(t,n))).then(()=>{this.setState({deleteId:"",showConfirmation:!1,lastChanged:t}),this.timerChanged&&clearTimeout(this.timerChanged),this.timerChanged=setTimeout(()=>{this.setState({lastChanged:""}),this.timerChanged=null},3e4),this.informInstance(t)}).catch(n=>this.props.onError(n))})}onGHParamsChange(t,n){this.addChanged(t.id,()=>{this.props.socket.getObject(t.id).then(r=>{if(!r||!r.common)return this.setState({message:E.t("Object %s is invalid. No common found.",t.id)});if(U.updateSmartName(r,this.editedSmartName,void 0,void 0,`${this.props.adapterName}.${this.props.instance}`,this.props.native.noCommon),JSON.stringify(t.displayTraits)!==JSON.stringify(n.displayTraits)&&(Array.isArray(t.displayTraits)||(t.displayTraits=[t.displayTraits]),r.common.smartName.ghTraits=t.displayTraits),t.type!==n.type&&(r.common.smartName.ghType=t.type),t.displayAttributes!==n.displayAttributes){r.common.smartName.ghAttributes=t.displayAttributes;try{r.common.smartName.ghAttributes&&JSON.parse(r.common.smartName.ghAttributes)}catch{this.setState({message:E.t("Attributes has not correct JSON format.")})}}return t.conv2GH&&(r.common.smartName.ghConv2GH=t.displayConv2GH),t.conv2iob&&(r.common.smartName.ghConv2iob=t.displayConv2iob),this.props.socket.setObject(t.id,r)}).then(()=>this.informInstance(t.id)).catch(r=>this.props.onError(r))})}renderMessage(){return this.state.message?m.jsx(Wu,{text:this.state.message,onClose:()=>this.setState({message:""})}):null}getSelectIdDialog(){return this.state.showSelectId?m.jsx(Sc,{theme:this.props.theme,imagePrefix:"../..",socket:this.props.socket,selected:"",types:["state"],onClose:()=>this.setState({showSelectId:!1}),onOk:t=>{this.setState({showSelectId:!1}),this.props.socket.getObject(t).then(n=>{if(n){if(!n.common){this.setState({message:E.t("Object %s is invalid. No common found.",t)});return}const r=U.getObjectNameFromObj(n,null,{language:E.getLanguage()});U.updateSmartName(n,(r||E.t("Device name")).replace(/[-_.]+/g," "),void 0,void 0,`${this.props.adapterName}.${this.props.instance}`,this.props.native.noCommon),this.addChanged(n._id),this.waitForUpdateID=n._id,this.state.lastChanged!==n._id&&(this.setState({lastChanged:n._id}),this.timerChanged&&clearTimeout(this.timerChanged),this.timerChanged=setTimeout(()=>{this.setState({lastChanged:""}),this.timerChanged=null},3e4)),n.common.smartName?(n.common.smartName.ghType="action.devices.types.LIGHT",n.common.smartName.ghTraits=["action.devices.traits.OnOff"]):(n.common.smartName={ghType:"action.devices.types.LIGHT"},n.common.smartName={ghTraits:["action.devices.traits.OnOff"]}),this.props.socket.setObject(n._id,n).then(()=>{this.informInstance(n._id),this.setState({message:E.t("Please add type and trait to complete the Google Home state.")})}).catch(o=>this.setState({message:o}))}else this.setState({message:E.t("Invalid ID")})})}},"dialogSelectGoogle"):null}renderListOfDevices(){return this.state.showListOfDevices?m.jsxs(ft,{open:!0,maxWidth:"xl",fullWidth:!0,onClose:()=>this.setState({showListOfDevices:!1}),"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",children:[m.jsxs(mt,{id:"alert-dialog-title",children:[E.t("List of devices to print out, e.g. to give all device names to your partner.")," ",m.jsx("span",{role:"img","aria-label":"smile",children:"😄"})]}),m.jsxs(Tt,{children:[m.jsxs(Ce,{sx:Cn.headerRow,children:[m.jsx("div",{style:Cn.headerCell,children:E.t("Name")}),m.jsx("div",{style:Cn.headerCell,children:E.t("Function")}),m.jsx("div",{style:Cn.headerCell,children:E.t("Room")})]}),m.jsx("div",{style:Cn.tableDiv,children:this.state.devices.map((t,n)=>m.jsxs("div",{children:[m.jsx("div",{style:Cn.tableCell,children:t.name.nicknames.join(", ")}),m.jsx("div",{style:Cn.tableCell,children:t.displayTraits.map(r=>r.replace("action.devices.traits.","")).join(", ")}),m.jsx("div",{style:Cn.tableCell,children:t.roomHint})]},n))})]}),m.jsxs(Et,{children:[m.jsx(_e,{variant:"outlined",onClick:()=>{this.setState({showListOfDevices:!1});const t=this.state.devices.map(n=>`${n.name.nicknames.join(", ")} ${n.displayTraits} ${n.roomHint}`);U.copyToClipboard(t.join(` +`))},color:"primary",startIcon:m.jsx(Jm,{}),children:E.t("Copy to clipboard")}),m.jsx(_e,{color:"grey",startIcon:m.jsx($t,{}),variant:"contained",onClick:()=>this.setState({showListOfDevices:!1}),autoFocus:!0,children:E.t("Close")})]})]}):null}renderInstructions(){const t=window.innerHeight>d2&&window.innerWidth>u2;if(this.state.helpHidden||this.props.smallDisplay||!t)return null;const n=E.t("manualModeHint");return m.jsxs("div",{style:{width:"100%"},ref:this.helpRef,children:[m.jsxs("div",{style:{marginTop:"4rem",display:"flex"},children:[m.jsxs("div",{style:{flex:"50%"},children:[m.jsx("div",{style:{fontWeight:"bold"},children:E.t("Auto Mode")}),m.jsx("div",{style:{marginTop:"0.8rem",marginRight:"0.8rem"},children:E.t("To auto detect devices please assign a room and function to the channel if no channel available than assign to a device. Not only to the state or device. And enable them under SmartEnum/Intelligente Aufzählung")})]}),m.jsxs("div",{style:{flex:"50%"},children:[m.jsx("div",{style:{fontWeight:"bold"},children:E.t("Manual Mode")}),m.jsx("span",{children:U.renderTextWithA(n)})]})]}),m.jsx("br",{}),m.jsx("div",{style:{flex:"100%"},children:m.jsx("div",{style:{fontWeight:"bold"},children:U.renderTextWithA(E.t("For help use this forum"))})})]})}renderToolbar(){const t=window.innerHeight>d2&&window.innerWidth>u2;return m.jsxs(Ab,{variant:"dense",children:[m.jsx(Ct,{size:"small",color:"secondary","aria-label":"Add",style:Cn.button,onClick:()=>this.setState({showSelectId:!0}),children:m.jsx(si,{})}),m.jsx(Ct,{style:{...Cn.button,marginLeft:"1rem"},size:"small",color:"primary","aria-label":"Refresh",onClick:()=>this.browse(!0),disabled:this.state.browse,children:this.state.browse?m.jsx(Un,{size:20}):m.jsx(ai,{})}),t&&!this.state.hideHelp?m.jsx(Ct,{style:{...Cn.button,marginLeft:"1rem"},size:"small",color:this.state.helpHidden?"default":"primary","aria-label":"Help",title:E.t("Show/Hide help"),onClick:()=>{window.localStorage.setItem("App.helpHidden",this.state.helpHidden?"false":"true"),this.setState({helpHidden:!this.state.helpHidden})},disabled:this.state.browse,children:m.jsx(Est,{})}):null,m.jsx(Ct,{style:{...Cn.button,marginLeft:"1rem"},size:"small",color:this.state.expertMode?"primary":"default","aria-label":"Help",title:E.t("Toggle expert mode"),onClick:()=>{window.localStorage.setItem("App.expertMode",this.state.expertMode?"false":"true"),this.setState({expertMode:!this.state.expertMode})},disabled:this.state.browse,children:m.jsx($f,{})}),m.jsx(Ct,{style:{...Cn.button,marginLeft:"1rem"},title:E.t("Show all devices for print out"),size:"small","aria-label":"List of devices",onClick:()=>this.setState({showListOfDevices:!0}),disabled:this.state.browse,children:m.jsx(fg,{})}),this.props.smallDisplay?null:m.jsx(nt,{variant:"standard",style:Cn.searchText,label:E.t("Filter"),value:this.state.searchText,onChange:n=>this.setState({searchText:n.target.value}),slotProps:{input:{endAdornment:this.state.searchText?m.jsx(fe,{onClick:()=>this.setState({searchText:""}),children:m.jsx(mg,{})}):void 0}}})]})}componentDidUpdate(){if(this.helpRef.current){const t=this.helpRef.current.clientHeight;this.state.helpHeight!==t&&(!this.state.helpHidden&&t+64+48+200>window.innerHeight?setTimeout(()=>this.setState({helpHeight:t,helpHidden:!0,hideHelp:!0}),50):setTimeout(()=>this.setState({helpHeight:t}),50))}else this.state.helpHeight&&setTimeout(()=>this.setState({helpHeight:0}),50)}render(){if(this.state.loading)return m.jsx(Un,{},"alexaProgress");const t=this.state.searchText.toLowerCase(),n=this.state.searchText?this.state.devices.filter(r=>{var o,s,a,i,l,d;return((s=(o=r.name)==null?void 0:o.name)==null?void 0:s.toLowerCase().includes(t))||((i=(a=r.name)==null?void 0:a.defaultNames)==null?void 0:i.find(u=>u.toLowerCase().includes(t)))||((d=(l=r.name)==null?void 0:l.nicknames)==null?void 0:d.find(u=>u.toLowerCase().includes(t)))}):this.state.devices;return m.jsxs("form",{style:Cn.tab,children:[this.renderToolbar(),this.renderInstructions(),m.jsx("div",{style:{...Cn.tableDiv,height:`calc(100% - ${48+(this.state.helpHeight?this.state.helpHeight+64:0)}px)`},children:m.jsx(a5,{columns:this.state.expertMode?this.columns:this.columns.filter(r=>!r.expertMode),data:n,onUpdate:(r,o)=>{r.name.nicknames&&Array.isArray(r.name.nicknames)&&(r.name.nicknames=r.name.nicknames.join(",")),this.editedSmartName=r.name.nicknames,this.setState({editId:r.id},()=>{!r.type||!r.displayTraits?this.setState({browse:!0,message:E.t("Please add action and trait to complete the Google Home state.")}):this.setState({browse:!0}),this.onGHParamsChange(r,o);const s=JSON.parse(JSON.stringify(this.state.devices));s[s.indexOf(o)]=r,this.setState({...this.state,devices:s})})},onDelete:r=>(r.smartEnum==="X"?this.setState({deleteId:r.id}):this.props.socket.getObject(r.id).then(o=>(o&&o.common&&o.common.smartName&&(delete o.common.smartName.ghTraits,delete o.common.smartName.ghType,delete o.common.smartName.ghAttributes),this.props.socket.setObject(r.id,o))),new Promise(o=>{setTimeout(()=>{this.state.deleteId?this.onDelete():this.informInstance(r.id),o();const s=JSON.parse(JSON.stringify(this.state.devices));s.splice(s.indexOf(r),1),this.setState({...this.state,devices:s})},600)}))})}),this.renderMessage(),this.getSelectIdDialog(),this.renderListOfDevices()]},"gh")}}jl.propTypes={native:P.object.isRequired,instance:P.number.isRequired,adapterName:P.string.isRequired,onError:P.func,socket:P.object.isRequired,theme:P.object};const Zst=()=>e=>t=>m.jsx(e,{smallDisplay:iO("(max-width:600px)"),...t}),Qst=Zst()(jl),eat="Active",tat="Addresses",nat="Cancel",rat="Close",oat="Commands",sat="Default",aat="Dimmer",iat="Filter",lat="Functions",cat="Instance",dat="Language",uat="Message",pat="off",hat="Ok",fat="on",mat="Options",gat="Review",_at="Rooms",vat="Save",yat="Select",bat="Type",wat="Types",Sat="Value",xat="clear",kat="disabled",$at='Before writing to support be sure you have read and understand the instructions of the web page:
https://www.iobroker.net',Cat='If you still have issue with the connection to Iot, you can request support im Forum',Eat='and only after that you should write an email to support@iobroker.com',Tat='No iobroker.pro account? Buy it on https://iobroker.pro for validated access or get for free, but limited access.',Oat="divided by comma. Use * to allow all services.",Dat="You can find your key here under 'Documentation'",Aat="Name was modified by user",Nat="If you use your own cloud, you can allow the use of self-signed certificates for the cloud.",Mat="This key is required to communicate with a cloud. You can get the API-KEY on https://iobroker.net and it looks like nickname_f1f439a0-001a-11e7-bc64-92361f002671",jat="Normally you do not need to change it. Only required if you plan to use your own cloud.",Iat="Define how to concatenate Room and Function. E.g. with 'in': Light in living room.",zat="Some groups consist of mixed devices: dimmers and switches. It is allowed to control them with ON and OFF commands and with percents",Rat="Normally the names looks like room_function. Here you can switch it to function_room.",Pat="Web instance, which will be shown for your connections from cloud.",Lat="You can define the languages to switch fast between US Alexa Skill and DE Alexa Skill.",Fat="If enabled, the settings will be stored only for this instance. So in the another instance the other names could be set.",Bat="For every command the text response will be generated. You can define here the Object ID , where this text must be written to. E.g. sayit.0.tts.text.",Wat="Workaround for missing connection to Alexa after the connection to cloud was lost. With this option you can restart adapter after each disconnection and it will work.",Hat="You cannot use % in password. We are working on the fix.",Uat=`Password must be at least 8 characters long and must have numbers, upper and lower case letters. Please change it in the ioBroker.pro profile +`,Vat="If you made a restore from backup, or moved your instance from one device to other or deleted the IoT instance and added it again you must load the connection security certificates with this button",Gat="If the login to the Alexa Skill/Google Action/Alisa with the ioBroker.pro login data fails, then please press the below button.",qat='Any questions in any language please ask here in forum: link',Jat="Please select a TYPE and a TRAIT after adding a state. To add multiple traits add a different id and trait but same smart name, type and room. Comma separated for the multiple smart names. To assign a room please use the ioBroker Enums/Aufzählungen. With attributes you can for example set a range for the color temperature Infos about Attributes you can find here. Empty attribute is {}",Xat="Search",Yat="Name",Kat="Room",Zat="ID",Qat="IoB Type",eit="Attributes",tit="Automatically",nit="Delete",rit="Dimmer",oit="On/Off",sit="Color",ait="Detection",iit="Lock",lit="Mode",cit="Muted",dit="Percentage",uit="Temperature",pit="Volume",hit="socket",fit="light",mit="dimmer",git="thermostat",_it="window blinds",vit="gate",yit="lock",bit="hue",wit="motion",Sit="slider",xit="temperature",kit="window",$it="Thermostat",Cit="Light",Eit="Air condition",Tit="Window blinds",Oit="Contact sensor",Dit="Control",Ait="Door",Nit="Gate",Mit="Hue",jit="Motion",Iit="Slider",zit="Socket",Rit="Vacuum cleaner",Pit="Volume group",Lit="Window",Fit="Sensor",Bit="Window blinds",Wit="Toggle",Hit={"(Set to 0 if behavior not desired)":"(Set to 0 if behavior not desired)","(you can separate names with comma)":"You can enter several names divided by comma",Active:eat,"Add device":"Add device","Add service":"Add service",Addresses:tat,"Alexa devices":"Alexa devices","Alisa devices":"Alisa devices","Allow admin access (only pro)":"Allow admin access (only pro)","Allow self-signed certificates":"Allow self-signed certificates","Amazon Alexa":"Amazon Alexa","Are you sure?":"Are you sure?","Attributes has not correct JSON format.":"Attributes is not in the correct JSON format","Authentication must be disabled. You can create second instance extra for cloud.":"Authentication must be disabled. You can create a second instance extra for the cloud.",Cancel:nat,"Cannot add this object":"Cannot add this object, because not supported.","Cannot read devices!":"Cannot read devices!","Certificates will be updated after initiated restart":"Certificates will be updated after initiated restart","Certificates will be updated after start":"Certificates will be updated after start","Click now Get new connection certificates to request new temporary password":'Click now "Get new connection certificates" to request new temporary password',Close:rat,"Cloud URL":"Cloud URL","Cloud adapter settings":"Cloud adapter settings",Commands:oat,"Concatenate words with":"Concatenate words with","Connection timeout":"Connection timeout(ms)","Debug outputs":"Debug outputs","Decrement color temperature":"Decrement color temperature","Decrement percentage":"Decrement percentage","Decrement target temperature":"Decrement target temperature",Default:sat,"Device %s was not added":"Device %s was not added","Device will be deactivated.":"Device will be deactivated.","Device will be disabled.":"Device %s will be disabled.",Dimmer:aat,"Duplicate name":"Duplicate name","Edit smart name":"Edit smart name",Error:"Error","Extended options":"Extended options",Filter:iat,"For help use this forum":"For help, visit this forum post",Functions:lat,"Get actual temperature":"Get actual temperature","Get new connection certificates":"Get new connection certificates","Get new service URL key":"Get new service URL key","Get target temperature":"Get target temperature","Google Home":"Google Home","IFTTT key":"IFTTT key","Increment color temperature":"Increment color temperature","Increment percentage":"Increment percentage","Increment target temperature":"Increment target temperature",Instance:cat,"Instance does not exists":"Instance does not exists","Instance is not active.":"Instance is not active.","Instance must be enabled":"Instance must be enabled","Instance must run to deliver the data":"The instance must run to deliver the data","Invalid object":"Invalid object",Language:dat,"Load configuration from file":"Load configuration from file",Message:uat,"OFF level for switches":"OFF level for switches","OFF level for switches in %":"OFF level for switches in %",Off:pat,Ok:hat,On:fat,"On/Off":"On/Off",Options:mat,"Personal settings (only pro)":"Personal settings (only pro)","Ping timeout:":"Ping timeout(ms)","Place function in names first":"Place function in names first","Please add action and trait to complete the Google Home state.":"Please add action and trait to complete the Google Home state.","Please add type and trait to complete the Google Home state.":"Please add type and trait to complete the Google Home state.","Please select object ID...":"Please select object ID...","Please write your email only in lower case letters":"Please write your email only in lower case letters","Read lock state":"Read lock state","Replace in names":"Replace in names","Request email with password one more time":"Request email with password one more time","Restart on disconnect":"Restart on disconnect",Review:gat,Rooms:_at,Save:vat,"Save and close":"Save and close","Save configuration to file":"Save configuration to file","Save settings and the names will be changed":"Save settings and the names will be changed",Select:yat,"Service names":"Service names","Services and IFTTT":"Services and IFTTT","Set color":"Set color","Set color temperature":"Set color temperature","Set lock state":"Set lock state","Set percentage":"Set percentage","Set target temperature":"Set target temperature","Smart Devices":"Smart Devices","Smart Enums":"Smart Enums","Smart Media":"Smart Media","Smart enums":"Smart enums","Smart name":"Smart name","Smart name for %s":"Smart name for %s","To apply this setting, the restart of adapter must be done. Agree?":"To apply this setting, the adapter must be restarted. Agree?","To auto detect devices please assign a room and function to the channel if no channel available than assign to a device. Not only to the state or device. And enable them under SmartEnum/Intelligente Aufzählung":"For automatic detection, under objects assign a channel (device if no channel is available) to a room and function. It is not sufficient to assign the room to a state or device. Rooms/functions can be added under enumeration (indicated by the white arrow at the top right) and must be activated in the IoT adapter under Intelligent enumeration. In order to automatically recognize manual states, the state must be deleted.","Turn off":"Turn off","Turn on":"Turn on",Type:bat,Types:wat,"Use Nightscout instance":"Use Nightscout instance","Use following link for IFTTT":"Use following link for IFTTT","Use following link for custom service":"Use following link for custom service","Use text2command instance":"Use text2command instance",Value:Sat,"White list for services":"White list for services","Write response to":"Write response to","Yandex Алиса":"Yandex Алиса","You can enter several names divided by comma":"You can enter several names divided by comma","amazon link":"If you use the Alexa Skill, please write a review for us here.
Examples can be found here.","by ON":"by ON",clear:xat,default:"default",disabled:kat,help_link_tip1:$at,help_link_tip2:Cat,help_link_tip3:Eat,help_tip:Tat,info_allowedServices:Oat,info_iftttKey:Dat,"ioBroker.pro Login":"ioBroker.pro Login","ioBroker.pro Password":"ioBroker.pro Password","last value":"no value","omit value":"omit value",modified:Aat,"no type":"no type",tooltip_allowSelfSignedCertificate:Nat,tooltip_apikey:Mat,tooltip_cloudUrl:jat,tooltip_concatWord:Iat,tooltip_deviceOffLevel:zat,tooltip_functionFirst:Rat,tooltip_instance:Pat,tooltip_language:Lat,tooltip_noCommon:Fat,tooltip_responseOID:Bat,tooltip_restartOnDisconnect:Wat,"Short answer for blood sugar":"Short answer for blood sugar",cannot_use_password:Hat,invalid_password_warning:Uat,new_certs_tip:Vat,new_credentials_tip:Gat,"Create IoT credentials anew":"Create IoT credentials anew",forum_tip:qat,"Save settings before pressing this button":"Save settings before pressing this button","Auto Mode":"Auto Mode","Manual Mode":"Manual Mode",manualModeHint:Jat,"not activated":"not activated","Google devices":"Google devices","Show/Hide help":"Show/Hide help","Show all devices for print out":"Show all devices for print out",Search:Xat,"List of devices to print out, e.g. to give all device names to your partner.":"List of devices to print out, e.g. to give all device names to your partner.",Name:Yat,Function:"Function",Room:Kat,"Copy to clipboard":"Copy to clipboard","Toggle expert mode":"Toggle expert mode",ID:Zat,"Smart names":"Smart names",ioBType:Qat,"Function/Trait":"Function/Trait",Attributes:eit,Auto:tit,"Conversation to GH":"Convert to GH","Conversation to ioB":"Convert to ioB","Information: The skill linking process was changed!":"Information: The skill linking process was changed!","The linking process has been changed for a few months.":"The linking process has been changed for a few months.","Now there is no temporary password that will be sent by email.":"Now there is no temporary password that will be sent by email.","The password is equal with ioBroker.pro and with password that was entered here in the settings!":"The password is equal with ioBroker.pro and with password that was entered here in the settings!","Not understood":"Not understood","Roger that":"Roger that","Read blood sugar from":"Read blood sugar from","Get actual humidity":"Get actual humidity","Get motion":"Get motion","Get contact":"Get contact status","Too many devices (%s) configured. Max number is 300":"Too many devices (%s) configured. Max number is 300!","Allow remote access":"Allow remote access","Admin instance":"Admin instance","Web instance":"Web instance","Device %s will be disabled.":"Device %s will be disabled.",Delete:nit,Brightness:rit,Power:oit,"Color temperature":"Color temperature",Color:sit,Detection:ait,Lock:iit,Mode:lit,Muted:cit,Percentage:dit,"Set point":"Set point",Temperature:uit,"Thermostat mode":"Thermostat mode",Volume:pit,socket:hit,light:fit,dimmer:mit,thermostat:git,blind:_it,gate:vit,lock:yit,hue:bit,motion:wit,slider:Sit,temperature:xit,window:kit,Thermostat:$it,Light:Cit,AirCondition:Eit,Blind:Tit,ContactSensor:Oit,Control:Dit,Door:Ait,Gate:Nit,Hue:Mit,Motion:jit,Slider:Iit,Socket:zit,VacuumCleaner:Rit,VolumeGroup:Pit,Window:Lit,"Window sensor":"Window sensor","Volume group":"Volume group","Vacuum cleaner":"Vacuum cleaner",Sensor:Fit,"Door sensor":"Door sensor","Color HUE":"Color HUE",Blinds:Bit,"Grouped from %s and %s":"Grouped from %s and %s","Default toggle behaviour (Only alexa v3)":"Default toggle behaviour (Only alexa v3)","Do not toggle":"Do not toggle",Toggle:Wit,"This service is reserved for the ioBroker.visu app. Please use another service name.":"This service is reserved for the ioBroker.visu app. Please use another service name."},Uit="Aktiv",Vit="Adressen",Git="Abbrechen",qit="Schließen",Jit="Befehle",Xit="Standard",Yit="Dimmer",Kit="Filter",Zit="Funktionen",Qit="Instanz",elt="Sprache",tlt="Nachricht",nlt="aus",rlt="Ok",olt="an",slt="Einstellungen",alt="Rezension",ilt="Räume",llt="Speichern",clt="Auswählen",dlt="Typ",ult="Typen",plt="Wert",hlt="löschen",flt="deaktiviert",mlt='Stellen Sie vor dem Schreiben an den Support sicher, dass Sie die Anweisungen auf der Webseite gelesen und verstanden haben: https://www.iobroker.net',glt='Wenn Sie immer noch Probleme mit der Verbindung zu Iot haben, können Sie im Forum Support anfordern',_lt='und erst danach sollten Sie eine E-Mail an support@iobroker.com schreiben',vlt='Kein iobroker.pro-Konto? Kaufen Sie es auf https://iobroker.pro für den validierten Zugriff oder erhalten Sie kostenlosen, aber eingeschränkten Zugriff.',ylt="durch Komma getrennt. Benutze * um alle Services zu erlauben.",blt="Der Schlüssel kann hier unter 'Documentation' gefunden werden",wlt="Der Name wurde vom Benutzer geändert",Slt="Wenn man eine eigene Cloud verwendet, man kann die Benutzung von selbst-signierten Zertifikaten erlauben.",xlt="Dieser Schlüssel wird benötigt um mit der Cloud zu kommunizieren. Man kann den Schlüssel unter https://iobroker.net bekommen. Es sieht wie folgt aus nickname_f1f439a0-001a-11e7-bc64-92361f002671",klt="Normalerweise muss diese Option nicht geändert werden. Dies ist nur notwendig, wenn man eigenen Cloud verwendet.",$lt="Damit wird definiert wie Funktion und Raum miteinander verbunden werden; z.B. mit 'im': Licht im Schlafzimmer",Clt="Gruppen können aus gemischten Geräten (Schaltern und Dimmern) bestehen. Sie können mit ON/OFF sowie Prozentwerten angesteuert werden, hier kann definiert werden welcher Prozentsatz OFF entspricht.",Elt="Die automatischen Namen werden im Schema Raum-Funktion generiert. Hiermit kann man es auf Funktion-Raum geändert werden.",Tlt="Web Instanz, die für ihre Anfragen aus dem Cloud angezeigt wird.",Olt="Man kann hier die Sprache definieren um zwischen US Alexa Skill und DE Alexa Skill umschalten zu können",Dlt="Wenn diese Option aktiviert wird, so werden die Einstellungen nur für diese Instanz gespeichert. So ist es möglich in einer anderen Instanz andere Namen zu setzen.",Alt="Für jedes Kommando wird eine Textantwort generiert. Hier kannst du die Objekt ID angeben, an welche die Textantwort gesendet werden soll, z.B. sayit.0.tts.text.",Nlt="Workaround für fehlende Kommunikation mit Alexa nach Verbindungsabbruch. Damit kann man zwingen den Adapter neu zu starten und das Problem umgehen.",Mlt="Sie können nicht % im Passwort verwenden. Wir arbeiten an der Lösung.",jlt=`Das Passwort muss mindestens 8 Zeichen lang sein und Zahlen sowie Groß- und Kleinbuchstaben enthalten. Bitte ändern Sie es im ioBroker.pro-Profil +`,Ilt="Wenn Sie eine Wiederherstellung aus einer Sicherung durchgeführt oder Ihre Instanz von einem Gerät auf ein anderes verschoben oder die IoT-Instanz gelöscht und erneut hinzugefügt haben, müssen Sie die Verbindungssicherheitszertifikate mit diesem Knopf herunterladen.",zlt="Sollte die Anmeldung am Alexa Skill/Google Action/Alisa mit den ioBroker.pro-Anmeldedaten fehlschlagen, dann drücken Sie bitte den untenstehenden Button.",Rlt='Bei Fragen in einer beliebigen Sprache wenden Sie sich bitte hier im Forum an: Link ',Plt="Bitte wählen Sie einen TYPE und einen TRAIT nach dem Hinzufügen eines Status. Um mehrere Merkmale hinzuzufügen, fügen Sie eine andere ID und ein anderes Merkmal hinzu, jedoch denselben intelligenten Namen, Typ und Raum. Komma getrennt für die mehreren intelligenten Namen. Um einen Raum zuzuweisen, verwenden Sie bitte die ioBroker Enums/Aufzählungen. Mit Attributen können Sie beispielsweise einen Bereich für die Farbtemperatur festlegen. Infos zu Attribute finden Sie hier. Das leere Attribut ist {}",Llt="Suche",Flt="Name",Blt="Raum",Wlt="ID",Hlt="IoB-Typ",Ult="Attribute",Vlt="Automatisch",Glt="Löschen",qlt="Dimmer",Jlt="An/Aus",Xlt="Farbe",Ylt="Erkennung",Klt="Sperren",Zlt="Modus",Qlt="Stummgeschaltet",ect="Prozentsatz",tct="Temperatur",nct="Volumen",rct="Steckdose",oct="Licht",sct="Dimmer",act="Thermostat",ict="Fensterrollos",lct="Tor",cct="sperren",dct="Farbton",uct="Bewegung",pct="Schieberegler",hct="Temperatur",fct="Fenster",mct="Thermostat",gct="Licht",_ct="Klimaanlage",vct="Fensterrollos",yct="Kontaktsensor",bct="Kontrolle",wct="Tür",Sct="Tor",xct="Farbton",kct="Bewegung",$ct="Schieberegler",Cct="Steckdose",Ect="Staubsauger",Tct="Volumengruppe",Oct="Fenster",Dct="Sensor",Act="Fensterrollos",Nct="Umschalten",Mct={"(Set to 0 if behavior not desired)":"(Auf 0 setzten, falls das Verhalten unerwünscht ist)","(you can separate names with comma)":"Mehrere Namen können separiert mit Kommas angegeben werden",Active:Uit,"Add device":"Gerät hinzufügen","Add service":"Dienst hinzufügen",Addresses:Vit,"Alexa devices":"Alexa-Geräte","Alisa devices":"Alisa Geräte","Allow admin access (only pro)":"Erlaube Zugriff auf Admin (nur pro)","Allow self-signed certificates":"Erlaube selbst-signierte Zertifikate","Amazon Alexa":"Amazon Alexa","Are you sure?":"Wirklich sicher?","Attributes has not correct JSON format.":"Attributes ist nicht im korrekten JSON Format","Authentication must be disabled. You can create second instance extra for cloud.":"Die Authentifizierung muss deaktiviert sein. Sie können zweite Instanz extra für Cloud erstellen.",Cancel:Git,"Cannot add this object":"Dieses Objekt kann nicht hinzugefügt werden, da es nicht unterstützt wird.","Cannot read devices!":"Geräte können nicht gelesen werden!","Certificates will be updated after initiated restart":"Zertifikate werden nach dem Neustart aktualisiert","Certificates will be updated after start":"Zertifikate werden nach dem Start aktualisiert","Click now Get new connection certificates to request new temporary password":'Klicken Sie jetzt auf "Neue Verbindungszertifikate anfordern", um ein neues temporäres Passwort anzufordern',Close:qit,"Cloud URL":"Cloud-URL","Cloud adapter settings":"Einstellungen für Cloud-Adapter",Commands:Jit,"Concatenate words with":"Verbinde Raum und Funktion mit","Connection timeout":"Verbindungs-Timeout(ms)","Debug outputs":"Ausgaben debuggen","Decrement color temperature":"Verringern der Farbtemperatur","Decrement percentage":"Prozentsatz der Verringerung","Decrement target temperature":"Solltemperatur verringern",Default:Xit,"Device %s was not added":"Gerät %s wurde nicht hinzugefügt","Device will be deactivated.":"Gerät wird für die Sprachsteuerung deaktiviert.","Device will be disabled.":"Gerät %s wird aus der Liste entfernt.",Dimmer:Yit,"Duplicate name":"Name wurde schon benutzt","Edit smart name":"Smartname editieren",Error:"Fehler","Extended options":"Erweiterte Einstellungen",Filter:Kit,"For help use this forum":"Für Hilfe besuche diesen Forumbeitrag",Functions:Zit,"Get actual temperature":"Aktuelle Temperatur abrufen","Get new connection certificates":"Neue Verbindungszertifikate anfordern","Get new service URL key":"Neuen Service-URL-Schlüssel abrufen","Get target temperature":"Solltemperatur abrufen","Google Home":"Google Home","IFTTT key":"IFTTT key","Increment color temperature":"Erhöhung der Farbtemperatur","Increment percentage":"Prozentsatz erhöhen","Increment target temperature":"Solltemperatur erhöhen",Instance:Qit,"Instance does not exists":"Instanz existiert nicht","Instance is not active.":"Instanz ist nicht aktiv.","Instance must be enabled":"Instanz muss aktiviert sein","Instance must run to deliver the data":"Die Instanz muss laufen um die Daten zu liefern","Invalid object":"Ungültiges Objekt",Language:elt,"Load configuration from file":"Konfiguration aus Datei laden",Message:tlt,"OFF level for switches":"OFF level for switches","OFF level for switches in %":"AUS-Pegel für Schalter in %",Off:nlt,Ok:rlt,On:olt,"On/Off":"An aus",Options:slt,"Personal settings (only pro)":"Eigene Einstellungen (nur pro)","Ping timeout:":"Ping-Timeout(ms)","Place function in names first":"Platziere Funktionsnamen vorne","Please add action and trait to complete the Google Home state.":"Bitte fügen Sie eine Aktion und ein Merkmal hinzu, um den Google Home-Status zu vervollständigen.","Please add type and trait to complete the Google Home state.":"Bitte füge eine Type und Trait hinzu um den Google Home State zu vervollständigen.","Please select object ID...":"Bitte Objekt ID auswählen ...","Please write your email only in lower case letters":"Bitte E-Mail nur in Kleinbuchstaben schreiben","Read lock state":"Verschlusszustand lesen","Replace in names":"Ersetze in Namen","Request email with password one more time":"Noch einmal eine E-Mail mit Passwort anfordern","Restart on disconnect":"Neustart bei Verbindungsabbruch",Review:alt,Rooms:ilt,Save:llt,"Save and close":"Speichern und schließen","Save configuration to file":"Konfiguration in Datei speichern","Save settings and the names will be changed":"Speichere die Einstellungen um die neuen Namen zu sehen",Select:clt,"Service names":"Servicenamen","Services and IFTTT":"Services und IFTTT","Set color":"Farbe einstellen","Set color temperature":"Farbtemperatur einstellen","Set lock state":"Verschlussstatus einstellen","Set percentage":"Prozent einstellen","Set target temperature":"Solltemperatur einstellen","Smart Devices":"Smart Geräte","Smart Enums":"Smart Aufzählungen","Smart Media":"Smart Media","Smart enums":"Intelligente Aufzählungen","Smart name":"Smart-Name","Smart name for %s":"Smart Name für %s","To apply this setting, the restart of adapter must be done. Agree?":"Um diese Einstellung zu ändern ist es erforderlich, diese Instanz neu zu starten. Einverstanden?","To auto detect devices please assign a room and function to the channel if no channel available than assign to a device. Not only to the state or device. And enable them under SmartEnum/Intelligente Aufzählung":"Für automatische Erkennung, unter Objekte ordne einem Channel (Device wenn kein Channel vorhanden ist) ein Raum und Funktion zu. Es reicht nicht einem State oder Device den Raum zuzuordnen. Räume/Funktionen können unter Aufzählung (Anzeigen über den weißen Pfeil oben rechts) hinzugefügt werden und müssen im IoT Adapter unter Intelligente Aufzählung aktiviert werden. Um manuelle States wieder automatisch erkennen zu lassen muss der State gelöscht werden.","Turn off":"Ausschalten","Turn on":"Einschalten",Type:dlt,Types:ult,"Use Nightscout instance":"Benutze Nightscout Instanz","Use following link for IFTTT":"Benutze folgenden Link für IFTTT","Use following link for custom service":"Benutze folgende Link für einen eigenen Service","Use text2command instance":"Benutze text2command Instanz",Value:plt,"White list for services":"White list für Services","Write response to":"Schreibe Antwort ins","Yandex Алиса":"Yandex Алиса","You can enter several names divided by comma":"Man kann mehrere durch Komma getrennte Namen eingeben","amazon link":"Falls du den Alexa Skill benutzt, schreibe doch bitte hier eine Review.
Beispiele kann man hier anschauen.","by ON":"bei AN",clear:hlt,default:"Systemsprache",disabled:flt,help_link_tip1:mlt,help_link_tip2:glt,help_link_tip3:_lt,help_tip:vlt,info_allowedServices:ylt,info_iftttKey:blt,"ioBroker.pro Login":"ioBroker.pro Login","ioBroker.pro Password":"ioBroker.pro Passwort","omit value":"kein Wert","last value":"letzter Wert",modified:wlt,"no type":"kein Typ",tooltip_allowSelfSignedCertificate:Slt,tooltip_apikey:xlt,tooltip_cloudUrl:klt,tooltip_concatWord:$lt,tooltip_deviceOffLevel:Clt,tooltip_functionFirst:Elt,tooltip_instance:Tlt,tooltip_language:Olt,tooltip_noCommon:Dlt,tooltip_responseOID:Alt,tooltip_restartOnDisconnect:Nlt,"Short answer for blood sugar":"Kurze Antwort für Blutzucker",cannot_use_password:Mlt,invalid_password_warning:jlt,new_certs_tip:Ilt,new_credentials_tip:zlt,"Create IoT credentials anew":"IoT-Anmeldeinformationen neu erstellen",forum_tip:Rlt,"Save settings before pressing this button":"Einstellungen müssen gespeichert werden, bevor Sie diese Taste drücken","Auto Mode":"Automatikmodus","Manual Mode":"Manueller Modus",manualModeHint:Plt,"not activated":"nicht aktiviert","Google devices":"Google-Geräte","Show/Hide help":"Hilfe ein- / ausblenden","Show all devices for print out":"Alle Geräte zum Ausdrucken anzeigen",Search:Llt,"List of devices to print out, e.g. to give all device names to your partner.":"Liste der auszudruckenden Geräte, z. um Ihrem Partner/in alle Gerätenamen zu zeigen.",Name:Flt,Function:"Funktion",Room:Blt,"Copy to clipboard":"In die Zwischenablage kopieren","Toggle expert mode":"Expertenmodus umschalten",ID:Wlt,"Smart names":"Intelligente Namen",ioBType:Hlt,"Function/Trait":"Funktion / Eigenschaft",Attributes:Ult,Auto:Vlt,"Conversation to GH":"In GH konvertieren","Conversation to ioB":"In ioB konvertieren","Information: The skill linking process was changed!":"Information: Der Skill Linking Prozess wurde geändert!","The linking process has been changed for a few months.":"Der Verknüpfungsprozess wurde vor einigen Monaten geändert.","Now there is no temporary password that will be sent by email.":"Jetzt gibt es kein temporäres Passwort, das per E-Mail gesendet wird.","The password is equal with ioBroker.pro and with password that was entered here in the settings!":"Das Passwort ist gleich mit ioBroker.pro und mit dem Passwort, das hier in den Einstellungen eingegeben wurde!","Not understood":"Nicht verstanden","Roger that":"Verstanden","Read blood sugar from":"Blutzucker lesen aus","Get actual humidity":"Holen Sie sich die tatsächliche Luftfeuchtigkeit","Get motion":"Bewegung bekommen","Get contact":"Kontaktstatus abrufen","Too many devices (%s) configured. Max number is 300":"Zu viele Geräte (%s) konfiguriert. Maximale Anzahl ist 300!","Allow remote access":"Fernzugriff zulassen","Admin instance":"Admin-Instanz","Web instance":"Webinstanz","Device %s will be disabled.":"Gerät %s wird deaktiviert.",Delete:Glt,Brightness:qlt,Power:Jlt,"Color temperature":"Farbtemperatur",Color:Xlt,Detection:Ylt,Lock:Klt,Mode:Zlt,Muted:Qlt,Percentage:ect,"Set point":"Sollwert",Temperature:tct,"Thermostat mode":"Thermostatmodus",Volume:nct,socket:rct,light:oct,dimmer:sct,thermostat:act,blind:ict,gate:lct,lock:cct,hue:dct,motion:uct,slider:pct,temperature:hct,window:fct,Thermostat:mct,Light:gct,AirCondition:_ct,Blind:vct,ContactSensor:yct,Control:bct,Door:wct,Gate:Sct,Hue:xct,Motion:kct,Slider:$ct,Socket:Cct,VacuumCleaner:Ect,VolumeGroup:Tct,Window:Oct,"Color HUE":"Farbe Farbton","Door sensor":"Türsensor",Sensor:Dct,"Vacuum cleaner":"Staubsauger","Volume group":"Volumengruppe","Window sensor":"Fenstersensor",Blinds:Act,"Grouped from %s and %s":"Gruppiert aus %s und %s","Default toggle behaviour (Only alexa v3)":"Standardmäßiges Umschaltverhalten (nur Alexa v3)","Do not toggle":"Nicht umschalten",Toggle:Nct,"This service is reserved for the ioBroker.visu app. Please use another service name.":"Dieser Dienst ist für die ioBroker.visu-App reserviert. Bitte verwenden Sie einen anderen Dienstnamen."},jct="Активно",Ict="Адреса",zct="Отмена",Rct="Закрыть",Pct="Команды",Lct="По умолчанию",Fct="Диммер",Bct="Фильтр",Wct="Функции",Hct="Экземпляр",Uct="Язык",Vct="Сообщение",Gct="выкл",qct="Ok",Jct="вкл",Xct="Настройки",Yct="Обзор",Kct="Комнаты",Zct="Сохранить",Qct="Выбрать",edt="Тип",tdt="Типы",ndt="Значение",rdt="очистить",odt="неактивно",sdt='Прежде чем писать в службу поддержки, убедитесь, что вы прочитали и поняли инструкции с веб-страницы: https://www.iobroker.net',adt='Если у вас все еще есть проблема с подключением к Iot, вы можете запросить поддержку на форуме',idt='и только после этого вы можете написать письмо на support@iobroker.com',ldt='Нет учетной записи iobroker.pro? Купите его на https://iobroker.pro для гарантированного доступа или получения бесплатного, но ограниченного доступа.',cdt="разделённые запятой. Используйте *, что бы разрешить все сервисы.",ddt="Свой ключ можно найти здесь в 'Documentation'",udt="Имя изменено пользователем",pdt="Если используется собственное облако, то можно разрешить использование самоподписанных сертификатов",hdt="Ключ необходимый для коммуникации с облаком. Его можно получить на https://iobroker.net и он похож на nickname_f1f439a0-001a-11e7-bc64-92361f002671",fdt="Обычно не нужно менять этот параметр. Только если используется собственное облако.",mdt="Можно указать каким словом соединять Функцию и Комнату. Например с 'в': Свет в зале.",gdt="Некоторые группы состоят из смешанных устройств: диммеров и переключателей. Разрешено управлять ими с помощью команд ON и OFF и с процентами",_dt="Обычно имена выглядят как Комната-Функция. Этой настройкой можно переключить на Функция-Комната.",vdt="Экземпляр WEB, который будет показываться при доступе из облака",ydt="Можно выбрать язык, что бы быстро переключаться между US Alexa Skill и DE Alexa Skill",bdt="Если выбрана эта опция, то настройки будут сохраняться только для этой инстанции. Что бы в другой инстанции можно было выбрать другие имена.",wdt="Для каждой команды будет генерироваться текстовый ответ. Вы можете определить здесь ID объекта , где этот текст должен быть записан. Например sayit.0.tts.text.",Sdt="Временное решение для проблемы с пропажей соединения с Alexa, после воссоединения с облаком. Этим можно перестартовать драйвер после потери соединения.",xdt="Вы не можете использовать% в пароле. Мы работаем над исправлением.",kdt=`Пароль должен содержать не менее 8 символов и должен состоять из цифр, прописных и строчных букв. Пожалуйста, измените его в профиле ioBroker.pro +`,$dt="Если вы сделали восстановление из резервной копии, перенесли свой экземпляр с одного устройства на другое или удалили экземпляр IoT и добавили его снова, вы должны загрузить сертификаты безопасности подключения с помощью этой кнопки",Cdt="Если не удается войти в Alexa Skill/Google Action/Alisa с данными для входа в ioBroker.pro, нажмите кнопку ниже.",Edt='Любые вопросы на любом языке, пожалуйста, задавайте здесь на форуме: ссылка ',Tdt="Пожалуйста, выберите TYPE и TRAIT после добавления состояния. Чтобы добавить несколько черт, добавьте другой идентификатор и черту, но то же имя, тип и номер. Запятая разделена для нескольких умных имен. Чтобы назначить комнату, пожалуйста, используйте ioBroker Enums/Aufzählungen. С помощью атрибутов вы можете, например, установить диапазон для цветовой температуры Информация о Атрибуты вы можете найти здесь. Пустой атрибут - {}",Odt="Поиск",Ddt="название",Adt="Комната",Ndt="ID",Mdt="Тип IoB",jdt="Атрибуты",Idt="Автоматически",zdt="Удалить",Rdt="Диммер",Pdt="Вкл/Выкл",Ldt="Цвет",Fdt="Обнаружение",Bdt="Замок",Wdt="Режим",Hdt="Приглушен",Udt="Процент",Vdt="Температура",Gdt="Объем",qdt="разъем",Jdt="свет",Xdt="диммер",Ydt="термостат",Kdt="жалюзи",Zdt="ворота",Qdt="замок",eut="оттенок",tut="движение",nut="ползунок",rut="температура",out="окно",sut="Термостат",aut="Свет",iut="Кондиционер",lut="Жалюзи",cut="Контактный датчик",dut="Контроль",uut="Дверь",put="Ворота",hut="оттенок",fut="Движение",mut="Слайдер",gut="Разъем",_ut="Пылесос",vut="Группа томов",yut="Окно",but="Датчик",wut="Жалюзи",Sut="Переключать",xut={"(Set to 0 if behavior not desired)":"(для деактивации установить на 0)","(you can separate names with comma)":"Вы можете ввести несколько имен, разделенных запятой",Active:jct,"Add device":"Добавить устройство","Add service":"Добавить услугу",Addresses:Ict,"Alexa devices":"Устройства Alexa","Alisa devices":"Устройства Алисы","Allow admin access (only pro)":"Разрешить доступ к admin (только pro)","Allow self-signed certificates":"Разрешить самоподписанные сертификаты","Amazon Alexa":"Amazon Alexa","Are you sure?":"Уверены?","Attributes has not correct JSON format.":"Атрибуты не в правильном формате JSON","Authentication must be disabled. You can create second instance extra for cloud.":"Аутентификация должна быть отключена. Вы можете создать дополнительный экземпляр для облака.",Cancel:zct,"Cannot add this object":"Невозможно добавить этот объект, потому что он не поддерживается.","Cannot read devices!":"Не могу прочитать устройства!","Certificates will be updated after initiated restart":"Сертификаты будут обновлены после инициированного перезапуска","Certificates will be updated after start":"Сертификаты будут обновлены после запуска","Click now Get new connection certificates to request new temporary password":"Нажмите «Получить новые сертификаты подключения», чтобы запросить новый временный пароль.",Close:Rct,"Cloud URL":"URL облака","Cloud adapter settings":"Настройки драйвера Cloud",Commands:Pct,"Concatenate words with":"Связывать комнаты и функции словом","Connection timeout":"Таймаут соединения(мс)","Debug outputs":"Вывод отладочной информации","Decrement color temperature":"Уменьшение цветовой температуры","Decrement percentage":"Уменьшение процентного значения","Decrement target temperature":"Уменьшение целевой температуры",Default:Lct,"Device %s was not added":"Устройство %s не было добавлено","Device will be deactivated.":"Устройство будет недоступно для голосового управления.","Device will be disabled.":"Устройство %s исчезнет из списка.",Dimmer:Fct,"Duplicate name":"Имя уже используется","Edit smart name":"Редактировать имя",Error:"Ошибка","Extended options":"Расширенные настройки",Filter:Bct,"For help use this forum":"Чтобы получить помощь, посетите этот форум пост",Functions:Wct,"Get actual temperature":"Получить фактическую температуру","Get new connection certificates":"Получение новых сертификатов подключения","Get new service URL key":"Получить новый ключ службы URL","Get target temperature":"Получить целевую температуру","Google Home":"Google Home","IFTTT key":"IFTTT key","Increment color temperature":"Увеличение цветовой температуры","Increment percentage":"Процент прироста","Increment target temperature":"Увеличение целевой температуры",Instance:Hct,"Instance does not exists":"Экземпляр не существует","Instance is not active.":"Экземпляр не активен.","Instance must be enabled":"Экземпляр должен быть включен","Instance must run to deliver the data":"Драйвер должен быть запущен, что бы отобразить данные","Invalid object":"Недействительный объект",Language:Uct,"Load configuration from file":"Загрузить конфигурацию из файла",Message:Vct,"OFF level for switches":"Уровень выключения для выключателей","OFF level for switches in %":"Уровень выключения для переключателей в %",Off:Gct,Ok:qct,On:Jct,"On/Off":"Вкл/выкл",Options:Xct,"Personal settings (only pro)":"Личные настройки (только pro)","Ping timeout:":"Пинг-Таймаут(мс)","Place function in names first":"Имена функций в начале","Please add action and trait to complete the Google Home state.":"Пожалуйста, добавьте действие и черту, чтобы завершить состояние Google Home.","Please add type and trait to complete the Google Home state.":"Пожалуйста, добавьте тип и черту, чтобы завершить состояние Google Home.","Please select object ID...":"Пожалуйста, выберите идентификатор объекта ...","Please write your email only in lower case letters":"Пожалуйста, пишите свою электронную почту только строчными буквами","Read lock state":"Чтение состояния блокировки","Replace in names":"Заменить в именах","Request email with password one more time":"Запросите письмо с паролем еще раз","Restart on disconnect":"Перезапуск при потере сединения",Review:Yct,Rooms:Kct,Save:Zct,"Save and close":"Сохранить и закрыть","Save configuration to file":"Сохранить конфигурацию в файл","Save settings and the names will be changed":"Сохраните настройки, что бы увидеть изменения",Select:Qct,"Service names":"Названия служб","Services and IFTTT":"Сервисы и IFTTT","Set color":"Установить цвет","Set color temperature":"Цветовая температура","Set lock state":"Установить состояние блокировки","Set percentage":"Установить процент","Set target temperature":"Установите целевую температуру","Smart Devices":"Smart устройства","Smart Enums":"Smart категории","Smart Media":"Smart Media","Smart enums":"Умные перечисления","Smart name":"Smart имя","Smart name for %s":"Умное имя для %s","To apply this setting, the restart of adapter must be done. Agree?":"Что бы поменять эту опцию, необходимо перезагрузить инстанцию. Согласны?","To auto detect devices please assign a room and function to the channel if no channel available than assign to a device. Not only to the state or device. And enable them under SmartEnum/Intelligente Aufzählung":"Для автоматического обнаружения под объектами назначают канал (устройство, если канал недоступен) комнате и функции. Недостаточно присвоить комнату состоянию или устройству. Комнаты/функции могут быть добавлены в нумерацию (обозначена белой стрелкой в правом верхнем углу) и должны быть активированы в адаптере IoT в разделе Интеллектуальное перечисление. Чтобы автоматически распознавать ручные состояния, это состояние должно быть удалено.","Turn off":"Выключи","Turn on":"Включи",Type:edt,Types:tdt,"Use Nightscout instance":"Использовать Nightscout","Use following link for IFTTT":"Используйте этот URL для IFTTT","Use following link for custom service":"Используйте этот URL для своего сервиса","Use text2command instance":"Использовать text2command",Value:ndt,"White list for services":"Белый список для сервисов","Write response to":"Писать ответ в","Yandex Алиса":"Yandex Алиса","You can enter several names divided by comma":"Вы можете ввести несколько имен, разделенных запятой","amazon link":"Если вы используете Alexa, пожалуйста оставьте свой отзыв здесь.
Примеры отзывов можно посмотреть здесь.","by ON":"при ВКЛ",clear:rdt,default:"системный",disabled:odt,help_link_tip1:sdt,help_link_tip2:adt,help_link_tip3:idt,help_tip:ldt,info_allowedServices:cdt,info_iftttKey:ddt,"ioBroker.pro Login":"Логин ioBroker.pro","ioBroker.pro Password":"Пароль ioBroker.pro","omit value":"нет значения","last value":"последнее значение",modified:udt,"no type":"нет типа",tooltip_allowSelfSignedCertificate:pdt,tooltip_apikey:hdt,tooltip_cloudUrl:fdt,tooltip_concatWord:mdt,tooltip_deviceOffLevel:gdt,tooltip_functionFirst:_dt,tooltip_instance:vdt,tooltip_language:ydt,tooltip_noCommon:bdt,tooltip_responseOID:wdt,tooltip_restartOnDisconnect:Sdt,"Short answer for blood sugar":"Краткий ответ на уровень сахара в крови",cannot_use_password:xdt,invalid_password_warning:kdt,new_certs_tip:$dt,new_credentials_tip:Cdt,"Create IoT credentials anew":"Создайте учетные данные IoT заново",forum_tip:Edt,"Save settings before pressing this button":"Сохраните настройки перед нажатием этой кнопки","Auto Mode":"Автоматический режим","Manual Mode":"Ручной режим",manualModeHint:Tdt,"not activated":"не активирован","Google devices":"Устройства Google","Show/Hide help":"Показать / Скрыть помощь","Show all devices for print out":"Показать все устройства для распечатки",Search:Odt,"List of devices to print out, e.g. to give all device names to your partner.":"Список устройств для распечатки, например, что бы показать все названия устройств вашему партнеру/партнёрше.",Name:Ddt,Function:"функция",Room:Adt,"Copy to clipboard":"Скопировать в буфер обмена","Toggle expert mode":"Переключить режим эксперта",ID:Ndt,"Smart names":"Умные имена",ioBType:Mdt,"Function/Trait":"Функция / Тр",Attributes:jdt,Auto:Idt,"Conversation to GH":"Конвертировать в GH","Conversation to ioB":"Конвертировать в ioB","Information: The skill linking process was changed!":"Информация: Изменен процесс привязки навыков!","The linking process has been changed for a few months.":"Несколько месяцев назад изменился процесс привязки.","Now there is no temporary password that will be sent by email.":"Теперь нет временного пароля, который отправлялся по электронной почте.","The password is equal with ioBroker.pro and with password that was entered here in the settings!":"Пароль совпадает с ioBroker.pro и с паролем, который был введен здесь в настройках!","Not understood":"Не понятно","Roger that":"Понятно","Read blood sugar from":"Считывать уровень сахара в крови из","Get actual humidity":"Получите фактическую влажность","Get motion":"Получить движение","Get contact":"Получить статус контакта","Too many devices (%s) configured. Max number is 300":"Настроено слишком много устройств (%s). Максимальное количество - 300!","Allow remote access":"Разрешить удаленный доступ","Admin instance":"Экземпляр администратора","Web instance":"Веб-экземпляр","Device %s will be disabled.":"Устройство %s будет отключено.",Delete:zdt,Brightness:Rdt,Power:Pdt,"Color temperature":"Цветовая температура",Color:Ldt,Detection:Fdt,Lock:Bdt,Mode:Wdt,Muted:Hdt,Percentage:Udt,"Set point":"Установить точку",Temperature:Vdt,"Thermostat mode":"Режим термостата",Volume:Gdt,socket:qdt,light:Jdt,dimmer:Xdt,thermostat:Ydt,blind:Kdt,gate:Zdt,lock:Qdt,hue:eut,motion:tut,slider:nut,temperature:rut,window:out,Thermostat:sut,Light:aut,AirCondition:iut,Blind:lut,ContactSensor:cut,Control:dut,Door:uut,Gate:put,Hue:hut,Motion:fut,Slider:mut,Socket:gut,VacuumCleaner:_ut,VolumeGroup:vut,Window:yut,"Color HUE":"Цвет ОТТЕНОК","Door sensor":"Датчик двери",Sensor:but,"Vacuum cleaner":"Пылесос","Volume group":"Группа томов","Window sensor":"Датчик окна",Blinds:wut,"Grouped from %s and %s":"Сгруппировано из %s и %s","Default toggle behaviour (Only alexa v3)":"Поведение переключения по умолчанию (только Alexa v3)","Do not toggle":"Не переключать",Toggle:Sut,"This service is reserved for the ioBroker.visu app. Please use another service name.":"Эта служба зарезервирована для приложения ioBroker.visu. Пожалуйста, используйте другое имя службы."},kut="Ativo",$ut="Endereços",Cut="Cancelar",Eut="Feixar",Tut="Comandos",Out="Padrão",Dut="regulador de luz",Aut="Filtro",Nut="Funções",Mut="Instância",jut="Língua",Iut="mensagem",zut="desligado",Rut="Ok",Put="ligado",Lut="Opções",Fut="Reveja",But="quartos",Wut="Salve",Hut="Selecione",Uut="Tipo",Vut="Tipos",Gut="Valor",qut="limpar",Jut="desativado",Xut='Antes de escrever para o suporte, certifique-se de ler e entender as instruções da página da Web: https://www.iobroker.net',Yut='Se você ainda tiver problemas com a conexão com o Iot, poderá solicitar suporte no Fórum',Kut='e somente depois disso, você deve escrever um email para support@iobroker.com',Zut='Nenhuma conta no iobroker.pro? Registe-se gratuamente no https://iobroker.pro , para obter um acesso limitado ou compre um acesso sem limitação.',Qut="dividido por vírgula. Use * para permitir todos os serviços.",ept="Você pode encontrar sua chave aqui, no botão 'Documentation'",tpt="O nome foi modificado pelo usuário",npt="Se você usa sua própria nuvem, você pode permitir o uso de certificados auto-assinados para a nuvem.",rpt="Essa chave é necessária para se comunicar com uma nuvem. Você pode obter a API-KEY em https://iobroker.net. A chave parece tem esse formato: apelido_f1f439a0-001a-11e7-bc64-92361f002671",opt="Normalmente, você não precisa mudá-lo. Só é necessário se você planeja usar sua própria nuvem.",spt="Defina como concatenar o Quarto e a Função. Por exemplo com 'na': luz na sala de estar.",apt="Alguns grupos consistem em dispositivos mistos: regulador de luz e interruptores. É permitido controlá-los com comandos ligar/desligar e com porcentagens",ipt="Normalmente, os nomes são gerados no esquema quarto_função. Aqui pode mudar para função_quarto.",lpt="Instância da Web, que será mostrada para suas conexões a da nuvem.",cpt="Você pode definir os idiomas para mudar rapidamente entre o skill da Alexa do EUA e o da Alemãnha.",dpt="Se ativado, as configurações serão armazenadas somente para esta instância. Então, na outra instância, outros nomes podem ser definidos.",upt="Para cada comando, uma resposta de texto é gerada. Aqui você pode especificar o ID do objeto ao qual a resposta de texto deve ser enviada, por exemplo sayit.0.tts.text.",ppt="Solução alternativa para falta de comunicação com o Alexa após a desconexão. Isso pode forçar você a reiniciar o adaptador e solucionar o problema.",hpt="Você não pode usar% na senha. Estamos trabalhando na correção.",fpt=`A senha deve ter pelo menos 8 caracteres e deve ter números, letras maiúsculas e minúsculas. Altere-o no perfil ioBroker.pro +`,mpt="Se você fez uma restauração a partir do backup ou moveu sua instância de um dispositivo para outro ou excluiu a instância da IoT e a adicionou novamente, carregue os certificados de segurança da conexão com este botão",gpt="Se o login no Alexa Skill/Google Action/Alisa com os dados de login ioBroker.pro falhar, pressione o botão abaixo.",_pt='Qualquer dúvida em qualquer idioma, pergunte aqui no fórum: link ',vpt="Selecione um TYPE e um TRAIT depois de adicionar um estado. Para adicionar vários traços, adicione um ID e traço diferentes, mas o mesmo nome, tipo e sala inteligentes. Vírgula separada para os vários nomes inteligentes. Para atribuir uma sala, use o ioBroker Enums/Aufzählungen. Com os atributos, você pode, por exemplo, definir um intervalo para a temperatura da cor. Atributos que você pode encontrar aqui. O atributo vazio é {}",ypt="Procurar",bpt="Nome",wpt="Quarto",Spt="ID",xpt="Tipo IoB",kpt="Atributos",$pt="Automaticamente",Cpt="Excluir",Ept="Obscuro",Tpt="Ligado/Desligado",Opt="Cor",Dpt="Detecção",Apt="Trancar",Npt="Modo",Mpt="silenciado",jpt="Percentagem",Ipt="Temperatura",zpt="Volume",Rpt="soquete",Ppt="luz",Lpt="obscuro",Fpt="termostato",Bpt="persianas",Wpt="portão",Hpt="trancar",Upt="matiz",Vpt="movimento",Gpt="controle deslizante",qpt="temperatura",Jpt="janela",Xpt="Termostato",Ypt="Luz",Kpt="Condição do ar",Zpt="Persianas",Qpt="Sensor de contato",eht="Ao controle",tht="Porta",nht="Portão",rht="Matiz",oht="Movimento",sht="Controle deslizante",aht="soquete",iht="Aspirador de pó",lht="Grupo de volumes",cht="Janela",dht="Sensor",uht="Persianas",pht="Alternar",hht={"(Set to 0 if behavior not desired)":"(Defina para 0 se o comportamento não for desejado)","(you can separate names with comma)":"Você pode inserir vários nomes divididos por vírgula",Active:kut,"Add device":"Adicionar dispositivo","Add service":"Adicionar serviço",Addresses:$ut,"Alexa devices":"Dispositivos Alexa","Alisa devices":"Dispositivos Alisa","Allow admin access (only pro)":"Permitir acesso de administrador (apenas pro)","Allow self-signed certificates":"Permitir certificados auto-assinados","Amazon Alexa":"Amazon Alexa","Are you sure?":"Você tem certeza?","Attributes has not correct JSON format.":"Os atributos não estão no formato JSON correto.","Authentication must be disabled. You can create second instance extra for cloud.":"A autenticação deve ser desativada. Você pode criar uma segunda instância extra para a nuvem.",Cancel:Cut,"Cannot add this object":"Não é possível adicionar este objeto, porque não é suportado.","Cannot read devices!":"Não é possível ler dispositivos!","Certificates will be updated after initiated restart":"Os certificados serão atualizados após a primeira reinicialização","Certificates will be updated after start":"Certificados serão atualizados após o início","Click now Get new connection certificates to request new temporary password":'Clique agora "Obter novos certificados de conexão" para solicitar uma nova senha temporária',Close:Eut,"Cloud URL":"URL da nuvem","Cloud adapter settings":"Configurações do adaptador de nuvem",Commands:Tut,"Concatenate words with":"Concatenar palavras com","Connection timeout":"Tempo limite de conexão (ms)","Debug outputs":"Saídas de depuração","Decrement color temperature":"Temperatura de cor decrescente","Decrement percentage":"Percentual de decréscimo","Decrement target temperature":"Temperatura alvo de descida",Default:Out,"Device %s was not added":"O dispositivo %s não foi adicionado","Device will be deactivated.":"O dispositivo será desativado.","Device will be disabled.":"O dispositivo será desabilitado.",Dimmer:Dut,"Duplicate name":"Duplicar nome","Edit smart name":"Edite o nome inteligente",Error:"Erro","Extended options":"Configuração avançada",Filter:Aut,"For help use this forum":"Para obter ajuda, visite este fórum postar",Functions:Nut,"Get actual temperature":"Obter temperatura atual","Get new connection certificates":"Obter novos certificados de conexão","Get new service URL key":"Obter nova chave do URL de serviço","Get target temperature":"Obter temperatura desejada","Google Home":"Google Home","IFTTT key":"Chave IFTTT","Increment color temperature":"Incremento da temperatura de cor","Increment percentage":"Percentual de incremento","Increment target temperature":"Incremento da temperatura desejada",Instance:Mut,"Instance does not exists":"Instância não existe","Instance is not active.":"A instância não está ativa.","Instance must be enabled":"A instância deve estar ativada","Instance must run to deliver the data":"A instância deve ser executada para obter os dados","Invalid object":"Objeto inválido",Language:jut,"Load configuration from file":"Carregar configuração do arquivo",Message:Iut,"OFF level for switches":"Nível OFF para interruptores","OFF level for switches in %":"Nível OFF para interruptores em %",Off:zut,Ok:Rut,On:Put,"On/Off":"ligado/desligado",Options:Lut,"Personal settings (only pro)":"Configurações pessoais (somente pro)","Ping timeout:":"Tempo limite de ping (ms)","Place function in names first":"Coloque a função na frente dos nomes","Please add action and trait to complete the Google Home state.":"Adicione ação e característica para concluir o estado da Página inicial do Google.","Please add type and trait to complete the Google Home state.":"Adicione tipo e característica para concluir o estado da Página inicial do Google.","Please select object ID...":"Por favor selecione o ID do objeto ...","Please write your email only in lower case letters":"Por favor, escreva seu e-mail apenas em letras minúsculas","Read lock state":"Ler estado de bloqueio","Replace in names":"Substitua nos nomes","Request email with password one more time":"Solicite email com senha mais uma vez","Restart on disconnect":"Reiniciar na desconexão",Review:Fut,Rooms:But,Save:Wut,"Save and close":"Salvar e fechar","Save configuration to file":"Salvar configuração no arquivo","Save settings and the names will be changed":"Salve as configurações e os nomes serão alterados",Select:Hut,"Service names":"Nome do serviço","Services and IFTTT":"Serviços e IFTTT","Set color":"Definir cor","Set color temperature":"Definir temperatura de cor","Set lock state":"Definir estado de bloqueio","Set percentage":"Definir porcentagem","Set target temperature":"Definir temperatura desejada","Smart Devices":"Dispositivos inteligentes","Smart Enums":"Enumeração inteligentes","Smart Media":"Smart Media","Smart enums":"Enumeração inteligentes","Smart name":"Nome inteligente","Smart name for %s":"Nome inteligente para %s","To apply this setting, the restart of adapter must be done. Agree?":"Para aplicar esta configuração, o adaptador tem que ser reiniciado. Aceita?","To auto detect devices please assign a room and function to the channel if no channel available than assign to a device. Not only to the state or device. And enable them under SmartEnum/Intelligente Aufzählung":"Para detecção automática, coloque embaixo dos objetos em um canal (dispositivo se não houver canal) uma sala e função também. Não é suficiente atribuir um estado ou dispositivo. Salas/funções podem ser adicionadas enumeradas e devem ser ativadas no adaptador IoT em Enumeração inteligente. Para detectar automaticamente estados manuais novamente, o estado deve ser limpo.","Turn off":"Desligar","Turn on":"Ligar",Type:Uut,Types:Vut,"Use Nightscout instance":"Use a instância Nightscout","Use following link for IFTTT":"Use o seguinte link para IFTTT","Use following link for custom service":"Use o seguinte link para o outros serviços","Use text2command instance":"Use a instância text2command",Value:Gut,"White list for services":"Lista branca para serviços","Write response to":"Escreva a resposta para","Yandex Алиса":"Yandex Alice","You can enter several names divided by comma":"Você pode inserir vários nomes divididos por vírgula","amazon link":"Se você usa o ioBroker skill para a Alexa, escreva um comentário para nós aqui.
Exemplos podem ser encontrados aqui.","by ON":"por ON",clear:qut,default:"padrão",disabled:Jut,help_link_tip1:Xut,help_link_tip2:Yut,help_link_tip3:Kut,help_tip:Zut,info_allowedServices:Qut,info_iftttKey:ept,"ioBroker.pro Login":"ioBroker.pro Login","ioBroker.pro Password":"Senha do ioBroker.pro","omit value":"sem valor","last value":"último valor",modified:tpt,"no type":"nenhum tipo",tooltip_allowSelfSignedCertificate:npt,tooltip_apikey:rpt,tooltip_cloudUrl:opt,tooltip_concatWord:spt,tooltip_deviceOffLevel:apt,tooltip_functionFirst:ipt,tooltip_instance:lpt,tooltip_language:cpt,tooltip_noCommon:dpt,tooltip_responseOID:upt,tooltip_restartOnDisconnect:ppt,"Short answer for blood sugar":"Resposta curta para açúcar no sangue",cannot_use_password:hpt,invalid_password_warning:fpt,new_certs_tip:mpt,new_credentials_tip:gpt,"Create IoT credentials anew":"Crie credenciais de IoT novamente",forum_tip:_pt,"Save settings before pressing this button":"Salve as configurações antes de pressionar este botão","Auto Mode":"Modo automático","Manual Mode":"Modo manual",manualModeHint:vpt,"not activated":"não ativado","Google devices":"Dispositivos do Google","Show/Hide help":"Mostrar / ocultar ajuda","Show all devices for print out":"Mostrar todos os dispositivos para impressão",Search:ypt,"List of devices to print out, e.g. to give all device names to your partner.":"Lista de dispositivos a serem impressos, p. para dar todos os nomes de dispositivos ao seu parceiro.",Name:bpt,Function:"Função",Room:wpt,"Copy to clipboard":"Copiar para área de transferência","Toggle expert mode":"Alternar modo especialista",ID:Spt,"Smart names":"Nomes inteligentes",ioBType:xpt,"Function/Trait":"Função / Traço",Attributes:kpt,Auto:$pt,"Conversation to GH":"Converta para GH","Conversation to ioB":"Converta para ioB","Information: The skill linking process was changed!":"Informações: O processo de vinculação de habilidades foi alterado!","The linking process has been changed for a few months.":"O processo de vinculação foi alterado por alguns meses.","Now there is no temporary password that will be sent by email.":"Agora não existe uma senha temporária que será enviada por e-mail.","The password is equal with ioBroker.pro and with password that was entered here in the settings!":"A senha é igual a ioBroker.pro e com a senha que foi digitada aqui nas configurações!","Not understood":"Não entendido","Roger that":"Entendido","Read blood sugar from":"Leia o açúcar no sangue de","Get actual humidity":"Obtenha a umidade real","Get motion":"Mexa-se","Get contact":"Obter status de contato","Too many devices (%s) configured. Max number is 300":"Muitos dispositivos (%s) configurados. O número máximo é 300!","Allow remote access":"Permitir acesso remoto","Admin instance":"Instância de administrador","Web instance":"Instância da web","Device %s will be disabled.":"O dispositivo %s será desabilitado.",Delete:Cpt,Brightness:Ept,Power:Tpt,"Color temperature":"Temperatura de cor",Color:Opt,Detection:Dpt,Lock:Apt,Mode:Npt,Muted:Mpt,Percentage:jpt,"Set point":"Ponto de ajuste",Temperature:Ipt,"Thermostat mode":"Modo termostato",Volume:zpt,socket:Rpt,light:Ppt,dimmer:Lpt,thermostat:Fpt,blind:Bpt,gate:Wpt,lock:Hpt,hue:Upt,motion:Vpt,slider:Gpt,temperature:qpt,window:Jpt,Thermostat:Xpt,Light:Ypt,AirCondition:Kpt,Blind:Zpt,ContactSensor:Qpt,Control:eht,Door:tht,Gate:nht,Hue:rht,Motion:oht,Slider:sht,Socket:aht,VacuumCleaner:iht,VolumeGroup:lht,Window:cht,"Color HUE":"Cor MATIZ","Door sensor":"Sensor de porta",Sensor:dht,"Vacuum cleaner":"Aspirador de pó","Volume group":"Grupo de volumes","Window sensor":"Sensor de janela",Blinds:uht,"Grouped from %s and %s":"Agrupados de %s e %s","Default toggle behaviour (Only alexa v3)":"Comportamento de alternância padrão (somente alexa v3)","Do not toggle":"Não alterne",Toggle:pht,"This service is reserved for the ioBroker.visu app. Please use another service name.":"Este serviço está reservado para o aplicativo ioBroker.visu. Use outro nome de serviço."},fht="Actief",mht="adressen",ght="Annuleer",_ht="Dichtbij",vht="commando's",yht="Standaard",bht="dimmer",wht="Filter",Sht="functies",xht="Aanleg",kht="Taal",$ht="Bericht",Cht="uit",Eht="OK",Tht="op",Oht="opties",Dht="Beoordeling",Aht="kamers",Nht="Opslaan",Mht="kiezen",jht="Type",Iht="Soorten",zht="Waarde",Rht="wissen",Pht="invalide",Lht='Voordat u ter ondersteuning schrijft, moet u ervoor zorgen dat u de instructies van de webpagina hebt gelezen en begrepen: https://www.iobroker.net',Fht='Als je nog steeds problemen hebt met de verbinding met Iot, kun je support im Forum aanvragen',Bht='en pas daarna moet u een e-mail schrijven naar support@iobroker.com',Wht='Geen iobroker.pro-account? Koop het op https://iobroker.pro voor gevalideerde toegang of krijg gratis toegang, maar beperkte toegang.',Hht="gedeeld door een komma. Gebruik * om alle services toe te staan.",Uht="Je kunt je belangrijkste hier vinden onder 'Documentatie'",Vht="Naam is gewijzigd door gebruiker",Ght="Als u uw eigen cloud gebruikt, kunt u het gebruik van zelfondertekende certificaten voor de cloud toestaan.",qht="Deze sleutel is vereist om te communiceren met een cloud. Je kunt de API-KEY op https://iobroker.net krijgen en het lijkt op nickname_f1f439a0-001a-11e7-bc64-92361f002671",Jht="Normaal gesproken hoeft u dit niet te veranderen. Alleen vereist als u van plan bent uw eigen cloud te gebruiken.",Xht="Bepaal hoe kamer en functie moeten worden samengevoegd. Bijv. met 'in': licht in de woonkamer.",Yht="Sommige groepen bestaan ​​uit gemengde apparaten: dimmers en schakelaars. Het is toegestaan ​​om ze te besturen met AAN- en UIT-commando's en met percentages",Kht="Normaal gezien zien de namen eruit als room_function. Hier kun je het omschakelen naar function_room.",Zht="Web-instantie, die wordt weergegeven voor uw verbindingen vanuit de cloud.",Qht="Je kunt de talen definiëren om snel te schakelen tussen US Alexa Skill en DE Alexa Skill.",eft="Indien ingeschakeld, worden de instellingen alleen voor deze instantie opgeslagen. Dus in het andere geval kunnen de andere namen worden ingesteld.",tft="Voor elke opdracht wordt het tekstantwoord gegenereerd. U kunt hier de Object-ID definiëren, waar deze tekst naartoe moet worden geschreven. Bijv. sayit.0.tts.text.",nft="Oplossing voor ontbrekende verbinding met Alexa nadat de verbinding met de cloud verloren was gegaan. Met deze optie kunt u de adapter opnieuw opstarten na elke verbreking en het zal werken.",rft="U kunt% in wachtwoord niet gebruiken. We werken aan de oplossing.",oft=`Wachtwoord moet minimaal 8 tekens lang zijn en moet cijfers, hoofdletters en kleine letters bevatten. Wijzig dit in het ioBroker.pro-profiel +`,sft="Als u een herstelbewerking hebt uitgevoerd vanaf een back-up of uw instantie van het ene apparaat naar het andere hebt verplaatst of het IoT-exemplaar hebt verwijderd en opnieuw hebt toegevoegd, moet u de verbindingsbeveiligingscertificaten met deze knop laden",aft="Als het inloggen op Alexa Skill/Google Action/Alisa met de ioBroker.pro-inloggegevens mislukt, druk dan op de onderstaande knop.",ift='Voor vragen in welke taal dan ook, stel deze hier op het forum: link ',lft="Selecteer een TYPE en een TRAIT na het toevoegen van een staat. Om meerdere eigenschappen toe te voegen, voegt u een andere id en eigenschap toe, maar dezelfde slimme naam, type en kamer. Door komma's gescheiden voor de meerdere slimme namen. Gebruik de ioBroker Enums/Aufzählungen om een kamer toe te wijzen. Met attributen kun je bijvoorbeeld een bereik instellen voor de kleurtemperatuur Info over Kenmerken die u hier kunt vinden. Leeg kenmerk is {}",cft="Zoeken",dft="Naam",uft="Kamer",pft="ID",hft="IoB-type",fft="Attributen",mft="Automatisch",gft="Verwijderen",_ft="Dimmer",vft="Aan/Uit",yft="Kleur",bft="Detectie",wft="Slot",Sft="modus",xft="Gedempt",kft="Percentage",$ft="Temperatuur",Cft="Volume",Eft="stopcontact",Tft="licht",Oft="dimmer",Dft="thermostaat",Aft="jaloezieën",Nft="hek",Mft="slot",jft="tint",Ift="beweging",zft="schuifregelaar",Rft="temperatuur",Pft="raam",Lft="Thermostaat",Fft="Licht",Bft="Airco",Wft="Jaloezieën",Hft="Contactsensor",Uft="Controle",Vft="Deur",Gft="Hek",qft="Tint",Jft="Beweging",Xft="Schuifregelaar",Yft="Stopcontact",Kft="Stofzuiger",Zft="Volumegroep",Qft="Raam",emt="Sensor",tmt="Jaloezieën",nmt="Schakelaar",rmt={"(Set to 0 if behavior not desired)":"(Stel in op 0 als gedrag niet gewenst is)","(you can separate names with comma)":"U kunt verschillende namen invoeren, gescheiden door een komma",Active:fht,"Add device":"Voeg toestel toe","Add service":"Service toevoegen",Addresses:mht,"Alexa devices":"Alexa-apparaten","Alisa devices":"Alisa-apparaten","Allow admin access (only pro)":"Beheerrechten toestaan ​​(alleen pro)","Allow self-signed certificates":"Sta zelf-ondertekende certificaten toe","Amazon Alexa":"Amazon Alexa","Are you sure?":"Weet je het zeker?","Attributes has not correct JSON format.":"Attributen hebben niet de juiste JSON-indeling","Authentication must be disabled. You can create second instance extra for cloud.":"Verificatie moet zijn uitgeschakeld. U kunt een tweede exemplaar extra voor de cloud maken.",Cancel:ght,"Cannot add this object":"Kan dit object niet toevoegen, omdat het niet wordt ondersteund.","Cannot read devices!":"Kan geen apparaten lezen!","Certificates will be updated after initiated restart":"Certificaten worden bijgewerkt na de herstart opnieuw gestart","Certificates will be updated after start":"Certificaten worden na het opstarten bijgewerkt","Click now Get new connection certificates to request new temporary password":'Klik nu op "Nieuwe verbindingscertificaten verkrijgen" om een ​​nieuw tijdelijk wachtwoord aan te vragen',Close:_ht,"Cloud URL":"Cloud URL","Cloud adapter settings":"Cloud adapter-instellingen",Commands:vht,"Concatenate words with":"Woorden samenvoegen met","Connection timeout":"Verbinding time-out (ms)","Debug outputs":"Debug-uitgangen","Decrement color temperature":"Verlaag de kleurtemperatuur","Decrement percentage":"Verlagingspercentage","Decrement target temperature":"Verlaag de doeltemperatuur",Default:yht,"Device %s was not added":"Apparaat %s is niet toegevoegd","Device will be deactivated.":"Apparaat wordt gedeactiveerd.","Device will be disabled.":"Apparaat %s zal worden uitgeschakeld.",Dimmer:bht,"Duplicate name":"Dubbele naam","Edit smart name":"Bewerk slimme naam",Error:"Fout","Extended options":"Uitgebreide opties",Filter:wht,"For help use this forum":"Ga voor hulp naar dit forum post",Functions:Sht,"Get actual temperature":"Krijg de werkelijke temperatuur","Get new connection certificates":"Ontvang nieuwe verbindingscertificaten","Get new service URL key":"Ontvang nieuwe service URL-sleutel","Get target temperature":"Krijg doeltemperatuur","Google Home":"Google Home","IFTTT key":"IFTTT-sleutel","Increment color temperature":"Verhoog de kleurtemperatuur","Increment percentage":"Verhoging percentage","Increment target temperature":"Verhoog de doeltemperatuur",Instance:xht,"Instance does not exists":"Instantie bestaat niet","Instance is not active.":"Instantie is niet actief.","Instance must be enabled":"Exemplaar moet zijn ingeschakeld","Instance must run to deliver the data":"Het exemplaar moet worden uitgevoerd om de gegevens te bezorgen","Invalid object":"Ongeldig object",Language:kht,"Load configuration from file":"Laad configuratie vanuit bestand",Message:$ht,"OFF level for switches":"UIT-niveau voor schakelaars","OFF level for switches in %":"UIT-niveau voor schakelaars in %",Off:Cht,Ok:Eht,On:Tht,"On/Off":"Aan uit",Options:Oht,"Personal settings (only pro)":"Persoonlijke instellingen (alleen pro)","Ping timeout:":"Ping-timeout (ms)","Place function in names first":"Plaats eerst de functie in namen","Please add action and trait to complete the Google Home state.":"Voeg actie en eigenschap toe om de Google Home-status te voltooien.","Please add type and trait to complete the Google Home state.":"Voeg type en kenmerk toe om de Google Home-status te voltooien.","Please select object ID...":"Selecteer een object-ID ...","Please write your email only in lower case letters":"Schrijf uw e-mail alleen in kleine letters","Read lock state":"Lees de vergrendelingsstatus","Replace in names":"Vervangen in namen","Request email with password one more time":"E-mail met wachtwoord nog een keer aanvragen","Restart on disconnect":"Opnieuw opstarten bij verbreken",Review:Dht,Rooms:Aht,Save:Nht,"Save and close":"Opslaan en sluiten","Save configuration to file":"Sla configuratie op naar bestand","Save settings and the names will be changed":"Sla instellingen op en de namen worden gewijzigd",Select:Mht,"Service names":"Servicenamen","Services and IFTTT":"Diensten en IFTTT","Set color":"Stel de kleur in","Set color temperature":"Stel de kleurtemperatuur in","Set lock state":"Stel de vergrendelingsstatus in","Set percentage":"Percentage instellen","Set target temperature":"Stel de doeltemperatuur in","Smart Devices":"Slimme apparaten","Smart Enums":"Smart Enums","Smart Media":"Smart Media","Smart enums":"Slim enums","Smart name":"Slimme naam","Smart name for %s":"Slimme naam voor %s","To apply this setting, the restart of adapter must be done. Agree?":"Om deze instelling toe te passen, moet de adapter opnieuw worden opgestart. Mee eens?","To auto detect devices please assign a room and function to the channel if no channel available than assign to a device. Not only to the state or device. And enable them under SmartEnum/Intelligente Aufzählung":"Voor automatische detectie wijst onder objecten een kanaal (apparaat als er geen kanaal beschikbaar is) toe aan een kamer en functie. Het is niet voldoende om de kamer toe te wijzen aan een staat of apparaat. Kamers/functies kunnen worden toegevoegd onder opsomming (aangegeven door de witte pijl in de rechterbovenhoek) en moeten worden geactiveerd in de IoT-adapter onder Intelligente opsomming. Om handmatige statussen automatisch te herkennen, moet de status worden verwijderd.","Turn off":"Uitschakelen","Turn on":"Aanzetten",Type:jht,Types:Iht,"Use Nightscout instance":"Gebruik de Nightscout-instantie","Use following link for IFTTT":"Gebruik de volgende link voor IFTTT","Use following link for custom service":"Gebruik de volgende link voor aangepaste service","Use text2command instance":"Gebruik de text2command-instantie",Value:zht,"White list for services":"Witte lijst voor services","Write response to":"Schrijf reactie op","Yandex Алиса":"Yandex Алиса","You can enter several names divided by comma":"U kunt verschillende namen invoeren, gescheiden door een komma","amazon link":"Als je de Alexa Skill gebruikt, schrijf dan een recensie voor ons hier.
Voorbeelden zijn hier te vinden.","by ON":"door ON",clear:Rht,default:"standaard",disabled:Pht,help_link_tip1:Lht,help_link_tip2:Fht,help_link_tip3:Bht,help_tip:Wht,info_allowedServices:Hht,info_iftttKey:Uht,"ioBroker.pro Login":"ioBroker.pro Login","ioBroker.pro Password":"ioBroker.pro Wachtwoord","omit value":"geen waarde","last value":"laatste waarde",modified:Vht,"no type":"geen type",tooltip_allowSelfSignedCertificate:Ght,tooltip_apikey:qht,tooltip_cloudUrl:Jht,tooltip_concatWord:Xht,tooltip_deviceOffLevel:Yht,tooltip_functionFirst:Kht,tooltip_instance:Zht,tooltip_language:Qht,tooltip_noCommon:eft,tooltip_responseOID:tft,tooltip_restartOnDisconnect:nft,"Short answer for blood sugar":"Kort antwoord voor bloedsuiker",cannot_use_password:rft,invalid_password_warning:oft,new_certs_tip:sft,new_credentials_tip:aft,"Create IoT credentials anew":"Maak opnieuw IoT-inloggegevens",forum_tip:ift,"Save settings before pressing this button":"Sla de instellingen op voordat u op deze knop drukt","Auto Mode":"Automatische modus","Manual Mode":"Handmatige modus",manualModeHint:lft,"not activated":"niet geactiveerd","Google devices":"Google-apparaten","Show/Hide help":"Help weergeven / verbergen","Show all devices for print out":"Alle apparaten weergeven om af te drukken",Search:cft,"List of devices to print out, e.g. to give all device names to your partner.":"Lijst met af te drukken apparaten, b.v. om alle apparaatnamen aan uw partner te geven.",Name:dft,Function:"Functie",Room:uft,"Copy to clipboard":"Kopieer naar klembord","Toggle expert mode":"Schakel de expertmodus in",ID:pft,"Smart names":"Slimme namen",ioBType:hft,"Function/Trait":"Functie / eigenschap",Attributes:fft,Auto:mft,"Conversation to GH":"Converteer naar GH","Conversation to ioB":"Converteer naar ioB","Information: The skill linking process was changed!":"Informatie: het proces voor het koppelen van vaardigheden is gewijzigd!","The linking process has been changed for a few months.":"Het koppelingsproces is voor een paar maanden gewijzigd.","Now there is no temporary password that will be sent by email.":"Nu is er geen tijdelijk wachtwoord dat per e-mail wordt verzonden.","The password is equal with ioBroker.pro and with password that was entered here in the settings!":"Het wachtwoord is gelijk aan ioBroker.pro en met het wachtwoord dat hier in de instellingen is ingevoerd!","Not understood":"Niet begrepen","Roger that":"Begrepen","Read blood sugar from":"Lees de bloedsuikerspiegel van","Get actual humidity":"Verkrijg de werkelijke luchtvochtigheid","Get motion":"Krijg beweging","Get contact":"Krijg contactstatus","Too many devices (%s) configured. Max number is 300":"Te veel apparaten (%s) geconfigureerd. Maximaal aantal is 300!","Allow remote access":"Externe toegang toestaan","Admin instance":"Beheerdersinstantie","Web instance":"Webinstantie","Device %s will be disabled.":"Apparaat %s wordt uitgeschakeld.",Delete:gft,Brightness:_ft,Power:vft,"Color temperature":"Kleurtemperatuur",Color:yft,Detection:bft,Lock:wft,Mode:Sft,Muted:xft,Percentage:kft,"Set point":"Setpunt",Temperature:$ft,"Thermostat mode":"Thermostaat modus",Volume:Cft,socket:Eft,light:Tft,dimmer:Oft,thermostat:Dft,blind:Aft,gate:Nft,lock:Mft,hue:jft,motion:Ift,slider:zft,temperature:Rft,window:Pft,Thermostat:Lft,Light:Fft,AirCondition:Bft,Blind:Wft,ContactSensor:Hft,Control:Uft,Door:Vft,Gate:Gft,Hue:qft,Motion:Jft,Slider:Xft,Socket:Yft,VacuumCleaner:Kft,VolumeGroup:Zft,Window:Qft,"Color HUE":"Kleur TINT","Door sensor":"Deur sensor",Sensor:emt,"Vacuum cleaner":"Stofzuiger","Volume group":"Volumegroep","Window sensor":"Raam sensor",Blinds:tmt,"Grouped from %s and %s":"Gegroepeerd van %s en %s","Default toggle behaviour (Only alexa v3)":"Standaard schakelgedrag (alleen alexa v3)","Do not toggle":"Wissel niet",Toggle:nmt,"This service is reserved for the ioBroker.visu app. Please use another service name.":"Deze service is gereserveerd voor de ioBroker.visu-app. Gebruik een andere servicenaam."},omt="actif",smt="Adresses",amt="Annuler",imt="Fermer",lmt="Commandes",cmt="Défaut",dmt="Variateur",umt="Filtre",pmt="Les fonctions",hmt="Exemple",fmt="La langue",mmt="Message",gmt="de",_mt="D'accord",vmt="sur",ymt="Options",bmt="La revue",wmt="Pièces",Smt="sauvegarder",xmt="Sélectionner",kmt="Type",$mt="Les types",Cmt="Valeur",Emt="nettoyer",Tmt="désactivée",Omt=`Avant d'écrire au support, assurez-vous d'avoir lu et compris les instructions de la page Web: https://www.iobroker.net`,Dmt='Si vous rencontrez toujours des problèmes avec la connexion à Iot, vous pouvez demander une assistance dans le forum',Amt='et seulement après cela, vous devez écrire un e-mail à support@iobroker.com',Nmt='Pas de compte iobroker.pro? Achetez-le sur https://iobroker.pro pour un accès validé ou obtenez gratuitement un accès limité.',Mmt="divisé par virgule. Utilisez * pour autoriser tous les services.",jmt="Vous pouvez trouver votre clé ici sous 'Documentation'",Imt="Le nom a été modifié par l'utilisateur",zmt="Si vous utilisez votre propre cloud, vous pouvez autoriser l'utilisation de certificats autosignés pour le cloud.",Rmt="Cette clé est requise pour communiquer avec un nuage. Vous pouvez obtenir l'API-KEY sur https://iobroker.net et il ressemble à pseudo_f1f439a0-001a-11e7-bc64-92361f002671",Pmt="Normalement, vous n'avez pas besoin de le changer. Uniquement nécessaire si vous prévoyez d'utiliser votre propre cloud.",Lmt="Définir la concaténation de la pièce et de la fonction. Par exemple. avec 'in': Lumière dans le salon.",Fmt="Certains groupes sont composés de dispositifs mixtes: gradateurs et commutateurs. Il est permis de les contrôler avec des commandes ON et OFF et avec des pourcentages",Bmt="Normalement, les noms ressemblent à room_function. Ici vous pouvez passer à function_room.",Wmt="Instance Web, qui sera affichée pour vos connexions depuis le cloud.",Hmt="Vous pouvez définir les langues pour passer rapidement entre les compétences américaines Alexa et DE Alexa.",Umt="Si activé, les paramètres seront stockés uniquement pour cette instance. Dans un autre cas, les autres noms pourraient être définis.",Vmt="Pour chaque commande, la réponse textuelle sera générée. Vous pouvez définir ici l'ID de l'objet, où ce texte doit être écrit. Par exemple. sayit.0.tts.text.",Gmt="Solution de contournement pour la connexion manquante à Alexa après la connexion au cloud a été perdue. Avec cette option, vous pouvez redémarrer l'adaptateur après chaque déconnexion et cela fonctionnera.",qmt="Vous ne pouvez pas utiliser% dans le mot de passe. Nous travaillons sur le correctif.",Jmt=`Le mot de passe doit comporter au moins 8 caractères et doit comporter des chiffres, des lettres majuscules et minuscules. Veuillez le modifier dans le profil ioBroker.pro +`,Xmt="Si vous avez effectué une restauration à partir d'une sauvegarde, ou déplacé votre instance d'un appareil vers un autre ou supprimé l'instance IoT et l'ajoutée à nouveau, vous devez charger les certificats de sécurité de connexion avec ce bouton",Ymt="Si la connexion à Alexa Skill/Google Action/Alisa avec les données de connexion ioBroker.pro échoue, veuillez appuyer sur le bouton ci-dessous.",Kmt=`Si vous avez des questions dans n'importe quelle langue, posez-les ici dans le forum: lien `,Zmt="Veuillez sélectionner un TYPE et un TRAIT après avoir ajouté un état. Pour ajouter plusieurs traits, ajoutez un identifiant et un trait différents, mais le même nom intelligent, le même type et la même pièce. Séparé par des virgules pour les multiples noms intelligents. Pour attribuer une chambre, veuillez utiliser les ioBroker Enums/Aufzählungen. Avec les attributs, vous pouvez par exemple définir une plage de température de couleur Infos sur Les attributs que vous pouvez trouver ici. L'attribut vide est {}",Qmt="Chercher",egt="Nom",tgt="Chambre",ngt="ID",rgt="Type IoB",ogt="Les attributs",sgt="Automatiquement",agt="Effacer",igt="Variateur",lgt="Allumé/éteint",cgt="Couleur",dgt="Détection",ugt="Serrure",pgt="Mode",hgt="En sourdine",fgt="Pourcentage",mgt="Température",ggt="Volume",_gt="prise",vgt="lumière",ygt="variateur",bgt="thermostat",wgt="stores de fenêtre",Sgt="portail",xgt="serrure",kgt="teinte",$gt="mouvement",Cgt="glissière",Egt="température",Tgt="fenêtre",Ogt="Thermostat",Dgt="Lumière",Agt="Air conditionné",Ngt="Stores de fenêtre",Mgt="Contacter le capteur",jgt="Contrôle",Igt="Porte",zgt="Portail",Rgt="Teinte",Pgt="Mouvement",Lgt="Glissière",Fgt="Prise",Bgt="aspirateur",Wgt="Groupe de volumes",Hgt="Fenêtre",Ugt="Capteur",Vgt="Stores de fenêtre",Ggt="Basculer",qgt={"(Set to 0 if behavior not desired)":"(Mettre à 0 si le comportement n'est pas désiré)","(you can separate names with comma)":"Vous pouvez entrer plusieurs noms divisés par une virgule",Active:omt,"Add device":"Ajouter un appareil","Add service":"Ajouter un service",Addresses:smt,"Alexa devices":"Appareils Alexa","Alisa devices":"Appareils Alisa","Allow admin access (only pro)":"Autoriser l'accès administrateur (uniquement pro)","Allow self-signed certificates":"Autoriser les certificats auto-signés","Amazon Alexa":"Amazon Alexa","Are you sure?":"Êtes-vous sûr?","Attributes has not correct JSON format.":"Les attributs ne sont pas au format JSON correct","Authentication must be disabled. You can create second instance extra for cloud.":"L'authentification doit être désactivée. Vous pouvez créer une seconde instance supplémentaire pour le cloud.",Cancel:amt,"Cannot add this object":"Impossible d'ajouter cet objet, car non pris en charge.","Cannot read devices!":"Impossible de lire les appareils!","Certificates will be updated after initiated restart":"Les certificats seront mis à jour après le redémarrage initié","Certificates will be updated after start":"Les certificats seront mis à jour après le démarrage","Click now Get new connection certificates to request new temporary password":'Cliquez maintenant sur "Obtenir de nouveaux certificats de connexion" pour demander un nouveau mot de passe temporaire.',Close:imt,"Cloud URL":"URL de cloud","Cloud adapter settings":"Paramètres de l'adaptateur cloud",Commands:lmt,"Concatenate words with":"Concaténer les mots avec","Connection timeout":"Délai de connexion (ms)","Debug outputs":"Déboguer les sorties","Decrement color temperature":"Décrémenter la température de couleur","Decrement percentage":"Pourcentage de décrémentation","Decrement target temperature":"Décrémenter la température cible",Default:cmt,"Device %s was not added":"Le périphérique %s n'a pas été ajouté","Device will be deactivated.":"L'appareil sera désactivé.","Device will be disabled.":"L'appareil %s sera désactivé.",Dimmer:dmt,"Duplicate name":"Nom en double","Edit smart name":"Modifier le nom intelligent",Error:"Erreur","Extended options":"Options étendues",Filter:umt,"For help use this forum":"Pour obtenir de l'aide, visitez ce forum publier",Functions:pmt,"Get actual temperature":"Obtenir la température réelle","Get new connection certificates":"Obtenir de nouveaux certificats de connexion","Get new service URL key":"Obtenir une nouvelle clé d'URL de service","Get target temperature":"Obtenir la température cible","Google Home":"Google Home","IFTTT key":"Touche IFTTT","Increment color temperature":"Incrément de température de couleur","Increment percentage":"Pourcentage d'incrément","Increment target temperature":"Augmenter la température cible",Instance:hmt,"Instance does not exists":"L'instance n'existe pas","Instance is not active.":"L'instance n'est pas active.","Instance must be enabled":"L'instance doit être activée","Instance must run to deliver the data":"L'instance doit s'exécuter pour fournir les données","Invalid object":"Objet invalide",Language:fmt,"Load configuration from file":"Charger la configuration du fichier",Message:mmt,"OFF level for switches":"Niveau OFF pour les commutateurs","OFF level for switches in %":"Niveau OFF pour les commutateurs en %",Off:gmt,Ok:_mt,On:vmt,"On/Off":"Allumé éteint",Options:ymt,"Personal settings (only pro)":"Paramètres personnels (uniquement pro)","Ping timeout:":"Ping timeout (ms)","Place function in names first":"Placez la fonction dans les noms en premier","Please add action and trait to complete the Google Home state.":"Veuillez ajouter une action et un trait pour terminer l'état de Google Home.","Please add type and trait to complete the Google Home state.":"Veuillez ajouter un type et un trait pour terminer l'état de Google Home.","Please select object ID...":"Veuillez sélectionner l'ID d'objet ...","Please write your email only in lower case letters":"S'il vous plaît écrivez votre email uniquement en minuscules","Read lock state":"État verrouillé","Replace in names":"Remplacer dans les noms","Request email with password one more time":"Demander l'email avec le mot de passe une fois de plus","Restart on disconnect":"Redémarrer à la déconnexion",Review:bmt,Rooms:wmt,Save:Smt,"Save and close":"Sauver et fermer","Save configuration to file":"Enregistrer la configuration dans un fichier","Save settings and the names will be changed":"Enregistrer les paramètres et les noms seront modifiés",Select:xmt,"Service names":"Noms de service","Services and IFTTT":"Services et IFTTT","Set color":"Définir la couleur","Set color temperature":"Régler la température de couleur","Set lock state":"Définir l'état de verrouillage","Set percentage":"Définir le pourcentage","Set target temperature":"Régler la température cible","Smart Devices":"Smart Devices","Smart Enums":"Smart Enums","Smart Media":"Smart Media","Smart enums":"Smart enums","Smart name":"Nom intelligent","Smart name for %s":"Nom intelligent pour %s","To apply this setting, the restart of adapter must be done. Agree?":"Pour appliquer ce paramètre, l'adaptateur doit être redémarré. Se mettre d'accord?","To auto detect devices please assign a room and function to the channel if no channel available than assign to a device. Not only to the state or device. And enable them under SmartEnum/Intelligente Aufzählung":"Pour la détection automatique, sous les objets, affectez un canal (appareil si aucun canal n'est disponible) à une pièce et une fonction. Il ne suffit pas d'affecter la pièce à un état ou à un appareil. Les salles/fonctions peuvent être ajoutées sous l'énumération (indiquée par la flèche blanche en haut à droite) et doivent être activées dans l'adaptateur IoT sous l'énumération intelligente. Afin de reconnaître automatiquement les états manuels, l'état doit être supprimé.","Turn off":"Éteindre","Turn on":"Allumer",Type:kmt,Types:$mt,"Use Nightscout instance":"Utilisez l'instance Nightscout","Use following link for IFTTT":"Utilisez le lien suivant pour IFTTT","Use following link for custom service":"Utilisez le lien suivant pour un service personnalisé","Use text2command instance":"Utilisez l'instance text2command",Value:Cmt,"White list for services":"Liste blanche pour les services","Write response to":"Écrire une réponse à","Yandex Алиса":"Yandex Алиса","You can enter several names divided by comma":"Vous pouvez entrer plusieurs noms divisés par une virgule","amazon link":"Si vous utilisez la compétence Alexa, veuillez écrire une critique pour nous ici.
Des exemples peuvent être trouvés ici .","by ON":"par le",clear:Emt,default:"défaut",disabled:Tmt,help_link_tip1:Omt,help_link_tip2:Dmt,help_link_tip3:Amt,help_tip:Nmt,info_allowedServices:Mmt,info_iftttKey:jmt,"ioBroker.pro Login":"ioBroker.pro Login","ioBroker.pro Password":"Mot de passe ioBroker.pro","omit value":"aucune valeur","last value":"dernière valeur",modified:Imt,"no type":"pas de type",tooltip_allowSelfSignedCertificate:zmt,tooltip_apikey:Rmt,tooltip_cloudUrl:Pmt,tooltip_concatWord:Lmt,tooltip_deviceOffLevel:Fmt,tooltip_functionFirst:Bmt,tooltip_instance:Wmt,tooltip_language:Hmt,tooltip_noCommon:Umt,tooltip_responseOID:Vmt,tooltip_restartOnDisconnect:Gmt,"Short answer for blood sugar":"Réponse courte pour la glycémie",cannot_use_password:qmt,invalid_password_warning:Jmt,new_certs_tip:Xmt,new_credentials_tip:Ymt,"Create IoT credentials anew":"Créez à nouveau les informations d'identification IoT",forum_tip:Kmt,"Save settings before pressing this button":"Enregistrez les paramètres avant d'appuyer sur ce bouton","Auto Mode":"Mode automatique","Manual Mode":"Mode manuel",manualModeHint:Zmt,"not activated":"non activé","Google devices":"Appareils Google","Show/Hide help":"Afficher / masquer l'aide","Show all devices for print out":"Afficher tous les appareils à imprimer",Search:Qmt,"List of devices to print out, e.g. to give all device names to your partner.":"Liste des périphériques à imprimer, par ex. pour donner tous les noms d'appareils à votre partenaire.",Name:egt,Function:"Fonction",Room:tgt,"Copy to clipboard":"Copier dans le presse-papier","Toggle expert mode":"Basculer en mode expert",ID:ngt,"Smart names":"Noms intelligents",ioBType:rgt,"Function/Trait":"Fonction / trait",Attributes:ogt,Auto:sgt,"Conversation to GH":"Convertir en GH","Conversation to ioB":"Convertir en ioB","Information: The skill linking process was changed!":"Information: le processus de liaison des compétences a été modifié!","The linking process has been changed for a few months.":"Le processus de mise en relation a été modifié depuis quelques mois.","Now there is no temporary password that will be sent by email.":"Désormais, aucun mot de passe temporaire ne sera envoyé par e-mail.","The password is equal with ioBroker.pro and with password that was entered here in the settings!":"Le mot de passe est égal à ioBroker.pro et au mot de passe qui a été saisi ici dans les paramètres!","Not understood":"Pas compris","Roger that":"Bien reçu","Read blood sugar from":"Lire la glycémie à partir de","Get actual humidity":"Obtenez l'humidité réelle","Get motion":"Obtenez du mouvement","Get contact":"Obtenir le statut du contact","Too many devices (%s) configured. Max number is 300":"Trop de périphériques (%s) configurés. Le nombre maximum est 300 !","Allow remote access":"Autoriser l'accès à distance","Admin instance":"Instance d'administration","Web instance":"Instance Web","Device %s will be disabled.":"Le périphérique %s sera désactivé.",Delete:agt,Brightness:igt,Power:lgt,"Color temperature":"Température de couleur",Color:cgt,Detection:dgt,Lock:ugt,Mode:pgt,Muted:hgt,Percentage:fgt,"Set point":"Point de consigne",Temperature:mgt,"Thermostat mode":"Mode thermostatique",Volume:ggt,socket:_gt,light:vgt,dimmer:ygt,thermostat:bgt,blind:wgt,gate:Sgt,lock:xgt,hue:kgt,motion:$gt,slider:Cgt,temperature:Egt,window:Tgt,Thermostat:Ogt,Light:Dgt,AirCondition:Agt,Blind:Ngt,ContactSensor:Mgt,Control:jgt,Door:Igt,Gate:zgt,Hue:Rgt,Motion:Pgt,Slider:Lgt,Socket:Fgt,VacuumCleaner:Bgt,VolumeGroup:Wgt,Window:Hgt,"Color HUE":"Teinte de couleur","Door sensor":"Capteur de porte",Sensor:Ugt,"Vacuum cleaner":"aspirateur","Volume group":"Groupe de volumes","Window sensor":"Capteur de fenêtre",Blinds:Vgt,"Grouped from %s and %s":"Groupé de %s et %s","Default toggle behaviour (Only alexa v3)":"Comportement de basculement par défaut (uniquement alexa v3)","Do not toggle":"Ne pas basculer",Toggle:Ggt,"This service is reserved for the ioBroker.visu app. Please use another service name.":"Ce service est réservé à l'application ioBroker.visu. Veuillez utiliser un autre nom de service."},Jgt="Attivo",Xgt="indirizzi",Ygt="Annulla",Kgt="Vicino",Zgt="comandi",Qgt="Predefinito",e_t="oscuratore",t_t="Filtro",n_t="funzioni",r_t="Esempio",o_t="Linguaggio",s_t="Messaggio",a_t="via",i_t="Ok",l_t="sopra",c_t="Opzioni",d_t="Revisione",u_t="Camere",p_t="Salvare",h_t="Selezionare",f_t="Genere",m_t="tipi",g_t="Valore",__t="cancellare",v_t="Disabilitato",y_t='Prima di scrivere per il supporto, assicurarsi di aver letto e compreso le istruzioni della pagina Web: https://www.iobroker.net',b_t='Se hai ancora problemi con la connessione a Iot, puoi richiedere supporto a Forum',w_t='e solo dopo dovrai scrivere una email a support@iobroker.com',S_t=`Nessun account iobroker.pro? Compralo su https://iobroker.pro per l'accesso convalidato o ottieni l'accesso gratuito, ma limitato.`,x_t="diviso per virgola. Usa * per consentire tutti i servizi.",k_t="Puoi trovare la tua chiave qui in 'Documentazione'",$_t="Il nome è stato modificato dall'utente",C_t="Se si utilizza il proprio cloud, è possibile consentire l'uso di certificati autofirmati per il cloud.",E_t="Questa chiave è necessaria per comunicare con un cloud. Puoi ottenere l'API-KEY su https://iobroker.net e sembra nickname_f1f439a0-001a-11e7-bc64-92361f002671",T_t="Normalmente non è necessario cambiarlo. Richiesto solo se prevedi di utilizzare il tuo cloud.",O_t="Definire come concatenare Room e Function. Per esempio. con 'in': luce nel soggiorno.",D_t="Alcuni gruppi sono costituiti da dispositivi misti: dimmer e interruttori. È consentito controllarli con comandi ON e OFF e con percentuali",A_t="Normalmente i nomi assomigliano a room_function. Qui puoi passare a function_room.",N_t="Istanza Web, che verrà mostrata per le connessioni dal cloud.",M_t="È possibile definire le lingue per passare velocemente da US Alexa Skill a DE Alexa Skill.",j_t="Se abilitato, le impostazioni verranno memorizzate solo per questa istanza. Quindi in un'altra istanza potrebbero essere impostati gli altri nomi.",I_t="Per ogni comando verrà generata la risposta testuale. È possibile definire qui l'ID oggetto, dove questo testo deve essere scritto. Per esempio. sayit.0.tts.text.",z_t="Soluzione alternativa per la mancata connessione ad Alexa dopo la perdita della connessione al cloud. Con questa opzione è possibile riavviare l'adattatore dopo ogni disconnessione e funzionerà.",R_t="Non è possibile utilizzare% nella password. Stiamo lavorando alla correzione.",P_t=`La password deve contenere almeno 8 caratteri e deve contenere numeri, lettere maiuscole e minuscole. Si prega di cambiarlo nel profilo ioBroker.pro +`,L_t="Se hai effettuato un ripristino dal backup o hai spostato l'istanza da un dispositivo all'altro o hai eliminato l'istanza IoT e l'hai aggiunta di nuovo, devi caricare i certificati di sicurezza della connessione con questo pulsante",F_t="Se l'accesso ad Alexa Skill/Google Action/Alisa con i dati di accesso ioBroker.pro non riesce, premere il pulsante in basso.",B_t='Per qualsiasi domanda in qualsiasi lingua, si prega di porre qui nel forum: link ',W_t="Seleziona un TYPE e un TRAIT dopo aver aggiunto uno stato. Per aggiungere più tratti, aggiungi un ID e un tratto diversi ma lo stesso nome, tipo e spazio intelligenti. Virgola separata per più nomi intelligenti. Per assegnare una stanza, utilizzare ioBroker Enums/Aufzählungen. Con gli attributi puoi ad esempio impostare un intervallo per la temperatura del colore Informazioni su Gli attributi che puoi trovare qui. L'attributo vuoto è {}",H_t="Ricerca",U_t="Nome",V_t="Camera",G_t="ID",q_t="Tipo di IoB",J_t="attributi",X_t="Automaticamente",Y_t="Elimina",K_t="Dimmer",Z_t="Acceso/Spento",Q_t="Colore",evt="Rilevamento",tvt="Serratura",nvt="Modalità",rvt="Disattivato",ovt="Percentuale",svt="Temperatura",avt="Volume",ivt="PRESA",lvt="leggero",cvt="dimmer",dvt="termostato",uvt="tapparelle",pvt="cancello",hvt="serratura",fvt="tinta",mvt="movimento",gvt="cursore",_vt="temperatura",vvt="finestra",yvt="Termostato",bvt="Leggero",wvt="Aria condizionata",Svt="Tapparelle",xvt="Sensore di contatto",kvt="Controllo",$vt="Porta",Cvt="Cancello",Evt="Tinta",Tvt="Movimento",Ovt="Cursore",Dvt="PRESA",Avt="Aspirapolvere",Nvt="Gruppo di volumi",Mvt="Finestra",jvt="Sensore",Ivt="Tapparelle",zvt="Alterna",Rvt={"(Set to 0 if behavior not desired)":"(Impostare su 0 se il comportamento non è desiderato)","(you can separate names with comma)":"È possibile inserire diversi nomi divisi per virgola",Active:Jgt,"Add device":"Aggiungi dispositivo","Add service":"Aggiungi servizio",Addresses:Xgt,"Alexa devices":"Dispositivi Alexa","Alisa devices":"Dispositivi Alisa","Allow admin access (only pro)":"Permetti l'accesso amministratore (solo pro)","Allow self-signed certificates":"Consenti certificati autofirmati","Amazon Alexa":"Amazon Alexa","Are you sure?":"Sei sicuro?","Attributes has not correct JSON format.":"Gli attributi non sono nel formato JSON corretto","Authentication must be disabled. You can create second instance extra for cloud.":"L'autenticazione deve essere disabilitata. È possibile creare un extra di seconda istanza per il cloud.",Cancel:Ygt,"Cannot add this object":"Impossibile aggiungere questo oggetto, perché non supportato.","Cannot read devices!":"Impossibile leggere i dispositivi!","Certificates will be updated after initiated restart":"I certificati verranno aggiornati dopo il riavvio avviato","Certificates will be updated after start":"I certificati verranno aggiornati dopo l'avvio","Click now Get new connection certificates to request new temporary password":'Fare clic su "Ottieni nuovi certificati di connessione" per richiedere una nuova password temporanea',Close:Kgt,"Cloud URL":"URL del cloud","Cloud adapter settings":"Impostazioni dell'adattatore cloud",Commands:Zgt,"Concatenate words with":"Parole concatenate con","Connection timeout":"Timeout connessione (ms)","Debug outputs":"Uscite di debug","Decrement color temperature":"Ridurre la temperatura del colore","Decrement percentage":"Percentuale di decremento","Decrement target temperature":"Ridurre la temperatura target",Default:Qgt,"Device %s was not added":"Il dispositivo %s non è stato aggiunto","Device will be deactivated.":"Il dispositivo sarà disattivato.","Device will be disabled.":"Il dispositivo sarà disabilitato.",Dimmer:e_t,"Duplicate name":"Nome duplicato","Edit smart name":"Modifica il nome intelligente",Error:"Errore","Extended options":"Opzioni estese",Filter:t_t,"For help use this forum":"Per assistenza, visita questo forum post",Functions:n_t,"Get actual temperature":"Ottieni la temperatura effettiva","Get new connection certificates":"Ottieni nuovi certificati di connessione","Get new service URL key":"Ottieni una nuova chiave URL del servizio","Get target temperature":"Ottieni la temperatura target","Google Home":"Google Home","IFTTT key":"Tasto IFTTT","Increment color temperature":"Incrementa la temperatura del colore","Increment percentage":"Percentuale di incremento","Increment target temperature":"Incremento della temperatura target",Instance:r_t,"Instance does not exists":"L'istanza non esiste","Instance is not active.":"L'istanza non è attiva.","Instance must be enabled":"L'istanza deve essere abilitata","Instance must run to deliver the data":"L'istanza deve essere eseguita per consegnare i dati","Invalid object":"Oggetto non valido",Language:o_t,"Load configuration from file":"Carica la configurazione dal file",Message:s_t,"OFF level for switches":"Livello OFF per interruttori","OFF level for switches in %":"Livello OFF per gli interruttori in %",Off:a_t,Ok:i_t,On:l_t,"On/Off":"Acceso spento",Options:c_t,"Personal settings (only pro)":"Impostazioni personali (solo pro)","Ping timeout:":"Timeout del ping (ms)","Place function in names first":"Inserisci la funzione nei nomi prima","Please add action and trait to complete the Google Home state.":"Aggiungi azione e tratto per completare lo stato di Google Home.","Please add type and trait to complete the Google Home state.":"Aggiungi tipo e tratto per completare lo stato di Google Home.","Please select object ID...":"Si prega di selezionare l'oggetto ID ...","Please write your email only in lower case letters":"Si prega di scrivere la tua email solo in lettere minuscole","Read lock state":"Leggi lo stato di blocco","Replace in names":"Sostituisci nei nomi","Request email with password one more time":"Richiedi l'email con la password ancora una volta","Restart on disconnect":"Riavvia alla disconnessione",Review:d_t,Rooms:u_t,Save:p_t,"Save and close":"Salva e chiudi","Save configuration to file":"Salva la configurazione nel file","Save settings and the names will be changed":"Salva le impostazioni e i nomi saranno cambiati",Select:h_t,"Service names":"Nomi di servizio","Services and IFTTT":"Servizi e IFTTT","Set color":"Imposta il colore","Set color temperature":"Imposta la temperatura del colore","Set lock state":"Imposta lo stato di blocco","Set percentage":"Imposta la percentuale","Set target temperature":"Imposta la temperatura target","Smart Devices":"Dispositivi intelligenti","Smart Enums":"Smart Enums","Smart Media":"Smart Media","Smart enums":"Enumerazioni intelligenti","Smart name":"Nome intelligente","Smart name for %s":"Nome intelligente per %s","To apply this setting, the restart of adapter must be done. Agree?":"Per applicare questa impostazione, è necessario riavviare l'adattatore. Essere d'accordo?","To auto detect devices please assign a room and function to the channel if no channel available than assign to a device. Not only to the state or device. And enable them under SmartEnum/Intelligente Aufzählung":"Per il rilevamento automatico, sotto gli oggetti assegnare un canale (dispositivo se non è disponibile alcun canale) a una stanza e funzione. Non è sufficiente assegnare la stanza a uno stato o dispositivo. Le sale/funzioni possono essere aggiunte all'enumerazione (indicata dalla freccia bianca in alto a destra) e devono essere attivate nell'adattatore IoT in Enumerazione intelligente. Per riconoscere automaticamente gli stati manuali, è necessario eliminare lo stato.","Turn off":"Spegni","Turn on":"Accendere",Type:f_t,Types:m_t,"Use Nightscout instance":"Utilizza l'istanza Nightscout","Use following link for IFTTT":"Usa il seguente link per IFTTT","Use following link for custom service":"Usa il seguente link per il servizio personalizzato","Use text2command instance":"Utilizza l'istanza text2command",Value:g_t,"White list for services":"Lista bianca per i servizi","Write response to":"Scrivi risposta a","Yandex Алиса":"Yandex Алиса","You can enter several names divided by comma":"È possibile inserire diversi nomi divisi per virgola","amazon link":"Se usi Alexa Skill, scrivi una recensione per noi here.
Gli esempi possono essere trovati qui .","by ON":"da ON",clear:__t,default:"predefinito",disabled:v_t,help_link_tip1:y_t,help_link_tip2:b_t,help_link_tip3:w_t,help_tip:S_t,info_allowedServices:x_t,info_iftttKey:k_t,"ioBroker.pro Login":"ioBroker.pro Login","ioBroker.pro Password":"ioBroker.pro Password","omit value":"nessun valore","last value":"ultimo valore",modified:$_t,"no type":"nessun tipo",tooltip_allowSelfSignedCertificate:C_t,tooltip_apikey:E_t,tooltip_cloudUrl:T_t,tooltip_concatWord:O_t,tooltip_deviceOffLevel:D_t,tooltip_functionFirst:A_t,tooltip_instance:N_t,tooltip_language:M_t,tooltip_noCommon:j_t,tooltip_responseOID:I_t,tooltip_restartOnDisconnect:z_t,"Short answer for blood sugar":"Risposta breve per zucchero nel sangue",cannot_use_password:R_t,invalid_password_warning:P_t,new_certs_tip:L_t,new_credentials_tip:F_t,"Create IoT credentials anew":"Crea nuovamente le credenziali IoT",forum_tip:B_t,"Save settings before pressing this button":"Salvare le impostazioni prima di premere questo pulsante","Auto Mode":"Modalità automatica","Manual Mode":"Modalità manuale",manualModeHint:W_t,"not activated":"non attivato","Google devices":"Dispositivi Google","Show/Hide help":"Mostra / Nascondi aiuto","Show all devices for print out":"Mostra tutti i dispositivi per la stampa",Search:H_t,"List of devices to print out, e.g. to give all device names to your partner.":"Elenco dei dispositivi da stampare, ad es. per dare tutti i nomi dei dispositivi al tuo partner.",Name:U_t,Function:"Funzione",Room:V_t,"Copy to clipboard":"Copia negli appunti","Toggle expert mode":"Attiva / disattiva modalità esperto",ID:G_t,"Smart names":"Nomi intelligenti",ioBType:q_t,"Function/Trait":"Funzione / Trait",Attributes:J_t,Auto:X_t,"Conversation to GH":"Converti in GH","Conversation to ioB":"Converti in ioB","Information: The skill linking process was changed!":"Informazioni: il processo di collegamento delle abilità è stato modificato!","The linking process has been changed for a few months.":"Il processo di collegamento è stato modificato per alcuni mesi.","Now there is no temporary password that will be sent by email.":"Ora non esiste una password temporanea che verrà inviata tramite e-mail.","The password is equal with ioBroker.pro and with password that was entered here in the settings!":"La password è uguale a ioBroker.pro e alla password che è stata inserita qui nelle impostazioni!","Not understood":"Non compreso","Roger that":"Ricevuto","Read blood sugar from":"Leggi lo zucchero nel sangue da","Get actual humidity":"Ottieni l'umidità effettiva","Get motion":"Ottieni movimento","Get contact":"Ottieni lo stato del contatto","Too many devices (%s) configured. Max number is 300":"Troppi dispositivi (%s) configurati. Il numero massimo è 300!","Allow remote access":"Consenti accesso remoto","Admin instance":"Istanza amministratore","Web instance":"Istanza web","Device %s will be disabled.":"Il dispositivo %s sarà disabilitato.",Delete:Y_t,Brightness:K_t,Power:Z_t,"Color temperature":"Temperatura di colore",Color:Q_t,Detection:evt,Lock:tvt,Mode:nvt,Muted:rvt,Percentage:ovt,"Set point":"Punto stabilito",Temperature:svt,"Thermostat mode":"Modalità termostato",Volume:avt,socket:ivt,light:lvt,dimmer:cvt,thermostat:dvt,blind:uvt,gate:pvt,lock:hvt,hue:fvt,motion:mvt,slider:gvt,temperature:_vt,window:vvt,Thermostat:yvt,Light:bvt,AirCondition:wvt,Blind:Svt,ContactSensor:xvt,Control:kvt,Door:$vt,Gate:Cvt,Hue:Evt,Motion:Tvt,Slider:Ovt,Socket:Dvt,VacuumCleaner:Avt,VolumeGroup:Nvt,Window:Mvt,"Color HUE":"Colore TONALITÀ","Door sensor":"Sensore porta",Sensor:jvt,"Vacuum cleaner":"Aspirapolvere","Volume group":"Gruppo di volumi","Window sensor":"Sensore finestra",Blinds:Ivt,"Grouped from %s and %s":"Raggruppato da %s e %s","Default toggle behaviour (Only alexa v3)":"Comportamento di commutazione predefinito (solo Alexa v3)","Do not toggle":"Non alternare",Toggle:zvt,"This service is reserved for the ioBroker.visu app. Please use another service name.":"Questo servizio è riservato all'app ioBroker.visu. Utilizza un altro nome di servizio."},Pvt="Activo",Lvt="Direcciones",Fvt="Cancelar",Bvt="Cerrar",Wvt="Comandos",Hvt="Defecto",Uvt="Regulador de intensidad",Vvt="Filtrar",Gvt="Funciones",qvt="Ejemplo",Jvt="Idioma",Xvt="Mensaje",Yvt="apagado",Kvt="De acuerdo",Zvt="en",Qvt="Opciones",eyt="revisión",tyt="Habitaciones",nyt="Salvar",ryt="Seleccionar",oyt="Tipo",syt="Tipos",ayt="Valor",iyt="limpiar",lyt="discapacitado",cyt='Antes de escribir a soporte, asegúrese de haber leído y entendido las instrucciones de la página web: https://www.iobroker.net',dyt='Si aún tiene problemas con la conexión a Iot, puede solicitar asistencia en el foro',uyt='y solo después de eso, debe escribir un correo electrónico a support@iobroker.com',pyt='¿No hay una cuenta iobroker.pro? Cómprelo en https://iobroker.pro para obtener acceso validado u obtenga de forma gratuita, pero con acceso limitado.',hyt="dividido por coma. Use * para permitir todos los servicios.",fyt="Puede encontrar su clave aquí en 'Documentación'",myt="El nombre fue modificado por el usuario",gyt="Si usa su propia nube, puede permitir el uso de certificados autofirmados para la nube.",_yt="Esta clave es necesaria para comunicarse con una nube. Puede obtener la API-KEY en https://iobroker.net y se ve como nickname_f1f439a0-001a-11e7-bc64-92361f002671",vyt="Normalmente no es necesario cambiarlo. Solo es obligatorio si planea usar su propia nube.",yyt="Definir cómo concatenar Habitación y Función. P.ej. con 'en': luz en la sala de estar.",byt="Algunos grupos consisten en dispositivos mixtos: atenuadores e interruptores. Se permite controlarlos con comandos ON y OFF y con porcentajes",wyt="Normalmente los nombres parecen room_function. Aquí puedes cambiarlo a function_room.",Syt="Instancia web, que se mostrará para sus conexiones desde la nube.",xyt="Puede definir los idiomas para cambiar rápidamente entre US Alexa Skill y DE Alexa Skill.",kyt="Si está habilitado, la configuración se almacenará solo para esta instancia. Entonces, en la otra instancia, se podrían establecer los otros nombres.",$yt="Para cada comando, se generará la respuesta de texto. Aquí puede definir la ID del objeto, donde debe escribirse este texto. P.ej. sayit.0.tts.text.",Cyt="Solución alternativa para la conexión faltante a Alexa después de la conexión a la nube se perdió. Con esta opción, puede reiniciar el adaptador después de cada desconexión y funcionará.",Eyt="No puede usar% en la contraseña. Estamos trabajando en la solución.",Tyt=`La contraseña debe tener al menos 8 caracteres y debe tener números, letras mayúsculas y minúsculas. Por favor cámbielo en el perfil ioBroker.pro +`,Oyt="Si realizó una restauración desde la copia de seguridad, o movió su instancia de un dispositivo a otro o eliminó la instancia de IoT y la agregó nuevamente, debe cargar los certificados de seguridad de conexión con este botón",Dyt="Si falla el inicio de sesión en Alexa Skill/Google Action/Alisa con los datos de inicio de sesión de ioBroker.pro, presione el botón a continuación.",Ayt='Cualquier pregunta en cualquier idioma, por favor pregunte aquí en el foro: enlace ',Nyt="Seleccione un TYPE y un TRAIT después de agregar un estado. Para agregar múltiples rasgos, agregue una identificación y un rasgo diferentes pero el mismo nombre inteligente, tipo y sala. Coma separada para los múltiples nombres inteligentes. Para asignar una habitación, utilice las Enums/Aufzählungen de ioBroker. Con atributos, por ejemplo, puede establecer un rango para la temperatura de color Infos sobre Atributos que puede encontrar aquí. El atributo vacío es {}",Myt="Buscar",jyt="Nombre",Iyt="Habitación",zyt="ID",Ryt="Tipo de IoB",Pyt="Atributos",Lyt="Automáticamente",Fyt="Borrar",Byt="Regulador de intensidad",Wyt="Encendido/Apagado",Hyt="Color",Uyt="Detección",Vyt="Cerrar",Gyt="Modo",qyt="Apagado",Jyt="Porcentaje",Xyt="Temperatura",Yyt="Volumen",Kyt="enchufe",Zyt="luz",Qyt="regulador de intensidad",e0t="termostato",t0t="Persianas",n0t="puerta",r0t="cerrar",o0t="matiz",s0t="movimiento",a0t="control deslizante",i0t="temperatura",l0t="ventana",c0t="Termostato",d0t="Luz",u0t="Aire acondicionado",p0t="Persianas",h0t="sensor de contacto",f0t="Control",m0t="Puerta",g0t="Puerta",_0t="Matiz",v0t="Movimiento",y0t="Deslizador",b0t="Enchufe",w0t="aspiradora",S0t="grupo de volumen",x0t="Ventana",k0t="Sensor",$0t="Persianas",C0t="Palanca",E0t={"(Set to 0 if behavior not desired)":"(Se establece en 0 si no se desea el comportamiento)","(you can separate names with comma)":"Puede ingresar varios nombres divididos por coma",Active:Pvt,"Add device":"Añadir dispositivo","Add service":"Añadir servicio",Addresses:Lvt,"Alexa devices":"Dispositivos de Alexa","Alisa devices":"Dispositivos alisa","Allow admin access (only pro)":"Permitir acceso de administrador (solo pro)","Allow self-signed certificates":"Permitir certificados autofirmados","Amazon Alexa":"Amazon Alexa","Are you sure?":"¿Estás seguro?","Attributes has not correct JSON format.":"Los atributos no están en el formato JSON correcto","Authentication must be disabled. You can create second instance extra for cloud.":"La autenticación debe estar deshabilitada. Puede crear una segunda instancia extra para la nube.",Cancel:Fvt,"Cannot add this object":"No se puede agregar este objeto porque no es compatible.","Cannot read devices!":"No se pueden leer los dispositivos!","Certificates will be updated after initiated restart":"Los certificados se actualizarán después de reiniciarse","Certificates will be updated after start":"Los certificados se actualizarán después del inicio","Click now Get new connection certificates to request new temporary password":'Haga clic ahora en "Obtener nuevos certificados de conexión" para solicitar una nueva contraseña temporal',Close:Bvt,"Cloud URL":"URL en la nube","Cloud adapter settings":"Configuración del adaptador de nube",Commands:Wvt,"Concatenate words with":"Concatenar palabras con","Connection timeout":"Tiempo de espera de conexión (ms)","Debug outputs":"Salidas de depuración","Decrement color temperature":"Disminución de la temperatura de color.","Decrement percentage":"Porcentaje de decremento","Decrement target temperature":"Disminuir la temperatura objetivo",Default:Hvt,"Device %s was not added":"El dispositivo %s no fue agregado","Device will be deactivated.":"El dispositivo se desactivará.","Device will be disabled.":"El dispositivo %s estará deshabilitado.",Dimmer:Uvt,"Duplicate name":"Nombre duplicado","Edit smart name":"Editar nombre inteligente",Error:"Error","Extended options":"Opciones extendidas",Filter:Vvt,"For help use this forum":"Para obtener ayuda, visite este foro publicar",Functions:Gvt,"Get actual temperature":"Obtener la temperatura real","Get new connection certificates":"Obtenga nuevos certificados de conexión","Get new service URL key":"Obtener nueva clave de servicio URL","Get target temperature":"Obtener temperatura objetivo","Google Home":"Google Home","IFTTT key":"Tecla IFTTT","Increment color temperature":"Temperatura de color incrementada","Increment percentage":"Porcentaje de incremento","Increment target temperature":"Incrementar la temperatura objetivo",Instance:qvt,"Instance does not exists":"La instancia no existe","Instance is not active.":"La instancia no está activa.","Instance must be enabled":"La instancia debe estar habilitada","Instance must run to deliver the data":"La instancia debe ejecutarse para entregar los datos","Invalid object":"Objeto inválido",Language:Jvt,"Load configuration from file":"Cargar configuración desde archivo",Message:Xvt,"OFF level for switches":"Nivel de apagado para interruptores","OFF level for switches in %":"Nivel OFF para interruptores en %",Off:Yvt,Ok:Kvt,On:Zvt,"On/Off":"Encendido apagado",Options:Qvt,"Personal settings (only pro)":"Configuración personal (solo pro)","Ping timeout:":"Tiempo de espera de ping (ms)","Place function in names first":"Coloque la función en los nombres primero","Please add action and trait to complete the Google Home state.":"Agregue acción y rasgo para completar el estado de Google Home.","Please add type and trait to complete the Google Home state.":"Agregue tipo y rasgo para completar el estado de Google Home.","Please select object ID...":"Por favor seleccione ID de objeto ...","Please write your email only in lower case letters":"Por favor escriba su correo electrónico sólo en minúsculas","Read lock state":"Estado de bloqueo de lectura","Replace in names":"Reemplazar en nombres","Request email with password one more time":"Solicitar correo electrónico con contraseña una vez más","Restart on disconnect":"Reiniciar al desconectar",Review:eyt,Rooms:tyt,Save:nyt,"Save and close":"Guardar y cerrar","Save configuration to file":"Guardar la configuración en el archivo","Save settings and the names will be changed":"Guarde la configuración y los nombres serán cambiados",Select:ryt,"Service names":"Nombres de servicio","Services and IFTTT":"Servicios e IFTTT","Set color":"Establecer color","Set color temperature":"Ajustar la temperatura de color","Set lock state":"Establecer el estado de bloqueo","Set percentage":"Establecer porcentaje","Set target temperature":"Ajustar la temperatura objetivo","Smart Devices":"Dispositivos inteligentes","Smart Enums":"Smart Enums","Smart Media":"Smart Media","Smart enums":"Enums inteligentes","Smart name":"Nombre inteligente","Smart name for %s":"Nombre inteligente para %s","To apply this setting, the restart of adapter must be done. Agree?":"Para aplicar esta configuración, el adaptador debe reiniciarse. ¿De acuerdo?","To auto detect devices please assign a room and function to the channel if no channel available than assign to a device. Not only to the state or device. And enable them under SmartEnum/Intelligente Aufzählung":"Para la detección automática, debajo de los objetos asigne un canal (dispositivo si no hay un canal disponible) a una sala y función. No es suficiente asignar la habitación a un estado o dispositivo. Las habitaciones/funciones se pueden agregar en la enumeración (indicada por la flecha blanca en la parte superior derecha) y se deben activar en el adaptador IoT en la enumeración inteligente. Para reconocer automáticamente los estados manuales, el estado debe ser eliminado.","Turn off":"Apagar","Turn on":"Encender",Type:oyt,Types:syt,"Use Nightscout instance":"Use la instancia del Nightscout","Use following link for IFTTT":"Utilice el siguiente enlace para IFTTT","Use following link for custom service":"Use el siguiente enlace para servicio personalizado","Use text2command instance":"Use la instancia del comando text2",Value:ayt,"White list for services":"Lista blanca de servicios","Write response to":"Escribir respuesta a","Yandex Алиса":"Yandex Алиса","You can enter several names divided by comma":"Puede introducir varios nombres divididos por comas","amazon link":"Si usa Alexa Skill, escriba una opinión para nosotros aquí .
Se pueden encontrar ejemplos aquí .","by ON":"por el",clear:iyt,default:"defecto",disabled:lyt,help_link_tip1:cyt,help_link_tip2:dyt,help_link_tip3:uyt,help_tip:pyt,info_allowedServices:hyt,info_iftttKey:fyt,"ioBroker.pro Login":"ioBroker.pro Login","ioBroker.pro Password":"ioBroker.pro Contraseña","omit value":"sin valor","last value":"último valor",modified:myt,"no type":"Sin tipo",tooltip_allowSelfSignedCertificate:gyt,tooltip_apikey:_yt,tooltip_cloudUrl:vyt,tooltip_concatWord:yyt,tooltip_deviceOffLevel:byt,tooltip_functionFirst:wyt,tooltip_instance:Syt,tooltip_language:xyt,tooltip_noCommon:kyt,tooltip_responseOID:$yt,tooltip_restartOnDisconnect:Cyt,"Short answer for blood sugar":"Respuesta corta para azúcar en la sangre",cannot_use_password:Eyt,invalid_password_warning:Tyt,new_certs_tip:Oyt,new_credentials_tip:Dyt,"Create IoT credentials anew":"Crear nuevas credenciales de IoT",forum_tip:Ayt,"Save settings before pressing this button":"Guarde la configuración antes de presionar este botón","Auto Mode":"Modo automático","Manual Mode":"Modo manual",manualModeHint:Nyt,"not activated":"no esta activado","Google devices":"Dispositivos de Google","Show/Hide help":"Mostrar / Ocultar ayuda","Show all devices for print out":"Mostrar todos los dispositivos para imprimir",Search:Myt,"List of devices to print out, e.g. to give all device names to your partner.":"Lista de dispositivos para imprimir, p. para dar todos los nombres de dispositivo a su pareja.",Name:jyt,Function:"Función",Room:Iyt,"Copy to clipboard":"Copiar al portapapeles","Toggle expert mode":"Alternar modo experto",ID:zyt,"Smart names":"Nombres inteligentes",ioBType:Ryt,"Function/Trait":"Función / rasgo",Attributes:Pyt,Auto:Lyt,"Conversation to GH":"Convertir a GH","Conversation to ioB":"Convertir a ioB","Information: The skill linking process was changed!":"Información: ¡Se cambió el proceso de vinculación de habilidades!","The linking process has been changed for a few months.":"El proceso de vinculación se ha modificado durante unos meses.","Now there is no temporary password that will be sent by email.":"Ahora no hay una contraseña temporal que se enviará por correo electrónico.","The password is equal with ioBroker.pro and with password that was entered here in the settings!":"¡La contraseña es igual a ioBroker.pro y con la contraseña que se ingresó aquí en la configuración!","Not understood":"No se entiende","Roger that":"Entendido","Read blood sugar from":"Leer azúcar en sangre de","Get actual humidity":"Obtenga la humedad real","Get motion":"Obtener movimiento","Get contact":"Obtener estado de contacto","Too many devices (%s) configured. Max number is 300":"Demasiados dispositivos (%s) configurados. ¡El número máximo es 300!","Allow remote access":"Permitir acceso remoto","Admin instance":"Instancia de administrador","Web instance":"Instancia web","Device %s will be disabled.":"El dispositivo %s se desactivará.",Delete:Fyt,Brightness:Byt,Power:Wyt,"Color temperature":"Temperatura del color",Color:Hyt,Detection:Uyt,Lock:Vyt,Mode:Gyt,Muted:qyt,Percentage:Jyt,"Set point":"Punto fijo",Temperature:Xyt,"Thermostat mode":"Modo termostato",Volume:Yyt,socket:Kyt,light:Zyt,dimmer:Qyt,thermostat:e0t,blind:t0t,gate:n0t,lock:r0t,hue:o0t,motion:s0t,slider:a0t,temperature:i0t,window:l0t,Thermostat:c0t,Light:d0t,AirCondition:u0t,Blind:p0t,ContactSensor:h0t,Control:f0t,Door:m0t,Gate:g0t,Hue:_0t,Motion:v0t,Slider:y0t,Socket:b0t,VacuumCleaner:w0t,VolumeGroup:S0t,Window:x0t,"Color HUE":"Color TONO","Door sensor":"sensor de puerta",Sensor:k0t,"Vacuum cleaner":"aspiradora","Volume group":"grupo de volumen","Window sensor":"sensor de ventana",Blinds:$0t,"Grouped from %s and %s":"Agrupados de %s y %s","Default toggle behaviour (Only alexa v3)":"Comportamiento de alternancia predeterminado (solo alexa v3)","Do not toggle":"no alternar",Toggle:C0t,"This service is reserved for the ioBroker.visu app. Please use another service name.":"Este servicio está reservado para la aplicación ioBroker.visu. Utilice otro nombre de servicio."},T0t="Aktywny",O0t="Adresy",D0t="Odwołaj",A0t="Zamknij",N0t="Polecenia",M0t="Domyślna",j0t="Opornik",I0t="Filtr",z0t="Funkcje",R0t="Instancja",P0t="Język",L0t="Wiadomość",F0t="poza",B0t="Ok",W0t="na",H0t="Opcje",U0t="Przejrzeć",V0t="Pokoje",G0t="Zapisz",q0t="Wybierz",J0t="Typ",X0t="Rodzaje",Y0t="Wartość",K0t="Oczyścić",Z0t="niepełnosprawny",Q0t='Przed napisaniem do wsparcia upewnij się, że przeczytałeś i zrozumiałeś instrukcje strony: https://www.iobroker.net',ebt='Jeśli nadal masz problem z połączeniem z Iot, możesz poprosić o wsparcie na Forum',tbt='i dopiero potem powinieneś napisać e-mail na adres support@iobroker.com',nbt='Brak konta iobroker.pro? Kup go na https://iobroker.pro w celu zweryfikowania dostępu lub uzyskaj bezpłatny, ale ograniczony dostęp.',rbt="podzielone przecinkiem. Użyj *, aby zezwolić na wszystkie usługi.",obt=`Możesz znaleźć klucz tutaj w sekcji "Dokumentacja"`,sbt="Nazwa została zmodyfikowana przez użytkownika",abt="Jeśli korzystasz z własnej chmury, możesz zezwolić na używanie samopodpisanych certyfikatów dla chmury.",ibt="Ten klucz jest wymagany do komunikacji z chmurą. Możesz pobrać API-KEY na https://iobroker.net i wygląda jak pseudonim_f1f439a0-001a-11e7-bc64-92361f002671",lbt="Zwykle nie musisz tego zmieniać. Wymagane tylko, jeśli masz zamiar korzystać z własnej chmury.",cbt='Określ, jak połączyć pokój i funkcję. Na przykład. z "in": Światło w salonie.',dbt="Niektóre grupy składają się z różnych urządzeń: ściemniaczy i przełączników. Dozwolone jest sterowanie nimi za pomocą poleceń ON i OFF oraz procentami",ubt="Normalnie nazwy wyglądają jak room_function. Tutaj możesz przełączyć go do function_room.",pbt="Instancja internetowa, która będzie wyświetlana dla twoich połączeń z chmury.",hbt="Możesz zdefiniować języki, aby szybko przełączać się pomiędzy US Alexa Skill i DE Alexa Skill.",fbt="Jeśli jest włączona, ustawienia będą przechowywane tylko dla tej instancji. Tak więc w innym przypadku można ustawić inne nazwy.",mbt="Dla każdego polecenia zostanie wygenerowana odpowiedź tekstowa. Możesz tu zdefiniować identyfikator obiektu, do którego należy zapisać ten tekst. Na przykład. sayit.0.tts.text.",gbt="Rozwiązano problem braku połączenia z Alexa po utracie połączenia z chmurą. Dzięki tej opcji można ponownie uruchomić adapter po każdym rozłączeniu i będzie działać.",_bt="Nie możesz użyć% w haśle. Pracujemy nad poprawką.",vbt=`Hasło musi mieć co najmniej 8 znaków i musi zawierać cyfry, wielkie i małe litery. Zmień to w profilu ioBroker.pro +`,ybt="Jeśli wykonałeś przywracanie z kopii zapasowej, przeniosłeś instancję z jednego urządzenia na drugie lub usunąłeś instancję IoT i dodałeś ją ponownie, musisz załadować certyfikaty bezpieczeństwa połączenia za pomocą tego przycisku",bbt="Jeśli logowanie do Alexa Skill/Google Action/Alisa za pomocą danych logowania ioBroker.pro nie powiedzie się, naciśnij poniższy przycisk.",wbt='Wszelkie pytania w dowolnym języku prosimy zadawać tutaj na forum: link ',Sbt="Wybierz TYPE i TRAIT po dodaniu stanu. Aby dodać wiele cech, dodaj inny identyfikator i cechę, ale tę samą inteligentną nazwę, typ i pokój. Oddzielony przecinkami dla wielu inteligentnych nazw. Aby przypisać pokój, użyj ioBroker Enums/Aufzählungen. Za pomocą atrybutów możesz na przykład ustawić zakres temperatury kolorów Informacje o Atrybuty można znaleźć tutaj. Pusty atrybut to {}",xbt="Szukaj",kbt="Nazwa",$bt="Pokój",Cbt="ID",Ebt="Typ IoB",Tbt="Atrybuty",Obt="Automatycznie",Dbt="Usuwać",Abt="Opornik",Nbt="Wł./Wył",Mbt="Kolor",jbt="Wykrycie",Ibt="Zamek",zbt="Tryb",Rbt="Wyciszony",Pbt="Odsetek",Lbt="Temperatura",Fbt="Tom",Bbt="gniazdo elektryczne",Wbt="światło",Hbt="opornik",Ubt="termostat",Vbt="rolety okienne",Gbt="brama",qbt="zamek",Jbt="odcień",Xbt="ruch",Ybt="suwak",Kbt="temperatura",Zbt="okno",Qbt="Termostat",e1t="Światło",t1t="Klimatyzacja",n1t="Rolety okienne",r1t="Czujnik kontaktowy",o1t="Kontrola",s1t="Drzwi",a1t="Brama",i1t="Odcień",l1t="Ruch",c1t="Suwak",d1t="Gniazdo elektryczne",u1t="Odkurzacz",p1t="Grupa woluminów",h1t="Okno",f1t="Czujnik",m1t="Rolety okienne",g1t="Przełącznik",_1t={"(Set to 0 if behavior not desired)":"(Ustaw na 0, jeśli zachowanie nie jest pożądane)","(you can separate names with comma)":"Możesz wprowadzić kilka nazw podzielonych przecinkami",Active:T0t,"Add device":"Dodaj urządzenie","Add service":"Dodaj usługę",Addresses:O0t,"Alexa devices":"Urządzenia Alexa","Alisa devices":"Urządzenia Alisa","Allow admin access (only pro)":"Zezwalaj na dostęp administratora (tylko pro)","Allow self-signed certificates":"Zezwalaj na certyfikaty z podpisem własnym","Amazon Alexa":"Amazon Alexa","Are you sure?":"Jesteś pewny?","Attributes has not correct JSON format.":"Atrybuty mają niepoprawny format JSON","Authentication must be disabled. You can create second instance extra for cloud.":"Uwierzytelnianie musi być wyłączone. Możesz utworzyć dodatkową instancję dodatkową dla chmury.",Cancel:D0t,"Cannot add this object":"Nie można dodać tego obiektu, ponieważ nie jest obsługiwany.","Cannot read devices!":"Nie można odczytać urządzeń!","Certificates will be updated after initiated restart":"Certyfikaty będą aktualizowane po ponownym uruchomieniu","Certificates will be updated after start":"Certyfikaty będą aktualizowane po starcie","Click now Get new connection certificates to request new temporary password":'Kliknij teraz "Pobierz nowe certyfikaty połączeń", aby poprosić o nowe tymczasowe hasło',Close:A0t,"Cloud URL":"Chmura adresu URL","Cloud adapter settings":"Ustawienia adaptera chmury",Commands:N0t,"Concatenate words with":"Połącz słowa z","Connection timeout":"Limit czasu połączenia (ms)","Debug outputs":"Wyjścia debugowania","Decrement color temperature":"Zmniejsz temperaturę barwową","Decrement percentage":"Procent zmniejszenia","Decrement target temperature":"Zmniejsz temperaturę docelową",Default:M0t,"Device %s was not added":"Urządzenie %s nie zostało dodane","Device will be deactivated.":"Urządzenie zostanie dezaktywowane.","Device will be disabled.":"Urządzenie zostanie wyłączone.",Dimmer:j0t,"Duplicate name":"Zduplikowana nazwa","Edit smart name":"Edytuj inteligentną nazwę",Error:"Błąd","Extended options":"Rozszerzone opcje",Filter:I0t,"For help use this forum":"Aby uzyskać pomoc, odwiedź to forum post",Functions:z0t,"Get actual temperature":"Uzyskaj rzeczywistą temperaturę","Get new connection certificates":"Uzyskaj nowe certyfikaty połączeń","Get new service URL key":"Uzyskaj nowy klucz URL usługi","Get target temperature":"Uzyskaj docelową temperaturę","Google Home":"Google Home","IFTTT key":"Klawisz IFTTT","Increment color temperature":"Przyrost temperatury barwowej","Increment percentage":"Przyrost procentowy","Increment target temperature":"Przyrost temperatury docelowej",Instance:R0t,"Instance does not exists":"Instancja nie istnieje","Instance is not active.":"Instancja nie jest aktywna.","Instance must be enabled":"Instancja musi być włączona","Instance must run to deliver the data":"Instancja musi zostać uruchomiona w celu dostarczenia danych","Invalid object":"Nieprawidłowy obiekt",Language:P0t,"Load configuration from file":"Załaduj konfigurację z pliku",Message:L0t,"OFF level for switches":"Poziom OFF dla przełączników","OFF level for switches in %":"Poziom wyłączenia dla przełączników w %",Off:F0t,Ok:B0t,On:W0t,"On/Off":"Włącz/Wyłącz",Options:H0t,"Personal settings (only pro)":"Ustawienia osobiste (tylko pro)","Ping timeout:":"Limit czasu pingowania (ms)","Place function in names first":"Najpierw umieść funkcję w imionach","Please add action and trait to complete the Google Home state.":"Dodaj działanie i cechę, aby ukończyć stan Google Home.","Please add type and trait to complete the Google Home state.":"Dodaj typ i cechę, aby ukończyć stan Google Home.","Please select object ID...":"Wybierz identyfikator obiektu ...","Please write your email only in lower case letters":"Napisz swój e-mail tylko małymi literami","Read lock state":"Czytaj stan blokady","Replace in names":"Zastąp imiona","Request email with password one more time":"Poproś jeszcze raz o e-mail z hasłem","Restart on disconnect":"Uruchom ponownie po rozłączeniu",Review:U0t,Rooms:V0t,Save:G0t,"Save and close":"Zapisz i zamknij","Save configuration to file":"Zapisz konfigurację do pliku","Save settings and the names will be changed":"Zapisz ustawienia i nazwy zostaną zmienione",Select:q0t,"Service names":"Nazwy usług","Services and IFTTT":"Usługi i IFTTT","Set color":"Ustaw kolor","Set color temperature":"Ustaw temperaturę barwową","Set lock state":"Ustaw stan blokady","Set percentage":"Ustaw procent","Set target temperature":"Ustaw temperaturę docelową","Smart Devices":"Inteligentne urządzenia","Smart Enums":"Inteligentne wyliczenia","Smart Media":"Smart Media","Smart enums":"Inteligentne enumy","Smart name":"Inteligentna nazwa","Smart name for %s":"Inteligentna nazwa dla %s","To apply this setting, the restart of adapter must be done. Agree?":"Aby zastosować to ustawienie, adapter musi zostać zrestartowany. Zgodzić się?","To auto detect devices please assign a room and function to the channel if no channel available than assign to a device. Not only to the state or device. And enable them under SmartEnum/Intelligente Aufzählung":"W celu automatycznego wykrywania pod obiektami przypisz kanał (urządzenie, jeśli żaden kanał nie jest dostępny) do pokoju i funkcji. Nie wystarczy przypisać pokój do stanu lub urządzenia. Pomieszczenia/funkcje można dodawać w ramach wyliczenia (oznaczonego białą strzałką w prawym górnym rogu) i należy je aktywować w adapterze IoT w obszarze Inteligentne wyliczanie. Aby automatycznie rozpoznać stany ręczne, należy je usunąć.","Turn off":"Wyłączyć","Turn on":"Włączyć",Type:J0t,Types:X0t,"Use Nightscout instance":"Użyj instancji Nightscout","Use following link for IFTTT":"Użyj następującego linku dla IFTTT","Use following link for custom service":"Użyj poniższego linku do niestandardowej usługi","Use text2command instance":"Użyj instancji text2command",Value:Y0t,"White list for services":"Biała lista dla usług","Write response to":"Napisz odpowiedź na","Yandex Алиса":"Yandex Алиса","You can enter several names divided by comma":"Możesz wprowadzić kilka nazw podzielonych przecinkiem","amazon link":`Jeśli używasz umiejętności Alexa, napisz recenzję dla nas here . Przykłady można znaleźć tutaj .`,"by ON":"przez ON",clear:K0t,default:"domyślna",disabled:Z0t,help_link_tip1:Q0t,help_link_tip2:ebt,help_link_tip3:tbt,help_tip:nbt,info_allowedServices:rbt,info_iftttKey:obt,"ioBroker.pro Login":"ioBroker.pro Login","ioBroker.pro Password":"ioBroker.pro Hasło","omit value":"brak wartości","last value":"ostatnia wartość",modified:sbt,"no type":"bez typu",tooltip_allowSelfSignedCertificate:abt,tooltip_apikey:ibt,tooltip_cloudUrl:lbt,tooltip_concatWord:cbt,tooltip_deviceOffLevel:dbt,tooltip_functionFirst:ubt,tooltip_instance:pbt,tooltip_language:hbt,tooltip_noCommon:fbt,tooltip_responseOID:mbt,tooltip_restartOnDisconnect:gbt,"Short answer for blood sugar":"Krótka odpowiedź na cukier we krwi",cannot_use_password:_bt,invalid_password_warning:vbt,new_certs_tip:ybt,new_credentials_tip:bbt,"Create IoT credentials anew":"Utwórz ponownie poświadczenia IoT",forum_tip:wbt,"Save settings before pressing this button":"Zapisz ustawienia przed naciśnięciem tego przycisku","Auto Mode":"Tryb automatyczny","Manual Mode":"Tryb ręczny",manualModeHint:Sbt,"not activated":"nie aktywowany","Google devices":"Urządzenia Google","Show/Hide help":"Pokaż / ukryj pomoc","Show all devices for print out":"Pokaż wszystkie urządzenia do wydrukowania",Search:xbt,"List of devices to print out, e.g. to give all device names to your partner.":"Lista urządzeń do wydrukowania, np. aby podać wszystkie nazwy urządzeń swojemu partnerowi.",Name:kbt,Function:"Funkcja",Room:$bt,"Copy to clipboard":"Skopiuj do schowka","Toggle expert mode":"Przełącz tryb ekspercki",ID:Cbt,"Smart names":"Inteligentne nazwy",ioBType:Ebt,"Function/Trait":"Funkcja / cecha",Attributes:Tbt,Auto:Obt,"Conversation to GH":"Konwertuj na GH","Conversation to ioB":"Konwertuj na ioB","Information: The skill linking process was changed!":"Informacja: Zmieniono proces łączenia umiejętności!","The linking process has been changed for a few months.":"Od kilku miesięcy zmienił się proces łączenia.","Now there is no temporary password that will be sent by email.":"Teraz nie ma tymczasowego hasła, które zostanie wysłane e-mailem.","The password is equal with ioBroker.pro and with password that was entered here in the settings!":"Hasło jest równe z ioBroker.pro i hasłem, które zostało wprowadzone tutaj w ustawieniach!","Not understood":"Nie rozumiem","Roger that":"Przyjąłem","Read blood sugar from":"Odczytaj poziom cukru we krwi","Get actual humidity":"Uzyskaj aktualną wilgotność","Get motion":"Wpraw się w ruch","Get contact":"Uzyskaj status kontaktu","Too many devices (%s) configured. Max number is 300":"Za dużo skonfigurowanych urządzeń (%s). Maksymalna liczba to 300!","Allow remote access":"Zezwól na zdalny dostęp","Admin instance":"Instancja administracyjna","Web instance":"Instancja internetowa","Device %s will be disabled.":"Urządzenie %s zostanie wyłączone.",Delete:Dbt,Brightness:Abt,Power:Nbt,"Color temperature":"Temperatura koloru",Color:Mbt,Detection:jbt,Lock:Ibt,Mode:zbt,Muted:Rbt,Percentage:Pbt,"Set point":"Ustaw punkt",Temperature:Lbt,"Thermostat mode":"Tryb termostatu",Volume:Fbt,socket:Bbt,light:Wbt,dimmer:Hbt,thermostat:Ubt,blind:Vbt,gate:Gbt,lock:qbt,hue:Jbt,motion:Xbt,slider:Ybt,temperature:Kbt,window:Zbt,Thermostat:Qbt,Light:e1t,AirCondition:t1t,Blind:n1t,ContactSensor:r1t,Control:o1t,Door:s1t,Gate:a1t,Hue:i1t,Motion:l1t,Slider:c1t,Socket:d1t,VacuumCleaner:u1t,VolumeGroup:p1t,Window:h1t,"Color HUE":"Barwa koloru","Door sensor":"Czujnik drzwi",Sensor:f1t,"Vacuum cleaner":"Odkurzacz","Volume group":"Grupa woluminów","Window sensor":"Czujnik okna",Blinds:m1t,"Grouped from %s and %s":"Pogrupowane z %s i %s","Default toggle behaviour (Only alexa v3)":"Domyślne zachowanie przełączania (tylko Alexa v3)","Do not toggle":"Nie przełączaj",Toggle:g1t,"This service is reserved for the ioBroker.visu app. Please use another service name.":"Usługa ta jest zarezerwowana dla aplikacji ioBroker.visu. Użyj innej nazwy usługi."},v1t="Активний",y1t="Адреси",b1t="Атрибути",w1t="Автоматично",S1t="Скасувати",x1t="Закрити",k1t="Команди",$1t="За замовчуванням",C1t="Диммер",E1t="фільтр",T1t="Функції",O1t="ID",D1t="Екземпляр",A1t="Мову",N1t="повідомлення",M1t="Ім'я",j1t="вимкнено",I1t="В порядку",z1t="на",R1t="Опції",P1t="огляд",L1t="Кімната",F1t="Кімнати",B1t="зберегти",W1t="Пошук",H1t="Виберіть",U1t="Тип",V1t="Типи",G1t="Значення",q1t="Ви не можете використовувати % у паролі. Ми працюємо над виправленням.",J1t="ясно",X1t="вимкнено",Y1t='Будь-які запитання будь-якою мовою задавайте тут, на форумі: посилання',K1t='Перш ніж писати в службу підтримки, переконайтеся, що ви прочитали та зрозуміли інструкції на веб-сторінці: https://www.iobroker.net',Z1t='Якщо у вас усе ще виникають проблеми з підключенням до Iot, ви можете подати запит на підтримку на форумі',Q1t='і тільки після цього вам слід написати листа на support@iobroker.com',ewt='Немає облікового запису iobroker.pro? Придбайте його на https://iobroker.pro для перевіреного доступу або отримайте безкоштовний, але обмежений доступ.',twt="розділені комою. Використовуйте *, щоб дозволити всі служби.",nwt="Ви можете знайти свій ключ тут у розділі «Документація»",rwt=`Пароль має містити не менше 8 символів і містити цифри, великі та малі літери. Будь ласка, змініть його в профілі ioBroker.pro +`,owt="Тип IoB",swt="Виберіть TYPE і TRAIT після додавання стану. Щоб додати кілька характеристик, додайте інший ідентифікатор і ознаку, але однакові розумне ім’я, тип і кімнату. Розділені комами для кількох розумних імен. Щоб призначити кімнату, скористайтеся ioBroker Enums/Aufzählungen. За допомогою атрибутів ви можете, наприклад, встановити діапазон для колірної температури Інформація про Атрибути можна знайти тут. Порожній атрибут: {}",awt="Ім'я було змінено користувачем",iwt="Якщо ви відновили з резервної копії або перемістили екземпляр з одного пристрою на інший, або видалили екземпляр IoT і додали його знову, ви повинні завантажити сертифікати безпеки підключення за допомогою цієї кнопки",lwt="Якщо вхід до Alexa Skill/Google Action/Alisa за допомогою даних для входу ioBroker.pro не вдається, натисніть кнопку нижче.",cwt="Якщо ви використовуєте власну хмару, ви можете дозволити використання самопідписаних сертифікатів для хмари.",dwt="Цей ключ потрібен для зв’язку з хмарою. Ви можете отримати API-KEY на https://iobroker.net і він виглядає як nickname_f1f439a0-001a-11e7-bc64-92361f002671",uwt="Зазвичай вам не потрібно його міняти. Потрібно, лише якщо ви плануєте використовувати власну хмару.",pwt="Визначте, як об’єднати кімнату та функцію. наприклад з 'in': світло у вітальні.",hwt="Деякі групи складаються зі змішаних пристроїв: диммерів і вимикачів. Дозволяється керувати ними за допомогою команд ON і OFF, а також за допомогою відсотків",fwt="Зазвичай назви виглядають як room_function. Тут ви можете переключити його на function_room.",mwt="Веб-екземпляр, який буде показано для ваших підключень із хмари.",gwt="Ви можете визначити мови для швидкого перемикання між US Alexa Skill і DE Alexa Skill.",_wt="Якщо ввімкнено, налаштування зберігатимуться лише для цього екземпляра. Отже, в іншому випадку можна встановити інші імена.",vwt="Для кожної команди буде згенеровано текстову відповідь. Тут можна визначити ідентифікатор об’єкта, куди має бути записано цей текст. наприклад sayit.0.tts.text.",ywt="Обхідний шлях для відсутності підключення до Alexa після втрати підключення до хмари. За допомогою цієї опції ви можете перезавантажувати адаптер після кожного відключення, і він працюватиме.",bwt="Видалити",wwt="Диммер",Swt="Увімкнено/Вимкнено",xwt="Колір",kwt="виявлення",$wt="Замок",Cwt="Режим",Ewt="Вимкнено",Twt="Відсоток",Owt="температура",Dwt="Обсяг",Awt="гніздо",Nwt="світло",Mwt="диммер",jwt="термостат",Iwt="віконні жалюзі",zwt="ворота",Rwt="замок",Pwt="відтінок",Lwt="руху",Fwt="повзунок",Bwt="температура",Wwt="вікно",Hwt="Термостат",Uwt="світло",Vwt="Кондиціонер",Gwt="Віконні жалюзі",qwt="Контактний датчик",Jwt="КОНТРОЛЬ",Xwt="двері",Ywt="Ворота",Kwt="Відтінок",Zwt="Рух",Qwt="повзунок",eSt="Розетка",tSt="Пилосос",nSt="Група томів",rSt="Вікно",oSt="датчик",sSt="Віконні жалюзі",aSt="Перемикач",iSt={"(Set to 0 if behavior not desired)":"(Встановіть 0, якщо поведінка небажана)","(you can separate names with comma)":"Ви можете ввести кілька імен, розділених комою",Active:v1t,"Add device":"Додайте пристрій","Add service":"Додати послугу",Addresses:y1t,"Admin instance":"Примірник адміністратора","Alexa devices":"Пристрої Alexa","Alisa devices":"пристрої Аліса","Allow admin access (only pro)":"Дозволити доступ адміністратора (лише для професіоналів)","Allow remote access":"Дозволити віддалений доступ","Allow self-signed certificates":"Дозволити самопідписані сертифікати","Amazon Alexa":"Amazon Alexa","Are you sure?":"Ти впевнений?",Attributes:b1t,"Attributes has not correct JSON format.":"Атрибути мають неправильний формат JSON","Authentication must be disabled. You can create second instance extra for cloud.":"Автентифікація повинна бути вимкнена. Ви можете створити додатковий другий екземпляр для хмари.",Auto:w1t,"Auto Mode":"Автоматичний режим",Cancel:S1t,"Cannot add this object":"Неможливо додати цей об’єкт, оскільки не підтримується.","Cannot read devices!":"Неможливо прочитати пристрої!","Certificates will be updated after initiated restart":"Сертифікати будуть оновлені після ініційованого перезапуску","Certificates will be updated after start":"Сертифікати будуть оновлені після запуску","Click now Get new connection certificates to request new temporary password":"Натисніть «Отримати нові сертифікати підключення», щоб запитати новий тимчасовий пароль",Close:x1t,"Cloud URL":"URL-адреса хмари","Cloud adapter settings":"Налаштування хмарного адаптера",Commands:k1t,"Concatenate words with":"Сполучіть слова з","Connection timeout":"Час очікування підключення (мс)","Conversation to GH":"Перетворити в GH","Conversation to ioB":"Перетворити в ioB","Copy to clipboard":"Копіювати в буфер обміну","Create IoT credentials anew":"Створіть облікові дані IoT заново","Debug outputs":"Виходи налагодження","Decrement color temperature":"Зменшити колірну температуру","Decrement percentage":"Відсоток зменшення","Decrement target temperature":"Зменшити цільову температуру",Default:$1t,"Device %s was not added":"Пристрій %s не додано","Device will be deactivated.":"Пристрій буде деактивовано.","Device will be disabled.":"Пристрій %s буде вимкнено.",Dimmer:C1t,"Duplicate name":"Повторюване ім'я","Edit smart name":"Редагувати розумне ім'я",Error:"Помилка","Extended options":"Розширені параметри",Filter:E1t,"For help use this forum":"Щоб отримати допомогу, відвідайте цей форум публікація",Function:"функція","Function/Trait":"Функція/риса",Functions:T1t,"Get actual humidity":"Отримайте фактичну вологість","Get actual temperature":"Отримайте фактичну температуру","Get contact":"Отримати статус контакту","Get motion":"Отримати рух","Get new connection certificates":"Отримати нові сертифікати підключення","Get new service URL key":"Отримайте новий ключ URL-адреси служби","Get target temperature":"Отримайте цільову температуру","Google Home":"Google Home","Google devices":"пристрої Google",ID:O1t,"IFTTT key":"Ключ IFTTT","Increment color temperature":"Збільшити колірну температуру","Increment percentage":"Відсоток приросту","Increment target temperature":"Збільшити цільову температуру","Information: The skill linking process was changed!":"Інформація: процес підключення навичок змінено!",Instance:D1t,"Instance does not exists":"Екземпляр не існує","Instance is not active.":"Екземпляр не активний.","Instance must be enabled":"Примірник має бути ввімкнено","Instance must run to deliver the data":"Екземпляр повинен запуститися, щоб доставити дані","Invalid object":"Недійсний об'єкт",Language:A1t,"List of devices to print out, e.g. to give all device names to your partner.":"Список пристроїв для друку, напр. щоб надати назви всіх пристроїв вашому партнеру.","Load configuration from file":"Завантажити конфігурацію з файлу","Manual Mode":"Ручний режим",Message:N1t,Name:M1t,"Not understood":"Не зрозумів","Now there is no temporary password that will be sent by email.":"Тепер немає тимчасового пароля, який надсилатиметься електронною поштою.","OFF level for switches":"Рівень ВИМК для перемикачів","OFF level for switches in %":"Рівень вимкнення для перемикачів у %",Off:j1t,Ok:I1t,On:z1t,"On/Off":"Увімкнено вимкнено",Options:R1t,"Personal settings (only pro)":"Персональні налаштування (тільки для професіоналів)","Ping timeout:":"Час очікування ping (мс)","Place function in names first":"Спочатку розмістіть функцію в іменах","Please add action and trait to complete the Google Home state.":"Додайте дію та рису, щоб завершити стан Google Home.","Please add type and trait to complete the Google Home state.":"Додайте тип і характеристику, щоб завершити стан Google Home.","Please select object ID...":"Виберіть ідентифікатор об'єкта...","Please write your email only in lower case letters":"Пишіть свою електронну адресу лише малими літерами","Read blood sugar from":"Зчитайте рівень цукру в крові","Read lock state":"Читати стан блокування","Replace in names":"Замінити в назвах","Request email with password one more time":"Надішліть запит електронної пошти з паролем ще раз","Restart on disconnect":"Перезапустити після відключення",Review:P1t,"Roger that":"Розумно",Room:L1t,Rooms:F1t,Save:B1t,"Save and close":"Зберегти та закрити","Save configuration to file":"Зберегти конфігурацію у файл","Save settings and the names will be changed":"Збережіть налаштування, і імена будуть змінені","Save settings before pressing this button":"Перед натисканням цієї кнопки збережіть налаштування",Search:W1t,Select:H1t,"Service names":"Назви послуг","Services and IFTTT":"Послуги та IFTTT","Set color":"Встановити колір","Set color temperature":"Встановити колірну температуру","Set lock state":"Встановити стан блокування","Set percentage":"Встановити відсоток","Set target temperature":"Встановити цільову температуру","Short answer for blood sugar":"Коротка відповідь щодо цукру в крові","Show all devices for print out":"Показати всі пристрої для друку","Show/Hide help":"Показати/Сховати довідку","Smart Devices":"Розумні пристрої","Smart Enums":"Smart Enum","Smart Media":"Smart Media","Smart enums":"Розумні перерахування","Smart name":"Розумне ім'я","Smart name for %s":"Розумна назва для %s","Smart names":"Розумні імена","The linking process has been changed for a few months.":"Процес зв’язування змінився протягом кількох місяців.","The password is equal with ioBroker.pro and with password that was entered here in the settings!":"Пароль збігається з ioBroker.pro і паролем, який був введений тут в налаштуваннях!","To apply this setting, the restart of adapter must be done. Agree?":"Щоб застосувати цей параметр, необхідно перезапустити адаптер. згодні?","To auto detect devices please assign a room and function to the channel if no channel available than assign to a device. Not only to the state or device. And enable them under SmartEnum/Intelligente Aufzählung":"Для автоматичного виявлення під об’єктами призначте канал (пристрій, якщо канал недоступний) кімнаті та функції. Недостатньо призначити кімнаті стан або пристрій. Кімнати/функції можна додавати під перерахуванням (позначено білою стрілкою у верхньому правому куті), і їх потрібно активувати в адаптері IoT у розділі Інтелектуальне перерахування. Щоб автоматично розпізнавати ручні стани, стан потрібно видалити.","Toggle expert mode":"Перемкнути експертний режим","Too many devices (%s) configured. Max number is 300":"Налаштовано забагато пристроїв (%s). Максимальна кількість 300!","Turn off":"Вимкнути","Turn on":"Ввімкнути",Type:U1t,Types:V1t,"Use Nightscout instance":"Використовуйте екземпляр Nightscout","Use following link for IFTTT":"Використовуйте наступне посилання для IFTTT","Use following link for custom service":"Скористайтеся наступним посиланням для індивідуальних послуг","Use text2command instance":"Використовуйте екземпляр text2command",Value:G1t,"Web instance":"Веб-екземпляр","White list for services":"Білий список послуг","Write response to":"Написати відповідь на","Yandex Алиса":"Яндекс Аліса","You can enter several names divided by comma":"Ви можете ввести кілька імен, розділених комою","amazon link":"Якщо ви використовуєте Alexa Skill, напишіть нам відгук тут.
Приклади можна знайти тут.","by ON":"від ON",cannot_use_password:q1t,clear:J1t,default:"за замовчуванням",disabled:X1t,forum_tip:Y1t,help_link_tip1:K1t,help_link_tip2:Z1t,help_link_tip3:Q1t,help_tip:ewt,info_allowedServices:twt,info_iftttKey:nwt,invalid_password_warning:rwt,ioBType:owt,"ioBroker.pro Login":"ioBroker.pro Логін","ioBroker.pro Password":"Пароль ioBroker.pro","omit value":"не має значення","last value":"останнє значення",manualModeHint:swt,modified:awt,new_certs_tip:iwt,new_credentials_tip:lwt,"no type":"немає типу","not activated":"не активовано",tooltip_allowSelfSignedCertificate:cwt,tooltip_apikey:dwt,tooltip_cloudUrl:uwt,tooltip_concatWord:pwt,tooltip_deviceOffLevel:hwt,tooltip_functionFirst:fwt,tooltip_instance:mwt,tooltip_language:gwt,tooltip_noCommon:_wt,tooltip_responseOID:vwt,tooltip_restartOnDisconnect:ywt,"Device %s will be disabled.":"Пристрій %s буде вимкнено.",Delete:bwt,Brightness:wwt,Power:Swt,"Color temperature":"Колірна температура",Color:xwt,Detection:kwt,Lock:$wt,Mode:Cwt,Muted:Ewt,Percentage:Twt,"Set point":"Задана точка",Temperature:Owt,"Thermostat mode":"Режим термостата",Volume:Dwt,socket:Awt,light:Nwt,dimmer:Mwt,thermostat:jwt,blind:Iwt,gate:zwt,lock:Rwt,hue:Pwt,motion:Lwt,slider:Fwt,temperature:Bwt,window:Wwt,Thermostat:Hwt,Light:Uwt,AirCondition:Vwt,Blind:Gwt,ContactSensor:qwt,Control:Jwt,Door:Xwt,Gate:Ywt,Hue:Kwt,Motion:Zwt,Slider:Qwt,Socket:eSt,VacuumCleaner:tSt,VolumeGroup:nSt,Window:rSt,"Color HUE":"Колір HUE","Door sensor":"Датчик дверей",Sensor:oSt,"Vacuum cleaner":"Пилосос","Volume group":"Група томів","Window sensor":"Датчик вікна",Blinds:sSt,"Grouped from %s and %s":"Згруповано з %s і %s","Default toggle behaviour (Only alexa v3)":"Поведінка перемикання за замовчуванням (тільки Alexa v3)","Do not toggle":"Не перемикайте",Toggle:aSt,"This service is reserved for the ioBroker.visu app. Please use another service name.":"Ця послуга зарезервована для програми ioBroker.visu. Використовуйте іншу назву служби."},lSt="活性",cSt="地址",dSt="取消",uSt="关闭",pSt="命令",hSt="默认",fSt="调光器",mSt="过滤",gSt="功能",_St="实例",vSt="语言",ySt="信息",bSt="离",wSt="确定",SSt="上",xSt="选项",kSt="评论",$St="客房",CSt="保存",ESt="选择",TSt="类型",OSt="类型",DSt="值",ASt="明确",NSt="残",MSt='在写支持之前,请确保您已阅读并理解网页的说明: https : //www.iobroker.net',jSt='如果与Iot的连接仍然存在问题,则可以在论坛上请求支持',ISt='并且只有在那之后,您才应该写一封电子邮件到support@iobroker.com',zSt='没有iobroker.pro账号?在 https://iobroker.pro 上购买以获得有效访问权限,或免费获取,但访问受限。',RSt="除以逗号。使用*允许所有服务。",PSt="您可以在“文档”下找到您的密钥 ",LSt="名称已由用户修改",FSt="如果您使用自己的云,则可以允许为云使用自签名证书。",BSt="需要此密钥才能与云通信。您可以在https://iobroker.net上获取API-KEY,它看起来像nickname_f1f439a0-001a-11e7-bc64-92361f002671",WSt="通常您不需要更改它。仅在您计划使用自己的云时才需要。",HSt="定义如何连接Room和Function。例如。 'in':客厅里的灯光。",USt="一些组由混合设备组成:调光器和开关。允许使用ON和OFF命令以及百分比来控制它们",VSt="通常名称看起来像room_function。在这里,您可以将其切换到function_room。",GSt="Web实例,将显示您的云连接。",qSt="您可以定义语言以在美国Alexa Skill和DE Alexa Skill之间快速切换。",JSt="如果启用,则仅为此实例存储设置。所以在另一个实例中,可以设置其他名称。",XSt="对于每个命令,将生成文本响应。您可以在此处定义必须写入此文本的对象ID。例如。 sayit.0.tts.text。",YSt="在与云连接丢失后缺少与Alexa的连接的解决方法。使用此选项,您可以在每次断开连接后重新启动适配器,它将起作用。",KSt="您不能在密码中使用%。我们正在努力解决。",ZSt=`密码长度必须至少为8个字符,并且必须包含数字,大小写字母。请在ioBroker.pro配置文件中进行更改 +`,QSt="如果您从备份还原,或将实例从一台设备移至另一台设备,或删除了IoT实例并再次添加,则必须使用此按钮加载连接安全证书",ext="如果使用 ioBroker.pro 登录数据登录 Alexa Skill/Google Action/Alisa 失败,请按以下按钮。",txt='任何语言的任何疑问,请在论坛上提问:链接',nxt="请选择TYPETRAIT。要添加多个特征,请添加不同的id和特征,但要使用相同的智能名称,类型和房间。逗号分隔为多个智能名称。要分配房间,请使用ioBroker Enums/Aufzählungen。例如,通过属性,您可以设置色温的范围有关的信息您可以在此处找到属性。空属性为{}",rxt="搜索",oxt="名称",sxt="房间",axt="ID",ixt="IoB类型",lxt="属性",cxt="自动地",dxt="删除",uxt="调光器",pxt="开关",hxt="颜色",fxt="检测",mxt="锁",gxt="模式",_xt="静音",vxt="百分比",yxt="温度",bxt="体积",wxt="插座",Sxt="光",xxt="调光器",kxt="恒温器",$xt="百叶窗",Cxt="门",Ext="锁",Txt="色调",Oxt="运动",Dxt="滑块",Axt="温度",Nxt="窗户",Mxt="温控器",jxt="光",Ixt="空调",zxt="百叶窗",Rxt="接触式传感器",Pxt="控制",Lxt="门",Fxt="门",Bxt="色调",Wxt="运动",Hxt="滑块",Uxt="插座",Vxt="吸尘器",Gxt="卷组",qxt="窗户",Jxt="传感器",Xxt="百叶窗",Yxt="切换",Kxt={"(Set to 0 if behavior not desired)":"(如果不需要行为,则设为0)","(you can separate names with comma)":"您可以输入多个名称除以逗号",Active:lSt,"Add device":"添加设备","Add service":"添加服务",Addresses:cSt,"Alexa devices":"Alexa设备","Alisa devices":"Alisa设备","Allow admin access (only pro)":"允许管理员访问(仅限专业版)","Allow self-signed certificates":"允许自签名证书","Amazon Alexa":"亚马逊Alexa","Are you sure?":"你确定吗?","Attributes has not correct JSON format.":"属性的格式不正确","Authentication must be disabled. You can create second instance extra for cloud.":"必须禁用身份验证。您可以为云创建额外的第二个实例。",Cancel:dSt,"Cannot add this object":"无法添加此对象,因为不支持。","Cannot read devices!":"无法读取设备!","Certificates will be updated after initiated restart":"启动重启后,证书将更新","Certificates will be updated after start":"证书将在开始后更新","Click now Get new connection certificates to request new temporary password":"单击“获取新连接证书”以请求新的临时密码",Close:uSt,"Cloud URL":"云URL","Cloud adapter settings":"云适配器设置",Commands:pSt,"Concatenate words with":"连接单词","Connection timeout":"连接超时(ms)","Debug outputs":"调试输出","Decrement color temperature":"降低色温","Decrement percentage":"减少百分比","Decrement target temperature":"降低目标温度",Default:hSt,"Device %s was not added":"未添加设备%s","Device will be deactivated.":"设备将被停用。","Device will be disabled.":"设备将被禁用。",Dimmer:fSt,"Duplicate name":"名称重复","Edit smart name":"编辑智能名称",Error:"错误","Extended options":"扩展选项",Filter:mSt,"For help use this forum":"如需帮助,请访问此论坛发布",Functions:gSt,"Get actual temperature":"获得实际温度","Get new connection certificates":"获取新的连接证书","Get new service URL key":"获取新服务URL密钥","Get target temperature":"获得目标温度","Google Home":"Google Home","IFTTT key":"IFTTT关键","Increment color temperature":"增加色温","Increment percentage":"增量百分比","Increment target temperature":"增加目标温度",Instance:_St,"Instance does not exists":"实例不存在","Instance is not active.":"实例未激活。","Instance must be enabled":"必须启用实例","Instance must run to deliver the data":"必须运行实例才能传递数据","Invalid object":"无效的对象",Language:vSt,"Load configuration from file":"从文件加载配置",Message:ySt,"OFF level for switches":"开关的OFF电平","OFF level for switches in %":"开关关闭电平%",Off:bSt,Ok:wSt,On:SSt,"On/Off":"开关",Options:xSt,"Personal settings (only pro)":"个人设置(仅限专业)","Ping timeout:":"Ping超时(ms)","Place function in names first":"首先将函数放在名称中","Please add action and trait to complete the Google Home state.":"请添加操作和特征以完成Google Home状态。","Please add type and trait to complete the Google Home state.":"请添加类型和特征以完成Google Home状态。","Please select object ID...":"请选择对象ID ...","Please write your email only in lower case letters":"请以小写字母书写您的电子邮件","Read lock state":"读锁定状态","Replace in names":"替换名称","Request email with password one more time":"再次请求带密码的电子邮件","Restart on disconnect":"断开连接重启",Review:kSt,Rooms:$St,Save:CSt,"Save and close":"保存并关闭","Save configuration to file":"将配置保存到文件","Save settings and the names will be changed":"保存设置,名称将被更改",Select:ESt,"Service names":"服务名称","Services and IFTTT":"服务和IFTTT","Set color":"设置颜色","Set color temperature":"设置色温","Set lock state":"设置锁定状态","Set percentage":"设定百分比","Set target temperature":"设定目标温度","Smart Devices":"智能设备","Smart Enums":"智能枚举","Smart Media":"智能媒体","Smart enums":"智能枚举","Smart name":"聪明的名字","Smart name for %s":"%s的智能名称","To apply this setting, the restart of adapter must be done. Agree?":"要应用此设置,必须重新启动适配器。同意?","To auto detect devices please assign a room and function to the channel if no channel available than assign to a device. Not only to the state or device. And enable them under SmartEnum/Intelligente Aufzählung":"对于自动检测,在对象下方为房间和功能分配一个通道(如果没有可用的通道,则为设备)。仅将房间分配给状态或设备是不够的。可以在枚举下添加房间/功能(如右上角的白色箭头所示),并且必须在IoT适配器中的“智能枚举”下将其激活。为了自动识别手动状态,必须删除状态。","Turn off":"关掉","Turn on":"打开",Type:TSt,Types:OSt,"Use Nightscout instance":"使用Nightscout实例","Use following link for IFTTT":"使用以下链接进行IFTTT","Use following link for custom service":"使用以下链接进行自定义服务","Use text2command instance":"使用text2command实例",Value:DSt,"White list for services":"服务白名单","Write response to":"写回复","Yandex Алиса":"YandexАлиса","You can enter several names divided by comma":"您可以输入多个名称除以逗号","amazon link":"如果您使用Alexa技能,请为我们写一篇评论此处
示例可以找到此处。","by ON":"通过ON",clear:ASt,default:"默认",disabled:NSt,help_link_tip1:MSt,help_link_tip2:jSt,help_link_tip3:ISt,help_tip:zSt,info_allowedServices:RSt,info_iftttKey:PSt,"ioBroker.pro Login":"ioBroker.pro登录","ioBroker.pro Password":"ioBroker.pro密码","omit value":"无价值","last value":"最后的价值",modified:LSt,"no type":"没有类型",tooltip_allowSelfSignedCertificate:FSt,tooltip_apikey:BSt,tooltip_cloudUrl:WSt,tooltip_concatWord:HSt,tooltip_deviceOffLevel:USt,tooltip_functionFirst:VSt,tooltip_instance:GSt,tooltip_language:qSt,tooltip_noCommon:JSt,tooltip_responseOID:XSt,tooltip_restartOnDisconnect:YSt,"Short answer for blood sugar":"血糖的简短答案",cannot_use_password:KSt,invalid_password_warning:ZSt,new_certs_tip:QSt,new_credentials_tip:ext,"Create IoT credentials anew":"重新创建IoT凭据",forum_tip:txt,"Save settings before pressing this button":"按此按钮之前保存设置","Auto Mode":"自动模式","Manual Mode":"手动模式",manualModeHint:nxt,"not activated":"未激活","Google devices":"Google设备","Show/Hide help":"显示/隐藏帮助","Show all devices for print out":"显示所有要打印的设备",Search:rxt,"List of devices to print out, e.g. to give all device names to your partner.":"要打印的设备列表,例如将所有设备名称提供给您的合作伙伴。",Name:oxt,Function:"功能",Room:sxt,"Copy to clipboard":"复制到剪贴板","Toggle expert mode":"切换专家模式",ID:axt,"Smart names":"聪明的名字",ioBType:ixt,"Function/Trait":"功能/特质",Attributes:lxt,Auto:cxt,"Conversation to GH":"转换为GH","Conversation to ioB":"转换为ioB","Information: The skill linking process was changed!":"信息:技能链接过程已更改!","The linking process has been changed for a few months.":"链接过程已更改了几个月。","Now there is no temporary password that will be sent by email.":"现在没有将通过电子邮件发送的临时密码。","The password is equal with ioBroker.pro and with password that was entered here in the settings!":"密码与ioBroker.pro以及在设置中输入的密码相同!","Not understood":"不明白","Roger that":"收到","Read blood sugar from":"从读取血糖","Get actual humidity":"获取实际湿度","Get motion":"动起来","Get contact":"获取联系状态","Too many devices (%s) configured. Max number is 300":"配置了太多设备 (%s)。最大数量是 300!","Allow remote access":"允许远程访问","Admin instance":"管理实例","Web instance":"网页实例","Device %s will be disabled.":"设备 %s 将被禁用。",Delete:dxt,Brightness:uxt,Power:pxt,"Color temperature":"色温",Color:hxt,Detection:fxt,Lock:mxt,Mode:gxt,Muted:_xt,Percentage:vxt,"Set point":"设定点",Temperature:yxt,"Thermostat mode":"恒温模式",Volume:bxt,socket:wxt,light:Sxt,dimmer:xxt,thermostat:kxt,blind:$xt,gate:Cxt,lock:Ext,hue:Txt,motion:Oxt,slider:Dxt,temperature:Axt,window:Nxt,Thermostat:Mxt,Light:jxt,AirCondition:Ixt,Blind:zxt,ContactSensor:Rxt,Control:Pxt,Door:Lxt,Gate:Fxt,Hue:Bxt,Motion:Wxt,Slider:Hxt,Socket:Uxt,VacuumCleaner:Vxt,VolumeGroup:Gxt,Window:qxt,"Color HUE":"颜色色调","Door sensor":"门磁",Sensor:Jxt,"Vacuum cleaner":"吸尘器","Volume group":"卷组","Window sensor":"窗口传感器",Blinds:Xxt,"Grouped from %s and %s":"从 %s 和 %s 分组","Default toggle behaviour (Only alexa v3)":"默认切换行为(仅限 alexa v3)","Do not toggle":"不要切换",Toggle:Yxt,"This service is reserved for the ioBroker.visu app. Please use another service name.":"此服务为 ioBroker.visu 应用程序保留。请使用其他服务名称。"},ro={root:{},tabContent:{padding:10,height:"calc(100% - 64px - 48px - 20px)",overflow:"auto"},tabContentIFrame:{padding:10,height:"calc(100% - 64px - 48px - 20px - 38px)",overflow:"auto"},selected:e=>({color:e.palette.mode==="dark"?void 0:"#FFF !important"}),indicator:e=>({backgroundColor:e.palette.mode==="dark"?e.palette.secondary.main:"#FFF"})};class Zxt extends zs{constructor(t){const n={...t};n.encryptedFields=["pass"],n.Connection=P7,n.translations={en:Hit,de:Mct,ru:xut,pt:hht,nl:rmt,fr:qgt,it:Rvt,es:E0t,pl:_1t,uk:iSt,"zh-cn":Kxt},n.sentryDSN=window.sentryDSN,super(t,n),Object.assign(this.state,{selectedTab:window.localStorage.getItem(`${this.adapterName}.${this.instance}.selectedTab`)||"options"})}onConnectionReady(){this.socket.getState(`${this.adapterName}.${this.instance}.info.ackTempPassword`).then(t=>{(!t||!t.val)&&this.setState({showAckTempPasswordDialog:!0})})}renderAckTempPasswordDialog(){return this.state.showAckTempPasswordDialog?m.jsxs(ft,{open:!0,onClose:()=>this.setState({showAckTempPasswordDialog:!1},()=>setTimeout(()=>this.setState({showAckTempPasswordDialog:!0}),1e3)),"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",children:[m.jsx(mt,{id:"alert-dialog-title",children:E.t("Information: The skill linking process was changed!")}),m.jsx(Tt,{children:m.jsxs(ds,{id:"alert-dialog-description",children:[E.t("The linking process has been changed for a few months."),E.t("Now there is no temporary password that will be sent by email."),m.jsx("br",{}),m.jsx("br",{}),m.jsx("b",{children:E.t("The password is equal with ioBroker.pro and with password that was entered here in the settings!")})]})}),m.jsxs(Et,{children:[m.jsx(_e,{color:"grey",variant:"contained",onClick:()=>this.setState({showAckTempPasswordDialog:!1},()=>setTimeout(()=>this.setState({showAckTempPasswordDialog:!0}),1e3)),autoFocus:!0,children:E.t("Not understood")}),m.jsx(_e,{variant:"contained",className:"skill-linking-ok",onClick:()=>this.socket.setState(`${this.adapterName}.${this.instance}.info.ackTempPassword`,{val:!0,ack:!0}).then(()=>this.setState({showAckTempPasswordDialog:!1})),color:"primary",autoFocus:!0,children:E.t("Roger that")})]})]}):null}render(){return this.state.loaded?m.jsx(fS,{injectFirst:!0,children:m.jsx(RS,{theme:this.state.theme,children:m.jsxs("div",{className:"App",style:{background:this.state.theme.palette.background.default,color:this.state.theme.palette.text.primary},children:[m.jsx(OO,{position:"static",children:m.jsxs(QO,{value:this.state.selectedTab||"options",onChange:(t,n)=>{this.setState({selectedTab:n}),window.localStorage.setItem(`${this.adapterName}.${this.instance}.selectedTab`,n)},variant:"scrollable",scrollButtons:"auto",sx:{"& .MuiTabs-indicator":ro.indicator},children:[m.jsx(Kn,{value:"options",sx:{"&.Mui-selected":ro.selected},label:E.t("Options"),"data-name":"options"}),m.jsx(Kn,{value:"enums",className:"enums-tab",sx:{"&.Mui-selected":ro.selected},label:E.t("Smart enums"),"data-name":"enums"}),this.state.native.amazonAlexa&&m.jsx(Kn,{value:"alexa",sx:{"&.Mui-selected":ro.selected},selected:this.state.selectedTab==="alexa",label:E.t("Alexa devices"),"data-name":"alexa"}),this.state.native.amazonAlexa&&this.state.native.amazonAlexaV3&&m.jsx(Kn,{value:"alexa3",sx:{"&.Mui-selected":ro.selected},selected:this.state.selectedTab==="alexa3",label:`${E.t("Alexa devices")} v3`,"data-name":"alexa3"}),this.state.native.googleHome&&m.jsx(Kn,{value:"google",sx:{"&.Mui-selected":ro.selected},selected:this.state.selectedTab==="google",label:E.t("Google devices"),"data-name":"google"}),this.state.native.yandexAlisa&&m.jsx(Kn,{value:"alisa",sx:{"&.Mui-selected":ro.selected},selected:this.state.selectedTab==="alisa",label:E.t("Alisa devices"),"data-name":"alisa"}),m.jsx(Kn,{value:"extended",sx:{"&.Mui-selected":ro.selected},label:E.t("Extended options"),"data-name":"extended"}),m.jsx(Kn,{value:"services",sx:{"&.Mui-selected":ro.selected},label:E.t("Services and IFTTT"),"data-name":"services"})]})}),m.jsxs("div",{style:this.isIFrame?ro.tabContentIFrame:ro.tabContent,children:[(this.state.selectedTab==="options"||!this.state.selectedTab)&&m.jsx(e5,{common:this.common,theme:this.state.theme,socket:this.socket,native:this.state.native,onError:t=>this.setState({errorText:(t||t===0)&&typeof t!="string"?t.toString():t}),onLoad:t=>this.onLoadConfig(t),instance:this.instance,adapterName:this.adapterName,changed:this.state.changed,onChange:(t,n,r)=>this.updateNativeValue(t,n,r)},"options"),this.state.selectedTab==="enums"&&m.jsx(o5,{theme:this.state.theme,common:this.common,socket:this.socket,native:this.state.native,onError:t=>this.setState({errorText:(t||t===0)&&typeof t!="string"?t.toString():t}),instance:this.instance,adapterName:this.adapterName},"enums"),this.state.selectedTab==="alexa"&&m.jsx(Ws,{themeType:this.state.themeType,theme:this.state.theme,common:this.common,socket:this.socket,native:this.state.native,onError:t=>this.setState({errorText:(t||t===0)&&typeof t!="string"?t.toString():t}),adapterName:this.adapterName,instance:this.instance},"alexa"),this.state.selectedTab==="alexa3"&&m.jsx(Oo,{themeType:this.state.themeType,theme:this.state.theme,common:this.common,socket:this.socket,native:this.state.native,onError:t=>this.setState({errorText:(t||t===0)&&typeof t!="string"?t.toString():t}),adapterName:this.adapterName,instance:this.instance},"alexa3"),this.state.selectedTab==="google"&&m.jsx(Qst,{themeType:this.state.themeType,theme:this.state.theme,common:this.common,socket:this.socket,native:this.state.native,onError:t=>this.setState({errorText:(t||t===0)&&typeof t!="string"?t.toString():t}),adapterName:this.adapterName,instance:this.instance},"google"),this.state.selectedTab==="alisa"&&m.jsx(_g,{themeType:this.state.themeType,theme:this.state.theme,common:this.common,socket:this.socket,native:this.state.native,onError:t=>this.setState({errorText:(t||t===0)&&typeof t!="string"?t.toString():t}),adapterName:this.adapterName,instance:this.instance},"alisa"),this.state.selectedTab==="extended"&&m.jsx(n5,{common:this.common,theme:this.state.theme,socket:this.socket,native:this.state.native,onError:t=>this.setState({errorText:(t||t===0)&&typeof t!="string"?t.toString():t}),instance:this.instance,adapterName:this.adapterName,onChange:(t,n)=>this.updateNativeValue(t,n)},"extended"),this.state.selectedTab==="services"&&m.jsx(r5,{theme:this.state.theme,common:this.common,socket:this.socket,native:this.state.native,onError:t=>this.setState({errorText:(t||t===0)&&typeof t!="string"?t.toString():t}),instance:this.instance,adapterName:this.adapterName,onShowError:t=>this.showError(t),onChange:(t,n)=>this.updateNativeValue(t,n)},"services")]}),this.renderError(),this.renderSaveCloseButtons(),this.renderAckTempPasswordDialog()]})})}):m.jsx(fS,{injectFirst:!0,children:m.jsx(RS,{theme:this.state.theme,children:m.jsx(F4,{themeType:this.state.themeType})})})}}window.location.hostname==="localhost"||window.location.hostname==="[::1]"||window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/);function Qxt(){"serviceWorker"in navigator&&navigator.serviceWorker.ready.then(e=>{e.unregister()})}const ekt="iot-admin",tkt="3.4.2",nkt={"@emotion/styled":"^11.13.0","@emotion/react":"^11.13.3","@iobroker/adapter-react-v5":"^7.2.6","@mui/icons-material":"^6.1.6","@mui/material":"^6.1.6","@sentry/browser":"^8.36.0","@vitejs/plugin-react":"^4.3.3",eslint:"^9.14.0","eslint-config-airbnb":"^19.0.4","eslint-plugin-eqeqeq-fix":"^1.0.3","eslint-plugin-import":"^2.31.0","eslint-plugin-jsx-a11y":"^6.10.2","eslint-plugin-only-warn":"^1.1.0","eslint-plugin-react":"^7.37.2","eslint-plugin-react-hooks":"^5.0.0",react:"^18.3.1","react-dom":"^18.3.1","react-icons":"^5.3.0","react-inlinesvg":"^4.1.4"},rkt={start:"vite",build:"vite build",lint:"eslint --fix --ext .js,.jsx src","i18n=>flat":"node tasks --i18n=>flat","flat=>i18n":"node tasks --flat=>i18n"},okt=".",skt=[">0.2%","not dead","not ie <= 11","not op_mini all"],akt={name:ekt,version:tkt,private:!0,dependencies:nkt,scripts:rkt,homepage:okt,browserslist:skt};window.adapterName="iot";window.sentryDSN="https://5ad729dbed504d15aa8bde423cae9a8e@sentry.iobroker.net/57";console.log(`iobroker.${window.adapterName}@${akt.version}`);const ikt=document.getElementById("root"),lkt=kT(ikt);lkt.render(m.jsx(Zxt,{}));Qxt()});export default ckt(); diff --git a/admin/favicon.ico b/admin/favicon.ico new file mode 100644 index 0000000000000000000000000000000000000000..b9dee1aadbb6f43d2904518a100817cf1aec340a GIT binary patch literal 16958 zcmeI3d5{#<0mf%VgT@kXO{s~-l!{`RDy>SH@()q}uq?|Y6)Ktp?+dSZafv9Rh(tVs zQNa^LK;^~*0R;q9gk6+F&PH7g_M$o zWKofzvZzcdo66XUoJRI1IXQ^DzZD-JN&ZSkk_xh!>>!4q$WWP7HkGlGj3OP#Z%DE& z)U55A&-lLJO4*Mm-ANhQMv5)(p30*#&m-N)aimrUd_82>TJ^5%%gHXXr@vLKudD3J zAO~s($&58?e)o31NBjF5jhA1UludJ_lttT!_We>4|7=ruuK9toDPzi_ZA5cg&83<`-gFt1O&L=bZS${b zPMhwtO<|j|wd8N9|H8KaJGj5pCw1RH3)lXYw@WLa`+h*L!-4ycu1Rk`?|oF^>2)N~ z;{c%RKJ1T5ocHW~&DZ%)oPD9{nS5?_ogay|VR?XZ{kHKF7kSoa1f04$w=QP+E}14fE#$u+=h;%agg@T$1d@yZo| zCE}Wn%z!h2yAR4{e5!l?E_=JbGoE=T-3z>Z59vwn1}2Igz*~2Dx&v=^^K=E?5M6-R zJA3ZrTJF5R3Etm$`V-cn{CS6C=rP41{f+j}qZ!fx=E2{)wvc&$sB?bv#GipF_XE=& z2B!A&JOsSk*YhCoj_5-kaPQUor}PFUi~AgtdU<~lhZE^B=`eVd!-&V=FzHbaiFN2) znvwL-uWfDnLhkvszxVl_%k;t1!23^<{{yqc6ONe!05Ri#dVh!f zP5ZCIdZfdtagTBsJbIVbq4#JVrt!!&Y1B?0_-!T!x#w5kGJ<_s*-)T#2rzfBW6q0! zT^PpNiMX z1jnNBfLJ(=j3snu{qcMBT~UuohcS=VVa#Kx+Mw_r=Z5weX^ZkWm(O47P?-9E@+@H4 z6kz2{V8ska`FlY5bl`I_jZ6iWi+3H%-f^GN=ax=(?ySGJokQzU4!uV?w8)|N7#uF5 zLlHbKP&*6`eS5SHLtCWB`FyOgrd#W{gPiLh1OCL!%)WXa@I@IZ1y+f7V=1cYMUCD?%F^9 z{OU_puN#&FUo8RFi_aYE76a=(b*xvjA8#ANW#y;#mE$cNjbdm)_&5h{vk9 zNAI#C;&G*Ki!0>Ndn~6z3)`jofbPG}FTdsyU4I3mez|%L@a-z#8&T!hR0(XVaBN%& zh_6?Wa>s_xoj2=l8U2Z+-l6ws9n#}kdbH5v8hW(EJX(iwkJ0uhhlFj^X#SM!X|tR`R3o$wwv(WN|Y zq(_S!Mm%ny%XA*sXYeSW^kiPR2)Lc)&o{qq1N%6i+pB?{KLR_xC)>$)z>i`Z@PpV& zwgBIY&4lmQXXH(M_YK)Ze?lJRFye8G_qdrZlMdq^<&ap1-lKKsJ<6;4N*yO^{4PX( zeUJJQ_9;gB!eR_y`H5@KPrHC5JAqwdhllRuZ|4t04ueO!tkol3rt@fBM%p8t8nq!E zBc^7Ti`?6P@Tc!%e`0uyX0#tFQ(jAO7uFGnCR>N}7#zwc+m+F=S^BwOe);7gIPLof z7>zHg#|B%xxA6D5Zy6m!shx&$hPvCmu6zCO{tnl#@SKm)9H5~WwnM{tiP3o!j#af} z&%geo4*1v%>*)Hi`gEXvMtueQIm3C7(fOCY$L}e3=m!f^|G|Ui20WKzws6d=kA>rl z(XsO2zrj3y29M1Sb-6OP_mDfR3!7gaIL9#0o)5#hywUiTcfXifq|q@%k2b(MGa9E0w8*V_?t*OFdB_`I7ry?(z90voK6tKB$6iL~ zFg5SVcj5fX=y*=w8~$G1*1uf-czNW)_79z4G$*U;!g-+4IX|6q4}Rl+EBoj5mp_z= zzmXXIPM~9b&6%@ZIJYo7r(oFE+21pm7` zQ^u4fZ1?M?c>jYk+3e}^OGxDP`28=9@m>IxS@oXP{V$yo|YGtI+5 y{B)dgvG3dE)@N6{^|5|^V3m8`dWKuKYFS$m4ep`J)ko`4PodsIJ%)OX*Z0qxU3209 literal 0 HcmV?d00001 diff --git a/admin/manifest.json b/admin/manifest.json new file mode 100644 index 00000000..7fc9d405 --- /dev/null +++ b/admin/manifest.json @@ -0,0 +1,15 @@ +{ + "short_name": "ioBroker.iot", + "name": "ioBroker.iot Settings", + "icons": [ + { + "src": "favicon.ico", + "sizes": "64x64 32x32 24x24 16x16", + "type": "image/x-icon" + } + ], + "start_url": ".", + "display": "standalone", + "theme_color": "#000000", + "background_color": "#ffffff" +} diff --git a/package.json b/package.json index 47a53ed4..c43eeb8a 100644 --- a/package.json +++ b/package.json @@ -58,7 +58,9 @@ "main.js" ], "scripts": { - "test": "mocha --exit", + "test-gui": "mocha test/testAdapter.gui.js --exit", + "test-package": "mocha test/testPackageFiles.js --exit", + "test": "npm run test-gui && npm run test-package", "test-alexa-v3": "mocha --grep AlexaSmartHomeV3 --recursive", "prepublishOnly": "node tasks", "build": "node tasks", diff --git a/test/testAdapter.gui.js b/test/testAdapter.gui.js index 3b7ffbc9..a875fc3a 100644 --- a/test/testAdapter.gui.js +++ b/test/testAdapter.gui.js @@ -25,7 +25,7 @@ describe('test-admin-gui', () => { }); it('Select categories', async function (){ - this.timeout(25_000); + this.timeout(5_000); await gPage.waitForSelector('.enums-tab', { timeout: 15_000 }); // ignore message try { @@ -38,7 +38,7 @@ describe('test-admin-gui', () => { return new Promise(resolve => setTimeout(async () => { await guiHelper.screenshot(rootDir, null, '02_enums'); resolve(); - }, 15000)); + }, 3000)); }); after(async function () {