@openremote/or-tree-menu 1.32.0-snapshot.20261012122155 → 1.32.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7,7 +7,7 @@ var ORTreeMenu;(()=>{var e={3260(e){"use strict";let t=(async function(){}).cons
7
7
  font-weight: 600;
8
8
  line-height: 125.303%;
9
9
  }
10
- `;class nC extends nD{static finalizeStyles(e){return[nT,...super.finalizeStyles(e)]}}let nS=e=>(t,n)=>{void 0!==n?n.addInitializer(()=>{customElements.define(e,t)}):customElements.define(e,t)},nx={attribute:!0,type:String,converter:tK,reflect:!1,hasChanged:tX};function nY(e){return(t,n)=>{let o;return"object"==typeof n?((e=nx,t,n)=>{let{kind:o,metadata:r}=n,i=globalThis.litPropertyMetadata.get(r);if(void 0===i&&globalThis.litPropertyMetadata.set(r,i=new Map),"setter"===o&&((e=Object.create(e)).wrapped=!0),i.set(n.name,e),"accessor"===o){let{name:o}=n;return{set(n){let r=t.get.call(this);t.set.call(this,n),this.requestUpdate(o,r,e)},init(t){return void 0!==t&&this.C(o,void 0,e,t),t}}}if("setter"===o){let{name:o}=n;return function(n){let r=this[o];t.call(this,n),this.requestUpdate(o,r,e)}}throw Error("Unsupported decorator location: "+o)})(e,t,n):(o=t.hasOwnProperty(n),t.constructor.createProperty(n,e),o?Object.getOwnPropertyDescriptor(t,n):void 0)}}let nO=(e,t,n)=>(n.configurable=!0,n.enumerable=!0,Reflect.decorate&&"object"!=typeof t&&Object.defineProperty(e,t,n),n);function nB(t){return(n,o)=>nO(n,o,{get(){return(this.renderRoot??(e??=document.createDocumentFragment())).querySelectorAll(t)}})}function nR(e){return(t,n)=>{let{slot:o,selector:r}=e??{},i="slot"+(o?`[name=${o}]`:":not([name])");return nO(t,n,{get(){let t=this.renderRoot?.querySelector(i),n=t?.assignedElements(e)??[];return void 0===r?n:n.filter(e=>e.matches(r))}})}}function*nP(e,t){if(void 0!==e){let n=0;for(let o of e)yield t(o,n++)}}n(4532),(f=eL||(eL={})).CREATE="CREATE",f.UPDATE="UPDATE",f.DELETE="DELETE",f.DELETE_FINISHED="DELETE_FINISHED",(b=eD||(eD={})).LOW="LOW",b.MEDIUM="MEDIUM",b.HIGH="HIGH",(h=eA||(eA={})).MANUAL="MANUAL",h.CLIENT="CLIENT",h.GLOBAL_RULESET="GLOBAL_RULESET",h.REALM_RULESET="REALM_RULESET",h.ASSET_RULESET="ASSET_RULESET",h.AGENT="AGENT",(p=eT||(eT={})).OPEN="OPEN",p.ACKNOWLEDGED="ACKNOWLEDGED",p.IN_PROGRESS="IN_PROGRESS",p.RESOLVED="RESOLVED",p.CLOSED="CLOSED",(_=eC||(eC={})).BOTTOM_LEFT="BOTTOM_LEFT",_.BOTTOM_RIGHT="BOTTOM_RIGHT",_.TOP_LEFT="TOP_LEFT",_.TOP_RIGHT="TOP_RIGHT",(F=eS||(eS={})).CREATE="CREATE",F.READ="READ",F.UPDATE="UPDATE",F.DELETE="DELETE",(g=ex||(ex={})).NONE="NONE",g.FORECAST="FORECAST",g.SETPOINT="SETPOINT",(y=eY||(eY={})).DISCONNECTED="DISCONNECTED",y.CONNECTING="CONNECTING",y.DISCONNECTING="DISCONNECTING",y.CONNECTED="CONNECTED",y.DISABLED="DISABLED",y.WAITING="WAITING",y.ERROR="ERROR",y.STOPPED="STOPPED",(v=eO||(eO={})).REQUEST_START="REQUEST_START",v.REQUEST_REPEATING="REQUEST_REPEATING",v.REQUEST_CANCEL="REQUEST_CANCEL",v.READY="READY",v.COMPLETED="COMPLETED",v.RUNNING="RUNNING",v.CANCELLED="CANCELLED",(w=eB||(eB={})).TOGGLE="TOGGLE",w.INCREMENT="INCREMENT",w.DECREMENT="DECREMENT",w.NEGATE="NEGATE",(k=eR||(eR={})).ASSET_NOT_FOUND="ASSET_NOT_FOUND",k.ATTRIBUTE_NOT_FOUND="ATTRIBUTE_NOT_FOUND",k.INSUFFICIENT_ACCESS="INSUFFICIENT_ACCESS",k.INVALID_VALUE="INVALID_VALUE",k.INTERCEPTOR_FAILURE="INTERCEPTOR_FAILURE",k.STATE_STORAGE_FAILED="STATE_STORAGE_FAILED",k.CANNOT_PROCESS="CANNOT_PROCESS",k.QUEUE_FULL="QUEUE_FULL",k.UNKNOWN="UNKNOWN",k.ASSET_ID_MISSING="ASSET_ID_MISSING",k.ATTRIBUTE_NAME_MISSING="ATTRIBUTE_NAME_MISSING",(M=eP||(eP={})).PUBLIC="PUBLIC",M.SHARED="SHARED",M.PRIVATE="PRIVATE",(E=eN||(eN={})).OFF="OFF",E.ONE_MIN="ONE_MIN",E.FIVE_MIN="FIVE_MIN",E.QUARTER="QUARTER",E.ONE_HOUR="ONE_HOUR",(L=eI||(eI={})).WRAP_TO_SINGLE_COLUMN="WRAP_TO_SINGLE_COLUMN",L.KEEP_LAYOUT="KEEP_LAYOUT",L.REDIRECT="REDIRECT",L.BLOCK_DEVICE="BLOCK_DEVICE",(D=ej||(ej={})).CSV="CSV",D.CSV_CROSSTAB="CSV_CROSSTAB",D.CSV_CROSSTAB_MINUTE="CSV_CROSSTAB_MINUTE",(A=eH||(eH={})).MINUTE="MINUTE",A.HOUR="HOUR",A.DAY="DAY",A.WEEK="WEEK",A.MONTH="MONTH",A.YEAR="YEAR",(T=eU||(eU={})).MIN="MIN",T.AVG="AVG",T.MAX="MAX",T.DIFFERENCE="DIFFERENCE",T.COUNT="COUNT",T.SUM="SUM",T.MODE="MODE",T.MEDIAN="MEDIAN",(C=eW||(eW={})).TERMINATING="TERMINATING",C.DISABLED="DISABLED",C.ALREADY_CONNECTED="ALREADY_CONNECTED",C.UNRECOGNISED="UNRECOGNISED",C.PERMANENT_ERROR="PERMANENT_ERROR",C.SYNC_ERROR="SYNC_ERROR",(S=ez||(ez={})).HTTPS="HTTPS",S.HTTP="HTTP",S.TCP="TCP",(x=e$||(e$={})).GET="GET",x.POST="POST",x.PUT="PUT",x.DELETE="DELETE",x.OPTIONS="OPTIONS",x.PATCH="PATCH",(Y=eG||(eG={})).KEYCLOAK="KEYCLOAK",Y.NONE="NONE",(O=eq||(eq={})).WEBSOCKET="WEBSOCKET",O.POLLING="POLLING",(B=eV||(eV={})).INTERNAL="INTERNAL",B.CLIENT="CLIENT",B.GLOBAL_RULESET="GLOBAL_RULESET",B.REALM_RULESET="REALM_RULESET",B.ASSET_RULESET="ASSET_RULESET",(R=eJ||(eJ={})).REALM="REALM",R.USER="USER",R.ASSET="ASSET",R.CUSTOM="CUSTOM",(P=eK||(eK={})).NORMAL="NORMAL",P.HIGH="HIGH",(N=eX||(eX={})).DEVICE="DEVICE",N.TOPIC="TOPIC",N.CONDITION="CONDITION",(I=eQ||(eQ={})).ALWAYS="ALWAYS",I.ONCE="ONCE",I.HOURLY="HOURLY",I.DAILY="DAILY",I.WEEKLY="WEEKLY",I.MONTHLY="MONTHLY",I.ANNUALLY="ANNUALLY",(j=eZ||(eZ={})).TITLE="TITLE",j.SOURCE="SOURCE",j.STATUS="STATUS",j.SENT_ON="SENT_ON",j.DELIVERED_ON="DELIVERED_ON",(H=e0||(e0={})).MESSAGE_INVALID="MESSAGE_INVALID",H.CERTIFICATE_INVALID="CERTIFICATE_INVALID",H.UNAUTHORIZED="UNAUTHORIZED",H.FORBIDDEN="FORBIDDEN",H.UNIQUE_ID_MISMATCH="UNIQUE_ID_MISMATCH",H.CONFIG_DISABLED="CONFIG_DISABLED",H.USER_DISABLED="USER_DISABLED",H.SERVER_ERROR="SERVER_ERROR",H.ASSET_ERROR="ASSET_ERROR",H.SERVER_BUSY="SERVER_BUSY",(U=e1||(e1={})).PRIVATE="PRIVATE",U.PROTECTED="PROTECTED",U.PUBLIC="PUBLIC",(W=e2||(e2={})).EXACT="EXACT",W.BEGIN="BEGIN",W.END="END",W.CONTAINS="CONTAINS",(z=e4||(e4={})).EQUALS="EQUALS",z.GREATER_THAN="GREATER_THAN",z.GREATER_EQUALS="GREATER_EQUALS",z.LESS_THAN="LESS_THAN",z.LESS_EQUALS="LESS_EQUALS",z.BETWEEN="BETWEEN",($=e5||(e5={})).CREATED_ON="CREATED_ON",$.NAME="NAME",$.ASSET_TYPE="ASSET_TYPE",$.PARENT_ID="PARENT_ID",$.REALM="REALM",(G=e3||(e3={})).RESTRICTED="RESTRICTED",G.LINKED="LINKED",G.REALM="REALM",(q=e6||(e6={})).AT_LEAST_ONE="AT_LEAST_ONE",q.ALL="ALL",q.NONE="NONE",(V=e8||(e8={})).AND="AND",V.OR="OR",(J=e7||(e7={})).CREATED_ON="CREATED_ON",J.FIRST_NAME="FIRST_NAME",J.LAST_NAME="LAST_NAME",J.USERNAME="USERNAME",J.EMAIL="EMAIL",(K=e9||(e9={})).STOPPED="STOPPED",K.RUNNING="RUNNING",K.ERROR="ERROR",(X=te||(te={})).JAVASCRIPT="JAVASCRIPT",X.GROOVY="GROOVY",X.JSON="JSON",X.FLOW="FLOW",(Q=tt||(tt={})).READY="READY",Q.DEPLOYED="DEPLOYED",Q.COMPILATION_ERROR="COMPILATION_ERROR",Q.VALIDITY_PERIOD_ERROR="VALIDITY_PERIOD_ERROR",Q.EXECUTION_ERROR="EXECUTION_ERROR",Q.LOOP_ERROR="LOOP_ERROR",Q.DISABLED="DISABLED",Q.PAUSED="PAUSED",Q.EXPIRED="EXPIRED",Q.REMOVED="REMOVED",Q.EMPTY="EMPTY",(Z=tn||(tn={})).SUNRISE="SUNRISE",Z.SUNSET="SUNSET",Z.TWILIGHT_MORNING_VISUAL="TWILIGHT_MORNING_VISUAL",Z.TWILIGHT_MORNING_VISUAL_LOWER="TWILIGHT_MORNING_VISUAL_LOWER",Z.TWILIGHT_MORNING_HORIZON="TWILIGHT_MORNING_HORIZON",Z.TWILIGHT_MORNING_CIVIL="TWILIGHT_MORNING_CIVIL",Z.TWILIGHT_MORNING_NAUTICAL="TWILIGHT_MORNING_NAUTICAL",Z.TWILIGHT_MORNING_ASTRONOMICAL="TWILIGHT_MORNING_ASTRONOMICAL",Z.TWILIGHT_MORNING_GOLDEN_HOUR="TWILIGHT_MORNING_GOLDEN_HOUR",Z.TWILIGHT_MORNING_BLUE_HOUR="TWILIGHT_MORNING_BLUE_HOUR",Z.TWILIGHT_MORNING_NIGHT_HOUR="TWILIGHT_MORNING_NIGHT_HOUR",Z.TWILIGHT_EVENING_VISUAL="TWILIGHT_EVENING_VISUAL",Z.TWILIGHT_EVENING_VISUAL_LOWER="TWILIGHT_EVENING_VISUAL_LOWER",Z.TWILIGHT_EVENING_HORIZON="TWILIGHT_EVENING_HORIZON",Z.TWILIGHT_EVENING_CIVIL="TWILIGHT_EVENING_CIVIL",Z.TWILIGHT_EVENING_NAUTICAL="TWILIGHT_EVENING_NAUTICAL",Z.TWILIGHT_EVENING_ASTRONOMICAL="TWILIGHT_EVENING_ASTRONOMICAL",Z.TWILIGHT_EVENING_GOLDEN_HOUR="TWILIGHT_EVENING_GOLDEN_HOUR",Z.TWILIGHT_EVENING_BLUE_HOUR="TWILIGHT_EVENING_BLUE_HOUR",Z.TWILIGHT_EVENING_NIGHT_HOUR="TWILIGHT_EVENING_NIGHT_HOUR",(ee=to||(to={})).NUMBER="NUMBER",ee.NUMBER_ARRAY="NUMBER_ARRAY",ee.STRING="STRING",ee.BOOLEAN="BOOLEAN",ee.TRIGGER="TRIGGER",ee.COLOR="COLOR",ee.ANY="ANY",(et=tr||(tr={})).NEW_LINE="NEW_LINE",et.SPACER="SPACER",(en=ti||(ti={})).INPUT="INPUT",en.PROCESSOR="PROCESSOR",en.OUTPUT="OUTPUT",en.THEN="THEN",(eo=ta||(ta={})).TEXT="TEXT",eo.MULTILINE="MULTILINE",eo.NUMBER="NUMBER",eo.DROPDOWN="DROPDOWN",eo.DOUBLE_DROPDOWN="DOUBLE_DROPDOWN",eo.CHECKBOX="CHECKBOX",eo.ASSET_ATTRIBUTE="ASSET_ATTRIBUTE",eo.COLOR="COLOR",eo.DATE="DATE",(er=ts||(ts={})).ADD="ADD",er.ADD_OR_REPLACE="ADD_OR_REPLACE",er.REPLACE="REPLACE",er.DELETE="DELETE",er.CLEAR="CLEAR",(ei=td||(td={})).PER_ASSET="PER_ASSET",ei.GLOBAL="GLOBAL",(ea=tc||(tc={})).READ_ADMIN="read:admin",ea.READ_LOGS="read:logs",ea.READ_USERS="read:users",ea.READ_MAP="read:map",ea.READ_ASSETS="read:assets",ea.READ_RULES="read:rules",ea.READ_INSIGHTS="read:insights",ea.READ_ALARMS="read:alarms",ea.READ_NOTIFICATIONS="read:notifications",ea.READ_SERVICES="read:services",ea.READ_TUNNELS="read:tunnels",ea.WRITE_SERVICES="write:services",ea.WRITE_USER="write:user",ea.WRITE_ADMIN="write:admin",ea.WRITE_LOGS="write:logs",ea.WRITE_ASSETS="write:assets",ea.WRITE_ATTRIBUTES="write:attributes",ea.WRITE_RULES="write:rules",ea.WRITE_INSIGHTS="write:insights",ea.WRITE_ALARMS="write:alarms",ea.WRITE_NOTIFICATIONS="write:notifications",ea.WRITE_TUNNELS="write:tunnels",ea.READ="read",ea.WRITE="write",(es=tl||(tl={})).REGISTER="REGISTER",es.UPDATE="UPDATE",es.DEREGISTER="DEREGISTER",(ed=tm||(tm={})).AVAILABLE="AVAILABLE",ed.UNAVAILABLE="UNAVAILABLE",(ec=tu||(tu={})).ASSET="ASSET",ec.AGENT="AGENT",ec.NOTIFICATION="NOTIFICATION",ec.ALARM="ALARM",ec.RULES="RULES",ec.PROTOCOL="PROTOCOL",ec.GATEWAY="GATEWAY",ec.MODEL_AND_VALUES="MODEL_AND_VALUES",ec.API="API",ec.DATA="DATA",(el=tf||(tf={})).INFO="INFO",el.WARN="WARN",el.ERROR="ERROR",(em=tb||(tb={})).NUMERIC="numeric",em.DIGIT_2="2-digit",em.FULL="full",em.LONG="long",em.MEDIUM="medium",em.SHORT="short",em.NARROW="narrow",(eu=th||(th={})).SECONDLY="SECONDLY",eu.MINUTELY="MINUTELY",eu.HOURLY="HOURLY",eu.DAILY="DAILY",eu.WEEKLY="WEEKLY",eu.MONTHLY="MONTHLY",eu.YEARLY="YEARLY",(ef=tp||(tp={})).OMIT="OMIT",ef.BACKWARD="BACKWARD",ef.FORWARD="FORWARD",(eb=t_||(t_={})).JAPANESE="JAPANESE",eb.BUDDHIST="BUDDHIST",eb.ROC="ROC",eb.ISLAMIC="ISLAMIC",eb.ISO8601="ISO8601",eb.CHINESE="CHINESE",eb.ETHIOPIC="ETHIOPIC",eb.HEBREW="HEBREW",eb.GREGORIAN="GREGORIAN",(eh=tF||(tF={})).SU="SU",eh.MO="MO",eh.TU="TU",eh.WE="WE",eh.TH="TH",eh.FR="FR",eh.SA="SA",(ep=tg||(tg={})).PEOPLECOUNTERASSET="PeopleCounterAsset",ep.MAILAGENT="MailAgent",ep.UDPAGENT="UDPAgent",ep.ROOMASSET="RoomAsset",ep.CITYASSET="CityAsset",ep.VENTILATIONASSET="VentilationAsset",ep.TRADFRILIGHTASSET="TradfriLightAsset",ep.CONSOLEASSET="ConsoleAsset",ep.PRESENCESENSORASSET="PresenceSensorAsset",ep.OPENWEATHERMAPAGENT="OpenWeatherMapAgent",ep.LIGHTASSET="LightAsset",ep.KNXAGENT="KNXAgent",ep.THETHINGSSTACKAGENT="TheThingsStackAgent",ep.PLUGASSET="PlugAsset",ep.CHIRPSTACKAGENT="ChirpStackAgent",ep.WEATHERASSET="WeatherAsset",ep.THINGASSET="ThingAsset",ep.WEBSOCKETAGENT="WebsocketAgent",ep.TCPAGENT="TCPAgent",ep.GATEWAYASSET="GatewayAsset",ep.SERIALAGENT="SerialAgent",ep.BLUETOOTHMESHAGENT="BluetoothMeshAgent",ep.PARKINGASSET="ParkingAsset",ep.TRADFRIPLUGASSET="TradfriPlugAsset",ep.SIMULATORAGENT="SimulatorAgent",ep.SNMPAGENT="SNMPAgent",ep.GROUPASSET="GroupAsset",ep.BUILDINGASSET="BuildingAsset",ep.MODBUSSERIALAGENT="ModbusSerialAgent",ep.ENVIRONMENTSENSORASSET="EnvironmentSensorAsset",ep.MQTTAGENT="MQTTAgent",ep.VELBUSTCPAGENT="VelbusTCPAgent",ep.ARTNETLIGHTASSET="ArtnetLightAsset",ep.VELBUSSERIALAGENT="VelbusSerialAgent",ep.GROUNDWATERSENSORASSET="GroundwaterSensorAsset",ep.MICROPHONEASSET="MicrophoneAsset",ep.MODBUSTCPAGENT="ModbusTcpAgent",ep.ZWAVEAGENT="ZWaveAgent",ep.HTTPAGENT="HTTPAgent",ep.DOORASSET="DoorAsset",ep.THERMOSTATASSET="ThermostatAsset",ep.SHIPASSET="ShipAsset",(e_=ty||(ty={})).COLOURRGB="colourRGB",e_.WILDCARDSUBSCRIPTIONTOPICS="wildcardSubscriptionTopics",e_.PRICEHOURLY="priceHourly",e_.MQTTPORT="MQTTPort",e_.PINGDISABLED="pingDisabled",e_.FLOW="flow",e_.CHILDASSETTYPE="childAssetType",e_.LASTACCESS="lastAccess",e_.POSITION="position",e_.NETWORKKEY="networkKey",e_.UNIVERSE="universe",e_.ROUTINGMODE="routingMode",e_.MSSINUMBER="MSSINumber",e_.LASTWILLRETAIN="lastWillRetain",e_.LASTWILLTOPIC="lastWillTopic",e_.SERIALBAUDRATE="serialBaudrate",e_.SUBSCRIBEQOS="subscribeQos",e_.LEDCOUNT="lEDCount",e_.LOCKED="locked",e_.CLOUDCOVERAGE="cloudCoverage",e_.BASEURL="baseURL",e_.PROTOCOL="protocol",e_.REQUIREDVALUES="requiredValues",e_.REGION="region",e_.CONSOLEPLATFORM="consolePlatform",e_.GATEWAYSTATUS="gatewayStatus",e_.NO2LEVEL="NO2Level",e_.ATMOSPHERICPRESSURE="atmosphericPressure",e_.SERIALPORT="serialPort",e_.APPLICATIONID="applicationId",e_.TAGS="tags",e_.UNLOCK="unlock",e_.CHECKINTERVALSECONDS="checkIntervalSeconds",e_.LOCATION="location",e_.CLIENTSECRET="clientSecret",e_.WINDDIRECTION="windDirection",e_.WINDSPEED="windSpeed",e_.PARTICLESPM10="particlesPM10",e_.APPLICATIONKEY="applicationKey",e_.LENGTH="length",e_.PROBABILITYOFPRECIPITATION="probabilityOfPrecipitation",e_.USERNAMEPASSWORD="usernamePassword",e_.WATERLEVEL="waterLevel",e_.CONNECTHEADERS="connectHeaders",e_.CONSOLENAME="consoleName",e_.WEBSOCKETQUERY="websocketQuery",e_.PREFERHTML="preferHTML",e_.PARITY="parity",e_.COOLING="cooling",e_.POLLINGMILLIS="pollingMillis",e_.SOILTEMPERATURE="soilTemperature",e_.SUNIRRADIANCE="sunIrradiance",e_.MESSAGEMAXLENGTH="messageMaxLength",e_.WINDGUSTSPEED="windGustSpeed",e_.LIGHTID="lightId",e_.PROXYADDRESS="proxyAddress",e_.REQUESTQUERYPARAMETERS="requestQueryParameters",e_.MQTTHOST="MQTTHost",e_.SECUREGRPC="secureGRPC",e_.MODEL="model",e_.STREET="street",e_.MANUFACTURER="manufacturer",e_.DELETEPROCESSEDMAIL="deleteProcessedMail",e_.RESUMESESSION="resumeSession",e_.ONOFF="onOff",e_.APIKEY="ApiKey",e_.CITY="city",e_.PRESENCE="presence",e_.SPACESOCCUPIED="spacesOccupied",e_.STARTTLS="startTLS",e_.REQUESTTIMEOUTMILLIS="requestTimeoutMillis",e_.WEBSOCKETPATH="websocketPath",e_.AGENTSTATUS="agentStatus",e_.PRICEDAILY="priceDaily",e_.COUNTGROWTHMINUTE="countGrowthMinute",e_.IMONUMBER="IMONumber",e_.ATTRIBUTION="Attribution",e_.TENANTID="tenantId",e_.REQUESTHEADERS="requestHeaders",e_.HOST="host",e_.COUNTOUTMINUTE="countOutMinute",e_.MESSAGECHARSET="messageCharset",e_.CERTIFICATEALIAS="certificateAlias",e_.EMAIL="email",e_.BINDPORT="bindPort",e_.CONSOLEVERSION="consoleVersion",e_.PARTICLESPM1="particlesPM1",e_.MTU="mtu",e_.SPEED="speed",e_.MESSAGESTRIPDELIMITER="messageStripDelimiter",e_.AREA="area",e_.COUNTRY="country",e_.SHIPTYPE="shipType",e_.CONNECTSUBSCRIPTIONS="connectSubscriptions",e_.RELATIVEHUMIDITY="relativeHumidity",e_.SOURCEADDRESS="sourceAddress",e_.RAINFALL="rainfall",e_.OAUTHGRANT="oAuthGrant",e_.OZONELEVEL="ozoneLevel",e_.SEQUENCENUMBER="sequenceNumber",e_.COUNTINMINUTE="countInMinute",e_.PORT="port",e_.SUNALTITUDE="sunAltitude",e_.COUNTOUT="countOut",e_.ROOMNUMBER="roomNumber",e_.TUNNELINGSUPPORTED="tunnelingSupported",e_.ENINUMBER="ENINumber",e_.PARTICLESPM2_5="particlesPM2_5",e_.AGENTDISABLED="agentDisabled",e_.DISABLED="disabled",e_.COUNTIN="countIn",e_.MESSAGESOURCEADDRESS="messageSourceAddress",e_.PROVISIONWEATHERASSET="ProvisionWeatherAsset",e_.TIMEINJECTIONINTERVAL="timeInjectionInterval",e_.TEMPERATURESETPOINT="temperatureSetpoint",e_.CONSOLEPROVIDERS="consoleProviders",e_.COUNTTOTAL="countTotal",e_.SPACESBUFFER="spacesBuffer",e_.DEVICECONFIG="deviceConfig",e_.SPACESTOTAL="spacesTotal",e_.BINDHOST="bindHost",e_.FANSPEED="fanSpeed",e_.MESSAGECONVERTBINARY="messageConvertBinary",e_.NOTES="notes",e_.MAILFOLDERNAME="mailFolderName",e_.MESSAGEDELIMITERS="messageDelimiters",e_.TEMPERATURE="temperature",e_.SUNZENITH="sunZenith",e_.SNMPVERSIONVALUE="SNMPVersionValue",e_.BRIGHTNESS="brightness",e_.POSTALCODE="postalCode",e_.SPACESOPEN="spacesOpen",e_.HUMIDITY="humidity",e_.SOUNDLEVEL="soundLevel",e_.SECUREMODE="secureMode",e_.DIRECTION="direction",e_.STOPBITS="stopbits",e_.UVINDEX="uVIndex",e_.CONNECTURL="connectURL",e_.CLIENTID="clientId",e_.NATMODE="NATMode",e_.UPDATEONWRITE="updateOnWrite",e_.LASTWILLPAYLOAD="lastWillPayload",e_.GROUPID="groupId",e_.FOLLOWREDIRECTS="followRedirects",e_.SUNAZIMUTH="sunAzimuth",e_.MESSAGECONVERTHEX="messageConvertHex",e_.WEBSOCKETMODE="websocketMode",e_.COLOURTEMPERATURE="colourTemperature",e_.PUBLISHQOS="publishQos",e_.DATABITS="dataBits",(eF=tv||(tv={})).FORMAT="format",eF.DATAPOINTSMAXAGEDAYS="dataPointsMaxAgeDays",eF.ACCESSRESTRICTEDWRITE="accessRestrictedWrite",eF.SECRET="secret",eF.APPLYPREDICTEDDATAPOINTS="applyPredictedDataPoints",eF.ATTRIBUTELINKS="attributeLinks",eF.RULERESETIMMEDIATE="ruleResetImmediate",eF.RULESTATE="ruleState",eF.AGENTLINKCONFIG="agentLinkConfig",eF.HASPREDICTEDDATAPOINTS="hasPredictedDataPoints",eF.FORECAST="forecast",eF.STOREDATAPOINTS="storeDataPoints",eF.LABEL="label",eF.CONSTRAINTS="constraints",eF.UNITS="units",eF.USERCONNECTED="userConnected",eF.SHOWONDASHBOARD="showOnDashboard",eF.READONLY="readOnly",eF.MULTILINE="multiline",eF.ACCESSPUBLICWRITE="accessPublicWrite",eF.MOMENTARY="momentary",eF.AGENTLINK="agentLink",eF.ACCESSRESTRICTEDREAD="accessRestrictedRead",eF.ACCESSPUBLICREAD="accessPublicRead",(eg=tw||(tw={})).ASSETQUERY="assetQuery",eg.WSURL="WS_URL",eg.COLOURRGB="colourRGB",eg.VALUEFORMAT="valueFormat",eg.TEXT="text",eg.BYTE="byte",eg.USERNAMEANDPASSWORD="usernameAndPassword",eg.HTTPURL="HTTP_URL",eg.ATTRIBUTELINK="attributeLink",eg.ASSETID="assetID",eg.NUMBERMAP="numberMap",eg.HTTPMETHOD="HTTPMethod",eg.ATTRIBUTESTATE="attributeState",eg.POSITIVENUMBER="positiveNumber",eg.POSITIVEINTEGER="positiveInteger",eg.EXECUTIONSTATUS="executionStatus",eg.BIGINTEGER="bigInteger",eg.VALUEDESCRIPTOR="valueDescriptor",eg.PERIODDURATIONISO8601="periodDurationISO8601",eg.LONG="long",eg.DATEANDTIME="dateAndTime",eg.BOOLEANMAP="booleanMap",eg.MQTTQOS="MQTTQos",eg.NEGATIVEINTEGER="negativeInteger",eg.TCPIPPORTNUMBER="TCP_IPPortNumber",eg.GEOJSONPOINT="GEO_JSONPoint",eg.SNMPVERSION="SNMPVersion",eg.ASSETTYPE="assetType",eg.JSONOBJECT="JSONObject",eg.INTEGERMAP="integerMap",eg.BIGNUMBER="bigNumber",eg.IPADDRESS="IPAddress",eg.EMAIL="email",eg.TIMESTAMP="timestamp",eg.KNXMESSAGESOURCEADDRESS="kNXMessageSourceAddress",eg.ATTRIBUTEREFERENCE="attributeReference",eg.UUID="UUID",eg.INTEGER="integer",eg.OAUTHGRANT="oAuthGrant",eg.NUMBER="number",eg.DEVICECONFIGMAP="DeviceConfigMap",eg.TEXTMAP="textMap",eg.WEBSOCKETSUBSCRIPTION="websocketSubscription",eg.BOOLEAN="boolean",eg.TIMEANDPERIODDURATIONISO8601="timeAndPeriodDurationISO8601",eg.FORECASTCONFIGURATION="forecastConfiguration",eg.TIMEDURATIONISO8601="timeDurationISO8601",eg.TIMESTAMPISO8601="timestampISO8601",eg.CONSOLEPROVIDERS="consoleProviders",eg.MULTIVALUEDTEXTMAP="multivaluedTextMap",eg.NEGATIVENUMBER="negativeNumber",eg.PARITYBIT="Paritybit",eg.JSON="JSON",eg.CRONEXPRESSION="CRONExpression",eg.INTEGERBYTE="integerByte",eg.AGENTLINK="agentLink",eg.DIRECTION="direction",eg.HOSTORIPADDRESS="hostOrIPAddress",eg.STOPBITS="Stopbits",eg.CALENDAREVENT="calendarEvent",eg.CONNECTIONSTATUS="connectionStatus",eg.VALUECONSTRAINT="valueConstraint",(ey=tk||(tk={})).MONTH="month",ey.MILE_SCANDINAVIAN="mile_scandinavian",ey.VAR="var",ey.OUNCE="ounce",ey.HECTARE="hectare",ey.YARD="yard",ey.YEAR="year",ey.GIGA="giga",ey.JOULE="joule",ey.VOLT="volt",ey.HERTZ="hertz",ey.MILE="mile",ey.DEGREE="degree",ey.KILO="kilo",ey.BTU="btu",ey.TERA="tera",ey.FOOT="foot",ey.MEGA="mega",ey.KELVIN="kelvin",ey.CARBON="carbon",ey.DECIBEL_ATTENUATED="decibel_attenuated",ey.INCH="inch",ey.SQUARED="squared",ey.PERCENTAGE="percentage",ey.IN_HG="inch_mercury",ey.CENTI="centi",ey.GRAM="gram",ey.CUBED="cubed",ey.DAY="day",ey.RADIAN="radian",ey.OHM="ohm",ey.MINUTE="minute",ey.PART_PER_MILLION="ppm",ey.AMP="amp",ey.MASS_POUND="pound",ey.KNOT="knot",ey.METRE="metre",ey.LITRE="litre",ey.FLUID_OUNCE="fluid_ounce",ey.HOUR="hour",ey.ACRE="acre",ey.CELSIUS="celsius",ey.RPM="rpm",ey.PASCAL="pascal",ey.DECIBEL="decibel",ey.LUMEN="lumen",ey.WEEK="week",ey.FAHRENHEIT="fahrenheit",ey.WATT="watt",ey.GALLON="gallon",ey.LUX="lux",ey.MILLI="milli",ey.BAR="bar",ey.HECTO="hecto",ey.PEAK="peak",ey.SECOND="second",ey.MICRO="micro",ey.PER="per",ey.STONE="stone",tM||(tM={});class nN{static getAssetDescriptors(){return nN._assetTypeInfos.map(e=>e.assetDescriptor)}static getMetaItemDescriptors(){return[...this._metaItemDescriptors]}static getValueDescriptors(){return[...this._valueDescriptors]}static getAssetTypeInfos(){return[...this._assetTypeInfos]}static getAssetTypeInfo(e){if(e)return e.assetDescriptor?e:("string"!=typeof e&&(e=e.name),this._assetTypeInfos.find(t=>t.assetDescriptor.name===e))}static getAssetDescriptor(e){if(!e)return;if(e.assetDescriptor)return e.assetDescriptor;if("string"!=typeof e)return e;let t=this._assetTypeInfos.find(t=>t.assetDescriptor.name===e);return t?t.assetDescriptor:void 0}static getAttributeDescriptor(e,t){if(!e)return;let n=this.getAssetTypeInfo(t||"ThingAsset");if(n&&n.attributeDescriptors)return n.attributeDescriptors.find(t=>t.name===e)}static getValueDescriptor(e){let t;if(!e)return;if(e.endsWith("[]"))for(t=0;e.endsWith("[]");)e=e.substring(0,e.length-2),t++;let n=this._valueDescriptors.find(t=>t.name===e);return n&&t&&(n=Object.assign(Object.assign({},n),{arrayDimensions:t})),n}static resolveValueDescriptor(e,t){let n;return t&&("string"==typeof t&&(n=nN.getValueDescriptor(t)),n=t.jsonType?t:nN.getValueDescriptor(t.type)),!n&&e&&(n=nN.getValueDescriptor("JSON")),n}static resolveValueTypeFromValue(e){if(null!=e){if("number"==typeof e)return"number";if("string"==typeof e)return"text";if("boolean"==typeof e)return"boolean";if(Array.isArray(e)){let t=1,n=e.find(e=>null!=e);for(;Array.isArray(n);)n=n.find(e=>null!=e),t++;let o=this.resolveValueTypeFromValue(n);if(!o)return;for(;t>0;)o+="[]",t--;return o}if(e instanceof Date)return"dateAndTime"}}static getAttributeAndValueDescriptors(e,t,n){let o,r;if(t&&"string"!=typeof t)o=t;else{let r=this.getAssetTypeInfo(e||"ThingAsset");if(!r)return[void 0,void 0];"string"==typeof t&&(o=this.getAttributeDescriptor(t,r)),!o&&n&&(o={type:n.type,name:n.name,meta:n.meta})}return o&&(r=this.getValueDescriptor(o.type)),[o,r]}static getMetaItemDescriptor(e){if(e)return this._metaItemDescriptors.find(t=>t.name===e)}static getAssetDescriptorColour(e,t){let n=this.getAssetDescriptor(e);return n&&n.colour?n.colour:t}static getAssetDescriptorIcon(e,t){let n=this.getAssetDescriptor(e);return n&&n.icon?n.icon:t}}nN._assetTypeInfos=[],nN._metaItemDescriptors=[],nN._valueDescriptors=[];let nI=e=>"string"==typeof e,nj=()=>{let e,t,n=new Promise((n,o)=>{e=n,t=o});return n.resolve=e,n.reject=t,n},nH=e=>null==e?"":String(e),nU=/###/g,nW=e=>e&&e.includes("###")?e.replace(nU,"."):e,nz=e=>!e||nI(e),n$=(e,t,n)=>{let o=nI(t)?t.split("."):t,r=0;for(;r<o.length-1;){if(nz(e))return{};let t=nW(o[r]);!e[t]&&n&&(e[t]=new n),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++r}return nz(e)?{}:{obj:e,k:nW(o[r])}},nG=(e,t,n)=>{let{obj:o,k:r}=n$(e,t,Object);if(void 0!==o||1===t.length){o[r]=n;return}let i=t[t.length-1],a=t.slice(0,t.length-1),s=n$(e,a,Object);for(;void 0===s.obj&&a.length;)i=`${a[a.length-1]}.${i}`,s=n$(e,a=a.slice(0,a.length-1),Object),s?.obj&&void 0!==s.obj[`${s.k}.${i}`]&&(s.obj=void 0);s.obj[`${s.k}.${i}`]=n},nq=(e,t)=>{let{obj:n,k:o}=n$(e,t);if(n&&Object.prototype.hasOwnProperty.call(n,o))return n[o]},nV=(e,t,n)=>{for(let o in t)"__proto__"!==o&&"constructor"!==o&&(Object.prototype.hasOwnProperty.call(e,o)?nI(e[o])||e[o]instanceof String||nI(t[o])||t[o]instanceof String?n&&(e[o]=t[o]):nV(e[o],t[o],n):e[o]=t[o]);return e},nJ={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"},nK=e=>nI(e)?e.replace(/[&<>"'\/]/g,e=>nJ[e]):e,nX=[" ",",","?","!",";"],nQ=new class{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){let t=this.regExpMap.get(e);if(void 0!==t)return t;let n=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,n),this.regExpQueue.push(e),n}}(20),nZ=(e,t,n=".")=>{if(!e)return;if(e[t]){if(!Object.prototype.hasOwnProperty.call(e,t))return;return e[t]}let o=t.split(n),r=e;for(let e=0;e<o.length;){let t;if(!r||"object"!=typeof r)return;let i="";for(let a=e;a<o.length;++a)if(a!==e&&(i+=n),i+=o[a],void 0!==(t=r[i])){if(["string","number","boolean"].includes(typeof t)&&a<o.length-1)continue;e+=a-e+1;break}r=t}return r},n0=e=>e?.replace(/_/g,"-"),n1={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console?.[e]?.apply?.(console,t)}};var n2=new class e{constructor(e,t={}){this.init(e,t)}init(e,t={}){this.prefix=t.prefix||"i18next:",this.logger=e||n1,this.options=t,this.debug=t.debug}log(...e){return this.forward(e,"log","",!0)}warn(...e){return this.forward(e,"warn","",!0)}error(...e){return this.forward(e,"error","")}deprecate(...e){return this.forward(e,"warn","WARNING DEPRECATED: ",!0)}forward(e,t,n,o){return o&&!this.debug?null:(e=e.map(e=>nI(e)?e.replace(/[\r\n\x00-\x1F\x7F]/g," "):e),nI(e[0])&&(e[0]=`${n}${this.prefix} ${e[0]}`),this.logger[t](e))}create(t){return new e(this.logger,{...{prefix:`${this.prefix}:${t}:`},...this.options})}clone(t){return(t=t||this.options).prefix=t.prefix||this.prefix,new e(this.logger,t)}};class n4{constructor(){this.observers={}}on(e,t){return e.split(" ").forEach(e=>{this.observers[e]||(this.observers[e]=new Map);let n=this.observers[e].get(t)||0;this.observers[e].set(t,n+1)}),this}off(e,t){if(this.observers[e]){if(!t)return void delete this.observers[e];this.observers[e].delete(t)}}once(e,t){let n=(...o)=>{t(...o),this.off(e,n)};return this.on(e,n),this}emit(e,...t){this.observers[e]&&Array.from(this.observers[e].entries()).forEach(([e,n])=>{for(let o=0;o<n;o++)e(...t)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([n,o])=>{for(let r=0;r<o;r++)n(e,...t)})}}class n5 extends n4{constructor(e,t={ns:["translation"],defaultNS:"translation"}){super(),this.data=e||{},this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),void 0===this.options.ignoreJSONStructure&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.includes(e)||this.options.ns.push(e)}removeNamespaces(e){let t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,n,o={}){let r,i=void 0!==o.keySeparator?o.keySeparator:this.options.keySeparator,a=void 0!==o.ignoreJSONStructure?o.ignoreJSONStructure:this.options.ignoreJSONStructure;e.includes(".")?r=e.split("."):(r=[e,t],n&&(Array.isArray(n)?r.push(...n):nI(n)&&i?r.push(...n.split(i)):r.push(n)));let s=nq(this.data,r);return(!s&&!t&&!n&&e.includes(".")&&(e=r[0],t=r[1],n=r.slice(2).join(".")),!s&&a&&nI(n))?nZ(this.data?.[e]?.[t],n,i):s}addResource(e,t,n,o,r={silent:!1}){let i=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,a=[e,t];n&&(a=a.concat(i?n.split(i):n)),e.includes(".")&&(a=e.split("."),o=t,t=a[1]),this.addNamespaces(t),nG(this.data,a,o),r.silent||this.emit("added",e,t,n,o)}addResources(e,t,n,o={silent:!1}){for(let o in n)(nI(n[o])||Array.isArray(n[o]))&&this.addResource(e,t,o,n[o],{silent:!0});o.silent||this.emit("added",e,t,n)}addResourceBundle(e,t,n,o,r,i={silent:!1,skipCopy:!1}){let a=[e,t];e.includes(".")&&(a=e.split("."),o=n,n=t,t=a[1]),this.addNamespaces(t);let s=nq(this.data,a)||{};i.skipCopy||(n=JSON.parse(JSON.stringify(n))),o?nV(s,n,r):s={...s,...n},nG(this.data,a,s),i.silent||this.emit("added",e,t,n)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}hasResourceBundle(e,t){return void 0!==this.getResource(e,t)}getResourceBundle(e,t){return t||(t=this.options.defaultNS),this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){let t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(e=>t[e]&&Object.keys(t[e]).length>0)}toJSON(){return this.data}}var n3={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,o,r){return e.forEach(e=>{t=this.processors[e]?.process(t,n,o,r)??t}),t}};let n6=Symbol("i18next/PATH_KEY");function n8(e,t){let n,o,r,{[n6]:i}=e((o=[],(r=Object.create(null)).get=(e,t)=>(n?.revoke?.(),t===n6)?o:(o.push(t),(n=Proxy.revocable(e,r)).proxy),Proxy.revocable(Object.create(null),r).proxy)),a=t?.keySeparator??".",s=t?.nsSeparator??":",d=t?.enableSelector==="strict";if(i.length>1&&s){let e=t?.ns,n=d?Array.isArray(e)?e:e?[e]:null:Array.isArray(e)?e:null;if(n&&(d?n:n.length>1?n.slice(1):[]).includes(i[0]))return`${i[0]}${s}${i.slice(1).join(a)}`}return i.join(a)}let n7=e=>!nI(e)&&"boolean"!=typeof e&&"number"!=typeof e;class n9 extends n4{constructor(e,t={}){super(),((e,t,n)=>{e.forEach(e=>{t[e]&&(n[e]=t[e])})})(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,this),this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=n2.create("translator"),this.checkedLoadedFor={}}changeLanguage(e){e&&(this.language=e)}exists(e,t={interpolation:{}}){let n={...t};if(null==e)return!1;let o=this.resolve(e,n);if(o?.res===void 0)return!1;let r=n7(o.res);return!1!==n.returnObjects||!r}extractFromKey(e,t){let n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");let o=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,r=t.ns||this.options.defaultNS||[],i=n&&e.includes(n),a=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!((e,t,n)=>{t=t||"",n=n||"";let o=nX.filter(e=>!t.includes(e)&&!n.includes(e));if(0===o.length)return!0;let r=nQ.getRegExp(`(${o.map(e=>"?"===e?"\\?":e).join("|")})`),i=!r.test(e);if(!i){let t=e.indexOf(n);t>0&&!r.test(e.substring(0,t))&&(i=!0)}return i})(e,n,o);if(i&&!a){let t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:nI(r)?[r]:r};let i=e.split(n);(n!==o||n===o&&this.options.ns.includes(i[0]))&&(r=i.shift()),e=i.join(o)}return{key:e,namespaces:nI(r)?[r]:r}}translate(e,t,n){let o="object"==typeof t?{...t}:t;if("object"!=typeof o&&this.options.overloadTranslationOptionHandler&&(o=this.options.overloadTranslationOptionHandler(arguments)),"object"==typeof o&&(o={...o}),o||(o={}),null==e)return"";"function"==typeof e&&(e=n8(e,{...this.options,...o})),Array.isArray(e)||(e=[String(e)]),e=e.map(e=>"function"==typeof e?n8(e,{...this.options,...o}):String(e));let r=void 0!==o.returnDetails?o.returnDetails:this.options.returnDetails,i=void 0!==o.keySeparator?o.keySeparator:this.options.keySeparator,{key:a,namespaces:s}=this.extractFromKey(e[e.length-1],o),d=s[s.length-1],c=void 0!==o.nsSeparator?o.nsSeparator:this.options.nsSeparator;void 0===c&&(c=":");let l=o.lng||this.language,m=o.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(l?.toLowerCase()==="cimode")return m?r?{res:`${d}${c}${a}`,usedKey:a,exactUsedKey:a,usedLng:l,usedNS:d,usedParams:this.getUsedParamsDetails(o)}:`${d}${c}${a}`:r?{res:a,usedKey:a,exactUsedKey:a,usedLng:l,usedNS:d,usedParams:this.getUsedParamsDetails(o)}:a;let u=this.resolve(e,o),f=u?.res,b=u?.usedKey||a,h=u?.exactUsedKey||a,p=void 0!==o.joinArrays?o.joinArrays:this.options.joinArrays,_=!this.i18nFormat||this.i18nFormat.handleAsObject,F=void 0!==o.count&&!nI(o.count),g=n9.hasDefaultValue(o),y=F?this.pluralResolver.getSuffix(l,o.count,o):"",v=o.ordinal&&F?this.pluralResolver.getSuffix(l,o.count,{ordinal:!1}):"",w=F&&!o.ordinal&&0===o.count,k=w&&o[`defaultValue${this.options.pluralSeparator}zero`]||o[`defaultValue${y}`]||o[`defaultValue${v}`]||o.defaultValue,M=f;_&&!f&&g&&(M=k);let E=n7(M),L=Object.prototype.toString.apply(M);if(_&&M&&E&&!["[object Number]","[object Function]","[object RegExp]"].includes(L)&&!(nI(p)&&Array.isArray(M))){if(!o.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");let e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(b,M,{...o,ns:s}):`key '${a} (${this.language})' returned an object instead of string.`;return r?(u.res=e,u.usedParams=this.getUsedParamsDetails(o),u):e}if(i){let e=Array.isArray(M),t=e?[]:{},n=e?h:b;for(let e in M)if(Object.prototype.hasOwnProperty.call(M,e)){let r=`${n}${i}${e}`;g&&!f?t[e]=this.translate(r,{...o,defaultValue:n7(k)?k[e]:void 0,...{joinArrays:!1,ns:s}}):t[e]=this.translate(r,{...o,joinArrays:!1,ns:s}),t[e]===r&&(t[e]=M[e])}f=t}}else if(_&&nI(p)&&Array.isArray(f))(f=f.join(p))&&(f=this.extendTranslation(f,e,o,n));else{let t=!1,r=!1;!this.isValidLookup(f)&&g&&(t=!0,f=k),this.isValidLookup(f)||(r=!0,f=a);let s=(o.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&r?void 0:f,m=g&&k!==f&&this.options.updateMissing;if(r||t||m){if(this.logger.log(m?"updateKey":"missingKey",l,d,F&&!m?`${a}${this.pluralResolver.getSuffix(l,o.count,o)}`:a,m?k:f),i){let e=this.resolve(a,{...o,keySeparator:!1});e&&e.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let e=[],t=this.languageUtils.getFallbackCodes(this.options.fallbackLng,o.lng||this.language);if("fallback"===this.options.saveMissingTo&&t&&t[0])for(let n=0;n<t.length;n++)e.push(t[n]);else"all"===this.options.saveMissingTo?e=this.languageUtils.toResolveHierarchy(o.lng||this.language):e.push(o.lng||this.language);let n=(e,t,n)=>{let r=g&&n!==f?n:s;this.options.missingKeyHandler?this.options.missingKeyHandler(e,d,t,r,m,o):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(e,d,t,r,m,o),this.emit("missingKey",e,d,t,f)};this.options.saveMissing&&(this.options.saveMissingPlurals&&F?e.forEach(e=>{let t=this.pluralResolver.getSuffixes(e,o);w&&o[`defaultValue${this.options.pluralSeparator}zero`]&&!t.includes(`${this.options.pluralSeparator}zero`)&&t.push(`${this.options.pluralSeparator}zero`),t.forEach(t=>{n([e],a+t,o[`defaultValue${t}`]||k)})}):n(e,a,k))}f=this.extendTranslation(f,e,o,u,n),r&&f===a&&this.options.appendNamespaceToMissingKey&&(f=`${d}${c}${a}`),(r||t)&&this.options.parseMissingKeyHandler&&(f=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${d}${c}${a}`:a,t?f:void 0,o))}return r?(u.res=f,u.usedParams=this.getUsedParamsDetails(o),u):f}extendTranslation(e,t,n,o,r){if(this.i18nFormat?.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||o.usedLng,o.usedNS,o.usedKey,{resolved:o});else if(!n.skipInterpolation){let i;n.interpolation&&this.interpolator.init({...n,...{interpolation:{...this.options.interpolation,...n.interpolation}}});let a=nI(e)&&(n?.interpolation?.skipOnVariables!==void 0?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);if(a){let t=e.match(this.interpolator.nestingRegexp);i=t&&t.length}let s=n.replace&&!nI(n.replace)?n.replace:n;if(this.options.interpolation.defaultVariables&&(s={...this.options.interpolation.defaultVariables,...s}),e=this.interpolator.interpolate(e,s,n.lng||this.language||o.usedLng,n),a){let t=e.match(this.interpolator.nestingRegexp);i<(t&&t.length)&&(n.nest=!1)}!n.lng&&o&&o.res&&(n.lng=this.language||o.usedLng),!1!==n.nest&&(e=this.interpolator.nest(e,(...e)=>r?.[0]!==e[0]||n.context?this.translate(...e,t):(this.logger.warn(`It seems you are nesting recursively key: ${e[0]} in key: ${t[0]}`),null),n)),n.interpolation&&this.interpolator.reset()}let i=n.postProcess||this.options.postProcess,a=nI(i)?[i]:i;return null!=e&&a?.length&&!1!==n.applyPostProcessor&&(e=n3.handle(a,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...o,usedParams:this.getUsedParamsDetails(n)},...n}:n,this)),e}resolve(e,t={}){let n,o,r,i,a;return nI(e)&&(e=[e]),Array.isArray(e)&&(e=e.map(e=>"function"==typeof e?n8(e,{...this.options,...t}):e)),e.forEach(e=>{if(this.isValidLookup(n))return;let s=this.extractFromKey(e,t),d=s.key;o=d;let c=s.namespaces;this.options.fallbackNS&&(c=c.concat(this.options.fallbackNS));let l=void 0!==t.count&&!nI(t.count),m=l&&!t.ordinal&&0===t.count,u=void 0!==t.context&&(nI(t.context)||"number"==typeof t.context)&&""!==t.context,f=t.lngs?t.lngs:this.languageUtils.toResolveHierarchy(t.lng||this.language,t.fallbackLng);c.forEach(e=>{this.isValidLookup(n)||(a=e,!this.checkedLoadedFor[`${f[0]}-${e}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(a)&&(this.checkedLoadedFor[`${f[0]}-${e}`]=!0,this.logger.warn(`key "${o}" for languages "${f.join(", ")}" won't get resolved as namespace "${a}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),f.forEach(o=>{let a;if(this.isValidLookup(n))return;i=o;let s=[d];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(s,d,o,e,t);else{let e;l&&(e=this.pluralResolver.getSuffix(o,t.count,t));let n=`${this.options.pluralSeparator}zero`,r=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(l&&(t.ordinal&&e.startsWith(r)&&s.push(d+e.replace(r,this.options.pluralSeparator)),s.push(d+e),m&&s.push(d+n)),u){let o=`${d}${this.options.contextSeparator||"_"}${t.context}`;s.push(o),l&&(t.ordinal&&e.startsWith(r)&&s.push(o+e.replace(r,this.options.pluralSeparator)),s.push(o+e),m&&s.push(o+n))}}for(;a=s.pop();)this.isValidLookup(n)||(r=a,n=this.getResource(o,e,a,t))}))})}),{res:n,usedKey:o,exactUsedKey:r,usedLng:i,usedNS:a}}isValidLookup(e){return void 0!==e&&!(!this.options.returnNull&&null===e)&&!(!this.options.returnEmptyString&&""===e)}getResource(e,t,n,o={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(e,t,n,o):this.resourceStore.getResource(e,t,n,o)}getUsedParamsDetails(e={}){let t=e.replace&&!nI(e.replace),n=t?e.replace:e;if(t&&void 0!==e.count&&(n={...n,count:e.count}),this.options.interpolation.defaultVariables&&(n={...this.options.interpolation.defaultVariables,...n}),!t)for(let e of(n={...n},["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"]))delete n[e];return n}static hasDefaultValue(e){for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&t.startsWith("defaultValue")&&void 0!==e[t])return!0;return!1}}class oe{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=n2.create("languageUtils")}getScriptPartFromCode(e){if(!(e=n0(e))||!e.includes("-"))return null;let t=e.split("-");return 2===t.length||(t.pop(),"x"===t[t.length-1].toLowerCase())?null:this.formatLanguageCode(t.join("-"))}getLanguagePartFromCode(e){if(!(e=n0(e))||!e.includes("-"))return e;let t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(nI(e)&&e.includes("-")){let t;try{t=Intl.getCanonicalLocales(e)[0]}catch(e){}return(t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t)?t:this.options.lowerCaseLng?e.toLowerCase():e}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.includes(e)}getBestMatchFromCodes(e){let t;return e?(e.forEach(e=>{if(t)return;let n=this.formatLanguageCode(e);(!this.options.supportedLngs||this.isSupportedCode(n))&&(t=n)}),!t&&this.options.supportedLngs&&e.forEach(e=>{if(t)return;let n=this.getScriptPartFromCode(e);if(this.isSupportedCode(n))return t=n;let o=this.getLanguagePartFromCode(e);if(this.isSupportedCode(o))return t=o;t=this.options.supportedLngs.find(e=>e===o||(!!e.includes("-")||!!o.includes("-"))&&!!(e.includes("-")&&!o.includes("-")&&e.slice(0,e.indexOf("-"))===o||e.startsWith(o)&&o.length>1))}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}getFallbackCodes(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),nI(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}toResolveHierarchy(e,t){let n=this.getFallbackCodes((!1===t?[]:t)||this.options.fallbackLng||[],e),o=[],r=e=>{e&&(this.isSupportedCode(e)?o.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return nI(e)&&(e.includes("-")||e.includes("_"))?("languageOnly"!==this.options.load&&r(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&r(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&r(this.getLanguagePartFromCode(e))):nI(e)&&r(this.formatLanguageCode(e)),n.forEach(e=>{o.includes(e)||r(this.formatLanguageCode(e))}),o}}let ot={zero:0,one:1,two:2,few:3,many:4,other:5},on={select:e=>1===e?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class oo{constructor(e,t={}){this.languageUtils=e,this.options=t,this.logger=n2.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(e,t={}){let n,o=n0("dev"===e?"en":e),r=t.ordinal?"ordinal":"cardinal",i=JSON.stringify({cleanedCode:o,type:r});if(i in this.pluralRulesCache)return this.pluralRulesCache[i];try{n=new Intl.PluralRules(o,{type:r})}catch(r){if("u"<typeof Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),on;if(!e.match(/-|_/))return on;let o=this.languageUtils.getLanguagePartFromCode(e);n=this.getRule(o,t)}return this.pluralRulesCache[i]=n,n}needsPlural(e,t={}){let n=this.getRule(e,t);return n||(n=this.getRule("dev",t)),n?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(e,t,n={}){return this.getSuffixes(e,n).map(e=>`${t}${e}`)}getSuffixes(e,t={}){let n=this.getRule(e,t);return(n||(n=this.getRule("dev",t)),n)?n.resolvedOptions().pluralCategories.sort((e,t)=>ot[e]-ot[t]).map(e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${e}`):[]}getSuffix(e,t,n={}){let o=this.getRule(e,n);return o?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${o.select(t)}`:(this.logger.warn(`no plural rule found for: ${e}`),this.getSuffix("dev",t,n))}}let or=(e,t,n,o=".",r=!0)=>{let i,a=void 0!==(i=nq(e,n))?i:nq(t,n);return!a&&r&&nI(n)&&void 0===(a=nZ(e,n,o))&&(a=nZ(t,n,o)),a},oi=e=>e.replace(/\$/g,"$$$$");class oa{constructor(e={}){this.logger=n2.create("interpolator"),this.options=e,this.format=e?.interpolation?.format||(e=>e),this.init(e)}init(e={}){e.interpolation||(e.interpolation={escapeValue:!0});let{escape:t,escapeValue:n,useRawValueToEscape:o,prefix:r,prefixEscaped:i,suffix:a,suffixEscaped:s,formatSeparator:d,unescapeSuffix:c,unescapePrefix:l,nestingPrefix:m,nestingPrefixEscaped:u,nestingSuffix:f,nestingSuffixEscaped:b,nestingOptionsSeparator:h,maxReplaces:p,alwaysFormat:_}=e.interpolation;this.escape=void 0!==t?t:nK,this.escapeValue=void 0===n||n,this.useRawValueToEscape=void 0!==o&&o,this.prefix=r?r.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"):i||"{{",this.suffix=a?a.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"):s||"}}",this.formatSeparator=d||",",this.unescapePrefix=c?"":l?l.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"):"-",this.unescapeSuffix=this.unescapePrefix?"":c?c.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"):"",this.nestingPrefix=m?m.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"):u||"$t(".replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),this.nestingSuffix=f?f.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"):b||")".replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),this.nestingOptionsSeparator=h||",",this.maxReplaces=p||1e3,this.alwaysFormat=void 0!==_&&_,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let e=(e,t)=>e?.source===t?(e.lastIndex=0,e):RegExp(t,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(e,t,n,o){let r,i,a,s=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},d=e=>{if(!e.includes(this.formatSeparator)){let r=or(t,s,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(r,void 0,n,{...o,...t,interpolationkey:e}):r}let r=e.split(this.formatSeparator),i=r.shift().trim(),a=r.join(this.formatSeparator).trim();return this.format(or(t,s,i,this.options.keySeparator,this.options.ignoreJSONStructure),a,n,{...o,...t,interpolationkey:i})};this.resetRegExp(),!this.escapeValue&&"string"==typeof e&&/\$t\([^)]*\{[^}]*\{\{/.test(e)&&this.logger.warn("nesting options string contains interpolated variables with escapeValue: false — if any of those values are attacker-controlled they can inject additional nesting options (e.g. redirect lng/ns). Sanitise untrusted input before passing it to t(), or keep escapeValue: true.");let c=o?.missingInterpolationHandler||this.options.missingInterpolationHandler,l=o?.interpolation?.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>e},{regex:this.regexp,safeValue:e=>this.escapeValue?this.escape(e):e}].forEach(t=>{for(a=0;r=t.regex.exec(e);){let n=r[1].trim();if(void 0===(i=d(n)))if("function"==typeof c){let t=c(e,r,o);i=nI(t)?t:""}else if(o&&Object.prototype.hasOwnProperty.call(o,n))i="";else if(l){i=r[0];continue}else this.logger.warn(`missed to pass in variable ${n} for interpolating ${e}`),i="";else nI(i)||this.useRawValueToEscape||(i=nH(i));let s=t.safeValue(i);if(e=e.replace(r[0],oi(s)),l?(t.regex.lastIndex+=s.length,t.regex.lastIndex-=r[0].length):t.regex.lastIndex=0,++a>=this.maxReplaces)break}}),e}nest(e,t,n={}){let o,r,i,a=(e,t)=>{let n=this.nestingOptionsSeparator;if(!e.includes(n))return e;let o=e.split(RegExp(`${n.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}[ ]*{`)),r=`{${o[1]}`;e=o[0];let a=(r=this.interpolate(r,i)).match(/'/g),s=r.match(/"/g);((a?.length??0)%2!=0||s)&&(s?.length??0)%2==0||(r=r.replace(/'/g,'"'));try{i=JSON.parse(r),t&&(i={...t,...i})}catch(t){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,t),`${e}${n}${r}`}return i.defaultValue&&i.defaultValue.includes(this.prefix)&&delete i.defaultValue,e};for(;o=this.nestingRegexp.exec(e);){let s=[];(i=(i={...n}).replace&&!nI(i.replace)?i.replace:i).applyPostProcessor=!1,delete i.defaultValue;let d=/{.*}/s.test(o[1])?o[1].lastIndexOf("}")+1:o[1].indexOf(this.formatSeparator);if(-1!==d&&(s=o[1].slice(d).split(this.formatSeparator).map(e=>e.trim()).filter(Boolean),o[1]=o[1].slice(0,d)),(r=t(a.call(this,o[1].trim(),i),i))&&o[0]===e&&!nI(r))return r;nI(r)||(r=nH(r)),r||(this.logger.warn(`missed to resolve ${o[1]} for nesting ${e}`),r=""),s.length&&(r=s.reduce((e,t)=>this.format(e,t,n.lng,{...n,interpolationkey:o[1].trim()}),r.trim())),e=e.replace(o[0],r),this.regexp.lastIndex=0}return e}}let os=e=>{let t={};return(n,o,r)=>{let i=r;r&&r.interpolationkey&&r.formatParams&&r.formatParams[r.interpolationkey]&&r[r.interpolationkey]&&(i={...i,[r.interpolationkey]:void 0});let a=o+JSON.stringify(i),s=t[a];return s||(s=e(n0(o),r),t[a]=s),s(n)}},od=e=>(t,n,o)=>e(n0(n),o)(t);class oc{constructor(e={}){this.logger=n2.create("formatter"),this.options=e,this.init(e)}init(e,t={interpolation:{}}){this.formatSeparator=t.interpolation.formatSeparator||",";let n=t.cacheInBuiltFormats?os:od;this.formats={number:n((e,t)=>{let n=new Intl.NumberFormat(e,{...t});return e=>n.format(e)}),currency:n((e,t)=>{let n=new Intl.NumberFormat(e,{...t,style:"currency"});return e=>n.format(e)}),datetime:n((e,t)=>{let n=new Intl.DateTimeFormat(e,{...t});return e=>n.format(e)}),relativetime:n((e,t)=>{let n=new Intl.RelativeTimeFormat(e,{...t});return e=>n.format(e,t.range||"day")}),list:n((e,t)=>{let n=new Intl.ListFormat(e,{...t});return e=>n.format(e)})}}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=os(t)}format(e,t,n,o={}){if(!t||null==e)return e;let r=t.split(this.formatSeparator),i=[];for(let e=0;e<r.length;e++){let t=r[e];for(;t.indexOf("(")>-1&&!t.includes(")")&&e+1<r.length;)t=`${t}${this.formatSeparator}${r[++e]}`;i.push(t)}return i.reduce((e,t)=>{let{formatName:r,formatOptions:i}=(e=>{let t=e.toLowerCase().trim(),n={};if(e.includes("(")){let o=e.split("(");t=o[0].toLowerCase().trim();let r=o[1].slice(0,-1);"currency"!==t||r.includes(":")?"relativetime"!==t||r.includes(":")?r.split(";").forEach(e=>{if(e){let[t,...o]=e.split(":"),r=o.join(":").trim().replace(/^'+|'+$/g,""),i=t.trim();n[i]||(n[i]=r),"false"===r&&(n[i]=!1),"true"===r&&(n[i]=!0),isNaN(r)||(n[i]=parseInt(r,10))}}):n.range||(n.range=r.trim()):n.currency||(n.currency=r.trim())}return{formatName:t,formatOptions:n}})(t);if(this.formats[r]){let t=e;try{let a=o?.formatParams?.[o.interpolationkey]||{},s=a.locale||a.lng||o.locale||o.lng||n;t=this.formats[r](e,s,{...i,...o,...a})}catch(e){this.logger.warn(e)}return t}return this.logger.warn(`there was no format function for ${r}`),e},e)}}class ol extends n4{constructor(e,t,n,o={}){super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=o,this.logger=n2.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=o.maxParallelReads||10,this.readingCalls=0,this.maxRetries=o.maxRetries>=0?o.maxRetries:5,this.retryTimeout=o.retryTimeout>=1?o.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(n,o.backend,o)}queueLoad(e,t,n,o){let r={},i={},a={},s={};return e.forEach(e=>{let o=!0;t.forEach(t=>{let a=`${e}|${t}`;!n.reload&&this.store.hasResourceBundle(e,t)?this.state[a]=2:this.state[a]<0||(1===this.state[a]?void 0===i[a]&&(i[a]=!0):(this.state[a]=1,o=!1,void 0===i[a]&&(i[a]=!0),void 0===r[a]&&(r[a]=!0),void 0===s[t]&&(s[t]=!0)))}),o||(a[e]=!0)}),(Object.keys(r).length||Object.keys(i).length)&&this.queue.push({pending:i,pendingCount:Object.keys(i).length,loaded:{},errors:[],callback:o}),{toLoad:Object.keys(r),pending:Object.keys(i),toLoadLanguages:Object.keys(a),toLoadNamespaces:Object.keys(s)}}loaded(e,t,n){let o=e.split("|"),r=o[0],i=o[1];t&&this.emit("failedLoading",r,i,t),!t&&n&&this.store.addResourceBundle(r,i,n,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&n&&(this.state[e]=0);let a={};this.queue.forEach(n=>{((e,t,n)=>{let{obj:o,k:r}=n$(e,t,Object);o[r]=o[r]||[],o[r].push(n)})(n.loaded,[r],i),void 0!==n.pending[e]&&(delete n.pending[e],n.pendingCount--),t&&n.errors.push(t),0!==n.pendingCount||n.done||(Object.keys(n.loaded).forEach(e=>{a[e]||(a[e]={});let t=n.loaded[e];t.length&&t.forEach(t=>{void 0===a[e][t]&&(a[e][t]=!0)})}),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())}),this.emit("loaded",a),this.queue=this.queue.filter(e=>!e.done)}read(e,t,n,o=0,r=this.retryTimeout,i){if(!e.length)return i(null,{});if(this.readingCalls>=this.maxParallelReads)return void this.waitingReads.push({lng:e,ns:t,fcName:n,tried:o,wait:r,callback:i});this.readingCalls++;let a=(a,s)=>{if(this.readingCalls--,this.waitingReads.length>0){let e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}a&&s&&o<this.maxRetries?setTimeout(()=>{this.read(e,t,n,o+1,2*r,i)},r):i(a,s)},s=this.backend[n].bind(this.backend);if(2===s.length){try{let n=s(e,t);n&&"function"==typeof n.then?n.then(e=>a(null,e)).catch(a):a(null,n)}catch(e){a(e)}return}return s(e,t,a)}prepareLoading(e,t,n={},o){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();nI(e)&&(e=this.languageUtils.toResolveHierarchy(e)),nI(t)&&(t=[t]);let r=this.queueLoad(e,t,n,o);if(!r.toLoad.length)return r.pending.length||o(),null;r.toLoad.forEach(e=>{this.loadOne(e)})}load(e,t,n){this.prepareLoading(e,t,{},n)}reload(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}loadOne(e,t=""){let n=e.split("|"),o=n[0],r=n[1];this.read(o,r,"read",void 0,void 0,(n,i)=>{n&&this.logger.warn(`${t}loading namespace ${r} for language ${o} failed`,n),!n&&i&&this.logger.log(`${t}loaded namespace ${r} for language ${o}`,i),this.loaded(e,n,i)})}saveMissing(e,t,n,o,r,i={},a=()=>{}){if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(t))return void this.logger.warn(`did not save key "${n}" as the namespace "${t}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");if(null!=n&&""!==n){if(this.backend?.create){let s={...i,isUpdate:r},d=this.backend.create.bind(this.backend);if(d.length<6)try{let r;(r=5===d.length?d(e,t,n,o,s):d(e,t,n,o))&&"function"==typeof r.then?r.then(e=>a(null,e)).catch(a):a(null,r)}catch(e){a(e)}else d(e,t,n,o,a,s)}e&&e[0]&&this.store.addResource(e[0],t,n,o)}}}let om=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",enableSelector:!1,partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if("object"==typeof e[1]&&(t=e[1]),nI(e[1])&&(t.defaultValue=e[1]),nI(e[2])&&(t.tDescription=e[2]),"object"==typeof e[2]||"object"==typeof e[3]){let n=e[3]||e[2];Object.keys(n).forEach(e=>{t[e]=n[e]})}return t},interpolation:{escapeValue:!0,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),ou=e=>(nI(e.ns)&&(e.ns=[e.ns]),nI(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),nI(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&!e.supportedLngs.includes("cimode")&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),of=()=>{};class ob extends n4{constructor(e={},t){if(super(),this.options=ou(e),this.services={},this.logger=n2,this.modules={external:[]},(e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(t=>{"function"==typeof e[t]&&(e[t]=e[t].bind(e))})})(this),t&&!this.isInitialized&&!e.isClone){if(!this.options.initAsync)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(e={},t){this.isInitializing=!0,"function"==typeof e&&(t=e,e={}),null==e.defaultNS&&e.ns&&(nI(e.ns)?e.defaultNS=e.ns:e.ns.includes("translation")||(e.defaultNS=e.ns[0]));let n=om();this.options={...n,...this.options,...ou(e)},this.options.interpolation={...n.interpolation,...this.options.interpolation},void 0!==e.keySeparator&&(this.options.userDefinedKeySeparator=e.keySeparator),void 0!==e.nsSeparator&&(this.options.userDefinedNsSeparator=e.nsSeparator),"function"!=typeof this.options.overloadTranslationOptionHandler&&(this.options.overloadTranslationOptionHandler=n.overloadTranslationOptionHandler);let o=e=>e?"function"==typeof e?new e:e:null;if(!this.options.isClone){let e;this.modules.logger?n2.init(o(this.modules.logger),this.options):n2.init(null,this.options),e=this.modules.formatter?this.modules.formatter:oc;let t=new oe(this.options);this.store=new n5(this.options.resources,this.options);let n=this.services;n.logger=n2,n.resourceStore=this.store,n.languageUtils=t,n.pluralResolver=new oo(t,{prepend:this.options.pluralSeparator}),e&&(n.formatter=o(e),n.formatter.init&&n.formatter.init(n,this.options),this.options.interpolation.format=n.formatter.format.bind(n.formatter)),n.interpolator=new oa(this.options),n.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},n.backendConnector=new ol(o(this.modules.backend),n.resourceStore,n,this.options),n.backendConnector.on("*",(e,...t)=>{this.emit(e,...t)}),this.modules.languageDetector&&(n.languageDetector=o(this.modules.languageDetector),n.languageDetector.init&&n.languageDetector.init(n,this.options.detection,this.options)),this.modules.i18nFormat&&(n.i18nFormat=o(this.modules.i18nFormat),n.i18nFormat.init&&n.i18nFormat.init(this)),this.translator=new n9(this.services,this.options),this.translator.on("*",(e,...t)=>{this.emit(e,...t)}),this.modules.external.forEach(e=>{e.init&&e.init(this)})}if(this.format=this.options.interpolation.format,t||(t=of),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&"dev"!==e[0]&&(this.options.lng=e[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(e=>{this[e]=(...t)=>this.store[e](...t)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(e=>{this[e]=(...t)=>(this.store[e](...t),this)});let r=nj(),i=()=>{let e=(e,n)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),r.resolve(n),t(e,n)};if((this.languages||this.isLanguageChangingTo)&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initAsync?i():setTimeout(i,0),r}loadResources(e,t=of){let n=t,o=nI(e)?e:this.language;if("function"==typeof e&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if(o?.toLowerCase()==="cimode"&&(!this.options.preload||0===this.options.preload.length))return n();let e=[],t=t=>{t&&"cimode"!==t&&this.services.languageUtils.toResolveHierarchy(t).forEach(t=>{"cimode"!==t&&(e.includes(t)||e.push(t))})};o?t(o):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(e=>t(e)),this.options.preload?.forEach?.(e=>t(e)),this.services.backendConnector.load(e,this.options.ns,e=>{e||this.resolvedLanguage||!this.language||this.setResolvedLanguage(this.language),n(e)})}else n(null)}reloadResources(e,t,n){let o=nj();return"function"==typeof e&&(n=e,e=void 0),"function"==typeof t&&(n=t,t=void 0),e||(e=this.languages),t||(t=this.options.ns),n||(n=of),this.services.backendConnector.reload(e,t,e=>{o.resolve(),n(e)}),o}use(e){if(!e)throw Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&n3.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}setResolvedLanguage(e){if(e&&this.languages&&!["cimode","dev"].includes(e)){for(let e=0;e<this.languages.length;e++){let t=this.languages[e];if(!["cimode","dev"].includes(t)&&this.store.hasLanguageSomeTranslations(t)){this.resolvedLanguage=t;break}}!this.resolvedLanguage&&!this.languages.includes(e)&&this.store.hasLanguageSomeTranslations(e)&&(this.resolvedLanguage=e,this.languages.unshift(e))}}changeLanguage(e,t){this.isLanguageChangingTo=e;let n=nj();this.emit("languageChanging",e);let o=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},r=(r,i)=>{i?this.isLanguageChangingTo===e&&(o(i),this.translator.changeLanguage(i),this.isLanguageChangingTo=void 0,this.emit("languageChanged",i),this.logger.log("languageChanged",i)):this.isLanguageChangingTo=void 0,n.resolve((...e)=>this.t(...e)),t&&t(r,(...e)=>this.t(...e))},i=t=>{e||t||!this.services.languageDetector||(t=[]);let n=nI(t)?t:t&&t[0],i=this.store.hasLanguageSomeTranslations(n)?n:this.services.languageUtils.getBestMatchFromCodes(nI(t)?[t]:t);i&&(this.language||o(i),this.translator.language||this.translator.changeLanguage(i),this.services.languageDetector?.cacheUserLanguage?.(i)),this.loadResources(i,e=>{r(e,i)})};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(i):this.services.languageDetector.detect(i):i(e):i(this.services.languageDetector.detect()),n}getFixedT(e,t,n,o){let r=o?.scopeNs,i=(e,t,...o)=>{let a,s;(a="object"!=typeof t?this.options.overloadTranslationOptionHandler([e,t].concat(o)):{...t}).lng=a.lng||i.lng,a.lngs=a.lngs||i.lngs;let d=void 0!==a.ns&&null!==a.ns;a.ns=a.ns||i.ns,""!==a.keyPrefix&&(a.keyPrefix=a.keyPrefix||n||i.keyPrefix);let c={...this.options,...a};Array.isArray(r)&&!d&&(c.ns=r),"function"==typeof a.keyPrefix&&(a.keyPrefix=n8(a.keyPrefix,c));let l=this.options.keySeparator||".";return a.keyPrefix&&Array.isArray(e)?s=e.map(e=>("function"==typeof e&&(e=n8(e,c)),`${a.keyPrefix}${l}${e}`)):("function"==typeof e&&(e=n8(e,c)),s=a.keyPrefix?`${a.keyPrefix}${l}${e}`:e),this.t(s,a)};return nI(e)?i.lng=e:i.lngs=e,i.ns=t,i.keyPrefix=n,i}t(...e){return this.translator?.translate(...e)}exists(...e){return this.translator?.exists(...e)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e,t={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;let n=t.lng||this.resolvedLanguage||this.languages[0],o=!!this.options&&this.options.fallbackLng,r=this.languages[this.languages.length-1];if("cimode"===n.toLowerCase())return!0;let i=(e,t)=>{let n=this.services.backendConnector.state[`${e}|${t}`];return -1===n||0===n||2===n};if(t.precheck){let e=t.precheck(this,i);if(void 0!==e)return e}return!!(this.hasResourceBundle(n,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||i(n,e)&&(!o||i(r,e)))}loadNamespaces(e,t){let n=nj();return this.options.ns?(nI(e)&&(e=[e]),e.forEach(e=>{this.options.ns.includes(e)||this.options.ns.push(e)}),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}loadLanguages(e,t){let n=nj();nI(e)&&(e=[e]);let o=this.options.preload||[],r=e.filter(e=>!o.includes(e)&&this.services.languageUtils.isSupportedCode(e));return r.length?(this.options.preload=o.concat(r),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!e)return"rtl";try{let t=new Intl.Locale(e);if(t&&t.getTextInfo){let e=t.getTextInfo();if(e&&e.direction)return e.direction}}catch(e){}let t=this.services?.languageUtils||new oe(om());return e.toLowerCase().indexOf("-latn")>1?"ltr":["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].includes(t.getLanguagePartFromCode(e))||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(e={},t){let n=new ob(e,t);return n.createInstance=ob.createInstance,n}cloneInstance(e={},t=of){let n=e.forkResourceStore;n&&delete e.forkResourceStore;let o={...this.options,...e,isClone:!0},r=new ob(o);if((void 0!==e.debug||void 0!==e.prefix)&&(r.logger=r.logger.clone(e)),["store","services","language"].forEach(e=>{r[e]=this[e]}),r.services={...this.services},r.services.utils={hasLoadedNamespace:r.hasLoadedNamespace.bind(r)},n&&(r.store=new n5(Object.keys(this.store.data).reduce((e,t)=>(e[t]={...this.store.data[t]},e[t]=Object.keys(e[t]).reduce((n,o)=>(n[o]={...e[t][o]},n),e[t]),e),{}),o),r.services.resourceStore=r.store),e.interpolation){let t={...om().interpolation,...this.options.interpolation,...e.interpolation},n={...o,interpolation:t};r.services.interpolator=new oa(n)}return r.translator=new n9(r.services,o),r.translator.on("*",(e,...t)=>{r.emit(e,...t)}),r.init(o,t),r.translator.options=o,r.translator.backendConnector.services.utils={hasLoadedNamespace:r.hasLoadedNamespace.bind(r)},r}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}let oh=ob.createInstance();oh.createInstance,oh.dir,oh.init,oh.loadResources,oh.reloadResources,oh.use,oh.changeLanguage,oh.getFixedT,oh.t,oh.exists,oh.setDefaultNamespace,oh.hasLoadedNamespace,oh.loadNamespaces,oh.loadLanguages;var op=n(4867),o_=n.n(op);n(3472);class oF{get resolve(){return this._resolve}get reject(){return this._reject}get promise(){return this._promise}constructor(){this._promise=new Promise((e,t)=>{this._resolve=e,this._reject=t}),Object.freeze(this)}}function og(){return"function"==typeof crypto.randomUUID?crypto.randomUUID():"10000000-1000-4000-8000-100000000000".replace(/[018]/g,e=>(e^crypto.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16))}class oy{constructor(e){e&&Object.assign(this,e)}matches(e){var t,n,o,r,i,a,s;if((null==(t=this.ids)?void 0:t.length)&&(!e.id||!this.ids.includes(e.id))||(null==(n=this.types)?void 0:n.length)&&(!e.type||!this.types.includes(e.type))||(null==(o=this.realm)?void 0:o.name)&&e.realm!==this.realm.name||(null==(r=this.parents)?void 0:r.length)&&!this.parents.some(t=>!t.id||e.parentId===t.id))return!1;if(null==(i=this.paths)?void 0:i.length){let t=null!=(a=e.path)?a:[];if(!this.paths.some(e=>{var n;return(null!=(n=e.path)?n:[]).every((e,n)=>t[n]===e)}))return!1}return(null==(s=this.names)||!s.length||!!this.names.every(t=>oy._evalValuePredicate(e.name,t)))&&(!this.attributes||oy._evalGroup(e,this.attributes))}static getUnsupportedFields(e){return Object.keys(e).filter(e=>!oy._SUPPORTED_FIELDS.has(e))}collectAttributeNames(){return this.attributes?oy._collectNames(this.attributes):[]}static _evalValuePredicate(e,t){var n;switch(t.predicateType){case"string":{let o;if(null==e)return!1;let r=!1!==t.caseSensitive?String(e):String(e).toLowerCase(),i=!1!==t.caseSensitive?t.value:null==(n=t.value)?void 0:n.toLowerCase();switch(t.match){case"BEGIN":o=r.startsWith(i);break;case"END":o=r.endsWith(i);break;case"CONTAINS":o=r.includes(i);break;default:o=r===i}return t.negate?!o:o}case"boolean":return e===t.value;case"number":{let n;if("number"!=typeof e)return!1;switch(t.operator){case"GREATER_THAN":n=e>t.value;break;case"GREATER_EQUALS":n=e>=t.value;break;case"LESS_THAN":n=e<t.value;break;case"LESS_EQUALS":n=e<=t.value;break;case"BETWEEN":n=e>=t.value&&e<=t.rangeValue;break;default:n=e===t.value}return t.negate?!n:n}}return!1}static _evalPredicate(e,t){var n,o;let r=null==(n=t.name)?void 0:n.value;if(!r)return!0;let i=null==(o=e.attributes)?void 0:o[r];if(!i)return!!t.negated;let a=!t.value||oy._evalValuePredicate(i.value,t.value);return t.negated?!a:a}static _evalGroup(e,t){var n,o,r;let i=null!=(n=t.operator)?n:"AND",a=[...(null!=(o=t.items)?o:[]).map(t=>oy._evalPredicate(e,t)),...(null!=(r=t.groups)?r:[]).map(t=>oy._evalGroup(e,t))];return!a.length||("OR"===i?a.some(Boolean):a.every(Boolean))}static _collectNames(e){var t,n;return[...(null!=(t=e.items)?t:[]).map(e=>{var t;return null==(t=e.name)?void 0:t.value}).filter(e=>!!e),...(null!=(n=e.groups)?n:[]).flatMap(e=>oy._collectNames(e))]}}oy._SUPPORTED_FIELDS=new Set(["ids","types","names","parents","paths","realm","attributes"]);var ov=function(e,t,n,o){return new(n||(n=Promise))(function(r,i){function a(e){try{d(o.next(e))}catch(e){i(e)}}function s(e){try{d(o.throw(e))}catch(e){i(e)}}function d(e){var t;e.done?r(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(a,s)}d((o=o.apply(e,t||[])).next())})};let ow=n(4461);class ok{constructor(e,t,n){this._autoEnable=!1,this._initialised=!1,this._initialiseInProgress=!1,this._pendingProviderPromises={},this._providerMessageListeners={},this._pendingProviderEnables=[],this._registrationTimer=null,this._realm=e,this._autoEnable=t,this._enableCompleteCallback=n,window.OpenRemoteConsole=this;let o=new URLSearchParams(window.location.search),r=o.get("consoleName"),i=o.get("consoleVersion"),a=o.get("consolePlatform"),s=o.get("consoleProviders"),d=o.get("consoleAutoEnable"),c=s&&s.length>0?s.split(" "):["push"];this._pendingProviderEnables=c;let l=ok._createConsoleRegistration(),m=window.localStorage.getItem(this._storageKey);if(m)try{let e=JSON.parse(m);e.id&&(l.id=e.id),e.name&&(l.name=e.name),e.providers&&(l.providers=e.providers),e.apps&&(l.apps=e.apps)}catch(e){console.error("Failed to deserialise console registration")}let u=l.providers;for(let e of(l.providers={},c)){let t=u&&u.hasOwnProperty(e)?u[e]:{enabled:!1,disabled:!1};l.providers[e]=t}let f=ss.getAppName();f.length>0&&0>l.apps.indexOf(f)&&l.apps.push(f),this._registration=l,r&&(l.name=r),i&&(l.version=i),a&&(l.platform=a),d&&(this._autoEnable="TRUE"===d||"true"===d)}get registration(){return this._registration}get autoEnable(){return this._autoEnable}get pendingProviderEnables(){return this._pendingProviderEnables.slice(0)}get shellApple(){let e=navigator.userAgentData&&navigator.userAgentData.platform?navigator.userAgentData.platform:navigator.platform;return e&&("iP"===e.substring(0,2)||"Mac"===e.substring(0,3))&&window.webkit&&window.webkit.messageHandlers}get shellAndroid(){return!!window.MobileInterface}get isMobile(){return this.shellApple||this.shellAndroid}initialise(){return ov(this,void 0,void 0,function*(){if(!this._initialised&&!this._initialiseInProgress){console.debug("Console: initialising"),this._initialiseInProgress=!0;try{if(this._registration.providers)for(let e of Object.keys(this._registration.providers))yield this._initialiseProvider(e);this._registration.id||(yield this.sendRegistration()),this._initialised=!0,this._initialiseInProgress=!1,0===this._pendingProviderEnables.length?(yield this.sendRegistration(),this._callCompletedCallback()):this._autoEnable&&(yield this.enableProviders())}catch(e){console.error(e)}finally{this._initialiseInProgress=!1}}})}enableProviders(){return ov(this,void 0,void 0,function*(){if(!this._initialised)throw Error("Console must be initialised before enabling providers");for(let e=this._pendingProviderEnables.length-1;e>-1;e--){let t=this._pendingProviderEnables[e];yield this.enableProvider(t)}})}enableProvider(e,t){return ov(this,void 0,void 0,function*(){if(!this._initialised)throw console.debug("Console must be initialised before disabling providers"),Error("Console must be initialised before enabling providers");if(!this._registration.providers.hasOwnProperty(e))throw console.debug("Invalid console provider '"+e+"'"),Error("Invalid console provider '"+e+"'");console.debug("Console: enabling provider '"+e+"'");let n={provider:e,action:"PROVIDER_ENABLE",consoleId:this._registration.id,data:t},o=yield this.sendProviderMessage(n,!0);this._registration.providers[e].hasPermission=o.hasPermission,this._registration.providers[e].success=o.success,this._registration.providers[e].enabled=o.success,this._registration.providers[e].data=o.data;let r=this._pendingProviderEnables.indexOf(e);return r>=0&&(this._pendingProviderEnables.splice(r,1),0===this._pendingProviderEnables.length&&(this.sendRegistration().catch(()=>void 0),this._callCompletedCallback())),o})}disableProvider(e){return ov(this,void 0,void 0,function*(){if(!this._initialised)throw console.debug("Console must be initialised before disabling providers"),Error("Console must be initialised before disabling providers");if(!this._registration.providers.hasOwnProperty(e))throw console.debug("Invalid console provider '"+e+"'"),Error("Invalid console provider '"+e+"'");console.debug("Console: disabling provider '"+e+"'");let t=yield this.sendProviderMessage({provider:e,action:"PROVIDER_DISABLE"},!0);return this._registration.providers[e].disabled=!0,this._registration.providers[e].enabled=!1,t})}getProvider(e){return this._registration&&this._registration.providers?this._registration.providers[e]:void 0}sendProviderMessage(e,t){return ov(this,void 0,void 0,function*(){if("storage"!==e.provider&&!this._registration.providers.hasOwnProperty(e.provider))throw console.debug("Invalid console provider '"+e.provider+"'"),Error("Invalid console provider '"+e.provider+"'");if(!t)return void this._doSendProviderMessage(e);let n=e.provider+e.action;if(this._pendingProviderPromises[n])throw Error("Message already pending for provider '"+e.provider+"' with action '"+e.action+"'");let o=new oF,r=()=>{delete this._pendingProviderPromises[n],o.reject("No response from provider")};return this._pendingProviderPromises[n]=[o,window.setTimeout(r,5e3)],this._doSendProviderMessage(e),o.promise})}sendRegistration(){return this._registrationTimer&&(window.clearTimeout(this._registrationTimer),this._registrationTimer=null),new Promise((e,t)=>{this._registrationTimer=window.setTimeout(()=>ov(this,void 0,void 0,function*(){this._registrationTimer=null,console.debug("Console: updating registration");try{yield this._sendRegistration(!0),e()}catch(e){console.error("Failed to register console",e),t(e)}}))})}_sendRegistration(e){return ov(this,void 0,void 0,function*(){this._normaliseRegistration();let t=!!this._registration.id;try{let e=yield ss.rest.api.ConsoleResource.register(this._registration);if(200!==e.status)throw Error("Failed to register console");this._registration=e.data,console.debug("Console: registration successful"),console.debug("Console: updating locally stored registration"),window.localStorage.setItem(this._storageKey,JSON.stringify(this._registration))}catch(n){if(e&&t&&ok._isStaleRegistrationResponse(n)){console.warn("Console registration ID is stale or cannot be claimed; creating a new console registration"),window.localStorage.removeItem(this._storageKey),delete this._registration.id,yield this._sendRegistration(!1);return}throw n}})}_normaliseRegistration(){this._registration.name||(this._registration.name="Console"),this._registration.platform||(this._registration.platform="N/A"),this._registration.version||(this._registration.version="N/A"),this._registration.providers||(this._registration.providers={})}get _storageKey(){return"OpenRemoteConsole:"+this._realm}static _isStaleRegistrationResponse(e){let t=e&&e.response?e.response.status:void 0;return 403===t||409===t}storeData(e,t){this.sendProviderMessage({provider:"storage",action:"STORE",key:e,value:t},!1)}retrieveData(e){return ov(this,void 0,void 0,function*(){let t=this.sendProviderMessage({provider:"storage",action:"RETRIEVE",key:e},!0);try{let e=yield Promise.race([t,new Promise((e,t)=>setTimeout(t,2e3))]);if(e&&e.value){let t=e.value;return"null"===t?void 0:t}}catch(e){console.log("Failed to retrieve data from storage provider")}})}addProviderMessageListener(e,t){this._providerMessageListeners[e.provider+e.action]=t}removeProviderMessageListener(e){delete this._providerMessageListeners[e.provider+e.action]}_postNativeShellMessage(e){try{if(this.shellAndroid)return window.MobileInterface.postMessage(JSON.stringify(e));if(this.shellApple)return window.webkit.messageHandlers.int.postMessage(e)}catch(e){console.error("Failed to send shell message towards console",e)}}_doSendGenericMessage(e,t){let n={type:e,data:t};this.isMobile?this._postNativeShellMessage(n):console.warn("Failed to send generic message to console.",n)}_doSendProviderMessage(e){if(this.isMobile)this._postNativeShellMessage({type:"provider",data:e});else{if(!e.provider||!e.action)return;switch(e.provider.trim().toUpperCase()){case"PUSH":switch(e.action.trim().toUpperCase()){case"PROVIDER_INIT":this._handleProviderResponse(JSON.stringify({action:"PROVIDER_INIT",provider:"push",version:"web",enabled:!0,disabled:!1,hasPermission:!0,requiresPermission:!1,success:!0}));break;case"PROVIDER_ENABLE":this._handleProviderResponse(JSON.stringify({action:"PROVIDER_ENABLE",provider:"push",hasPermission:!0,success:!0}));break;default:throw Error("Unsupported provider '"+e.provider+"' and action '"+e.action+"'")}break;case"STORAGE":switch(e.action){case"PROVIDER_INIT":this._handleProviderResponse(JSON.stringify({action:"PROVIDER_INIT",provider:"storage",version:"1.0.0",disabled:!1,enabled:!0,hasPermission:!0,requiresPermission:!1,success:!0}));break;case"PROVIDER_ENABLE":this._handleProviderResponse(JSON.stringify({action:"PROVIDER_ENABLE",provider:"storage",hasPermission:!0,success:!0}));break;case"STORE":{let t=e.key?e.key.trim():null;if(!t||0===t.length)throw Error("Storage provider 'store' action requires a `key`");null===e.value?window.localStorage.removeItem(t):window.localStorage.setItem(t,JSON.stringify(e.value))}break;case"RETRIEVE":{let t=e.key?e.key.trim():null;if(!t||0===t.length)throw Error("Storage provider 'retrieve' action requires a `key`");let n=window.localStorage.getItem(t);if(null!==n)try{n=JSON.parse(n)}catch(e){}this._handleProviderResponse(JSON.stringify({action:"RETRIEVE",provider:"storage",key:t,value:n}))}break;default:throw Error("Unsupported provider '"+e.provider+"' and action '"+e.action+"'")}break;default:console.error("Unsupported provider: "+e.provider)}}}_handleProviderResponse(e){if(!e)return;let t=JSON.parse(e),n=t.provider,o=t.action,r=this._pendingProviderPromises[n+o];r&&(window.clearTimeout(r[1]),delete this._pendingProviderPromises[n+o],r[0].resolve(t));let i=this._providerMessageListeners[n+o];i&&i(t)}_callCompletedCallback(){let e=this._enableCompleteCallback;this._enableCompleteCallback=null,e&&window.setTimeout(()=>{e()},0)}static _createConsoleRegistration(){return{name:ow.name,version:ow.version,platform:ow.os.toString(),apps:[],model:((ow.manufacturer?ow.manufacturer+" ":"")+(ow.product?ow.product:"")).trim()}}_initialiseProvider(e){return ov(this,void 0,void 0,function*(){let t;console.debug("Console: initialising provider '"+e+"'");try{t=yield this.sendProviderMessage({provider:e,action:"PROVIDER_INIT"},!0),this._registration.providers[e].version=t.version,this._registration.providers[e].requiresPermission=t.requiresPermission,this._registration.providers[e].hasPermission=t.hasPermission,this._registration.providers[e].success=t.success,this._registration.providers[e].enabled=t.enabled,this._registration.providers[e].disabled=t.disabled,this._registration.providers[e].data=t.data}catch(e){console.error(e),t={action:"",disabled:!1,enabled:!1,hasPermission:!1,provider:"",requiresPermission:!1,version:"",success:!1}}if(t.success||(console.debug("Provider initialisation failed: '"+e+"'"),t.disabled=!0,this._registration.providers[e].disabled=!0),t.disabled||t.enabled){let t=this._pendingProviderEnables.indexOf(e);t>=0&&this._pendingProviderEnables.splice(t,1)}})}}function oM(e,t){return function(){return e.apply(t,arguments)}}let{toString:oE}=Object.prototype,{getPrototypeOf:oL}=Object,{iterator:oD,toStringTag:oA}=Symbol,oT=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),oC=e=>"string"==typeof e&&("__proto__"===e||"constructor"===e||"prototype"===e),oS=(e,t,n)=>e===Object.prototype||!n&&null===t,ox=(e,t)=>{let n=e,o=[];for(;null!=n&&-1===o.indexOf(n);){o.push(n);let r=oL(n);if(oS(n,r,n===e))break;if(oT(n,t))return!0;n=r}return!1},oY=(i=Object.create(null),e=>{let t=oE.call(e);return i[t]||(i[t]=t.slice(8,-1).toLowerCase())}),oO=e=>(e=e.toLowerCase(),t=>oY(t)===e),oB=e=>t=>typeof t===e,{isArray:oR}=Array,oP=oB("undefined");function oN(e){return null!==e&&!oP(e)&&null!==e.constructor&&!oP(e.constructor)&&oH(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}let oI=oO("ArrayBuffer"),oj=oB("string"),oH=oB("function"),oU=oB("number"),oW=e=>null!==e&&"object"==typeof e,oz=e=>{if(!oW(e))return!1;let t=oL(e);return(null===t||t===Object.prototype||null===oL(t))&&!ox(e,oA)&&!ox(e,oD)},o$=oO("Date"),oG=oO("File"),oq=oO("Blob"),oV=oO("FileList"),oJ=oO("Set"),oK="u">typeof globalThis?globalThis:"u">typeof self?self:"u">typeof window?window:"u">typeof global?global:{},oX=void 0!==oK.FormData?oK.FormData:void 0,oQ=oO("URLSearchParams"),[oZ,o0,o1,o2]=["ReadableStream","Request","Response","Headers"].map(oO);function o4(e,t,{allOwnKeys:n=!1}={}){let o,r;if(null!=e)if("object"!=typeof e&&(e=[e]),oR(e))for(o=0,r=e.length;o<r;o++)t.call(null,e[o],o,e);else{let r;if(oN(e))return;let i=n?Object.getOwnPropertyNames(e):Object.keys(e),a=i.length;for(o=0;o<a;o++)r=i[o],t.call(null,e[r],r,e)}}function o5(e,t){let n;if(oN(e))return null;t=t.toLowerCase();let o=Object.keys(e),r=o.length;for(;r-- >0;)if(t===(n=o[r]).toLowerCase())return n;return null}let o3="u">typeof globalThis?globalThis:"u">typeof self?self:"u">typeof window?window:global,o6=e=>!oP(e)&&e!==o3,o8=(a="u">typeof Uint8Array&&oL(Uint8Array),e=>a&&e instanceof a),o7=oO("HTMLFormElement"),{propertyIsEnumerable:o9}=Object.prototype,re=oO("RegExp"),rt=(e,t)=>{let n=Object.getOwnPropertyDescriptors(e),o={};o4(n,(n,r)=>{let i;!1!==(i=t(n,r,e))&&(o[r]=i||n)}),Object.defineProperties(e,o)},rn=oO("AsyncFunction"),ro=(c="function"==typeof setImmediate,l=oH(o3.postMessage),c?setImmediate:l?(m=`axios@${Math.random()}`,u=[],o3.addEventListener("message",({source:e,data:t})=>{e===o3&&t===m&&u.length&&u.shift()()},!1),e=>{u.push(e),o3.postMessage(m,"*")}):e=>setTimeout(e)),rr="u">typeof queueMicrotask?queueMicrotask.bind(o3):"u">typeof process&&process.nextTick||ro,ri=e=>null!=e&&oH(e[oD]),ra={isArray:oR,isArrayBuffer:oI,isBuffer:oN,isFormData:e=>{if(!e)return!1;if(oX&&e instanceof oX)return!0;let t=oL(e);if(!t||t===Object.prototype||!oH(e.append))return!1;let n=oY(e);return"formdata"===n||"object"===n&&oH(e.toString)&&"[object FormData]"===e.toString()},isArrayBufferView:function(e){return"u">typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&oI(e.buffer)},isString:oj,isNumber:oU,isBoolean:e=>!0===e||!1===e,isObject:oW,isPlainObject:oz,isEmptyObject:e=>{if(!oW(e)||oN(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:oZ,isRequest:o0,isResponse:o1,isHeaders:o2,isUndefined:oP,isDate:o$,isFile:oG,isReactNativeBlob:e=>!!(e&&void 0!==e.uri),isReactNative:e=>e&&void 0!==e.getParts,isBlob:oq,isRegExp:re,isFunction:oH,isStream:e=>oW(e)&&oH(e.pipe),isURLSearchParams:oQ,isTypedArray:o8,isFileList:oV,forEach:o4,merge:function e(...t){let{caseless:n,skipUndefined:o}=o6(this)&&this||{},r={},i=(t,i)=>{if("__proto__"===i||"constructor"===i||"prototype"===i)return;let a=n&&"string"==typeof i&&o5(r,i)||i,s=oT(r,a)?r[a]:void 0;oz(s)&&oz(t)?r[a]=e(s,t):oz(t)?r[a]=e({},t):oR(t)?r[a]=t.slice():o&&oP(t)||(r[a]=t)};for(let e=0,n=t.length;e<n;e++){let n=t[e];if(!n||oN(n)||(o4(n,i),"object"!=typeof n||oR(n)))continue;let o=Object.getOwnPropertySymbols(n);for(let e=0;e<o.length;e++){let t=o[e];o9.call(n,t)&&i(n[t],t)}}return r},extend:(e,t,n,{allOwnKeys:o}={})=>(o4(t,(t,o)=>{n&&oH(t)?Object.defineProperty(e,o,{__proto__:null,value:oM(t,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,o,{__proto__:null,value:t,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:o}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,o)=>{e.prototype=Object.create(t.prototype,o),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,o)=>{let r,i,a,s={};if(t=t||{},null==e)return t;do{for(i=(r=Object.getOwnPropertyNames(e)).length;i-- >0;)a=r[i],(!o||o(a,e,t))&&!s[a]&&(t[a]=e[a],s[a]=!0);e=!1!==n&&oL(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:oY,kindOfTest:oO,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;let o=e.indexOf(t,n);return -1!==o&&o===n},toArray:e=>{if(!e)return null;if(oR(e))return e;let t=e.length;if(!oU(t))return null;let n=Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{let n,o=(e&&e[oD]).call(e);for(;(n=o.next())&&!n.done;){let o=n.value;t.call(e,o[0],o[1])}},matchAll:(e,t)=>{let n,o=[];for(;null!==(n=e.exec(t));)o.push(n);return o},isHTMLForm:o7,hasOwnProperty:oT,hasOwnProp:oT,hasOwnInPrototypeChain:ox,getSafeProp:(e,t)=>null!=e&&ox(e,t)?e[t]:void 0,toSafeFlatObject:e=>{if(null==e||"object"!=typeof e&&"function"!=typeof e)return e;let t=oL(e);if(null===t&&(e=>{if(!Object.isExtensible(e))return!1;let t=Object.getOwnPropertyNames(e);return Object.getOwnPropertySymbols&&t.push(...Object.getOwnPropertySymbols(e)),t.every(t=>{if(oC(t))return!1;let n=Object.getOwnPropertyDescriptor(e,t);return!!n&&n.configurable&&!0===n.writable})})(e))return e;let n=Object.create(null),o=Object.create(null),r=[],i=e;for(;null!=i&&-1===r.indexOf(i);){r.push(i);let a=i===e?t:oL(i);if(oS(i,a,i===e))break;let s=Object.getOwnPropertyNames(i);for(let t of(Object.getOwnPropertySymbols&&s.push(...Object.getOwnPropertySymbols(i)),s))!oC(t)&&(oT(o,t)||(n[t]=e[t],o[t]=!0));i=a}return n},reduceDescriptors:rt,freezeMethods:e=>{rt(e,(t,n)=>{if(oH(e)&&["arguments","caller","callee"].includes(n))return!1;if(oH(e[n])){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},toObjectSet:(e,t)=>{let n={};return(oR(e)?e:String(e).split(t)).forEach(e=>{n[e]=!0}),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e*=1)?e:t,findKey:o5,global:o3,isContextDefined:o6,isSpecCompliantForm:function(e){return!!(e&&oH(e.append)&&"FormData"===e[oA]&&e[oD])},toJSONObject:e=>{let t=new WeakSet,n=e=>{if(oW(e)){if(t.has(e))return;if(oN(e))return e;if(!("toJSON"in e)){let o;if(t.add(e),oJ(e))for(let t of(o=[],e)){let e=n(t);oP(e)||o.push(e)}else o=oR(e)?[]:{},o4(e,(e,t)=>{let r=n(e);oP(r)||(o[t]=r)});return t.delete(e),o}}return e};return n(e)},isAsyncFn:rn,isThenable:e=>e&&(oW(e)||oH(e))&&oH(e.then)&&oH(e.catch),setImmediate:ro,asap:rr,isIterable:ri,isSafeIterable:e=>null!=e&&ox(e,oD)&&ri(e)},rs=ra.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),rd=RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),rc=RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function rl(e,t){return ra.isArray(e)?e.map(e=>rl(e,t)):function(e){let t=0,n=e.length;for(;t<n;){let n=e.charCodeAt(t);if(9!==n&&32!==n)break;t+=1}for(;n>t;){let t=e.charCodeAt(n-1);if(9!==t&&32!==t)break;n-=1}return 0===t&&n===e.length?e:e.slice(t,n)}(String(e).replace(t,""))}function rm(e){let t=Object.create(null);return ra.forEach(e.toJSON(),(e,n)=>{t[n]=rl(e,rc)}),t}let ru=Symbol("internals");function rf(e){return e&&String(e).trim().toLowerCase()}function rb(e){return!1===e||null==e?e:ra.isArray(e)?e.map(rb):rl(String(e),rd)}let rh=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;function rp(e){let t=0,n=e.length;for(;t<n;){let n=e.charCodeAt(t);if(9!==n&&32!==n)break;t+=1}for(;n>t;){let t=e.charCodeAt(n-1);if(9!==t&&32!==t)break;n-=1}return 0===t&&n===e.length?e:e.slice(t,n)}function r_(e,t,n,o,r){if(ra.isFunction(o))return o.call(this,t,n);if(r&&(t=n),ra.isString(t)){if(ra.isString(o))return -1!==t.indexOf(o);if(ra.isRegExp(o))return o.test(t)}}class rF{constructor(e){e&&this.set(e)}set(e,t,n){let o=this;function r(e,t,n){let r=rf(t);if(!r)return;let i=ra.findKey(o,r);i&&void 0!==o[i]&&!0!==n&&(void 0!==n||!1===o[i])||(o[i||t]=rb(e))}let i=(e,t)=>ra.forEach(e,(e,n)=>r(e,n,t));if(ra.isPlainObject(e)||e instanceof this.constructor)i(e,t);else{let o;if(ra.isString(e)&&(e=e.trim())&&(o=e,!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(o.trim()))){var a;let n,o,r,s;i((s={},(a=e)&&a.split("\n").forEach(function(e){r=e.indexOf(":"),n=e.substring(0,r).trim().toLowerCase(),o=e.substring(r+1).trim();let t=ra.hasOwnProp(s,n);!n||t&&ra.hasOwnProp(rs,n)||("set-cookie"===n?t?s[n].push(o):s[n]=[o]:s[n]=t?s[n]+", "+o:o)}),s),t)}else if(ra.isObject(e)&&ra.isSafeIterable(e)){let n=Object.create(null),o,r;for(let t of e){if(!ra.isArray(t))throw TypeError("Object iterator must return a key-value pair");r=t[0],ra.hasOwnProp(n,r)?(o=n[r],n[r]=ra.isArray(o)?[...o,t[1]]:[o,t[1]]):n[r]=t[1]}i(n,t)}else null!=e&&r(t,e,n)}return this}get(e,t){if(e=rf(e)){let n=ra.findKey(this,e);if(n){let e=this[n];if(!t)return e;if(!0===t){let t,n=Object.create(null),o=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;for(;t=o.exec(e);)n[t[1]]=t[2];return n}if(ra.isFunction(t))return t.call(this,e,n);if(ra.isRegExp(t))return t.exec(e);throw TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=rf(e)){let n=ra.findKey(this,e);return!!(n&&void 0!==this[n]&&(!t||r_(this,this[n],n,t)))}return!1}delete(e,t){let n=this,o=!1;function r(e){if(e=rf(e)){let r=ra.findKey(n,e);r&&(!t||r_(n,n[r],r,t))&&(delete n[r],o=!0)}}return ra.isArray(e)?e.forEach(r):r(e),o}clear(e){let t=Object.keys(this),n=t.length,o=!1;for(;n--;){let r=t[n];(!e||r_(this,this[r],r,e,!0))&&(delete this[r],o=!0)}return o}normalize(e){let t=this,n={};return ra.forEach(this,(o,r)=>{let i=ra.findKey(n,r);if(i){t[i]=rb(o),delete t[r];return}let a=e?r.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n):String(r).trim();a!==r&&delete t[r],t[a]=rb(o),n[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return ra.forEach(this,(n,o)=>{null!=n&&!1!==n&&(t[o]=e&&ra.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){let e=this.get("set-cookie");return ra.isArray(e)?e:null==e||!1===e?[]:[e]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static parseParameters(e){return function(e){let t=Object.create(null),n=String(e),o=0,r=!1,i=!1;function a(e){let r=rp(n.slice(o,e)),i=r.indexOf("=");if(i<1)return;let a=rp(r.slice(0,i));if(!rh.test(a))return;let s=a.toLowerCase();if("__proto__"===s||"constructor"===s||"prototype"===s)return;let d=rp(r.slice(i+1));t[s]=function(e){let t=e.length-1;if(t<1||34!==e.charCodeAt(0)||34!==e.charCodeAt(t))return e;let n="";for(let o=1;o<t;o++){let r=e.charCodeAt(o);if(34===r||92===r&&(o+=1)>=t)return e;n+=e[o]}return n}(d)}for(let e=0;e<n.length;e++){let t=n.charCodeAt(e);r?i?i=!1:92===t?i=!0:34===t&&(r=!1):34===t?r=!0:(44===t||59===t)&&(a(e),o=e+1)}return a(n.length),t}(e)}static concat(e,...t){let n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){let t=(this[ru]=this[ru]={accessors:{}}).accessors,n=this.prototype;function o(e){let o=rf(e);if(!t[o]){let r;r=ra.toCamelCase(" "+e),["get","set","has"].forEach(t=>{Object.defineProperty(n,t+r,{__proto__:null,value:function(n,o,r){return this[t].call(this,e,n,o,r)},configurable:!0})}),t[o]=!0}}return ra.isArray(e)?e.forEach(o):o(e),this}}rF.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),ra.reduceDescriptors(rF.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),ra.freezeMethods(rF);let rg="[REDACTED ****]";function ry(e){try{return String(e)}catch(e){return""}}class rv extends Error{static from(e,t,n,o,r,i){let a=e.message;!a&&ra.isArray(e.errors)&&e.errors.length&&(a=e.errors.map(e=>{try{return e&&e.message?ry(e.message):ry(e)}catch(e){return""}}).filter(Boolean).join("; ")||e.name||"AggregateError");let s=new rv(a,t||e.code,n,o,r);return Object.defineProperty(s,"cause",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),s.name=e.name,null!=e.status&&null==s.status&&(s.status=e.status),i&&Object.assign(s,i),s}constructor(e,t,n,o,r){super(e),Object.defineProperty(this,"message",{__proto__:null,value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,t&&(this.code=t),n&&(this.config=n),o&&(this.request=o),r&&(this.response=r,this.status=r.status)}toJSON(){let e,t,n,o=this.config,r=o&&ra.hasOwnProp(o,"redact")?o.redact:void 0,i=ra.isArray(r)&&r.length>0?(e=new Set(r.map(e=>String(e).toLowerCase())),t=[],(n=o=>{let r;if(null===o||"object"!=typeof o||ra.isBuffer(o))return o;if(-1===t.indexOf(o)){if(o instanceof rF&&(o=o.toJSON()),t.push(o),ra.isArray(o))r=[],o.forEach((e,t)=>{let o=n(e);ra.isUndefined(o)||(r[t]=o)});else{if(!ra.isPlainObject(o)&&function(e){if(ra.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(ra.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}(o))return t.pop(),o;for(let[t,i]of(r=Object.create(null),Object.entries(o))){let o=e.has(t.toLowerCase())?rg:n(i);ra.isUndefined(o)||(r[t]=o)}}return t.pop(),r}})(o)):ra.toJSONObject(o);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:i,code:this.code,status:this.status}}}rv.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",rv.ERR_BAD_OPTION="ERR_BAD_OPTION",rv.ECONNABORTED="ECONNABORTED",rv.ETIMEDOUT="ETIMEDOUT",rv.ECONNREFUSED="ECONNREFUSED",rv.ERR_NETWORK="ERR_NETWORK",rv.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",rv.ERR_DEPRECATED="ERR_DEPRECATED",rv.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",rv.ERR_BAD_REQUEST="ERR_BAD_REQUEST",rv.ERR_CANCELED="ERR_CANCELED",rv.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",rv.ERR_INVALID_URL="ERR_INVALID_URL",rv.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";let rw=rv;function rk(e){return ra.isPlainObject(e)||ra.isArray(e)}function rM(e){return ra.endsWith(e,"[]")?e.slice(0,-2):e}function rE(e,t,n){return e?e.concat(t).map(function(e,t){return e=rM(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}let rL=ra.toFlatObject(ra,{},null,function(e){return/^is[A-Z]/.test(e)}),rD=function(e,t,n){if(!ra.isObject(e))throw TypeError("target must be an object");t=t||new FormData;let o=(e,t)=>{let o=ra.getSafeProp(n,e);return ra.isUndefined(o)?t:o},r=o("metaTokens",!0),i=o("visitor")||b,a=o("dots",!1),s=o("indexes",!1),d=o("Blob")||"u">typeof Blob&&Blob,c=o("maxDepth",100),l=d&&ra.isSpecCompliantForm(t),m=[];if(!ra.isFunction(i))throw TypeError("visitor must be a function");function u(e){if(null===e)return"";if(ra.isDate(e))return e.toISOString();if(ra.isBoolean(e))return e.toString();if(!l&&ra.isBlob(e))throw new rw("Blob is not supported. Use a Buffer instead.");if(ra.isArrayBuffer(e)||ra.isTypedArray(e)){if(l&&"function"==typeof d)return new d([e]);throw new rw("Blob is not supported. Use a Buffer instead.",rw.ERR_NOT_SUPPORT)}return e}function f(e){if(e>c)throw new rw("Object is too deeply nested ("+e+" levels). Max depth: "+c,rw.ERR_FORM_DATA_DEPTH_EXCEEDED)}function b(e,n,o){let i=e;if(ra.isReactNative(t)&&ra.isReactNativeBlob(e))return t.append(rE(o,n,a),u(e)),!1;if(e&&!o&&"object"==typeof e)if(ra.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=function(e){if(1/0===c)return JSON.stringify(e);let t=[];return JSON.stringify(e,function(e,n){if(!ra.isObject(n))return n;for(;t.length&&t[t.length-1]!==this;)t.pop();return t.push(n),f(1+t.length-1),n})}(e);else{var d;if(ra.isArray(e)&&(d=e,ra.isArray(d)&&!d.some(rk))||(ra.isFileList(e)||ra.endsWith(n,"[]"))&&(i=ra.toArray(e)))return n=rM(n),i.forEach(function(e,o){ra.isUndefined(e)||null===e||t.append(!0===s?rE([n],o,a):null===s?n:n+"[]",u(e))}),!1}return!!rk(e)||(t.append(rE(o,n,a),u(e)),!1)}let h=Object.assign(rL,{defaultVisitor:b,convertValue:u,isVisitable:rk});if(!ra.isObject(e))throw TypeError("data must be an object");return!function e(n,o,r=0){if(!ra.isUndefined(n)){if(f(r),-1!==m.indexOf(n))throw Error("Circular reference detected in "+o.join("."));m.push(n),ra.forEach(n,function(n,a){!0===(!(ra.isUndefined(n)||null===n)&&i.call(t,n,ra.isString(a)?a.trim():a,o,h))&&e(n,o?o.concat(a):[a],r+1)}),m.pop()}}(e),t};function rA(e){let t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(e){return t[e]})}function rT(e,t){this._pairs=[],e&&rD(e,this,t)}let rC=rT.prototype;function rS(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function rx(e,t,n){let o;if(!t)return e;e=e||"";let r=ra.isFunction(n)?{serialize:n}:n,i=ra.getSafeProp(r,"encode")||rS,a=ra.getSafeProp(r,"serialize");if(o=a?a(t,r):ra.isURLSearchParams(t)?t.toString():new rT(t,r).toString(i)){let t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}rC.append=function(e,t){this._pairs.push([e,t])},rC.toString=function(e){let t=e?t=>e.call(this,t,rA):rA;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};let rY=Symbol("internals");function rO(e){return e?e.length:0}function rB(e){if(e)for(;e.length&&null===e[e.length-1];)e.pop()}function rR(e,t){let n=e.handlers,o=rO(n);n!==t.handlersRef?(t.handlersRef=n,t.handlerEntries.clear()):o!==t.handlersLength&&(o?t.handlerEntries.forEach(function(e,o){n[e.index]!==e.handler&&t.handlerEntries.delete(o)}):t.handlerEntries.clear()),t.handlersLength=o}let rP=class{constructor(){this.handlers=[],this[rY]={handlersRef:this.handlers,handlersLength:this.handlers.length,handlerEntries:new Map,iterationDepth:0,nextId:0}}use(e,t,n){let o={fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null},r=this[rY];null==this.handlers&&(this.handlers=[]),rR(this,r);let i=r.nextId++;return this.handlers.push(o),r.handlerEntries.set(i,{handler:o,index:this.handlers.length-1}),r.handlersLength=this.handlers.length,i}eject(e){let t=this[rY];rR(this,t);let n=t.handlerEntries.get(e);if(n){if(t.handlerEntries.delete(e),this.handlers[n.index]!==n.handler)return;this.handlers[n.index]=null,t.iterationDepth||(rB(this.handlers),t.handlersLength=this.handlers.length)}}clear(){this.handlers&&(this.handlers=[],rR(this,this[rY]))}forEach(e){let t=this[rY];rR(this,t),t.iterationDepth++;try{ra.forEach(this.handlers,function(t){null!==t&&e(t)})}finally{--t.iterationDepth||(rR(this,t),rB(this.handlers),t.handlersLength=rO(this.handlers))}}},rN={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},rI="u">typeof URLSearchParams?URLSearchParams:rT,rj="u">typeof FormData?FormData:null,rH="u">typeof Blob?Blob:null,rU="u">typeof window&&"u">typeof document,rW="object"==typeof navigator&&navigator||void 0,rz=rU&&(!rW||0>["ReactNative","NativeScript","NS"].indexOf(rW.product)),r$="u">typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,rG=rU&&window.location.href||"http://localhost",rq={...tC,isBrowser:!0,classes:{URLSearchParams:rI,FormData:rj,Blob:rH},protocols:["http","https","file","blob","url","data"]};function rV(e){if(e>100)throw new rw("FormData field is too deeply nested ("+e+" levels). Max depth: 100",rw.ERR_FORM_DATA_DEPTH_EXCEEDED)}let rJ=function(e){if(ra.isFormData(e)&&ra.isFunction(e.entries)){let t={};return ra.forEachEntry(e,(e,n)=>{!function e(t,n,o,r){rV(r);let i=t[r++];if("__proto__"===i)return!0;let a=Number.isFinite(+i),s=r>=t.length;return(i=!i&&ra.isArray(o)?o.length:i,s)?ra.hasOwnProp(o,i)?o[i]=ra.isArray(o[i])?o[i].concat(n):[o[i],n]:o[i]=n:(ra.hasOwnProp(o,i)&&ra.isObject(o[i])||(o[i]=[]),e(t,n,o[i],r)&&ra.isArray(o[i])&&(o[i]=function(e){let t,n,o={},r=Object.keys(e),i=r.length;for(t=0;t<i;t++)o[n=r[t]]=e[n];return o}(o[i]))),!a}(function(e){let t,n=[],o=/[^.[\]]+|\[([^.[\]]*)]/g;for(;null!==(t=o.exec(e));)rV(n.length),n.push("[]"===t[0]?"":t[1]||t[0]);return n}(e),n,t,0)}),t}return null},rK=Object.freeze(["get","delete","head","options","post","put","patch","purge","link","unlink","query"]),rX=(e,t)=>null!=e&&ra.hasOwnProp(e,t)?e[t]:void 0,rQ={transitional:rN,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){let n,o=t.getContentType()||"",r=o.indexOf("application/json")>-1,i=ra.isObject(e);if(i&&ra.isHTMLForm(e)&&(e=new FormData(e)),ra.isFormData(e))return r?JSON.stringify(rJ(e)):e;if(ra.isArrayBuffer(e)||ra.isBuffer(e)||ra.isStream(e)||ra.isFile(e)||ra.isBlob(e)||ra.isReadableStream(e))return e;if(ra.isArrayBufferView(e))return e.buffer;if(ra.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();if(i){let t=rX(this,"formSerializer");if(o.indexOf("application/x-www-form-urlencoded")>-1)return rD(e,new rq.classes.URLSearchParams,{visitor:function(e,t,n,o){return rq.isNode&&ra.isBuffer(e)?(this.append(t,e.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)},...t}).toString();if((n=ra.isFileList(e))||o.indexOf("multipart/form-data")>-1){let o=rX(this,"env"),r=o&&o.FormData;return rD(n?{"files[]":e}:e,r&&new r,t)}}if(i||r){t.setContentType("application/json",!1);var a=e;if(ra.isString(a))try{return(0,JSON.parse)(a),ra.trim(a)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(a)}return e}],transformResponse:[function(e){let t=rX(this,"transitional")||rQ.transitional,n=t&&t.forcedJSONParsing,o=rX(this,"responseType"),r="json"===o;if(ra.isResponse(e)||ra.isReadableStream(e))return e;if(e&&ra.isString(e)&&(n&&!o||r)){let n=t&&t.silentJSONParsing;try{return JSON.parse(e,rX(this,"parseReviver"))}catch(e){if(!n&&r){if("SyntaxError"===e.name)throw rw.from(e,rw.ERR_BAD_RESPONSE,this,null,rX(this,"response"));throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:rq.classes.FormData,Blob:rq.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};function rZ(e,t){let n=this||rQ,o=t||n,r=rF.from(o.headers),i=o.data;return ra.forEach(e,function(e){i=e.call(n,i,r.normalize(),t?t.status:void 0)}),r.normalize(),i}function r0(e){return!!(e&&e.__CANCEL__)}ra.forEach(rK,e=>{rQ.headers[e]={}});let r1=class extends rw{constructor(e,t,n){super(null==e?"canceled":e,rw.ERR_CANCELED,t,n),this.name="CanceledError",this.__CANCEL__=!0}};function r2(e,t,n){let o=n.config.validateStatus;!n.status||!o||o(n.status)?e(n):t(new rw("Request failed with status code "+n.status,n.status>=400&&n.status<500?rw.ERR_BAD_REQUEST:rw.ERR_BAD_RESPONSE,n.config,n.request,n))}let r4=/[\t\n\r]/g;function r5(e){if("string"!=typeof e)return e;let t=0;for(;t<e.length&&32>=e.charCodeAt(t);)t++;return e.slice(t).replace(r4,"")}function r3(e){let t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||""}let r6=function(e,t){let n,o=Array(e=e||10),r=Array(e),i=0,a=0;return t=void 0!==t?t:1e3,function(s){let d=Date.now(),c=r[a];n||(n=d),o[i]=s,r[i]=d;let l=a,m=0;for(;l!==i;)m+=o[l++],l%=e;if((i=(i+1)%e)===a&&(a=(a+1)%e),d-n<t)return;let u=c&&d-c;return u?Math.round(1e3*m/u):void 0}},r8=function(e,t){let n,o,r=0,i=1e3/t,a=(t,i=Date.now())=>{r=i,n=null,o&&(clearTimeout(o),o=null),e(...t)};return[(...e)=>{let t=Date.now(),s=t-r;s>=i?a(e,t):(n=e,o||(o=setTimeout(()=>{o=null,a(n)},i-s)))},()=>n&&a(n),(...e)=>a(e)]},r7=(e,t,n=3)=>{let o=0,r=r6(50,250);return r8(n=>{if(!n||!ra.isNumber(n.loaded))return;let i=n.loaded,a=n.lengthComputable?n.total:void 0,s=Math.max(0,null!=a?Math.min(i,a):i),d=Math.max(0,s-o),c=r(d);o=Math.max(o,s),e({loaded:s,total:a,progress:a?s/a:void 0,bytes:d,rate:c||void 0,estimated:c&&a?(a-s)/c:void 0,event:n,lengthComputable:null!=a,[t?"download":"upload"]:!0})},n)},r9=(e,t)=>{let n=null!=e;return[o=>t[0]({lengthComputable:n,total:e,loaded:o}),t[1]]},ie=(e,t=ra.asap)=>(...n)=>t(()=>e(...n)),it=rq.hasStandardBrowserEnv?(s=new URL(rq.origin),d=rq.navigator&&/(msie|trident)/i.test(rq.navigator.userAgent),e=>(e=new URL(e,rq.origin),s.protocol===e.protocol&&s.host===e.host&&(d||s.port===e.port))):()=>!0,io=rq.hasStandardBrowserEnv?{write(e,t,n,o,r,i,a){if("u"<typeof document)return;let s=[`${e}=${encodeURIComponent(t)}`];ra.isNumber(n)&&s.push(`expires=${new Date(n).toUTCString()}`),ra.isString(o)&&s.push(`path=${o}`),ra.isString(r)&&s.push(`domain=${r}`),!0===i&&s.push("secure"),ra.isString(a)&&s.push(`SameSite=${a}`),document.cookie=s.join("; ")},read(e){if("u"<typeof document)return null;let t=document.cookie.split(";");for(let n=0;n<t.length;n++){let o=t[n].replace(/^\s+/,""),r=o.indexOf("=");if(-1!==r&&o.slice(0,r)===e)try{return decodeURIComponent(o.slice(r+1))}catch(e){return o.slice(r+1)}}return null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}},ir=/^https?:(?!\/\/)/i;function ii(e,t){if("string"==typeof e){let o=r5(e);if(ir.test(o)){var n;let e,r,i;throw new rw(`Invalid URL ${JSON.stringify((i=(-1===(r=(e=o.replace(/^(https?:\/{0,2})[^/?#]*@/i,`$1${rg}@`)).indexOf("#"))?e:e.slice(0,r)).replace(/([?&][^=&#]*=)[^&#]*/g,`$1${rg}`),-1===r?i:`${i}#${!(n=e.slice(r+1))?n:n.replace(/(^|&)([^=&]*=)?[^&]+/g,(e,t,n="")=>`${t}${n}${rg}`)}`))}: missing "//" after protocol`,rw.ERR_INVALID_URL,t)}}}function ia(e,t,n,o){ii(t,o);let r=!("string"==typeof t&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t));if(e&&(r||!1===n)){ii(e,o);if(!t)return e;let n=e.length;for(;n>0&&47===e.charCodeAt(n-1);)n--;return e.slice(0,n)+"/"+t.replace(/^\/+/,"")}return t}let is=e=>e instanceof rF?{...e}:e;function id(e,t){var n;e=e||{},t=t||{};let o=Object.create(null);function r(e,t,n,o){return ra.isPlainObject(e)&&ra.isPlainObject(t)?ra.merge.call({caseless:o},e,t):ra.isPlainObject(t)?ra.merge({},t):ra.isArray(t)?t.slice():t}function i(e,t,n,o){return ra.isUndefined(t)?ra.isUndefined(e)?void 0:r(void 0,e,n,o):r(e,t,n,o)}function a(e,t){if(!ra.isUndefined(t))return r(void 0,t)}function s(e,t){return ra.isUndefined(t)?ra.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function d(n,o,i){return ra.hasOwnProp(t,i)?r(n,o):ra.hasOwnProp(e,i)?r(void 0,n):void 0}Object.defineProperty(o,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});let c={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutErrorMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,allowedSocketPaths:s,responseEncoding:s,validateStatus:d,headers:(e,t,n)=>i(is(e),is(t),n,!0)};return ra.forEach((n={...e,...t},Object.getOwnPropertySymbols&&Object.getOwnPropertyDescriptor?Object.keys(n).concat(Object.getOwnPropertySymbols(n).filter(e=>Object.getOwnPropertyDescriptor(n,e).enumerable)):Object.keys(n)),function(n){if("__proto__"===n||"constructor"===n||"prototype"===n)return;let r=ra.hasOwnProp(c,n)?c[n]:i,a=r(ra.hasOwnProp(e,n)?e[n]:void 0,ra.hasOwnProp(t,n)?t[n]:void 0,n);ra.isUndefined(a)&&r!==d||(o[n]=a)}),ra.hasOwnProp(t,"validateStatus")&&ra.isUndefined(t.validateStatus)&&!1===function(n){let o=ra.hasOwnProp(t,"transitional")?t.transitional:void 0;if(!ra.isUndefined(o)){if(!ra.isPlainObject(o))return;else if(ra.hasOwnProp(o,n))return o[n]}let r=ra.hasOwnProp(e,"transitional")?e.transitional:void 0;if(ra.isPlainObject(r)&&ra.hasOwnProp(r,n))return r[n]}("validateStatusUndefinedResolves")&&(ra.hasOwnProp(e,"validateStatus")?o.validateStatus=r(void 0,e.validateStatus):delete o.validateStatus),o}let ic=["content-type","content-length"],il=function(e){let t=id({},e),n=e=>ra.hasOwnProp(t,e)?t[e]:void 0,o=n("data"),r=n("withXSRFToken"),i=n("xsrfHeaderName"),a=n("xsrfCookieName"),s=n("headers"),d=n("auth"),c=n("baseURL"),l=n("allowAbsoluteUrls"),m=n("url");if(t.headers=s=rF.from(s),t.url=rx(ia(c,m,l,t),n("params"),n("paramsSerializer")),d){let t=ra.getSafeProp(d,"username")||"",n=ra.getSafeProp(d,"password")||"";try{s.set("Authorization","Basic "+btoa(t+":"+(n?encodeURIComponent(n).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16))):"")))}catch(t){throw rw.from(t,rw.ERR_BAD_OPTION_VALUE,e)}}if(ra.isFormData(o)){let e=ra.getSafeProp(o,"getHeaders");if(rq.hasStandardBrowserEnv||rq.hasStandardBrowserWebWorkerEnv||ra.isReactNative(o))s.setContentType(void 0);else{var u,f;ra.isFunction(e)&&(u=s,f=e.call(o),"content-only"!==n("formDataHeaderPolicy")?u.set(f):Object.entries(f||{}).forEach(([e,t])=>{ic.includes(e.toLowerCase())&&u.set(e,t)}))}}if(rq.hasStandardBrowserEnv&&(ra.isFunction(r)&&(r=r(t)),!0===r||null==r&&it(t.url))){let e=i&&a&&io.read(a);e&&s.set(i,e)}return t},im="u">typeof XMLHttpRequest&&function(e){return new Promise(function(t,n){let o,r,i,a,s,d,c=il(e),l=c.data,m=rF.from(c.headers).normalize(),{responseType:u,onUploadProgress:f,onDownloadProgress:b}=c;function h(){a&&a(),s&&s(),c.cancelToken&&c.cancelToken.unsubscribe(o),c.signal&&c.signal.removeEventListener("abort",o)}let p=new XMLHttpRequest;function _(o){if(!p)return;if(0===p.status&&"file"!==(r3(r5(c.url))||r3(rq.origin))&&!(p.responseURL&&p.responseURL.startsWith("file:"))){n(new rw("Request aborted",rw.ECONNABORTED,e,p)),h(),p=null;return}try{o?d&&d(o):s&&s()}catch(e){setTimeout(()=>{throw e})}if(!p)return;let r=rF.from("getAllResponseHeaders"in p&&p.getAllResponseHeaders());r2(function(e){t(e),h()},function(e){n(e),h()},{data:u&&"text"!==u&&"json"!==u?p.response:p.responseText,status:p.status,statusText:p.statusText,headers:r,config:e,request:p}),p=null}p.open(c.method.toUpperCase(),c.url,!0),p.timeout=c.timeout,"onloadend"in p?p.onloadend=_:p.onreadystatechange=function(){!p||4!==p.readyState||(0!==p.status||p.responseURL&&p.responseURL.startsWith("file:"))&&setTimeout(_)},p.onabort=function(){p&&(n(new rw("Request aborted",rw.ECONNABORTED,e,p)),h(),p=null)},p.onerror=function(t){let o=new rw(t&&t.message?t.message:"Network Error",rw.ERR_NETWORK,e,p);o.event=t||null,n(o),h(),p=null},p.ontimeout=function(){let t=c.timeout?"timeout of "+c.timeout+"ms exceeded":"timeout exceeded",o=c.transitional||rN;c.timeoutErrorMessage&&(t=c.timeoutErrorMessage),n(new rw(t,o.clarifyTimeoutError?rw.ETIMEDOUT:rw.ECONNABORTED,e,p)),h(),p=null},void 0===l&&m.setContentType(null),"setRequestHeader"in p&&ra.forEach(rm(m),function(e,t){p.setRequestHeader(t,e)}),ra.isUndefined(c.withCredentials)||(p.withCredentials=!!c.withCredentials),u&&"json"!==u&&(p.responseType=c.responseType),b&&([i,s,d]=r7(b,!0),p.addEventListener("progress",i)),f&&p.upload&&([r,a]=r7(f),p.upload.addEventListener("progress",r),p.upload.addEventListener("loadend",a)),(c.cancelToken||c.signal)&&(o=t=>{p&&(n(!t||t.type?new r1(null,e,p):t),p.abort(),h(),p=null)},c.cancelToken&&c.cancelToken.subscribe(o),c.signal&&(c.signal.aborted?o():c.signal.addEventListener("abort",o)));let F=r3(c.url);if(F&&!rq.protocols.includes(F)){n(new rw("Unsupported protocol "+F+":",rw.ERR_BAD_REQUEST,e)),h();return}p.send(l||null)})},iu=function*(e,t){let n,o=e.byteLength;if(!t||o<t)return void(yield e);let r=0;for(;r<o;)n=r+t,yield e.slice(r,n),r=n},ib=async function*(e,t){for await(let n of ih(e))yield*iu(n,t)},ih=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);let t=e.getReader();try{for(;;){let{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},ip=(e,t,n,o)=>{let r,i=ib(e,t),a=0,s=e=>{!r&&(r=!0,o&&o(e))};return new ReadableStream({async pull(e){try{let{done:t,value:o}=await i.next();if(t){s(),e.close();return}let r=o.byteLength;if(n){let e=a+=r;n(e)}e.enqueue(new Uint8Array(o))}catch(e){throw s(e),e}},cancel:e=>(s(e),i.return())},{highWaterMark:2})},i_=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102,iF=(e,t,n)=>t+2<n&&i_(e.charCodeAt(t+1))&&i_(e.charCodeAt(t+2)),ig=e=>e<=57?e-48:(223&e)-55,iy=e=>e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||43===e||47===e||45===e||95===e,iv=e=>9===e||10===e||12===e||13===e||32===e,iw=e=>{var t;let n,o,r=e.length,i=0,a=0,s=!1;for(let t=0;t<r;t++){let n=e.charCodeAt(t);if(37===n&&iF(e,t,r)&&(n=16*ig(e.charCodeAt(t+1))+ig(e.charCodeAt(t+2)),t+=2),!iv(n)){if(61===n){a++;continue}if(!iy(n)||a>0){s=!0;continue}i++}}if(s||a>2||a>0&&(i+a)%4!=0||i%4==1){let t,n;return t=e.length,n=0,t>0&&61===e.charCodeAt(t-1)&&(n++,t>1&&61===e.charCodeAt(t-2)&&n++),Math.floor((t-n)*3/4)}return n=Math.floor((t=i)/4),3*n+(2==(o=t%4)?1:2*(3===o))},ik={cache:"default",redirect:"follow",referrer:"about:client",referrerPolicy:"",mode:"cors",integrity:"",keepalive:!1,priority:"auto",window:null},{isFunction:iM}=ra,iE=e=>{if(!ra.isString(e))return e;try{return decodeURIComponent(e)}catch(t){return e}},iL=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},iD=e=>{let t,n=void 0!==ra.global&&null!==ra.global?ra.global:globalThis,{ReadableStream:o,TextEncoder:r}=n,{fetch:i,Request:a,Response:s}=e=ra.merge.call({skipUndefined:!0},{Request:n.Request,Response:n.Response},e),d=i?iM(i):"function"==typeof fetch,c=iM(a),l=iM(s);if(!d)return!1;let m=d&&iM(o),u=d&&("function"==typeof r?(t=new r,e=>t.encode(e)):async e=>new Uint8Array(await new a(e).arrayBuffer())),f=c&&m&&iL(()=>{let e=!1,t=new a(rq.origin,{body:new o,method:"POST",get duplex(){return e=!0,"half"}}),n=t.headers.has("Content-Type");return null!=t.body&&t.body.cancel(),e&&!n}),b=l&&m&&iL(()=>ra.isReadableStream(new s("").body)),h={stream:b&&(e=>e.body)};d&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{h[e]||(h[e]=(t,n)=>{let o=t&&t[e];if(o)return o.call(t);throw new rw(`Response type '${e}' is not supported`,rw.ERR_NOT_SUPPORT,n)})});let p=async e=>{if(null==e)return 0;if(ra.isBlob(e))return e.size;if(ra.isSpecCompliantForm(e)){let t=new a(rq.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return ra.isArrayBufferView(e)||ra.isArrayBuffer(e)?e.byteLength:(ra.isURLSearchParams(e)&&(e+=""),ra.isString(e))?(await u(e)).byteLength:void 0},_=async(e,t)=>{let n=ra.toFiniteNumber(e.getContentLength());return null==n?p(t):n};return async e=>{let t,{url:n,method:o,data:d,signal:l,cancelToken:u,timeout:F,onDownloadProgress:g,onUploadProgress:y,responseType:v,headers:w,withCredentials:k="same-origin",fetchOptions:M,maxContentLength:E,maxBodyLength:L,maxRedirects:D}=il(e),A=ra.isNumber(E)&&E>-1,T=ra.isNumber(L)&&L>-1,C=i||fetch;v=v?(v+"").toLowerCase():"text";let S=((e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;let n=new AbortController,o=!1,r=function(e){if(!o){o=!0,a();let t=e instanceof Error?e:this.reason;n.abort(t instanceof rw?t:new r1(t instanceof Error?t.message:t))}},i=t&&setTimeout(()=>{i=null,r(new rw(`timeout of ${t}ms exceeded`,rw.ETIMEDOUT))},t),a=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(r):e.removeEventListener("abort",r)}),e=null)};e.forEach(e=>{if(!o){if(e.aborted)return void r.call(e);e.addEventListener("abort",r,{once:!0})}});let{signal:s}=n;return s.unsubscribe=()=>ra.asap(a),s})([l,u&&u.toAbortSignal()],F),x=null,Y=S&&S.unsubscribe&&(()=>{S.unsubscribe()}),O=null,B=()=>new rw("Request body larger than maxBodyLength limit",rw.ERR_BAD_REQUEST,e,x);try{var R,P;let i,l,u,F,N=(l="auth",ra.hasOwnProp(e,l)?e[l]:void 0);if(N){let e=ra.getSafeProp(N,"username")||"",t=ra.getSafeProp(N,"password")||"";i={username:e,password:t}}if(u=(R=n).indexOf("://"),F=R,-1!==u&&(F=F.slice(u+3)),F.includes("@")||F.includes(":")){let e=new URL(n,rq.origin);if(!i&&(e.username||e.password)){let t=iE(e.username),n=iE(e.password);i={username:t,password:n}}(e.username||e.password)&&(e.username="",e.password="",n=e.href)}if(i){let e;w.delete("authorization"),w.set("Authorization","Basic "+btoa((e=(i.username||"")+":"+(i.password||""),encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16))))))}if(A&&"string"==typeof n&&n.startsWith("data:")){let t;if(P=n,t="string"==typeof P?P.indexOf("#"):-1,((e,t)=>{if(!e||"string"!=typeof e||!e.startsWith("data:"))return 0;let n=e.indexOf(",");if(n<0)return 0;let o=e.slice(5,n),r=e.slice(n+1);if(/;base64/i.test(o))return t(r);let i=0;for(let e=0,t=r.length;e<t;e++){let n=r.charCodeAt(e);if(37===n&&iF(r,e,t))i+=1,e+=2;else if(n<128)i+=1;else if(n<2048)i+=2;else if(n>=55296&&n<=56319&&e+1<t){let t=r.charCodeAt(e+1);t>=56320&&t<=57343?(i+=4,e++):i+=3}else i+=3}return i})(-1===t?P:P.slice(0,t),iw)>E)throw new rw("maxContentLength size of "+E+" exceeded",rw.ERR_BAD_RESPONSE,e,x)}if(T&&"get"!==o&&"head"!==o){let e=await p(d);if("number"==typeof e&&isFinite(e)&&(t=e,e>L))throw B()}let I=T&&(ra.isReadableStream(d)||ra.isStream(d)),j=(e,t,n)=>ip(e,65536,e=>{if(T&&e>L)throw O=B();t&&t(e)},n);if(f&&"get"!==o&&"head"!==o&&(y||I)){if(t=null==t?await _(w,d):t,0!==t||I){let e,o=new a(n,{method:"POST",body:d,duplex:"half"});if(ra.isFormData(d)&&(e=o.headers.get("content-type"))&&w.setContentType(e),o.body){let[e,n]=y&&r9(t,r7(ie(y)))||[];d=j(o.body,e,n)}}}else if(I&&!c&&m&&"get"!==o&&"head"!==o)d=j(d);else if(I&&c&&!f&&"get"!==o&&"head"!==o)throw new rw("Stream request bodies are not supported by the current fetch implementation",rw.ERR_NOT_SUPPORT,e,x);ra.isString(k)||(k=k?"include":"omit");let H=c&&"credentials"in a.prototype;if(ra.isFormData(d)){let e=w.getContentType();e&&/^multipart\/form-data/i.test(e)&&!/boundary=/i.test(e)&&w.delete("content-type")}w.set("User-Agent","axios/1.20.0",!1);let U=null==M?M:Object.assign(Object.create(null),M);U&&(delete U.body,delete U.headers,delete U.method,delete U.signal,delete U.duplex,delete U.credentials);let W=Object.assign(Object.create(null),U,{signal:S,method:o.toUpperCase(),headers:rm(w.normalize()),body:d,duplex:"half",credentials:H?k:void 0});c&&(ra.forEach(ik,(e,t)=>{void 0===W[t]&&(W[t]=e)}),void 0===W.signal&&(W.signal=null),void 0===W.body&&(W.body=null)),0===D&&(W.redirect="manual",U&&(U.redirect="manual")),x=c&&new a(n,W);let z=await (c?C(x,U):C(n,W)),$=rF.from(z.headers);if(A){let t=ra.toFiniteNumber($.getContentLength());if(null!=t&&t>E)throw new rw("maxContentLength size of "+E+" exceeded",rw.ERR_BAD_RESPONSE,e,x)}let G=b&&("stream"===v||"response"===v);if(b&&z.body&&(g||A||G&&Y)){let t={};["status","statusText","headers"].forEach(e=>{t[e]=z[e]});let n=ra.toFiniteNumber($.getContentLength()),[o,r]=g&&r9(n,r7(ie(g),!0))||[];z=new s(ip(z.body,65536,t=>{if(A&&t>E)throw new rw("maxContentLength size of "+E+" exceeded",rw.ERR_BAD_RESPONSE,e,x);o&&o(t)},()=>{r&&r(),Y&&Y()}),t)}v=v||"text";let q=await h[ra.findKey(h,v)||"text"](z,e);if(A&&!b&&!G){let t;if(null!=q&&("number"==typeof q.byteLength?t=q.byteLength:"number"==typeof q.size?t=q.size:"string"==typeof q&&(t="function"==typeof r?new r().encode(q).byteLength:q.length)),"number"==typeof t&&t>E)throw new rw("maxContentLength size of "+E+" exceeded",rw.ERR_BAD_RESPONSE,e,x)}return!G&&Y&&Y(),await new Promise((t,n)=>{r2(t,n,{data:q,headers:rF.from(z.headers),status:z.status,statusText:z.statusText,config:e,request:x})})}catch(t){if(Y&&Y(),S&&S.aborted&&S.reason instanceof rw){let n=S.reason;throw n.config=e,x&&(n.request=x),t!==n&&Object.defineProperty(n,"cause",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),n}if(O)throw x&&!O.request&&(O.request=x),O;if(t instanceof rw)throw x&&!t.request&&(t.request=x),t;if(t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message)){let n=new rw("Network Error",rw.ERR_NETWORK,e,x,t&&t.response);throw Object.defineProperty(n,"cause",{__proto__:null,value:t.cause||t,writable:!0,enumerable:!1,configurable:!0}),n}throw rw.from(t,t&&t.code,e,x,t&&t.response)}}},iA=new Map,iT=e=>{let t=e&&e.env||{},{fetch:n,Request:o,Response:r}=t,i=[o,r,n],a=i.length,s,d,c=iA;for(;a--;)s=i[a],void 0===(d=c.get(s))&&c.set(s,d=a?new Map:iD(t)),c=d;return d};iT();let iC={http:null,xhr:im,fetch:{get:iT}};ra.forEach(iC,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch(e){}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});let iS=e=>`- ${e}`,ix=e=>ra.isFunction(e)||null===e||!1===e,iY=function(e,t){let n,o,{length:r}=e=ra.isArray(e)?e:[e],i={};for(let a=0;a<r;a++){let r;if(o=n=e[a],!ix(n)&&void 0===(o=iC[(r=String(n)).toLowerCase()]))throw new rw(`Unknown adapter '${r}'`);if(o&&(ra.isFunction(o)||(o=o.get(t))))break;i[r||"#"+a]=o}if(!o){let e=Object.entries(i).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));throw new rw("There is no suitable adapter to dispatch the request "+(r?e.length>1?"since :\n"+e.map(iS).join("\n"):" "+iS(e[0]):"as no adapter specified"),rw.ERR_NOT_SUPPORT)}return o};function iO(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new r1(null,e)}function iB(e){let t=ra.toSafeFlatObject(e);return iO(t),t.headers=rF.from(ra.getSafeProp(t,"headers")),t.data=rZ.call(t,t.transformRequest),-1!==["post","put","patch"].indexOf(t.method)&&t.headers.setContentType("application/x-www-form-urlencoded",!1),iY(t.adapter||rQ.adapter,t)(t).then(function(e){iO(t),t.response=e;try{e.data=rZ.call(t,t.transformResponse,e)}finally{delete t.response}return e.headers=rF.from(e.headers),e},function(e){if(!r0(e)&&(iO(t),e&&e.response)){t.response=e.response;try{e.response.data=rZ.call(t,t.transformResponse,e.response)}finally{delete t.response}e.response.headers=rF.from(e.response.headers)}return Promise.reject(e)})}let iR={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{iR[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});let iP={};iR.transitional=function(e,t,n){function o(e,t){return"[Axios v1.20.0] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,r,i)=>{if(!1===e)throw new rw(o(r," has been removed"+(t?" in "+t:"")),rw.ERR_DEPRECATED);return t&&!iP[r]&&(iP[r]=!0,console.warn(o(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,i)}},iR.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};let iN=function(e,t,n){if("object"!=typeof e||null===e)throw new rw("options must be an object",rw.ERR_BAD_OPTION_VALUE);let o=Object.keys(e),r=o.length;for(;r-- >0;){let i=o[r],a=Object.prototype.hasOwnProperty.call(t,i)?t[i]:void 0;if(a){let t=e[i],n=void 0===t||a(t,i,e);if(!0!==n)throw new rw("option "+i+" must be "+n,rw.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new rw("Unknown option "+i,rw.ERR_BAD_OPTION)}};class iI{constructor(e){this.defaults=e||{},this.interceptors={request:new rP,response:new rP}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error)try{let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=Error();let n=t.stack,o="";if("string"==typeof n){let e=n.indexOf("\n");o=-1===e?"":n.slice(e+1)}if(e.stack){if(o){let t=o.indexOf("\n"),n=-1===t?-1:o.indexOf("\n",t+1),r=-1===n?"":o.slice(n+1);String(e.stack).endsWith(r)||(e.stack+="\n"+o)}}else e.stack=o}catch(e){}throw e}}_request(e,t){let n,o;"string"==typeof e?(t=t||{}).url=e:t=e||{};let{transitional:r,paramsSerializer:i,headers:a}=t=id(this.defaults,t);void 0!==r&&iN(r,{silentJSONParsing:iR.transitional(iR.boolean),forcedJSONParsing:iR.transitional(iR.boolean),clarifyTimeoutError:iR.transitional(iR.boolean),legacyInterceptorReqResOrdering:iR.transitional(iR.boolean),advertiseZstdAcceptEncoding:iR.transitional(iR.boolean),validateStatusUndefinedResolves:iR.transitional(iR.boolean)},!1),null!=i&&(ra.isFunction(i)?t.paramsSerializer={serialize:i}:iN(i,{encode:iR.function,serialize:iR.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),iN(t,{baseUrl:iR.spelling("baseURL"),withXsrfToken:iR.spelling("withXSRFToken")},!0),t.method=(ra.getSafeProp(t,"method")||ra.getSafeProp(this.defaults,"method")||"get").toLowerCase();let s=a&&ra.merge(a.common,a[t.method]);a&&ra.forEach(rK.concat("common"),e=>{delete a[e]}),t.headers=rF.concat(s,a);let d=[],c=!0;this.interceptors.request.forEach(function(e){if("function"==typeof e.runWhen&&!1===e.runWhen(t))return;c=c&&e.synchronous;let n=t.transitional||rN;n&&n.legacyInterceptorReqResOrdering?d.unshift(e.fulfilled,e.rejected):d.push(e.fulfilled,e.rejected)});let l=[];this.interceptors.response.forEach(function(e){l.push(e.fulfilled,e.rejected)});let m=0;if(!c){let e=[iB.bind(this),void 0];for(e.unshift(...d),e.push(...l),o=e.length,n=Promise.resolve(t);m<o;)n=n.then(e[m++],e[m++]);return n}o=d.length;let u=t;for(;m<o;){let e=d[m++],t=d[m++];try{u=e?e(u):u}catch(e){if(!t){n=Promise.reject(e);break}try{let o=t.call(this,e);ra.isThenable(o)&&(n=Promise.resolve(o).then(()=>iB.call(this,u)))}catch(e){n=Promise.reject(e)}break}}if(!n)try{n=iB.call(this,u)}catch(e){n=Promise.reject(e)}for(m=0,o=l.length;m<o;)n=n.then(l[m++],l[m++]);return n}getUri(e){return rx(ia((e=id(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls,e),e.params,e.paramsSerializer)}}ra.forEach(["delete","get","head","options"],function(e){iI.prototype[e]=function(t,n){return this.request(id(n||{},{method:e,url:t,data:n&&ra.hasOwnProp(n,"data")?n.data:void 0}))}}),ra.forEach(["post","put","patch","query"],function(e){function t(t){return function(n,o,r){return this.request(id(r||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:o}))}}iI.prototype[e]=t(),"query"!==e&&(iI.prototype[e+"Form"]=t(!0))});let ij=class e{constructor(e){let t;if("function"!=typeof e)throw TypeError("executor must be a function.");this.promise=new Promise(function(e){t=e});const n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t,o=new Promise(e=>{n.subscribe(e),t=e}).then(e);return o.cancel=function(){n.unsubscribe(t)},o},e(function(e,o,r){n.reason||(n.reason=new r1(e,o,r),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){let e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let t;return{token:new e(function(e){t=e}),cancel:t}}},iH={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,ContentTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,UnprocessableContent:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerReturnsAnUnknownError:520,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(iH).forEach(([e,t])=>{void 0===iH[t]&&(iH[t]=e)});let iU=function e(t){let n=new iI(t),o=oM(iI.prototype.request,n);return ra.extend(o,iI.prototype,n,{allOwnKeys:!0}),ra.extend(o,n,null,{allOwnKeys:!0}),o.create=function(n){return e(id(t,n))},o}(rQ);iU.Axios=iI,iU.CanceledError=r1,iU.CancelToken=ij,iU.isCancel=r0,iU.VERSION="1.20.0",iU.toFormData=rD,iU.AxiosError=rw,iU.Cancel=iU.CanceledError,iU.all=function(e){return Promise.all(e)},iU.spread=function(e){return function(t){return e.apply(null,t)}},iU.isAxiosError=function(e){return ra.isObject(e)&&!0===e.isAxiosError},iU.mergeConfig=id,iU.AxiosHeaders=rF,iU.formToJSON=e=>rJ(ra.isHTMLForm(e)?new FormData(e):e),iU.getAdapter=iY,iU.HttpStatusCode=iH,iU.default=iU;class iW{constructor(e){this.httpClient=e}getNotifications(e,t){return this.httpClient.request({method:"GET",url:at`notification`,queryParams:e,options:t})}removeNotifications(e,t){return this.httpClient.request({method:"DELETE",url:at`notification`,queryParams:e,options:t})}sendNotification(e,t){return this.httpClient.request({method:"POST",url:at`notification/alert`,data:e,options:t})}getNotificationsCount(e,t){return this.httpClient.request({method:"GET",url:at`notification/count`,queryParams:e,options:t})}removeNotification(e,t){return this.httpClient.request({method:"DELETE",url:at`notification/${e}`,options:t})}notificationAcknowledged(e,t,n,o){return this.httpClient.request({method:"PUT",url:at`notification/${e}/acknowledged`,queryParams:n,data:t,options:o})}notificationDelivered(e,t,n){return this.httpClient.request({method:"PUT",url:at`notification/${e}/delivered`,queryParams:t,options:n})}}class iz{constructor(e){this.httpClient=e}deleteConnections(e,t){return this.httpClient.request({method:"DELETE",url:at`gateway/connection`,queryParams:e,options:t})}getConnections(e){return this.httpClient.request({method:"GET",url:at`gateway/connection`,options:e})}deleteConnection(e,t){return this.httpClient.request({method:"DELETE",url:at`gateway/connection/${e}`,options:t})}getConnection(e,t){return this.httpClient.request({method:"GET",url:at`gateway/connection/${e}`,options:t})}setConnection(e,t,n){return this.httpClient.request({method:"PUT",url:at`gateway/connection/${e}`,data:t,options:n})}getConnectionStatus(e,t){return this.httpClient.request({method:"GET",url:at`gateway/status/${e}`,options:t})}}class i${constructor(e){this.httpClient=e}getAssetDescriptors(e,t){return this.httpClient.request({method:"GET",url:at`model/assetDescriptors`,queryParams:e,options:t})}getAssetInfo(e,t,n){return this.httpClient.request({method:"GET",url:at`model/assetInfo/${e}`,queryParams:t,options:n})}getAssetInfos(e,t){return this.httpClient.request({method:"GET",url:at`model/assetInfos`,queryParams:e,options:t})}getValueDescriptorSchema(e,t){return this.httpClient.request({method:"GET",url:at`model/getValueDescriptorSchema`,queryParams:e,options:t})}getMetaItemDescriptors(e,t){return this.httpClient.request({method:"GET",url:at`model/metaItemDescriptors`,queryParams:e,options:t})}getValueDescriptors(e,t){return this.httpClient.request({method:"GET",url:at`model/valueDescriptors`,queryParams:e,options:t})}}class iG{constructor(e){this.httpClient=e}updateCurrentUserLocale(e,t){return this.httpClient.request({method:"PUT",url:at`user/locale`,data:e,options:t})}query(e,t){return this.httpClient.request({method:"POST",url:at`user/query`,data:e,options:t})}requestPasswordResetCurrent(e){return this.httpClient.request({method:"PUT",url:at`user/request-password-reset`,options:e})}updatePasswordCurrent(e,t){return this.httpClient.request({method:"PUT",url:at`user/reset-password`,data:e,options:t})}updateCurrent(e,t){return this.httpClient.request({method:"PUT",url:at`user/update`,data:e,options:t})}getCurrent(e){return this.httpClient.request({method:"GET",url:at`user/user`,options:e})}getCurrentUserRealmRoles(e){return this.httpClient.request({method:"GET",url:at`user/userRealmRoles`,options:e})}getCurrentUserClientRoles(e,t){return this.httpClient.request({method:"GET",url:at`user/userRoles/${e}`,options:t})}disconnectUserSession(e,t,n){return this.httpClient.request({method:"DELETE",url:at`user/${e}/disconnect/${t}`,options:n})}requestPasswordReset(e,t,n){return this.httpClient.request({method:"PUT",url:at`user/${e}/request-password-reset/${t}`,options:n})}updatePassword(e,t,n,o){return this.httpClient.request({method:"PUT",url:at`user/${e}/reset-password/${t}`,data:n,options:o})}resetSecret(e,t,n){return this.httpClient.request({method:"GET",url:at`user/${e}/reset-secret/${t}`,options:n})}updateRoles(e,t,n){return this.httpClient.request({method:"PUT",url:at`user/${e}/roles`,data:t,options:n})}getUserRealmRoles(e,t,n){return this.httpClient.request({method:"GET",url:at`user/${e}/userRealmRoles/${t}`,options:n})}updateUserRealmRoles(e,t,n,o){return this.httpClient.request({method:"PUT",url:at`user/${e}/userRealmRoles/${t}`,data:n,options:o})}getUserClientRoles(e,t,n,o){return this.httpClient.request({method:"GET",url:at`user/${e}/userRoles/${t}/${n}`,options:o})}updateUserClientRoles(e,t,n,o,r){return this.httpClient.request({method:"PUT",url:at`user/${e}/userRoles/${t}/${n}`,data:o,options:r})}getUserSessions(e,t,n){return this.httpClient.request({method:"GET",url:at`user/${e}/userSessions/${t}`,options:n})}create(e,t,n){return this.httpClient.request({method:"POST",url:at`user/${e}/users`,data:t,options:n})}update(e,t,n){return this.httpClient.request({method:"PUT",url:at`user/${e}/users`,data:t,options:n})}delete(e,t,n){return this.httpClient.request({method:"DELETE",url:at`user/${e}/users/${t}`,options:n})}getClientRoles(e,t,n){return this.httpClient.request({method:"GET",url:at`user/${e}/${t}/roles`,options:n})}updateClientRoles(e,t,n,o){return this.httpClient.request({method:"PUT",url:at`user/${e}/${t}/roles`,data:n,options:o})}get(e,t,n){return this.httpClient.request({method:"GET",url:at`user/${e}/${t}`,options:n})}}class iq{constructor(e){this.httpClient=e}getConfig(e){return this.httpClient.request({method:"GET",url:at`syslog/config`,options:e})}updateConfig(e,t){return this.httpClient.request({method:"PUT",url:at`syslog/config`,data:e,options:t})}clearEvents(e){return this.httpClient.request({method:"DELETE",url:at`syslog/event`,options:e})}getEvents(e,t){return this.httpClient.request({method:"GET",url:at`syslog/event`,queryParams:e,options:t})}}class iV{constructor(e){this.httpClient=e}getDatapointExport(e,t){return this.httpClient.request({method:"GET",url:at`asset/datapoint/export`,queryParams:e,options:t})}getDatapointPeriod(e,t){return this.httpClient.request({method:"GET",url:at`asset/datapoint/periods`,queryParams:e,options:t})}getDatapoints(e,t,n,o){return this.httpClient.request({method:"POST",url:at`asset/datapoint/${e}/${t}`,data:n,options:o})}}class iJ{constructor(e){this.httpClient=e}getAllNodeDefinitions(e){return this.httpClient.request({method:"GET",url:at`flow`,options:e})}getNodeDefinition(e,t){return this.httpClient.request({method:"GET",url:at`flow/${e}`,options:t})}getAllNodeDefinitionsByType(e,t){return this.httpClient.request({method:"GET",url:at`flow/${e}`,options:t})}}class iK{constructor(e){this.httpClient=e}createProvisioningConfig(e,t){return this.httpClient.request({method:"POST",url:at`provisioning`,data:e,options:t})}getProvisioningConfigs(e){return this.httpClient.request({method:"GET",url:at`provisioning`,options:e})}deleteProvisioningConfig(e,t){return this.httpClient.request({method:"DELETE",url:at`provisioning/${e}`,options:t})}updateProvisioningConfig(e,t,n){return this.httpClient.request({method:"PUT",url:at`provisioning/${e}`,data:t,options:n})}}class iX{constructor(e){this.httpClient=e}getPredictedDatapoints(e,t,n,o){return this.httpClient.request({method:"POST",url:at`asset/predicted/${e}/${t}`,data:n,options:o})}writePredictedDatapoints(e,t,n,o){return this.httpClient.request({method:"PUT",url:at`asset/predicted/${e}/${t}`,data:n,options:o})}}class iQ{constructor(e){this.httpClient=e}create(e,t){return this.httpClient.request({method:"POST",url:at`realm`,data:e,options:t})}getAll(e){return this.httpClient.request({method:"GET",url:at`realm`,options:e})}getAccessible(e){return this.httpClient.request({method:"GET",url:at`realm/accessible`,options:e})}delete(e,t){return this.httpClient.request({method:"DELETE",url:at`realm/${e}`,options:t})}get(e,t){return this.httpClient.request({method:"GET",url:at`realm/${e}`,options:t})}update(e,t,n){return this.httpClient.request({method:"PUT",url:at`realm/${e}`,data:t,options:n})}}class iZ{constructor(e){this.httpClient=e}getManagerConfig(e){return this.httpClient.request({method:"GET",url:at`configuration/manager`,options:e})}update(e,t){return this.httpClient.request({method:"PUT",url:at`configuration/manager`,data:e,options:t})}fileUpload(e,t,n){return this.httpClient.request({method:"POST",url:at`configuration/manager/file`,queryParams:t,data:e,options:n})}getManagerConfigImage(e,t){return this.httpClient.request({method:"GET",url:at`configuration/manager/image/${e}`,options:t})}}class i0{constructor(e){this.httpClient=e}register(e,t){return this.httpClient.request({method:"POST",url:at`console/register`,data:e,options:t})}}class i1{constructor(e){this.httpClient=e}create(e,t){return this.httpClient.request({method:"POST",url:at`asset`,data:e,options:t})}delete(e,t){return this.httpClient.request({method:"DELETE",url:at`asset`,queryParams:e,options:t})}writeAttributeValues(e,t){return this.httpClient.request({method:"PUT",url:at`asset/attributes`,data:e,options:t})}writeAttributeEvents(e,t){return this.httpClient.request({method:"PUT",url:at`asset/attributes/timestamp`,data:e,options:t})}queryCount(e,t){return this.httpClient.request({method:"POST",url:at`asset/count`,data:e,options:t})}updateNoneParent(e,t){return this.httpClient.request({method:"DELETE",url:at`asset/parent`,queryParams:e,options:t})}getPartial(e,t){return this.httpClient.request({method:"GET",url:at`asset/partial/${e}`,options:t})}queryAssets(e,t){return this.httpClient.request({method:"POST",url:at`asset/query`,data:e,options:t})}queryAssetTree(e,t){return this.httpClient.request({method:"POST",url:at`asset/tree`,data:e,options:t})}getCurrentUserAssets(e){return this.httpClient.request({method:"GET",url:at`asset/user/current`,options:e})}createUserAssetLinks(e,t){return this.httpClient.request({method:"POST",url:at`asset/user/link`,data:e,options:t})}getUserAssetLinks(e,t){return this.httpClient.request({method:"GET",url:at`asset/user/link`,queryParams:e,options:t})}deleteUserAssetLinks(e,t){return this.httpClient.request({method:"POST",url:at`asset/user/link/delete`,data:e,options:t})}deleteAllUserAssetLinks(e,t,n){return this.httpClient.request({method:"DELETE",url:at`asset/user/link/${e}/${t}`,options:n})}deleteUserAssetLink(e,t,n,o){return this.httpClient.request({method:"DELETE",url:at`asset/user/link/${e}/${t}/${n}`,options:o})}get(e,t){return this.httpClient.request({method:"GET",url:at`asset/${e}`,options:t})}update(e,t,n){return this.httpClient.request({method:"PUT",url:at`asset/${e}`,data:t,options:n})}writeAttributeValue$PUT$asset_assetId_attribute_attributeName(e,t,n,o){return this.httpClient.request({method:"PUT",url:at`asset/${e}/attribute/${t}`,data:n,options:o})}writeAttributeValue$PUT$asset_assetId_attribute_attributeName_timestamp(e,t,n,o,r){return this.httpClient.request({method:"PUT",url:at`asset/${e}/attribute/${t}/${n}`,data:o,options:r})}updateParent(e,t,n){return this.httpClient.request({method:"PUT",url:at`asset/${e}/child`,queryParams:t,options:n})}}class i2{constructor(e){this.httpClient=e}getApps(e){return this.httpClient.request({method:"GET",url:at`apps`,options:e})}getConsoleConfig(e){return this.httpClient.request({method:"GET",url:at`apps/consoleConfig`,options:e})}getAppInfos(e){return this.httpClient.request({method:"GET",url:at`apps/info`,options:e})}}class i4{constructor(e){this.httpClient=e}doProtocolAssetDiscovery(e,t,n){return this.httpClient.request({method:"GET",url:at`agent/assetDiscovery/${e}`,queryParams:t,options:n})}doProtocolAssetImport(e,t,n,o){return this.httpClient.request({method:"POST",url:at`agent/assetImport/${e}`,queryParams:n,data:t,options:o})}doProtocolInstanceDiscovery(e,t,n){return this.httpClient.request({method:"GET",url:at`agent/instanceDiscovery/${e}`,queryParams:t,options:n})}}class i5{constructor(e){this.httpClient=e}getHealthStatus(e){return this.httpClient.request({method:"GET",url:at`health`,options:e})}getInfo(e){return this.httpClient.request({method:"GET",url:at`info`,options:e})}}class i3{constructor(e){this.httpClient=e}createGlobalRuleset(e,t){return this.httpClient.request({method:"POST",url:at`rules`,data:e,options:t})}getGlobalRulesets(e,t){return this.httpClient.request({method:"GET",url:at`rules`,queryParams:e,options:t})}createAssetRuleset(e,t){return this.httpClient.request({method:"POST",url:at`rules/asset`,data:e,options:t})}getAssetRulesets(e,t,n){return this.httpClient.request({method:"GET",url:at`rules/asset/for/${e}`,queryParams:t,options:n})}deleteAssetRuleset(e,t){return this.httpClient.request({method:"DELETE",url:at`rules/asset/${e}`,options:t})}getAssetRuleset(e,t){return this.httpClient.request({method:"GET",url:at`rules/asset/${e}`,options:t})}updateAssetRuleset(e,t,n){return this.httpClient.request({method:"PUT",url:at`rules/asset/${e}`,data:t,options:n})}getAssetGeofences(e,t){return this.httpClient.request({method:"GET",url:at`rules/geofences/${e}`,options:t})}getAssetEngineInfo(e,t){return this.httpClient.request({method:"GET",url:at`rules/info/asset/${e}`,options:t})}getGlobalEngineInfo(e){return this.httpClient.request({method:"GET",url:at`rules/info/global`,options:e})}getRealmEngineInfo(e,t){return this.httpClient.request({method:"GET",url:at`rules/info/realm/${e}`,options:t})}createRealmRuleset(e,t){return this.httpClient.request({method:"POST",url:at`rules/realm`,data:e,options:t})}getRealmRulesets(e,t,n){return this.httpClient.request({method:"GET",url:at`rules/realm/for/${e}`,queryParams:t,options:n})}deleteRealmRuleset(e,t){return this.httpClient.request({method:"DELETE",url:at`rules/realm/${e}`,options:t})}getRealmRuleset(e,t){return this.httpClient.request({method:"GET",url:at`rules/realm/${e}`,options:t})}updateRealmRuleset(e,t,n){return this.httpClient.request({method:"PUT",url:at`rules/realm/${e}`,data:t,options:n})}deleteGlobalRuleset(e,t){return this.httpClient.request({method:"DELETE",url:at`rules/${e}`,options:t})}getGlobalRuleset(e,t){return this.httpClient.request({method:"GET",url:at`rules/${e}`,options:t})}updateGlobalRuleset(e,t,n){return this.httpClient.request({method:"PUT",url:at`rules/${e}`,data:t,options:n})}}class i6{constructor(e){this.httpClient=e}getSettings(e){return this.httpClient.request({method:"GET",url:at`map`,options:e})}saveSettings(e,t){return this.httpClient.request({method:"PUT",url:at`map`,data:e,options:t})}deleteMap(e){return this.httpClient.request({method:"DELETE",url:at`map/deleteMap`,options:e})}getCustomMapInfo(e){return this.httpClient.request({method:"GET",url:at`map/getCustomMapInfo`,options:e})}getTile(e,t,n,o){return this.httpClient.request({method:"GET",url:at`map/tile/${e}/${t}/${n}`,options:o})}uploadMap(e,t){return this.httpClient.request({method:"POST",url:at`map/upload`,queryParams:e,options:t})}}class i8{constructor(e){this.httpClient=e}create(e,t){return this.httpClient.request({method:"POST",url:at`dashboard`,data:e,options:t})}update(e,t){return this.httpClient.request({method:"PUT",url:at`dashboard`,data:e,options:t})}getAllRealmDashboards(e,t){return this.httpClient.request({method:"GET",url:at`dashboard/all/${e}`,options:t})}query(e,t){return this.httpClient.request({method:"POST",url:at`dashboard/query`,data:e,options:t})}delete(e,t,n){return this.httpClient.request({method:"DELETE",url:at`dashboard/${e}/${t}`,options:n})}get(e,t,n){return this.httpClient.request({method:"GET",url:at`dashboard/${e}/${t}`,options:n})}}class i7{constructor(e){this.httpClient=e}startTunnel(e,t){return this.httpClient.request({method:"POST",url:at`gateway/tunnel`,data:e,options:t})}stopTunnel(e,t){return this.httpClient.request({method:"DELETE",url:at`gateway/tunnel`,data:e,options:t})}getAllActiveTunnelInfos(e,t){return this.httpClient.request({method:"GET",url:at`gateway/tunnel/${e}`,options:t})}getGatewayActiveTunnelInfos(e,t,n){return this.httpClient.request({method:"GET",url:at`gateway/tunnel/${e}/${t}`,options:n})}getActiveTunnelInfo(e,t,n,o,r){return this.httpClient.request({method:"GET",url:at`gateway/tunnel/${e}/${t}/${n}/${o}`,options:r})}}class i9{constructor(e){this.httpClient=e}createAlarm(e,t,n){return this.httpClient.request({method:"POST",url:at`alarm`,queryParams:t,data:e,options:n})}getAlarms(e,t){return this.httpClient.request({method:"GET",url:at`alarm`,queryParams:e,options:t})}removeAlarms(e,t){return this.httpClient.request({method:"DELETE",url:at`alarm`,data:e,options:t})}setAssetLinks(e,t){return this.httpClient.request({method:"PUT",url:at`alarm/assets`,data:e,options:t})}getAlarm(e,t){return this.httpClient.request({method:"GET",url:at`alarm/${e}`,options:t})}removeAlarm(e,t){return this.httpClient.request({method:"DELETE",url:at`alarm/${e}`,options:t})}updateAlarm(e,t,n){return this.httpClient.request({method:"PUT",url:at`alarm/${e}`,data:t,options:n})}getAssetLinks(e,t,n){return this.httpClient.request({method:"GET",url:at`alarm/${e}/assets`,queryParams:t,options:n})}}class ae{constructor(e){this.httpClient=e}getServices(e,t){return this.httpClient.request({method:"GET",url:at`service`,queryParams:e,options:t})}registerService(e,t){return this.httpClient.request({method:"POST",url:at`service`,data:e,options:t})}getGlobalServices(e){return this.httpClient.request({method:"GET",url:at`service/global`,options:e})}registerGlobalService(e,t){return this.httpClient.request({method:"POST",url:at`service/global`,data:e,options:t})}deregisterService(e,t,n){return this.httpClient.request({method:"DELETE",url:at`service/${e}/${t}`,options:n})}getService(e,t,n){return this.httpClient.request({method:"GET",url:at`service/${e}/${t}`,options:n})}heartbeat(e,t,n){return this.httpClient.request({method:"PUT",url:at`service/${e}/${t}`,options:n})}}function at(e,...t){let n="";for(let o=0;o<t.length;o++)n+=e[o],n+=encodeURIComponent(t[o]);return n+e[e.length-1]}class an{constructor(e,t=iU.create()){this._notificationResource=new ar(e,t),this._gatewayClientResource=new ai(e,t),this._assetModelResource=new aa(e,t),this._userResource=new as(e,t),this._syslogResource=new ad(e,t),this._assetDatapointResource=new ac(e,t),this._flowResource=new al(e,t),this._provisioningResource=new am(e,t),this._assetPredictedDatapointResource=new au(e,t),this._realmResource=new af(e,t),this._configurationResource=new ab(e,t),this._consoleResource=new ah(e,t),this._assetResource=new ap(e,t),this._appResource=new a_(e,t),this._agentResource=new aF(e,t),this._statusResource=new ag(e,t),this._rulesResource=new ay(e,t),this._mapResource=new av(e,t),this._dashboardResource=new aw(e,t),this._gatewayServiceResource=new ak(e,t),this._alarmResource=new aM(e,t),this._externalServiceResource=new aE(e,t),this._assetResource=new ap(e,t)}get NotificationResource(){return this._notificationResource}get GatewayClientResource(){return this._gatewayClientResource}get AssetModelResource(){return this._assetModelResource}get UserResource(){return this._userResource}get SyslogResource(){return this._syslogResource}get AssetDatapointResource(){return this._assetDatapointResource}get FlowResource(){return this._flowResource}get ProvisioningResource(){return this._provisioningResource}get AssetPredictedDatapointResource(){return this._assetPredictedDatapointResource}get RealmResource(){return this._realmResource}get ConfigurationResource(){return this._configurationResource}get ConsoleResource(){return this._consoleResource}get AssetResource(){return this._assetResource}get AppResource(){return this._appResource}get AgentResource(){return this._agentResource}get StatusResource(){return this._statusResource}get RulesResource(){return this._rulesResource}get MapResource(){return this._mapResource}get DashboardResource(){return this._dashboardResource}get GatewayServiceResource(){return this._gatewayServiceResource}get AlarmResource(){return this._alarmResource}get ExternalServiceResource(){return this._externalServiceResource}}class ao{constructor(e){this.axios=e}request(e){let t={};t.method=e.method,t.url=e.url,t.params=e.queryParams,t.data=e.data,function(e,t){if(void 0!=t)for(let n in t)t.hasOwnProperty(n)&&(e[n]=t[n])}(t,e.options);let n=e.copyFn;return this.axios.request(t).then(e=>(n&&e.data&&(e.originalData=e.data,e.data=n(e.data)),e))}}class ar extends iW{constructor(e,t=iU.create()){t.defaults.baseURL=e,super(new ao(t))}}class ai extends iz{constructor(e,t=iU.create()){t.defaults.baseURL=e,super(new ao(t))}}class aa extends i${constructor(e,t=iU.create()){t.defaults.baseURL=e,super(new ao(t))}}class as extends iG{constructor(e,t=iU.create()){t.defaults.baseURL=e,super(new ao(t))}}class ad extends iq{constructor(e,t=iU.create()){t.defaults.baseURL=e,super(new ao(t))}}class ac extends iV{constructor(e,t=iU.create()){t.defaults.baseURL=e,super(new ao(t))}}class al extends iJ{constructor(e,t=iU.create()){t.defaults.baseURL=e,super(new ao(t))}}class am extends iK{constructor(e,t=iU.create()){t.defaults.baseURL=e,super(new ao(t))}}class au extends iX{constructor(e,t=iU.create()){t.defaults.baseURL=e,super(new ao(t))}}class af extends iQ{constructor(e,t=iU.create()){t.defaults.baseURL=e,super(new ao(t))}}class ab extends iZ{constructor(e,t=iU.create()){t.defaults.baseURL=e,super(new ao(t))}}class ah extends i0{constructor(e,t=iU.create()){t.defaults.baseURL=e,super(new ao(t))}}class ap extends i1{constructor(e,t=iU.create()){t.defaults.baseURL=e,super(new ao(t))}}class a_ extends i2{constructor(e,t=iU.create()){t.defaults.baseURL=e,super(new ao(t))}}class aF extends i4{constructor(e,t=iU.create()){t.defaults.baseURL=e,super(new ao(t))}}class ag extends i5{constructor(e,t=iU.create()){t.defaults.baseURL=e,super(new ao(t))}}class ay extends i3{constructor(e,t=iU.create()){t.defaults.baseURL=e,super(new ao(t))}}class av extends i6{constructor(e,t=iU.create()){t.defaults.baseURL=e,super(new ao(t))}}class aw extends i8{constructor(e,t=iU.create()){t.defaults.baseURL=e,super(new ao(t))}}class ak extends i7{constructor(e,t=iU.create()){t.defaults.baseURL=e,super(new ao(t))}}class aM extends i9{constructor(e,t=iU.create()){t.defaults.baseURL=e,super(new ao(t))}}class aE extends ae{constructor(e,t=iU.create()){t.defaults.baseURL=e,super(new ao(t))}}var aL=n(8183),aD=n.n(aL);iU.isAxiosError;let aA=new class{get api(){return this._client}constructor(){this._axiosInstance=iU.create(),this._axiosInstance.defaults.headers.common["Content-Type"]="application/json",this._axiosInstance.interceptors.request.use(e=>(e.paramsSerializer=e=>aD().stringify(e,{arrayFormat:"repeat"}),e))}get axiosInstance(){return this._axiosInstance}get baseUrl(){return this._baseUrl}setTimeout(e){this._axiosInstance.defaults.timeout=e}addRequestInterceptor(e){this._axiosInstance.interceptors.request.use(e)}initialise(e){this._baseUrl=e,this._client=new an(e,this._axiosInstance)}};var aT=function(e,t,n,o){return new(n||(n=Promise))(function(r,i){function a(e){try{d(o.next(e))}catch(e){i(e)}}function s(e){try{d(o.throw(e))}catch(e){i(e)}}function d(e){var t;e.done?r(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(a,s)}d((o=o.apply(e,t||[])).next())})};(ev=tE||(tE={})).DISCONNECTED="DISCONNECTED",ev.CONNECTED="CONNECTED",ev.CONNECTING="CONNECTING";let aC="SUBSCRIBED:",aS="UNAUTHORIZED:",ax="TRIGGERED:",aY="EVENT:";class aO{constructor(){this._disconnectRequested=!1,this._reconnectDelayMillis=aB.MIN_RECONNECT_DELAY,this._reconnectTimer=null,this._status=tE.DISCONNECTED,this._connectingDeferred=null,this._statusCallbacks=[],this._pendingSubscription=null,this._queuedSubscriptions=[],this._subscriptionMap=new Map,this._assetEventCallbackMap=new Map,this._attributeEventCallbackMap=new Map,this._unloading=!1}get status(){return this._status}subscribeStatusChange(e){this._statusCallbacks.push(e)}unsubscribeStatusChange(e){!function(e,t){if(0===e.length)return;let n=e.indexOf(t);n>=0&&e.splice(n,1)}(this._statusCallbacks,e)}connect(){return(console.debug("Attempting to connect to events:",this.endpointUrl),this._reconnectTimer&&(window.clearTimeout(this._reconnectTimer),this._reconnectTimer=null),this._status===tE.CONNECTED)?(console.debug("Already connected to events!"),Promise.resolve(!0)):((this._disconnectRequested=!1,this._connectingDeferred)?console.warn("Already connecting to events, continuing the previous one."):(this._onStatusChanged(tE.CONNECTING),this._connectingDeferred=new oF,this._doConnect().then(e=>{if(this._connectingDeferred){let t=this._connectingDeferred;e?(console.debug("Connected to event service: "+this.endpointUrl),this._reconnectDelayMillis=aB.MIN_RECONNECT_DELAY,this._onStatusChanged(tE.CONNECTED),window.setTimeout(()=>{this._onConnect()},0)):console.debug("Failed to connect to event service: "+this.endpointUrl),t.resolve(e)}}).finally(()=>{this._connectingDeferred=null})),this._connectingDeferred.promise)}disconnect(){console.debug("Disconnecting from event service: "+this.endpointUrl),this._disconnectRequested||(this._disconnectRequested=!0,this._reconnectTimer&&(window.clearTimeout(this._reconnectTimer),this._reconnectTimer=null),this.status!==tE.DISCONNECTED&&this._doDisconnect())}subscribe(e,t){let n={eventSubscription:e,callback:t,deferred:new oF};return null!=this._pendingSubscription||this._status!==tE.CONNECTED?(this._queuedSubscriptions.push(n),n.deferred.promise):(this._pendingSubscription=n,this._doSubscribe(e).then(e=>{if(this._pendingSubscription){let t=this._pendingSubscription;this._pendingSubscription=null,this._subscriptionMap.set(e,t),this._processNextSubscription();let n=t.deferred;t.deferred=null,n&&n.resolve(e)}},e=>{if(console.error(e),this._pendingSubscription){let t=this._pendingSubscription;this._pendingSubscription=null,this._processNextSubscription();let n=t.deferred;t.deferred=null,n&&n.reject(e)}}),this._pendingSubscription.deferred.promise)}unsubscribe(e){return aT(this,void 0,void 0,function*(){if(this._subscriptionMap.delete(e))return void this._doUnsubscribe(e);if(this._assetEventCallbackMap.delete(e)){if(this._assetEventPromise&&0===this._assetEventCallbackMap.size){let e=yield this._assetEventPromise;this._assetEventPromise=void 0,this.unsubscribe(e)}return}if(this._attributeEventCallbackMap.delete(e)&&this._attributeEventPromise&&0===this._attributeEventCallbackMap.size){let e=yield this._attributeEventPromise;this._attributeEventPromise=void 0,this.unsubscribe(e)}})}sendEvent(e){this._status===tE.CONNECTED&&this._doSend(e)}sendEventWithReply(e){return this._status!==tE.CONNECTED?Promise.reject("Not connected"):this._doSendWithReply(e)}subscribeAssetEvents(e,t,n){return aT(this,void 0,void 0,function*(){let o=e&&"string"!=typeof e[0]?e.map(e=>e.id):e,r="AssetEvent"+aO._subscriptionCounter++;if(!this._assetEventPromise){let e;ss.authenticated||(e={filterType:"asset",realm:ss.displayRealm});let t={eventType:"asset",filter:e};this._assetEventPromise=this.subscribe(t,e=>{this._assetEventCallbackMap.forEach(t=>t(e))})}return this._assetEventCallbackMap.set(r,e=>{let t=e.asset.id;o?o.find(e=>t===e)&&n(e):e.asset.realm===ss.displayRealm&&n(e)}),this._assetEventPromise.then(()=>{try{if(o&&t){let e={messageID:"read-assets:"+o.join(",")+":"+r,eventType:"read-assets",assetQuery:{ids:o}};this.sendEventWithReply(e).then(e=>{e.assets&&this._assetEventCallbackMap.has(r)&&e.assets.forEach(e=>{n({eventType:"asset",asset:e,cause:"READ"})})})}}catch(t){throw console.error("Failed to subscribe to asset events for assets: "+e),r&&this.unsubscribe(r),t}return r})})}subscribeAttributeEvents(e,t,n){return aT(this,void 0,void 0,function*(){let o=e&&"string"!=typeof e[0],r=o?e.map(e=>e.id):e,i=o?e:void 0,a="AttributeEvent"+aO._subscriptionCounter++;if(!this._attributeEventPromise){let e;ss.authenticated||(e={filterType:"asset",realm:ss.displayRealm});let t={eventType:"attribute",filter:e};this._attributeEventPromise=this.subscribe(t,e=>{this._attributeEventCallbackMap.forEach(t=>t(e))})}let s=t=>{let i=t.ref;o?e.forEach(e=>{i.id===e.id&&i.name===e.name&&n(t)}):r?r.find(e=>i.id===e)&&n(t):t.realm===ss.displayRealm&&n(t)};return this._attributeEventCallbackMap.set(a,s),this._attributeEventPromise.then(()=>{try{if(t&&r){let e={messageID:"read-assets:"+r.join(",")+":"+a,eventType:"read-assets",assetQuery:{ids:r}};this.sendEventWithReply(e).then(e=>{e.assets&&this._attributeEventCallbackMap.has(a)&&e.assets.forEach(e=>{e.attributes&&Object.entries(e.attributes).forEach(([t,n])=>{(!i||i.find(n=>n.id===e.id&&n.name===t))&&s({eventType:"attribute",timestamp:n.timestamp,value:n.value,ref:{id:e.id,name:t}})})})})}}catch(t){throw console.error("Failed to subscribe to asset events for assets: "+e),a&&this.unsubscribe(a),t}return a})})}_processNextSubscription(){this._status===tE.CONNECTED&&0!==this._queuedSubscriptions.length&&setTimeout(()=>{let e=this._queuedSubscriptions.shift();e&&this.subscribe(e.eventSubscription,e.callback).then(t=>{let n=e.deferred;e.deferred=null,n&&n.resolve(t)},t=>{let n=e.deferred;e.deferred=null,n&&n.reject(t)})},0)}_onStatusChanged(e){e!==this._status&&(console.debug("Event provider status changed: "+e),this._status=e,this._unloading||window.setTimeout(()=>{this._statusCallbacks.forEach(t=>t(e))},0))}_onMessageReceived(e,t){let n=this._subscriptionMap.get(e);n&&n.callback(t)}_onConnect(){if(Object.keys(this._subscriptionMap).length>0){for(let e in this._subscriptionMap)this._subscriptionMap.has(e)&&this._queuedSubscriptions.unshift(this._subscriptionMap.get(e));this._subscriptionMap.clear()}this._processNextSubscription()}_onDisconnect(){this._status===tE.CONNECTED&&this._onStatusChanged(tE.DISCONNECTED),this._pendingSubscription&&(this._queuedSubscriptions.unshift(this._pendingSubscription),this._pendingSubscription=null),this._onStatusChanged(tE.CONNECTING),this._scheduleReconnect()}_scheduleReconnect(){this._reconnectTimer||!this._disconnectRequested&&(console.debug("Event provider scheduling reconnect in "+this._reconnectDelayMillis+"ms"),this._reconnectTimer=window.setTimeout(()=>{this._disconnectRequested||this.connect()},this._reconnectDelayMillis),this._reconnectDelayMillis<aB.MAX_RECONNECT_DELAY&&(this._reconnectDelayMillis=Math.min(aB.MAX_RECONNECT_DELAY,this._reconnectDelayMillis+3e3)))}}aO.MIN_RECONNECT_DELAY=0,aO.MAX_RECONNECT_DELAY=3e4,aO._subscriptionCounter=0;class aB extends aO{get endpointUrl(){return this._endpointUrl}constructor(e){super(),this._webSocket=void 0,this._connectDeferred=null,this._subscribeDeferred=null,this._repliesDeferred=new Map,this._endpointUrl=(e.startsWith("https:")?"wss":"ws")+"://"+e.substr(e.indexOf("://")+3)+"/websocket/events",window.addEventListener("beforeunload",()=>{this._unloading=!0,this.disconnect()})}_doConnect(){let e=this._endpointUrl+"?Realm="+ss.config.realm;return this._connectDeferred=new oF,(ss.authenticated?ss.retrieveAuthorizationHeader().then(t=>{e+="&Authorization="+t}):Promise.resolve()).finally(()=>{this._webSocket=new WebSocket(e),this._webSocket.onopen=e=>{if(this._connectDeferred){let e=this._connectDeferred;this._connectDeferred=null,e.resolve(!0)}},this._webSocket.onerror=e=>{if(console.error("Event provider error:",e),this._connectDeferred){let e=this._connectDeferred;this._connectDeferred=null,e.resolve(!1)}else this._beforeDisconnect()},this._webSocket.onclose=()=>{if(console.warn("The WebSocket connection of the event provider has been closed."),this._webSocket=void 0,this._connectDeferred){let e=this._connectDeferred;this._connectDeferred=null,e.resolve(!1)}else this._beforeDisconnect()},this._webSocket.onmessage=e=>{let t=e.data;if(t&&t.startsWith(aC)){let e=JSON.parse(t.substring(aC.length)),n=this._subscribeDeferred;this._subscribeDeferred=null,n&&n.resolve(e.subscriptionId)}else if(t.startsWith(aS)){let e=JSON.parse(t.substring(aS.length)),n=this._subscribeDeferred;this._subscribeDeferred=null,n&&(console.warn("Unauthorized event subscription: "+JSON.stringify(e,null,2)),n.reject("Unauthorized"))}else if(t.startsWith(ax)){let e=JSON.parse(t.substring(ax.length));e.events&&e.events.forEach(t=>{this._onMessageReceived(e.subscriptionId,t)})}else if(t.startsWith(aY)){let e=JSON.parse(t.substring(aY.length));if(e.messageID){let t=this._repliesDeferred.get(e.messageID);this._repliesDeferred.delete(e.messageID),t&&t.resolve(e)}}}}),this._connectDeferred.promise}_beforeDisconnect(){this._onDisconnect()}_doDisconnect(){var e;null==(e=this._webSocket)||e.close(),this._subscribeDeferred=null,this._repliesDeferred.clear()}_doSubscribe(e){return this._webSocket?this._subscribeDeferred?Promise.reject("There's already a pending subscription"):(this._subscribeDeferred=new oF,e.subscriptionId||(e.subscriptionId=aB._subscriptionCounter+++""),this._webSocket.send("SUBSCRIBE:"+JSON.stringify(e)),this._subscribeDeferred.promise):Promise.reject("Not connected")}_doUnsubscribe(e){this._webSocket&&this._webSocket.send("UNSUBSCRIBE:"+JSON.stringify({subscriptionId:e}))}_doSend(e){let t=aY+JSON.stringify(e);this._webSocket.send(t)}_doSendWithReply(e){if(e.messageID||(e.messageID=(new Date().getTime()+10*Math.random()).toString(10)),this._repliesDeferred.has(e.messageID))return Promise.reject("There's already a pending send and reply with this ID");let t=new oF;return this._repliesDeferred.set(e.messageID,t),this._webSocket.send(aY+JSON.stringify(e)),t.promise}}aB._subscriptionCounter=1;let aR=["__proto__","constructor","prototype"];function aP(e){return!("string"!=typeof e||0===e.length||e.length>128||aR.indexOf(e)>-1||e.indexOf("..")>-1||e.indexOf("\\")>-1||/[?#%:\s]/.test(e)||/[\x00-\x1F\x7F]/.test(e))}function aN(e){return!(!aP(e)||e.indexOf("/")>-1||e.indexOf("@")>-1)}let aI={lng:aN,ns:function(e){return!(!aP(e)||e.indexOf("//")>-1)}};function aj(e){return"string"!=typeof e?e:e.replace(/[\r\n\x00-\x1F\x7F]/g," ")}function aH(){return"function"==typeof XMLHttpRequest||"object"==typeof XMLHttpRequest}let aU=/\{\{(.+?)\}\}/g;function aW(e,t){let n=!1,o=e.replace(aU,(e,o)=>{let r=o.trim();if(aR.indexOf(r)>-1)return e;let i=t[r];if(null==i)return e;let a=aI[r]||aN,s=String(i).split("+");for(let t of s)if(!a(t))return n=!0,e;return s.join("+")});return n?null:o}let az="u">typeof globalThis?globalThis:"u">typeof global?global:"u">typeof window?window:void 0;"function"==typeof fetch?t=fetch:az&&"function"==typeof az.fetch&&(t=az.fetch);let a$=aH()&&az?az.XMLHttpRequest:void 0,aG="function"==typeof ActiveXObject&&az?az.ActiveXObject:void 0,aq=["__proto__","constructor","prototype"],aV=(e,t)=>{if(t&&"object"==typeof t){let n="";for(let e of Object.keys(t))aq.indexOf(e)>-1||(n+="&"+encodeURIComponent(e)+"="+encodeURIComponent(t[e]));if(!n)return e;e=e+(-1!==e.indexOf("?")?"&":"?")+n.slice(1)}return e},aJ=(e,n,o,r)=>{let i=e=>{if(!e.ok)return o(e.statusText||"Error",{status:e.status});e.text().then(t=>{o(null,{status:e.status,data:t})}).catch(o)};if(r){let t=r(e,n);if(t instanceof Promise)return void t.then(i).catch(o)}"function"==typeof fetch?fetch(e,n).then(i).catch(o):t(e,n).then(i).catch(o)},aK=(e,n,o,r)=>{if("function"==typeof o&&(r=o,o=void 0),r=r||(()=>{}),t&&0!==n.indexOf("file:")){var i=n,a=o,s=r;e.queryStringParams&&(i=aV(i,e.queryStringParams));let t={..."function"==typeof e.customHeaders?e.customHeaders():e.customHeaders};"u"<typeof window&&"u">typeof global&&void 0!==global.process&&global.process.versions&&global.process.versions.node&&(t["User-Agent"]=`i18next-http-backend (node/${global.process.version}; ${global.process.platform} ${global.process.arch})`),a&&(t["Content-Type"]="application/json");let d="function"==typeof e.requestOptions?e.requestOptions(a):e.requestOptions,c={method:a?"POST":"GET",body:a?e.stringify(a):void 0,headers:t,...e._omitFetchOptions?{}:d},l="function"==typeof e.alternateFetch&&e.alternateFetch.length>=1?e.alternateFetch:void 0;try{aJ(i,c,s,l)}catch(t){if(!d||0===Object.keys(d).length||!t.message||0>t.message.indexOf("not implemented"))return s(t);try{Object.keys(d).forEach(e=>{delete c[e]}),aJ(i,c,s,l),e._omitFetchOptions=!0}catch(e){s(e)}}return}if(aH()||"function"==typeof ActiveXObject){var d=n,c=o,l=r;c&&"object"==typeof c&&(c=aV("",c).slice(1)),e.queryStringParams&&(d=aV(d,e.queryStringParams));try{let t=a$?new a$:new aG("MSXML2.XMLHTTP.3.0");t.open(c?"POST":"GET",d,1),e.crossDomain||t.setRequestHeader("X-Requested-With","XMLHttpRequest"),t.withCredentials=!!e.withCredentials,c&&t.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),t.overrideMimeType&&t.overrideMimeType("application/json");let n=e.customHeaders;if(n="function"==typeof n?n():n)for(let e of Object.keys(n))aq.indexOf(e)>-1||t.setRequestHeader(e,n[e]);t.onreadystatechange=()=>{t.readyState>3&&l(t.status>=400?t.statusText:null,{status:t.status,data:t.responseText})},t.send(c)}catch(e){console&&console.log(e)}return}r(Error("No fetch and no xhr implementation found!"))};var aX=class{constructor(e,t={},n={}){this.services=e,this.options=t,this.allOptions=n,this.type="backend",this.init(e,t,n)}init(e,t={},n={}){if(this.services=e,this.options={...{loadPath:"/locales/{{lng}}/{{ns}}.json",addPath:"/locales/add/{{lng}}/{{ns}}",parse:e=>JSON.parse(e),stringify:JSON.stringify,parsePayload:(e,t,n)=>({[t]:n||""}),parseLoadPayload:(e,t)=>void 0,request:aK,reloadInterval:"u"<typeof window&&36e5,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:"cors",credentials:"same-origin",cache:"default"}},...this.options||{},...t},this.allOptions=n,this.services&&this.options.reloadInterval){let e=setInterval(()=>this.reload(),this.options.reloadInterval);"object"==typeof e&&"function"==typeof e.unref&&e.unref()}}readMulti(e,t,n){this._readAny(e,e,t,t,n)}read(e,t,n){this._readAny([e],e,[t],t,n)}_readAny(e,t,n,o,r){var i,a;let s=this.options.loadPath;"function"==typeof this.options.loadPath&&(s=this.options.loadPath(e,n)),(s=(a=i=s)&&"function"==typeof a.then?i:Promise.resolve(i)).then(i=>{if(!i)return r(null,{});let a=aW(i,{lng:e.join("+"),ns:n.join("+")});if(null==a)return r(Error("i18next-http-backend: unsafe lng/ns value — refusing to build request URL for languages=["+e.map(aj).join(", ")+"] namespaces=["+n.map(aj).join(", ")+"]"),!1);this.loadUrl(a,r,t,o)})}loadUrl(e,t,n,o){let r=this.options.parseLoadPayload("string"==typeof n?[n]:n,"string"==typeof o?[o]:o),i=aj(function(e){if("string"!=typeof e||0===e.length)return e;try{let t=new URL(e);if(t.username||t.password)return t.username="",t.password="",t.toString();return e}catch(t){return e.replace(/(\/\/)[^/@\s]+@/g,"$1")}}(e));this.options.request(this.options,e,r,(e,r)=>{let a,s;if(r&&(r.status>=500&&r.status<600||!r.status))return t("failed loading "+i+"; status code: "+r.status,!0);if(r&&r.status>=400&&r.status<500)return t("failed loading "+i+"; status code: "+r.status,!1);if(!r&&e&&e.message){let n=e.message.toLowerCase();if(["failed","fetch","network","load"].find(e=>n.indexOf(e)>-1))return t("failed loading "+i+": "+aj(e.message),!0)}if(e)return t(e,!1);try{a="string"==typeof r.data?this.options.parse(r.data,n,o):r.data}catch(e){s="failed parsing "+i+" to json"}if(s)return t(s,!1);t(null,a)})}create(e,t,n,o,r){if(!this.options.addPath)return;"string"==typeof e&&(e=[e]);let i=this.options.parsePayload(t,n,o),a=0,s=[],d=[];e.forEach(n=>{let o=this.options.addPath;"function"==typeof this.options.addPath&&(o=this.options.addPath(n,t));let c=aW(o,{lng:n,ns:t});if(null==c){a+=1,r&&a===e.length&&r(s,d);return}this.options.request(this.options,c,i,(t,n)=>{a+=1,s.push(t),d.push(n),a===e.length&&"function"==typeof r&&r(s,d)})})}reload(){let{backendConnector:e,languageUtils:t,logger:n}=this.services,o=e.language;if(o&&"cimode"===o.toLowerCase())return;let r=[],i=e=>{t.toResolveHierarchy(e).forEach(e=>{0>r.indexOf(e)&&r.push(e)})};i(o),this.allOptions.preload&&this.allOptions.preload.forEach(e=>i(e)),r.forEach(t=>{this.allOptions.ns.forEach(o=>{e.read(t,o,"read",null,null,(r,i)=>{r&&n.warn(`loading namespace ${o} for language ${t} failed`,r),!r&&i&&n.log(`loaded namespace ${o} for language ${t}`,i),e.loaded(`${t}|${o}`,r,i)})})})}};aX.type="backend";let aQ=e=>(...t)=>({_$litDirective$:e,values:t});class aZ{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,n){this._$Ct=e,this._$AM=t,this._$Ci=n}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}}class a0 extends aZ{constructor(e){if(super(e),this.it=nm,2!==e.type)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===nm||null==e)return this._t=void 0,this.it=e;if(e===nl)return e;if("string"!=typeof e)throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.it)return this._t;this.it=e;let t=[e];return t.raw=t,this._t={_$litType$:this.constructor.resultType,strings:t,values:[]}}}a0.directiveName="unsafeHTML",a0.resultType=1,aQ(a0);class a1 extends a0{}a1.directiveName="unsafeSVG",a1.resultType=2;let a2=aQ(a1),a4={logo:'<path style=\'pointer-events: var(--or-icon-pointer-events, none);\' fill="#C4D600" d="m11.96125,23.85096c-6.56773,0 -11.90971,-5.34202 -11.90971,-11.90862l2.49411,0c0,5.19176 4.22389,9.41568 9.41561,9.41568c5.19053,0 9.41561,-4.22392 9.41561,-9.41568c0,-5.19176 -4.22389,-9.41568 -9.41561,-9.41568l0,-2.49413c6.56655,0 11.90971,5.34439 11.90971,11.9098c0,6.5666 -5.34316,11.90862 -11.90971,11.90862l0,0z" /><path fill="#4E9D2D" d="m10.25094,20.38647c-2.26848,-0.47231 -4.21822,-1.80199 -5.48741,-3.74009s-1.70892,-4.25777 -1.23545,-6.52625c0.47347,-2.26965 1.80315,-4.21822 3.74242,-5.48857c1.93926,-1.27035 4.25661,-1.70892 6.52625,-1.23545c4.68471,0.97719 7.70121,5.5828 6.72286,10.26635l-2.39994,-0.49907c0.70149,-3.36085 -1.4623,-6.66585 -4.82431,-7.36734c-1.62866,-0.33969 -3.29105,-0.02559 -4.68238,0.88645c-1.39134,0.91088 -2.34526,2.3092 -2.68495,3.93786c-0.33853,1.62633 -0.02443,3.28988 0.88645,4.68122c0.91088,1.39134 2.3092,2.34526 3.93786,2.68379l-0.50139,2.4011l0,0z"/><path fill="#1D5632"d="m12.03064,17.49616c-0.09524,0 -0.19048,-0.00116 -0.28457,-0.00465c-1.49833,-0.0755 -2.87818,-0.72942 -3.88636,-1.84097c-1.00818,-1.11271 -1.52156,-2.54948 -1.44722,-4.05013l2.44378,0.12196c-0.04181,0.84557 0.24856,1.65745 0.81769,2.28466c0.56681,0.62721 1.34733,0.99656 2.1929,1.03838c0.84208,0.03833 1.65629,-0.2474 2.2835,-0.81653c0.62837,-0.56797 0.99656,-1.34617 1.03954,-2.19174c0.08711,-1.74573 -1.26371,-3.23708 -3.00943,-3.3242l0.12196,-2.44378c3.09422,0.15332 5.4869,2.79455 5.33358,5.88877c-0.07434,1.49949 -0.72942,2.87818 -1.84097,3.8852c-1.04186,0.94313 -2.36945,1.45303 -3.7644,1.45303l0,0z"/>',"logo-grayscale":'<path fill="#e2e2e2" d="m11.96125,23.85096c-6.56773,0 -11.90971,-5.34202 -11.90971,-11.90862l2.49411,0c0,5.19176 4.22389,9.41568 9.41561,9.41568c5.19053,0 9.41561,-4.22392 9.41561,-9.41568c0,-5.19176 -4.22389,-9.41568 -9.41561,-9.41568l0,-2.49413c6.56655,0 11.90971,5.34439 11.90971,11.9098c0,6.5666 -5.34316,11.90862 -11.90971,11.90862l0,0z" /><path fill="#bcbcbc" d="m10.25094,20.38647c-2.26848,-0.47231 -4.21822,-1.80199 -5.48741,-3.74009s-1.70892,-4.25777 -1.23545,-6.52625c0.47347,-2.26965 1.80315,-4.21822 3.74242,-5.48857c1.93926,-1.27035 4.25661,-1.70892 6.52625,-1.23545c4.68471,0.97719 7.70121,5.5828 6.72286,10.26635l-2.39994,-0.49907c0.70149,-3.36085 -1.4623,-6.66585 -4.82431,-7.36734c-1.62866,-0.33969 -3.29105,-0.02559 -4.68238,0.88645c-1.39134,0.91088 -2.34526,2.3092 -2.68495,3.93786c-0.33853,1.62633 -0.02443,3.28988 0.88645,4.68122c0.91088,1.39134 2.3092,2.34526 3.93786,2.68379l-0.50139,2.4011l0,0z"/><path fill="#8f8f8f"d="m12.03064,17.49616c-0.09524,0 -0.19048,-0.00116 -0.28457,-0.00465c-1.49833,-0.0755 -2.87818,-0.72942 -3.88636,-1.84097c-1.00818,-1.11271 -1.52156,-2.54948 -1.44722,-4.05013l2.44378,0.12196c-0.04181,0.84557 0.24856,1.65745 0.81769,2.28466c0.56681,0.62721 1.34733,0.99656 2.1929,1.03838c0.84208,0.03833 1.65629,-0.2474 2.2835,-0.81653c0.62837,-0.56797 0.99656,-1.34617 1.03954,-2.19174c0.08711,-1.74573 -1.26371,-3.23708 -3.00943,-3.3242l0.12196,-2.44378c3.09422,0.15332 5.4869,2.79455 5.33358,5.88877c-0.07434,1.49949 -0.72942,2.87818 -1.84097,3.8852c-1.04186,0.94313 -2.36945,1.45303 -3.7644,1.45303l0,0z"/>',"logo-plain":"m11.9925,23.91349c-6.58498,0 -11.94099,-5.35605 -11.94099,-11.9399l2.50066,0c0,5.20539 4.23498,9.44041 9.44033,9.44041c5.20416,0 9.44033,-4.23502 9.44033,-9.44041c0,-5.20539 -4.23498,-9.44041 -9.44033,-9.44041l0,-2.50068c6.5838,0 11.94099,5.35842 11.94099,11.94108c0,6.58385 -5.35719,11.9399 -11.94099,11.9399l0,0zm-1.80787,-3.27769c-2.31323,-0.48163 -4.30141,-1.83755 -5.59563,-3.81389s-1.74263,-4.34178 -1.25982,-6.65502c0.48281,-2.31443 1.83872,-4.30145 3.81623,-5.59686c1.97751,-1.29542 4.34056,-1.74264 6.65497,-1.25983c4.77711,0.99647 7.8531,5.69295 6.85545,10.46891l-2.44727,-0.50891c0.71532,-3.42716 -1.49114,-6.79738 -4.91946,-7.5127c-1.66078,-0.34639 -3.35596,-0.0261 -4.77474,0.90394c-1.41878,0.92886 -2.39152,2.35476 -2.73791,4.01555c-0.3452,1.65842 -0.02491,3.3548 0.90394,4.77359c0.92885,1.41879 2.35475,2.39154 4.01552,2.73675l-0.51128,2.44848l0,0zm1.81499,-2.92536c-0.09727,0 -0.19455,-0.00119 -0.29064,-0.00475c-1.53029,-0.07711 -2.93958,-0.74498 -3.96926,-1.88025c-1.02968,-1.13646 -1.55401,-2.60388 -1.47809,-4.13655l2.49591,0.12456c-0.04271,0.86361 0.25386,1.69282 0.83513,2.33341c0.5789,0.64059 1.37607,1.01783 2.23968,1.06053c0.86005,0.03915 1.69162,-0.25268 2.33221,-0.83395c0.64177,-0.58009 1.01782,-1.3749 1.06171,-2.23851c0.08897,-1.78298 -1.29066,-3.30616 -3.07362,-3.39513l0.12456,-2.49593c3.16022,0.15659 5.60394,2.85419 5.44735,6.01443c-0.07592,1.53149 -0.74498,2.9396 -1.88024,3.9681c-1.06408,0.96326 -2.41999,1.48403 -3.8447,1.48403l0,0z",marker:'<ellipse fill="#000" opacity="0.2" ry="1.5" rx="4" cy="22.5" cx="12" /><path style=\'pointer-events: var(--or-icon-pointer-events, none);\' d="m11.999999,0a8.437501,8.344057 0 0 1 8.437501,8.344057c0,6.500779 -5.798864,6.280799 -8.437501,14.412461c-2.638637,-8.131662 -8.437501,-7.911683 -8.437501,-14.412461a8.437501,8.344057 0 0 1 8.437501,-8.344057z" />',trash:'<path d="M6 9V19C6 19.5523 6.44772 20 7 20H17C17.5523 20 18 19.5523 18 19V9" stroke="#E21D12" stroke-width="2"/><path d="M14 11L14 16" stroke="#E21D12" stroke-width="2" stroke-linecap="round"/><path d="M10 11V16" stroke="#E21D12" stroke-width="2" stroke-linecap="round"/><path d="M5 6H8.5H19" stroke="#E21D12" stroke-width="2" stroke-linecap="round"/><path d="M8.09516 4.02871L7 6H17L15.9048 4.02871C15.5521 3.39378 14.8829 3 14.1565 3H9.84347C9.11714 3 8.4479 3.39378 8.09516 4.02871Z" fill="#E21D12"/>',compass:"<path style='fill: rgba(2,3,2,0.94)' d='M11.1679 2.74808C11.5638 2.15434 12.4362 2.15434 12.8321 2.74808L17.3635 9.5453C17.8066 10.2099 17.3302 11.1 16.5315 11.1H7.46852C6.66982 11.1 6.19343 10.2099 6.63647 9.5453L11.1679 2.74808Z'/><path style='fill: rgba(34,38,34,0.26)' d='M12.8321 21.2519C12.4362 21.8457 11.5638 21.8457 11.1679 21.2519L6.63647 14.4547C6.19343 13.7901 6.66982 12.9 7.46852 12.9H16.5315C17.3302 12.9 17.8066 13.7901 17.3635 14.4547L12.8321 21.2519Z'/>"};var a5=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a};class a3 extends CustomEvent{constructor(){super(a3.NAME,{bubbles:!0,composed:!0})}}a3.NAME="or-iconset-added";let a6=new class{constructor(){this._icons={}}addIconSet(e,t){this._icons[e]=t,this._defaultIconSet||(this._defaultIconSet=t),t.onAdd&&t.onAdd(),window.dispatchEvent(new a3)}getIconSet(e){return this._icons[e]}getIconTemplate(e){if(!e)return nc``;let t=(e||"").split(":"),n=t.pop(),o=t.pop(),r=this._defaultIconSet;return(o&&(r=this.getIconSet(o)),n&&r)?r.getIconTemplate(n):nc``}},a8=class extends nC{constructor(){super(...arguments),this._handler=e=>{this._updateIcon()}}static get styles(){return[tP`
10
+ `;class nC extends nD{static finalizeStyles(e){return[nT,...super.finalizeStyles(e)]}}let nS=e=>(t,n)=>{void 0!==n?n.addInitializer(()=>{customElements.define(e,t)}):customElements.define(e,t)},nx={attribute:!0,type:String,converter:tK,reflect:!1,hasChanged:tX};function nY(e){return(t,n)=>{let o;return"object"==typeof n?((e=nx,t,n)=>{let{kind:o,metadata:r}=n,i=globalThis.litPropertyMetadata.get(r);if(void 0===i&&globalThis.litPropertyMetadata.set(r,i=new Map),"setter"===o&&((e=Object.create(e)).wrapped=!0),i.set(n.name,e),"accessor"===o){let{name:o}=n;return{set(n){let r=t.get.call(this);t.set.call(this,n),this.requestUpdate(o,r,e)},init(t){return void 0!==t&&this.C(o,void 0,e,t),t}}}if("setter"===o){let{name:o}=n;return function(n){let r=this[o];t.call(this,n),this.requestUpdate(o,r,e)}}throw Error("Unsupported decorator location: "+o)})(e,t,n):(o=t.hasOwnProperty(n),t.constructor.createProperty(n,e),o?Object.getOwnPropertyDescriptor(t,n):void 0)}}let nO=(e,t,n)=>(n.configurable=!0,n.enumerable=!0,Reflect.decorate&&"object"!=typeof t&&Object.defineProperty(e,t,n),n);function nB(t){return(n,o)=>nO(n,o,{get(){return(this.renderRoot??(e??=document.createDocumentFragment())).querySelectorAll(t)}})}function nR(e){return(t,n)=>{let{slot:o,selector:r}=e??{},i="slot"+(o?`[name=${o}]`:":not([name])");return nO(t,n,{get(){let t=this.renderRoot?.querySelector(i),n=t?.assignedElements(e)??[];return void 0===r?n:n.filter(e=>e.matches(r))}})}}function*nP(e,t){if(void 0!==e){let n=0;for(let o of e)yield t(o,n++)}}n(4532),(f=eL||(eL={})).CREATE="CREATE",f.UPDATE="UPDATE",f.DELETE="DELETE",f.DELETE_FINISHED="DELETE_FINISHED",(b=eD||(eD={})).LOW="LOW",b.MEDIUM="MEDIUM",b.HIGH="HIGH",(h=eA||(eA={})).MANUAL="MANUAL",h.CLIENT="CLIENT",h.GLOBAL_RULESET="GLOBAL_RULESET",h.REALM_RULESET="REALM_RULESET",h.ASSET_RULESET="ASSET_RULESET",h.AGENT="AGENT",(p=eT||(eT={})).OPEN="OPEN",p.ACKNOWLEDGED="ACKNOWLEDGED",p.IN_PROGRESS="IN_PROGRESS",p.RESOLVED="RESOLVED",p.CLOSED="CLOSED",(_=eC||(eC={})).BOTTOM_LEFT="BOTTOM_LEFT",_.BOTTOM_RIGHT="BOTTOM_RIGHT",_.TOP_LEFT="TOP_LEFT",_.TOP_RIGHT="TOP_RIGHT",(F=eS||(eS={})).CREATE="CREATE",F.READ="READ",F.UPDATE="UPDATE",F.DELETE="DELETE",(g=ex||(ex={})).NONE="NONE",g.FORECAST="FORECAST",g.SETPOINT="SETPOINT",(y=eY||(eY={})).DISCONNECTED="DISCONNECTED",y.CONNECTING="CONNECTING",y.DISCONNECTING="DISCONNECTING",y.CONNECTED="CONNECTED",y.DISABLED="DISABLED",y.WAITING="WAITING",y.ERROR="ERROR",y.STOPPED="STOPPED",(v=eO||(eO={})).REQUEST_START="REQUEST_START",v.REQUEST_REPEATING="REQUEST_REPEATING",v.REQUEST_CANCEL="REQUEST_CANCEL",v.READY="READY",v.COMPLETED="COMPLETED",v.RUNNING="RUNNING",v.CANCELLED="CANCELLED",(w=eB||(eB={})).TOGGLE="TOGGLE",w.INCREMENT="INCREMENT",w.DECREMENT="DECREMENT",w.NEGATE="NEGATE",(k=eR||(eR={})).ASSET_NOT_FOUND="ASSET_NOT_FOUND",k.ATTRIBUTE_NOT_FOUND="ATTRIBUTE_NOT_FOUND",k.INSUFFICIENT_ACCESS="INSUFFICIENT_ACCESS",k.INVALID_VALUE="INVALID_VALUE",k.INTERCEPTOR_FAILURE="INTERCEPTOR_FAILURE",k.STATE_STORAGE_FAILED="STATE_STORAGE_FAILED",k.CANNOT_PROCESS="CANNOT_PROCESS",k.QUEUE_FULL="QUEUE_FULL",k.UNKNOWN="UNKNOWN",k.ASSET_ID_MISSING="ASSET_ID_MISSING",k.ATTRIBUTE_NAME_MISSING="ATTRIBUTE_NAME_MISSING",(M=eP||(eP={})).PUBLIC="PUBLIC",M.SHARED="SHARED",M.PRIVATE="PRIVATE",(E=eN||(eN={})).OFF="OFF",E.ONE_MIN="ONE_MIN",E.FIVE_MIN="FIVE_MIN",E.QUARTER="QUARTER",E.ONE_HOUR="ONE_HOUR",(L=eI||(eI={})).WRAP_TO_SINGLE_COLUMN="WRAP_TO_SINGLE_COLUMN",L.KEEP_LAYOUT="KEEP_LAYOUT",L.REDIRECT="REDIRECT",L.BLOCK_DEVICE="BLOCK_DEVICE",(D=ej||(ej={})).CSV="CSV",D.CSV_CROSSTAB="CSV_CROSSTAB",D.CSV_CROSSTAB_MINUTE="CSV_CROSSTAB_MINUTE",(A=eH||(eH={})).MINUTE="MINUTE",A.HOUR="HOUR",A.DAY="DAY",A.WEEK="WEEK",A.MONTH="MONTH",A.YEAR="YEAR",(T=eU||(eU={})).MIN="MIN",T.AVG="AVG",T.MAX="MAX",T.DIFFERENCE="DIFFERENCE",T.COUNT="COUNT",T.SUM="SUM",T.MODE="MODE",T.MEDIAN="MEDIAN",(C=eW||(eW={})).TERMINATING="TERMINATING",C.DISABLED="DISABLED",C.ALREADY_CONNECTED="ALREADY_CONNECTED",C.UNRECOGNISED="UNRECOGNISED",C.PERMANENT_ERROR="PERMANENT_ERROR",C.SYNC_ERROR="SYNC_ERROR",(S=ez||(ez={})).HTTPS="HTTPS",S.HTTP="HTTP",S.TCP="TCP",(x=e$||(e$={})).GET="GET",x.POST="POST",x.PUT="PUT",x.DELETE="DELETE",x.OPTIONS="OPTIONS",x.PATCH="PATCH",(Y=eG||(eG={})).KEYCLOAK="KEYCLOAK",Y.NONE="NONE",(O=eq||(eq={})).WEBSOCKET="WEBSOCKET",O.POLLING="POLLING",(B=eV||(eV={})).INTERNAL="INTERNAL",B.CLIENT="CLIENT",B.GLOBAL_RULESET="GLOBAL_RULESET",B.REALM_RULESET="REALM_RULESET",B.ASSET_RULESET="ASSET_RULESET",(R=eJ||(eJ={})).REALM="REALM",R.USER="USER",R.ASSET="ASSET",R.CUSTOM="CUSTOM",(P=eK||(eK={})).NORMAL="NORMAL",P.HIGH="HIGH",(N=eX||(eX={})).DEVICE="DEVICE",N.TOPIC="TOPIC",N.CONDITION="CONDITION",(I=eQ||(eQ={})).ALWAYS="ALWAYS",I.ONCE="ONCE",I.HOURLY="HOURLY",I.DAILY="DAILY",I.WEEKLY="WEEKLY",I.MONTHLY="MONTHLY",I.ANNUALLY="ANNUALLY",(j=eZ||(eZ={})).TITLE="TITLE",j.SOURCE="SOURCE",j.STATUS="STATUS",j.SENT_ON="SENT_ON",j.DELIVERED_ON="DELIVERED_ON",(H=e0||(e0={})).MESSAGE_INVALID="MESSAGE_INVALID",H.CERTIFICATE_INVALID="CERTIFICATE_INVALID",H.UNAUTHORIZED="UNAUTHORIZED",H.FORBIDDEN="FORBIDDEN",H.UNIQUE_ID_MISMATCH="UNIQUE_ID_MISMATCH",H.CONFIG_DISABLED="CONFIG_DISABLED",H.USER_DISABLED="USER_DISABLED",H.SERVER_ERROR="SERVER_ERROR",H.ASSET_ERROR="ASSET_ERROR",H.SERVER_BUSY="SERVER_BUSY",(U=e1||(e1={})).PRIVATE="PRIVATE",U.PROTECTED="PROTECTED",U.PUBLIC="PUBLIC",(W=e2||(e2={})).EXACT="EXACT",W.BEGIN="BEGIN",W.END="END",W.CONTAINS="CONTAINS",(z=e4||(e4={})).EQUALS="EQUALS",z.GREATER_THAN="GREATER_THAN",z.GREATER_EQUALS="GREATER_EQUALS",z.LESS_THAN="LESS_THAN",z.LESS_EQUALS="LESS_EQUALS",z.BETWEEN="BETWEEN",($=e5||(e5={})).CREATED_ON="CREATED_ON",$.NAME="NAME",$.ASSET_TYPE="ASSET_TYPE",$.PARENT_ID="PARENT_ID",$.REALM="REALM",(G=e3||(e3={})).RESTRICTED="RESTRICTED",G.LINKED="LINKED",G.REALM="REALM",(q=e6||(e6={})).AT_LEAST_ONE="AT_LEAST_ONE",q.ALL="ALL",q.NONE="NONE",(V=e8||(e8={})).AND="AND",V.OR="OR",(J=e7||(e7={})).CREATED_ON="CREATED_ON",J.FIRST_NAME="FIRST_NAME",J.LAST_NAME="LAST_NAME",J.USERNAME="USERNAME",J.EMAIL="EMAIL",(K=e9||(e9={})).STOPPED="STOPPED",K.RUNNING="RUNNING",K.ERROR="ERROR",(X=te||(te={})).JAVASCRIPT="JAVASCRIPT",X.GROOVY="GROOVY",X.JSON="JSON",X.FLOW="FLOW",(Q=tt||(tt={})).READY="READY",Q.DEPLOYED="DEPLOYED",Q.COMPILATION_ERROR="COMPILATION_ERROR",Q.VALIDITY_PERIOD_ERROR="VALIDITY_PERIOD_ERROR",Q.EXECUTION_ERROR="EXECUTION_ERROR",Q.LOOP_ERROR="LOOP_ERROR",Q.DISABLED="DISABLED",Q.PAUSED="PAUSED",Q.EXPIRED="EXPIRED",Q.REMOVED="REMOVED",Q.EMPTY="EMPTY",(Z=tn||(tn={})).SUNRISE="SUNRISE",Z.SUNSET="SUNSET",Z.TWILIGHT_MORNING_VISUAL="TWILIGHT_MORNING_VISUAL",Z.TWILIGHT_MORNING_VISUAL_LOWER="TWILIGHT_MORNING_VISUAL_LOWER",Z.TWILIGHT_MORNING_HORIZON="TWILIGHT_MORNING_HORIZON",Z.TWILIGHT_MORNING_CIVIL="TWILIGHT_MORNING_CIVIL",Z.TWILIGHT_MORNING_NAUTICAL="TWILIGHT_MORNING_NAUTICAL",Z.TWILIGHT_MORNING_ASTRONOMICAL="TWILIGHT_MORNING_ASTRONOMICAL",Z.TWILIGHT_MORNING_GOLDEN_HOUR="TWILIGHT_MORNING_GOLDEN_HOUR",Z.TWILIGHT_MORNING_BLUE_HOUR="TWILIGHT_MORNING_BLUE_HOUR",Z.TWILIGHT_MORNING_NIGHT_HOUR="TWILIGHT_MORNING_NIGHT_HOUR",Z.TWILIGHT_EVENING_VISUAL="TWILIGHT_EVENING_VISUAL",Z.TWILIGHT_EVENING_VISUAL_LOWER="TWILIGHT_EVENING_VISUAL_LOWER",Z.TWILIGHT_EVENING_HORIZON="TWILIGHT_EVENING_HORIZON",Z.TWILIGHT_EVENING_CIVIL="TWILIGHT_EVENING_CIVIL",Z.TWILIGHT_EVENING_NAUTICAL="TWILIGHT_EVENING_NAUTICAL",Z.TWILIGHT_EVENING_ASTRONOMICAL="TWILIGHT_EVENING_ASTRONOMICAL",Z.TWILIGHT_EVENING_GOLDEN_HOUR="TWILIGHT_EVENING_GOLDEN_HOUR",Z.TWILIGHT_EVENING_BLUE_HOUR="TWILIGHT_EVENING_BLUE_HOUR",Z.TWILIGHT_EVENING_NIGHT_HOUR="TWILIGHT_EVENING_NIGHT_HOUR",(ee=to||(to={})).NUMBER="NUMBER",ee.NUMBER_ARRAY="NUMBER_ARRAY",ee.STRING="STRING",ee.BOOLEAN="BOOLEAN",ee.TRIGGER="TRIGGER",ee.COLOR="COLOR",ee.ANY="ANY",(et=tr||(tr={})).NEW_LINE="NEW_LINE",et.SPACER="SPACER",(en=ti||(ti={})).INPUT="INPUT",en.PROCESSOR="PROCESSOR",en.OUTPUT="OUTPUT",en.THEN="THEN",(eo=ta||(ta={})).TEXT="TEXT",eo.MULTILINE="MULTILINE",eo.NUMBER="NUMBER",eo.DROPDOWN="DROPDOWN",eo.DOUBLE_DROPDOWN="DOUBLE_DROPDOWN",eo.CHECKBOX="CHECKBOX",eo.ASSET_ATTRIBUTE="ASSET_ATTRIBUTE",eo.COLOR="COLOR",eo.DATE="DATE",(er=ts||(ts={})).ADD="ADD",er.ADD_OR_REPLACE="ADD_OR_REPLACE",er.REPLACE="REPLACE",er.DELETE="DELETE",er.CLEAR="CLEAR",(ei=td||(td={})).PER_ASSET="PER_ASSET",ei.GLOBAL="GLOBAL",(ea=tc||(tc={})).READ_ADMIN="read:admin",ea.READ_LOGS="read:logs",ea.READ_USERS="read:users",ea.READ_MAP="read:map",ea.READ_ASSETS="read:assets",ea.READ_RULES="read:rules",ea.READ_INSIGHTS="read:insights",ea.READ_ALARMS="read:alarms",ea.READ_NOTIFICATIONS="read:notifications",ea.READ_SERVICES="read:services",ea.READ_TUNNELS="read:tunnels",ea.WRITE_SERVICES="write:services",ea.WRITE_USER="write:user",ea.WRITE_ADMIN="write:admin",ea.WRITE_LOGS="write:logs",ea.WRITE_ASSETS="write:assets",ea.WRITE_ATTRIBUTES="write:attributes",ea.WRITE_RULES="write:rules",ea.WRITE_INSIGHTS="write:insights",ea.WRITE_ALARMS="write:alarms",ea.WRITE_NOTIFICATIONS="write:notifications",ea.WRITE_TUNNELS="write:tunnels",ea.READ="read",ea.WRITE="write",(es=tl||(tl={})).REGISTER="REGISTER",es.UPDATE="UPDATE",es.DEREGISTER="DEREGISTER",(ed=tm||(tm={})).AVAILABLE="AVAILABLE",ed.UNAVAILABLE="UNAVAILABLE",(ec=tu||(tu={})).ASSET="ASSET",ec.AGENT="AGENT",ec.NOTIFICATION="NOTIFICATION",ec.ALARM="ALARM",ec.RULES="RULES",ec.PROTOCOL="PROTOCOL",ec.GATEWAY="GATEWAY",ec.MODEL_AND_VALUES="MODEL_AND_VALUES",ec.API="API",ec.DATA="DATA",(el=tf||(tf={})).INFO="INFO",el.WARN="WARN",el.ERROR="ERROR",(em=tb||(tb={})).NUMERIC="numeric",em.DIGIT_2="2-digit",em.FULL="full",em.LONG="long",em.MEDIUM="medium",em.SHORT="short",em.NARROW="narrow",(eu=th||(th={})).SECONDLY="SECONDLY",eu.MINUTELY="MINUTELY",eu.HOURLY="HOURLY",eu.DAILY="DAILY",eu.WEEKLY="WEEKLY",eu.MONTHLY="MONTHLY",eu.YEARLY="YEARLY",(ef=tp||(tp={})).OMIT="OMIT",ef.BACKWARD="BACKWARD",ef.FORWARD="FORWARD",(eb=t_||(t_={})).JAPANESE="JAPANESE",eb.BUDDHIST="BUDDHIST",eb.ROC="ROC",eb.ISLAMIC="ISLAMIC",eb.ISO8601="ISO8601",eb.CHINESE="CHINESE",eb.ETHIOPIC="ETHIOPIC",eb.HEBREW="HEBREW",eb.GREGORIAN="GREGORIAN",(eh=tF||(tF={})).SU="SU",eh.MO="MO",eh.TU="TU",eh.WE="WE",eh.TH="TH",eh.FR="FR",eh.SA="SA",(ep=tg||(tg={})).PEOPLECOUNTERASSET="PeopleCounterAsset",ep.MAILAGENT="MailAgent",ep.UDPAGENT="UDPAgent",ep.ROOMASSET="RoomAsset",ep.CITYASSET="CityAsset",ep.VENTILATIONASSET="VentilationAsset",ep.TRADFRILIGHTASSET="TradfriLightAsset",ep.CONSOLEASSET="ConsoleAsset",ep.PRESENCESENSORASSET="PresenceSensorAsset",ep.OPENWEATHERMAPAGENT="OpenWeatherMapAgent",ep.LIGHTASSET="LightAsset",ep.KNXAGENT="KNXAgent",ep.THETHINGSSTACKAGENT="TheThingsStackAgent",ep.PLUGASSET="PlugAsset",ep.CHIRPSTACKAGENT="ChirpStackAgent",ep.WEATHERASSET="WeatherAsset",ep.THINGASSET="ThingAsset",ep.WEBSOCKETAGENT="WebsocketAgent",ep.TCPAGENT="TCPAgent",ep.GATEWAYASSET="GatewayAsset",ep.SERIALAGENT="SerialAgent",ep.BLUETOOTHMESHAGENT="BluetoothMeshAgent",ep.PARKINGASSET="ParkingAsset",ep.TRADFRIPLUGASSET="TradfriPlugAsset",ep.SIMULATORAGENT="SimulatorAgent",ep.SNMPAGENT="SNMPAgent",ep.GROUPASSET="GroupAsset",ep.BUILDINGASSET="BuildingAsset",ep.MODBUSSERIALAGENT="ModbusSerialAgent",ep.ENVIRONMENTSENSORASSET="EnvironmentSensorAsset",ep.MQTTAGENT="MQTTAgent",ep.VELBUSTCPAGENT="VelbusTCPAgent",ep.ARTNETLIGHTASSET="ArtnetLightAsset",ep.VELBUSSERIALAGENT="VelbusSerialAgent",ep.GROUNDWATERSENSORASSET="GroundwaterSensorAsset",ep.MICROPHONEASSET="MicrophoneAsset",ep.MODBUSTCPAGENT="ModbusTcpAgent",ep.ZWAVEAGENT="ZWaveAgent",ep.HTTPAGENT="HTTPAgent",ep.DOORASSET="DoorAsset",ep.THERMOSTATASSET="ThermostatAsset",ep.SHIPASSET="ShipAsset",(e_=ty||(ty={})).COLOURRGB="colourRGB",e_.WILDCARDSUBSCRIPTIONTOPICS="wildcardSubscriptionTopics",e_.PRICEHOURLY="priceHourly",e_.MQTTPORT="MQTTPort",e_.PINGDISABLED="pingDisabled",e_.FLOW="flow",e_.CHILDASSETTYPE="childAssetType",e_.LASTACCESS="lastAccess",e_.POSITION="position",e_.NETWORKKEY="networkKey",e_.UNIVERSE="universe",e_.ROUTINGMODE="routingMode",e_.MSSINUMBER="MSSINumber",e_.LASTWILLRETAIN="lastWillRetain",e_.LASTWILLTOPIC="lastWillTopic",e_.SERIALBAUDRATE="serialBaudrate",e_.SUBSCRIBEQOS="subscribeQos",e_.LEDCOUNT="lEDCount",e_.LOCKED="locked",e_.CLOUDCOVERAGE="cloudCoverage",e_.BASEURL="baseURL",e_.PROTOCOL="protocol",e_.REQUIREDVALUES="requiredValues",e_.REGION="region",e_.CONSOLEPLATFORM="consolePlatform",e_.GATEWAYSTATUS="gatewayStatus",e_.NO2LEVEL="NO2Level",e_.ATMOSPHERICPRESSURE="atmosphericPressure",e_.SERIALPORT="serialPort",e_.APPLICATIONID="applicationId",e_.TAGS="tags",e_.UNLOCK="unlock",e_.CHECKINTERVALSECONDS="checkIntervalSeconds",e_.LOCATION="location",e_.CLIENTSECRET="clientSecret",e_.WINDDIRECTION="windDirection",e_.WINDSPEED="windSpeed",e_.PARTICLESPM10="particlesPM10",e_.APPLICATIONKEY="applicationKey",e_.LENGTH="length",e_.PROBABILITYOFPRECIPITATION="probabilityOfPrecipitation",e_.USERNAMEPASSWORD="usernamePassword",e_.WATERLEVEL="waterLevel",e_.CONNECTHEADERS="connectHeaders",e_.CONSOLENAME="consoleName",e_.WEBSOCKETQUERY="websocketQuery",e_.PREFERHTML="preferHTML",e_.PARITY="parity",e_.COOLING="cooling",e_.POLLINGMILLIS="pollingMillis",e_.SOILTEMPERATURE="soilTemperature",e_.SUNIRRADIANCE="sunIrradiance",e_.MESSAGEMAXLENGTH="messageMaxLength",e_.WINDGUSTSPEED="windGustSpeed",e_.LIGHTID="lightId",e_.PROXYADDRESS="proxyAddress",e_.REQUESTQUERYPARAMETERS="requestQueryParameters",e_.MQTTHOST="MQTTHost",e_.SECUREGRPC="secureGRPC",e_.MODEL="model",e_.STREET="street",e_.MANUFACTURER="manufacturer",e_.DELETEPROCESSEDMAIL="deleteProcessedMail",e_.RESUMESESSION="resumeSession",e_.ONOFF="onOff",e_.APIKEY="ApiKey",e_.CITY="city",e_.PRESENCE="presence",e_.SPACESOCCUPIED="spacesOccupied",e_.STARTTLS="startTLS",e_.REQUESTTIMEOUTMILLIS="requestTimeoutMillis",e_.WEBSOCKETPATH="websocketPath",e_.AGENTSTATUS="agentStatus",e_.PRICEDAILY="priceDaily",e_.COUNTGROWTHMINUTE="countGrowthMinute",e_.IMONUMBER="IMONumber",e_.ATTRIBUTION="Attribution",e_.TENANTID="tenantId",e_.REQUESTHEADERS="requestHeaders",e_.HOST="host",e_.COUNTOUTMINUTE="countOutMinute",e_.MESSAGECHARSET="messageCharset",e_.CERTIFICATEALIAS="certificateAlias",e_.EMAIL="email",e_.BINDPORT="bindPort",e_.CONSOLEVERSION="consoleVersion",e_.PARTICLESPM1="particlesPM1",e_.MTU="mtu",e_.SPEED="speed",e_.MESSAGESTRIPDELIMITER="messageStripDelimiter",e_.AREA="area",e_.COUNTRY="country",e_.SHIPTYPE="shipType",e_.CONNECTSUBSCRIPTIONS="connectSubscriptions",e_.RELATIVEHUMIDITY="relativeHumidity",e_.SOURCEADDRESS="sourceAddress",e_.RAINFALL="rainfall",e_.OAUTHGRANT="oAuthGrant",e_.OZONELEVEL="ozoneLevel",e_.SEQUENCENUMBER="sequenceNumber",e_.COUNTINMINUTE="countInMinute",e_.PORT="port",e_.SUNALTITUDE="sunAltitude",e_.COUNTOUT="countOut",e_.ROOMNUMBER="roomNumber",e_.TUNNELINGSUPPORTED="tunnelingSupported",e_.ENINUMBER="ENINumber",e_.PARTICLESPM2_5="particlesPM2_5",e_.AGENTDISABLED="agentDisabled",e_.DISABLED="disabled",e_.COUNTIN="countIn",e_.MESSAGESOURCEADDRESS="messageSourceAddress",e_.PROVISIONWEATHERASSET="ProvisionWeatherAsset",e_.TIMEINJECTIONINTERVAL="timeInjectionInterval",e_.TEMPERATURESETPOINT="temperatureSetpoint",e_.CONSOLEPROVIDERS="consoleProviders",e_.COUNTTOTAL="countTotal",e_.SPACESBUFFER="spacesBuffer",e_.DEVICECONFIG="deviceConfig",e_.SPACESTOTAL="spacesTotal",e_.BINDHOST="bindHost",e_.FANSPEED="fanSpeed",e_.MESSAGECONVERTBINARY="messageConvertBinary",e_.NOTES="notes",e_.MAILFOLDERNAME="mailFolderName",e_.MESSAGEDELIMITERS="messageDelimiters",e_.TEMPERATURE="temperature",e_.SUNZENITH="sunZenith",e_.SNMPVERSIONVALUE="SNMPVersionValue",e_.BRIGHTNESS="brightness",e_.POSTALCODE="postalCode",e_.SPACESOPEN="spacesOpen",e_.HUMIDITY="humidity",e_.SOUNDLEVEL="soundLevel",e_.SECUREMODE="secureMode",e_.DIRECTION="direction",e_.STOPBITS="stopbits",e_.UVINDEX="uVIndex",e_.CONNECTURL="connectURL",e_.CLIENTID="clientId",e_.NATMODE="NATMode",e_.UPDATEONWRITE="updateOnWrite",e_.LASTWILLPAYLOAD="lastWillPayload",e_.GROUPID="groupId",e_.FOLLOWREDIRECTS="followRedirects",e_.SUNAZIMUTH="sunAzimuth",e_.MESSAGECONVERTHEX="messageConvertHex",e_.WEBSOCKETMODE="websocketMode",e_.COLOURTEMPERATURE="colourTemperature",e_.PUBLISHQOS="publishQos",e_.DATABITS="dataBits",(eF=tv||(tv={})).FORMAT="format",eF.DATAPOINTSMAXAGEDAYS="dataPointsMaxAgeDays",eF.ACCESSRESTRICTEDWRITE="accessRestrictedWrite",eF.SECRET="secret",eF.APPLYPREDICTEDDATAPOINTS="applyPredictedDataPoints",eF.ATTRIBUTELINKS="attributeLinks",eF.RULERESETIMMEDIATE="ruleResetImmediate",eF.RULESTATE="ruleState",eF.AGENTLINKCONFIG="agentLinkConfig",eF.HASPREDICTEDDATAPOINTS="hasPredictedDataPoints",eF.FORECAST="forecast",eF.STOREDATAPOINTS="storeDataPoints",eF.LABEL="label",eF.CONSTRAINTS="constraints",eF.UNITS="units",eF.USERCONNECTED="userConnected",eF.SHOWONDASHBOARD="showOnDashboard",eF.READONLY="readOnly",eF.MULTILINE="multiline",eF.ACCESSPUBLICWRITE="accessPublicWrite",eF.MOMENTARY="momentary",eF.AGENTLINK="agentLink",eF.ACCESSRESTRICTEDREAD="accessRestrictedRead",eF.ACCESSPUBLICREAD="accessPublicRead",(eg=tw||(tw={})).ASSETQUERY="assetQuery",eg.WSURL="WS_URL",eg.COLOURRGB="colourRGB",eg.VALUEFORMAT="valueFormat",eg.TEXT="text",eg.BYTE="byte",eg.USERNAMEANDPASSWORD="usernameAndPassword",eg.HTTPURL="HTTP_URL",eg.ATTRIBUTELINK="attributeLink",eg.ASSETID="assetID",eg.NUMBERMAP="numberMap",eg.HTTPMETHOD="HTTPMethod",eg.ATTRIBUTESTATE="attributeState",eg.POSITIVENUMBER="positiveNumber",eg.POSITIVEINTEGER="positiveInteger",eg.EXECUTIONSTATUS="executionStatus",eg.BIGINTEGER="bigInteger",eg.VALUEDESCRIPTOR="valueDescriptor",eg.PERIODDURATIONISO8601="periodDurationISO8601",eg.LONG="long",eg.DATEANDTIME="dateAndTime",eg.BOOLEANMAP="booleanMap",eg.MQTTQOS="MQTTQos",eg.NEGATIVEINTEGER="negativeInteger",eg.TCPIPPORTNUMBER="TCP_IPPortNumber",eg.GEOJSONPOINT="GEO_JSONPoint",eg.SNMPVERSION="SNMPVersion",eg.ASSETTYPE="assetType",eg.JSONOBJECT="JSONObject",eg.INTEGERMAP="integerMap",eg.BIGNUMBER="bigNumber",eg.IPADDRESS="IPAddress",eg.EMAIL="email",eg.TIMESTAMP="timestamp",eg.KNXMESSAGESOURCEADDRESS="kNXMessageSourceAddress",eg.ATTRIBUTEREFERENCE="attributeReference",eg.UUID="UUID",eg.INTEGER="integer",eg.OAUTHGRANT="oAuthGrant",eg.NUMBER="number",eg.DEVICECONFIGMAP="DeviceConfigMap",eg.TEXTMAP="textMap",eg.WEBSOCKETSUBSCRIPTION="websocketSubscription",eg.BOOLEAN="boolean",eg.TIMEANDPERIODDURATIONISO8601="timeAndPeriodDurationISO8601",eg.FORECASTCONFIGURATION="forecastConfiguration",eg.TIMEDURATIONISO8601="timeDurationISO8601",eg.TIMESTAMPISO8601="timestampISO8601",eg.CONSOLEPROVIDERS="consoleProviders",eg.MULTIVALUEDTEXTMAP="multivaluedTextMap",eg.NEGATIVENUMBER="negativeNumber",eg.PARITYBIT="Paritybit",eg.JSON="JSON",eg.CRONEXPRESSION="CRONExpression",eg.INTEGERBYTE="integerByte",eg.AGENTLINK="agentLink",eg.DIRECTION="direction",eg.HOSTORIPADDRESS="hostOrIPAddress",eg.STOPBITS="Stopbits",eg.CALENDAREVENT="calendarEvent",eg.CONNECTIONSTATUS="connectionStatus",eg.VALUECONSTRAINT="valueConstraint",(ey=tk||(tk={})).MONTH="month",ey.MILE_SCANDINAVIAN="mile_scandinavian",ey.VAR="var",ey.OUNCE="ounce",ey.HECTARE="hectare",ey.YARD="yard",ey.YEAR="year",ey.GIGA="giga",ey.JOULE="joule",ey.VOLT="volt",ey.HERTZ="hertz",ey.MILE="mile",ey.DEGREE="degree",ey.KILO="kilo",ey.BTU="btu",ey.TERA="tera",ey.FOOT="foot",ey.MEGA="mega",ey.KELVIN="kelvin",ey.CARBON="carbon",ey.DECIBEL_ATTENUATED="decibel_attenuated",ey.INCH="inch",ey.SQUARED="squared",ey.PERCENTAGE="percentage",ey.IN_HG="inch_mercury",ey.CENTI="centi",ey.GRAM="gram",ey.CUBED="cubed",ey.DAY="day",ey.RADIAN="radian",ey.OHM="ohm",ey.MINUTE="minute",ey.PART_PER_MILLION="ppm",ey.AMP="amp",ey.MASS_POUND="pound",ey.KNOT="knot",ey.METRE="metre",ey.LITRE="litre",ey.FLUID_OUNCE="fluid_ounce",ey.HOUR="hour",ey.ACRE="acre",ey.CELSIUS="celsius",ey.RPM="rpm",ey.PASCAL="pascal",ey.DECIBEL="decibel",ey.LUMEN="lumen",ey.WEEK="week",ey.FAHRENHEIT="fahrenheit",ey.WATT="watt",ey.GALLON="gallon",ey.LUX="lux",ey.MILLI="milli",ey.BAR="bar",ey.HECTO="hecto",ey.PEAK="peak",ey.SECOND="second",ey.MICRO="micro",ey.PER="per",ey.STONE="stone",tM||(tM={});class nN{static getAssetDescriptors(){return nN._assetTypeInfos.map(e=>e.assetDescriptor)}static getMetaItemDescriptors(){return[...this._metaItemDescriptors]}static getValueDescriptors(){return[...this._valueDescriptors]}static getAssetTypeInfos(){return[...this._assetTypeInfos]}static getAssetTypeInfo(e){if(e)return e.assetDescriptor?e:("string"!=typeof e&&(e=e.name),this._assetTypeInfos.find(t=>t.assetDescriptor.name===e))}static getAssetDescriptor(e){if(!e)return;if(e.assetDescriptor)return e.assetDescriptor;if("string"!=typeof e)return e;let t=this._assetTypeInfos.find(t=>t.assetDescriptor.name===e);return t?t.assetDescriptor:void 0}static getAttributeDescriptor(e,t){if(!e)return;let n=this.getAssetTypeInfo(t||"ThingAsset");if(n&&n.attributeDescriptors)return n.attributeDescriptors.find(t=>t.name===e)}static getValueDescriptor(e){let t;if(!e)return;if(e.endsWith("[]"))for(t=0;e.endsWith("[]");)e=e.substring(0,e.length-2),t++;let n=this._valueDescriptors.find(t=>t.name===e);return n&&t&&(n=Object.assign(Object.assign({},n),{arrayDimensions:t})),n}static resolveValueDescriptor(e,t){let n;return t&&("string"==typeof t&&(n=nN.getValueDescriptor(t)),n=t.jsonType?t:nN.getValueDescriptor(t.type)),!n&&e&&(n=nN.getValueDescriptor("JSON")),n}static resolveValueTypeFromValue(e){if(null!=e){if("number"==typeof e)return"number";if("string"==typeof e)return"text";if("boolean"==typeof e)return"boolean";if(Array.isArray(e)){let t=1,n=e.find(e=>null!=e);for(;Array.isArray(n);)n=n.find(e=>null!=e),t++;let o=this.resolveValueTypeFromValue(n);if(!o)return;for(;t>0;)o+="[]",t--;return o}if(e instanceof Date)return"dateAndTime"}}static getAttributeAndValueDescriptors(e,t,n){let o,r;if(t&&"string"!=typeof t)o=t;else{let r=this.getAssetTypeInfo(e||"ThingAsset");if(!r)return[void 0,void 0];"string"==typeof t&&(o=this.getAttributeDescriptor(t,r)),!o&&n&&(o={type:n.type,name:n.name,meta:n.meta})}return o&&(r=this.getValueDescriptor(o.type)),[o,r]}static getMetaItemDescriptor(e){if(e)return this._metaItemDescriptors.find(t=>t.name===e)}static getAssetDescriptorColour(e,t){let n=this.getAssetDescriptor(e);return n&&n.colour?n.colour:t}static getAssetDescriptorIcon(e,t){let n=this.getAssetDescriptor(e);return n&&n.icon?n.icon:t}}nN._assetTypeInfos=[],nN._metaItemDescriptors=[],nN._valueDescriptors=[];let nI=e=>"string"==typeof e,nj=()=>{let e,t,n=new Promise((n,o)=>{e=n,t=o});return n.resolve=e,n.reject=t,n},nH=e=>null==e?"":String(e),nU=/###/g,nW=e=>e&&e.includes("###")?e.replace(nU,"."):e,nz=e=>!e||nI(e),n$=(e,t,n)=>{let o=nI(t)?t.split("."):t,r=0;for(;r<o.length-1;){if(nz(e))return{};let t=nW(o[r]);!e[t]&&n&&(e[t]=new n),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++r}return nz(e)?{}:{obj:e,k:nW(o[r])}},nG=(e,t,n)=>{let{obj:o,k:r}=n$(e,t,Object);if(void 0!==o||1===t.length){o[r]=n;return}let i=t[t.length-1],a=t.slice(0,t.length-1),s=n$(e,a,Object);for(;void 0===s.obj&&a.length;)i=`${a[a.length-1]}.${i}`,s=n$(e,a=a.slice(0,a.length-1),Object),s?.obj&&void 0!==s.obj[`${s.k}.${i}`]&&(s.obj=void 0);s.obj[`${s.k}.${i}`]=n},nq=(e,t)=>{let{obj:n,k:o}=n$(e,t);if(n&&Object.prototype.hasOwnProperty.call(n,o))return n[o]},nV=(e,t,n)=>{for(let o in t)"__proto__"!==o&&"constructor"!==o&&(Object.prototype.hasOwnProperty.call(e,o)?nI(e[o])||e[o]instanceof String||nI(t[o])||t[o]instanceof String?n&&(e[o]=t[o]):nV(e[o],t[o],n):e[o]=t[o]);return e},nJ={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"},nK=e=>nI(e)?e.replace(/[&<>"'\/]/g,e=>nJ[e]):e,nX=[" ",",","?","!",";"],nQ=new class{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){let t=this.regExpMap.get(e);if(void 0!==t)return t;let n=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,n),this.regExpQueue.push(e),n}}(20),nZ=(e,t,n=".")=>{if(!e)return;if(e[t]){if(!Object.prototype.hasOwnProperty.call(e,t))return;return e[t]}let o=t.split(n),r=e;for(let e=0;e<o.length;){let t;if(!r||"object"!=typeof r)return;let i="";for(let a=e;a<o.length;++a)if(a!==e&&(i+=n),i+=o[a],void 0!==(t=r[i])){if(["string","number","boolean"].includes(typeof t)&&a<o.length-1)continue;e+=a-e+1;break}r=t}return r},n0=e=>e?.replace(/_/g,"-"),n1={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console?.[e]?.apply?.(console,t)}};var n2=new class e{constructor(e,t={}){this.init(e,t)}init(e,t={}){this.prefix=t.prefix||"i18next:",this.logger=e||n1,this.options=t,this.debug=t.debug}log(...e){return this.forward(e,"log","",!0)}warn(...e){return this.forward(e,"warn","",!0)}error(...e){return this.forward(e,"error","")}deprecate(...e){return this.forward(e,"warn","WARNING DEPRECATED: ",!0)}forward(e,t,n,o){return o&&!this.debug?null:(e=e.map(e=>nI(e)?e.replace(/[\r\n\x00-\x1F\x7F]/g," "):e),nI(e[0])&&(e[0]=`${n}${this.prefix} ${e[0]}`),this.logger[t](e))}create(t){return new e(this.logger,{...{prefix:`${this.prefix}:${t}:`},...this.options})}clone(t){return(t=t||this.options).prefix=t.prefix||this.prefix,new e(this.logger,t)}};class n4{constructor(){this.observers={}}on(e,t){return e.split(" ").forEach(e=>{this.observers[e]||(this.observers[e]=new Map);let n=this.observers[e].get(t)||0;this.observers[e].set(t,n+1)}),this}off(e,t){if(this.observers[e]){if(!t)return void delete this.observers[e];this.observers[e].delete(t)}}once(e,t){let n=(...o)=>{t(...o),this.off(e,n)};return this.on(e,n),this}emit(e,...t){this.observers[e]&&Array.from(this.observers[e].entries()).forEach(([e,n])=>{for(let o=0;o<n;o++)e(...t)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([n,o])=>{for(let r=0;r<o;r++)n(e,...t)})}}class n5 extends n4{constructor(e,t={ns:["translation"],defaultNS:"translation"}){super(),this.data=e||{},this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),void 0===this.options.ignoreJSONStructure&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.includes(e)||this.options.ns.push(e)}removeNamespaces(e){let t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,n,o={}){let r,i=void 0!==o.keySeparator?o.keySeparator:this.options.keySeparator,a=void 0!==o.ignoreJSONStructure?o.ignoreJSONStructure:this.options.ignoreJSONStructure;e.includes(".")?r=e.split("."):(r=[e,t],n&&(Array.isArray(n)?r.push(...n):nI(n)&&i?r.push(...n.split(i)):r.push(n)));let s=nq(this.data,r);return(!s&&!t&&!n&&e.includes(".")&&(e=r[0],t=r[1],n=r.slice(2).join(".")),!s&&a&&nI(n))?nZ(this.data?.[e]?.[t],n,i):s}addResource(e,t,n,o,r={silent:!1}){let i=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,a=[e,t];n&&(a=a.concat(i?n.split(i):n)),e.includes(".")&&(a=e.split("."),o=t,t=a[1]),this.addNamespaces(t),nG(this.data,a,o),r.silent||this.emit("added",e,t,n,o)}addResources(e,t,n,o={silent:!1}){for(let o in n)(nI(n[o])||Array.isArray(n[o]))&&this.addResource(e,t,o,n[o],{silent:!0});o.silent||this.emit("added",e,t,n)}addResourceBundle(e,t,n,o,r,i={silent:!1,skipCopy:!1}){let a=[e,t];e.includes(".")&&(a=e.split("."),o=n,n=t,t=a[1]),this.addNamespaces(t);let s=nq(this.data,a)||{};i.skipCopy||(n=JSON.parse(JSON.stringify(n))),o?nV(s,n,r):s={...s,...n},nG(this.data,a,s),i.silent||this.emit("added",e,t,n)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}hasResourceBundle(e,t){return void 0!==this.getResource(e,t)}getResourceBundle(e,t){return t||(t=this.options.defaultNS),this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){let t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(e=>t[e]&&Object.keys(t[e]).length>0)}toJSON(){return this.data}}var n3={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,o,r){return e.forEach(e=>{t=this.processors[e]?.process(t,n,o,r)??t}),t}};let n6=Symbol("i18next/PATH_KEY");function n8(e,t){let n,o,r,{[n6]:i}=e((o=[],(r=Object.create(null)).get=(e,t)=>(n?.revoke?.(),t===n6)?o:(o.push(t),(n=Proxy.revocable(e,r)).proxy),Proxy.revocable(Object.create(null),r).proxy)),a=t?.keySeparator??".",s=t?.nsSeparator??":",d=t?.enableSelector==="strict";if(i.length>1&&s){let e=t?.ns,n=d?Array.isArray(e)?e:e?[e]:null:Array.isArray(e)?e:null;if(n&&(d?n:n.length>1?n.slice(1):[]).includes(i[0]))return`${i[0]}${s}${i.slice(1).join(a)}`}return i.join(a)}let n7=e=>!nI(e)&&"boolean"!=typeof e&&"number"!=typeof e;class n9 extends n4{constructor(e,t={}){super(),((e,t,n)=>{e.forEach(e=>{t[e]&&(n[e]=t[e])})})(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,this),this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=n2.create("translator"),this.checkedLoadedFor={}}changeLanguage(e){e&&(this.language=e)}exists(e,t={interpolation:{}}){let n={...t};if(null==e)return!1;let o=this.resolve(e,n);if(o?.res===void 0)return!1;let r=n7(o.res);return!1!==n.returnObjects||!r}extractFromKey(e,t){let n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");let o=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,r=t.ns||this.options.defaultNS||[],i=n&&e.includes(n),a=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!((e,t,n)=>{t=t||"",n=n||"";let o=nX.filter(e=>!t.includes(e)&&!n.includes(e));if(0===o.length)return!0;let r=nQ.getRegExp(`(${o.map(e=>"?"===e?"\\?":e).join("|")})`),i=!r.test(e);if(!i){let t=e.indexOf(n);t>0&&!r.test(e.substring(0,t))&&(i=!0)}return i})(e,n,o);if(i&&!a){let t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:nI(r)?[r]:r};let i=e.split(n);(n!==o||n===o&&this.options.ns.includes(i[0]))&&(r=i.shift()),e=i.join(o)}return{key:e,namespaces:nI(r)?[r]:r}}translate(e,t,n){let o="object"==typeof t?{...t}:t;if("object"!=typeof o&&this.options.overloadTranslationOptionHandler&&(o=this.options.overloadTranslationOptionHandler(arguments)),"object"==typeof o&&(o={...o}),o||(o={}),null==e)return"";"function"==typeof e&&(e=n8(e,{...this.options,...o})),Array.isArray(e)||(e=[String(e)]),e=e.map(e=>"function"==typeof e?n8(e,{...this.options,...o}):String(e));let r=void 0!==o.returnDetails?o.returnDetails:this.options.returnDetails,i=void 0!==o.keySeparator?o.keySeparator:this.options.keySeparator,{key:a,namespaces:s}=this.extractFromKey(e[e.length-1],o),d=s[s.length-1],c=void 0!==o.nsSeparator?o.nsSeparator:this.options.nsSeparator;void 0===c&&(c=":");let l=o.lng||this.language,m=o.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(l?.toLowerCase()==="cimode")return m?r?{res:`${d}${c}${a}`,usedKey:a,exactUsedKey:a,usedLng:l,usedNS:d,usedParams:this.getUsedParamsDetails(o)}:`${d}${c}${a}`:r?{res:a,usedKey:a,exactUsedKey:a,usedLng:l,usedNS:d,usedParams:this.getUsedParamsDetails(o)}:a;let u=this.resolve(e,o),f=u?.res,b=u?.usedKey||a,h=u?.exactUsedKey||a,p=void 0!==o.joinArrays?o.joinArrays:this.options.joinArrays,_=!this.i18nFormat||this.i18nFormat.handleAsObject,F=void 0!==o.count&&!nI(o.count),g=n9.hasDefaultValue(o),y=F?this.pluralResolver.getSuffix(l,o.count,o):"",v=o.ordinal&&F?this.pluralResolver.getSuffix(l,o.count,{ordinal:!1}):"",w=F&&!o.ordinal&&0===o.count,k=w&&o[`defaultValue${this.options.pluralSeparator}zero`]||o[`defaultValue${y}`]||o[`defaultValue${v}`]||o.defaultValue,M=f;_&&!f&&g&&(M=k);let E=n7(M),L=Object.prototype.toString.apply(M);if(_&&M&&E&&!["[object Number]","[object Function]","[object RegExp]"].includes(L)&&!(nI(p)&&Array.isArray(M))){if(!o.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");let e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(b,M,{...o,ns:s}):`key '${a} (${this.language})' returned an object instead of string.`;return r?(u.res=e,u.usedParams=this.getUsedParamsDetails(o),u):e}if(i){let e=Array.isArray(M),t=e?[]:{},n=e?h:b;for(let e in M)if(Object.prototype.hasOwnProperty.call(M,e)){let r=`${n}${i}${e}`;g&&!f?t[e]=this.translate(r,{...o,defaultValue:n7(k)?k[e]:void 0,...{joinArrays:!1,ns:s}}):t[e]=this.translate(r,{...o,joinArrays:!1,ns:s}),t[e]===r&&(t[e]=M[e])}f=t}}else if(_&&nI(p)&&Array.isArray(f))(f=f.join(p))&&(f=this.extendTranslation(f,e,o,n));else{let t=!1,r=!1;!this.isValidLookup(f)&&g&&(t=!0,f=k),this.isValidLookup(f)||(r=!0,f=a);let s=(o.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&r?void 0:f,m=g&&k!==f&&this.options.updateMissing;if(r||t||m){if(this.logger.log(m?"updateKey":"missingKey",l,d,F&&!m?`${a}${this.pluralResolver.getSuffix(l,o.count,o)}`:a,m?k:f),i){let e=this.resolve(a,{...o,keySeparator:!1});e&&e.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let e=[],t=this.languageUtils.getFallbackCodes(this.options.fallbackLng,o.lng||this.language);if("fallback"===this.options.saveMissingTo&&t&&t[0])for(let n=0;n<t.length;n++)e.push(t[n]);else"all"===this.options.saveMissingTo?e=this.languageUtils.toResolveHierarchy(o.lng||this.language):e.push(o.lng||this.language);let n=(e,t,n)=>{let r=g&&n!==f?n:s;this.options.missingKeyHandler?this.options.missingKeyHandler(e,d,t,r,m,o):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(e,d,t,r,m,o),this.emit("missingKey",e,d,t,f)};this.options.saveMissing&&(this.options.saveMissingPlurals&&F?e.forEach(e=>{let t=this.pluralResolver.getSuffixes(e,o);w&&o[`defaultValue${this.options.pluralSeparator}zero`]&&!t.includes(`${this.options.pluralSeparator}zero`)&&t.push(`${this.options.pluralSeparator}zero`),t.forEach(t=>{n([e],a+t,o[`defaultValue${t}`]||k)})}):n(e,a,k))}f=this.extendTranslation(f,e,o,u,n),r&&f===a&&this.options.appendNamespaceToMissingKey&&(f=`${d}${c}${a}`),(r||t)&&this.options.parseMissingKeyHandler&&(f=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${d}${c}${a}`:a,t?f:void 0,o))}return r?(u.res=f,u.usedParams=this.getUsedParamsDetails(o),u):f}extendTranslation(e,t,n,o,r){if(this.i18nFormat?.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||o.usedLng,o.usedNS,o.usedKey,{resolved:o});else if(!n.skipInterpolation){let i;n.interpolation&&this.interpolator.init({...n,...{interpolation:{...this.options.interpolation,...n.interpolation}}});let a=nI(e)&&(n?.interpolation?.skipOnVariables!==void 0?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);if(a){let t=e.match(this.interpolator.nestingRegexp);i=t&&t.length}let s=n.replace&&!nI(n.replace)?n.replace:n;if(this.options.interpolation.defaultVariables&&(s={...this.options.interpolation.defaultVariables,...s}),e=this.interpolator.interpolate(e,s,n.lng||this.language||o.usedLng,n),a){let t=e.match(this.interpolator.nestingRegexp);i<(t&&t.length)&&(n.nest=!1)}!n.lng&&o&&o.res&&(n.lng=this.language||o.usedLng),!1!==n.nest&&(e=this.interpolator.nest(e,(...e)=>r?.[0]!==e[0]||n.context?this.translate(...e,t):(this.logger.warn(`It seems you are nesting recursively key: ${e[0]} in key: ${t[0]}`),null),n)),n.interpolation&&this.interpolator.reset()}let i=n.postProcess||this.options.postProcess,a=nI(i)?[i]:i;return null!=e&&a?.length&&!1!==n.applyPostProcessor&&(e=n3.handle(a,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...o,usedParams:this.getUsedParamsDetails(n)},...n}:n,this)),e}resolve(e,t={}){let n,o,r,i,a;return nI(e)&&(e=[e]),Array.isArray(e)&&(e=e.map(e=>"function"==typeof e?n8(e,{...this.options,...t}):e)),e.forEach(e=>{if(this.isValidLookup(n))return;let s=this.extractFromKey(e,t),d=s.key;o=d;let c=s.namespaces;this.options.fallbackNS&&(c=c.concat(this.options.fallbackNS));let l=void 0!==t.count&&!nI(t.count),m=l&&!t.ordinal&&0===t.count,u=void 0!==t.context&&(nI(t.context)||"number"==typeof t.context)&&""!==t.context,f=t.lngs?t.lngs:this.languageUtils.toResolveHierarchy(t.lng||this.language,t.fallbackLng);c.forEach(e=>{this.isValidLookup(n)||(a=e,!this.checkedLoadedFor[`${f[0]}-${e}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(a)&&(this.checkedLoadedFor[`${f[0]}-${e}`]=!0,this.logger.warn(`key "${o}" for languages "${f.join(", ")}" won't get resolved as namespace "${a}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),f.forEach(o=>{let a;if(this.isValidLookup(n))return;i=o;let s=[d];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(s,d,o,e,t);else{let e;l&&(e=this.pluralResolver.getSuffix(o,t.count,t));let n=`${this.options.pluralSeparator}zero`,r=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(l&&(t.ordinal&&e.startsWith(r)&&s.push(d+e.replace(r,this.options.pluralSeparator)),s.push(d+e),m&&s.push(d+n)),u){let o=`${d}${this.options.contextSeparator||"_"}${t.context}`;s.push(o),l&&(t.ordinal&&e.startsWith(r)&&s.push(o+e.replace(r,this.options.pluralSeparator)),s.push(o+e),m&&s.push(o+n))}}for(;a=s.pop();)this.isValidLookup(n)||(r=a,n=this.getResource(o,e,a,t))}))})}),{res:n,usedKey:o,exactUsedKey:r,usedLng:i,usedNS:a}}isValidLookup(e){return void 0!==e&&!(!this.options.returnNull&&null===e)&&!(!this.options.returnEmptyString&&""===e)}getResource(e,t,n,o={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(e,t,n,o):this.resourceStore.getResource(e,t,n,o)}getUsedParamsDetails(e={}){let t=e.replace&&!nI(e.replace),n=t?e.replace:e;if(t&&void 0!==e.count&&(n={...n,count:e.count}),this.options.interpolation.defaultVariables&&(n={...this.options.interpolation.defaultVariables,...n}),!t)for(let e of(n={...n},["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"]))delete n[e];return n}static hasDefaultValue(e){for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&t.startsWith("defaultValue")&&void 0!==e[t])return!0;return!1}}class oe{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=n2.create("languageUtils")}getScriptPartFromCode(e){if(!(e=n0(e))||!e.includes("-"))return null;let t=e.split("-");return 2===t.length||(t.pop(),"x"===t[t.length-1].toLowerCase())?null:this.formatLanguageCode(t.join("-"))}getLanguagePartFromCode(e){if(!(e=n0(e))||!e.includes("-"))return e;let t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(nI(e)&&e.includes("-")){let t;try{t=Intl.getCanonicalLocales(e)[0]}catch(e){}return(t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t)?t:this.options.lowerCaseLng?e.toLowerCase():e}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.includes(e)}getBestMatchFromCodes(e){let t;return e?(e.forEach(e=>{if(t)return;let n=this.formatLanguageCode(e);(!this.options.supportedLngs||this.isSupportedCode(n))&&(t=n)}),!t&&this.options.supportedLngs&&e.forEach(e=>{if(t)return;let n=this.getScriptPartFromCode(e);if(this.isSupportedCode(n))return t=n;let o=this.getLanguagePartFromCode(e);if(this.isSupportedCode(o))return t=o;t=this.options.supportedLngs.find(e=>e===o||(!!e.includes("-")||!!o.includes("-"))&&!!(e.includes("-")&&!o.includes("-")&&e.slice(0,e.indexOf("-"))===o||e.startsWith(o)&&o.length>1))}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}getFallbackCodes(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),nI(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}toResolveHierarchy(e,t){let n=this.getFallbackCodes((!1===t?[]:t)||this.options.fallbackLng||[],e),o=[],r=e=>{e&&(this.isSupportedCode(e)?o.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return nI(e)&&(e.includes("-")||e.includes("_"))?("languageOnly"!==this.options.load&&r(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&r(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&r(this.getLanguagePartFromCode(e))):nI(e)&&r(this.formatLanguageCode(e)),n.forEach(e=>{o.includes(e)||r(this.formatLanguageCode(e))}),o}}let ot={zero:0,one:1,two:2,few:3,many:4,other:5},on={select:e=>1===e?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class oo{constructor(e,t={}){this.languageUtils=e,this.options=t,this.logger=n2.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(e,t={}){let n,o=n0("dev"===e?"en":e),r=t.ordinal?"ordinal":"cardinal",i=JSON.stringify({cleanedCode:o,type:r});if(i in this.pluralRulesCache)return this.pluralRulesCache[i];try{n=new Intl.PluralRules(o,{type:r})}catch(r){if("u"<typeof Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),on;if(!e.match(/-|_/))return on;let o=this.languageUtils.getLanguagePartFromCode(e);n=this.getRule(o,t)}return this.pluralRulesCache[i]=n,n}needsPlural(e,t={}){let n=this.getRule(e,t);return n||(n=this.getRule("dev",t)),n?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(e,t,n={}){return this.getSuffixes(e,n).map(e=>`${t}${e}`)}getSuffixes(e,t={}){let n=this.getRule(e,t);return(n||(n=this.getRule("dev",t)),n)?n.resolvedOptions().pluralCategories.sort((e,t)=>ot[e]-ot[t]).map(e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${e}`):[]}getSuffix(e,t,n={}){let o=this.getRule(e,n);return o?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${o.select(t)}`:(this.logger.warn(`no plural rule found for: ${e}`),this.getSuffix("dev",t,n))}}let or=(e,t,n,o=".",r=!0)=>{let i,a=void 0!==(i=nq(e,n))?i:nq(t,n);return!a&&r&&nI(n)&&void 0===(a=nZ(e,n,o))&&(a=nZ(t,n,o)),a},oi=e=>e.replace(/\$/g,"$$$$");class oa{constructor(e={}){this.logger=n2.create("interpolator"),this.options=e,this.format=e?.interpolation?.format||(e=>e),this.init(e)}init(e={}){e.interpolation||(e.interpolation={escapeValue:!0});let{escape:t,escapeValue:n,useRawValueToEscape:o,prefix:r,prefixEscaped:i,suffix:a,suffixEscaped:s,formatSeparator:d,unescapeSuffix:c,unescapePrefix:l,nestingPrefix:m,nestingPrefixEscaped:u,nestingSuffix:f,nestingSuffixEscaped:b,nestingOptionsSeparator:h,maxReplaces:p,alwaysFormat:_}=e.interpolation;this.escape=void 0!==t?t:nK,this.escapeValue=void 0===n||n,this.useRawValueToEscape=void 0!==o&&o,this.prefix=r?r.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"):i||"{{",this.suffix=a?a.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"):s||"}}",this.formatSeparator=d||",",this.unescapePrefix=c?"":l?l.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"):"-",this.unescapeSuffix=this.unescapePrefix?"":c?c.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"):"",this.nestingPrefix=m?m.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"):u||"$t(".replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),this.nestingSuffix=f?f.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"):b||")".replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),this.nestingOptionsSeparator=h||",",this.maxReplaces=p||1e3,this.alwaysFormat=void 0!==_&&_,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let e=(e,t)=>e?.source===t?(e.lastIndex=0,e):RegExp(t,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(e,t,n,o){let r,i,a,s=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},d=e=>{if(!e.includes(this.formatSeparator)){let r=or(t,s,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(r,void 0,n,{...o,...t,interpolationkey:e}):r}let r=e.split(this.formatSeparator),i=r.shift().trim(),a=r.join(this.formatSeparator).trim();return this.format(or(t,s,i,this.options.keySeparator,this.options.ignoreJSONStructure),a,n,{...o,...t,interpolationkey:i})};this.resetRegExp(),!this.escapeValue&&"string"==typeof e&&/\$t\([^)]*\{[^}]*\{\{/.test(e)&&this.logger.warn("nesting options string contains interpolated variables with escapeValue: false — if any of those values are attacker-controlled they can inject additional nesting options (e.g. redirect lng/ns). Sanitise untrusted input before passing it to t(), or keep escapeValue: true.");let c=o?.missingInterpolationHandler||this.options.missingInterpolationHandler,l=o?.interpolation?.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>e},{regex:this.regexp,safeValue:e=>this.escapeValue?this.escape(e):e}].forEach(t=>{for(a=0;r=t.regex.exec(e);){let n=r[1].trim();if(void 0===(i=d(n)))if("function"==typeof c){let t=c(e,r,o);i=nI(t)?t:""}else if(o&&Object.prototype.hasOwnProperty.call(o,n))i="";else if(l){i=r[0];continue}else this.logger.warn(`missed to pass in variable ${n} for interpolating ${e}`),i="";else nI(i)||this.useRawValueToEscape||(i=nH(i));let s=t.safeValue(i);if(e=e.replace(r[0],oi(s)),l?(t.regex.lastIndex+=s.length,t.regex.lastIndex-=r[0].length):t.regex.lastIndex=0,++a>=this.maxReplaces)break}}),e}nest(e,t,n={}){let o,r,i,a=(e,t)=>{let n=this.nestingOptionsSeparator;if(!e.includes(n))return e;let o=e.split(RegExp(`${n.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}[ ]*{`)),r=`{${o[1]}`;e=o[0];let a=(r=this.interpolate(r,i)).match(/'/g),s=r.match(/"/g);((a?.length??0)%2!=0||s)&&(s?.length??0)%2==0||(r=r.replace(/'/g,'"'));try{i=JSON.parse(r),t&&(i={...t,...i})}catch(t){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,t),`${e}${n}${r}`}return i.defaultValue&&i.defaultValue.includes(this.prefix)&&delete i.defaultValue,e};for(;o=this.nestingRegexp.exec(e);){let s=[];(i=(i={...n}).replace&&!nI(i.replace)?i.replace:i).applyPostProcessor=!1,delete i.defaultValue;let d=/{.*}/s.test(o[1])?o[1].lastIndexOf("}")+1:o[1].indexOf(this.formatSeparator);if(-1!==d&&(s=o[1].slice(d).split(this.formatSeparator).map(e=>e.trim()).filter(Boolean),o[1]=o[1].slice(0,d)),(r=t(a.call(this,o[1].trim(),i),i))&&o[0]===e&&!nI(r))return r;nI(r)||(r=nH(r)),r||(this.logger.warn(`missed to resolve ${o[1]} for nesting ${e}`),r=""),s.length&&(r=s.reduce((e,t)=>this.format(e,t,n.lng,{...n,interpolationkey:o[1].trim()}),r.trim())),e=e.replace(o[0],r),this.regexp.lastIndex=0}return e}}let os=e=>{let t={};return(n,o,r)=>{let i=r;r&&r.interpolationkey&&r.formatParams&&r.formatParams[r.interpolationkey]&&r[r.interpolationkey]&&(i={...i,[r.interpolationkey]:void 0});let a=o+JSON.stringify(i),s=t[a];return s||(s=e(n0(o),r),t[a]=s),s(n)}},od=e=>(t,n,o)=>e(n0(n),o)(t);class oc{constructor(e={}){this.logger=n2.create("formatter"),this.options=e,this.init(e)}init(e,t={interpolation:{}}){this.formatSeparator=t.interpolation.formatSeparator||",";let n=t.cacheInBuiltFormats?os:od;this.formats={number:n((e,t)=>{let n=new Intl.NumberFormat(e,{...t});return e=>n.format(e)}),currency:n((e,t)=>{let n=new Intl.NumberFormat(e,{...t,style:"currency"});return e=>n.format(e)}),datetime:n((e,t)=>{let n=new Intl.DateTimeFormat(e,{...t});return e=>n.format(e)}),relativetime:n((e,t)=>{let n=new Intl.RelativeTimeFormat(e,{...t});return e=>n.format(e,t.range||"day")}),list:n((e,t)=>{let n=new Intl.ListFormat(e,{...t});return e=>n.format(e)})}}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=os(t)}format(e,t,n,o={}){if(!t||null==e)return e;let r=t.split(this.formatSeparator),i=[];for(let e=0;e<r.length;e++){let t=r[e];for(;t.indexOf("(")>-1&&!t.includes(")")&&e+1<r.length;)t=`${t}${this.formatSeparator}${r[++e]}`;i.push(t)}return i.reduce((e,t)=>{let{formatName:r,formatOptions:i}=(e=>{let t=e.toLowerCase().trim(),n={};if(e.includes("(")){let o=e.split("(");t=o[0].toLowerCase().trim();let r=o[1].slice(0,-1);"currency"!==t||r.includes(":")?"relativetime"!==t||r.includes(":")?r.split(";").forEach(e=>{if(e){let[t,...o]=e.split(":"),r=o.join(":").trim().replace(/^'+|'+$/g,""),i=t.trim();n[i]||(n[i]=r),"false"===r&&(n[i]=!1),"true"===r&&(n[i]=!0),isNaN(r)||(n[i]=parseInt(r,10))}}):n.range||(n.range=r.trim()):n.currency||(n.currency=r.trim())}return{formatName:t,formatOptions:n}})(t);if(this.formats[r]){let t=e;try{let a=o?.formatParams?.[o.interpolationkey]||{},s=a.locale||a.lng||o.locale||o.lng||n;t=this.formats[r](e,s,{...i,...o,...a})}catch(e){this.logger.warn(e)}return t}return this.logger.warn(`there was no format function for ${r}`),e},e)}}class ol extends n4{constructor(e,t,n,o={}){super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=o,this.logger=n2.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=o.maxParallelReads||10,this.readingCalls=0,this.maxRetries=o.maxRetries>=0?o.maxRetries:5,this.retryTimeout=o.retryTimeout>=1?o.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(n,o.backend,o)}queueLoad(e,t,n,o){let r={},i={},a={},s={};return e.forEach(e=>{let o=!0;t.forEach(t=>{let a=`${e}|${t}`;!n.reload&&this.store.hasResourceBundle(e,t)?this.state[a]=2:this.state[a]<0||(1===this.state[a]?void 0===i[a]&&(i[a]=!0):(this.state[a]=1,o=!1,void 0===i[a]&&(i[a]=!0),void 0===r[a]&&(r[a]=!0),void 0===s[t]&&(s[t]=!0)))}),o||(a[e]=!0)}),(Object.keys(r).length||Object.keys(i).length)&&this.queue.push({pending:i,pendingCount:Object.keys(i).length,loaded:{},errors:[],callback:o}),{toLoad:Object.keys(r),pending:Object.keys(i),toLoadLanguages:Object.keys(a),toLoadNamespaces:Object.keys(s)}}loaded(e,t,n){let o=e.split("|"),r=o[0],i=o[1];t&&this.emit("failedLoading",r,i,t),!t&&n&&this.store.addResourceBundle(r,i,n,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&n&&(this.state[e]=0);let a={};this.queue.forEach(n=>{((e,t,n)=>{let{obj:o,k:r}=n$(e,t,Object);o[r]=o[r]||[],o[r].push(n)})(n.loaded,[r],i),void 0!==n.pending[e]&&(delete n.pending[e],n.pendingCount--),t&&n.errors.push(t),0!==n.pendingCount||n.done||(Object.keys(n.loaded).forEach(e=>{a[e]||(a[e]={});let t=n.loaded[e];t.length&&t.forEach(t=>{void 0===a[e][t]&&(a[e][t]=!0)})}),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())}),this.emit("loaded",a),this.queue=this.queue.filter(e=>!e.done)}read(e,t,n,o=0,r=this.retryTimeout,i){if(!e.length)return i(null,{});if(this.readingCalls>=this.maxParallelReads)return void this.waitingReads.push({lng:e,ns:t,fcName:n,tried:o,wait:r,callback:i});this.readingCalls++;let a=(a,s)=>{if(this.readingCalls--,this.waitingReads.length>0){let e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}a&&s&&o<this.maxRetries?setTimeout(()=>{this.read(e,t,n,o+1,2*r,i)},r):i(a,s)},s=this.backend[n].bind(this.backend);if(2===s.length){try{let n=s(e,t);n&&"function"==typeof n.then?n.then(e=>a(null,e)).catch(a):a(null,n)}catch(e){a(e)}return}return s(e,t,a)}prepareLoading(e,t,n={},o){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();nI(e)&&(e=this.languageUtils.toResolveHierarchy(e)),nI(t)&&(t=[t]);let r=this.queueLoad(e,t,n,o);if(!r.toLoad.length)return r.pending.length||o(),null;r.toLoad.forEach(e=>{this.loadOne(e)})}load(e,t,n){this.prepareLoading(e,t,{},n)}reload(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}loadOne(e,t=""){let n=e.split("|"),o=n[0],r=n[1];this.read(o,r,"read",void 0,void 0,(n,i)=>{n&&this.logger.warn(`${t}loading namespace ${r} for language ${o} failed`,n),!n&&i&&this.logger.log(`${t}loaded namespace ${r} for language ${o}`,i),this.loaded(e,n,i)})}saveMissing(e,t,n,o,r,i={},a=()=>{}){if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(t))return void this.logger.warn(`did not save key "${n}" as the namespace "${t}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");if(null!=n&&""!==n){if(this.backend?.create){let s={...i,isUpdate:r},d=this.backend.create.bind(this.backend);if(d.length<6)try{let r;(r=5===d.length?d(e,t,n,o,s):d(e,t,n,o))&&"function"==typeof r.then?r.then(e=>a(null,e)).catch(a):a(null,r)}catch(e){a(e)}else d(e,t,n,o,a,s)}e&&e[0]&&this.store.addResource(e[0],t,n,o)}}}let om=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",enableSelector:!1,partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if("object"==typeof e[1]&&(t=e[1]),nI(e[1])&&(t.defaultValue=e[1]),nI(e[2])&&(t.tDescription=e[2]),"object"==typeof e[2]||"object"==typeof e[3]){let n=e[3]||e[2];Object.keys(n).forEach(e=>{t[e]=n[e]})}return t},interpolation:{escapeValue:!0,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),ou=e=>(nI(e.ns)&&(e.ns=[e.ns]),nI(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),nI(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&!e.supportedLngs.includes("cimode")&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),of=()=>{};class ob extends n4{constructor(e={},t){if(super(),this.options=ou(e),this.services={},this.logger=n2,this.modules={external:[]},(e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(t=>{"function"==typeof e[t]&&(e[t]=e[t].bind(e))})})(this),t&&!this.isInitialized&&!e.isClone){if(!this.options.initAsync)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(e={},t){this.isInitializing=!0,"function"==typeof e&&(t=e,e={}),null==e.defaultNS&&e.ns&&(nI(e.ns)?e.defaultNS=e.ns:e.ns.includes("translation")||(e.defaultNS=e.ns[0]));let n=om();this.options={...n,...this.options,...ou(e)},this.options.interpolation={...n.interpolation,...this.options.interpolation},void 0!==e.keySeparator&&(this.options.userDefinedKeySeparator=e.keySeparator),void 0!==e.nsSeparator&&(this.options.userDefinedNsSeparator=e.nsSeparator),"function"!=typeof this.options.overloadTranslationOptionHandler&&(this.options.overloadTranslationOptionHandler=n.overloadTranslationOptionHandler);let o=e=>e?"function"==typeof e?new e:e:null;if(!this.options.isClone){let e;this.modules.logger?n2.init(o(this.modules.logger),this.options):n2.init(null,this.options),e=this.modules.formatter?this.modules.formatter:oc;let t=new oe(this.options);this.store=new n5(this.options.resources,this.options);let n=this.services;n.logger=n2,n.resourceStore=this.store,n.languageUtils=t,n.pluralResolver=new oo(t,{prepend:this.options.pluralSeparator}),e&&(n.formatter=o(e),n.formatter.init&&n.formatter.init(n,this.options),this.options.interpolation.format=n.formatter.format.bind(n.formatter)),n.interpolator=new oa(this.options),n.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},n.backendConnector=new ol(o(this.modules.backend),n.resourceStore,n,this.options),n.backendConnector.on("*",(e,...t)=>{this.emit(e,...t)}),this.modules.languageDetector&&(n.languageDetector=o(this.modules.languageDetector),n.languageDetector.init&&n.languageDetector.init(n,this.options.detection,this.options)),this.modules.i18nFormat&&(n.i18nFormat=o(this.modules.i18nFormat),n.i18nFormat.init&&n.i18nFormat.init(this)),this.translator=new n9(this.services,this.options),this.translator.on("*",(e,...t)=>{this.emit(e,...t)}),this.modules.external.forEach(e=>{e.init&&e.init(this)})}if(this.format=this.options.interpolation.format,t||(t=of),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&"dev"!==e[0]&&(this.options.lng=e[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(e=>{this[e]=(...t)=>this.store[e](...t)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(e=>{this[e]=(...t)=>(this.store[e](...t),this)});let r=nj(),i=()=>{let e=(e,n)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),r.resolve(n),t(e,n)};if((this.languages||this.isLanguageChangingTo)&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initAsync?i():setTimeout(i,0),r}loadResources(e,t=of){let n=t,o=nI(e)?e:this.language;if("function"==typeof e&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if(o?.toLowerCase()==="cimode"&&(!this.options.preload||0===this.options.preload.length))return n();let e=[],t=t=>{t&&"cimode"!==t&&this.services.languageUtils.toResolveHierarchy(t).forEach(t=>{"cimode"!==t&&(e.includes(t)||e.push(t))})};o?t(o):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(e=>t(e)),this.options.preload?.forEach?.(e=>t(e)),this.services.backendConnector.load(e,this.options.ns,e=>{e||this.resolvedLanguage||!this.language||this.setResolvedLanguage(this.language),n(e)})}else n(null)}reloadResources(e,t,n){let o=nj();return"function"==typeof e&&(n=e,e=void 0),"function"==typeof t&&(n=t,t=void 0),e||(e=this.languages),t||(t=this.options.ns),n||(n=of),this.services.backendConnector.reload(e,t,e=>{o.resolve(),n(e)}),o}use(e){if(!e)throw Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&n3.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}setResolvedLanguage(e){if(e&&this.languages&&!["cimode","dev"].includes(e)){for(let e=0;e<this.languages.length;e++){let t=this.languages[e];if(!["cimode","dev"].includes(t)&&this.store.hasLanguageSomeTranslations(t)){this.resolvedLanguage=t;break}}!this.resolvedLanguage&&!this.languages.includes(e)&&this.store.hasLanguageSomeTranslations(e)&&(this.resolvedLanguage=e,this.languages.unshift(e))}}changeLanguage(e,t){this.isLanguageChangingTo=e;let n=nj();this.emit("languageChanging",e);let o=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},r=(r,i)=>{i?this.isLanguageChangingTo===e&&(o(i),this.translator.changeLanguage(i),this.isLanguageChangingTo=void 0,this.emit("languageChanged",i),this.logger.log("languageChanged",i)):this.isLanguageChangingTo=void 0,n.resolve((...e)=>this.t(...e)),t&&t(r,(...e)=>this.t(...e))},i=t=>{e||t||!this.services.languageDetector||(t=[]);let n=nI(t)?t:t&&t[0],i=this.store.hasLanguageSomeTranslations(n)?n:this.services.languageUtils.getBestMatchFromCodes(nI(t)?[t]:t);i&&(this.language||o(i),this.translator.language||this.translator.changeLanguage(i),this.services.languageDetector?.cacheUserLanguage?.(i)),this.loadResources(i,e=>{r(e,i)})};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(i):this.services.languageDetector.detect(i):i(e):i(this.services.languageDetector.detect()),n}getFixedT(e,t,n,o){let r=o?.scopeNs,i=(e,t,...o)=>{let a,s;(a="object"!=typeof t?this.options.overloadTranslationOptionHandler([e,t].concat(o)):{...t}).lng=a.lng||i.lng,a.lngs=a.lngs||i.lngs;let d=void 0!==a.ns&&null!==a.ns;a.ns=a.ns||i.ns,""!==a.keyPrefix&&(a.keyPrefix=a.keyPrefix||n||i.keyPrefix);let c={...this.options,...a};Array.isArray(r)&&!d&&(c.ns=r),"function"==typeof a.keyPrefix&&(a.keyPrefix=n8(a.keyPrefix,c));let l=this.options.keySeparator||".";return a.keyPrefix&&Array.isArray(e)?s=e.map(e=>("function"==typeof e&&(e=n8(e,c)),`${a.keyPrefix}${l}${e}`)):("function"==typeof e&&(e=n8(e,c)),s=a.keyPrefix?`${a.keyPrefix}${l}${e}`:e),this.t(s,a)};return nI(e)?i.lng=e:i.lngs=e,i.ns=t,i.keyPrefix=n,i}t(...e){return this.translator?.translate(...e)}exists(...e){return this.translator?.exists(...e)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e,t={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;let n=t.lng||this.resolvedLanguage||this.languages[0],o=!!this.options&&this.options.fallbackLng,r=this.languages[this.languages.length-1];if("cimode"===n.toLowerCase())return!0;let i=(e,t)=>{let n=this.services.backendConnector.state[`${e}|${t}`];return -1===n||0===n||2===n};if(t.precheck){let e=t.precheck(this,i);if(void 0!==e)return e}return!!(this.hasResourceBundle(n,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||i(n,e)&&(!o||i(r,e)))}loadNamespaces(e,t){let n=nj();return this.options.ns?(nI(e)&&(e=[e]),e.forEach(e=>{this.options.ns.includes(e)||this.options.ns.push(e)}),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}loadLanguages(e,t){let n=nj();nI(e)&&(e=[e]);let o=this.options.preload||[],r=e.filter(e=>!o.includes(e)&&this.services.languageUtils.isSupportedCode(e));return r.length?(this.options.preload=o.concat(r),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!e)return"rtl";try{let t=new Intl.Locale(e);if(t&&t.getTextInfo){let e=t.getTextInfo();if(e&&e.direction)return e.direction}}catch(e){}let t=this.services?.languageUtils||new oe(om());return e.toLowerCase().indexOf("-latn")>1?"ltr":["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].includes(t.getLanguagePartFromCode(e))||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(e={},t){let n=new ob(e,t);return n.createInstance=ob.createInstance,n}cloneInstance(e={},t=of){let n=e.forkResourceStore;n&&delete e.forkResourceStore;let o={...this.options,...e,isClone:!0},r=new ob(o);if((void 0!==e.debug||void 0!==e.prefix)&&(r.logger=r.logger.clone(e)),["store","services","language"].forEach(e=>{r[e]=this[e]}),r.services={...this.services},r.services.utils={hasLoadedNamespace:r.hasLoadedNamespace.bind(r)},n&&(r.store=new n5(Object.keys(this.store.data).reduce((e,t)=>(e[t]={...this.store.data[t]},e[t]=Object.keys(e[t]).reduce((n,o)=>(n[o]={...e[t][o]},n),e[t]),e),{}),o),r.services.resourceStore=r.store),e.interpolation){let t={...om().interpolation,...this.options.interpolation,...e.interpolation},n={...o,interpolation:t};r.services.interpolator=new oa(n)}return r.translator=new n9(r.services,o),r.translator.on("*",(e,...t)=>{r.emit(e,...t)}),r.init(o,t),r.translator.options=o,r.translator.backendConnector.services.utils={hasLoadedNamespace:r.hasLoadedNamespace.bind(r)},r}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}let oh=ob.createInstance();oh.createInstance,oh.dir,oh.init,oh.loadResources,oh.reloadResources,oh.use,oh.changeLanguage,oh.getFixedT,oh.t,oh.exists,oh.setDefaultNamespace,oh.hasLoadedNamespace,oh.loadNamespaces,oh.loadLanguages;var op=n(4867),o_=n.n(op);n(3472);class oF{get resolve(){return this._resolve}get reject(){return this._reject}get promise(){return this._promise}constructor(){this._promise=new Promise((e,t)=>{this._resolve=e,this._reject=t}),Object.freeze(this)}}function og(){return"function"==typeof crypto.randomUUID?crypto.randomUUID():"10000000-1000-4000-8000-100000000000".replace(/[018]/g,e=>(e^crypto.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16))}class oy{constructor(e){e&&Object.assign(this,e)}matches(e){var t,n,o,r,i,a,s;if((null==(t=this.ids)?void 0:t.length)&&(!e.id||!this.ids.includes(e.id))||(null==(n=this.types)?void 0:n.length)&&(!e.type||!this.types.includes(e.type))||(null==(o=this.realm)?void 0:o.name)&&e.realm!==this.realm.name||(null==(r=this.parents)?void 0:r.length)&&!this.parents.some(t=>!t.id||e.parentId===t.id))return!1;if(null==(i=this.paths)?void 0:i.length){let t=null!=(a=e.path)?a:[];if(!this.paths.some(e=>{var n;return(null!=(n=e.path)?n:[]).every((e,n)=>t[n]===e)}))return!1}return(null==(s=this.names)||!s.length||!!this.names.every(t=>oy._evalValuePredicate(e.name,t)))&&(!this.attributes||oy._evalGroup(e,this.attributes))}static getUnsupportedFields(e){return Object.keys(e).filter(e=>!oy._SUPPORTED_FIELDS.has(e))}collectAttributeNames(){return this.attributes?oy._collectNames(this.attributes):[]}static _evalValuePredicate(e,t){var n;switch(t.predicateType){case"string":{let o;if(null==e)return!1;let r=!1!==t.caseSensitive?String(e):String(e).toLowerCase(),i=!1!==t.caseSensitive?t.value:null==(n=t.value)?void 0:n.toLowerCase();switch(t.match){case"BEGIN":o=r.startsWith(i);break;case"END":o=r.endsWith(i);break;case"CONTAINS":o=r.includes(i);break;default:o=r===i}return t.negate?!o:o}case"boolean":return e===t.value;case"number":{let n;if("number"!=typeof e)return!1;switch(t.operator){case"GREATER_THAN":n=e>t.value;break;case"GREATER_EQUALS":n=e>=t.value;break;case"LESS_THAN":n=e<t.value;break;case"LESS_EQUALS":n=e<=t.value;break;case"BETWEEN":n=e>=t.value&&e<=t.rangeValue;break;default:n=e===t.value}return t.negate?!n:n}}return!1}static _evalPredicate(e,t){var n,o;let r=null==(n=t.name)?void 0:n.value;if(!r)return!0;let i=null==(o=e.attributes)?void 0:o[r];if(!i)return!!t.negated;let a=!t.value||oy._evalValuePredicate(i.value,t.value);return t.negated?!a:a}static _evalGroup(e,t){var n,o,r;let i=null!=(n=t.operator)?n:"AND",a=[...(null!=(o=t.items)?o:[]).map(t=>oy._evalPredicate(e,t)),...(null!=(r=t.groups)?r:[]).map(t=>oy._evalGroup(e,t))];return!a.length||("OR"===i?a.some(Boolean):a.every(Boolean))}static _collectNames(e){var t,n;return[...(null!=(t=e.items)?t:[]).map(e=>{var t;return null==(t=e.name)?void 0:t.value}).filter(e=>!!e),...(null!=(n=e.groups)?n:[]).flatMap(e=>oy._collectNames(e))]}}oy._SUPPORTED_FIELDS=new Set(["ids","types","names","parents","paths","realm","attributes"]);var ov=function(e,t,n,o){return new(n||(n=Promise))(function(r,i){function a(e){try{d(o.next(e))}catch(e){i(e)}}function s(e){try{d(o.throw(e))}catch(e){i(e)}}function d(e){var t;e.done?r(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(a,s)}d((o=o.apply(e,t||[])).next())})};let ow=n(4461);class ok{constructor(e,t,n){this._autoEnable=!1,this._initialised=!1,this._initialiseInProgress=!1,this._pendingProviderPromises={},this._providerMessageListeners={},this._pendingProviderEnables=[],this._registrationTimer=null,this._realm=e,this._autoEnable=t,this._enableCompleteCallback=n,window.OpenRemoteConsole=this;let o=new URLSearchParams(window.location.search),r=o.get("consoleName"),i=o.get("consoleVersion"),a=o.get("consolePlatform"),s=o.get("consoleProviders"),d=o.get("consoleAutoEnable"),c=s&&s.length>0?s.split(" "):["push"];this._pendingProviderEnables=c;let l=ok._createConsoleRegistration(),m=window.localStorage.getItem(this._storageKey);if(m)try{let e=JSON.parse(m);e.id&&(l.id=e.id),e.name&&(l.name=e.name),e.providers&&(l.providers=e.providers),e.apps&&(l.apps=e.apps)}catch(e){console.error("Failed to deserialise console registration")}let u=l.providers;for(let e of(l.providers={},c)){let t=u&&u.hasOwnProperty(e)?u[e]:{enabled:!1,disabled:!1};l.providers[e]=t}let f=ss.getAppName();f.length>0&&0>l.apps.indexOf(f)&&l.apps.push(f),this._registration=l,r&&(l.name=r),i&&(l.version=i),a&&(l.platform=a),d&&(this._autoEnable="TRUE"===d||"true"===d)}get registration(){return this._registration}get autoEnable(){return this._autoEnable}get pendingProviderEnables(){return this._pendingProviderEnables.slice(0)}get shellApple(){let e=navigator.userAgentData&&navigator.userAgentData.platform?navigator.userAgentData.platform:navigator.platform;return e&&("iP"===e.substring(0,2)||"Mac"===e.substring(0,3))&&window.webkit&&window.webkit.messageHandlers}get shellAndroid(){return!!window.MobileInterface}get isMobile(){return this.shellApple||this.shellAndroid}initialise(){return ov(this,void 0,void 0,function*(){if(!this._initialised&&!this._initialiseInProgress){console.debug("Console: initialising"),this._initialiseInProgress=!0;try{if(this._registration.providers)for(let e of Object.keys(this._registration.providers))yield this._initialiseProvider(e);this._registration.id||(yield this.sendRegistration()),this._initialised=!0,this._initialiseInProgress=!1,0===this._pendingProviderEnables.length?(yield this.sendRegistration(),this._callCompletedCallback()):this._autoEnable&&(yield this.enableProviders())}catch(e){console.error(e)}finally{this._initialiseInProgress=!1}}})}enableProviders(){return ov(this,void 0,void 0,function*(){if(!this._initialised)throw Error("Console must be initialised before enabling providers");for(let e=this._pendingProviderEnables.length-1;e>-1;e--){let t=this._pendingProviderEnables[e];yield this.enableProvider(t)}})}enableProvider(e,t){return ov(this,void 0,void 0,function*(){if(!this._initialised)throw console.debug("Console must be initialised before disabling providers"),Error("Console must be initialised before enabling providers");if(!this._registration.providers.hasOwnProperty(e))throw console.debug("Invalid console provider '"+e+"'"),Error("Invalid console provider '"+e+"'");console.debug("Console: enabling provider '"+e+"'");let n={provider:e,action:"PROVIDER_ENABLE",consoleId:this._registration.id,data:t},o=yield this.sendProviderMessage(n,!0);this._registration.providers[e].hasPermission=o.hasPermission,this._registration.providers[e].success=o.success,this._registration.providers[e].enabled=o.success,this._registration.providers[e].data=o.data;let r=this._pendingProviderEnables.indexOf(e);return r>=0&&(this._pendingProviderEnables.splice(r,1),0===this._pendingProviderEnables.length&&(this.sendRegistration().catch(()=>void 0),this._callCompletedCallback())),o})}disableProvider(e){return ov(this,void 0,void 0,function*(){if(!this._initialised)throw console.debug("Console must be initialised before disabling providers"),Error("Console must be initialised before disabling providers");if(!this._registration.providers.hasOwnProperty(e))throw console.debug("Invalid console provider '"+e+"'"),Error("Invalid console provider '"+e+"'");console.debug("Console: disabling provider '"+e+"'");let t=yield this.sendProviderMessage({provider:e,action:"PROVIDER_DISABLE"},!0);return this._registration.providers[e].disabled=!0,this._registration.providers[e].enabled=!1,t})}getProvider(e){return this._registration&&this._registration.providers?this._registration.providers[e]:void 0}sendProviderMessage(e,t){return ov(this,void 0,void 0,function*(){if("storage"!==e.provider&&!this._registration.providers.hasOwnProperty(e.provider))throw console.debug("Invalid console provider '"+e.provider+"'"),Error("Invalid console provider '"+e.provider+"'");if(!t)return void this._doSendProviderMessage(e);let n=e.provider+e.action;if(this._pendingProviderPromises[n])throw Error("Message already pending for provider '"+e.provider+"' with action '"+e.action+"'");let o=new oF,r=()=>{delete this._pendingProviderPromises[n],o.reject("No response from provider")};return this._pendingProviderPromises[n]=[o,window.setTimeout(r,5e3)],this._doSendProviderMessage(e),o.promise})}sendRegistration(){return this._registrationTimer&&(window.clearTimeout(this._registrationTimer),this._registrationTimer=null),new Promise((e,t)=>{this._registrationTimer=window.setTimeout(()=>ov(this,void 0,void 0,function*(){this._registrationTimer=null,console.debug("Console: updating registration");try{yield this._sendRegistration(!0),e()}catch(e){console.error("Failed to register console",e),t(e)}}))})}_sendRegistration(e){return ov(this,void 0,void 0,function*(){this._normaliseRegistration();let t=!!this._registration.id;try{let e=yield ss.rest.api.ConsoleResource.register(this._registration);if(200!==e.status)throw Error("Failed to register console");this._registration=e.data,console.debug("Console: registration successful"),console.debug("Console: updating locally stored registration"),window.localStorage.setItem(this._storageKey,JSON.stringify(this._registration))}catch(n){if(e&&t&&ok._isStaleRegistrationResponse(n)){console.warn("Console registration ID is stale or cannot be claimed; creating a new console registration"),window.localStorage.removeItem(this._storageKey),delete this._registration.id,yield this._sendRegistration(!1);return}throw n}})}_normaliseRegistration(){this._registration.name||(this._registration.name="Console"),this._registration.platform||(this._registration.platform="N/A"),this._registration.version||(this._registration.version="N/A"),this._registration.providers||(this._registration.providers={})}get _storageKey(){return"OpenRemoteConsole:"+this._realm}static _isStaleRegistrationResponse(e){let t=e&&e.response?e.response.status:void 0;return 403===t||409===t}storeData(e,t){this.sendProviderMessage({provider:"storage",action:"STORE",key:e,value:t},!1)}retrieveData(e){return ov(this,void 0,void 0,function*(){let t=this.sendProviderMessage({provider:"storage",action:"RETRIEVE",key:e},!0);try{let e=yield Promise.race([t,new Promise((e,t)=>setTimeout(t,2e3))]);if(e&&e.value){let t=e.value;return"null"===t?void 0:t}}catch(e){console.log("Failed to retrieve data from storage provider")}})}addProviderMessageListener(e,t){this._providerMessageListeners[e.provider+e.action]=t}removeProviderMessageListener(e){delete this._providerMessageListeners[e.provider+e.action]}_postNativeShellMessage(e){try{if(this.shellAndroid)return window.MobileInterface.postMessage(JSON.stringify(e));if(this.shellApple)return window.webkit.messageHandlers.int.postMessage(e)}catch(e){console.error("Failed to send shell message towards console",e)}}_doSendGenericMessage(e,t){let n={type:e,data:t};this.isMobile?this._postNativeShellMessage(n):console.warn("Failed to send generic message to console.",n)}_doSendProviderMessage(e){if(this.isMobile)this._postNativeShellMessage({type:"provider",data:e});else{if(!e.provider||!e.action)return;switch(e.provider.trim().toUpperCase()){case"PUSH":switch(e.action.trim().toUpperCase()){case"PROVIDER_INIT":this._handleProviderResponse(JSON.stringify({action:"PROVIDER_INIT",provider:"push",version:"web",enabled:!0,disabled:!1,hasPermission:!0,requiresPermission:!1,success:!0}));break;case"PROVIDER_ENABLE":this._handleProviderResponse(JSON.stringify({action:"PROVIDER_ENABLE",provider:"push",hasPermission:!0,success:!0}));break;default:throw Error("Unsupported provider '"+e.provider+"' and action '"+e.action+"'")}break;case"STORAGE":switch(e.action){case"PROVIDER_INIT":this._handleProviderResponse(JSON.stringify({action:"PROVIDER_INIT",provider:"storage",version:"1.0.0",disabled:!1,enabled:!0,hasPermission:!0,requiresPermission:!1,success:!0}));break;case"PROVIDER_ENABLE":this._handleProviderResponse(JSON.stringify({action:"PROVIDER_ENABLE",provider:"storage",hasPermission:!0,success:!0}));break;case"STORE":{let t=e.key?e.key.trim():null;if(!t||0===t.length)throw Error("Storage provider 'store' action requires a `key`");null===e.value?window.localStorage.removeItem(t):window.localStorage.setItem(t,JSON.stringify(e.value))}break;case"RETRIEVE":{let t=e.key?e.key.trim():null;if(!t||0===t.length)throw Error("Storage provider 'retrieve' action requires a `key`");let n=window.localStorage.getItem(t);if(null!==n)try{n=JSON.parse(n)}catch(e){}this._handleProviderResponse(JSON.stringify({action:"RETRIEVE",provider:"storage",key:t,value:n}))}break;default:throw Error("Unsupported provider '"+e.provider+"' and action '"+e.action+"'")}break;default:console.error("Unsupported provider: "+e.provider)}}}_handleProviderResponse(e){if(!e)return;let t=JSON.parse(e),n=t.provider,o=t.action,r=this._pendingProviderPromises[n+o];r&&(window.clearTimeout(r[1]),delete this._pendingProviderPromises[n+o],r[0].resolve(t));let i=this._providerMessageListeners[n+o];i&&i(t)}_callCompletedCallback(){let e=this._enableCompleteCallback;this._enableCompleteCallback=null,e&&window.setTimeout(()=>{e()},0)}static _createConsoleRegistration(){return{name:ow.name,version:ow.version,platform:ow.os.toString(),apps:[],model:((ow.manufacturer?ow.manufacturer+" ":"")+(ow.product?ow.product:"")).trim()}}_initialiseProvider(e){return ov(this,void 0,void 0,function*(){let t;console.debug("Console: initialising provider '"+e+"'");try{t=yield this.sendProviderMessage({provider:e,action:"PROVIDER_INIT"},!0),this._registration.providers[e].version=t.version,this._registration.providers[e].requiresPermission=t.requiresPermission,this._registration.providers[e].hasPermission=t.hasPermission,this._registration.providers[e].success=t.success,this._registration.providers[e].enabled=t.enabled,this._registration.providers[e].disabled=t.disabled,this._registration.providers[e].data=t.data}catch(e){console.error(e),t={action:"",disabled:!1,enabled:!1,hasPermission:!1,provider:"",requiresPermission:!1,version:"",success:!1}}if(t.success||(console.debug("Provider initialisation failed: '"+e+"'"),t.disabled=!0,this._registration.providers[e].disabled=!0),t.disabled||t.enabled){let t=this._pendingProviderEnables.indexOf(e);t>=0&&this._pendingProviderEnables.splice(t,1)}})}}function oM(e,t){return function(){return e.apply(t,arguments)}}let{toString:oE}=Object.prototype,{getPrototypeOf:oL}=Object,{iterator:oD,toStringTag:oA}=Symbol,oT=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),oC=e=>"string"==typeof e&&("__proto__"===e||"constructor"===e||"prototype"===e),oS=(e,t,n)=>e===Object.prototype||!n&&null===t,ox=(e,t)=>{let n=e,o=[];for(;null!=n&&-1===o.indexOf(n);){o.push(n);let r=oL(n);if(oS(n,r,n===e))break;if(oT(n,t))return!0;n=r}return!1},oY=(i=Object.create(null),e=>{let t=oE.call(e);return i[t]||(i[t]=t.slice(8,-1).toLowerCase())}),oO=e=>(e=e.toLowerCase(),t=>oY(t)===e),oB=e=>t=>typeof t===e,{isArray:oR}=Array,oP=oB("undefined");function oN(e){return null!==e&&!oP(e)&&null!==e.constructor&&!oP(e.constructor)&&oH(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}let oI=oO("ArrayBuffer"),oj=oB("string"),oH=oB("function"),oU=oB("number"),oW=e=>null!==e&&"object"==typeof e,oz=e=>{if(!oW(e))return!1;let t=oL(e);return(null===t||t===Object.prototype||null===oL(t))&&!ox(e,oA)&&!ox(e,oD)},o$=oO("Date"),oG=oO("File"),oq=oO("Blob"),oV=oO("FileList"),oJ=oO("Set"),oK="u">typeof globalThis?globalThis:"u">typeof self?self:"u">typeof window?window:"u">typeof global?global:{},oX=void 0!==oK.FormData?oK.FormData:void 0,oQ=oO("URLSearchParams"),[oZ,o0,o1,o2]=["ReadableStream","Request","Response","Headers"].map(oO);function o4(e,t,{allOwnKeys:n=!1}={}){let o,r;if(null!=e)if("object"!=typeof e&&(e=[e]),oR(e))for(o=0,r=e.length;o<r;o++)t.call(null,e[o],o,e);else{let r;if(oN(e))return;let i=n?Object.getOwnPropertyNames(e):Object.keys(e),a=i.length;for(o=0;o<a;o++)r=i[o],t.call(null,e[r],r,e)}}function o5(e,t){let n;if(oN(e))return null;t=t.toLowerCase();let o=Object.keys(e),r=o.length;for(;r-- >0;)if(t===(n=o[r]).toLowerCase())return n;return null}let o3="u">typeof globalThis?globalThis:"u">typeof self?self:"u">typeof window?window:global,o6=e=>!oP(e)&&e!==o3,o8=(a="u">typeof Uint8Array&&oL(Uint8Array),e=>a&&e instanceof a),o7=oO("HTMLFormElement"),{propertyIsEnumerable:o9}=Object.prototype,re=oO("RegExp"),rt=(e,t)=>{let n=Object.getOwnPropertyDescriptors(e),o={};o4(n,(n,r)=>{let i;!1!==(i=t(n,r,e))&&(o[r]=i||n)}),Object.defineProperties(e,o)},rn=oO("AsyncFunction"),ro=(c="function"==typeof setImmediate,l=oH(o3.postMessage),c?setImmediate:l?(m=`axios@${Math.random()}`,u=[],o3.addEventListener("message",({source:e,data:t})=>{e===o3&&t===m&&u.length&&u.shift()()},!1),e=>{u.push(e),o3.postMessage(m,"*")}):e=>setTimeout(e)),rr="u">typeof queueMicrotask?queueMicrotask.bind(o3):"u">typeof process&&process.nextTick||ro,ri=e=>null!=e&&oH(e[oD]),ra={isArray:oR,isArrayBuffer:oI,isBuffer:oN,isFormData:e=>{if(!e)return!1;if(oX&&e instanceof oX)return!0;let t=oL(e);if(!t||t===Object.prototype||!oH(e.append))return!1;let n=oY(e);return"formdata"===n||"object"===n&&oH(e.toString)&&"[object FormData]"===e.toString()},isArrayBufferView:function(e){return"u">typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&oI(e.buffer)},isString:oj,isNumber:oU,isBoolean:e=>!0===e||!1===e,isObject:oW,isPlainObject:oz,isEmptyObject:e=>{if(!oW(e)||oN(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:oZ,isRequest:o0,isResponse:o1,isHeaders:o2,isUndefined:oP,isDate:o$,isFile:oG,isReactNativeBlob:e=>!!(e&&void 0!==e.uri),isReactNative:e=>e&&void 0!==e.getParts,isBlob:oq,isRegExp:re,isFunction:oH,isStream:e=>oW(e)&&oH(e.pipe),isURLSearchParams:oQ,isTypedArray:o8,isFileList:oV,forEach:o4,merge:function e(...t){let{caseless:n,skipUndefined:o}=o6(this)&&this||{},r={},i=(t,i)=>{if("__proto__"===i||"constructor"===i||"prototype"===i)return;let a=n&&"string"==typeof i&&o5(r,i)||i,s=oT(r,a)?r[a]:void 0;oz(s)&&oz(t)?r[a]=e(s,t):oz(t)?r[a]=e({},t):oR(t)?r[a]=t.slice():o&&oP(t)||(r[a]=t)};for(let e=0,n=t.length;e<n;e++){let n=t[e];if(!n||oN(n)||(o4(n,i),"object"!=typeof n||oR(n)))continue;let o=Object.getOwnPropertySymbols(n);for(let e=0;e<o.length;e++){let t=o[e];o9.call(n,t)&&i(n[t],t)}}return r},extend:(e,t,n,{allOwnKeys:o}={})=>(o4(t,(t,o)=>{n&&oH(t)?Object.defineProperty(e,o,{__proto__:null,value:oM(t,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,o,{__proto__:null,value:t,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:o}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,o)=>{e.prototype=Object.create(t.prototype,o),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,o)=>{let r,i,a,s={};if(t=t||{},null==e)return t;do{for(i=(r=Object.getOwnPropertyNames(e)).length;i-- >0;)a=r[i],(!o||o(a,e,t))&&!s[a]&&(t[a]=e[a],s[a]=!0);e=!1!==n&&oL(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:oY,kindOfTest:oO,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;let o=e.indexOf(t,n);return -1!==o&&o===n},toArray:e=>{if(!e)return null;if(oR(e))return e;let t=e.length;if(!oU(t))return null;let n=Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{let n,o=(e&&e[oD]).call(e);for(;(n=o.next())&&!n.done;){let o=n.value;t.call(e,o[0],o[1])}},matchAll:(e,t)=>{let n,o=[];for(;null!==(n=e.exec(t));)o.push(n);return o},isHTMLForm:o7,hasOwnProperty:oT,hasOwnProp:oT,hasOwnInPrototypeChain:ox,getSafeProp:(e,t)=>null!=e&&ox(e,t)?e[t]:void 0,toSafeFlatObject:e=>{if(null==e||"object"!=typeof e&&"function"!=typeof e)return e;let t=oL(e);if(null===t&&(e=>{if(!Object.isExtensible(e))return!1;let t=Object.getOwnPropertyNames(e);return Object.getOwnPropertySymbols&&t.push(...Object.getOwnPropertySymbols(e)),t.every(t=>{if(oC(t))return!1;let n=Object.getOwnPropertyDescriptor(e,t);return!!n&&n.configurable&&!0===n.writable})})(e))return e;let n=Object.create(null),o=Object.create(null),r=[],i=e;for(;null!=i&&-1===r.indexOf(i);){r.push(i);let a=i===e?t:oL(i);if(oS(i,a,i===e))break;let s=Object.getOwnPropertyNames(i);for(let t of(Object.getOwnPropertySymbols&&s.push(...Object.getOwnPropertySymbols(i)),s))!oC(t)&&(oT(o,t)||(n[t]=e[t],o[t]=!0));i=a}return n},reduceDescriptors:rt,freezeMethods:e=>{rt(e,(t,n)=>{if(oH(e)&&["arguments","caller","callee"].includes(n))return!1;if(oH(e[n])){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},toObjectSet:(e,t)=>{let n={};return(oR(e)?e:String(e).split(t)).forEach(e=>{n[e]=!0}),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e*=1)?e:t,findKey:o5,global:o3,isContextDefined:o6,isSpecCompliantForm:function(e){return!!(e&&oH(e.append)&&"FormData"===e[oA]&&e[oD])},toJSONObject:e=>{let t=new WeakSet,n=e=>{if(oW(e)){if(t.has(e))return;if(oN(e))return e;if(!("toJSON"in e)){let o;if(t.add(e),oJ(e))for(let t of(o=[],e)){let e=n(t);oP(e)||o.push(e)}else o=oR(e)?[]:{},o4(e,(e,t)=>{let r=n(e);oP(r)||(o[t]=r)});return t.delete(e),o}}return e};return n(e)},isAsyncFn:rn,isThenable:e=>e&&(oW(e)||oH(e))&&oH(e.then)&&oH(e.catch),setImmediate:ro,asap:rr,isIterable:ri,isSafeIterable:e=>null!=e&&ox(e,oD)&&ri(e)},rs=ra.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),rd=RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),rc=RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function rl(e,t){return ra.isArray(e)?e.map(e=>rl(e,t)):function(e){let t=0,n=e.length;for(;t<n;){let n=e.charCodeAt(t);if(9!==n&&32!==n)break;t+=1}for(;n>t;){let t=e.charCodeAt(n-1);if(9!==t&&32!==t)break;n-=1}return 0===t&&n===e.length?e:e.slice(t,n)}(String(e).replace(t,""))}function rm(e){let t=Object.create(null);return ra.forEach(e.toJSON(),(e,n)=>{t[n]=rl(e,rc)}),t}let ru=Symbol("internals");function rf(e){return e&&String(e).trim().toLowerCase()}function rb(e){return!1===e||null==e?e:ra.isArray(e)?e.map(rb):rl(String(e),rd)}let rh=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;function rp(e){let t=0,n=e.length;for(;t<n;){let n=e.charCodeAt(t);if(9!==n&&32!==n)break;t+=1}for(;n>t;){let t=e.charCodeAt(n-1);if(9!==t&&32!==t)break;n-=1}return 0===t&&n===e.length?e:e.slice(t,n)}function r_(e,t,n,o,r){if(ra.isFunction(o))return o.call(this,t,n);if(r&&(t=n),ra.isString(t)){if(ra.isString(o))return -1!==t.indexOf(o);if(ra.isRegExp(o))return o.test(t)}}class rF{constructor(e){e&&this.set(e)}set(e,t,n){let o=this;function r(e,t,n){let r=rf(t);if(!r)return;let i=ra.findKey(o,r);i&&void 0!==o[i]&&!0!==n&&(void 0!==n||!1===o[i])||(o[i||t]=rb(e))}let i=(e,t)=>ra.forEach(e,(e,n)=>r(e,n,t));if(ra.isPlainObject(e)||e instanceof this.constructor)i(e,t);else{let o;if(ra.isString(e)&&(e=e.trim())&&(o=e,!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(o.trim()))){var a;let n,o,r,s;i((s={},(a=e)&&a.split("\n").forEach(function(e){r=e.indexOf(":"),n=e.substring(0,r).trim().toLowerCase(),o=e.substring(r+1).trim();let t=ra.hasOwnProp(s,n);!n||t&&ra.hasOwnProp(rs,n)||("set-cookie"===n?t?s[n].push(o):s[n]=[o]:s[n]=t?s[n]+", "+o:o)}),s),t)}else if(ra.isObject(e)&&ra.isSafeIterable(e)){let n=Object.create(null),o,r;for(let t of e){if(!ra.isArray(t))throw TypeError("Object iterator must return a key-value pair");r=t[0],ra.hasOwnProp(n,r)?(o=n[r],n[r]=ra.isArray(o)?[...o,t[1]]:[o,t[1]]):n[r]=t[1]}i(n,t)}else null!=e&&r(t,e,n)}return this}get(e,t){if(e=rf(e)){let n=ra.findKey(this,e);if(n){let e=this[n];if(!t)return e;if(!0===t){let t,n=Object.create(null),o=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;for(;t=o.exec(e);)n[t[1]]=t[2];return n}if(ra.isFunction(t))return t.call(this,e,n);if(ra.isRegExp(t))return t.exec(e);throw TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=rf(e)){let n=ra.findKey(this,e);return!!(n&&void 0!==this[n]&&(!t||r_(this,this[n],n,t)))}return!1}delete(e,t){let n=this,o=!1;function r(e){if(e=rf(e)){let r=ra.findKey(n,e);r&&(!t||r_(n,n[r],r,t))&&(delete n[r],o=!0)}}return ra.isArray(e)?e.forEach(r):r(e),o}clear(e){let t=Object.keys(this),n=t.length,o=!1;for(;n--;){let r=t[n];(!e||r_(this,this[r],r,e,!0))&&(delete this[r],o=!0)}return o}normalize(e){let t=this,n={};return ra.forEach(this,(o,r)=>{let i=ra.findKey(n,r);if(i){t[i]=rb(o),delete t[r];return}let a=e?r.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n):String(r).trim();a!==r&&delete t[r],t[a]=rb(o),n[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return ra.forEach(this,(n,o)=>{null!=n&&!1!==n&&(t[o]=e&&ra.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){let e=this.get("set-cookie");return ra.isArray(e)?e:null==e||!1===e?[]:[e]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static parseParameters(e){return function(e){let t=Object.create(null),n=String(e),o=0,r=!1,i=!1;function a(e){let r=rp(n.slice(o,e)),i=r.indexOf("=");if(i<1)return;let a=rp(r.slice(0,i));if(!rh.test(a))return;let s=a.toLowerCase();if("__proto__"===s||"constructor"===s||"prototype"===s)return;let d=rp(r.slice(i+1));t[s]=function(e){let t=e.length-1;if(t<1||34!==e.charCodeAt(0)||34!==e.charCodeAt(t))return e;let n="";for(let o=1;o<t;o++){let r=e.charCodeAt(o);if(34===r||92===r&&(o+=1)>=t)return e;n+=e[o]}return n}(d)}for(let e=0;e<n.length;e++){let t=n.charCodeAt(e);r?i?i=!1:92===t?i=!0:34===t&&(r=!1):34===t?r=!0:(44===t||59===t)&&(a(e),o=e+1)}return a(n.length),t}(e)}static concat(e,...t){let n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){let t=(this[ru]=this[ru]={accessors:{}}).accessors,n=this.prototype;function o(e){let o=rf(e);if(!t[o]){let r;r=ra.toCamelCase(" "+e),["get","set","has"].forEach(t=>{Object.defineProperty(n,t+r,{__proto__:null,value:function(n,o,r){return this[t].call(this,e,n,o,r)},configurable:!0})}),t[o]=!0}}return ra.isArray(e)?e.forEach(o):o(e),this}}rF.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),ra.reduceDescriptors(rF.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),ra.freezeMethods(rF);let rg="[REDACTED ****]";function ry(e){try{return String(e)}catch(e){return""}}class rv extends Error{static from(e,t,n,o,r,i){let a=e.message;!a&&ra.isArray(e.errors)&&e.errors.length&&(a=e.errors.map(e=>{try{return e&&e.message?ry(e.message):ry(e)}catch(e){return""}}).filter(Boolean).join("; ")||e.name||"AggregateError");let s=new rv(a,t||e.code,n,o,r);return Object.defineProperty(s,"cause",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),s.name=e.name,null!=e.status&&null==s.status&&(s.status=e.status),i&&Object.assign(s,i),s}constructor(e,t,n,o,r){super(e),Object.defineProperty(this,"message",{__proto__:null,value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,t&&(this.code=t),n&&(this.config=n),o&&(this.request=o),r&&(this.response=r,this.status=r.status)}toJSON(){let e,t,n,o=this.config,r=o&&ra.hasOwnProp(o,"redact")?o.redact:void 0,i=ra.isArray(r)&&r.length>0?(e=new Set(r.map(e=>String(e).toLowerCase())),t=[],(n=o=>{let r;if(null===o||"object"!=typeof o||ra.isBuffer(o))return o;if(-1===t.indexOf(o)){if(o instanceof rF&&(o=o.toJSON()),t.push(o),ra.isArray(o))r=[],o.forEach((e,t)=>{let o=n(e);ra.isUndefined(o)||(r[t]=o)});else{if(!ra.isPlainObject(o)&&function(e){if(ra.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(ra.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}(o))return t.pop(),o;for(let[t,i]of(r=Object.create(null),Object.entries(o))){let o=e.has(t.toLowerCase())?rg:n(i);ra.isUndefined(o)||(r[t]=o)}}return t.pop(),r}})(o)):ra.toJSONObject(o);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:i,code:this.code,status:this.status}}}rv.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",rv.ERR_BAD_OPTION="ERR_BAD_OPTION",rv.ECONNABORTED="ECONNABORTED",rv.ETIMEDOUT="ETIMEDOUT",rv.ECONNREFUSED="ECONNREFUSED",rv.ERR_NETWORK="ERR_NETWORK",rv.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",rv.ERR_DEPRECATED="ERR_DEPRECATED",rv.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",rv.ERR_BAD_REQUEST="ERR_BAD_REQUEST",rv.ERR_CANCELED="ERR_CANCELED",rv.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",rv.ERR_INVALID_URL="ERR_INVALID_URL",rv.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";let rw=rv;function rk(e){return ra.isPlainObject(e)||ra.isArray(e)}function rM(e){return ra.endsWith(e,"[]")?e.slice(0,-2):e}function rE(e,t,n){return e?e.concat(t).map(function(e,t){return e=rM(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}let rL=ra.toFlatObject(ra,{},null,function(e){return/^is[A-Z]/.test(e)}),rD=function(e,t,n){if(!ra.isObject(e))throw TypeError("target must be an object");t=t||new FormData;let o=(e,t)=>{let o=ra.getSafeProp(n,e);return ra.isUndefined(o)?t:o},r=o("metaTokens",!0),i=o("visitor")||b,a=o("dots",!1),s=o("indexes",!1),d=o("Blob")||"u">typeof Blob&&Blob,c=o("maxDepth",100),l=d&&ra.isSpecCompliantForm(t),m=[];if(!ra.isFunction(i))throw TypeError("visitor must be a function");function u(e){if(null===e)return"";if(ra.isDate(e))return e.toISOString();if(ra.isBoolean(e))return e.toString();if(!l&&ra.isBlob(e))throw new rw("Blob is not supported. Use a Buffer instead.");if(ra.isArrayBuffer(e)||ra.isTypedArray(e)){if(l&&"function"==typeof d)return new d([e]);throw new rw("Blob is not supported. Use a Buffer instead.",rw.ERR_NOT_SUPPORT)}return e}function f(e){if(e>c)throw new rw("Object is too deeply nested ("+e+" levels). Max depth: "+c,rw.ERR_FORM_DATA_DEPTH_EXCEEDED)}function b(e,n,o){let i=e;if(ra.isReactNative(t)&&ra.isReactNativeBlob(e))return t.append(rE(o,n,a),u(e)),!1;if(e&&!o&&"object"==typeof e)if(ra.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=function(e){if(1/0===c)return JSON.stringify(e);let t=[];return JSON.stringify(e,function(e,n){if(!ra.isObject(n))return n;for(;t.length&&t[t.length-1]!==this;)t.pop();return t.push(n),f(1+t.length-1),n})}(e);else{var d;if(ra.isArray(e)&&(d=e,ra.isArray(d)&&!d.some(rk))||(ra.isFileList(e)||ra.endsWith(n,"[]"))&&(i=ra.toArray(e)))return n=rM(n),i.forEach(function(e,o){ra.isUndefined(e)||null===e||t.append(!0===s?rE([n],o,a):null===s?n:n+"[]",u(e))}),!1}return!!rk(e)||(t.append(rE(o,n,a),u(e)),!1)}let h=Object.assign(rL,{defaultVisitor:b,convertValue:u,isVisitable:rk});if(!ra.isObject(e))throw TypeError("data must be an object");return!function e(n,o,r=0){if(!ra.isUndefined(n)){if(f(r),-1!==m.indexOf(n))throw Error("Circular reference detected in "+o.join("."));m.push(n),ra.forEach(n,function(n,a){!0===(!(ra.isUndefined(n)||null===n)&&i.call(t,n,ra.isString(a)?a.trim():a,o,h))&&e(n,o?o.concat(a):[a],r+1)}),m.pop()}}(e),t};function rA(e){let t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(e){return t[e]})}function rT(e,t){this._pairs=[],e&&rD(e,this,t)}let rC=rT.prototype;function rS(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function rx(e,t,n){let o;if(!t)return e;e=e||"";let r=ra.isFunction(n)?{serialize:n}:n,i=ra.getSafeProp(r,"encode")||rS,a=ra.getSafeProp(r,"serialize");if(o=a?a(t,r):ra.isURLSearchParams(t)?t.toString():new rT(t,r).toString(i)){let t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}rC.append=function(e,t){this._pairs.push([e,t])},rC.toString=function(e){let t=e?t=>e.call(this,t,rA):rA;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};let rY=Symbol("internals");function rO(e){return e?e.length:0}function rB(e){if(e)for(;e.length&&null===e[e.length-1];)e.pop()}function rR(e,t){let n=e.handlers,o=rO(n);n!==t.handlersRef?(t.handlersRef=n,t.handlerEntries.clear()):o!==t.handlersLength&&(o?t.handlerEntries.forEach(function(e,o){n[e.index]!==e.handler&&t.handlerEntries.delete(o)}):t.handlerEntries.clear()),t.handlersLength=o}let rP=class{constructor(){this.handlers=[],this[rY]={handlersRef:this.handlers,handlersLength:this.handlers.length,handlerEntries:new Map,iterationDepth:0,nextId:0}}use(e,t,n){let o={fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null},r=this[rY];null==this.handlers&&(this.handlers=[]),rR(this,r);let i=r.nextId++;return this.handlers.push(o),r.handlerEntries.set(i,{handler:o,index:this.handlers.length-1}),r.handlersLength=this.handlers.length,i}eject(e){let t=this[rY];rR(this,t);let n=t.handlerEntries.get(e);if(n){if(t.handlerEntries.delete(e),this.handlers[n.index]!==n.handler)return;this.handlers[n.index]=null,t.iterationDepth||(rB(this.handlers),t.handlersLength=this.handlers.length)}}clear(){this.handlers&&(this.handlers=[],rR(this,this[rY]))}forEach(e){let t=this[rY];rR(this,t),t.iterationDepth++;try{ra.forEach(this.handlers,function(t){null!==t&&e(t)})}finally{--t.iterationDepth||(rR(this,t),rB(this.handlers),t.handlersLength=rO(this.handlers))}}},rN={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},rI="u">typeof URLSearchParams?URLSearchParams:rT,rj="u">typeof FormData?FormData:null,rH="u">typeof Blob?Blob:null,rU="u">typeof window&&"u">typeof document,rW="object"==typeof navigator&&navigator||void 0,rz=rU&&(!rW||0>["ReactNative","NativeScript","NS"].indexOf(rW.product)),r$="u">typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,rG=rU&&window.location.href||"http://localhost",rq={...tC,isBrowser:!0,classes:{URLSearchParams:rI,FormData:rj,Blob:rH},protocols:["http","https","file","blob","url","data"]};function rV(e){if(e>100)throw new rw("FormData field is too deeply nested ("+e+" levels). Max depth: 100",rw.ERR_FORM_DATA_DEPTH_EXCEEDED)}let rJ=function(e){if(ra.isFormData(e)&&ra.isFunction(e.entries)){let t={};return ra.forEachEntry(e,(e,n)=>{!function e(t,n,o,r){rV(r);let i=t[r++];if("__proto__"===i)return!0;let a=Number.isFinite(+i),s=r>=t.length;return(i=!i&&ra.isArray(o)?o.length:i,s)?ra.hasOwnProp(o,i)?o[i]=ra.isArray(o[i])?o[i].concat(n):[o[i],n]:o[i]=n:(ra.hasOwnProp(o,i)&&ra.isObject(o[i])||(o[i]=[]),e(t,n,o[i],r)&&ra.isArray(o[i])&&(o[i]=function(e){let t,n,o={},r=Object.keys(e),i=r.length;for(t=0;t<i;t++)o[n=r[t]]=e[n];return o}(o[i]))),!a}(function(e){let t,n=[],o=/[^.[\]]+|\[([^.[\]]*)]/g;for(;null!==(t=o.exec(e));)rV(n.length),n.push("[]"===t[0]?"":t[1]||t[0]);return n}(e),n,t,0)}),t}return null},rK=Object.freeze(["get","delete","head","options","post","put","patch","purge","link","unlink","query"]),rX=(e,t)=>null!=e&&ra.hasOwnProp(e,t)?e[t]:void 0,rQ={transitional:rN,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){let n,o=t.getContentType()||"",r=o.indexOf("application/json")>-1,i=ra.isObject(e);if(i&&ra.isHTMLForm(e)&&(e=new FormData(e)),ra.isFormData(e))return r?JSON.stringify(rJ(e)):e;if(ra.isArrayBuffer(e)||ra.isBuffer(e)||ra.isStream(e)||ra.isFile(e)||ra.isBlob(e)||ra.isReadableStream(e))return e;if(ra.isArrayBufferView(e))return e.buffer;if(ra.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();if(i){let t=rX(this,"formSerializer");if(o.indexOf("application/x-www-form-urlencoded")>-1)return rD(e,new rq.classes.URLSearchParams,{visitor:function(e,t,n,o){return rq.isNode&&ra.isBuffer(e)?(this.append(t,e.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)},...t}).toString();if((n=ra.isFileList(e))||o.indexOf("multipart/form-data")>-1){let o=rX(this,"env"),r=o&&o.FormData;return rD(n?{"files[]":e}:e,r&&new r,t)}}if(i||r){t.setContentType("application/json",!1);var a=e;if(ra.isString(a))try{return(0,JSON.parse)(a),ra.trim(a)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(a)}return e}],transformResponse:[function(e){let t=rX(this,"transitional")||rQ.transitional,n=t&&t.forcedJSONParsing,o=rX(this,"responseType"),r="json"===o;if(ra.isResponse(e)||ra.isReadableStream(e))return e;if(e&&ra.isString(e)&&(n&&!o||r)){let n=t&&t.silentJSONParsing;try{return JSON.parse(e,rX(this,"parseReviver"))}catch(e){if(!n&&r){if("SyntaxError"===e.name)throw rw.from(e,rw.ERR_BAD_RESPONSE,this,null,rX(this,"response"));throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:rq.classes.FormData,Blob:rq.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};function rZ(e,t){let n=this||rQ,o=t||n,r=rF.from(o.headers),i=o.data;return ra.forEach(e,function(e){i=e.call(n,i,r.normalize(),t?t.status:void 0)}),r.normalize(),i}function r0(e){return!!(e&&e.__CANCEL__)}ra.forEach(rK,e=>{rQ.headers[e]={}});let r1=class extends rw{constructor(e,t,n){super(null==e?"canceled":e,rw.ERR_CANCELED,t,n),this.name="CanceledError",this.__CANCEL__=!0}};function r2(e,t,n){let o=n.config.validateStatus;!n.status||!o||o(n.status)?e(n):t(new rw("Request failed with status code "+n.status,n.status>=400&&n.status<500?rw.ERR_BAD_REQUEST:rw.ERR_BAD_RESPONSE,n.config,n.request,n))}let r4=/[\t\n\r]/g;function r5(e){if("string"!=typeof e)return e;let t=0;for(;t<e.length&&32>=e.charCodeAt(t);)t++;return e.slice(t).replace(r4,"")}function r3(e){let t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||""}let r6=function(e,t){let n,o=Array(e=e||10),r=Array(e),i=0,a=0;return t=void 0!==t?t:1e3,function(s){let d=Date.now(),c=r[a];n||(n=d),o[i]=s,r[i]=d;let l=a,m=0;for(;l!==i;)m+=o[l++],l%=e;if((i=(i+1)%e)===a&&(a=(a+1)%e),d-n<t)return;let u=c&&d-c;return u?Math.round(1e3*m/u):void 0}},r8=function(e,t){let n,o,r=0,i=1e3/t,a=(t,i=Date.now())=>{r=i,n=null,o&&(clearTimeout(o),o=null),e(...t)};return[(...e)=>{let t=Date.now(),s=t-r;s>=i?a(e,t):(n=e,o||(o=setTimeout(()=>{o=null,a(n)},i-s)))},()=>n&&a(n),(...e)=>a(e)]},r7=(e,t,n=3)=>{let o=0,r=r6(50,250);return r8(n=>{if(!n||!ra.isNumber(n.loaded))return;let i=n.loaded,a=n.lengthComputable?n.total:void 0,s=Math.max(0,null!=a?Math.min(i,a):i),d=Math.max(0,s-o),c=r(d);o=Math.max(o,s),e({loaded:s,total:a,progress:a?s/a:void 0,bytes:d,rate:c||void 0,estimated:c&&a?(a-s)/c:void 0,event:n,lengthComputable:null!=a,[t?"download":"upload"]:!0})},n)},r9=(e,t)=>{let n=null!=e;return[o=>t[0]({lengthComputable:n,total:e,loaded:o}),t[1]]},ie=(e,t=ra.asap)=>(...n)=>t(()=>e(...n)),it=rq.hasStandardBrowserEnv?(s=new URL(rq.origin),d=rq.navigator&&/(msie|trident)/i.test(rq.navigator.userAgent),e=>(e=new URL(e,rq.origin),s.protocol===e.protocol&&s.host===e.host&&(d||s.port===e.port))):()=>!0,io=rq.hasStandardBrowserEnv?{write(e,t,n,o,r,i,a){if("u"<typeof document)return;let s=[`${e}=${encodeURIComponent(t)}`];ra.isNumber(n)&&s.push(`expires=${new Date(n).toUTCString()}`),ra.isString(o)&&s.push(`path=${o}`),ra.isString(r)&&s.push(`domain=${r}`),!0===i&&s.push("secure"),ra.isString(a)&&s.push(`SameSite=${a}`),document.cookie=s.join("; ")},read(e){if("u"<typeof document)return null;let t=document.cookie.split(";");for(let n=0;n<t.length;n++){let o=t[n].replace(/^\s+/,""),r=o.indexOf("=");if(-1!==r&&o.slice(0,r)===e)try{return decodeURIComponent(o.slice(r+1))}catch(e){return o.slice(r+1)}}return null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}},ir=/^https?:(?!\/\/)/i;function ii(e,t){if("string"==typeof e){let o=r5(e);if(ir.test(o)){var n;let e,r,i;throw new rw(`Invalid URL ${JSON.stringify((i=(-1===(r=(e=o.replace(/^(https?:\/{0,2})[^/?#]*@/i,`$1${rg}@`)).indexOf("#"))?e:e.slice(0,r)).replace(/([?&][^=&#]*=)[^&#]*/g,`$1${rg}`),-1===r?i:`${i}#${!(n=e.slice(r+1))?n:n.replace(/(^|&)([^=&]*=)?[^&]+/g,(e,t,n="")=>`${t}${n}${rg}`)}`))}: missing "//" after protocol`,rw.ERR_INVALID_URL,t)}}}function ia(e,t,n,o){ii(t,o);let r=!("string"==typeof t&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t));if(e&&(r||!1===n)){ii(e,o);if(!t)return e;let n=e.length;for(;n>0&&47===e.charCodeAt(n-1);)n--;return e.slice(0,n)+"/"+t.replace(/^\/+/,"")}return t}let is=e=>e instanceof rF?{...e}:e;function id(e,t){var n;e=e||{},t=t||{};let o=Object.create(null);function r(e,t,n,o){return ra.isPlainObject(e)&&ra.isPlainObject(t)?ra.merge.call({caseless:o},e,t):ra.isPlainObject(t)?ra.merge({},t):ra.isArray(t)?t.slice():t}function i(e,t,n,o){return ra.isUndefined(t)?ra.isUndefined(e)?void 0:r(void 0,e,n,o):r(e,t,n,o)}function a(e,t){if(!ra.isUndefined(t))return r(void 0,t)}function s(e,t){return ra.isUndefined(t)?ra.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function d(n,o,i){return ra.hasOwnProp(t,i)?r(n,o):ra.hasOwnProp(e,i)?r(void 0,n):void 0}Object.defineProperty(o,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});let c={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutErrorMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,allowedSocketPaths:s,responseEncoding:s,validateStatus:d,headers:(e,t,n)=>i(is(e),is(t),n,!0)};return ra.forEach((n={...e,...t},Object.getOwnPropertySymbols&&Object.getOwnPropertyDescriptor?Object.keys(n).concat(Object.getOwnPropertySymbols(n).filter(e=>Object.getOwnPropertyDescriptor(n,e).enumerable)):Object.keys(n)),function(n){if("__proto__"===n||"constructor"===n||"prototype"===n)return;let r=ra.hasOwnProp(c,n)?c[n]:i,a=r(ra.hasOwnProp(e,n)?e[n]:void 0,ra.hasOwnProp(t,n)?t[n]:void 0,n);ra.isUndefined(a)&&r!==d||(o[n]=a)}),ra.hasOwnProp(t,"validateStatus")&&ra.isUndefined(t.validateStatus)&&!1===function(n){let o=ra.hasOwnProp(t,"transitional")?t.transitional:void 0;if(!ra.isUndefined(o)){if(!ra.isPlainObject(o))return;else if(ra.hasOwnProp(o,n))return o[n]}let r=ra.hasOwnProp(e,"transitional")?e.transitional:void 0;if(ra.isPlainObject(r)&&ra.hasOwnProp(r,n))return r[n]}("validateStatusUndefinedResolves")&&(ra.hasOwnProp(e,"validateStatus")?o.validateStatus=r(void 0,e.validateStatus):delete o.validateStatus),o}let ic=["content-type","content-length"],il=function(e){let t=id({},e),n=e=>ra.hasOwnProp(t,e)?t[e]:void 0,o=n("data"),r=n("withXSRFToken"),i=n("xsrfHeaderName"),a=n("xsrfCookieName"),s=n("headers"),d=n("auth"),c=n("baseURL"),l=n("allowAbsoluteUrls"),m=n("url");if(t.headers=s=rF.from(s),t.url=rx(ia(c,m,l,t),n("params"),n("paramsSerializer")),d){let t=ra.getSafeProp(d,"username")||"",n=ra.getSafeProp(d,"password")||"";try{s.set("Authorization","Basic "+btoa(t+":"+(n?encodeURIComponent(n).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16))):"")))}catch(t){throw rw.from(t,rw.ERR_BAD_OPTION_VALUE,e)}}if(ra.isFormData(o)){let e=ra.getSafeProp(o,"getHeaders");if(rq.hasStandardBrowserEnv||rq.hasStandardBrowserWebWorkerEnv||ra.isReactNative(o))s.setContentType(void 0);else{var u,f;ra.isFunction(e)&&(u=s,f=e.call(o),"content-only"!==n("formDataHeaderPolicy")?u.set(f):Object.entries(f||{}).forEach(([e,t])=>{ic.includes(e.toLowerCase())&&u.set(e,t)}))}}if(rq.hasStandardBrowserEnv&&(ra.isFunction(r)&&(r=r(t)),!0===r||null==r&&it(t.url))){let e=i&&a&&io.read(a);e&&s.set(i,e)}return t},im="u">typeof XMLHttpRequest&&function(e){return new Promise(function(t,n){let o,r,i,a,s,d,c=il(e),l=c.data,m=rF.from(c.headers).normalize(),{responseType:u,onUploadProgress:f,onDownloadProgress:b}=c;function h(){a&&a(),s&&s(),c.cancelToken&&c.cancelToken.unsubscribe(o),c.signal&&c.signal.removeEventListener("abort",o)}let p=new XMLHttpRequest;function _(o){if(!p)return;if(0===p.status&&"file"!==(r3(r5(c.url))||r3(rq.origin))&&!(p.responseURL&&p.responseURL.startsWith("file:"))){n(new rw("Request aborted",rw.ECONNABORTED,e,p)),h(),p=null;return}try{o?d&&d(o):s&&s()}catch(e){setTimeout(()=>{throw e})}if(!p)return;let r=rF.from("getAllResponseHeaders"in p&&p.getAllResponseHeaders());r2(function(e){t(e),h()},function(e){n(e),h()},{data:u&&"text"!==u&&"json"!==u?p.response:p.responseText,status:p.status,statusText:p.statusText,headers:r,config:e,request:p}),p=null}p.open(c.method.toUpperCase(),c.url,!0),p.timeout=c.timeout,"onloadend"in p?p.onloadend=_:p.onreadystatechange=function(){!p||4!==p.readyState||(0!==p.status||p.responseURL&&p.responseURL.startsWith("file:"))&&setTimeout(_)},p.onabort=function(){p&&(n(new rw("Request aborted",rw.ECONNABORTED,e,p)),h(),p=null)},p.onerror=function(t){let o=new rw(t&&t.message?t.message:"Network Error",rw.ERR_NETWORK,e,p);o.event=t||null,n(o),h(),p=null},p.ontimeout=function(){let t=c.timeout?"timeout of "+c.timeout+"ms exceeded":"timeout exceeded",o=c.transitional||rN;c.timeoutErrorMessage&&(t=c.timeoutErrorMessage),n(new rw(t,o.clarifyTimeoutError?rw.ETIMEDOUT:rw.ECONNABORTED,e,p)),h(),p=null},void 0===l&&m.setContentType(null),"setRequestHeader"in p&&ra.forEach(rm(m),function(e,t){p.setRequestHeader(t,e)}),ra.isUndefined(c.withCredentials)||(p.withCredentials=!!c.withCredentials),u&&"json"!==u&&(p.responseType=c.responseType),b&&([i,s,d]=r7(b,!0),p.addEventListener("progress",i)),f&&p.upload&&([r,a]=r7(f),p.upload.addEventListener("progress",r),p.upload.addEventListener("loadend",a)),(c.cancelToken||c.signal)&&(o=t=>{p&&(n(!t||t.type?new r1(null,e,p):t),p.abort(),h(),p=null)},c.cancelToken&&c.cancelToken.subscribe(o),c.signal&&(c.signal.aborted?o():c.signal.addEventListener("abort",o)));let F=r3(c.url);if(F&&!rq.protocols.includes(F)){n(new rw("Unsupported protocol "+F+":",rw.ERR_BAD_REQUEST,e)),h();return}p.send(l||null)})},iu=function*(e,t){let n,o=e.byteLength;if(!t||o<t)return void(yield e);let r=0;for(;r<o;)n=r+t,yield e.slice(r,n),r=n},ib=async function*(e,t){for await(let n of ih(e))yield*iu(n,t)},ih=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);let t=e.getReader();try{for(;;){let{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},ip=(e,t,n,o)=>{let r,i=ib(e,t),a=0,s=e=>{!r&&(r=!0,o&&o(e))};return new ReadableStream({async pull(e){try{let{done:t,value:o}=await i.next();if(t){s(),e.close();return}let r=o.byteLength;if(n){let e=a+=r;n(e)}e.enqueue(new Uint8Array(o))}catch(e){throw s(e),e}},cancel:e=>(s(e),i.return())},{highWaterMark:2})},i_=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102,iF=(e,t,n)=>t+2<n&&i_(e.charCodeAt(t+1))&&i_(e.charCodeAt(t+2)),ig=e=>e<=57?e-48:(223&e)-55,iy=e=>e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||43===e||47===e||45===e||95===e,iv=e=>9===e||10===e||12===e||13===e||32===e,iw=e=>{var t;let n,o,r=e.length,i=0,a=0,s=!1;for(let t=0;t<r;t++){let n=e.charCodeAt(t);if(37===n&&iF(e,t,r)&&(n=16*ig(e.charCodeAt(t+1))+ig(e.charCodeAt(t+2)),t+=2),!iv(n)){if(61===n){a++;continue}if(!iy(n)||a>0){s=!0;continue}i++}}if(s||a>2||a>0&&(i+a)%4!=0||i%4==1){let t,n;return t=e.length,n=0,t>0&&61===e.charCodeAt(t-1)&&(n++,t>1&&61===e.charCodeAt(t-2)&&n++),Math.floor((t-n)*3/4)}return n=Math.floor((t=i)/4),3*n+(2==(o=t%4)?1:2*(3===o))},ik={cache:"default",redirect:"follow",referrer:"about:client",referrerPolicy:"",mode:"cors",integrity:"",keepalive:!1,priority:"auto",window:null},{isFunction:iM}=ra,iE=e=>{if(!ra.isString(e))return e;try{return decodeURIComponent(e)}catch(t){return e}},iL=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},iD=e=>{let t,n=void 0!==ra.global&&null!==ra.global?ra.global:globalThis,{ReadableStream:o,TextEncoder:r}=n,{fetch:i,Request:a,Response:s}=e=ra.merge.call({skipUndefined:!0},{Request:n.Request,Response:n.Response},e),d=i?iM(i):"function"==typeof fetch,c=iM(a),l=iM(s);if(!d)return!1;let m=d&&iM(o),u=d&&("function"==typeof r?(t=new r,e=>t.encode(e)):async e=>new Uint8Array(await new a(e).arrayBuffer())),f=c&&m&&iL(()=>{let e=!1,t=new a(rq.origin,{body:new o,method:"POST",get duplex(){return e=!0,"half"}}),n=t.headers.has("Content-Type");return null!=t.body&&t.body.cancel(),e&&!n}),b=l&&m&&iL(()=>ra.isReadableStream(new s("").body)),h={stream:b&&(e=>e.body)};d&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{h[e]||(h[e]=(t,n)=>{let o=t&&t[e];if(o)return o.call(t);throw new rw(`Response type '${e}' is not supported`,rw.ERR_NOT_SUPPORT,n)})});let p=async e=>{if(null==e)return 0;if(ra.isBlob(e))return e.size;if(ra.isSpecCompliantForm(e)){let t=new a(rq.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return ra.isArrayBufferView(e)||ra.isArrayBuffer(e)?e.byteLength:(ra.isURLSearchParams(e)&&(e+=""),ra.isString(e))?(await u(e)).byteLength:void 0},_=async(e,t)=>{let n=ra.toFiniteNumber(e.getContentLength());return null==n?p(t):n};return async e=>{let t,{url:n,method:o,data:d,signal:l,cancelToken:u,timeout:F,onDownloadProgress:g,onUploadProgress:y,responseType:v,headers:w,withCredentials:k="same-origin",fetchOptions:M,maxContentLength:E,maxBodyLength:L,maxRedirects:D}=il(e),A=ra.isNumber(E)&&E>-1,T=ra.isNumber(L)&&L>-1,C=i||fetch;v=v?(v+"").toLowerCase():"text";let S=((e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;let n=new AbortController,o=!1,r=function(e){if(!o){o=!0,a();let t=e instanceof Error?e:this.reason;n.abort(t instanceof rw?t:new r1(t instanceof Error?t.message:t))}},i=t&&setTimeout(()=>{i=null,r(new rw(`timeout of ${t}ms exceeded`,rw.ETIMEDOUT))},t),a=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(r):e.removeEventListener("abort",r)}),e=null)};e.forEach(e=>{if(!o){if(e.aborted)return void r.call(e);e.addEventListener("abort",r,{once:!0})}});let{signal:s}=n;return s.unsubscribe=()=>ra.asap(a),s})([l,u&&u.toAbortSignal()],F),x=null,Y=S&&S.unsubscribe&&(()=>{S.unsubscribe()}),O=null,B=()=>new rw("Request body larger than maxBodyLength limit",rw.ERR_BAD_REQUEST,e,x);try{var R,P;let i,l,u,F,N=(l="auth",ra.hasOwnProp(e,l)?e[l]:void 0);if(N){let e=ra.getSafeProp(N,"username")||"",t=ra.getSafeProp(N,"password")||"";i={username:e,password:t}}if(u=(R=n).indexOf("://"),F=R,-1!==u&&(F=F.slice(u+3)),F.includes("@")||F.includes(":")){let e=new URL(n,rq.origin);if(!i&&(e.username||e.password)){let t=iE(e.username),n=iE(e.password);i={username:t,password:n}}(e.username||e.password)&&(e.username="",e.password="",n=e.href)}if(i){let e;w.delete("authorization"),w.set("Authorization","Basic "+btoa((e=(i.username||"")+":"+(i.password||""),encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16))))))}if(A&&"string"==typeof n&&n.startsWith("data:")){let t;if(P=n,t="string"==typeof P?P.indexOf("#"):-1,((e,t)=>{if(!e||"string"!=typeof e||!e.startsWith("data:"))return 0;let n=e.indexOf(",");if(n<0)return 0;let o=e.slice(5,n),r=e.slice(n+1);if(/;base64/i.test(o))return t(r);let i=0;for(let e=0,t=r.length;e<t;e++){let n=r.charCodeAt(e);if(37===n&&iF(r,e,t))i+=1,e+=2;else if(n<128)i+=1;else if(n<2048)i+=2;else if(n>=55296&&n<=56319&&e+1<t){let t=r.charCodeAt(e+1);t>=56320&&t<=57343?(i+=4,e++):i+=3}else i+=3}return i})(-1===t?P:P.slice(0,t),iw)>E)throw new rw("maxContentLength size of "+E+" exceeded",rw.ERR_BAD_RESPONSE,e,x)}if(T&&"get"!==o&&"head"!==o){let e=await p(d);if("number"==typeof e&&isFinite(e)&&(t=e,e>L))throw B()}let I=T&&(ra.isReadableStream(d)||ra.isStream(d)),j=(e,t,n)=>ip(e,65536,e=>{if(T&&e>L)throw O=B();t&&t(e)},n);if(f&&"get"!==o&&"head"!==o&&(y||I)){if(t=null==t?await _(w,d):t,0!==t||I){let e,o=new a(n,{method:"POST",body:d,duplex:"half"});if(ra.isFormData(d)&&(e=o.headers.get("content-type"))&&w.setContentType(e),o.body){let[e,n]=y&&r9(t,r7(ie(y)))||[];d=j(o.body,e,n)}}}else if(I&&!c&&m&&"get"!==o&&"head"!==o)d=j(d);else if(I&&c&&!f&&"get"!==o&&"head"!==o)throw new rw("Stream request bodies are not supported by the current fetch implementation",rw.ERR_NOT_SUPPORT,e,x);ra.isString(k)||(k=k?"include":"omit");let H=c&&"credentials"in a.prototype;if(ra.isFormData(d)){let e=w.getContentType();e&&/^multipart\/form-data/i.test(e)&&!/boundary=/i.test(e)&&w.delete("content-type")}w.set("User-Agent","axios/1.20.0",!1);let U=null==M?M:Object.assign(Object.create(null),M);U&&(delete U.body,delete U.headers,delete U.method,delete U.signal,delete U.duplex,delete U.credentials);let W=Object.assign(Object.create(null),U,{signal:S,method:o.toUpperCase(),headers:rm(w.normalize()),body:d,duplex:"half",credentials:H?k:void 0});c&&(ra.forEach(ik,(e,t)=>{void 0===W[t]&&(W[t]=e)}),void 0===W.signal&&(W.signal=null),void 0===W.body&&(W.body=null)),0===D&&(W.redirect="manual",U&&(U.redirect="manual")),x=c&&new a(n,W);let z=await (c?C(x,U):C(n,W)),$=rF.from(z.headers);if(A){let t=ra.toFiniteNumber($.getContentLength());if(null!=t&&t>E)throw new rw("maxContentLength size of "+E+" exceeded",rw.ERR_BAD_RESPONSE,e,x)}let G=b&&("stream"===v||"response"===v);if(b&&z.body&&(g||A||G&&Y)){let t={};["status","statusText","headers"].forEach(e=>{t[e]=z[e]});let n=ra.toFiniteNumber($.getContentLength()),[o,r]=g&&r9(n,r7(ie(g),!0))||[];z=new s(ip(z.body,65536,t=>{if(A&&t>E)throw new rw("maxContentLength size of "+E+" exceeded",rw.ERR_BAD_RESPONSE,e,x);o&&o(t)},()=>{r&&r(),Y&&Y()}),t)}v=v||"text";let q=await h[ra.findKey(h,v)||"text"](z,e);if(A&&!b&&!G){let t;if(null!=q&&("number"==typeof q.byteLength?t=q.byteLength:"number"==typeof q.size?t=q.size:"string"==typeof q&&(t="function"==typeof r?new r().encode(q).byteLength:q.length)),"number"==typeof t&&t>E)throw new rw("maxContentLength size of "+E+" exceeded",rw.ERR_BAD_RESPONSE,e,x)}return!G&&Y&&Y(),await new Promise((t,n)=>{r2(t,n,{data:q,headers:rF.from(z.headers),status:z.status,statusText:z.statusText,config:e,request:x})})}catch(t){if(Y&&Y(),S&&S.aborted&&S.reason instanceof rw){let n=S.reason;throw n.config=e,x&&(n.request=x),t!==n&&Object.defineProperty(n,"cause",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),n}if(O)throw x&&!O.request&&(O.request=x),O;if(t instanceof rw)throw x&&!t.request&&(t.request=x),t;if(t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message)){let n=new rw("Network Error",rw.ERR_NETWORK,e,x,t&&t.response);throw Object.defineProperty(n,"cause",{__proto__:null,value:t.cause||t,writable:!0,enumerable:!1,configurable:!0}),n}throw rw.from(t,t&&t.code,e,x,t&&t.response)}}},iA=new Map,iT=e=>{let t=e&&e.env||{},{fetch:n,Request:o,Response:r}=t,i=[o,r,n],a=i.length,s,d,c=iA;for(;a--;)s=i[a],void 0===(d=c.get(s))&&c.set(s,d=a?new Map:iD(t)),c=d;return d};iT();let iC={http:null,xhr:im,fetch:{get:iT}};ra.forEach(iC,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch(e){}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});let iS=e=>`- ${e}`,ix=e=>ra.isFunction(e)||null===e||!1===e,iY=function(e,t){let n,o,{length:r}=e=ra.isArray(e)?e:[e],i={};for(let a=0;a<r;a++){let r;if(o=n=e[a],!ix(n)&&void 0===(o=iC[(r=String(n)).toLowerCase()]))throw new rw(`Unknown adapter '${r}'`);if(o&&(ra.isFunction(o)||(o=o.get(t))))break;i[r||"#"+a]=o}if(!o){let e=Object.entries(i).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));throw new rw("There is no suitable adapter to dispatch the request "+(r?e.length>1?"since :\n"+e.map(iS).join("\n"):" "+iS(e[0]):"as no adapter specified"),rw.ERR_NOT_SUPPORT)}return o};function iO(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new r1(null,e)}function iB(e){let t=ra.toSafeFlatObject(e);return iO(t),t.headers=rF.from(ra.getSafeProp(t,"headers")),t.data=rZ.call(t,t.transformRequest),-1!==["post","put","patch"].indexOf(t.method)&&t.headers.setContentType("application/x-www-form-urlencoded",!1),iY(t.adapter||rQ.adapter,t)(t).then(function(e){iO(t),t.response=e;try{e.data=rZ.call(t,t.transformResponse,e)}finally{delete t.response}return e.headers=rF.from(e.headers),e},function(e){if(!r0(e)&&(iO(t),e&&e.response)){t.response=e.response;try{e.response.data=rZ.call(t,t.transformResponse,e.response)}finally{delete t.response}e.response.headers=rF.from(e.response.headers)}return Promise.reject(e)})}let iR={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{iR[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});let iP={};iR.transitional=function(e,t,n){function o(e,t){return"[Axios v1.20.0] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,r,i)=>{if(!1===e)throw new rw(o(r," has been removed"+(t?" in "+t:"")),rw.ERR_DEPRECATED);return t&&!iP[r]&&(iP[r]=!0,console.warn(o(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,i)}},iR.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};let iN=function(e,t,n){if("object"!=typeof e||null===e)throw new rw("options must be an object",rw.ERR_BAD_OPTION_VALUE);let o=Object.keys(e),r=o.length;for(;r-- >0;){let i=o[r],a=Object.prototype.hasOwnProperty.call(t,i)?t[i]:void 0;if(a){let t=e[i],n=void 0===t||a(t,i,e);if(!0!==n)throw new rw("option "+i+" must be "+n,rw.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new rw("Unknown option "+i,rw.ERR_BAD_OPTION)}};class iI{constructor(e){this.defaults=e||{},this.interceptors={request:new rP,response:new rP}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error)try{let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=Error();let n=t.stack,o="";if("string"==typeof n){let e=n.indexOf("\n");o=-1===e?"":n.slice(e+1)}if(e.stack){if(o){let t=o.indexOf("\n"),n=-1===t?-1:o.indexOf("\n",t+1),r=-1===n?"":o.slice(n+1);String(e.stack).endsWith(r)||(e.stack+="\n"+o)}}else e.stack=o}catch(e){}throw e}}_request(e,t){let n,o;"string"==typeof e?(t=t||{}).url=e:t=e||{};let{transitional:r,paramsSerializer:i,headers:a}=t=id(this.defaults,t);void 0!==r&&iN(r,{silentJSONParsing:iR.transitional(iR.boolean),forcedJSONParsing:iR.transitional(iR.boolean),clarifyTimeoutError:iR.transitional(iR.boolean),legacyInterceptorReqResOrdering:iR.transitional(iR.boolean),advertiseZstdAcceptEncoding:iR.transitional(iR.boolean),validateStatusUndefinedResolves:iR.transitional(iR.boolean)},!1),null!=i&&(ra.isFunction(i)?t.paramsSerializer={serialize:i}:iN(i,{encode:iR.function,serialize:iR.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),iN(t,{baseUrl:iR.spelling("baseURL"),withXsrfToken:iR.spelling("withXSRFToken")},!0),t.method=(ra.getSafeProp(t,"method")||ra.getSafeProp(this.defaults,"method")||"get").toLowerCase();let s=a&&ra.merge(a.common,a[t.method]);a&&ra.forEach(rK.concat("common"),e=>{delete a[e]}),t.headers=rF.concat(s,a);let d=[],c=!0;this.interceptors.request.forEach(function(e){if("function"==typeof e.runWhen&&!1===e.runWhen(t))return;c=c&&e.synchronous;let n=t.transitional||rN;n&&n.legacyInterceptorReqResOrdering?d.unshift(e.fulfilled,e.rejected):d.push(e.fulfilled,e.rejected)});let l=[];this.interceptors.response.forEach(function(e){l.push(e.fulfilled,e.rejected)});let m=0;if(!c){let e=[iB.bind(this),void 0];for(e.unshift(...d),e.push(...l),o=e.length,n=Promise.resolve(t);m<o;)n=n.then(e[m++],e[m++]);return n}o=d.length;let u=t;for(;m<o;){let e=d[m++],t=d[m++];try{u=e?e(u):u}catch(e){if(!t){n=Promise.reject(e);break}try{let o=t.call(this,e);ra.isThenable(o)&&(n=Promise.resolve(o).then(()=>iB.call(this,u)))}catch(e){n=Promise.reject(e)}break}}if(!n)try{n=iB.call(this,u)}catch(e){n=Promise.reject(e)}for(m=0,o=l.length;m<o;)n=n.then(l[m++],l[m++]);return n}getUri(e){return rx(ia((e=id(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls,e),e.params,e.paramsSerializer)}}ra.forEach(["delete","get","head","options"],function(e){iI.prototype[e]=function(t,n){return this.request(id(n||{},{method:e,url:t,data:n&&ra.hasOwnProp(n,"data")?n.data:void 0}))}}),ra.forEach(["post","put","patch","query"],function(e){function t(t){return function(n,o,r){return this.request(id(r||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:o}))}}iI.prototype[e]=t(),"query"!==e&&(iI.prototype[e+"Form"]=t(!0))});let ij=class e{constructor(e){let t;if("function"!=typeof e)throw TypeError("executor must be a function.");this.promise=new Promise(function(e){t=e});const n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t,o=new Promise(e=>{n.subscribe(e),t=e}).then(e);return o.cancel=function(){n.unsubscribe(t)},o},e(function(e,o,r){n.reason||(n.reason=new r1(e,o,r),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){let e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let t;return{token:new e(function(e){t=e}),cancel:t}}},iH={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,ContentTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,UnprocessableContent:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerReturnsAnUnknownError:520,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(iH).forEach(([e,t])=>{void 0===iH[t]&&(iH[t]=e)});let iU=function e(t){let n=new iI(t),o=oM(iI.prototype.request,n);return ra.extend(o,iI.prototype,n,{allOwnKeys:!0}),ra.extend(o,n,null,{allOwnKeys:!0}),o.create=function(n){return e(id(t,n))},o}(rQ);iU.Axios=iI,iU.CanceledError=r1,iU.CancelToken=ij,iU.isCancel=r0,iU.VERSION="1.20.0",iU.toFormData=rD,iU.AxiosError=rw,iU.Cancel=iU.CanceledError,iU.all=function(e){return Promise.all(e)},iU.spread=function(e){return function(t){return e.apply(null,t)}},iU.isAxiosError=function(e){return ra.isObject(e)&&!0===e.isAxiosError},iU.mergeConfig=id,iU.AxiosHeaders=rF,iU.formToJSON=e=>rJ(ra.isHTMLForm(e)?new FormData(e):e),iU.getAdapter=iY,iU.HttpStatusCode=iH,iU.default=iU;class iW{constructor(e){this.httpClient=e}getHealthStatus(e){return this.httpClient.request({method:"GET",url:at`health`,options:e})}getInfo(e){return this.httpClient.request({method:"GET",url:at`info`,options:e})}}class iz{constructor(e){this.httpClient=e}updateCurrentUserLocale(e,t){return this.httpClient.request({method:"PUT",url:at`user/locale`,data:e,options:t})}query(e,t){return this.httpClient.request({method:"POST",url:at`user/query`,data:e,options:t})}requestPasswordResetCurrent(e){return this.httpClient.request({method:"PUT",url:at`user/request-password-reset`,options:e})}updatePasswordCurrent(e,t){return this.httpClient.request({method:"PUT",url:at`user/reset-password`,data:e,options:t})}updateCurrent(e,t){return this.httpClient.request({method:"PUT",url:at`user/update`,data:e,options:t})}getCurrent(e){return this.httpClient.request({method:"GET",url:at`user/user`,options:e})}getCurrentUserRealmRoles(e){return this.httpClient.request({method:"GET",url:at`user/userRealmRoles`,options:e})}getCurrentUserClientRoles(e,t){return this.httpClient.request({method:"GET",url:at`user/userRoles/${e}`,options:t})}disconnectUserSession(e,t,n){return this.httpClient.request({method:"DELETE",url:at`user/${e}/disconnect/${t}`,options:n})}requestPasswordReset(e,t,n){return this.httpClient.request({method:"PUT",url:at`user/${e}/request-password-reset/${t}`,options:n})}updatePassword(e,t,n,o){return this.httpClient.request({method:"PUT",url:at`user/${e}/reset-password/${t}`,data:n,options:o})}resetSecret(e,t,n){return this.httpClient.request({method:"GET",url:at`user/${e}/reset-secret/${t}`,options:n})}updateRoles(e,t,n){return this.httpClient.request({method:"PUT",url:at`user/${e}/roles`,data:t,options:n})}getUserRealmRoles(e,t,n){return this.httpClient.request({method:"GET",url:at`user/${e}/userRealmRoles/${t}`,options:n})}updateUserRealmRoles(e,t,n,o){return this.httpClient.request({method:"PUT",url:at`user/${e}/userRealmRoles/${t}`,data:n,options:o})}getUserClientRoles(e,t,n,o){return this.httpClient.request({method:"GET",url:at`user/${e}/userRoles/${t}/${n}`,options:o})}updateUserClientRoles(e,t,n,o,r){return this.httpClient.request({method:"PUT",url:at`user/${e}/userRoles/${t}/${n}`,data:o,options:r})}getUserSessions(e,t,n){return this.httpClient.request({method:"GET",url:at`user/${e}/userSessions/${t}`,options:n})}create(e,t,n){return this.httpClient.request({method:"POST",url:at`user/${e}/users`,data:t,options:n})}update(e,t,n){return this.httpClient.request({method:"PUT",url:at`user/${e}/users`,data:t,options:n})}delete(e,t,n){return this.httpClient.request({method:"DELETE",url:at`user/${e}/users/${t}`,options:n})}getClientRoles(e,t,n){return this.httpClient.request({method:"GET",url:at`user/${e}/${t}/roles`,options:n})}updateClientRoles(e,t,n,o){return this.httpClient.request({method:"PUT",url:at`user/${e}/${t}/roles`,data:n,options:o})}get(e,t,n){return this.httpClient.request({method:"GET",url:at`user/${e}/${t}`,options:n})}}class i${constructor(e){this.httpClient=e}createProvisioningConfig(e,t){return this.httpClient.request({method:"POST",url:at`provisioning`,data:e,options:t})}getProvisioningConfigs(e){return this.httpClient.request({method:"GET",url:at`provisioning`,options:e})}deleteProvisioningConfig(e,t){return this.httpClient.request({method:"DELETE",url:at`provisioning/${e}`,options:t})}updateProvisioningConfig(e,t,n){return this.httpClient.request({method:"PUT",url:at`provisioning/${e}`,data:t,options:n})}}class iG{constructor(e){this.httpClient=e}getPredictedDatapoints(e,t,n,o){return this.httpClient.request({method:"POST",url:at`asset/predicted/${e}/${t}`,data:n,options:o})}writePredictedDatapoints(e,t,n,o){return this.httpClient.request({method:"PUT",url:at`asset/predicted/${e}/${t}`,data:n,options:o})}}class iq{constructor(e){this.httpClient=e}create(e,t){return this.httpClient.request({method:"POST",url:at`dashboard`,data:e,options:t})}update(e,t){return this.httpClient.request({method:"PUT",url:at`dashboard`,data:e,options:t})}getAllRealmDashboards(e,t){return this.httpClient.request({method:"GET",url:at`dashboard/all/${e}`,options:t})}query(e,t){return this.httpClient.request({method:"POST",url:at`dashboard/query`,data:e,options:t})}delete(e,t,n){return this.httpClient.request({method:"DELETE",url:at`dashboard/${e}/${t}`,options:n})}get(e,t,n){return this.httpClient.request({method:"GET",url:at`dashboard/${e}/${t}`,options:n})}}class iV{constructor(e){this.httpClient=e}createAlarm(e,t,n){return this.httpClient.request({method:"POST",url:at`alarm`,queryParams:t,data:e,options:n})}getAlarms(e,t){return this.httpClient.request({method:"GET",url:at`alarm`,queryParams:e,options:t})}removeAlarms(e,t){return this.httpClient.request({method:"DELETE",url:at`alarm`,data:e,options:t})}setAssetLinks(e,t){return this.httpClient.request({method:"PUT",url:at`alarm/assets`,data:e,options:t})}getAlarm(e,t){return this.httpClient.request({method:"GET",url:at`alarm/${e}`,options:t})}removeAlarm(e,t){return this.httpClient.request({method:"DELETE",url:at`alarm/${e}`,options:t})}updateAlarm(e,t,n){return this.httpClient.request({method:"PUT",url:at`alarm/${e}`,data:t,options:n})}getAssetLinks(e,t,n){return this.httpClient.request({method:"GET",url:at`alarm/${e}/assets`,queryParams:t,options:n})}}class iJ{constructor(e){this.httpClient=e}deleteConnections(e,t){return this.httpClient.request({method:"DELETE",url:at`gateway/connection`,queryParams:e,options:t})}getConnections(e){return this.httpClient.request({method:"GET",url:at`gateway/connection`,options:e})}deleteConnection(e,t){return this.httpClient.request({method:"DELETE",url:at`gateway/connection/${e}`,options:t})}getConnection(e,t){return this.httpClient.request({method:"GET",url:at`gateway/connection/${e}`,options:t})}setConnection(e,t,n){return this.httpClient.request({method:"PUT",url:at`gateway/connection/${e}`,data:t,options:n})}getConnectionStatus(e,t){return this.httpClient.request({method:"GET",url:at`gateway/status/${e}`,options:t})}}class iK{constructor(e){this.httpClient=e}create(e,t){return this.httpClient.request({method:"POST",url:at`asset`,data:e,options:t})}delete(e,t){return this.httpClient.request({method:"DELETE",url:at`asset`,queryParams:e,options:t})}writeAttributeValues(e,t){return this.httpClient.request({method:"PUT",url:at`asset/attributes`,data:e,options:t})}writeAttributeEvents(e,t){return this.httpClient.request({method:"PUT",url:at`asset/attributes/timestamp`,data:e,options:t})}queryCount(e,t){return this.httpClient.request({method:"POST",url:at`asset/count`,data:e,options:t})}updateNoneParent(e,t){return this.httpClient.request({method:"DELETE",url:at`asset/parent`,queryParams:e,options:t})}getPartial(e,t){return this.httpClient.request({method:"GET",url:at`asset/partial/${e}`,options:t})}queryAssets(e,t){return this.httpClient.request({method:"POST",url:at`asset/query`,data:e,options:t})}queryAssetTree(e,t){return this.httpClient.request({method:"POST",url:at`asset/tree`,data:e,options:t})}getCurrentUserAssets(e){return this.httpClient.request({method:"GET",url:at`asset/user/current`,options:e})}createUserAssetLinks(e,t){return this.httpClient.request({method:"POST",url:at`asset/user/link`,data:e,options:t})}getUserAssetLinks(e,t){return this.httpClient.request({method:"GET",url:at`asset/user/link`,queryParams:e,options:t})}deleteUserAssetLinks(e,t){return this.httpClient.request({method:"POST",url:at`asset/user/link/delete`,data:e,options:t})}deleteAllUserAssetLinks(e,t,n){return this.httpClient.request({method:"DELETE",url:at`asset/user/link/${e}/${t}`,options:n})}deleteUserAssetLink(e,t,n,o){return this.httpClient.request({method:"DELETE",url:at`asset/user/link/${e}/${t}/${n}`,options:o})}get(e,t){return this.httpClient.request({method:"GET",url:at`asset/${e}`,options:t})}update(e,t,n){return this.httpClient.request({method:"PUT",url:at`asset/${e}`,data:t,options:n})}writeAttributeValue$PUT$asset_assetId_attribute_attributeName(e,t,n,o){return this.httpClient.request({method:"PUT",url:at`asset/${e}/attribute/${t}`,data:n,options:o})}writeAttributeValue$PUT$asset_assetId_attribute_attributeName_timestamp(e,t,n,o,r){return this.httpClient.request({method:"PUT",url:at`asset/${e}/attribute/${t}/${n}`,data:o,options:r})}updateParent(e,t,n){return this.httpClient.request({method:"PUT",url:at`asset/${e}/child`,queryParams:t,options:n})}}class iX{constructor(e){this.httpClient=e}getManagerConfig(e){return this.httpClient.request({method:"GET",url:at`configuration/manager`,options:e})}update(e,t){return this.httpClient.request({method:"PUT",url:at`configuration/manager`,data:e,options:t})}fileUpload(e,t,n){return this.httpClient.request({method:"POST",url:at`configuration/manager/file`,queryParams:t,data:e,options:n})}getManagerConfigImage(e,t){return this.httpClient.request({method:"GET",url:at`configuration/manager/image/${e}`,options:t})}}class iQ{constructor(e){this.httpClient=e}getServices(e,t){return this.httpClient.request({method:"GET",url:at`service`,queryParams:e,options:t})}registerService(e,t){return this.httpClient.request({method:"POST",url:at`service`,data:e,options:t})}getGlobalServices(e){return this.httpClient.request({method:"GET",url:at`service/global`,options:e})}registerGlobalService(e,t){return this.httpClient.request({method:"POST",url:at`service/global`,data:e,options:t})}deregisterService(e,t,n){return this.httpClient.request({method:"DELETE",url:at`service/${e}/${t}`,options:n})}getService(e,t,n){return this.httpClient.request({method:"GET",url:at`service/${e}/${t}`,options:n})}heartbeat(e,t,n){return this.httpClient.request({method:"PUT",url:at`service/${e}/${t}`,options:n})}}class iZ{constructor(e){this.httpClient=e}getSettings(e){return this.httpClient.request({method:"GET",url:at`map`,options:e})}saveSettings(e,t){return this.httpClient.request({method:"PUT",url:at`map`,data:e,options:t})}deleteMap(e){return this.httpClient.request({method:"DELETE",url:at`map/deleteMap`,options:e})}getCustomMapInfo(e){return this.httpClient.request({method:"GET",url:at`map/getCustomMapInfo`,options:e})}getTile(e,t,n,o){return this.httpClient.request({method:"GET",url:at`map/tile/${e}/${t}/${n}`,options:o})}uploadMap(e,t){return this.httpClient.request({method:"POST",url:at`map/upload`,queryParams:e,options:t})}}class i0{constructor(e){this.httpClient=e}getDatapointExport(e,t){return this.httpClient.request({method:"GET",url:at`asset/datapoint/export`,queryParams:e,options:t})}getDatapointPeriod(e,t){return this.httpClient.request({method:"GET",url:at`asset/datapoint/periods`,queryParams:e,options:t})}getDatapoints(e,t,n,o){return this.httpClient.request({method:"POST",url:at`asset/datapoint/${e}/${t}`,data:n,options:o})}}class i1{constructor(e){this.httpClient=e}getConfig(e){return this.httpClient.request({method:"GET",url:at`syslog/config`,options:e})}updateConfig(e,t){return this.httpClient.request({method:"PUT",url:at`syslog/config`,data:e,options:t})}clearEvents(e){return this.httpClient.request({method:"DELETE",url:at`syslog/event`,options:e})}getEvents(e,t){return this.httpClient.request({method:"GET",url:at`syslog/event`,queryParams:e,options:t})}}class i2{constructor(e){this.httpClient=e}getAllNodeDefinitions(e){return this.httpClient.request({method:"GET",url:at`flow`,options:e})}getNodeDefinition(e,t){return this.httpClient.request({method:"GET",url:at`flow/${e}`,options:t})}getAllNodeDefinitionsByType(e,t){return this.httpClient.request({method:"GET",url:at`flow/${e}`,options:t})}}class i4{constructor(e){this.httpClient=e}getNotifications(e,t){return this.httpClient.request({method:"GET",url:at`notification`,queryParams:e,options:t})}removeNotifications(e,t){return this.httpClient.request({method:"DELETE",url:at`notification`,queryParams:e,options:t})}sendNotification(e,t){return this.httpClient.request({method:"POST",url:at`notification/alert`,data:e,options:t})}getNotificationsCount(e,t){return this.httpClient.request({method:"GET",url:at`notification/count`,queryParams:e,options:t})}removeNotification(e,t){return this.httpClient.request({method:"DELETE",url:at`notification/${e}`,options:t})}notificationAcknowledged(e,t,n,o){return this.httpClient.request({method:"PUT",url:at`notification/${e}/acknowledged`,queryParams:n,data:t,options:o})}notificationDelivered(e,t,n){return this.httpClient.request({method:"PUT",url:at`notification/${e}/delivered`,queryParams:t,options:n})}}class i5{constructor(e){this.httpClient=e}createGlobalRuleset(e,t){return this.httpClient.request({method:"POST",url:at`rules`,data:e,options:t})}getGlobalRulesets(e,t){return this.httpClient.request({method:"GET",url:at`rules`,queryParams:e,options:t})}createAssetRuleset(e,t){return this.httpClient.request({method:"POST",url:at`rules/asset`,data:e,options:t})}getAssetRulesets(e,t,n){return this.httpClient.request({method:"GET",url:at`rules/asset/for/${e}`,queryParams:t,options:n})}deleteAssetRuleset(e,t){return this.httpClient.request({method:"DELETE",url:at`rules/asset/${e}`,options:t})}getAssetRuleset(e,t){return this.httpClient.request({method:"GET",url:at`rules/asset/${e}`,options:t})}updateAssetRuleset(e,t,n){return this.httpClient.request({method:"PUT",url:at`rules/asset/${e}`,data:t,options:n})}getAssetGeofences(e,t){return this.httpClient.request({method:"GET",url:at`rules/geofences/${e}`,options:t})}getAssetEngineInfo(e,t){return this.httpClient.request({method:"GET",url:at`rules/info/asset/${e}`,options:t})}getGlobalEngineInfo(e){return this.httpClient.request({method:"GET",url:at`rules/info/global`,options:e})}getRealmEngineInfo(e,t){return this.httpClient.request({method:"GET",url:at`rules/info/realm/${e}`,options:t})}createRealmRuleset(e,t){return this.httpClient.request({method:"POST",url:at`rules/realm`,data:e,options:t})}getRealmRulesets(e,t,n){return this.httpClient.request({method:"GET",url:at`rules/realm/for/${e}`,queryParams:t,options:n})}deleteRealmRuleset(e,t){return this.httpClient.request({method:"DELETE",url:at`rules/realm/${e}`,options:t})}getRealmRuleset(e,t){return this.httpClient.request({method:"GET",url:at`rules/realm/${e}`,options:t})}updateRealmRuleset(e,t,n){return this.httpClient.request({method:"PUT",url:at`rules/realm/${e}`,data:t,options:n})}deleteGlobalRuleset(e,t){return this.httpClient.request({method:"DELETE",url:at`rules/${e}`,options:t})}getGlobalRuleset(e,t){return this.httpClient.request({method:"GET",url:at`rules/${e}`,options:t})}updateGlobalRuleset(e,t,n){return this.httpClient.request({method:"PUT",url:at`rules/${e}`,data:t,options:n})}}class i3{constructor(e){this.httpClient=e}getAssetDescriptors(e,t){return this.httpClient.request({method:"GET",url:at`model/assetDescriptors`,queryParams:e,options:t})}getAssetInfo(e,t,n){return this.httpClient.request({method:"GET",url:at`model/assetInfo/${e}`,queryParams:t,options:n})}getAssetInfos(e,t){return this.httpClient.request({method:"GET",url:at`model/assetInfos`,queryParams:e,options:t})}getValueDescriptorSchema(e,t){return this.httpClient.request({method:"GET",url:at`model/getValueDescriptorSchema`,queryParams:e,options:t})}getMetaItemDescriptors(e,t){return this.httpClient.request({method:"GET",url:at`model/metaItemDescriptors`,queryParams:e,options:t})}getValueDescriptors(e,t){return this.httpClient.request({method:"GET",url:at`model/valueDescriptors`,queryParams:e,options:t})}}class i6{constructor(e){this.httpClient=e}startTunnel(e,t){return this.httpClient.request({method:"POST",url:at`gateway/tunnel`,data:e,options:t})}stopTunnel(e,t){return this.httpClient.request({method:"DELETE",url:at`gateway/tunnel`,data:e,options:t})}getAllActiveTunnelInfos(e,t){return this.httpClient.request({method:"GET",url:at`gateway/tunnel/${e}`,options:t})}getGatewayActiveTunnelInfos(e,t,n){return this.httpClient.request({method:"GET",url:at`gateway/tunnel/${e}/${t}`,options:n})}getActiveTunnelInfo(e,t,n,o,r){return this.httpClient.request({method:"GET",url:at`gateway/tunnel/${e}/${t}/${n}/${o}`,options:r})}}class i8{constructor(e){this.httpClient=e}getApps(e){return this.httpClient.request({method:"GET",url:at`apps`,options:e})}getConsoleConfig(e){return this.httpClient.request({method:"GET",url:at`apps/consoleConfig`,options:e})}getAppInfos(e){return this.httpClient.request({method:"GET",url:at`apps/info`,options:e})}}class i7{constructor(e){this.httpClient=e}create(e,t){return this.httpClient.request({method:"POST",url:at`realm`,data:e,options:t})}getAll(e){return this.httpClient.request({method:"GET",url:at`realm`,options:e})}getAccessible(e){return this.httpClient.request({method:"GET",url:at`realm/accessible`,options:e})}delete(e,t){return this.httpClient.request({method:"DELETE",url:at`realm/${e}`,options:t})}get(e,t){return this.httpClient.request({method:"GET",url:at`realm/${e}`,options:t})}update(e,t,n){return this.httpClient.request({method:"PUT",url:at`realm/${e}`,data:t,options:n})}}class i9{constructor(e){this.httpClient=e}doProtocolAssetDiscovery(e,t,n){return this.httpClient.request({method:"GET",url:at`agent/assetDiscovery/${e}`,queryParams:t,options:n})}doProtocolAssetImport(e,t,n,o){return this.httpClient.request({method:"POST",url:at`agent/assetImport/${e}`,queryParams:n,data:t,options:o})}doProtocolInstanceDiscovery(e,t,n){return this.httpClient.request({method:"GET",url:at`agent/instanceDiscovery/${e}`,queryParams:t,options:n})}}class ae{constructor(e){this.httpClient=e}register(e,t){return this.httpClient.request({method:"POST",url:at`console/register`,data:e,options:t})}}function at(e,...t){let n="";for(let o=0;o<t.length;o++)n+=e[o],n+=encodeURIComponent(t[o]);return n+e[e.length-1]}class an{constructor(e,t=iU.create()){this._statusResource=new ar(e,t),this._userResource=new ai(e,t),this._provisioningResource=new aa(e,t),this._assetPredictedDatapointResource=new as(e,t),this._dashboardResource=new ad(e,t),this._alarmResource=new ac(e,t),this._gatewayClientResource=new al(e,t),this._assetResource=new am(e,t),this._configurationResource=new au(e,t),this._externalServiceResource=new af(e,t),this._mapResource=new ab(e,t),this._assetDatapointResource=new ah(e,t),this._syslogResource=new ap(e,t),this._flowResource=new a_(e,t),this._notificationResource=new aF(e,t),this._rulesResource=new ag(e,t),this._assetModelResource=new ay(e,t),this._gatewayServiceResource=new av(e,t),this._appResource=new aw(e,t),this._realmResource=new ak(e,t),this._agentResource=new aM(e,t),this._consoleResource=new aE(e,t),this._assetResource=new am(e,t)}get StatusResource(){return this._statusResource}get UserResource(){return this._userResource}get ProvisioningResource(){return this._provisioningResource}get AssetPredictedDatapointResource(){return this._assetPredictedDatapointResource}get DashboardResource(){return this._dashboardResource}get AlarmResource(){return this._alarmResource}get GatewayClientResource(){return this._gatewayClientResource}get AssetResource(){return this._assetResource}get ConfigurationResource(){return this._configurationResource}get ExternalServiceResource(){return this._externalServiceResource}get MapResource(){return this._mapResource}get AssetDatapointResource(){return this._assetDatapointResource}get SyslogResource(){return this._syslogResource}get FlowResource(){return this._flowResource}get NotificationResource(){return this._notificationResource}get RulesResource(){return this._rulesResource}get AssetModelResource(){return this._assetModelResource}get GatewayServiceResource(){return this._gatewayServiceResource}get AppResource(){return this._appResource}get RealmResource(){return this._realmResource}get AgentResource(){return this._agentResource}get ConsoleResource(){return this._consoleResource}}class ao{constructor(e){this.axios=e}request(e){let t={};t.method=e.method,t.url=e.url,t.params=e.queryParams,t.data=e.data,function(e,t){if(void 0!=t)for(let n in t)t.hasOwnProperty(n)&&(e[n]=t[n])}(t,e.options);let n=e.copyFn;return this.axios.request(t).then(e=>(n&&e.data&&(e.originalData=e.data,e.data=n(e.data)),e))}}class ar extends iW{constructor(e,t=iU.create()){t.defaults.baseURL=e,super(new ao(t))}}class ai extends iz{constructor(e,t=iU.create()){t.defaults.baseURL=e,super(new ao(t))}}class aa extends i${constructor(e,t=iU.create()){t.defaults.baseURL=e,super(new ao(t))}}class as extends iG{constructor(e,t=iU.create()){t.defaults.baseURL=e,super(new ao(t))}}class ad extends iq{constructor(e,t=iU.create()){t.defaults.baseURL=e,super(new ao(t))}}class ac extends iV{constructor(e,t=iU.create()){t.defaults.baseURL=e,super(new ao(t))}}class al extends iJ{constructor(e,t=iU.create()){t.defaults.baseURL=e,super(new ao(t))}}class am extends iK{constructor(e,t=iU.create()){t.defaults.baseURL=e,super(new ao(t))}}class au extends iX{constructor(e,t=iU.create()){t.defaults.baseURL=e,super(new ao(t))}}class af extends iQ{constructor(e,t=iU.create()){t.defaults.baseURL=e,super(new ao(t))}}class ab extends iZ{constructor(e,t=iU.create()){t.defaults.baseURL=e,super(new ao(t))}}class ah extends i0{constructor(e,t=iU.create()){t.defaults.baseURL=e,super(new ao(t))}}class ap extends i1{constructor(e,t=iU.create()){t.defaults.baseURL=e,super(new ao(t))}}class a_ extends i2{constructor(e,t=iU.create()){t.defaults.baseURL=e,super(new ao(t))}}class aF extends i4{constructor(e,t=iU.create()){t.defaults.baseURL=e,super(new ao(t))}}class ag extends i5{constructor(e,t=iU.create()){t.defaults.baseURL=e,super(new ao(t))}}class ay extends i3{constructor(e,t=iU.create()){t.defaults.baseURL=e,super(new ao(t))}}class av extends i6{constructor(e,t=iU.create()){t.defaults.baseURL=e,super(new ao(t))}}class aw extends i8{constructor(e,t=iU.create()){t.defaults.baseURL=e,super(new ao(t))}}class ak extends i7{constructor(e,t=iU.create()){t.defaults.baseURL=e,super(new ao(t))}}class aM extends i9{constructor(e,t=iU.create()){t.defaults.baseURL=e,super(new ao(t))}}class aE extends ae{constructor(e,t=iU.create()){t.defaults.baseURL=e,super(new ao(t))}}var aL=n(8183),aD=n.n(aL);iU.isAxiosError;let aA=new class{get api(){return this._client}constructor(){this._axiosInstance=iU.create(),this._axiosInstance.defaults.headers.common["Content-Type"]="application/json",this._axiosInstance.interceptors.request.use(e=>(e.paramsSerializer=e=>aD().stringify(e,{arrayFormat:"repeat"}),e))}get axiosInstance(){return this._axiosInstance}get baseUrl(){return this._baseUrl}setTimeout(e){this._axiosInstance.defaults.timeout=e}addRequestInterceptor(e){this._axiosInstance.interceptors.request.use(e)}initialise(e){this._baseUrl=e,this._client=new an(e,this._axiosInstance)}};var aT=function(e,t,n,o){return new(n||(n=Promise))(function(r,i){function a(e){try{d(o.next(e))}catch(e){i(e)}}function s(e){try{d(o.throw(e))}catch(e){i(e)}}function d(e){var t;e.done?r(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(a,s)}d((o=o.apply(e,t||[])).next())})};(ev=tE||(tE={})).DISCONNECTED="DISCONNECTED",ev.CONNECTED="CONNECTED",ev.CONNECTING="CONNECTING";let aC="SUBSCRIBED:",aS="UNAUTHORIZED:",ax="TRIGGERED:",aY="EVENT:";class aO{constructor(){this._disconnectRequested=!1,this._reconnectDelayMillis=aB.MIN_RECONNECT_DELAY,this._reconnectTimer=null,this._status=tE.DISCONNECTED,this._connectingDeferred=null,this._statusCallbacks=[],this._pendingSubscription=null,this._queuedSubscriptions=[],this._subscriptionMap=new Map,this._assetEventCallbackMap=new Map,this._attributeEventCallbackMap=new Map,this._unloading=!1}get status(){return this._status}subscribeStatusChange(e){this._statusCallbacks.push(e)}unsubscribeStatusChange(e){!function(e,t){if(0===e.length)return;let n=e.indexOf(t);n>=0&&e.splice(n,1)}(this._statusCallbacks,e)}connect(){return(console.debug("Attempting to connect to events:",this.endpointUrl),this._reconnectTimer&&(window.clearTimeout(this._reconnectTimer),this._reconnectTimer=null),this._status===tE.CONNECTED)?(console.debug("Already connected to events!"),Promise.resolve(!0)):((this._disconnectRequested=!1,this._connectingDeferred)?console.warn("Already connecting to events, continuing the previous one."):(this._onStatusChanged(tE.CONNECTING),this._connectingDeferred=new oF,this._doConnect().then(e=>{if(this._connectingDeferred){let t=this._connectingDeferred;e?(console.debug("Connected to event service: "+this.endpointUrl),this._reconnectDelayMillis=aB.MIN_RECONNECT_DELAY,this._onStatusChanged(tE.CONNECTED),window.setTimeout(()=>{this._onConnect()},0)):console.debug("Failed to connect to event service: "+this.endpointUrl),t.resolve(e)}}).finally(()=>{this._connectingDeferred=null})),this._connectingDeferred.promise)}disconnect(){console.debug("Disconnecting from event service: "+this.endpointUrl),this._disconnectRequested||(this._disconnectRequested=!0,this._reconnectTimer&&(window.clearTimeout(this._reconnectTimer),this._reconnectTimer=null),this.status!==tE.DISCONNECTED&&this._doDisconnect())}subscribe(e,t){let n={eventSubscription:e,callback:t,deferred:new oF};return null!=this._pendingSubscription||this._status!==tE.CONNECTED?(this._queuedSubscriptions.push(n),n.deferred.promise):(this._pendingSubscription=n,this._doSubscribe(e).then(e=>{if(this._pendingSubscription){let t=this._pendingSubscription;this._pendingSubscription=null,this._subscriptionMap.set(e,t),this._processNextSubscription();let n=t.deferred;t.deferred=null,n&&n.resolve(e)}},e=>{if(console.error(e),this._pendingSubscription){let t=this._pendingSubscription;this._pendingSubscription=null,this._processNextSubscription();let n=t.deferred;t.deferred=null,n&&n.reject(e)}}),this._pendingSubscription.deferred.promise)}unsubscribe(e){return aT(this,void 0,void 0,function*(){if(this._subscriptionMap.delete(e))return void this._doUnsubscribe(e);if(this._assetEventCallbackMap.delete(e)){if(this._assetEventPromise&&0===this._assetEventCallbackMap.size){let e=yield this._assetEventPromise;this._assetEventPromise=void 0,this.unsubscribe(e)}return}if(this._attributeEventCallbackMap.delete(e)&&this._attributeEventPromise&&0===this._attributeEventCallbackMap.size){let e=yield this._attributeEventPromise;this._attributeEventPromise=void 0,this.unsubscribe(e)}})}sendEvent(e){this._status===tE.CONNECTED&&this._doSend(e)}sendEventWithReply(e){return this._status!==tE.CONNECTED?Promise.reject("Not connected"):this._doSendWithReply(e)}subscribeAssetEvents(e,t,n){return aT(this,void 0,void 0,function*(){let o=e&&"string"!=typeof e[0]?e.map(e=>e.id):e,r="AssetEvent"+aO._subscriptionCounter++;if(!this._assetEventPromise){let e;ss.authenticated||(e={filterType:"asset",realm:ss.displayRealm});let t={eventType:"asset",filter:e};this._assetEventPromise=this.subscribe(t,e=>{this._assetEventCallbackMap.forEach(t=>t(e))})}return this._assetEventCallbackMap.set(r,e=>{let t=e.asset.id;o?o.find(e=>t===e)&&n(e):e.asset.realm===ss.displayRealm&&n(e)}),this._assetEventPromise.then(()=>{try{if(o&&t){let e={messageID:"read-assets:"+o.join(",")+":"+r,eventType:"read-assets",assetQuery:{ids:o}};this.sendEventWithReply(e).then(e=>{e.assets&&this._assetEventCallbackMap.has(r)&&e.assets.forEach(e=>{n({eventType:"asset",asset:e,cause:"READ"})})})}}catch(t){throw console.error("Failed to subscribe to asset events for assets: "+e),r&&this.unsubscribe(r),t}return r})})}subscribeAttributeEvents(e,t,n){return aT(this,void 0,void 0,function*(){let o=e&&"string"!=typeof e[0],r=o?e.map(e=>e.id):e,i=o?e:void 0,a="AttributeEvent"+aO._subscriptionCounter++;if(!this._attributeEventPromise){let e;ss.authenticated||(e={filterType:"asset",realm:ss.displayRealm});let t={eventType:"attribute",filter:e};this._attributeEventPromise=this.subscribe(t,e=>{this._attributeEventCallbackMap.forEach(t=>t(e))})}let s=t=>{let i=t.ref;o?e.forEach(e=>{i.id===e.id&&i.name===e.name&&n(t)}):r?r.find(e=>i.id===e)&&n(t):t.realm===ss.displayRealm&&n(t)};return this._attributeEventCallbackMap.set(a,s),this._attributeEventPromise.then(()=>{try{if(t&&r){let e={messageID:"read-assets:"+r.join(",")+":"+a,eventType:"read-assets",assetQuery:{ids:r}};this.sendEventWithReply(e).then(e=>{e.assets&&this._attributeEventCallbackMap.has(a)&&e.assets.forEach(e=>{e.attributes&&Object.entries(e.attributes).forEach(([t,n])=>{(!i||i.find(n=>n.id===e.id&&n.name===t))&&s({eventType:"attribute",timestamp:n.timestamp,value:n.value,ref:{id:e.id,name:t}})})})})}}catch(t){throw console.error("Failed to subscribe to asset events for assets: "+e),a&&this.unsubscribe(a),t}return a})})}_processNextSubscription(){this._status===tE.CONNECTED&&0!==this._queuedSubscriptions.length&&setTimeout(()=>{let e=this._queuedSubscriptions.shift();e&&this.subscribe(e.eventSubscription,e.callback).then(t=>{let n=e.deferred;e.deferred=null,n&&n.resolve(t)},t=>{let n=e.deferred;e.deferred=null,n&&n.reject(t)})},0)}_onStatusChanged(e){e!==this._status&&(console.debug("Event provider status changed: "+e),this._status=e,this._unloading||window.setTimeout(()=>{this._statusCallbacks.forEach(t=>t(e))},0))}_onMessageReceived(e,t){let n=this._subscriptionMap.get(e);n&&n.callback(t)}_onConnect(){if(Object.keys(this._subscriptionMap).length>0){for(let e in this._subscriptionMap)this._subscriptionMap.has(e)&&this._queuedSubscriptions.unshift(this._subscriptionMap.get(e));this._subscriptionMap.clear()}this._processNextSubscription()}_onDisconnect(){this._status===tE.CONNECTED&&this._onStatusChanged(tE.DISCONNECTED),this._pendingSubscription&&(this._queuedSubscriptions.unshift(this._pendingSubscription),this._pendingSubscription=null),this._onStatusChanged(tE.CONNECTING),this._scheduleReconnect()}_scheduleReconnect(){this._reconnectTimer||!this._disconnectRequested&&(console.debug("Event provider scheduling reconnect in "+this._reconnectDelayMillis+"ms"),this._reconnectTimer=window.setTimeout(()=>{this._disconnectRequested||this.connect()},this._reconnectDelayMillis),this._reconnectDelayMillis<aB.MAX_RECONNECT_DELAY&&(this._reconnectDelayMillis=Math.min(aB.MAX_RECONNECT_DELAY,this._reconnectDelayMillis+3e3)))}}aO.MIN_RECONNECT_DELAY=0,aO.MAX_RECONNECT_DELAY=3e4,aO._subscriptionCounter=0;class aB extends aO{get endpointUrl(){return this._endpointUrl}constructor(e){super(),this._webSocket=void 0,this._connectDeferred=null,this._subscribeDeferred=null,this._repliesDeferred=new Map,this._endpointUrl=(e.startsWith("https:")?"wss":"ws")+"://"+e.substr(e.indexOf("://")+3)+"/websocket/events",window.addEventListener("beforeunload",()=>{this._unloading=!0,this.disconnect()})}_doConnect(){let e=this._endpointUrl+"?Realm="+ss.config.realm;return this._connectDeferred=new oF,(ss.authenticated?ss.retrieveAuthorizationHeader().then(t=>{e+="&Authorization="+t}):Promise.resolve()).finally(()=>{this._webSocket=new WebSocket(e),this._webSocket.onopen=e=>{if(this._connectDeferred){let e=this._connectDeferred;this._connectDeferred=null,e.resolve(!0)}},this._webSocket.onerror=e=>{if(console.error("Event provider error:",e),this._connectDeferred){let e=this._connectDeferred;this._connectDeferred=null,e.resolve(!1)}else this._beforeDisconnect()},this._webSocket.onclose=()=>{if(console.warn("The WebSocket connection of the event provider has been closed."),this._webSocket=void 0,this._connectDeferred){let e=this._connectDeferred;this._connectDeferred=null,e.resolve(!1)}else this._beforeDisconnect()},this._webSocket.onmessage=e=>{let t=e.data;if(t&&t.startsWith(aC)){let e=JSON.parse(t.substring(aC.length)),n=this._subscribeDeferred;this._subscribeDeferred=null,n&&n.resolve(e.subscriptionId)}else if(t.startsWith(aS)){let e=JSON.parse(t.substring(aS.length)),n=this._subscribeDeferred;this._subscribeDeferred=null,n&&(console.warn("Unauthorized event subscription: "+JSON.stringify(e,null,2)),n.reject("Unauthorized"))}else if(t.startsWith(ax)){let e=JSON.parse(t.substring(ax.length));e.events&&e.events.forEach(t=>{this._onMessageReceived(e.subscriptionId,t)})}else if(t.startsWith(aY)){let e=JSON.parse(t.substring(aY.length));if(e.messageID){let t=this._repliesDeferred.get(e.messageID);this._repliesDeferred.delete(e.messageID),t&&t.resolve(e)}}}}),this._connectDeferred.promise}_beforeDisconnect(){this._onDisconnect()}_doDisconnect(){var e;null==(e=this._webSocket)||e.close(),this._subscribeDeferred=null,this._repliesDeferred.clear()}_doSubscribe(e){return this._webSocket?this._subscribeDeferred?Promise.reject("There's already a pending subscription"):(this._subscribeDeferred=new oF,e.subscriptionId||(e.subscriptionId=aB._subscriptionCounter+++""),this._webSocket.send("SUBSCRIBE:"+JSON.stringify(e)),this._subscribeDeferred.promise):Promise.reject("Not connected")}_doUnsubscribe(e){this._webSocket&&this._webSocket.send("UNSUBSCRIBE:"+JSON.stringify({subscriptionId:e}))}_doSend(e){let t=aY+JSON.stringify(e);this._webSocket.send(t)}_doSendWithReply(e){if(e.messageID||(e.messageID=(new Date().getTime()+10*Math.random()).toString(10)),this._repliesDeferred.has(e.messageID))return Promise.reject("There's already a pending send and reply with this ID");let t=new oF;return this._repliesDeferred.set(e.messageID,t),this._webSocket.send(aY+JSON.stringify(e)),t.promise}}aB._subscriptionCounter=1;let aR=["__proto__","constructor","prototype"];function aP(e){return!("string"!=typeof e||0===e.length||e.length>128||aR.indexOf(e)>-1||e.indexOf("..")>-1||e.indexOf("\\")>-1||/[?#%:\s]/.test(e)||/[\x00-\x1F\x7F]/.test(e))}function aN(e){return!(!aP(e)||e.indexOf("/")>-1||e.indexOf("@")>-1)}let aI={lng:aN,ns:function(e){return!(!aP(e)||e.indexOf("//")>-1)}};function aj(e){return"string"!=typeof e?e:e.replace(/[\r\n\x00-\x1F\x7F]/g," ")}function aH(){return"function"==typeof XMLHttpRequest||"object"==typeof XMLHttpRequest}let aU=/\{\{(.+?)\}\}/g;function aW(e,t){let n=!1,o=e.replace(aU,(e,o)=>{let r=o.trim();if(aR.indexOf(r)>-1)return e;let i=t[r];if(null==i)return e;let a=aI[r]||aN,s=String(i).split("+");for(let t of s)if(!a(t))return n=!0,e;return s.join("+")});return n?null:o}let az="u">typeof globalThis?globalThis:"u">typeof global?global:"u">typeof window?window:void 0;"function"==typeof fetch?t=fetch:az&&"function"==typeof az.fetch&&(t=az.fetch);let a$=aH()&&az?az.XMLHttpRequest:void 0,aG="function"==typeof ActiveXObject&&az?az.ActiveXObject:void 0,aq=["__proto__","constructor","prototype"],aV=(e,t)=>{if(t&&"object"==typeof t){let n="";for(let e of Object.keys(t))aq.indexOf(e)>-1||(n+="&"+encodeURIComponent(e)+"="+encodeURIComponent(t[e]));if(!n)return e;e=e+(-1!==e.indexOf("?")?"&":"?")+n.slice(1)}return e},aJ=(e,n,o,r)=>{let i=e=>{if(!e.ok)return o(e.statusText||"Error",{status:e.status});e.text().then(t=>{o(null,{status:e.status,data:t})}).catch(o)};if(r){let t=r(e,n);if(t instanceof Promise)return void t.then(i).catch(o)}"function"==typeof fetch?fetch(e,n).then(i).catch(o):t(e,n).then(i).catch(o)},aK=(e,n,o,r)=>{if("function"==typeof o&&(r=o,o=void 0),r=r||(()=>{}),t&&0!==n.indexOf("file:")){var i=n,a=o,s=r;e.queryStringParams&&(i=aV(i,e.queryStringParams));let t={..."function"==typeof e.customHeaders?e.customHeaders():e.customHeaders};"u"<typeof window&&"u">typeof global&&void 0!==global.process&&global.process.versions&&global.process.versions.node&&(t["User-Agent"]=`i18next-http-backend (node/${global.process.version}; ${global.process.platform} ${global.process.arch})`),a&&(t["Content-Type"]="application/json");let d="function"==typeof e.requestOptions?e.requestOptions(a):e.requestOptions,c={method:a?"POST":"GET",body:a?e.stringify(a):void 0,headers:t,...e._omitFetchOptions?{}:d},l="function"==typeof e.alternateFetch&&e.alternateFetch.length>=1?e.alternateFetch:void 0;try{aJ(i,c,s,l)}catch(t){if(!d||0===Object.keys(d).length||!t.message||0>t.message.indexOf("not implemented"))return s(t);try{Object.keys(d).forEach(e=>{delete c[e]}),aJ(i,c,s,l),e._omitFetchOptions=!0}catch(e){s(e)}}return}if(aH()||"function"==typeof ActiveXObject){var d=n,c=o,l=r;c&&"object"==typeof c&&(c=aV("",c).slice(1)),e.queryStringParams&&(d=aV(d,e.queryStringParams));try{let t=a$?new a$:new aG("MSXML2.XMLHTTP.3.0");t.open(c?"POST":"GET",d,1),e.crossDomain||t.setRequestHeader("X-Requested-With","XMLHttpRequest"),t.withCredentials=!!e.withCredentials,c&&t.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),t.overrideMimeType&&t.overrideMimeType("application/json");let n=e.customHeaders;if(n="function"==typeof n?n():n)for(let e of Object.keys(n))aq.indexOf(e)>-1||t.setRequestHeader(e,n[e]);t.onreadystatechange=()=>{t.readyState>3&&l(t.status>=400?t.statusText:null,{status:t.status,data:t.responseText})},t.send(c)}catch(e){console&&console.log(e)}return}r(Error("No fetch and no xhr implementation found!"))};var aX=class{constructor(e,t={},n={}){this.services=e,this.options=t,this.allOptions=n,this.type="backend",this.init(e,t,n)}init(e,t={},n={}){if(this.services=e,this.options={...{loadPath:"/locales/{{lng}}/{{ns}}.json",addPath:"/locales/add/{{lng}}/{{ns}}",parse:e=>JSON.parse(e),stringify:JSON.stringify,parsePayload:(e,t,n)=>({[t]:n||""}),parseLoadPayload:(e,t)=>void 0,request:aK,reloadInterval:"u"<typeof window&&36e5,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:"cors",credentials:"same-origin",cache:"default"}},...this.options||{},...t},this.allOptions=n,this.services&&this.options.reloadInterval){let e=setInterval(()=>this.reload(),this.options.reloadInterval);"object"==typeof e&&"function"==typeof e.unref&&e.unref()}}readMulti(e,t,n){this._readAny(e,e,t,t,n)}read(e,t,n){this._readAny([e],e,[t],t,n)}_readAny(e,t,n,o,r){var i,a;let s=this.options.loadPath;"function"==typeof this.options.loadPath&&(s=this.options.loadPath(e,n)),(s=(a=i=s)&&"function"==typeof a.then?i:Promise.resolve(i)).then(i=>{if(!i)return r(null,{});let a=aW(i,{lng:e.join("+"),ns:n.join("+")});if(null==a)return r(Error("i18next-http-backend: unsafe lng/ns value — refusing to build request URL for languages=["+e.map(aj).join(", ")+"] namespaces=["+n.map(aj).join(", ")+"]"),!1);this.loadUrl(a,r,t,o)})}loadUrl(e,t,n,o){let r=this.options.parseLoadPayload("string"==typeof n?[n]:n,"string"==typeof o?[o]:o),i=aj(function(e){if("string"!=typeof e||0===e.length)return e;try{let t=new URL(e);if(t.username||t.password)return t.username="",t.password="",t.toString();return e}catch(t){return e.replace(/(\/\/)[^/@\s]+@/g,"$1")}}(e));this.options.request(this.options,e,r,(e,r)=>{let a,s;if(r&&(r.status>=500&&r.status<600||!r.status))return t("failed loading "+i+"; status code: "+r.status,!0);if(r&&r.status>=400&&r.status<500)return t("failed loading "+i+"; status code: "+r.status,!1);if(!r&&e&&e.message){let n=e.message.toLowerCase();if(["failed","fetch","network","load"].find(e=>n.indexOf(e)>-1))return t("failed loading "+i+": "+aj(e.message),!0)}if(e)return t(e,!1);try{a="string"==typeof r.data?this.options.parse(r.data,n,o):r.data}catch(e){s="failed parsing "+i+" to json"}if(s)return t(s,!1);t(null,a)})}create(e,t,n,o,r){if(!this.options.addPath)return;"string"==typeof e&&(e=[e]);let i=this.options.parsePayload(t,n,o),a=0,s=[],d=[];e.forEach(n=>{let o=this.options.addPath;"function"==typeof this.options.addPath&&(o=this.options.addPath(n,t));let c=aW(o,{lng:n,ns:t});if(null==c){a+=1,r&&a===e.length&&r(s,d);return}this.options.request(this.options,c,i,(t,n)=>{a+=1,s.push(t),d.push(n),a===e.length&&"function"==typeof r&&r(s,d)})})}reload(){let{backendConnector:e,languageUtils:t,logger:n}=this.services,o=e.language;if(o&&"cimode"===o.toLowerCase())return;let r=[],i=e=>{t.toResolveHierarchy(e).forEach(e=>{0>r.indexOf(e)&&r.push(e)})};i(o),this.allOptions.preload&&this.allOptions.preload.forEach(e=>i(e)),r.forEach(t=>{this.allOptions.ns.forEach(o=>{e.read(t,o,"read",null,null,(r,i)=>{r&&n.warn(`loading namespace ${o} for language ${t} failed`,r),!r&&i&&n.log(`loaded namespace ${o} for language ${t}`,i),e.loaded(`${t}|${o}`,r,i)})})})}};aX.type="backend";let aQ=e=>(...t)=>({_$litDirective$:e,values:t});class aZ{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,n){this._$Ct=e,this._$AM=t,this._$Ci=n}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}}class a0 extends aZ{constructor(e){if(super(e),this.it=nm,2!==e.type)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===nm||null==e)return this._t=void 0,this.it=e;if(e===nl)return e;if("string"!=typeof e)throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.it)return this._t;this.it=e;let t=[e];return t.raw=t,this._t={_$litType$:this.constructor.resultType,strings:t,values:[]}}}a0.directiveName="unsafeHTML",a0.resultType=1,aQ(a0);class a1 extends a0{}a1.directiveName="unsafeSVG",a1.resultType=2;let a2=aQ(a1),a4={logo:'<path style=\'pointer-events: var(--or-icon-pointer-events, none);\' fill="#C4D600" d="m11.96125,23.85096c-6.56773,0 -11.90971,-5.34202 -11.90971,-11.90862l2.49411,0c0,5.19176 4.22389,9.41568 9.41561,9.41568c5.19053,0 9.41561,-4.22392 9.41561,-9.41568c0,-5.19176 -4.22389,-9.41568 -9.41561,-9.41568l0,-2.49413c6.56655,0 11.90971,5.34439 11.90971,11.9098c0,6.5666 -5.34316,11.90862 -11.90971,11.90862l0,0z" /><path fill="#4E9D2D" d="m10.25094,20.38647c-2.26848,-0.47231 -4.21822,-1.80199 -5.48741,-3.74009s-1.70892,-4.25777 -1.23545,-6.52625c0.47347,-2.26965 1.80315,-4.21822 3.74242,-5.48857c1.93926,-1.27035 4.25661,-1.70892 6.52625,-1.23545c4.68471,0.97719 7.70121,5.5828 6.72286,10.26635l-2.39994,-0.49907c0.70149,-3.36085 -1.4623,-6.66585 -4.82431,-7.36734c-1.62866,-0.33969 -3.29105,-0.02559 -4.68238,0.88645c-1.39134,0.91088 -2.34526,2.3092 -2.68495,3.93786c-0.33853,1.62633 -0.02443,3.28988 0.88645,4.68122c0.91088,1.39134 2.3092,2.34526 3.93786,2.68379l-0.50139,2.4011l0,0z"/><path fill="#1D5632"d="m12.03064,17.49616c-0.09524,0 -0.19048,-0.00116 -0.28457,-0.00465c-1.49833,-0.0755 -2.87818,-0.72942 -3.88636,-1.84097c-1.00818,-1.11271 -1.52156,-2.54948 -1.44722,-4.05013l2.44378,0.12196c-0.04181,0.84557 0.24856,1.65745 0.81769,2.28466c0.56681,0.62721 1.34733,0.99656 2.1929,1.03838c0.84208,0.03833 1.65629,-0.2474 2.2835,-0.81653c0.62837,-0.56797 0.99656,-1.34617 1.03954,-2.19174c0.08711,-1.74573 -1.26371,-3.23708 -3.00943,-3.3242l0.12196,-2.44378c3.09422,0.15332 5.4869,2.79455 5.33358,5.88877c-0.07434,1.49949 -0.72942,2.87818 -1.84097,3.8852c-1.04186,0.94313 -2.36945,1.45303 -3.7644,1.45303l0,0z"/>',"logo-grayscale":'<path fill="#e2e2e2" d="m11.96125,23.85096c-6.56773,0 -11.90971,-5.34202 -11.90971,-11.90862l2.49411,0c0,5.19176 4.22389,9.41568 9.41561,9.41568c5.19053,0 9.41561,-4.22392 9.41561,-9.41568c0,-5.19176 -4.22389,-9.41568 -9.41561,-9.41568l0,-2.49413c6.56655,0 11.90971,5.34439 11.90971,11.9098c0,6.5666 -5.34316,11.90862 -11.90971,11.90862l0,0z" /><path fill="#bcbcbc" d="m10.25094,20.38647c-2.26848,-0.47231 -4.21822,-1.80199 -5.48741,-3.74009s-1.70892,-4.25777 -1.23545,-6.52625c0.47347,-2.26965 1.80315,-4.21822 3.74242,-5.48857c1.93926,-1.27035 4.25661,-1.70892 6.52625,-1.23545c4.68471,0.97719 7.70121,5.5828 6.72286,10.26635l-2.39994,-0.49907c0.70149,-3.36085 -1.4623,-6.66585 -4.82431,-7.36734c-1.62866,-0.33969 -3.29105,-0.02559 -4.68238,0.88645c-1.39134,0.91088 -2.34526,2.3092 -2.68495,3.93786c-0.33853,1.62633 -0.02443,3.28988 0.88645,4.68122c0.91088,1.39134 2.3092,2.34526 3.93786,2.68379l-0.50139,2.4011l0,0z"/><path fill="#8f8f8f"d="m12.03064,17.49616c-0.09524,0 -0.19048,-0.00116 -0.28457,-0.00465c-1.49833,-0.0755 -2.87818,-0.72942 -3.88636,-1.84097c-1.00818,-1.11271 -1.52156,-2.54948 -1.44722,-4.05013l2.44378,0.12196c-0.04181,0.84557 0.24856,1.65745 0.81769,2.28466c0.56681,0.62721 1.34733,0.99656 2.1929,1.03838c0.84208,0.03833 1.65629,-0.2474 2.2835,-0.81653c0.62837,-0.56797 0.99656,-1.34617 1.03954,-2.19174c0.08711,-1.74573 -1.26371,-3.23708 -3.00943,-3.3242l0.12196,-2.44378c3.09422,0.15332 5.4869,2.79455 5.33358,5.88877c-0.07434,1.49949 -0.72942,2.87818 -1.84097,3.8852c-1.04186,0.94313 -2.36945,1.45303 -3.7644,1.45303l0,0z"/>',"logo-plain":"m11.9925,23.91349c-6.58498,0 -11.94099,-5.35605 -11.94099,-11.9399l2.50066,0c0,5.20539 4.23498,9.44041 9.44033,9.44041c5.20416,0 9.44033,-4.23502 9.44033,-9.44041c0,-5.20539 -4.23498,-9.44041 -9.44033,-9.44041l0,-2.50068c6.5838,0 11.94099,5.35842 11.94099,11.94108c0,6.58385 -5.35719,11.9399 -11.94099,11.9399l0,0zm-1.80787,-3.27769c-2.31323,-0.48163 -4.30141,-1.83755 -5.59563,-3.81389s-1.74263,-4.34178 -1.25982,-6.65502c0.48281,-2.31443 1.83872,-4.30145 3.81623,-5.59686c1.97751,-1.29542 4.34056,-1.74264 6.65497,-1.25983c4.77711,0.99647 7.8531,5.69295 6.85545,10.46891l-2.44727,-0.50891c0.71532,-3.42716 -1.49114,-6.79738 -4.91946,-7.5127c-1.66078,-0.34639 -3.35596,-0.0261 -4.77474,0.90394c-1.41878,0.92886 -2.39152,2.35476 -2.73791,4.01555c-0.3452,1.65842 -0.02491,3.3548 0.90394,4.77359c0.92885,1.41879 2.35475,2.39154 4.01552,2.73675l-0.51128,2.44848l0,0zm1.81499,-2.92536c-0.09727,0 -0.19455,-0.00119 -0.29064,-0.00475c-1.53029,-0.07711 -2.93958,-0.74498 -3.96926,-1.88025c-1.02968,-1.13646 -1.55401,-2.60388 -1.47809,-4.13655l2.49591,0.12456c-0.04271,0.86361 0.25386,1.69282 0.83513,2.33341c0.5789,0.64059 1.37607,1.01783 2.23968,1.06053c0.86005,0.03915 1.69162,-0.25268 2.33221,-0.83395c0.64177,-0.58009 1.01782,-1.3749 1.06171,-2.23851c0.08897,-1.78298 -1.29066,-3.30616 -3.07362,-3.39513l0.12456,-2.49593c3.16022,0.15659 5.60394,2.85419 5.44735,6.01443c-0.07592,1.53149 -0.74498,2.9396 -1.88024,3.9681c-1.06408,0.96326 -2.41999,1.48403 -3.8447,1.48403l0,0z",marker:'<ellipse fill="#000" opacity="0.2" ry="1.5" rx="4" cy="22.5" cx="12" /><path style=\'pointer-events: var(--or-icon-pointer-events, none);\' d="m11.999999,0a8.437501,8.344057 0 0 1 8.437501,8.344057c0,6.500779 -5.798864,6.280799 -8.437501,14.412461c-2.638637,-8.131662 -8.437501,-7.911683 -8.437501,-14.412461a8.437501,8.344057 0 0 1 8.437501,-8.344057z" />',trash:'<path d="M6 9V19C6 19.5523 6.44772 20 7 20H17C17.5523 20 18 19.5523 18 19V9" stroke="#E21D12" stroke-width="2"/><path d="M14 11L14 16" stroke="#E21D12" stroke-width="2" stroke-linecap="round"/><path d="M10 11V16" stroke="#E21D12" stroke-width="2" stroke-linecap="round"/><path d="M5 6H8.5H19" stroke="#E21D12" stroke-width="2" stroke-linecap="round"/><path d="M8.09516 4.02871L7 6H17L15.9048 4.02871C15.5521 3.39378 14.8829 3 14.1565 3H9.84347C9.11714 3 8.4479 3.39378 8.09516 4.02871Z" fill="#E21D12"/>',compass:"<path style='fill: rgba(2,3,2,0.94)' d='M11.1679 2.74808C11.5638 2.15434 12.4362 2.15434 12.8321 2.74808L17.3635 9.5453C17.8066 10.2099 17.3302 11.1 16.5315 11.1H7.46852C6.66982 11.1 6.19343 10.2099 6.63647 9.5453L11.1679 2.74808Z'/><path style='fill: rgba(34,38,34,0.26)' d='M12.8321 21.2519C12.4362 21.8457 11.5638 21.8457 11.1679 21.2519L6.63647 14.4547C6.19343 13.7901 6.66982 12.9 7.46852 12.9H16.5315C17.3302 12.9 17.8066 13.7901 17.3635 14.4547L12.8321 21.2519Z'/>"};var a5=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a};class a3 extends CustomEvent{constructor(){super(a3.NAME,{bubbles:!0,composed:!0})}}a3.NAME="or-iconset-added";let a6=new class{constructor(){this._icons={}}addIconSet(e,t){this._icons[e]=t,this._defaultIconSet||(this._defaultIconSet=t),t.onAdd&&t.onAdd(),window.dispatchEvent(new a3)}getIconSet(e){return this._icons[e]}getIconTemplate(e){if(!e)return nc``;let t=(e||"").split(":"),n=t.pop(),o=t.pop(),r=this._defaultIconSet;return(o&&(r=this.getIconSet(o)),n&&r)?r.getIconTemplate(n):nc``}},a8=class extends nC{constructor(){super(...arguments),this._handler=e=>{this._updateIcon()}}static get styles(){return[tP`
11
11
  :host {
12
12
  --internal-or-icon-width: var(--or-icon-width, 24px);
13
13
  --internal-or-icon-height: var(--or-icon-height, 24px);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openremote/or-tree-menu",
3
- "version": "1.32.0-snapshot.20261012122155",
3
+ "version": "1.32.0",
4
4
  "description": "Web Component for displaying a tree menu of items with a predefined hierarchy",
5
5
  "customElements": "build/custom-elements.json",
6
6
  "main": "build/dist/umd/index.bundle.js",
@@ -28,14 +28,14 @@
28
28
  "repository": "https://github.com/openremote/openremote",
29
29
  "license": "AGPL-3.0-or-later",
30
30
  "dependencies": {
31
- "@openremote/core": "1.32.0-snapshot.20261012122155",
32
- "@openremote/or-element": "1.32.0-snapshot.20261012122155",
33
- "@openremote/or-translate": "1.32.0-snapshot.20261012122155",
34
- "@openremote/or-vaadin-components": "1.32.0-snapshot.20261012122155",
31
+ "@openremote/core": "1.32.0",
32
+ "@openremote/or-element": "1.32.0",
33
+ "@openremote/or-translate": "1.32.0",
34
+ "@openremote/or-vaadin-components": "1.32.0",
35
35
  "lit": "^3.3.1"
36
36
  },
37
37
  "devDependencies": {
38
- "@openremote/util": "1.32.0-snapshot.20261012122155"
38
+ "@openremote/util": "1.32.0"
39
39
  },
40
40
  "publishConfig": {
41
41
  "access": "public"