@openremote/or-asset-tree 1.34.0-snapshot.20261104153615 → 1.34.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.
|
@@ -1605,7 +1605,7 @@ var ORAssetTree;(()=>{var e={3260(e){"use strict";let t=(async function(){}).con
|
|
|
1605
1605
|
<slot name="reject-button" slot="reject-button"></slot>
|
|
1606
1606
|
<slot name="confirm-button" slot="confirm-button"></slot>
|
|
1607
1607
|
</vaadin-confirm-dialog-overlay>
|
|
1608
|
-
`}_onOpenedChanged(e){this.opened=e.detail.value}}function ag(e,t,n){return e?t(e):n?.(e)}nH(a_),n(4532),(f=eM||(eM={})).CREATE="CREATE",f.UPDATE="UPDATE",f.DELETE="DELETE",f.DELETE_FINISHED="DELETE_FINISHED",(h=eL||(eL={})).LOW="LOW",h.MEDIUM="MEDIUM",h.HIGH="HIGH",(p=eA||(eA={})).MANUAL="MANUAL",p.CLIENT="CLIENT",p.GLOBAL_RULESET="GLOBAL_RULESET",p.REALM_RULESET="REALM_RULESET",p.ASSET_RULESET="ASSET_RULESET",p.AGENT="AGENT",(b=eC||(eC={})).OPEN="OPEN",b.ACKNOWLEDGED="ACKNOWLEDGED",b.IN_PROGRESS="IN_PROGRESS",b.RESOLVED="RESOLVED",b.CLOSED="CLOSED",(_=eD||(eD={})).BOTTOM_LEFT="BOTTOM_LEFT",_.BOTTOM_RIGHT="BOTTOM_RIGHT",_.TOP_LEFT="TOP_LEFT",_.TOP_RIGHT="TOP_RIGHT",(g=eT||(eT={})).CREATE="CREATE",g.READ="READ",g.UPDATE="UPDATE",g.DELETE="DELETE",(F=eS||(eS={})).NONE="NONE",F.FORECAST="FORECAST",F.SETPOINT="SETPOINT",(v=eO||(eO={})).DISCONNECTED="DISCONNECTED",v.CONNECTING="CONNECTING",v.DISCONNECTING="DISCONNECTING",v.CONNECTED="CONNECTED",v.DISABLED="DISABLED",v.WAITING="WAITING",v.ERROR="ERROR",v.STOPPED="STOPPED",(y=eI||(eI={})).REQUEST_START="REQUEST_START",y.REQUEST_REPEATING="REQUEST_REPEATING",y.REQUEST_CANCEL="REQUEST_CANCEL",y.READY="READY",y.COMPLETED="COMPLETED",y.RUNNING="RUNNING",y.CANCELLED="CANCELLED",(w=eY||(eY={})).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",(E=eB||(eB={})).PUBLIC="PUBLIC",E.SHARED="SHARED",E.PRIVATE="PRIVATE",(x=eP||(eP={})).OFF="OFF",x.ONE_MIN="ONE_MIN",x.FIVE_MIN="FIVE_MIN",x.QUARTER="QUARTER",x.ONE_HOUR="ONE_HOUR",(M=eN||(eN={})).WRAP_TO_SINGLE_COLUMN="WRAP_TO_SINGLE_COLUMN",M.KEEP_LAYOUT="KEEP_LAYOUT",M.REDIRECT="REDIRECT",M.BLOCK_DEVICE="BLOCK_DEVICE",(L=ej||(ej={})).CSV="CSV",L.CSV_CROSSTAB="CSV_CROSSTAB",L.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",(C=ez||(ez={})).MIN="MIN",C.AVG="AVG",C.MAX="MAX",C.DIFFERENCE="DIFFERENCE",C.COUNT="COUNT",C.SUM="SUM",C.MODE="MODE",C.MEDIAN="MEDIAN",(D=eU||(eU={})).TERMINATING="TERMINATING",D.DISABLED="DISABLED",D.ALREADY_CONNECTED="ALREADY_CONNECTED",D.UNRECOGNISED="UNRECOGNISED",D.PERMANENT_ERROR="PERMANENT_ERROR",D.SYNC_ERROR="SYNC_ERROR",(T=e$||(e$={})).HTTPS="HTTPS",T.HTTP="HTTP",T.TCP="TCP",(S=eW||(eW={})).GET="GET",S.POST="POST",S.PUT="PUT",S.DELETE="DELETE",S.OPTIONS="OPTIONS",S.PATCH="PATCH",(O=eV||(eV={})).KEYCLOAK="KEYCLOAK",O.NONE="NONE",(I=eq||(eq={})).WEBSOCKET="WEBSOCKET",I.POLLING="POLLING",(Y=eG||(eG={})).INTERNAL="INTERNAL",Y.CLIENT="CLIENT",Y.GLOBAL_RULESET="GLOBAL_RULESET",Y.REALM_RULESET="REALM_RULESET",Y.ASSET_RULESET="ASSET_RULESET",(R=eK||(eK={})).REALM="REALM",R.USER="USER",R.ASSET="ASSET",R.CUSTOM="CUSTOM",(B=eJ||(eJ={})).NORMAL="NORMAL",B.HIGH="HIGH",(P=eX||(eX={})).DEVICE="DEVICE",P.TOPIC="TOPIC",P.CONDITION="CONDITION",(N=eQ||(eQ={})).ALWAYS="ALWAYS",N.ONCE="ONCE",N.HOURLY="HOURLY",N.DAILY="DAILY",N.WEEKLY="WEEKLY",N.MONTHLY="MONTHLY",N.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",(z=e1||(e1={})).PRIVATE="PRIVATE",z.PROTECTED="PROTECTED",z.PUBLIC="PUBLIC",(U=e2||(e2={})).EXACT="EXACT",U.BEGIN="BEGIN",U.END="END",U.CONTAINS="CONTAINS",($=e4||(e4={})).EQUALS="EQUALS",$.GREATER_THAN="GREATER_THAN",$.GREATER_EQUALS="GREATER_EQUALS",$.LESS_THAN="LESS_THAN",$.LESS_EQUALS="LESS_EQUALS",$.BETWEEN="BETWEEN",(W=e5||(e5={})).CREATED_ON="CREATED_ON",W.NAME="NAME",W.ASSET_TYPE="ASSET_TYPE",W.PARENT_ID="PARENT_ID",W.REALM="REALM",(V=e6||(e6={})).RESTRICTED="RESTRICTED",V.LINKED="LINKED",V.REALM="REALM",(q=e3||(e3={})).AT_LEAST_ONE="AT_LEAST_ONE",q.ALL="ALL",q.NONE="NONE",(G=e8||(e8={})).AND="AND",G.OR="OR",(K=e7||(e7={})).CREATED_ON="CREATED_ON",K.FIRST_NAME="FIRST_NAME",K.LAST_NAME="LAST_NAME",K.USERNAME="USERNAME",K.EMAIL="EMAIL",(J=e9||(e9={})).STOPPED="STOPPED",J.RUNNING="RUNNING",J.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=ti||(ti={})).NEW_LINE="NEW_LINE",et.SPACER="SPACER",(en=tr||(tr={})).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",(ei=ts||(ts={})).ADD="ADD",ei.ADD_OR_REPLACE="ADD_OR_REPLACE",ei.REPLACE="REPLACE",ei.DELETE="DELETE",ei.CLEAR="CLEAR",(er=td||(td={})).PER_ASSET="PER_ASSET",er.GLOBAL="GLOBAL",(ea=tl||(tl={})).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=tc||(tc={})).REGISTER="REGISTER",es.UPDATE="UPDATE",es.DEREGISTER="DEREGISTER",(ed=tm||(tm={})).AVAILABLE="AVAILABLE",ed.UNAVAILABLE="UNAVAILABLE",(el=tu||(tu={})).ASSET="ASSET",el.AGENT="AGENT",el.NOTIFICATION="NOTIFICATION",el.ALARM="ALARM",el.RULES="RULES",el.PROTOCOL="PROTOCOL",el.GATEWAY="GATEWAY",el.MODEL_AND_VALUES="MODEL_AND_VALUES",el.API="API",el.DATA="DATA",(ec=tf||(tf={})).INFO="INFO",ec.WARN="WARN",ec.ERROR="ERROR",(em=th||(th={})).NUMERIC="numeric",em.DIGIT_2="2-digit",em.FULL="full",em.LONG="long",em.MEDIUM="medium",em.SHORT="short",em.NARROW="narrow",(eu=tp||(tp={})).SECONDLY="SECONDLY",eu.MINUTELY="MINUTELY",eu.HOURLY="HOURLY",eu.DAILY="DAILY",eu.WEEKLY="WEEKLY",eu.MONTHLY="MONTHLY",eu.YEARLY="YEARLY",(ef=tb||(tb={})).OMIT="OMIT",ef.BACKWARD="BACKWARD",ef.FORWARD="FORWARD",(eh=t_||(t_={})).JAPANESE="JAPANESE",eh.BUDDHIST="BUDDHIST",eh.ROC="ROC",eh.ISLAMIC="ISLAMIC",eh.ISO8601="ISO8601",eh.CHINESE="CHINESE",eh.ETHIOPIC="ETHIOPIC",eh.HEBREW="HEBREW",eh.GREGORIAN="GREGORIAN",(ep=tg||(tg={})).SU="SU",ep.MO="MO",ep.TU="TU",ep.WE="WE",ep.TH="TH",ep.FR="FR",ep.SA="SA",(eb=tF||(tF={})).PEOPLECOUNTERASSET="PeopleCounterAsset",eb.MAILAGENT="MailAgent",eb.UDPAGENT="UDPAgent",eb.ROOMASSET="RoomAsset",eb.CITYASSET="CityAsset",eb.VENTILATIONASSET="VentilationAsset",eb.TRADFRILIGHTASSET="TradfriLightAsset",eb.CONSOLEASSET="ConsoleAsset",eb.PRESENCESENSORASSET="PresenceSensorAsset",eb.OPENWEATHERMAPAGENT="OpenWeatherMapAgent",eb.LIGHTASSET="LightAsset",eb.KNXAGENT="KNXAgent",eb.THETHINGSSTACKAGENT="TheThingsStackAgent",eb.PLUGASSET="PlugAsset",eb.CHIRPSTACKAGENT="ChirpStackAgent",eb.WEATHERASSET="WeatherAsset",eb.THINGASSET="ThingAsset",eb.WEBSOCKETAGENT="WebsocketAgent",eb.TCPAGENT="TCPAgent",eb.GATEWAYASSET="GatewayAsset",eb.SERIALAGENT="SerialAgent",eb.BLUETOOTHMESHAGENT="BluetoothMeshAgent",eb.PARKINGASSET="ParkingAsset",eb.TRADFRIPLUGASSET="TradfriPlugAsset",eb.SIMULATORAGENT="SimulatorAgent",eb.SNMPAGENT="SNMPAgent",eb.GROUPASSET="GroupAsset",eb.BUILDINGASSET="BuildingAsset",eb.MODBUSSERIALAGENT="ModbusSerialAgent",eb.ENVIRONMENTSENSORASSET="EnvironmentSensorAsset",eb.MQTTAGENT="MQTTAgent",eb.VELBUSTCPAGENT="VelbusTCPAgent",eb.ARTNETLIGHTASSET="ArtnetLightAsset",eb.VELBUSSERIALAGENT="VelbusSerialAgent",eb.GROUNDWATERSENSORASSET="GroundwaterSensorAsset",eb.MICROPHONEASSET="MicrophoneAsset",eb.MODBUSTCPAGENT="ModbusTcpAgent",eb.ZWAVEAGENT="ZWaveAgent",eb.HTTPAGENT="HTTPAgent",eb.DOORASSET="DoorAsset",eb.THERMOSTATASSET="ThermostatAsset",eb.SHIPASSET="ShipAsset",(e_=tv||(tv={})).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",(eg=ty||(ty={})).FORMAT="format",eg.DATAPOINTSMAXAGEDAYS="dataPointsMaxAgeDays",eg.ACCESSRESTRICTEDWRITE="accessRestrictedWrite",eg.SECRET="secret",eg.APPLYPREDICTEDDATAPOINTS="applyPredictedDataPoints",eg.ATTRIBUTELINKS="attributeLinks",eg.RULERESETIMMEDIATE="ruleResetImmediate",eg.RULESTATE="ruleState",eg.AGENTLINKCONFIG="agentLinkConfig",eg.HASPREDICTEDDATAPOINTS="hasPredictedDataPoints",eg.FORECAST="forecast",eg.STOREDATAPOINTS="storeDataPoints",eg.LABEL="label",eg.CONSTRAINTS="constraints",eg.UNITS="units",eg.USERCONNECTED="userConnected",eg.SHOWONDASHBOARD="showOnDashboard",eg.READONLY="readOnly",eg.MULTILINE="multiline",eg.ACCESSPUBLICWRITE="accessPublicWrite",eg.MOMENTARY="momentary",eg.AGENTLINK="agentLink",eg.ACCESSRESTRICTEDREAD="accessRestrictedRead",eg.ACCESSPUBLICREAD="accessPublicRead",(eF=tw||(tw={})).ASSETQUERY="assetQuery",eF.WSURL="WS_URL",eF.COLOURRGB="colourRGB",eF.VALUEFORMAT="valueFormat",eF.TEXT="text",eF.BYTE="byte",eF.USERNAMEANDPASSWORD="usernameAndPassword",eF.HTTPURL="HTTP_URL",eF.ATTRIBUTELINK="attributeLink",eF.ASSETID="assetID",eF.NUMBERMAP="numberMap",eF.HTTPMETHOD="HTTPMethod",eF.ATTRIBUTESTATE="attributeState",eF.POSITIVENUMBER="positiveNumber",eF.POSITIVEINTEGER="positiveInteger",eF.EXECUTIONSTATUS="executionStatus",eF.BIGINTEGER="bigInteger",eF.VALUEDESCRIPTOR="valueDescriptor",eF.PERIODDURATIONISO8601="periodDurationISO8601",eF.LONG="long",eF.DATEANDTIME="dateAndTime",eF.BOOLEANMAP="booleanMap",eF.MQTTQOS="MQTTQos",eF.NEGATIVEINTEGER="negativeInteger",eF.TCPIPPORTNUMBER="TCP_IPPortNumber",eF.GEOJSONPOINT="GEO_JSONPoint",eF.SNMPVERSION="SNMPVersion",eF.ASSETTYPE="assetType",eF.JSONOBJECT="JSONObject",eF.INTEGERMAP="integerMap",eF.BIGNUMBER="bigNumber",eF.IPADDRESS="IPAddress",eF.EMAIL="email",eF.TIMESTAMP="timestamp",eF.KNXMESSAGESOURCEADDRESS="kNXMessageSourceAddress",eF.ATTRIBUTEREFERENCE="attributeReference",eF.UUID="UUID",eF.INTEGER="integer",eF.OAUTHGRANT="oAuthGrant",eF.NUMBER="number",eF.DEVICECONFIGMAP="DeviceConfigMap",eF.TEXTMAP="textMap",eF.WEBSOCKETSUBSCRIPTION="websocketSubscription",eF.BOOLEAN="boolean",eF.TIMEANDPERIODDURATIONISO8601="timeAndPeriodDurationISO8601",eF.FORECASTCONFIGURATION="forecastConfiguration",eF.TIMEDURATIONISO8601="timeDurationISO8601",eF.TIMESTAMPISO8601="timestampISO8601",eF.CONSOLEPROVIDERS="consoleProviders",eF.MULTIVALUEDTEXTMAP="multivaluedTextMap",eF.NEGATIVENUMBER="negativeNumber",eF.PARITYBIT="Paritybit",eF.JSON="JSON",eF.CRONEXPRESSION="CRONExpression",eF.INTEGERBYTE="integerByte",eF.AGENTLINK="agentLink",eF.DIRECTION="direction",eF.HOSTORIPADDRESS="hostOrIPAddress",eF.STOPBITS="Stopbits",eF.CALENDAREVENT="calendarEvent",eF.CONNECTIONSTATUS="connectionStatus",eF.VALUECONSTRAINT="valueConstraint",(ev=tk||(tk={})).MONTH="month",ev.MILE_SCANDINAVIAN="mile_scandinavian",ev.VAR="var",ev.OUNCE="ounce",ev.HECTARE="hectare",ev.YARD="yard",ev.YEAR="year",ev.GIGA="giga",ev.JOULE="joule",ev.VOLT="volt",ev.HERTZ="hertz",ev.MILE="mile",ev.DEGREE="degree",ev.KILO="kilo",ev.BTU="btu",ev.TERA="tera",ev.FOOT="foot",ev.MEGA="mega",ev.KELVIN="kelvin",ev.CARBON="carbon",ev.DECIBEL_ATTENUATED="decibel_attenuated",ev.INCH="inch",ev.SQUARED="squared",ev.PERCENTAGE="percentage",ev.IN_HG="inch_mercury",ev.CENTI="centi",ev.GRAM="gram",ev.CUBED="cubed",ev.DAY="day",ev.RADIAN="radian",ev.OHM="ohm",ev.MINUTE="minute",ev.PART_PER_MILLION="ppm",ev.AMP="amp",ev.MASS_POUND="pound",ev.KNOT="knot",ev.METRE="metre",ev.LITRE="litre",ev.FLUID_OUNCE="fluid_ounce",ev.HOUR="hour",ev.ACRE="acre",ev.CELSIUS="celsius",ev.RPM="rpm",ev.PASCAL="pascal",ev.DECIBEL="decibel",ev.LUMEN="lumen",ev.WEEK="week",ev.FAHRENHEIT="fahrenheit",ev.WATT="watt",ev.GALLON="gallon",ev.LUX="lux",ev.MILLI="milli",ev.BAR="bar",ev.HECTO="hecto",ev.PEAK="peak",ev.SECOND="second",ev.MICRO="micro",ev.PER="per",ev.STONE="stone",tE||(tE={});class aF{static getAssetDescriptors(){return aF._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=aF.getValueDescriptor(t)),n=t.jsonType?t:aF.getValueDescriptor(t.type)),!n&&e&&(n=aF.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,i;if(t&&"string"!=typeof t)o=t;else{let i=this.getAssetTypeInfo(e||"ThingAsset");if(!i)return[void 0,void 0];"string"==typeof t&&(o=this.getAttributeDescriptor(t,i)),!o&&n&&(o={type:n.type,name:n.name,meta:n.meta})}return o&&(i=this.getValueDescriptor(o.type)),[o,i]}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}}aF._assetTypeInfos=[],aF._metaItemDescriptors=[],aF._valueDescriptors=[];let av=e=>"string"==typeof e,ay=()=>{let e,t,n=new Promise((n,o)=>{e=n,t=o});return n.resolve=e,n.reject=t,n},aw=e=>null==e?"":String(e),ak=/###/g,aE=e=>e&&e.includes("###")?e.replace(ak,"."):e,ax=e=>!e||av(e),aM=(e,t,n)=>{let o=av(t)?t.split("."):t,i=0;for(;i<o.length-1;){if(ax(e))return{};let t=aE(o[i]);!e[t]&&n&&(e[t]=new n),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++i}return ax(e)?{}:{obj:e,k:aE(o[i])}},aL=(e,t,n)=>{let{obj:o,k:i}=aM(e,t,Object);if(void 0!==o||1===t.length){o[i]=n;return}let r=t[t.length-1],a=t.slice(0,t.length-1),s=aM(e,a,Object);for(;void 0===s.obj&&a.length;)r=`${a[a.length-1]}.${r}`,s=aM(e,a=a.slice(0,a.length-1),Object),s?.obj&&void 0!==s.obj[`${s.k}.${r}`]&&(s.obj=void 0);s.obj[`${s.k}.${r}`]=n},aA=(e,t)=>{let{obj:n,k:o}=aM(e,t);if(n&&Object.prototype.hasOwnProperty.call(n,o))return n[o]},aC=(e,t,n)=>{for(let o in t)"__proto__"!==o&&"constructor"!==o&&(Object.prototype.hasOwnProperty.call(e,o)?av(e[o])||e[o]instanceof String||av(t[o])||t[o]instanceof String?n&&(e[o]=t[o]):aC(e[o],t[o],n):e[o]=t[o]);return e},aD={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"},aT=e=>av(e)?e.replace(/[&<>"'\/]/g,e=>aD[e]):e,aS=[" ",",","?","!",";"],aO=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),aI=(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),i=e;for(let e=0;e<o.length;){let t;if(!i||"object"!=typeof i)return;let r="";for(let a=e;a<o.length;++a)if(a!==e&&(r+=n),r+=o[a],void 0!==(t=i[r])){if(["string","number","boolean"].includes(typeof t)&&a<o.length-1)continue;e+=a-e+1;break}i=t}return i},aY=e=>e?.replace(/_/g,"-"),aR={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 aB=new class e{constructor(e,t={}){this.init(e,t)}init(e,t={}){this.prefix=t.prefix||"i18next:",this.logger=e||aR,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=>av(e)?e.replace(/[\r\n\x00-\x1F\x7F]/g," "):e),av(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 aP{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 i=0;i<o;i++)n(e,...t)})}}class aN extends aP{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 i,r=void 0!==o.keySeparator?o.keySeparator:this.options.keySeparator,a=void 0!==o.ignoreJSONStructure?o.ignoreJSONStructure:this.options.ignoreJSONStructure;e.includes(".")?i=e.split("."):(i=[e,t],n&&(Array.isArray(n)?i.push(...n):av(n)&&r?i.push(...n.split(r)):i.push(n)));let s=aA(this.data,i);return(!s&&!t&&!n&&e.includes(".")&&(e=i[0],t=i[1],n=i.slice(2).join(".")),!s&&a&&av(n))?aI(this.data?.[e]?.[t],n,r):s}addResource(e,t,n,o,i={silent:!1}){let r=void 0!==i.keySeparator?i.keySeparator:this.options.keySeparator,a=[e,t];n&&(a=a.concat(r?n.split(r):n)),e.includes(".")&&(a=e.split("."),o=t,t=a[1]),this.addNamespaces(t),aL(this.data,a,o),i.silent||this.emit("added",e,t,n,o)}addResources(e,t,n,o={silent:!1}){for(let o in n)(av(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,i,r={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=aA(this.data,a)||{};r.skipCopy||(n=JSON.parse(JSON.stringify(n))),o?aC(s,n,i):s={...s,...n},aL(this.data,a,s),r.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 aj={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,o,i){return e.forEach(e=>{t=this.processors[e]?.process(t,n,o,i)??t}),t}};let aH=Symbol("i18next/PATH_KEY");function az(e,t){let n,o,i,{[aH]:r}=e((o=[],(i=Object.create(null)).get=(e,t)=>(n?.revoke?.(),t===aH)?o:(o.push(t),(n=Proxy.revocable(e,i)).proxy),Proxy.revocable(Object.create(null),i).proxy)),a=t?.keySeparator??".",s=t?.nsSeparator??":",d=t?.enableSelector==="strict";if(r.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(r[0]))return`${r[0]}${s}${r.slice(1).join(a)}`}return r.join(a)}let aU=e=>!av(e)&&"boolean"!=typeof e&&"number"!=typeof e;class a$ extends aP{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=aB.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 i=aU(o.res);return!1!==n.returnObjects||!i}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,i=t.ns||this.options.defaultNS||[],r=n&&e.includes(n),a=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!((e,t,n)=>{t=t||"",n=n||"";let o=aS.filter(e=>!t.includes(e)&&!n.includes(e));if(0===o.length)return!0;let i=aO.getRegExp(`(${o.map(e=>"?"===e?"\\?":e).join("|")})`),r=!i.test(e);if(!r){let t=e.indexOf(n);t>0&&!i.test(e.substring(0,t))&&(r=!0)}return r})(e,n,o);if(r&&!a){let t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:av(i)?[i]:i};let r=e.split(n);(n!==o||n===o&&this.options.ns.includes(r[0]))&&(i=r.shift()),e=r.join(o)}return{key:e,namespaces:av(i)?[i]:i}}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=az(e,{...this.options,...o})),Array.isArray(e)||(e=[String(e)]),e=e.map(e=>"function"==typeof e?az(e,{...this.options,...o}):String(e));let i=void 0!==o.returnDetails?o.returnDetails:this.options.returnDetails,r=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],l=void 0!==o.nsSeparator?o.nsSeparator:this.options.nsSeparator;void 0===l&&(l=":");let c=o.lng||this.language,m=o.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(c?.toLowerCase()==="cimode")return m?i?{res:`${d}${l}${a}`,usedKey:a,exactUsedKey:a,usedLng:c,usedNS:d,usedParams:this.getUsedParamsDetails(o)}:`${d}${l}${a}`:i?{res:a,usedKey:a,exactUsedKey:a,usedLng:c,usedNS:d,usedParams:this.getUsedParamsDetails(o)}:a;let u=this.resolve(e,o),f=u?.res,h=u?.usedKey||a,p=u?.exactUsedKey||a,b=void 0!==o.joinArrays?o.joinArrays:this.options.joinArrays,_=!this.i18nFormat||this.i18nFormat.handleAsObject,g=void 0!==o.count&&!av(o.count),F=a$.hasDefaultValue(o),v=g?this.pluralResolver.getSuffix(c,o.count,o):"",y=o.ordinal&&g?this.pluralResolver.getSuffix(c,o.count,{ordinal:!1}):"",w=g&&!o.ordinal&&0===o.count,k=w&&o[`defaultValue${this.options.pluralSeparator}zero`]||o[`defaultValue${v}`]||o[`defaultValue${y}`]||o.defaultValue,E=f;_&&!f&&F&&(E=k);let x=aU(E),M=Object.prototype.toString.apply(E);if(_&&E&&x&&!["[object Number]","[object Function]","[object RegExp]"].includes(M)&&!(av(b)&&Array.isArray(E))){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(h,E,{...o,ns:s}):`key '${a} (${this.language})' returned an object instead of string.`;return i?(u.res=e,u.usedParams=this.getUsedParamsDetails(o),u):e}if(r){let e=Array.isArray(E),t=e?[]:{},n=e?p:h;for(let e in E)if(Object.prototype.hasOwnProperty.call(E,e)){let i=`${n}${r}${e}`;F&&!f?t[e]=this.translate(i,{...o,defaultValue:aU(k)?k[e]:void 0,...{joinArrays:!1,ns:s}}):t[e]=this.translate(i,{...o,joinArrays:!1,ns:s}),t[e]===i&&(t[e]=E[e])}f=t}}else if(_&&av(b)&&Array.isArray(f))(f=f.join(b))&&(f=this.extendTranslation(f,e,o,n));else{let t=!1,i=!1;!this.isValidLookup(f)&&F&&(t=!0,f=k),this.isValidLookup(f)||(i=!0,f=a);let s=(o.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&i?void 0:f,m=F&&k!==f&&this.options.updateMissing;if(i||t||m){if(this.logger.log(m?"updateKey":"missingKey",c,d,g&&!m?`${a}${this.pluralResolver.getSuffix(c,o.count,o)}`:a,m?k:f),r){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 i=F&&n!==f?n:s;this.options.missingKeyHandler?this.options.missingKeyHandler(e,d,t,i,m,o):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(e,d,t,i,m,o),this.emit("missingKey",e,d,t,f)};this.options.saveMissing&&(this.options.saveMissingPlurals&&g?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),i&&f===a&&this.options.appendNamespaceToMissingKey&&(f=`${d}${l}${a}`),(i||t)&&this.options.parseMissingKeyHandler&&(f=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${d}${l}${a}`:a,t?f:void 0,o))}return i?(u.res=f,u.usedParams=this.getUsedParamsDetails(o),u):f}extendTranslation(e,t,n,o,i){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 r;n.interpolation&&this.interpolator.init({...n,...{interpolation:{...this.options.interpolation,...n.interpolation}}});let a=av(e)&&(n?.interpolation?.skipOnVariables!==void 0?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);if(a){let t=e.match(this.interpolator.nestingRegexp);r=t&&t.length}let s=n.replace&&!av(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);r<(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)=>i?.[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 r=n.postProcess||this.options.postProcess,a=av(r)?[r]:r;return null!=e&&a?.length&&!1!==n.applyPostProcessor&&(e=aj.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,i,r,a;return av(e)&&(e=[e]),Array.isArray(e)&&(e=e.map(e=>"function"==typeof e?az(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 l=s.namespaces;this.options.fallbackNS&&(l=l.concat(this.options.fallbackNS));let c=void 0!==t.count&&!av(t.count),m=c&&!t.ordinal&&0===t.count,u=void 0!==t.context&&(av(t.context)||"number"==typeof t.context)&&""!==t.context,f=t.lngs?t.lngs:this.languageUtils.toResolveHierarchy(t.lng||this.language,t.fallbackLng);l.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;r=o;let s=[d];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(s,d,o,e,t);else{let e;c&&(e=this.pluralResolver.getSuffix(o,t.count,t));let n=`${this.options.pluralSeparator}zero`,i=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(c&&(t.ordinal&&e.startsWith(i)&&s.push(d+e.replace(i,this.options.pluralSeparator)),s.push(d+e),m&&s.push(d+n)),u){let o=`${d}${this.options.contextSeparator||"_"}${t.context}`;s.push(o),c&&(t.ordinal&&e.startsWith(i)&&s.push(o+e.replace(i,this.options.pluralSeparator)),s.push(o+e),m&&s.push(o+n))}}for(;a=s.pop();)this.isValidLookup(n)||(i=a,n=this.getResource(o,e,a,t))}))})}),{res:n,usedKey:o,exactUsedKey:i,usedLng:r,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&&!av(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 aW{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=aB.create("languageUtils")}getScriptPartFromCode(e){if(!(e=aY(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=aY(e))||!e.includes("-"))return e;let t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(av(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)),av(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=[],i=e=>{e&&(this.isSupportedCode(e)?o.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return av(e)&&(e.includes("-")||e.includes("_"))?("languageOnly"!==this.options.load&&i(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&i(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&i(this.getLanguagePartFromCode(e))):av(e)&&i(this.formatLanguageCode(e)),n.forEach(e=>{o.includes(e)||i(this.formatLanguageCode(e))}),o}}let aV={zero:0,one:1,two:2,few:3,many:4,other:5},aq={select:e=>1===e?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class aG{constructor(e,t={}){this.languageUtils=e,this.options=t,this.logger=aB.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(e,t={}){let n,o=aY("dev"===e?"en":e),i=t.ordinal?"ordinal":"cardinal",r=JSON.stringify({cleanedCode:o,type:i});if(r in this.pluralRulesCache)return this.pluralRulesCache[r];try{n=new Intl.PluralRules(o,{type:i})}catch(i){if("u"<typeof Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),aq;if(!e.match(/-|_/))return aq;let o=this.languageUtils.getLanguagePartFromCode(e);n=this.getRule(o,t)}return this.pluralRulesCache[r]=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)=>aV[e]-aV[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 aK=(e,t,n,o=".",i=!0)=>{let r,a=void 0!==(r=aA(e,n))?r:aA(t,n);return!a&&i&&av(n)&&void 0===(a=aI(e,n,o))&&(a=aI(t,n,o)),a},aJ=e=>e.replace(/\$/g,"$$$$");class aX{constructor(e={}){this.logger=aB.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:i,prefixEscaped:r,suffix:a,suffixEscaped:s,formatSeparator:d,unescapeSuffix:l,unescapePrefix:c,nestingPrefix:m,nestingPrefixEscaped:u,nestingSuffix:f,nestingSuffixEscaped:h,nestingOptionsSeparator:p,maxReplaces:b,alwaysFormat:_}=e.interpolation;this.escape=void 0!==t?t:aT,this.escapeValue=void 0===n||n,this.useRawValueToEscape=void 0!==o&&o,this.prefix=i?i.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"):r||"{{",this.suffix=a?a.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"):s||"}}",this.formatSeparator=d||",",this.unescapePrefix=l?"":c?c.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"):"-",this.unescapeSuffix=this.unescapePrefix?"":l?l.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"):"",this.nestingPrefix=m?m.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"):u||"$t(".replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),this.nestingSuffix=f?f.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"):h||")".replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),this.nestingOptionsSeparator=p||",",this.maxReplaces=b||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 i,r,a,s=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},d=e=>{if(!e.includes(this.formatSeparator)){let i=aK(t,s,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(i,void 0,n,{...o,...t,interpolationkey:e}):i}let i=e.split(this.formatSeparator),r=i.shift().trim(),a=i.join(this.formatSeparator).trim();return this.format(aK(t,s,r,this.options.keySeparator,this.options.ignoreJSONStructure),a,n,{...o,...t,interpolationkey:r})};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 l=o?.missingInterpolationHandler||this.options.missingInterpolationHandler,c=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;i=t.regex.exec(e);){let n=i[1].trim();if(void 0===(r=d(n)))if("function"==typeof l){let t=l(e,i,o);r=av(t)?t:""}else if(o&&Object.prototype.hasOwnProperty.call(o,n))r="";else if(c){r=i[0];continue}else this.logger.warn(`missed to pass in variable ${n} for interpolating ${e}`),r="";else av(r)||this.useRawValueToEscape||(r=aw(r));let s=t.safeValue(r);if(e=e.replace(i[0],aJ(s)),c?(t.regex.lastIndex+=s.length,t.regex.lastIndex-=i[0].length):t.regex.lastIndex=0,++a>=this.maxReplaces)break}}),e}nest(e,t,n={}){let o,i,r,a=(e,t)=>{let n=this.nestingOptionsSeparator;if(!e.includes(n))return e;let o=e.split(RegExp(`${n.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}[ ]*{`)),i=`{${o[1]}`;e=o[0];let a=(i=this.interpolate(i,r)).match(/'/g),s=i.match(/"/g);((a?.length??0)%2!=0||s)&&(s?.length??0)%2==0||(i=i.replace(/'/g,'"'));try{r=JSON.parse(i),t&&(r={...t,...r})}catch(t){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,t),`${e}${n}${i}`}return r.defaultValue&&r.defaultValue.includes(this.prefix)&&delete r.defaultValue,e};for(;o=this.nestingRegexp.exec(e);){let s=[];(r=(r={...n}).replace&&!av(r.replace)?r.replace:r).applyPostProcessor=!1,delete r.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)),(i=t(a.call(this,o[1].trim(),r),r))&&o[0]===e&&!av(i))return i;av(i)||(i=aw(i)),i||(this.logger.warn(`missed to resolve ${o[1]} for nesting ${e}`),i=""),s.length&&(i=s.reduce((e,t)=>this.format(e,t,n.lng,{...n,interpolationkey:o[1].trim()}),i.trim())),e=e.replace(o[0],i),this.regexp.lastIndex=0}return e}}let aQ=e=>{let t={};return(n,o,i)=>{let r=i;i&&i.interpolationkey&&i.formatParams&&i.formatParams[i.interpolationkey]&&i[i.interpolationkey]&&(r={...r,[i.interpolationkey]:void 0});let a=o+JSON.stringify(r),s=t[a];return s||(s=e(aY(o),i),t[a]=s),s(n)}},aZ=e=>(t,n,o)=>e(aY(n),o)(t);class a0{constructor(e={}){this.logger=aB.create("formatter"),this.options=e,this.init(e)}init(e,t={interpolation:{}}){this.formatSeparator=t.interpolation.formatSeparator||",";let n=t.cacheInBuiltFormats?aQ:aZ;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()]=aQ(t)}format(e,t,n,o={}){if(!t||null==e)return e;let i=t.split(this.formatSeparator),r=[];for(let e=0;e<i.length;e++){let t=i[e];for(;t.indexOf("(")>-1&&!t.includes(")")&&e+1<i.length;)t=`${t}${this.formatSeparator}${i[++e]}`;r.push(t)}return r.reduce((e,t)=>{let{formatName:i,formatOptions:r}=(e=>{let t=e.toLowerCase().trim(),n={};if(e.includes("(")){let o=e.split("(");t=o[0].toLowerCase().trim();let i=o[1].slice(0,-1);"currency"!==t||i.includes(":")?"relativetime"!==t||i.includes(":")?i.split(";").forEach(e=>{if(e){let[t,...o]=e.split(":"),i=o.join(":").trim().replace(/^'+|'+$/g,""),r=t.trim();n[r]||(n[r]=i),"false"===i&&(n[r]=!1),"true"===i&&(n[r]=!0),isNaN(i)||(n[r]=parseInt(i,10))}}):n.range||(n.range=i.trim()):n.currency||(n.currency=i.trim())}return{formatName:t,formatOptions:n}})(t);if(this.formats[i]){let t=e;try{let a=o?.formatParams?.[o.interpolationkey]||{},s=a.locale||a.lng||o.locale||o.lng||n;t=this.formats[i](e,s,{...r,...o,...a})}catch(e){this.logger.warn(e)}return t}return this.logger.warn(`there was no format function for ${i}`),e},e)}}class a1 extends aP{constructor(e,t,n,o={}){super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=o,this.logger=aB.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 i={},r={},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===r[a]&&(r[a]=!0):(this.state[a]=1,o=!1,void 0===r[a]&&(r[a]=!0),void 0===i[a]&&(i[a]=!0),void 0===s[t]&&(s[t]=!0)))}),o||(a[e]=!0)}),(Object.keys(i).length||Object.keys(r).length)&&this.queue.push({pending:r,pendingCount:Object.keys(r).length,loaded:{},errors:[],callback:o}),{toLoad:Object.keys(i),pending:Object.keys(r),toLoadLanguages:Object.keys(a),toLoadNamespaces:Object.keys(s)}}loaded(e,t,n){let o=e.split("|"),i=o[0],r=o[1];t&&this.emit("failedLoading",i,r,t),!t&&n&&this.store.addResourceBundle(i,r,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:i}=aM(e,t,Object);o[i]=o[i]||[],o[i].push(n)})(n.loaded,[i],r),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,i=this.retryTimeout,r){if(!e.length)return r(null,{});if(this.readingCalls>=this.maxParallelReads)return void this.waitingReads.push({lng:e,ns:t,fcName:n,tried:o,wait:i,callback:r});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*i,r)},i):r(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();av(e)&&(e=this.languageUtils.toResolveHierarchy(e)),av(t)&&(t=[t]);let i=this.queueLoad(e,t,n,o);if(!i.toLoad.length)return i.pending.length||o(),null;i.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],i=n[1];this.read(o,i,"read",void 0,void 0,(n,r)=>{n&&this.logger.warn(`${t}loading namespace ${i} for language ${o} failed`,n),!n&&r&&this.logger.log(`${t}loaded namespace ${i} for language ${o}`,r),this.loaded(e,n,r)})}saveMissing(e,t,n,o,i,r={},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={...r,isUpdate:i},d=this.backend.create.bind(this.backend);if(d.length<6)try{let i;(i=5===d.length?d(e,t,n,o,s):d(e,t,n,o))&&"function"==typeof i.then?i.then(e=>a(null,e)).catch(a):a(null,i)}catch(e){a(e)}else d(e,t,n,o,a,s)}e&&e[0]&&this.store.addResource(e[0],t,n,o)}}}let a2=()=>({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]),av(e[1])&&(t.defaultValue=e[1]),av(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}),a4=e=>(av(e.ns)&&(e.ns=[e.ns]),av(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),av(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&!e.supportedLngs.includes("cimode")&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),a5=()=>{};class a6 extends aP{constructor(e={},t){if(super(),this.options=a4(e),this.services={},this.logger=aB,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&&(av(e.ns)?e.defaultNS=e.ns:e.ns.includes("translation")||(e.defaultNS=e.ns[0]));let n=a2();this.options={...n,...this.options,...a4(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?aB.init(o(this.modules.logger),this.options):aB.init(null,this.options),e=this.modules.formatter?this.modules.formatter:a0;let t=new aW(this.options);this.store=new aN(this.options.resources,this.options);let n=this.services;n.logger=aB,n.resourceStore=this.store,n.languageUtils=t,n.pluralResolver=new aG(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 aX(this.options),n.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},n.backendConnector=new a1(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 a$(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=a5),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 i=ay(),r=()=>{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),i.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?r():setTimeout(r,0),i}loadResources(e,t=a5){let n=t,o=av(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=ay();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=a5),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&&aj.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=ay();this.emit("languageChanging",e);let o=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},i=(i,r)=>{r?this.isLanguageChangingTo===e&&(o(r),this.translator.changeLanguage(r),this.isLanguageChangingTo=void 0,this.emit("languageChanged",r),this.logger.log("languageChanged",r)):this.isLanguageChangingTo=void 0,n.resolve((...e)=>this.t(...e)),t&&t(i,(...e)=>this.t(...e))},r=t=>{e||t||!this.services.languageDetector||(t=[]);let n=av(t)?t:t&&t[0],r=this.store.hasLanguageSomeTranslations(n)?n:this.services.languageUtils.getBestMatchFromCodes(av(t)?[t]:t);r&&(this.language||o(r),this.translator.language||this.translator.changeLanguage(r),this.services.languageDetector?.cacheUserLanguage?.(r)),this.loadResources(r,e=>{i(e,r)})};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(r):this.services.languageDetector.detect(r):r(e):r(this.services.languageDetector.detect()),n}getFixedT(e,t,n,o){let i=o?.scopeNs,r=(e,t,...o)=>{let a,s;(a="object"!=typeof t?this.options.overloadTranslationOptionHandler([e,t].concat(o)):{...t}).lng=a.lng||r.lng,a.lngs=a.lngs||r.lngs;let d=void 0!==a.ns&&null!==a.ns;a.ns=a.ns||r.ns,""!==a.keyPrefix&&(a.keyPrefix=a.keyPrefix||n||r.keyPrefix);let l={...this.options,...a};Array.isArray(i)&&!d&&(l.ns=i),"function"==typeof a.keyPrefix&&(a.keyPrefix=az(a.keyPrefix,l));let c=this.options.keySeparator||".";return a.keyPrefix&&Array.isArray(e)?s=e.map(e=>("function"==typeof e&&(e=az(e,l)),`${a.keyPrefix}${c}${e}`)):("function"==typeof e&&(e=az(e,l)),s=a.keyPrefix?`${a.keyPrefix}${c}${e}`:e),this.t(s,a)};return av(e)?r.lng=e:r.lngs=e,r.ns=t,r.keyPrefix=n,r}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,i=this.languages[this.languages.length-1];if("cimode"===n.toLowerCase())return!0;let r=(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,r);if(void 0!==e)return e}return!!(this.hasResourceBundle(n,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||r(n,e)&&(!o||r(i,e)))}loadNamespaces(e,t){let n=ay();return this.options.ns?(av(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=ay();av(e)&&(e=[e]);let o=this.options.preload||[],i=e.filter(e=>!o.includes(e)&&this.services.languageUtils.isSupportedCode(e));return i.length?(this.options.preload=o.concat(i),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 aW(a2());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 a6(e,t);return n.createInstance=a6.createInstance,n}cloneInstance(e={},t=a5){let n=e.forkResourceStore;n&&delete e.forkResourceStore;let o={...this.options,...e,isClone:!0},i=new a6(o);if((void 0!==e.debug||void 0!==e.prefix)&&(i.logger=i.logger.clone(e)),["store","services","language"].forEach(e=>{i[e]=this[e]}),i.services={...this.services},i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},n&&(i.store=new aN(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),i.services.resourceStore=i.store),e.interpolation){let t={...a2().interpolation,...this.options.interpolation,...e.interpolation},n={...o,interpolation:t};i.services.interpolator=new aX(n)}return i.translator=new a$(i.services,o),i.translator.on("*",(e,...t)=>{i.emit(e,...t)}),i.init(o,t),i.translator.options=o,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}let a3=a6.createInstance();a3.createInstance,a3.dir,a3.init,a3.loadResources,a3.reloadResources,a3.use,a3.changeLanguage,a3.getFixedT,a3.t,a3.exists,a3.setDefaultNamespace,a3.hasLoadedNamespace,a3.loadNamespaces,a3.loadLanguages;var a8=n(4867),a7=n.n(a8);n(3472);class a9{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 se(e,t,n=!0){if(null==e||null==t)return e===t;if(e.constructor!==t.constructor)return!1;if(e instanceof Function||e instanceof RegExp)return e===t;if(e===t||e.valueOf()===t.valueOf())return!0;if(Array.isArray(e)&&e.length!==t.length||e instanceof Date||!(e instanceof Object)||!(t instanceof Object))return!1;if(n){if(Array.isArray(e))return e.every((e,n)=>se(e,t[n]));let n=Object.keys(e);return Object.keys(t).every(e=>-1!==n.indexOf(e))&&n.every(n=>se(e[n],t[n]))}return!1}function st(e){if(null==e)return"";let t=!1;return e.split(/([A-Z]|\d)/).map((e,n,o)=>{if(!e)return e;if(!t)return t=!0,e.charAt(0).toUpperCase()+e.slice(1);if("_"===e)return" ";if(1===e.length&&e===e.toUpperCase()){let t=!o[n-1]||"_"===o[n-1],i=n+1<o.length&&o[n+1]&&"_"!==o[n+1],r=n+3>o.length||!o[n+1]&&!o[n+3];(!t||i)&&(e=" "+e),!i&&(t||r)||(e=e.toLowerCase())}return e}).join("").trim()}function sn(e,t){if(t===e)return!0;let n=e.endsWith("*"),o=!n&&e.startsWith("*"),i=!n&&!o&&e.startsWith("^")&&e.endsWith("$");if(n&&t.startsWith(e.substr(0,e.length-1))||o&&t.endsWith(e.substr(1)))return!0;if(i)try{return new RegExp(e).test(t)}catch(e){console.error("Failed to compile needle as a RegExp: "+e)}return!1}function so(e,t,n){let o="string"==typeof e?e:e.name;return t&&t.meta&&t.meta.hasOwnProperty(o)?t.meta[o]:n&&n.meta?n.meta[o]:void 0}function si(e){return("string"==typeof e&&(e=aF.getAssetDescriptor(e)),e)?a3.t("label.asset."+e.name,{defaultValue:st(e.name)}):""}function sr(e,t,n,o,i,r){let a=sa("label",e,t,n,i),s="";if(a||(a=so("label",e,t&&t.meta?t:void 0)),o&&(s=function(e,t){if(!e)return"";t||(t="");let n=e.map((e,n)=>{if(3!==e.length||e.toUpperCase()!==e)return a3.t(["units."+e,"or:units."+e]);{let o=new Intl.NumberFormat(a3.language,{currency:e,style:"currency"}).formatToParts();if(0!==n||"currency"!==o[0].type)return"currency"===o[0].type?o[0].value:o[o.length-1].value;if(!t)return o[0].value;t=o[0].value+t}}).join("");return t.length>0?t+" "+n:n}(function(e,t,n,o,i){let r,a=[],s=sa(e,t&&"string"==typeof t?t:t?t.name:n?"string"==typeof n?n:n.name:void 0,n,o,i);if(s&&(r=JSON.parse(s)))if("format"!==e)return r;else a.push(r);if(t&&t.meta&&(r=so(e,t,n)))if("format"!==e)return r;else a.push(r);if(n&&"string"!=typeof n&&n.hasOwnProperty(e)){if(r=n[e],"format"!==e)return r;a.push(r)}if(n&&n.type){if(r=aF.getValueDescriptor(n.type)[e],"format"!==e)return r;a.push(r)}if("format"!==e||0===a.length)return r;let d={};return a.reverse().forEach(e=>{d=Object.assign(Object.assign({},d),e)}),d}("units",e,t,n,i))),!a){let n=e?e.name:t?"string"==typeof t?t:t.name:void 0;a=r||(n?st(n):void 0)}return a?a+(s?" ("+s+")":""):s}function sa(e,t,n,o,i,r){let a;if(t?a="string"==typeof t?t:t.name:n&&(a="string"==typeof n?n:n.name),!a)return;let s=[],d=e+"."+(i?"attribute":"meta")+".";if(o&&s.push(d+o+"."+a),n&&"string"!=typeof n&&(s.push(d+n.type+"."+a),s.push(d+n.type)),s.push(d+a),s.length>0)return a3.t(s,{defaultValue:r||""})}function ss(e){return(t,n)=>{let o=e(t),i=e(n);return o||i?o&&!i?1:!o&&i?-1:o.localeCompare(i):0}}function sd(e,t){let n=new a9;return e.dispatchEvent(t),window.setTimeout(()=>{n.resolve(t.detail)}),n.promise}function sl(){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 sc{constructor(e){e&&Object.assign(this,e)}matches(e){var t,n,o,i,r,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==(i=this.parents)?void 0:i.length)&&!this.parents.some(t=>!t.id||e.parentId===t.id))return!1;if(null==(r=this.paths)?void 0:r.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=>sc._evalValuePredicate(e.name,t)))&&(!this.attributes||sc._evalGroup(e,this.attributes))}static getUnsupportedFields(e){return Object.keys(e).filter(e=>!sc._SUPPORTED_FIELDS.has(e))}collectAttributeNames(){return this.attributes?sc._collectNames(this.attributes):[]}static _evalValuePredicate(e,t){var n;switch(t.predicateType){case"string":{let o;if(null==e)return!1;let i=!1!==t.caseSensitive?String(e):String(e).toLowerCase(),r=!1!==t.caseSensitive?t.value:null==(n=t.value)?void 0:n.toLowerCase();switch(t.match){case"BEGIN":o=i.startsWith(r);break;case"END":o=i.endsWith(r);break;case"CONTAINS":o=i.includes(r);break;default:o=i===r}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 i=null==(n=t.name)?void 0:n.value;if(!i)return!0;let r=null==(o=e.attributes)?void 0:o[i];if(!r)return!!t.negated;let a=!t.value||sc._evalValuePredicate(r.value,t.value);return t.negated?!a:a}static _evalGroup(e,t){var n,o,i;let r=null!=(n=t.operator)?n:"AND",a=[...(null!=(o=t.items)?o:[]).map(t=>sc._evalPredicate(e,t)),...(null!=(i=t.groups)?i:[]).map(t=>sc._evalGroup(e,t))];return!a.length||("OR"===r?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=>sc._collectNames(e))]}}sc._SUPPORTED_FIELDS=new Set(["ids","types","names","parents","paths","realm","attributes"]);var sm=function(e,t,n,o){return new(n||(n=Promise))(function(i,r){function a(e){try{d(o.next(e))}catch(e){r(e)}}function s(e){try{d(o.throw(e))}catch(e){r(e)}}function d(e){var t;e.done?i(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 su=n(4461);class sf{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),i=o.get("consoleName"),r=o.get("consoleVersion"),a=o.get("consolePlatform"),s=o.get("consoleProviders"),d=o.get("consoleAutoEnable"),l=s&&s.length>0?s.split(" "):["push"];this._pendingProviderEnables=l;let c=sf._createConsoleRegistration(),m=window.localStorage.getItem(this._storageKey);if(m)try{let e=JSON.parse(m);e.id&&(c.id=e.id),e.name&&(c.name=e.name),e.providers&&(c.providers=e.providers),e.apps&&(c.apps=e.apps)}catch(e){console.error("Failed to deserialise console registration")}let u=c.providers;for(let e of(c.providers={},l)){let t=u&&u.hasOwnProperty(e)?u[e]:{enabled:!1,disabled:!1};c.providers[e]=t}let f=me.getAppName();f.length>0&&0>c.apps.indexOf(f)&&c.apps.push(f),this._registration=c,i&&(c.name=i),r&&(c.version=r),a&&(c.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 sm(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 sm(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 sm(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 i=this._pendingProviderEnables.indexOf(e);return i>=0&&(this._pendingProviderEnables.splice(i,1),0===this._pendingProviderEnables.length&&(this.sendRegistration().catch(()=>void 0),this._callCompletedCallback())),o})}disableProvider(e){return sm(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 sm(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 a9,i=()=>{delete this._pendingProviderPromises[n],o.reject("No response from provider")};return this._pendingProviderPromises[n]=[o,window.setTimeout(i,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(()=>sm(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 sm(this,void 0,void 0,function*(){this._normaliseRegistration();let t=!!this._registration.id;try{let e=yield me.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&&sf._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 sm(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,i=this._pendingProviderPromises[n+o];i&&(window.clearTimeout(i[1]),delete this._pendingProviderPromises[n+o],i[0].resolve(t));let r=this._providerMessageListeners[n+o];r&&r(t)}_callCompletedCallback(){let e=this._enableCompleteCallback;this._enableCompleteCallback=null,e&&window.setTimeout(()=>{e()},0)}static _createConsoleRegistration(){return{name:su.name,version:su.version,platform:su.os.toString(),apps:[],model:((su.manufacturer?su.manufacturer+" ":"")+(su.product?su.product:"")).trim()}}_initialiseProvider(e){return sm(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 sh(e,t){return function(){return e.apply(t,arguments)}}let{toString:sp}=Object.prototype,{getPrototypeOf:sb}=Object,{iterator:s_,toStringTag:sg}=Symbol,sF=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),sv=e=>"string"==typeof e&&("__proto__"===e||"constructor"===e||"prototype"===e),sy=(e,t,n)=>e===Object.prototype||!n&&null===t,sw=(e,t)=>{let n=e,o=[];for(;null!=n&&-1===o.indexOf(n);){o.push(n);let i=sb(n);if(sy(n,i,n===e))break;if(sF(n,t))return!0;n=i}return!1},sk=(r=Object.create(null),e=>{let t=sp.call(e);return r[t]||(r[t]=t.slice(8,-1).toLowerCase())}),sE=e=>(e=e.toLowerCase(),t=>sk(t)===e),sx=e=>t=>typeof t===e,{isArray:sM}=Array,sL=sx("undefined");function sA(e){return null!==e&&!sL(e)&&null!==e.constructor&&!sL(e.constructor)&&sT(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}let sC=sE("ArrayBuffer"),sD=sx("string"),sT=sx("function"),sS=sx("number"),sO=e=>null!==e&&"object"==typeof e,sI=e=>{if(!sO(e))return!1;let t=sb(e);return(null===t||t===Object.prototype||null===sb(t))&&!sw(e,sg)&&!sw(e,s_)},sY=sE("Date"),sR=sE("File"),sB=sE("Blob"),sP=sE("FileList"),sN=sE("Set"),sj="u">typeof globalThis?globalThis:"u">typeof self?self:"u">typeof window?window:"u">typeof global?global:{},sH=void 0!==sj.FormData?sj.FormData:void 0,sz=sE("URLSearchParams"),[sU,s$,sW,sV]=["ReadableStream","Request","Response","Headers"].map(sE);function sq(e,t,{allOwnKeys:n=!1}={}){let o,i;if(null!=e)if("object"!=typeof e&&(e=[e]),sM(e))for(o=0,i=e.length;o<i;o++)t.call(null,e[o],o,e);else{let i;if(sA(e))return;let r=n?Object.getOwnPropertyNames(e):Object.keys(e),a=r.length;for(o=0;o<a;o++)i=r[o],t.call(null,e[i],i,e)}}function sG(e,t){let n;if(sA(e))return null;t=t.toLowerCase();let o=Object.keys(e),i=o.length;for(;i-- >0;)if(t===(n=o[i]).toLowerCase())return n;return null}let sK="u">typeof globalThis?globalThis:"u">typeof self?self:"u">typeof window?window:global,sJ=e=>!sL(e)&&e!==sK,sX=(a="u">typeof Uint8Array&&sb(Uint8Array),e=>a&&e instanceof a),sQ=sE("HTMLFormElement"),{propertyIsEnumerable:sZ}=Object.prototype,s0=sE("RegExp"),s1=(e,t)=>{let n=Object.getOwnPropertyDescriptors(e),o={};sq(n,(n,i)=>{let r;!1!==(r=t(n,i,e))&&(o[i]=r||n)}),Object.defineProperties(e,o)},s2=sE("AsyncFunction"),s4=(l="function"==typeof setImmediate,c=sT(sK.postMessage),l?setImmediate:c?(m=`axios@${Math.random()}`,u=[],sK.addEventListener("message",({source:e,data:t})=>{e===sK&&t===m&&u.length&&u.shift()()},!1),e=>{u.push(e),sK.postMessage(m,"*")}):e=>setTimeout(e)),s5="u">typeof queueMicrotask?queueMicrotask.bind(sK):"u">typeof process&&process.nextTick||s4,s6=e=>null!=e&&sT(e[s_]),s3={isArray:sM,isArrayBuffer:sC,isBuffer:sA,isFormData:e=>{if(!e)return!1;if(sH&&e instanceof sH)return!0;let t=sb(e);if(!t||t===Object.prototype||!sT(e.append))return!1;let n=sk(e);return"formdata"===n||"object"===n&&sT(e.toString)&&"[object FormData]"===e.toString()},isArrayBufferView:function(e){return"u">typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&sC(e.buffer)},isString:sD,isNumber:sS,isBoolean:e=>!0===e||!1===e,isObject:sO,isPlainObject:sI,isEmptyObject:e=>{if(!sO(e)||sA(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:sU,isRequest:s$,isResponse:sW,isHeaders:sV,isUndefined:sL,isDate:sY,isFile:sR,isReactNativeBlob:e=>!!(e&&void 0!==e.uri),isReactNative:e=>e&&void 0!==e.getParts,isBlob:sB,isRegExp:s0,isFunction:sT,isStream:e=>sO(e)&&sT(e.pipe),isURLSearchParams:sz,isTypedArray:sX,isFileList:sP,forEach:sq,merge:function e(...t){let{caseless:n,skipUndefined:o}=sJ(this)&&this||{},i={},r=(t,r)=>{if("__proto__"===r||"constructor"===r||"prototype"===r)return;let a=n&&"string"==typeof r&&sG(i,r)||r,s=sF(i,a)?i[a]:void 0;sI(s)&&sI(t)?i[a]=e(s,t):sI(t)?i[a]=e({},t):sM(t)?i[a]=t.slice():o&&sL(t)||(i[a]=t)};for(let e=0,n=t.length;e<n;e++){let n=t[e];if(!n||sA(n)||(sq(n,r),"object"!=typeof n||sM(n)))continue;let o=Object.getOwnPropertySymbols(n);for(let e=0;e<o.length;e++){let t=o[e];sZ.call(n,t)&&r(n[t],t)}}return i},extend:(e,t,n,{allOwnKeys:o}={})=>(sq(t,(t,o)=>{n&&sT(t)?Object.defineProperty(e,o,{__proto__:null,value:sh(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 i,r,a,s={};if(t=t||{},null==e)return t;do{for(r=(i=Object.getOwnPropertyNames(e)).length;r-- >0;)a=i[r],(!o||o(a,e,t))&&!s[a]&&(t[a]=e[a],s[a]=!0);e=!1!==n&&sb(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:sk,kindOfTest:sE,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(sM(e))return e;let t=e.length;if(!sS(t))return null;let n=Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{let n,o=(e&&e[s_]).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:sQ,hasOwnProperty:sF,hasOwnProp:sF,hasOwnInPrototypeChain:sw,getSafeProp:(e,t)=>null!=e&&sw(e,t)?e[t]:void 0,toSafeFlatObject:e=>{if(null==e||"object"!=typeof e&&"function"!=typeof e)return e;let t=sb(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(sv(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),i=[],r=e;for(;null!=r&&-1===i.indexOf(r);){i.push(r);let a=r===e?t:sb(r);if(sy(r,a,r===e))break;let s=Object.getOwnPropertyNames(r);for(let t of(Object.getOwnPropertySymbols&&s.push(...Object.getOwnPropertySymbols(r)),s))!sv(t)&&(sF(o,t)||(n[t]=e[t],o[t]=!0));r=a}return n},reduceDescriptors:s1,freezeMethods:e=>{s1(e,(t,n)=>{if(sT(e)&&["arguments","caller","callee"].includes(n))return!1;if(sT(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(sM(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:sG,global:sK,isContextDefined:sJ,isSpecCompliantForm:function(e){return!!(e&&sT(e.append)&&"FormData"===e[sg]&&e[s_])},toJSONObject:e=>{let t=new WeakSet,n=e=>{if(sO(e)){if(t.has(e))return;if(sA(e))return e;if(!("toJSON"in e)){let o;if(t.add(e),sN(e))for(let t of(o=[],e)){let e=n(t);sL(e)||o.push(e)}else o=sM(e)?[]:{},sq(e,(e,t)=>{let i=n(e);sL(i)||(o[t]=i)});return t.delete(e),o}}return e};return n(e)},isAsyncFn:s2,isThenable:e=>e&&(sO(e)||sT(e))&&sT(e.then)&&sT(e.catch),setImmediate:s4,asap:s5,isIterable:s6,isSafeIterable:e=>null!=e&&sw(e,s_)&&s6(e)},s8=s3.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"]),s7=RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),s9=RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function de(e,t){return s3.isArray(e)?e.map(e=>de(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 dt(e){let t=Object.create(null);return s3.forEach(e.toJSON(),(e,n)=>{t[n]=de(e,s9)}),t}let dn=Symbol("internals");function di(e){return e&&String(e).trim().toLowerCase()}function dr(e){return!1===e||null==e?e:s3.isArray(e)?e.map(dr):de(String(e),s7)}let da=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;function ds(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 dd(e,t,n,o,i){if(s3.isFunction(o))return o.call(this,t,n);if(i&&(t=n),s3.isString(t)){if(s3.isString(o))return -1!==t.indexOf(o);if(s3.isRegExp(o))return o.test(t)}}class dl{constructor(e){e&&this.set(e)}set(e,t,n){let o=this;function i(e,t,n){let i=di(t);if(!i)return;let r=s3.findKey(o,i);r&&void 0!==o[r]&&!0!==n&&(void 0!==n||!1===o[r])||(o[r||t]=dr(e))}let r=(e,t)=>s3.forEach(e,(e,n)=>i(e,n,t));if(s3.isPlainObject(e)||e instanceof this.constructor)r(e,t);else{let o;if(s3.isString(e)&&(e=e.trim())&&(o=e,!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(o.trim()))){var a;let n,o,i,s;r((s={},(a=e)&&a.split("\n").forEach(function(e){i=e.indexOf(":"),n=e.substring(0,i).trim().toLowerCase(),o=e.substring(i+1).trim();let t=s3.hasOwnProp(s,n);!n||t&&s3.hasOwnProp(s8,n)||("set-cookie"===n?t?s[n].push(o):s[n]=[o]:s[n]=t?s[n]+", "+o:o)}),s),t)}else if(s3.isObject(e)&&s3.isSafeIterable(e)){let n=Object.create(null),o,i;for(let t of e){if(!s3.isArray(t))throw TypeError("Object iterator must return a key-value pair");i=t[0],s3.hasOwnProp(n,i)?(o=n[i],n[i]=s3.isArray(o)?[...o,t[1]]:[o,t[1]]):n[i]=t[1]}r(n,t)}else null!=e&&i(t,e,n)}return this}get(e,t){if(e=di(e)){let n=s3.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(s3.isFunction(t))return t.call(this,e,n);if(s3.isRegExp(t))return t.exec(e);throw TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=di(e)){let n=s3.findKey(this,e);return!!(n&&void 0!==this[n]&&(!t||dd(this,this[n],n,t)))}return!1}delete(e,t){let n=this,o=!1;function i(e){if(e=di(e)){let i=s3.findKey(n,e);i&&(!t||dd(n,n[i],i,t))&&(delete n[i],o=!0)}}return s3.isArray(e)?e.forEach(i):i(e),o}clear(e){let t=Object.keys(this),n=t.length,o=!1;for(;n--;){let i=t[n];(!e||dd(this,this[i],i,e,!0))&&(delete this[i],o=!0)}return o}normalize(e){let t=this,n={};return s3.forEach(this,(o,i)=>{let r=s3.findKey(n,i);if(r){t[r]=dr(o),delete t[i];return}let a=e?i.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n):String(i).trim();a!==i&&delete t[i],t[a]=dr(o),n[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return s3.forEach(this,(n,o)=>{null!=n&&!1!==n&&(t[o]=e&&s3.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 s3.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,i=!1,r=!1;function a(e){let i=ds(n.slice(o,e)),r=i.indexOf("=");if(r<1)return;let a=ds(i.slice(0,r));if(!da.test(a))return;let s=a.toLowerCase();if("__proto__"===s||"constructor"===s||"prototype"===s)return;let d=ds(i.slice(r+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 i=e.charCodeAt(o);if(34===i||92===i&&(o+=1)>=t)return e;n+=e[o]}return n}(d)}for(let e=0;e<n.length;e++){let t=n.charCodeAt(e);i?r?r=!1:92===t?r=!0:34===t&&(i=!1):34===t?i=!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[dn]=this[dn]={accessors:{}}).accessors,n=this.prototype;function o(e){let o=di(e);if(!t[o]){let i;i=s3.toCamelCase(" "+e),["get","set","has"].forEach(t=>{Object.defineProperty(n,t+i,{__proto__:null,value:function(n,o,i){return this[t].call(this,e,n,o,i)},configurable:!0})}),t[o]=!0}}return s3.isArray(e)?e.forEach(o):o(e),this}}dl.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),s3.reduceDescriptors(dl.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),s3.freezeMethods(dl);let dc="[REDACTED ****]";function dm(e){try{return String(e)}catch(e){return""}}class du extends Error{static from(e,t,n,o,i,r){let a=e.message;!a&&s3.isArray(e.errors)&&e.errors.length&&(a=e.errors.map(e=>{try{return e&&e.message?dm(e.message):dm(e)}catch(e){return""}}).filter(Boolean).join("; ")||e.name||"AggregateError");let s=new du(a,t||e.code,n,o,i);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),r&&Object.assign(s,r),s}constructor(e,t,n,o,i){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),i&&(this.response=i,this.status=i.status)}toJSON(){let e,t,n,o=this.config,i=o&&s3.hasOwnProp(o,"redact")?o.redact:void 0,r=s3.isArray(i)&&i.length>0?(e=new Set(i.map(e=>String(e).toLowerCase())),t=[],(n=o=>{let i;if(null===o||"object"!=typeof o||s3.isBuffer(o))return o;if(-1===t.indexOf(o)){if(o instanceof dl&&(o=o.toJSON()),t.push(o),s3.isArray(o))i=[],o.forEach((e,t)=>{let o=n(e);s3.isUndefined(o)||(i[t]=o)});else{if(!s3.isPlainObject(o)&&function(e){if(s3.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(s3.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}(o))return t.pop(),o;for(let[t,r]of(i=Object.create(null),Object.entries(o))){let o=e.has(t.toLowerCase())?dc:n(r);s3.isUndefined(o)||(i[t]=o)}}return t.pop(),i}})(o)):s3.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:r,code:this.code,status:this.status}}}du.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",du.ERR_BAD_OPTION="ERR_BAD_OPTION",du.ECONNABORTED="ECONNABORTED",du.ETIMEDOUT="ETIMEDOUT",du.ECONNREFUSED="ECONNREFUSED",du.ERR_NETWORK="ERR_NETWORK",du.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",du.ERR_DEPRECATED="ERR_DEPRECATED",du.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",du.ERR_BAD_REQUEST="ERR_BAD_REQUEST",du.ERR_CANCELED="ERR_CANCELED",du.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",du.ERR_INVALID_URL="ERR_INVALID_URL",du.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";let df=du;function dh(e){return s3.isPlainObject(e)||s3.isArray(e)}function dp(e){return s3.endsWith(e,"[]")?e.slice(0,-2):e}function db(e,t,n){return e?e.concat(t).map(function(e,t){return e=dp(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}let d_=s3.toFlatObject(s3,{},null,function(e){return/^is[A-Z]/.test(e)}),dg=function(e,t,n){if(!s3.isObject(e))throw TypeError("target must be an object");t=t||new FormData;let o=(e,t)=>{let o=s3.getSafeProp(n,e);return s3.isUndefined(o)?t:o},i=o("metaTokens",!0),r=o("visitor")||h,a=o("dots",!1),s=o("indexes",!1),d=o("Blob")||"u">typeof Blob&&Blob,l=o("maxDepth",100),c=d&&s3.isSpecCompliantForm(t),m=[];if(!s3.isFunction(r))throw TypeError("visitor must be a function");function u(e){if(null===e)return"";if(s3.isDate(e))return e.toISOString();if(s3.isBoolean(e))return e.toString();if(!c&&s3.isBlob(e))throw new df("Blob is not supported. Use a Buffer instead.");if(s3.isArrayBuffer(e)||s3.isTypedArray(e)){if(c&&"function"==typeof d)return new d([e]);throw new df("Blob is not supported. Use a Buffer instead.",df.ERR_NOT_SUPPORT)}return e}function f(e){if(e>l)throw new df("Object is too deeply nested ("+e+" levels). Max depth: "+l,df.ERR_FORM_DATA_DEPTH_EXCEEDED)}function h(e,n,o){let r=e;if(s3.isReactNative(t)&&s3.isReactNativeBlob(e))return t.append(db(o,n,a),u(e)),!1;if(e&&!o&&"object"==typeof e)if(s3.endsWith(n,"{}"))n=i?n:n.slice(0,-2),e=function(e){if(1/0===l)return JSON.stringify(e);let t=[];return JSON.stringify(e,function(e,n){if(!s3.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(s3.isArray(e)&&(d=e,s3.isArray(d)&&!d.some(dh))||(s3.isFileList(e)||s3.endsWith(n,"[]"))&&(r=s3.toArray(e)))return n=dp(n),r.forEach(function(e,o){s3.isUndefined(e)||null===e||t.append(!0===s?db([n],o,a):null===s?n:n+"[]",u(e))}),!1}return!!dh(e)||(t.append(db(o,n,a),u(e)),!1)}let p=Object.assign(d_,{defaultVisitor:h,convertValue:u,isVisitable:dh});if(!s3.isObject(e))throw TypeError("data must be an object");return!function e(n,o,i=0){if(!s3.isUndefined(n)){if(f(i),-1!==m.indexOf(n))throw Error("Circular reference detected in "+o.join("."));m.push(n),s3.forEach(n,function(n,a){!0===(!(s3.isUndefined(n)||null===n)&&r.call(t,n,s3.isString(a)?a.trim():a,o,p))&&e(n,o?o.concat(a):[a],i+1)}),m.pop()}}(e),t};function dF(e){let t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(e){return t[e]})}function dv(e,t){this._pairs=[],e&&dg(e,this,t)}let dy=dv.prototype;function dw(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function dk(e,t,n){let o;if(!t)return e;e=e||"";let i=s3.isFunction(n)?{serialize:n}:n,r=s3.getSafeProp(i,"encode")||dw,a=s3.getSafeProp(i,"serialize");if(o=a?a(t,i):s3.isURLSearchParams(t)?t.toString():new dv(t,i).toString(r)){let t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}dy.append=function(e,t){this._pairs.push([e,t])},dy.toString=function(e){let t=e?t=>e.call(this,t,dF):dF;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};let dE=Symbol("internals");function dx(e){return e?e.length:0}function dM(e){if(e)for(;e.length&&null===e[e.length-1];)e.pop()}function dL(e,t){let n=e.handlers,o=dx(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 dA=class{constructor(){this.handlers=[],this[dE]={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},i=this[dE];null==this.handlers&&(this.handlers=[]),dL(this,i);let r=i.nextId++;return this.handlers.push(o),i.handlerEntries.set(r,{handler:o,index:this.handlers.length-1}),i.handlersLength=this.handlers.length,r}eject(e){let t=this[dE];dL(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||(dM(this.handlers),t.handlersLength=this.handlers.length)}}clear(){this.handlers&&(this.handlers=[],dL(this,this[dE]))}forEach(e){let t=this[dE];dL(this,t),t.iterationDepth++;try{s3.forEach(this.handlers,function(t){null!==t&&e(t)})}finally{--t.iterationDepth||(dL(this,t),dM(this.handlers),t.handlersLength=dx(this.handlers))}}},dC={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},dD="u">typeof URLSearchParams?URLSearchParams:dv,dT="u">typeof FormData?FormData:null,dS="u">typeof Blob?Blob:null,dO="u">typeof window&&"u">typeof document,dI="object"==typeof navigator&&navigator||void 0,dY=dO&&(!dI||0>["ReactNative","NativeScript","NS"].indexOf(dI.product)),dR="u">typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,dB=dO&&window.location.href||"http://localhost",dP={...tT,isBrowser:!0,classes:{URLSearchParams:dD,FormData:dT,Blob:dS},protocols:["http","https","file","blob","url","data"]};function dN(e){if(e>100)throw new df("FormData field is too deeply nested ("+e+" levels). Max depth: 100",df.ERR_FORM_DATA_DEPTH_EXCEEDED)}let dj=function(e){if(s3.isFormData(e)&&s3.isFunction(e.entries)){let t={};return s3.forEachEntry(e,(e,n)=>{!function e(t,n,o,i){dN(i);let r=t[i++];if("__proto__"===r)return!0;let a=Number.isFinite(+r),s=i>=t.length;return(r=!r&&s3.isArray(o)?o.length:r,s)?s3.hasOwnProp(o,r)?o[r]=s3.isArray(o[r])?o[r].concat(n):[o[r],n]:o[r]=n:(s3.hasOwnProp(o,r)&&s3.isObject(o[r])||(o[r]=[]),e(t,n,o[r],i)&&s3.isArray(o[r])&&(o[r]=function(e){let t,n,o={},i=Object.keys(e),r=i.length;for(t=0;t<r;t++)o[n=i[t]]=e[n];return o}(o[r]))),!a}(function(e){let t,n=[],o=/[^.[\]]+|\[([^.[\]]*)]/g;for(;null!==(t=o.exec(e));)dN(n.length),n.push("[]"===t[0]?"":t[1]||t[0]);return n}(e),n,t,0)}),t}return null},dH=Object.freeze(["get","delete","head","options","post","put","patch","purge","link","unlink","query"]),dz=(e,t)=>null!=e&&s3.hasOwnProp(e,t)?e[t]:void 0,dU={transitional:dC,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){let n,o=t.getContentType()||"",i=o.indexOf("application/json")>-1,r=s3.isObject(e);if(r&&s3.isHTMLForm(e)&&(e=new FormData(e)),s3.isFormData(e))return i?JSON.stringify(dj(e)):e;if(s3.isArrayBuffer(e)||s3.isBuffer(e)||s3.isStream(e)||s3.isFile(e)||s3.isBlob(e)||s3.isReadableStream(e))return e;if(s3.isArrayBufferView(e))return e.buffer;if(s3.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();if(r){let t=dz(this,"formSerializer");if(o.indexOf("application/x-www-form-urlencoded")>-1)return dg(e,new dP.classes.URLSearchParams,{visitor:function(e,t,n,o){return dP.isNode&&s3.isBuffer(e)?(this.append(t,e.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)},...t}).toString();if((n=s3.isFileList(e))||o.indexOf("multipart/form-data")>-1){let o=dz(this,"env"),i=o&&o.FormData;return dg(n?{"files[]":e}:e,i&&new i,t)}}if(r||i){t.setContentType("application/json",!1);var a=e;if(s3.isString(a))try{return(0,JSON.parse)(a),s3.trim(a)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(a)}return e}],transformResponse:[function(e){let t=dz(this,"transitional")||dU.transitional,n=t&&t.forcedJSONParsing,o=dz(this,"responseType"),i="json"===o;if(s3.isResponse(e)||s3.isReadableStream(e))return e;if(e&&s3.isString(e)&&(n&&!o||i)){let n=t&&t.silentJSONParsing;try{return JSON.parse(e,dz(this,"parseReviver"))}catch(e){if(!n&&i){if("SyntaxError"===e.name)throw df.from(e,df.ERR_BAD_RESPONSE,this,null,dz(this,"response"));throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:dP.classes.FormData,Blob:dP.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};function d$(e,t){let n=this||dU,o=t||n,i=dl.from(o.headers),r=o.data;return s3.forEach(e,function(e){r=e.call(n,r,i.normalize(),t?t.status:void 0)}),i.normalize(),r}function dW(e){return!!(e&&e.__CANCEL__)}s3.forEach(dH,e=>{dU.headers[e]={}});let dV=class extends df{constructor(e,t,n){super(null==e?"canceled":e,df.ERR_CANCELED,t,n),this.name="CanceledError",this.__CANCEL__=!0}};function dq(e,t,n){let o=n.config.validateStatus;!n.status||!o||o(n.status)?e(n):t(new df("Request failed with status code "+n.status,n.status>=400&&n.status<500?df.ERR_BAD_REQUEST:df.ERR_BAD_RESPONSE,n.config,n.request,n))}let dG=/[\t\n\r]/g;function dK(e){if("string"!=typeof e)return e;let t=0;for(;t<e.length&&32>=e.charCodeAt(t);)t++;return e.slice(t).replace(dG,"")}function dJ(e){let t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||""}let dX=function(e,t){let n,o=Array(e=e||10),i=Array(e),r=0,a=0;return t=void 0!==t?t:1e3,function(s){let d=Date.now(),l=i[a];n||(n=d),o[r]=s,i[r]=d;let c=a,m=0;for(;c!==r;)m+=o[c++],c%=e;if((r=(r+1)%e)===a&&(a=(a+1)%e),d-n<t)return;let u=l&&d-l;return u?Math.round(1e3*m/u):void 0}},dQ=function(e,t){let n,o,i=0,r=1e3/t,a=(t,r=Date.now())=>{i=r,n=null,o&&(clearTimeout(o),o=null),e(...t)};return[(...e)=>{let t=Date.now(),s=t-i;s>=r?a(e,t):(n=e,o||(o=setTimeout(()=>{o=null,a(n)},r-s)))},()=>n&&a(n),(...e)=>a(e)]},dZ=(e,t,n=3)=>{let o=0,i=dX(50,250);return dQ(n=>{if(!n||!s3.isNumber(n.loaded))return;let r=n.loaded,a=n.lengthComputable?n.total:void 0,s=Math.max(0,null!=a?Math.min(r,a):r),d=Math.max(0,s-o),l=i(d);o=Math.max(o,s),e({loaded:s,total:a,progress:a?s/a:void 0,bytes:d,rate:l||void 0,estimated:l&&a?(a-s)/l:void 0,event:n,lengthComputable:null!=a,[t?"download":"upload"]:!0})},n)},d0=(e,t)=>{let n=null!=e;return[o=>t[0]({lengthComputable:n,total:e,loaded:o}),t[1]]},d1=(e,t=s3.asap)=>(...n)=>t(()=>e(...n)),d2=dP.hasStandardBrowserEnv?(s=new URL(dP.origin),d=dP.navigator&&/(msie|trident)/i.test(dP.navigator.userAgent),e=>(e=new URL(e,dP.origin),s.protocol===e.protocol&&s.host===e.host&&(d||s.port===e.port))):()=>!0,d4=dP.hasStandardBrowserEnv?{write(e,t,n,o,i,r,a){if("u"<typeof document)return;let s=[`${e}=${encodeURIComponent(t)}`];s3.isNumber(n)&&s.push(`expires=${new Date(n).toUTCString()}`),s3.isString(o)&&s.push(`path=${o}`),s3.isString(i)&&s.push(`domain=${i}`),!0===r&&s.push("secure"),s3.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+/,""),i=o.indexOf("=");if(-1!==i&&o.slice(0,i)===e)try{return decodeURIComponent(o.slice(i+1))}catch(e){return o.slice(i+1)}}return null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}},d5=/^https?:(?!\/\/)/i;function d6(e,t){if("string"==typeof e){let o=dK(e);if(d5.test(o)){var n;let e,i,r;throw new df(`Invalid URL ${JSON.stringify((r=(-1===(i=(e=o.replace(/^(https?:\/{0,2})[^/?#]*@/i,`$1${dc}@`)).indexOf("#"))?e:e.slice(0,i)).replace(/([?&][^=&#]*=)[^&#]*/g,`$1${dc}`),-1===i?r:`${r}#${!(n=e.slice(i+1))?n:n.replace(/(^|&)([^=&]*=)?[^&]+/g,(e,t,n="")=>`${t}${n}${dc}`)}`))}: missing "//" after protocol`,df.ERR_INVALID_URL,t)}}}function d3(e,t,n,o){d6(t,o);let i=!("string"==typeof t&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t));if(e&&(i||!1===n)){d6(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 d8=e=>e instanceof dl?{...e}:e;function d7(e,t){var n;e=e||{},t=t||{};let o=Object.create(null);function i(e,t,n,o){return s3.isPlainObject(e)&&s3.isPlainObject(t)?s3.merge.call({caseless:o},e,t):s3.isPlainObject(t)?s3.merge({},t):s3.isArray(t)?t.slice():t}function r(e,t,n,o){return s3.isUndefined(t)?s3.isUndefined(e)?void 0:i(void 0,e,n,o):i(e,t,n,o)}function a(e,t){if(!s3.isUndefined(t))return i(void 0,t)}function s(e,t){return s3.isUndefined(t)?s3.isUndefined(e)?void 0:i(void 0,e):i(void 0,t)}function d(n,o,r){return s3.hasOwnProp(t,r)?i(n,o):s3.hasOwnProp(e,r)?i(void 0,n):void 0}Object.defineProperty(o,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});let l={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)=>r(d8(e),d8(t),n,!0)};return s3.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 i=s3.hasOwnProp(l,n)?l[n]:r,a=i(s3.hasOwnProp(e,n)?e[n]:void 0,s3.hasOwnProp(t,n)?t[n]:void 0,n);s3.isUndefined(a)&&i!==d||(o[n]=a)}),s3.hasOwnProp(t,"validateStatus")&&s3.isUndefined(t.validateStatus)&&!1===function(n){let o=s3.hasOwnProp(t,"transitional")?t.transitional:void 0;if(!s3.isUndefined(o)){if(!s3.isPlainObject(o))return;else if(s3.hasOwnProp(o,n))return o[n]}let i=s3.hasOwnProp(e,"transitional")?e.transitional:void 0;if(s3.isPlainObject(i)&&s3.hasOwnProp(i,n))return i[n]}("validateStatusUndefinedResolves")&&(s3.hasOwnProp(e,"validateStatus")?o.validateStatus=i(void 0,e.validateStatus):delete o.validateStatus),o}let d9=["content-type","content-length"],le=function(e){let t=d7({},e),n=e=>s3.hasOwnProp(t,e)?t[e]:void 0,o=n("data"),i=n("withXSRFToken"),r=n("xsrfHeaderName"),a=n("xsrfCookieName"),s=n("headers"),d=n("auth"),l=n("baseURL"),c=n("allowAbsoluteUrls"),m=n("url");if(t.headers=s=dl.from(s),t.url=dk(d3(l,m,c,t),n("params"),n("paramsSerializer")),d){let t=s3.getSafeProp(d,"username")||"",n=s3.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 df.from(t,df.ERR_BAD_OPTION_VALUE,e)}}if(s3.isFormData(o)){let e=s3.getSafeProp(o,"getHeaders");if(dP.hasStandardBrowserEnv||dP.hasStandardBrowserWebWorkerEnv||s3.isReactNative(o))s.setContentType(void 0);else{var u,f;s3.isFunction(e)&&(u=s,f=e.call(o),"content-only"!==n("formDataHeaderPolicy")?u.set(f):Object.entries(f||{}).forEach(([e,t])=>{d9.includes(e.toLowerCase())&&u.set(e,t)}))}}if(dP.hasStandardBrowserEnv&&(s3.isFunction(i)&&(i=i(t)),!0===i||null==i&&d2(t.url))){let e=r&&a&&d4.read(a);e&&s.set(r,e)}return t},lt="u">typeof XMLHttpRequest&&function(e){return new Promise(function(t,n){let o,i,r,a,s,d,l=le(e),c=l.data,m=dl.from(l.headers).normalize(),{responseType:u,onUploadProgress:f,onDownloadProgress:h}=l;function p(){a&&a(),s&&s(),l.cancelToken&&l.cancelToken.unsubscribe(o),l.signal&&l.signal.removeEventListener("abort",o)}let b=new XMLHttpRequest;function _(o){if(!b)return;if(0===b.status&&"file"!==(dJ(dK(l.url))||dJ(dP.origin))&&!(b.responseURL&&b.responseURL.startsWith("file:"))){n(new df("Request aborted",df.ECONNABORTED,e,b)),p(),b=null;return}try{o?d&&d(o):s&&s()}catch(e){setTimeout(()=>{throw e})}if(!b)return;let i=dl.from("getAllResponseHeaders"in b&&b.getAllResponseHeaders());dq(function(e){t(e),p()},function(e){n(e),p()},{data:u&&"text"!==u&&"json"!==u?b.response:b.responseText,status:b.status,statusText:b.statusText,headers:i,config:e,request:b}),b=null}b.open(l.method.toUpperCase(),l.url,!0),b.timeout=l.timeout,"onloadend"in b?b.onloadend=_:b.onreadystatechange=function(){!b||4!==b.readyState||(0!==b.status||b.responseURL&&b.responseURL.startsWith("file:"))&&setTimeout(_)},b.onabort=function(){b&&(n(new df("Request aborted",df.ECONNABORTED,e,b)),p(),b=null)},b.onerror=function(t){let o=new df(t&&t.message?t.message:"Network Error",df.ERR_NETWORK,e,b);o.event=t||null,n(o),p(),b=null},b.ontimeout=function(){let t=l.timeout?"timeout of "+l.timeout+"ms exceeded":"timeout exceeded",o=l.transitional||dC;l.timeoutErrorMessage&&(t=l.timeoutErrorMessage),n(new df(t,o.clarifyTimeoutError?df.ETIMEDOUT:df.ECONNABORTED,e,b)),p(),b=null},void 0===c&&m.setContentType(null),"setRequestHeader"in b&&s3.forEach(dt(m),function(e,t){b.setRequestHeader(t,e)}),s3.isUndefined(l.withCredentials)||(b.withCredentials=!!l.withCredentials),u&&"json"!==u&&(b.responseType=l.responseType),h&&([r,s,d]=dZ(h,!0),b.addEventListener("progress",r)),f&&b.upload&&([i,a]=dZ(f),b.upload.addEventListener("progress",i),b.upload.addEventListener("loadend",a)),(l.cancelToken||l.signal)&&(o=t=>{b&&(n(!t||t.type?new dV(null,e,b):t),b.abort(),p(),b=null)},l.cancelToken&&l.cancelToken.subscribe(o),l.signal&&(l.signal.aborted?o():l.signal.addEventListener("abort",o)));let g=dJ(l.url);if(g&&!dP.protocols.includes(g)){n(new df("Unsupported protocol "+g+":",df.ERR_BAD_REQUEST,e)),p();return}b.send(c||null)})},ln=function*(e,t){let n,o=e.byteLength;if(!t||o<t)return void(yield e);let i=0;for(;i<o;)n=i+t,yield e.slice(i,n),i=n},lo=async function*(e,t){for await(let n of li(e))yield*ln(n,t)},li=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()}},lr=(e,t,n,o)=>{let i,r=lo(e,t),a=0,s=e=>{!i&&(i=!0,o&&o(e))};return new ReadableStream({async pull(e){try{let{done:t,value:o}=await r.next();if(t){s(),e.close();return}let i=o.byteLength;if(n){let e=a+=i;n(e)}e.enqueue(new Uint8Array(o))}catch(e){throw s(e),e}},cancel:e=>(s(e),r.return())},{highWaterMark:2})},la=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102,ls=(e,t,n)=>t+2<n&&la(e.charCodeAt(t+1))&&la(e.charCodeAt(t+2)),ld=e=>e<=57?e-48:(223&e)-55,ll=e=>e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||43===e||47===e||45===e||95===e,lc=e=>9===e||10===e||12===e||13===e||32===e,lm=e=>{var t;let n,o,i=e.length,r=0,a=0,s=!1;for(let t=0;t<i;t++){let n=e.charCodeAt(t);if(37===n&&ls(e,t,i)&&(n=16*ld(e.charCodeAt(t+1))+ld(e.charCodeAt(t+2)),t+=2),!lc(n)){if(61===n){a++;continue}if(!ll(n)||a>0){s=!0;continue}r++}}if(s||a>2||a>0&&(r+a)%4!=0||r%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=r)/4),3*n+(2==(o=t%4)?1:2*(3===o))},lu={cache:"default",redirect:"follow",referrer:"about:client",referrerPolicy:"",mode:"cors",integrity:"",keepalive:!1,priority:"auto",window:null},{isFunction:lf}=s3,lh=e=>{if(!s3.isString(e))return e;try{return decodeURIComponent(e)}catch(t){return e}},lp=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},lb=e=>{let t,n=void 0!==s3.global&&null!==s3.global?s3.global:globalThis,{ReadableStream:o,TextEncoder:i}=n,{fetch:r,Request:a,Response:s}=e=s3.merge.call({skipUndefined:!0},{Request:n.Request,Response:n.Response},e),d=r?lf(r):"function"==typeof fetch,l=lf(a),c=lf(s);if(!d)return!1;let m=d&&lf(o),u=d&&("function"==typeof i?(t=new i,e=>t.encode(e)):async e=>new Uint8Array(await new a(e).arrayBuffer())),f=l&&m&&lp(()=>{let e=!1,t=new a(dP.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}),h=c&&m&&lp(()=>s3.isReadableStream(new s("").body)),p={stream:h&&(e=>e.body)};d&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{p[e]||(p[e]=(t,n)=>{let o=t&&t[e];if(o)return o.call(t);throw new df(`Response type '${e}' is not supported`,df.ERR_NOT_SUPPORT,n)})});let b=async e=>{if(null==e)return 0;if(s3.isBlob(e))return e.size;if(s3.isSpecCompliantForm(e)){let t=new a(dP.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return s3.isArrayBufferView(e)||s3.isArrayBuffer(e)?e.byteLength:(s3.isURLSearchParams(e)&&(e+=""),s3.isString(e))?(await u(e)).byteLength:void 0},_=async(e,t)=>{let n=s3.toFiniteNumber(e.getContentLength());return null==n?b(t):n};return async e=>{let t,{url:n,method:o,data:d,signal:c,cancelToken:u,timeout:g,onDownloadProgress:F,onUploadProgress:v,responseType:y,headers:w,withCredentials:k="same-origin",fetchOptions:E,maxContentLength:x,maxBodyLength:M,maxRedirects:L}=le(e),A=s3.isNumber(x)&&x>-1,C=s3.isNumber(M)&&M>-1,D=r||fetch;y=y?(y+"").toLowerCase():"text";let T=((e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;let n=new AbortController,o=!1,i=function(e){if(!o){o=!0,a();let t=e instanceof Error?e:this.reason;n.abort(t instanceof df?t:new dV(t instanceof Error?t.message:t))}},r=t&&setTimeout(()=>{r=null,i(new df(`timeout of ${t}ms exceeded`,df.ETIMEDOUT))},t),a=()=>{e&&(r&&clearTimeout(r),r=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(i):e.removeEventListener("abort",i)}),e=null)};e.forEach(e=>{if(!o){if(e.aborted)return void i.call(e);e.addEventListener("abort",i,{once:!0})}});let{signal:s}=n;return s.unsubscribe=()=>s3.asap(a),s})([c,u&&u.toAbortSignal()],g),S=null,O=T&&T.unsubscribe&&(()=>{T.unsubscribe()}),I=null,Y=()=>new df("Request body larger than maxBodyLength limit",df.ERR_BAD_REQUEST,e,S);try{var R,B;let r,c,u,g,P=(c="auth",s3.hasOwnProp(e,c)?e[c]:void 0);if(P){let e=s3.getSafeProp(P,"username")||"",t=s3.getSafeProp(P,"password")||"";r={username:e,password:t}}if(u=(R=n).indexOf("://"),g=R,-1!==u&&(g=g.slice(u+3)),g.includes("@")||g.includes(":")){let e=new URL(n,dP.origin);if(!r&&(e.username||e.password)){let t=lh(e.username),n=lh(e.password);r={username:t,password:n}}(e.username||e.password)&&(e.username="",e.password="",n=e.href)}if(r){let e;w.delete("authorization"),w.set("Authorization","Basic "+btoa((e=(r.username||"")+":"+(r.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(B=n,t="string"==typeof B?B.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),i=e.slice(n+1);if(/;base64/i.test(o))return t(i);let r=0;for(let e=0,t=i.length;e<t;e++){let n=i.charCodeAt(e);if(37===n&&ls(i,e,t))r+=1,e+=2;else if(n<128)r+=1;else if(n<2048)r+=2;else if(n>=55296&&n<=56319&&e+1<t){let t=i.charCodeAt(e+1);t>=56320&&t<=57343?(r+=4,e++):r+=3}else r+=3}return r})(-1===t?B:B.slice(0,t),lm)>x)throw new df("maxContentLength size of "+x+" exceeded",df.ERR_BAD_RESPONSE,e,S)}if(C&&"get"!==o&&"head"!==o){let e=await b(d);if("number"==typeof e&&isFinite(e)&&(t=e,e>M))throw Y()}let N=C&&(s3.isReadableStream(d)||s3.isStream(d)),j=(e,t,n)=>lr(e,65536,e=>{if(C&&e>M)throw I=Y();t&&t(e)},n);if(f&&"get"!==o&&"head"!==o&&(v||N)){if(t=null==t?await _(w,d):t,0!==t||N){let e,o=new a(n,{method:"POST",body:d,duplex:"half"});if(s3.isFormData(d)&&(e=o.headers.get("content-type"))&&w.setContentType(e),o.body){let[e,n]=v&&d0(t,dZ(d1(v)))||[];d=j(o.body,e,n)}}}else if(N&&!l&&m&&"get"!==o&&"head"!==o)d=j(d);else if(N&&l&&!f&&"get"!==o&&"head"!==o)throw new df("Stream request bodies are not supported by the current fetch implementation",df.ERR_NOT_SUPPORT,e,S);s3.isString(k)||(k=k?"include":"omit");let H=l&&"credentials"in a.prototype;if(s3.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 z=null==E?E:Object.assign(Object.create(null),E);z&&(delete z.body,delete z.headers,delete z.method,delete z.signal,delete z.duplex,delete z.credentials);let U=Object.assign(Object.create(null),z,{signal:T,method:o.toUpperCase(),headers:dt(w.normalize()),body:d,duplex:"half",credentials:H?k:void 0});l&&(s3.forEach(lu,(e,t)=>{void 0===U[t]&&(U[t]=e)}),void 0===U.signal&&(U.signal=null),void 0===U.body&&(U.body=null)),0===L&&(U.redirect="manual",z&&(z.redirect="manual")),S=l&&new a(n,U);let $=await (l?D(S,z):D(n,U)),W=dl.from($.headers);if(A){let t=s3.toFiniteNumber(W.getContentLength());if(null!=t&&t>x)throw new df("maxContentLength size of "+x+" exceeded",df.ERR_BAD_RESPONSE,e,S)}let V=h&&("stream"===y||"response"===y);if(h&&$.body&&(F||A||V&&O)){let t={};["status","statusText","headers"].forEach(e=>{t[e]=$[e]});let n=s3.toFiniteNumber(W.getContentLength()),[o,i]=F&&d0(n,dZ(d1(F),!0))||[];$=new s(lr($.body,65536,t=>{if(A&&t>x)throw new df("maxContentLength size of "+x+" exceeded",df.ERR_BAD_RESPONSE,e,S);o&&o(t)},()=>{i&&i(),O&&O()}),t)}y=y||"text";let q=await p[s3.findKey(p,y)||"text"]($,e);if(A&&!h&&!V){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 i?new i().encode(q).byteLength:q.length)),"number"==typeof t&&t>x)throw new df("maxContentLength size of "+x+" exceeded",df.ERR_BAD_RESPONSE,e,S)}return!V&&O&&O(),await new Promise((t,n)=>{dq(t,n,{data:q,headers:dl.from($.headers),status:$.status,statusText:$.statusText,config:e,request:S})})}catch(t){if(O&&O(),T&&T.aborted&&T.reason instanceof df){let n=T.reason;throw n.config=e,S&&(n.request=S),t!==n&&Object.defineProperty(n,"cause",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),n}if(I)throw S&&!I.request&&(I.request=S),I;if(t instanceof df)throw S&&!t.request&&(t.request=S),t;if(t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message)){let n=new df("Network Error",df.ERR_NETWORK,e,S,t&&t.response);throw Object.defineProperty(n,"cause",{__proto__:null,value:t.cause||t,writable:!0,enumerable:!1,configurable:!0}),n}throw df.from(t,t&&t.code,e,S,t&&t.response)}}},l_=new Map,lg=e=>{let t=e&&e.env||{},{fetch:n,Request:o,Response:i}=t,r=[o,i,n],a=r.length,s,d,l=l_;for(;a--;)s=r[a],void 0===(d=l.get(s))&&l.set(s,d=a?new Map:lb(t)),l=d;return d};lg();let lF={http:null,xhr:lt,fetch:{get:lg}};s3.forEach(lF,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch(e){}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});let lv=e=>`- ${e}`,ly=e=>s3.isFunction(e)||null===e||!1===e,lw=function(e,t){let n,o,{length:i}=e=s3.isArray(e)?e:[e],r={};for(let a=0;a<i;a++){let i;if(o=n=e[a],!ly(n)&&void 0===(o=lF[(i=String(n)).toLowerCase()]))throw new df(`Unknown adapter '${i}'`);if(o&&(s3.isFunction(o)||(o=o.get(t))))break;r[i||"#"+a]=o}if(!o){let e=Object.entries(r).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));throw new df("There is no suitable adapter to dispatch the request "+(i?e.length>1?"since :\n"+e.map(lv).join("\n"):" "+lv(e[0]):"as no adapter specified"),df.ERR_NOT_SUPPORT)}return o};function lk(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new dV(null,e)}function lE(e){let t=s3.toSafeFlatObject(e);return lk(t),t.headers=dl.from(s3.getSafeProp(t,"headers")),t.data=d$.call(t,t.transformRequest),-1!==["post","put","patch"].indexOf(t.method)&&t.headers.setContentType("application/x-www-form-urlencoded",!1),lw(t.adapter||dU.adapter,t)(t).then(function(e){lk(t),t.response=e;try{e.data=d$.call(t,t.transformResponse,e)}finally{delete t.response}return e.headers=dl.from(e.headers),e},function(e){if(!dW(e)&&(lk(t),e&&e.response)){t.response=e.response;try{e.response.data=d$.call(t,t.transformResponse,e.response)}finally{delete t.response}e.response.headers=dl.from(e.response.headers)}return Promise.reject(e)})}let lx={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{lx[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});let lM={};lx.transitional=function(e,t,n){function o(e,t){return"[Axios v1.20.0] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,i,r)=>{if(!1===e)throw new df(o(i," has been removed"+(t?" in "+t:"")),df.ERR_DEPRECATED);return t&&!lM[i]&&(lM[i]=!0,console.warn(o(i," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,i,r)}},lx.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};let lL=function(e,t,n){if("object"!=typeof e||null===e)throw new df("options must be an object",df.ERR_BAD_OPTION_VALUE);let o=Object.keys(e),i=o.length;for(;i-- >0;){let r=o[i],a=Object.prototype.hasOwnProperty.call(t,r)?t[r]:void 0;if(a){let t=e[r],n=void 0===t||a(t,r,e);if(!0!==n)throw new df("option "+r+" must be "+n,df.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new df("Unknown option "+r,df.ERR_BAD_OPTION)}};class lA{constructor(e){this.defaults=e||{},this.interceptors={request:new dA,response:new dA}}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),i=-1===n?"":o.slice(n+1);String(e.stack).endsWith(i)||(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:i,paramsSerializer:r,headers:a}=t=d7(this.defaults,t);void 0!==i&&lL(i,{silentJSONParsing:lx.transitional(lx.boolean),forcedJSONParsing:lx.transitional(lx.boolean),clarifyTimeoutError:lx.transitional(lx.boolean),legacyInterceptorReqResOrdering:lx.transitional(lx.boolean),advertiseZstdAcceptEncoding:lx.transitional(lx.boolean),validateStatusUndefinedResolves:lx.transitional(lx.boolean)},!1),null!=r&&(s3.isFunction(r)?t.paramsSerializer={serialize:r}:lL(r,{encode:lx.function,serialize:lx.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),lL(t,{baseUrl:lx.spelling("baseURL"),withXsrfToken:lx.spelling("withXSRFToken")},!0),t.method=(s3.getSafeProp(t,"method")||s3.getSafeProp(this.defaults,"method")||"get").toLowerCase();let s=a&&s3.merge(a.common,a[t.method]);a&&s3.forEach(dH.concat("common"),e=>{delete a[e]}),t.headers=dl.concat(s,a);let d=[],l=!0;this.interceptors.request.forEach(function(e){if("function"==typeof e.runWhen&&!1===e.runWhen(t))return;l=l&&e.synchronous;let n=t.transitional||dC;n&&n.legacyInterceptorReqResOrdering?d.unshift(e.fulfilled,e.rejected):d.push(e.fulfilled,e.rejected)});let c=[];this.interceptors.response.forEach(function(e){c.push(e.fulfilled,e.rejected)});let m=0;if(!l){let e=[lE.bind(this),void 0];for(e.unshift(...d),e.push(...c),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);s3.isThenable(o)&&(n=Promise.resolve(o).then(()=>lE.call(this,u)))}catch(e){n=Promise.reject(e)}break}}if(!n)try{n=lE.call(this,u)}catch(e){n=Promise.reject(e)}for(m=0,o=c.length;m<o;)n=n.then(c[m++],c[m++]);return n}getUri(e){return dk(d3((e=d7(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls,e),e.params,e.paramsSerializer)}}s3.forEach(["delete","get","head","options"],function(e){lA.prototype[e]=function(t,n){return this.request(d7(n||{},{method:e,url:t,data:n&&s3.hasOwnProp(n,"data")?n.data:void 0}))}}),s3.forEach(["post","put","patch","query"],function(e){function t(t){return function(n,o,i){return this.request(d7(i||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:o}))}}lA.prototype[e]=t(),"query"!==e&&(lA.prototype[e+"Form"]=t(!0))});let lC=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,i){n.reason||(n.reason=new dV(e,o,i),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}}},lD={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(lD).forEach(([e,t])=>{void 0===lD[t]&&(lD[t]=e)});let lT=function e(t){let n=new lA(t),o=sh(lA.prototype.request,n);return s3.extend(o,lA.prototype,n,{allOwnKeys:!0}),s3.extend(o,n,null,{allOwnKeys:!0}),o.create=function(n){return e(d7(t,n))},o}(dU);lT.Axios=lA,lT.CanceledError=dV,lT.CancelToken=lC,lT.isCancel=dW,lT.VERSION="1.20.0",lT.toFormData=dg,lT.AxiosError=df,lT.Cancel=lT.CanceledError,lT.all=function(e){return Promise.all(e)},lT.spread=function(e){return function(t){return e.apply(null,t)}},lT.isAxiosError=function(e){return s3.isObject(e)&&!0===e.isAxiosError},lT.mergeConfig=d7,lT.AxiosHeaders=dl,lT.formToJSON=e=>dj(s3.isHTMLForm(e)?new FormData(e):e),lT.getAdapter=lw,lT.HttpStatusCode=lD,lT.default=lT;class lS{constructor(e){this.httpClient=e}startTunnel(e,t){return this.httpClient.request({method:"POST",url:l0`gateway/tunnel`,data:e,options:t})}stopTunnel(e,t){return this.httpClient.request({method:"DELETE",url:l0`gateway/tunnel`,data:e,options:t})}getAllActiveTunnelInfos(e,t){return this.httpClient.request({method:"GET",url:l0`gateway/tunnel/${e}`,options:t})}getGatewayActiveTunnelInfos(e,t,n){return this.httpClient.request({method:"GET",url:l0`gateway/tunnel/${e}/${t}`,options:n})}getActiveTunnelInfo(e,t,n,o,i){return this.httpClient.request({method:"GET",url:l0`gateway/tunnel/${e}/${t}/${n}/${o}`,options:i})}}class lO{constructor(e){this.httpClient=e}doProtocolAssetDiscovery(e,t,n){return this.httpClient.request({method:"GET",url:l0`agent/assetDiscovery/${e}`,queryParams:t,options:n})}doProtocolAssetImport(e,t,n,o){return this.httpClient.request({method:"POST",url:l0`agent/assetImport/${e}`,queryParams:n,data:t,options:o})}doProtocolInstanceDiscovery(e,t,n){return this.httpClient.request({method:"GET",url:l0`agent/instanceDiscovery/${e}`,queryParams:t,options:n})}}class lI{constructor(e){this.httpClient=e}createAlarm(e,t,n){return this.httpClient.request({method:"POST",url:l0`alarm`,queryParams:t,data:e,options:n})}getAlarms(e,t){return this.httpClient.request({method:"GET",url:l0`alarm`,queryParams:e,options:t})}removeAlarms(e,t){return this.httpClient.request({method:"DELETE",url:l0`alarm`,data:e,options:t})}setAssetLinks(e,t){return this.httpClient.request({method:"PUT",url:l0`alarm/assets`,data:e,options:t})}getAlarm(e,t){return this.httpClient.request({method:"GET",url:l0`alarm/${e}`,options:t})}removeAlarm(e,t){return this.httpClient.request({method:"DELETE",url:l0`alarm/${e}`,options:t})}updateAlarm(e,t,n){return this.httpClient.request({method:"PUT",url:l0`alarm/${e}`,data:t,options:n})}getAssetLinks(e,t,n){return this.httpClient.request({method:"GET",url:l0`alarm/${e}/assets`,queryParams:t,options:n})}}class lY{constructor(e){this.httpClient=e}updateCurrentUserLocale(e,t){return this.httpClient.request({method:"PUT",url:l0`user/locale`,data:e,options:t})}query(e,t){return this.httpClient.request({method:"POST",url:l0`user/query`,data:e,options:t})}requestPasswordResetCurrent(e){return this.httpClient.request({method:"PUT",url:l0`user/request-password-reset`,options:e})}updatePasswordCurrent(e,t){return this.httpClient.request({method:"PUT",url:l0`user/reset-password`,data:e,options:t})}updateCurrent(e,t){return this.httpClient.request({method:"PUT",url:l0`user/update`,data:e,options:t})}getCurrent(e){return this.httpClient.request({method:"GET",url:l0`user/user`,options:e})}getCurrentUserRealmRoles(e){return this.httpClient.request({method:"GET",url:l0`user/userRealmRoles`,options:e})}getCurrentUserClientRoles(e,t){return this.httpClient.request({method:"GET",url:l0`user/userRoles/${e}`,options:t})}disconnectUserSession(e,t,n){return this.httpClient.request({method:"DELETE",url:l0`user/${e}/disconnect/${t}`,options:n})}requestPasswordReset(e,t,n){return this.httpClient.request({method:"PUT",url:l0`user/${e}/request-password-reset/${t}`,options:n})}updatePassword(e,t,n,o){return this.httpClient.request({method:"PUT",url:l0`user/${e}/reset-password/${t}`,data:n,options:o})}resetSecret(e,t,n){return this.httpClient.request({method:"GET",url:l0`user/${e}/reset-secret/${t}`,options:n})}updateRoles(e,t,n){return this.httpClient.request({method:"PUT",url:l0`user/${e}/roles`,data:t,options:n})}getUserRealmRoles(e,t,n){return this.httpClient.request({method:"GET",url:l0`user/${e}/userRealmRoles/${t}`,options:n})}updateUserRealmRoles(e,t,n,o){return this.httpClient.request({method:"PUT",url:l0`user/${e}/userRealmRoles/${t}`,data:n,options:o})}getUserClientRoles(e,t,n,o){return this.httpClient.request({method:"GET",url:l0`user/${e}/userRoles/${t}/${n}`,options:o})}updateUserClientRoles(e,t,n,o,i){return this.httpClient.request({method:"PUT",url:l0`user/${e}/userRoles/${t}/${n}`,data:o,options:i})}getUserSessions(e,t,n){return this.httpClient.request({method:"GET",url:l0`user/${e}/userSessions/${t}`,options:n})}create(e,t,n){return this.httpClient.request({method:"POST",url:l0`user/${e}/users`,data:t,options:n})}update(e,t,n){return this.httpClient.request({method:"PUT",url:l0`user/${e}/users`,data:t,options:n})}delete(e,t,n){return this.httpClient.request({method:"DELETE",url:l0`user/${e}/users/${t}`,options:n})}getClientRoles(e,t,n){return this.httpClient.request({method:"GET",url:l0`user/${e}/${t}/roles`,options:n})}updateClientRoles(e,t,n,o){return this.httpClient.request({method:"PUT",url:l0`user/${e}/${t}/roles`,data:n,options:o})}get(e,t,n){return this.httpClient.request({method:"GET",url:l0`user/${e}/${t}`,options:n})}}class lR{constructor(e){this.httpClient=e}deleteConnections(e,t){return this.httpClient.request({method:"DELETE",url:l0`gateway/connection`,queryParams:e,options:t})}getConnections(e){return this.httpClient.request({method:"GET",url:l0`gateway/connection`,options:e})}deleteConnection(e,t){return this.httpClient.request({method:"DELETE",url:l0`gateway/connection/${e}`,options:t})}getConnection(e,t){return this.httpClient.request({method:"GET",url:l0`gateway/connection/${e}`,options:t})}setConnection(e,t,n){return this.httpClient.request({method:"PUT",url:l0`gateway/connection/${e}`,data:t,options:n})}getConnectionStatus(e,t){return this.httpClient.request({method:"GET",url:l0`gateway/status/${e}`,options:t})}}class lB{constructor(e){this.httpClient=e}getServices(e,t){return this.httpClient.request({method:"GET",url:l0`service`,queryParams:e,options:t})}registerService(e,t){return this.httpClient.request({method:"POST",url:l0`service`,data:e,options:t})}getGlobalServices(e){return this.httpClient.request({method:"GET",url:l0`service/global`,options:e})}registerGlobalService(e,t){return this.httpClient.request({method:"POST",url:l0`service/global`,data:e,options:t})}deregisterService(e,t,n){return this.httpClient.request({method:"DELETE",url:l0`service/${e}/${t}`,options:n})}getService(e,t,n){return this.httpClient.request({method:"GET",url:l0`service/${e}/${t}`,options:n})}heartbeat(e,t,n){return this.httpClient.request({method:"PUT",url:l0`service/${e}/${t}`,options:n})}}class lP{constructor(e){this.httpClient=e}register(e,t){return this.httpClient.request({method:"POST",url:l0`console/register`,data:e,options:t})}}class lN{constructor(e){this.httpClient=e}getAssetDescriptors(e,t){return this.httpClient.request({method:"GET",url:l0`model/assetDescriptors`,queryParams:e,options:t})}getAssetInfo(e,t,n){return this.httpClient.request({method:"GET",url:l0`model/assetInfo/${e}`,queryParams:t,options:n})}getAssetInfos(e,t){return this.httpClient.request({method:"GET",url:l0`model/assetInfos`,queryParams:e,options:t})}getValueDescriptorSchema(e,t){return this.httpClient.request({method:"GET",url:l0`model/getValueDescriptorSchema`,queryParams:e,options:t})}getMetaItemDescriptors(e,t){return this.httpClient.request({method:"GET",url:l0`model/metaItemDescriptors`,queryParams:e,options:t})}getValueDescriptors(e,t){return this.httpClient.request({method:"GET",url:l0`model/valueDescriptors`,queryParams:e,options:t})}}class lj{constructor(e){this.httpClient=e}getApps(e){return this.httpClient.request({method:"GET",url:l0`apps`,options:e})}getConsoleConfig(e){return this.httpClient.request({method:"GET",url:l0`apps/consoleConfig`,options:e})}getAppInfos(e){return this.httpClient.request({method:"GET",url:l0`apps/info`,options:e})}}class lH{constructor(e){this.httpClient=e}create(e,t){return this.httpClient.request({method:"POST",url:l0`asset`,data:e,options:t})}delete(e,t){return this.httpClient.request({method:"DELETE",url:l0`asset`,queryParams:e,options:t})}writeAttributeValues(e,t){return this.httpClient.request({method:"PUT",url:l0`asset/attributes`,data:e,options:t})}writeAttributeEvents(e,t){return this.httpClient.request({method:"PUT",url:l0`asset/attributes/timestamp`,data:e,options:t})}queryCount(e,t){return this.httpClient.request({method:"POST",url:l0`asset/count`,data:e,options:t})}updateNoneParent(e,t){return this.httpClient.request({method:"DELETE",url:l0`asset/parent`,queryParams:e,options:t})}getPartial(e,t){return this.httpClient.request({method:"GET",url:l0`asset/partial/${e}`,options:t})}queryAssets(e,t){return this.httpClient.request({method:"POST",url:l0`asset/query`,data:e,options:t})}queryAssetTree(e,t){return this.httpClient.request({method:"POST",url:l0`asset/tree`,data:e,options:t})}getCurrentUserAssets(e){return this.httpClient.request({method:"GET",url:l0`asset/user/current`,options:e})}createUserAssetLinks(e,t){return this.httpClient.request({method:"POST",url:l0`asset/user/link`,data:e,options:t})}getUserAssetLinks(e,t){return this.httpClient.request({method:"GET",url:l0`asset/user/link`,queryParams:e,options:t})}deleteUserAssetLinks(e,t){return this.httpClient.request({method:"POST",url:l0`asset/user/link/delete`,data:e,options:t})}deleteAllUserAssetLinks(e,t,n){return this.httpClient.request({method:"DELETE",url:l0`asset/user/link/${e}/${t}`,options:n})}deleteUserAssetLink(e,t,n,o){return this.httpClient.request({method:"DELETE",url:l0`asset/user/link/${e}/${t}/${n}`,options:o})}get(e,t){return this.httpClient.request({method:"GET",url:l0`asset/${e}`,options:t})}update(e,t,n){return this.httpClient.request({method:"PUT",url:l0`asset/${e}`,data:t,options:n})}writeAttributeValue$PUT$asset_assetId_attribute_attributeName(e,t,n,o){return this.httpClient.request({method:"PUT",url:l0`asset/${e}/attribute/${t}`,data:n,options:o})}writeAttributeValue$PUT$asset_assetId_attribute_attributeName_timestamp(e,t,n,o,i){return this.httpClient.request({method:"PUT",url:l0`asset/${e}/attribute/${t}/${n}`,data:o,options:i})}updateParent(e,t,n){return this.httpClient.request({method:"PUT",url:l0`asset/${e}/child`,queryParams:t,options:n})}}class lz{constructor(e){this.httpClient=e}getSettings(e){return this.httpClient.request({method:"GET",url:l0`map`,options:e})}saveSettings(e,t){return this.httpClient.request({method:"PUT",url:l0`map`,data:e,options:t})}deleteMap(e){return this.httpClient.request({method:"DELETE",url:l0`map/deleteMap`,options:e})}getCustomMapInfo(e){return this.httpClient.request({method:"GET",url:l0`map/getCustomMapInfo`,options:e})}getTile(e,t,n,o){return this.httpClient.request({method:"GET",url:l0`map/tile/${e}/${t}/${n}`,options:o})}uploadMap(e,t){return this.httpClient.request({method:"POST",url:l0`map/upload`,queryParams:e,options:t})}}class lU{constructor(e){this.httpClient=e}createGlobalRuleset(e,t){return this.httpClient.request({method:"POST",url:l0`rules`,data:e,options:t})}getGlobalRulesets(e,t){return this.httpClient.request({method:"GET",url:l0`rules`,queryParams:e,options:t})}createAssetRuleset(e,t){return this.httpClient.request({method:"POST",url:l0`rules/asset`,data:e,options:t})}getAssetRulesets(e,t,n){return this.httpClient.request({method:"GET",url:l0`rules/asset/for/${e}`,queryParams:t,options:n})}deleteAssetRuleset(e,t){return this.httpClient.request({method:"DELETE",url:l0`rules/asset/${e}`,options:t})}getAssetRuleset(e,t){return this.httpClient.request({method:"GET",url:l0`rules/asset/${e}`,options:t})}updateAssetRuleset(e,t,n){return this.httpClient.request({method:"PUT",url:l0`rules/asset/${e}`,data:t,options:n})}getAssetGeofences(e,t){return this.httpClient.request({method:"GET",url:l0`rules/geofences/${e}`,options:t})}getAssetEngineInfo(e,t){return this.httpClient.request({method:"GET",url:l0`rules/info/asset/${e}`,options:t})}getGlobalEngineInfo(e){return this.httpClient.request({method:"GET",url:l0`rules/info/global`,options:e})}getRealmEngineInfo(e,t){return this.httpClient.request({method:"GET",url:l0`rules/info/realm/${e}`,options:t})}createRealmRuleset(e,t){return this.httpClient.request({method:"POST",url:l0`rules/realm`,data:e,options:t})}getRealmRulesets(e,t,n){return this.httpClient.request({method:"GET",url:l0`rules/realm/for/${e}`,queryParams:t,options:n})}deleteRealmRuleset(e,t){return this.httpClient.request({method:"DELETE",url:l0`rules/realm/${e}`,options:t})}getRealmRuleset(e,t){return this.httpClient.request({method:"GET",url:l0`rules/realm/${e}`,options:t})}updateRealmRuleset(e,t,n){return this.httpClient.request({method:"PUT",url:l0`rules/realm/${e}`,data:t,options:n})}deleteGlobalRuleset(e,t){return this.httpClient.request({method:"DELETE",url:l0`rules/${e}`,options:t})}getGlobalRuleset(e,t){return this.httpClient.request({method:"GET",url:l0`rules/${e}`,options:t})}updateGlobalRuleset(e,t,n){return this.httpClient.request({method:"PUT",url:l0`rules/${e}`,data:t,options:n})}}class l${constructor(e){this.httpClient=e}getHealthStatus(e){return this.httpClient.request({method:"GET",url:l0`health`,options:e})}getInfo(e){return this.httpClient.request({method:"GET",url:l0`info`,options:e})}}class lW{constructor(e){this.httpClient=e}getConfig(e){return this.httpClient.request({method:"GET",url:l0`syslog/config`,options:e})}updateConfig(e,t){return this.httpClient.request({method:"PUT",url:l0`syslog/config`,data:e,options:t})}clearEvents(e){return this.httpClient.request({method:"DELETE",url:l0`syslog/event`,options:e})}getEvents(e,t){return this.httpClient.request({method:"GET",url:l0`syslog/event`,queryParams:e,options:t})}}class lV{constructor(e){this.httpClient=e}getNotifications(e,t){return this.httpClient.request({method:"GET",url:l0`notification`,queryParams:e,options:t})}removeNotifications(e,t){return this.httpClient.request({method:"DELETE",url:l0`notification`,queryParams:e,options:t})}sendNotification(e,t){return this.httpClient.request({method:"POST",url:l0`notification/alert`,data:e,options:t})}getNotificationsCount(e,t){return this.httpClient.request({method:"GET",url:l0`notification/count`,queryParams:e,options:t})}removeNotification(e,t){return this.httpClient.request({method:"DELETE",url:l0`notification/${e}`,options:t})}notificationAcknowledged(e,t,n,o){return this.httpClient.request({method:"PUT",url:l0`notification/${e}/acknowledged`,queryParams:n,data:t,options:o})}notificationDelivered(e,t,n){return this.httpClient.request({method:"PUT",url:l0`notification/${e}/delivered`,queryParams:t,options:n})}}class lq{constructor(e){this.httpClient=e}getManagerConfig(e){return this.httpClient.request({method:"GET",url:l0`configuration/manager`,options:e})}update(e,t){return this.httpClient.request({method:"PUT",url:l0`configuration/manager`,data:e,options:t})}imageUpload(e,t,n){return this.httpClient.request({method:"POST",url:l0`configuration/manager/image`,queryParams:t,data:e,options:n})}getManagerConfigImage(e,t){return this.httpClient.request({method:"GET",url:l0`configuration/manager/image/${e}`,options:t})}}class lG{constructor(e){this.httpClient=e}createProvisioningConfig(e,t){return this.httpClient.request({method:"POST",url:l0`provisioning`,data:e,options:t})}getProvisioningConfigs(e){return this.httpClient.request({method:"GET",url:l0`provisioning`,options:e})}deleteProvisioningConfig(e,t){return this.httpClient.request({method:"DELETE",url:l0`provisioning/${e}`,options:t})}updateProvisioningConfig(e,t,n){return this.httpClient.request({method:"PUT",url:l0`provisioning/${e}`,data:t,options:n})}}class lK{constructor(e){this.httpClient=e}create(e,t){return this.httpClient.request({method:"POST",url:l0`realm`,data:e,options:t})}getAll(e){return this.httpClient.request({method:"GET",url:l0`realm`,options:e})}getAccessible(e){return this.httpClient.request({method:"GET",url:l0`realm/accessible`,options:e})}delete(e,t){return this.httpClient.request({method:"DELETE",url:l0`realm/${e}`,options:t})}get(e,t){return this.httpClient.request({method:"GET",url:l0`realm/${e}`,options:t})}update(e,t,n){return this.httpClient.request({method:"PUT",url:l0`realm/${e}`,data:t,options:n})}}class lJ{constructor(e){this.httpClient=e}getDatapointExport(e,t){return this.httpClient.request({method:"GET",url:l0`asset/datapoint/export`,queryParams:e,options:t})}getDatapointPeriod(e,t){return this.httpClient.request({method:"GET",url:l0`asset/datapoint/periods`,queryParams:e,options:t})}getDatapoints(e,t,n,o){return this.httpClient.request({method:"POST",url:l0`asset/datapoint/${e}/${t}`,data:n,options:o})}}class lX{constructor(e){this.httpClient=e}getAllNodeDefinitions(e){return this.httpClient.request({method:"GET",url:l0`flow`,options:e})}getNodeDefinition(e,t){return this.httpClient.request({method:"GET",url:l0`flow/${e}`,options:t})}getAllNodeDefinitionsByType(e,t){return this.httpClient.request({method:"GET",url:l0`flow/${e}`,options:t})}}class lQ{constructor(e){this.httpClient=e}getPredictedDatapoints(e,t,n,o){return this.httpClient.request({method:"POST",url:l0`asset/predicted/${e}/${t}`,data:n,options:o})}writePredictedDatapoints(e,t,n,o){return this.httpClient.request({method:"PUT",url:l0`asset/predicted/${e}/${t}`,data:n,options:o})}}class lZ{constructor(e){this.httpClient=e}create(e,t){return this.httpClient.request({method:"POST",url:l0`dashboard`,data:e,options:t})}update(e,t){return this.httpClient.request({method:"PUT",url:l0`dashboard`,data:e,options:t})}getAllRealmDashboards(e,t){return this.httpClient.request({method:"GET",url:l0`dashboard/all/${e}`,options:t})}query(e,t){return this.httpClient.request({method:"POST",url:l0`dashboard/query`,data:e,options:t})}delete(e,t,n){return this.httpClient.request({method:"DELETE",url:l0`dashboard/${e}/${t}`,options:n})}get(e,t,n){return this.httpClient.request({method:"GET",url:l0`dashboard/${e}/${t}`,options:n})}}function l0(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 l1{constructor(e,t=lT.create()){this._gatewayServiceResource=new l4(e,t),this._agentResource=new l5(e,t),this._alarmResource=new l6(e,t),this._userResource=new l3(e,t),this._gatewayClientResource=new l8(e,t),this._externalServiceResource=new l7(e,t),this._consoleResource=new l9(e,t),this._assetModelResource=new ce(e,t),this._appResource=new ct(e,t),this._assetResource=new cn(e,t),this._mapResource=new co(e,t),this._rulesResource=new ci(e,t),this._statusResource=new cr(e,t),this._syslogResource=new ca(e,t),this._notificationResource=new cs(e,t),this._configurationResource=new cd(e,t),this._provisioningResource=new cl(e,t),this._realmResource=new cc(e,t),this._assetDatapointResource=new cm(e,t),this._flowResource=new cu(e,t),this._assetPredictedDatapointResource=new cf(e,t),this._dashboardResource=new ch(e,t),this._assetResource=new cn(e,t)}get GatewayServiceResource(){return this._gatewayServiceResource}get AgentResource(){return this._agentResource}get AlarmResource(){return this._alarmResource}get UserResource(){return this._userResource}get GatewayClientResource(){return this._gatewayClientResource}get ExternalServiceResource(){return this._externalServiceResource}get ConsoleResource(){return this._consoleResource}get AssetModelResource(){return this._assetModelResource}get AppResource(){return this._appResource}get AssetResource(){return this._assetResource}get MapResource(){return this._mapResource}get RulesResource(){return this._rulesResource}get StatusResource(){return this._statusResource}get SyslogResource(){return this._syslogResource}get NotificationResource(){return this._notificationResource}get ConfigurationResource(){return this._configurationResource}get ProvisioningResource(){return this._provisioningResource}get RealmResource(){return this._realmResource}get AssetDatapointResource(){return this._assetDatapointResource}get FlowResource(){return this._flowResource}get AssetPredictedDatapointResource(){return this._assetPredictedDatapointResource}get DashboardResource(){return this._dashboardResource}}class l2{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 l4 extends lS{constructor(e,t=lT.create()){t.defaults.baseURL=e,super(new l2(t))}}class l5 extends lO{constructor(e,t=lT.create()){t.defaults.baseURL=e,super(new l2(t))}}class l6 extends lI{constructor(e,t=lT.create()){t.defaults.baseURL=e,super(new l2(t))}}class l3 extends lY{constructor(e,t=lT.create()){t.defaults.baseURL=e,super(new l2(t))}}class l8 extends lR{constructor(e,t=lT.create()){t.defaults.baseURL=e,super(new l2(t))}}class l7 extends lB{constructor(e,t=lT.create()){t.defaults.baseURL=e,super(new l2(t))}}class l9 extends lP{constructor(e,t=lT.create()){t.defaults.baseURL=e,super(new l2(t))}}class ce extends lN{constructor(e,t=lT.create()){t.defaults.baseURL=e,super(new l2(t))}}class ct extends lj{constructor(e,t=lT.create()){t.defaults.baseURL=e,super(new l2(t))}}class cn extends lH{constructor(e,t=lT.create()){t.defaults.baseURL=e,super(new l2(t))}}class co extends lz{constructor(e,t=lT.create()){t.defaults.baseURL=e,super(new l2(t))}}class ci extends lU{constructor(e,t=lT.create()){t.defaults.baseURL=e,super(new l2(t))}}class cr extends l${constructor(e,t=lT.create()){t.defaults.baseURL=e,super(new l2(t))}}class ca extends lW{constructor(e,t=lT.create()){t.defaults.baseURL=e,super(new l2(t))}}class cs extends lV{constructor(e,t=lT.create()){t.defaults.baseURL=e,super(new l2(t))}}class cd extends lq{constructor(e,t=lT.create()){t.defaults.baseURL=e,super(new l2(t))}}class cl extends lG{constructor(e,t=lT.create()){t.defaults.baseURL=e,super(new l2(t))}}class cc extends lK{constructor(e,t=lT.create()){t.defaults.baseURL=e,super(new l2(t))}}class cm extends lJ{constructor(e,t=lT.create()){t.defaults.baseURL=e,super(new l2(t))}}class cu extends lX{constructor(e,t=lT.create()){t.defaults.baseURL=e,super(new l2(t))}}class cf extends lQ{constructor(e,t=lT.create()){t.defaults.baseURL=e,super(new l2(t))}}class ch extends lZ{constructor(e,t=lT.create()){t.defaults.baseURL=e,super(new l2(t))}}var cp=n(8183),cb=n.n(cp);lT.isAxiosError;let c_=new class{get api(){return this._client}constructor(){this._axiosInstance=lT.create(),this._axiosInstance.defaults.headers.common["Content-Type"]="application/json",this._axiosInstance.interceptors.request.use(e=>(e.paramsSerializer=e=>cb().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 l1(e,this._axiosInstance)}};var cg=function(e,t,n,o){return new(n||(n=Promise))(function(i,r){function a(e){try{d(o.next(e))}catch(e){r(e)}}function s(e){try{d(o.throw(e))}catch(e){r(e)}}function d(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(a,s)}d((o=o.apply(e,t||[])).next())})};(ey=tx||(tx={})).DISCONNECTED="DISCONNECTED",ey.CONNECTED="CONNECTED",ey.CONNECTING="CONNECTING";let cF="SUBSCRIBED:",cv="UNAUTHORIZED:",cy="TRIGGERED:",cw="EVENT:";class ck{constructor(){this._disconnectRequested=!1,this._reconnectDelayMillis=cE.MIN_RECONNECT_DELAY,this._reconnectTimer=null,this._status=tx.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===tx.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(tx.CONNECTING),this._connectingDeferred=new a9,this._doConnect().then(e=>{if(this._connectingDeferred){let t=this._connectingDeferred;e?(console.debug("Connected to event service: "+this.endpointUrl),this._reconnectDelayMillis=cE.MIN_RECONNECT_DELAY,this._onStatusChanged(tx.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!==tx.DISCONNECTED&&this._doDisconnect())}subscribe(e,t){let n={eventSubscription:e,callback:t,deferred:new a9};return null!=this._pendingSubscription||this._status!==tx.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 cg(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===tx.CONNECTED&&this._doSend(e)}sendEventWithReply(e){return this._status!==tx.CONNECTED?Promise.reject("Not connected"):this._doSendWithReply(e)}subscribeAssetEvents(e,t,n){return cg(this,void 0,void 0,function*(){let o=e&&"string"!=typeof e[0]?e.map(e=>e.id):e,i="AssetEvent"+ck._subscriptionCounter++;if(!this._assetEventPromise){let e;me.authenticated||(e={filterType:"asset",realm:me.displayRealm});let t={eventType:"asset",filter:e};this._assetEventPromise=this.subscribe(t,e=>{this._assetEventCallbackMap.forEach(t=>t(e))})}return this._assetEventCallbackMap.set(i,e=>{let t=e.asset.id;o?o.find(e=>t===e)&&n(e):e.asset.realm===me.displayRealm&&n(e)}),this._assetEventPromise.then(()=>{try{if(o&&t){let e={messageID:"read-assets:"+o.join(",")+":"+i,eventType:"read-assets",assetQuery:{ids:o}};this.sendEventWithReply(e).then(e=>{e.assets&&this._assetEventCallbackMap.has(i)&&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),i&&this.unsubscribe(i),t}return i})})}subscribeAttributeEvents(e,t,n){return cg(this,void 0,void 0,function*(){let o=e&&"string"!=typeof e[0],i=o?e.map(e=>e.id):e,r=o?e:void 0,a="AttributeEvent"+ck._subscriptionCounter++;if(!this._attributeEventPromise){let e;me.authenticated||(e={filterType:"asset",realm:me.displayRealm});let t={eventType:"attribute",filter:e};this._attributeEventPromise=this.subscribe(t,e=>{this._attributeEventCallbackMap.forEach(t=>t(e))})}let s=t=>{let r=t.ref;o?e.forEach(e=>{r.id===e.id&&r.name===e.name&&n(t)}):i?i.find(e=>r.id===e)&&n(t):t.realm===me.displayRealm&&n(t)};return this._attributeEventCallbackMap.set(a,s),this._attributeEventPromise.then(()=>{try{if(t&&i){let e={messageID:"read-assets:"+i.join(",")+":"+a,eventType:"read-assets",assetQuery:{ids:i}};this.sendEventWithReply(e).then(e=>{e.assets&&this._attributeEventCallbackMap.has(a)&&e.assets.forEach(e=>{e.attributes&&Object.entries(e.attributes).forEach(([t,n])=>{(!r||r.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===tx.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===tx.CONNECTED&&this._onStatusChanged(tx.DISCONNECTED),this._pendingSubscription&&(this._queuedSubscriptions.unshift(this._pendingSubscription),this._pendingSubscription=null),this._onStatusChanged(tx.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<cE.MAX_RECONNECT_DELAY&&(this._reconnectDelayMillis=Math.min(cE.MAX_RECONNECT_DELAY,this._reconnectDelayMillis+3e3)))}}ck.MIN_RECONNECT_DELAY=0,ck.MAX_RECONNECT_DELAY=3e4,ck._subscriptionCounter=0;class cE extends ck{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="+me.config.realm;return this._connectDeferred=new a9,(me.authenticated?me.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(cF)){let e=JSON.parse(t.substring(cF.length)),n=this._subscribeDeferred;this._subscribeDeferred=null,n&&n.resolve(e.subscriptionId)}else if(t.startsWith(cv)){let e=JSON.parse(t.substring(cv.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(cy)){let e=JSON.parse(t.substring(cy.length));e.events&&e.events.forEach(t=>{this._onMessageReceived(e.subscriptionId,t)})}else if(t.startsWith(cw)){let e=JSON.parse(t.substring(cw.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 a9,e.subscriptionId||(e.subscriptionId=cE._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=cw+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 a9;return this._repliesDeferred.set(e.messageID,t),this._webSocket.send(cw+JSON.stringify(e)),t.promise}}cE._subscriptionCounter=1;let cx=["__proto__","constructor","prototype"];function cM(e){return!("string"!=typeof e||0===e.length||e.length>128||cx.indexOf(e)>-1||e.indexOf("..")>-1||e.indexOf("\\")>-1||/[?#%:&=;\s]/.test(e)||/[\x00-\x1F\x7F]/.test(e))}function cL(e){return!(!cM(e)||e.indexOf("/")>-1||e.indexOf("@")>-1)}let cA={lng:cL,ns:function(e){return!(!cM(e)||e.indexOf("//")>-1)}};function cC(e){return"string"!=typeof e?e:e.replace(/[\r\n\x00-\x1F\x7F]/g," ")}function cD(){return"function"==typeof XMLHttpRequest||"object"==typeof XMLHttpRequest}let cT=/\{\{(.+?)\}\}/g,cS=/^[/\\]{2}/;function cO(e,t){let n=!1,o=e.replace(cT,(e,o)=>{let i=o.trim();if(cx.indexOf(i)>-1)return e;let r=t[i];if(null==r)return e;let a=cA[i]||cL,s=String(r).split("+");for(let t of s)if(!a(t))return n=!0,e;return s.join("+")});return n||cS.test(o)&&!cS.test(e)?null:o}let cI="u">typeof globalThis?globalThis:"u">typeof global?global:"u">typeof window?window:void 0;"function"==typeof fetch?i=fetch:cI&&"function"==typeof cI.fetch&&(i=cI.fetch);let cY=cD()&&cI?cI.XMLHttpRequest:void 0,cR="function"==typeof ActiveXObject&&cI?cI.ActiveXObject:void 0,cB=["__proto__","constructor","prototype"],cP=(e,t)=>{if(t&&"object"==typeof t){let n="";for(let e of Object.keys(t))cB.indexOf(e)>-1||(n+="&"+encodeURIComponent(e)+"="+encodeURIComponent(t[e]));if(!n)return e;e=e+(-1!==e.indexOf("?")?"&":"?")+n.slice(1)}return e},cN=(e,t,n,o)=>{let r=e=>{if(!e.ok)return n(e.statusText||"Error",{status:e.status});e.text().then(t=>{n(null,{status:e.status,data:t})}).catch(n)};if(o){let i=o(e,t);if(i instanceof Promise)return void i.then(r).catch(n)}"function"==typeof fetch?fetch(e,t).then(r).catch(n):i(e,t).then(r).catch(n)},cj=(e,t,n,o)=>{if("function"==typeof n&&(o=n,n=void 0),o=o||(()=>{}),i&&0!==t.indexOf("file:")){var r=t,a=n,s=o;e.queryStringParams&&(r=cP(r,e.queryStringParams));let i={..."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&&(i["User-Agent"]=`i18next-http-backend (node/${global.process.version}; ${global.process.platform} ${global.process.arch})`),a&&(i["Content-Type"]="application/json");let d="function"==typeof e.requestOptions?e.requestOptions(a):e.requestOptions,l={method:a?"POST":"GET",body:a?e.stringify(a):void 0,headers:i,...e._omitFetchOptions?{}:d},c="function"==typeof e.alternateFetch&&e.alternateFetch.length>=1?e.alternateFetch:void 0;try{cN(r,l,s,c)}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 l[e]}),cN(r,l,s,c),e._omitFetchOptions=!0}catch(e){s(e)}}return}if(cD()||"function"==typeof ActiveXObject){var d=t,l=n,c=o;l&&"object"==typeof l&&(l=cP("",l).slice(1)),e.queryStringParams&&(d=cP(d,e.queryStringParams));try{let t=cY?new cY:new cR("MSXML2.XMLHTTP.3.0");t.open(l?"POST":"GET",d,1),e.crossDomain||t.setRequestHeader("X-Requested-With","XMLHttpRequest"),t.withCredentials=!!e.withCredentials,l&&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))cB.indexOf(e)>-1||t.setRequestHeader(e,n[e]);t.onreadystatechange=()=>{t.readyState>3&&c(t.status>=400?t.statusText:null,{status:t.status,data:t.responseText})},t.send(l)}catch(e){console&&console.log(e)}return}o(Error("No fetch and no xhr implementation found!"))};var cH=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:cj,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,i){var r,a;let s=this.options.loadPath;"function"==typeof this.options.loadPath&&(s=this.options.loadPath(e,n)),(s=(a=r=s)&&"function"==typeof a.then?r:Promise.resolve(r)).then(r=>{if(!r)return i(null,{});let a=cO(r,{lng:e.join("+"),ns:n.join("+")});if(null==a)return i(Error("i18next-http-backend: unsafe lng/ns value — refusing to build request URL for languages=["+e.map(cC).join(", ")+"] namespaces=["+n.map(cC).join(", ")+"]"),!1);this.loadUrl(a,i,t,o)})}loadUrl(e,t,n,o){let i=this.options.parseLoadPayload("string"==typeof n?[n]:n,"string"==typeof o?[o]:o),r=cC(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,i,(e,i)=>{let a,s;if(i&&(i.status>=500&&i.status<600||!i.status))return t("failed loading "+r+"; status code: "+i.status,!0);if(i&&i.status>=400&&i.status<500)return t("failed loading "+r+"; status code: "+i.status,!1);if(!i&&e&&e.message){let n=e.message.toLowerCase();if(["failed","fetch","network","load"].find(e=>n.indexOf(e)>-1))return t("failed loading "+r+": "+cC(e.message),!0)}if(e)return t(e,!1);try{a="string"==typeof i.data?this.options.parse(i.data,n,o):i.data}catch(e){s="failed parsing "+r+" to json"}if(s)return t(s,!1);t(null,a)})}create(e,t,n,o,i){if(!this.options.addPath)return;"string"==typeof e&&(e=[e]);let r=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 l=cO(o,{lng:n,ns:t});if(null==l){a+=1,i&&a===e.length&&i(s,d);return}this.options.request(this.options,l,r,(t,n)=>{a+=1,s.push(t),d.push(n),a===e.length&&"function"==typeof i&&i(s,d)})})}reload(){let{backendConnector:e,languageUtils:t,logger:n}=this.services,o=e.language;if(o&&"cimode"===o.toLowerCase())return;let i=[],r=e=>{t.toResolveHierarchy(e).forEach(e=>{0>i.indexOf(e)&&i.push(e)})};r(o),this.allOptions.preload&&this.allOptions.preload.forEach(e=>r(e)),i.forEach(t=>{this.allOptions.ns.forEach(o=>{e.read(t,o,"read",null,null,(i,r)=>{i&&n.warn(`loading namespace ${o} for language ${t} failed`,i),!i&&r&&n.log(`loaded namespace ${o} for language ${t}`,r),e.loaded(`${t}|${o}`,i,r)})})})}};cH.type="backend";class cz extends i9{constructor(e){if(super(e),this.it=nf,2!==e.type)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===nf||null==e)return this._t=void 0,this.it=e;if(e===nu)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:[]}}}cz.directiveName="unsafeHTML",cz.resultType=1,i7(cz);class cU extends cz{}cU.directiveName="unsafeSVG",cU.resultType=2;let c$=i7(cU),cW={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 cV=function(e,t,n,o){var i,r=arguments.length,a=r<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--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,n,a):i(t,n))||a);return r>3&&a&&Object.defineProperty(t,n,a),a};class cq extends CustomEvent{constructor(){super(cq.NAME,{bubbles:!0,composed:!0})}}cq.NAME="or-iconset-added";let cG=new class{constructor(){this._icons={}}addIconSet(e,t){this._icons[e]=t,this._defaultIconSet||(this._defaultIconSet=t),t.onAdd&&t.onAdd(),window.dispatchEvent(new cq)}getIconSet(e){return this._icons[e]}getIconTemplate(e){if(!e)return nm``;let t=(e||"").split(":"),n=t.pop(),o=t.pop(),i=this._defaultIconSet;return(o&&(i=this.getIconSet(o)),n&&i)?i.getIconTemplate(n):nm``}},cK=class extends nO{constructor(){super(...arguments),this._handler=e=>{this._updateIcon()}}static get styles(){return[tP`
|
|
1608
|
+
`}_onOpenedChanged(e){this.opened=e.detail.value}}function ag(e,t,n){return e?t(e):n?.(e)}nH(a_),n(4532),(f=eM||(eM={})).CREATE="CREATE",f.UPDATE="UPDATE",f.DELETE="DELETE",f.DELETE_FINISHED="DELETE_FINISHED",(h=eL||(eL={})).LOW="LOW",h.MEDIUM="MEDIUM",h.HIGH="HIGH",(p=eA||(eA={})).MANUAL="MANUAL",p.CLIENT="CLIENT",p.GLOBAL_RULESET="GLOBAL_RULESET",p.REALM_RULESET="REALM_RULESET",p.ASSET_RULESET="ASSET_RULESET",p.AGENT="AGENT",(b=eC||(eC={})).OPEN="OPEN",b.ACKNOWLEDGED="ACKNOWLEDGED",b.IN_PROGRESS="IN_PROGRESS",b.RESOLVED="RESOLVED",b.CLOSED="CLOSED",(_=eD||(eD={})).BOTTOM_LEFT="BOTTOM_LEFT",_.BOTTOM_RIGHT="BOTTOM_RIGHT",_.TOP_LEFT="TOP_LEFT",_.TOP_RIGHT="TOP_RIGHT",(g=eT||(eT={})).CREATE="CREATE",g.READ="READ",g.UPDATE="UPDATE",g.DELETE="DELETE",(F=eS||(eS={})).NONE="NONE",F.FORECAST="FORECAST",F.SETPOINT="SETPOINT",(v=eO||(eO={})).DISCONNECTED="DISCONNECTED",v.CONNECTING="CONNECTING",v.DISCONNECTING="DISCONNECTING",v.CONNECTED="CONNECTED",v.DISABLED="DISABLED",v.WAITING="WAITING",v.ERROR="ERROR",v.STOPPED="STOPPED",(y=eI||(eI={})).REQUEST_START="REQUEST_START",y.REQUEST_REPEATING="REQUEST_REPEATING",y.REQUEST_CANCEL="REQUEST_CANCEL",y.READY="READY",y.COMPLETED="COMPLETED",y.RUNNING="RUNNING",y.CANCELLED="CANCELLED",(w=eY||(eY={})).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",(E=eB||(eB={})).PUBLIC="PUBLIC",E.SHARED="SHARED",E.PRIVATE="PRIVATE",(x=eP||(eP={})).OFF="OFF",x.ONE_MIN="ONE_MIN",x.FIVE_MIN="FIVE_MIN",x.QUARTER="QUARTER",x.ONE_HOUR="ONE_HOUR",(M=eN||(eN={})).WRAP_TO_SINGLE_COLUMN="WRAP_TO_SINGLE_COLUMN",M.KEEP_LAYOUT="KEEP_LAYOUT",M.REDIRECT="REDIRECT",M.BLOCK_DEVICE="BLOCK_DEVICE",(L=ej||(ej={})).CSV="CSV",L.CSV_CROSSTAB="CSV_CROSSTAB",L.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",(C=ez||(ez={})).MIN="MIN",C.AVG="AVG",C.MAX="MAX",C.DIFFERENCE="DIFFERENCE",C.COUNT="COUNT",C.SUM="SUM",C.MODE="MODE",C.MEDIAN="MEDIAN",(D=eU||(eU={})).TERMINATING="TERMINATING",D.DISABLED="DISABLED",D.ALREADY_CONNECTED="ALREADY_CONNECTED",D.UNRECOGNISED="UNRECOGNISED",D.PERMANENT_ERROR="PERMANENT_ERROR",D.SYNC_ERROR="SYNC_ERROR",(T=e$||(e$={})).HTTPS="HTTPS",T.HTTP="HTTP",T.TCP="TCP",(S=eW||(eW={})).GET="GET",S.POST="POST",S.PUT="PUT",S.DELETE="DELETE",S.OPTIONS="OPTIONS",S.PATCH="PATCH",(O=eV||(eV={})).KEYCLOAK="KEYCLOAK",O.NONE="NONE",(I=eq||(eq={})).WEBSOCKET="WEBSOCKET",I.POLLING="POLLING",(Y=eG||(eG={})).INTERNAL="INTERNAL",Y.CLIENT="CLIENT",Y.GLOBAL_RULESET="GLOBAL_RULESET",Y.REALM_RULESET="REALM_RULESET",Y.ASSET_RULESET="ASSET_RULESET",(R=eK||(eK={})).REALM="REALM",R.USER="USER",R.ASSET="ASSET",R.CUSTOM="CUSTOM",(B=eJ||(eJ={})).NORMAL="NORMAL",B.HIGH="HIGH",(P=eX||(eX={})).DEVICE="DEVICE",P.TOPIC="TOPIC",P.CONDITION="CONDITION",(N=eQ||(eQ={})).ALWAYS="ALWAYS",N.ONCE="ONCE",N.HOURLY="HOURLY",N.DAILY="DAILY",N.WEEKLY="WEEKLY",N.MONTHLY="MONTHLY",N.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",(z=e1||(e1={})).PRIVATE="PRIVATE",z.PROTECTED="PROTECTED",z.PUBLIC="PUBLIC",(U=e2||(e2={})).EXACT="EXACT",U.BEGIN="BEGIN",U.END="END",U.CONTAINS="CONTAINS",($=e4||(e4={})).EQUALS="EQUALS",$.GREATER_THAN="GREATER_THAN",$.GREATER_EQUALS="GREATER_EQUALS",$.LESS_THAN="LESS_THAN",$.LESS_EQUALS="LESS_EQUALS",$.BETWEEN="BETWEEN",(W=e5||(e5={})).CREATED_ON="CREATED_ON",W.NAME="NAME",W.ASSET_TYPE="ASSET_TYPE",W.PARENT_ID="PARENT_ID",W.REALM="REALM",(V=e6||(e6={})).RESTRICTED="RESTRICTED",V.LINKED="LINKED",V.REALM="REALM",(q=e3||(e3={})).AT_LEAST_ONE="AT_LEAST_ONE",q.ALL="ALL",q.NONE="NONE",(G=e8||(e8={})).AND="AND",G.OR="OR",(K=e7||(e7={})).CREATED_ON="CREATED_ON",K.FIRST_NAME="FIRST_NAME",K.LAST_NAME="LAST_NAME",K.USERNAME="USERNAME",K.EMAIL="EMAIL",(J=e9||(e9={})).STOPPED="STOPPED",J.RUNNING="RUNNING",J.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=ti||(ti={})).NEW_LINE="NEW_LINE",et.SPACER="SPACER",(en=tr||(tr={})).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",(ei=ts||(ts={})).ADD="ADD",ei.ADD_OR_REPLACE="ADD_OR_REPLACE",ei.REPLACE="REPLACE",ei.DELETE="DELETE",ei.CLEAR="CLEAR",(er=td||(td={})).PER_ASSET="PER_ASSET",er.GLOBAL="GLOBAL",(ea=tl||(tl={})).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=tc||(tc={})).REGISTER="REGISTER",es.UPDATE="UPDATE",es.DEREGISTER="DEREGISTER",(ed=tm||(tm={})).AVAILABLE="AVAILABLE",ed.UNAVAILABLE="UNAVAILABLE",(el=tu||(tu={})).ASSET="ASSET",el.AGENT="AGENT",el.NOTIFICATION="NOTIFICATION",el.ALARM="ALARM",el.RULES="RULES",el.PROTOCOL="PROTOCOL",el.GATEWAY="GATEWAY",el.MODEL_AND_VALUES="MODEL_AND_VALUES",el.API="API",el.DATA="DATA",(ec=tf||(tf={})).INFO="INFO",ec.WARN="WARN",ec.ERROR="ERROR",(em=th||(th={})).NUMERIC="numeric",em.DIGIT_2="2-digit",em.FULL="full",em.LONG="long",em.MEDIUM="medium",em.SHORT="short",em.NARROW="narrow",(eu=tp||(tp={})).SECONDLY="SECONDLY",eu.MINUTELY="MINUTELY",eu.HOURLY="HOURLY",eu.DAILY="DAILY",eu.WEEKLY="WEEKLY",eu.MONTHLY="MONTHLY",eu.YEARLY="YEARLY",(ef=tb||(tb={})).OMIT="OMIT",ef.BACKWARD="BACKWARD",ef.FORWARD="FORWARD",(eh=t_||(t_={})).JAPANESE="JAPANESE",eh.BUDDHIST="BUDDHIST",eh.ROC="ROC",eh.ISLAMIC="ISLAMIC",eh.ISO8601="ISO8601",eh.CHINESE="CHINESE",eh.ETHIOPIC="ETHIOPIC",eh.HEBREW="HEBREW",eh.GREGORIAN="GREGORIAN",(ep=tg||(tg={})).SU="SU",ep.MO="MO",ep.TU="TU",ep.WE="WE",ep.TH="TH",ep.FR="FR",ep.SA="SA",(eb=tF||(tF={})).PEOPLECOUNTERASSET="PeopleCounterAsset",eb.MAILAGENT="MailAgent",eb.UDPAGENT="UDPAgent",eb.ROOMASSET="RoomAsset",eb.CITYASSET="CityAsset",eb.VENTILATIONASSET="VentilationAsset",eb.TRADFRILIGHTASSET="TradfriLightAsset",eb.CONSOLEASSET="ConsoleAsset",eb.PRESENCESENSORASSET="PresenceSensorAsset",eb.OPENWEATHERMAPAGENT="OpenWeatherMapAgent",eb.LIGHTASSET="LightAsset",eb.KNXAGENT="KNXAgent",eb.THETHINGSSTACKAGENT="TheThingsStackAgent",eb.PLUGASSET="PlugAsset",eb.CHIRPSTACKAGENT="ChirpStackAgent",eb.WEATHERASSET="WeatherAsset",eb.THINGASSET="ThingAsset",eb.WEBSOCKETAGENT="WebsocketAgent",eb.TCPAGENT="TCPAgent",eb.GATEWAYASSET="GatewayAsset",eb.SERIALAGENT="SerialAgent",eb.BLUETOOTHMESHAGENT="BluetoothMeshAgent",eb.PARKINGASSET="ParkingAsset",eb.TRADFRIPLUGASSET="TradfriPlugAsset",eb.SIMULATORAGENT="SimulatorAgent",eb.SNMPAGENT="SNMPAgent",eb.GROUPASSET="GroupAsset",eb.BUILDINGASSET="BuildingAsset",eb.MODBUSSERIALAGENT="ModbusSerialAgent",eb.ENVIRONMENTSENSORASSET="EnvironmentSensorAsset",eb.MQTTAGENT="MQTTAgent",eb.VELBUSTCPAGENT="VelbusTCPAgent",eb.ARTNETLIGHTASSET="ArtnetLightAsset",eb.VELBUSSERIALAGENT="VelbusSerialAgent",eb.GROUNDWATERSENSORASSET="GroundwaterSensorAsset",eb.MICROPHONEASSET="MicrophoneAsset",eb.MODBUSTCPAGENT="ModbusTcpAgent",eb.ZWAVEAGENT="ZWaveAgent",eb.HTTPAGENT="HTTPAgent",eb.DOORASSET="DoorAsset",eb.THERMOSTATASSET="ThermostatAsset",eb.SHIPASSET="ShipAsset",(e_=tv||(tv={})).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",(eg=ty||(ty={})).FORMAT="format",eg.DATAPOINTSMAXAGEDAYS="dataPointsMaxAgeDays",eg.ACCESSRESTRICTEDWRITE="accessRestrictedWrite",eg.SECRET="secret",eg.APPLYPREDICTEDDATAPOINTS="applyPredictedDataPoints",eg.ATTRIBUTELINKS="attributeLinks",eg.RULERESETIMMEDIATE="ruleResetImmediate",eg.RULESTATE="ruleState",eg.AGENTLINKCONFIG="agentLinkConfig",eg.HASPREDICTEDDATAPOINTS="hasPredictedDataPoints",eg.FORECAST="forecast",eg.STOREDATAPOINTS="storeDataPoints",eg.LABEL="label",eg.CONSTRAINTS="constraints",eg.UNITS="units",eg.USERCONNECTED="userConnected",eg.SHOWONDASHBOARD="showOnDashboard",eg.READONLY="readOnly",eg.MULTILINE="multiline",eg.ACCESSPUBLICWRITE="accessPublicWrite",eg.MOMENTARY="momentary",eg.AGENTLINK="agentLink",eg.ACCESSRESTRICTEDREAD="accessRestrictedRead",eg.ACCESSPUBLICREAD="accessPublicRead",(eF=tw||(tw={})).ASSETQUERY="assetQuery",eF.WSURL="WS_URL",eF.COLOURRGB="colourRGB",eF.VALUEFORMAT="valueFormat",eF.TEXT="text",eF.BYTE="byte",eF.USERNAMEANDPASSWORD="usernameAndPassword",eF.HTTPURL="HTTP_URL",eF.ATTRIBUTELINK="attributeLink",eF.ASSETID="assetID",eF.NUMBERMAP="numberMap",eF.HTTPMETHOD="HTTPMethod",eF.ATTRIBUTESTATE="attributeState",eF.POSITIVENUMBER="positiveNumber",eF.POSITIVEINTEGER="positiveInteger",eF.EXECUTIONSTATUS="executionStatus",eF.BIGINTEGER="bigInteger",eF.VALUEDESCRIPTOR="valueDescriptor",eF.PERIODDURATIONISO8601="periodDurationISO8601",eF.LONG="long",eF.DATEANDTIME="dateAndTime",eF.BOOLEANMAP="booleanMap",eF.MQTTQOS="MQTTQos",eF.NEGATIVEINTEGER="negativeInteger",eF.TCPIPPORTNUMBER="TCP_IPPortNumber",eF.GEOJSONPOINT="GEO_JSONPoint",eF.SNMPVERSION="SNMPVersion",eF.ASSETTYPE="assetType",eF.JSONOBJECT="JSONObject",eF.INTEGERMAP="integerMap",eF.BIGNUMBER="bigNumber",eF.IPADDRESS="IPAddress",eF.EMAIL="email",eF.TIMESTAMP="timestamp",eF.KNXMESSAGESOURCEADDRESS="kNXMessageSourceAddress",eF.ATTRIBUTEREFERENCE="attributeReference",eF.UUID="UUID",eF.INTEGER="integer",eF.OAUTHGRANT="oAuthGrant",eF.NUMBER="number",eF.DEVICECONFIGMAP="DeviceConfigMap",eF.TEXTMAP="textMap",eF.WEBSOCKETSUBSCRIPTION="websocketSubscription",eF.BOOLEAN="boolean",eF.TIMEANDPERIODDURATIONISO8601="timeAndPeriodDurationISO8601",eF.FORECASTCONFIGURATION="forecastConfiguration",eF.TIMEDURATIONISO8601="timeDurationISO8601",eF.TIMESTAMPISO8601="timestampISO8601",eF.CONSOLEPROVIDERS="consoleProviders",eF.MULTIVALUEDTEXTMAP="multivaluedTextMap",eF.NEGATIVENUMBER="negativeNumber",eF.PARITYBIT="Paritybit",eF.JSON="JSON",eF.CRONEXPRESSION="CRONExpression",eF.INTEGERBYTE="integerByte",eF.AGENTLINK="agentLink",eF.DIRECTION="direction",eF.HOSTORIPADDRESS="hostOrIPAddress",eF.STOPBITS="Stopbits",eF.CALENDAREVENT="calendarEvent",eF.CONNECTIONSTATUS="connectionStatus",eF.VALUECONSTRAINT="valueConstraint",(ev=tk||(tk={})).MONTH="month",ev.MILE_SCANDINAVIAN="mile_scandinavian",ev.VAR="var",ev.OUNCE="ounce",ev.HECTARE="hectare",ev.YARD="yard",ev.YEAR="year",ev.GIGA="giga",ev.JOULE="joule",ev.VOLT="volt",ev.HERTZ="hertz",ev.MILE="mile",ev.DEGREE="degree",ev.KILO="kilo",ev.BTU="btu",ev.TERA="tera",ev.FOOT="foot",ev.MEGA="mega",ev.KELVIN="kelvin",ev.CARBON="carbon",ev.DECIBEL_ATTENUATED="decibel_attenuated",ev.INCH="inch",ev.SQUARED="squared",ev.PERCENTAGE="percentage",ev.IN_HG="inch_mercury",ev.CENTI="centi",ev.GRAM="gram",ev.CUBED="cubed",ev.DAY="day",ev.RADIAN="radian",ev.OHM="ohm",ev.MINUTE="minute",ev.PART_PER_MILLION="ppm",ev.AMP="amp",ev.MASS_POUND="pound",ev.KNOT="knot",ev.METRE="metre",ev.LITRE="litre",ev.FLUID_OUNCE="fluid_ounce",ev.HOUR="hour",ev.ACRE="acre",ev.CELSIUS="celsius",ev.RPM="rpm",ev.PASCAL="pascal",ev.DECIBEL="decibel",ev.LUMEN="lumen",ev.WEEK="week",ev.FAHRENHEIT="fahrenheit",ev.WATT="watt",ev.GALLON="gallon",ev.LUX="lux",ev.MILLI="milli",ev.BAR="bar",ev.HECTO="hecto",ev.PEAK="peak",ev.SECOND="second",ev.MICRO="micro",ev.PER="per",ev.STONE="stone",tE||(tE={});class aF{static getAssetDescriptors(){return aF._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=aF.getValueDescriptor(t)),n=t.jsonType?t:aF.getValueDescriptor(t.type)),!n&&e&&(n=aF.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,i;if(t&&"string"!=typeof t)o=t;else{let i=this.getAssetTypeInfo(e||"ThingAsset");if(!i)return[void 0,void 0];"string"==typeof t&&(o=this.getAttributeDescriptor(t,i)),!o&&n&&(o={type:n.type,name:n.name,meta:n.meta})}return o&&(i=this.getValueDescriptor(o.type)),[o,i]}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}}aF._assetTypeInfos=[],aF._metaItemDescriptors=[],aF._valueDescriptors=[];let av=e=>"string"==typeof e,ay=()=>{let e,t,n=new Promise((n,o)=>{e=n,t=o});return n.resolve=e,n.reject=t,n},aw=e=>null==e?"":String(e),ak=/###/g,aE=e=>e&&e.includes("###")?e.replace(ak,"."):e,ax=e=>!e||av(e),aM=(e,t,n)=>{let o=av(t)?t.split("."):t,i=0;for(;i<o.length-1;){if(ax(e))return{};let t=aE(o[i]);!e[t]&&n&&(e[t]=new n),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++i}return ax(e)?{}:{obj:e,k:aE(o[i])}},aL=(e,t,n)=>{let{obj:o,k:i}=aM(e,t,Object);if(void 0!==o||1===t.length){o[i]=n;return}let r=t[t.length-1],a=t.slice(0,t.length-1),s=aM(e,a,Object);for(;void 0===s.obj&&a.length;)r=`${a[a.length-1]}.${r}`,s=aM(e,a=a.slice(0,a.length-1),Object),s?.obj&&void 0!==s.obj[`${s.k}.${r}`]&&(s.obj=void 0);s.obj[`${s.k}.${r}`]=n},aA=(e,t)=>{let{obj:n,k:o}=aM(e,t);if(n&&Object.prototype.hasOwnProperty.call(n,o))return n[o]},aC=(e,t,n)=>{for(let o in t)"__proto__"!==o&&"constructor"!==o&&(Object.prototype.hasOwnProperty.call(e,o)?av(e[o])||e[o]instanceof String||av(t[o])||t[o]instanceof String?n&&(e[o]=t[o]):aC(e[o],t[o],n):e[o]=t[o]);return e},aD={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"},aT=e=>av(e)?e.replace(/[&<>"'\/]/g,e=>aD[e]):e,aS=[" ",",","?","!",";"],aO=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),aI=(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),i=e;for(let e=0;e<o.length;){let t;if(!i||"object"!=typeof i)return;let r="";for(let a=e;a<o.length;++a)if(a!==e&&(r+=n),r+=o[a],void 0!==(t=i[r])){if(["string","number","boolean"].includes(typeof t)&&a<o.length-1)continue;e+=a-e+1;break}i=t}return i},aY=e=>e?.replace(/_/g,"-"),aR={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 aB=new class e{constructor(e,t={}){this.init(e,t)}init(e,t={}){this.prefix=t.prefix||"i18next:",this.logger=e||aR,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=>av(e)?e.replace(/[\r\n\x00-\x1F\x7F]/g," "):e),av(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 aP{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 i=0;i<o;i++)n(e,...t)})}}class aN extends aP{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 i,r=void 0!==o.keySeparator?o.keySeparator:this.options.keySeparator,a=void 0!==o.ignoreJSONStructure?o.ignoreJSONStructure:this.options.ignoreJSONStructure;e.includes(".")?i=e.split("."):(i=[e,t],n&&(Array.isArray(n)?i.push(...n):av(n)&&r?i.push(...n.split(r)):i.push(n)));let s=aA(this.data,i);return(!s&&!t&&!n&&e.includes(".")&&(e=i[0],t=i[1],n=i.slice(2).join(".")),!s&&a&&av(n))?aI(this.data?.[e]?.[t],n,r):s}addResource(e,t,n,o,i={silent:!1}){let r=void 0!==i.keySeparator?i.keySeparator:this.options.keySeparator,a=[e,t];n&&(a=a.concat(r?n.split(r):n)),e.includes(".")&&(a=e.split("."),o=t,t=a[1]),this.addNamespaces(t),aL(this.data,a,o),i.silent||this.emit("added",e,t,n,o)}addResources(e,t,n,o={silent:!1}){for(let o in n)(av(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,i,r={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=aA(this.data,a)||{};r.skipCopy||(n=JSON.parse(JSON.stringify(n))),o?aC(s,n,i):s={...s,...n},aL(this.data,a,s),r.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 aj={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,o,i){return e.forEach(e=>{t=this.processors[e]?.process(t,n,o,i)??t}),t}};let aH=Symbol("i18next/PATH_KEY");function az(e,t){let n,o,i,{[aH]:r}=e((o=[],(i=Object.create(null)).get=(e,t)=>(n?.revoke?.(),t===aH)?o:(o.push(t),(n=Proxy.revocable(e,i)).proxy),Proxy.revocable(Object.create(null),i).proxy)),a=t?.keySeparator??".",s=t?.nsSeparator??":",d=t?.enableSelector==="strict";if(r.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(r[0]))return`${r[0]}${s}${r.slice(1).join(a)}`}return r.join(a)}let aU=e=>!av(e)&&"boolean"!=typeof e&&"number"!=typeof e;class a$ extends aP{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=aB.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 i=aU(o.res);return!1!==n.returnObjects||!i}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,i=t.ns||this.options.defaultNS||[],r=n&&e.includes(n),a=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!((e,t,n)=>{t=t||"",n=n||"";let o=aS.filter(e=>!t.includes(e)&&!n.includes(e));if(0===o.length)return!0;let i=aO.getRegExp(`(${o.map(e=>"?"===e?"\\?":e).join("|")})`),r=!i.test(e);if(!r){let t=e.indexOf(n);t>0&&!i.test(e.substring(0,t))&&(r=!0)}return r})(e,n,o);if(r&&!a){let t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:av(i)?[i]:i};let r=e.split(n);(n!==o||n===o&&this.options.ns.includes(r[0]))&&(i=r.shift()),e=r.join(o)}return{key:e,namespaces:av(i)?[i]:i}}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=az(e,{...this.options,...o})),Array.isArray(e)||(e=[String(e)]),e=e.map(e=>"function"==typeof e?az(e,{...this.options,...o}):String(e));let i=void 0!==o.returnDetails?o.returnDetails:this.options.returnDetails,r=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],l=void 0!==o.nsSeparator?o.nsSeparator:this.options.nsSeparator;void 0===l&&(l=":");let c=o.lng||this.language,m=o.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(c?.toLowerCase()==="cimode")return m?i?{res:`${d}${l}${a}`,usedKey:a,exactUsedKey:a,usedLng:c,usedNS:d,usedParams:this.getUsedParamsDetails(o)}:`${d}${l}${a}`:i?{res:a,usedKey:a,exactUsedKey:a,usedLng:c,usedNS:d,usedParams:this.getUsedParamsDetails(o)}:a;let u=this.resolve(e,o),f=u?.res,h=u?.usedKey||a,p=u?.exactUsedKey||a,b=void 0!==o.joinArrays?o.joinArrays:this.options.joinArrays,_=!this.i18nFormat||this.i18nFormat.handleAsObject,g=void 0!==o.count&&!av(o.count),F=a$.hasDefaultValue(o),v=g?this.pluralResolver.getSuffix(c,o.count,o):"",y=o.ordinal&&g?this.pluralResolver.getSuffix(c,o.count,{ordinal:!1}):"",w=g&&!o.ordinal&&0===o.count,k=w&&o[`defaultValue${this.options.pluralSeparator}zero`]||o[`defaultValue${v}`]||o[`defaultValue${y}`]||o.defaultValue,E=f;_&&!f&&F&&(E=k);let x=aU(E),M=Object.prototype.toString.apply(E);if(_&&E&&x&&!["[object Number]","[object Function]","[object RegExp]"].includes(M)&&!(av(b)&&Array.isArray(E))){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(h,E,{...o,ns:s}):`key '${a} (${this.language})' returned an object instead of string.`;return i?(u.res=e,u.usedParams=this.getUsedParamsDetails(o),u):e}if(r){let e=Array.isArray(E),t=e?[]:{},n=e?p:h;for(let e in E)if(Object.prototype.hasOwnProperty.call(E,e)){let i=`${n}${r}${e}`;F&&!f?t[e]=this.translate(i,{...o,defaultValue:aU(k)?k[e]:void 0,...{joinArrays:!1,ns:s}}):t[e]=this.translate(i,{...o,joinArrays:!1,ns:s}),t[e]===i&&(t[e]=E[e])}f=t}}else if(_&&av(b)&&Array.isArray(f))(f=f.join(b))&&(f=this.extendTranslation(f,e,o,n));else{let t=!1,i=!1;!this.isValidLookup(f)&&F&&(t=!0,f=k),this.isValidLookup(f)||(i=!0,f=a);let s=(o.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&i?void 0:f,m=F&&k!==f&&this.options.updateMissing;if(i||t||m){if(this.logger.log(m?"updateKey":"missingKey",c,d,g&&!m?`${a}${this.pluralResolver.getSuffix(c,o.count,o)}`:a,m?k:f),r){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 i=F&&n!==f?n:s;this.options.missingKeyHandler?this.options.missingKeyHandler(e,d,t,i,m,o):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(e,d,t,i,m,o),this.emit("missingKey",e,d,t,f)};this.options.saveMissing&&(this.options.saveMissingPlurals&&g?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),i&&f===a&&this.options.appendNamespaceToMissingKey&&(f=`${d}${l}${a}`),(i||t)&&this.options.parseMissingKeyHandler&&(f=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${d}${l}${a}`:a,t?f:void 0,o))}return i?(u.res=f,u.usedParams=this.getUsedParamsDetails(o),u):f}extendTranslation(e,t,n,o,i){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 r;n.interpolation&&this.interpolator.init({...n,...{interpolation:{...this.options.interpolation,...n.interpolation}}});let a=av(e)&&(n?.interpolation?.skipOnVariables!==void 0?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);if(a){let t=e.match(this.interpolator.nestingRegexp);r=t&&t.length}let s=n.replace&&!av(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);r<(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)=>i?.[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 r=n.postProcess||this.options.postProcess,a=av(r)?[r]:r;return null!=e&&a?.length&&!1!==n.applyPostProcessor&&(e=aj.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,i,r,a;return av(e)&&(e=[e]),Array.isArray(e)&&(e=e.map(e=>"function"==typeof e?az(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 l=s.namespaces;this.options.fallbackNS&&(l=l.concat(this.options.fallbackNS));let c=void 0!==t.count&&!av(t.count),m=c&&!t.ordinal&&0===t.count,u=void 0!==t.context&&(av(t.context)||"number"==typeof t.context)&&""!==t.context,f=t.lngs?t.lngs:this.languageUtils.toResolveHierarchy(t.lng||this.language,t.fallbackLng);l.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;r=o;let s=[d];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(s,d,o,e,t);else{let e;c&&(e=this.pluralResolver.getSuffix(o,t.count,t));let n=`${this.options.pluralSeparator}zero`,i=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(c&&(t.ordinal&&e.startsWith(i)&&s.push(d+e.replace(i,this.options.pluralSeparator)),s.push(d+e),m&&s.push(d+n)),u){let o=`${d}${this.options.contextSeparator||"_"}${t.context}`;s.push(o),c&&(t.ordinal&&e.startsWith(i)&&s.push(o+e.replace(i,this.options.pluralSeparator)),s.push(o+e),m&&s.push(o+n))}}for(;a=s.pop();)this.isValidLookup(n)||(i=a,n=this.getResource(o,e,a,t))}))})}),{res:n,usedKey:o,exactUsedKey:i,usedLng:r,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&&!av(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 aW{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=aB.create("languageUtils")}getScriptPartFromCode(e){if(!(e=aY(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=aY(e))||!e.includes("-"))return e;let t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(av(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)),av(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=[],i=e=>{e&&(this.isSupportedCode(e)?o.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return av(e)&&(e.includes("-")||e.includes("_"))?("languageOnly"!==this.options.load&&i(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&i(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&i(this.getLanguagePartFromCode(e))):av(e)&&i(this.formatLanguageCode(e)),n.forEach(e=>{o.includes(e)||i(this.formatLanguageCode(e))}),o}}let aV={zero:0,one:1,two:2,few:3,many:4,other:5},aq={select:e=>1===e?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class aG{constructor(e,t={}){this.languageUtils=e,this.options=t,this.logger=aB.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(e,t={}){let n,o=aY("dev"===e?"en":e),i=t.ordinal?"ordinal":"cardinal",r=JSON.stringify({cleanedCode:o,type:i});if(r in this.pluralRulesCache)return this.pluralRulesCache[r];try{n=new Intl.PluralRules(o,{type:i})}catch(i){if("u"<typeof Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),aq;if(!e.match(/-|_/))return aq;let o=this.languageUtils.getLanguagePartFromCode(e);n=this.getRule(o,t)}return this.pluralRulesCache[r]=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)=>aV[e]-aV[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 aK=(e,t,n,o=".",i=!0)=>{let r,a=void 0!==(r=aA(e,n))?r:aA(t,n);return!a&&i&&av(n)&&void 0===(a=aI(e,n,o))&&(a=aI(t,n,o)),a},aJ=e=>e.replace(/\$/g,"$$$$");class aX{constructor(e={}){this.logger=aB.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:i,prefixEscaped:r,suffix:a,suffixEscaped:s,formatSeparator:d,unescapeSuffix:l,unescapePrefix:c,nestingPrefix:m,nestingPrefixEscaped:u,nestingSuffix:f,nestingSuffixEscaped:h,nestingOptionsSeparator:p,maxReplaces:b,alwaysFormat:_}=e.interpolation;this.escape=void 0!==t?t:aT,this.escapeValue=void 0===n||n,this.useRawValueToEscape=void 0!==o&&o,this.prefix=i?i.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"):r||"{{",this.suffix=a?a.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"):s||"}}",this.formatSeparator=d||",",this.unescapePrefix=l?"":c?c.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"):"-",this.unescapeSuffix=this.unescapePrefix?"":l?l.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"):"",this.nestingPrefix=m?m.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"):u||"$t(".replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),this.nestingSuffix=f?f.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"):h||")".replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),this.nestingOptionsSeparator=p||",",this.maxReplaces=b||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 i,r,a,s=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},d=e=>{if(!e.includes(this.formatSeparator)){let i=aK(t,s,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(i,void 0,n,{...o,...t,interpolationkey:e}):i}let i=e.split(this.formatSeparator),r=i.shift().trim(),a=i.join(this.formatSeparator).trim();return this.format(aK(t,s,r,this.options.keySeparator,this.options.ignoreJSONStructure),a,n,{...o,...t,interpolationkey:r})};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 l=o?.missingInterpolationHandler||this.options.missingInterpolationHandler,c=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;i=t.regex.exec(e);){let n=i[1].trim();if(void 0===(r=d(n)))if("function"==typeof l){let t=l(e,i,o);r=av(t)?t:""}else if(o&&Object.prototype.hasOwnProperty.call(o,n))r="";else if(c){r=i[0];continue}else this.logger.warn(`missed to pass in variable ${n} for interpolating ${e}`),r="";else av(r)||this.useRawValueToEscape||(r=aw(r));let s=t.safeValue(r);if(e=e.replace(i[0],aJ(s)),c?(t.regex.lastIndex+=s.length,t.regex.lastIndex-=i[0].length):t.regex.lastIndex=0,++a>=this.maxReplaces)break}}),e}nest(e,t,n={}){let o,i,r,a=(e,t)=>{let n=this.nestingOptionsSeparator;if(!e.includes(n))return e;let o=e.split(RegExp(`${n.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}[ ]*{`)),i=`{${o[1]}`;e=o[0];let a=(i=this.interpolate(i,r)).match(/'/g),s=i.match(/"/g);((a?.length??0)%2!=0||s)&&(s?.length??0)%2==0||(i=i.replace(/'/g,'"'));try{r=JSON.parse(i),t&&(r={...t,...r})}catch(t){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,t),`${e}${n}${i}`}return r.defaultValue&&r.defaultValue.includes(this.prefix)&&delete r.defaultValue,e};for(;o=this.nestingRegexp.exec(e);){let s=[];(r=(r={...n}).replace&&!av(r.replace)?r.replace:r).applyPostProcessor=!1,delete r.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)),(i=t(a.call(this,o[1].trim(),r),r))&&o[0]===e&&!av(i))return i;av(i)||(i=aw(i)),i||(this.logger.warn(`missed to resolve ${o[1]} for nesting ${e}`),i=""),s.length&&(i=s.reduce((e,t)=>this.format(e,t,n.lng,{...n,interpolationkey:o[1].trim()}),i.trim())),e=e.replace(o[0],i),this.regexp.lastIndex=0}return e}}let aQ=e=>{let t={};return(n,o,i)=>{let r=i;i&&i.interpolationkey&&i.formatParams&&i.formatParams[i.interpolationkey]&&i[i.interpolationkey]&&(r={...r,[i.interpolationkey]:void 0});let a=o+JSON.stringify(r),s=t[a];return s||(s=e(aY(o),i),t[a]=s),s(n)}},aZ=e=>(t,n,o)=>e(aY(n),o)(t);class a0{constructor(e={}){this.logger=aB.create("formatter"),this.options=e,this.init(e)}init(e,t={interpolation:{}}){this.formatSeparator=t.interpolation.formatSeparator||",";let n=t.cacheInBuiltFormats?aQ:aZ;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()]=aQ(t)}format(e,t,n,o={}){if(!t||null==e)return e;let i=t.split(this.formatSeparator),r=[];for(let e=0;e<i.length;e++){let t=i[e];for(;t.indexOf("(")>-1&&!t.includes(")")&&e+1<i.length;)t=`${t}${this.formatSeparator}${i[++e]}`;r.push(t)}return r.reduce((e,t)=>{let{formatName:i,formatOptions:r}=(e=>{let t=e.toLowerCase().trim(),n={};if(e.includes("(")){let o=e.split("(");t=o[0].toLowerCase().trim();let i=o[1].slice(0,-1);"currency"!==t||i.includes(":")?"relativetime"!==t||i.includes(":")?i.split(";").forEach(e=>{if(e){let[t,...o]=e.split(":"),i=o.join(":").trim().replace(/^'+|'+$/g,""),r=t.trim();n[r]||(n[r]=i),"false"===i&&(n[r]=!1),"true"===i&&(n[r]=!0),isNaN(i)||(n[r]=parseInt(i,10))}}):n.range||(n.range=i.trim()):n.currency||(n.currency=i.trim())}return{formatName:t,formatOptions:n}})(t);if(this.formats[i]){let t=e;try{let a=o?.formatParams?.[o.interpolationkey]||{},s=a.locale||a.lng||o.locale||o.lng||n;t=this.formats[i](e,s,{...r,...o,...a})}catch(e){this.logger.warn(e)}return t}return this.logger.warn(`there was no format function for ${i}`),e},e)}}class a1 extends aP{constructor(e,t,n,o={}){super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=o,this.logger=aB.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 i={},r={},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===r[a]&&(r[a]=!0):(this.state[a]=1,o=!1,void 0===r[a]&&(r[a]=!0),void 0===i[a]&&(i[a]=!0),void 0===s[t]&&(s[t]=!0)))}),o||(a[e]=!0)}),(Object.keys(i).length||Object.keys(r).length)&&this.queue.push({pending:r,pendingCount:Object.keys(r).length,loaded:{},errors:[],callback:o}),{toLoad:Object.keys(i),pending:Object.keys(r),toLoadLanguages:Object.keys(a),toLoadNamespaces:Object.keys(s)}}loaded(e,t,n){let o=e.split("|"),i=o[0],r=o[1];t&&this.emit("failedLoading",i,r,t),!t&&n&&this.store.addResourceBundle(i,r,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:i}=aM(e,t,Object);o[i]=o[i]||[],o[i].push(n)})(n.loaded,[i],r),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,i=this.retryTimeout,r){if(!e.length)return r(null,{});if(this.readingCalls>=this.maxParallelReads)return void this.waitingReads.push({lng:e,ns:t,fcName:n,tried:o,wait:i,callback:r});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*i,r)},i):r(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();av(e)&&(e=this.languageUtils.toResolveHierarchy(e)),av(t)&&(t=[t]);let i=this.queueLoad(e,t,n,o);if(!i.toLoad.length)return i.pending.length||o(),null;i.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],i=n[1];this.read(o,i,"read",void 0,void 0,(n,r)=>{n&&this.logger.warn(`${t}loading namespace ${i} for language ${o} failed`,n),!n&&r&&this.logger.log(`${t}loaded namespace ${i} for language ${o}`,r),this.loaded(e,n,r)})}saveMissing(e,t,n,o,i,r={},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={...r,isUpdate:i},d=this.backend.create.bind(this.backend);if(d.length<6)try{let i;(i=5===d.length?d(e,t,n,o,s):d(e,t,n,o))&&"function"==typeof i.then?i.then(e=>a(null,e)).catch(a):a(null,i)}catch(e){a(e)}else d(e,t,n,o,a,s)}e&&e[0]&&this.store.addResource(e[0],t,n,o)}}}let a2=()=>({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]),av(e[1])&&(t.defaultValue=e[1]),av(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}),a4=e=>(av(e.ns)&&(e.ns=[e.ns]),av(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),av(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&!e.supportedLngs.includes("cimode")&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),a5=()=>{};class a6 extends aP{constructor(e={},t){if(super(),this.options=a4(e),this.services={},this.logger=aB,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&&(av(e.ns)?e.defaultNS=e.ns:e.ns.includes("translation")||(e.defaultNS=e.ns[0]));let n=a2();this.options={...n,...this.options,...a4(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?aB.init(o(this.modules.logger),this.options):aB.init(null,this.options),e=this.modules.formatter?this.modules.formatter:a0;let t=new aW(this.options);this.store=new aN(this.options.resources,this.options);let n=this.services;n.logger=aB,n.resourceStore=this.store,n.languageUtils=t,n.pluralResolver=new aG(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 aX(this.options),n.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},n.backendConnector=new a1(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 a$(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=a5),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 i=ay(),r=()=>{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),i.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?r():setTimeout(r,0),i}loadResources(e,t=a5){let n=t,o=av(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=ay();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=a5),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&&aj.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=ay();this.emit("languageChanging",e);let o=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},i=(i,r)=>{r?this.isLanguageChangingTo===e&&(o(r),this.translator.changeLanguage(r),this.isLanguageChangingTo=void 0,this.emit("languageChanged",r),this.logger.log("languageChanged",r)):this.isLanguageChangingTo=void 0,n.resolve((...e)=>this.t(...e)),t&&t(i,(...e)=>this.t(...e))},r=t=>{e||t||!this.services.languageDetector||(t=[]);let n=av(t)?t:t&&t[0],r=this.store.hasLanguageSomeTranslations(n)?n:this.services.languageUtils.getBestMatchFromCodes(av(t)?[t]:t);r&&(this.language||o(r),this.translator.language||this.translator.changeLanguage(r),this.services.languageDetector?.cacheUserLanguage?.(r)),this.loadResources(r,e=>{i(e,r)})};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(r):this.services.languageDetector.detect(r):r(e):r(this.services.languageDetector.detect()),n}getFixedT(e,t,n,o){let i=o?.scopeNs,r=(e,t,...o)=>{let a,s;(a="object"!=typeof t?this.options.overloadTranslationOptionHandler([e,t].concat(o)):{...t}).lng=a.lng||r.lng,a.lngs=a.lngs||r.lngs;let d=void 0!==a.ns&&null!==a.ns;a.ns=a.ns||r.ns,""!==a.keyPrefix&&(a.keyPrefix=a.keyPrefix||n||r.keyPrefix);let l={...this.options,...a};Array.isArray(i)&&!d&&(l.ns=i),"function"==typeof a.keyPrefix&&(a.keyPrefix=az(a.keyPrefix,l));let c=this.options.keySeparator||".";return a.keyPrefix&&Array.isArray(e)?s=e.map(e=>("function"==typeof e&&(e=az(e,l)),`${a.keyPrefix}${c}${e}`)):("function"==typeof e&&(e=az(e,l)),s=a.keyPrefix?`${a.keyPrefix}${c}${e}`:e),this.t(s,a)};return av(e)?r.lng=e:r.lngs=e,r.ns=t,r.keyPrefix=n,r}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,i=this.languages[this.languages.length-1];if("cimode"===n.toLowerCase())return!0;let r=(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,r);if(void 0!==e)return e}return!!(this.hasResourceBundle(n,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||r(n,e)&&(!o||r(i,e)))}loadNamespaces(e,t){let n=ay();return this.options.ns?(av(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=ay();av(e)&&(e=[e]);let o=this.options.preload||[],i=e.filter(e=>!o.includes(e)&&this.services.languageUtils.isSupportedCode(e));return i.length?(this.options.preload=o.concat(i),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 aW(a2());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 a6(e,t);return n.createInstance=a6.createInstance,n}cloneInstance(e={},t=a5){let n=e.forkResourceStore;n&&delete e.forkResourceStore;let o={...this.options,...e,isClone:!0},i=new a6(o);if((void 0!==e.debug||void 0!==e.prefix)&&(i.logger=i.logger.clone(e)),["store","services","language"].forEach(e=>{i[e]=this[e]}),i.services={...this.services},i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},n&&(i.store=new aN(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),i.services.resourceStore=i.store),e.interpolation){let t={...a2().interpolation,...this.options.interpolation,...e.interpolation},n={...o,interpolation:t};i.services.interpolator=new aX(n)}return i.translator=new a$(i.services,o),i.translator.on("*",(e,...t)=>{i.emit(e,...t)}),i.init(o,t),i.translator.options=o,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}let a3=a6.createInstance();a3.createInstance,a3.dir,a3.init,a3.loadResources,a3.reloadResources,a3.use,a3.changeLanguage,a3.getFixedT,a3.t,a3.exists,a3.setDefaultNamespace,a3.hasLoadedNamespace,a3.loadNamespaces,a3.loadLanguages;var a8=n(4867),a7=n.n(a8);n(3472);class a9{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 se(e,t,n=!0){if(null==e||null==t)return e===t;if(e.constructor!==t.constructor)return!1;if(e instanceof Function||e instanceof RegExp)return e===t;if(e===t||e.valueOf()===t.valueOf())return!0;if(Array.isArray(e)&&e.length!==t.length||e instanceof Date||!(e instanceof Object)||!(t instanceof Object))return!1;if(n){if(Array.isArray(e))return e.every((e,n)=>se(e,t[n]));let n=Object.keys(e);return Object.keys(t).every(e=>-1!==n.indexOf(e))&&n.every(n=>se(e[n],t[n]))}return!1}function st(e){if(null==e)return"";let t=!1;return e.split(/([A-Z]|\d)/).map((e,n,o)=>{if(!e)return e;if(!t)return t=!0,e.charAt(0).toUpperCase()+e.slice(1);if("_"===e)return" ";if(1===e.length&&e===e.toUpperCase()){let t=!o[n-1]||"_"===o[n-1],i=n+1<o.length&&o[n+1]&&"_"!==o[n+1],r=n+3>o.length||!o[n+1]&&!o[n+3];(!t||i)&&(e=" "+e),!i&&(t||r)||(e=e.toLowerCase())}return e}).join("").trim()}function sn(e,t){if(t===e)return!0;let n=e.endsWith("*"),o=!n&&e.startsWith("*"),i=!n&&!o&&e.startsWith("^")&&e.endsWith("$");if(n&&t.startsWith(e.substr(0,e.length-1))||o&&t.endsWith(e.substr(1)))return!0;if(i)try{return new RegExp(e).test(t)}catch(e){console.error("Failed to compile needle as a RegExp: "+e)}return!1}function so(e,t,n){let o="string"==typeof e?e:e.name;return t&&t.meta&&t.meta.hasOwnProperty(o)?t.meta[o]:n&&n.meta?n.meta[o]:void 0}function si(e){return("string"==typeof e&&(e=aF.getAssetDescriptor(e)),e)?a3.t("label.asset."+e.name,{defaultValue:st(e.name)}):""}function sr(e,t,n,o,i,r){let a=sa("label",e,t,n,i),s="";if(a||(a=so("label",e,t&&t.meta?t:void 0)),o&&(s=function(e,t){if(!e)return"";t||(t="");let n=e.map((e,n)=>{if(3!==e.length||e.toUpperCase()!==e)return a3.t(["units."+e,"or:units."+e]);{let o=new Intl.NumberFormat(a3.language,{currency:e,style:"currency"}).formatToParts();if(0!==n||"currency"!==o[0].type)return"currency"===o[0].type?o[0].value:o[o.length-1].value;if(!t)return o[0].value;t=o[0].value+t}}).join("");return t.length>0?t+" "+n:n}(function(e,t,n,o,i){let r,a=[],s=sa(e,t&&"string"==typeof t?t:t?t.name:n?"string"==typeof n?n:n.name:void 0,n,o,i);if(s&&(r=JSON.parse(s)))if("format"!==e)return r;else a.push(r);if(t&&t.meta&&(r=so(e,t,n)))if("format"!==e)return r;else a.push(r);if(n&&"string"!=typeof n&&n.hasOwnProperty(e)){if(r=n[e],"format"!==e)return r;a.push(r)}if(n&&n.type){if(r=aF.getValueDescriptor(n.type)[e],"format"!==e)return r;a.push(r)}if("format"!==e||0===a.length)return r;let d={};return a.reverse().forEach(e=>{d=Object.assign(Object.assign({},d),e)}),d}("units",e,t,n,i))),!a){let n=e?e.name:t?"string"==typeof t?t:t.name:void 0;a=r||(n?st(n):void 0)}return a?a+(s?" ("+s+")":""):s}function sa(e,t,n,o,i,r){let a;if(t?a="string"==typeof t?t:t.name:n&&(a="string"==typeof n?n:n.name),!a)return;let s=[],d=e+"."+(i?"attribute":"meta")+".";if(o&&s.push(d+o+"."+a),n&&"string"!=typeof n&&(s.push(d+n.type+"."+a),s.push(d+n.type)),s.push(d+a),s.length>0)return a3.t(s,{defaultValue:r||""})}function ss(e){return(t,n)=>{let o=e(t),i=e(n);return o||i?o&&!i?1:!o&&i?-1:o.localeCompare(i):0}}function sd(e,t){let n=new a9;return e.dispatchEvent(t),window.setTimeout(()=>{n.resolve(t.detail)}),n.promise}function sl(){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 sc{constructor(e){e&&Object.assign(this,e)}matches(e){var t,n,o,i,r,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==(i=this.parents)?void 0:i.length)&&!this.parents.some(t=>!t.id||e.parentId===t.id))return!1;if(null==(r=this.paths)?void 0:r.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=>sc._evalValuePredicate(e.name,t)))&&(!this.attributes||sc._evalGroup(e,this.attributes))}static getUnsupportedFields(e){return Object.keys(e).filter(e=>!sc._SUPPORTED_FIELDS.has(e))}collectAttributeNames(){return this.attributes?sc._collectNames(this.attributes):[]}static _evalValuePredicate(e,t){var n;switch(t.predicateType){case"string":{let o;if(null==e)return!1;let i=!1!==t.caseSensitive?String(e):String(e).toLowerCase(),r=!1!==t.caseSensitive?t.value:null==(n=t.value)?void 0:n.toLowerCase();switch(t.match){case"BEGIN":o=i.startsWith(r);break;case"END":o=i.endsWith(r);break;case"CONTAINS":o=i.includes(r);break;default:o=i===r}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 i=null==(n=t.name)?void 0:n.value;if(!i)return!0;let r=null==(o=e.attributes)?void 0:o[i];if(!r)return!!t.negated;let a=!t.value||sc._evalValuePredicate(r.value,t.value);return t.negated?!a:a}static _evalGroup(e,t){var n,o,i;let r=null!=(n=t.operator)?n:"AND",a=[...(null!=(o=t.items)?o:[]).map(t=>sc._evalPredicate(e,t)),...(null!=(i=t.groups)?i:[]).map(t=>sc._evalGroup(e,t))];return!a.length||("OR"===r?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=>sc._collectNames(e))]}}sc._SUPPORTED_FIELDS=new Set(["ids","types","names","parents","paths","realm","attributes"]);var sm=function(e,t,n,o){return new(n||(n=Promise))(function(i,r){function a(e){try{d(o.next(e))}catch(e){r(e)}}function s(e){try{d(o.throw(e))}catch(e){r(e)}}function d(e){var t;e.done?i(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 su=n(4461);class sf{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),i=o.get("consoleName"),r=o.get("consoleVersion"),a=o.get("consolePlatform"),s=o.get("consoleProviders"),d=o.get("consoleAutoEnable"),l=s&&s.length>0?s.split(" "):["push"];this._pendingProviderEnables=l;let c=sf._createConsoleRegistration(),m=window.localStorage.getItem(this._storageKey);if(m)try{let e=JSON.parse(m);e.id&&(c.id=e.id),e.name&&(c.name=e.name),e.providers&&(c.providers=e.providers),e.apps&&(c.apps=e.apps)}catch(e){console.error("Failed to deserialise console registration")}let u=c.providers;for(let e of(c.providers={},l)){let t=u&&u.hasOwnProperty(e)?u[e]:{enabled:!1,disabled:!1};c.providers[e]=t}let f=me.getAppName();f.length>0&&0>c.apps.indexOf(f)&&c.apps.push(f),this._registration=c,i&&(c.name=i),r&&(c.version=r),a&&(c.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 sm(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 sm(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 sm(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 i=this._pendingProviderEnables.indexOf(e);return i>=0&&(this._pendingProviderEnables.splice(i,1),0===this._pendingProviderEnables.length&&(this.sendRegistration().catch(()=>void 0),this._callCompletedCallback())),o})}disableProvider(e){return sm(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 sm(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 a9,i=()=>{delete this._pendingProviderPromises[n],o.reject("No response from provider")};return this._pendingProviderPromises[n]=[o,window.setTimeout(i,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(()=>sm(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 sm(this,void 0,void 0,function*(){this._normaliseRegistration();let t=!!this._registration.id;try{let e=yield me.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&&sf._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 sm(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,i=this._pendingProviderPromises[n+o];i&&(window.clearTimeout(i[1]),delete this._pendingProviderPromises[n+o],i[0].resolve(t));let r=this._providerMessageListeners[n+o];r&&r(t)}_callCompletedCallback(){let e=this._enableCompleteCallback;this._enableCompleteCallback=null,e&&window.setTimeout(()=>{e()},0)}static _createConsoleRegistration(){return{name:su.name,version:su.version,platform:su.os.toString(),apps:[],model:((su.manufacturer?su.manufacturer+" ":"")+(su.product?su.product:"")).trim()}}_initialiseProvider(e){return sm(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 sh(e,t){return function(){return e.apply(t,arguments)}}let{toString:sp}=Object.prototype,{getPrototypeOf:sb}=Object,{iterator:s_,toStringTag:sg}=Symbol,sF=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),sv=e=>"string"==typeof e&&("__proto__"===e||"constructor"===e||"prototype"===e),sy=(e,t,n)=>e===Object.prototype||!n&&null===t,sw=(e,t)=>{let n=e,o=[];for(;null!=n&&-1===o.indexOf(n);){o.push(n);let i=sb(n);if(sy(n,i,n===e))break;if(sF(n,t))return!0;n=i}return!1},sk=(r=Object.create(null),e=>{let t=sp.call(e);return r[t]||(r[t]=t.slice(8,-1).toLowerCase())}),sE=e=>(e=e.toLowerCase(),t=>sk(t)===e),sx=e=>t=>typeof t===e,{isArray:sM}=Array,sL=sx("undefined");function sA(e){return null!==e&&!sL(e)&&null!==e.constructor&&!sL(e.constructor)&&sT(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}let sC=sE("ArrayBuffer"),sD=sx("string"),sT=sx("function"),sS=sx("number"),sO=e=>null!==e&&"object"==typeof e,sI=e=>{if(!sO(e))return!1;let t=sb(e);return(null===t||t===Object.prototype||null===sb(t))&&!sw(e,sg)&&!sw(e,s_)},sY=sE("Date"),sR=sE("File"),sB=sE("Blob"),sP=sE("FileList"),sN=sE("Set"),sj="u">typeof globalThis?globalThis:"u">typeof self?self:"u">typeof window?window:"u">typeof global?global:{},sH=void 0!==sj.FormData?sj.FormData:void 0,sz=sE("URLSearchParams"),[sU,s$,sW,sV]=["ReadableStream","Request","Response","Headers"].map(sE);function sq(e,t,{allOwnKeys:n=!1}={}){let o,i;if(null!=e)if("object"!=typeof e&&(e=[e]),sM(e))for(o=0,i=e.length;o<i;o++)t.call(null,e[o],o,e);else{let i;if(sA(e))return;let r=n?Object.getOwnPropertyNames(e):Object.keys(e),a=r.length;for(o=0;o<a;o++)i=r[o],t.call(null,e[i],i,e)}}function sG(e,t){let n;if(sA(e))return null;t=t.toLowerCase();let o=Object.keys(e),i=o.length;for(;i-- >0;)if(t===(n=o[i]).toLowerCase())return n;return null}let sK="u">typeof globalThis?globalThis:"u">typeof self?self:"u">typeof window?window:global,sJ=e=>!sL(e)&&e!==sK,sX=(a="u">typeof Uint8Array&&sb(Uint8Array),e=>a&&e instanceof a),sQ=sE("HTMLFormElement"),{propertyIsEnumerable:sZ}=Object.prototype,s0=sE("RegExp"),s1=(e,t)=>{let n=Object.getOwnPropertyDescriptors(e),o={};sq(n,(n,i)=>{let r;!1!==(r=t(n,i,e))&&(o[i]=r||n)}),Object.defineProperties(e,o)},s2=sE("AsyncFunction"),s4=(l="function"==typeof setImmediate,c=sT(sK.postMessage),l?setImmediate:c?(m=`axios@${Math.random()}`,u=[],sK.addEventListener("message",({source:e,data:t})=>{e===sK&&t===m&&u.length&&u.shift()()},!1),e=>{u.push(e),sK.postMessage(m,"*")}):e=>setTimeout(e)),s5="u">typeof queueMicrotask?queueMicrotask.bind(sK):"u">typeof process&&process.nextTick||s4,s6=e=>null!=e&&sT(e[s_]),s3={isArray:sM,isArrayBuffer:sC,isBuffer:sA,isFormData:e=>{if(!e)return!1;if(sH&&e instanceof sH)return!0;let t=sb(e);if(!t||t===Object.prototype||!sT(e.append))return!1;let n=sk(e);return"formdata"===n||"object"===n&&sT(e.toString)&&"[object FormData]"===e.toString()},isArrayBufferView:function(e){return"u">typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&sC(e.buffer)},isString:sD,isNumber:sS,isBoolean:e=>!0===e||!1===e,isObject:sO,isPlainObject:sI,isEmptyObject:e=>{if(!sO(e)||sA(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:sU,isRequest:s$,isResponse:sW,isHeaders:sV,isUndefined:sL,isDate:sY,isFile:sR,isReactNativeBlob:e=>!!(e&&void 0!==e.uri),isReactNative:e=>e&&void 0!==e.getParts,isBlob:sB,isRegExp:s0,isFunction:sT,isStream:e=>sO(e)&&sT(e.pipe),isURLSearchParams:sz,isTypedArray:sX,isFileList:sP,forEach:sq,merge:function e(...t){let{caseless:n,skipUndefined:o}=sJ(this)&&this||{},i={},r=(t,r)=>{if("__proto__"===r||"constructor"===r||"prototype"===r)return;let a=n&&"string"==typeof r&&sG(i,r)||r,s=sF(i,a)?i[a]:void 0;sI(s)&&sI(t)?i[a]=e(s,t):sI(t)?i[a]=e({},t):sM(t)?i[a]=t.slice():o&&sL(t)||(i[a]=t)};for(let e=0,n=t.length;e<n;e++){let n=t[e];if(!n||sA(n)||(sq(n,r),"object"!=typeof n||sM(n)))continue;let o=Object.getOwnPropertySymbols(n);for(let e=0;e<o.length;e++){let t=o[e];sZ.call(n,t)&&r(n[t],t)}}return i},extend:(e,t,n,{allOwnKeys:o}={})=>(sq(t,(t,o)=>{n&&sT(t)?Object.defineProperty(e,o,{__proto__:null,value:sh(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 i,r,a,s={};if(t=t||{},null==e)return t;do{for(r=(i=Object.getOwnPropertyNames(e)).length;r-- >0;)a=i[r],(!o||o(a,e,t))&&!s[a]&&(t[a]=e[a],s[a]=!0);e=!1!==n&&sb(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:sk,kindOfTest:sE,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(sM(e))return e;let t=e.length;if(!sS(t))return null;let n=Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{let n,o=(e&&e[s_]).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:sQ,hasOwnProperty:sF,hasOwnProp:sF,hasOwnInPrototypeChain:sw,getSafeProp:(e,t)=>null!=e&&sw(e,t)?e[t]:void 0,toSafeFlatObject:e=>{if(null==e||"object"!=typeof e&&"function"!=typeof e)return e;let t=sb(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(sv(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),i=[],r=e;for(;null!=r&&-1===i.indexOf(r);){i.push(r);let a=r===e?t:sb(r);if(sy(r,a,r===e))break;let s=Object.getOwnPropertyNames(r);for(let t of(Object.getOwnPropertySymbols&&s.push(...Object.getOwnPropertySymbols(r)),s))!sv(t)&&(sF(o,t)||(n[t]=e[t],o[t]=!0));r=a}return n},reduceDescriptors:s1,freezeMethods:e=>{s1(e,(t,n)=>{if(sT(e)&&["arguments","caller","callee"].includes(n))return!1;if(sT(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(sM(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:sG,global:sK,isContextDefined:sJ,isSpecCompliantForm:function(e){return!!(e&&sT(e.append)&&"FormData"===e[sg]&&e[s_])},toJSONObject:e=>{let t=new WeakSet,n=e=>{if(sO(e)){if(t.has(e))return;if(sA(e))return e;if(!("toJSON"in e)){let o;if(t.add(e),sN(e))for(let t of(o=[],e)){let e=n(t);sL(e)||o.push(e)}else o=sM(e)?[]:{},sq(e,(e,t)=>{let i=n(e);sL(i)||(o[t]=i)});return t.delete(e),o}}return e};return n(e)},isAsyncFn:s2,isThenable:e=>e&&(sO(e)||sT(e))&&sT(e.then)&&sT(e.catch),setImmediate:s4,asap:s5,isIterable:s6,isSafeIterable:e=>null!=e&&sw(e,s_)&&s6(e)},s8=s3.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"]),s7=RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),s9=RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function de(e,t){return s3.isArray(e)?e.map(e=>de(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 dt(e){let t=Object.create(null);return s3.forEach(e.toJSON(),(e,n)=>{t[n]=de(e,s9)}),t}let dn=Symbol("internals");function di(e){return e&&String(e).trim().toLowerCase()}function dr(e){return!1===e||null==e?e:s3.isArray(e)?e.map(dr):de(String(e),s7)}let da=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;function ds(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 dd(e,t,n,o,i){if(s3.isFunction(o))return o.call(this,t,n);if(i&&(t=n),s3.isString(t)){if(s3.isString(o))return -1!==t.indexOf(o);if(s3.isRegExp(o))return o.test(t)}}class dl{constructor(e){e&&this.set(e)}set(e,t,n){let o=this;function i(e,t,n){let i=di(t);if(!i)return;let r=s3.findKey(o,i);r&&void 0!==o[r]&&!0!==n&&(void 0!==n||!1===o[r])||(o[r||t]=dr(e))}let r=(e,t)=>s3.forEach(e,(e,n)=>i(e,n,t));if(s3.isPlainObject(e)||e instanceof this.constructor)r(e,t);else{let o;if(s3.isString(e)&&(e=e.trim())&&(o=e,!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(o.trim()))){var a;let n,o,i,s;r((s={},(a=e)&&a.split("\n").forEach(function(e){i=e.indexOf(":"),n=e.substring(0,i).trim().toLowerCase(),o=e.substring(i+1).trim();let t=s3.hasOwnProp(s,n);!n||t&&s3.hasOwnProp(s8,n)||("set-cookie"===n?t?s[n].push(o):s[n]=[o]:s[n]=t?s[n]+", "+o:o)}),s),t)}else if(s3.isObject(e)&&s3.isSafeIterable(e)){let n=Object.create(null),o,i;for(let t of e){if(!s3.isArray(t))throw TypeError("Object iterator must return a key-value pair");i=t[0],s3.hasOwnProp(n,i)?(o=n[i],n[i]=s3.isArray(o)?[...o,t[1]]:[o,t[1]]):n[i]=t[1]}r(n,t)}else null!=e&&i(t,e,n)}return this}get(e,t){if(e=di(e)){let n=s3.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(s3.isFunction(t))return t.call(this,e,n);if(s3.isRegExp(t))return t.exec(e);throw TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=di(e)){let n=s3.findKey(this,e);return!!(n&&void 0!==this[n]&&(!t||dd(this,this[n],n,t)))}return!1}delete(e,t){let n=this,o=!1;function i(e){if(e=di(e)){let i=s3.findKey(n,e);i&&(!t||dd(n,n[i],i,t))&&(delete n[i],o=!0)}}return s3.isArray(e)?e.forEach(i):i(e),o}clear(e){let t=Object.keys(this),n=t.length,o=!1;for(;n--;){let i=t[n];(!e||dd(this,this[i],i,e,!0))&&(delete this[i],o=!0)}return o}normalize(e){let t=this,n={};return s3.forEach(this,(o,i)=>{let r=s3.findKey(n,i);if(r){t[r]=dr(o),delete t[i];return}let a=e?i.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n):String(i).trim();a!==i&&delete t[i],t[a]=dr(o),n[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return s3.forEach(this,(n,o)=>{null!=n&&!1!==n&&(t[o]=e&&s3.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 s3.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,i=!1,r=!1;function a(e){let i=ds(n.slice(o,e)),r=i.indexOf("=");if(r<1)return;let a=ds(i.slice(0,r));if(!da.test(a))return;let s=a.toLowerCase();if("__proto__"===s||"constructor"===s||"prototype"===s)return;let d=ds(i.slice(r+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 i=e.charCodeAt(o);if(34===i||92===i&&(o+=1)>=t)return e;n+=e[o]}return n}(d)}for(let e=0;e<n.length;e++){let t=n.charCodeAt(e);i?r?r=!1:92===t?r=!0:34===t&&(i=!1):34===t?i=!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[dn]=this[dn]={accessors:{}}).accessors,n=this.prototype;function o(e){let o=di(e);if(!t[o]){let i;i=s3.toCamelCase(" "+e),["get","set","has"].forEach(t=>{Object.defineProperty(n,t+i,{__proto__:null,value:function(n,o,i){return this[t].call(this,e,n,o,i)},configurable:!0})}),t[o]=!0}}return s3.isArray(e)?e.forEach(o):o(e),this}}dl.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),s3.reduceDescriptors(dl.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),s3.freezeMethods(dl);let dc="[REDACTED ****]";function dm(e){try{return String(e)}catch(e){return""}}class du extends Error{static from(e,t,n,o,i,r){let a=e.message;!a&&s3.isArray(e.errors)&&e.errors.length&&(a=e.errors.map(e=>{try{return e&&e.message?dm(e.message):dm(e)}catch(e){return""}}).filter(Boolean).join("; ")||e.name||"AggregateError");let s=new du(a,t||e.code,n,o,i);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),r&&Object.assign(s,r),s}constructor(e,t,n,o,i){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),i&&(this.response=i,this.status=i.status)}toJSON(){let e,t,n,o=this.config,i=o&&s3.hasOwnProp(o,"redact")?o.redact:void 0,r=s3.isArray(i)&&i.length>0?(e=new Set(i.map(e=>String(e).toLowerCase())),t=[],(n=o=>{let i;if(null===o||"object"!=typeof o||s3.isBuffer(o))return o;if(-1===t.indexOf(o)){if(o instanceof dl&&(o=o.toJSON()),t.push(o),s3.isArray(o))i=[],o.forEach((e,t)=>{let o=n(e);s3.isUndefined(o)||(i[t]=o)});else{if(!s3.isPlainObject(o)&&function(e){if(s3.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(s3.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}(o))return t.pop(),o;for(let[t,r]of(i=Object.create(null),Object.entries(o))){let o=e.has(t.toLowerCase())?dc:n(r);s3.isUndefined(o)||(i[t]=o)}}return t.pop(),i}})(o)):s3.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:r,code:this.code,status:this.status}}}du.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",du.ERR_BAD_OPTION="ERR_BAD_OPTION",du.ECONNABORTED="ECONNABORTED",du.ETIMEDOUT="ETIMEDOUT",du.ECONNREFUSED="ECONNREFUSED",du.ERR_NETWORK="ERR_NETWORK",du.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",du.ERR_DEPRECATED="ERR_DEPRECATED",du.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",du.ERR_BAD_REQUEST="ERR_BAD_REQUEST",du.ERR_CANCELED="ERR_CANCELED",du.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",du.ERR_INVALID_URL="ERR_INVALID_URL",du.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";let df=du;function dh(e){return s3.isPlainObject(e)||s3.isArray(e)}function dp(e){return s3.endsWith(e,"[]")?e.slice(0,-2):e}function db(e,t,n){return e?e.concat(t).map(function(e,t){return e=dp(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}let d_=s3.toFlatObject(s3,{},null,function(e){return/^is[A-Z]/.test(e)}),dg=function(e,t,n){if(!s3.isObject(e))throw TypeError("target must be an object");t=t||new FormData;let o=(e,t)=>{let o=s3.getSafeProp(n,e);return s3.isUndefined(o)?t:o},i=o("metaTokens",!0),r=o("visitor")||h,a=o("dots",!1),s=o("indexes",!1),d=o("Blob")||"u">typeof Blob&&Blob,l=o("maxDepth",100),c=d&&s3.isSpecCompliantForm(t),m=[];if(!s3.isFunction(r))throw TypeError("visitor must be a function");function u(e){if(null===e)return"";if(s3.isDate(e))return e.toISOString();if(s3.isBoolean(e))return e.toString();if(!c&&s3.isBlob(e))throw new df("Blob is not supported. Use a Buffer instead.");if(s3.isArrayBuffer(e)||s3.isTypedArray(e)){if(c&&"function"==typeof d)return new d([e]);throw new df("Blob is not supported. Use a Buffer instead.",df.ERR_NOT_SUPPORT)}return e}function f(e){if(e>l)throw new df("Object is too deeply nested ("+e+" levels). Max depth: "+l,df.ERR_FORM_DATA_DEPTH_EXCEEDED)}function h(e,n,o){let r=e;if(s3.isReactNative(t)&&s3.isReactNativeBlob(e))return t.append(db(o,n,a),u(e)),!1;if(e&&!o&&"object"==typeof e)if(s3.endsWith(n,"{}"))n=i?n:n.slice(0,-2),e=function(e){if(1/0===l)return JSON.stringify(e);let t=[];return JSON.stringify(e,function(e,n){if(!s3.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(s3.isArray(e)&&(d=e,s3.isArray(d)&&!d.some(dh))||(s3.isFileList(e)||s3.endsWith(n,"[]"))&&(r=s3.toArray(e)))return n=dp(n),r.forEach(function(e,o){s3.isUndefined(e)||null===e||t.append(!0===s?db([n],o,a):null===s?n:n+"[]",u(e))}),!1}return!!dh(e)||(t.append(db(o,n,a),u(e)),!1)}let p=Object.assign(d_,{defaultVisitor:h,convertValue:u,isVisitable:dh});if(!s3.isObject(e))throw TypeError("data must be an object");return!function e(n,o,i=0){if(!s3.isUndefined(n)){if(f(i),-1!==m.indexOf(n))throw Error("Circular reference detected in "+o.join("."));m.push(n),s3.forEach(n,function(n,a){!0===(!(s3.isUndefined(n)||null===n)&&r.call(t,n,s3.isString(a)?a.trim():a,o,p))&&e(n,o?o.concat(a):[a],i+1)}),m.pop()}}(e),t};function dF(e){let t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(e){return t[e]})}function dv(e,t){this._pairs=[],e&&dg(e,this,t)}let dy=dv.prototype;function dw(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function dk(e,t,n){let o;if(!t)return e;e=e||"";let i=s3.isFunction(n)?{serialize:n}:n,r=s3.getSafeProp(i,"encode")||dw,a=s3.getSafeProp(i,"serialize");if(o=a?a(t,i):s3.isURLSearchParams(t)?t.toString():new dv(t,i).toString(r)){let t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}dy.append=function(e,t){this._pairs.push([e,t])},dy.toString=function(e){let t=e?t=>e.call(this,t,dF):dF;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};let dE=Symbol("internals");function dx(e){return e?e.length:0}function dM(e){if(e)for(;e.length&&null===e[e.length-1];)e.pop()}function dL(e,t){let n=e.handlers,o=dx(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 dA=class{constructor(){this.handlers=[],this[dE]={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},i=this[dE];null==this.handlers&&(this.handlers=[]),dL(this,i);let r=i.nextId++;return this.handlers.push(o),i.handlerEntries.set(r,{handler:o,index:this.handlers.length-1}),i.handlersLength=this.handlers.length,r}eject(e){let t=this[dE];dL(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||(dM(this.handlers),t.handlersLength=this.handlers.length)}}clear(){this.handlers&&(this.handlers=[],dL(this,this[dE]))}forEach(e){let t=this[dE];dL(this,t),t.iterationDepth++;try{s3.forEach(this.handlers,function(t){null!==t&&e(t)})}finally{--t.iterationDepth||(dL(this,t),dM(this.handlers),t.handlersLength=dx(this.handlers))}}},dC={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},dD="u">typeof URLSearchParams?URLSearchParams:dv,dT="u">typeof FormData?FormData:null,dS="u">typeof Blob?Blob:null,dO="u">typeof window&&"u">typeof document,dI="object"==typeof navigator&&navigator||void 0,dY=dO&&(!dI||0>["ReactNative","NativeScript","NS"].indexOf(dI.product)),dR="u">typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,dB=dO&&window.location.href||"http://localhost",dP={...tT,isBrowser:!0,classes:{URLSearchParams:dD,FormData:dT,Blob:dS},protocols:["http","https","file","blob","url","data"]};function dN(e){if(e>100)throw new df("FormData field is too deeply nested ("+e+" levels). Max depth: 100",df.ERR_FORM_DATA_DEPTH_EXCEEDED)}let dj=function(e){if(s3.isFormData(e)&&s3.isFunction(e.entries)){let t={};return s3.forEachEntry(e,(e,n)=>{!function e(t,n,o,i){dN(i);let r=t[i++];if("__proto__"===r)return!0;let a=Number.isFinite(+r),s=i>=t.length;return(r=!r&&s3.isArray(o)?o.length:r,s)?s3.hasOwnProp(o,r)?o[r]=s3.isArray(o[r])?o[r].concat(n):[o[r],n]:o[r]=n:(s3.hasOwnProp(o,r)&&s3.isObject(o[r])||(o[r]=[]),e(t,n,o[r],i)&&s3.isArray(o[r])&&(o[r]=function(e){let t,n,o={},i=Object.keys(e),r=i.length;for(t=0;t<r;t++)o[n=i[t]]=e[n];return o}(o[r]))),!a}(function(e){let t,n=[],o=/[^.[\]]+|\[([^.[\]]*)]/g;for(;null!==(t=o.exec(e));)dN(n.length),n.push("[]"===t[0]?"":t[1]||t[0]);return n}(e),n,t,0)}),t}return null},dH=Object.freeze(["get","delete","head","options","post","put","patch","purge","link","unlink","query"]),dz=(e,t)=>null!=e&&s3.hasOwnProp(e,t)?e[t]:void 0,dU={transitional:dC,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){let n,o=t.getContentType()||"",i=o.indexOf("application/json")>-1,r=s3.isObject(e);if(r&&s3.isHTMLForm(e)&&(e=new FormData(e)),s3.isFormData(e))return i?JSON.stringify(dj(e)):e;if(s3.isArrayBuffer(e)||s3.isBuffer(e)||s3.isStream(e)||s3.isFile(e)||s3.isBlob(e)||s3.isReadableStream(e))return e;if(s3.isArrayBufferView(e))return e.buffer;if(s3.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();if(r){let t=dz(this,"formSerializer");if(o.indexOf("application/x-www-form-urlencoded")>-1)return dg(e,new dP.classes.URLSearchParams,{visitor:function(e,t,n,o){return dP.isNode&&s3.isBuffer(e)?(this.append(t,e.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)},...t}).toString();if((n=s3.isFileList(e))||o.indexOf("multipart/form-data")>-1){let o=dz(this,"env"),i=o&&o.FormData;return dg(n?{"files[]":e}:e,i&&new i,t)}}if(r||i){t.setContentType("application/json",!1);var a=e;if(s3.isString(a))try{return(0,JSON.parse)(a),s3.trim(a)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(a)}return e}],transformResponse:[function(e){let t=dz(this,"transitional")||dU.transitional,n=t&&t.forcedJSONParsing,o=dz(this,"responseType"),i="json"===o;if(s3.isResponse(e)||s3.isReadableStream(e))return e;if(e&&s3.isString(e)&&(n&&!o||i)){let n=t&&t.silentJSONParsing;try{return JSON.parse(e,dz(this,"parseReviver"))}catch(e){if(!n&&i){if("SyntaxError"===e.name)throw df.from(e,df.ERR_BAD_RESPONSE,this,null,dz(this,"response"));throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:dP.classes.FormData,Blob:dP.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};function d$(e,t){let n=this||dU,o=t||n,i=dl.from(o.headers),r=o.data;return s3.forEach(e,function(e){r=e.call(n,r,i.normalize(),t?t.status:void 0)}),i.normalize(),r}function dW(e){return!!(e&&e.__CANCEL__)}s3.forEach(dH,e=>{dU.headers[e]={}});let dV=class extends df{constructor(e,t,n){super(null==e?"canceled":e,df.ERR_CANCELED,t,n),this.name="CanceledError",this.__CANCEL__=!0}};function dq(e,t,n){let o=n.config.validateStatus;!n.status||!o||o(n.status)?e(n):t(new df("Request failed with status code "+n.status,n.status>=400&&n.status<500?df.ERR_BAD_REQUEST:df.ERR_BAD_RESPONSE,n.config,n.request,n))}let dG=/[\t\n\r]/g;function dK(e){if("string"!=typeof e)return e;let t=0;for(;t<e.length&&32>=e.charCodeAt(t);)t++;return e.slice(t).replace(dG,"")}function dJ(e){let t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||""}let dX=function(e,t){let n,o=Array(e=e||10),i=Array(e),r=0,a=0;return t=void 0!==t?t:1e3,function(s){let d=Date.now(),l=i[a];n||(n=d),o[r]=s,i[r]=d;let c=a,m=0;for(;c!==r;)m+=o[c++],c%=e;if((r=(r+1)%e)===a&&(a=(a+1)%e),d-n<t)return;let u=l&&d-l;return u?Math.round(1e3*m/u):void 0}},dQ=function(e,t){let n,o,i=0,r=1e3/t,a=(t,r=Date.now())=>{i=r,n=null,o&&(clearTimeout(o),o=null),e(...t)};return[(...e)=>{let t=Date.now(),s=t-i;s>=r?a(e,t):(n=e,o||(o=setTimeout(()=>{o=null,a(n)},r-s)))},()=>n&&a(n),(...e)=>a(e)]},dZ=(e,t,n=3)=>{let o=0,i=dX(50,250);return dQ(n=>{if(!n||!s3.isNumber(n.loaded))return;let r=n.loaded,a=n.lengthComputable?n.total:void 0,s=Math.max(0,null!=a?Math.min(r,a):r),d=Math.max(0,s-o),l=i(d);o=Math.max(o,s),e({loaded:s,total:a,progress:a?s/a:void 0,bytes:d,rate:l||void 0,estimated:l&&a?(a-s)/l:void 0,event:n,lengthComputable:null!=a,[t?"download":"upload"]:!0})},n)},d0=(e,t)=>{let n=null!=e;return[o=>t[0]({lengthComputable:n,total:e,loaded:o}),t[1]]},d1=(e,t=s3.asap)=>(...n)=>t(()=>e(...n)),d2=dP.hasStandardBrowserEnv?(s=new URL(dP.origin),d=dP.navigator&&/(msie|trident)/i.test(dP.navigator.userAgent),e=>(e=new URL(e,dP.origin),s.protocol===e.protocol&&s.host===e.host&&(d||s.port===e.port))):()=>!0,d4=dP.hasStandardBrowserEnv?{write(e,t,n,o,i,r,a){if("u"<typeof document)return;let s=[`${e}=${encodeURIComponent(t)}`];s3.isNumber(n)&&s.push(`expires=${new Date(n).toUTCString()}`),s3.isString(o)&&s.push(`path=${o}`),s3.isString(i)&&s.push(`domain=${i}`),!0===r&&s.push("secure"),s3.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+/,""),i=o.indexOf("=");if(-1!==i&&o.slice(0,i)===e)try{return decodeURIComponent(o.slice(i+1))}catch(e){return o.slice(i+1)}}return null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}},d5=/^https?:(?!\/\/)/i;function d6(e,t){if("string"==typeof e){let o=dK(e);if(d5.test(o)){var n;let e,i,r;throw new df(`Invalid URL ${JSON.stringify((r=(-1===(i=(e=o.replace(/^(https?:\/{0,2})[^/?#]*@/i,`$1${dc}@`)).indexOf("#"))?e:e.slice(0,i)).replace(/([?&][^=&#]*=)[^&#]*/g,`$1${dc}`),-1===i?r:`${r}#${!(n=e.slice(i+1))?n:n.replace(/(^|&)([^=&]*=)?[^&]+/g,(e,t,n="")=>`${t}${n}${dc}`)}`))}: missing "//" after protocol`,df.ERR_INVALID_URL,t)}}}function d3(e,t,n,o){d6(t,o);let i=!("string"==typeof t&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t));if(e&&(i||!1===n)){d6(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 d8=e=>e instanceof dl?{...e}:e;function d7(e,t){var n;e=e||{},t=t||{};let o=Object.create(null);function i(e,t,n,o){return s3.isPlainObject(e)&&s3.isPlainObject(t)?s3.merge.call({caseless:o},e,t):s3.isPlainObject(t)?s3.merge({},t):s3.isArray(t)?t.slice():t}function r(e,t,n,o){return s3.isUndefined(t)?s3.isUndefined(e)?void 0:i(void 0,e,n,o):i(e,t,n,o)}function a(e,t){if(!s3.isUndefined(t))return i(void 0,t)}function s(e,t){return s3.isUndefined(t)?s3.isUndefined(e)?void 0:i(void 0,e):i(void 0,t)}function d(n,o,r){return s3.hasOwnProp(t,r)?i(n,o):s3.hasOwnProp(e,r)?i(void 0,n):void 0}Object.defineProperty(o,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});let l={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)=>r(d8(e),d8(t),n,!0)};return s3.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 i=s3.hasOwnProp(l,n)?l[n]:r,a=i(s3.hasOwnProp(e,n)?e[n]:void 0,s3.hasOwnProp(t,n)?t[n]:void 0,n);s3.isUndefined(a)&&i!==d||(o[n]=a)}),s3.hasOwnProp(t,"validateStatus")&&s3.isUndefined(t.validateStatus)&&!1===function(n){let o=s3.hasOwnProp(t,"transitional")?t.transitional:void 0;if(!s3.isUndefined(o)){if(!s3.isPlainObject(o))return;else if(s3.hasOwnProp(o,n))return o[n]}let i=s3.hasOwnProp(e,"transitional")?e.transitional:void 0;if(s3.isPlainObject(i)&&s3.hasOwnProp(i,n))return i[n]}("validateStatusUndefinedResolves")&&(s3.hasOwnProp(e,"validateStatus")?o.validateStatus=i(void 0,e.validateStatus):delete o.validateStatus),o}let d9=["content-type","content-length"],le=function(e){let t=d7({},e),n=e=>s3.hasOwnProp(t,e)?t[e]:void 0,o=n("data"),i=n("withXSRFToken"),r=n("xsrfHeaderName"),a=n("xsrfCookieName"),s=n("headers"),d=n("auth"),l=n("baseURL"),c=n("allowAbsoluteUrls"),m=n("url");if(t.headers=s=dl.from(s),t.url=dk(d3(l,m,c,t),n("params"),n("paramsSerializer")),d){let t=s3.getSafeProp(d,"username")||"",n=s3.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 df.from(t,df.ERR_BAD_OPTION_VALUE,e)}}if(s3.isFormData(o)){let e=s3.getSafeProp(o,"getHeaders");if(dP.hasStandardBrowserEnv||dP.hasStandardBrowserWebWorkerEnv||s3.isReactNative(o))s.setContentType(void 0);else{var u,f;s3.isFunction(e)&&(u=s,f=e.call(o),"content-only"!==n("formDataHeaderPolicy")?u.set(f):Object.entries(f||{}).forEach(([e,t])=>{d9.includes(e.toLowerCase())&&u.set(e,t)}))}}if(dP.hasStandardBrowserEnv&&(s3.isFunction(i)&&(i=i(t)),!0===i||null==i&&d2(t.url))){let e=r&&a&&d4.read(a);e&&s.set(r,e)}return t},lt="u">typeof XMLHttpRequest&&function(e){return new Promise(function(t,n){let o,i,r,a,s,d,l=le(e),c=l.data,m=dl.from(l.headers).normalize(),{responseType:u,onUploadProgress:f,onDownloadProgress:h}=l;function p(){a&&a(),s&&s(),l.cancelToken&&l.cancelToken.unsubscribe(o),l.signal&&l.signal.removeEventListener("abort",o)}let b=new XMLHttpRequest;function _(o){if(!b)return;if(0===b.status&&"file"!==(dJ(dK(l.url))||dJ(dP.origin))&&!(b.responseURL&&b.responseURL.startsWith("file:"))){n(new df("Request aborted",df.ECONNABORTED,e,b)),p(),b=null;return}try{o?d&&d(o):s&&s()}catch(e){setTimeout(()=>{throw e})}if(!b)return;let i=dl.from("getAllResponseHeaders"in b&&b.getAllResponseHeaders());dq(function(e){t(e),p()},function(e){n(e),p()},{data:u&&"text"!==u&&"json"!==u?b.response:b.responseText,status:b.status,statusText:b.statusText,headers:i,config:e,request:b}),b=null}b.open(l.method.toUpperCase(),l.url,!0),b.timeout=l.timeout,"onloadend"in b?b.onloadend=_:b.onreadystatechange=function(){!b||4!==b.readyState||(0!==b.status||b.responseURL&&b.responseURL.startsWith("file:"))&&setTimeout(_)},b.onabort=function(){b&&(n(new df("Request aborted",df.ECONNABORTED,e,b)),p(),b=null)},b.onerror=function(t){let o=new df(t&&t.message?t.message:"Network Error",df.ERR_NETWORK,e,b);o.event=t||null,n(o),p(),b=null},b.ontimeout=function(){let t=l.timeout?"timeout of "+l.timeout+"ms exceeded":"timeout exceeded",o=l.transitional||dC;l.timeoutErrorMessage&&(t=l.timeoutErrorMessage),n(new df(t,o.clarifyTimeoutError?df.ETIMEDOUT:df.ECONNABORTED,e,b)),p(),b=null},void 0===c&&m.setContentType(null),"setRequestHeader"in b&&s3.forEach(dt(m),function(e,t){b.setRequestHeader(t,e)}),s3.isUndefined(l.withCredentials)||(b.withCredentials=!!l.withCredentials),u&&"json"!==u&&(b.responseType=l.responseType),h&&([r,s,d]=dZ(h,!0),b.addEventListener("progress",r)),f&&b.upload&&([i,a]=dZ(f),b.upload.addEventListener("progress",i),b.upload.addEventListener("loadend",a)),(l.cancelToken||l.signal)&&(o=t=>{b&&(n(!t||t.type?new dV(null,e,b):t),b.abort(),p(),b=null)},l.cancelToken&&l.cancelToken.subscribe(o),l.signal&&(l.signal.aborted?o():l.signal.addEventListener("abort",o)));let g=dJ(l.url);if(g&&!dP.protocols.includes(g)){n(new df("Unsupported protocol "+g+":",df.ERR_BAD_REQUEST,e)),p();return}b.send(c||null)})},ln=function*(e,t){let n,o=e.byteLength;if(!t||o<t)return void(yield e);let i=0;for(;i<o;)n=i+t,yield e.slice(i,n),i=n},lo=async function*(e,t){for await(let n of li(e))yield*ln(n,t)},li=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()}},lr=(e,t,n,o)=>{let i,r=lo(e,t),a=0,s=e=>{!i&&(i=!0,o&&o(e))};return new ReadableStream({async pull(e){try{let{done:t,value:o}=await r.next();if(t){s(),e.close();return}let i=o.byteLength;if(n){let e=a+=i;n(e)}e.enqueue(new Uint8Array(o))}catch(e){throw s(e),e}},cancel:e=>(s(e),r.return())},{highWaterMark:2})},la=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102,ls=(e,t,n)=>t+2<n&&la(e.charCodeAt(t+1))&&la(e.charCodeAt(t+2)),ld=e=>e<=57?e-48:(223&e)-55,ll=e=>e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||43===e||47===e||45===e||95===e,lc=e=>9===e||10===e||12===e||13===e||32===e,lm=e=>{var t;let n,o,i=e.length,r=0,a=0,s=!1;for(let t=0;t<i;t++){let n=e.charCodeAt(t);if(37===n&&ls(e,t,i)&&(n=16*ld(e.charCodeAt(t+1))+ld(e.charCodeAt(t+2)),t+=2),!lc(n)){if(61===n){a++;continue}if(!ll(n)||a>0){s=!0;continue}r++}}if(s||a>2||a>0&&(r+a)%4!=0||r%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=r)/4),3*n+(2==(o=t%4)?1:2*(3===o))},lu={cache:"default",redirect:"follow",referrer:"about:client",referrerPolicy:"",mode:"cors",integrity:"",keepalive:!1,priority:"auto",window:null},{isFunction:lf}=s3,lh=e=>{if(!s3.isString(e))return e;try{return decodeURIComponent(e)}catch(t){return e}},lp=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},lb=e=>{let t,n=void 0!==s3.global&&null!==s3.global?s3.global:globalThis,{ReadableStream:o,TextEncoder:i}=n,{fetch:r,Request:a,Response:s}=e=s3.merge.call({skipUndefined:!0},{Request:n.Request,Response:n.Response},e),d=r?lf(r):"function"==typeof fetch,l=lf(a),c=lf(s);if(!d)return!1;let m=d&&lf(o),u=d&&("function"==typeof i?(t=new i,e=>t.encode(e)):async e=>new Uint8Array(await new a(e).arrayBuffer())),f=l&&m&&lp(()=>{let e=!1,t=new a(dP.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}),h=c&&m&&lp(()=>s3.isReadableStream(new s("").body)),p={stream:h&&(e=>e.body)};d&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{p[e]||(p[e]=(t,n)=>{let o=t&&t[e];if(o)return o.call(t);throw new df(`Response type '${e}' is not supported`,df.ERR_NOT_SUPPORT,n)})});let b=async e=>{if(null==e)return 0;if(s3.isBlob(e))return e.size;if(s3.isSpecCompliantForm(e)){let t=new a(dP.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return s3.isArrayBufferView(e)||s3.isArrayBuffer(e)?e.byteLength:(s3.isURLSearchParams(e)&&(e+=""),s3.isString(e))?(await u(e)).byteLength:void 0},_=async(e,t)=>{let n=s3.toFiniteNumber(e.getContentLength());return null==n?b(t):n};return async e=>{let t,{url:n,method:o,data:d,signal:c,cancelToken:u,timeout:g,onDownloadProgress:F,onUploadProgress:v,responseType:y,headers:w,withCredentials:k="same-origin",fetchOptions:E,maxContentLength:x,maxBodyLength:M,maxRedirects:L}=le(e),A=s3.isNumber(x)&&x>-1,C=s3.isNumber(M)&&M>-1,D=r||fetch;y=y?(y+"").toLowerCase():"text";let T=((e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;let n=new AbortController,o=!1,i=function(e){if(!o){o=!0,a();let t=e instanceof Error?e:this.reason;n.abort(t instanceof df?t:new dV(t instanceof Error?t.message:t))}},r=t&&setTimeout(()=>{r=null,i(new df(`timeout of ${t}ms exceeded`,df.ETIMEDOUT))},t),a=()=>{e&&(r&&clearTimeout(r),r=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(i):e.removeEventListener("abort",i)}),e=null)};e.forEach(e=>{if(!o){if(e.aborted)return void i.call(e);e.addEventListener("abort",i,{once:!0})}});let{signal:s}=n;return s.unsubscribe=()=>s3.asap(a),s})([c,u&&u.toAbortSignal()],g),S=null,O=T&&T.unsubscribe&&(()=>{T.unsubscribe()}),I=null,Y=()=>new df("Request body larger than maxBodyLength limit",df.ERR_BAD_REQUEST,e,S);try{var R,B;let r,c,u,g,P=(c="auth",s3.hasOwnProp(e,c)?e[c]:void 0);if(P){let e=s3.getSafeProp(P,"username")||"",t=s3.getSafeProp(P,"password")||"";r={username:e,password:t}}if(u=(R=n).indexOf("://"),g=R,-1!==u&&(g=g.slice(u+3)),g.includes("@")||g.includes(":")){let e=new URL(n,dP.origin);if(!r&&(e.username||e.password)){let t=lh(e.username),n=lh(e.password);r={username:t,password:n}}(e.username||e.password)&&(e.username="",e.password="",n=e.href)}if(r){let e;w.delete("authorization"),w.set("Authorization","Basic "+btoa((e=(r.username||"")+":"+(r.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(B=n,t="string"==typeof B?B.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),i=e.slice(n+1);if(/;base64/i.test(o))return t(i);let r=0;for(let e=0,t=i.length;e<t;e++){let n=i.charCodeAt(e);if(37===n&&ls(i,e,t))r+=1,e+=2;else if(n<128)r+=1;else if(n<2048)r+=2;else if(n>=55296&&n<=56319&&e+1<t){let t=i.charCodeAt(e+1);t>=56320&&t<=57343?(r+=4,e++):r+=3}else r+=3}return r})(-1===t?B:B.slice(0,t),lm)>x)throw new df("maxContentLength size of "+x+" exceeded",df.ERR_BAD_RESPONSE,e,S)}if(C&&"get"!==o&&"head"!==o){let e=await b(d);if("number"==typeof e&&isFinite(e)&&(t=e,e>M))throw Y()}let N=C&&(s3.isReadableStream(d)||s3.isStream(d)),j=(e,t,n)=>lr(e,65536,e=>{if(C&&e>M)throw I=Y();t&&t(e)},n);if(f&&"get"!==o&&"head"!==o&&(v||N)){if(t=null==t?await _(w,d):t,0!==t||N){let e,o=new a(n,{method:"POST",body:d,duplex:"half"});if(s3.isFormData(d)&&(e=o.headers.get("content-type"))&&w.setContentType(e),o.body){let[e,n]=v&&d0(t,dZ(d1(v)))||[];d=j(o.body,e,n)}}}else if(N&&!l&&m&&"get"!==o&&"head"!==o)d=j(d);else if(N&&l&&!f&&"get"!==o&&"head"!==o)throw new df("Stream request bodies are not supported by the current fetch implementation",df.ERR_NOT_SUPPORT,e,S);s3.isString(k)||(k=k?"include":"omit");let H=l&&"credentials"in a.prototype;if(s3.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 z=null==E?E:Object.assign(Object.create(null),E);z&&(delete z.body,delete z.headers,delete z.method,delete z.signal,delete z.duplex,delete z.credentials);let U=Object.assign(Object.create(null),z,{signal:T,method:o.toUpperCase(),headers:dt(w.normalize()),body:d,duplex:"half",credentials:H?k:void 0});l&&(s3.forEach(lu,(e,t)=>{void 0===U[t]&&(U[t]=e)}),void 0===U.signal&&(U.signal=null),void 0===U.body&&(U.body=null)),0===L&&(U.redirect="manual",z&&(z.redirect="manual")),S=l&&new a(n,U);let $=await (l?D(S,z):D(n,U)),W=dl.from($.headers);if(A){let t=s3.toFiniteNumber(W.getContentLength());if(null!=t&&t>x)throw new df("maxContentLength size of "+x+" exceeded",df.ERR_BAD_RESPONSE,e,S)}let V=h&&("stream"===y||"response"===y);if(h&&$.body&&(F||A||V&&O)){let t={};["status","statusText","headers"].forEach(e=>{t[e]=$[e]});let n=s3.toFiniteNumber(W.getContentLength()),[o,i]=F&&d0(n,dZ(d1(F),!0))||[];$=new s(lr($.body,65536,t=>{if(A&&t>x)throw new df("maxContentLength size of "+x+" exceeded",df.ERR_BAD_RESPONSE,e,S);o&&o(t)},()=>{i&&i(),O&&O()}),t)}y=y||"text";let q=await p[s3.findKey(p,y)||"text"]($,e);if(A&&!h&&!V){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 i?new i().encode(q).byteLength:q.length)),"number"==typeof t&&t>x)throw new df("maxContentLength size of "+x+" exceeded",df.ERR_BAD_RESPONSE,e,S)}return!V&&O&&O(),await new Promise((t,n)=>{dq(t,n,{data:q,headers:dl.from($.headers),status:$.status,statusText:$.statusText,config:e,request:S})})}catch(t){if(O&&O(),T&&T.aborted&&T.reason instanceof df){let n=T.reason;throw n.config=e,S&&(n.request=S),t!==n&&Object.defineProperty(n,"cause",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),n}if(I)throw S&&!I.request&&(I.request=S),I;if(t instanceof df)throw S&&!t.request&&(t.request=S),t;if(t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message)){let n=new df("Network Error",df.ERR_NETWORK,e,S,t&&t.response);throw Object.defineProperty(n,"cause",{__proto__:null,value:t.cause||t,writable:!0,enumerable:!1,configurable:!0}),n}throw df.from(t,t&&t.code,e,S,t&&t.response)}}},l_=new Map,lg=e=>{let t=e&&e.env||{},{fetch:n,Request:o,Response:i}=t,r=[o,i,n],a=r.length,s,d,l=l_;for(;a--;)s=r[a],void 0===(d=l.get(s))&&l.set(s,d=a?new Map:lb(t)),l=d;return d};lg();let lF={http:null,xhr:lt,fetch:{get:lg}};s3.forEach(lF,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch(e){}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});let lv=e=>`- ${e}`,ly=e=>s3.isFunction(e)||null===e||!1===e,lw=function(e,t){let n,o,{length:i}=e=s3.isArray(e)?e:[e],r={};for(let a=0;a<i;a++){let i;if(o=n=e[a],!ly(n)&&void 0===(o=lF[(i=String(n)).toLowerCase()]))throw new df(`Unknown adapter '${i}'`);if(o&&(s3.isFunction(o)||(o=o.get(t))))break;r[i||"#"+a]=o}if(!o){let e=Object.entries(r).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));throw new df("There is no suitable adapter to dispatch the request "+(i?e.length>1?"since :\n"+e.map(lv).join("\n"):" "+lv(e[0]):"as no adapter specified"),df.ERR_NOT_SUPPORT)}return o};function lk(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new dV(null,e)}function lE(e){let t=s3.toSafeFlatObject(e);return lk(t),t.headers=dl.from(s3.getSafeProp(t,"headers")),t.data=d$.call(t,t.transformRequest),-1!==["post","put","patch"].indexOf(t.method)&&t.headers.setContentType("application/x-www-form-urlencoded",!1),lw(t.adapter||dU.adapter,t)(t).then(function(e){lk(t),t.response=e;try{e.data=d$.call(t,t.transformResponse,e)}finally{delete t.response}return e.headers=dl.from(e.headers),e},function(e){if(!dW(e)&&(lk(t),e&&e.response)){t.response=e.response;try{e.response.data=d$.call(t,t.transformResponse,e.response)}finally{delete t.response}e.response.headers=dl.from(e.response.headers)}return Promise.reject(e)})}let lx={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{lx[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});let lM={};lx.transitional=function(e,t,n){function o(e,t){return"[Axios v1.20.0] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,i,r)=>{if(!1===e)throw new df(o(i," has been removed"+(t?" in "+t:"")),df.ERR_DEPRECATED);return t&&!lM[i]&&(lM[i]=!0,console.warn(o(i," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,i,r)}},lx.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};let lL=function(e,t,n){if("object"!=typeof e||null===e)throw new df("options must be an object",df.ERR_BAD_OPTION_VALUE);let o=Object.keys(e),i=o.length;for(;i-- >0;){let r=o[i],a=Object.prototype.hasOwnProperty.call(t,r)?t[r]:void 0;if(a){let t=e[r],n=void 0===t||a(t,r,e);if(!0!==n)throw new df("option "+r+" must be "+n,df.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new df("Unknown option "+r,df.ERR_BAD_OPTION)}};class lA{constructor(e){this.defaults=e||{},this.interceptors={request:new dA,response:new dA}}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),i=-1===n?"":o.slice(n+1);String(e.stack).endsWith(i)||(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:i,paramsSerializer:r,headers:a}=t=d7(this.defaults,t);void 0!==i&&lL(i,{silentJSONParsing:lx.transitional(lx.boolean),forcedJSONParsing:lx.transitional(lx.boolean),clarifyTimeoutError:lx.transitional(lx.boolean),legacyInterceptorReqResOrdering:lx.transitional(lx.boolean),advertiseZstdAcceptEncoding:lx.transitional(lx.boolean),validateStatusUndefinedResolves:lx.transitional(lx.boolean)},!1),null!=r&&(s3.isFunction(r)?t.paramsSerializer={serialize:r}:lL(r,{encode:lx.function,serialize:lx.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),lL(t,{baseUrl:lx.spelling("baseURL"),withXsrfToken:lx.spelling("withXSRFToken")},!0),t.method=(s3.getSafeProp(t,"method")||s3.getSafeProp(this.defaults,"method")||"get").toLowerCase();let s=a&&s3.merge(a.common,a[t.method]);a&&s3.forEach(dH.concat("common"),e=>{delete a[e]}),t.headers=dl.concat(s,a);let d=[],l=!0;this.interceptors.request.forEach(function(e){if("function"==typeof e.runWhen&&!1===e.runWhen(t))return;l=l&&e.synchronous;let n=t.transitional||dC;n&&n.legacyInterceptorReqResOrdering?d.unshift(e.fulfilled,e.rejected):d.push(e.fulfilled,e.rejected)});let c=[];this.interceptors.response.forEach(function(e){c.push(e.fulfilled,e.rejected)});let m=0;if(!l){let e=[lE.bind(this),void 0];for(e.unshift(...d),e.push(...c),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);s3.isThenable(o)&&(n=Promise.resolve(o).then(()=>lE.call(this,u)))}catch(e){n=Promise.reject(e)}break}}if(!n)try{n=lE.call(this,u)}catch(e){n=Promise.reject(e)}for(m=0,o=c.length;m<o;)n=n.then(c[m++],c[m++]);return n}getUri(e){return dk(d3((e=d7(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls,e),e.params,e.paramsSerializer)}}s3.forEach(["delete","get","head","options"],function(e){lA.prototype[e]=function(t,n){return this.request(d7(n||{},{method:e,url:t,data:n&&s3.hasOwnProp(n,"data")?n.data:void 0}))}}),s3.forEach(["post","put","patch","query"],function(e){function t(t){return function(n,o,i){return this.request(d7(i||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:o}))}}lA.prototype[e]=t(),"query"!==e&&(lA.prototype[e+"Form"]=t(!0))});let lC=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,i){n.reason||(n.reason=new dV(e,o,i),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}}},lD={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(lD).forEach(([e,t])=>{void 0===lD[t]&&(lD[t]=e)});let lT=function e(t){let n=new lA(t),o=sh(lA.prototype.request,n);return s3.extend(o,lA.prototype,n,{allOwnKeys:!0}),s3.extend(o,n,null,{allOwnKeys:!0}),o.create=function(n){return e(d7(t,n))},o}(dU);lT.Axios=lA,lT.CanceledError=dV,lT.CancelToken=lC,lT.isCancel=dW,lT.VERSION="1.20.0",lT.toFormData=dg,lT.AxiosError=df,lT.Cancel=lT.CanceledError,lT.all=function(e){return Promise.all(e)},lT.spread=function(e){return function(t){return e.apply(null,t)}},lT.isAxiosError=function(e){return s3.isObject(e)&&!0===e.isAxiosError},lT.mergeConfig=d7,lT.AxiosHeaders=dl,lT.formToJSON=e=>dj(s3.isHTMLForm(e)?new FormData(e):e),lT.getAdapter=lw,lT.HttpStatusCode=lD,lT.default=lT;class lS{constructor(e){this.httpClient=e}create(e,t){return this.httpClient.request({method:"POST",url:l0`realm`,data:e,options:t})}getAll(e){return this.httpClient.request({method:"GET",url:l0`realm`,options:e})}getAccessible(e){return this.httpClient.request({method:"GET",url:l0`realm/accessible`,options:e})}delete(e,t){return this.httpClient.request({method:"DELETE",url:l0`realm/${e}`,options:t})}get(e,t){return this.httpClient.request({method:"GET",url:l0`realm/${e}`,options:t})}update(e,t,n){return this.httpClient.request({method:"PUT",url:l0`realm/${e}`,data:t,options:n})}}class lO{constructor(e){this.httpClient=e}doProtocolAssetDiscovery(e,t,n){return this.httpClient.request({method:"GET",url:l0`agent/assetDiscovery/${e}`,queryParams:t,options:n})}doProtocolAssetImport(e,t,n,o){return this.httpClient.request({method:"POST",url:l0`agent/assetImport/${e}`,queryParams:n,data:t,options:o})}doProtocolInstanceDiscovery(e,t,n){return this.httpClient.request({method:"GET",url:l0`agent/instanceDiscovery/${e}`,queryParams:t,options:n})}}class lI{constructor(e){this.httpClient=e}getNotifications(e,t){return this.httpClient.request({method:"GET",url:l0`notification`,queryParams:e,options:t})}removeNotifications(e,t){return this.httpClient.request({method:"DELETE",url:l0`notification`,queryParams:e,options:t})}sendNotification(e,t){return this.httpClient.request({method:"POST",url:l0`notification/alert`,data:e,options:t})}getNotificationsCount(e,t){return this.httpClient.request({method:"GET",url:l0`notification/count`,queryParams:e,options:t})}removeNotification(e,t){return this.httpClient.request({method:"DELETE",url:l0`notification/${e}`,options:t})}notificationAcknowledged(e,t,n,o){return this.httpClient.request({method:"PUT",url:l0`notification/${e}/acknowledged`,queryParams:n,data:t,options:o})}notificationDelivered(e,t,n){return this.httpClient.request({method:"PUT",url:l0`notification/${e}/delivered`,queryParams:t,options:n})}}class lY{constructor(e){this.httpClient=e}getManagerConfig(e){return this.httpClient.request({method:"GET",url:l0`configuration/manager`,options:e})}update(e,t){return this.httpClient.request({method:"PUT",url:l0`configuration/manager`,data:e,options:t})}imageUpload(e,t,n){return this.httpClient.request({method:"POST",url:l0`configuration/manager/image`,queryParams:t,data:e,options:n})}getManagerConfigImage(e,t){return this.httpClient.request({method:"GET",url:l0`configuration/manager/image/${e}`,options:t})}}class lR{constructor(e){this.httpClient=e}startTunnel(e,t){return this.httpClient.request({method:"POST",url:l0`gateway/tunnel`,data:e,options:t})}stopTunnel(e,t){return this.httpClient.request({method:"DELETE",url:l0`gateway/tunnel`,data:e,options:t})}getAllActiveTunnelInfos(e,t){return this.httpClient.request({method:"GET",url:l0`gateway/tunnel/${e}`,options:t})}getGatewayActiveTunnelInfos(e,t,n){return this.httpClient.request({method:"GET",url:l0`gateway/tunnel/${e}/${t}`,options:n})}getActiveTunnelInfo(e,t,n,o,i){return this.httpClient.request({method:"GET",url:l0`gateway/tunnel/${e}/${t}/${n}/${o}`,options:i})}}class lB{constructor(e){this.httpClient=e}createGlobalRuleset(e,t){return this.httpClient.request({method:"POST",url:l0`rules`,data:e,options:t})}getGlobalRulesets(e,t){return this.httpClient.request({method:"GET",url:l0`rules`,queryParams:e,options:t})}createAssetRuleset(e,t){return this.httpClient.request({method:"POST",url:l0`rules/asset`,data:e,options:t})}getAssetRulesets(e,t,n){return this.httpClient.request({method:"GET",url:l0`rules/asset/for/${e}`,queryParams:t,options:n})}deleteAssetRuleset(e,t){return this.httpClient.request({method:"DELETE",url:l0`rules/asset/${e}`,options:t})}getAssetRuleset(e,t){return this.httpClient.request({method:"GET",url:l0`rules/asset/${e}`,options:t})}updateAssetRuleset(e,t,n){return this.httpClient.request({method:"PUT",url:l0`rules/asset/${e}`,data:t,options:n})}getAssetGeofences(e,t){return this.httpClient.request({method:"GET",url:l0`rules/geofences/${e}`,options:t})}getAssetEngineInfo(e,t){return this.httpClient.request({method:"GET",url:l0`rules/info/asset/${e}`,options:t})}getGlobalEngineInfo(e){return this.httpClient.request({method:"GET",url:l0`rules/info/global`,options:e})}getRealmEngineInfo(e,t){return this.httpClient.request({method:"GET",url:l0`rules/info/realm/${e}`,options:t})}createRealmRuleset(e,t){return this.httpClient.request({method:"POST",url:l0`rules/realm`,data:e,options:t})}getRealmRulesets(e,t,n){return this.httpClient.request({method:"GET",url:l0`rules/realm/for/${e}`,queryParams:t,options:n})}deleteRealmRuleset(e,t){return this.httpClient.request({method:"DELETE",url:l0`rules/realm/${e}`,options:t})}getRealmRuleset(e,t){return this.httpClient.request({method:"GET",url:l0`rules/realm/${e}`,options:t})}updateRealmRuleset(e,t,n){return this.httpClient.request({method:"PUT",url:l0`rules/realm/${e}`,data:t,options:n})}deleteGlobalRuleset(e,t){return this.httpClient.request({method:"DELETE",url:l0`rules/${e}`,options:t})}getGlobalRuleset(e,t){return this.httpClient.request({method:"GET",url:l0`rules/${e}`,options:t})}updateGlobalRuleset(e,t,n){return this.httpClient.request({method:"PUT",url:l0`rules/${e}`,data:t,options:n})}}class lP{constructor(e){this.httpClient=e}create(e,t){return this.httpClient.request({method:"POST",url:l0`asset`,data:e,options:t})}delete(e,t){return this.httpClient.request({method:"DELETE",url:l0`asset`,queryParams:e,options:t})}writeAttributeValues(e,t){return this.httpClient.request({method:"PUT",url:l0`asset/attributes`,data:e,options:t})}writeAttributeEvents(e,t){return this.httpClient.request({method:"PUT",url:l0`asset/attributes/timestamp`,data:e,options:t})}queryCount(e,t){return this.httpClient.request({method:"POST",url:l0`asset/count`,data:e,options:t})}updateNoneParent(e,t){return this.httpClient.request({method:"DELETE",url:l0`asset/parent`,queryParams:e,options:t})}getPartial(e,t){return this.httpClient.request({method:"GET",url:l0`asset/partial/${e}`,options:t})}queryAssets(e,t){return this.httpClient.request({method:"POST",url:l0`asset/query`,data:e,options:t})}queryAssetTree(e,t){return this.httpClient.request({method:"POST",url:l0`asset/tree`,data:e,options:t})}getCurrentUserAssets(e){return this.httpClient.request({method:"GET",url:l0`asset/user/current`,options:e})}createUserAssetLinks(e,t){return this.httpClient.request({method:"POST",url:l0`asset/user/link`,data:e,options:t})}getUserAssetLinks(e,t){return this.httpClient.request({method:"GET",url:l0`asset/user/link`,queryParams:e,options:t})}deleteUserAssetLinks(e,t){return this.httpClient.request({method:"POST",url:l0`asset/user/link/delete`,data:e,options:t})}deleteAllUserAssetLinks(e,t,n){return this.httpClient.request({method:"DELETE",url:l0`asset/user/link/${e}/${t}`,options:n})}deleteUserAssetLink(e,t,n,o){return this.httpClient.request({method:"DELETE",url:l0`asset/user/link/${e}/${t}/${n}`,options:o})}get(e,t){return this.httpClient.request({method:"GET",url:l0`asset/${e}`,options:t})}update(e,t,n){return this.httpClient.request({method:"PUT",url:l0`asset/${e}`,data:t,options:n})}writeAttributeValue$PUT$asset_assetId_attribute_attributeName(e,t,n,o){return this.httpClient.request({method:"PUT",url:l0`asset/${e}/attribute/${t}`,data:n,options:o})}writeAttributeValue$PUT$asset_assetId_attribute_attributeName_timestamp(e,t,n,o,i){return this.httpClient.request({method:"PUT",url:l0`asset/${e}/attribute/${t}/${n}`,data:o,options:i})}updateParent(e,t,n){return this.httpClient.request({method:"PUT",url:l0`asset/${e}/child`,queryParams:t,options:n})}}class lN{constructor(e){this.httpClient=e}updateCurrentUserLocale(e,t){return this.httpClient.request({method:"PUT",url:l0`user/locale`,data:e,options:t})}query(e,t){return this.httpClient.request({method:"POST",url:l0`user/query`,data:e,options:t})}requestPasswordResetCurrent(e){return this.httpClient.request({method:"PUT",url:l0`user/request-password-reset`,options:e})}updatePasswordCurrent(e,t){return this.httpClient.request({method:"PUT",url:l0`user/reset-password`,data:e,options:t})}updateCurrent(e,t){return this.httpClient.request({method:"PUT",url:l0`user/update`,data:e,options:t})}getCurrent(e){return this.httpClient.request({method:"GET",url:l0`user/user`,options:e})}getCurrentUserRealmRoles(e){return this.httpClient.request({method:"GET",url:l0`user/userRealmRoles`,options:e})}getCurrentUserClientRoles(e,t){return this.httpClient.request({method:"GET",url:l0`user/userRoles/${e}`,options:t})}disconnectUserSession(e,t,n){return this.httpClient.request({method:"DELETE",url:l0`user/${e}/disconnect/${t}`,options:n})}requestPasswordReset(e,t,n){return this.httpClient.request({method:"PUT",url:l0`user/${e}/request-password-reset/${t}`,options:n})}updatePassword(e,t,n,o){return this.httpClient.request({method:"PUT",url:l0`user/${e}/reset-password/${t}`,data:n,options:o})}resetSecret(e,t,n){return this.httpClient.request({method:"GET",url:l0`user/${e}/reset-secret/${t}`,options:n})}updateRoles(e,t,n){return this.httpClient.request({method:"PUT",url:l0`user/${e}/roles`,data:t,options:n})}getUserRealmRoles(e,t,n){return this.httpClient.request({method:"GET",url:l0`user/${e}/userRealmRoles/${t}`,options:n})}updateUserRealmRoles(e,t,n,o){return this.httpClient.request({method:"PUT",url:l0`user/${e}/userRealmRoles/${t}`,data:n,options:o})}getUserClientRoles(e,t,n,o){return this.httpClient.request({method:"GET",url:l0`user/${e}/userRoles/${t}/${n}`,options:o})}updateUserClientRoles(e,t,n,o,i){return this.httpClient.request({method:"PUT",url:l0`user/${e}/userRoles/${t}/${n}`,data:o,options:i})}getUserSessions(e,t,n){return this.httpClient.request({method:"GET",url:l0`user/${e}/userSessions/${t}`,options:n})}create(e,t,n){return this.httpClient.request({method:"POST",url:l0`user/${e}/users`,data:t,options:n})}update(e,t,n){return this.httpClient.request({method:"PUT",url:l0`user/${e}/users`,data:t,options:n})}delete(e,t,n){return this.httpClient.request({method:"DELETE",url:l0`user/${e}/users/${t}`,options:n})}getClientRoles(e,t,n){return this.httpClient.request({method:"GET",url:l0`user/${e}/${t}/roles`,options:n})}updateClientRoles(e,t,n,o){return this.httpClient.request({method:"PUT",url:l0`user/${e}/${t}/roles`,data:n,options:o})}get(e,t,n){return this.httpClient.request({method:"GET",url:l0`user/${e}/${t}`,options:n})}}class lj{constructor(e){this.httpClient=e}getDatapointExport(e,t){return this.httpClient.request({method:"GET",url:l0`asset/datapoint/export`,queryParams:e,options:t})}getDatapointPeriod(e,t){return this.httpClient.request({method:"GET",url:l0`asset/datapoint/periods`,queryParams:e,options:t})}getDatapoints(e,t,n,o){return this.httpClient.request({method:"POST",url:l0`asset/datapoint/${e}/${t}`,data:n,options:o})}}class lH{constructor(e){this.httpClient=e}getApps(e){return this.httpClient.request({method:"GET",url:l0`apps`,options:e})}getConsoleConfig(e){return this.httpClient.request({method:"GET",url:l0`apps/consoleConfig`,options:e})}getAppInfos(e){return this.httpClient.request({method:"GET",url:l0`apps/info`,options:e})}}class lz{constructor(e){this.httpClient=e}getServices(e,t){return this.httpClient.request({method:"GET",url:l0`service`,queryParams:e,options:t})}registerService(e,t){return this.httpClient.request({method:"POST",url:l0`service`,data:e,options:t})}getGlobalServices(e){return this.httpClient.request({method:"GET",url:l0`service/global`,options:e})}registerGlobalService(e,t){return this.httpClient.request({method:"POST",url:l0`service/global`,data:e,options:t})}deregisterService(e,t,n){return this.httpClient.request({method:"DELETE",url:l0`service/${e}/${t}`,options:n})}getService(e,t,n){return this.httpClient.request({method:"GET",url:l0`service/${e}/${t}`,options:n})}heartbeat(e,t,n){return this.httpClient.request({method:"PUT",url:l0`service/${e}/${t}`,options:n})}}class lU{constructor(e){this.httpClient=e}createAlarm(e,t,n){return this.httpClient.request({method:"POST",url:l0`alarm`,queryParams:t,data:e,options:n})}getAlarms(e,t){return this.httpClient.request({method:"GET",url:l0`alarm`,queryParams:e,options:t})}removeAlarms(e,t){return this.httpClient.request({method:"DELETE",url:l0`alarm`,data:e,options:t})}setAssetLinks(e,t){return this.httpClient.request({method:"PUT",url:l0`alarm/assets`,data:e,options:t})}getAlarm(e,t){return this.httpClient.request({method:"GET",url:l0`alarm/${e}`,options:t})}removeAlarm(e,t){return this.httpClient.request({method:"DELETE",url:l0`alarm/${e}`,options:t})}updateAlarm(e,t,n){return this.httpClient.request({method:"PUT",url:l0`alarm/${e}`,data:t,options:n})}getAssetLinks(e,t,n){return this.httpClient.request({method:"GET",url:l0`alarm/${e}/assets`,queryParams:t,options:n})}}class l${constructor(e){this.httpClient=e}getAssetDescriptors(e,t){return this.httpClient.request({method:"GET",url:l0`model/assetDescriptors`,queryParams:e,options:t})}getAssetInfo(e,t,n){return this.httpClient.request({method:"GET",url:l0`model/assetInfo/${e}`,queryParams:t,options:n})}getAssetInfos(e,t){return this.httpClient.request({method:"GET",url:l0`model/assetInfos`,queryParams:e,options:t})}getValueDescriptorSchema(e,t){return this.httpClient.request({method:"GET",url:l0`model/getValueDescriptorSchema`,queryParams:e,options:t})}getMetaItemDescriptors(e,t){return this.httpClient.request({method:"GET",url:l0`model/metaItemDescriptors`,queryParams:e,options:t})}getValueDescriptors(e,t){return this.httpClient.request({method:"GET",url:l0`model/valueDescriptors`,queryParams:e,options:t})}}class lW{constructor(e){this.httpClient=e}register(e,t){return this.httpClient.request({method:"POST",url:l0`console/register`,data:e,options:t})}}class lV{constructor(e){this.httpClient=e}createProvisioningConfig(e,t){return this.httpClient.request({method:"POST",url:l0`provisioning`,data:e,options:t})}getProvisioningConfigs(e){return this.httpClient.request({method:"GET",url:l0`provisioning`,options:e})}deleteProvisioningConfig(e,t){return this.httpClient.request({method:"DELETE",url:l0`provisioning/${e}`,options:t})}updateProvisioningConfig(e,t,n){return this.httpClient.request({method:"PUT",url:l0`provisioning/${e}`,data:t,options:n})}}class lq{constructor(e){this.httpClient=e}deleteConnections(e,t){return this.httpClient.request({method:"DELETE",url:l0`gateway/connection`,queryParams:e,options:t})}getConnections(e){return this.httpClient.request({method:"GET",url:l0`gateway/connection`,options:e})}deleteConnection(e,t){return this.httpClient.request({method:"DELETE",url:l0`gateway/connection/${e}`,options:t})}getConnection(e,t){return this.httpClient.request({method:"GET",url:l0`gateway/connection/${e}`,options:t})}setConnection(e,t,n){return this.httpClient.request({method:"PUT",url:l0`gateway/connection/${e}`,data:t,options:n})}getConnectionStatus(e,t){return this.httpClient.request({method:"GET",url:l0`gateway/status/${e}`,options:t})}}class lG{constructor(e){this.httpClient=e}getConfig(e){return this.httpClient.request({method:"GET",url:l0`syslog/config`,options:e})}updateConfig(e,t){return this.httpClient.request({method:"PUT",url:l0`syslog/config`,data:e,options:t})}clearEvents(e){return this.httpClient.request({method:"DELETE",url:l0`syslog/event`,options:e})}getEvents(e,t){return this.httpClient.request({method:"GET",url:l0`syslog/event`,queryParams:e,options:t})}}class lK{constructor(e){this.httpClient=e}getAllNodeDefinitions(e){return this.httpClient.request({method:"GET",url:l0`flow`,options:e})}getNodeDefinition(e,t){return this.httpClient.request({method:"GET",url:l0`flow/${e}`,options:t})}getAllNodeDefinitionsByType(e,t){return this.httpClient.request({method:"GET",url:l0`flow/${e}`,options:t})}}class lJ{constructor(e){this.httpClient=e}getPredictedDatapoints(e,t,n,o){return this.httpClient.request({method:"POST",url:l0`asset/predicted/${e}/${t}`,data:n,options:o})}writePredictedDatapoints(e,t,n,o){return this.httpClient.request({method:"PUT",url:l0`asset/predicted/${e}/${t}`,data:n,options:o})}}class lX{constructor(e){this.httpClient=e}create(e,t){return this.httpClient.request({method:"POST",url:l0`dashboard`,data:e,options:t})}update(e,t){return this.httpClient.request({method:"PUT",url:l0`dashboard`,data:e,options:t})}getAllRealmDashboards(e,t){return this.httpClient.request({method:"GET",url:l0`dashboard/all/${e}`,options:t})}query(e,t){return this.httpClient.request({method:"POST",url:l0`dashboard/query`,data:e,options:t})}delete(e,t,n){return this.httpClient.request({method:"DELETE",url:l0`dashboard/${e}/${t}`,options:n})}get(e,t,n){return this.httpClient.request({method:"GET",url:l0`dashboard/${e}/${t}`,options:n})}}class lQ{constructor(e){this.httpClient=e}getSettings(e){return this.httpClient.request({method:"GET",url:l0`map`,options:e})}saveSettings(e,t){return this.httpClient.request({method:"PUT",url:l0`map`,data:e,options:t})}deleteMap(e){return this.httpClient.request({method:"DELETE",url:l0`map/deleteMap`,options:e})}getCustomMapInfo(e){return this.httpClient.request({method:"GET",url:l0`map/getCustomMapInfo`,options:e})}getTile(e,t,n,o){return this.httpClient.request({method:"GET",url:l0`map/tile/${e}/${t}/${n}`,options:o})}uploadMap(e,t){return this.httpClient.request({method:"POST",url:l0`map/upload`,queryParams:e,options:t})}}class lZ{constructor(e){this.httpClient=e}getHealthStatus(e){return this.httpClient.request({method:"GET",url:l0`health`,options:e})}getInfo(e){return this.httpClient.request({method:"GET",url:l0`info`,options:e})}}function l0(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 l1{constructor(e,t=lT.create()){this._realmResource=new l4(e,t),this._agentResource=new l5(e,t),this._notificationResource=new l6(e,t),this._configurationResource=new l3(e,t),this._gatewayServiceResource=new l8(e,t),this._rulesResource=new l7(e,t),this._assetResource=new l9(e,t),this._userResource=new ce(e,t),this._assetDatapointResource=new ct(e,t),this._appResource=new cn(e,t),this._externalServiceResource=new co(e,t),this._alarmResource=new ci(e,t),this._assetModelResource=new cr(e,t),this._consoleResource=new ca(e,t),this._provisioningResource=new cs(e,t),this._gatewayClientResource=new cd(e,t),this._syslogResource=new cl(e,t),this._flowResource=new cc(e,t),this._assetPredictedDatapointResource=new cm(e,t),this._dashboardResource=new cu(e,t),this._mapResource=new cf(e,t),this._statusResource=new ch(e,t),this._assetResource=new l9(e,t)}get RealmResource(){return this._realmResource}get AgentResource(){return this._agentResource}get NotificationResource(){return this._notificationResource}get ConfigurationResource(){return this._configurationResource}get GatewayServiceResource(){return this._gatewayServiceResource}get RulesResource(){return this._rulesResource}get AssetResource(){return this._assetResource}get UserResource(){return this._userResource}get AssetDatapointResource(){return this._assetDatapointResource}get AppResource(){return this._appResource}get ExternalServiceResource(){return this._externalServiceResource}get AlarmResource(){return this._alarmResource}get AssetModelResource(){return this._assetModelResource}get ConsoleResource(){return this._consoleResource}get ProvisioningResource(){return this._provisioningResource}get GatewayClientResource(){return this._gatewayClientResource}get SyslogResource(){return this._syslogResource}get FlowResource(){return this._flowResource}get AssetPredictedDatapointResource(){return this._assetPredictedDatapointResource}get DashboardResource(){return this._dashboardResource}get MapResource(){return this._mapResource}get StatusResource(){return this._statusResource}}class l2{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 l4 extends lS{constructor(e,t=lT.create()){t.defaults.baseURL=e,super(new l2(t))}}class l5 extends lO{constructor(e,t=lT.create()){t.defaults.baseURL=e,super(new l2(t))}}class l6 extends lI{constructor(e,t=lT.create()){t.defaults.baseURL=e,super(new l2(t))}}class l3 extends lY{constructor(e,t=lT.create()){t.defaults.baseURL=e,super(new l2(t))}}class l8 extends lR{constructor(e,t=lT.create()){t.defaults.baseURL=e,super(new l2(t))}}class l7 extends lB{constructor(e,t=lT.create()){t.defaults.baseURL=e,super(new l2(t))}}class l9 extends lP{constructor(e,t=lT.create()){t.defaults.baseURL=e,super(new l2(t))}}class ce extends lN{constructor(e,t=lT.create()){t.defaults.baseURL=e,super(new l2(t))}}class ct extends lj{constructor(e,t=lT.create()){t.defaults.baseURL=e,super(new l2(t))}}class cn extends lH{constructor(e,t=lT.create()){t.defaults.baseURL=e,super(new l2(t))}}class co extends lz{constructor(e,t=lT.create()){t.defaults.baseURL=e,super(new l2(t))}}class ci extends lU{constructor(e,t=lT.create()){t.defaults.baseURL=e,super(new l2(t))}}class cr extends l${constructor(e,t=lT.create()){t.defaults.baseURL=e,super(new l2(t))}}class ca extends lW{constructor(e,t=lT.create()){t.defaults.baseURL=e,super(new l2(t))}}class cs extends lV{constructor(e,t=lT.create()){t.defaults.baseURL=e,super(new l2(t))}}class cd extends lq{constructor(e,t=lT.create()){t.defaults.baseURL=e,super(new l2(t))}}class cl extends lG{constructor(e,t=lT.create()){t.defaults.baseURL=e,super(new l2(t))}}class cc extends lK{constructor(e,t=lT.create()){t.defaults.baseURL=e,super(new l2(t))}}class cm extends lJ{constructor(e,t=lT.create()){t.defaults.baseURL=e,super(new l2(t))}}class cu extends lX{constructor(e,t=lT.create()){t.defaults.baseURL=e,super(new l2(t))}}class cf extends lQ{constructor(e,t=lT.create()){t.defaults.baseURL=e,super(new l2(t))}}class ch extends lZ{constructor(e,t=lT.create()){t.defaults.baseURL=e,super(new l2(t))}}var cp=n(8183),cb=n.n(cp);lT.isAxiosError;let c_=new class{get api(){return this._client}constructor(){this._axiosInstance=lT.create(),this._axiosInstance.defaults.headers.common["Content-Type"]="application/json",this._axiosInstance.interceptors.request.use(e=>(e.paramsSerializer=e=>cb().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 l1(e,this._axiosInstance)}};var cg=function(e,t,n,o){return new(n||(n=Promise))(function(i,r){function a(e){try{d(o.next(e))}catch(e){r(e)}}function s(e){try{d(o.throw(e))}catch(e){r(e)}}function d(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(a,s)}d((o=o.apply(e,t||[])).next())})};(ey=tx||(tx={})).DISCONNECTED="DISCONNECTED",ey.CONNECTED="CONNECTED",ey.CONNECTING="CONNECTING";let cF="SUBSCRIBED:",cv="UNAUTHORIZED:",cy="TRIGGERED:",cw="EVENT:";class ck{constructor(){this._disconnectRequested=!1,this._reconnectDelayMillis=cE.MIN_RECONNECT_DELAY,this._reconnectTimer=null,this._status=tx.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===tx.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(tx.CONNECTING),this._connectingDeferred=new a9,this._doConnect().then(e=>{if(this._connectingDeferred){let t=this._connectingDeferred;e?(console.debug("Connected to event service: "+this.endpointUrl),this._reconnectDelayMillis=cE.MIN_RECONNECT_DELAY,this._onStatusChanged(tx.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!==tx.DISCONNECTED&&this._doDisconnect())}subscribe(e,t){let n={eventSubscription:e,callback:t,deferred:new a9};return null!=this._pendingSubscription||this._status!==tx.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 cg(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===tx.CONNECTED&&this._doSend(e)}sendEventWithReply(e){return this._status!==tx.CONNECTED?Promise.reject("Not connected"):this._doSendWithReply(e)}subscribeAssetEvents(e,t,n){return cg(this,void 0,void 0,function*(){let o=e&&"string"!=typeof e[0]?e.map(e=>e.id):e,i="AssetEvent"+ck._subscriptionCounter++;if(!this._assetEventPromise){let e;me.authenticated||(e={filterType:"asset",realm:me.displayRealm});let t={eventType:"asset",filter:e};this._assetEventPromise=this.subscribe(t,e=>{this._assetEventCallbackMap.forEach(t=>t(e))})}return this._assetEventCallbackMap.set(i,e=>{let t=e.asset.id;o?o.find(e=>t===e)&&n(e):e.asset.realm===me.displayRealm&&n(e)}),this._assetEventPromise.then(()=>{try{if(o&&t){let e={messageID:"read-assets:"+o.join(",")+":"+i,eventType:"read-assets",assetQuery:{ids:o}};this.sendEventWithReply(e).then(e=>{e.assets&&this._assetEventCallbackMap.has(i)&&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),i&&this.unsubscribe(i),t}return i})})}subscribeAttributeEvents(e,t,n){return cg(this,void 0,void 0,function*(){let o=e&&"string"!=typeof e[0],i=o?e.map(e=>e.id):e,r=o?e:void 0,a="AttributeEvent"+ck._subscriptionCounter++;if(!this._attributeEventPromise){let e;me.authenticated||(e={filterType:"asset",realm:me.displayRealm});let t={eventType:"attribute",filter:e};this._attributeEventPromise=this.subscribe(t,e=>{this._attributeEventCallbackMap.forEach(t=>t(e))})}let s=t=>{let r=t.ref;o?e.forEach(e=>{r.id===e.id&&r.name===e.name&&n(t)}):i?i.find(e=>r.id===e)&&n(t):t.realm===me.displayRealm&&n(t)};return this._attributeEventCallbackMap.set(a,s),this._attributeEventPromise.then(()=>{try{if(t&&i){let e={messageID:"read-assets:"+i.join(",")+":"+a,eventType:"read-assets",assetQuery:{ids:i}};this.sendEventWithReply(e).then(e=>{e.assets&&this._attributeEventCallbackMap.has(a)&&e.assets.forEach(e=>{e.attributes&&Object.entries(e.attributes).forEach(([t,n])=>{(!r||r.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===tx.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===tx.CONNECTED&&this._onStatusChanged(tx.DISCONNECTED),this._pendingSubscription&&(this._queuedSubscriptions.unshift(this._pendingSubscription),this._pendingSubscription=null),this._onStatusChanged(tx.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<cE.MAX_RECONNECT_DELAY&&(this._reconnectDelayMillis=Math.min(cE.MAX_RECONNECT_DELAY,this._reconnectDelayMillis+3e3)))}}ck.MIN_RECONNECT_DELAY=0,ck.MAX_RECONNECT_DELAY=3e4,ck._subscriptionCounter=0;class cE extends ck{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="+me.config.realm;return this._connectDeferred=new a9,(me.authenticated?me.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(cF)){let e=JSON.parse(t.substring(cF.length)),n=this._subscribeDeferred;this._subscribeDeferred=null,n&&n.resolve(e.subscriptionId)}else if(t.startsWith(cv)){let e=JSON.parse(t.substring(cv.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(cy)){let e=JSON.parse(t.substring(cy.length));e.events&&e.events.forEach(t=>{this._onMessageReceived(e.subscriptionId,t)})}else if(t.startsWith(cw)){let e=JSON.parse(t.substring(cw.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 a9,e.subscriptionId||(e.subscriptionId=cE._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=cw+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 a9;return this._repliesDeferred.set(e.messageID,t),this._webSocket.send(cw+JSON.stringify(e)),t.promise}}cE._subscriptionCounter=1;let cx=["__proto__","constructor","prototype"];function cM(e){return!("string"!=typeof e||0===e.length||e.length>128||cx.indexOf(e)>-1||e.indexOf("..")>-1||e.indexOf("\\")>-1||/[?#%:&=;\s]/.test(e)||/[\x00-\x1F\x7F]/.test(e))}function cL(e){return!(!cM(e)||e.indexOf("/")>-1||e.indexOf("@")>-1)}let cA={lng:cL,ns:function(e){return!(!cM(e)||e.indexOf("//")>-1)}};function cC(e){return"string"!=typeof e?e:e.replace(/[\r\n\x00-\x1F\x7F]/g," ")}function cD(){return"function"==typeof XMLHttpRequest||"object"==typeof XMLHttpRequest}let cT=/\{\{(.+?)\}\}/g,cS=/^[/\\]{2}/;function cO(e,t){let n=!1,o=e.replace(cT,(e,o)=>{let i=o.trim();if(cx.indexOf(i)>-1)return e;let r=t[i];if(null==r)return e;let a=cA[i]||cL,s=String(r).split("+");for(let t of s)if(!a(t))return n=!0,e;return s.join("+")});return n||cS.test(o)&&!cS.test(e)?null:o}let cI="u">typeof globalThis?globalThis:"u">typeof global?global:"u">typeof window?window:void 0;"function"==typeof fetch?i=fetch:cI&&"function"==typeof cI.fetch&&(i=cI.fetch);let cY=cD()&&cI?cI.XMLHttpRequest:void 0,cR="function"==typeof ActiveXObject&&cI?cI.ActiveXObject:void 0,cB=["__proto__","constructor","prototype"],cP=(e,t)=>{if(t&&"object"==typeof t){let n="";for(let e of Object.keys(t))cB.indexOf(e)>-1||(n+="&"+encodeURIComponent(e)+"="+encodeURIComponent(t[e]));if(!n)return e;e=e+(-1!==e.indexOf("?")?"&":"?")+n.slice(1)}return e},cN=(e,t,n,o)=>{let r=e=>{if(!e.ok)return n(e.statusText||"Error",{status:e.status});e.text().then(t=>{n(null,{status:e.status,data:t})}).catch(n)};if(o){let i=o(e,t);if(i instanceof Promise)return void i.then(r).catch(n)}"function"==typeof fetch?fetch(e,t).then(r).catch(n):i(e,t).then(r).catch(n)},cj=(e,t,n,o)=>{if("function"==typeof n&&(o=n,n=void 0),o=o||(()=>{}),i&&0!==t.indexOf("file:")){var r=t,a=n,s=o;e.queryStringParams&&(r=cP(r,e.queryStringParams));let i={..."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&&(i["User-Agent"]=`i18next-http-backend (node/${global.process.version}; ${global.process.platform} ${global.process.arch})`),a&&(i["Content-Type"]="application/json");let d="function"==typeof e.requestOptions?e.requestOptions(a):e.requestOptions,l={method:a?"POST":"GET",body:a?e.stringify(a):void 0,headers:i,...e._omitFetchOptions?{}:d},c="function"==typeof e.alternateFetch&&e.alternateFetch.length>=1?e.alternateFetch:void 0;try{cN(r,l,s,c)}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 l[e]}),cN(r,l,s,c),e._omitFetchOptions=!0}catch(e){s(e)}}return}if(cD()||"function"==typeof ActiveXObject){var d=t,l=n,c=o;l&&"object"==typeof l&&(l=cP("",l).slice(1)),e.queryStringParams&&(d=cP(d,e.queryStringParams));try{let t=cY?new cY:new cR("MSXML2.XMLHTTP.3.0");t.open(l?"POST":"GET",d,1),e.crossDomain||t.setRequestHeader("X-Requested-With","XMLHttpRequest"),t.withCredentials=!!e.withCredentials,l&&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))cB.indexOf(e)>-1||t.setRequestHeader(e,n[e]);t.onreadystatechange=()=>{t.readyState>3&&c(t.status>=400?t.statusText:null,{status:t.status,data:t.responseText})},t.send(l)}catch(e){console&&console.log(e)}return}o(Error("No fetch and no xhr implementation found!"))};var cH=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:cj,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,i){var r,a;let s=this.options.loadPath;"function"==typeof this.options.loadPath&&(s=this.options.loadPath(e,n)),(s=(a=r=s)&&"function"==typeof a.then?r:Promise.resolve(r)).then(r=>{if(!r)return i(null,{});let a=cO(r,{lng:e.join("+"),ns:n.join("+")});if(null==a)return i(Error("i18next-http-backend: unsafe lng/ns value — refusing to build request URL for languages=["+e.map(cC).join(", ")+"] namespaces=["+n.map(cC).join(", ")+"]"),!1);this.loadUrl(a,i,t,o)})}loadUrl(e,t,n,o){let i=this.options.parseLoadPayload("string"==typeof n?[n]:n,"string"==typeof o?[o]:o),r=cC(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,i,(e,i)=>{let a,s;if(i&&(i.status>=500&&i.status<600||!i.status))return t("failed loading "+r+"; status code: "+i.status,!0);if(i&&i.status>=400&&i.status<500)return t("failed loading "+r+"; status code: "+i.status,!1);if(!i&&e&&e.message){let n=e.message.toLowerCase();if(["failed","fetch","network","load"].find(e=>n.indexOf(e)>-1))return t("failed loading "+r+": "+cC(e.message),!0)}if(e)return t(e,!1);try{a="string"==typeof i.data?this.options.parse(i.data,n,o):i.data}catch(e){s="failed parsing "+r+" to json"}if(s)return t(s,!1);t(null,a)})}create(e,t,n,o,i){if(!this.options.addPath)return;"string"==typeof e&&(e=[e]);let r=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 l=cO(o,{lng:n,ns:t});if(null==l){a+=1,i&&a===e.length&&i(s,d);return}this.options.request(this.options,l,r,(t,n)=>{a+=1,s.push(t),d.push(n),a===e.length&&"function"==typeof i&&i(s,d)})})}reload(){let{backendConnector:e,languageUtils:t,logger:n}=this.services,o=e.language;if(o&&"cimode"===o.toLowerCase())return;let i=[],r=e=>{t.toResolveHierarchy(e).forEach(e=>{0>i.indexOf(e)&&i.push(e)})};r(o),this.allOptions.preload&&this.allOptions.preload.forEach(e=>r(e)),i.forEach(t=>{this.allOptions.ns.forEach(o=>{e.read(t,o,"read",null,null,(i,r)=>{i&&n.warn(`loading namespace ${o} for language ${t} failed`,i),!i&&r&&n.log(`loaded namespace ${o} for language ${t}`,r),e.loaded(`${t}|${o}`,i,r)})})})}};cH.type="backend";class cz extends i9{constructor(e){if(super(e),this.it=nf,2!==e.type)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===nf||null==e)return this._t=void 0,this.it=e;if(e===nu)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:[]}}}cz.directiveName="unsafeHTML",cz.resultType=1,i7(cz);class cU extends cz{}cU.directiveName="unsafeSVG",cU.resultType=2;let c$=i7(cU),cW={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 cV=function(e,t,n,o){var i,r=arguments.length,a=r<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--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,n,a):i(t,n))||a);return r>3&&a&&Object.defineProperty(t,n,a),a};class cq extends CustomEvent{constructor(){super(cq.NAME,{bubbles:!0,composed:!0})}}cq.NAME="or-iconset-added";let cG=new class{constructor(){this._icons={}}addIconSet(e,t){this._icons[e]=t,this._defaultIconSet||(this._defaultIconSet=t),t.onAdd&&t.onAdd(),window.dispatchEvent(new cq)}getIconSet(e){return this._icons[e]}getIconTemplate(e){if(!e)return nm``;let t=(e||"").split(":"),n=t.pop(),o=t.pop(),i=this._defaultIconSet;return(o&&(i=this.getIconSet(o)),n&&i)?i.getIconTemplate(n):nm``}},cK=class extends nO{constructor(){super(...arguments),this._handler=e=>{this._updateIcon()}}static get styles(){return[tP`
|
|
1609
1609
|
:host {
|
|
1610
1610
|
--internal-or-icon-width: var(--or-icon-width, 24px);
|
|
1611
1611
|
--internal-or-icon-height: var(--or-icon-height, 24px);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openremote/or-asset-tree",
|
|
3
|
-
"version": "1.34.0
|
|
3
|
+
"version": "1.34.0",
|
|
4
4
|
"description": "OpenRemote Asset Tree",
|
|
5
5
|
"customElements": "build/custom-elements.json",
|
|
6
6
|
"main": "build/dist/umd/index.bundle.js",
|
|
@@ -28,19 +28,19 @@
|
|
|
28
28
|
"license": "AGPL-3.0-or-later",
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@mdi/js": "^5.9.55",
|
|
31
|
-
"@openremote/core": "1.34.0
|
|
32
|
-
"@openremote/model": "1.34.0
|
|
33
|
-
"@openremote/or-element": "1.34.0
|
|
34
|
-
"@openremote/or-icon": "1.34.0
|
|
35
|
-
"@openremote/or-mwc-components": "1.34.0
|
|
36
|
-
"@openremote/or-translate": "1.34.0
|
|
37
|
-
"@openremote/or-vaadin-components": "1.34.0
|
|
31
|
+
"@openremote/core": "1.34.0",
|
|
32
|
+
"@openremote/model": "1.34.0",
|
|
33
|
+
"@openremote/or-element": "1.34.0",
|
|
34
|
+
"@openremote/or-icon": "1.34.0",
|
|
35
|
+
"@openremote/or-mwc-components": "1.34.0",
|
|
36
|
+
"@openremote/or-translate": "1.34.0",
|
|
37
|
+
"@openremote/or-vaadin-components": "1.34.0",
|
|
38
38
|
"lit": "^3.3.1",
|
|
39
39
|
"lodash.debounce": "^4.0.8",
|
|
40
40
|
"qs": "^6.16.1"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@openremote/util": "1.34.0
|
|
43
|
+
"@openremote/util": "1.34.0",
|
|
44
44
|
"@types/lodash.debounce": "^4"
|
|
45
45
|
},
|
|
46
46
|
"publishConfig": {
|